numpy-ts 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- "use strict";var np=(()=>{var wK=Object.create;var Wo=Object.defineProperty;var SK=Object.getOwnPropertyDescriptor;var EK=Object.getOwnPropertyNames;var AK=Object.getPrototypeOf,_K=Object.prototype.hasOwnProperty;var c=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),TK=(r,e)=>{for(var a in e)Wo(r,a,{get:e[a],enumerable:!0})},Cc=(r,e,a,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of EK(e))!_K.call(r,o)&&o!==a&&Wo(r,o,{get:()=>e[o],enumerable:!(t=SK(e,o))||t.enumerable});return r};var ra=(r,e,a)=>(a=r!=null?wK(AK(r)):{},Cc(e||!r||!r.__esModule?Wo(a,"default",{value:r,enumerable:!0}):a,r)),jK=r=>Cc(Wo({},"__esModule",{value:!0}),r);var Pc=c((PJr,Lc)=>{"use strict";var IK=typeof Object.defineProperty=="function"?Object.defineProperty:null;Lc.exports=IK});var Mc=c((UJr,Uc)=>{"use strict";var OK=Pc();function NK(){try{return OK({},"x",{}),!0}catch{return!1}}Uc.exports=NK});var Yc=c((MJr,Gc)=>{"use strict";var DK=Object.defineProperty;Gc.exports=DK});var Us=c((GJr,$c)=>{"use strict";function kK(r){return typeof r=="number"}$c.exports=kK});var Ms=c((YJr,Jc)=>{"use strict";function BK(r){return r[0]==="-"}function Wc(r){var e="",a;for(a=0;a<r;a++)e+="0";return e}function FK(r,e,a){var t=!1,o=e-r.length;return o<0||(BK(r)&&(t=!0,r=r.substr(1)),r=a?r+Wc(o):Wc(o)+r,t&&(r="-"+r)),r}Jc.exports=FK});var Zc=c(($Jr,Hc)=>{"use strict";var RK=Us(),Xc=Ms(),VK=String.prototype.toLowerCase,Kc=String.prototype.toUpperCase;function zK(r){var e,a,t;switch(r.specifier){case"b":e=2;break;case"o":e=8;break;case"x":case"X":e=16;break;case"d":case"i":case"u":default:e=10;break}if(a=r.arg,t=parseInt(a,10),!isFinite(t)){if(!RK(a))throw new Error("invalid integer. Value: "+a);t=0}return t<0&&(r.specifier==="u"||e!==10)&&(t=4294967295+t+1),t<0?(a=(-t).toString(e),r.precision&&(a=Xc(a,r.precision,r.padRight)),a="-"+a):(a=t.toString(e),!t&&!r.precision?a="":r.precision&&(a=Xc(a,r.precision,r.padRight)),r.sign&&(a=r.sign+a)),e===16&&(r.alternate&&(a="0x"+a),a=r.specifier===Kc.call(r.specifier)?Kc.call(a):VK.call(a)),e===8&&r.alternate&&a.charAt(0)!=="0"&&(a="0"+a),a}Hc.exports=zK});var rd=c((WJr,Qc)=>{"use strict";function CK(r){return typeof r=="string"}Qc.exports=CK});var td=c((JJr,ad)=>{"use strict";var LK=Us(),PK=Math.abs,UK=String.prototype.toLowerCase,ed=String.prototype.toUpperCase,Bt=String.prototype.replace,MK=/e\+(\d)$/,GK=/e-(\d)$/,YK=/^(\d+)$/,$K=/^(\d+)e/,WK=/\.0$/,JK=/\.0*e/,XK=/(\..*[^0])0*e/;function KK(r){var e,a,t=parseFloat(r.arg);if(!isFinite(t)){if(!LK(r.arg))throw new Error("invalid floating-point number. Value: "+a);t=r.arg}switch(r.specifier){case"e":case"E":a=t.toExponential(r.precision);break;case"f":case"F":a=t.toFixed(r.precision);break;case"g":case"G":PK(t)<1e-4?(e=r.precision,e>0&&(e-=1),a=t.toExponential(e)):a=t.toPrecision(r.precision),r.alternate||(a=Bt.call(a,XK,"$1e"),a=Bt.call(a,JK,"e"),a=Bt.call(a,WK,""));break;default:throw new Error("invalid double notation. Value: "+r.specifier)}return a=Bt.call(a,MK,"e+0$1"),a=Bt.call(a,GK,"e-0$1"),r.alternate&&(a=Bt.call(a,YK,"$1."),a=Bt.call(a,$K,"$1.e")),t>=0&&r.sign&&(a=r.sign+a),a=r.specifier===ed.call(r.specifier)?ed.call(a):UK.call(a),a}ad.exports=KK});var nd=c((XJr,od)=>{"use strict";function id(r){var e="",a;for(a=0;a<r;a++)e+=" ";return e}function HK(r,e,a){var t=e-r.length;return t<0||(r=a?r+id(t):id(t)+r),r}od.exports=HK});var ud=c((KJr,sd)=>{"use strict";var ZK=Zc(),QK=rd(),rH=td(),eH=nd(),aH=Ms(),tH=String.fromCharCode,iH=Array.isArray;function Jo(r){return r!==r}function oH(r){var e={};return e.specifier=r.specifier,e.precision=r.precision===void 0?1:r.precision,e.width=r.width,e.flags=r.flags||"",e.mapping=r.mapping,e}function nH(r){var e,a,t,o,i,n,s,u,v;if(!iH(r))throw new TypeError("invalid argument. First argument must be an array. Value: `"+r+"`.");for(n="",s=1,u=0;u<r.length;u++)if(t=r[u],QK(t))n+=t;else{if(e=t.precision!==void 0,t=oH(t),!t.specifier)throw new TypeError("invalid argument. Token is missing `specifier` property. Index: `"+u+"`. Value: `"+t+"`.");for(t.mapping&&(s=t.mapping),a=t.flags,v=0;v<a.length;v++)switch(o=a.charAt(v),o){case" ":t.sign=" ";break;case"+":t.sign="+";break;case"-":t.padRight=!0,t.padZeros=!1;break;case"0":t.padZeros=a.indexOf("-")<0;break;case"#":t.alternate=!0;break;default:throw new Error("invalid flag: "+o)}if(t.width==="*"){if(t.width=parseInt(arguments[s],10),s+=1,Jo(t.width))throw new TypeError("the argument for * width at position "+s+" is not a number. Value: `"+t.width+"`.");t.width<0&&(t.padRight=!0,t.width=-t.width)}if(e&&t.precision==="*"){if(t.precision=parseInt(arguments[s],10),s+=1,Jo(t.precision))throw new TypeError("the argument for * precision at position "+s+" is not a number. Value: `"+t.precision+"`.");t.precision<0&&(t.precision=1,e=!1)}switch(t.arg=arguments[s],t.specifier){case"b":case"o":case"x":case"X":case"d":case"i":case"u":e&&(t.padZeros=!1),t.arg=ZK(t);break;case"s":t.maxWidth=e?t.precision:-1,t.arg=String(t.arg);break;case"c":if(!Jo(t.arg)){if(i=parseInt(t.arg,10),i<0||i>127)throw new Error("invalid character code. Value: "+t.arg);t.arg=Jo(i)?String(t.arg):tH(i)}break;case"e":case"E":case"f":case"F":case"g":case"G":e||(t.precision=6),t.arg=rH(t);break;default:throw new Error("invalid specifier: "+t.specifier)}t.maxWidth>=0&&t.arg.length>t.maxWidth&&(t.arg=t.arg.substring(0,t.maxWidth)),t.padZeros?t.arg=aH(t.arg,t.width||t.precision,t.padRight):t.width&&(t.arg=eH(t.arg,t.width,t.padRight)),n+=t.arg||"",s+=1}return n}sd.exports=nH});var fd=c((HJr,vd)=>{"use strict";var sH=ud();vd.exports=sH});var cd=c((ZJr,ld)=>{"use strict";var Xo=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;function uH(r){var e={mapping:r[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]};return r[4]==="."&&r[5]===void 0&&(e.precision="1"),e}function vH(r){var e,a,t,o;for(a=[],o=0,t=Xo.exec(r);t;)e=r.slice(o,Xo.lastIndex-t[0].length),e.length&&a.push(e),a.push(uH(t)),o=Xo.lastIndex,t=Xo.exec(r);return e=r.slice(o),e.length&&a.push(e),a}ld.exports=vH});var pd=c((QJr,dd)=>{"use strict";var fH=cd();dd.exports=fH});var md=c((rXr,yd)=>{"use strict";function lH(r){return typeof r=="string"}yd.exports=lH});var bd=c((eXr,gd)=>{"use strict";var cH=fd(),dH=pd(),pH=md();function hd(r){var e,a;if(!pH(r))throw new TypeError(hd("invalid argument. First argument must be a string. Value: `%s`.",r));for(e=[dH(r)],a=1;a<arguments.length;a++)e.push(arguments[a]);return cH.apply(null,e)}gd.exports=hd});var pr=c((aXr,xd)=>{"use strict";var yH=bd();xd.exports=yH});var _d=c((tXr,Ad)=>{"use strict";var qd=pr(),ni=Object.prototype,wd=ni.toString,Sd=ni.__defineGetter__,Ed=ni.__defineSetter__,mH=ni.__lookupGetter__,hH=ni.__lookupSetter__;function gH(r,e,a){var t,o,i,n;if(typeof r!="object"||r===null||wd.call(r)==="[object Array]")throw new TypeError(qd("invalid argument. First argument must be an object. Value: `%s`.",r));if(typeof a!="object"||a===null||wd.call(a)==="[object Array]")throw new TypeError(qd("invalid argument. Property descriptor must be an object. Value: `%s`.",a));if(o="value"in a,o&&(mH.call(r,e)||hH.call(r,e)?(t=r.__proto__,r.__proto__=ni,delete r[e],r[e]=a.value,r.__proto__=t):r[e]=a.value),i="get"in a,n="set"in a,o&&(i||n))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return i&&Sd&&Sd.call(r,e,a.get),n&&Ed&&Ed.call(r,e,a.set),r}Ad.exports=gH});var Ft=c((iXr,Td)=>{"use strict";var bH=Mc(),xH=Yc(),qH=_d(),Gs;bH()?Gs=xH:Gs=qH;Td.exports=Gs});var Id=c((oXr,jd)=>{"use strict";var wH=Ft();function SH(r,e,a){wH(r,e,{configurable:!1,enumerable:!0,writable:!1,value:a})}jd.exports=SH});var Rt=c((nXr,Od)=>{"use strict";var EH=Id();Od.exports=EH});var Dd=c((sXr,Nd)=>{"use strict";var AH=Object.prototype.hasOwnProperty;function _H(r,e){return r==null?!1:AH.call(r,e)}Nd.exports=_H});var Xr=c((uXr,kd)=>{"use strict";var TH=Dd();kd.exports=TH});var Fd=c((vXr,Bd)=>{"use strict";function jH(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}Bd.exports=jH});var Ys=c((fXr,Rd)=>{"use strict";var IH=Fd();Rd.exports=IH});var zd=c((lXr,Vd)=>{"use strict";var OH=Ys(),NH=OH();function DH(){return NH&&typeof Symbol.toStringTag=="symbol"}Vd.exports=DH});var si=c((cXr,Cd)=>{"use strict";var kH=zd();Cd.exports=kH});var $s=c((dXr,Ld)=>{"use strict";var BH=Object.prototype.toString;Ld.exports=BH});var Ud=c((pXr,Pd)=>{"use strict";var FH=$s();function RH(r){return FH.call(r)}Pd.exports=RH});var Gd=c((yXr,Md)=>{"use strict";var VH=typeof Symbol=="function"?Symbol:void 0;Md.exports=VH});var Ws=c((mXr,Yd)=>{"use strict";var zH=Gd();Yd.exports=zH});var Jd=c((hXr,Wd)=>{"use strict";var $d=Ws(),CH=typeof $d=="function"?$d.toStringTag:"";Wd.exports=CH});var Kd=c((gXr,Xd)=>{"use strict";var LH=Xr(),zi=Jd(),Js=$s();function PH(r){var e,a,t;if(r==null)return Js.call(r);a=r[zi],e=LH(r,zi);try{r[zi]=void 0}catch{return Js.call(r)}return t=Js.call(r),e?r[zi]=a:delete r[zi],t}Xd.exports=PH});var me=c((bXr,Hd)=>{"use strict";var UH=si(),MH=Ud(),GH=Kd(),Xs;UH()?Xs=GH:Xs=MH;Hd.exports=Xs});var Qd=c((xXr,Zd)=>{"use strict";var YH=me(),Ks;function $H(r){return YH(r)==="[object Array]"}Array.isArray?Ks=Array.isArray:Ks=$H;Zd.exports=Ks});var qa=c((qXr,r0)=>{"use strict";var WH=Qd();r0.exports=WH});var a0=c((wXr,e0)=>{"use strict";var JH=qa();function XH(r){return typeof r=="object"&&r!==null&&!JH(r)}e0.exports=XH});var Ci=c((SXr,t0)=>{"use strict";var KH=a0();t0.exports=KH});var o0=c((EXr,i0)=>{"use strict";var HH=/./;i0.exports=HH});var s0=c((AXr,n0)=>{"use strict";var ZH=Ft();function QH(r,e,a){ZH(r,e,{configurable:!1,enumerable:!1,writable:!1,value:a})}n0.exports=QH});var Ir=c((_Xr,u0)=>{"use strict";var rZ=s0();u0.exports=rZ});var Hs=c((TXr,v0)=>{"use strict";function eZ(r){return typeof r=="boolean"}v0.exports=eZ});var l0=c((jXr,f0)=>{"use strict";var aZ=Boolean;f0.exports=aZ});var Vt=c((IXr,c0)=>{"use strict";var tZ=l0();c0.exports=tZ});var p0=c((OXr,d0)=>{"use strict";var iZ=Boolean.prototype.toString;d0.exports=iZ});var m0=c((NXr,y0)=>{"use strict";var oZ=p0();function nZ(r){try{return oZ.call(r),!0}catch{return!1}}y0.exports=nZ});var Zs=c((DXr,h0)=>{"use strict";var sZ=si(),uZ=me(),vZ=Vt(),fZ=m0(),lZ=sZ();function cZ(r){return typeof r=="object"?r instanceof vZ?!0:lZ?fZ(r):uZ(r)==="[object Boolean]":!1}h0.exports=cZ});var b0=c((kXr,g0)=>{"use strict";var dZ=Hs(),pZ=Zs();function yZ(r){return dZ(r)||pZ(r)}g0.exports=yZ});var pe=c((BXr,q0)=>{"use strict";var x0=Ir(),Qs=b0(),mZ=Hs(),hZ=Zs();x0(Qs,"isPrimitive",mZ);x0(Qs,"isObject",hZ);q0.exports=Qs});var S0=c((FXr,w0)=>{"use strict";function gZ(){return new Function("return this;")()}w0.exports=gZ});var A0=c((RXr,E0)=>{"use strict";var bZ=typeof self=="object"?self:null;E0.exports=bZ});var T0=c((VXr,_0)=>{"use strict";var xZ=typeof window=="object"?window:null;_0.exports=xZ});var I0=c((zXr,j0)=>{"use strict";var qZ=typeof globalThis=="object"?globalThis:null;j0.exports=qZ});var ru=c((CXr,k0)=>{"use strict";var wZ=pe().isPrimitive,SZ=pr(),EZ=S0(),O0=A0(),N0=T0(),D0=I0();function AZ(r){if(arguments.length){if(!wZ(r))throw new TypeError(SZ("invalid argument. Must provide a boolean. Value: `%s`.",r));if(r)return EZ()}if(D0)return D0;if(O0)return O0;if(N0)return N0;throw new Error("unexpected error. Unable to resolve global object.")}k0.exports=AZ});var R0=c((LXr,F0)=>{"use strict";var _Z=ru(),B0=_Z(),TZ=B0.document&&B0.document.childNodes;F0.exports=TZ});var z0=c((PXr,V0)=>{"use strict";var jZ=Int8Array;V0.exports=jZ});var L0=c((UXr,C0)=>{"use strict";var IZ=o0(),OZ=R0(),NZ=z0();function DZ(){return typeof IZ=="function"||typeof NZ=="object"||typeof OZ=="function"}C0.exports=DZ});var eu=c((MXr,P0)=>{"use strict";function kZ(){return/^\s*function\s*([^(]*)/i}P0.exports=kZ});var M0=c((GXr,U0)=>{"use strict";var BZ=eu(),FZ=BZ();U0.exports=FZ});var $0=c((YXr,Y0)=>{"use strict";var RZ=Ir(),G0=eu(),VZ=M0();RZ(G0,"REGEXP",VZ);Y0.exports=G0});var J0=c(($Xr,W0)=>{"use strict";var zZ=qa(),CZ=pr();function LZ(r){if(typeof r!="function")throw new TypeError(CZ("invalid argument. Must provide a function. Value: `%s`.",r));return e;function e(a){var t,o;if(!zZ(a)||(t=a.length,t===0))return!1;for(o=0;o<t;o++)if(r(a[o])===!1)return!1;return!0}}W0.exports=LZ});var au=c((WXr,X0)=>{"use strict";var PZ=J0();X0.exports=PZ});var H0=c((JXr,K0)=>{"use strict";function UZ(r){return r!==null&&typeof r=="object"}K0.exports=UZ});var Ko=c((XXr,Z0)=>{"use strict";var MZ=Ir(),GZ=au(),tu=H0(),YZ=GZ(tu);MZ(tu,"isObjectLikeArray",YZ);Z0.exports=tu});var rp=c((KXr,Q0)=>{"use strict";var $Z=Ko();function WZ(r){return $Z(r)&&(r._isBuffer||r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r))}Q0.exports=WZ});var Li=c((HXr,ep)=>{"use strict";var JZ=rp();ep.exports=JZ});var tp=c((ZXr,ap)=>{"use strict";var XZ=me(),KZ=$0().REGEXP,HZ=Li();function ZZ(r){var e,a,t;if(a=XZ(r).slice(8,-1),(a==="Object"||a==="Error")&&r.constructor){if(t=r.constructor,typeof t.name=="string")return t.name;if(e=KZ.exec(t.toString()),e)return e[1]}return HZ(r)?"Buffer":a}ap.exports=ZZ});var ht=c((QXr,ip)=>{"use strict";var QZ=tp();ip.exports=QZ});var np=c((rKr,op)=>{"use strict";var rQ=ht();function eQ(r){var e;return r===null?"null":(e=typeof r,e==="object"?rQ(r).toLowerCase():e)}op.exports=eQ});var up=c((eKr,sp)=>{"use strict";var aQ=ht();function tQ(r){return aQ(r).toLowerCase()}sp.exports=tQ});var ui=c((aKr,vp)=>{"use strict";var iQ=L0(),oQ=np(),nQ=up(),sQ=iQ()?nQ:oQ;vp.exports=sQ});var lp=c((tKr,fp)=>{"use strict";var uQ=ui();function vQ(r){return uQ(r)==="function"}fp.exports=vQ});var Pe=c((iKr,cp)=>{"use strict";var fQ=lp();cp.exports=fQ});var pp=c((oKr,dp)=>{"use strict";var lQ=Object;dp.exports=lQ});var zt=c((nKr,yp)=>{"use strict";var cQ=pp();yp.exports=cQ});var hp=c((sKr,mp)=>{"use strict";var dQ=Object.getPrototypeOf;mp.exports=dQ});var bp=c((uKr,gp)=>{"use strict";function pQ(r){return r.__proto__}gp.exports=pQ});var qp=c((vKr,xp)=>{"use strict";var yQ=me(),mQ=bp();function hQ(r){var e=mQ(r);return e||e===null?e:yQ(r.constructor)==="[object Function]"?r.constructor.prototype:r instanceof Object?Object.prototype:null}xp.exports=hQ});var Sp=c((fKr,wp)=>{"use strict";var gQ=Pe(),bQ=hp(),xQ=qp(),iu;gQ(Object.getPrototypeOf)?iu=bQ:iu=xQ;wp.exports=iu});var Ap=c((lKr,Ep)=>{"use strict";var qQ=zt(),wQ=Sp();function SQ(r){return r==null?null:(r=qQ(r),wQ(r))}Ep.exports=SQ});var Ct=c((cKr,_p)=>{"use strict";var EQ=Ap();_p.exports=EQ});var Ip=c((dKr,jp)=>{"use strict";var AQ=Ci(),Tp=Pe(),_Q=Ct(),Ho=Xr(),TQ=me(),jQ=Object.prototype;function IQ(r){var e;for(e in r)if(!Ho(r,e))return!1;return!0}function OQ(r){var e;return AQ(r)?(e=_Q(r),e?!Ho(r,"constructor")&&Ho(e,"constructor")&&Tp(e.constructor)&&TQ(e.constructor)==="[object Function]"&&Ho(e,"isPrototypeOf")&&Tp(e.isPrototypeOf)&&(e===jQ||IQ(r)):!0):!1}jp.exports=OQ});var ne=c((pKr,Op)=>{"use strict";var NQ=Ip();Op.exports=NQ});var ou=c((yKr,Np)=>{"use strict";function DQ(r){return typeof r=="number"}Np.exports=DQ});var kp=c((mKr,Dp)=>{"use strict";Dp.exports=Number});var Zo=c((hKr,Bp)=>{"use strict";var kQ=kp();Bp.exports=kQ});var Rp=c((gKr,Fp)=>{"use strict";var BQ=Zo(),FQ=BQ.prototype.toString;Fp.exports=FQ});var zp=c((bKr,Vp)=>{"use strict";var RQ=Rp();function VQ(r){try{return RQ.call(r),!0}catch{return!1}}Vp.exports=VQ});var nu=c((xKr,Cp)=>{"use strict";var zQ=si(),CQ=me(),LQ=Zo(),PQ=zp(),UQ=zQ();function MQ(r){return typeof r=="object"?r instanceof LQ?!0:UQ?PQ(r):CQ(r)==="[object Number]":!1}Cp.exports=MQ});var Pp=c((qKr,Lp)=>{"use strict";var GQ=ou(),YQ=nu();function $Q(r){return GQ(r)||YQ(r)}Lp.exports=$Q});var Ge=c((wKr,Mp)=>{"use strict";var Up=Ir(),su=Pp(),WQ=ou(),JQ=nu();Up(su,"isPrimitive",WQ);Up(su,"isObject",JQ);Mp.exports=su});var Pi=c((SKr,Gp)=>{"use strict";var XQ=Number.POSITIVE_INFINITY;Gp.exports=XQ});var Qo=c((EKr,Yp)=>{"use strict";var KQ=Zo(),HQ=KQ.NEGATIVE_INFINITY;Yp.exports=HQ});var Wp=c((AKr,$p)=>{"use strict";var ZQ=Math.floor;$p.exports=ZQ});var ea=c((_Kr,Jp)=>{"use strict";var QQ=Wp();Jp.exports=QQ});var Kp=c((TKr,Xp)=>{"use strict";var rrr=ea();function err(r){return rrr(r)===r}Xp.exports=err});var wa=c((jKr,Hp)=>{"use strict";var arr=Kp();Hp.exports=arr});var uu=c((IKr,Zp)=>{"use strict";var trr=Pi(),irr=Qo(),orr=wa();function nrr(r){return r<trr&&r>irr&&orr(r)}Zp.exports=nrr});var vu=c((OKr,Qp)=>{"use strict";var srr=Ge().isPrimitive,urr=uu();function vrr(r){return srr(r)&&urr(r)}Qp.exports=vrr});var fu=c((NKr,ry)=>{"use strict";var frr=Ge().isObject,lrr=uu();function crr(r){return frr(r)&&lrr(r.valueOf())}ry.exports=crr});var ay=c((DKr,ey)=>{"use strict";var drr=vu(),prr=fu();function yrr(r){return drr(r)||prr(r)}ey.exports=yrr});var ve=c((kKr,iy)=>{"use strict";var ty=Ir(),lu=ay(),mrr=vu(),hrr=fu();ty(lu,"isPrimitive",mrr);ty(lu,"isObject",hrr);iy.exports=lu});var cu=c((BKr,oy)=>{"use strict";var grr=ve().isPrimitive;function brr(r){return grr(r)&&r>=0}oy.exports=brr});var du=c((FKr,ny)=>{"use strict";var xrr=ve().isObject;function qrr(r){return xrr(r)&&r.valueOf()>=0}ny.exports=qrr});var uy=c((RKr,sy)=>{"use strict";var wrr=cu(),Srr=du();function Err(r){return wrr(r)||Srr(r)}sy.exports=Err});var ge=c((VKr,fy)=>{"use strict";var vy=Ir(),pu=uy(),Arr=cu(),_rr=du();vy(pu,"isPrimitive",Arr);vy(pu,"isObject",_rr);fy.exports=pu});var dy=c((zKr,cy)=>{"use strict";var Trr=ru(),ly=Trr();function jrr(){return typeof ly.BigInt=="function"&&typeof BigInt=="function"&&typeof ly.BigInt("1")=="bigint"&&typeof BigInt("1")=="bigint"}cy.exports=jrr});var yu=c((CKr,py)=>{"use strict";var Irr=dy();py.exports=Irr});var my=c((LKr,yy)=>{"use strict";var Orr=Ft();function Nrr(r,e,a){Orr(r,e,{configurable:!1,enumerable:!1,get:a})}yy.exports=Nrr});var gt=c((PKr,hy)=>{"use strict";var Drr=my();hy.exports=Drr});var gy=c((UKr,krr)=>{krr.exports={binary:1,bool:1,complex64:8,complex128:16,float16:2,bfloat16:2,float32:4,float64:8,float128:16,generic:null,int8:1,int16:2,int32:4,int64:8,int128:16,int256:32,uint8:1,uint8c:1,uint16:2,uint32:4,uint64:8,uint128:16,uint256:32}});var xy=c((MKr,by)=>{"use strict";var Brr=gy();function Frr(r){return Brr[r]||null}by.exports=Frr});var bt=c((GKr,qy)=>{"use strict";var Rrr=xy();qy.exports=Rrr});var Sy=c((YKr,wy)=>{"use strict";function Vrr(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]<0&&(e+=1);return e===0?1:e===r.length?-1:0}wy.exports=Vrr});var Sa=c(($Kr,Ey)=>{"use strict";var zrr=Sy();Ey.exports=zrr});var _y=c((WKr,Ay)=>{"use strict";function Crr(r){return Math.abs(r)}Ay.exports=Crr});var vi=c((JKr,Ty)=>{"use strict";var Lrr=_y();Ty.exports=Lrr});var Oy=c((XKr,Iy)=>{"use strict";var jy=vi();function Prr(r){var e,a,t,o,i,n;if(a=r.length,a===0)return 0;for(e=!0,t=!0,o=jy(r[0]),n=1;n<a;n++)if(i=jy(r[n]),e&&i<o?e=!1:t&&i>o&&(t=!1),t||e)o=i;else return 0;return t&&e?3:t?1:2}Iy.exports=Prr});var Lt=c((KKr,Ny)=>{"use strict";var Urr=Oy();Ny.exports=Urr});var ky=c((HKr,Dy)=>{"use strict";function Mrr(r,e){return e&&(r===2||r===3)}Dy.exports=Mrr});var Fy=c((ZKr,By)=>{"use strict";function Grr(r,e){return e&&(r===1||r===3)}By.exports=Grr});var Vy=c((QKr,Ry)=>{"use strict";function Yrr(r,e,a){var t,o,i,n,s;for(t=r.length,o=a,i=a,s=0;s<t;s++){if(r[s]===0)return[a,a];n=e[s],n>0?i+=n*(r[s]-1):n<0&&(o+=n*(r[s]-1))}return[o,i]}Ry.exports=Yrr});var Cy=c((rHr,zy)=>{"use strict";function $rr(r,e,a,t){var o,i,n,s,u;for(o=r.length,i=a,n=a,u=0;u<o;u++){if(r[u]===0)return t[0]=a,t[1]=a,t;s=e[u],s>0?n+=s*(r[u]-1):s<0&&(i+=s*(r[u]-1))}return t[0]=i,t[1]=n,t}zy.exports=$rr});var et=c((eHr,Py)=>{"use strict";var Wrr=Ir(),Ly=Vy(),Jrr=Cy();Wrr(Ly,"assign",Jrr);Py.exports=Ly});var My=c((aHr,Uy)=>{"use strict";var Xrr=et();function Krr(r,e,a,t,o){var i;return r===0||o===0?!1:(i=Xrr(e,a,t),r===i[1]-i[0]+1)}Uy.exports=Krr});var Yy=c((tHr,Gy)=>{"use strict";function Hrr(r){return{ROW_MAJOR_CONTIGUOUS:r.ROW_MAJOR_CONTIGUOUS,COLUMN_MAJOR_CONTIGUOUS:r.COLUMN_MAJOR_CONTIGUOUS,READONLY:r.READONLY}}Gy.exports=Hrr});var Wy=c((iHr,$y)=>{"use strict";function Zrr(r){var e,a,t,o,i,n;if(t=this._ndims,t===0)return this._accessors?this._buffer.get(this._offset):this._buffer[this._offset];if(this._flags.ROW_MAJOR_CONTIGUOUS||this._flags.COLUMN_MAJOR_CONTIGUOUS){if(this._iterationOrder===1)return this._accessors?this._buffer.get(this._offset+r):this._buffer[this._offset+r];if(this._iterationOrder===-1)return this._accessors?this._buffer.get(this.offset-r):this._buffer[this._offset-r]}if(a=this._shape,e=this._strides,o=this._offset,this._order==="column-major"){for(n=0;n<t;n++)i=r%a[n],r-=i,r/=a[n],o+=i*e[n];return this._accessors?this._buffer.get(o):this._buffer[o]}for(n=t-1;n>=0;n--)i=r%a[n],r-=i,r/=a[n],o+=i*e[n];return this._accessors?this._buffer.get(o):this._buffer[o]}$y.exports=Zrr});var Xy=c((oHr,Jy)=>{"use strict";function Qrr(r,e){var a,t,o,i,n,s;if(o=this._ndims,o===0)return this._accessors?this._buffer.set(r,this._offset):this._buffer[this._offset]=r,this;if(this._flags.ROW_MAJOR_CONTIGUOUS||this._flags.COLUMN_MAJOR_CONTIGUOUS){if(this._iterationOrder===1)return this._accessors?this._buffer.set(e,this._offset+r):this._buffer[this._offset+r]=e,this;if(this._iterationOrder===-1)return this._accessors?this._buffer.set(e,this._offset-r):this._buffer[this._offset-r]=e,this}if(t=this._shape,a=this._strides,i=this._offset,this._order==="column-major"){for(s=0;s<o;s++)n=r%t[s],r-=n,r/=t[s],i+=n*a[s];return this._accessors?this._buffer.set(e,i):this._buffer[i]=e,this}for(s=o-1;s>=0;s--)n=r%t[s],r-=n,r/=t[s],i+=n*a[s];return this._accessors?this._buffer.set(e,i):this._buffer[i]=e,this}Jy.exports=Qrr});var Hy=c((nHr,Ky)=>{"use strict";function rer(){var r,e;for(r=this._offset,e=0;e<arguments.length-1;e++)r+=this._strides[e]*arguments[e];return this._accessors?this._buffer.set(arguments[e],r):this._buffer[r]=arguments[e],this}Ky.exports=rer});var Qy=c((sHr,Zy)=>{"use strict";function eer(){var r,e;for(r=this._offset,e=0;e<arguments.length;e++)r+=this._strides[e]*arguments[e];return this._accessors?this._buffer.get(r):this._buffer[r]}Zy.exports=eer});var em=c((uHr,rm)=>{"use strict";function aer(r){return r.re}rm.exports=aer});var Pt=c((vHr,am)=>{"use strict";var ter=em();am.exports=ter});var im=c((fHr,tm)=>{"use strict";function ier(r){return r.im}tm.exports=ier});var Ut=c((lHr,om)=>{"use strict";var oer=im();om.exports=oer});var sm=c((cHr,nm)=>{"use strict";var ner=Pt(),ser=Ut();function uer(){var r,e,a,t;for(e=this._length,r={},r.type="ndarray",r.dtype=this.dtype,r.flags={READONLY:this._flags.READONLY},r.order=this._order,r.shape=this._shape.slice(),r.strides=this._strides.slice(),t=0;t<e;t++)r.strides[t]<0&&(r.strides[t]*=-1);if(r.data=[],r.dtype==="complex64"||r.dtype==="complex128")for(t=0;t<e;t++)a=this.iget(t),r.data.push(ner(a),ser(a));else for(t=0;t<e;t++)r.data.push(this.iget(t));return r}nm.exports=uer});var mu=c((dHr,um)=>{"use strict";function ver(r){return typeof r=="string"}um.exports=ver});var fm=c((pHr,vm)=>{"use strict";var fer=String.prototype.valueOf;vm.exports=fer});var cm=c((yHr,lm)=>{"use strict";var ler=fm();function cer(r){try{return ler.call(r),!0}catch{return!1}}lm.exports=cer});var hu=c((mHr,dm)=>{"use strict";var der=si(),per=me(),yer=cm(),mer=der();function her(r){return typeof r=="object"?r instanceof String?!0:mer?yer(r):per(r)==="[object String]":!1}dm.exports=her});var ym=c((hHr,pm)=>{"use strict";var ger=mu(),ber=hu();function xer(r){return ger(r)||ber(r)}pm.exports=xer});var La=c((gHr,hm)=>{"use strict";var mm=Ir(),gu=ym(),qer=mu(),wer=hu();mm(gu,"isPrimitive",qer);mm(gu,"isObject",wer);hm.exports=gu});var xm=c((bHr,bm)=>{"use strict";var Ser=La().isPrimitive,Eer=pr(),gm=/[-\/\\^$*+?.()|[\]{}]/g;function Aer(r){var e,a,t;if(!Ser(r))throw new TypeError(Eer("invalid argument. Must provide a regular expression string. Value: `%s`.",r));if(r[0]==="/")for(e=r.length,t=e-1;t>=0&&r[t]!=="/";t--);return t===void 0||t<=0?r.replace(gm,"\\$&"):(a=r.substring(1,t),a=a.replace(gm,"\\$&"),r=r[0]+a+r.substring(t),r)}bm.exports=Aer});var wm=c((xHr,qm)=>{"use strict";var _er=xm();qm.exports=_er});var Em=c((qHr,Sm)=>{"use strict";var Ter=RegExp.prototype.exec;Sm.exports=Ter});var _m=c((wHr,Am)=>{"use strict";var jer=Em();function Ier(r){try{return jer.call(r),!0}catch{return!1}}Am.exports=Ier});var jm=c((SHr,Tm)=>{"use strict";var Oer=si(),Ner=me(),Der=_m(),ker=Oer();function Ber(r){return typeof r=="object"?r instanceof RegExp?!0:ker?Der(r):Ner(r)==="[object RegExp]":!1}Tm.exports=Ber});var Om=c((EHr,Im)=>{"use strict";var Fer=jm();Im.exports=Fer});var Dm=c((AHr,Nm)=>{"use strict";function Rer(r,e,a){return r.replace(e,a)}Nm.exports=Rer});var at=c((_Hr,km)=>{"use strict";var Ver=Dm();km.exports=Ver});var Fm=c((THr,Bm)=>{"use strict";var zer=wm(),Cer=Pe(),bu=La().isPrimitive,Ler=Om(),xu=pr(),Per=at();function Uer(r,e,a){if(!bu(r))throw new TypeError(xu("invalid argument. First argument must be a string. Value: `%s`.",r));if(bu(e))e=new RegExp(zer(e),"g");else if(!Ler(e))throw new TypeError(xu("invalid argument. Second argument must be a string or regular expression. Value: `%s`.",e));if(!bu(a)&&!Cer(a))throw new TypeError(xu("invalid argument. Third argument must be a string or replacement function. Value: `%s`.",a));return Per(r,e,a)}Bm.exports=Uer});var Vm=c((jHr,Rm)=>{"use strict";var Mer=Fm();Rm.exports=Mer});var Cm=c((IHr,zm)=>{"use strict";var Ger=Vm(),qu=Pt(),wu=Ut(),Yer={int8:"new Int8Array( [ {{data}} ] )",uint8:"new Uint8Array( [ {{data}} ] )",uint8c:"new Uint8ClampedArray( [ {{data}} ] )",int16:"new Int16Array( [ {{data}} ] )",uint16:"new Uint16Array( [ {{data}} ] )",int32:"new Int32Array( [ {{data}} ] )",uint32:"new Uint32Array( [ {{data}} ] )",float32:"new Float32Array( [ {{data}} ] )",float64:"new Float64Array( [ {{data}} ] )",generic:"[ {{data}} ]",binary:"new Buffer( [ {{data}} ] )",complex64:"new Complex64Array( [ {{data}} ] )",complex128:"new Complex128Array( [ {{data}} ] )"};function $er(){var r,e,a,t,o,i,n;if(e=this._shape.length,o=this._dtype,t="ndarray( '"+o+"', ",r="",this._length<=100)if(o==="complex64"||o==="complex128")for(n=0;n<this._length;n++)i=this.iget(n),r+=qu(i)+", "+wu(i),n<this._length-1&&(r+=", ");else for(n=0;n<this._length;n++)r+=this.iget(n),n<this._length-1&&(r+=", ");else{if(o==="complex64"||o==="complex128")for(n=0;n<3;n++)i=this.iget(n),r+=qu(i)+", "+wu(i),n<2&&(r+=", ");else for(n=0;n<3;n++)r+=this.iget(n),n<2&&(r+=", ");if(r+=", ..., ",o==="complex64"||o==="complex128")for(n=2;n>=0;n--)i=this.iget(this._length-1-n),r+=qu(i)+", "+wu(i),n>0&&(r+=", ");else for(n=2;n>=0;n--)r+=this.iget(this._length-1-n),n>0&&(r+=", ")}if(a=Yer[this.dtype],t+=Ger(a,"{{data}}",r),t+=", ",e===0?t+="[]":t+="[ "+this._shape.join(", ")+" ]",t+=", ",t+="[ ",e===0)t+="0";else for(n=0;n<e;n++)this._strides[n]<0?t+=-this._strides[n]:t+=this._strides[n],n<e-1&&(t+=", ");return t+=" ]",t+=", ",t+="0",t+=", ",t+="'"+this._order+"'",t+=" )",t}zm.exports=$er});var Pm=c((OHr,Lm)=>{"use strict";var Wer=me(),Jer=typeof Uint8Array=="function";function Xer(r){return Jer&&r instanceof Uint8Array||Wer(r)==="[object Uint8Array]"}Lm.exports=Xer});var Mm=c((NHr,Um)=>{"use strict";var Ker=Pm();Um.exports=Ker});var Su=c((DHr,Gm)=>{"use strict";var Her=255;Gm.exports=Her});var $m=c((kHr,Ym)=>{"use strict";var Zer=typeof Uint8Array=="function"?Uint8Array:null;Ym.exports=Zer});var Xm=c((BHr,Jm)=>{"use strict";var Qer=Mm(),Eu=Su(),Wm=$m();function rar(){var r,e;if(typeof Wm!="function")return!1;try{e=[1,3.14,-3.14,Eu+1,Eu+2],e=new Wm(e),r=Qer(e)&&e[0]===1&&e[1]===3&&e[2]===Eu-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}Jm.exports=rar});var Hm=c((FHr,Km)=>{"use strict";var ear=Xm();Km.exports=ear});var Qm=c((RHr,Zm)=>{"use strict";var aar=typeof Uint8Array=="function"?Uint8Array:void 0;Zm.exports=aar});var eh=c((VHr,rh)=>{"use strict";function tar(){throw new Error("not implemented")}rh.exports=tar});var va=c((zHr,ah)=>{"use strict";var iar=Hm(),oar=Qm(),nar=eh(),Au;iar()?Au=oar:Au=nar;ah.exports=Au});var ih=c((CHr,th)=>{"use strict";var sar=me(),uar=typeof Uint16Array=="function";function far(r){return uar&&r instanceof Uint16Array||sar(r)==="[object Uint16Array]"}th.exports=far});var nh=c((LHr,oh)=>{"use strict";var lar=ih();oh.exports=lar});var _u=c((PHr,sh)=>{"use strict";var car=65535;sh.exports=car});var vh=c((UHr,uh)=>{"use strict";var dar=typeof Uint16Array=="function"?Uint16Array:null;uh.exports=dar});var ch=c((MHr,lh)=>{"use strict";var par=nh(),Tu=_u(),fh=vh();function yar(){var r,e;if(typeof fh!="function")return!1;try{e=[1,3.14,-3.14,Tu+1,Tu+2],e=new fh(e),r=par(e)&&e[0]===1&&e[1]===3&&e[2]===Tu-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}lh.exports=yar});var ph=c((GHr,dh)=>{"use strict";var mar=ch();dh.exports=mar});var mh=c((YHr,yh)=>{"use strict";var har=typeof Uint16Array=="function"?Uint16Array:void 0;yh.exports=har});var gh=c(($Hr,hh)=>{"use strict";function gar(){throw new Error("not implemented")}hh.exports=gar});var fi=c((WHr,bh)=>{"use strict";var bar=ph(),xar=mh(),qar=gh(),ju;bar()?ju=xar:ju=qar;bh.exports=ju});var qh=c((JHr,xh)=>{"use strict";var war=va(),Sar=fi(),Ear={uint16:Sar,uint8:war};xh.exports=Ear});var Ah=c((XHr,Eh)=>{"use strict";var wh=qh(),Sh;function Aar(){var r,e;return r=new wh.uint16(1),r[0]=4660,e=new wh.uint8(r.buffer),e[0]===52}Sh=Aar();Eh.exports=Sh});var Mt=c((KHr,_h)=>{"use strict";var _ar=Ah();_h.exports=_ar});var jh=c((HHr,Th)=>{"use strict";var Tar=me(),jar=typeof ArrayBuffer=="function";function Iar(r){return jar&&r instanceof ArrayBuffer||Tar(r)==="[object ArrayBuffer]"}Th.exports=Iar});var Ui=c((ZHr,Ih)=>{"use strict";var Oar=jh();Ih.exports=Oar});var Nh=c((QHr,Oh)=>{"use strict";var Nar=me(),Dar=typeof Float64Array=="function";function kar(r){return Dar&&r instanceof Float64Array||Nar(r)==="[object Float64Array]"}Oh.exports=kar});var kh=c((rZr,Dh)=>{"use strict";var Bar=Nh();Dh.exports=Bar});var Fh=c((eZr,Bh)=>{"use strict";var Far=typeof Float64Array=="function"?Float64Array:null;Bh.exports=Far});var zh=c((aZr,Vh)=>{"use strict";var Rar=kh(),Rh=Fh();function Var(){var r,e;if(typeof Rh!="function")return!1;try{e=new Rh([1,3.14,-3.14,NaN]),r=Rar(e)&&e[0]===1&&e[1]===3.14&&e[2]===-3.14&&e[3]!==e[3]}catch{r=!1}return r}Vh.exports=Var});var Lh=c((tZr,Ch)=>{"use strict";var zar=zh();Ch.exports=zar});var Uh=c((iZr,Ph)=>{"use strict";var Car=typeof Float64Array=="function"?Float64Array:void 0;Ph.exports=Car});var Gh=c((oZr,Mh)=>{"use strict";function Lar(){throw new Error("not implemented")}Mh.exports=Lar});var xt=c((nZr,Yh)=>{"use strict";var Par=Lh(),Uar=Uh(),Mar=Gh(),Iu;Par()?Iu=Uar:Iu=Mar;Yh.exports=Iu});var Wh=c((sZr,$h)=>{"use strict";var Gar=typeof ArrayBuffer=="function"?ArrayBuffer:null;$h.exports=Gar});var Xh=c((uZr,Jh)=>{"use strict";var Yar=Ui(),$ar=xt(),rn=Wh();function War(){var r,e,a;if(typeof rn!="function")return!1;try{a=new rn(16),r=Yar(a)&&typeof rn.isView=="function",r&&(e=new $ar(a),e[0]=-3.14,e[1]=NaN,r=r&&rn.isView(e)&&a.byteLength===16&&e[0]===-3.14&&e[1]!==e[1])}catch{r=!1}return r}Jh.exports=War});var Hh=c((vZr,Kh)=>{"use strict";var Jar=Xh();Kh.exports=Jar});var Qh=c((fZr,Zh)=>{"use strict";var Xar=typeof ArrayBuffer=="function"?ArrayBuffer:void 0;Zh.exports=Xar});var e1=c((lZr,r1)=>{"use strict";function Kar(){throw new Error("not implemented")}r1.exports=Kar});var li=c((cZr,a1)=>{"use strict";var Har=Hh(),Zar=Qh(),Qar=e1(),Ou;Har()?Ou=Zar:Ou=Qar;a1.exports=Ou});var i1=c((dZr,t1)=>{"use strict";var rtr=me(),etr=typeof DataView=="function";function atr(r){return etr&&r instanceof DataView||rtr(r)==="[object DataView]"}t1.exports=atr});var n1=c((pZr,o1)=>{"use strict";var ttr=i1();o1.exports=ttr});var u1=c((yZr,s1)=>{"use strict";var itr=typeof DataView=="function"?DataView:null;s1.exports=itr});var l1=c((mZr,f1)=>{"use strict";var otr=n1(),ntr=li(),v1=u1();function str(){var r,e,a;if(typeof v1!="function")return!1;try{a=new ntr(24),e=new v1(a,8),r=otr(e)&&typeof e.getFloat64=="function"&&typeof e.setFloat64=="function",r&&(e.setFloat64(0,-3.14),e.setFloat64(8,NaN),r=r&&e.buffer===a&&e.byteLength===16&&e.byteOffset===8&&e.getFloat64(0)===-3.14&&e.getFloat64(8)!==e.getFloat64(8))}catch{r=!1}return r}f1.exports=str});var d1=c((hZr,c1)=>{"use strict";var utr=l1();c1.exports=utr});var y1=c((gZr,p1)=>{"use strict";var vtr=typeof DataView=="function"?DataView:void 0;p1.exports=vtr});var h1=c((bZr,m1)=>{"use strict";function ftr(){throw new Error("not implemented")}m1.exports=ftr});var Gt=c((xZr,g1)=>{"use strict";var ltr=d1(),ctr=y1(),dtr=h1(),Nu;ltr()?Nu=ctr:Nu=dtr;g1.exports=Nu});var x1=c((qZr,b1)=>{"use strict";var ptr=typeof BigInt=="function"?BigInt:void 0;b1.exports=ptr});var Du=c((wZr,q1)=>{"use strict";var ytr=x1();q1.exports=ytr});var w1=c((SZr,mtr)=>{mtr.exports={all:["binary","bool","complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["binary","bool","complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],boolean:["bool"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]}});var _1=c((EZr,A1)=>{"use strict";var htr=at(),S1=w1(),E1=/_and_generic$/;function gtr(){var r,e,a;return arguments.length===0?S1.all.slice():(a=!1,r=arguments[0],E1.test(r)&&(r=htr(r,E1,""),r!=="all"&&(a=!0)),e=S1[r],e=e?e.slice():[],a&&e.length>0&&e.push("generic"),e)}A1.exports=gtr});var j1=c((AZr,T1)=>{"use strict";function btr(){return{bool:0,int8:1,uint8:2,uint8c:3,int16:4,uint16:5,int32:6,uint32:7,int64:8,uint64:9,float32:10,float64:11,complex64:12,complex128:13,binary:14,generic:15,notype:17,userdefined_type:256}}T1.exports=btr});var en=c((_Zr,I1)=>{"use strict";function xtr(r){return Object.keys(Object(r))}I1.exports=xtr});var N1=c((TZr,O1)=>{"use strict";var qtr=en();function wtr(){return(qtr(arguments)||"").length!==2}function Str(){return wtr(1,2)}O1.exports=Str});var k1=c((jZr,D1)=>{"use strict";var Etr=typeof Object.keys<"u";D1.exports=Etr});var ku=c((IZr,B1)=>{"use strict";var Atr=me();function _tr(r){return Atr(r)==="[object Arguments]"}B1.exports=_tr});var V1=c((OZr,R1)=>{"use strict";var Ttr=ku(),F1;function jtr(){return Ttr(arguments)}F1=jtr();R1.exports=F1});var C1=c((NZr,z1)=>{"use strict";function Itr(r){return r!==r}z1.exports=Itr});var Bu=c((DZr,L1)=>{"use strict";var Otr=C1();L1.exports=Otr});var Fu=c((kZr,P1)=>{"use strict";var Ntr=Ge().isPrimitive,Dtr=Bu();function ktr(r){return Ntr(r)&&Dtr(r)}P1.exports=ktr});var Ru=c((BZr,U1)=>{"use strict";var Btr=Ge().isObject,Ftr=Bu();function Rtr(r){return Btr(r)&&Ftr(r.valueOf())}U1.exports=Rtr});var G1=c((FZr,M1)=>{"use strict";var Vtr=Fu(),ztr=Ru();function Ctr(r){return Vtr(r)||ztr(r)}M1.exports=Ctr});var zu=c((RZr,$1)=>{"use strict";var Y1=Ir(),Vu=G1(),Ltr=Fu(),Ptr=Ru();Y1(Vu,"isPrimitive",Ltr);Y1(Vu,"isObject",Ptr);$1.exports=Vu});var Cu=c((VZr,W1)=>{"use strict";var Utr=Object.prototype.propertyIsEnumerable;W1.exports=Utr});var K1=c((zZr,X1)=>{"use strict";var Mtr=Cu(),J1;function Gtr(){return!Mtr.call("beep","0")}J1=Gtr();X1.exports=J1});var Z1=c((CZr,H1)=>{"use strict";var Ytr=La(),$tr=zu().isPrimitive,Wtr=ve().isPrimitive,Jtr=Cu(),Xtr=K1();function Ktr(r,e){var a;return r==null?!1:(a=Jtr.call(r,e),!a&&Xtr&&Ytr(r)?(e=+e,!$tr(e)&&Wtr(e)&&e>=0&&e<r.length):a)}H1.exports=Ktr});var Mi=c((LZr,Q1)=>{"use strict";var Htr=Z1();Q1.exports=Htr});var an=c((PZr,rg)=>{"use strict";var Ztr=4294967295;rg.exports=Ztr});var ag=c((UZr,eg)=>{"use strict";var Qtr=Xr(),rir=Mi(),eir=qa(),air=wa(),tir=an();function iir(r){return r!==null&&typeof r=="object"&&!eir(r)&&typeof r.length=="number"&&air(r.length)&&r.length>=0&&r.length<=tir&&Qtr(r,"callee")&&!rir(r,"callee")}eg.exports=iir});var Pu=c((MZr,tg)=>{"use strict";var oir=V1(),nir=ku(),sir=ag(),Lu;oir?Lu=nir:Lu=sir;tg.exports=Lu});var ng=c((GZr,og)=>{"use strict";var uir=Pu(),ig=en(),vir=Array.prototype.slice;function fir(r){return uir(r)?ig(vir.call(r)):ig(r)}og.exports=fir});var ug=c((YZr,sg)=>{"use strict";function lir(){}sg.exports=lir});var fg=c(($Zr,vg)=>{"use strict";var cir=ug();vg.exports=cir});var cg=c((WZr,lg)=>{"use strict";var dir=Mi(),pir=fg(),yir=dir(pir,"prototype");lg.exports=yir});var pg=c((JZr,dg)=>{"use strict";var mir=Mi(),hir={toString:null},gir=!mir(hir,"toString");dg.exports=gir});var mg=c((XZr,yg)=>{"use strict";var bir=9007199254740991;yg.exports=bir});var gg=c((KZr,hg)=>{"use strict";var xir=wa(),qir=mg();function wir(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&xir(r.length)&&r.length>=0&&r.length<=qir}hg.exports=wir});var De=c((HZr,bg)=>{"use strict";var Sir=gg();bg.exports=Sir});var Sg=c((ZZr,wg)=>{"use strict";var xg=zu(),Eir=De(),Air=La().isPrimitive,_ir=ve().isPrimitive,qg=pr();function Tir(r,e,a){var t,o;if(!Eir(r)&&!Air(r))throw new TypeError(qg("invalid argument. First argument must be an array-like object. Value: `%s`.",r));if(t=r.length,t===0)return-1;if(arguments.length===3){if(!_ir(a))throw new TypeError(qg("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(a>=0){if(a>=t)return-1;o=a}else o=t+a,o<0&&(o=0)}else o=0;if(xg(e)){for(;o<t;o++)if(xg(r[o]))return o}else for(;o<t;o++)if(r[o]===e)return o;return-1}wg.exports=Tir});var Ag=c((QZr,Eg)=>{"use strict";var jir=Sg();Eg.exports=jir});var Uu=c((rQr,_g)=>{"use strict";function Iir(r){return r.constructor&&r.constructor.prototype===r}_g.exports=Iir});var Tg=c((eQr,Oir)=>{Oir.exports=["console","external","frame","frameElement","frames","innerHeight","innerWidth","outerHeight","outerWidth","pageXOffset","pageYOffset","parent","scrollLeft","scrollTop","scrollX","scrollY","self","webkitIndexedDB","webkitStorageInfo","window"]});var Ig=c((aQr,jg)=>{"use strict";var Nir=typeof window>"u"?void 0:window;jg.exports=Nir});var kg=c((tQr,Dg)=>{"use strict";var Dir=Xr(),kir=Ag(),Og=ui(),Bir=Uu(),Fir=Tg(),ci=Ig(),Ng;function Rir(){var r;if(Og(ci)==="undefined")return!1;for(r in ci)try{kir(Fir,r)===-1&&Dir(ci,r)&&ci[r]!==null&&Og(ci[r])==="object"&&Bir(ci[r])}catch{return!0}return!1}Ng=Rir();Dg.exports=Ng});var Fg=c((iQr,Bg)=>{"use strict";var Vir=typeof window<"u";Bg.exports=Vir});var zg=c((oQr,Vg)=>{"use strict";var zir=kg(),Rg=Uu(),Cir=Fg();function Lir(r){if(Cir===!1&&!zir)return Rg(r);try{return Rg(r)}catch{return!1}}Vg.exports=Lir});var Cg=c((nQr,Pir)=>{Pir.exports=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]});var Ug=c((sQr,Pg)=>{"use strict";var Uir=Ko(),Mu=Xr(),Mir=Pu(),Gir=cg(),Yir=pg(),$ir=zg(),Lg=Cg();function Wir(r){var e,a,t,o,i,n,s;if(o=[],Mir(r)){for(s=0;s<r.length;s++)o.push(s.toString());return o}if(typeof r=="string"){if(r.length>0&&!Mu(r,"0"))for(s=0;s<r.length;s++)o.push(s.toString())}else{if(t=typeof r=="function",t===!1&&!Uir(r))return o;a=Gir&&t}for(i in r)!(a&&i==="prototype")&&Mu(r,i)&&o.push(String(i));if(Yir)for(e=$ir(r),s=0;s<Lg.length;s++)n=Lg[s],!(e&&n==="constructor")&&Mu(r,n)&&o.push(String(n));return o}Pg.exports=Wir});var Gg=c((uQr,Mg)=>{"use strict";var Jir=N1(),Xir=k1(),Kir=en(),Hir=ng(),Zir=Ug(),tn;Xir?Jir()?tn=Hir:tn=Kir:tn=Zir;Mg.exports=tn});var Ea=c((vQr,Yg)=>{"use strict";var Qir=Gg();Yg.exports=Qir});var Wg=c((fQr,$g)=>{"use strict";var ror=Rt(),eor=Ea();function aor(r,e){var a,t,o;for(a=eor(e),o=0;o<a.length;o++)t=a[o],ror(r,t,e[t]);return r}$g.exports=aor});var ke=c((lQr,Xg)=>{"use strict";var tor=Ir(),Gu=_1(),Jg=j1(),ior=Wg();tor(Gu,"enum",Jg);ior(Gu,Jg());Xg.exports=Gu});var Kg=c((cQr,oor)=>{oor.exports=["row-major","column-major"]});var Zg=c((dQr,Hg)=>{"use strict";var nor=Kg();function sor(){return nor.slice()}Hg.exports=sor});var Qg=c((pQr,uor)=>{uor.exports=["row-major","column-major"]});var e2=c((yQr,r2)=>{"use strict";var vor=Qg();function lor(){return vor.slice()}r2.exports=lor});var t2=c((mQr,a2)=>{"use strict";function cor(){return{"row-major":101,"column-major":102}}a2.exports=cor});var Yu=c((hQr,o2)=>{"use strict";var dor=Ir(),i2=e2(),por=t2();dor(i2,"enum",por);o2.exports=i2});var u2=c((gQr,s2)=>{"use strict";var yor=Yu().enum,n2=yor();function mor(){return{"row-major":n2["row-major"],"column-major":n2["column-major"]}}s2.exports=mor});var Yt=c((bQr,f2)=>{"use strict";var hor=Ir(),v2=Zg(),gor=u2();hor(v2,"enum",gor);f2.exports=v2});var l2=c((xQr,bor)=>{bor.exports=["throw","normalize","clamp","wrap"]});var d2=c((qQr,c2)=>{"use strict";var xor=l2();function qor(){return xor.slice()}c2.exports=qor});var y2=c((wQr,p2)=>{"use strict";function wor(){return{throw:1,clamp:2,wrap:3,normalize:4}}p2.exports=wor});var $t=c((SQr,h2)=>{"use strict";var Sor=Ir(),m2=d2(),Eor=y2();Sor(m2,"enum",Eor);h2.exports=m2});var x2=c((EQr,b2)=>{"use strict";var qt=Mt(),Aor=li(),_or=Gt(),Gi=Du(),Tor=ke().enum,jor=Yt().enum,Ior=$t().enum,Oor=Tor(),Nor=jor(),g2=Ior();function Dor(){var r,e,a,t,o,i,n,s,u,v,f,l,p,m;if(u=this._mode||"throw",n=this._submode||[u],l=this._ndims,p=n.length,a=33+l*16+p,s=this.__meta_dataview__,s&&s.byteLength===a)return s;for(s=new _or(new Aor(a)),o=this._shape,i=this._strides,t=this._dtype,r=this._bytesPerElement,v=0,s.setInt8(v,qt?1:0),v+=1,s.setInt16(v,Oor[t],qt),v+=2,s.setBigInt64(v,Gi(l),qt),f=l*8,v+=8,m=0;m<l;m++)s.setBigInt64(v,Gi(o[m]),qt),s.setBigInt64(v+f,Gi(i[m]*r),qt),v+=8;for(v+=f,s.setBigInt64(v,Gi(this._offset*r),qt),v+=8,s.setInt8(v,Nor[this._order]),v+=1,s.setInt8(v,g2[u]),v+=1,s.setBigInt64(v,Gi(p),qt),v+=8,m=0;m<p;m++)s.setInt8(v,g2[n[m]]),v+=1;return e=0,e|=this._flags.READONLY?4:0,s.setInt32(v,e,qt),this.__meta_dataview__=s,s}b2.exports=Dor});var w2=c((AQr,q2)=>{"use strict";var Yi=Mt(),kor=va(),Bor=Gt(),For=ea(),Ror=4294967295,Vor=4294967296;function zor(r){var e,a,t,o;return e=new kor(8),r===0||(o=(r&Ror)>>>0,t=For(r/Vor),a=new Bor(e.buffer),Yi?(a.setUint32(0,o,Yi),a.setUint32(4,t,Yi)):(a.setUint32(0,t,Yi),a.setUint32(4,o,Yi))),e}q2.exports=zor});var E2=c((_Qr,S2)=>{"use strict";var $i=Mt(),Cor=va(),Lor=Gt(),Por=ea(),Uor=4294967295,Mor=4294967296,nn=new Cor(8),on=new Lor(nn.buffer);function Gor(r,e,a,t){var o,i,n;if(r===0){for(n=0;n<nn.length;n++)e[t]=0,t+=a;return e}for(i=(r&Uor)>>>0,o=Por(r/Mor),$i?(on.setUint32(0,i,$i),on.setUint32(4,o,$i)):(on.setUint32(0,o,$i),on.setUint32(4,i,$i)),n=0;n<nn.length;n++)e[t]=nn[n],t+=a;return e}S2.exports=Gor});var $u=c((TQr,_2)=>{"use strict";var Yor=Ir(),A2=w2(),$or=E2();Yor(A2,"assign",$or);_2.exports=A2});var I2=c((jQr,j2)=>{"use strict";var Wu=Mt(),Wor=li(),Jor=Gt(),Xor=va(),Kor=ke().enum,Hor=Yt().enum,Zor=$t().enum,Wi=$u().assign,Qor=Kor(),rnr=Hor(),T2=Zor();function enr(){var r,e,a,t,o,i,n,s,u,v,f,l,p,m,d;if(v=this._mode||"throw",s=this._submode||[v],p=this._ndims,m=s.length,t=33+p*16+m,u=this.__meta_dataview__,u&&u.byteLength===t)return u;for(u=new Jor(new Wor(t)),e=new Xor(u.buffer),i=this._shape,n=this._strides,o=this._dtype,r=this._bytesPerElement,f=0,u.setInt8(f,Wu?1:0),f+=1,u.setInt16(f,Qor[o],Wu),f+=2,Wi(p,e,1,f),l=p*8,f+=8,d=0;d<p;d++)Wi(i[d],e,1,f),Wi(n[d]*r,e,1,f+l),f+=8;for(f+=l,Wi(this._offset*r,e,1,f),f+=8,u.setInt8(f,rnr[this._order]),f+=1,u.setInt8(f,T2[v]),f+=1,Wi(m,e,1,f),f+=8,d=0;d<m;d++)u.setInt8(f,T2[s[d]]),f+=1;return a=0,a|=this._flags.READONLY?4:0,u.setInt32(f,a,Wu),this.__meta_dataview__=u,u}j2.exports=enr});var N2=c((IQr,O2)=>{"use strict";var anr=yu(),wt=Ir(),Aa=gt(),tnr=bt(),inr=Sa(),onr=Lt(),nnr=Vt(),snr=ky(),unr=Fy(),vnr=My(),fnr=Yy(),lnr=Wy(),cnr=Xy(),dnr=Hy(),pnr=Qy(),ynr=sm(),mnr=Cm(),hnr=x2(),gnr=I2();function be(r,e,a,t,o,i){var n,s,u,v,f;if(!(this instanceof be))return new be(r,e,a,t,o,i);for(v=1,f=0;f<a.length;f++)v*=a[f];return e.BYTES_PER_ELEMENT?s=e.BYTES_PER_ELEMENT*v:s=null,this._byteLength=s,this._bytesPerElement=tnr(r),this._buffer=e,this._dtype=r,this._length=v,this._ndims=a.length,this._offset=o,this._order=i,this._shape=a,this._strides=t,this._accessors=nnr(e.get&&e.set),this._iterationOrder=inr(t),n=vnr(v,a,t,o,this._iterationOrder),u=onr(t),this._flags={ROW_MAJOR_CONTIGUOUS:unr(u,n),COLUMN_MAJOR_CONTIGUOUS:snr(u,n),READONLY:!1},this.__meta_dataview__=null,this}wt(be,"name","ndarray");Aa(be.prototype,"byteLength",function(){return this._byteLength});Aa(be.prototype,"BYTES_PER_ELEMENT",function(){return this._bytesPerElement});Aa(be.prototype,"data",function(){return this._buffer});Aa(be.prototype,"dtype",function(){return this._dtype});Aa(be.prototype,"flags",function(){return fnr(this._flags)});Aa(be.prototype,"length",function(){return this._length});Aa(be.prototype,"ndims",function(){return this._ndims});Aa(be.prototype,"offset",function(){return this._offset});Aa(be.prototype,"order",function(){return this._order});Aa(be.prototype,"shape",function(){return this._shape.slice()});Aa(be.prototype,"strides",function(){return this._strides.slice()});wt(be.prototype,"get",pnr);wt(be.prototype,"iget",lnr);wt(be.prototype,"set",dnr);wt(be.prototype,"iset",cnr);wt(be.prototype,"toString",mnr);wt(be.prototype,"toJSON",ynr);wt(be.prototype,"__array_meta_dataview__",anr()?hnr:gnr);O2.exports=be});var aa=c((OQr,D2)=>{"use strict";var bnr=N2();D2.exports=bnr});var B2=c((NQr,k2)=>{"use strict";var xnr=aa();function qnr(r){return r instanceof xnr||r!==null&&typeof r=="object"&&typeof r.data=="object"&&typeof r.shape=="object"&&typeof r.strides=="object"&&typeof r.offset=="number"&&typeof r.order=="string"&&typeof r.ndims=="number"&&typeof r.dtype=="string"&&typeof r.length=="number"&&typeof r.flags=="object"&&typeof r.get=="function"&&typeof r.set=="function"}k2.exports=qnr});var se=c((DQr,F2)=>{"use strict";var wnr=B2();F2.exports=wnr});var V2=c((kQr,R2)=>{"use strict";function Snr(r){var e,a,t,o;for(e=r.length,a=[],o=0;o<e;o++)a.push(0);for(t=1,o=e-1;o>=0;o--)a[o]=t,t*=r[o];return a}function Enr(r){var e,a,t;for(e=[],a=1,t=0;t<r.length;t++)e.push(a),a*=r[t];return e}function Anr(r,e){return e==="column-major"?Enr(r):Snr(r)}R2.exports=Anr});var C2=c((BQr,z2)=>{"use strict";function _nr(r,e){var a,t,o;for(a=r.length,t=1,o=a-1;o>=0;o--)e[o]=t,t*=r[o];return e}function Tnr(r,e){var a,t;for(a=1,t=0;t<r.length;t++)e[t]=a,a*=r[t];return e}function jnr(r,e,a){return e==="column-major"?Tnr(r,a):_nr(r,a)}z2.exports=jnr});var Ve=c((FQr,P2)=>{"use strict";var Inr=Ir(),L2=V2(),Onr=C2();Inr(L2,"assign",Onr);P2.exports=L2});var M2=c((RQr,U2)=>{"use strict";function Nnr(r,e){var a,t,o;for(t=r.length,a=0,o=0;o<t;o++)e[o]<0&&(a-=e[o]*(r[o]-1));return a}U2.exports=Nnr});var Ye=c((VQr,G2)=>{"use strict";var Dnr=M2();G2.exports=Dnr});var $2=c((zQr,Y2)=>{"use strict";function knr(r){var e,a,t;if(e=r.length,e===0)return 0;for(a=1,t=0;t<e;t++)a*=r[t];return a}Y2.exports=knr});var Jr=c((CQr,W2)=>{"use strict";var Bnr=$2();W2.exports=Bnr});var Ju=c((LQr,J2)=>{"use strict";var Fnr=4294967295;J2.exports=Fnr});var K2=c((PQr,X2)=>{"use strict";var Rnr=wa(),Vnr=Ju();function znr(r){return r!=null&&typeof r!="function"&&typeof r.length=="number"&&Rnr(r.length)&&r.length>=0&&r.length<=Vnr}X2.exports=znr});var sn=c((UQr,H2)=>{"use strict";var Cnr=K2();H2.exports=Cnr});var Q2=c((MQr,Z2)=>{"use strict";var Lnr=sn(),Pnr=pr();function Unr(r){if(typeof r!="function")throw new TypeError(Pnr("invalid argument. Must provide a function. Value: `%s`.",r));return e;function e(a){var t,o;if(!Lnr(a)||(t=a.length,t===0))return!1;for(o=0;o<t;o++)if(r(a[o])===!1)return!1;return!0}}Z2.exports=Unr});var un=c((GQr,rb)=>{"use strict";var Mnr=Q2();rb.exports=Mnr});var Wt=c((YQr,ab)=>{"use strict";var Xu=ge(),eb=Ir(),Ku=un(),Gnr=Ku(Xu.isPrimitive),Ynr=Ku(Xu.isObject),Hu=Ku(Xu);eb(Hu,"primitives",Gnr);eb(Hu,"objects",Ynr);ab.exports=Hu});var ev=c(($Qr,ib)=>{"use strict";var Zu=ve(),tb=Ir(),Qu=un(),$nr=Qu(Zu.isPrimitive),Wnr=Qu(Zu.isObject),rv=Qu(Zu);tb(rv,"primitives",$nr);tb(rv,"objects",Wnr);ib.exports=rv});var sb=c((WQr,nb)=>{"use strict";var Jnr=Yt(),ob=Jnr(),Xnr=ob.length;function Knr(r){var e;for(e=0;e<Xnr;e++)if(r===ob[e])return!0;return!1}nb.exports=Knr});var _a=c((JQr,ub)=>{"use strict";var Hnr=sb();ub.exports=Hnr});var lb=c((XQr,fb)=>{"use strict";var vb="function";function Znr(r){return typeof r.get===vb&&typeof r.set===vb}fb.exports=Znr});var tt=c((KQr,cb)=>{"use strict";var Qnr=lb();cb.exports=Qnr});var yb=c((HQr,pb)=>{"use strict";var db={complex128:rsr,complex64:esr,default:asr};function rsr(r,e){return r.get(e)}function esr(r,e){return r.get(e)}function asr(r,e){return r.get(e)}function tsr(r){var e=db[r];return typeof e=="function"?e:db.default}pb.exports=tsr});var it=c((ZQr,mb)=>{"use strict";var isr=yb();mb.exports=isr});var bb=c((QQr,gb)=>{"use strict";var hb={float64:osr,float32:nsr,int32:ssr,int16:usr,int8:vsr,uint32:fsr,uint16:lsr,uint8:csr,uint8c:dsr,generic:psr,default:ysr};function osr(r,e){return r[e]}function nsr(r,e){return r[e]}function ssr(r,e){return r[e]}function usr(r,e){return r[e]}function vsr(r,e){return r[e]}function fsr(r,e){return r[e]}function lsr(r,e){return r[e]}function csr(r,e){return r[e]}function dsr(r,e){return r[e]}function psr(r,e){return r[e]}function ysr(r,e){return r[e]}function msr(r){var e=hb[r];return typeof e=="function"?e:hb.default}gb.exports=msr});var St=c((rre,xb)=>{"use strict";var hsr=bb();xb.exports=hsr});var wb=c((ere,qb)=>{"use strict";var gsr={Float32Array:"float32",Float64Array:"float64",Array:"generic",Int16Array:"int16",Int32Array:"int32",Int8Array:"int8",Uint16Array:"uint16",Uint32Array:"uint32",Uint8Array:"uint8",Uint8ClampedArray:"uint8c",Complex64Array:"complex64",Complex128Array:"complex128",BooleanArray:"bool"};qb.exports=gsr});var Eb=c((are,Sb)=>{"use strict";var bsr=me(),xsr=typeof Float32Array=="function";function qsr(r){return xsr&&r instanceof Float32Array||bsr(r)==="[object Float32Array]"}Sb.exports=qsr});var _b=c((tre,Ab)=>{"use strict";var wsr=Eb();Ab.exports=wsr});var jb=c((ire,Tb)=>{"use strict";var Ssr=typeof Float32Array=="function"?Float32Array:null;Tb.exports=Ssr});var Nb=c((ore,Ob)=>{"use strict";var Esr=_b(),Asr=Pi(),Ib=jb();function _sr(){var r,e;if(typeof Ib!="function")return!1;try{e=new Ib([1,3.14,-3.14,5e40]),r=Esr(e)&&e[0]===1&&e[1]===3.140000104904175&&e[2]===-3.140000104904175&&e[3]===Asr}catch{r=!1}return r}Ob.exports=_sr});var kb=c((nre,Db)=>{"use strict";var Tsr=Nb();Db.exports=Tsr});var Fb=c((sre,Bb)=>{"use strict";var jsr=typeof Float32Array=="function"?Float32Array:void 0;Bb.exports=jsr});var Vb=c((ure,Rb)=>{"use strict";function Isr(){throw new Error("not implemented")}Rb.exports=Isr});var Et=c((vre,zb)=>{"use strict";var Osr=kb(),Nsr=Fb(),Dsr=Vb(),av;Osr()?av=Nsr:av=Dsr;zb.exports=av});var Lb=c((fre,Cb)=>{"use strict";var ksr=me(),Bsr=typeof Uint32Array=="function";function Fsr(r){return Bsr&&r instanceof Uint32Array||ksr(r)==="[object Uint32Array]"}Cb.exports=Fsr});var Ub=c((lre,Pb)=>{"use strict";var Rsr=Lb();Pb.exports=Rsr});var Gb=c((cre,Mb)=>{"use strict";var Vsr=typeof Uint32Array=="function"?Uint32Array:null;Mb.exports=Vsr});var Wb=c((dre,$b)=>{"use strict";var zsr=Ub(),tv=an(),Yb=Gb();function Csr(){var r,e;if(typeof Yb!="function")return!1;try{e=[1,3.14,-3.14,tv+1,tv+2],e=new Yb(e),r=zsr(e)&&e[0]===1&&e[1]===3&&e[2]===tv-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}$b.exports=Csr});var Xb=c((pre,Jb)=>{"use strict";var Lsr=Wb();Jb.exports=Lsr});var Hb=c((yre,Kb)=>{"use strict";var Psr=typeof Uint32Array=="function"?Uint32Array:void 0;Kb.exports=Psr});var Qb=c((mre,Zb)=>{"use strict";function Usr(){throw new Error("not implemented")}Zb.exports=Usr});var Ji=c((hre,rx)=>{"use strict";var Msr=Xb(),Gsr=Hb(),Ysr=Qb(),iv;Msr()?iv=Gsr:iv=Ysr;rx.exports=iv});var ax=c((gre,ex)=>{"use strict";var $sr=me(),Wsr=typeof Int32Array=="function";function Jsr(r){return Wsr&&r instanceof Int32Array||$sr(r)==="[object Int32Array]"}ex.exports=Jsr});var ix=c((bre,tx)=>{"use strict";var Xsr=ax();tx.exports=Xsr});var ov=c((xre,ox)=>{"use strict";var Ksr=2147483647;ox.exports=Ksr});var nv=c((qre,nx)=>{"use strict";var Hsr=-2147483648;nx.exports=Hsr});var ux=c((wre,sx)=>{"use strict";var Zsr=typeof Int32Array=="function"?Int32Array:null;sx.exports=Zsr});var lx=c((Sre,fx)=>{"use strict";var Qsr=ix(),rur=ov(),eur=nv(),vx=ux();function aur(){var r,e;if(typeof vx!="function")return!1;try{e=new vx([1,3.14,-3.14,rur+1]),r=Qsr(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===eur}catch{r=!1}return r}fx.exports=aur});var dx=c((Ere,cx)=>{"use strict";var tur=lx();cx.exports=tur});var yx=c((Are,px)=>{"use strict";var iur=typeof Int32Array=="function"?Int32Array:void 0;px.exports=iur});var hx=c((_re,mx)=>{"use strict";function our(){throw new Error("not implemented")}mx.exports=our});var Xi=c((Tre,gx)=>{"use strict";var nur=dx(),sur=yx(),uur=hx(),sv;nur()?sv=sur:sv=uur;gx.exports=sv});var xx=c((jre,bx)=>{"use strict";var vur=me(),fur=typeof Int16Array=="function";function lur(r){return fur&&r instanceof Int16Array||vur(r)==="[object Int16Array]"}bx.exports=lur});var wx=c((Ire,qx)=>{"use strict";var cur=xx();qx.exports=cur});var uv=c((Ore,Sx)=>{"use strict";var dur=32767;Sx.exports=dur});var vv=c((Nre,Ex)=>{"use strict";var pur=-32768;Ex.exports=pur});var _x=c((Dre,Ax)=>{"use strict";var yur=typeof Int16Array=="function"?Int16Array:null;Ax.exports=yur});var Ix=c((kre,jx)=>{"use strict";var mur=wx(),hur=uv(),gur=vv(),Tx=_x();function bur(){var r,e;if(typeof Tx!="function")return!1;try{e=new Tx([1,3.14,-3.14,hur+1]),r=mur(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===gur}catch{r=!1}return r}jx.exports=bur});var Nx=c((Bre,Ox)=>{"use strict";var xur=Ix();Ox.exports=xur});var kx=c((Fre,Dx)=>{"use strict";var qur=typeof Int16Array=="function"?Int16Array:void 0;Dx.exports=qur});var Fx=c((Rre,Bx)=>{"use strict";function wur(){throw new Error("not implemented")}Bx.exports=wur});var Ki=c((Vre,Rx)=>{"use strict";var Sur=Nx(),Eur=kx(),Aur=Fx(),fv;Sur()?fv=Eur:fv=Aur;Rx.exports=fv});var zx=c((zre,Vx)=>{"use strict";var _ur=me(),Tur=typeof Uint8ClampedArray=="function";function jur(r){return Tur&&r instanceof Uint8ClampedArray||_ur(r)==="[object Uint8ClampedArray]"}Vx.exports=jur});var Lx=c((Cre,Cx)=>{"use strict";var Iur=zx();Cx.exports=Iur});var Ux=c((Lre,Px)=>{"use strict";var Our=typeof Uint8ClampedArray=="function"?Uint8ClampedArray:null;Px.exports=Our});var Yx=c((Pre,Gx)=>{"use strict";var Nur=Lx(),Mx=Ux();function Dur(){var r,e;if(typeof Mx!="function")return!1;try{e=new Mx([-1,0,1,3.14,4.99,255,256]),r=Nur(e)&&e[0]===0&&e[1]===0&&e[2]===1&&e[3]===3&&e[4]===5&&e[5]===255&&e[6]===255}catch{r=!1}return r}Gx.exports=Dur});var Wx=c((Ure,$x)=>{"use strict";var kur=Yx();$x.exports=kur});var Xx=c((Mre,Jx)=>{"use strict";var Bur=typeof Uint8ClampedArray=="function"?Uint8ClampedArray:void 0;Jx.exports=Bur});var Hx=c((Gre,Kx)=>{"use strict";function Fur(){throw new Error("not implemented")}Kx.exports=Fur});var Hi=c((Yre,Zx)=>{"use strict";var Rur=Wx(),Vur=Xx(),zur=Hx(),lv;Rur()?lv=Vur:lv=zur;Zx.exports=lv});var rq=c(($re,Qx)=>{"use strict";var Cur=me(),Lur=typeof Int8Array=="function";function Pur(r){return Lur&&r instanceof Int8Array||Cur(r)==="[object Int8Array]"}Qx.exports=Pur});var aq=c((Wre,eq)=>{"use strict";var Uur=rq();eq.exports=Uur});var cv=c((Jre,tq)=>{"use strict";var Mur=127;tq.exports=Mur});var dv=c((Xre,iq)=>{"use strict";var Gur=-128;iq.exports=Gur});var nq=c((Kre,oq)=>{"use strict";var Yur=typeof Int8Array=="function"?Int8Array:null;oq.exports=Yur});var vq=c((Hre,uq)=>{"use strict";var $ur=aq(),Wur=cv(),Jur=dv(),sq=nq();function Xur(){var r,e;if(typeof sq!="function")return!1;try{e=new sq([1,3.14,-3.14,Wur+1]),r=$ur(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===Jur}catch{r=!1}return r}uq.exports=Xur});var lq=c((Zre,fq)=>{"use strict";var Kur=vq();fq.exports=Kur});var dq=c((Qre,cq)=>{"use strict";var Hur=typeof Int8Array=="function"?Int8Array:void 0;cq.exports=Hur});var yq=c((ree,pq)=>{"use strict";function Zur(){throw new Error("not implemented")}pq.exports=Zur});var Zi=c((eee,mq)=>{"use strict";var Qur=lq(),rvr=dq(),evr=yq(),pv;Qur()?pv=rvr:pv=evr;mq.exports=pv});var gq=c((aee,hq)=>{"use strict";var avr=wa(),tvr=Ju();function ivr(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&avr(r.length)&&r.length>=0&&r.length<=tvr}hq.exports=ivr});var ze=c((tee,bq)=>{"use strict";var ovr=gq();bq.exports=ovr});var vn=c((iee,qq)=>{"use strict";var xq=Ir(),yv=au(),mv=La(),nvr=yv(mv.isPrimitive),svr=yv(mv.isObject),hv=yv(mv);xq(hv,"primitives",nvr);xq(hv,"objects",svr);qq.exports=hv});var Sq=c((oee,wq)=>{"use strict";function uvr(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i",r}wq.exports=uvr});var Aq=c((nee,Eq)=>{"use strict";function vvr(){var r={};return r.type="Complex128",r.re=this.re,r.im=this.im,r}Eq.exports=vvr});var Oq=c((see,Iq)=>{"use strict";var _q=Ge().isPrimitive,Tq=Ft(),Qi=Ir(),jq=pr(),fvr=Sq(),lvr=Aq();function Jt(r,e){if(!(this instanceof Jt))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!_q(r))throw new TypeError(jq("invalid argument. Real component must be a number. Value: `%s`.",r));if(!_q(e))throw new TypeError(jq("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return Tq(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:r}),Tq(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:e}),this}Qi(Jt,"BYTES_PER_ELEMENT",8);Qi(Jt.prototype,"BYTES_PER_ELEMENT",8);Qi(Jt.prototype,"byteLength",16);Qi(Jt.prototype,"toString",fvr);Qi(Jt.prototype,"toJSON",lvr);Iq.exports=Jt});var fn=c((uee,Nq)=>{"use strict";var cvr=Oq();Nq.exports=cvr});var kq=c((vee,Dq)=>{"use strict";var dvr=typeof Math.fround=="function"?Math.fround:null;Dq.exports=dvr});var Rq=c((fee,Fq)=>{"use strict";var pvr=Et(),Bq=new pvr(1);function yvr(r){return Bq[0]=r,Bq[0]}Fq.exports=yvr});var Cq=c((lee,zq)=>{"use strict";var Vq=kq(),mvr=Rq(),gv;typeof Vq=="function"?gv=Vq:gv=mvr;zq.exports=gv});var Pq=c((cee,Lq)=>{"use strict";function hvr(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i",r}Lq.exports=hvr});var Mq=c((dee,Uq)=>{"use strict";function gvr(){var r={};return r.type="Complex64",r.re=this.re,r.im=this.im,r}Uq.exports=gvr});var Xq=c((pee,Jq)=>{"use strict";var Gq=Ge().isPrimitive,Yq=Ft(),ro=Ir(),$q=Cq(),Wq=pr(),bvr=Pq(),xvr=Mq();function Xt(r,e){if(!(this instanceof Xt))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!Gq(r))throw new TypeError(Wq("invalid argument. Real component must be a number. Value: `%s`.",r));if(!Gq(e))throw new TypeError(Wq("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return Yq(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:$q(r)}),Yq(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:$q(e)}),this}ro(Xt,"BYTES_PER_ELEMENT",4);ro(Xt.prototype,"BYTES_PER_ELEMENT",4);ro(Xt.prototype,"byteLength",8);ro(Xt.prototype,"toString",bvr);ro(Xt.prototype,"toJSON",xvr);Jq.exports=Xt});var ln=c((yee,Kq)=>{"use strict";var qvr=Xq();Kq.exports=qvr});var Zq=c((mee,Hq)=>{"use strict";var wvr=fn(),Svr=ln();function Evr(r){return r instanceof wvr||r instanceof Svr?!0:typeof r=="object"&&r!==null&&typeof r.re=="number"&&typeof r.im=="number"}Hq.exports=Evr});var fa=c((hee,Qq)=>{"use strict";var Avr=Zq();Qq.exports=Avr});var ew=c((gee,rw)=>{"use strict";var _vr=wa();function Tvr(r){return _vr(r/2)}rw.exports=Tvr});var bv=c((bee,aw)=>{"use strict";var jvr=ew();aw.exports=jvr});var iw=c((xee,tw)=>{"use strict";var Ivr=8;function Ovr(r){return typeof r=="object"&&r!==null&&r.constructor.name==="Complex64Array"&&r.BYTES_PER_ELEMENT===Ivr}tw.exports=Ovr});var cn=c((qee,ow)=>{"use strict";var Nvr=iw();ow.exports=Nvr});var sw=c((wee,nw)=>{"use strict";var Dvr=16;function kvr(r){return typeof r=="object"&&r!==null&&r.constructor.name==="Complex128Array"&&r.BYTES_PER_ELEMENT===Dvr}nw.exports=kvr});var dn=c((See,uw)=>{"use strict";var Bvr=sw();uw.exports=Bvr});var fw=c((Eee,vw)=>{"use strict";var Fvr=Xr(),pn=Ws();function Rvr(){return typeof pn=="function"&&typeof pn("foo")=="symbol"&&Fvr(pn,"iterator")&&typeof pn.iterator=="symbol"}vw.exports=Rvr});var eo=c((Aee,lw)=>{"use strict";var Vvr=fw();lw.exports=Vvr});var dw=c((_ee,cw)=>{"use strict";var zvr=eo(),Cvr=zvr()?Symbol.iterator:null;cw.exports=Cvr});var Be=c((Tee,pw)=>{"use strict";var Lvr=dw();pw.exports=Lvr});var mw=c((jee,yw)=>{"use strict";function Pvr(r){return r.re}yw.exports=Pvr});var ao=c((Iee,hw)=>{"use strict";var Uvr=mw();hw.exports=Uvr});var bw=c((Oee,gw)=>{"use strict";function Mvr(r){return r.im}gw.exports=Mvr});var to=c((Nee,xw)=>{"use strict";var Gvr=bw();xw.exports=Gvr});var ww=c((Dee,qw)=>{"use strict";var Yvr=Et();function $vr(r,e){return new Yvr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}qw.exports=$vr});var io=c((kee,Sw)=>{"use strict";var Wvr=ww();Sw.exports=Wvr});var Aw=c((Bee,Ew)=>{"use strict";var Jvr=xt();function Xvr(r,e){return new Jvr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}Ew.exports=Xvr});var oo=c((Fee,_w)=>{"use strict";var Kvr=Aw();_w.exports=Kvr});var jw=c((Ree,Tw)=>{"use strict";var Hvr=ze(),Zvr=fa(),Qvr=ao(),rfr=to(),efr=pr();function afr(r){var e,a,t;for(e=[];a=r.next(),!a.done;)if(t=a.value,Hvr(t)&&t.length>=2)e.push(t[0],t[1]);else if(Zvr(t))e.push(Qvr(t),rfr(t));else return new TypeError(efr("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",t));return e}Tw.exports=afr});var Ow=c((Vee,Iw)=>{"use strict";var tfr=ze(),ifr=fa(),ofr=ao(),nfr=to(),sfr=pr();function ufr(r,e,a){var t,o,i,n;for(t=[],n=-1;o=r.next(),!o.done;)if(n+=1,i=e.call(a,o.value,n),tfr(i)&&i.length>=2)t.push(i[0],i[1]);else if(ifr(i))t.push(ofr(i),nfr(i));else return new TypeError(sfr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",i));return t}Iw.exports=ufr});var Dw=c((zee,Nw)=>{"use strict";var vfr=fa(),ffr=ao(),lfr=to();function cfr(r,e){var a,t,o,i;for(a=e.length,i=0,o=0;o<a;o++){if(t=e[o],!vfr(t))return null;r[i]=ffr(t),r[i+1]=lfr(t),i+=2}return r}Nw.exports=cfr});var Cw=c((Cee,zw)=>{"use strict";var no=ge().isPrimitive,xv=ze(),qv=De(),kw=Ui(),wv=Ci(),dfr=qa(),pfr=vn().primitives,Bw=La().isPrimitive,Ee=Pe(),ca=fa(),yn=bv(),$e=wa(),yfr=cn(),mfr=dn(),hfr=eo(),Pa=Be(),Gr=Ir(),mn=gt(),la=Et(),gfr=ln(),Nr=pr(),Ta=ao(),ja=to(),bfr=ea(),xfr=io(),qfr=oo(),wfr=St(),Sfr=it(),Fw=jw(),Efr=Ow(),Afr=Dw(),ta=la.BYTES_PER_ELEMENT*2,Rw=hfr();function ee(r){return r instanceof zr||typeof r=="object"&&r!==null&&(r.constructor.name==="Complex64Array"||r.constructor.name==="Complex128Array")&&typeof r._length=="number"&&typeof r._buffer=="object"}function Vw(r){return r===zr||r.name==="Complex128Array"}function xe(r,e){return e*=2,new gfr(r[e],r[e+1])}function zr(){var r,e,a,t;if(e=arguments.length,!(this instanceof zr))return e===0?new zr:e===1?new zr(arguments[0]):e===2?new zr(arguments[0],arguments[1]):new zr(arguments[0],arguments[1],arguments[2]);if(e===0)a=new la(0);else if(e===1)if(no(arguments[0]))a=new la(arguments[0]*2);else if(qv(arguments[0]))if(a=arguments[0],t=a.length,t&&dfr(a)&&ca(a[0])){if(a=Afr(new la(t*2),a),a===null){if(!yn(t))throw new RangeError(Nr("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new la(arguments[0])}}else{if(yfr(a))a=xfr(a,0);else if(mfr(a))a=qfr(a,0);else if(!yn(t))throw new RangeError(Nr("invalid argument. Array-like object and typed array arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new la(a)}else if(kw(arguments[0])){if(a=arguments[0],!$e(a.byteLength/ta))throw new RangeError(Nr("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",ta,a.byteLength));a=new la(a)}else if(wv(arguments[0])){if(a=arguments[0],Rw===!1)throw new TypeError(Nr("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",a));if(!Ee(a[Pa]))throw new TypeError(Nr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=a[Pa](),!Ee(a.next))throw new TypeError(Nr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=Fw(a),a instanceof Error)throw a;a=new la(a)}else throw new TypeError(Nr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",arguments[0]));else{if(a=arguments[0],!kw(a))throw new TypeError(Nr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!no(r))throw new TypeError(Nr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!$e(r/ta))throw new RangeError(Nr("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",ta,r));if(e===2){if(t=a.byteLength-r,!$e(t/ta))throw new RangeError(Nr("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",ta,t));a=new la(a,r)}else{if(t=arguments[2],!no(t))throw new TypeError(Nr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*ta>a.byteLength-r)throw new RangeError(Nr("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*ta));a=new la(a,r,t*2)}}return Gr(this,"_buffer",a),Gr(this,"_length",a.length/2),this}Gr(zr,"BYTES_PER_ELEMENT",ta);Gr(zr,"name","Complex64Array");Gr(zr,"from",function(e){var a,t,o,i,n,s,u,v,f,l,p,m;if(!Ee(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Vw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(t=arguments.length,t>1){if(o=arguments[1],!Ee(o))throw new TypeError(Nr("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(ee(e)){if(v=e.length,o){for(i=new this(v),n=i._buffer,m=0,p=0;p<v;p++){if(l=o.call(a,e.get(p),p),ca(l))n[m]=Ta(l),n[m+1]=ja(l);else if(xv(l)&&l.length>=2)n[m]=l[0],n[m+1]=l[1];else throw new TypeError(Nr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));m+=2}return i}return new this(e)}if(qv(e)){if(o){for(v=e.length,e.get&&e.set?u=Sfr("default"):u=wfr("default"),p=0;p<v;p++)if(!ca(u(e,p))){f=!0;break}if(f){if(!yn(v))throw new RangeError(Nr("invalid argument. First argument must have a length which is a multiple of %u. Length: `%u`.",2,v));for(i=new this(v/2),n=i._buffer,p=0;p<v;p++)n[p]=o.call(a,u(e,p),p);return i}for(i=new this(v),n=i._buffer,m=0,p=0;p<v;p++){if(l=o.call(a,u(e,p),p),ca(l))n[m]=Ta(l),n[m+1]=ja(l);else if(xv(l)&&l.length>=2)n[m]=l[0],n[m+1]=l[1];else throw new TypeError(Nr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));m+=2}return i}return new this(e)}if(wv(e)&&Rw&&Ee(e[Pa])){if(n=e[Pa](),!Ee(n.next))throw new TypeError(Nr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));if(o?s=Efr(n,o,a):s=Fw(n),s instanceof Error)throw s;for(v=s.length/2,i=new this(v),n=i._buffer,p=0;p<v;p++)n[p]=s[p];return i}throw new TypeError(Nr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});Gr(zr,"of",function(){var e,a;if(!Ee(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Vw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=0;a<arguments.length;a++)e.push(arguments[a]);return new this(e)});Gr(zr.prototype,"at",function(e){if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!$e(e))throw new TypeError(Nr("invalid argument. Must provide an integer. Value: `%s`.",e));if(e<0&&(e+=this._length),!(e<0||e>=this._length))return xe(this._buffer,e)});mn(zr.prototype,"buffer",function(){return this._buffer.buffer});mn(zr.prototype,"byteLength",function(){return this._buffer.byteLength});mn(zr.prototype,"byteOffset",function(){return this._buffer.byteOffset});Gr(zr.prototype,"BYTES_PER_ELEMENT",zr.BYTES_PER_ELEMENT);Gr(zr.prototype,"copyWithin",function(e,a){if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return arguments.length===2?this._buffer.copyWithin(e*2,a*2):this._buffer.copyWithin(e*2,a*2,arguments[2]*2),this});Gr(zr.prototype,"entries",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,o=this._buffer,t=this._length,n=-1,a={},Gr(a,"next",s),Gr(a,"return",u),Pa&&Gr(a,Pa,v),a;function s(){return n+=1,i||n>=t?{done:!0}:{value:[n,xe(o,n)],done:!1}}function u(f){return i=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return e.entries()}});Gr(zr.prototype,"every",function(e,a){var t,o;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(!e.call(a,xe(t,o),o,this))return!1;return!0});Gr(zr.prototype,"fill",function(e,a,t){var o,i,n,s,u,v;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(Nr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!$e(a))throw new TypeError(Nr("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!$e(t))throw new TypeError(Nr("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i,t<0&&(t=0)),t>i&&(t=i)}else t=i}else a=0,t=i;for(s=Ta(e),u=ja(e),v=a;v<t;v++)n=2*v,o[n]=s,o[n+1]=u;return this});Gr(zr.prototype,"filter",function(e,a){var t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=[],i=0;i<this._length;i++)n=xe(t,i),e.call(a,n,i,this)&&o.push(n);return new this.constructor(o)});Gr(zr.prototype,"find",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=xe(t,o),e.call(a,i,o,this))return i});Gr(zr.prototype,"findIndex",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=xe(t,o),e.call(a,i,o,this))return o;return-1});Gr(zr.prototype,"findLast",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=xe(t,o),e.call(a,i,o,this))return i});Gr(zr.prototype,"findLastIndex",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=xe(t,o),e.call(a,i,o,this))return o;return-1});Gr(zr.prototype,"forEach",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)i=xe(t,o),e.call(a,i,o,this)});Gr(zr.prototype,"get",function(e){if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!no(e))throw new TypeError(Nr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return xe(this._buffer,e)});Gr(zr.prototype,"includes",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(Nr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!$e(a))throw new TypeError(Nr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=Ta(e),n=ja(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return!0;return!1});Gr(zr.prototype,"indexOf",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(Nr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!$e(a))throw new TypeError(Nr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=Ta(e),n=ja(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});Gr(zr.prototype,"join",function(e){var a,t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=",";else if(Bw(e))o=e;else throw new TypeError(Nr("invalid argument. First argument must be a string. Value: `%s`.",e));for(a=[],t=this._buffer,i=0;i<this._length;i++)a.push(xe(t,i).toString());return a.join(o)});Gr(zr.prototype,"keys",function(){var e,a,t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,t=this._length,i=-1,a={},Gr(a,"next",n),Gr(a,"return",s),Pa&&Gr(a,Pa,u),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(v){return o=!0,arguments.length?{value:v,done:!0}:{done:!0}}function u(){return e.keys()}});Gr(zr.prototype,"lastIndexOf",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(Nr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!$e(a))throw new TypeError(Nr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a>=this._length?a=this._length-1:a<0&&(a+=this._length)}else a=this._length-1;for(i=Ta(e),n=ja(e),t=this._buffer,s=a;s>=0;s--)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});mn(zr.prototype,"length",function(){return this._length});Gr(zr.prototype,"map",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));for(o=this._buffer,i=new this.constructor(this._length),t=i._buffer,n=0;n<this._length;n++)if(s=e.call(a,xe(o,n),n,this),ca(s))t[2*n]=Ta(s),t[2*n+1]=ja(s);else if(xv(s)&&s.length===2)t[2*n]=s[0],t[2*n+1]=s[1];else throw new TypeError(Nr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",s));return i});Gr(zr.prototype,"reduce",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=0;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=xe(t,0),s=1}for(;s<i;s++)n=xe(t,s),o=e(o,n,s,this);return o});Gr(zr.prototype,"reduceRight",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=i-1;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=xe(t,i-1),s=i-2}for(;s>=0;s--)n=xe(t,s),o=e(o,n,s,this);return o});Gr(zr.prototype,"reverse",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=this._buffer,o=bfr(t/2),i=0;i<o;i++)n=t-i-1,a=e[2*i],e[2*i]=e[2*n],e[2*n]=a,a=e[2*i+1],e[2*i+1]=e[2*n+1],e[2*n+1]=a;return this});Gr(zr.prototype,"set",function(e){var a,t,o,i,n,s,u,v,f;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!no(t))throw new TypeError(Nr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(ca(e)){if(t>=this._length)throw new RangeError(Nr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));t*=2,o[t]=Ta(e),o[t+1]=ja(e);return}if(ee(e)){if(s=e._length,t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e._buffer,f=o.byteOffset+t*ta,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new la(a.length),v=0;v<a.length;v++)i[v]=a[v];a=i}for(t*=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(qv(e)){for(s=e.length,v=0;v<s;v++)if(!ca(e[v])){n=!0;break}if(n){if(!yn(s))throw new RangeError(Nr("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",s));if(t+s/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e,f=o.byteOffset+t*ta,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new la(s),v=0;v<s;v++)i[v]=a[v];a=i}for(t*=2,s/=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,v=0;v<s;v++)u=e[v],o[t]=Ta(u),o[t+1]=ja(u),t+=2;return}throw new TypeError(Nr("invalid argument. First argument must be either a complex number, an array-like object, or a complex number array. Value: `%s`.",e))});Gr(zr.prototype,"slice",function(e,a){var t,o,i,n,s,u,v;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(s=this._buffer,u=this._length,arguments.length===0)e=0,a=u;else{if(!$e(e))throw new TypeError(Nr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=u,e<0&&(e=0)),arguments.length===1)a=u;else{if(!$e(a))throw new TypeError(Nr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=u,a<0&&(a=0)):a>u&&(a=u)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,v=0;v<t;v++)n=2*(v+e),o[2*v]=s[n],o[2*v+1]=s[n+1];return i});Gr(zr.prototype,"some",function(e,a){var t,o;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(e.call(a,xe(t,o),o,this))return!0;return!1});Gr(zr.prototype,"sort",function(e){var a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(xe(t,i));for(a.sort(e),i=0;i<o;i++)n=2*i,t[n]=Ta(a[i]),t[n+1]=ja(a[i]);return this});Gr(zr.prototype,"subarray",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,i=this._length,arguments.length===0)e=0,a=i;else{if(!$e(e))throw new TypeError(Nr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i,e<0&&(e=0)),arguments.length===1)a=i;else{if(!$e(a))throw new TypeError(Nr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=i,a<0&&(a=0)):a>i&&(a=i)}}return e>=i?(i=0,t=o.byteLength):e>=a?(i=0,t=o.byteOffset+e*ta):(i=a-e,t=o.byteOffset+e*ta),new this.constructor(o.buffer,t,i<0?0:i)});Gr(zr.prototype,"toLocaleString",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=[];else if(Bw(e)||pfr(e))o=e;else throw new TypeError(Nr("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(wv(a))t=a;else throw new TypeError(Nr("invalid argument. Options argument must be an object. Value: `%s`.",a));for(n=this._buffer,i=[],s=0;s<this._length;s++)i.push(xe(n,s).toLocaleString(o,t));return i.join(",")});Gr(zr.prototype,"toReversed",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,a=new this.constructor(t),o=this._buffer,e=a._buffer,i=0;i<t;i++)n=t-i-1,e[2*i]=o[2*n],e[2*i+1]=o[2*n+1];return a});Gr(zr.prototype,"toSorted",function(e){var a,t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(Nr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(xe(t,i));return a.sort(e),new zr(a)});Gr(zr.prototype,"toString",function(){var e,a,t;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=this._buffer,t=0;t<this._length;t++)e.push(xe(a,t).toString());return e.join(",")});Gr(zr.prototype,"values",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,i=this._buffer,t=this._length,n=-1,e={},Gr(e,"next",s),Gr(e,"return",u),Pa&&Gr(e,Pa,v),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:xe(i,n),done:!1}}function u(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return a.values()}});Gr(zr.prototype,"with",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!$e(e))throw new TypeError(Nr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(i=this._length,e<0&&(e+=i),e<0||e>=i)throw new RangeError(Nr("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!ca(a))throw new TypeError(Nr("invalid argument. Second argument must be a complex number. Value: `%s`.",a));return o=new this.constructor(this._buffer),t=o._buffer,t[2*e]=Ta(a),t[2*e+1]=ja(a),o});zw.exports=zr});var so=c((Lee,Lw)=>{"use strict";var _fr=Cw();Lw.exports=_fr});var Uw=c((Pee,Pw)=>{"use strict";var Tfr=ze(),jfr=fa(),Ifr=pr(),Ofr=Pt(),Nfr=Ut();function Dfr(r){var e,a,t;for(e=[];a=r.next(),!a.done;)if(t=a.value,Tfr(t)&&t.length>=2)e.push(t[0],t[1]);else if(jfr(t))e.push(Ofr(t),Nfr(t));else return new TypeError(Ifr("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",t));return e}Pw.exports=Dfr});var Gw=c((Uee,Mw)=>{"use strict";var kfr=ze(),Bfr=fa(),Ffr=pr(),Rfr=Pt(),Vfr=Ut();function zfr(r,e,a){var t,o,i,n;for(t=[],n=-1;o=r.next(),!o.done;)if(n+=1,i=e.call(a,o.value,n),kfr(i)&&i.length>=2)t.push(i[0],i[1]);else if(Bfr(i))t.push(Rfr(i),Vfr(i));else return new TypeError(Ffr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",i));return t}Mw.exports=zfr});var $w=c((Mee,Yw)=>{"use strict";var Cfr=fa(),Lfr=Pt(),Pfr=Ut();function Ufr(r,e){var a,t,o,i;for(a=e.length,i=0,o=0;o<a;o++){if(t=e[o],!Cfr(t))return null;r[i]=Lfr(t),r[i+1]=Pfr(t),i+=2}return r}Yw.exports=Ufr});var r3=c((Gee,Qw)=>{"use strict";var uo=ge().isPrimitive,Sv=ze(),Ev=De(),Ww=Ui(),Av=Ci(),Mfr=qa(),Gfr=vn().primitives,Jw=La(),Ae=Pe(),pa=fa(),hn=bv(),We=wa(),Yfr=cn(),$fr=dn(),Wfr=eo(),Ua=Be(),Yr=Ir(),gn=gt(),da=xt(),Xw=fn(),Ia=Pt(),Oa=Ut(),Jfr=ea(),Xfr=io(),Kfr=oo(),Hfr=St(),Zfr=it(),Dr=pr(),Kw=Uw(),Qfr=Gw(),rlr=$w(),ia=da.BYTES_PER_ELEMENT*2,Hw=Wfr();function ae(r){return r instanceof Cr||typeof r=="object"&&r!==null&&(r.constructor.name==="Complex64Array"||r.constructor.name==="Complex128Array")&&typeof r._length=="number"&&typeof r._buffer=="object"}function Zw(r){return r===Cr||r.name==="Complex64Array"}function we(r,e){return e*=2,new Xw(r[e],r[e+1])}function Cr(){var r,e,a,t;if(e=arguments.length,!(this instanceof Cr))return e===0?new Cr:e===1?new Cr(arguments[0]):e===2?new Cr(arguments[0],arguments[1]):new Cr(arguments[0],arguments[1],arguments[2]);if(e===0)a=new da(0);else if(e===1)if(uo(arguments[0]))a=new da(arguments[0]*2);else if(Ev(arguments[0]))if(a=arguments[0],t=a.length,t&&Mfr(a)&&pa(a[0])){if(a=rlr(new da(t*2),a),a===null){if(!hn(t))throw new RangeError(Dr("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new da(arguments[0])}}else{if(Yfr(a))a=Xfr(a,0);else if($fr(a))a=Kfr(a,0);else if(!hn(t))throw new RangeError(Dr("invalid argument. Array-like object and typed array arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new da(a)}else if(Ww(arguments[0])){if(a=arguments[0],!We(a.byteLength/ia))throw new RangeError(Dr("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",ia,a.byteLength));a=new da(a)}else if(Av(arguments[0])){if(a=arguments[0],Hw===!1)throw new TypeError(Dr("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",a));if(!Ae(a[Ua]))throw new TypeError(Dr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=a[Ua](),!Ae(a.next))throw new TypeError(Dr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=Kw(a),a instanceof Error)throw a;a=new da(a)}else throw new TypeError(Dr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",arguments[0]));else{if(a=arguments[0],!Ww(a))throw new TypeError(Dr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!uo(r))throw new TypeError(Dr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!We(r/ia))throw new RangeError(Dr("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",ia,r));if(e===2){if(t=a.byteLength-r,!We(t/ia))throw new RangeError(Dr("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",ia,t));a=new da(a,r)}else{if(t=arguments[2],!uo(t))throw new TypeError(Dr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*ia>a.byteLength-r)throw new RangeError(Dr("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*ia));a=new da(a,r,t*2)}}return Yr(this,"_buffer",a),Yr(this,"_length",a.length/2),this}Yr(Cr,"BYTES_PER_ELEMENT",ia);Yr(Cr,"name","Complex128Array");Yr(Cr,"from",function(e){var a,t,o,i,n,s,u,v,f,l,p,m;if(!Ae(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Zw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(t=arguments.length,t>1){if(o=arguments[1],!Ae(o))throw new TypeError(Dr("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(ae(e)){if(v=e.length,o){for(i=new this(v),n=i._buffer,m=0,p=0;p<v;p++){if(l=o.call(a,e.get(p),p),pa(l))n[m]=Ia(l),n[m+1]=Oa(l);else if(Sv(l)&&l.length>=2)n[m]=l[0],n[m+1]=l[1];else throw new TypeError(Dr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));m+=2}return i}return new this(e)}if(Ev(e)){if(o){for(v=e.length,e.get&&e.set?u=Zfr("default"):u=Hfr("default"),p=0;p<v;p++)if(!pa(u(e,p))){f=!0;break}if(f){if(!hn(v))throw new RangeError(Dr("invalid argument. First argument must have a length which is a multiple of two. Length: `%u`.",v));for(i=new this(v/2),n=i._buffer,p=0;p<v;p++)n[p]=o.call(a,u(e,p),p);return i}for(i=new this(v),n=i._buffer,m=0,p=0;p<v;p++){if(l=o.call(a,u(e,p),p),pa(l))n[m]=Ia(l),n[m+1]=Oa(l);else if(Sv(l)&&l.length>=2)n[m]=l[0],n[m+1]=l[1];else throw new TypeError(Dr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));m+=2}return i}return new this(e)}if(Av(e)&&Hw&&Ae(e[Ua])){if(n=e[Ua](),!Ae(n.next))throw new TypeError(Dr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));if(o?s=Qfr(n,o,a):s=Kw(n),s instanceof Error)throw s;for(v=s.length/2,i=new this(v),n=i._buffer,p=0;p<v;p++)n[p]=s[p];return i}throw new TypeError(Dr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});Yr(Cr,"of",function(){var e,a;if(!Ae(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Zw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=0;a<arguments.length;a++)e.push(arguments[a]);return new this(e)});Yr(Cr.prototype,"at",function(e){if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!We(e))throw new TypeError(Dr("invalid argument. Must provide an integer. Value: `%s`.",e));if(e<0&&(e+=this._length),!(e<0||e>=this._length))return we(this._buffer,e)});gn(Cr.prototype,"buffer",function(){return this._buffer.buffer});gn(Cr.prototype,"byteLength",function(){return this._buffer.byteLength});gn(Cr.prototype,"byteOffset",function(){return this._buffer.byteOffset});Yr(Cr.prototype,"BYTES_PER_ELEMENT",Cr.BYTES_PER_ELEMENT);Yr(Cr.prototype,"copyWithin",function(e,a){if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return arguments.length===2?this._buffer.copyWithin(e*2,a*2):this._buffer.copyWithin(e*2,a*2,arguments[2]*2),this});Yr(Cr.prototype,"entries",function(){var e,a,t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,e=this._buffer,o=this._length,n=-1,s=-2,t={},Yr(t,"next",u),Yr(t,"return",v),Ua&&Yr(t,Ua,f),t;function u(){var l;return n+=1,i||n>=o?{done:!0}:(s+=2,l=new Xw(e[s],e[s+1]),{value:[n,l],done:!1})}function v(l){return i=!0,arguments.length?{value:l,done:!0}:{done:!0}}function f(){return a.entries()}});Yr(Cr.prototype,"every",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(!e.call(a,we(t,o),o,this))return!1;return!0});Yr(Cr.prototype,"fill",function(e,a,t){var o,i,n,s,u,v;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Dr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!We(a))throw new TypeError(Dr("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!We(t))throw new TypeError(Dr("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i,t<0&&(t=0)),t>i&&(t=i)}else t=i}else a=0,t=i;for(s=Ia(e),u=Oa(e),v=a;v<t;v++)n=2*v,o[n]=s,o[n+1]=u;return this});Yr(Cr.prototype,"filter",function(e,a){var t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=[],i=0;i<this._length;i++)n=we(t,i),e.call(a,n,i,this)&&o.push(n);return new this.constructor(o)});Yr(Cr.prototype,"find",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=we(t,o),e.call(a,i,o,this))return i});Yr(Cr.prototype,"findIndex",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=we(t,o),e.call(a,i,o,this))return o;return-1});Yr(Cr.prototype,"findLast",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=we(t,o),e.call(a,i,o,this))return i});Yr(Cr.prototype,"findLastIndex",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=we(t,o),e.call(a,i,o,this))return o;return-1});Yr(Cr.prototype,"forEach",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)i=we(t,o),e.call(a,i,o,this)});Yr(Cr.prototype,"get",function(e){if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!uo(e))throw new TypeError(Dr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return we(this._buffer,e)});gn(Cr.prototype,"length",function(){return this._length});Yr(Cr.prototype,"includes",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Dr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!We(a))throw new TypeError(Dr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=Ia(e),n=Oa(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return!0;return!1});Yr(Cr.prototype,"indexOf",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Dr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!We(a))throw new TypeError(Dr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=Ia(e),n=Oa(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});Yr(Cr.prototype,"join",function(e){var a,t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=",";else if(Jw(e))o=e;else throw new TypeError(Dr("invalid argument. First argument must be a string. Value: `%s`.",e));for(a=[],t=this._buffer,i=0;i<this._length;i++)a.push(we(t,i).toString());return a.join(o)});Yr(Cr.prototype,"keys",function(){var e,a,t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,t=this._length,i=-1,a={},Yr(a,"next",n),Yr(a,"return",s),Ua&&Yr(a,Ua,u),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(v){return o=!0,arguments.length?{value:v,done:!0}:{done:!0}}function u(){return e.keys()}});Yr(Cr.prototype,"lastIndexOf",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Dr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!We(a))throw new TypeError(Dr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a>=this._length?a=this._length-1:a<0&&(a+=this._length)}else a=this._length-1;for(i=Ia(e),n=Oa(e),t=this._buffer,s=a;s>=0;s--)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});Yr(Cr.prototype,"map",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));for(o=this._buffer,i=new this.constructor(this._length),t=i._buffer,n=0;n<this._length;n++)if(s=e.call(a,we(o,n),n,this),pa(s))t[2*n]=Ia(s),t[2*n+1]=Oa(s);else if(Sv(s)&&s.length===2)t[2*n]=s[0],t[2*n+1]=s[1];else throw new TypeError(Dr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",s));return i});Yr(Cr.prototype,"reduce",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=0;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=we(t,0),s=1}for(;s<i;s++)n=we(t,s),o=e(o,n,s,this);return o});Yr(Cr.prototype,"reduceRight",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=i-1;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=we(t,i-1),s=i-2}for(;s>=0;s--)n=we(t,s),o=e(o,n,s,this);return o});Yr(Cr.prototype,"reverse",function(){var e,a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=this._buffer,o=Jfr(t/2),i=0;i<o;i++)n=t-i-1,a=e[2*i],e[2*i]=e[2*n],e[2*n]=a,a=e[2*i+1],e[2*i+1]=e[2*n+1],e[2*n+1]=a;return this});Yr(Cr.prototype,"set",function(e){var a,t,o,i,n,s,u,v,f;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!uo(t))throw new TypeError(Dr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(pa(e)){if(t>=this._length)throw new RangeError(Dr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));t*=2,o[t]=Ia(e),o[t+1]=Oa(e);return}if(ae(e)){if(s=e._length,t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e._buffer,f=o.byteOffset+t*ia,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new da(a.length),v=0;v<a.length;v++)i[v]=a[v];a=i}for(t*=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(Ev(e)){for(s=e.length,v=0;v<s;v++)if(!pa(e[v])){n=!0;break}if(n){if(!hn(s))throw new RangeError(Dr("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",s));if(t+s/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e,f=o.byteOffset+t*ia,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new da(s),v=0;v<s;v++)i[v]=a[v];a=i}for(t*=2,s/=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,v=0;v<s;v++)u=e[v],o[t]=Ia(u),o[t+1]=Oa(u),t+=2;return}throw new TypeError(Dr("invalid argument. First argument must be either a complex number, an array-like object, or a complex number array. Value: `%s`.",e))});Yr(Cr.prototype,"slice",function(e,a){var t,o,i,n,s,u,v;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(s=this._buffer,u=this._length,arguments.length===0)e=0,a=u;else{if(!We(e))throw new TypeError(Dr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=u,e<0&&(e=0)),arguments.length===1)a=u;else{if(!We(a))throw new TypeError(Dr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=u,a<0&&(a=0)):a>u&&(a=u)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,v=0;v<t;v++)n=2*(v+e),o[2*v]=s[n],o[2*v+1]=s[n+1];return i});Yr(Cr.prototype,"some",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(e.call(a,we(t,o),o,this))return!0;return!1});Yr(Cr.prototype,"sort",function(e){var a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(we(t,i));for(a.sort(e),i=0;i<o;i++)n=2*i,t[n]=Ia(a[i]),t[n+1]=Oa(a[i]);return this});Yr(Cr.prototype,"subarray",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,i=this._length,arguments.length===0)e=0,a=i;else{if(!We(e))throw new TypeError(Dr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i,e<0&&(e=0)),arguments.length===1)a=i;else{if(!We(a))throw new TypeError(Dr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=i,a<0&&(a=0)):a>i&&(a=i)}}return e>=i?(i=0,t=o.byteLength):e>=a?(i=0,t=o.byteOffset+e*ia):(i=a-e,t=o.byteOffset+e*ia),new this.constructor(o.buffer,t,i<0?0:i)});Yr(Cr.prototype,"toLocaleString",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=[];else if(Jw(e)||Gfr(e))o=e;else throw new TypeError(Dr("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(Av(a))t=a;else throw new TypeError(Dr("invalid argument. Options argument must be an object. Value: `%s`.",a));for(n=this._buffer,i=[],s=0;s<this._length;s++)i.push(we(n,s).toLocaleString(o,t));return i.join(",")});Yr(Cr.prototype,"toReversed",function(){var e,a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,a=new this.constructor(t),o=this._buffer,e=a._buffer,i=0;i<t;i++)n=t-i-1,e[2*i]=o[2*n],e[2*i+1]=o[2*n+1];return a});Yr(Cr.prototype,"toSorted",function(e){var a,t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Dr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(we(t,i));return a.sort(e),new Cr(a)});Yr(Cr.prototype,"toString",function(){var e,a,t;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=this._buffer,t=0;t<this._length;t++)e.push(we(a,t).toString());return e.join(",")});Yr(Cr.prototype,"values",function(){var e,a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,i=this._buffer,t=this._length,n=-1,e={},Yr(e,"next",s),Yr(e,"return",u),Ua&&Yr(e,Ua,v),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:we(i,n),done:!1}}function u(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return a.values()}});Yr(Cr.prototype,"with",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!We(e))throw new TypeError(Dr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(i=this._length,e<0&&(e+=i),e<0||e>=i)throw new RangeError(Dr("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!pa(a))throw new TypeError(Dr("invalid argument. Second argument must be a complex number. Value: `%s`.",a));return o=new this.constructor(this._buffer),t=o._buffer,t[2*e]=Ia(a),t[2*e+1]=Oa(a),o});Qw.exports=Cr});var vo=c((Yee,e3)=>{"use strict";var elr=r3();e3.exports=elr});var t3=c(($ee,a3)=>{"use strict";var alr=Vt();function tlr(r){var e,a;for(e=[];a=r.next(),!a.done;)e.push(alr(a.value));return e}a3.exports=tlr});var o3=c((Wee,i3)=>{"use strict";var ilr=Vt();function olr(r,e,a){var t,o,i;for(t=[],i=-1;o=r.next(),!o.done;)i+=1,t.push(ilr(e.call(a,o.value,i)));return t}i3.exports=olr});var s3=c((Jee,n3)=>{"use strict";var nlr=Vt();function slr(r,e){var a,t;for(a=e.length,t=0;t<a;t++)r[t]=nlr(e[t]);return r}n3.exports=slr});var p3=c((Xee,d3)=>{"use strict";var fo=ge().isPrimitive,_v=De(),u3=Ui(),Tv=Ci(),_e=Pe(),lo=pe().isPrimitive,Na=ve().isPrimitive,v3=La().isPrimitive,ulr=vn().primitives,vlr=eo(),Ma=Be(),$r=Ir(),bn=gt(),ot=va(),le=Vt(),flr=St(),llr=ea(),clr=it(),Wr=pr(),f3=t3(),dlr=o3(),plr=s3(),Kt=ot.BYTES_PER_ELEMENT,l3=vlr();function te(r){return typeof r=="object"&&r!==null&&r.constructor.name==="BooleanArray"&&r.BYTES_PER_ELEMENT===Kt}function c3(r){return r===Mr}function Mr(){var r,e,a,t,o;if(e=arguments.length,!(this instanceof Mr))return e===0?new Mr:e===1?new Mr(arguments[0]):e===2?new Mr(arguments[0],arguments[1]):new Mr(arguments[0],arguments[1],arguments[2]);if(e===0)a=new ot(0);else if(e===1)if(o=arguments[0],fo(o))a=new ot(o);else if(_v(o))a=plr(new ot(o.length),o);else if(u3(o))a=new ot(o);else if(Tv(o)){if(l3===!1)throw new TypeError(Wr("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",o));if(!_e(o[Ma]))throw new TypeError(Wr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));if(a=o[Ma](),!_e(a.next))throw new TypeError(Wr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));a=new ot(f3(a))}else throw new TypeError(Wr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));else{if(a=arguments[0],!u3(a))throw new TypeError(Wr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!fo(r))throw new TypeError(Wr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(e===2)a=new ot(a,r);else{if(t=arguments[2],!fo(t))throw new TypeError(Wr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*Kt>a.byteLength-r)throw new RangeError(Wr("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*Kt));a=new ot(a,r,t)}}return $r(this,"_buffer",a),$r(this,"_length",a.length),this}$r(Mr,"BYTES_PER_ELEMENT",Kt);$r(Mr,"name","BooleanArray");$r(Mr,"from",function(e){var a,t,o,i,n,s,u,v,f;if(!_e(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!c3(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(t=arguments.length,t>1){if(o=arguments[1],!_e(o))throw new TypeError(Wr("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(_v(e)){if(o){for(v=e.length,e.get&&e.set?u=clr("default"):u=flr("default"),i=new this(v),n=i._buffer,f=0;f<v;f++)n[f]=le(o.call(a,u(e,f),f));return i}return new this(e)}if(Tv(e)&&l3&&_e(e[Ma])){if(n=e[Ma](),!_e(n.next))throw new TypeError(Wr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));for(o?s=dlr(n,o,a):s=f3(n),v=s.length,i=new this(v),n=i._buffer,f=0;f<v;f++)n[f]=s[f];return i}throw new TypeError(Wr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});$r(Mr,"of",function(){var e,a;if(!_e(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!c3(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=[],a=0;a<arguments.length;a++)e.push(arguments[a]);return new this(e)});$r(Mr.prototype,"at",function(e){var a,t;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Na(e))throw new TypeError(Wr("invalid argument. Must provide an integer. Value: `%s`.",e));if(t=this._length,a=this._buffer,e<0&&(e+=t),!(e<0||e>=t))return le(a[e])});bn(Mr.prototype,"buffer",function(){return this._buffer.buffer});bn(Mr.prototype,"byteLength",function(){return this._buffer.byteLength});bn(Mr.prototype,"byteOffset",function(){return this._buffer.byteOffset});$r(Mr.prototype,"BYTES_PER_ELEMENT",Mr.BYTES_PER_ELEMENT);$r(Mr.prototype,"copyWithin",function(e,a){if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return arguments.length===2?this._buffer.copyWithin(e,a):this._buffer.copyWithin(e,a,arguments[2]),this});$r(Mr.prototype,"entries",function(){var e,a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return e=this,o=this._buffer,t=this._length,n=-1,a={},$r(a,"next",s),$r(a,"return",u),Ma&&$r(a,Ma,v),a;function s(){return n+=1,i||n>=t?{done:!0}:{value:[n,le(o[n])],done:!1}}function u(f){return i=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return e.entries()}});$r(Mr.prototype,"every",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(!e.call(a,le(t[o]),o,this))return!1;return!0});$r(Mr.prototype,"fill",function(e,a,t){var o,i,n,s;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!Na(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!Na(t))throw new TypeError(Wr("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i,t<0&&(t=0)),t>i&&(t=i)}else t=i}else a=0,t=i;for(e?n=1:n=0,s=a;s<t;s++)o[s]=n;return this});$r(Mr.prototype,"filter",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=[],i=0;i<this._length;i++)n=le(t[i]),e.call(a,n,i,this)&&o.push(n);return new this.constructor(o)});$r(Mr.prototype,"find",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=0;i<this._length;i++)if(o=le(t[i]),e.call(a,o,i,this))return o});$r(Mr.prototype,"findIndex",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=0;i<this._length;i++)if(o=le(t[i]),e.call(a,o,i,this))return i;return-1});$r(Mr.prototype,"findLast",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=this._length-1;i>=0;i--)if(o=le(t[i]),e.call(a,o,i,this))return o});$r(Mr.prototype,"findLastIndex",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=this._length-1;i>=0;i--)if(o=le(t[i]),e.call(a,o,i,this))return i;return-1});$r(Mr.prototype,"forEach",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)e.call(a,le(t[o]),o,this)});$r(Mr.prototype,"get",function(e){if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!fo(e))throw new TypeError(Wr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return le(this._buffer[e])});$r(Mr.prototype,"includes",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Na(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(t=this._buffer,o=a;o<this._length;o++)if(e===le(t[o]))return!0;return!1});$r(Mr.prototype,"indexOf",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Na(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(t=this._buffer,o=a;o<this._length;o++)if(e===le(t[o]))return o;return-1});$r(Mr.prototype,"join",function(e){var a,t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length>0){if(!v3(e))throw new TypeError(Wr("invalid argument. First argument must be a string. Value: `%s`.",e))}else e=",";for(a=this._buffer,t=[],o=0;o<this._length;o++)a[o]?t.push("true"):t.push("false");return t.join(e)});$r(Mr.prototype,"keys",function(){var e,a,t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return e=this,t=this._length,i=-1,a={},$r(a,"next",n),$r(a,"return",s),Ma&&$r(a,Ma,u),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(v){return o=!0,arguments.length?{value:v,done:!0}:{done:!0}}function u(){return e.keys()}});$r(Mr.prototype,"lastIndexOf",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Na(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a>=this._length?a=this._length-1:a<0&&(a+=this._length)}else a=this._length-1;for(t=this._buffer,o=a;o>=0;o--)if(e===le(t[o]))return o;return-1});bn(Mr.prototype,"length",function(){return this._length});$r(Mr.prototype,"map",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",e);for(i=this._buffer,o=new this.constructor(this._length),t=o._buffer,n=0;n<this._length;n++)t[n]=le(e.call(a,le(i[n]),n,this));return o});$r(Mr.prototype,"reduce",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,o=this._length,arguments.length>1)i=a,n=0;else{if(o===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=le(t[0]),n=1}for(;n<o;n++)i=e(i,le(t[n]),n,this);return i});$r(Mr.prototype,"reduceRight",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,o=this._length,arguments.length>1)i=a,n=o-1;else{if(o===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=le(t[o-1]),n=o-2}for(;n>=0;n--)i=e(i,le(t[n]),n,this);return i});$r(Mr.prototype,"reverse",function(){var e,a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=this._buffer,t=this._length,o=llr(t/2),i=0;i<o;i++)n=t-i-1,a=e[i],e[i]=e[n],e[n]=a;return this});$r(Mr.prototype,"set",function(e){var a,t,o,i,n,s,u;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!fo(t))throw new TypeError(Wr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(_v(e)){if(n=e.length,t+n>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(te(e)?a=e._buffer:a=e,u=o.byteOffset+t*Kt,a.buffer===o.buffer&&a.byteOffset<u&&a.byteOffset+a.byteLength>u){for(i=new ot(a.length),s=0;s<a.length;s++)i[s]=a[s];a=i}for(s=0;s<n;t++,s++)o[t]=a[s]?1:0;return}if(t>=this._length)throw new RangeError(Wr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));o[t]=e?1:0});$r(Mr.prototype,"slice",function(e,a){var t,o,i,n,s,u;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(n=this._buffer,s=this._length,arguments.length===0)e=0,a=s;else{if(!Na(e))throw new TypeError(Wr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=s,e<0&&(e=0)),arguments.length===1)a=s;else{if(!Na(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=s,a<0&&(a=0)):a>s&&(a=s)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,u=0;u<t;u++)o[u]=n[u+e];return i});$r(Mr.prototype,"some",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(e.call(a,le(t[o]),o,this))return!0;return!1});$r(Mr.prototype,"sort",function(e){var a;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(a=this._buffer,arguments.length===0)return a.sort(),this;if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));return a.sort(t),this;function t(o,i){return e(le(o),le(i))}});$r(Mr.prototype,"subarray",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(o=this._buffer,i=this._length,arguments.length===0)e=0,a=i;else{if(!Na(e))throw new TypeError(Wr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i,e<0&&(e=0)),arguments.length===1)a=i;else{if(!Na(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=i,a<0&&(a=0)):a>i&&(a=i)}}return e>=i?(i=0,t=o.byteLength):e>=a?(i=0,t=o.byteOffset+e*Kt):(i=a-e,t=o.byteOffset+e*Kt),new this.constructor(o.buffer,t,i<0?0:i)});$r(Mr.prototype,"toLocaleString",function(e,a){var t,o,i,n,s;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length===0)o=[];else if(v3(e)||ulr(e))o=e;else throw new TypeError(Wr("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(Tv(a))t=a;else throw new TypeError(Wr("invalid argument. Options argument must be an object. Value: `%s`.",a));for(n=this._buffer,i=[],s=0;s<this._length;s++)i.push(le(n[s]).toLocaleString(o,t));return i.join(",")});$r(Mr.prototype,"toReversed",function(){var e,a,t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(t=this._length,a=new this.constructor(t),o=this._buffer,e=a._buffer,i=0;i<t;i++)e[i]=o[t-i-1];return a});$r(Mr.prototype,"toSorted",function(e){var a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(o=this._length,t=new this.constructor(o),i=this._buffer,a=t._buffer,n=0;n<o;n++)a[n]=i[n];if(arguments.length===0)return a.sort(),t;if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));return a.sort(s),t;function s(u,v){return e(le(u),le(v))}});$r(Mr.prototype,"toString",function(){var e,a,t;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=[],a=this._buffer,t=0;t<this._length;t++)a[t]?e.push("true"):e.push("false");return e.join(",")});$r(Mr.prototype,"values",function(){var e,a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return a=this,i=this._buffer,t=this._length,n=-1,e={},$r(e,"next",s),$r(e,"return",u),Ma&&$r(e,Ma,v),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:le(i[n]),done:!1}}function u(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return a.values()}});$r(Mr.prototype,"with",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Na(e))throw new TypeError(Wr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(i=this._length,e<0&&(e+=i),e<0||e>=i)throw new RangeError(Wr("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!lo(a))throw new TypeError(Wr("invalid argument. Second argument must be a boolean. Value: `%s`.",a));return o=new this.constructor(this._buffer),t=o._buffer,a?t[e]=1:t[e]=0,o});d3.exports=Mr});var co=c((Kee,y3)=>{"use strict";var ylr=p3();y3.exports=ylr});var h3=c((Hee,m3)=>{"use strict";var mlr=xt(),hlr=Et(),glr=Ji(),blr=Xi(),xlr=fi(),qlr=Ki(),wlr=va(),Slr=Hi(),Elr=Zi(),Alr=so(),_lr=vo(),Tlr=co(),jlr=[mlr,hlr,blr,glr,qlr,xlr,Elr,wlr,Slr,Alr,_lr,Tlr];m3.exports=jlr});var b3=c((Zee,g3)=>{"use strict";var Ilr=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"];g3.exports=Ilr});var w3=c((Qee,q3)=>{"use strict";var Olr=Li(),Nlr=qa(),Dlr=ht(),klr=wb(),Blr=h3(),x3=b3(),Flr=x3.length;function Rlr(r){var e;if(Nlr(r))return"generic";if(Olr(r))return null;for(e=0;e<Flr;e++)if(r instanceof Blr[e])return x3[e];return klr[Dlr(r)]||null}q3.exports=Rlr});var po=c((rae,S3)=>{"use strict";var Vlr=w3();S3.exports=Vlr});var A3=c((eae,E3)=>{"use strict";var zlr=tt(),Clr=it(),Llr=St(),Plr=po();function Ulr(r,e){var a,t,o,i;for(o=Plr(r),zlr(r)?t=Clr(o):t=Llr(o),a=r.length,i=0;i<a;i++)if(t(r,i)===e)return!0;return!1}E3.exports=Ulr});var T3=c((aae,_3)=>{"use strict";var Mlr=De(),Glr=tt(),Ylr=it(),$lr=po(),Wlr=pr();function Jlr(r){var e,a,t;if(!Mlr(r))throw new TypeError(Wlr("invalid argument. Must provide an array-like object. Value: `%s`.",r));return t=$lr(r),Glr(r)&&(e=Ylr(t)),a=r.length,e===void 0?o:i;function o(n){var s;for(s=0;s<a;s++)if(r[s]===n)return!0;return!1}function i(n){var s;for(s=0;s<a;s++)if(e(r,s)===n)return!0;return!1}}_3.exports=Jlr});var Ce=c((tae,I3)=>{"use strict";var Xlr=Ir(),j3=A3(),Klr=T3();Xlr(j3,"factory",Klr);I3.exports=j3});var N3=c((iae,O3)=>{"use strict";var Hlr=Ce().factory,Zlr=ke(),Qlr=Hlr(Zlr());O3.exports=Qlr});var di=c((oae,D3)=>{"use strict";var rcr=N3();D3.exports=rcr});var B3=c((nae,k3)=>{"use strict";var ecr=et();function acr(r,e,a,t){var o=ecr(e,a,t);return o[0]>=0&&o[1]<r}k3.exports=acr});var jv=c((sae,F3)=>{"use strict";var tcr=B3();F3.exports=tcr});var Iv=c((uae,R3)=>{"use strict";function icr(){return{dtypes:{default:"float64",numeric:"float64",real:"float64",floating_point:"float64",real_floating_point:"float64",complex_floating_point:"complex128",integer:"int32",signed_integer:"int32",unsigned_integer:"uint32",boolean:"bool"},order:"row-major",casting:"safe",index_mode:"throw"}}R3.exports=icr});var z3=c((vae,V3)=>{"use strict";var ocr=Iv(),oa=ocr(),ncr={"dtypes.default":oa.dtypes.default,"dtypes.numeric":oa.dtypes.numeric,"dtypes.real":oa.dtypes.real,"dtypes.floating_point":oa.dtypes.floating_point,"dtypes.real_floating_point":oa.dtypes.real_floating_point,"dtypes.complex_floating_point":oa.dtypes.complex_floating_point,"dtypes.integer":oa.dtypes.integer,"dtypes.signed_integer":oa.dtypes.signed_integer,"dtypes.unsigned_integer":oa.dtypes.unsigned_integer,"dtypes.boolean":oa.dtypes.boolean,order:oa.order,casting:oa.casting,index_mode:oa.index_mode};function scr(r){var e=ncr[r];return e===void 0?null:e}V3.exports=scr});var Da=c((fae,L3)=>{"use strict";var ucr=Ir(),C3=Iv(),vcr=z3();ucr(C3,"get",vcr);L3.exports=C3});var U3=c((lae,P3)=>{"use strict";var fcr=pr();function lcr(r){var e=typeof r;return r===null||e!=="object"&&e!=="function"?new TypeError(fcr("invalid argument. A provided constructor must be either an object (except null) or a function. Value: `%s`.",r)):null}P3.exports=lcr});var G3=c((cae,M3)=>{"use strict";M3.exports=Object.create});var W3=c((dae,$3)=>{"use strict";function Y3(){}function ccr(r){return Y3.prototype=r,new Y3}$3.exports=ccr});var K3=c((pae,X3)=>{"use strict";var J3=G3(),dcr=W3(),Ov;typeof J3=="function"?Ov=J3:Ov=dcr;X3.exports=Ov});var Q3=c((yae,Z3)=>{"use strict";var pcr=Ft(),ycr=pr(),H3=U3(),mcr=K3();function hcr(r,e){var a=H3(r);if(a||(a=H3(e),a))throw a;if(typeof e.prototype>"u")throw new TypeError(ycr("invalid argument. Second argument must have a prototype from which another object can inherit. Value: `%s`.",e.prototype));return r.prototype=mcr(e.prototype),pcr(r.prototype,"constructor",{configurable:!0,enumerable:!1,writable:!0,value:r}),r}Z3.exports=hcr});var Nv=c((mae,r4)=>{"use strict";var gcr=Q3();r4.exports=gcr});var a4=c((hae,e4)=>{"use strict";function bcr(r,e){return r<0?0:r>e?e:r}e4.exports=bcr});var xn=c((gae,t4)=>{"use strict";var xcr=a4();t4.exports=xcr});var o4=c((bae,i4)=>{"use strict";function qcr(r,e){var a=e+1;return r<0?(r+=a,r<0&&(r%=a,r!==0&&(r+=a)),r):(r>e&&(r-=a,r>e&&(r%=a)),r)}i4.exports=qcr});var qn=c((xae,n4)=>{"use strict";var wcr=o4();n4.exports=wcr});var u4=c((qae,s4)=>{"use strict";function Scr(r,e){return r<0?(r+=e+1,r<0?-1:r):r>e?-1:r}s4.exports=Scr});var ya=c((wae,v4)=>{"use strict";var Ecr=u4();v4.exports=Ecr});var l4=c((Sae,f4)=>{"use strict";var Acr=Ce().factory,_cr=$t(),Tcr=Acr(_cr());f4.exports=Tcr});var pi=c((Eae,c4)=>{"use strict";var jcr=l4();c4.exports=jcr});var p4=c((Aae,d4)=>{"use strict";var Icr=xn(),Ocr=qn(),Ncr=ya(),Dcr=pi(),Dv=pr(),kcr={wrap:Ocr,clamp:Icr,normalize:Fcr,throw:Bcr};function Bcr(r,e){if(r<0||r>e)throw new RangeError(Dv("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return r}function Fcr(r,e){var a=Ncr(r,e);if(a<0||a>e)throw new RangeError(Dv("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return a}function Rcr(r){if(!Dcr(r))throw new TypeError(Dv("invalid argument. First argument must be a recognized index mode. Value: `%s`.",r));return kcr[r]}d4.exports=Rcr});var m4=c((_ae,y4)=>{"use strict";var Vcr=xn(),zcr=qn(),Ccr=ya(),Lcr=pr();function Pcr(r,e,a){var t;if(a==="clamp")return Vcr(r,e);if(a==="wrap")return zcr(r,e);if(t=r,a==="normalize"&&(t=Ccr(t,e)),t<0||t>e)throw new RangeError(Lcr("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return t}y4.exports=Pcr});var nt=c((Tae,g4)=>{"use strict";var Ucr=Ir(),Mcr=p4(),h4=m4();Ucr(h4,"factory",Mcr);g4.exports=h4});var q4=c((jae,x4)=>{"use strict";var Gcr=ve().isPrimitive,Ycr=nt(),$cr=aa(),Wcr=pr(),b4=$cr.prototype.iget;function Jcr(r){if(this._ndims>0){if(!Gcr(r))throw new TypeError(Wcr("invalid argument. Index must be an integer. Value: `%s`.",r));return r=Ycr(r,this._length-1,this._mode),b4.call(this,r)}return b4.call(this)}x4.exports=Jcr});var E4=c((Iae,S4)=>{"use strict";var Xcr=ve().isPrimitive,Kcr=nt(),Hcr=aa(),Zcr=pr(),w4=Hcr.prototype.iset;function Qcr(r,e){if(this._flags.READONLY)throw new Error("invalid invocation. Cannot write to a read-only array.");if(this._ndims>0){if(!Xcr(r))throw new TypeError(Zcr("invalid argument. Index must be an integer. Value: `%s`.",r));r=Kcr(r,this._length-1,this._mode),w4.call(this,r,e)}else w4.call(this,r);return this}S4.exports=Qcr});var T4=c((Oae,_4)=>{"use strict";var rdr=ve().isPrimitive,edr=nt(),A4=pr();function adr(){var r,e,a,t;if(arguments.length!==this._ndims)throw new RangeError(A4("invalid arguments. Number of indices must match the number of dimensions. ndims: `%u`. nargs: `%u`.",this._ndims,arguments.length));for(r=this._offset,a=this._submode.length,t=0;t<arguments.length;t++){if(!rdr(arguments[t]))throw new TypeError(A4("invalid argument. Indices must be integer valued. Argument: `%u`. Value: `%s`.",t,arguments[t]));e=edr(arguments[t],this._shape[t]-1,this._submode[t%a]),r+=this._strides[t]*e}return this._accessors?this._buffer.get(r):this._buffer[r]}_4.exports=adr});var O4=c((Nae,I4)=>{"use strict";var tdr=ve().isPrimitive,idr=nt(),j4=pr();function odr(){var r,e,a,t;if(this._flags.READONLY)throw new Error("invalid invocation. Cannot write to a read-only array.");if(arguments.length!==this._ndims+1)throw new RangeError(j4("invalid arguments. Number of indices must match the number of dimensions. ndims: `%u`. nargs: `%u`.",this._ndims,arguments.length));for(r=this._offset,a=this._submode.length,t=0;t<arguments.length-1;t++){if(!tdr(arguments[t]))throw new TypeError(j4("invalid argument. Indices must be integer valued. Argument: `%i`. Value: `%s`.",t,arguments[t]));e=idr(arguments[t],this._shape[t]-1,this._submode[t%a]),r+=this._strides[t]*e}return this._accessors?this._buffer.set(arguments[t],r):this._buffer[r]=arguments[t],this}I4.exports=odr});var D4=c((Dae,N4)=>{"use strict";function ndr(r,e){var a,t;for(a=[],t=0;t<e;t++)a.push(r[t]);return a}N4.exports=ndr});var F4=c((kae,B4)=>{"use strict";var sdr=ne(),kv=Xr(),udr=ze(),k4=pi(),vdr=pe().isPrimitive,yi=pr();function fdr(r,e){var a;if(!sdr(e))return new TypeError(yi("invalid argument. Options argument must be an object. Value: `%s`.",e));if(kv(e,"mode")&&(r.mode=e.mode,!k4(r.mode)))return new TypeError(yi("invalid option. `%s` option must be a recognized mode. Option: `%s`.","mode",r.mode));if(kv(e,"submode")){if(r.submode=e.submode,!udr(r.submode))return new TypeError(yi("invalid option. `%s` option must be an array containing recognized modes. Option: `%s`.","submode",r.submode));if(r.submode.length===0)return new TypeError(yi("invalid option. `%s` option must be an array containing recognized modes. Option: `%s`.","submode",r.submode.join(",")));for(a=0;a<r.submode.length;a++)if(!k4(r.submode[a]))return new TypeError(yi("invalid option. Each submode must be a recognized mode. Option: `%s`.",r.submode[a]));r.submode=r.submode.slice()}return kv(e,"readonly")&&(r.readonly=e.readonly,!vdr(r.readonly))?new TypeError(yi("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",r.readonly)):null}B4.exports=fdr});var U4=c((Bae,P4)=>{"use strict";var yo=Ir(),R4=De(),ldr=Wt().primitives,cdr=ge().isPrimitive,ddr=ev().primitives,V4=Pe(),pdr=_a(),ydr=di(),mdr=jv(),hdr=Jr(),L4=aa(),gdr=Da(),bdr=Nv(),Ga=pr(),xdr=q4(),qdr=E4(),wdr=T4(),Sdr=O4(),z4=D4(),Edr=F4(),C4=32767,Adr=gdr.get("index_mode"),_dr=!1;function Ya(r,e,a,t,o,i,n){var s,u,v,f,l;if(!(this instanceof Ya))return arguments.length<7?new Ya(r,e,a,t,o,i):new Ya(r,e,a,t,o,i,n);if(!ydr(r))throw new TypeError(Ga("invalid argument. First argument must be a supported ndarray data type. Value: `%s`.",r));if(R4(e)){if(e.get&&e.set&&(!V4(e.get)||!V4(e.set)))throw new TypeError(Ga("invalid argument. Second argument `get` and `set` properties must be functions. Value: `%s`.",e))}else throw new TypeError(Ga("invalid argument. Second argument must be an array-like object, typed-array-like, or a Buffer. Value: `%s`.",e));if(!ldr(a)&&(!R4(a)||a.length>0))throw new TypeError(Ga("invalid argument. Third argument must be an array-like object containing nonnegative integers. Value: `%s`.",a));if(s=a.length,s>C4)throw new RangeError(Ga("invalid argument. Number of dimensions must not exceed %u due to stack limits. Value: `%u`.",C4,s));if(!ddr(t))throw new TypeError(Ga("invalid argument. Fourth argument must be an array-like object containing integers. Value: `%s`.",t));if(s>0){if(t.length!==s)throw new RangeError(Ga("invalid argument. Fourth argument length must match the number of dimensions. Expected number of dimensions: `%u`. Strides length: `%u`.",s,t.length))}else{if(t.length!==1)throw new RangeError("invalid argument. Fourth argument length must be equal to 1 when creating a zero-dimensional ndarray.");if(t[0]!==0)throw new RangeError(Ga("invalid argument. Fourth argument must contain a single element equal to 0. Value: `%d`.",t[0]))}if(!cdr(o))throw new TypeError(Ga("invalid argument. Fifth argument must be a nonnegative integer. Value: `%s`.",o));if(!pdr(i))throw new TypeError(Ga("invalid argument. Sixth argument must be a supported order. Value: `%s`.",i));if(s>0&&!mdr(e.length,a,t,o)&&hdr(a)>0)throw new Error("invalid arguments. Input buffer is incompatible with the specified meta data. Ensure that the offset is valid with regard to the strides array and that the buffer has enough elements to satisfy the desired array shape.");if(u={},u.mode=Adr,u.readonly=_dr,arguments.length>6&&(v=Edr(u,n),v))throw v;return this._mode=u.mode,u.submode===void 0&&(u.submode=[this._mode]),this._submode=u.submode,f=z4(a,s),l=z4(t,s||1),L4.call(this,r,e,f,l,o,i),this._flags.READONLY=u.readonly,this}bdr(Ya,L4);yo(Ya,"name","ndarray");yo(Ya.prototype,"get",wdr);yo(Ya.prototype,"iget",xdr);yo(Ya.prototype,"set",Sdr);yo(Ya.prototype,"iset",qdr);P4.exports=Ya});var ma=c((Fae,M4)=>{"use strict";var Tdr=U4();M4.exports=Tdr});var G4=c((Rae,jdr)=>{jdr.exports=["none","equiv","safe","mostly-safe","same-kind","unsafe"]});var $4=c((Vae,Y4)=>{"use strict";var Idr=G4();function Odr(){return Idr.slice()}Y4.exports=Odr});var J4=c((zae,W4)=>{"use strict";function Ndr(){return{none:0,equiv:1,safe:2,"mostly-safe":3,"same-kind":4,unsafe:5}}W4.exports=Ndr});var Bv=c((Cae,K4)=>{"use strict";var Ddr=Ir(),X4=$4(),kdr=J4();Ddr(X4,"enum",kdr);K4.exports=X4});var Q4=c((Lae,Z4)=>{"use strict";var Bdr=Bv(),H4=Bdr(),Fdr=H4.length;function Rdr(r){var e;for(e=0;e<Fdr;e++)if(r===H4[e])return!0;return!1}Z4.exports=Rdr});var Fv=c((Pae,r6)=>{"use strict";var Vdr=Q4();r6.exports=Vdr});var t6=c((Uae,a6)=>{"use strict";var zdr=Ea(),Cdr=qa(),Ldr=ne(),Pdr=Ko(),Udr=pe().isPrimitive,e6=Xr(),Rv=pr();function Mdr(r,e){var a=!0,t,o,i,n,s,u,v;if(!Pdr(r))throw new TypeError(Rv("invalid argument. First argument must be an object (except null). Value: `%s`.",r));if(arguments.length>1){if(!Ldr(e))throw new TypeError(Rv("invalid argument. Options argument must be an object. Value: `%s`.",e));if(e6(e,"duplicates")&&(a=e.duplicates,!Udr(a)))throw new TypeError(Rv("invalid option. `%s` option must be a boolean. Option: `%s`.","duplicates",a))}if(t=zdr(r),o=t.length,s={},a)for(v=0;v<o;v++){if(i=t[v],n=r[i],!e6(s,n)){s[n]=i;continue}u=s[n],Cdr(u)?s[n].push(i):s[n]=[u,i]}else for(v=0;v<o;v++)i=t[v],s[r[i]]=i;return s}a6.exports=Mdr});var wn=c((Mae,i6)=>{"use strict";var Gdr=t6();i6.exports=Gdr});var n6=c((Gae,o6)=>{"use strict";var Ydr=wn(),$dr=ke().enum,Wdr=Ydr($dr(),{duplicates:!1});function Jdr(r){var e=Wdr[r];return typeof e=="string"?e:null}o6.exports=Jdr});var Sn=c((Yae,s6)=>{"use strict";var Xdr=n6();s6.exports=Xdr});var v6=c(($ae,u6)=>{"use strict";var Kdr=ke().enum,Hdr=Kdr();function Zdr(r){var e=Hdr[r];return typeof e=="number"?e:null}u6.exports=Zdr});var mo=c((Wae,f6)=>{"use strict";var Qdr=v6();f6.exports=Qdr});var c6=c((Jae,l6)=>{"use strict";var r0r=Sn(),e0r=mo();function a0r(r){var e=typeof r;return e==="string"?e0r(r)===null?null:r:e==="number"?r0r(r):null}l6.exports=a0r});var ka=c((Xae,d6)=>{"use strict";var t0r=c6();d6.exports=t0r});var p6=c((Kae,i0r)=>{i0r.exports={float64:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},float32:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int32:{float64:1,float32:0,int32:1,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},int16:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int8:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint32:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:1,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},uint16:{float64:1,float32:1,int32:1,int16:0,int8:0,uint32:1,uint16:1,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8c:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex128:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},complex64:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},generic:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:0},binary:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:1,generic:0,bool:0},bool:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:1}}});var h6=c((Hae,m6)=>{"use strict";var y6=Ea(),o0r=Xr(),n0r=ka(),An=p6(),En;function s0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=y6(An),e=r.length,u=0;u<e;u++){for(o=r[u],n=An[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function u0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=y6(An),e=r.length,u=0;u<e;u++){for(o=r[u],n=An[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function v0r(r){return arguments.length===0?s0r():(En===void 0&&(En=u0r()),r=n0r(r),o0r(En,r)?En[r].slice():null)}m6.exports=v0r});var Vv=c((Zae,g6)=>{"use strict";var f0r=h6();g6.exports=f0r});var x6=c((Qae,b6)=>{"use strict";var l0r=Vv(),c0r=l0r();function d0r(r,e){return r===e?!0:c0r[r][e]>0}b6.exports=d0r});var _n=c((rte,q6)=>{"use strict";var p0r=x6();q6.exports=p0r});var w6=c((ete,y0r)=>{y0r.exports={float64:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},float32:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int32:{float64:1,float32:0,int32:1,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},int16:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int8:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint32:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:1,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},uint16:{float64:1,float32:1,int32:1,int16:0,int8:0,uint32:1,uint16:1,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8c:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex128:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex64:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},generic:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:0},binary:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:1,generic:0,bool:0},bool:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:1}}});var A6=c((ate,E6)=>{"use strict";var S6=Ea(),m0r=Xr(),h0r=ka(),jn=w6(),Tn;function g0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=S6(jn),e=r.length,u=0;u<e;u++){for(o=r[u],n=jn[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function b0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=S6(jn),e=r.length,u=0;u<e;u++){for(o=r[u],n=jn[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function x0r(r){return arguments.length===0?g0r():(Tn===void 0&&(Tn=b0r()),r=h0r(r),m0r(Tn,r)?Tn[r].slice():null)}E6.exports=x0r});var zv=c((tte,_6)=>{"use strict";var q0r=A6();_6.exports=q0r});var j6=c((ite,T6)=>{"use strict";var w0r=zv(),S0r=w0r();function E0r(r,e){return r===e?!0:S0r[r][e]>0}T6.exports=E0r});var In=c((ote,I6)=>{"use strict";var A0r=j6();I6.exports=A0r});var O6=c((nte,_0r)=>{_0r.exports={float64:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},float32:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int32:{float64:1,float32:0,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},int16:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int8:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint32:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:0,binary:0,generic:1,bool:0},uint16:{float64:1,float32:1,int32:1,int16:0,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8c:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex128:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:0,bool:0},complex64:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:0,bool:0},generic:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:0},binary:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:1,generic:0,bool:0},bool:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:1}}});var k6=c((ste,D6)=>{"use strict";var N6=Ea(),T0r=Xr(),j0r=ka(),Nn=O6(),On;function I0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=N6(Nn),e=r.length,u=0;u<e;u++){for(o=r[u],n=Nn[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function O0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=N6(Nn),e=r.length,u=0;u<e;u++){for(o=r[u],n=Nn[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function N0r(r){return arguments.length===0?I0r():(On===void 0&&(On=O0r()),r=j0r(r),T0r(On,r)?On[r].slice():null)}D6.exports=N0r});var Cv=c((ute,B6)=>{"use strict";var D0r=k6();B6.exports=D0r});var R6=c((vte,F6)=>{"use strict";var k0r=Cv(),B0r=k0r();function F0r(r,e){return r===e?!0:B0r[r][e]>0}F6.exports=F0r});var Lv=c((fte,V6)=>{"use strict";var R0r=R6();V6.exports=R0r});var C6=c((lte,z6)=>{"use strict";var V0r=_n(),z0r=In(),C0r=Lv();function L0r(r,e,a){return a==="unsafe"||r===e?!0:a==="none"||a==="equiv"?!1:a==="safe"?V0r(r,e):a==="mostly-safe"?z0r(r,e):C0r(r,e)}z6.exports=L0r});var Pv=c((cte,L6)=>{"use strict";var P0r=C6();L6.exports=P0r});var U6=c((dte,P6)=>{"use strict";var U0r=typeof Buffer=="function"?Buffer:null;P6.exports=U0r});var G6=c((pte,M6)=>{"use strict";var M0r=Li(),Dn=U6();function G0r(){var r,e;if(typeof Dn!="function")return!1;try{typeof Dn.from=="function"?e=Dn.from([1,2,3,4]):e=new Dn([1,2,3,4]),r=M0r(e)&&e[0]===1&&e[1]===2&&e[2]===3&&e[3]===4}catch{r=!1}return r}M6.exports=G0r});var $6=c((yte,Y6)=>{"use strict";var Y0r=G6();Y6.exports=Y0r});var X6=c(kn=>{"use strict";kn.byteLength=W0r;kn.toByteArray=X0r;kn.fromByteArray=Z0r;var $a=[],ha=[],$0r=typeof Uint8Array<"u"?Uint8Array:Array,Uv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ht=0,W6=Uv.length;Ht<W6;++Ht)$a[Ht]=Uv[Ht],ha[Uv.charCodeAt(Ht)]=Ht;var Ht,W6;ha[45]=62;ha[95]=63;function J6(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=r.indexOf("=");a===-1&&(a=e);var t=a===e?0:4-a%4;return[a,t]}function W0r(r){var e=J6(r),a=e[0],t=e[1];return(a+t)*3/4-t}function J0r(r,e,a){return(e+a)*3/4-a}function X0r(r){var e,a=J6(r),t=a[0],o=a[1],i=new $0r(J0r(r,t,o)),n=0,s=o>0?t-4:t,u;for(u=0;u<s;u+=4)e=ha[r.charCodeAt(u)]<<18|ha[r.charCodeAt(u+1)]<<12|ha[r.charCodeAt(u+2)]<<6|ha[r.charCodeAt(u+3)],i[n++]=e>>16&255,i[n++]=e>>8&255,i[n++]=e&255;return o===2&&(e=ha[r.charCodeAt(u)]<<2|ha[r.charCodeAt(u+1)]>>4,i[n++]=e&255),o===1&&(e=ha[r.charCodeAt(u)]<<10|ha[r.charCodeAt(u+1)]<<4|ha[r.charCodeAt(u+2)]>>2,i[n++]=e>>8&255,i[n++]=e&255),i}function K0r(r){return $a[r>>18&63]+$a[r>>12&63]+$a[r>>6&63]+$a[r&63]}function H0r(r,e,a){for(var t,o=[],i=e;i<a;i+=3)t=(r[i]<<16&16711680)+(r[i+1]<<8&65280)+(r[i+2]&255),o.push(K0r(t));return o.join("")}function Z0r(r){for(var e,a=r.length,t=a%3,o=[],i=16383,n=0,s=a-t;n<s;n+=i)o.push(H0r(r,n,n+i>s?s:n+i));return t===1?(e=r[a-1],o.push($a[e>>2]+$a[e<<4&63]+"==")):t===2&&(e=(r[a-2]<<8)+r[a-1],o.push($a[e>>10]+$a[e>>4&63]+$a[e<<2&63]+"=")),o.join("")}});var K6=c(Mv=>{Mv.read=function(r,e,a,t,o){var i,n,s=o*8-t-1,u=(1<<s)-1,v=u>>1,f=-7,l=a?o-1:0,p=a?-1:1,m=r[e+l];for(l+=p,i=m&(1<<-f)-1,m>>=-f,f+=s;f>0;i=i*256+r[e+l],l+=p,f-=8);for(n=i&(1<<-f)-1,i>>=-f,f+=t;f>0;n=n*256+r[e+l],l+=p,f-=8);if(i===0)i=1-v;else{if(i===u)return n?NaN:(m?-1:1)*(1/0);n=n+Math.pow(2,t),i=i-v}return(m?-1:1)*n*Math.pow(2,i-t)};Mv.write=function(r,e,a,t,o,i){var n,s,u,v=i*8-o-1,f=(1<<v)-1,l=f>>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=t?0:i-1,d=t?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,n=f):(n=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-n))<1&&(n--,u*=2),n+l>=1?e+=p/u:e+=p*Math.pow(2,1-l),e*u>=2&&(n++,u/=2),n+l>=f?(s=0,n=f):n+l>=1?(s=(e*u-1)*Math.pow(2,o),n=n+l):(s=e*Math.pow(2,l-1)*Math.pow(2,o),n=0));o>=8;r[a+m]=s&255,m+=d,s/=256,o-=8);for(n=n<<o|s,v+=o;v>0;r[a+m]=n&255,m+=d,n/=256,v-=8);r[a+m-d]|=y*128}});var vS=c(hi=>{"use strict";var Gv=X6(),mi=K6(),H6=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;hi.Buffer=cr;hi.SlowBuffer=ipr;hi.INSPECT_MAX_BYTES=50;var Bn=2147483647;hi.kMaxLength=Bn;cr.TYPED_ARRAY_SUPPORT=Q0r();!cr.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Q0r(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(cr.prototype,"parent",{enumerable:!0,get:function(){if(cr.isBuffer(this))return this.buffer}});Object.defineProperty(cr.prototype,"offset",{enumerable:!0,get:function(){if(cr.isBuffer(this))return this.byteOffset}});function st(r){if(r>Bn)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,cr.prototype),e}function cr(r,e,a){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Jv(r)}return rS(r,e,a)}cr.poolSize=8192;function rS(r,e,a){if(typeof r=="string")return epr(r,e);if(ArrayBuffer.isView(r))return apr(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(Wa(r,ArrayBuffer)||r&&Wa(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Wa(r,SharedArrayBuffer)||r&&Wa(r.buffer,SharedArrayBuffer)))return $v(r,e,a);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var t=r.valueOf&&r.valueOf();if(t!=null&&t!==r)return cr.from(t,e,a);var o=tpr(r);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return cr.from(r[Symbol.toPrimitive]("string"),e,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}cr.from=function(r,e,a){return rS(r,e,a)};Object.setPrototypeOf(cr.prototype,Uint8Array.prototype);Object.setPrototypeOf(cr,Uint8Array);function eS(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function rpr(r,e,a){return eS(r),r<=0?st(r):e!==void 0?typeof a=="string"?st(r).fill(e,a):st(r).fill(e):st(r)}cr.alloc=function(r,e,a){return rpr(r,e,a)};function Jv(r){return eS(r),st(r<0?0:Xv(r)|0)}cr.allocUnsafe=function(r){return Jv(r)};cr.allocUnsafeSlow=function(r){return Jv(r)};function epr(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!cr.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var a=aS(r,e)|0,t=st(a),o=t.write(r,e);return o!==a&&(t=t.slice(0,o)),t}function Yv(r){for(var e=r.length<0?0:Xv(r.length)|0,a=st(e),t=0;t<e;t+=1)a[t]=r[t]&255;return a}function apr(r){if(Wa(r,Uint8Array)){var e=new Uint8Array(r);return $v(e.buffer,e.byteOffset,e.byteLength)}return Yv(r)}function $v(r,e,a){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(a||0))throw new RangeError('"length" is outside of buffer bounds');var t;return e===void 0&&a===void 0?t=new Uint8Array(r):a===void 0?t=new Uint8Array(r,e):t=new Uint8Array(r,e,a),Object.setPrototypeOf(t,cr.prototype),t}function tpr(r){if(cr.isBuffer(r)){var e=Xv(r.length)|0,a=st(e);return a.length===0||r.copy(a,0,0,e),a}if(r.length!==void 0)return typeof r.length!="number"||Kv(r.length)?st(0):Yv(r);if(r.type==="Buffer"&&Array.isArray(r.data))return Yv(r.data)}function Xv(r){if(r>=Bn)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Bn.toString(16)+" bytes");return r|0}function ipr(r){return+r!=r&&(r=0),cr.alloc(+r)}cr.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==cr.prototype};cr.compare=function(e,a){if(Wa(e,Uint8Array)&&(e=cr.from(e,e.offset,e.byteLength)),Wa(a,Uint8Array)&&(a=cr.from(a,a.offset,a.byteLength)),!cr.isBuffer(e)||!cr.isBuffer(a))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===a)return 0;for(var t=e.length,o=a.length,i=0,n=Math.min(t,o);i<n;++i)if(e[i]!==a[i]){t=e[i],o=a[i];break}return t<o?-1:o<t?1:0};cr.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};cr.concat=function(e,a){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return cr.alloc(0);var t;if(a===void 0)for(a=0,t=0;t<e.length;++t)a+=e[t].length;var o=cr.allocUnsafe(a),i=0;for(t=0;t<e.length;++t){var n=e[t];if(Wa(n,Uint8Array))i+n.length>o.length?cr.from(n).copy(o,i):Uint8Array.prototype.set.call(o,n,i);else if(cr.isBuffer(n))n.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=n.length}return o};function aS(r,e){if(cr.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||Wa(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var a=r.length,t=arguments.length>2&&arguments[2]===!0;if(!t&&a===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return Wv(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a*2;case"hex":return a>>>1;case"base64":return uS(r).length;default:if(o)return t?-1:Wv(r).length;e=(""+e).toLowerCase(),o=!0}}cr.byteLength=aS;function opr(r,e,a){var t=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0,e>>>=0,a<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return ypr(this,e,a);case"utf8":case"utf-8":return iS(this,e,a);case"ascii":return dpr(this,e,a);case"latin1":case"binary":return ppr(this,e,a);case"base64":return lpr(this,e,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mpr(this,e,a);default:if(t)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),t=!0}}cr.prototype._isBuffer=!0;function Zt(r,e,a){var t=r[e];r[e]=r[a],r[a]=t}cr.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<e;a+=2)Zt(this,a,a+1);return this};cr.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<e;a+=4)Zt(this,a,a+3),Zt(this,a+1,a+2);return this};cr.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<e;a+=8)Zt(this,a,a+7),Zt(this,a+1,a+6),Zt(this,a+2,a+5),Zt(this,a+3,a+4);return this};cr.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?iS(this,0,e):opr.apply(this,arguments)};cr.prototype.toLocaleString=cr.prototype.toString;cr.prototype.equals=function(e){if(!cr.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:cr.compare(this,e)===0};cr.prototype.inspect=function(){var e="",a=hi.INSPECT_MAX_BYTES;return e=this.toString("hex",0,a).replace(/(.{2})/g,"$1 ").trim(),this.length>a&&(e+=" ... "),"<Buffer "+e+">"};H6&&(cr.prototype[H6]=cr.prototype.inspect);cr.prototype.compare=function(e,a,t,o,i){if(Wa(e,Uint8Array)&&(e=cr.from(e,e.offset,e.byteLength)),!cr.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(a===void 0&&(a=0),t===void 0&&(t=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),a<0||t>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&a>=t)return 0;if(o>=i)return-1;if(a>=t)return 1;if(a>>>=0,t>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var n=i-o,s=t-a,u=Math.min(n,s),v=this.slice(o,i),f=e.slice(a,t),l=0;l<u;++l)if(v[l]!==f[l]){n=v[l],s=f[l];break}return n<s?-1:s<n?1:0};function tS(r,e,a,t,o){if(r.length===0)return-1;if(typeof a=="string"?(t=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,Kv(a)&&(a=o?0:r.length-1),a<0&&(a=r.length+a),a>=r.length){if(o)return-1;a=r.length-1}else if(a<0)if(o)a=0;else return-1;if(typeof e=="string"&&(e=cr.from(e,t)),cr.isBuffer(e))return e.length===0?-1:Z6(r,e,a,t,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(r,e,a):Uint8Array.prototype.lastIndexOf.call(r,e,a):Z6(r,[e],a,t,o);throw new TypeError("val must be string, number or Buffer")}function Z6(r,e,a,t,o){var i=1,n=r.length,s=e.length;if(t!==void 0&&(t=String(t).toLowerCase(),t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,n/=2,s/=2,a/=2}function u(m,d){return i===1?m[d]:m.readUInt16BE(d*i)}var v;if(o){var f=-1;for(v=a;v<n;v++)if(u(r,v)===u(e,f===-1?0:v-f)){if(f===-1&&(f=v),v-f+1===s)return f*i}else f!==-1&&(v-=v-f),f=-1}else for(a+s>n&&(a=n-s),v=a;v>=0;v--){for(var l=!0,p=0;p<s;p++)if(u(r,v+p)!==u(e,p)){l=!1;break}if(l)return v}return-1}cr.prototype.includes=function(e,a,t){return this.indexOf(e,a,t)!==-1};cr.prototype.indexOf=function(e,a,t){return tS(this,e,a,t,!0)};cr.prototype.lastIndexOf=function(e,a,t){return tS(this,e,a,t,!1)};function npr(r,e,a,t){a=Number(a)||0;var o=r.length-a;t?(t=Number(t),t>o&&(t=o)):t=o;var i=e.length;t>i/2&&(t=i/2);for(var n=0;n<t;++n){var s=parseInt(e.substr(n*2,2),16);if(Kv(s))return n;r[a+n]=s}return n}function spr(r,e,a,t){return Fn(Wv(e,r.length-a),r,a,t)}function upr(r,e,a,t){return Fn(bpr(e),r,a,t)}function vpr(r,e,a,t){return Fn(uS(e),r,a,t)}function fpr(r,e,a,t){return Fn(xpr(e,r.length-a),r,a,t)}cr.prototype.write=function(e,a,t,o){if(a===void 0)o="utf8",t=this.length,a=0;else if(t===void 0&&typeof a=="string")o=a,t=this.length,a=0;else if(isFinite(a))a=a>>>0,isFinite(t)?(t=t>>>0,o===void 0&&(o="utf8")):(o=t,t=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-a;if((t===void 0||t>i)&&(t=i),e.length>0&&(t<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var n=!1;;)switch(o){case"hex":return npr(this,e,a,t);case"utf8":case"utf-8":return spr(this,e,a,t);case"ascii":case"latin1":case"binary":return upr(this,e,a,t);case"base64":return vpr(this,e,a,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fpr(this,e,a,t);default:if(n)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),n=!0}};cr.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function lpr(r,e,a){return e===0&&a===r.length?Gv.fromByteArray(r):Gv.fromByteArray(r.slice(e,a))}function iS(r,e,a){a=Math.min(r.length,a);for(var t=[],o=e;o<a;){var i=r[o],n=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=a){var u,v,f,l;switch(s){case 1:i<128&&(n=i);break;case 2:u=r[o+1],(u&192)===128&&(l=(i&31)<<6|u&63,l>127&&(n=l));break;case 3:u=r[o+1],v=r[o+2],(u&192)===128&&(v&192)===128&&(l=(i&15)<<12|(u&63)<<6|v&63,l>2047&&(l<55296||l>57343)&&(n=l));break;case 4:u=r[o+1],v=r[o+2],f=r[o+3],(u&192)===128&&(v&192)===128&&(f&192)===128&&(l=(i&15)<<18|(u&63)<<12|(v&63)<<6|f&63,l>65535&&l<1114112&&(n=l))}}n===null?(n=65533,s=1):n>65535&&(n-=65536,t.push(n>>>10&1023|55296),n=56320|n&1023),t.push(n),o+=s}return cpr(t)}var Q6=4096;function cpr(r){var e=r.length;if(e<=Q6)return String.fromCharCode.apply(String,r);for(var a="",t=0;t<e;)a+=String.fromCharCode.apply(String,r.slice(t,t+=Q6));return a}function dpr(r,e,a){var t="";a=Math.min(r.length,a);for(var o=e;o<a;++o)t+=String.fromCharCode(r[o]&127);return t}function ppr(r,e,a){var t="";a=Math.min(r.length,a);for(var o=e;o<a;++o)t+=String.fromCharCode(r[o]);return t}function ypr(r,e,a){var t=r.length;(!e||e<0)&&(e=0),(!a||a<0||a>t)&&(a=t);for(var o="",i=e;i<a;++i)o+=qpr[r[i]];return o}function mpr(r,e,a){for(var t=r.slice(e,a),o="",i=0;i<t.length-1;i+=2)o+=String.fromCharCode(t[i]+t[i+1]*256);return o}cr.prototype.slice=function(e,a){var t=this.length;e=~~e,a=a===void 0?t:~~a,e<0?(e+=t,e<0&&(e=0)):e>t&&(e=t),a<0?(a+=t,a<0&&(a=0)):a>t&&(a=t),a<e&&(a=e);var o=this.subarray(e,a);return Object.setPrototypeOf(o,cr.prototype),o};function Fe(r,e,a){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>a)throw new RangeError("Trying to access beyond buffer length")}cr.prototype.readUintLE=cr.prototype.readUIntLE=function(e,a,t){e=e>>>0,a=a>>>0,t||Fe(e,a,this.length);for(var o=this[e],i=1,n=0;++n<a&&(i*=256);)o+=this[e+n]*i;return o};cr.prototype.readUintBE=cr.prototype.readUIntBE=function(e,a,t){e=e>>>0,a=a>>>0,t||Fe(e,a,this.length);for(var o=this[e+--a],i=1;a>0&&(i*=256);)o+=this[e+--a]*i;return o};cr.prototype.readUint8=cr.prototype.readUInt8=function(e,a){return e=e>>>0,a||Fe(e,1,this.length),this[e]};cr.prototype.readUint16LE=cr.prototype.readUInt16LE=function(e,a){return e=e>>>0,a||Fe(e,2,this.length),this[e]|this[e+1]<<8};cr.prototype.readUint16BE=cr.prototype.readUInt16BE=function(e,a){return e=e>>>0,a||Fe(e,2,this.length),this[e]<<8|this[e+1]};cr.prototype.readUint32LE=cr.prototype.readUInt32LE=function(e,a){return e=e>>>0,a||Fe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};cr.prototype.readUint32BE=cr.prototype.readUInt32BE=function(e,a){return e=e>>>0,a||Fe(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};cr.prototype.readIntLE=function(e,a,t){e=e>>>0,a=a>>>0,t||Fe(e,a,this.length);for(var o=this[e],i=1,n=0;++n<a&&(i*=256);)o+=this[e+n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*a)),o};cr.prototype.readIntBE=function(e,a,t){e=e>>>0,a=a>>>0,t||Fe(e,a,this.length);for(var o=a,i=1,n=this[e+--o];o>0&&(i*=256);)n+=this[e+--o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*a)),n};cr.prototype.readInt8=function(e,a){return e=e>>>0,a||Fe(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};cr.prototype.readInt16LE=function(e,a){e=e>>>0,a||Fe(e,2,this.length);var t=this[e]|this[e+1]<<8;return t&32768?t|4294901760:t};cr.prototype.readInt16BE=function(e,a){e=e>>>0,a||Fe(e,2,this.length);var t=this[e+1]|this[e]<<8;return t&32768?t|4294901760:t};cr.prototype.readInt32LE=function(e,a){return e=e>>>0,a||Fe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};cr.prototype.readInt32BE=function(e,a){return e=e>>>0,a||Fe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};cr.prototype.readFloatLE=function(e,a){return e=e>>>0,a||Fe(e,4,this.length),mi.read(this,e,!0,23,4)};cr.prototype.readFloatBE=function(e,a){return e=e>>>0,a||Fe(e,4,this.length),mi.read(this,e,!1,23,4)};cr.prototype.readDoubleLE=function(e,a){return e=e>>>0,a||Fe(e,8,this.length),mi.read(this,e,!0,52,8)};cr.prototype.readDoubleBE=function(e,a){return e=e>>>0,a||Fe(e,8,this.length),mi.read(this,e,!1,52,8)};function Je(r,e,a,t,o,i){if(!cr.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(a+t>r.length)throw new RangeError("Index out of range")}cr.prototype.writeUintLE=cr.prototype.writeUIntLE=function(e,a,t,o){if(e=+e,a=a>>>0,t=t>>>0,!o){var i=Math.pow(2,8*t)-1;Je(this,e,a,t,i,0)}var n=1,s=0;for(this[a]=e&255;++s<t&&(n*=256);)this[a+s]=e/n&255;return a+t};cr.prototype.writeUintBE=cr.prototype.writeUIntBE=function(e,a,t,o){if(e=+e,a=a>>>0,t=t>>>0,!o){var i=Math.pow(2,8*t)-1;Je(this,e,a,t,i,0)}var n=t-1,s=1;for(this[a+n]=e&255;--n>=0&&(s*=256);)this[a+n]=e/s&255;return a+t};cr.prototype.writeUint8=cr.prototype.writeUInt8=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,1,255,0),this[a]=e&255,a+1};cr.prototype.writeUint16LE=cr.prototype.writeUInt16LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,65535,0),this[a]=e&255,this[a+1]=e>>>8,a+2};cr.prototype.writeUint16BE=cr.prototype.writeUInt16BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,65535,0),this[a]=e>>>8,this[a+1]=e&255,a+2};cr.prototype.writeUint32LE=cr.prototype.writeUInt32LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,4294967295,0),this[a+3]=e>>>24,this[a+2]=e>>>16,this[a+1]=e>>>8,this[a]=e&255,a+4};cr.prototype.writeUint32BE=cr.prototype.writeUInt32BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,4294967295,0),this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=e&255,a+4};cr.prototype.writeIntLE=function(e,a,t,o){if(e=+e,a=a>>>0,!o){var i=Math.pow(2,8*t-1);Je(this,e,a,t,i-1,-i)}var n=0,s=1,u=0;for(this[a]=e&255;++n<t&&(s*=256);)e<0&&u===0&&this[a+n-1]!==0&&(u=1),this[a+n]=(e/s>>0)-u&255;return a+t};cr.prototype.writeIntBE=function(e,a,t,o){if(e=+e,a=a>>>0,!o){var i=Math.pow(2,8*t-1);Je(this,e,a,t,i-1,-i)}var n=t-1,s=1,u=0;for(this[a+n]=e&255;--n>=0&&(s*=256);)e<0&&u===0&&this[a+n+1]!==0&&(u=1),this[a+n]=(e/s>>0)-u&255;return a+t};cr.prototype.writeInt8=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,1,127,-128),e<0&&(e=255+e+1),this[a]=e&255,a+1};cr.prototype.writeInt16LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,32767,-32768),this[a]=e&255,this[a+1]=e>>>8,a+2};cr.prototype.writeInt16BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,32767,-32768),this[a]=e>>>8,this[a+1]=e&255,a+2};cr.prototype.writeInt32LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,2147483647,-2147483648),this[a]=e&255,this[a+1]=e>>>8,this[a+2]=e>>>16,this[a+3]=e>>>24,a+4};cr.prototype.writeInt32BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=e&255,a+4};function oS(r,e,a,t,o,i){if(a+t>r.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function nS(r,e,a,t,o){return e=+e,a=a>>>0,o||oS(r,e,a,4,34028234663852886e22,-34028234663852886e22),mi.write(r,e,a,t,23,4),a+4}cr.prototype.writeFloatLE=function(e,a,t){return nS(this,e,a,!0,t)};cr.prototype.writeFloatBE=function(e,a,t){return nS(this,e,a,!1,t)};function sS(r,e,a,t,o){return e=+e,a=a>>>0,o||oS(r,e,a,8,17976931348623157e292,-17976931348623157e292),mi.write(r,e,a,t,52,8),a+8}cr.prototype.writeDoubleLE=function(e,a,t){return sS(this,e,a,!0,t)};cr.prototype.writeDoubleBE=function(e,a,t){return sS(this,e,a,!1,t)};cr.prototype.copy=function(e,a,t,o){if(!cr.isBuffer(e))throw new TypeError("argument should be a Buffer");if(t||(t=0),!o&&o!==0&&(o=this.length),a>=e.length&&(a=e.length),a||(a=0),o>0&&o<t&&(o=t),o===t||e.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-a<o-t&&(o=e.length-a+t);var i=o-t;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(a,t,o):Uint8Array.prototype.set.call(e,this.subarray(t,o),a),i};cr.prototype.fill=function(e,a,t,o){if(typeof e=="string"){if(typeof a=="string"?(o=a,a=0,t=this.length):typeof t=="string"&&(o=t,t=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!cr.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(a<0||this.length<a||this.length<t)throw new RangeError("Out of range index");if(t<=a)return this;a=a>>>0,t=t===void 0?this.length:t>>>0,e||(e=0);var n;if(typeof e=="number")for(n=a;n<t;++n)this[n]=e;else{var s=cr.isBuffer(e)?e:cr.from(e,o),u=s.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<t-a;++n)this[n+a]=s[n%u]}return this};var hpr=/[^+/0-9A-Za-z-_]/g;function gpr(r){if(r=r.split("=")[0],r=r.trim().replace(hpr,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function Wv(r,e){e=e||1/0;for(var a,t=r.length,o=null,i=[],n=0;n<t;++n){if(a=r.charCodeAt(n),a>55295&&a<57344){if(!o){if(a>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(n+1===t){(e-=3)>-1&&i.push(239,191,189);continue}o=a;continue}if(a<56320){(e-=3)>-1&&i.push(239,191,189),o=a;continue}a=(o-55296<<10|a-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,a<128){if((e-=1)<0)break;i.push(a)}else if(a<2048){if((e-=2)<0)break;i.push(a>>6|192,a&63|128)}else if(a<65536){if((e-=3)<0)break;i.push(a>>12|224,a>>6&63|128,a&63|128)}else if(a<1114112){if((e-=4)<0)break;i.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else throw new Error("Invalid code point")}return i}function bpr(r){for(var e=[],a=0;a<r.length;++a)e.push(r.charCodeAt(a)&255);return e}function xpr(r,e){for(var a,t,o,i=[],n=0;n<r.length&&!((e-=2)<0);++n)a=r.charCodeAt(n),t=a>>8,o=a%256,i.push(o),i.push(t);return i}function uS(r){return Gv.toByteArray(gpr(r))}function Fn(r,e,a,t){for(var o=0;o<t&&!(o+a>=e.length||o>=r.length);++o)e[o+a]=r[o];return o}function Wa(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function Kv(r){return r!==r}var qpr=(function(){for(var r="0123456789abcdef",e=new Array(256),a=0;a<16;++a)for(var t=a*16,o=0;o<16;++o)e[t+o]=r[a]+r[o];return e})()});var lS=c((bte,fS)=>{"use strict";var wpr=vS().Buffer;fS.exports=wpr});var dS=c((xte,cS)=>{"use strict";function Spr(){throw new Error("not implemented")}cS.exports=Spr});var ho=c((qte,pS)=>{"use strict";var Epr=$6(),Apr=lS(),_pr=dS(),Hv;Epr()?Hv=Apr:Hv=_pr;pS.exports=Hv});var mS=c((wte,yS)=>{"use strict";var Tpr=ho(),jpr=xt(),Ipr=Et(),Opr=Ki(),Npr=Xi(),Dpr=Zi(),kpr=fi(),Bpr=Ji(),Fpr=va(),Rpr=Hi(),Vpr=so(),zpr=vo(),Cpr=co(),Lpr={binary:Tpr,float64:jpr,float32:Ipr,generic:Array,int16:Opr,int32:Npr,int8:Dpr,uint16:kpr,uint32:Bpr,uint8:Fpr,uint8c:Rpr,complex64:Vpr,complex128:zpr,bool:Cpr};yS.exports=Lpr});var gS=c((Ste,hS)=>{"use strict";var Ppr=mS();function Upr(r){return Ppr[r]||null}hS.exports=Upr});var go=c((Ete,bS)=>{"use strict";var Mpr=gS();bS.exports=Mpr});var qS=c((Ate,xS)=>{"use strict";var Gpr=Pe(),Ypr=ho(),$pr=Gpr(Ypr.allocUnsafe);xS.exports=$pr});var SS=c((_te,wS)=>{"use strict";var Wpr=ge(),Jpr=pr(),Xpr=ho();function Kpr(r){if(!Wpr(r))throw new TypeError(Jpr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));return Xpr.allocUnsafe(r)}wS.exports=Kpr});var AS=c((Tte,ES)=>{"use strict";var Hpr=ge(),Zpr=pr(),Qpr=ho();function ryr(r){if(!Hpr(r))throw new TypeError(Zpr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));return new Qpr(r)}ES.exports=ryr});var At=c((jte,_S)=>{"use strict";var eyr=qS(),ayr=SS(),tyr=AS(),Zv;eyr?Zv=ayr:Zv=tyr;_S.exports=Zv});var jS=c((Ite,TS)=>{"use strict";function iyr(r){var e;for(e=0;e<r.length;e++)r[e]=0;return r}TS.exports=iyr});var OS=c((Ote,IS)=>{"use strict";var oyr=go(),nyr=At(),syr=jS();function uyr(r){var e,a;for(e=[],a=0;a<r;a++)e.push(0);return e}function vyr(r){return syr(nyr(r))}function fyr(r,e){var a=oyr(r);return a?new a(e):null}function lyr(r,e){return r==="generic"?uyr(e):r==="binary"?vyr(e):fyr(r,e)}IS.exports=lyr});var Ba=c((Nte,NS)=>{"use strict";var cyr=OS();NS.exports=cyr});var kS=c((Dte,DS)=>{"use strict";var dyr={Buffer:"binary",Float32Array:"float32",Float64Array:"float64",Array:"generic",Int16Array:"int16",Int32Array:"int32",Int8Array:"int8",Object:"generic",Uint16Array:"uint16",Uint32Array:"uint32",Uint8Array:"uint8",Uint8ClampedArray:"uint8c",Complex64Array:"complex64",Complex128Array:"complex128",BooleanArray:"bool"};DS.exports=dyr});var FS=c((kte,BS)=>{"use strict";var pyr=xt(),yyr=Et(),myr=Ji(),hyr=Xi(),gyr=fi(),byr=Ki(),xyr=va(),qyr=Hi(),wyr=Zi(),Syr=so(),Eyr=vo(),Ayr=co(),_yr=[pyr,yyr,hyr,myr,byr,gyr,wyr,xyr,qyr,Syr,Eyr,Ayr];BS.exports=_yr});var VS=c((Bte,RS)=>{"use strict";var Tyr=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"];RS.exports=Tyr});var LS=c((Fte,CS)=>{"use strict";var jyr=Li(),Iyr=qa(),Oyr=ht(),Nyr=kS(),Dyr=FS(),zS=VS(),kyr=zS.length;function Byr(r){var e;if(Iyr(r))return"generic";if(jyr(r))return"binary";for(e=0;e<kyr;e++)if(r instanceof Dyr[e])return zS[e];return Nyr[Oyr(r)]||null}CS.exports=Byr});var Rn=c((Rte,PS)=>{"use strict";var Fyr=LS();PS.exports=Fyr});var GS=c((Vte,MS)=>{"use strict";var Ryr=di(),US=pr();function Vyr(r){var e;if(typeof r!="object"||r===null)throw new TypeError(US("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.dtype,Ryr(e))return e;throw new TypeError(US("invalid argument. Must provide an ndarray having a supported data type. Value: `%s`.",e))}MS.exports=Vyr});var Fa=c((zte,YS)=>{"use strict";var zyr=GS();YS.exports=zyr});var WS=c((Cte,$S)=>{"use strict";var Cyr=ge().isPrimitive,Lyr=De(),Qv=pr();function Pyr(r){var e,a,t,o;if(typeof r!="object"||r===null)throw new TypeError(Qv("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(a=r.shape,!Lyr(a))throw new TypeError(Qv("invalid argument. Must provide an ndarray. Value: `%s`.",r));for(e=[],o=0;o<a.length;o++){if(t=a[o],!Cyr(t))throw new TypeError(Qv("invalid argument. Must provide an ndarray. Value: `%s`.",r));e.push(t)}return e}$S.exports=Pyr});var oe=c((Lte,JS)=>{"use strict";var Uyr=WS();JS.exports=Uyr});var HS=c((Pte,KS)=>{"use strict";var Myr=ve().isPrimitive,XS=De(),Gyr=_a(),Yyr=Ve(),rf=pr();function $yr(r){var e,a,t,o,i,n;if(typeof r!="object"||r===null)throw new TypeError(rf("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(o=r.strides,!XS(o)){if(t=r.shape,!XS(t))throw new TypeError(rf("invalid argument. Must provide an ndarray. Value: `%s`.",r));return t.length===0?[0]:(a=r.order,Gyr(a)||(a="row-major"),Yyr(t,a))}for(e=[],n=0;n<o.length;n++){if(i=o[n],!Myr(i))throw new TypeError(rf("invalid argument. Must provide an ndarray. Value: `%s`.",r));e.push(i)}return e}KS.exports=$yr});var Ja=c((Ute,ZS)=>{"use strict";var Wyr=HS();ZS.exports=Wyr});var aE=c((Mte,eE)=>{"use strict";var QS=ge().isPrimitive,rE=De(),Jyr=Ye(),ef=pr();function Xyr(r){var e,a,t;if(typeof r!="object"||r===null)throw new TypeError(ef("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(t=r.offset,QS(t))return t;if(a=r.shape,!rE(a))throw new TypeError(ef("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.strides,a.length===0||!rE(e))return 0;if(t=Jyr(a,e),QS(t))return t;throw new TypeError(ef("invalid argument. Must provide an ndarray. Value: `%s`.",r))}eE.exports=Xyr});var _t=c((Gte,tE)=>{"use strict";var Kyr=aE();tE.exports=Kyr});var nE=c((Yte,oE)=>{"use strict";var Hyr=ge().isPrimitive,Zyr=De(),iE=pr();function Qyr(r){var e,a;if(typeof r!="object"||r===null)throw new TypeError(iE("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(a=r.ndims,Hyr(a))return a;if(e=r.shape,!Zyr(e))throw new TypeError(iE("invalid argument. Must provide an ndarray. Value: `%s`.",r));return e.length}oE.exports=Qyr});var Vn=c(($te,sE)=>{"use strict";var rmr=nE();sE.exports=rmr});var fE=c((Wte,vE)=>{"use strict";var emr=_a(),amr=Ja(),tmr=Vn(),imr=Lt(),omr=pr(),uE="row-major",nmr="column-major";function smr(r){var e,a;if(typeof r!="object"||r===null)throw new TypeError(omr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return a=r.order,emr(a)?a:(e=amr(r),a=imr(e),a===1||a===3?uE:a===2?nmr:tmr(r)===0?uE:null)}vE.exports=smr});var Xa=c((Jte,lE)=>{"use strict";var umr=fE();lE.exports=umr});var pE=c((Xte,dE)=>{"use strict";var vmr=De(),cE=pr();function fmr(r){var e;if(typeof r!="object"||r===null)throw new TypeError(cE("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.data,vmr(e))return e;throw new TypeError(cE("invalid argument. Must provide an ndarray. Value: `%s`.",r))}dE.exports=fmr});var ut=c((Kte,yE)=>{"use strict";var lmr=pE();yE.exports=lmr});var bE=c((Hte,gE)=>{"use strict";var af=ze(),cmr=pr();function mE(r,e){var a=e[0];return af(a)&&(r.push(a.length),mE(r,a)),r}function hE(r,e,a,t,o){var i,n,s;for(i=e[a],s=0;s<t.length;s++){if(n=t[s],!af(n)||n.length!==i)return a;if(o&&(n=hE(r,e,a+1,n,a+1<r-1),n<r))return n}return r}function dmr(r){var e,a;if(!af(r))throw new TypeError(cmr("invalid argument. Must provide an array-like object. Value: `%s`.",r));return e=[r.length],mE(e,r),a=e.length,a>1&&(e.length=hE(a,e,1,r,a>2)),e}gE.exports=dmr});var qE=c((Zte,xE)=>{"use strict";var pmr=bE();xE.exports=pmr});var SE=c((Qte,wE)=>{"use strict";function ymr(r,e){var a,t;for(a=[],t=0;t<e;t++)a.push(r);return a}wE.exports=ymr});var bo=c((rie,EE)=>{"use strict";var mmr=SE();EE.exports=mmr});var _E=c((eie,AE)=>{"use strict";var hmr=bo();function gmr(r){return hmr(0,r)}AE.exports=gmr});var Se=c((aie,TE)=>{"use strict";var bmr=_E();TE.exports=bmr});var IE=c((tie,jE)=>{"use strict";var xmr=pr();function qmr(r,e,a,t,o,i){var n,s,u,v,f;for(n=r.length,s=1,f=0;f<n;f++)s*=r[f];if(i==="clamp")o<0?o=0:o>=s&&(o=s-1);else if(i==="wrap")o<0?(o+=s,o<0&&(o%=s,o!==0&&(o+=s))):o>=s&&(o-=s,o>=s&&(o%=s));else if(i==="normalize"&&o<0&&(o+=s),o<0||o>=s)throw new RangeError(xmr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",s,o));if(u=a,t==="column-major"){for(f=0;f<n;f++)v=o%r[f],o-=v,o/=r[f],u+=v*e[f];return u}for(f=n-1;f>=0;f--)v=o%r[f],o-=v,o/=r[f],u+=v*e[f];return u}jE.exports=qmr});var na=c((iie,OE)=>{"use strict";var wmr=IE();OE.exports=wmr});var kE=c((oie,DE)=>{"use strict";var NE={float64:Smr,float32:Emr,int32:Amr,int16:_mr,int8:Tmr,uint32:jmr,uint16:Imr,uint8:Omr,uint8c:Nmr,generic:Dmr,default:kmr};function Smr(r,e,a){r[e]=a}function Emr(r,e,a){r[e]=a}function Amr(r,e,a){r[e]=a}function _mr(r,e,a){r[e]=a}function Tmr(r,e,a){r[e]=a}function jmr(r,e,a){r[e]=a}function Imr(r,e,a){r[e]=a}function Omr(r,e,a){r[e]=a}function Nmr(r,e,a){r[e]=a}function Dmr(r,e,a){r[e]=a}function kmr(r,e,a){r[e]=a}function Bmr(r){var e=NE[r];return typeof e=="function"?e:NE.default}DE.exports=Bmr});var gi=c((nie,BE)=>{"use strict";var Fmr=kE();BE.exports=Fmr});var VE=c((sie,RE)=>{"use strict";var FE={complex128:Rmr,complex64:Vmr,default:zmr};function Rmr(r,e,a){r.set(a,e)}function Vmr(r,e,a){r.set(a,e)}function zmr(r,e,a){r.set(a,e)}function Cmr(r){var e=FE[r];return typeof e=="function"?e:FE.default}RE.exports=Cmr});var bi=c((uie,zE)=>{"use strict";var Lmr=VE();zE.exports=Lmr});var LE=c((vie,CE)=>{"use strict";var Pmr=tt(),Umr=St(),Mmr=gi(),Gmr=it(),Ymr=bi(),$mr=po();function Wmr(r){var e=$mr(r);return Pmr(r)?{data:r,dtype:e,accessorProtocol:!0,accessors:[Gmr(e),Ymr(e)]}:{data:r,dtype:e,accessorProtocol:!1,accessors:[Umr(e),Mmr(e)]}}CE.exports=Wmr});var vt=c((fie,PE)=>{"use strict";var Jmr=LE();PE.exports=Jmr});var tf=c((lie,UE)=>{"use strict";var Xmr=ea();function Kmr(r,e,a,t){var o,i,n,s,u,v,f,l;for(o=e.data,n=e.accessors[0],i=e.accessors[1],f=Xmr(r/2),u=t,v=u+(r-1)*a,l=0;l<f;l++)s=n(o,u),i(o,u,n(o,v)),i(o,v,s),u+=a,v-=a;return e}UE.exports=Kmr});var GE=c((cie,ME)=>{"use strict";var Hmr=ea(),Zmr=vt(),Qmr=tf(),zn=3;function rhr(r,e,a){var t,o,i,n,s,u,v;if(r<=0)return e;if(n=Zmr(e),n.accessorProtocol)return a<0?o=(1-r)*a:o=0,Qmr(r,n,a,o),n.data;if(u=Hmr(r/2),a===1){if(s=u%zn,i=r-1,s>0)for(o=0;o<s;o++)t=e[o],e[o]=e[i],e[i]=t,i-=1;if(u<zn)return e;for(o=s;o<u;o+=zn)t=e[o],e[o]=e[i],e[i]=t,t=e[o+1],e[o+1]=e[i-1],e[i-1]=t,t=e[o+2],e[o+2]=e[i-2],e[i-2]=t,i-=zn;return e}for(a<0?o=(1-r)*a:o=0,i=o+(r-1)*a,v=0;v<u;v++)t=e[o],e[o]=e[i],e[i]=t,o+=a,i-=a;return e}ME.exports=rhr});var $E=c((die,YE)=>{"use strict";var ehr=ea(),ahr=vt(),thr=tf(),xo=3;function ihr(r,e,a,t){var o,i,n,s,u,v,f;if(r<=0)return e;if(s=ahr(e),s.accessorProtocol)return thr(r,s,a,t),s.data;if(v=ehr(r/2),i=t,a===1){if(u=v%xo,n=i+r-1,u>0)for(f=0;f<u;f++)o=e[i],e[i]=e[n],e[n]=o,i+=a,n-=a;if(v<xo)return e;for(f=u;f<v;f+=xo)o=e[i],e[i]=e[n],e[n]=o,o=e[i+1],e[i+1]=e[n-1],e[n-1]=o,o=e[i+2],e[i+2]=e[n-2],e[n-2]=o,i+=xo,n-=xo;return e}for(n=i+(r-1)*a,f=0;f<v;f++)o=e[i],e[i]=e[n],e[n]=o,i+=a,n-=a;return e}YE.exports=ihr});var XE=c((pie,JE)=>{"use strict";var ohr=Ir(),WE=GE(),nhr=$E();ohr(WE,"ndarray",nhr);JE.exports=WE});var nf=c((yie,QE)=>{"use strict";var shr=Ve(),uhr=na(),vhr=Jr(),KE=XE(),HE=Se(),fhr="throw";function ZE(r,e,a,t,o){var i;for(i=0;i<e;i++)a[o]=r[i],o+=t}function of(r,e,a,t,o,i,n){var s,u,v,f;for(v=t+1,s=v===e,u=a[t],f=0;f<u;f++)s?(o[n]=r[f],n+=i):n=of(r[f],e,a,v,o,i,n);return n}function lhr(r,e,a,t,o,i){var n,s,u,v,f,l,p;for(n=vhr(a),s=HE(n),of(r,e,a,0,s,1,0),u="row-major",f=shr(a,u),v=HE(e),ZE(a,e,v,1,0),KE(e,v,1),KE(e,f,1),p=0;p<n;p++)l=uhr(v,f,0,u,p,fhr),t[i]=s[l],i+=o}function chr(r,e,a,t,o,i){var n=e.length;return n===0?t:n===1?(ZE(r,e[0],t,o,i),t):a?(lhr(r,n,e,t,o,i),t):(of(r,n,e,0,t,o,i),t)}QE.exports=chr});var eA=c((mie,rA)=>{"use strict";var dhr=Jr(),phr=Se(),yhr=nf();function mhr(r,e,a){var t=phr(dhr(e));return yhr(r,e,a,t,1,0)}rA.exports=mhr});var iA=c((hie,tA)=>{"use strict";var hhr=Ir(),aA=eA(),ghr=nf();hhr(aA,"assign",ghr);tA.exports=aA});var nA=c((gie,oA)=>{"use strict";var bhr=Pi(),xhr=wa();function qhr(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&xhr(r.length)&&r.length>=0&&r.length<bhr}oA.exports=qhr});var uA=c((bie,sA)=>{"use strict";var Cn=Da();function whr(){return{casting:Cn.get("casting"),copy:!1,dtype:Cn.get("dtypes.default"),flatten:!0,mode:Cn.get("index_mode"),ndmin:0,order:Cn.get("order"),readonly:!1}}sA.exports=whr});var fA=c((xie,vA)=>{"use strict";var Shr=go(),Ehr=At();function Ahr(r,e,a){var t,o,i;if(t=Shr(a),a==="generic")for(o=[],i=0;i<e;i++)o.push(r[i]);else if(a==="binary")for(o=Ehr(e),i=0;i<e;i++)o[i]=r[i];else for(o=new t(e),i=0;i<e;i++)o[i]=r[i];return o}vA.exports=Ahr});var dA=c((qie,cA)=>{"use strict";var lA=Pe(),_hr=ge().isPrimitive,sf=pr(),Qt="number";function Thr(r,e,a){var t;if(!lA(r))throw new TypeError(sf("invalid argument. First argument must be a function. Value: `%s`.",r));if(!_hr(e))throw new TypeError(sf("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",e));if(!lA(a))throw new TypeError(sf("invalid argument. Third argument must be a constructor function. Value: `%s`.",a));return t=[o,i,n,s,u,v],e<=5?t[e]:f;function o(){var l=r();return typeof l===Qt?new a(l,0):l}function i(l){var p=r(l);return typeof p===Qt?new a(p,0):p}function n(l,p){var m=r(l,p);return typeof m===Qt?new a(m,0):m}function s(l,p,m){var d=r(l,p,m);return typeof d===Qt?new a(d,0):d}function u(l,p,m,d){var y=r(l,p,m,d);return typeof y===Qt?new a(y,0):y}function v(l,p,m,d,y){var h=r(l,p,m,d,y);return typeof h===Qt?new a(h,0):h}function f(){var l,p,m;for(l=[],m=0;m<arguments.length;m++)l.push(arguments[m]);return p=r.apply(null,l),typeof p===Qt?new a(p,0):p}}cA.exports=Thr});var uf=c((wie,pA)=>{"use strict";var jhr=dA();pA.exports=jhr});var mA=c((Sie,yA)=>{"use strict";var Ihr=ln(),Ohr=fn(),Nhr={complex64:Ihr,complex128:Ohr};yA.exports=Nhr});var gA=c((Eie,hA)=>{"use strict";var Dhr=mA();function khr(r){return Dhr[r]||null}hA.exports=khr});var Ln=c((Aie,bA)=>{"use strict";var Bhr=gA();bA.exports=Bhr});var qA=c((_ie,xA)=>{"use strict";var Fhr=vt(),Rhr=uf(),Vhr=Ln(),zhr=go(),Chr=At(),Lhr=aa(),Phr=Fa(),Uhr=oe(),Mhr=Ja(),Ghr=_t(),Yhr=Xa(),$hr=ut();function Whr(r){var e,a,t;for(e=r.length,a=[],t=0;t<e;t++)a.push(r.iget(t));return a}function Jhr(r){var e,a,t;for(e=r.length,a=Chr(e),t=0;t<e;t++)a[t]=r.iget(t);return a}function Xhr(r,e){var a,t,o,i,n,s,u;if(a=zhr(e),t=r.length,o=new a(t),s=Fhr(o),s.accessorProtocol)for(i=s.accessors[1],n=Rhr(v,1,Vhr(e)),u=0;u<t;u++)i(o,u,n(u));else for(u=0;u<t;u++)o[u]=r.iget(u);return o;function v(f){return r.iget(f)}}function Khr(r,e){var a;return a=new Lhr(Phr(r),$hr(r),Uhr(r),Mhr(r),Ghr(r),Yhr(r)),e==="generic"?Whr(a):e==="binary"?Jhr(a):Xhr(a,e)}xA.exports=Khr});var SA=c((Tie,wA)=>{"use strict";function Hhr(r,e,a){var t,o;for(t=[],o=0;o<a-r;o++)t.push(1);for(o=0;o<r;o++)t.push(e[o]);return t}wA.exports=Hhr});var AA=c((jie,EA)=>{"use strict";var Zhr=vi();function Qhr(r,e,a,t){var o,i,n,s,u;if(i=a.length,u=r-i,o=[],t==="row-major"){for(n=Zhr(a[0])*e[u],s=0;s<u;s++)o.push(n);for(s=0;s<i;s++)o.push(a[s])}else{for(s=0;s<u;s++)o.push(1);for(s=0;s<i;s++)o.push(a[s])}return o}EA.exports=Qhr});var DA=c((Iie,NA)=>{"use strict";var Ra=Xr(),_A=ne(),TA=pe().isPrimitive,r1r=qa(),e1r=ge().isPrimitive,a1r=se(),t1r=Ve(),i1r=Ye(),o1r=Lt(),Pn=Jr(),n1r=ma(),s1r=di(),u1r=_a(),v1r=Fv(),f1r=Pv(),l1r=Ba(),c1r=Rn(),d1r=Fa(),p1r=oe(),jA=Ja(),y1r=_t(),IA=Xa(),m1r=ut(),OA=qE(),h1r=iA(),ga=pr(),Un=nA(),g1r=uA(),b1r=fA(),x1r=qA(),q1r=SA(),w1r=AA(),Va=g1r();function S1r(){var r,e,a,t,o,i,n,s,u,v,f,l,p,m,d;if(arguments.length===1)if(Un(arguments[0]))a=arguments[0],r={};else{if(r=arguments[0],!_A(r))throw new TypeError(ga("invalid argument. Must provide either a valid data source, options argument, or both. Value: `%s`.",r));if(Ra(r,"buffer")&&(a=r.buffer,!Un(a)))throw new TypeError(ga("invalid option. `%s` option must be an array-like object, typed-array-like, a Buffer, or an ndarray. Option: `%s`.","buffer",a))}else{if(a=arguments[0],!Un(a))throw new TypeError(ga("invalid option. Data source must be an array-like object, typed-array-like, a Buffer, or an ndarray. Value: `%s`.",a));if(r=arguments[1],!_A(r))throw new TypeError(ga("invalid argument. Options argument must be an object. Value: `%s`.",r))}if(a&&(a1r(a)?(n=d1r(a),d=!0):(n=c1r(a),d=!1)),v={},f={},Ra(r,"casting")){if(f.casting=r.casting,!v1r(f.casting))throw new TypeError(ga("invalid option. `%s` option must be a recognized casting mode. Option: `%s`.","casting",f.casting))}else f.casting=Va.casting;if(Ra(r,"flatten")){if(f.flatten=r.flatten,!TA(f.flatten))throw new TypeError(ga("invalid option. `%s` option must be a boolean. Option: `%s`.","flatten",f.flatten))}else f.flatten=Va.flatten;if(Ra(r,"ndmin")){if(f.ndmin=r.ndmin,!e1r(f.ndmin))throw new TypeError(ga("invalid option. `%s` option must be a nonnegative integer. Option: `%s`.","ndmin",f.ndmin))}else f.ndmin=Va.ndmin;if(Ra(r,"dtype")){if(i=r.dtype,!s1r(i))throw new TypeError(ga("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",i));if(n&&!f1r(n,i,f.casting))throw new Error(ga("invalid option. Data type cast is not allowed. Casting mode: `%s`. From: `%s`. To: `%s`.",f.casting,n,i))}else n?!d&&n==="generic"?i=Va.dtype:i=n:i=Va.dtype;if(Ra(r,"order")){if(o=r.order,o==="any"||o==="same")d?o==="any"?(m=o1r(jA(a)),m===3?o=Va.order:o=IA(a)):o==="same"&&(o=IA(a)):o=Va.order;else if(!u1r(o))throw new TypeError(ga("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",o))}else o=Va.order;if(Ra(r,"mode")?v.mode=r.mode:v.mode=Va.mode,Ra(r,"submode")?v.submode=r.submode:v.submode=[v.mode],Ra(r,"readonly")?v.readonly=r.readonly:v.readonly=Va.readonly,Ra(r,"copy")){if(f.copy=r.copy,!TA(f.copy))throw new TypeError(ga("invalid option. `%s` option must be a boolean. Option: `%s`.","copy",f.copy))}else f.copy=Va.copy;if(Ra(r,"shape")){if(s=r.shape,!Un(s))throw new TypeError(ga("invalid option. `%s` option must be an array-like object containing nonnegative integers. Option: `%s`.","shape",s));u=s.length,p=Pn(s)}else if(a)d?(s=p1r(a),u=s.length,p=Pn(s)):f.flatten&&r1r(a)?(s=OA(a),l=s,u=s.length,p=Pn(s)):(u=1,p=a.length,s=[p]);else throw new Error("invalid arguments. Must provide either a data source, array shape, or both.");if(u<f.ndmin&&(s=q1r(u,s,f.ndmin),u=f.ndmin),d){if(Pn(a.shape)!==p)throw new RangeError("invalid arguments. Array shape is incompatible with provided data source. Number of data source elements does not match array shape.");n!==i||f.copy?a=x1r(a,i):(e=jA(a),t=y1r(a),a=m1r(a),e.length<u&&(e=w1r(u,s,e,o)))}else if(a){if(n==="generic"&&f.flatten&&(a=h1r(a,l||OA(a),o==="column-major")),a.length!==p)throw new RangeError("invalid arguments. Array shape is incompatible with provided data source. Number of data source elements does not match array shape.");(n!==i||f.copy)&&(a=b1r(a,p,i))}else a=l1r(i,p);return e===void 0&&(e=t1r(s,o),t=i1r(s,e)),new n1r(i,a,s,e,t,o,v)}NA.exports=S1r});var BA=c((Oie,kA)=>{"use strict";var E1r=DA();kA.exports=E1r});var VA=c((Nie,RA)=>{"use strict";var A1r=se(),_1r=ve().isPrimitive,T1r=ya(),j1r=oe(),FA=pr();function I1r(r){var e,a,t,o,i,n;if(!A1r(r))throw new TypeError(FA("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o=j1r(r),i=o.length,e=arguments.length-1,e<i)throw new RangeError("invalid invocation. Insufficient arguments. Array shape: (%s). Number of indices: %u.",o.join(","),e);if(e>i)throw new RangeError("invalid invocation. Too many arguments. Array shape: (%s). Number of indices: %u.",o.join(","),e);for(a=[],n=1;n<=e;n++){if(t=arguments[n],!_1r(t))throw new TypeError(FA("invalid argument. Index arguments must be integers. Value: `%s`.",t));if(t=T1r(t,o[n-1]-1),t===-1)return;a.push(t)}return r.get.apply(r,a)}RA.exports=I1r});var CA=c((Die,zA)=>{"use strict";var O1r=VA();zA.exports=O1r});var PA=c((kie,LA)=>{"use strict";function N1r(r){var e,a,t;for(a=r.length,e=[],t=0;t<a;t++)e.push(r[t]);return e}LA.exports=N1r});var Tt=c((Bie,UA)=>{"use strict";var D1r=PA();UA.exports=D1r});var GA=c((Fie,MA)=>{"use strict";var k1r=Tt();function B1r(r,e){var a=r.shape;return e?k1r(a):a}MA.exports=B1r});var Te=c((Rie,YA)=>{"use strict";var F1r=GA();YA.exports=F1r});var WA=c((Vie,$A)=>{"use strict";function R1r(r,e){var a;if(r.length!==e.length)return!1;for(a=0;a<r.length;a++)if(r[a]!==e[a])return!1;return!0}$A.exports=R1r});var XA=c((zie,JA)=>{"use strict";var V1r=WA();JA.exports=V1r});var ZA=c((Cie,HA)=>{"use strict";var KA=Te(),z1r=XA();function C1r(r,e){return z1r(KA(r,!1),KA(e,!1))}HA.exports=C1r});var r5=c((Lie,QA)=>{"use strict";var L1r=ZA();QA.exports=L1r});var a5=c((Pie,e5)=>{"use strict";var P1r=Ce().factory,U1r=ke(),M1r=P1r(U1r("boolean"));e5.exports=M1r});var i5=c((Uie,t5)=>{"use strict";var G1r=a5();t5.exports=G1r});var n5=c((Mie,o5)=>{"use strict";var Y1r=Jr();function $1r(r,e){return r>=Y1r(e)}o5.exports=$1r});var u5=c((Gie,s5)=>{"use strict";var W1r=n5();s5.exports=W1r});var l5=c((Yie,f5)=>{"use strict";var v5=vi();function J1r(r){var e,a,t,o;if(e=r.length,e===0)return!1;for(a=v5(r[0]),o=1;o<e;o++){if(t=v5(r[o]),t<a)return!1;a=t}return!0}f5.exports=J1r});var vf=c(($ie,c5)=>{"use strict";var X1r=l5();c5.exports=X1r});var p5=c((Wie,d5)=>{"use strict";var K1r=Jr(),H1r=et();function Z1r(r,e,a){var t,o;return t=K1r(r),t===0?!1:(o=H1r(r,e,a),t===o[1]-o[0]+1)}d5.exports=Z1r});var qo=c((Jie,y5)=>{"use strict";var Q1r=p5();y5.exports=Q1r});var h5=c((Xie,m5)=>{"use strict";var rgr=qo(),egr=Sa(),agr=vf();function tgr(r,e,a){return egr(e)!==0&&agr(e)&&rgr(r,e,a)}m5.exports=tgr});var b5=c((Kie,g5)=>{"use strict";var igr=h5();g5.exports=igr});var q5=c((Hie,x5)=>{"use strict";var ogr=Ce().factory,ngr=ke(),sgr=ogr(ngr("complex_floating_point"));x5.exports=sgr});var wo=c((Zie,w5)=>{"use strict";var ugr=q5();w5.exports=ugr});var E5=c((Qie,S5)=>{"use strict";var vgr=qo(),fgr=Sa();function lgr(r,e,a){return fgr(e)!==0&&vgr(r,e,a)}S5.exports=lgr});var _5=c((roe,A5)=>{"use strict";var cgr=E5();A5.exports=cgr});var j5=c((eoe,T5)=>{"use strict";var dgr=Ce().factory,pgr=ke(),ygr=dgr(pgr("floating_point"));T5.exports=ygr});var Mn=c((aoe,I5)=>{"use strict";var mgr=j5();I5.exports=mgr});var N5=c((toe,O5)=>{"use strict";var hgr=Ce().factory,ggr=ke(),bgr=hgr(ggr("integer"));O5.exports=bgr});var ff=c((ioe,D5)=>{"use strict";var xgr=N5();D5.exports=xgr});var B5=c((ooe,k5)=>{"use strict";var qgr=Ce().factory,wgr=ke(),Sgr=qgr(wgr("numeric"));k5.exports=Sgr});var lf=c((noe,F5)=>{"use strict";var Egr=B5();F5.exports=Egr});var V5=c((soe,R5)=>{"use strict";var Agr=Pe(),_gr=Agr(Object.assign);R5.exports=_gr});var C5=c((uoe,z5)=>{"use strict";var Tgr=Object.assign;z5.exports=Tgr});var P5=c((voe,L5)=>{"use strict";var jgr=typeof Object.getOwnPropertySymbols<"u";L5.exports=jgr});var G5=c((foe,M5)=>{"use strict";var U5=zt(),Igr=U5.getOwnPropertySymbols;function Ogr(r){return Igr(U5(r))}M5.exports=Ogr});var $5=c((loe,Y5)=>{"use strict";function Ngr(){return[]}Y5.exports=Ngr});var df=c((coe,W5)=>{"use strict";var Dgr=P5(),kgr=G5(),Bgr=$5(),cf;Dgr?cf=kgr:cf=Bgr;W5.exports=cf});var X5=c((doe,J5)=>{"use strict";var Fgr=Ea(),Rgr=df(),Vgr=Mi();function zgr(r){var e,a,t;for(e=Fgr(r),a=Rgr(r),t=0;t<a.length;t++)Vgr(r,a[t])&&e.push(a[t]);return e}J5.exports=zgr});var H5=c((poe,K5)=>{"use strict";var Cgr=X5();K5.exports=Cgr});var r8=c((yoe,Q5)=>{"use strict";var Lgr=H5(),Z5=zt(),Pgr=pr();function Ugr(r){var e,a,t,o,i,n,s;if(r==null)throw new TypeError(Pgr("invalid argument. First argument must be a non-null object. Value: `%s`.",r));for(i=Z5(r),n=1;n<arguments.length;n++)if(e=arguments[n],e!=null)for(a=Lgr(Z5(e)),o=a.length,s=0;s<o;s++)t=a[s],i[t]=e[t];return i}Q5.exports=Ugr});var a8=c((moe,e8)=>{"use strict";var Mgr=V5(),Ggr=C5(),Ygr=r8(),pf;Mgr?pf=Ggr:pf=Ygr;e8.exports=pf});var i8=c((hoe,t8)=>{"use strict";var $gr=a8();function Wgr(r,e){var a=r.flags;return typeof a!="object"||a===null?{}:e?$gr({},a):a}t8.exports=Wgr});var So=c((goe,o8)=>{"use strict";var Jgr=i8();o8.exports=Jgr});var s8=c((boe,n8)=>{"use strict";var Xgr=So();function Kgr(r,e){return Xgr(r,!1)[e]}n8.exports=Kgr});var yf=c((xoe,u8)=>{"use strict";var Hgr=s8();u8.exports=Hgr});var f8=c((qoe,v8)=>{"use strict";var Zgr=yf();function Qgr(r){return Zgr(r,"READONLY")===!0}v8.exports=Qgr});var Ue=c((woe,l8)=>{"use strict";var r2r=f8();l8.exports=r2r});var d8=c((Soe,c8)=>{"use strict";var e2r=Ce().factory,a2r=ke(),t2r=e2r(a2r("real"));c8.exports=t2r});var Gn=c((Eoe,p8)=>{"use strict";var i2r=d8();p8.exports=i2r});var m8=c((Aoe,y8)=>{"use strict";var o2r=Ce().factory,n2r=ke(),s2r=o2r(n2r("real_floating_point"));y8.exports=s2r});var mf=c((_oe,h8)=>{"use strict";var u2r=m8();h8.exports=u2r});var x8=c((Toe,b8)=>{"use strict";var g8=vi();function v2r(r){var e,a,t,o;if(e=r.length,e===0)return!1;for(a=g8(r[0]),o=1;o<e;o++){if(t=g8(r[o]),t>a)return!1;a=t}return!0}b8.exports=v2r});var Yn=c((joe,q8)=>{"use strict";var f2r=x8();q8.exports=f2r});var S8=c((Ioe,w8)=>{"use strict";var l2r=qo(),c2r=Sa(),d2r=Yn();function p2r(r,e,a){return c2r(e)!==0&&d2r(e)&&l2r(r,e,a)}w8.exports=p2r});var A8=c((Ooe,E8)=>{"use strict";var y2r=S8();E8.exports=y2r});var T8=c((Noe,_8)=>{"use strict";var m2r=Ce().factory,h2r=ke(),g2r=m2r(h2r("signed_integer"));_8.exports=g2r});var $n=c((Doe,j8)=>{"use strict";var b2r=T8();j8.exports=b2r});var O8=c((koe,I8)=>{"use strict";var x2r=Ce().factory,q2r=ke(),w2r=x2r(q2r("unsigned_integer"));I8.exports=w2r});var Wn=c((Boe,N8)=>{"use strict";var S2r=O8();N8.exports=S2r});var k8=c((Foe,D8)=>{"use strict";var ce=Rt(),fe={};ce(fe,"hasEqualShape",r5());ce(fe,"isAllowedDataTypeCast",Pv());ce(fe,"isBooleanDataType",i5());ce(fe,"isBufferLengthCompatible",jv());ce(fe,"isBufferLengthCompatibleShape",u5());ce(fe,"isCastingMode",Fv());ce(fe,"isColumnMajor",vf());ce(fe,"isColumnMajorContiguous",b5());ce(fe,"isComplexFloatingPointDataType",wo());ce(fe,"isContiguous",_5());ce(fe,"isDataType",di());ce(fe,"isFloatingPointDataType",Mn());ce(fe,"isIndexMode",pi());ce(fe,"isIntegerDataType",ff());ce(fe,"isMostlySafeDataTypeCast",In());ce(fe,"isNumericDataType",lf());ce(fe,"isOrder",_a());ce(fe,"isReadOnly",Ue());ce(fe,"isRealDataType",Gn());ce(fe,"isRealFloatingPointDataType",mf());ce(fe,"isRowMajor",Yn());ce(fe,"isRowMajorContiguous",A8());ce(fe,"isSafeDataTypeCast",_n());ce(fe,"isSameKindDataTypeCast",Lv());ce(fe,"isSignedIntegerDataType",$n());ce(fe,"isSingleSegmentCompatible",qo());ce(fe,"isUnsignedIntegerDataType",Wn());D8.exports=fe});var F8=c((Roe,B8)=>{"use strict";function E2r(r){return r.dtype}B8.exports=E2r});var Xe=c((Voe,R8)=>{"use strict";var A2r=F8();R8.exports=A2r});var z8=c((zoe,V8)=>{"use strict";var _2r=Ve(),T2r=Tt(),j2r="row-major";function I2r(r,e){var a,t,o;return o=r.strides,typeof o!="object"||o===null?(t=r.shape,t.length===0?[0]:(a=r.order,typeof a!="string"&&(a=j2r),_2r(t,a))):e?T2r(o):o}V8.exports=I2r});var ba=c((Coe,C8)=>{"use strict";var O2r=z8();C8.exports=O2r});var P8=c((Loe,L8)=>{"use strict";var N2r=Ye();function D2r(r){var e,a,t;return t=r.offset,typeof t=="number"?t:(a=r.shape,a.length===0||(e=r.strides,typeof e!="object"||e===null)?0:N2r(a,e))}L8.exports=D2r});var Ka=c((Poe,U8)=>{"use strict";var k2r=P8();U8.exports=k2r});var G8=c((Uoe,M8)=>{"use strict";var B2r=Lt(),hf="row-major",F2r="column-major";function R2r(r){var e,a;return a=r.order,typeof a=="string"?a:(e=r.strides,typeof e!="object"||e===null||(a=B2r(e),a===1||a===3)?hf:a===2?F2r:r.shape.length===0?hf:null)}M8.exports=R2r});var sa=c((Moe,Y8)=>{"use strict";var V2r=G8();Y8.exports=V2r});var W8=c((Goe,$8)=>{"use strict";function z2r(r){return r.data}$8.exports=z2r});var ft=c((Yoe,J8)=>{"use strict";var C2r=W8();J8.exports=C2r});var K8=c(($oe,X8)=>{"use strict";var L2r=tt(),P2r=it(),U2r=bi(),M2r=St(),G2r=gi(),Y2r=Jr(),$2r=Xe(),W2r=Te(),J2r=ba(),X2r=Ka(),K2r=sa(),H2r=ft();function Z2r(r){var e,a,t,o;return e=H2r(r),t=W2r(r,!0),o=$2r(r),a=L2r(e),{ref:r,dtype:o,data:e,length:Y2r(t),shape:t,strides:J2r(r,!0),offset:X2r(r),order:K2r(r),accessorProtocol:a,accessors:a?[P2r(o),U2r(o)]:[M2r(o),G2r(o)]}}X8.exports=Z2r});var ri=c((Woe,H8)=>{"use strict";var Q2r=K8();H8.exports=Q2r});var Q8=c((Joe,Z8)=>{"use strict";function rbr(r){var e,a;if(e=[],r<=0)return e;for(a=0;a<r;a++)e.push(a);return e}Z8.exports=rbr});var a_=c((Xoe,e_)=>{"use strict";var ebr=vt(),abr=oo(),tbr=io();function ibr(r,e,a){var t,o;for(o=a,t=0;o>=0&&o<r.length;)r[o]=t,o+=e,t+=1;return r}function r_(r,e,a,t){var o,i,n;for(i=a*2,n=t*2,o=0;n>=0&&n<e.length;)e[n]=o,e[n+1]=0,n+=i,o+=1;return r}function obr(r,e,a){var t,o,i,n;for(t=r.data,o=r.accessors[1],n=a,i=0;n>=0&&n<t.length;)o(t,n,i),n+=e,i+=1;return t}function nbr(r,e,a){var t=ebr(r);return t.accessorProtocol?t.dtype==="complex128"?r_(r,abr(r,0),e,a):t.dtype==="complex64"?r_(r,tbr(r,0),e,a):obr(t,e,a):ibr(r,e,a)}e_.exports=nbr});var qe=c((Koe,i_)=>{"use strict";var sbr=Ir(),t_=Q8(),ubr=a_();sbr(t_,"assign",ubr);i_.exports=t_});var n_=c((Hoe,o_)=>{"use strict";function vbr(r,e){var a,t;for(a=[],t=0;t<e.length;t++)a.push(r[e[t]]);return a}o_.exports=vbr});var Kr=c((Zoe,s_)=>{"use strict";var fbr=n_();s_.exports=fbr});var v_=c((Qoe,u_)=>{"use strict";function lbr(r,e){var a,t,o,i,n,s,u,v,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(u=r[o],a=u<0?-u:u,v=e[i],n=o-1,s=i-1;n>=0&&(f=r[n],t=f<0?-f:f,!(t<=a));)r[n+1]=f,e[s+1]=e[s],n-=1,s-=1;r[n+1]=u,e[s+1]=v,o+=1,i+=1}}u_.exports=lbr});var c_=c((rne,l_)=>{"use strict";var cbr=qe(),dbr=Tt(),f_=Kr(),pbr=v_();function ybr(r,e,a){var t;return t=cbr(r.length),e=dbr(e),pbr(e,t),r=f_(r,t),a=f_(a,t),{sh:r,sx:e,sy:a,idx:t}}l_.exports=ybr});var Fr=c((ene,d_)=>{"use strict";var mbr=c_();d_.exports=mbr});var y_=c((ane,p_)=>{"use strict";var hbr={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};p_.exports=hbr});var g_=c((tne,h_)=>{"use strict";var m_=bt(),gf=y_();function gbr(r,e){var a,t;return a=m_(r),t=m_(e),a===null||t===null?gf.BLOCK_SIZE_IN_ELEMENTS:a>t?gf.BLOCK_SIZE_IN_BYTES/a|0:gf.BLOCK_SIZE_IN_BYTES/t|0}h_.exports=gbr});var Br=c((ine,b_)=>{"use strict";var bbr=g_();b_.exports=bbr});var q_=c((one,x_)=>{"use strict";var xbr=Fr(),qbr=Br();function wbr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T;for(T=xbr(r.shape,r.strides,e.strides),m=T.sh,h=T.sx,g=T.sy,a=qbr(r.dtype,e.dtype),x=r.offset,S=e.offset,t=r.data,o=e.data,s=h[0],v=g[0],i=r.accessors[0],n=e.accessors[1],q=m[1];q>0;)for(q<a?(y=q,q=0):(y=a,q-=a),l=x+q*h[1],p=S+q*g[1],E=m[0];E>0;)for(E<a?(d=E,E=0):(d=a,E-=a),w=l+E*h[0],A=p+E*g[0],u=h[1]-d*h[0],f=g[1]-d*g[0],b=0;b<y;b++){for(_=0;_<d;_++)n(o,A,i(t,w)),w+=s,A+=v;w+=u,A+=f}}x_.exports=wbr});var S_=c((nne,w_)=>{"use strict";var Sbr=Fr(),Ebr=Br();function Abr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F;for(F=Sbr(r.shape,r.strides,e.strides),g=F.sh,A=F.sx,_=F.sy,a=Ebr(r.dtype,e.dtype),b=r.offset,E=e.offset,t=r.data,o=e.data,s=A[0],f=_[0],i=r.accessors[0],n=e.accessors[1],N=g[2];N>0;)for(N<a?(w=N,N=0):(w=a,N-=a),d=b+N*A[2],h=E+N*_[2],k=g[1];k>0;)for(k<a?(S=k,k=0):(S=a,k-=a),v=A[2]-S*A[1],p=_[2]-S*_[1],m=d+k*A[1],y=h+k*_[1],D=g[0];D>0;)for(D<a?(x=D,D=0):(x=a,D-=a),q=m+D*A[0],T=y+D*_[0],u=A[1]-x*A[0],l=_[1]-x*_[0],I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<x;j++)n(o,T,i(t,q)),q+=s,T+=f;q+=u,T+=l}q+=v,T+=p}}w_.exports=Abr});var A_=c((sne,E_)=>{"use strict";var _br=Fr(),Tbr=Br();function jbr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P;for(P=_br(r.shape,r.strides,e.strides),A=P.sh,T=P.sx,j=P.sy,a=Tbr(r.dtype,e.dtype),O=r.offset,I=e.offset,t=r.data,o=e.data,s=T[0],l=j[0],i=r.accessors[0],n=e.accessors[1],L=A[3];L>0;)for(L<a?(q=L,L=0):(q=a,L-=a),g=O+L*T[3],w=I+L*j[3],C=A[2];C>0;)for(C<a?(E=C,C=0):(E=a,C-=a),f=T[3]-E*T[2],d=j[3]-E*j[2],h=g+C*T[2],S=w+C*j[2],z=A[1];z>0;)for(z<a?(b=z,z=0):(b=a,z-=a),v=T[2]-b*T[1],m=j[2]-b*j[1],y=h+z*T[1],x=S+z*j[1],V=A[0];V>0;)for(V<a?(_=V,V=0):(_=a,V-=a),D=y+V*T[0],k=x+V*j[0],u=T[1]-_*T[0],p=j[1]-_*j[0],B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<b;F++){for(N=0;N<_;N++)n(o,k,i(t,D)),D+=s,k+=l;D+=u,k+=p}D+=v,k+=m}D+=f,k+=d}}E_.exports=jbr});var T_=c((une,__)=>{"use strict";var Ibr=Fr(),Obr=Br();function Nbr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J;for(J=Ibr(r.shape,r.strides,e.strides),q=J.sh,k=J.sx,N=J.sy,a=Obr(r.dtype,e.dtype),F=r.offset,R=e.offset,t=r.data,o=e.data,s=k[0],p=N[0],i=r.accessors[0],n=e.accessors[1],W=q[4];W>0;)for(W<a?(D=W,W=0):(D=a,W-=a),w=F+W*k[4],E=R+W*N[4],Y=q[3];Y>0;)for(Y<a?(I=Y,Y=0):(I=a,Y-=a),l=k[4]-I*k[3],h=N[4]-I*N[3],S=w+Y*k[3],b=E+Y*N[3],$=q[2];$>0;)for($<a?(O=$,$=0):(O=a,$-=a),f=k[3]-O*k[2],y=N[3]-O*N[2],x=S+$*k[2],_=b+$*N[2],G=q[1];G>0;)for(G<a?(j=G,G=0):(j=a,G-=a),v=k[2]-j*k[1],d=N[2]-j*N[1],g=x+G*k[1],A=_+G*N[1],M=q[0];M>0;)for(M<a?(T=M,M=0):(T=a,M-=a),B=g+M*k[0],V=A+M*N[0],u=k[1]-T*k[0],m=N[1]-T*N[0],U=0;U<D;U++){for(P=0;P<I;P++){for(L=0;L<O;L++){for(C=0;C<j;C++){for(z=0;z<T;z++)n(o,V,i(t,B)),B+=s,V+=p;B+=u,V+=m}B+=v,V+=d}B+=f,V+=y}B+=l,V+=h}}__.exports=Nbr});var I_=c((vne,j_)=>{"use strict";var Dbr=Fr(),kbr=Br();function Bbr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar;for(ar=Dbr(r.shape,r.strides,e.strides),I=ar.sh,V=ar.sx,z=ar.sy,a=kbr(r.dtype,e.dtype),C=r.offset,L=e.offset,t=r.data,o=e.data,s=V[0],m=z[0],i=r.accessors[0],n=e.accessors[1],rr=I[5];rr>0;)for(rr<a?(B=rr,rr=0):(B=a,rr-=a),b=C+rr*V[5],O=L+rr*z[5],Z=I[4];Z>0;)for(Z<a?(R=Z,Z=0):(R=a,Z-=a),p=V[5]-R*V[4],x=z[5]-R*z[4],_=b+Z*V[4],j=O+Z*z[4],Q=I[3];Q>0;)for(Q<a?(F=Q,Q=0):(F=a,Q-=a),l=V[4]-F*V[3],g=z[4]-F*z[3],A=_+Q*V[3],T=j+Q*z[3],H=I[2];H>0;)for(H<a?(N=H,H=0):(N=a,H-=a),f=V[3]-N*V[2],h=z[3]-N*z[2],w=A+H*V[2],q=T+H*z[2],K=I[1];K>0;)for(K<a?(k=K,K=0):(k=a,K-=a),v=V[2]-k*V[1],y=z[2]-k*z[1],S=w+K*V[1],E=q+K*z[1],X=I[0];X>0;)for(X<a?(D=X,X=0):(D=a,X-=a),P=S+X*V[0],U=E+X*z[0],u=V[1]-D*V[0],d=z[1]-D*z[0],J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++)n(o,U,i(t,P)),P+=s,U+=m;P+=u,U+=d}P+=v,U+=y}P+=f,U+=h}P+=l,U+=g}P+=p,U+=x}}j_.exports=Bbr});var N_=c((fne,O_)=>{"use strict";var Fbr=Fr(),Rbr=Br();function Vbr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur;for(ur=Fbr(r.shape,r.strides,e.strides),F=ur.sh,U=ur.sx,M=ur.sy,a=Rbr(r.dtype,e.dtype),G=r.offset,$=e.offset,t=r.data,o=e.data,s=U[0],d=M[0],i=r.accessors[0],n=e.accessors[1],sr=F[6];sr>0;)for(sr<a?(P=sr,sr=0):(P=a,sr-=a),T=G+sr*U[6],N=$+sr*M[6],nr=F[5];nr>0;)for(nr<a?(L=nr,nr=0):(L=a,nr-=a),m=U[6]-L*U[5],w=M[6]-L*M[5],q=T+nr*U[5],k=N+nr*M[5],or=F[4];or>0;)for(or<a?(C=or,or=0):(C=a,or-=a),p=U[5]-C*U[4],S=M[5]-C*M[4],E=q+or*U[4],D=k+or*M[4],tr=F[3];tr>0;)for(tr<a?(z=tr,tr=0):(z=a,tr-=a),l=U[4]-z*U[3],x=M[4]-z*M[3],b=E+tr*U[3],I=D+tr*M[3],ir=F[2];ir>0;)for(ir<a?(V=ir,ir=0):(V=a,ir-=a),f=U[3]-V*U[2],g=M[3]-V*M[2],_=b+ir*U[2],O=I+ir*M[2],er=F[1];er>0;)for(er<a?(B=er,er=0):(B=a,er-=a),v=U[2]-B*U[1],h=M[2]-B*M[1],A=_+er*U[1],j=O+er*M[1],ar=F[0];ar>0;)for(ar<a?(R=ar,ar=0):(R=a,ar-=a),Y=A+ar*U[0],W=j+ar*M[0],u=U[1]-R*U[0],y=M[1]-R*M[0],rr=0;rr<P;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<C;Q++){for(H=0;H<z;H++){for(K=0;K<V;K++){for(X=0;X<B;X++){for(J=0;J<R;J++)n(o,W,i(t,Y)),Y+=s,W+=d;Y+=u,W+=y}Y+=v,W+=h}Y+=f,W+=g}Y+=l,W+=x}Y+=p,W+=S}Y+=m,W+=w}}O_.exports=Vbr});var k_=c((lne,D_)=>{"use strict";var zbr=Fr(),Cbr=Br();function Lbr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr;for(hr=zbr(r.shape,r.strides,e.strides),z=hr.sh,W=hr.sx,J=hr.sy,a=Cbr(r.dtype,e.dtype),X=r.offset,K=e.offset,t=r.data,o=e.data,s=W[0],y=J[0],i=r.accessors[0],n=e.accessors[1],mr=z[7];mr>0;)for(mr<a?(Y=mr,mr=0):(Y=a,mr-=a),I=X+mr*W[7],V=K+mr*J[7],dr=z[6];dr>0;)for(dr<a?($=dr,dr=0):($=a,dr-=a),d=W[7]-$*W[6],_=J[7]-$*J[6],O=I+dr*W[6],B=V+dr*J[6],yr=z[5];yr>0;)for(yr<a?(G=yr,yr=0):(G=a,yr-=a),m=W[6]-G*W[5],A=J[6]-G*J[5],j=O+yr*W[5],R=B+yr*J[5],fr=z[4];fr>0;)for(fr<a?(M=fr,fr=0):(M=a,fr-=a),p=W[5]-M*W[4],w=J[5]-M*J[4],T=j+fr*W[4],F=R+fr*J[4],lr=z[3];lr>0;)for(lr<a?(U=lr,lr=0):(U=a,lr-=a),l=W[4]-U*W[3],S=J[4]-U*J[3],q=T+lr*W[3],N=F+lr*J[3],vr=z[2];vr>0;)for(vr<a?(P=vr,vr=0):(P=a,vr-=a),f=W[3]-P*W[2],x=J[3]-P*J[2],E=q+vr*W[2],k=N+vr*J[2],ur=z[1];ur>0;)for(ur<a?(L=ur,ur=0):(L=a,ur-=a),v=W[2]-L*W[1],g=J[2]-L*J[1],b=E+ur*W[1],D=k+ur*J[1],sr=z[0];sr>0;)for(sr<a?(C=sr,sr=0):(C=a,sr-=a),H=b+sr*W[0],Q=D+sr*J[0],u=W[1]-C*W[0],h=J[1]-C*J[0],nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<L;rr++){for(Z=0;Z<C;Z++)n(o,Q,i(t,H)),H+=s,Q+=y;H+=u,Q+=h}H+=v,Q+=g}H+=f,Q+=x}H+=l,Q+=S}H+=p,Q+=w}H+=m,Q+=A}H+=d,Q+=_}}D_.exports=Lbr});var F_=c((cne,B_)=>{"use strict";var Pbr=Fr(),Ubr=Br();function Mbr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r;for(_r=Pbr(r.shape,r.strides,e.strides),U=_r.sh,Q=_r.sx,Z=_r.sy,a=Ubr(r.dtype,e.dtype),rr=r.offset,ar=e.offset,t=r.data,o=e.data,s=Q[0],h=Z[0],i=r.accessors[0],n=e.accessors[1],Ar=U[8];Ar>0;)for(Ar<a?(H=Ar,Ar=0):(H=a,Ar-=a),N=rr+Ar*Q[8],P=ar+Ar*Z[8],gr=U[7];gr>0;)for(gr<a?(K=gr,gr=0):(K=a,gr-=a),y=Q[8]-K*Q[7],E=Z[8]-K*Z[7],k=N+gr*Q[7],L=P+gr*Z[7],qr=U[6];qr>0;)for(qr<a?(X=qr,qr=0):(X=a,qr-=a),d=Q[7]-X*Q[6],b=Z[7]-X*Z[6],D=k+qr*Q[6],C=L+qr*Z[6],xr=U[5];xr>0;)for(xr<a?(J=xr,xr=0):(J=a,xr-=a),m=Q[6]-J*Q[5],_=Z[6]-J*Z[5],I=D+xr*Q[5],z=C+xr*Z[5],wr=U[4];wr>0;)for(wr<a?(W=wr,wr=0):(W=a,wr-=a),p=Q[5]-W*Q[4],A=Z[5]-W*Z[4],O=I+wr*Q[4],V=z+wr*Z[4],br=U[3];br>0;)for(br<a?(Y=br,br=0):(Y=a,br-=a),l=Q[4]-Y*Q[3],w=Z[4]-Y*Z[3],j=O+br*Q[3],B=V+br*Z[3],hr=U[2];hr>0;)for(hr<a?($=hr,hr=0):($=a,hr-=a),f=Q[3]-$*Q[2],S=Z[3]-$*Z[2],T=j+hr*Q[2],R=B+hr*Z[2],mr=U[1];mr>0;)for(mr<a?(G=mr,mr=0):(G=a,mr-=a),v=Q[2]-G*Q[1],x=Z[2]-G*Z[1],q=T+mr*Q[1],F=R+mr*Z[1],dr=U[0];dr>0;)for(dr<a?(M=dr,dr=0):(M=a,dr-=a),er=q+dr*Q[0],ir=F+dr*Z[0],u=Q[1]-M*Q[0],g=Z[1]-M*Z[0],yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++)n(o,ir,i(t,er)),er+=s,ir+=h;er+=u,ir+=g}er+=v,ir+=x}er+=f,ir+=S}er+=l,ir+=w}er+=p,ir+=A}er+=m,ir+=_}er+=d,ir+=b}er+=y,ir+=E}}B_.exports=Mbr});var V_=c((dne,R_)=>{"use strict";var Gbr=Fr(),Ybr=Br();function $br(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,kr,Rr,Hr,ie;for(ie=Gbr(r.shape,r.strides,e.strides),Y=ie.sh,ir=ie.sx,tr=ie.sy,a=Ybr(r.dtype,e.dtype),or=r.offset,nr=e.offset,t=r.data,o=e.data,s=ir[0],g=tr[0],i=r.accessors[0],n=e.accessors[1],Hr=Y[9];Hr>0;)for(Hr<a?(er=Hr,Hr=0):(er=a,Hr-=a),B=or+Hr*ir[9],$=nr+Hr*tr[9],Rr=Y[8];Rr>0;)for(Rr<a?(ar=Rr,Rr=0):(ar=a,Rr-=a),h=ir[9]-ar*ir[8],T=tr[9]-ar*tr[8],R=B+Rr*ir[8],G=$+Rr*tr[8],kr=Y[7];kr>0;)for(kr<a?(rr=kr,kr=0):(rr=a,kr-=a),y=ir[8]-rr*ir[7],q=tr[8]-rr*tr[7],F=R+kr*ir[7],M=G+kr*tr[7],Or=Y[6];Or>0;)for(Or<a?(Z=Or,Or=0):(Z=a,Or-=a),d=ir[7]-Z*ir[6],E=tr[7]-Z*tr[6],N=F+Or*ir[6],U=M+Or*tr[6],jr=Y[5];jr>0;)for(jr<a?(Q=jr,jr=0):(Q=a,jr-=a),m=ir[6]-Q*ir[5],b=tr[6]-Q*tr[5],k=N+jr*ir[5],P=U+jr*tr[5],Tr=Y[4];Tr>0;)for(Tr<a?(H=Tr,Tr=0):(H=a,Tr-=a),p=ir[5]-H*ir[4],_=tr[5]-H*tr[4],D=k+Tr*ir[4],L=P+Tr*tr[4],_r=Y[3];_r>0;)for(_r<a?(K=_r,_r=0):(K=a,_r-=a),l=ir[4]-K*ir[3],A=tr[4]-K*tr[3],I=D+_r*ir[3],C=L+_r*tr[3],Ar=Y[2];Ar>0;)for(Ar<a?(X=Ar,Ar=0):(X=a,Ar-=a),f=ir[3]-X*ir[2],w=tr[3]-X*tr[2],O=I+Ar*ir[2],z=C+Ar*tr[2],gr=Y[1];gr>0;)for(gr<a?(J=gr,gr=0):(J=a,gr-=a),v=ir[2]-J*ir[1],S=tr[2]-J*tr[1],j=O+gr*ir[1],V=z+gr*tr[1],qr=Y[0];qr>0;)for(qr<a?(W=qr,qr=0):(W=a,qr-=a),sr=j+qr*ir[0],ur=V+qr*tr[0],u=ir[1]-W*ir[0],x=tr[1]-W*tr[0],xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(vr=0;vr<W;vr++)n(o,ur,i(t,sr)),sr+=s,ur+=g;sr+=u,ur+=x}sr+=v,ur+=S}sr+=f,ur+=w}sr+=l,ur+=A}sr+=p,ur+=_}sr+=m,ur+=b}sr+=d,ur+=E}sr+=y,ur+=q}sr+=h,ur+=T}}R_.exports=$br});var C_=c((pne,z_)=>{"use strict";var Wbr=Fr(),Jbr=Br();function Xbr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E;for(E=Wbr(r.shape,r.strides,e.strides),l=E.sh,d=E.sx,y=E.sy,a=Jbr(r.dtype,e.dtype),h=r.offset,g=e.offset,t=r.data,o=e.data,i=d[0],s=y[0],b=l[1];b>0;)for(b<a?(m=b,b=0):(m=a,b-=a),v=h+b*d[1],f=g+b*y[1],_=l[0];_>0;)for(_<a?(p=_,_=0):(p=a,_-=a),x=v+_*d[0],S=f+_*y[0],n=d[1]-p*d[0],u=y[1]-p*y[0],A=0;A<m;A++){for(w=0;w<p;w++)o[S]=t[x],x+=i,S+=s;x+=n,S+=u}}z_.exports=Xbr});var P_=c((yne,L_)=>{"use strict";var Kbr=Fr(),Hbr=Br();function Zbr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k;for(k=Kbr(r.shape,r.strides,e.strides),y=k.sh,S=k.sx,w=k.sy,a=Hbr(r.dtype,e.dtype),A=r.offset,_=e.offset,t=r.data,o=e.data,i=S[0],u=w[0],D=y[2];D>0;)for(D<a?(x=D,D=0):(x=a,D-=a),p=A+D*S[2],d=_+D*w[2],I=y[1];I>0;)for(I<a?(g=I,I=0):(g=a,I-=a),s=S[2]-g*S[1],f=w[2]-g*w[1],l=p+I*S[1],m=d+I*w[1],O=y[0];O>0;)for(O<a?(h=O,O=0):(h=a,O-=a),b=l+O*S[0],E=m+O*w[0],n=S[1]-h*S[0],v=w[1]-h*w[0],j=0;j<x;j++){for(T=0;T<g;T++){for(q=0;q<h;q++)o[E]=t[b],b+=i,E+=u;b+=n,E+=v}b+=s,E+=f}}L_.exports=Zbr});var M_=c((mne,U_)=>{"use strict";var Qbr=Fr(),rxr=Br();function exr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C;for(C=Qbr(r.shape,r.strides,e.strides),S=C.sh,E=C.sx,q=C.sy,a=rxr(r.dtype,e.dtype),T=r.offset,j=e.offset,t=r.data,o=e.data,i=E[0],v=q[0],z=S[3];z>0;)for(z<a?(b=z,z=0):(b=a,z-=a),y=T+z*E[3],x=j+z*q[3],V=S[2];V>0;)for(V<a?(_=V,V=0):(_=a,V-=a),u=E[3]-_*E[2],p=q[3]-_*q[2],d=y+V*E[2],g=x+V*q[2],B=S[1];B>0;)for(B<a?(A=B,B=0):(A=a,B-=a),s=E[2]-A*E[1],l=q[2]-A*q[1],m=d+B*E[1],h=g+B*q[1],R=S[0];R>0;)for(R<a?(w=R,R=0):(w=a,R-=a),O=m+R*E[0],I=h+R*q[0],n=E[1]-w*E[0],f=q[1]-w*q[0],F=0;F<b;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)o[I]=t[O],O+=i,I+=v;O+=n,I+=f}O+=s,I+=l}O+=u,I+=p}}U_.exports=exr});var Y_=c((hne,G_)=>{"use strict";var axr=Fr(),txr=Br();function ixr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y;for(Y=axr(r.shape,r.strides,e.strides),b=Y.sh,I=Y.sx,D=Y.sy,a=txr(r.dtype,e.dtype),k=r.offset,N=e.offset,t=r.data,o=e.data,i=I[0],f=D[0],$=b[4];$>0;)for($<a?(O=$,$=0):(O=a,$-=a),x=k+$*I[4],_=N+$*D[4],G=b[3];G>0;)for(G<a?(j=G,G=0):(j=a,G-=a),v=I[4]-j*I[3],d=D[4]-j*D[3],g=x+G*I[3],A=_+G*D[3],M=b[2];M>0;)for(M<a?(T=M,M=0):(T=a,M-=a),u=I[3]-T*I[2],m=D[3]-T*D[2],h=g+M*I[2],w=A+M*D[2],U=b[1];U>0;)for(U<a?(q=U,U=0):(q=a,U-=a),s=I[2]-q*I[1],p=D[2]-q*D[1],y=h+U*I[1],S=w+U*D[1],P=b[0];P>0;)for(P<a?(E=P,P=0):(E=a,P-=a),F=y+P*I[0],R=S+P*D[0],n=I[1]-E*I[0],l=D[1]-E*D[0],L=0;L<O;L++){for(C=0;C<j;C++){for(z=0;z<T;z++){for(V=0;V<q;V++){for(B=0;B<E;B++)o[R]=t[F],F+=i,R+=f;F+=n,R+=l}F+=s,R+=p}F+=u,R+=m}F+=v,R+=d}}G_.exports=ixr});var W_=c((gne,$_)=>{"use strict";var oxr=Fr(),nxr=Br();function sxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z;for(Z=oxr(r.shape,r.strides,e.strides),j=Z.sh,R=Z.sx,B=Z.sy,a=nxr(r.dtype,e.dtype),V=r.offset,z=e.offset,t=r.data,o=e.data,i=R[0],l=B[0],Q=j[5];Q>0;)for(Q<a?(F=Q,Q=0):(F=a,Q-=a),A=V+Q*R[5],T=z+Q*B[5],H=j[4];H>0;)for(H<a?(N=H,H=0):(N=a,H-=a),f=R[5]-N*R[4],h=B[5]-N*B[4],w=A+H*R[4],q=T+H*B[4],K=j[3];K>0;)for(K<a?(k=K,K=0):(k=a,K-=a),v=R[4]-k*R[3],y=B[4]-k*B[3],S=w+K*R[3],E=q+K*B[3],X=j[2];X>0;)for(X<a?(D=X,X=0):(D=a,X-=a),u=R[3]-D*R[2],d=B[3]-D*B[2],x=S+X*R[2],b=E+X*B[2],J=j[1];J>0;)for(J<a?(I=J,J=0):(I=a,J-=a),s=R[2]-I*R[1],m=B[2]-I*B[1],g=x+J*R[1],_=b+J*B[1],W=j[0];W>0;)for(W<a?(O=W,W=0):(O=a,W-=a),C=g+W*R[0],L=_+W*B[0],n=R[1]-O*R[0],p=B[1]-O*B[0],Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<I;U++){for(P=0;P<O;P++)o[L]=t[C],C+=i,L+=l;C+=n,L+=p}C+=s,L+=m}C+=u,L+=d}C+=v,L+=y}C+=f,L+=h}}$_.exports=sxr});var X_=c((bne,J_)=>{"use strict";var uxr=Fr(),vxr=Br();function fxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr;for(nr=uxr(r.shape,r.strides,e.strides),k=nr.sh,L=nr.sx,P=nr.sy,a=vxr(r.dtype,e.dtype),U=r.offset,M=e.offset,t=r.data,o=e.data,i=L[0],p=P[0],or=k[6];or>0;)for(or<a?(C=or,or=0):(C=a,or-=a),E=U+or*L[6],D=M+or*P[6],tr=k[5];tr>0;)for(tr<a?(z=tr,tr=0):(z=a,tr-=a),l=L[6]-z*L[5],x=P[6]-z*P[5],b=E+tr*L[5],I=D+tr*P[5],ir=k[4];ir>0;)for(ir<a?(V=ir,ir=0):(V=a,ir-=a),f=L[5]-V*L[4],g=P[5]-V*P[4],_=b+ir*L[4],O=I+ir*P[4],er=k[3];er>0;)for(er<a?(B=er,er=0):(B=a,er-=a),v=L[4]-B*L[3],h=P[4]-B*P[3],A=_+er*L[3],j=O+er*P[3],ar=k[2];ar>0;)for(ar<a?(R=ar,ar=0):(R=a,ar-=a),u=L[3]-R*L[2],y=P[3]-R*P[2],w=A+ar*L[2],T=j+ar*P[2],rr=k[1];rr>0;)for(rr<a?(F=rr,rr=0):(F=a,rr-=a),s=L[2]-F*L[1],d=P[2]-F*P[1],S=w+rr*L[1],q=T+rr*P[1],Z=k[0];Z>0;)for(Z<a?(N=Z,Z=0):(N=a,Z-=a),G=S+Z*L[0],$=q+Z*P[0],n=L[1]-N*L[0],m=P[1]-N*P[0],Q=0;Q<C;Q++){for(H=0;H<z;H++){for(K=0;K<V;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++)o[$]=t[G],G+=i,$+=p;G+=n,$+=m}G+=s,$+=d}G+=u,$+=y}G+=v,$+=h}G+=f,$+=g}G+=l,$+=x}}J_.exports=fxr});var H_=c((xne,K_)=>{"use strict";var lxr=Fr(),cxr=Br();function dxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr;for(dr=lxr(r.shape,r.strides,e.strides),B=dr.sh,$=dr.sx,Y=dr.sy,a=cxr(r.dtype,e.dtype),W=r.offset,J=e.offset,t=r.data,o=e.data,i=$[0],m=Y[0],yr=B[7];yr>0;)for(yr<a?(G=yr,yr=0):(G=a,yr-=a),j=W+yr*$[7],R=J+yr*Y[7],fr=B[6];fr>0;)for(fr<a?(M=fr,fr=0):(M=a,fr-=a),p=$[7]-M*$[6],w=Y[7]-M*Y[6],T=j+fr*$[6],F=R+fr*Y[6],lr=B[5];lr>0;)for(lr<a?(U=lr,lr=0):(U=a,lr-=a),l=$[6]-U*$[5],S=Y[6]-U*Y[5],q=T+lr*$[5],N=F+lr*Y[5],vr=B[4];vr>0;)for(vr<a?(P=vr,vr=0):(P=a,vr-=a),f=$[5]-P*$[4],x=Y[5]-P*Y[4],E=q+vr*$[4],k=N+vr*Y[4],ur=B[3];ur>0;)for(ur<a?(L=ur,ur=0):(L=a,ur-=a),v=$[4]-L*$[3],g=Y[4]-L*Y[3],b=E+ur*$[3],D=k+ur*Y[3],sr=B[2];sr>0;)for(sr<a?(C=sr,sr=0):(C=a,sr-=a),u=$[3]-C*$[2],h=Y[3]-C*Y[2],_=b+sr*$[2],I=D+sr*Y[2],nr=B[1];nr>0;)for(nr<a?(z=nr,nr=0):(z=a,nr-=a),s=$[2]-z*$[1],y=Y[2]-z*Y[1],A=_+nr*$[1],O=I+nr*Y[1],or=B[0];or>0;)for(or<a?(V=or,or=0):(V=a,or-=a),X=A+or*$[0],K=O+or*Y[0],n=$[1]-V*$[0],d=Y[1]-V*Y[0],tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<L;rr++){for(Z=0;Z<C;Z++){for(Q=0;Q<z;Q++){for(H=0;H<V;H++)o[K]=t[X],X+=i,K+=m;X+=n,K+=d}X+=s,K+=y}X+=u,K+=h}X+=v,K+=g}X+=f,K+=x}X+=l,K+=S}X+=p,K+=w}}K_.exports=dxr});var Q_=c((qne,Z_)=>{"use strict";var pxr=Fr(),yxr=Br();function mxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr;for(gr=pxr(r.shape,r.strides,e.strides),L=gr.sh,K=gr.sx,H=gr.sy,a=yxr(r.dtype,e.dtype),Q=r.offset,Z=e.offset,t=r.data,o=e.data,i=K[0],d=H[0],qr=L[8];qr>0;)for(qr<a?(X=qr,qr=0):(X=a,qr-=a),D=Q+qr*K[8],C=Z+qr*H[8],xr=L[7];xr>0;)for(xr<a?(J=xr,xr=0):(J=a,xr-=a),m=K[8]-J*K[7],_=H[8]-J*H[7],I=D+xr*K[7],z=C+xr*H[7],wr=L[6];wr>0;)for(wr<a?(W=wr,wr=0):(W=a,wr-=a),p=K[7]-W*K[6],A=H[7]-W*H[6],O=I+wr*K[6],V=z+wr*H[6],br=L[5];br>0;)for(br<a?(Y=br,br=0):(Y=a,br-=a),l=K[6]-Y*K[5],w=H[6]-Y*H[5],j=O+br*K[5],B=V+br*H[5],hr=L[4];hr>0;)for(hr<a?($=hr,hr=0):($=a,hr-=a),f=K[5]-$*K[4],S=H[5]-$*H[4],T=j+hr*K[4],R=B+hr*H[4],mr=L[3];mr>0;)for(mr<a?(G=mr,mr=0):(G=a,mr-=a),v=K[4]-G*K[3],x=H[4]-G*H[3],q=T+mr*K[3],F=R+mr*H[3],dr=L[2];dr>0;)for(dr<a?(M=dr,dr=0):(M=a,dr-=a),u=K[3]-M*K[2],g=H[3]-M*H[2],E=q+dr*K[2],N=F+dr*H[2],yr=L[1];yr>0;)for(yr<a?(U=yr,yr=0):(U=a,yr-=a),s=K[2]-U*K[1],h=H[2]-U*H[1],b=E+yr*K[1],k=N+yr*H[1],fr=L[0];fr>0;)for(fr<a?(P=fr,fr=0):(P=a,fr-=a),rr=b+fr*K[0],ar=k+fr*H[0],n=K[1]-P*K[0],y=H[1]-P*H[0],lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++){for(ir=0;ir<U;ir++){for(er=0;er<P;er++)o[ar]=t[rr],rr+=i,ar+=d;rr+=n,ar+=y}rr+=s,ar+=h}rr+=u,ar+=g}rr+=v,ar+=x}rr+=f,ar+=S}rr+=l,ar+=w}rr+=p,ar+=A}rr+=m,ar+=_}}Z_.exports=mxr});var eT=c((wne,rT)=>{"use strict";var hxr=Fr(),gxr=Br();function bxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,kr,Rr;for(Rr=hxr(r.shape,r.strides,e.strides),G=Rr.sh,ar=Rr.sx,er=Rr.sy,a=gxr(r.dtype,e.dtype),ir=r.offset,tr=e.offset,t=r.data,o=e.data,i=ar[0],y=er[0],kr=G[9];kr>0;)for(kr<a?(rr=kr,kr=0):(rr=a,kr-=a),F=ir+kr*ar[9],M=tr+kr*er[9],Or=G[8];Or>0;)for(Or<a?(Z=Or,Or=0):(Z=a,Or-=a),d=ar[9]-Z*ar[8],E=er[9]-Z*er[8],N=F+Or*ar[8],U=M+Or*er[8],jr=G[7];jr>0;)for(jr<a?(Q=jr,jr=0):(Q=a,jr-=a),m=ar[8]-Q*ar[7],b=er[8]-Q*er[7],k=N+jr*ar[7],P=U+jr*er[7],Tr=G[6];Tr>0;)for(Tr<a?(H=Tr,Tr=0):(H=a,Tr-=a),p=ar[7]-H*ar[6],_=er[7]-H*er[6],D=k+Tr*ar[6],L=P+Tr*er[6],_r=G[5];_r>0;)for(_r<a?(K=_r,_r=0):(K=a,_r-=a),l=ar[6]-K*ar[5],A=er[6]-K*er[5],I=D+_r*ar[5],C=L+_r*er[5],Ar=G[4];Ar>0;)for(Ar<a?(X=Ar,Ar=0):(X=a,Ar-=a),f=ar[5]-X*ar[4],w=er[5]-X*er[4],O=I+Ar*ar[4],z=C+Ar*er[4],gr=G[3];gr>0;)for(gr<a?(J=gr,gr=0):(J=a,gr-=a),v=ar[4]-J*ar[3],S=er[4]-J*er[3],j=O+gr*ar[3],V=z+gr*er[3],qr=G[2];qr>0;)for(qr<a?(W=qr,qr=0):(W=a,qr-=a),u=ar[3]-W*ar[2],x=er[3]-W*er[2],T=j+qr*ar[2],B=V+qr*er[2],xr=G[1];xr>0;)for(xr<a?(Y=xr,xr=0):(Y=a,xr-=a),s=ar[2]-Y*ar[1],g=er[2]-Y*er[1],q=T+xr*ar[1],R=B+xr*er[1],wr=G[0];wr>0;)for(wr<a?($=wr,wr=0):($=a,wr-=a),or=q+wr*ar[0],nr=R+wr*er[0],n=ar[1]-$*ar[0],h=er[1]-$*er[0],br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(vr=0;vr<W;vr++){for(ur=0;ur<Y;ur++){for(sr=0;sr<$;sr++)o[nr]=t[or],or+=i,nr+=y;or+=n,nr+=h}or+=s,nr+=g}or+=u,nr+=x}or+=v,nr+=S}or+=f,nr+=w}or+=l,nr+=A}or+=p,nr+=_}or+=m,nr+=b}or+=d,nr+=E}}rT.exports=bxr});var tT=c((Sne,aT)=>{"use strict";function xxr(r,e){e.accessors[1](e.data,e.offset,r.accessors[0](r.data,r.offset))}aT.exports=xxr});var oT=c((Ene,iT)=>{"use strict";function qxr(r,e){var a,t,o,i,n,s,u,v,f,l;for(u=r.shape[0],n=r.strides[0],s=e.strides[0],v=r.offset,f=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],l=0;l<u;l++)i(t,f,o(a,v)),v+=n,f+=s}iT.exports=qxr});var sT=c((Ane,nT)=>{"use strict";function wxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x;for(f=r.shape,m=r.strides,d=e.strides,r.order==="row-major"?(l=f[1],p=f[0],n=m[1],s=m[0]-l*m[1],u=d[1],v=d[0]-l*d[1]):(l=f[0],p=f[1],n=m[0],s=m[1]-l*m[0],u=d[0],v=d[1]-l*d[0]),y=r.offset,h=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],x=0;x<p;x++){for(g=0;g<l;g++)i(t,h,o(a,y)),y+=n,h+=u;y+=s,h+=v}}nT.exports=wxr});var vT=c((_ne,uT)=>{"use strict";function Sxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_;for(p=r.shape,h=r.strides,g=e.strides,r.order==="row-major"?(m=p[2],d=p[1],y=p[0],n=h[2],s=h[1]-m*h[2],u=h[0]-d*h[1],v=g[2],f=g[1]-m*g[2],l=g[0]-d*g[1]):(m=p[0],d=p[1],y=p[2],n=h[0],s=h[1]-m*h[0],u=h[2]-d*h[1],v=g[0],f=g[1]-m*g[0],l=g[2]-d*g[1]),x=r.offset,S=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],_=0;_<y;_++){for(A=0;A<d;A++){for(w=0;w<m;w++)i(t,S,o(a,x)),x+=n,S+=v;x+=s,S+=f}x+=u,S+=l}}uT.exports=Sxr});var lT=c((Tne,fT)=>{"use strict";function Exr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T;for(d=r.shape,S=r.strides,w=e.strides,r.order==="row-major"?(y=d[3],h=d[2],g=d[1],x=d[0],n=S[3],s=S[2]-y*S[3],u=S[1]-h*S[2],v=S[0]-g*S[1],f=w[3],l=w[2]-y*w[3],p=w[1]-h*w[2],m=w[0]-g*w[1]):(y=d[0],h=d[1],g=d[2],x=d[3],n=S[0],s=S[1]-y*S[0],u=S[2]-h*S[1],v=S[3]-g*S[2],f=w[0],l=w[1]-y*w[0],p=w[2]-h*w[1],m=w[3]-g*w[2]),A=r.offset,_=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],T=0;T<x;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(b=0;b<y;b++)i(t,_,o(a,A)),A+=n,_+=f;A+=s,_+=l}A+=u,_+=p}A+=v,_+=m}}fT.exports=Exr});var dT=c((jne,cT)=>{"use strict";function Axr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D;for(h=r.shape,_=r.strides,b=e.strides,r.order==="row-major"?(g=h[4],x=h[3],S=h[2],w=h[1],A=h[0],n=_[4],s=_[3]-g*_[4],u=_[2]-x*_[3],v=_[1]-S*_[2],f=_[0]-w*_[1],l=b[4],p=b[3]-g*b[4],m=b[2]-x*b[3],d=b[1]-S*b[2],y=b[0]-w*b[1]):(g=h[0],x=h[1],S=h[2],w=h[3],A=h[4],n=_[0],s=_[1]-g*_[0],u=_[2]-x*_[1],v=_[3]-S*_[2],f=_[4]-w*_[3],l=b[0],p=b[1]-g*b[0],m=b[2]-x*b[1],d=b[3]-S*b[2],y=b[4]-w*b[3]),E=r.offset,q=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<x;j++){for(T=0;T<g;T++)i(t,q,o(a,E)),E+=n,q+=l;E+=s,q+=p}E+=u,q+=m}E+=v,q+=d}E+=f,q+=y}}cT.exports=Axr});var yT=c((Ine,pT)=>{"use strict";function _xr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R;for(x=r.shape,q=r.strides,T=e.strides,r.order==="row-major"?(S=x[5],w=x[4],A=x[3],_=x[2],b=x[1],E=x[0],n=q[5],s=q[4]-S*q[5],u=q[3]-w*q[4],v=q[2]-A*q[3],f=q[1]-_*q[2],l=q[0]-b*q[1],p=T[5],m=T[4]-S*T[5],d=T[3]-w*T[4],y=T[2]-A*T[3],h=T[1]-_*T[2],g=T[0]-b*T[1]):(S=x[0],w=x[1],A=x[2],_=x[3],b=x[4],E=x[5],n=q[0],s=q[1]-S*q[0],u=q[2]-w*q[1],v=q[3]-A*q[2],f=q[4]-_*q[3],l=q[5]-b*q[4],p=T[0],m=T[1]-S*T[0],d=T[2]-w*T[1],y=T[3]-A*T[2],h=T[4]-_*T[3],g=T[5]-b*T[4]),j=r.offset,O=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],R=0;R<E;R++){for(F=0;F<b;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++)i(t,O,o(a,j)),j+=n,O+=p;j+=s,O+=m}j+=u,O+=d}j+=v,O+=y}j+=f,O+=h}j+=l,O+=g}}pT.exports=_xr});var hT=c((One,mT)=>{"use strict";function Txr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C;for(w=r.shape,O=r.strides,I=e.strides,r.order==="row-major"?(A=w[6],_=w[5],b=w[4],E=w[3],q=w[2],T=w[1],j=w[0],n=O[6],s=O[5]-A*O[6],u=O[4]-_*O[5],v=O[3]-b*O[4],f=O[2]-E*O[3],l=O[1]-q*O[2],p=O[0]-T*O[1],m=I[6],d=I[5]-A*I[6],y=I[4]-_*I[5],h=I[3]-b*I[4],g=I[2]-E*I[3],x=I[1]-q*I[2],S=I[0]-T*I[1]):(A=w[0],_=w[1],b=w[2],E=w[3],q=w[4],T=w[5],j=w[6],n=O[0],s=O[1]-A*O[0],u=O[2]-_*O[1],v=O[3]-b*O[2],f=O[4]-E*O[3],l=O[5]-q*O[4],p=O[6]-T*O[5],m=I[0],d=I[1]-A*I[0],y=I[2]-_*I[1],h=I[3]-b*I[2],g=I[4]-E*I[3],x=I[5]-q*I[4],S=I[6]-T*I[5]),D=r.offset,k=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],C=0;C<j;C++){for(z=0;z<T;z++){for(V=0;V<q;V++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(F=0;F<_;F++){for(N=0;N<A;N++)i(t,k,o(a,D)),D+=n,k+=m;D+=s,k+=d}D+=u,k+=y}D+=v,k+=h}D+=f,k+=g}D+=l,k+=x}D+=p,k+=S}}mT.exports=Txr});var bT=c((Nne,gT)=>{"use strict";function jxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M;for(_=r.shape,k=r.strides,N=e.strides,r.order==="row-major"?(b=_[7],E=_[6],q=_[5],T=_[4],j=_[3],O=_[2],I=_[1],D=_[0],n=k[7],s=k[6]-b*k[7],u=k[5]-E*k[6],v=k[4]-q*k[5],f=k[3]-T*k[4],l=k[2]-j*k[3],p=k[1]-O*k[2],m=k[0]-I*k[1],d=N[7],y=N[6]-b*N[7],h=N[5]-E*N[6],g=N[4]-q*N[5],x=N[3]-T*N[4],S=N[2]-j*N[3],w=N[1]-O*N[2],A=N[0]-I*N[1]):(b=_[0],E=_[1],q=_[2],T=_[3],j=_[4],O=_[5],I=_[6],D=_[7],n=k[0],s=k[1]-b*k[0],u=k[2]-E*k[1],v=k[3]-q*k[2],f=k[4]-T*k[3],l=k[5]-j*k[4],p=k[6]-O*k[5],m=k[7]-I*k[6],d=N[0],y=N[1]-b*N[0],h=N[2]-E*N[1],g=N[3]-q*N[2],x=N[4]-T*N[3],S=N[5]-j*N[4],w=N[6]-O*N[5],A=N[7]-I*N[6]),F=r.offset,R=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],M=0;M<D;M++){for(U=0;U<I;U++){for(P=0;P<O;P++){for(L=0;L<j;L++){for(C=0;C<T;C++){for(z=0;z<q;z++){for(V=0;V<E;V++){for(B=0;B<b;B++)i(t,R,o(a,F)),F+=n,R+=d;F+=s,R+=y}F+=u,R+=h}F+=v,R+=g}F+=f,R+=x}F+=l,R+=S}F+=p,R+=w}F+=m,R+=A}}gT.exports=jxr});var qT=c((Dne,xT)=>{"use strict";function Ixr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W;for(E=r.shape,R=r.strides,B=e.strides,r.order==="row-major"?(q=E[8],T=E[7],j=E[6],O=E[5],I=E[4],D=E[3],k=E[2],N=E[1],F=E[0],n=R[8],s=R[7]-q*R[8],u=R[6]-T*R[7],v=R[5]-j*R[6],f=R[4]-O*R[5],l=R[3]-I*R[4],p=R[2]-D*R[3],m=R[1]-k*R[2],d=R[0]-N*R[1],y=B[8],h=B[7]-q*B[8],g=B[6]-T*B[7],x=B[5]-j*B[6],S=B[4]-O*B[5],w=B[3]-I*B[4],A=B[2]-D*B[3],_=B[1]-k*B[2],b=B[0]-N*B[1]):(q=E[0],T=E[1],j=E[2],O=E[3],I=E[4],D=E[5],k=E[6],N=E[7],F=E[8],n=R[0],s=R[1]-q*R[0],u=R[2]-T*R[1],v=R[3]-j*R[2],f=R[4]-O*R[3],l=R[5]-I*R[4],p=R[6]-D*R[5],m=R[7]-k*R[6],d=R[8]-N*R[7],y=B[0],h=B[1]-q*B[0],g=B[2]-T*B[1],x=B[3]-j*B[2],S=B[4]-O*B[3],w=B[5]-I*B[4],A=B[6]-D*B[5],_=B[7]-k*B[6],b=B[8]-N*B[7]),V=r.offset,z=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(U=0;U<O;U++){for(P=0;P<j;P++){for(L=0;L<T;L++){for(C=0;C<q;C++)i(t,z,o(a,V)),V+=n,z+=y;V+=s,z+=h}V+=u,z+=g}V+=v,z+=x}V+=f,z+=S}V+=l,z+=w}V+=p,z+=A}V+=m,z+=_}V+=d,z+=b}}xT.exports=Ixr});var ST=c((kne,wT)=>{"use strict";function Oxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H;for(T=r.shape,z=r.strides,C=e.strides,r.order==="row-major"?(j=T[9],O=T[8],I=T[7],D=T[6],k=T[5],N=T[4],F=T[3],R=T[2],B=T[1],V=T[0],n=z[9],s=z[8]-j*z[9],u=z[7]-O*z[8],v=z[6]-I*z[7],f=z[5]-D*z[6],l=z[4]-k*z[5],p=z[3]-N*z[4],m=z[2]-F*z[3],d=z[1]-R*z[2],y=z[0]-B*z[1],h=C[9],g=C[8]-j*C[9],x=C[7]-O*C[8],S=C[6]-I*C[7],w=C[5]-D*C[6],A=C[4]-k*C[5],_=C[3]-N*C[4],b=C[2]-F*C[3],E=C[1]-R*C[2],q=C[0]-B*C[1]):(j=T[0],O=T[1],I=T[2],D=T[3],k=T[4],N=T[5],F=T[6],R=T[7],B=T[8],V=T[9],n=z[0],s=z[1]-j*z[0],u=z[2]-O*z[1],v=z[3]-I*z[2],f=z[4]-D*z[3],l=z[5]-k*z[4],p=z[6]-N*z[5],m=z[7]-F*z[6],d=z[8]-R*z[7],y=z[9]-B*z[8],h=C[0],g=C[1]-j*C[0],x=C[2]-O*C[1],S=C[3]-I*C[2],w=C[4]-D*C[3],A=C[5]-k*C[4],_=C[6]-N*C[5],b=C[7]-F*C[6],E=C[8]-R*C[7],q=C[9]-B*C[8]),L=r.offset,P=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],H=0;H<V;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++){for(U=0;U<j;U++)i(t,P,o(a,L)),L+=n,P+=h;L+=s,P+=g}L+=u,P+=x}L+=v,P+=S}L+=f,P+=w}L+=l,P+=A}L+=p,P+=_}L+=m,P+=b}L+=d,P+=E}L+=y,P+=q}}wT.exports=Oxr});var TT=c((Bne,_T)=>{"use strict";var Nxr=Jr(),ET=na(),AT="throw";function Dxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h;for(v=r.shape,n=Nxr(v),a=r.data,t=e.data,f=r.strides,l=e.strides,p=r.offset,m=e.offset,o=r.order,i=e.order,s=r.accessors[0],u=e.accessors[1],h=0;h<n;h++)d=ET(v,f,p,o,h,AT),y=ET(v,l,m,i,h,AT),u(t,y,s(a,d))}_T.exports=Dxr});var IT=c((Fne,jT)=>{"use strict";function kxr(r,e){e.data[e.offset]=r.data[r.offset]}jT.exports=kxr});var NT=c((Rne,OT)=>{"use strict";function Bxr(r,e){var a,t,o,i,n,s,u,v;for(n=r.shape[0],o=r.strides[0],i=e.strides[0],s=r.offset,u=e.offset,a=r.data,t=e.data,v=0;v<n;v++)t[u]=a[s],s+=o,u+=i}OT.exports=Bxr});var kT=c((Vne,DT)=>{"use strict";function Fxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h;for(u=r.shape,l=r.strides,p=e.strides,r.order==="row-major"?(v=u[1],f=u[0],o=l[1],i=l[0]-v*l[1],n=p[1],s=p[0]-v*p[1]):(v=u[0],f=u[1],o=l[0],i=l[1]-v*l[0],n=p[0],s=p[1]-v*p[0]),m=r.offset,d=e.offset,a=r.data,t=e.data,h=0;h<f;h++){for(y=0;y<v;y++)t[d]=a[m],m+=o,d+=n;m+=i,d+=s}}DT.exports=Fxr});var FT=c((zne,BT)=>{"use strict";function Rxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w;for(f=r.shape,d=r.strides,y=e.strides,r.order==="row-major"?(l=f[2],p=f[1],m=f[0],o=d[2],i=d[1]-l*d[2],n=d[0]-p*d[1],s=y[2],u=y[1]-l*y[2],v=y[0]-p*y[1]):(l=f[0],p=f[1],m=f[2],o=d[0],i=d[1]-l*d[0],n=d[2]-p*d[1],s=y[0],u=y[1]-l*y[0],v=y[2]-p*y[1]),h=r.offset,g=e.offset,a=r.data,t=e.data,w=0;w<m;w++){for(S=0;S<p;S++){for(x=0;x<l;x++)t[g]=a[h],h+=o,g+=s;h+=i,g+=u}h+=n,g+=v}}BT.exports=Rxr});var VT=c((Cne,RT)=>{"use strict";function Vxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E;for(p=r.shape,g=r.strides,x=e.strides,r.order==="row-major"?(m=p[3],d=p[2],y=p[1],h=p[0],o=g[3],i=g[2]-m*g[3],n=g[1]-d*g[2],s=g[0]-y*g[1],u=x[3],v=x[2]-m*x[3],f=x[1]-d*x[2],l=x[0]-y*x[1]):(m=p[0],d=p[1],y=p[2],h=p[3],o=g[0],i=g[1]-m*g[0],n=g[2]-d*g[1],s=g[3]-y*g[2],u=x[0],v=x[1]-m*x[0],f=x[2]-d*x[1],l=x[3]-y*x[2]),S=r.offset,w=e.offset,a=r.data,t=e.data,E=0;E<h;E++){for(b=0;b<y;b++){for(_=0;_<d;_++){for(A=0;A<m;A++)t[w]=a[S],S+=o,w+=u;S+=i,w+=v}S+=n,w+=f}S+=s,w+=l}}RT.exports=Vxr});var CT=c((Lne,zT)=>{"use strict";function zxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O;for(d=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(y=d[4],h=d[3],g=d[2],x=d[1],S=d[0],o=w[4],i=w[3]-y*w[4],n=w[2]-h*w[3],s=w[1]-g*w[2],u=w[0]-x*w[1],v=A[4],f=A[3]-y*A[4],l=A[2]-h*A[3],p=A[1]-g*A[2],m=A[0]-x*A[1]):(y=d[0],h=d[1],g=d[2],x=d[3],S=d[4],o=w[0],i=w[1]-y*w[0],n=w[2]-h*w[1],s=w[3]-g*w[2],u=w[4]-x*w[3],v=A[0],f=A[1]-y*A[0],l=A[2]-h*A[1],p=A[3]-g*A[2],m=A[4]-x*A[3]),_=r.offset,b=e.offset,a=r.data,t=e.data,O=0;O<S;O++){for(j=0;j<x;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<y;E++)t[b]=a[_],_+=o,b+=v;_+=i,b+=f}_+=n,b+=l}_+=s,b+=p}_+=u,b+=m}}zT.exports=zxr});var PT=c((Pne,LT)=>{"use strict";function Cxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N;for(h=r.shape,b=r.strides,E=e.strides,r.order==="row-major"?(g=h[5],x=h[4],S=h[3],w=h[2],A=h[1],_=h[0],o=b[5],i=b[4]-g*b[5],n=b[3]-x*b[4],s=b[2]-S*b[3],u=b[1]-w*b[2],v=b[0]-A*b[1],f=E[5],l=E[4]-g*E[5],p=E[3]-x*E[4],m=E[2]-S*E[3],d=E[1]-w*E[2],y=E[0]-A*E[1]):(g=h[0],x=h[1],S=h[2],w=h[3],A=h[4],_=h[5],o=b[0],i=b[1]-g*b[0],n=b[2]-x*b[1],s=b[3]-S*b[2],u=b[4]-w*b[3],v=b[5]-A*b[4],f=E[0],l=E[1]-g*E[0],p=E[2]-x*E[1],m=E[3]-S*E[2],d=E[4]-w*E[3],y=E[5]-A*E[4]),q=r.offset,T=e.offset,a=r.data,t=e.data,N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<x;O++){for(j=0;j<g;j++)t[T]=a[q],q+=o,T+=f;q+=i,T+=l}q+=n,T+=p}q+=s,T+=m}q+=u,T+=d}q+=v,T+=y}}LT.exports=Cxr});var MT=c((Une,UT)=>{"use strict";function Lxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V;for(x=r.shape,T=r.strides,j=e.strides,r.order==="row-major"?(S=x[6],w=x[5],A=x[4],_=x[3],b=x[2],E=x[1],q=x[0],o=T[6],i=T[5]-S*T[6],n=T[4]-w*T[5],s=T[3]-A*T[4],u=T[2]-_*T[3],v=T[1]-b*T[2],f=T[0]-E*T[1],l=j[6],p=j[5]-S*j[6],m=j[4]-w*j[5],d=j[3]-A*j[4],y=j[2]-_*j[3],h=j[1]-b*j[2],g=j[0]-E*j[1]):(S=x[0],w=x[1],A=x[2],_=x[3],b=x[4],E=x[5],q=x[6],o=T[0],i=T[1]-S*T[0],n=T[2]-w*T[1],s=T[3]-A*T[2],u=T[4]-_*T[3],v=T[5]-b*T[4],f=T[6]-E*T[5],l=j[0],p=j[1]-S*j[0],m=j[2]-w*j[1],d=j[3]-A*j[2],y=j[4]-_*j[3],h=j[5]-b*j[4],g=j[6]-E*j[5]),O=r.offset,I=e.offset,a=r.data,t=e.data,V=0;V<q;V++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++)t[I]=a[O],O+=o,I+=l;O+=i,I+=p}O+=n,I+=m}O+=s,I+=d}O+=u,I+=y}O+=v,I+=h}O+=f,I+=g}}UT.exports=Lxr});var YT=c((Mne,GT)=>{"use strict";function Pxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P;for(w=r.shape,I=r.strides,D=e.strides,r.order==="row-major"?(A=w[7],_=w[6],b=w[5],E=w[4],q=w[3],T=w[2],j=w[1],O=w[0],o=I[7],i=I[6]-A*I[7],n=I[5]-_*I[6],s=I[4]-b*I[5],u=I[3]-E*I[4],v=I[2]-q*I[3],f=I[1]-T*I[2],l=I[0]-j*I[1],p=D[7],m=D[6]-A*D[7],d=D[5]-_*D[6],y=D[4]-b*D[5],h=D[3]-E*D[4],g=D[2]-q*D[3],x=D[1]-T*D[2],S=D[0]-j*D[1]):(A=w[0],_=w[1],b=w[2],E=w[3],q=w[4],T=w[5],j=w[6],O=w[7],o=I[0],i=I[1]-A*I[0],n=I[2]-_*I[1],s=I[3]-b*I[2],u=I[4]-E*I[3],v=I[5]-q*I[4],f=I[6]-T*I[5],l=I[7]-j*I[6],p=D[0],m=D[1]-A*D[0],d=D[2]-_*D[1],y=D[3]-b*D[2],h=D[4]-E*D[3],g=D[5]-q*D[4],x=D[6]-T*D[5],S=D[7]-j*D[6]),k=r.offset,N=e.offset,a=r.data,t=e.data,P=0;P<O;P++){for(L=0;L<j;L++){for(C=0;C<T;C++){for(z=0;z<q;z++){for(V=0;V<E;V++){for(B=0;B<b;B++){for(R=0;R<_;R++){for(F=0;F<A;F++)t[N]=a[k],k+=o,N+=p;k+=i,N+=m}k+=n,N+=d}k+=s,N+=y}k+=u,N+=h}k+=v,N+=g}k+=f,N+=x}k+=l,N+=S}}GT.exports=Pxr});var WT=c((Gne,$T)=>{"use strict";function Uxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$;for(_=r.shape,N=r.strides,F=e.strides,r.order==="row-major"?(b=_[8],E=_[7],q=_[6],T=_[5],j=_[4],O=_[3],I=_[2],D=_[1],k=_[0],o=N[8],i=N[7]-b*N[8],n=N[6]-E*N[7],s=N[5]-q*N[6],u=N[4]-T*N[5],v=N[3]-j*N[4],f=N[2]-O*N[3],l=N[1]-I*N[2],p=N[0]-D*N[1],m=F[8],d=F[7]-b*F[8],y=F[6]-E*F[7],h=F[5]-q*F[6],g=F[4]-T*F[5],x=F[3]-j*F[4],S=F[2]-O*F[3],w=F[1]-I*F[2],A=F[0]-D*F[1]):(b=_[0],E=_[1],q=_[2],T=_[3],j=_[4],O=_[5],I=_[6],D=_[7],k=_[8],o=N[0],i=N[1]-b*N[0],n=N[2]-E*N[1],s=N[3]-q*N[2],u=N[4]-T*N[3],v=N[5]-j*N[4],f=N[6]-O*N[5],l=N[7]-I*N[6],p=N[8]-D*N[7],m=F[0],d=F[1]-b*F[0],y=F[2]-E*F[1],h=F[3]-q*F[2],g=F[4]-T*F[3],x=F[5]-j*F[4],S=F[6]-O*F[5],w=F[7]-I*F[6],A=F[8]-D*F[7]),R=r.offset,B=e.offset,a=r.data,t=e.data,$=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(U=0;U<O;U++){for(P=0;P<j;P++){for(L=0;L<T;L++){for(C=0;C<q;C++){for(z=0;z<E;z++){for(V=0;V<b;V++)t[B]=a[R],R+=o,B+=m;R+=i,B+=d}R+=n,B+=y}R+=s,B+=h}R+=u,B+=g}R+=v,B+=x}R+=f,B+=S}R+=l,B+=w}R+=p,B+=A}}$T.exports=Uxr});var XT=c((Yne,JT)=>{"use strict";function Mxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X;for(E=r.shape,B=r.strides,V=e.strides,r.order==="row-major"?(q=E[9],T=E[8],j=E[7],O=E[6],I=E[5],D=E[4],k=E[3],N=E[2],F=E[1],R=E[0],o=B[9],i=B[8]-q*B[9],n=B[7]-T*B[8],s=B[6]-j*B[7],u=B[5]-O*B[6],v=B[4]-I*B[5],f=B[3]-D*B[4],l=B[2]-k*B[3],p=B[1]-N*B[2],m=B[0]-F*B[1],d=V[9],y=V[8]-q*V[9],h=V[7]-T*V[8],g=V[6]-j*V[7],x=V[5]-O*V[6],S=V[4]-I*V[5],w=V[3]-D*V[4],A=V[2]-k*V[3],_=V[1]-N*V[2],b=V[0]-F*V[1]):(q=E[0],T=E[1],j=E[2],O=E[3],I=E[4],D=E[5],k=E[6],N=E[7],F=E[8],R=E[9],o=B[0],i=B[1]-q*B[0],n=B[2]-T*B[1],s=B[3]-j*B[2],u=B[4]-O*B[3],v=B[5]-I*B[4],f=B[6]-D*B[5],l=B[7]-k*B[6],p=B[8]-N*B[7],m=B[9]-F*B[8],d=V[0],y=V[1]-q*V[0],h=V[2]-T*V[1],g=V[3]-j*V[2],x=V[4]-O*V[3],S=V[5]-I*V[4],w=V[6]-D*V[5],A=V[7]-k*V[6],_=V[8]-N*V[7],b=V[9]-F*V[8]),z=r.offset,C=e.offset,a=r.data,t=e.data,X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++){for(U=0;U<j;U++){for(P=0;P<T;P++){for(L=0;L<q;L++)t[C]=a[z],z+=o,C+=d;z+=i,C+=y}z+=n,C+=h}z+=s,C+=g}z+=u,C+=x}z+=v,C+=S}z+=f,C+=w}z+=l,C+=A}z+=p,C+=_}z+=m,C+=b}}JT.exports=Mxr});var QT=c(($ne,ZT)=>{"use strict";var Gxr=Jr(),KT=na(),HT="throw";function Yxr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d;for(s=r.shape,n=Gxr(s),a=r.data,t=e.data,u=r.strides,v=e.strides,f=r.offset,l=e.offset,o=r.order,i=e.order,d=0;d<n;d++)p=KT(s,u,f,o,d,HT),m=KT(s,v,l,i,d,HT),t[m]=a[p]}ZT.exports=Yxr});var oj=c((Wne,ij)=>{"use strict";var $xr=wo(),Wxr=Gn(),rj=Sa(),Jxr=uf(),Xxr=Ln(),ej=et(),aj=ri(),Kxr=q_(),Hxr=S_(),Zxr=A_(),Qxr=T_(),rqr=I_(),eqr=N_(),aqr=k_(),tqr=F_(),iqr=V_(),oqr=C_(),nqr=P_(),sqr=M_(),uqr=Y_(),vqr=W_(),fqr=X_(),lqr=H_(),cqr=Q_(),dqr=eT(),pqr=tT(),yqr=oT(),mqr=sT(),hqr=vT(),gqr=lT(),bqr=dT(),xqr=yT(),qqr=hT(),wqr=bT(),Sqr=qT(),Eqr=ST(),Aqr=TT(),_qr=IT(),Tqr=NT(),jqr=kT(),Iqr=FT(),Oqr=VT(),Nqr=CT(),Dqr=PT(),kqr=MT(),Bqr=YT(),Fqr=WT(),Rqr=XT(),Vqr=QT(),xi=[_qr,Tqr,jqr,Iqr,Oqr,Nqr,Dqr,kqr,Bqr,Fqr,Rqr],Eo=[pqr,yqr,mqr,hqr,gqr,bqr,xqr,qqr,wqr,Sqr,Eqr],zqr=[oqr,nqr,sqr,uqr,vqr,fqr,lqr,cqr,dqr],Cqr=[Kxr,Hxr,Zxr,Qxr,rqr,eqr,aqr,tqr,iqr],tj=xi.length-1;function Lqr(r){var e,a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g;if(d=aj(r[0]),y=aj(r[1]),Wxr(d.dtype)&&$xr(y.dtype)&&(d.accessorProtocol=!0,d.accessors[0]=Jxr(d.accessors[0],2,Xxr(y.dtype))),o=d.shape,i=y.shape,e=o.length,e!==i.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+e+". ndims(y) == "+i.length+".");if(e===0)return d.accessorProtocol||y.accessorProtocol?Eo[e](d,y):xi[e](d,y);for(u=1,m=0,g=0;g<e;g++){if(h=o[g],h!==i[g])throw new Error("invalid arguments. Arrays must have the same shape.");u*=h,h===1&&(m+=1)}if(u!==0){if(e===1)return d.accessorProtocol||y.accessorProtocol?Eo[e](d,y):xi[e](d,y);if(v=d.strides,f=y.strides,m===e-1){for(g=0;g<e&&o[g]===1;g++);return d.shape=[o[g]],y.shape=d.shape,d.strides=[v[g]],y.strides=[f[g]],d.accessorProtocol||y.accessorProtocol?Eo[1](d,y):xi[1](d,y)}if(n=rj(v),s=rj(f),n!==0&&s!==0&&n===s){if(a=ej(o,v,d.offset),t=ej(i,f,y.offset),u===a[1]-a[0]+1&&u===t[1]-t[0]+1)return n===1?l=a[0]:l=a[1],s===1?p=t[0]:p=t[1],d.shape=[u],y.shape=d.shape,d.strides=[n],y.strides=[s],d.offset=l,y.offset=p,d.accessorProtocol||y.accessorProtocol?Eo[1](d,y):xi[1](d,y);if(e<=tj)return d.accessorProtocol||y.accessorProtocol?Eo[e](d,y):xi[e](d,y)}if(e<=tj)return d.accessorProtocol||y.accessorProtocol?Cqr[e-2](d,y):zqr[e-2](d,y);if(d.accessorProtocol||y.accessorProtocol)return Aqr(d,y);Vqr(d,y)}}ij.exports=Lqr});var bf=c((Jne,nj)=>{"use strict";var Pqr=oj();nj.exports=Pqr});var uj=c((Xne,sj)=>{"use strict";function Uqr(r,e){var a,t,o,i,n,s,u,v,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(u=r[o],a=u<0?-u:u,v=e[i],n=o-1,s=i-1;n>=0&&(f=r[n],t=f<0?-f:f,!(t<=a));)r[n+1]=f,e[s+1]=e[s],n-=1,s-=1;r[n+1]=u,e[s+1]=v,o+=1,i+=1}}sj.exports=Uqr});var lj=c((Kne,fj)=>{"use strict";var Mqr=qe(),Gqr=Tt(),Jn=Kr(),Yqr=bo(),xf=Lt(),$qr=uj(),vj=3;function Wqr(r,e,a,t){var o,i,n,s,u,v,f,l,p,m;if(o=Mqr(r.length),v=xf(e),f=xf(a),l=xf(t),i=Yqr([],4),i[v].push(e),i[f].push(a),i[l].push(t),n=i[0].length,n===vj)u=e;else if(n===vj-1){for(p=1;p<4;p++)if(i[p].length){u=i[p][0];break}}else{for(m=0,p=1;p<4;p++)s=i[p].length,s>=n&&(n=s,m=p);u=i[m][0]}return u=Gqr(u),$qr(u,o),r=Jn(r,o),e=e===u?u:Jn(e,o),a=a===u?u:Jn(a,o),t=t===u?u:Jn(t,o),{sh:r,sx:e,sy:a,sz:t}}fj.exports=Wqr});var dj=c((Hne,cj)=>{"use strict";var Jqr=lj();cj.exports=Jqr});var yj=c((Zne,pj)=>{"use strict";var Xqr={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};pj.exports=Xqr});var hj=c((Qne,mj)=>{"use strict";var qf=bt(),Xn=yj();function Kqr(r,e,a){var t,o,i;return t=qf(r),o=qf(e),i=qf(a),t===null||o===null||i===null?Xn.BLOCK_SIZE_IN_ELEMENTS:t>o&&t>i?Xn.BLOCK_SIZE_IN_BYTES/t|0:o>i?Xn.BLOCK_SIZE_IN_BYTES/o|0:Xn.BLOCK_SIZE_IN_BYTES/i|0}mj.exports=Kqr});var bj=c((rse,gj)=>{"use strict";var Hqr=hj();gj.exports=Hqr});var qj=c((ese,xj)=>{"use strict";var Zqr=Math.ceil;xj.exports=Zqr});var wf=c((ase,wj)=>{"use strict";var Qqr=qj();wj.exports=Qqr});var Ej=c((tse,Sj)=>{"use strict";var rwr=ea(),ewr=wf();function awr(r){return r<0?ewr(r):rwr(r)}Sj.exports=awr});var Sf=c((ise,Aj)=>{"use strict";var twr=Ej();Aj.exports=twr});var jj=c((ose,Tj)=>{"use strict";var iwr=pr(),Kn=Sf(),_j=vi();function owr(r,e,a,t,o,i){var n,s,u,v,f,l;for(n=r.length,s=1,l=0;l<n;l++)s*=r[l];if(i==="clamp")o<0?o=0:o>=s&&(o=s-1);else if(i==="wrap")o<0?(o+=s,o<0&&(o%=s,o!==0&&(o+=s))):o>=s&&(o-=s,o>=s&&(o%=s));else if(i==="normalize"&&o<0&&(o+=s),o<0||o>=s)throw new RangeError(iwr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",s,o));if(u=0,t==="column-major"){for(l=n-1;l>=0;l--)f=e[l],f<0?(v=Kn(o/f),o-=v*f,v+=r[l]-1):(v=Kn(o/f),o-=v*f),u+=v*_j(f);return u}for(l=0;l<n;l++)f=e[l],f<0?(v=Kn(o/f),o-=v*f,v+=r[l]-1):(v=Kn(o/f),o-=v*f),u+=v*_j(f);return u}Tj.exports=owr});var Oj=c((nse,Ij)=>{"use strict";var nwr=jj();Ij.exports=nwr});var kj=c((sse,Dj)=>{"use strict";var Ao=Tt(),swr=aa(),uwr=Te(),vwr=ba(),fwr=Ka(),lwr=sa(),cwr=Xe(),dwr=ft(),Nj=pr();function pwr(r,e){var a,t,o,i,n,s,u,v,f;if(n=e.length,o=uwr(r,!1),s=o.length,n<s)throw new Error("invalid argument. Cannot broadcast an array to a shape having fewer dimensions. Arrays can only be broadcasted to shapes having the same or more dimensions.");for(a=[],v=0;v<n;v++)a.push(0);for(i=vwr(r,!1),v=n-1;v>=0;v--)if(f=s-n+v,!(f<0)){if(u=o[f],t=e[v],t!==0&&t<u)throw new Error(Nj("invalid argument. Input array cannot be broadcast to the specified shape, as the specified shape has a dimension whose size is less than the size of the corresponding dimension in the input array. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Ao(o).join(", "),Ao(e).join(", "),v));if(u===t)a[v]=i[f];else if(u===1)a[v]=0;else throw new Error(Nj("invalid argument. Input array and the specified shape are broadcast incompatible. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Ao(o).join(", "),Ao(e).join(", "),v))}return swr(cwr(r),dwr(r),Ao(e),a,fwr(r),lwr(r))}Dj.exports=pwr});var _o=c((use,Bj)=>{"use strict";var ywr=kj();Bj.exports=ywr});var Rj=c((vse,Fj)=>{"use strict";function mwr(r){var e,a,t,o,i,n,s,u,v,f,l;if(u=r.length,a=[],u===0)return a;if(o=r[0],v=o.length,u===1){for(f=0;f<v;f++)a.push(o[f]);return a}for(e=[v],f=1;f<u;f++)e.push(r[f].length),e[f]>v&&(v=e[f]);for(f=0;f<v;f++)a.push(0);for(f=v-1;f>=0;){for(i=e[0]-v+f,i>=0?t=o[i]:t=1,l=1;l<u;l++){if(n=e[l]-v+f,n>=0?s=r[l][n]:s=1,t===1){t=s;continue}if(!(s===1||t===s))return null}a[f]=t,f-=1}return a}Fj.exports=mwr});var qi=c((fse,Vj)=>{"use strict";var hwr=Rj();Vj.exports=hwr});var Cj=c((lse,zj)=>{"use strict";var gwr=qi(),bwr=_o(),xwr=Te();function qwr(r){var e,a,t,o,i;for(o=r.length,e=[],i=0;i<o;i++)e.push(xwr(r[i],!1));if(t=gwr(e),t===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(a=[],i=0;i<o;i++)a.push(bwr(r[i],t));return a}zj.exports=qwr});var Pj=c((cse,Lj)=>{"use strict";var wwr=Cj();Lj.exports=wwr});var Mj=c((dse,Uj)=>{"use strict";var Swr=tt(),Ewr=bi(),Awr=gi(),_wr=Se(),Twr=Ba(),jwr=aa(),Iwr=pr();function Owr(r,e,a,t){var o,i;if(o=Twr(e,1),o===null)throw new TypeError(Iwr("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return/^complex/.test(e)&&typeof r=="number"&&(r=[r,0]),Swr(o)?i=Ewr(e):i=Awr(e),i(o,0,r),new jwr(e,o,a,_wr(a.length),0,t)}Uj.exports=Owr});var Yj=c((pse,Gj)=>{"use strict";var Nwr=Mj();Gj.exports=Nwr});var Wj=c((yse,$j)=>{"use strict";var Dwr=mo(),kwr=Rn();function Bwr(r){var e=kwr(r);return e?Dwr(e):null}$j.exports=Bwr});var Xj=c((mse,Jj)=>{"use strict";var Fwr=Wj();Jj.exports=Fwr});var Hj=c((hse,Kj)=>{"use strict";function Rwr(){return{binary:"r",bool:"x",complex64:"c",complex128:"z",float16:"h",bfloat16:"e",float32:"f",float64:"d",float128:"g",generic:"o",int8:"s",int16:"k",int32:"i",int64:"l",int128:"m",int256:"n",uint8:"b",uint8c:"a",uint16:"t",uint32:"u",uint64:"v",uint128:"w",uint256:"y"}}Kj.exports=Rwr});var rI=c((gse,Qj)=>{"use strict";var Vwr=ka(),Zj=Hj(),Ef;function zwr(r){return arguments.length===0?Zj():(Ef===void 0&&(Ef=Zj()),Ef[Vwr(r)]||null)}Qj.exports=zwr});var Af=c((bse,eI)=>{"use strict";var Cwr=rI();eI.exports=Cwr});var oI=c((xse,iI)=>{"use strict";var aI=wn(),tI=Af(),_f;function Lwr(r){return arguments.length===0?aI(tI()):(_f===void 0&&(_f=aI(tI())),_f[r]||null)}iI.exports=Lwr});var sI=c((qse,nI)=>{"use strict";var Pwr=oI();nI.exports=Pwr});var vI=c((wse,uI)=>{"use strict";function Uwr(){return{binary:"byte",bool:"boolean",complex64:"single-precision floating-point complex number",complex128:"double-precision floating-point complex number",float16:"half-precision floating-point number",bfloat16:"brain floating-point number",float32:"single-precision floating-point number",float64:"double-precision floating-point number",float128:"quadruple-precision floating-point number",generic:"generic array value",int8:"signed 8-bit integer",int16:"signed 16-bit integer",int32:"signed 32-bit integer",int64:"signed 64-bit integer",int128:"signed 128-bit integer",int256:"signed 256-bit integer",uint8:"unsigned 8-bit integer",uint8c:"unsigned 8-bit integer (clamped)",uint16:"unsigned 16-bit integer",uint32:"unsigned 32-bit integer",uint64:"unsigned 64-bit integer",uint128:"unsigned 128-bit integer",uint256:"unsigned 256-bit integer"}}uI.exports=Uwr});var cI=c((Sse,lI)=>{"use strict";var Mwr=ka(),fI=vI(),Tf;function Gwr(r){return arguments.length===0?fI():(Tf===void 0&&(Tf=fI()),Tf[Mwr(r)]||null)}lI.exports=Gwr});var pI=c((Ese,dI)=>{"use strict";var Ywr=cI();dI.exports=Ywr});var mI=c((Ase,yI)=>{"use strict";var $wr=Sn(),Wwr=mo();function Jwr(r){var e=typeof r;return e==="number"?$wr(r)?r:null:e==="string"?Wwr(r):null}yI.exports=Jwr});var jf=c((_se,hI)=>{"use strict";var Xwr=mI();hI.exports=Xwr});var gI=c((Tse,Kwr)=>{Kwr.exports={binary:null,bool:"bool",complex64:"stdlib_complex64_t",complex128:"stdlib_complex128_t",float16:null,bfloat16:null,float32:"float",float64:"double",float128:null,generic:null,int8:"int8_t",int16:"int16_t",int32:"int32_t",int64:"int64_t",int128:null,int256:null,uint8:"uint8_t",uint8c:null,uint16:"uint16_t",uint32:"uint32_t",uint64:"uint64_t",uint128:null,uint256:null}});var xI=c((jse,bI)=>{"use strict";var Hwr=ka(),Zwr=gI();function Qwr(r){return Zwr[Hwr(r)]||null}bI.exports=Qwr});var wI=c((Ise,qI)=>{"use strict";var r3r=xI();qI.exports=r3r});var AI=c((Ose,EI)=>{"use strict";var e3r=ze(),SI=ge().isPrimitive,a3r=ka(),If=pr();function t3r(r,e,a){var t,o,i,n,s,u,v,f;if(!e3r(r))throw new TypeError(If("invalid argument. First argument must be an array-like object. Value: `%s`.",r));if(!SI(e))throw new TypeError(If("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",e));if(!SI(a))throw new TypeError(If("invalid argument. Third argument must be a nonnegative integer. Value: `%s`.",a));if(t=r.length,t===0)throw new RangeError("invalid argument. First argument must contain at least one element.");if(s=e+a,t%s!==0)throw new RangeError("invalid arguments. Length of the first argument is incompatible with the second and third arguments.");for(o=[],i=[],u=2*s,f=2*e,v=0;v<=u;v++)v===0?v===f?i.push("() => ("):i.push("("):v===u?v===f?i.push(") => ()"):i.push(")"):v===f?i.push(") => ("):v%2===1?i.push(""):i.push(", ");for(v=0;v<t;v++)n=a3r(r[v]),n===null&&(n=r[v]),f=v%s,i[2*f+1]=n,f===s-1&&o.push(i.join(""));return o}EI.exports=t3r});var Of=c((Nse,_I)=>{"use strict";var i3r=AI();_I.exports=i3r});var jI=c((Dse,TI)=>{"use strict";var o3r=xt(),n3r=Et(),s3r=Ki(),u3r=Xi(),v3r=Zi(),f3r=fi(),l3r=Ji(),c3r=va(),d3r=Hi(),p3r=so(),y3r=vo(),m3r=co(),h3r={float64:o3r,float32:n3r,generic:Array,int16:s3r,int32:u3r,int8:v3r,uint16:f3r,uint32:l3r,uint8:c3r,uint8c:d3r,complex64:p3r,complex128:y3r,bool:m3r};TI.exports=h3r});var OI=c((kse,II)=>{"use strict";var g3r=jI();function b3r(r){return g3r[r]||null}II.exports=b3r});var DI=c((Bse,NI)=>{"use strict";var x3r=OI();NI.exports=x3r});var Nf=c((Fse,kI)=>{"use strict";function q3r(){return{dtypes:{default:"float64",numeric:"float64",real:"float64",floating_point:"float64",real_floating_point:"float64",complex_floating_point:"complex128",boolean:"bool",integer:"int32",signed_integer:"int32",unsigned_integer:"uint32"}}}kI.exports=q3r});var FI=c((Rse,BI)=>{"use strict";var w3r=Nf(),Ha=w3r(),S3r={"dtypes.default":Ha.dtypes.default,"dtypes.numeric":Ha.dtypes.numeric,"dtypes.real":Ha.dtypes.real,"dtypes.floating_point":Ha.dtypes.floating_point,"dtypes.real_floating_point":Ha.dtypes.real_floating_point,"dtypes.complex_floating_point":Ha.dtypes.complex_floating_point,"dtypes.boolean":Ha.dtypes.boolean,"dtypes.integer":Ha.dtypes.integer,"dtypes.signed_integer":Ha.dtypes.signed_integer,"dtypes.unsigned_integer":Ha.dtypes.unsigned_integer};function E3r(r){var e=S3r[r];return e===void 0?null:e}BI.exports=E3r});var zI=c((Vse,VI)=>{"use strict";var A3r=Ir(),RI=Nf(),_3r=FI();A3r(RI,"get",_3r);VI.exports=RI});var PI=c((zse,LI)=>{"use strict";var T3r=ge().isPrimitive,j3r=DI(),I3r=Se(),O3r=zI(),CI=pr(),N3r=O3r.get("dtypes.default");function D3r(r){var e,a;if(!T3r(r))throw new TypeError(CI("invalid argument. First argument must be a nonnegative integer. Value: `%s`.",r));if(arguments.length>1?e=arguments[1]:e=N3r,e==="generic")return I3r(r);if(a=j3r(e),a===null)throw new TypeError(CI("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return new a(r)}LI.exports=D3r});var MI=c((Cse,UI)=>{"use strict";var k3r=PI();UI.exports=k3r});var To=c((Lse,YI)=>{"use strict";var GI=MI();function B3r(r){return arguments.length>1?GI(r,arguments[1]):GI(r)}YI.exports=B3r});var WI=c((Pse,$I)=>{"use strict";var F3r=Ve(),R3r=Ye(),V3r=aa(),z3r=Jr(),C3r=To(),L3r=At();function P3r(r,e,a){var t,o,i,n;return t=e.length,t>0?(i=z3r(e),n=F3r(e,a)):(i=1,n=[0]),r==="binary"?o=L3r(i):o=C3r(i,r),new V3r(r,o,e,n,R3r(e,n),a)}$I.exports=P3r});var XI=c((Use,JI)=>{"use strict";var U3r=WI();JI.exports=U3r});var HI=c((Mse,KI)=>{"use strict";var M3r=Ve(),G3r=Ye(),Y3r=Jr(),$3r=Xe(),W3r=Te(),J3r=sa(),X3r=To(),K3r=At();function H3r(r){var e,a,t,o,i,n,s;return s=$3r(r),i=W3r(r,!0),o=J3r(r),e=i.length,e>0?(a=Y3r(i),n=M3r(i,o)):(a=1,n=[0]),s==="binary"?t=K3r(a):t=X3r(a,s),new r.constructor(s,t,i,n,G3r(i,n),o)}KI.exports=H3r});var QI=c((Gse,ZI)=>{"use strict";var Z3r=HI();ZI.exports=Z3r});var oO=c((Yse,iO)=>{"use strict";var Q3r=Ue(),rO=Xe(),r4r=Te(),e4r=ba(),eO=Ka(),a4r=sa(),aO=ft(),tO=pr();function t4r(r,e){var a,t,o,i,n,s,u;if(i=r4r(r,!1),n=e4r(r,!1),o=a4r(r),s=i.length,a=[],t=[],e<0){if(e<-s-1)throw new RangeError(tO("invalid argument. Specified axis is out-of-bounds. Must be on the interval: [-%u-1, %u]. Value: `%d`.",s,s,e));e+=s+1}else if(e>s)throw new RangeError(tO("invalid argument. Specified axis is out-of-bounds. Must be on the interval: [-%u-1, %u]. Value: `%d`.",s,s,e));if(e===0)for(t.push(1),a.push(n[0]),u=0;u<s;u++)t.push(i[u]),a.push(n[u]);else if(e===s){for(u=0;u<s;u++)t.push(i[u]),a.push(n[u]);t.push(1),a.push(n[s-1])}else for(u=0;u<s+1;u++)u===e?(t.push(1),o==="row-major"?a.push(n[u-1]):a.push(n[u])):u<e?(t.push(i[u]),a.push(n[u])):(t.push(i[u-1]),a.push(n[u-1]));return Q3r(r)?new r.constructor(rO(r),aO(r),t,a,eO(r),o,{readonly:!0}):new r.constructor(rO(r),aO(r),t,a,eO(r),o)}iO.exports=t4r});var sO=c(($se,nO)=>{"use strict";var i4r=oO();nO.exports=i4r});var vO=c((Wse,uO)=>{"use strict";function o4r(r){return r===null}uO.exports=o4r});var wi=c((Jse,fO)=>{"use strict";var n4r=vO();fO.exports=n4r});var cO=c((Xse,lO)=>{"use strict";function s4r(r){return r===void 0}lO.exports=s4r});var Si=c((Kse,dO)=>{"use strict";var u4r=cO();dO.exports=u4r});var yO=c((Hse,pO)=>{"use strict";var kf=Ir(),Bf=gt(),v4r=ve().isPrimitive,f4r=wi(),l4r=Si(),Hn=pr();function Df(r){return v4r(r)||f4r(r)||l4r(r)}function lt(){var r,e,a,t;if(r=arguments.length,r===0?(e=null,a=null,t=null):r===1?(e=null,a=arguments[0],t=null):r===2?(e=arguments[0],a=arguments[1],t=null):(e=arguments[0],a=arguments[1],t=arguments[2]),!(this instanceof lt))return new lt(e,a,t);if(!Df(e))throw new TypeError(Hn("invalid argument. First argument must be an integer, null, or undefined. Value: `%s`.",e));if(!Df(a))throw new TypeError(Hn("invalid argument. Second argument must be an integer, null, or undefined. Value: `%s`.",a));if(Df(t)){if(t===0)throw new RangeError(Hn("invalid argument. Third argument cannot be zero. Value: `%s`.",t))}else throw new TypeError(Hn("invalid argument. Third argument must be an integer, null, or undefined. Value: `%s`.",t));return this._start=e===void 0?null:e,this._stop=a===void 0?null:a,this._step=t===void 0?null:t,this}kf(lt,"name","Slice");Bf(lt.prototype,"start",function(){return this._start});Bf(lt.prototype,"stop",function(){return this._stop});Bf(lt.prototype,"step",function(){return this._step});kf(lt.prototype,"toString",function(){return"Slice("+this._start+","+this._stop+","+this.step+")"});kf(lt.prototype,"toJSON",function(){return{type:"Slice",data:[this._start,this._stop,this._step]}});pO.exports=lt});var Le=c((Zse,mO)=>{"use strict";var c4r=yO();mO.exports=c4r});var gO=c((Qse,hO)=>{"use strict";var d4r=Le(),p4r=ht();function y4r(r){return r instanceof d4r||p4r(r)==="Slice"}hO.exports=y4r});var Ff=c((rue,bO)=>{"use strict";var m4r=gO();bO.exports=m4r});var wO=c((eue,qO)=>{"use strict";var Rf=Ir(),xO=gt(),h4r=ve().isPrimitive,g4r=wi(),b4r=Si(),x4r=Ff(),q4r=pr();function w4r(r){return h4r(r)||g4r(r)||b4r(r)||x4r(r)}function Ke(){var r,e,a,t,o;if(r=arguments.length,!(this instanceof Ke)){if(r===1)return new Ke(arguments[0]);if(r===2)return new Ke(arguments[0],arguments[1]);if(r===3)return new Ke(arguments[0],arguments[1],arguments[2]);if(r===4)return new Ke(arguments[0],arguments[1],arguments[2],arguments[3]);if(r===5)return new Ke(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);for(a=[],o=0;o<r;o++)a.push(arguments[o]);return e=Object.create(Ke.prototype),Ke.apply(e,a)}for(this._data=[],o=0;o<r;o++){if(t=arguments[o],!w4r(t))throw new TypeError(q4r("invalid argument. Provided arguments must be either a Slice, integer, null, or undefined. Argument: `%d`. Value: `%s`.",o,String(t)));this._data.push(t===void 0?null:t)}return this}Rf(Ke,"name","MultiSlice");xO(Ke.prototype,"ndims",function(){return this._data.length});xO(Ke.prototype,"data",function(){return this._data.slice()});Rf(Ke.prototype,"toString",function(){var e,a,t;for(e=this._data,a=[],t=0;t<e.length;t++)a.push(String(e[t]));return"MultiSlice("+a.join(",")+")"});Rf(Ke.prototype,"toJSON",function(){var e,a,t,o;for(e=this._data,a={type:"MultiSlice",data:[]},o=0;o<e.length;o++)t=e[o],a.data.push(t&&typeof t.toJSON=="function"?t.toJSON():t);return a});qO.exports=Ke});var Za=c((aue,SO)=>{"use strict";var S4r=wO();SO.exports=S4r});var AO=c((tue,EO)=>{"use strict";var xa=Za();function E4r(r){switch(r.length){case 0:return new xa;case 1:return new xa(r[0]);case 2:return new xa(r[0],r[1]);case 3:return new xa(r[0],r[1],r[2]);case 4:return new xa(r[0],r[1],r[2],r[3]);case 5:return new xa(r[0],r[1],r[2],r[3],r[4]);case 6:return new xa(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6]);case 8:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7]);case 9:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8]);case 10:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9]);default:return xa.apply(null,r)}}EO.exports=E4r});var he=c((iue,_O)=>{"use strict";var A4r=AO();_O.exports=A4r});var jO=c((oue,TO)=>{"use strict";function _4r(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}TO.exports=_4r});var OO=c((nue,IO)=>{"use strict";var T4r=Le(),jo=jO();function j4r(r,e,a){var t,o,i;if(t=r.start,o=r.stop,i=r.step,i===null&&(i=1),t===null)i>0?t=0:t=e-1;else if(t<0){if(t=e+t,t<0){if(a)return jo();t=0}}else if(t>=e){if(a)return jo();i<0?t=e-1:t=e}if(o===null)i>0?o=e:o=null;else if(o<0){if(o=e+o,o<0)if(i>0){if(a)return jo();o=0}else{if(a&&o<-1)return jo();o=null}}else if(o>e){if(a)return jo();o=e}return new T4r(t,o,i)}IO.exports=j4r});var DO=c((sue,NO)=>{"use strict";var I4r=OO();NO.exports=I4r});var BO=c((uue,kO)=>{"use strict";function O4r(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}kO.exports=O4r});var VO=c((vue,RO)=>{"use strict";var Zn=Le(),FO=BO();function N4r(r,e,a){return r>=e?a?FO():new Zn(e,e,1):r<0?(r=e+r,r<0?a?FO():new Zn(0,0,1):new Zn(r,r+1,1)):new Zn(r,r+1,1)}RO.exports=N4r});var CO=c((fue,zO)=>{"use strict";var D4r=VO();zO.exports=D4r});var PO=c((lue,LO)=>{"use strict";var k4r=he(),B4r=Le(),F4r=DO(),R4r=CO();function V4r(r,e,a){return r===null?new B4r(0,e,1):typeof r=="number"?R4r(r,e,a):F4r(r,e,a)}function z4r(r,e,a){var t,o,i,n;for(t=r.data,o=[],n=0;n<t.length;n++){if(i=V4r(t[n],e[n],a),i.code!==void 0)return i;o.push(i)}return k4r(o)}LO.exports=z4r});var MO=c((cue,UO)=>{"use strict";var C4r=PO();UO.exports=C4r});var YO=c((due,GO)=>{"use strict";function L4r(r){var e,a,t;for(e=r.data,a=[],t=0;t<e.length;t++)typeof e[t]!="number"&&a.push(t);return a}GO.exports=L4r});var WO=c((pue,$O)=>{"use strict";var P4r=YO();$O.exports=P4r});var XO=c((yue,JO)=>{"use strict";var U4r=wf();function M4r(r){var e,a,t;return a=r.start,t=r.stop,e=r.step,t===null&&(t=-1),e>0&&a>=t||e<0&&a<=t?0:U4r((t-a)/e)}JO.exports=M4r});var HO=c((mue,KO)=>{"use strict";var G4r=XO();KO.exports=G4r});var QO=c((hue,ZO)=>{"use strict";var Y4r=HO();function $4r(r){var e,a,t;for(e=r.data,a=[],t=0;t<e.length;t++)a.push(Y4r(e[t]));return a}ZO.exports=$4r});var e7=c((gue,r7)=>{"use strict";var W4r=QO();r7.exports=W4r});var t7=c((bue,a7)=>{"use strict";function J4r(r,e,a){var t,o,i;for(t=r.data,o=a,i=0;i<t.length;i++)o+=e[i]*t[i].start;return o}a7.exports=J4r});var o7=c((xue,i7)=>{"use strict";function X4r(r,e,a){var t,o,i,n;for(t=r.data,o=[],i=0;i<a.length;i++)n=a[i],o.push(e[n]*t[n].step);return o}i7.exports=X4r});var s7=c((que,n7)=>{"use strict";var K4r=Ba(),H4r=Se();function Z4r(r,e,a,t,o){var i,n;return n=a.length,n===0?i=[0]:i=H4r(n),new r(e,K4r(e,0),a,i,0,t,{readonly:o})}n7.exports=Z4r});var d7=c((wue,c7)=>{"use strict";var u7=MO(),Q4r=WO(),v7=e7(),Vf=Kr(),r6r=Se(),f7=Jr(),e6r=Xe(),a6r=Te(),t6r=ba(),i6r=Ka(),o6r=sa(),zf=ft(),l7=pr(),n6r=t7(),s6r=o7(),u6r=s7();function v6r(r,e,a,t){var o,i,n,s,u,v,f,l,p,m;if(n=e6r(r),s=a6r(r,!0),o=t6r(r,!0),i=i6r(r),u=o6r(r),f=s.length,e.ndims!==f)throw new RangeError(l7("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",s.join(","),e.ndims));if(l=r.constructor,f===0)return new l(n,zf(r),s,o,i,u,{readonly:!t});if(v=Q4r(e),m=u7(e,s,!0),m.code){if(a)throw new RangeError(l7("invalid argument. Slice exceeds array bounds. Array shape: (%s).",s.join(",")));m=u7(e,s,!1),p=v7(m),f7(Vf(p,v))>0&&(p=r6r(p.length))}else p=v7(m);return f7(p)===0?u6r(l,n,Vf(p,v),u,!t):(i=n6r(m,o,i),p=Vf(p,v),p.length===0?new l(n,zf(r),[],[0],i,u,{readonly:!t}):(o=s6r(m,o,v),new l(n,zf(r),p,o,i,u,{readonly:!t})))}c7.exports=v6r});var ye=c((Sue,p7)=>{"use strict";var f6r=d7();p7.exports=f6r});var m7=c((Eue,y7)=>{"use strict";var l6r=bo();function c6r(r){return l6r(null,r)}y7.exports=c6r});var Ei=c((Aue,h7)=>{"use strict";var d6r=m7();h7.exports=d6r});var b7=c((_ue,g7)=>{"use strict";function p6r(r){var e=r.ndims;return typeof e=="number"?e:r.shape.length}g7.exports=p6r});var za=c((Tue,x7)=>{"use strict";var y6r=b7();x7.exports=y6r});var w7=c((jue,q7)=>{"use strict";var m6r=he(),h6r=Le(),g6r=ye(),b6r=Ei(),x6r=za(),Cf=pr();function q6r(r,e,a){var t,o,i;if(o=x6r(r),o===0)throw new TypeError(Cf("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",o));if(i=e,i<0){if(i+=o,i<0)throw new RangeError(Cf("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e))}else if(i>=o)throw new RangeError(Cf("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e));return t=b6r(o),t[i]=new h6r(null,null,-1),g6r(r,m6r(t),!0,a)}q7.exports=q6r});var Qn=c((Iue,S7)=>{"use strict";var w6r=w7();S7.exports=w6r});var A7=c((Oue,E7)=>{"use strict";var S6r=Za(),E6r=Qn(),A6r=ye(),_6r=za();function T6r(r,e){return _6r(r)===0?A6r(r,new S6r,!0,e):E6r(r,-1,e)}E7.exports=T6r});var T7=c((Nue,_7)=>{"use strict";var j6r=A7();_7.exports=j6r});var N7=c((Due,O7)=>{"use strict";var j7=Za(),I6r=Qn(),I7=ye(),O6r=za();function N6r(r,e){var a=O6r(r);return a===0?I7(r,new j7,!0,e):a===1?I7(r,new j7(null),!0,e):I6r(r,-2,e)}O7.exports=N6r});var k7=c((kue,D7)=>{"use strict";var D6r=N7();D7.exports=D6r});var F7=c((Bue,B7)=>{"use strict";function k6r(r,e){var a,t,o,i,n,s,u,v,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(u=r[o],a=u<0?-u:u,v=e[i],n=o-1,s=i-1;n>=0&&(f=r[n],t=f<0?-f:f,!(t<=a));)r[n+1]=f,e[s+1]=e[s],n-=1,s-=1;r[n+1]=u,e[s+1]=v,o+=1,i+=1}}B7.exports=k6r});var V7=c((Fue,R7)=>{"use strict";var B6r=qe(),F6r=Tt(),R6r=Kr(),V6r=F7();function z6r(r,e){var a;return a=B6r(r.length),e=F6r(e),V6r(e,a),r=R6r(r,a),{sh:r,sx:e,idx:a}}R7.exports=z6r});var Zr=c((Rue,z7)=>{"use strict";var C6r=V7();z7.exports=C6r});var L7=c((Vue,C7)=>{"use strict";var L6r={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};C7.exports=L6r});var M7=c((zue,U7)=>{"use strict";var P6r=bt(),P7=L7();function U6r(r){var e=P6r(r);return e===null?P7.BLOCK_SIZE_IN_ELEMENTS:P7.BLOCK_SIZE_IN_BYTES/e|0}U7.exports=U6r});var Qr=c((Cue,G7)=>{"use strict";var M6r=M7();G7.exports=M6r});var W7=c((Lue,$7)=>{"use strict";var G6r=vt(),Y7=ea();function Y6r(r,e){return typeof r[e]=="function"}function $6r(r){var e,a,t,o,i;for(a=Y7(r.length/2),t=r.length-1,o=0;o<a;o++)i=t-o,e=r[o],r[o]=r[i],r[i]=e;return r}function W6r(r){var e,a,t,o,i,n,s,u;for(e=r.data,a=r.accessors[0],t=r.accessors[1],i=Y7(e.length/2),n=e.length-1,s=0;s<i;s++)u=n-s,o=a(e,s),t(e,s,a(e,u)),t(e,u,o);return e}function J6r(r){var e;return Y6r(r,"reverse")?r.reverse():(e=G6r(r),e.accessorProtocol?W6r(e):$6r(r))}$7.exports=J6r});var re=c((Pue,J7)=>{"use strict";var X6r=W7();J7.exports=X6r});var K7=c((Uue,X7)=>{"use strict";var K6r=Zr(),H6r=Qr(),Z6r=Kr(),Q6r=re();function rSr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w;for(w=K6r(r.shape,r.strides),f=w.sh,m=w.sx,v=Q6r(w.idx),t=H6r(r.dtype),d=r.offset,o=r.data,n=m[0],i=r.accessors[0],S=f[1];S>0;)for(S<t?(p=S,S=0):(p=t,S-=t),u=d+S*m[1],x=f[0];x>0;)for(x<t?(l=x,x=0):(l=t,x-=t),y=u+x*m[0],s=m[1]-l*m[0],g=0;g<p;g++){for(h=0;h<l;h++)e.call(a,i(o,y),Z6r([g,h],v),r.ref),y+=n;y+=s}}X7.exports=rSr});var Z7=c((Mue,H7)=>{"use strict";var eSr=Zr(),aSr=Qr(),tSr=Kr(),iSr=re();function oSr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q;for(q=eSr(r.shape,r.strides),p=q.sh,h=q.sx,l=iSr(q.idx),t=aSr(r.dtype),g=r.offset,o=r.data,n=h[0],i=r.accessors[0],E=p[2];E>0;)for(E<t?(y=E,E=0):(y=t,E-=t),f=g+E*h[2],b=p[1];b>0;)for(b<t?(d=b,b=0):(d=t,b-=t),u=h[2]-d*h[1],v=f+b*h[1],_=p[0];_>0;)for(_<t?(m=_,_=0):(m=t,_-=t),x=v+_*h[0],s=h[1]-m*h[0],A=0;A<y;A++){for(w=0;w<d;w++){for(S=0;S<m;S++)e.call(a,i(o,x),tSr([A,w,S],l),r.ref),x+=n;x+=s}x+=u}}H7.exports=oSr});var rN=c((Gue,Q7)=>{"use strict";var nSr=Zr(),sSr=Qr(),uSr=Kr(),vSr=re();function fSr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D;for(D=nSr(r.shape,r.strides),d=D.sh,S=D.sx,m=vSr(D.idx),t=sSr(r.dtype),w=r.offset,o=r.data,n=S[0],i=r.accessors[0],I=d[3];I>0;)for(I<t?(x=I,I=0):(x=t,I-=t),p=w+I*S[3],O=d[2];O>0;)for(O<t?(g=O,O=0):(g=t,O-=t),v=S[3]-g*S[2],l=p+O*S[2],j=d[1];j>0;)for(j<t?(h=j,j=0):(h=t,j-=t),u=S[2]-h*S[1],f=l+j*S[1],T=d[0];T>0;)for(T<t?(y=T,T=0):(y=t,T-=t),A=f+T*S[0],s=S[1]-y*S[0],q=0;q<x;q++){for(E=0;E<g;E++){for(b=0;b<h;b++){for(_=0;_<y;_++)e.call(a,i(o,A),uSr([q,E,b,_],m),r.ref),A+=n;A+=s}A+=u}A+=v}}Q7.exports=fSr});var aN=c((Yue,eN)=>{"use strict";var lSr=Zr(),cSr=Qr(),dSr=Kr(),pSr=re();function ySr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B;for(B=lSr(r.shape,r.strides),h=B.sh,_=B.sx,y=pSr(B.idx),t=cSr(r.dtype),b=r.offset,o=r.data,n=_[0],i=r.accessors[0],R=h[4];R>0;)for(R<t?(A=R,R=0):(A=t,R-=t),d=b+R*_[4],F=h[3];F>0;)for(F<t?(w=F,F=0):(w=t,F-=t),f=_[4]-w*_[3],m=d+F*_[3],N=h[2];N>0;)for(N<t?(S=N,N=0):(S=t,N-=t),v=_[3]-S*_[2],p=m+N*_[2],k=h[1];k>0;)for(k<t?(x=k,k=0):(x=t,k-=t),u=_[2]-x*_[1],l=p+k*_[1],D=h[0];D>0;)for(D<t?(g=D,D=0):(g=t,D-=t),E=l+D*_[0],s=_[1]-g*_[0],I=0;I<A;I++){for(O=0;O<w;O++){for(j=0;j<S;j++){for(T=0;T<x;T++){for(q=0;q<g;q++)e.call(a,i(o,E),dSr([I,O,j,T,q],y),r.ref),E+=n;E+=s}E+=u}E+=v}E+=f}}eN.exports=ySr});var iN=c(($ue,tN)=>{"use strict";var mSr=Zr(),hSr=Qr(),gSr=Kr(),bSr=re();function xSr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P;for(P=mSr(r.shape,r.strides),x=P.sh,q=P.sx,g=bSr(P.idx),t=hSr(r.dtype),T=r.offset,o=r.data,n=q[0],i=r.accessors[0],L=x[5];L>0;)for(L<t?(E=L,L=0):(E=t,L-=t),h=T+L*q[5],C=x[4];C>0;)for(C<t?(b=C,C=0):(b=t,C-=t),l=q[5]-b*q[4],y=h+C*q[4],z=x[3];z>0;)for(z<t?(_=z,z=0):(_=t,z-=t),f=q[4]-_*q[3],d=y+z*q[3],V=x[2];V>0;)for(V<t?(A=V,V=0):(A=t,V-=t),v=q[3]-A*q[2],m=d+V*q[2],B=x[1];B>0;)for(B<t?(w=B,B=0):(w=t,B-=t),u=q[2]-w*q[1],p=m+B*q[1],R=x[0];R>0;)for(R<t?(S=R,R=0):(S=t,R-=t),j=p+R*q[0],s=q[1]-S*q[0],F=0;F<E;F++){for(N=0;N<b;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++)e.call(a,i(o,j),gSr([F,N,k,D,I,O],g),r.ref),j+=n;j+=s}j+=u}j+=v}j+=f}j+=l}}tN.exports=xSr});var nN=c((Wue,oN)=>{"use strict";var qSr=Zr(),wSr=Qr(),SSr=Kr(),ESr=re();function ASr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y;for(Y=qSr(r.shape,r.strides),w=Y.sh,O=Y.sx,S=ESr(Y.idx),t=wSr(r.dtype),I=r.offset,o=r.data,n=O[0],i=r.accessors[0],$=w[6];$>0;)for($<t?(j=$,$=0):(j=t,$-=t),x=I+$*O[6],G=w[5];G>0;)for(G<t?(T=G,G=0):(T=t,G-=t),p=O[6]-T*O[5],g=x+G*O[5],M=w[4];M>0;)for(M<t?(q=M,M=0):(q=t,M-=t),l=O[5]-q*O[4],h=g+M*O[4],U=w[3];U>0;)for(U<t?(E=U,U=0):(E=t,U-=t),f=O[4]-E*O[3],y=h+U*O[3],P=w[2];P>0;)for(P<t?(b=P,P=0):(b=t,P-=t),v=O[3]-b*O[2],d=y+P*O[2],L=w[1];L>0;)for(L<t?(_=L,L=0):(_=t,L-=t),u=O[2]-_*O[1],m=d+L*O[1],C=w[0];C>0;)for(C<t?(A=C,C=0):(A=t,C-=t),D=m+C*O[0],s=O[1]-A*O[0],z=0;z<j;z++){for(V=0;V<T;V++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<b;F++){for(N=0;N<_;N++){for(k=0;k<A;k++)e.call(a,i(o,D),SSr([z,V,B,R,F,N,k],S),r.ref),D+=n;D+=s}D+=u}D+=v}D+=f}D+=l}D+=p}}oN.exports=ASr});var uN=c((Jue,sN)=>{"use strict";var _Sr=Zr(),TSr=Qr(),jSr=Kr(),ISr=re();function OSr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H;for(H=_Sr(r.shape,r.strides),_=H.sh,k=H.sx,A=ISr(H.idx),t=TSr(r.dtype),N=r.offset,o=r.data,n=k[0],i=r.accessors[0],K=_[7];K>0;)for(K<t?(D=K,K=0):(D=t,K-=t),w=N+K*k[7],X=_[6];X>0;)for(X<t?(I=X,X=0):(I=t,X-=t),m=k[7]-I*k[6],S=w+X*k[6],J=_[5];J>0;)for(J<t?(O=J,J=0):(O=t,J-=t),p=k[6]-O*k[5],x=S+J*k[5],W=_[4];W>0;)for(W<t?(j=W,W=0):(j=t,W-=t),l=k[5]-j*k[4],g=x+W*k[4],Y=_[3];Y>0;)for(Y<t?(T=Y,Y=0):(T=t,Y-=t),f=k[4]-T*k[3],h=g+Y*k[3],$=_[2];$>0;)for($<t?(q=$,$=0):(q=t,$-=t),v=k[3]-q*k[2],y=h+$*k[2],G=_[1];G>0;)for(G<t?(E=G,G=0):(E=t,G-=t),u=k[2]-E*k[1],d=y+G*k[1],M=_[0];M>0;)for(M<t?(b=M,M=0):(b=t,M-=t),F=d+M*k[0],s=k[1]-b*k[0],U=0;U<D;U++){for(P=0;P<I;P++){for(L=0;L<O;L++){for(C=0;C<j;C++){for(z=0;z<T;z++){for(V=0;V<q;V++){for(B=0;B<E;B++){for(R=0;R<b;R++)e.call(a,i(o,F),jSr([U,P,L,C,z,V,B,R],A),r.ref),F+=n;F+=s}F+=u}F+=v}F+=f}F+=l}F+=p}F+=m}}sN.exports=OSr});var fN=c((Xue,vN)=>{"use strict";var NSr=Zr(),DSr=Qr(),kSr=Kr(),BSr=re();function FSr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er;for(er=NSr(r.shape,r.strides),E=er.sh,R=er.sx,b=BSr(er.idx),t=DSr(r.dtype),B=r.offset,o=r.data,n=R[0],i=r.accessors[0],ar=E[8];ar>0;)for(ar<t?(F=ar,ar=0):(F=t,ar-=t),_=B+ar*R[8],rr=E[7];rr>0;)for(rr<t?(N=rr,rr=0):(N=t,rr-=t),d=R[8]-N*R[7],A=_+rr*R[7],Z=E[6];Z>0;)for(Z<t?(k=Z,Z=0):(k=t,Z-=t),m=R[7]-k*R[6],w=A+Z*R[6],Q=E[5];Q>0;)for(Q<t?(D=Q,Q=0):(D=t,Q-=t),p=R[6]-D*R[5],S=w+Q*R[5],H=E[4];H>0;)for(H<t?(I=H,H=0):(I=t,H-=t),l=R[5]-I*R[4],x=S+H*R[4],K=E[3];K>0;)for(K<t?(O=K,K=0):(O=t,K-=t),f=R[4]-O*R[3],g=x+K*R[3],X=E[2];X>0;)for(X<t?(j=X,X=0):(j=t,X-=t),v=R[3]-j*R[2],h=g+X*R[2],J=E[1];J>0;)for(J<t?(T=J,J=0):(T=t,J-=t),u=R[2]-T*R[1],y=h+J*R[1],W=E[0];W>0;)for(W<t?(q=W,W=0):(q=t,W-=t),V=y+W*R[0],s=R[1]-q*R[0],Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<I;U++){for(P=0;P<O;P++){for(L=0;L<j;L++){for(C=0;C<T;C++){for(z=0;z<q;z++)e.call(a,i(o,V),kSr([Y,$,G,M,U,P,L,C,z],b),r.ref),V+=n;V+=s}V+=u}V+=v}V+=f}V+=l}V+=p}V+=m}V+=d}}vN.exports=FSr});var cN=c((Kue,lN)=>{"use strict";var RSr=Zr(),VSr=Qr(),zSr=Kr(),CSr=re();function LSr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr;for(sr=RSr(r.shape,r.strides),T=sr.sh,z=sr.sx,q=CSr(sr.idx),t=VSr(r.dtype),C=r.offset,o=r.data,n=z[0],i=r.accessors[0],nr=T[9];nr>0;)for(nr<t?(V=nr,nr=0):(V=t,nr-=t),E=C+nr*z[9],or=T[8];or>0;)for(or<t?(B=or,or=0):(B=t,or-=t),y=z[9]-B*z[8],b=E+or*z[8],tr=T[7];tr>0;)for(tr<t?(R=tr,tr=0):(R=t,tr-=t),d=z[8]-R*z[7],_=b+tr*z[7],ir=T[6];ir>0;)for(ir<t?(F=ir,ir=0):(F=t,ir-=t),m=z[7]-F*z[6],A=_+ir*z[6],er=T[5];er>0;)for(er<t?(N=er,er=0):(N=t,er-=t),p=z[6]-N*z[5],w=A+er*z[5],ar=T[4];ar>0;)for(ar<t?(k=ar,ar=0):(k=t,ar-=t),l=z[5]-k*z[4],S=w+ar*z[4],rr=T[3];rr>0;)for(rr<t?(D=rr,rr=0):(D=t,rr-=t),f=z[4]-D*z[3],x=S+rr*z[3],Z=T[2];Z>0;)for(Z<t?(I=Z,Z=0):(I=t,Z-=t),v=z[3]-I*z[2],g=x+Z*z[2],Q=T[1];Q>0;)for(Q<t?(O=Q,Q=0):(O=t,Q-=t),u=z[2]-O*z[1],h=g+Q*z[1],H=T[0];H>0;)for(H<t?(j=H,H=0):(j=t,H-=t),L=h+H*z[0],s=z[1]-j*z[0],K=0;K<V;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(U=0;U<O;U++){for(P=0;P<j;P++)e.call(a,i(o,L),zSr([K,X,J,W,Y,$,G,M,U,P],q),r.ref),L+=n;L+=s}L+=u}L+=v}L+=f}L+=l}L+=p}L+=m}L+=d}L+=y}}lN.exports=LSr});var pN=c((Hue,dN)=>{"use strict";var PSr=Zr(),USr=Qr(),MSr=Kr(),GSr=re();function YSr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S;for(S=PSr(r.shape,r.strides),v=S.sh,p=S.sx,u=GSr(S.idx),t=USr(r.dtype),m=r.offset,o=r.data,i=p[0],x=v[1];x>0;)for(x<t?(l=x,x=0):(l=t,x-=t),s=m+x*p[1],g=v[0];g>0;)for(g<t?(f=g,g=0):(f=t,g-=t),d=s+g*p[0],n=p[1]-f*p[0],h=0;h<l;h++){for(y=0;y<f;y++)e.call(a,o[d],MSr([h,y],u),r.ref),d+=i;d+=n}}dN.exports=YSr});var mN=c((Zue,yN)=>{"use strict";var $Sr=Zr(),WSr=Qr(),JSr=Kr(),XSr=re();function KSr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E;for(E=$Sr(r.shape,r.strides),l=E.sh,y=E.sx,f=XSr(E.idx),t=WSr(r.dtype),h=r.offset,o=r.data,i=y[0],b=l[2];b>0;)for(b<t?(d=b,b=0):(d=t,b-=t),v=h+b*y[2],_=l[1];_>0;)for(_<t?(m=_,_=0):(m=t,_-=t),s=y[2]-m*y[1],u=v+_*y[1],A=l[0];A>0;)for(A<t?(p=A,A=0):(p=t,A-=t),g=u+A*y[0],n=y[1]-p*y[0],w=0;w<d;w++){for(S=0;S<m;S++){for(x=0;x<p;x++)e.call(a,o[g],JSr([w,S,x],f),r.ref),g+=i;g+=n}g+=s}}yN.exports=KSr});var gN=c((Que,hN)=>{"use strict";var HSr=Zr(),ZSr=Qr(),QSr=Kr(),rEr=re();function eEr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I;for(I=HSr(r.shape,r.strides),m=I.sh,x=I.sx,p=rEr(I.idx),t=ZSr(r.dtype),S=r.offset,o=r.data,i=x[0],O=m[3];O>0;)for(O<t?(g=O,O=0):(g=t,O-=t),l=S+O*x[3],j=m[2];j>0;)for(j<t?(h=j,j=0):(h=t,j-=t),u=x[3]-h*x[2],f=l+j*x[2],T=m[1];T>0;)for(T<t?(y=T,T=0):(y=t,T-=t),s=x[2]-y*x[1],v=f+T*x[1],q=m[0];q>0;)for(q<t?(d=q,q=0):(d=t,q-=t),w=v+q*x[0],n=x[1]-d*x[0],E=0;E<g;E++){for(b=0;b<h;b++){for(_=0;_<y;_++){for(A=0;A<d;A++)e.call(a,o[w],QSr([E,b,_,A],p),r.ref),w+=i;w+=n}w+=s}w+=u}}hN.exports=eEr});var xN=c((rve,bN)=>{"use strict";var aEr=Zr(),tEr=Qr(),iEr=Kr(),oEr=re();function nEr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R;for(R=aEr(r.shape,r.strides),y=R.sh,A=R.sx,d=oEr(R.idx),t=tEr(r.dtype),_=r.offset,o=r.data,i=A[0],F=y[4];F>0;)for(F<t?(w=F,F=0):(w=t,F-=t),m=_+F*A[4],N=y[3];N>0;)for(N<t?(S=N,N=0):(S=t,N-=t),v=A[4]-S*A[3],p=m+N*A[3],k=y[2];k>0;)for(k<t?(x=k,k=0):(x=t,k-=t),u=A[3]-x*A[2],l=p+k*A[2],D=y[1];D>0;)for(D<t?(g=D,D=0):(g=t,D-=t),s=A[2]-g*A[1],f=l+D*A[1],I=y[0];I>0;)for(I<t?(h=I,I=0):(h=t,I-=t),b=f+I*A[0],n=A[1]-h*A[0],O=0;O<w;O++){for(j=0;j<S;j++){for(T=0;T<x;T++){for(q=0;q<g;q++){for(E=0;E<h;E++)e.call(a,o[b],iEr([O,j,T,q,E],d),r.ref),b+=i;b+=n}b+=s}b+=u}b+=v}}bN.exports=nEr});var wN=c((eve,qN)=>{"use strict";var sEr=Zr(),uEr=Qr(),vEr=Kr(),fEr=re();function lEr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L;for(L=sEr(r.shape,r.strides),g=L.sh,E=L.sx,h=fEr(L.idx),t=uEr(r.dtype),q=r.offset,o=r.data,i=E[0],C=g[5];C>0;)for(C<t?(b=C,C=0):(b=t,C-=t),y=q+C*E[5],z=g[4];z>0;)for(z<t?(_=z,z=0):(_=t,z-=t),f=E[5]-_*E[4],d=y+z*E[4],V=g[3];V>0;)for(V<t?(A=V,V=0):(A=t,V-=t),v=E[4]-A*E[3],m=d+V*E[3],B=g[2];B>0;)for(B<t?(w=B,B=0):(w=t,B-=t),u=E[3]-w*E[2],p=m+B*E[2],R=g[1];R>0;)for(R<t?(S=R,R=0):(S=t,R-=t),s=E[2]-S*E[1],l=p+R*E[1],F=g[0];F>0;)for(F<t?(x=F,F=0):(x=t,F-=t),T=l+F*E[0],n=E[1]-x*E[0],N=0;N<b;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<x;j++)e.call(a,o[T],vEr([N,k,D,I,O,j],h),r.ref),T+=i;T+=n}T+=s}T+=u}T+=v}T+=f}}qN.exports=lEr});var EN=c((ave,SN)=>{"use strict";var cEr=Zr(),dEr=Qr(),pEr=Kr(),yEr=re();function mEr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$;for($=cEr(r.shape,r.strides),S=$.sh,j=$.sx,x=yEr($.idx),t=dEr(r.dtype),O=r.offset,o=r.data,i=j[0],G=S[6];G>0;)for(G<t?(T=G,G=0):(T=t,G-=t),g=O+G*j[6],M=S[5];M>0;)for(M<t?(q=M,M=0):(q=t,M-=t),l=j[6]-q*j[5],h=g+M*j[5],U=S[4];U>0;)for(U<t?(E=U,U=0):(E=t,U-=t),f=j[5]-E*j[4],y=h+U*j[4],P=S[3];P>0;)for(P<t?(b=P,P=0):(b=t,P-=t),v=j[4]-b*j[3],d=y+P*j[3],L=S[2];L>0;)for(L<t?(_=L,L=0):(_=t,L-=t),u=j[3]-_*j[2],m=d+L*j[2],C=S[1];C>0;)for(C<t?(A=C,C=0):(A=t,C-=t),s=j[2]-A*j[1],p=m+C*j[1],z=S[0];z>0;)for(z<t?(w=z,z=0):(w=t,z-=t),I=p+z*j[0],n=j[1]-w*j[0],V=0;V<T;V++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<b;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)e.call(a,o[I],pEr([V,B,R,F,N,k,D],x),r.ref),I+=i;I+=n}I+=s}I+=u}I+=v}I+=f}I+=l}}SN.exports=mEr});var _N=c((tve,AN)=>{"use strict";var hEr=Zr(),gEr=Qr(),bEr=Kr(),xEr=re();function qEr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K;for(K=hEr(r.shape,r.strides),A=K.sh,D=K.sx,w=xEr(K.idx),t=gEr(r.dtype),k=r.offset,o=r.data,i=D[0],X=A[7];X>0;)for(X<t?(I=X,X=0):(I=t,X-=t),S=k+X*D[7],J=A[6];J>0;)for(J<t?(O=J,J=0):(O=t,J-=t),p=D[7]-O*D[6],x=S+J*D[6],W=A[5];W>0;)for(W<t?(j=W,W=0):(j=t,W-=t),l=D[6]-j*D[5],g=x+W*D[5],Y=A[4];Y>0;)for(Y<t?(T=Y,Y=0):(T=t,Y-=t),f=D[5]-T*D[4],h=g+Y*D[4],$=A[3];$>0;)for($<t?(q=$,$=0):(q=t,$-=t),v=D[4]-q*D[3],y=h+$*D[3],G=A[2];G>0;)for(G<t?(E=G,G=0):(E=t,G-=t),u=D[3]-E*D[2],d=y+G*D[2],M=A[1];M>0;)for(M<t?(b=M,M=0):(b=t,M-=t),s=D[2]-b*D[1],m=d+M*D[1],U=A[0];U>0;)for(U<t?(_=U,U=0):(_=t,U-=t),N=m+U*D[0],n=D[1]-_*D[0],P=0;P<I;P++){for(L=0;L<O;L++){for(C=0;C<j;C++){for(z=0;z<T;z++){for(V=0;V<q;V++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(F=0;F<_;F++)e.call(a,o[N],bEr([P,L,C,z,V,B,R,F],w),r.ref),N+=i;N+=n}N+=s}N+=u}N+=v}N+=f}N+=l}N+=p}}AN.exports=qEr});var jN=c((ive,TN)=>{"use strict";var wEr=Zr(),SEr=Qr(),EEr=Kr(),AEr=re();function _Er(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar;for(ar=wEr(r.shape,r.strides),b=ar.sh,F=ar.sx,_=AEr(ar.idx),t=SEr(r.dtype),R=r.offset,o=r.data,i=F[0],rr=b[8];rr>0;)for(rr<t?(N=rr,rr=0):(N=t,rr-=t),A=R+rr*F[8],Z=b[7];Z>0;)for(Z<t?(k=Z,Z=0):(k=t,Z-=t),m=F[8]-k*F[7],w=A+Z*F[7],Q=b[6];Q>0;)for(Q<t?(D=Q,Q=0):(D=t,Q-=t),p=F[7]-D*F[6],S=w+Q*F[6],H=b[5];H>0;)for(H<t?(I=H,H=0):(I=t,H-=t),l=F[6]-I*F[5],x=S+H*F[5],K=b[4];K>0;)for(K<t?(O=K,K=0):(O=t,K-=t),f=F[5]-O*F[4],g=x+K*F[4],X=b[3];X>0;)for(X<t?(j=X,X=0):(j=t,X-=t),v=F[4]-j*F[3],h=g+X*F[3],J=b[2];J>0;)for(J<t?(T=J,J=0):(T=t,J-=t),u=F[3]-T*F[2],y=h+J*F[2],W=b[1];W>0;)for(W<t?(q=W,W=0):(q=t,W-=t),s=F[2]-q*F[1],d=y+W*F[1],Y=b[0];Y>0;)for(Y<t?(E=Y,Y=0):(E=t,Y-=t),B=d+Y*F[0],n=F[1]-E*F[0],$=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<I;U++){for(P=0;P<O;P++){for(L=0;L<j;L++){for(C=0;C<T;C++){for(z=0;z<q;z++){for(V=0;V<E;V++)e.call(a,o[B],EEr([$,G,M,U,P,L,C,z,V],_),r.ref),B+=i;B+=n}B+=s}B+=u}B+=v}B+=f}B+=l}B+=p}B+=m}}TN.exports=_Er});var ON=c((ove,IN)=>{"use strict";var TEr=Zr(),jEr=Qr(),IEr=Kr(),OEr=re();function NEr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr;for(nr=TEr(r.shape,r.strides),q=nr.sh,V=nr.sx,E=OEr(nr.idx),t=jEr(r.dtype),z=r.offset,o=r.data,i=V[0],or=q[9];or>0;)for(or<t?(B=or,or=0):(B=t,or-=t),b=z+or*V[9],tr=q[8];tr>0;)for(tr<t?(R=tr,tr=0):(R=t,tr-=t),d=V[9]-R*V[8],_=b+tr*V[8],ir=q[7];ir>0;)for(ir<t?(F=ir,ir=0):(F=t,ir-=t),m=V[8]-F*V[7],A=_+ir*V[7],er=q[6];er>0;)for(er<t?(N=er,er=0):(N=t,er-=t),p=V[7]-N*V[6],w=A+er*V[6],ar=q[5];ar>0;)for(ar<t?(k=ar,ar=0):(k=t,ar-=t),l=V[6]-k*V[5],S=w+ar*V[5],rr=q[4];rr>0;)for(rr<t?(D=rr,rr=0):(D=t,rr-=t),f=V[5]-D*V[4],x=S+rr*V[4],Z=q[3];Z>0;)for(Z<t?(I=Z,Z=0):(I=t,Z-=t),v=V[4]-I*V[3],g=x+Z*V[3],Q=q[2];Q>0;)for(Q<t?(O=Q,Q=0):(O=t,Q-=t),u=V[3]-O*V[2],h=g+Q*V[2],H=q[1];H>0;)for(H<t?(j=H,H=0):(j=t,H-=t),s=V[2]-j*V[1],y=h+H*V[1],K=q[0];K>0;)for(K<t?(T=K,K=0):(T=t,K-=t),C=y+K*V[0],n=V[1]-T*V[0],X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(U=0;U<O;U++){for(P=0;P<j;P++){for(L=0;L<T;L++)e.call(a,o[C],IEr([X,J,W,Y,$,G,M,U,P,L],E),r.ref),C+=i;C+=n}C+=s}C+=u}C+=v}C+=f}C+=l}C+=p}C+=m}C+=d}}IN.exports=NEr});var DN=c((nve,NN)=>{"use strict";function DEr(r,e,a){e.call(a,r.accessors[0](r.data,r.offset),[],r.ref)}NN.exports=DEr});var BN=c((sve,kN)=>{"use strict";function kEr(r,e,a){var t,o,i,n,s,u;for(n=r.shape[0],i=r.strides[0],s=r.offset,t=r.data,o=r.accessors[0],u=0;u<n;u++)e.call(a,o(t,s),[u],r.ref),s+=i}kN.exports=kEr});var RN=c((uve,FN)=>{"use strict";var BEr=qe(),FEr=re(),REr=Kr();function VEr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d;for(u=r.shape,l=r.strides,s=BEr(u.length),r.order==="row-major"?(v=u[1],f=u[0],i=l[1],n=l[0]-v*l[1]):(v=u[0],f=u[1],i=l[0],n=l[1]-v*l[0],s=FEr(s)),p=r.offset,t=r.data,o=r.accessors[0],d=0;d<f;d++){for(m=0;m<v;m++)e.call(a,o(t,p),REr([d,m],s),r.ref),p+=i;p+=n}}FN.exports=VEr});var zN=c((vve,VN)=>{"use strict";var zEr=qe(),CEr=re(),LEr=Kr();function PEr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g;for(v=r.shape,m=r.strides,u=zEr(v.length),r.order==="row-major"?(f=v[2],l=v[1],p=v[0],i=m[2],n=m[1]-f*m[2],s=m[0]-l*m[1]):(f=v[0],l=v[1],p=v[2],i=m[0],n=m[1]-f*m[0],s=m[2]-l*m[1],u=CEr(u)),d=r.offset,t=r.data,o=r.accessors[0],g=0;g<p;g++){for(h=0;h<l;h++){for(y=0;y<f;y++)e.call(a,o(t,d),LEr([g,h,y],u),r.ref),d+=i;d+=n}d+=s}}VN.exports=PEr});var LN=c((fve,CN)=>{"use strict";var UEr=qe(),MEr=re(),GEr=Kr();function YEr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w;for(f=r.shape,y=r.strides,v=UEr(f.length),r.order==="row-major"?(l=f[3],p=f[2],m=f[1],d=f[0],i=y[3],n=y[2]-l*y[3],s=y[1]-p*y[2],u=y[0]-m*y[1]):(l=f[0],p=f[1],m=f[2],d=f[3],i=y[0],n=y[1]-l*y[0],s=y[2]-p*y[1],u=y[3]-m*y[2],v=MEr(v)),h=r.offset,t=r.data,o=r.accessors[0],w=0;w<d;w++){for(S=0;S<m;S++){for(x=0;x<p;x++){for(g=0;g<l;g++)e.call(a,o(t,h),GEr([w,S,x,g],v),r.ref),h+=i;h+=n}h+=s}h+=u}}CN.exports=YEr});var UN=c((lve,PN)=>{"use strict";var $Er=qe(),WEr=re(),JEr=Kr();function XEr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b;for(l=r.shape,g=r.strides,f=$Er(l.length),r.order==="row-major"?(p=l[4],m=l[3],d=l[2],y=l[1],h=l[0],i=g[4],n=g[3]-p*g[4],s=g[2]-m*g[3],u=g[1]-d*g[2],v=g[0]-y*g[1]):(p=l[0],m=l[1],d=l[2],y=l[3],h=l[4],i=g[0],n=g[1]-p*g[0],s=g[2]-m*g[1],u=g[3]-d*g[2],v=g[4]-y*g[3],f=WEr(f)),x=r.offset,t=r.data,o=r.accessors[0],b=0;b<h;b++){for(_=0;_<y;_++){for(A=0;A<d;A++){for(w=0;w<m;w++){for(S=0;S<p;S++)e.call(a,o(t,x),JEr([b,_,A,w,S],f),r.ref),x+=i;x+=n}x+=s}x+=u}x+=v}}PN.exports=XEr});var GN=c((cve,MN)=>{"use strict";var KEr=qe(),HEr=re(),ZEr=Kr();function QEr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T;for(p=r.shape,S=r.strides,l=KEr(p.length),r.order==="row-major"?(m=p[5],d=p[4],y=p[3],h=p[2],g=p[1],x=p[0],i=S[5],n=S[4]-m*S[5],s=S[3]-d*S[4],u=S[2]-y*S[3],v=S[1]-h*S[2],f=S[0]-g*S[1]):(m=p[0],d=p[1],y=p[2],h=p[3],g=p[4],x=p[5],i=S[0],n=S[1]-m*S[0],s=S[2]-d*S[1],u=S[3]-y*S[2],v=S[4]-h*S[3],f=S[5]-g*S[4],l=HEr(l)),w=r.offset,t=r.data,o=r.accessors[0],T=0;T<x;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(b=0;b<y;b++){for(_=0;_<d;_++){for(A=0;A<m;A++)e.call(a,o(t,w),ZEr([T,q,E,b,_,A],l),r.ref),w+=i;w+=n}w+=s}w+=u}w+=v}w+=f}}MN.exports=QEr});var $N=c((dve,YN)=>{"use strict";var rAr=qe(),eAr=re(),aAr=Kr();function tAr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I;for(m=r.shape,A=r.strides,p=rAr(m.length),r.order==="row-major"?(d=m[6],y=m[5],h=m[4],g=m[3],x=m[2],S=m[1],w=m[0],i=A[6],n=A[5]-d*A[6],s=A[4]-y*A[5],u=A[3]-h*A[4],v=A[2]-g*A[3],f=A[1]-x*A[2],l=A[0]-S*A[1]):(d=m[0],y=m[1],h=m[2],g=m[3],x=m[4],S=m[5],w=m[6],i=A[0],n=A[1]-d*A[0],s=A[2]-y*A[1],u=A[3]-h*A[2],v=A[4]-g*A[3],f=A[5]-x*A[4],l=A[6]-S*A[5],p=eAr(p)),_=r.offset,t=r.data,o=r.accessors[0],I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<x;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<y;E++){for(b=0;b<d;b++)e.call(a,o(t,_),aAr([I,O,j,T,q,E,b],p),r.ref),_+=i;_+=n}_+=s}_+=u}_+=v}_+=f}_+=l}}YN.exports=tAr});var JN=c((pve,WN)=>{"use strict";var iAr=qe(),oAr=re(),nAr=Kr();function sAr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N;for(d=r.shape,b=r.strides,m=iAr(d.length),r.order==="row-major"?(y=d[7],h=d[6],g=d[5],x=d[4],S=d[3],w=d[2],A=d[1],_=d[0],i=b[7],n=b[6]-y*b[7],s=b[5]-h*b[6],u=b[4]-g*b[5],v=b[3]-x*b[4],f=b[2]-S*b[3],l=b[1]-w*b[2],p=b[0]-A*b[1]):(y=d[0],h=d[1],g=d[2],x=d[3],S=d[4],w=d[5],A=d[6],_=d[7],i=b[0],n=b[1]-y*b[0],s=b[2]-h*b[1],u=b[3]-g*b[2],v=b[4]-x*b[3],f=b[5]-S*b[4],l=b[6]-w*b[5],p=b[7]-A*b[6],m=oAr(m)),E=r.offset,t=r.data,o=r.accessors[0],N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<x;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<y;q++)e.call(a,o(t,E),nAr([N,k,D,I,O,j,T,q],m),r.ref),E+=i;E+=n}E+=s}E+=u}E+=v}E+=f}E+=l}E+=p}}WN.exports=sAr});var KN=c((yve,XN)=>{"use strict";var uAr=qe(),vAr=re(),fAr=Kr();function lAr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B;for(y=r.shape,q=r.strides,d=uAr(y.length),r.order==="row-major"?(h=y[8],g=y[7],x=y[6],S=y[5],w=y[4],A=y[3],_=y[2],b=y[1],E=y[0],i=q[8],n=q[7]-h*q[8],s=q[6]-g*q[7],u=q[5]-x*q[6],v=q[4]-S*q[5],f=q[3]-w*q[4],l=q[2]-A*q[3],p=q[1]-_*q[2],m=q[0]-b*q[1]):(h=y[0],g=y[1],x=y[2],S=y[3],w=y[4],A=y[5],_=y[6],b=y[7],E=y[8],i=q[0],n=q[1]-h*q[0],s=q[2]-g*q[1],u=q[3]-x*q[2],v=q[4]-S*q[3],f=q[5]-w*q[4],l=q[6]-A*q[5],p=q[7]-_*q[6],m=q[8]-b*q[7],d=vAr(d)),T=r.offset,t=r.data,o=r.accessors[0],B=0;B<E;B++){for(R=0;R<b;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<x;I++){for(O=0;O<g;O++){for(j=0;j<h;j++)e.call(a,o(t,T),fAr([B,R,F,N,k,D,I,O,j],d),r.ref),T+=i;T+=n}T+=s}T+=u}T+=v}T+=f}T+=l}T+=p}T+=m}}XN.exports=lAr});var ZN=c((mve,HN)=>{"use strict";var cAr=qe(),dAr=re(),pAr=Kr();function yAr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C;for(h=r.shape,j=r.strides,y=cAr(h.length),r.order==="row-major"?(g=h[9],x=h[8],S=h[7],w=h[6],A=h[5],_=h[4],b=h[3],E=h[2],q=h[1],T=h[0],i=j[9],n=j[8]-g*j[9],s=j[7]-x*j[8],u=j[6]-S*j[7],v=j[5]-w*j[6],f=j[4]-A*j[5],l=j[3]-_*j[4],p=j[2]-b*j[3],m=j[1]-E*j[2],d=j[0]-q*j[1]):(g=h[0],x=h[1],S=h[2],w=h[3],A=h[4],_=h[5],b=h[6],E=h[7],q=h[8],T=h[9],i=j[0],n=j[1]-g*j[0],s=j[2]-x*j[1],u=j[3]-S*j[2],v=j[4]-w*j[3],f=j[5]-A*j[4],l=j[6]-_*j[5],p=j[7]-b*j[6],m=j[8]-E*j[7],d=j[9]-q*j[8],y=dAr(y)),O=r.offset,t=r.data,o=r.accessors[0],C=0;C<T;C++){for(z=0;z<q;z++){for(V=0;V<E;V++){for(B=0;B<b;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<x;D++){for(I=0;I<g;I++)e.call(a,o(t,O),pAr([C,z,V,B,R,F,N,k,D,I],y),r.ref),O+=i;O+=n}O+=s}O+=u}O+=v}O+=f}O+=l}O+=p}O+=m}O+=d}}HN.exports=yAr});var Lf=c((hve,QN)=>{"use strict";var mAr=pr(),rs=Sf();function hAr(r,e,a,t,o,i,n){var s,u,v,f,l;for(s=r.length,u=1,l=0;l<s;l++)u*=r[l];if(i==="clamp")o<0?o=0:o>=u&&(o=u-1);else if(i==="wrap")o<0?(o+=u,o<0&&(o%=u,o!==0&&(o+=u))):o>=u&&(o-=u,o>=u&&(o%=u));else if(i==="normalize"&&o<0&&(o+=u),o<0||o>=u)throw new RangeError(mAr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",u,o));if(a===0){if(t==="column-major"){for(l=0;l<s;l++)f=o%r[l],o-=f,o/=r[l],n[l]=f;return n}for(l=s-1;l>=0;l--)f=o%r[l],o-=f,o/=r[l],n[l]=f;return n}if(t==="column-major"){for(l=s-1;l>=0;l--)f=e[l],f<0?(v=rs(o/f),o-=v*f,n[l]=r[l]-1+v):(v=rs(o/f),o-=v*f,n[l]=v);return n}for(l=0;l<s;l++)f=e[l],f<0?(v=rs(o/f),o-=v*f,n[l]=r[l]-1+v):(v=rs(o/f),o-=v*f,n[l]=v);return n}QN.exports=hAr});var eD=c((gve,rD)=>{"use strict";var gAr=Se(),bAr=Lf();function xAr(r,e,a,t,o,i){return bAr(r,e,a,t,o,i,gAr(r.length))}rD.exports=xAr});var Ai=c((bve,tD)=>{"use strict";var qAr=Ir(),aD=eD(),wAr=Lf();qAr(aD,"assign",wAr);tD.exports=aD});var nD=c((xve,oD)=>{"use strict";var SAr=Jr(),EAr=na(),AAr=Ai(),iD="throw";function _Ar(r,e,a){var t,o,i,n,s,u,v,f,l,p;for(u=r.shape,i=SAr(u),t=r.data,v=r.strides,f=r.offset,o=r.order,n=r.accessors[0],p=0;p<i;p++)l=EAr(u,v,f,o,p,iD),s=AAr(u,v,0,o,p,iD),e.call(a,n(t,l),s,r.ref)}oD.exports=_Ar});var uD=c((qve,sD)=>{"use strict";function TAr(r,e,a){e.call(a,r.data[r.offset],[],r.ref)}sD.exports=TAr});var fD=c((wve,vD)=>{"use strict";function jAr(r,e,a){var t,o,i,n,s;for(i=r.shape[0],o=r.strides[0],n=r.offset,t=r.data,s=0;s<i;s++)e.call(a,t[n],[s],r.ref),n+=o}vD.exports=jAr});var cD=c((Sve,lD)=>{"use strict";var IAr=qe(),OAr=re(),NAr=Kr();function DAr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m;for(s=r.shape,f=r.strides,n=IAr(s.length),r.order==="row-major"?(u=s[1],v=s[0],o=f[1],i=f[0]-u*f[1]):(u=s[0],v=s[1],o=f[0],i=f[1]-u*f[0],n=OAr(n)),l=r.offset,t=r.data,m=0;m<v;m++){for(p=0;p<u;p++)e.call(a,t[l],NAr([m,p],n),r.ref),l+=o;l+=i}}lD.exports=DAr});var pD=c((Eve,dD)=>{"use strict";var kAr=qe(),BAr=re(),FAr=Kr();function RAr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h;for(u=r.shape,p=r.strides,s=kAr(u.length),r.order==="row-major"?(v=u[2],f=u[1],l=u[0],o=p[2],i=p[1]-v*p[2],n=p[0]-f*p[1]):(v=u[0],f=u[1],l=u[2],o=p[0],i=p[1]-v*p[0],n=p[2]-f*p[1],s=BAr(s)),m=r.offset,t=r.data,h=0;h<l;h++){for(y=0;y<f;y++){for(d=0;d<v;d++)e.call(a,t[m],FAr([h,y,d],s),r.ref),m+=o;m+=i}m+=n}}dD.exports=RAr});var mD=c((Ave,yD)=>{"use strict";var VAr=qe(),zAr=re(),CAr=Kr();function LAr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S;for(v=r.shape,d=r.strides,u=VAr(v.length),r.order==="row-major"?(f=v[3],l=v[2],p=v[1],m=v[0],o=d[3],i=d[2]-f*d[3],n=d[1]-l*d[2],s=d[0]-p*d[1]):(f=v[0],l=v[1],p=v[2],m=v[3],o=d[0],i=d[1]-f*d[0],n=d[2]-l*d[1],s=d[3]-p*d[2],u=zAr(u)),y=r.offset,t=r.data,S=0;S<m;S++){for(x=0;x<p;x++){for(g=0;g<l;g++){for(h=0;h<f;h++)e.call(a,t[y],CAr([S,x,g,h],u),r.ref),y+=o;y+=i}y+=n}y+=s}}yD.exports=LAr});var gD=c((_ve,hD)=>{"use strict";var PAr=qe(),UAr=re(),MAr=Kr();function GAr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_;for(f=r.shape,h=r.strides,v=PAr(f.length),r.order==="row-major"?(l=f[4],p=f[3],m=f[2],d=f[1],y=f[0],o=h[4],i=h[3]-l*h[4],n=h[2]-p*h[3],s=h[1]-m*h[2],u=h[0]-d*h[1]):(l=f[0],p=f[1],m=f[2],d=f[3],y=f[4],o=h[0],i=h[1]-l*h[0],n=h[2]-p*h[1],s=h[3]-m*h[2],u=h[4]-d*h[3],v=UAr(v)),g=r.offset,t=r.data,_=0;_<y;_++){for(A=0;A<d;A++){for(w=0;w<m;w++){for(S=0;S<p;S++){for(x=0;x<l;x++)e.call(a,t[g],MAr([_,A,w,S,x],v),r.ref),g+=o;g+=i}g+=n}g+=s}g+=u}}hD.exports=GAr});var xD=c((Tve,bD)=>{"use strict";var YAr=qe(),$Ar=re(),WAr=Kr();function JAr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q;for(l=r.shape,x=r.strides,f=YAr(l.length),r.order==="row-major"?(p=l[5],m=l[4],d=l[3],y=l[2],h=l[1],g=l[0],o=x[5],i=x[4]-p*x[5],n=x[3]-m*x[4],s=x[2]-d*x[3],u=x[1]-y*x[2],v=x[0]-h*x[1]):(p=l[0],m=l[1],d=l[2],y=l[3],h=l[4],g=l[5],o=x[0],i=x[1]-p*x[0],n=x[2]-m*x[1],s=x[3]-d*x[2],u=x[4]-y*x[3],v=x[5]-h*x[4],f=$Ar(f)),S=r.offset,t=r.data,q=0;q<g;q++){for(E=0;E<h;E++){for(b=0;b<y;b++){for(_=0;_<d;_++){for(A=0;A<m;A++){for(w=0;w<p;w++)e.call(a,t[S],WAr([q,E,b,_,A,w],f),r.ref),S+=o;S+=i}S+=n}S+=s}S+=u}S+=v}}bD.exports=JAr});var wD=c((jve,qD)=>{"use strict";var XAr=qe(),KAr=re(),HAr=Kr();function ZAr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O;for(p=r.shape,w=r.strides,l=XAr(p.length),r.order==="row-major"?(m=p[6],d=p[5],y=p[4],h=p[3],g=p[2],x=p[1],S=p[0],o=w[6],i=w[5]-m*w[6],n=w[4]-d*w[5],s=w[3]-y*w[4],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-x*w[1]):(m=p[0],d=p[1],y=p[2],h=p[3],g=p[4],x=p[5],S=p[6],o=w[0],i=w[1]-m*w[0],n=w[2]-d*w[1],s=w[3]-y*w[2],u=w[4]-h*w[3],v=w[5]-g*w[4],f=w[6]-x*w[5],l=KAr(l)),A=r.offset,t=r.data,O=0;O<S;O++){for(j=0;j<x;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<y;E++){for(b=0;b<d;b++){for(_=0;_<m;_++)e.call(a,t[A],HAr([O,j,T,q,E,b,_],l),r.ref),A+=o;A+=i}A+=n}A+=s}A+=u}A+=v}A+=f}}qD.exports=ZAr});var ED=c((Ive,SD)=>{"use strict";var QAr=qe(),r5r=re(),e5r=Kr();function a5r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k;for(m=r.shape,_=r.strides,p=QAr(m.length),r.order==="row-major"?(d=m[7],y=m[6],h=m[5],g=m[4],x=m[3],S=m[2],w=m[1],A=m[0],o=_[7],i=_[6]-d*_[7],n=_[5]-y*_[6],s=_[4]-h*_[5],u=_[3]-g*_[4],v=_[2]-x*_[3],f=_[1]-S*_[2],l=_[0]-w*_[1]):(d=m[0],y=m[1],h=m[2],g=m[3],x=m[4],S=m[5],w=m[6],A=m[7],o=_[0],i=_[1]-d*_[0],n=_[2]-y*_[1],s=_[3]-h*_[2],u=_[4]-g*_[3],v=_[5]-x*_[4],f=_[6]-S*_[5],l=_[7]-w*_[6],p=r5r(p)),b=r.offset,t=r.data,k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<x;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<y;q++){for(E=0;E<d;E++)e.call(a,t[b],e5r([k,D,I,O,j,T,q,E],p),r.ref),b+=o;b+=i}b+=n}b+=s}b+=u}b+=v}b+=f}b+=l}}SD.exports=a5r});var _D=c((Ove,AD)=>{"use strict";var t5r=qe(),i5r=re(),o5r=Kr();function n5r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R;for(d=r.shape,E=r.strides,m=t5r(d.length),r.order==="row-major"?(y=d[8],h=d[7],g=d[6],x=d[5],S=d[4],w=d[3],A=d[2],_=d[1],b=d[0],o=E[8],i=E[7]-y*E[8],n=E[6]-h*E[7],s=E[5]-g*E[6],u=E[4]-x*E[5],v=E[3]-S*E[4],f=E[2]-w*E[3],l=E[1]-A*E[2],p=E[0]-_*E[1]):(y=d[0],h=d[1],g=d[2],x=d[3],S=d[4],w=d[5],A=d[6],_=d[7],b=d[8],o=E[0],i=E[1]-y*E[0],n=E[2]-h*E[1],s=E[3]-g*E[2],u=E[4]-x*E[3],v=E[5]-S*E[4],f=E[6]-w*E[5],l=E[7]-A*E[6],p=E[8]-_*E[7],m=i5r(m)),q=r.offset,t=r.data,R=0;R<b;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<x;I++){for(O=0;O<g;O++){for(j=0;j<h;j++){for(T=0;T<y;T++)e.call(a,t[q],o5r([R,F,N,k,D,I,O,j,T],m),r.ref),q+=o;q+=i}q+=n}q+=s}q+=u}q+=v}q+=f}q+=l}q+=p}}AD.exports=n5r});var jD=c((Nve,TD)=>{"use strict";var s5r=qe(),u5r=re(),v5r=Kr();function f5r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z;for(y=r.shape,T=r.strides,d=s5r(y.length),r.order==="row-major"?(h=y[9],g=y[8],x=y[7],S=y[6],w=y[5],A=y[4],_=y[3],b=y[2],E=y[1],q=y[0],o=T[9],i=T[8]-h*T[9],n=T[7]-g*T[8],s=T[6]-x*T[7],u=T[5]-S*T[6],v=T[4]-w*T[5],f=T[3]-A*T[4],l=T[2]-_*T[3],p=T[1]-b*T[2],m=T[0]-E*T[1]):(h=y[0],g=y[1],x=y[2],S=y[3],w=y[4],A=y[5],_=y[6],b=y[7],E=y[8],q=y[9],o=T[0],i=T[1]-h*T[0],n=T[2]-g*T[1],s=T[3]-x*T[2],u=T[4]-S*T[3],v=T[5]-w*T[4],f=T[6]-A*T[5],l=T[7]-_*T[6],p=T[8]-b*T[7],m=T[9]-E*T[8],d=u5r(d)),j=r.offset,t=r.data,z=0;z<q;z++){for(V=0;V<E;V++){for(B=0;B<b;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<x;D++){for(I=0;I<g;I++){for(O=0;O<h;O++)e.call(a,t[j],v5r([z,V,B,R,F,N,k,D,I,O],d),r.ref),j+=o;j+=i}j+=n}j+=s}j+=u}j+=v}j+=f}j+=l}j+=p}j+=m}}TD.exports=f5r});var ND=c((Dve,OD)=>{"use strict";var l5r=Jr(),c5r=na(),d5r=Ai(),ID="throw";function p5r(r,e,a){var t,o,i,n,s,u,v,f,l;for(s=r.shape,i=l5r(s),t=r.data,u=r.strides,v=r.offset,o=r.order,l=0;l<i;l++)f=c5r(s,u,v,o,l,ID),n=d5r(s,u,0,o,l,ID),e.call(a,t[f],n,r.ref)}OD.exports=p5r});var FD=c((kve,BD)=>{"use strict";var y5r=Sa(),m5r=ri(),h5r=Jr(),g5r=K7(),b5r=Z7(),x5r=rN(),q5r=aN(),w5r=iN(),S5r=nN(),E5r=uN(),A5r=fN(),_5r=cN(),T5r=pN(),j5r=mN(),I5r=gN(),O5r=xN(),N5r=wN(),D5r=EN(),k5r=_N(),B5r=jN(),F5r=ON(),R5r=DN(),V5r=BN(),z5r=RN(),C5r=zN(),L5r=LN(),P5r=UN(),U5r=GN(),M5r=$N(),G5r=JN(),Y5r=KN(),$5r=ZN(),W5r=nD(),J5r=uD(),X5r=fD(),K5r=cD(),H5r=pD(),Z5r=mD(),Q5r=gD(),r8r=xD(),e8r=wD(),a8r=ED(),t8r=_D(),i8r=jD(),o8r=ND(),Pf=[J5r,X5r,K5r,H5r,Z5r,Q5r,r8r,e8r,a8r,t8r,i8r],DD=[R5r,V5r,z5r,C5r,L5r,P5r,U5r,M5r,G5r,Y5r,$5r],n8r=[T5r,j5r,I5r,O5r,N5r,D5r,k5r,B5r,F5r],s8r=[g5r,b5r,x5r,q5r,w5r,S5r,E5r,A5r,_5r],kD=Pf.length-1;function u8r(r,e,a){var t,o,i;if(i=m5r(r[0]),o=i.shape,t=o.length,t===0)return i.accessorProtocol?DD[t](i,e,a):Pf[t](i,e,a);if(h5r(o)!==0){if(t<=kD&&y5r(i.strides)!==0)return i.accessorProtocol?DD[t](i,e,a):Pf[t](i,e,a);if(t<=kD)return i.accessorProtocol?s8r[t-2](i,e,a):n8r[t-2](i,e,a);if(i.accessorProtocol)return W5r(i,e,a);o8r(i,e,a)}}BD.exports=u8r});var VD=c((Bve,RD)=>{"use strict";var v8r=FD();RD.exports=v8r});var CD=c((Fve,zD)=>{"use strict";var f8r=tt(),l8r=bi(),c8r=gi(),d8r=Ba(),p8r=aa(),y8r=pr();function m8r(r,e,a){var t,o;if(t=d8r(e,1),t===null)throw new TypeError(y8r("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return/^complex/.test(e)&&typeof r=="number"&&(r=[r,0]),f8r(t)?o=l8r(e):o=c8r(e),o(t,0,r),new p8r(e,t,[],[0],0,a)}zD.exports=m8r});var PD=c((Rve,LD)=>{"use strict";var h8r=CD();LD.exports=h8r});var MD=c((Vve,UD)=>{"use strict";function g8r(r,e,a){var t,o,i;for(t=r.length,o=a,i=0;i<t;i++){if(r[i]===0)return a;e[i]>0&&(o+=e[i]*(r[i]-1))}return o}UD.exports=g8r});var YD=c((zve,GD)=>{"use strict";var b8r=MD();GD.exports=b8r});var JD=c((Cve,WD)=>{"use strict";var $D=_o(),x8r=Te();function q8r(r,e){var a,t,o;if(t=e.length,a=x8r(r,!1),a.length===t){for(o=0;o<t;o++)if(a[o]!==e[o])return $D(r,e);return r}return $D(r,e)}WD.exports=q8r});var Uf=c((Lve,XD)=>{"use strict";var w8r=JD();XD.exports=w8r});var HD=c((Pve,KD)=>{"use strict";var S8r=qi(),E8r=Uf(),A8r=Te();function _8r(r){var e,a,t,o,i;for(o=r.length,e=[],i=0;i<o;i++)e.push(A8r(r[i],!1));if(t=S8r(e),t===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(a=[],i=0;i<o;i++)a.push(E8r(r[i],t));return a}KD.exports=_8r});var QD=c((Uve,ZD)=>{"use strict";var T8r=HD();ZD.exports=T8r});var ek=c((Mve,rk)=>{"use strict";var Mf=Ir(),j8r=gt(),I8r=Of();function O8r(r,e,a){return Mf(a,"nargs",r.nargs),Mf(a,"nin",r.nin),Mf(a,"nout",r.nout),j8r(a,"types",t),a;function t(){return I8r(e,r.nin,r.nout)}}rk.exports=O8r});var tk=c((Gve,ak)=>{"use strict";var N8r=ek();ak.exports=N8r});var ok=c((Yve,ik)=>{"use strict";function D8r(r,e,a){var t,o,i;for(t=r.length,o=a,i=0;i<t;i++){if(r[i]===0)return a;e[i]<0&&(o+=e[i]*(r[i]-1))}return o}ik.exports=D8r});var sk=c(($ve,nk)=>{"use strict";var k8r=ok();nk.exports=k8r});var vk=c((Wve,uk)=>{"use strict";var B8r=Fa(),F8r=oe(),R8r=Ja(),V8r=_t(),z8r=Xa(),C8r=ut(),L8r=aa(),P8r=Da(),U8r=P8r("order");function M8r(r){return new L8r(B8r(r),C8r(r),F8r(r),R8r(r),V8r(r),z8r(r)||U8r)}uk.exports=M8r});var lk=c((Jve,fk)=>{"use strict";var G8r=vk();fk.exports=G8r});var Gf=c((Xve,ck)=>{"use strict";var Y8r="row-major";function $8r(r,e,a,t,o){var i,n;for(i=r-1;i>t;i--)o[i]=a[i];for(i=t;i>=0&&(n=(a[i]+1)%e[i],o[i]=n,!(n>0));i--);for(i-=1;i>=0;i--)o[i]=a[i];return o}function W8r(r,e,a,t,o){var i,n;for(i=0;i<t;i++)o[i]=a[i];for(i=t;i<r&&(n=(a[i]+1)%e[i],o[i]=n,!(n>0));i++);for(i+=1;i<r;i++)o[i]=a[i];return o}function J8r(r,e,a,t,o){var i=r.length;if(i===0)return null;if(t<0){if(t+=i,t<0)return null}else if(t>=i)return null;return e===Y8r?$8r(i,r,a,t,o):W8r(i,r,a,t,o)}ck.exports=J8r});var pk=c((Kve,dk)=>{"use strict";var X8r=Se(),K8r=Gf();function H8r(r,e,a,t){return K8r(r,e,a,t,X8r(r.length))}dk.exports=H8r});var He=c((Hve,mk)=>{"use strict";var Z8r=Ir(),yk=pk(),Q8r=Gf();Z8r(yk,"assign",Q8r);mk.exports=yk});var gk=c((Zve,hk)=>{"use strict";function r_r(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]!==1&&(e+=1);return e}hk.exports=r_r});var xk=c((Qve,bk)=>{"use strict";var e_r=gk();bk.exports=e_r});var wk=c((rfe,qk)=>{"use strict";var a_r=Zr(),t_r=Qr();function i_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x;for(x=a_r(r.shape,r.strides),u=x.sh,l=x.sx,a=t_r(r.dtype),p=r.offset,t=r.data,i=l[0],o=r.accessors[1],g=u[1];g>0;)for(g<a?(f=g,g=0):(f=a,g-=a),s=p+g*l[1],h=u[0];h>0;)for(h<a?(v=h,h=0):(v=a,h-=a),m=s+h*l[0],n=l[1]-v*l[0],y=0;y<f;y++){for(d=0;d<v;d++)o(t,m,e()),m+=i;m+=n}}qk.exports=i_r});var Ek=c((efe,Sk)=>{"use strict";var o_r=Zr(),n_r=Qr();function s_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b;for(b=o_r(r.shape,r.strides),f=b.sh,d=b.sx,a=n_r(r.dtype),y=r.offset,t=r.data,i=d[0],o=r.accessors[1],_=f[2];_>0;)for(_<a?(m=_,_=0):(m=a,_-=a),v=y+_*d[2],A=f[1];A>0;)for(A<a?(p=A,A=0):(p=a,A-=a),s=d[2]-p*d[1],u=v+A*d[1],w=f[0];w>0;)for(w<a?(l=w,w=0):(l=a,w-=a),h=u+w*d[0],n=d[1]-l*d[0],S=0;S<m;S++){for(x=0;x<p;x++){for(g=0;g<l;g++)o(t,h,e()),h+=i;h+=n}h+=s}}Sk.exports=s_r});var _k=c((afe,Ak)=>{"use strict";var u_r=Zr(),v_r=Qr();function f_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O;for(O=u_r(r.shape,r.strides),p=O.sh,g=O.sx,a=v_r(r.dtype),x=r.offset,t=r.data,i=g[0],o=r.accessors[1],j=p[3];j>0;)for(j<a?(h=j,j=0):(h=a,j-=a),l=x+j*g[3],T=p[2];T>0;)for(T<a?(y=T,T=0):(y=a,T-=a),u=g[3]-y*g[2],f=l+T*g[2],q=p[1];q>0;)for(q<a?(d=q,q=0):(d=a,q-=a),s=g[2]-d*g[1],v=f+q*g[1],E=p[0];E>0;)for(E<a?(m=E,E=0):(m=a,E-=a),S=v+E*g[0],n=g[1]-m*g[0],b=0;b<h;b++){for(_=0;_<y;_++){for(A=0;A<d;A++){for(w=0;w<m;w++)o(t,S,e()),S+=i;S+=n}S+=s}S+=u}}Ak.exports=f_r});var jk=c((tfe,Tk)=>{"use strict";var l_r=Zr(),c_r=Qr();function d_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F;for(F=l_r(r.shape,r.strides),d=F.sh,w=F.sx,a=c_r(r.dtype),A=r.offset,t=r.data,i=w[0],o=r.accessors[1],N=d[4];N>0;)for(N<a?(S=N,N=0):(S=a,N-=a),m=A+N*w[4],k=d[3];k>0;)for(k<a?(x=k,k=0):(x=a,k-=a),v=w[4]-x*w[3],p=m+k*w[3],D=d[2];D>0;)for(D<a?(g=D,D=0):(g=a,D-=a),u=w[3]-g*w[2],l=p+D*w[2],I=d[1];I>0;)for(I<a?(h=I,I=0):(h=a,I-=a),s=w[2]-h*w[1],f=l+I*w[1],O=d[0];O>0;)for(O<a?(y=O,O=0):(y=a,O-=a),_=f+O*w[0],n=w[1]-y*w[0],j=0;j<S;j++){for(T=0;T<x;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(b=0;b<y;b++)o(t,_,e()),_+=i;_+=n}_+=s}_+=u}_+=v}}Tk.exports=d_r});var Ok=c((ife,Ik)=>{"use strict";var p_r=Zr(),y_r=Qr();function m_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C;for(C=p_r(r.shape,r.strides),h=C.sh,b=C.sx,a=y_r(r.dtype),E=r.offset,t=r.data,i=b[0],o=r.accessors[1],z=h[5];z>0;)for(z<a?(_=z,z=0):(_=a,z-=a),y=E+z*b[5],V=h[4];V>0;)for(V<a?(A=V,V=0):(A=a,V-=a),f=b[5]-A*b[4],d=y+V*b[4],B=h[3];B>0;)for(B<a?(w=B,B=0):(w=a,B-=a),v=b[4]-w*b[3],m=d+B*b[3],R=h[2];R>0;)for(R<a?(S=R,R=0):(S=a,R-=a),u=b[3]-S*b[2],p=m+R*b[2],F=h[1];F>0;)for(F<a?(x=F,F=0):(x=a,F-=a),s=b[2]-x*b[1],l=p+F*b[1],N=h[0];N>0;)for(N<a?(g=N,N=0):(g=a,N-=a),q=l+N*b[0],n=b[1]-g*b[0],k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<x;j++){for(T=0;T<g;T++)o(t,q,e()),q+=i;q+=n}q+=s}q+=u}q+=v}q+=f}}Ik.exports=m_r});var Dk=c((ofe,Nk)=>{"use strict";var h_r=Zr(),g_r=Qr();function b_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G;for(G=h_r(r.shape,r.strides),x=G.sh,T=G.sx,a=g_r(r.dtype),j=r.offset,t=r.data,i=T[0],o=r.accessors[1],M=x[6];M>0;)for(M<a?(q=M,M=0):(q=a,M-=a),g=j+M*T[6],U=x[5];U>0;)for(U<a?(E=U,U=0):(E=a,U-=a),l=T[6]-E*T[5],h=g+U*T[5],P=x[4];P>0;)for(P<a?(b=P,P=0):(b=a,P-=a),f=T[5]-b*T[4],y=h+P*T[4],L=x[3];L>0;)for(L<a?(_=L,L=0):(_=a,L-=a),v=T[4]-_*T[3],d=y+L*T[3],C=x[2];C>0;)for(C<a?(A=C,C=0):(A=a,C-=a),u=T[3]-A*T[2],m=d+C*T[2],z=x[1];z>0;)for(z<a?(w=z,z=0):(w=a,z-=a),s=T[2]-w*T[1],p=m+z*T[1],V=x[0];V>0;)for(V<a?(S=V,V=0):(S=a,V-=a),O=p+V*T[0],n=T[1]-S*T[0],B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<b;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++)o(t,O,e()),O+=i;O+=n}O+=s}O+=u}O+=v}O+=f}O+=l}}Nk.exports=b_r});var Bk=c((nfe,kk)=>{"use strict";var x_r=Zr(),q_r=Qr();function w_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X;for(X=x_r(r.shape,r.strides),w=X.sh,I=X.sx,a=q_r(r.dtype),D=r.offset,t=r.data,i=I[0],o=r.accessors[1],J=w[7];J>0;)for(J<a?(O=J,J=0):(O=a,J-=a),S=D+J*I[7],W=w[6];W>0;)for(W<a?(j=W,W=0):(j=a,W-=a),p=I[7]-j*I[6],x=S+W*I[6],Y=w[5];Y>0;)for(Y<a?(T=Y,Y=0):(T=a,Y-=a),l=I[6]-T*I[5],g=x+Y*I[5],$=w[4];$>0;)for($<a?(q=$,$=0):(q=a,$-=a),f=I[5]-q*I[4],h=g+$*I[4],G=w[3];G>0;)for(G<a?(E=G,G=0):(E=a,G-=a),v=I[4]-E*I[3],y=h+G*I[3],M=w[2];M>0;)for(M<a?(b=M,M=0):(b=a,M-=a),u=I[3]-b*I[2],d=y+M*I[2],U=w[1];U>0;)for(U<a?(_=U,U=0):(_=a,U-=a),s=I[2]-_*I[1],m=d+U*I[1],P=w[0];P>0;)for(P<a?(A=P,P=0):(A=a,P-=a),k=m+P*I[0],n=I[1]-A*I[0],L=0;L<O;L++){for(C=0;C<j;C++){for(z=0;z<T;z++){for(V=0;V<q;V++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(F=0;F<_;F++){for(N=0;N<A;N++)o(t,k,e()),k+=i;k+=n}k+=s}k+=u}k+=v}k+=f}k+=l}k+=p}}kk.exports=w_r});var Rk=c((sfe,Fk)=>{"use strict";var S_r=Zr(),E_r=Qr();function A_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr;for(rr=S_r(r.shape,r.strides),_=rr.sh,N=rr.sx,a=E_r(r.dtype),F=r.offset,t=r.data,i=N[0],o=r.accessors[1],Z=_[8];Z>0;)for(Z<a?(k=Z,Z=0):(k=a,Z-=a),A=F+Z*N[8],Q=_[7];Q>0;)for(Q<a?(D=Q,Q=0):(D=a,Q-=a),m=N[8]-D*N[7],w=A+Q*N[7],H=_[6];H>0;)for(H<a?(I=H,H=0):(I=a,H-=a),p=N[7]-I*N[6],S=w+H*N[6],K=_[5];K>0;)for(K<a?(O=K,K=0):(O=a,K-=a),l=N[6]-O*N[5],x=S+K*N[5],X=_[4];X>0;)for(X<a?(j=X,X=0):(j=a,X-=a),f=N[5]-j*N[4],g=x+X*N[4],J=_[3];J>0;)for(J<a?(T=J,J=0):(T=a,J-=a),v=N[4]-T*N[3],h=g+J*N[3],W=_[2];W>0;)for(W<a?(q=W,W=0):(q=a,W-=a),u=N[3]-q*N[2],y=h+W*N[2],Y=_[1];Y>0;)for(Y<a?(E=Y,Y=0):(E=a,Y-=a),s=N[2]-E*N[1],d=y+Y*N[1],$=_[0];$>0;)for($<a?(b=$,$=0):(b=a,$-=a),R=d+$*N[0],n=N[1]-b*N[0],G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<I;U++){for(P=0;P<O;P++){for(L=0;L<j;L++){for(C=0;C<T;C++){for(z=0;z<q;z++){for(V=0;V<E;V++){for(B=0;B<b;B++)o(t,R,e()),R+=i;R+=n}R+=s}R+=u}R+=v}R+=f}R+=l}R+=p}R+=m}}Fk.exports=A_r});var zk=c((ufe,Vk)=>{"use strict";var __r=Zr(),T_r=Qr();function j_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or;for(or=__r(r.shape,r.strides),E=or.sh,B=or.sx,a=T_r(r.dtype),V=r.offset,t=r.data,i=B[0],o=r.accessors[1],tr=E[9];tr>0;)for(tr<a?(R=tr,tr=0):(R=a,tr-=a),b=V+tr*B[9],ir=E[8];ir>0;)for(ir<a?(F=ir,ir=0):(F=a,ir-=a),d=B[9]-F*B[8],_=b+ir*B[8],er=E[7];er>0;)for(er<a?(N=er,er=0):(N=a,er-=a),m=B[8]-N*B[7],A=_+er*B[7],ar=E[6];ar>0;)for(ar<a?(k=ar,ar=0):(k=a,ar-=a),p=B[7]-k*B[6],w=A+ar*B[6],rr=E[5];rr>0;)for(rr<a?(D=rr,rr=0):(D=a,rr-=a),l=B[6]-D*B[5],S=w+rr*B[5],Z=E[4];Z>0;)for(Z<a?(I=Z,Z=0):(I=a,Z-=a),f=B[5]-I*B[4],x=S+Z*B[4],Q=E[3];Q>0;)for(Q<a?(O=Q,Q=0):(O=a,Q-=a),v=B[4]-O*B[3],g=x+Q*B[3],H=E[2];H>0;)for(H<a?(j=H,H=0):(j=a,H-=a),u=B[3]-j*B[2],h=g+H*B[2],K=E[1];K>0;)for(K<a?(T=K,K=0):(T=a,K-=a),s=B[2]-T*B[1],y=h+K*B[1],X=E[0];X>0;)for(X<a?(q=X,X=0):(q=a,X-=a),z=y+X*B[0],n=B[1]-q*B[0],J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(U=0;U<O;U++){for(P=0;P<j;P++){for(L=0;L<T;L++){for(C=0;C<q;C++)o(t,z,e()),z+=i;z+=n}z+=s}z+=u}z+=v}z+=f}z+=l}z+=p}z+=m}z+=d}}Vk.exports=j_r});var Lk=c((vfe,Ck)=>{"use strict";var I_r=Zr(),O_r=Qr();function N_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g;for(g=I_r(r.shape,r.strides),s=g.sh,f=g.sx,a=O_r(r.dtype),l=r.offset,t=r.data,o=f[0],h=s[1];h>0;)for(h<a?(v=h,h=0):(v=a,h-=a),n=l+h*f[1],y=s[0];y>0;)for(y<a?(u=y,y=0):(u=a,y-=a),p=n+y*f[0],i=f[1]-u*f[0],d=0;d<v;d++){for(m=0;m<u;m++)t[p]=e(),p+=o;p+=i}}Ck.exports=N_r});var Uk=c((ffe,Pk)=>{"use strict";var D_r=Zr(),k_r=Qr();function B_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_;for(_=D_r(r.shape,r.strides),v=_.sh,m=_.sx,a=k_r(r.dtype),d=r.offset,t=r.data,o=m[0],A=v[2];A>0;)for(A<a?(p=A,A=0):(p=a,A-=a),u=d+A*m[2],w=v[1];w>0;)for(w<a?(l=w,w=0):(l=a,w-=a),n=m[2]-l*m[1],s=u+w*m[1],S=v[0];S>0;)for(S<a?(f=S,S=0):(f=a,S-=a),y=s+S*m[0],i=m[1]-f*m[0],x=0;x<p;x++){for(g=0;g<l;g++){for(h=0;h<f;h++)t[y]=e(),y+=o;y+=i}y+=n}}Pk.exports=B_r});var Gk=c((lfe,Mk)=>{"use strict";var F_r=Zr(),R_r=Qr();function V_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j;for(j=F_r(r.shape,r.strides),l=j.sh,h=j.sx,a=R_r(r.dtype),g=r.offset,t=r.data,o=h[0],T=l[3];T>0;)for(T<a?(y=T,T=0):(y=a,T-=a),f=g+T*h[3],q=l[2];q>0;)for(q<a?(d=q,q=0):(d=a,q-=a),s=h[3]-d*h[2],v=f+q*h[2],E=l[1];E>0;)for(E<a?(m=E,E=0):(m=a,E-=a),n=h[2]-m*h[1],u=v+E*h[1],b=l[0];b>0;)for(b<a?(p=b,b=0):(p=a,b-=a),x=u+b*h[0],i=h[1]-p*h[0],_=0;_<y;_++){for(A=0;A<d;A++){for(w=0;w<m;w++){for(S=0;S<p;S++)t[x]=e(),x+=o;x+=i}x+=n}x+=s}}Mk.exports=V_r});var $k=c((cfe,Yk)=>{"use strict";var z_r=Zr(),C_r=Qr();function L_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N;for(N=z_r(r.shape,r.strides),m=N.sh,S=N.sx,a=C_r(r.dtype),w=r.offset,t=r.data,o=S[0],k=m[4];k>0;)for(k<a?(x=k,k=0):(x=a,k-=a),p=w+k*S[4],D=m[3];D>0;)for(D<a?(g=D,D=0):(g=a,D-=a),u=S[4]-g*S[3],l=p+D*S[3],I=m[2];I>0;)for(I<a?(h=I,I=0):(h=a,I-=a),s=S[3]-h*S[2],f=l+I*S[2],O=m[1];O>0;)for(O<a?(y=O,O=0):(y=a,O-=a),n=S[2]-y*S[1],v=f+O*S[1],j=m[0];j>0;)for(j<a?(d=j,j=0):(d=a,j-=a),A=v+j*S[0],i=S[1]-d*S[0],T=0;T<x;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(b=0;b<y;b++){for(_=0;_<d;_++)t[A]=e(),A+=o;A+=i}A+=n}A+=s}A+=u}}Yk.exports=L_r});var Jk=c((dfe,Wk)=>{"use strict";var P_r=Zr(),U_r=Qr();function M_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z;for(z=P_r(r.shape,r.strides),y=z.sh,_=z.sx,a=U_r(r.dtype),b=r.offset,t=r.data,o=_[0],V=y[5];V>0;)for(V<a?(A=V,V=0):(A=a,V-=a),d=b+V*_[5],B=y[4];B>0;)for(B<a?(w=B,B=0):(w=a,B-=a),v=_[5]-w*_[4],m=d+B*_[4],R=y[3];R>0;)for(R<a?(S=R,R=0):(S=a,R-=a),u=_[4]-S*_[3],p=m+R*_[3],F=y[2];F>0;)for(F<a?(x=F,F=0):(x=a,F-=a),s=_[3]-x*_[2],l=p+F*_[2],N=y[1];N>0;)for(N<a?(g=N,N=0):(g=a,N-=a),n=_[2]-g*_[1],f=l+N*_[1],k=y[0];k>0;)for(k<a?(h=k,k=0):(h=a,k-=a),E=f+k*_[0],i=_[1]-h*_[0],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<x;j++){for(T=0;T<g;T++){for(q=0;q<h;q++)t[E]=e(),E+=o;E+=i}E+=n}E+=s}E+=u}E+=v}}Wk.exports=M_r});var Kk=c((pfe,Xk)=>{"use strict";var G_r=Zr(),Y_r=Qr();function $_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M;for(M=G_r(r.shape,r.strides),g=M.sh,q=M.sx,a=Y_r(r.dtype),T=r.offset,t=r.data,o=q[0],U=g[6];U>0;)for(U<a?(E=U,U=0):(E=a,U-=a),h=T+U*q[6],P=g[5];P>0;)for(P<a?(b=P,P=0):(b=a,P-=a),f=q[6]-b*q[5],y=h+P*q[5],L=g[4];L>0;)for(L<a?(_=L,L=0):(_=a,L-=a),v=q[5]-_*q[4],d=y+L*q[4],C=g[3];C>0;)for(C<a?(A=C,C=0):(A=a,C-=a),u=q[4]-A*q[3],m=d+C*q[3],z=g[2];z>0;)for(z<a?(w=z,z=0):(w=a,z-=a),s=q[3]-w*q[2],p=m+z*q[2],V=g[1];V>0;)for(V<a?(S=V,V=0):(S=a,V-=a),n=q[2]-S*q[1],l=p+V*q[1],B=g[0];B>0;)for(B<a?(x=B,B=0):(x=a,B-=a),j=l+B*q[0],i=q[1]-x*q[0],R=0;R<E;R++){for(F=0;F<b;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<x;O++)t[j]=e(),j+=o;j+=i}j+=n}j+=s}j+=u}j+=v}j+=f}}Xk.exports=$_r});var Zk=c((yfe,Hk)=>{"use strict";var W_r=Zr(),J_r=Qr();function X_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J;for(J=W_r(r.shape,r.strides),S=J.sh,O=J.sx,a=J_r(r.dtype),I=r.offset,t=r.data,o=O[0],W=S[7];W>0;)for(W<a?(j=W,W=0):(j=a,W-=a),x=I+W*O[7],Y=S[6];Y>0;)for(Y<a?(T=Y,Y=0):(T=a,Y-=a),l=O[7]-T*O[6],g=x+Y*O[6],$=S[5];$>0;)for($<a?(q=$,$=0):(q=a,$-=a),f=O[6]-q*O[5],h=g+$*O[5],G=S[4];G>0;)for(G<a?(E=G,G=0):(E=a,G-=a),v=O[5]-E*O[4],y=h+G*O[4],M=S[3];M>0;)for(M<a?(b=M,M=0):(b=a,M-=a),u=O[4]-b*O[3],d=y+M*O[3],U=S[2];U>0;)for(U<a?(_=U,U=0):(_=a,U-=a),s=O[3]-_*O[2],m=d+U*O[2],P=S[1];P>0;)for(P<a?(A=P,P=0):(A=a,P-=a),n=O[2]-A*O[1],p=m+P*O[1],L=S[0];L>0;)for(L<a?(w=L,L=0):(w=a,L-=a),D=p+L*O[0],i=O[1]-w*O[0],C=0;C<j;C++){for(z=0;z<T;z++){for(V=0;V<q;V++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++)t[D]=e(),D+=o;D+=i}D+=n}D+=s}D+=u}D+=v}D+=f}D+=l}}Hk.exports=X_r});var rB=c((mfe,Qk)=>{"use strict";var K_r=Zr(),H_r=Qr();function Z_r(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z;for(Z=K_r(r.shape,r.strides),A=Z.sh,k=Z.sx,a=H_r(r.dtype),N=r.offset,t=r.data,o=k[0],Q=A[8];Q>0;)for(Q<a?(D=Q,Q=0):(D=a,Q-=a),w=N+Q*k[8],H=A[7];H>0;)for(H<a?(I=H,H=0):(I=a,H-=a),p=k[8]-I*k[7],S=w+H*k[7],K=A[6];K>0;)for(K<a?(O=K,K=0):(O=a,K-=a),l=k[7]-O*k[6],x=S+K*k[6],X=A[5];X>0;)for(X<a?(j=X,X=0):(j=a,X-=a),f=k[6]-j*k[5],g=x+X*k[5],J=A[4];J>0;)for(J<a?(T=J,J=0):(T=a,J-=a),v=k[5]-T*k[4],h=g+J*k[4],W=A[3];W>0;)for(W<a?(q=W,W=0):(q=a,W-=a),u=k[4]-q*k[3],y=h+W*k[3],Y=A[2];Y>0;)for(Y<a?(E=Y,Y=0):(E=a,Y-=a),s=k[3]-E*k[2],d=y+Y*k[2],$=A[1];$>0;)for($<a?(b=$,$=0):(b=a,$-=a),n=k[2]-b*k[1],m=d+$*k[1],G=A[0];G>0;)for(G<a?(_=G,G=0):(_=a,G-=a),F=m+G*k[0],i=k[1]-_*k[0],M=0;M<D;M++){for(U=0;U<I;U++){for(P=0;P<O;P++){for(L=0;L<j;L++){for(C=0;C<T;C++){for(z=0;z<q;z++){for(V=0;V<E;V++){for(B=0;B<b;B++){for(R=0;R<_;R++)t[F]=e(),F+=o;F+=i}F+=n}F+=s}F+=u}F+=v}F+=f}F+=l}F+=p}}Qk.exports=Z_r});var aB=c((hfe,eB)=>{"use strict";var Q_r=Zr(),rTr=Qr();function eTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr;for(tr=Q_r(r.shape,r.strides),b=tr.sh,R=tr.sx,a=rTr(r.dtype),B=r.offset,t=r.data,o=R[0],ir=b[9];ir>0;)for(ir<a?(F=ir,ir=0):(F=a,ir-=a),_=B+ir*R[9],er=b[8];er>0;)for(er<a?(N=er,er=0):(N=a,er-=a),m=R[9]-N*R[8],A=_+er*R[8],ar=b[7];ar>0;)for(ar<a?(k=ar,ar=0):(k=a,ar-=a),p=R[8]-k*R[7],w=A+ar*R[7],rr=b[6];rr>0;)for(rr<a?(D=rr,rr=0):(D=a,rr-=a),l=R[7]-D*R[6],S=w+rr*R[6],Z=b[5];Z>0;)for(Z<a?(I=Z,Z=0):(I=a,Z-=a),f=R[6]-I*R[5],x=S+Z*R[5],Q=b[4];Q>0;)for(Q<a?(O=Q,Q=0):(O=a,Q-=a),v=R[5]-O*R[4],g=x+Q*R[4],H=b[3];H>0;)for(H<a?(j=H,H=0):(j=a,H-=a),u=R[4]-j*R[3],h=g+H*R[3],K=b[2];K>0;)for(K<a?(T=K,K=0):(T=a,K-=a),s=R[3]-T*R[2],y=h+K*R[2],X=b[1];X>0;)for(X<a?(q=X,X=0):(q=a,X-=a),n=R[2]-q*R[1],d=y+X*R[1],J=b[0];J>0;)for(J<a?(E=J,J=0):(E=a,J-=a),V=d+J*R[0],i=R[1]-E*R[0],W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(U=0;U<O;U++){for(P=0;P<j;P++){for(L=0;L<T;L++){for(C=0;C<q;C++){for(z=0;z<E;z++)t[V]=e(),V+=o;V+=i}V+=n}V+=s}V+=u}V+=v}V+=f}V+=l}V+=p}V+=m}}eB.exports=eTr});var iB=c((gfe,tB)=>{"use strict";function aTr(r,e){r.accessors[1](r.data,r.offset,e())}tB.exports=aTr});var nB=c((bfe,oB)=>{"use strict";function tTr(r,e){var a,t,o,i,n,s;for(i=r.shape[0],o=r.strides[0],n=r.offset,a=r.data,t=r.accessors[1],s=0;s<i;s++)t(a,n,e()),n+=o}oB.exports=tTr});var uB=c((xfe,sB)=>{"use strict";function iTr(r,e){var a,t,o,i,n,s,u,v,f,l,p;for(n=r.shape,v=r.strides,r.order==="row-major"?(s=n[1],u=n[0],o=v[1],i=v[0]-s*v[1]):(s=n[0],u=n[1],o=v[0],i=v[1]-s*v[0]),f=r.offset,a=r.data,t=r.accessors[1],p=0;p<u;p++){for(l=0;l<s;l++)t(a,f,e()),f+=o;f+=i}}sB.exports=iTr});var fB=c((qfe,vB)=>{"use strict";function oTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y;for(s=r.shape,l=r.strides,r.order==="row-major"?(u=s[2],v=s[1],f=s[0],o=l[2],i=l[1]-u*l[2],n=l[0]-v*l[1]):(u=s[0],v=s[1],f=s[2],o=l[0],i=l[1]-u*l[0],n=l[2]-v*l[1]),p=r.offset,a=r.data,t=r.accessors[1],y=0;y<f;y++){for(d=0;d<v;d++){for(m=0;m<u;m++)t(a,p,e()),p+=o;p+=i}p+=n}}vB.exports=oTr});var cB=c((wfe,lB)=>{"use strict";function nTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x;for(u=r.shape,m=r.strides,r.order==="row-major"?(v=u[3],f=u[2],l=u[1],p=u[0],o=m[3],i=m[2]-v*m[3],n=m[1]-f*m[2],s=m[0]-l*m[1]):(v=u[0],f=u[1],l=u[2],p=u[3],o=m[0],i=m[1]-v*m[0],n=m[2]-f*m[1],s=m[3]-l*m[2]),d=r.offset,a=r.data,t=r.accessors[1],x=0;x<p;x++){for(g=0;g<l;g++){for(h=0;h<f;h++){for(y=0;y<v;y++)t(a,d,e()),d+=o;d+=i}d+=n}d+=s}}lB.exports=nTr});var pB=c((Sfe,dB)=>{"use strict";function sTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A;for(v=r.shape,y=r.strides,r.order==="row-major"?(f=v[4],l=v[3],p=v[2],m=v[1],d=v[0],o=y[4],i=y[3]-f*y[4],n=y[2]-l*y[3],s=y[1]-p*y[2],u=y[0]-m*y[1]):(f=v[0],l=v[1],p=v[2],m=v[3],d=v[4],o=y[0],i=y[1]-f*y[0],n=y[2]-l*y[1],s=y[3]-p*y[2],u=y[4]-m*y[3]),h=r.offset,a=r.data,t=r.accessors[1],A=0;A<d;A++){for(w=0;w<m;w++){for(S=0;S<p;S++){for(x=0;x<l;x++){for(g=0;g<f;g++)t(a,h,e()),h+=o;h+=i}h+=n}h+=s}h+=u}}dB.exports=sTr});var mB=c((Efe,yB)=>{"use strict";function uTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E;for(f=r.shape,g=r.strides,r.order==="row-major"?(l=f[5],p=f[4],m=f[3],d=f[2],y=f[1],h=f[0],o=g[5],i=g[4]-l*g[5],n=g[3]-p*g[4],s=g[2]-m*g[3],u=g[1]-d*g[2],v=g[0]-y*g[1]):(l=f[0],p=f[1],m=f[2],d=f[3],y=f[4],h=f[5],o=g[0],i=g[1]-l*g[0],n=g[2]-p*g[1],s=g[3]-m*g[2],u=g[4]-d*g[3],v=g[5]-y*g[4]),x=r.offset,a=r.data,t=r.accessors[1],E=0;E<h;E++){for(b=0;b<y;b++){for(_=0;_<d;_++){for(A=0;A<m;A++){for(w=0;w<p;w++){for(S=0;S<l;S++)t(a,x,e()),x+=o;x+=i}x+=n}x+=s}x+=u}x+=v}}yB.exports=uTr});var gB=c((Afe,hB)=>{"use strict";function vTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j;for(l=r.shape,S=r.strides,r.order==="row-major"?(p=l[6],m=l[5],d=l[4],y=l[3],h=l[2],g=l[1],x=l[0],o=S[6],i=S[5]-p*S[6],n=S[4]-m*S[5],s=S[3]-d*S[4],u=S[2]-y*S[3],v=S[1]-h*S[2],f=S[0]-g*S[1]):(p=l[0],m=l[1],d=l[2],y=l[3],h=l[4],g=l[5],x=l[6],o=S[0],i=S[1]-p*S[0],n=S[2]-m*S[1],s=S[3]-d*S[2],u=S[4]-y*S[3],v=S[5]-h*S[4],f=S[6]-g*S[5]),w=r.offset,a=r.data,t=r.accessors[1],j=0;j<x;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<y;E++){for(b=0;b<d;b++){for(_=0;_<m;_++){for(A=0;A<p;A++)t(a,w,e()),w+=o;w+=i}w+=n}w+=s}w+=u}w+=v}w+=f}}hB.exports=vTr});var xB=c((_fe,bB)=>{"use strict";function fTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D;for(p=r.shape,A=r.strides,r.order==="row-major"?(m=p[7],d=p[6],y=p[5],h=p[4],g=p[3],x=p[2],S=p[1],w=p[0],o=A[7],i=A[6]-m*A[7],n=A[5]-d*A[6],s=A[4]-y*A[5],u=A[3]-h*A[4],v=A[2]-g*A[3],f=A[1]-x*A[2],l=A[0]-S*A[1]):(m=p[0],d=p[1],y=p[2],h=p[3],g=p[4],x=p[5],S=p[6],w=p[7],o=A[0],i=A[1]-m*A[0],n=A[2]-d*A[1],s=A[3]-y*A[2],u=A[4]-h*A[3],v=A[5]-g*A[4],f=A[6]-x*A[5],l=A[7]-S*A[6]),_=r.offset,a=r.data,t=r.accessors[1],D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<x;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<y;q++){for(E=0;E<d;E++){for(b=0;b<m;b++)t(a,_,e()),_+=o;_+=i}_+=n}_+=s}_+=u}_+=v}_+=f}_+=l}}bB.exports=fTr});var wB=c((Tfe,qB)=>{"use strict";function lTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F;for(m=r.shape,b=r.strides,r.order==="row-major"?(d=m[8],y=m[7],h=m[6],g=m[5],x=m[4],S=m[3],w=m[2],A=m[1],_=m[0],o=b[8],i=b[7]-d*b[8],n=b[6]-y*b[7],s=b[5]-h*b[6],u=b[4]-g*b[5],v=b[3]-x*b[4],f=b[2]-S*b[3],l=b[1]-w*b[2],p=b[0]-A*b[1]):(d=m[0],y=m[1],h=m[2],g=m[3],x=m[4],S=m[5],w=m[6],A=m[7],_=m[8],o=b[0],i=b[1]-d*b[0],n=b[2]-y*b[1],s=b[3]-h*b[2],u=b[4]-g*b[3],v=b[5]-x*b[4],f=b[6]-S*b[5],l=b[7]-w*b[6],p=b[8]-A*b[7]),E=r.offset,a=r.data,t=r.accessors[1],F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<x;I++){for(O=0;O<g;O++){for(j=0;j<h;j++){for(T=0;T<y;T++){for(q=0;q<d;q++)t(a,E,e()),E+=o;E+=i}E+=n}E+=s}E+=u}E+=v}E+=f}E+=l}E+=p}}qB.exports=lTr});var EB=c((jfe,SB)=>{"use strict";function cTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V;for(d=r.shape,q=r.strides,r.order==="row-major"?(y=d[9],h=d[8],g=d[7],x=d[6],S=d[5],w=d[4],A=d[3],_=d[2],b=d[1],E=d[0],o=q[9],i=q[8]-y*q[9],n=q[7]-h*q[8],s=q[6]-g*q[7],u=q[5]-x*q[6],v=q[4]-S*q[5],f=q[3]-w*q[4],l=q[2]-A*q[3],p=q[1]-_*q[2],m=q[0]-b*q[1]):(y=d[0],h=d[1],g=d[2],x=d[3],S=d[4],w=d[5],A=d[6],_=d[7],b=d[8],E=d[9],o=q[0],i=q[1]-y*q[0],n=q[2]-h*q[1],s=q[3]-g*q[2],u=q[4]-x*q[3],v=q[5]-S*q[4],f=q[6]-w*q[5],l=q[7]-A*q[6],p=q[8]-_*q[7],m=q[9]-b*q[8]),T=r.offset,a=r.data,t=r.accessors[1],V=0;V<E;V++){for(B=0;B<b;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<x;D++){for(I=0;I<g;I++){for(O=0;O<h;O++){for(j=0;j<y;j++)t(a,T,e()),T+=o;T+=i}T+=n}T+=s}T+=u}T+=v}T+=f}T+=l}T+=p}T+=m}}SB.exports=cTr});var _B=c((Ife,AB)=>{"use strict";var dTr=Jr(),pTr=na(),yTr="throw";function mTr(r,e){var a,t,o,i,n,s,u,v,f;for(n=r.shape,o=dTr(n),a=r.data,s=r.strides,u=r.offset,t=r.order,i=r.accessors[1],f=0;f<o;f++)v=pTr(n,s,u,t,f,yTr),i(a,v,e())}AB.exports=mTr});var jB=c((Ofe,TB)=>{"use strict";function hTr(r,e){r.data[r.offset]=e()}TB.exports=hTr});var OB=c((Nfe,IB)=>{"use strict";function gTr(r,e){var a,t,o,i,n;for(o=r.shape[0],t=r.strides[0],i=r.offset,a=r.data,n=0;n<o;n++)a[i]=e(),i+=t}IB.exports=gTr});var DB=c((Dfe,NB)=>{"use strict";function bTr(r,e){var a,t,o,i,n,s,u,v,f,l;for(i=r.shape,u=r.strides,r.order==="row-major"?(n=i[1],s=i[0],t=u[1],o=u[0]-n*u[1]):(n=i[0],s=i[1],t=u[0],o=u[1]-n*u[0]),v=r.offset,a=r.data,l=0;l<s;l++){for(f=0;f<n;f++)a[v]=e(),v+=t;v+=o}}NB.exports=bTr});var BB=c((kfe,kB)=>{"use strict";function xTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d;for(n=r.shape,f=r.strides,r.order==="row-major"?(s=n[2],u=n[1],v=n[0],t=f[2],o=f[1]-s*f[2],i=f[0]-u*f[1]):(s=n[0],u=n[1],v=n[2],t=f[0],o=f[1]-s*f[0],i=f[2]-u*f[1]),l=r.offset,a=r.data,d=0;d<v;d++){for(m=0;m<u;m++){for(p=0;p<s;p++)a[l]=e(),l+=t;l+=o}l+=i}}kB.exports=xTr});var RB=c((Bfe,FB)=>{"use strict";function qTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g;for(s=r.shape,p=r.strides,r.order==="row-major"?(u=s[3],v=s[2],f=s[1],l=s[0],t=p[3],o=p[2]-u*p[3],i=p[1]-v*p[2],n=p[0]-f*p[1]):(u=s[0],v=s[1],f=s[2],l=s[3],t=p[0],o=p[1]-u*p[0],i=p[2]-v*p[1],n=p[3]-f*p[2]),m=r.offset,a=r.data,g=0;g<l;g++){for(h=0;h<f;h++){for(y=0;y<v;y++){for(d=0;d<u;d++)a[m]=e(),m+=t;m+=o}m+=i}m+=n}}FB.exports=qTr});var zB=c((Ffe,VB)=>{"use strict";function wTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w;for(u=r.shape,d=r.strides,r.order==="row-major"?(v=u[4],f=u[3],l=u[2],p=u[1],m=u[0],t=d[4],o=d[3]-v*d[4],i=d[2]-f*d[3],n=d[1]-l*d[2],s=d[0]-p*d[1]):(v=u[0],f=u[1],l=u[2],p=u[3],m=u[4],t=d[0],o=d[1]-v*d[0],i=d[2]-f*d[1],n=d[3]-l*d[2],s=d[4]-p*d[3]),y=r.offset,a=r.data,w=0;w<m;w++){for(S=0;S<p;S++){for(x=0;x<l;x++){for(g=0;g<f;g++){for(h=0;h<v;h++)a[y]=e(),y+=t;y+=o}y+=i}y+=n}y+=s}}VB.exports=wTr});var LB=c((Rfe,CB)=>{"use strict";function STr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b;for(v=r.shape,h=r.strides,r.order==="row-major"?(f=v[5],l=v[4],p=v[3],m=v[2],d=v[1],y=v[0],t=h[5],o=h[4]-f*h[5],i=h[3]-l*h[4],n=h[2]-p*h[3],s=h[1]-m*h[2],u=h[0]-d*h[1]):(f=v[0],l=v[1],p=v[2],m=v[3],d=v[4],y=v[5],t=h[0],o=h[1]-f*h[0],i=h[2]-l*h[1],n=h[3]-p*h[2],s=h[4]-m*h[3],u=h[5]-d*h[4]),g=r.offset,a=r.data,b=0;b<y;b++){for(_=0;_<d;_++){for(A=0;A<m;A++){for(w=0;w<p;w++){for(S=0;S<l;S++){for(x=0;x<f;x++)a[g]=e(),g+=t;g+=o}g+=i}g+=n}g+=s}g+=u}}CB.exports=STr});var UB=c((Vfe,PB)=>{"use strict";function ETr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T;for(f=r.shape,x=r.strides,r.order==="row-major"?(l=f[6],p=f[5],m=f[4],d=f[3],y=f[2],h=f[1],g=f[0],t=x[6],o=x[5]-l*x[6],i=x[4]-p*x[5],n=x[3]-m*x[4],s=x[2]-d*x[3],u=x[1]-y*x[2],v=x[0]-h*x[1]):(l=f[0],p=f[1],m=f[2],d=f[3],y=f[4],h=f[5],g=f[6],t=x[0],o=x[1]-l*x[0],i=x[2]-p*x[1],n=x[3]-m*x[2],s=x[4]-d*x[3],u=x[5]-y*x[4],v=x[6]-h*x[5]),S=r.offset,a=r.data,T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<y;E++){for(b=0;b<d;b++){for(_=0;_<m;_++){for(A=0;A<p;A++){for(w=0;w<l;w++)a[S]=e(),S+=t;S+=o}S+=i}S+=n}S+=s}S+=u}S+=v}}PB.exports=ETr});var GB=c((zfe,MB)=>{"use strict";function ATr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I;for(l=r.shape,w=r.strides,r.order==="row-major"?(p=l[7],m=l[6],d=l[5],y=l[4],h=l[3],g=l[2],x=l[1],S=l[0],t=w[7],o=w[6]-p*w[7],i=w[5]-m*w[6],n=w[4]-d*w[5],s=w[3]-y*w[4],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-x*w[1]):(p=l[0],m=l[1],d=l[2],y=l[3],h=l[4],g=l[5],x=l[6],S=l[7],t=w[0],o=w[1]-p*w[0],i=w[2]-m*w[1],n=w[3]-d*w[2],s=w[4]-y*w[3],u=w[5]-h*w[4],v=w[6]-g*w[5],f=w[7]-x*w[6]),A=r.offset,a=r.data,I=0;I<S;I++){for(O=0;O<x;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<y;q++){for(E=0;E<d;E++){for(b=0;b<m;b++){for(_=0;_<p;_++)a[A]=e(),A+=t;A+=o}A+=i}A+=n}A+=s}A+=u}A+=v}A+=f}}MB.exports=ATr});var $B=c((Cfe,YB)=>{"use strict";function _Tr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N;for(p=r.shape,_=r.strides,r.order==="row-major"?(m=p[8],d=p[7],y=p[6],h=p[5],g=p[4],x=p[3],S=p[2],w=p[1],A=p[0],t=_[8],o=_[7]-m*_[8],i=_[6]-d*_[7],n=_[5]-y*_[6],s=_[4]-h*_[5],u=_[3]-g*_[4],v=_[2]-x*_[3],f=_[1]-S*_[2],l=_[0]-w*_[1]):(m=p[0],d=p[1],y=p[2],h=p[3],g=p[4],x=p[5],S=p[6],w=p[7],A=p[8],t=_[0],o=_[1]-m*_[0],i=_[2]-d*_[1],n=_[3]-y*_[2],s=_[4]-h*_[3],u=_[5]-g*_[4],v=_[6]-x*_[5],f=_[7]-S*_[6],l=_[8]-w*_[7]),b=r.offset,a=r.data,N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<x;I++){for(O=0;O<g;O++){for(j=0;j<h;j++){for(T=0;T<y;T++){for(q=0;q<d;q++){for(E=0;E<m;E++)a[b]=e(),b+=t;b+=o}b+=i}b+=n}b+=s}b+=u}b+=v}b+=f}b+=l}}YB.exports=_Tr});var JB=c((Lfe,WB)=>{"use strict";function TTr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B;for(m=r.shape,E=r.strides,r.order==="row-major"?(d=m[9],y=m[8],h=m[7],g=m[6],x=m[5],S=m[4],w=m[3],A=m[2],_=m[1],b=m[0],t=E[9],o=E[8]-d*E[9],i=E[7]-y*E[8],n=E[6]-h*E[7],s=E[5]-g*E[6],u=E[4]-x*E[5],v=E[3]-S*E[4],f=E[2]-w*E[3],l=E[1]-A*E[2],p=E[0]-_*E[1]):(d=m[0],y=m[1],h=m[2],g=m[3],x=m[4],S=m[5],w=m[6],A=m[7],_=m[8],b=m[9],t=E[0],o=E[1]-d*E[0],i=E[2]-y*E[1],n=E[3]-h*E[2],s=E[4]-g*E[3],u=E[5]-x*E[4],v=E[6]-S*E[5],f=E[7]-w*E[6],l=E[8]-A*E[7],p=E[9]-_*E[8]),q=r.offset,a=r.data,B=0;B<b;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<x;D++){for(I=0;I<g;I++){for(O=0;O<h;O++){for(j=0;j<y;j++){for(T=0;T<d;T++)a[q]=e(),q+=t;q+=o}q+=i}q+=n}q+=s}q+=u}q+=v}q+=f}q+=l}q+=p}}WB.exports=TTr});var KB=c((Pfe,XB)=>{"use strict";var jTr=Jr(),ITr=na(),OTr="throw";function NTr(r,e){var a,t,o,i,n,s,u,v;for(i=r.shape,o=jTr(i),a=r.data,n=r.strides,s=r.offset,t=r.order,v=0;v<o;v++)u=ITr(i,n,s,t,v,OTr),a[u]=e()}XB.exports=NTr});var QB=c((Ufe,ZB)=>{"use strict";var DTr=Sa(),kTr=et(),BTr=ri(),FTr=wk(),RTr=Ek(),VTr=_k(),zTr=jk(),CTr=Ok(),LTr=Dk(),PTr=Bk(),UTr=Rk(),MTr=zk(),GTr=Lk(),YTr=Uk(),$Tr=Gk(),WTr=$k(),JTr=Jk(),XTr=Kk(),KTr=Zk(),HTr=rB(),ZTr=aB(),QTr=iB(),rjr=nB(),ejr=uB(),ajr=fB(),tjr=cB(),ijr=pB(),ojr=mB(),njr=gB(),sjr=xB(),ujr=wB(),vjr=EB(),fjr=_B(),ljr=jB(),cjr=OB(),djr=DB(),pjr=BB(),yjr=RB(),mjr=zB(),hjr=LB(),gjr=UB(),bjr=GB(),xjr=$B(),qjr=JB(),wjr=KB(),_i=[ljr,cjr,djr,pjr,yjr,mjr,hjr,gjr,bjr,xjr,qjr],Io=[QTr,rjr,ejr,ajr,tjr,ijr,ojr,njr,sjr,ujr,vjr],Sjr=[GTr,YTr,$Tr,WTr,JTr,XTr,KTr,HTr,ZTr],Ejr=[FTr,RTr,VTr,zTr,CTr,LTr,PTr,UTr,MTr],HB=_i.length-1;function Ajr(r,e){var a,t,o,i,n,s,u,v,f,l,p;if(f=BTr(r[0]),o=f.shape,a=o.length,a===0)return f.accessorProtocol?Io[a](f,e):_i[a](f,e);for(n=1,v=0,p=0;p<a;p++)l=o[p],n*=l,l===1&&(v+=1);if(n!==0){if(a===1)return f.accessorProtocol?Io[a](f,e):_i[a](f,e);if(s=f.strides,v===a-1){for(p=0;p<a&&o[p]===1;p++);return f.shape=[o[p]],f.strides=[s[p]],f.accessorProtocol?Io[1](f,e):_i[1](f,e)}if(i=DTr(s),i!==0){if(t=kTr(o,s,f.offset),n===t[1]-t[0]+1)return i===1?u=t[0]:u=t[1],f.shape=[n],f.strides=[i],f.offset=u,f.accessorProtocol?Io[1](f,e):_i[1](f,e);if(a<=HB)return f.accessorProtocol?Io[a](f,e):_i[a](f,e)}if(a<=HB)return f.accessorProtocol?Ejr[a-2](f,e):Sjr[a-2](f,e);if(f.accessorProtocol)return fjr(f,e);wjr(f,e)}}ZB.exports=Ajr});var eF=c((Mfe,rF)=>{"use strict";var _jr=QB();rF.exports=_jr});var iF=c((Gfe,tF)=>{"use strict";var Tjr=ya(),jjr=za(),Ijr=Te(),aF=pr();function Ojr(r,e){var a,t;if(a=jjr(r),a===0)throw new TypeError(aF("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",a));if(t=Tjr(e,a-1),t===-1)throw new RangeError(aF("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",a,e));return Ijr(r,!1)[t]}tF.exports=Ojr});var Yf=c((Yfe,oF)=>{"use strict";var Njr=iF();oF.exports=Njr});var nF=c(($fe,Djr)=>{Djr.exports=["same","promoted","bool","signed_integer","unsigned_integer","integer","floating_point","real_floating_point","complex_floating_point","real","numeric","default"]});var uF=c((Wfe,sF)=>{"use strict";var kjr=nF();function Bjr(){return kjr.slice()}sF.exports=Bjr});var fF=c((Jfe,vF)=>{"use strict";function Fjr(){return{same:0,promoted:1,bool:2,signed_integer:3,unsigned_integer:4,integer:5,floating_point:6,real_floating_point:7,complex_floating_point:8,real:9,numeric:10,default:11}}vF.exports=Fjr});var cF=c((Xfe,lF)=>{"use strict";var Rjr=Rt(),Vjr=Ea();function zjr(r,e){var a,t,o;for(a=Vjr(e),o=0;o<a.length;o++)t=a[o],Rjr(r,t,e[t]);return r}lF.exports=zjr});var es=c((Kfe,pF)=>{"use strict";var Cjr=Ir(),$f=uF(),dF=fF(),Ljr=cF();Cjr($f,"enum",dF);Ljr($f,dF());pF.exports=$f});var mF=c((Hfe,yF)=>{"use strict";var Pjr=wn(),Ujr=es().enum,Mjr=Pjr(Ujr(),{duplicates:!1});function Gjr(r){var e=Mjr[r];return typeof e=="string"?e:null}yF.exports=Gjr});var as=c((Zfe,hF)=>{"use strict";var Yjr=mF();hF.exports=Yjr});var bF=c((Qfe,gF)=>{"use strict";var $jr=es().enum,Wjr=$jr();function Jjr(r){var e=Wjr[r];return typeof e=="number"?e:null}gF.exports=Jjr});var ts=c((rle,xF)=>{"use strict";var Xjr=bF();xF.exports=Xjr});var wF=c((ele,qF)=>{"use strict";var Kjr=as(),Hjr=ts();function Zjr(r){var e=typeof r;return e==="number"?Kjr(r)?r:null:e==="string"?Hjr(r):null}qF.exports=Zjr});var EF=c((ale,SF)=>{"use strict";var Qjr=wF();SF.exports=Qjr});var _F=c((tle,AF)=>{"use strict";var rIr=as(),eIr=ts();function aIr(r){var e=typeof r;return e==="string"?eIr(r)===null?null:r:e==="number"?rIr(r):null}AF.exports=aIr});var jF=c((ile,TF)=>{"use strict";var tIr=_F();TF.exports=tIr});var BF=c((ole,kF)=>{"use strict";var iIr=Ue(),IF=Xe(),oIr=Te(),nIr=ba(),OF=Ka(),NF=sa(),DF=ft();function sIr(r,e){var a,t,o,i,n,s;for(o=oIr(r,!1),i=nIr(r,!1),n=o.length,a=[],t=[],s=0;s<e;s++)t.push(1),a.push(i[0]);for(s=0;s<n;s++)t.push(o[s]),a.push(i[s]);return iIr(r)?new r.constructor(IF(r),DF(r),t,a,OF(r),NF(r),{readonly:!0}):new r.constructor(IF(r),DF(r),t,a,OF(r),NF(r))}kF.exports=sIr});var RF=c((nle,FF)=>{"use strict";var uIr=BF();FF.exports=uIr});var UF=c((sle,PF)=>{"use strict";var vIr=Ue(),VF=Xe(),fIr=Te(),lIr=ba(),zF=Ka(),CF=sa(),LF=ft();function cIr(r){var e,a,t,o,i,n;for(t=fIr(r,!1),o=lIr(r,!1),i=t.length,e=[],a=[],n=0;n<i;n++)t[n]!==1&&(a.push(t[n]),e.push(o[n]));return a.length===i?r:vIr(r)?new r.constructor(VF(r),LF(r),a,e,zF(r),CF(r),{readonly:!0}):new r.constructor(VF(r),LF(r),a,e,zF(r),CF(r))}PF.exports=cIr});var GF=c((ule,MF)=>{"use strict";var dIr=UF();MF.exports=dIr});var $F=c((vle,YF)=>{"use strict";var pIr=he(),yIr=Le(),mIr=bo(),hIr=ye(),gIr=za();function bIr(r,e){var a=mIr(new yIr(null,null,-1),gIr(r));return hIr(r,pIr(a),!0,e)}YF.exports=bIr});var JF=c((fle,WF)=>{"use strict";var xIr=$F();WF.exports=xIr});var HF=c((lle,KF)=>{"use strict";var jt=Mt(),qIr=li(),wIr=Gt(),Oo=Du(),SIr=bt(),EIr=ke().enum,AIr=Yt().enum,_Ir=$t().enum,TIr=Xe(),jIr=Te(),IIr=ba(),OIr=Ka(),NIr=sa(),DIr=EIr(),kIr=AIr(),XF=_Ir();function BIr(r){var e,a,t,o,i,n,s,u,v,f,l,p,m,d;if(r.__array_meta_dataview__)return r.__array_meta_dataview__();for(o=TIr(r),i=jIr(r,!1),n=IIr(r,!1),p=i.length,v=r.mode||"throw",s=r.submode||[v],m=s.length,e=SIr(o),t=33+p*16+m,u=new wIr(new qIr(t)),f=0,u.setInt8(f,jt?1:0),f+=1,u.setInt16(f,DIr[o],jt),f+=2,u.setBigInt64(f,Oo(p),jt),l=p*8,f+=8,d=0;d<p;d++)u.setBigInt64(f,Oo(i[d]),jt),u.setBigInt64(f+l,Oo(n[d]*e),jt),f+=8;for(f+=l,u.setBigInt64(f,Oo(OIr(r)*e),jt),f+=8,u.setInt8(f,kIr[NIr(r)]),f+=1,u.setInt8(f,XF[v]),f+=1,u.setBigInt64(f,Oo(m),jt),f+=8,d=0;d<m;d++)u.setInt8(f,XF[s[d]]),f+=1;return a=0,r.flags&&(a|=r.flags.READONLY?4:0),u.setInt32(f,a,jt),u}KF.exports=BIr});var rR=c((cle,QF)=>{"use strict";var Wf=Mt(),No=$u().assign,FIr=li(),RIr=va(),VIr=Gt(),zIr=bt(),CIr=ke().enum,LIr=Yt().enum,PIr=$t().enum,UIr=Xe(),MIr=Te(),GIr=ba(),YIr=Ka(),$Ir=sa(),WIr=CIr(),JIr=LIr(),ZF=PIr();function XIr(r){var e,a,t,o,i,n,s,u,v,f,l,p,m,d,y;if(r.__array_meta_dataview__)return r.__array_meta_dataview__();for(i=UIr(r),n=MIr(r,!1),s=GIr(r,!1),m=n.length,f=r.mode||"throw",u=r.submode||[f],d=u.length,e=zIr(i),o=33+m*16+d,v=new VIr(new FIr(o)),a=new RIr(v.buffer),l=0,v.setInt8(l,Wf?1:0),l+=1,v.setInt16(l,WIr[i],Wf),l+=2,No(m,a,1,l),p=m*8,l+=8,y=0;y<m;y++)No(n[y],a,1,l),No(s[y]*e,a,1,l+p),l+=8;for(l+=p,No(YIr(r)*e,a,1,l),l+=8,v.setInt8(l,JIr[$Ir(r)]),l+=1,v.setInt8(l,ZF[f]),l+=1,No(d,a,1,l),l+=8,y=0;y<d;y++)v.setInt8(l,ZF[u[y]]),l+=1;return t=0,r.flags&&(t|=r.flags.READONLY?4:0),v.setInt32(l,t,Wf),v}QF.exports=XIr});var aR=c((dle,eR)=>{"use strict";var KIr=yu(),HIr=HF(),ZIr=rR(),Jf;KIr()?Jf=HIr:Jf=ZIr;eR.exports=Jf});var iR=c((ple,tR)=>{"use strict";function QIr(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]===1&&(e+=1);return e}tR.exports=QIr});var nR=c((yle,oR)=>{"use strict";var rOr=iR();oR.exports=rOr});var vR=c((mle,uR)=>{"use strict";var eOr=In(),aOr=_o(),tOr=bf(),iOr=ye(),sR=Xe(),oOr=Te(),nOr=pr();function sOr(r,e,a,t){var o,i,n;if(i=sR(r),n=sR(e),!eOr(i,n))throw new TypeError(nOr("invalid argument. Input array values cannot be safely cast to the output array data type. Data types: [%s, %s].",i,n));return o=iOr(e,a,t,!0),r=aOr(r,oOr(o,!0)),tOr([r,o]),e}uR.exports=sOr});var is=c((hle,fR)=>{"use strict";var uOr=vR();fR.exports=uOr});var dR=c((gle,cR)=>{"use strict";var vOr=he(),fOr=za(),lOr=ye(),cOr=ya(),dOr=Ei(),lR=pr();function pOr(r,e,a,t,o){var i,n,s;if(n=fOr(r),n===0)throw new TypeError(lR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=cOr(e,n-1),s===-1)throw new RangeError(lR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=dOr(n),i[s]=a,lOr(r,vOr(i),t,o)}cR.exports=pOr});var Xf=c((ble,pR)=>{"use strict";var yOr=dR();pR.exports=yOr});var hR=c((xle,mR)=>{"use strict";var mOr=he(),hOr=Le(),gOr=za(),bOr=ye(),xOr=ya(),qOr=Ei(),yR=pr();function wOr(r,e,a,t,o){var i,n,s;if(n=gOr(r),n===0)throw new TypeError(yR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=xOr(e,n-1),s===-1)throw new RangeError(yR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=qOr(n),i[s]=new hOr(a,null),bOr(r,mOr(i),t,o)}mR.exports=wOr});var Kf=c((qle,gR)=>{"use strict";var SOr=hR();gR.exports=SOr});var qR=c((wle,xR)=>{"use strict";var EOr=he(),AOr=Le(),_Or=za(),TOr=ye(),jOr=ya(),IOr=Ei(),bR=pr();function OOr(r,e,a,t,o){var i,n,s;if(n=_Or(r),n===0)throw new TypeError(bR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=jOr(e,n-1),s===-1)throw new RangeError(bR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=IOr(n),i[s]=new AOr(a),TOr(r,EOr(i),t,o)}xR.exports=OOr});var Hf=c((Sle,wR)=>{"use strict";var NOr=qR();wR.exports=NOr});var AR=c((Ele,ER)=>{"use strict";var DOr=Ge().isPrimitive,kOr=he(),SR=Le(),BOr=Te(),FOr=ye();function ROr(r,e,a,t){var o,i,n,s;for(i=BOr(r),o=[],s=0;s<e.length;s++)n=e[s],DOr(n)&&n!==0?n===i[s]?(n-=1,o.push(new SR(n,n))):o.push(new SR(n,null)):o.push(null);return FOr(r,kOr(o),a,t)}ER.exports=ROr});var Zf=c((Ale,_R)=>{"use strict";var VOr=AR();_R.exports=VOr});var jR=c((_le,TR)=>{"use strict";var zOr=Ge().isPrimitive,COr=he(),LOr=Le(),POr=ye();function UOr(r,e,a,t){var o,i;for(o=[],i=0;i<e.length;i++)zOr(e[i])?o.push(new LOr(e[i])):o.push(null);return POr(r,COr(o),a,t)}TR.exports=UOr});var Qf=c((Tle,IR)=>{"use strict";var MOr=jR();IR.exports=MOr});var DR=c((jle,NR)=>{"use strict";var GOr=ya(),YOr=za(),$Or=ba(),OR=pr();function WOr(r,e){var a,t;if(a=YOr(r),a===0)throw new TypeError(OR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",a));if(t=GOr(e,a-1),t===-1)throw new RangeError(OR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",a,e));return $Or(r,!1)[t]}NR.exports=WOr});var rl=c((Ile,kR)=>{"use strict";var JOr=DR();kR.exports=JOr});var FR=c((Ole,BR)=>{"use strict";var XOr=pr();function KOr(){var r,e,a,t,o,i,n,s,u,v,f,l;for(t=arguments[0],r=arguments[1],e=arguments[2],o=t.length,i=arguments[3+o],a=i.length,s=e,l=0;l<o;l++){if(u=t[l],f=arguments[l+3],n=i[l%a],n==="clamp")f<0?f=0:f>=u&&(f=u-1);else if(n==="wrap")f<0?(f+=u,f<0&&(f%=u,f!==0&&(f+=u))):f>=u&&(f-=u,f>=u&&(f%=u));else if(n==="normalize"&&f<0&&(f+=u),f<0||f>=u)throw new RangeError(XOr("invalid argument. Subscripts must not exceed array dimensions. Subscript: `%u`. Value: `%d`.",l,f));v=r[l],v<0&&e===0?s-=f*v:s+=f*v}return s}BR.exports=KOr});var el=c((Nle,RR)=>{"use strict";var HOr=FR();RR.exports=HOr});var CR=c((Dle,zR)=>{"use strict";function VR(r,e,a,t,o,i){var n,s,u,v,f;if(i>=e.length)return r.accessors[0](r.data,t);for(u=[],v=e[i],n=a[i],f=0;f<v;f++)s=VR(r,e,a,t,o,i+1),u.push(s),t+=n;return u}zR.exports=VR});var PR=c((kle,LR)=>{"use strict";var ZOr=vt(),QOr=CR();function r7r(r,e,a,t,o){var i;if(e.length===0)return[];for(i=0;i<e.length;i++)if(e[i]===0)return[];return QOr(ZOr(r),e,a,t,o,0)}LR.exports=r7r});var al=c((Ble,UR)=>{"use strict";var e7r=PR();UR.exports=e7r});var GR=c((Fle,MR)=>{"use strict";var a7r=Ye(),t7r=Xe(),i7r=Te(),o7r=ba(),n7r=sa(),s7r=ft();function u7r(r){var e,a,t,o;if(a=i7r(r,!0),o=a.length,o<2)throw new Error("invalid argument. Must provide an ndarray having two or more dimensions.");return t=o7r(r,!0),e=a[o-2],a[o-2]=a[o-1],a[o-1]=e,e=t[o-2],t[o-2]=t[o-1],t[o-1]=e,new r.constructor(t7r(r),s7r(r),a,t,a7r(a,t),n7r(r))}MR.exports=u7r});var $R=c((Rle,YR)=>{"use strict";var v7r=GR();YR.exports=v7r});var JR=c((Vle,WR)=>{"use strict";var f7r=Fr(),l7r=Br();function c7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j;for(j=f7r(r.shape,r.strides,e.strides),d=j.sh,g=j.sx,x=j.sy,t=l7r(r.dtype,e.dtype),S=r.offset,w=e.offset,o=r.data,i=e.data,u=g[0],f=x[0],n=r.accessors[0],s=e.accessors[1],T=d[1];T>0;)for(T<t?(h=T,T=0):(h=t,T-=t),p=S+T*g[1],m=w+T*x[1],q=d[0];q>0;)for(q<t?(y=q,q=0):(y=t,q-=t),A=p+q*g[0],_=m+q*x[0],v=g[1]-y*g[0],l=x[1]-y*x[0],E=0;E<h;E++){for(b=0;b<y;b++)s(i,_,a(n(o,A))),A+=u,_+=f;A+=v,_+=l}}WR.exports=c7r});var KR=c((zle,XR)=>{"use strict";var d7r=Fr(),p7r=Br();function y7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R;for(R=d7r(r.shape,r.strides,e.strides),x=R.sh,_=R.sx,b=R.sy,t=p7r(r.dtype,e.dtype),E=r.offset,q=e.offset,o=r.data,i=e.data,u=_[0],l=b[0],n=r.accessors[0],s=e.accessors[1],F=x[2];F>0;)for(F<t?(A=F,F=0):(A=t,F-=t),y=E+F*_[2],g=q+F*b[2],N=x[1];N>0;)for(N<t?(w=N,N=0):(w=t,N-=t),f=_[2]-w*_[1],m=b[2]-w*b[1],d=y+N*_[1],h=g+N*b[1],k=x[0];k>0;)for(k<t?(S=k,k=0):(S=t,k-=t),T=d+k*_[0],j=h+k*b[0],v=_[1]-S*_[0],p=b[1]-S*b[0],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++)s(i,j,a(n(o,T))),T+=u,j+=l;T+=v,j+=p}T+=f,j+=m}}XR.exports=y7r});var ZR=c((Cle,HR)=>{"use strict";var m7r=Fr(),h7r=Br();function g7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U;for(U=m7r(r.shape,r.strides,e.strides),_=U.sh,j=U.sx,O=U.sy,t=h7r(r.dtype,e.dtype),I=r.offset,D=e.offset,o=r.data,i=e.data,u=j[0],p=O[0],n=r.accessors[0],s=e.accessors[1],P=_[3];P>0;)for(P<t?(T=P,P=0):(T=t,P-=t),x=I+P*j[3],A=D+P*O[3],L=_[2];L>0;)for(L<t?(q=L,L=0):(q=t,L-=t),l=j[3]-q*j[2],y=O[3]-q*O[2],g=x+L*j[2],w=A+L*O[2],C=_[1];C>0;)for(C<t?(E=C,C=0):(E=t,C-=t),f=j[2]-E*j[1],d=O[2]-E*O[1],h=g+C*j[1],S=w+C*O[1],z=_[0];z>0;)for(z<t?(b=z,z=0):(b=t,z-=t),k=h+z*j[0],N=S+z*O[0],v=j[1]-b*j[0],m=O[1]-b*O[0],V=0;V<T;V++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<b;F++)s(i,N,a(n(o,k))),k+=u,N+=p;k+=v,N+=m}k+=f,N+=d}k+=l,N+=y}}HR.exports=g7r});var rV=c((Lle,QR)=>{"use strict";var b7r=Fr(),x7r=Br();function q7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X;for(X=b7r(r.shape,r.strides,e.strides),T=X.sh,N=X.sx,F=X.sy,t=x7r(r.dtype,e.dtype),R=r.offset,B=e.offset,o=r.data,i=e.data,u=N[0],m=F[0],n=r.accessors[0],s=e.accessors[1],J=T[4];J>0;)for(J<t?(k=J,J=0):(k=t,J-=t),A=R+J*N[4],q=B+J*F[4],W=T[3];W>0;)for(W<t?(D=W,W=0):(D=t,W-=t),p=N[4]-D*N[3],g=F[4]-D*F[3],w=A+W*N[3],E=q+W*F[3],Y=T[2];Y>0;)for(Y<t?(I=Y,Y=0):(I=t,Y-=t),l=N[3]-I*N[2],h=F[3]-I*F[2],S=w+Y*N[2],b=E+Y*F[2],$=T[1];$>0;)for($<t?(O=$,$=0):(O=t,$-=t),f=N[2]-O*N[1],y=F[2]-O*F[1],x=S+$*N[1],_=b+$*F[1],G=T[0];G>0;)for(G<t?(j=G,G=0):(j=t,G-=t),V=x+G*N[0],z=_+G*F[0],v=N[1]-j*N[0],d=F[1]-j*F[0],M=0;M<k;M++){for(U=0;U<D;U++){for(P=0;P<I;P++){for(L=0;L<O;L++){for(C=0;C<j;C++)s(i,z,a(n(o,V))),V+=u,z+=m;V+=v,z+=d}V+=f,z+=y}V+=l,z+=h}V+=p,z+=g}}QR.exports=q7r});var aV=c((Ple,eV)=>{"use strict";var w7r=Fr(),S7r=Br();function E7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er;for(er=w7r(r.shape,r.strides,e.strides),D=er.sh,z=er.sx,C=er.sy,t=S7r(r.dtype,e.dtype),L=r.offset,P=e.offset,o=r.data,i=e.data,u=z[0],d=C[0],n=r.accessors[0],s=e.accessors[1],ar=D[5];ar>0;)for(ar<t?(V=ar,ar=0):(V=t,ar-=t),E=L+ar*z[5],I=P+ar*C[5],rr=D[4];rr>0;)for(rr<t?(B=rr,rr=0):(B=t,rr-=t),m=z[5]-B*z[4],S=C[5]-B*C[4],b=E+rr*z[4],O=I+rr*C[4],Z=D[3];Z>0;)for(Z<t?(R=Z,Z=0):(R=t,Z-=t),p=z[4]-R*z[3],x=C[4]-R*C[3],_=b+Z*z[3],j=O+Z*C[3],Q=D[2];Q>0;)for(Q<t?(F=Q,Q=0):(F=t,Q-=t),l=z[3]-F*z[2],g=C[3]-F*C[2],A=_+Q*z[2],T=j+Q*C[2],H=D[1];H>0;)for(H<t?(N=H,H=0):(N=t,H-=t),f=z[2]-N*z[1],h=C[2]-N*C[1],w=A+H*z[1],q=T+H*C[1],K=D[0];K>0;)for(K<t?(k=K,K=0):(k=t,K-=t),U=w+K*z[0],M=q+K*C[0],v=z[1]-k*z[0],y=C[1]-k*C[0],X=0;X<V;X++){for(J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++)s(i,M,a(n(o,U))),U+=u,M+=d;U+=v,M+=y}U+=f,M+=h}U+=l,M+=g}U+=p,M+=x}U+=m,M+=S}}eV.exports=E7r});var iV=c((Ule,tV)=>{"use strict";var A7r=Fr(),_7r=Br();function T7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr;for(vr=A7r(r.shape,r.strides,e.strides),R=vr.sh,M=vr.sx,G=vr.sy,t=_7r(r.dtype,e.dtype),$=r.offset,Y=e.offset,o=r.data,i=e.data,u=M[0],y=G[0],n=r.accessors[0],s=e.accessors[1],ur=R[6];ur>0;)for(ur<t?(U=ur,ur=0):(U=t,ur-=t),j=$+ur*M[6],F=Y+ur*G[6],sr=R[5];sr>0;)for(sr<t?(P=sr,sr=0):(P=t,sr-=t),d=M[6]-P*M[5],A=G[6]-P*G[5],T=j+sr*M[5],N=F+sr*G[5],nr=R[4];nr>0;)for(nr<t?(L=nr,nr=0):(L=t,nr-=t),m=M[5]-L*M[4],w=G[5]-L*G[4],q=T+nr*M[4],k=N+nr*G[4],or=R[3];or>0;)for(or<t?(C=or,or=0):(C=t,or-=t),p=M[4]-C*M[3],S=G[4]-C*G[3],E=q+or*M[3],D=k+or*G[3],tr=R[2];tr>0;)for(tr<t?(z=tr,tr=0):(z=t,tr-=t),l=M[3]-z*M[2],x=G[3]-z*G[2],b=E+tr*M[2],I=D+tr*G[2],ir=R[1];ir>0;)for(ir<t?(V=ir,ir=0):(V=t,ir-=t),f=M[2]-V*M[1],g=G[2]-V*G[1],_=b+ir*M[1],O=I+ir*G[1],er=R[0];er>0;)for(er<t?(B=er,er=0):(B=t,er-=t),W=_+er*M[0],J=O+er*G[0],v=M[1]-B*M[0],h=G[1]-B*G[0],ar=0;ar<U;ar++){for(rr=0;rr<P;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<C;Q++){for(H=0;H<z;H++){for(K=0;K<V;K++){for(X=0;X<B;X++)s(i,J,a(n(o,W))),W+=u,J+=y;W+=v,J+=h}W+=f,J+=g}W+=l,J+=x}W+=p,J+=S}W+=m,J+=w}W+=d,J+=A}}tV.exports=T7r});var nV=c((Mle,oV)=>{"use strict";var j7r=Fr(),I7r=Br();function O7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br;for(br=j7r(r.shape,r.strides,e.strides),C=br.sh,J=br.sx,X=br.sy,t=I7r(r.dtype,e.dtype),K=r.offset,H=e.offset,o=r.data,i=e.data,u=J[0],h=X[0],n=r.accessors[0],s=e.accessors[1],hr=C[7];hr>0;)for(hr<t?(W=hr,hr=0):(W=t,hr-=t),D=K+hr*J[7],z=H+hr*X[7],mr=C[6];mr>0;)for(mr<t?(Y=mr,mr=0):(Y=t,mr-=t),y=J[7]-Y*J[6],b=X[7]-Y*X[6],I=D+mr*J[6],V=z+mr*X[6],dr=C[5];dr>0;)for(dr<t?($=dr,dr=0):($=t,dr-=t),d=J[6]-$*J[5],_=X[6]-$*X[5],O=I+dr*J[5],B=V+dr*X[5],yr=C[4];yr>0;)for(yr<t?(G=yr,yr=0):(G=t,yr-=t),m=J[5]-G*J[4],A=X[5]-G*X[4],j=O+yr*J[4],R=B+yr*X[4],fr=C[3];fr>0;)for(fr<t?(M=fr,fr=0):(M=t,fr-=t),p=J[4]-M*J[3],w=X[4]-M*X[3],T=j+fr*J[3],F=R+fr*X[3],lr=C[2];lr>0;)for(lr<t?(U=lr,lr=0):(U=t,lr-=t),l=J[3]-U*J[2],S=X[3]-U*X[2],q=T+lr*J[2],N=F+lr*X[2],vr=C[1];vr>0;)for(vr<t?(P=vr,vr=0):(P=t,vr-=t),f=J[2]-P*J[1],x=X[2]-P*X[1],E=q+vr*J[1],k=N+vr*X[1],ur=C[0];ur>0;)for(ur<t?(L=ur,ur=0):(L=t,ur-=t),Q=E+ur*J[0],Z=k+ur*X[0],v=J[1]-L*J[0],g=X[1]-L*X[0],sr=0;sr<W;sr++){for(nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<L;rr++)s(i,Z,a(n(o,Q))),Q+=u,Z+=h;Q+=v,Z+=g}Q+=f,Z+=x}Q+=l,Z+=S}Q+=p,Z+=w}Q+=m,Z+=A}Q+=d,Z+=_}Q+=y,Z+=b}}oV.exports=O7r});var uV=c((Gle,sV)=>{"use strict";var N7r=Fr(),D7r=Br();function k7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr;for(Tr=N7r(r.shape,r.strides,e.strides),M=Tr.sh,Z=Tr.sx,rr=Tr.sy,t=D7r(r.dtype,e.dtype),ar=r.offset,er=e.offset,o=r.data,i=e.data,u=Z[0],g=rr[0],n=r.accessors[0],s=e.accessors[1],_r=M[8];_r>0;)for(_r<t?(Q=_r,_r=0):(Q=t,_r-=t),F=ar+_r*Z[8],U=er+_r*rr[8],Ar=M[7];Ar>0;)for(Ar<t?(H=Ar,Ar=0):(H=t,Ar-=t),h=Z[8]-H*Z[7],q=rr[8]-H*rr[7],N=F+Ar*Z[7],P=U+Ar*rr[7],gr=M[6];gr>0;)for(gr<t?(K=gr,gr=0):(K=t,gr-=t),y=Z[7]-K*Z[6],E=rr[7]-K*rr[6],k=N+gr*Z[6],L=P+gr*rr[6],qr=M[5];qr>0;)for(qr<t?(X=qr,qr=0):(X=t,qr-=t),d=Z[6]-X*Z[5],b=rr[6]-X*rr[5],D=k+qr*Z[5],C=L+qr*rr[5],xr=M[4];xr>0;)for(xr<t?(J=xr,xr=0):(J=t,xr-=t),m=Z[5]-J*Z[4],_=rr[5]-J*rr[4],I=D+xr*Z[4],z=C+xr*rr[4],wr=M[3];wr>0;)for(wr<t?(W=wr,wr=0):(W=t,wr-=t),p=Z[4]-W*Z[3],A=rr[4]-W*rr[3],O=I+wr*Z[3],V=z+wr*rr[3],br=M[2];br>0;)for(br<t?(Y=br,br=0):(Y=t,br-=t),l=Z[3]-Y*Z[2],w=rr[3]-Y*rr[2],j=O+br*Z[2],B=V+br*rr[2],hr=M[1];hr>0;)for(hr<t?($=hr,hr=0):($=t,hr-=t),f=Z[2]-$*Z[1],S=rr[2]-$*rr[1],T=j+hr*Z[1],R=B+hr*rr[1],mr=M[0];mr>0;)for(mr<t?(G=mr,mr=0):(G=t,mr-=t),ir=T+mr*Z[0],tr=R+mr*rr[0],v=Z[1]-G*Z[0],x=rr[1]-G*rr[0],dr=0;dr<Q;dr++){for(yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++)s(i,tr,a(n(o,ir))),ir+=u,tr+=g;ir+=v,tr+=x}ir+=f,tr+=S}ir+=l,tr+=w}ir+=p,tr+=A}ir+=m,tr+=_}ir+=d,tr+=b}ir+=y,tr+=E}ir+=h,tr+=q}}sV.exports=k7r});var fV=c((Yle,vV)=>{"use strict";var B7r=Fr(),F7r=Br();function R7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,kr,Rr,Hr,ie,Ne;for(Ne=B7r(r.shape,r.strides,e.strides),W=Ne.sh,tr=Ne.sx,or=Ne.sy,t=F7r(r.dtype,e.dtype),nr=r.offset,sr=e.offset,o=r.data,i=e.data,u=tr[0],x=or[0],n=r.accessors[0],s=e.accessors[1],ie=W[9];ie>0;)for(ie<t?(ir=ie,ie=0):(ir=t,ie-=t),V=nr+ie*tr[9],Y=sr+ie*or[9],Hr=W[8];Hr>0;)for(Hr<t?(er=Hr,Hr=0):(er=t,Hr-=t),g=tr[9]-er*tr[8],j=or[9]-er*or[8],B=V+Hr*tr[8],$=Y+Hr*or[8],Rr=W[7];Rr>0;)for(Rr<t?(ar=Rr,Rr=0):(ar=t,Rr-=t),h=tr[8]-ar*tr[7],T=or[8]-ar*or[7],R=B+Rr*tr[7],G=$+Rr*or[7],kr=W[6];kr>0;)for(kr<t?(rr=kr,kr=0):(rr=t,kr-=t),y=tr[7]-rr*tr[6],q=or[7]-rr*or[6],F=R+kr*tr[6],M=G+kr*or[6],Or=W[5];Or>0;)for(Or<t?(Z=Or,Or=0):(Z=t,Or-=t),d=tr[6]-Z*tr[5],E=or[6]-Z*or[5],N=F+Or*tr[5],U=M+Or*or[5],jr=W[4];jr>0;)for(jr<t?(Q=jr,jr=0):(Q=t,jr-=t),m=tr[5]-Q*tr[4],b=or[5]-Q*or[4],k=N+jr*tr[4],P=U+jr*or[4],Tr=W[3];Tr>0;)for(Tr<t?(H=Tr,Tr=0):(H=t,Tr-=t),p=tr[4]-H*tr[3],_=or[4]-H*or[3],D=k+Tr*tr[3],L=P+Tr*or[3],_r=W[2];_r>0;)for(_r<t?(K=_r,_r=0):(K=t,_r-=t),l=tr[3]-K*tr[2],A=or[3]-K*or[2],I=D+_r*tr[2],C=L+_r*or[2],Ar=W[1];Ar>0;)for(Ar<t?(X=Ar,Ar=0):(X=t,Ar-=t),f=tr[2]-X*tr[1],w=or[2]-X*or[1],O=I+Ar*tr[1],z=C+Ar*or[1],gr=W[0];gr>0;)for(gr<t?(J=gr,gr=0):(J=t,gr-=t),ur=O+gr*tr[0],vr=z+gr*or[0],v=tr[1]-J*tr[0],S=or[1]-J*or[0],qr=0;qr<ir;qr++){for(xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++)s(i,vr,a(n(o,ur))),ur+=u,vr+=x;ur+=v,vr+=S}ur+=f,vr+=w}ur+=l,vr+=A}ur+=p,vr+=_}ur+=m,vr+=b}ur+=d,vr+=E}ur+=y,vr+=q}ur+=h,vr+=T}ur+=g,vr+=j}}vV.exports=R7r});var cV=c(($le,lV)=>{"use strict";var V7r=Fr(),z7r=Br();function C7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q;for(q=V7r(r.shape,r.strides,e.strides),p=q.sh,y=q.sx,h=q.sy,t=z7r(r.dtype,e.dtype),g=r.offset,x=e.offset,o=r.data,i=e.data,n=y[0],u=h[0],E=p[1];E>0;)for(E<t?(d=E,E=0):(d=t,E-=t),f=g+E*y[1],l=x+E*h[1],b=p[0];b>0;)for(b<t?(m=b,b=0):(m=t,b-=t),S=f+b*y[0],w=l+b*h[0],s=y[1]-m*y[0],v=h[1]-m*h[0],_=0;_<d;_++){for(A=0;A<m;A++)i[w]=a(o[S]),S+=n,w+=u;S+=s,w+=v}}lV.exports=C7r});var pV=c((Wle,dV)=>{"use strict";var L7r=Fr(),P7r=Br();function U7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N;for(N=L7r(r.shape,r.strides,e.strides),h=N.sh,w=N.sx,A=N.sy,t=P7r(r.dtype,e.dtype),_=r.offset,b=e.offset,o=r.data,i=e.data,n=w[0],v=A[0],k=h[2];k>0;)for(k<t?(S=k,k=0):(S=t,k-=t),m=_+k*w[2],y=b+k*A[2],D=h[1];D>0;)for(D<t?(x=D,D=0):(x=t,D-=t),u=w[2]-x*w[1],l=A[2]-x*A[1],p=m+D*w[1],d=y+D*A[1],I=h[0];I>0;)for(I<t?(g=I,I=0):(g=t,I-=t),E=p+I*w[0],q=d+I*A[0],s=w[1]-g*w[0],f=A[1]-g*A[0],O=0;O<S;O++){for(j=0;j<x;j++){for(T=0;T<g;T++)i[q]=a(o[E]),E+=n,q+=v;E+=s,q+=f}E+=u,q+=l}}dV.exports=U7r});var mV=c((Jle,yV)=>{"use strict";var M7r=Fr(),G7r=Br();function Y7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L;for(L=M7r(r.shape,r.strides,e.strides),w=L.sh,q=L.sx,T=L.sy,t=G7r(r.dtype,e.dtype),j=r.offset,O=e.offset,o=r.data,i=e.data,n=q[0],f=T[0],C=w[3];C>0;)for(C<t?(E=C,C=0):(E=t,C-=t),h=j+C*q[3],S=O+C*T[3],z=w[2];z>0;)for(z<t?(b=z,z=0):(b=t,z-=t),v=q[3]-b*q[2],m=T[3]-b*T[2],y=h+z*q[2],x=S+z*T[2],V=w[1];V>0;)for(V<t?(_=V,V=0):(_=t,V-=t),u=q[2]-_*q[1],p=T[2]-_*T[1],d=y+V*q[1],g=x+V*T[1],B=w[0];B>0;)for(B<t?(A=B,B=0):(A=t,B-=t),I=d+B*q[0],D=g+B*T[0],s=q[1]-A*q[0],l=T[1]-A*T[0],R=0;R<E;R++){for(F=0;F<b;F++){for(N=0;N<_;N++){for(k=0;k<A;k++)i[D]=a(o[I]),I+=n,D+=f;I+=s,D+=l}I+=u,D+=p}I+=v,D+=m}}yV.exports=Y7r});var gV=c((Xle,hV)=>{"use strict";var $7r=Fr(),W7r=Br();function J7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W;for(W=$7r(r.shape,r.strides,e.strides),E=W.sh,D=W.sx,k=W.sy,t=W7r(r.dtype,e.dtype),N=r.offset,F=e.offset,o=r.data,i=e.data,n=D[0],l=k[0],Y=E[4];Y>0;)for(Y<t?(I=Y,Y=0):(I=t,Y-=t),S=N+Y*D[4],b=F+Y*k[4],$=E[3];$>0;)for($<t?(O=$,$=0):(O=t,$-=t),f=D[4]-O*D[3],y=k[4]-O*k[3],x=S+$*D[3],_=b+$*k[3],G=E[2];G>0;)for(G<t?(j=G,G=0):(j=t,G-=t),v=D[3]-j*D[2],d=k[3]-j*k[2],g=x+G*D[2],A=_+G*k[2],M=E[1];M>0;)for(M<t?(T=M,M=0):(T=t,M-=t),u=D[2]-T*D[1],m=k[2]-T*k[1],h=g+M*D[1],w=A+M*k[1],U=E[0];U>0;)for(U<t?(q=U,U=0):(q=t,U-=t),R=h+U*D[0],B=w+U*k[0],s=D[1]-q*D[0],p=k[1]-q*k[0],P=0;P<I;P++){for(L=0;L<O;L++){for(C=0;C<j;C++){for(z=0;z<T;z++){for(V=0;V<q;V++)i[B]=a(o[R]),R+=n,B+=l;R+=s,B+=p}R+=u,B+=m}R+=v,B+=d}R+=f,B+=y}}hV.exports=J7r});var xV=c((Kle,bV)=>{"use strict";var X7r=Fr(),K7r=Br();function H7r(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr;for(rr=X7r(r.shape,r.strides,e.strides),O=rr.sh,B=rr.sx,V=rr.sy,t=K7r(r.dtype,e.dtype),z=r.offset,C=e.offset,o=r.data,i=e.data,n=B[0],p=V[0],Z=O[5];Z>0;)for(Z<t?(R=Z,Z=0):(R=t,Z-=t),_=z+Z*B[5],j=C+Z*V[5],Q=O[4];Q>0;)for(Q<t?(F=Q,Q=0):(F=t,Q-=t),l=B[5]-F*B[4],g=V[5]-F*V[4],A=_+Q*B[4],T=j+Q*V[4],H=O[3];H>0;)for(H<t?(N=H,H=0):(N=t,H-=t),f=B[4]-N*B[3],h=V[4]-N*V[3],w=A+H*B[3],q=T+H*V[3],K=O[2];K>0;)for(K<t?(k=K,K=0):(k=t,K-=t),v=B[3]-k*B[2],y=V[3]-k*V[2],S=w+K*B[2],E=q+K*V[2],X=O[1];X>0;)for(X<t?(D=X,X=0):(D=t,X-=t),u=B[2]-D*B[1],d=V[2]-D*V[1],x=S+X*B[1],b=E+X*V[1],J=O[0];J>0;)for(J<t?(I=J,J=0):(I=t,J-=t),L=x+J*B[0],P=b+J*V[0],s=B[1]-I*B[0],m=V[1]-I*V[0],W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<I;U++)i[P]=a(o[L]),L+=n,P+=p;L+=s,P+=m}L+=u,P+=d}L+=v,P+=y}L+=f,P+=h}L+=l,P+=g}}bV.exports=H7r});var wV=c((Hle,qV)=>{"use strict";var Z7r=Fr(),Q7r=Br();function rNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr;for(sr=Z7r(r.shape,r.strides,e.strides),N=sr.sh,P=sr.sx,U=sr.sy,t=Q7r(r.dtype,e.dtype),M=r.offset,G=e.offset,o=r.data,i=e.data,n=P[0],m=U[0],nr=N[6];nr>0;)for(nr<t?(L=nr,nr=0):(L=t,nr-=t),q=M+nr*P[6],k=G+nr*U[6],or=N[5];or>0;)for(or<t?(C=or,or=0):(C=t,or-=t),p=P[6]-C*P[5],S=U[6]-C*U[5],E=q+or*P[5],D=k+or*U[5],tr=N[4];tr>0;)for(tr<t?(z=tr,tr=0):(z=t,tr-=t),l=P[5]-z*P[4],x=U[5]-z*U[4],b=E+tr*P[4],I=D+tr*U[4],ir=N[3];ir>0;)for(ir<t?(V=ir,ir=0):(V=t,ir-=t),f=P[4]-V*P[3],g=U[4]-V*U[3],_=b+ir*P[3],O=I+ir*U[3],er=N[2];er>0;)for(er<t?(B=er,er=0):(B=t,er-=t),v=P[3]-B*P[2],h=U[3]-B*U[2],A=_+er*P[2],j=O+er*U[2],ar=N[1];ar>0;)for(ar<t?(R=ar,ar=0):(R=t,ar-=t),u=P[2]-R*P[1],y=U[2]-R*U[1],w=A+ar*P[1],T=j+ar*U[1],rr=N[0];rr>0;)for(rr<t?(F=rr,rr=0):(F=t,rr-=t),$=w+rr*P[0],Y=T+rr*U[0],s=P[1]-F*P[0],d=U[1]-F*U[0],Z=0;Z<L;Z++){for(Q=0;Q<C;Q++){for(H=0;H<z;H++){for(K=0;K<V;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++)i[Y]=a(o[$]),$+=n,Y+=m;$+=s,Y+=d}$+=u,Y+=y}$+=v,Y+=h}$+=f,Y+=g}$+=l,Y+=x}$+=p,Y+=S}}qV.exports=rNr});var EV=c((Zle,SV)=>{"use strict";var eNr=Fr(),aNr=Br();function tNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr;for(mr=eNr(r.shape,r.strides,e.strides),V=mr.sh,Y=mr.sx,W=mr.sy,t=aNr(r.dtype,e.dtype),J=r.offset,X=e.offset,o=r.data,i=e.data,n=Y[0],d=W[0],dr=V[7];dr>0;)for(dr<t?($=dr,dr=0):($=t,dr-=t),O=J+dr*Y[7],B=X+dr*W[7],yr=V[6];yr>0;)for(yr<t?(G=yr,yr=0):(G=t,yr-=t),m=Y[7]-G*Y[6],A=W[7]-G*W[6],j=O+yr*Y[6],R=B+yr*W[6],fr=V[5];fr>0;)for(fr<t?(M=fr,fr=0):(M=t,fr-=t),p=Y[6]-M*Y[5],w=W[6]-M*W[5],T=j+fr*Y[5],F=R+fr*W[5],lr=V[4];lr>0;)for(lr<t?(U=lr,lr=0):(U=t,lr-=t),l=Y[5]-U*Y[4],S=W[5]-U*W[4],q=T+lr*Y[4],N=F+lr*W[4],vr=V[3];vr>0;)for(vr<t?(P=vr,vr=0):(P=t,vr-=t),f=Y[4]-P*Y[3],x=W[4]-P*W[3],E=q+vr*Y[3],k=N+vr*W[3],ur=V[2];ur>0;)for(ur<t?(L=ur,ur=0):(L=t,ur-=t),v=Y[3]-L*Y[2],g=W[3]-L*W[2],b=E+ur*Y[2],D=k+ur*W[2],sr=V[1];sr>0;)for(sr<t?(C=sr,sr=0):(C=t,sr-=t),u=Y[2]-C*Y[1],h=W[2]-C*W[1],_=b+sr*Y[1],I=D+sr*W[1],nr=V[0];nr>0;)for(nr<t?(z=nr,nr=0):(z=t,nr-=t),K=_+nr*Y[0],H=I+nr*W[0],s=Y[1]-z*Y[0],y=W[1]-z*W[0],or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<L;rr++){for(Z=0;Z<C;Z++){for(Q=0;Q<z;Q++)i[H]=a(o[K]),K+=n,H+=d;K+=s,H+=y}K+=u,H+=h}K+=v,H+=g}K+=f,H+=x}K+=l,H+=S}K+=p,H+=w}K+=m,H+=A}}SV.exports=tNr});var _V=c((Qle,AV)=>{"use strict";var iNr=Fr(),oNr=Br();function nNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar;for(Ar=iNr(r.shape,r.strides,e.strides),P=Ar.sh,H=Ar.sx,Q=Ar.sy,t=oNr(r.dtype,e.dtype),Z=r.offset,rr=e.offset,o=r.data,i=e.data,n=H[0],y=Q[0],gr=P[8];gr>0;)for(gr<t?(K=gr,gr=0):(K=t,gr-=t),k=Z+gr*H[8],L=rr+gr*Q[8],qr=P[7];qr>0;)for(qr<t?(X=qr,qr=0):(X=t,qr-=t),d=H[8]-X*H[7],b=Q[8]-X*Q[7],D=k+qr*H[7],C=L+qr*Q[7],xr=P[6];xr>0;)for(xr<t?(J=xr,xr=0):(J=t,xr-=t),m=H[7]-J*H[6],_=Q[7]-J*Q[6],I=D+xr*H[6],z=C+xr*Q[6],wr=P[5];wr>0;)for(wr<t?(W=wr,wr=0):(W=t,wr-=t),p=H[6]-W*H[5],A=Q[6]-W*Q[5],O=I+wr*H[5],V=z+wr*Q[5],br=P[4];br>0;)for(br<t?(Y=br,br=0):(Y=t,br-=t),l=H[5]-Y*H[4],w=Q[5]-Y*Q[4],j=O+br*H[4],B=V+br*Q[4],hr=P[3];hr>0;)for(hr<t?($=hr,hr=0):($=t,hr-=t),f=H[4]-$*H[3],S=Q[4]-$*Q[3],T=j+hr*H[3],R=B+hr*Q[3],mr=P[2];mr>0;)for(mr<t?(G=mr,mr=0):(G=t,mr-=t),v=H[3]-G*H[2],x=Q[3]-G*Q[2],q=T+mr*H[2],F=R+mr*Q[2],dr=P[1];dr>0;)for(dr<t?(M=dr,dr=0):(M=t,dr-=t),u=H[2]-M*H[1],g=Q[2]-M*Q[1],E=q+dr*H[1],N=F+dr*Q[1],yr=P[0];yr>0;)for(yr<t?(U=yr,yr=0):(U=t,yr-=t),ar=E+yr*H[0],er=N+yr*Q[0],s=H[1]-U*H[0],h=Q[1]-U*Q[0],fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++){for(ir=0;ir<U;ir++)i[er]=a(o[ar]),ar+=n,er+=y;ar+=s,er+=h}ar+=u,er+=g}ar+=v,er+=x}ar+=f,er+=S}ar+=l,er+=w}ar+=p,er+=A}ar+=m,er+=_}ar+=d,er+=b}}AV.exports=nNr});var jV=c((rce,TV)=>{"use strict";var sNr=Fr(),uNr=Br();function vNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,kr,Rr,Hr;for(Hr=sNr(r.shape,r.strides,e.strides),$=Hr.sh,er=Hr.sx,ir=Hr.sy,t=uNr(r.dtype,e.dtype),tr=r.offset,or=e.offset,o=r.data,i=e.data,n=er[0],h=ir[0],Rr=$[9];Rr>0;)for(Rr<t?(ar=Rr,Rr=0):(ar=t,Rr-=t),R=tr+Rr*er[9],G=or+Rr*ir[9],kr=$[8];kr>0;)for(kr<t?(rr=kr,kr=0):(rr=t,kr-=t),y=er[9]-rr*er[8],q=ir[9]-rr*ir[8],F=R+kr*er[8],M=G+kr*ir[8],Or=$[7];Or>0;)for(Or<t?(Z=Or,Or=0):(Z=t,Or-=t),d=er[8]-Z*er[7],E=ir[8]-Z*ir[7],N=F+Or*er[7],U=M+Or*ir[7],jr=$[6];jr>0;)for(jr<t?(Q=jr,jr=0):(Q=t,jr-=t),m=er[7]-Q*er[6],b=ir[7]-Q*ir[6],k=N+jr*er[6],P=U+jr*ir[6],Tr=$[5];Tr>0;)for(Tr<t?(H=Tr,Tr=0):(H=t,Tr-=t),p=er[6]-H*er[5],_=ir[6]-H*ir[5],D=k+Tr*er[5],L=P+Tr*ir[5],_r=$[4];_r>0;)for(_r<t?(K=_r,_r=0):(K=t,_r-=t),l=er[5]-K*er[4],A=ir[5]-K*ir[4],I=D+_r*er[4],C=L+_r*ir[4],Ar=$[3];Ar>0;)for(Ar<t?(X=Ar,Ar=0):(X=t,Ar-=t),f=er[4]-X*er[3],w=ir[4]-X*ir[3],O=I+Ar*er[3],z=C+Ar*ir[3],gr=$[2];gr>0;)for(gr<t?(J=gr,gr=0):(J=t,gr-=t),v=er[3]-J*er[2],S=ir[3]-J*ir[2],j=O+gr*er[2],V=z+gr*ir[2],qr=$[1];qr>0;)for(qr<t?(W=qr,qr=0):(W=t,qr-=t),u=er[2]-W*er[1],x=ir[2]-W*ir[1],T=j+qr*er[1],B=V+qr*ir[1],xr=$[0];xr>0;)for(xr<t?(Y=xr,xr=0):(Y=t,xr-=t),nr=T+xr*er[0],sr=B+xr*ir[0],s=er[1]-Y*er[0],g=ir[1]-Y*ir[0],wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(vr=0;vr<W;vr++){for(ur=0;ur<Y;ur++)i[sr]=a(o[nr]),nr+=n,sr+=h;nr+=s,sr+=g}nr+=u,sr+=x}nr+=v,sr+=S}nr+=f,sr+=w}nr+=l,sr+=A}nr+=p,sr+=_}nr+=m,sr+=b}nr+=d,sr+=E}nr+=y,sr+=q}}TV.exports=vNr});var OV=c((ece,IV)=>{"use strict";function fNr(r,e,a){e.accessors[1](e.data,e.offset,a(r.accessors[0](r.data,r.offset)))}IV.exports=fNr});var DV=c((ace,NV)=>{"use strict";function lNr(r,e,a){var t,o,i,n,s,u,v,f,l,p;for(v=r.shape[0],s=r.strides[0],u=e.strides[0],f=r.offset,l=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],p=0;p<v;p++)n(o,l,a(i(t,f))),f+=s,l+=u}NV.exports=lNr});var BV=c((tce,kV)=>{"use strict";function cNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S;for(l=r.shape,d=r.strides,y=e.strides,r.order==="row-major"?(p=l[1],m=l[0],s=d[1],u=d[0]-p*d[1],v=y[1],f=y[0]-p*y[1]):(p=l[0],m=l[1],s=d[0],u=d[1]-p*d[0],v=y[0],f=y[1]-p*y[0]),h=r.offset,g=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],S=0;S<m;S++){for(x=0;x<p;x++)n(o,g,a(i(t,h))),h+=s,g+=v;h+=u,g+=f}}kV.exports=cNr});var RV=c((ice,FV)=>{"use strict";function dNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b;for(m=r.shape,g=r.strides,x=e.strides,r.order==="row-major"?(d=m[2],y=m[1],h=m[0],s=g[2],u=g[1]-d*g[2],v=g[0]-y*g[1],f=x[2],l=x[1]-d*x[2],p=x[0]-y*x[1]):(d=m[0],y=m[1],h=m[2],s=g[0],u=g[1]-d*g[0],v=g[2]-y*g[1],f=x[0],l=x[1]-d*x[0],p=x[2]-y*x[1]),S=r.offset,w=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],b=0;b<h;b++){for(_=0;_<y;_++){for(A=0;A<d;A++)n(o,w,a(i(t,S))),S+=s,w+=f;S+=u,w+=l}S+=v,w+=p}}FV.exports=dNr});var zV=c((oce,VV)=>{"use strict";function pNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j;for(y=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(h=y[3],g=y[2],x=y[1],S=y[0],s=w[3],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-x*w[1],l=A[3],p=A[2]-h*A[3],m=A[1]-g*A[2],d=A[0]-x*A[1]):(h=y[0],g=y[1],x=y[2],S=y[3],s=w[0],u=w[1]-h*w[0],v=w[2]-g*w[1],f=w[3]-x*w[2],l=A[0],p=A[1]-h*A[0],m=A[2]-g*A[1],d=A[3]-x*A[2]),_=r.offset,b=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],j=0;j<S;j++){for(T=0;T<x;T++){for(q=0;q<g;q++){for(E=0;E<h;E++)n(o,b,a(i(t,_))),_+=s,b+=l;_+=u,b+=p}_+=v,b+=m}_+=f,b+=d}}VV.exports=pNr});var LV=c((nce,CV)=>{"use strict";function yNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k;for(g=r.shape,b=r.strides,E=e.strides,r.order==="row-major"?(x=g[4],S=g[3],w=g[2],A=g[1],_=g[0],s=b[4],u=b[3]-x*b[4],v=b[2]-S*b[3],f=b[1]-w*b[2],l=b[0]-A*b[1],p=E[4],m=E[3]-x*E[4],d=E[2]-S*E[3],y=E[1]-w*E[2],h=E[0]-A*E[1]):(x=g[0],S=g[1],w=g[2],A=g[3],_=g[4],s=b[0],u=b[1]-x*b[0],v=b[2]-S*b[1],f=b[3]-w*b[2],l=b[4]-A*b[3],p=E[0],m=E[1]-x*E[0],d=E[2]-S*E[1],y=E[3]-w*E[2],h=E[4]-A*E[3]),q=r.offset,T=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<x;j++)n(o,T,a(i(t,q))),q+=s,T+=p;q+=u,T+=m}q+=v,T+=d}q+=f,T+=y}q+=l,T+=h}}CV.exports=yNr});var UV=c((sce,PV)=>{"use strict";function mNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B;for(S=r.shape,T=r.strides,j=e.strides,r.order==="row-major"?(w=S[5],A=S[4],_=S[3],b=S[2],E=S[1],q=S[0],s=T[5],u=T[4]-w*T[5],v=T[3]-A*T[4],f=T[2]-_*T[3],l=T[1]-b*T[2],p=T[0]-E*T[1],m=j[5],d=j[4]-w*j[5],y=j[3]-A*j[4],h=j[2]-_*j[3],g=j[1]-b*j[2],x=j[0]-E*j[1]):(w=S[0],A=S[1],_=S[2],b=S[3],E=S[4],q=S[5],s=T[0],u=T[1]-w*T[0],v=T[2]-A*T[1],f=T[3]-_*T[2],l=T[4]-b*T[3],p=T[5]-E*T[4],m=j[0],d=j[1]-w*j[0],y=j[2]-A*j[1],h=j[3]-_*j[2],g=j[4]-b*j[3],x=j[5]-E*j[4]),O=r.offset,I=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<b;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)n(o,I,a(i(t,O))),O+=s,I+=m;O+=u,I+=d}O+=v,I+=y}O+=f,I+=h}O+=l,I+=g}O+=p,I+=x}}PV.exports=mNr});var GV=c((uce,MV)=>{"use strict";function hNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L;for(A=r.shape,I=r.strides,D=e.strides,r.order==="row-major"?(_=A[6],b=A[5],E=A[4],q=A[3],T=A[2],j=A[1],O=A[0],s=I[6],u=I[5]-_*I[6],v=I[4]-b*I[5],f=I[3]-E*I[4],l=I[2]-q*I[3],p=I[1]-T*I[2],m=I[0]-j*I[1],d=D[6],y=D[5]-_*D[6],h=D[4]-b*D[5],g=D[3]-E*D[4],x=D[2]-q*D[3],S=D[1]-T*D[2],w=D[0]-j*D[1]):(_=A[0],b=A[1],E=A[2],q=A[3],T=A[4],j=A[5],O=A[6],s=I[0],u=I[1]-_*I[0],v=I[2]-b*I[1],f=I[3]-E*I[2],l=I[4]-q*I[3],p=I[5]-T*I[4],m=I[6]-j*I[5],d=D[0],y=D[1]-_*D[0],h=D[2]-b*D[1],g=D[3]-E*D[2],x=D[4]-q*D[3],S=D[5]-T*D[4],w=D[6]-j*D[5]),k=r.offset,N=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],L=0;L<O;L++){for(C=0;C<j;C++){for(z=0;z<T;z++){for(V=0;V<q;V++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(F=0;F<_;F++)n(o,N,a(i(t,k))),k+=s,N+=d;k+=u,N+=y}k+=v,N+=h}k+=f,N+=g}k+=l,N+=x}k+=p,N+=S}k+=m,N+=w}}MV.exports=hNr});var $V=c((vce,YV)=>{"use strict";function gNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G;for(b=r.shape,N=r.strides,F=e.strides,r.order==="row-major"?(E=b[7],q=b[6],T=b[5],j=b[4],O=b[3],I=b[2],D=b[1],k=b[0],s=N[7],u=N[6]-E*N[7],v=N[5]-q*N[6],f=N[4]-T*N[5],l=N[3]-j*N[4],p=N[2]-O*N[3],m=N[1]-I*N[2],d=N[0]-D*N[1],y=F[7],h=F[6]-E*F[7],g=F[5]-q*F[6],x=F[4]-T*F[5],S=F[3]-j*F[4],w=F[2]-O*F[3],A=F[1]-I*F[2],_=F[0]-D*F[1]):(E=b[0],q=b[1],T=b[2],j=b[3],O=b[4],I=b[5],D=b[6],k=b[7],s=N[0],u=N[1]-E*N[0],v=N[2]-q*N[1],f=N[3]-T*N[2],l=N[4]-j*N[3],p=N[5]-O*N[4],m=N[6]-I*N[5],d=N[7]-D*N[6],y=F[0],h=F[1]-E*F[0],g=F[2]-q*F[1],x=F[3]-T*F[2],S=F[4]-j*F[3],w=F[5]-O*F[4],A=F[6]-I*F[5],_=F[7]-D*F[6]),R=r.offset,B=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<I;U++){for(P=0;P<O;P++){for(L=0;L<j;L++){for(C=0;C<T;C++){for(z=0;z<q;z++){for(V=0;V<E;V++)n(o,B,a(i(t,R))),R+=s,B+=y;R+=u,B+=h}R+=v,B+=g}R+=f,B+=x}R+=l,B+=S}R+=p,B+=w}R+=m,B+=A}R+=d,B+=_}}YV.exports=gNr});var JV=c((fce,WV)=>{"use strict";function bNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J;for(q=r.shape,B=r.strides,V=e.strides,r.order==="row-major"?(T=q[8],j=q[7],O=q[6],I=q[5],D=q[4],k=q[3],N=q[2],F=q[1],R=q[0],s=B[8],u=B[7]-T*B[8],v=B[6]-j*B[7],f=B[5]-O*B[6],l=B[4]-I*B[5],p=B[3]-D*B[4],m=B[2]-k*B[3],d=B[1]-N*B[2],y=B[0]-F*B[1],h=V[8],g=V[7]-T*V[8],x=V[6]-j*V[7],S=V[5]-O*V[6],w=V[4]-I*V[5],A=V[3]-D*V[4],_=V[2]-k*V[3],b=V[1]-N*V[2],E=V[0]-F*V[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],R=q[8],s=B[0],u=B[1]-T*B[0],v=B[2]-j*B[1],f=B[3]-O*B[2],l=B[4]-I*B[3],p=B[5]-D*B[4],m=B[6]-k*B[5],d=B[7]-N*B[6],y=B[8]-F*B[7],h=V[0],g=V[1]-T*V[0],x=V[2]-j*V[1],S=V[3]-O*V[2],w=V[4]-I*V[3],A=V[5]-D*V[4],_=V[6]-k*V[5],b=V[7]-N*V[6],E=V[8]-F*V[7]),z=r.offset,C=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(U=0;U<O;U++){for(P=0;P<j;P++){for(L=0;L<T;L++)n(o,C,a(i(t,z))),z+=s,C+=h;z+=u,C+=g}z+=v,C+=x}z+=f,C+=S}z+=l,C+=w}z+=p,C+=A}z+=m,C+=_}z+=d,C+=b}z+=y,C+=E}}WV.exports=bNr});var KV=c((lce,XV)=>{"use strict";function xNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q;for(j=r.shape,C=r.strides,L=e.strides,r.order==="row-major"?(O=j[9],I=j[8],D=j[7],k=j[6],N=j[5],F=j[4],R=j[3],B=j[2],V=j[1],z=j[0],s=C[9],u=C[8]-O*C[9],v=C[7]-I*C[8],f=C[6]-D*C[7],l=C[5]-k*C[6],p=C[4]-N*C[5],m=C[3]-F*C[4],d=C[2]-R*C[3],y=C[1]-B*C[2],h=C[0]-V*C[1],g=L[9],x=L[8]-O*L[9],S=L[7]-I*L[8],w=L[6]-D*L[7],A=L[5]-k*L[6],_=L[4]-N*L[5],b=L[3]-F*L[4],E=L[2]-R*L[3],q=L[1]-B*L[2],T=L[0]-V*L[1]):(O=j[0],I=j[1],D=j[2],k=j[3],N=j[4],F=j[5],R=j[6],B=j[7],V=j[8],z=j[9],s=C[0],u=C[1]-O*C[0],v=C[2]-I*C[1],f=C[3]-D*C[2],l=C[4]-k*C[3],p=C[5]-N*C[4],m=C[6]-F*C[5],d=C[7]-R*C[6],y=C[8]-B*C[7],h=C[9]-V*C[8],g=L[0],x=L[1]-O*L[0],S=L[2]-I*L[1],w=L[3]-D*L[2],A=L[4]-k*L[3],_=L[5]-N*L[4],b=L[6]-F*L[5],E=L[7]-R*L[6],q=L[8]-B*L[7],T=L[9]-V*L[8]),P=r.offset,U=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],Q=0;Q<z;Q++){for(H=0;H<V;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++)n(o,U,a(i(t,P))),P+=s,U+=g;P+=u,U+=x}P+=v,U+=S}P+=f,U+=w}P+=l,U+=A}P+=p,U+=_}P+=m,U+=b}P+=d,U+=E}P+=y,U+=q}P+=h,U+=T}}XV.exports=xNr});var rz=c((cce,QV)=>{"use strict";var qNr=Jr(),HV=na(),ZV="throw";function wNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g;for(f=r.shape,s=qNr(f),t=r.data,o=e.data,l=r.strides,p=e.strides,m=r.offset,d=e.offset,i=r.order,n=e.order,u=r.accessors[0],v=e.accessors[1],g=0;g<s;g++)y=HV(f,l,m,i,g,ZV),h=HV(f,p,d,n,g,ZV),v(o,h,a(u(t,y)))}QV.exports=wNr});var az=c((dce,ez)=>{"use strict";function SNr(r,e,a){e.data[e.offset]=a(r.data[r.offset])}ez.exports=SNr});var iz=c((pce,tz)=>{"use strict";function ENr(r,e,a){var t,o,i,n,s,u,v,f;for(s=r.shape[0],i=r.strides[0],n=e.strides[0],u=r.offset,v=e.offset,t=r.data,o=e.data,f=0;f<s;f++)o[v]=a(t[u]),u+=i,v+=n}tz.exports=ENr});var nz=c((yce,oz)=>{"use strict";function ANr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g;for(v=r.shape,p=r.strides,m=e.strides,r.order==="row-major"?(f=v[1],l=v[0],i=p[1],n=p[0]-f*p[1],s=m[1],u=m[0]-f*m[1]):(f=v[0],l=v[1],i=p[0],n=p[1]-f*p[0],s=m[0],u=m[1]-f*m[0]),d=r.offset,y=e.offset,t=r.data,o=e.data,g=0;g<l;g++){for(h=0;h<f;h++)o[y]=a(t[d]),d+=i,y+=s;d+=n,y+=u}}oz.exports=ANr});var uz=c((mce,sz)=>{"use strict";function _Nr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A;for(l=r.shape,y=r.strides,h=e.strides,r.order==="row-major"?(p=l[2],m=l[1],d=l[0],i=y[2],n=y[1]-p*y[2],s=y[0]-m*y[1],u=h[2],v=h[1]-p*h[2],f=h[0]-m*h[1]):(p=l[0],m=l[1],d=l[2],i=y[0],n=y[1]-p*y[0],s=y[2]-m*y[1],u=h[0],v=h[1]-p*h[0],f=h[2]-m*h[1]),g=r.offset,x=e.offset,t=r.data,o=e.data,A=0;A<d;A++){for(w=0;w<m;w++){for(S=0;S<p;S++)o[x]=a(t[g]),g+=i,x+=u;g+=n,x+=v}g+=s,x+=f}}sz.exports=_Nr});var fz=c((hce,vz)=>{"use strict";function TNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q;for(m=r.shape,x=r.strides,S=e.strides,r.order==="row-major"?(d=m[3],y=m[2],h=m[1],g=m[0],i=x[3],n=x[2]-d*x[3],s=x[1]-y*x[2],u=x[0]-h*x[1],v=S[3],f=S[2]-d*S[3],l=S[1]-y*S[2],p=S[0]-h*S[1]):(d=m[0],y=m[1],h=m[2],g=m[3],i=x[0],n=x[1]-d*x[0],s=x[2]-y*x[1],u=x[3]-h*x[2],v=S[0],f=S[1]-d*S[0],l=S[2]-y*S[1],p=S[3]-h*S[2]),w=r.offset,A=e.offset,t=r.data,o=e.data,q=0;q<g;q++){for(E=0;E<h;E++){for(b=0;b<y;b++){for(_=0;_<d;_++)o[A]=a(t[w]),w+=i,A+=v;w+=n,A+=f}w+=s,A+=l}w+=u,A+=p}}vz.exports=TNr});var cz=c((gce,lz)=>{"use strict";function jNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I;for(y=r.shape,A=r.strides,_=e.strides,r.order==="row-major"?(h=y[4],g=y[3],x=y[2],S=y[1],w=y[0],i=A[4],n=A[3]-h*A[4],s=A[2]-g*A[3],u=A[1]-x*A[2],v=A[0]-S*A[1],f=_[4],l=_[3]-h*_[4],p=_[2]-g*_[3],m=_[1]-x*_[2],d=_[0]-S*_[1]):(h=y[0],g=y[1],x=y[2],S=y[3],w=y[4],i=A[0],n=A[1]-h*A[0],s=A[2]-g*A[1],u=A[3]-x*A[2],v=A[4]-S*A[3],f=_[0],l=_[1]-h*_[0],p=_[2]-g*_[1],m=_[3]-x*_[2],d=_[4]-S*_[3]),b=r.offset,E=e.offset,t=r.data,o=e.data,I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<x;j++){for(T=0;T<g;T++){for(q=0;q<h;q++)o[E]=a(t[b]),b+=i,E+=f;b+=n,E+=l}b+=s,E+=p}b+=u,E+=m}b+=v,E+=d}}lz.exports=jNr});var pz=c((bce,dz)=>{"use strict";function INr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F;for(g=r.shape,E=r.strides,q=e.strides,r.order==="row-major"?(x=g[5],S=g[4],w=g[3],A=g[2],_=g[1],b=g[0],i=E[5],n=E[4]-x*E[5],s=E[3]-S*E[4],u=E[2]-w*E[3],v=E[1]-A*E[2],f=E[0]-_*E[1],l=q[5],p=q[4]-x*q[5],m=q[3]-S*q[4],d=q[2]-w*q[3],y=q[1]-A*q[2],h=q[0]-_*q[1]):(x=g[0],S=g[1],w=g[2],A=g[3],_=g[4],b=g[5],i=E[0],n=E[1]-x*E[0],s=E[2]-S*E[1],u=E[3]-w*E[2],v=E[4]-A*E[3],f=E[5]-_*E[4],l=q[0],p=q[1]-x*q[0],m=q[2]-S*q[1],d=q[3]-w*q[2],y=q[4]-A*q[3],h=q[5]-_*q[4]),T=r.offset,j=e.offset,t=r.data,o=e.data,F=0;F<b;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<x;O++)o[j]=a(t[T]),T+=i,j+=l;T+=n,j+=p}T+=s,j+=m}T+=u,j+=d}T+=v,j+=y}T+=f,j+=h}}dz.exports=INr});var mz=c((xce,yz)=>{"use strict";function ONr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z;for(S=r.shape,j=r.strides,O=e.strides,r.order==="row-major"?(w=S[6],A=S[5],_=S[4],b=S[3],E=S[2],q=S[1],T=S[0],i=j[6],n=j[5]-w*j[6],s=j[4]-A*j[5],u=j[3]-_*j[4],v=j[2]-b*j[3],f=j[1]-E*j[2],l=j[0]-q*j[1],p=O[6],m=O[5]-w*O[6],d=O[4]-A*O[5],y=O[3]-_*O[4],h=O[2]-b*O[3],g=O[1]-E*O[2],x=O[0]-q*O[1]):(w=S[0],A=S[1],_=S[2],b=S[3],E=S[4],q=S[5],T=S[6],i=j[0],n=j[1]-w*j[0],s=j[2]-A*j[1],u=j[3]-_*j[2],v=j[4]-b*j[3],f=j[5]-E*j[4],l=j[6]-q*j[5],p=O[0],m=O[1]-w*O[0],d=O[2]-A*O[1],y=O[3]-_*O[2],h=O[4]-b*O[3],g=O[5]-E*O[4],x=O[6]-q*O[5]),I=r.offset,D=e.offset,t=r.data,o=e.data,z=0;z<T;z++){for(V=0;V<q;V++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++)o[D]=a(t[I]),I+=i,D+=p;I+=n,D+=m}I+=s,D+=d}I+=u,D+=y}I+=v,D+=h}I+=f,D+=g}I+=l,D+=x}}yz.exports=ONr});var gz=c((qce,hz)=>{"use strict";function NNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U;for(A=r.shape,D=r.strides,k=e.strides,r.order==="row-major"?(_=A[7],b=A[6],E=A[5],q=A[4],T=A[3],j=A[2],O=A[1],I=A[0],i=D[7],n=D[6]-_*D[7],s=D[5]-b*D[6],u=D[4]-E*D[5],v=D[3]-q*D[4],f=D[2]-T*D[3],l=D[1]-j*D[2],p=D[0]-O*D[1],m=k[7],d=k[6]-_*k[7],y=k[5]-b*k[6],h=k[4]-E*k[5],g=k[3]-q*k[4],x=k[2]-T*k[3],S=k[1]-j*k[2],w=k[0]-O*k[1]):(_=A[0],b=A[1],E=A[2],q=A[3],T=A[4],j=A[5],O=A[6],I=A[7],i=D[0],n=D[1]-_*D[0],s=D[2]-b*D[1],u=D[3]-E*D[2],v=D[4]-q*D[3],f=D[5]-T*D[4],l=D[6]-j*D[5],p=D[7]-O*D[6],m=k[0],d=k[1]-_*k[0],y=k[2]-b*k[1],h=k[3]-E*k[2],g=k[4]-q*k[3],x=k[5]-T*k[4],S=k[6]-j*k[5],w=k[7]-O*k[6]),N=r.offset,F=e.offset,t=r.data,o=e.data,U=0;U<I;U++){for(P=0;P<O;P++){for(L=0;L<j;L++){for(C=0;C<T;C++){for(z=0;z<q;z++){for(V=0;V<E;V++){for(B=0;B<b;B++){for(R=0;R<_;R++)o[F]=a(t[N]),N+=i,F+=m;N+=n,F+=d}N+=s,F+=y}N+=u,F+=h}N+=v,F+=g}N+=f,F+=x}N+=l,F+=S}N+=p,F+=w}}hz.exports=NNr});var xz=c((wce,bz)=>{"use strict";function DNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y;for(b=r.shape,F=r.strides,R=e.strides,r.order==="row-major"?(E=b[8],q=b[7],T=b[6],j=b[5],O=b[4],I=b[3],D=b[2],k=b[1],N=b[0],i=F[8],n=F[7]-E*F[8],s=F[6]-q*F[7],u=F[5]-T*F[6],v=F[4]-j*F[5],f=F[3]-O*F[4],l=F[2]-I*F[3],p=F[1]-D*F[2],m=F[0]-k*F[1],d=R[8],y=R[7]-E*R[8],h=R[6]-q*R[7],g=R[5]-T*R[6],x=R[4]-j*R[5],S=R[3]-O*R[4],w=R[2]-I*R[3],A=R[1]-D*R[2],_=R[0]-k*R[1]):(E=b[0],q=b[1],T=b[2],j=b[3],O=b[4],I=b[5],D=b[6],k=b[7],N=b[8],i=F[0],n=F[1]-E*F[0],s=F[2]-q*F[1],u=F[3]-T*F[2],v=F[4]-j*F[3],f=F[5]-O*F[4],l=F[6]-I*F[5],p=F[7]-D*F[6],m=F[8]-k*F[7],d=R[0],y=R[1]-E*R[0],h=R[2]-q*R[1],g=R[3]-T*R[2],x=R[4]-j*R[3],S=R[5]-O*R[4],w=R[6]-I*R[5],A=R[7]-D*R[6],_=R[8]-k*R[7]),B=r.offset,V=e.offset,t=r.data,o=e.data,Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(U=0;U<O;U++){for(P=0;P<j;P++){for(L=0;L<T;L++){for(C=0;C<q;C++){for(z=0;z<E;z++)o[V]=a(t[B]),B+=i,V+=d;B+=n,V+=y}B+=s,V+=h}B+=u,V+=g}B+=v,V+=x}B+=f,V+=S}B+=l,V+=w}B+=p,V+=A}B+=m,V+=_}}bz.exports=DNr});var wz=c((Sce,qz)=>{"use strict";function kNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K;for(q=r.shape,V=r.strides,z=e.strides,r.order==="row-major"?(T=q[9],j=q[8],O=q[7],I=q[6],D=q[5],k=q[4],N=q[3],F=q[2],R=q[1],B=q[0],i=V[9],n=V[8]-T*V[9],s=V[7]-j*V[8],u=V[6]-O*V[7],v=V[5]-I*V[6],f=V[4]-D*V[5],l=V[3]-k*V[4],p=V[2]-N*V[3],m=V[1]-F*V[2],d=V[0]-R*V[1],y=z[9],h=z[8]-T*z[9],g=z[7]-j*z[8],x=z[6]-O*z[7],S=z[5]-I*z[6],w=z[4]-D*z[5],A=z[3]-k*z[4],_=z[2]-N*z[3],b=z[1]-F*z[2],E=z[0]-R*z[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],R=q[8],B=q[9],i=V[0],n=V[1]-T*V[0],s=V[2]-j*V[1],u=V[3]-O*V[2],v=V[4]-I*V[3],f=V[5]-D*V[4],l=V[6]-k*V[5],p=V[7]-N*V[6],m=V[8]-F*V[7],d=V[9]-R*V[8],y=z[0],h=z[1]-T*z[0],g=z[2]-j*z[1],x=z[3]-O*z[2],S=z[4]-I*z[3],w=z[5]-D*z[4],A=z[6]-k*z[5],_=z[7]-N*z[6],b=z[8]-F*z[7],E=z[9]-R*z[8]),C=r.offset,L=e.offset,t=r.data,o=e.data,K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++){for(U=0;U<j;U++){for(P=0;P<T;P++)o[L]=a(t[C]),C+=i,L+=y;C+=n,L+=h}C+=s,L+=g}C+=u,L+=x}C+=v,L+=S}C+=f,L+=w}C+=l,L+=A}C+=p,L+=_}C+=m,L+=b}C+=d,L+=E}}qz.exports=kNr});var _z=c((Ece,Az)=>{"use strict";var BNr=Jr(),Sz=na(),Ez="throw";function FNr(r,e,a){var t,o,i,n,s,u,v,f,l,p,m,d,y;for(u=r.shape,s=BNr(u),t=r.data,o=e.data,v=r.strides,f=e.strides,l=r.offset,p=e.offset,i=r.order,n=e.order,y=0;y<s;y++)m=Sz(u,v,l,i,y,Ez),d=Sz(u,f,p,n,y,Ez),o[d]=a(t[m])}Az.exports=FNr});var Dz=c((Ace,Nz)=>{"use strict";var Tz=Sa(),jz=et(),Iz=ri(),RNr=JR(),VNr=KR(),zNr=ZR(),CNr=rV(),LNr=aV(),PNr=iV(),UNr=nV(),MNr=uV(),GNr=fV(),YNr=cV(),$Nr=pV(),WNr=mV(),JNr=gV(),XNr=xV(),KNr=wV(),HNr=EV(),ZNr=_V(),QNr=jV(),rDr=OV(),eDr=DV(),aDr=BV(),tDr=RV(),iDr=zV(),oDr=LV(),nDr=UV(),sDr=GV(),uDr=$V(),vDr=JV(),fDr=KV(),lDr=rz(),cDr=az(),dDr=iz(),pDr=nz(),yDr=uz(),mDr=fz(),hDr=cz(),gDr=pz(),bDr=mz(),xDr=gz(),qDr=xz(),wDr=wz(),SDr=_z(),Ti=[cDr,dDr,pDr,yDr,mDr,hDr,gDr,bDr,xDr,qDr,wDr],Do=[rDr,eDr,aDr,tDr,iDr,oDr,nDr,sDr,uDr,vDr,fDr],EDr=[YNr,$Nr,WNr,JNr,XNr,KNr,HNr,ZNr,QNr],ADr=[RNr,VNr,zNr,CNr,LNr,PNr,UNr,MNr,GNr],Oz=Ti.length-1;function _Dr(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x;if(y=Iz(r[0]),h=Iz(r[1]),i=y.shape,n=h.shape,a=i.length,a!==n.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+a+". ndims(y) == "+n.length+".");if(a===0)return y.accessorProtocol||h.accessorProtocol?Do[a](y,h,e):Ti[a](y,h,e);for(v=1,d=0,x=0;x<a;x++){if(g=i[x],g!==n[x])throw new Error("invalid arguments. Arrays must have the same shape.");v*=g,g===1&&(d+=1)}if(v!==0){if(a===1)return y.accessorProtocol||h.accessorProtocol?Do[a](y,h,e):Ti[a](y,h,e);if(f=y.strides,l=h.strides,d===a-1){for(x=0;x<a&&i[x]===1;x++);return y.shape=[i[x]],h.shape=y.shape,y.strides=[f[x]],h.strides=[l[x]],y.accessorProtocol||h.accessorProtocol?Do[1](y,h,e):Ti[1](y,h,e)}if(s=Tz(f),u=Tz(l),s!==0&&u!==0&&s===u){if(t=jz(i,f,y.offset),o=jz(n,l,h.offset),v===t[1]-t[0]+1&&v===o[1]-o[0]+1)return s===1?p=t[0]:p=t[1],u===1?m=o[0]:m=o[1],y.shape=[v],h.shape=y.shape,y.strides=[s],h.strides=[u],y.offset=p,h.offset=m,y.accessorProtocol||h.accessorProtocol?Do[1](y,h,e):Ti[1](y,h,e);if(a<=Oz)return y.accessorProtocol||h.accessorProtocol?Do[a](y,h,e):Ti[a](y,h,e)}if(a<=Oz)return y.accessorProtocol||h.accessorProtocol?ADr[a-2](y,h,e):EDr[a-2](y,h,e);if(y.accessorProtocol||h.accessorProtocol)return lDr(y,h,e);SDr(y,h,e)}}Nz.exports=_Dr});var Bz=c((_ce,kz)=>{"use strict";var TDr=Dz();kz.exports=TDr});var Rz=c((Tce,Fz)=>{"use strict";var jDr=Fr(),IDr=Br();function ODr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k;for(I=jDr(r.shape,r.strides,e.strides),h=I.sh,S=I.sx,w=I.sy,i=IDr(r.dtype,e.dtype),A=r.offset,_=e.offset,n=r.data,s=e.data,f=S[0],p=w[0],u=r.accessors[0],v=e.accessors[1],k=0,O=h[1];O>0;)for(O<i?(x=O,O=0):(x=i,O-=i),d=A+O*S[1],y=_+O*w[1],j=h[0];j>0;)for(j<i?(g=j,j=0):(g=i,j-=i),b=d+j*S[0],E=y+j*w[0],l=S[1]-g*S[0],m=w[1]-g*w[0],T=0;T<x;T++){for(q=0;q<g;q++)D=t.call(o,u(n,b),k,[b,E],[r,e]),D!==void 0&&v(s,E,a(D)),b+=f,E+=p,k+=1;b+=l,E+=m}}Fz.exports=ODr});var zz=c((jce,Vz)=>{"use strict";var NDr=Fr(),DDr=Br();function kDr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C;for(V=NDr(r.shape,r.strides,e.strides),w=V.sh,E=V.sx,q=V.sy,i=DDr(r.dtype,e.dtype),T=r.offset,j=e.offset,n=r.data,s=e.data,f=E[0],m=q[0],u=r.accessors[0],v=e.accessors[1],C=0,B=w[2];B>0;)for(B<i?(b=B,B=0):(b=i,B-=i),g=T+B*E[2],S=j+B*q[2],R=w[1];R>0;)for(R<i?(_=R,R=0):(_=i,R-=i),p=E[2]-_*E[1],y=q[2]-_*q[1],h=g+R*E[1],x=S+R*q[1],F=w[0];F>0;)for(F<i?(A=F,F=0):(A=i,F-=i),O=h+F*E[0],I=x+F*q[0],l=E[1]-A*E[0],d=q[1]-A*q[0],N=0;N<b;N++){for(k=0;k<_;k++){for(D=0;D<A;D++)z=t.call(o,u(n,O),C,[O,I],[r,e]),z!==void 0&&v(s,I,a(z)),O+=f,I+=m,C+=1;O+=l,I+=d}O+=p,I+=y}}Vz.exports=kDr});var Lz=c((Ice,Cz)=>{"use strict";var BDr=Fr(),FDr=Br();function RDr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y;for(G=BDr(r.shape,r.strides,e.strides),E=G.sh,I=G.sx,D=G.sy,i=FDr(r.dtype,e.dtype),k=r.offset,N=e.offset,n=r.data,s=e.data,f=I[0],d=D[0],u=r.accessors[0],v=e.accessors[1],Y=0,M=E[3];M>0;)for(M<i?(O=M,M=0):(O=i,M-=i),w=k+M*I[3],b=N+M*D[3],U=E[2];U>0;)for(U<i?(j=U,U=0):(j=i,U-=i),m=I[3]-j*I[2],g=D[3]-j*D[2],S=w+U*I[2],_=b+U*D[2],P=E[1];P>0;)for(P<i?(T=P,P=0):(T=i,P-=i),p=I[2]-T*I[1],h=D[2]-T*D[1],x=S+P*I[1],A=_+P*D[1],L=E[0];L>0;)for(L<i?(q=L,L=0):(q=i,L-=i),F=x+L*I[0],R=A+L*D[0],l=I[1]-q*I[0],y=D[1]-q*D[0],C=0;C<O;C++){for(z=0;z<j;z++){for(V=0;V<T;V++){for(B=0;B<q;B++)$=t.call(o,u(n,F),Y,[F,R],[r,e]),$!==void 0&&v(s,R,a($)),F+=f,R+=d,Y+=1;F+=l,R+=y}F+=p,R+=h}F+=m,R+=g}}Cz.exports=RDr});var Uz=c((Oce,Pz)=>{"use strict";var VDr=Fr(),zDr=Br();function CDr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z;for(H=VDr(r.shape,r.strides,e.strides),O=H.sh,R=H.sx,B=H.sy,i=zDr(r.dtype,e.dtype),V=r.offset,z=e.offset,n=r.data,s=e.data,f=R[0],y=B[0],u=r.accessors[0],v=e.accessors[1],Z=0,K=O[4];K>0;)for(K<i?(F=K,K=0):(F=i,K-=i),b=V+K*R[4],j=z+K*B[4],X=O[3];X>0;)for(X<i?(N=X,X=0):(N=i,X-=i),d=R[4]-N*R[3],S=B[4]-N*B[3],_=b+X*R[3],T=j+X*B[3],J=O[2];J>0;)for(J<i?(k=J,J=0):(k=i,J-=i),m=R[3]-k*R[2],x=B[3]-k*B[2],A=_+J*R[2],q=T+J*B[2],W=O[1];W>0;)for(W<i?(D=W,W=0):(D=i,W-=i),p=R[2]-D*R[1],g=B[2]-D*B[1],w=A+W*R[1],E=q+W*B[1],Y=O[0];Y>0;)for(Y<i?(I=Y,Y=0):(I=i,Y-=i),C=w+Y*R[0],L=E+Y*B[0],l=R[1]-I*R[0],h=B[1]-I*B[0],$=0;$<F;$++){for(G=0;G<N;G++){for(M=0;M<k;M++){for(U=0;U<D;U++){for(P=0;P<I;P++)Q=t.call(o,u(n,C),Z,[C,L],[r,e]),Q!==void 0&&v(s,L,a(Q)),C+=f,L+=y,Z+=1;C+=l,L+=h}C+=p,L+=g}C+=m,L+=x}C+=d,L+=S}}Pz.exports=CDr});var Gz=c((Nce,Mz)=>{"use strict";var LDr=Fr(),PDr=Br();function UDr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr;for(tr=LDr(r.shape,r.strides,e.strides),N=tr.sh,L=tr.sx,P=tr.sy,i=PDr(r.dtype,e.dtype),U=r.offset,M=e.offset,n=r.data,s=e.data,f=L[0],h=P[0],u=r.accessors[0],v=e.accessors[1],nr=0,ir=N[5];ir>0;)for(ir<i?(C=ir,ir=0):(C=i,ir-=i),T=U+ir*L[5],k=M+ir*P[5],er=N[4];er>0;)for(er<i?(z=er,er=0):(z=i,er-=i),y=L[5]-z*L[4],A=P[5]-z*P[4],q=T+er*L[4],D=k+er*P[4],ar=N[3];ar>0;)for(ar<i?(V=ar,ar=0):(V=i,ar-=i),d=L[4]-V*L[3],w=P[4]-V*P[3],E=q+ar*L[3],I=D+ar*P[3],rr=N[2];rr>0;)for(rr<i?(B=rr,rr=0):(B=i,rr-=i),m=L[3]-B*L[2],S=P[3]-B*P[2],b=E+rr*L[2],O=I+rr*P[2],Z=N[1];Z>0;)for(Z<i?(R=Z,Z=0):(R=i,Z-=i),p=L[2]-R*L[1],x=P[2]-R*P[1],_=b+Z*L[1],j=O+Z*P[1],Q=N[0];Q>0;)for(Q<i?(F=Q,Q=0):(F=i,Q-=i),G=_+Q*L[0],$=j+Q*P[0],l=L[1]-F*L[0],g=P[1]-F*P[0],H=0;H<C;H++){for(K=0;K<z;K++){for(X=0;X<V;X++){for(J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++)or=t.call(o,u(n,G),nr,[G,$],[r,e]),or!==void 0&&v(s,$,a(or)),G+=f,$+=h,nr+=1;G+=l,$+=g}G+=p,$+=x}G+=m,$+=S}G+=d,$+=w}G+=y,$+=A}}Mz.exports=UDr});var $z=c((Dce,Yz)=>{"use strict";var MDr=Fr(),GDr=Br();function YDr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr;for(fr=MDr(r.shape,r.strides,e.strides),V=fr.sh,$=fr.sx,Y=fr.sy,i=GDr(r.dtype,e.dtype),W=r.offset,J=e.offset,n=r.data,s=e.data,f=$[0],g=Y[0],u=r.accessors[0],v=e.accessors[1],dr=0,lr=V[6];lr>0;)for(lr<i?(G=lr,lr=0):(G=i,lr-=i),I=W+lr*$[6],B=J+lr*Y[6],vr=V[5];vr>0;)for(vr<i?(M=vr,vr=0):(M=i,vr-=i),h=$[6]-M*$[5],b=Y[6]-M*Y[5],O=I+vr*$[5],R=B+vr*Y[5],ur=V[4];ur>0;)for(ur<i?(U=ur,ur=0):(U=i,ur-=i),y=$[5]-U*$[4],_=Y[5]-U*Y[4],j=O+ur*$[4],F=R+ur*Y[4],sr=V[3];sr>0;)for(sr<i?(P=sr,sr=0):(P=i,sr-=i),d=$[4]-P*$[3],A=Y[4]-P*Y[3],T=j+sr*$[3],N=F+sr*Y[3],nr=V[2];nr>0;)for(nr<i?(L=nr,nr=0):(L=i,nr-=i),m=$[3]-L*$[2],w=Y[3]-L*Y[2],q=T+nr*$[2],k=N+nr*Y[2],or=V[1];or>0;)for(or<i?(C=or,or=0):(C=i,or-=i),p=$[2]-C*$[1],S=Y[2]-C*Y[1],E=q+or*$[1],D=k+or*Y[1],tr=V[0];tr>0;)for(tr<i?(z=tr,tr=0):(z=i,tr-=i),X=E+tr*$[0],K=D+tr*Y[0],l=$[1]-z*$[0],x=Y[1]-z*Y[0],ir=0;ir<G;ir++){for(er=0;er<M;er++){for(ar=0;ar<U;ar++){for(rr=0;rr<P;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<C;Q++){for(H=0;H<z;H++)yr=t.call(o,u(n,X),dr,[X,K],[r,e]),yr!==void 0&&v(s,K,a(yr)),X+=f,K+=g,dr+=1;X+=l,K+=x}X+=p,K+=S}X+=m,K+=w}X+=d,K+=A}X+=y,K+=_}X+=h,K+=b}}Yz.exports=YDr});var Jz=c((kce,Wz)=>{"use strict";var $Dr=Fr(),WDr=Br();function JDr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr;for(xr=$Dr(r.shape,r.strides,e.strides),P=xr.sh,K=xr.sx,H=xr.sy,i=WDr(r.dtype,e.dtype),Q=r.offset,Z=e.offset,n=r.data,s=e.data,f=K[0],x=H[0],u=r.accessors[0],v=e.accessors[1],gr=0,wr=P[7];wr>0;)for(wr<i?(X=wr,wr=0):(X=i,wr-=i),N=Q+wr*K[7],L=Z+wr*H[7],br=P[6];br>0;)for(br<i?(J=br,br=0):(J=i,br-=i),g=K[7]-J*K[6],q=H[7]-J*H[6],k=N+br*K[6],C=L+br*H[6],hr=P[5];hr>0;)for(hr<i?(W=hr,hr=0):(W=i,hr-=i),h=K[6]-W*K[5],E=H[6]-W*H[5],D=k+hr*K[5],z=C+hr*H[5],mr=P[4];mr>0;)for(mr<i?(Y=mr,mr=0):(Y=i,mr-=i),y=K[5]-Y*K[4],b=H[5]-Y*H[4],I=D+mr*K[4],V=z+mr*H[4],dr=P[3];dr>0;)for(dr<i?($=dr,dr=0):($=i,dr-=i),d=K[4]-$*K[3],_=H[4]-$*H[3],O=I+dr*K[3],B=V+dr*H[3],yr=P[2];yr>0;)for(yr<i?(G=yr,yr=0):(G=i,yr-=i),m=K[3]-G*K[2],A=H[3]-G*H[2],j=O+yr*K[2],R=B+yr*H[2],fr=P[1];fr>0;)for(fr<i?(M=fr,fr=0):(M=i,fr-=i),p=K[2]-M*K[1],w=H[2]-M*H[1],T=j+fr*K[1],F=R+fr*H[1],lr=P[0];lr>0;)for(lr<i?(U=lr,lr=0):(U=i,lr-=i),rr=T+lr*K[0],ar=F+lr*H[0],l=K[1]-U*K[0],S=H[1]-U*H[0],vr=0;vr<X;vr++){for(ur=0;ur<J;ur++){for(sr=0;sr<W;sr++){for(nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++)qr=t.call(o,u(n,rr),gr,[rr,ar],[r,e]),qr!==void 0&&v(s,ar,a(qr)),rr+=f,ar+=x,gr+=1;rr+=l,ar+=S}rr+=p,ar+=w}rr+=m,ar+=A}rr+=d,ar+=_}rr+=y,ar+=b}rr+=h,ar+=E}rr+=g,ar+=q}}Wz.exports=JDr});var Kz=c((Bce,Xz)=>{"use strict";var XDr=Fr(),KDr=Br();function HDr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,kr,Rr;for(Or=XDr(r.shape,r.strides,e.strides),$=Or.sh,ar=Or.sx,er=Or.sy,i=KDr(r.dtype,e.dtype),ir=r.offset,tr=e.offset,n=r.data,s=e.data,f=ar[0],S=er[0],u=r.accessors[0],v=e.accessors[1],Rr=0,jr=$[8];jr>0;)for(jr<i?(rr=jr,jr=0):(rr=i,jr-=i),B=ir+jr*ar[8],G=tr+jr*er[8],Tr=$[7];Tr>0;)for(Tr<i?(Z=Tr,Tr=0):(Z=i,Tr-=i),x=ar[8]-Z*ar[7],j=er[8]-Z*er[7],R=B+Tr*ar[7],M=G+Tr*er[7],_r=$[6];_r>0;)for(_r<i?(Q=_r,_r=0):(Q=i,_r-=i),g=ar[7]-Q*ar[6],T=er[7]-Q*er[6],F=R+_r*ar[6],U=M+_r*er[6],Ar=$[5];Ar>0;)for(Ar<i?(H=Ar,Ar=0):(H=i,Ar-=i),h=ar[6]-H*ar[5],q=er[6]-H*er[5],N=F+Ar*ar[5],P=U+Ar*er[5],gr=$[4];gr>0;)for(gr<i?(K=gr,gr=0):(K=i,gr-=i),y=ar[5]-K*ar[4],E=er[5]-K*er[4],k=N+gr*ar[4],L=P+gr*er[4],qr=$[3];qr>0;)for(qr<i?(X=qr,qr=0):(X=i,qr-=i),d=ar[4]-X*ar[3],b=er[4]-X*er[3],D=k+qr*ar[3],C=L+qr*er[3],xr=$[2];xr>0;)for(xr<i?(J=xr,xr=0):(J=i,xr-=i),m=ar[3]-J*ar[2],_=er[3]-J*er[2],I=D+xr*ar[2],z=C+xr*er[2],wr=$[1];wr>0;)for(wr<i?(W=wr,wr=0):(W=i,wr-=i),p=ar[2]-W*ar[1],A=er[2]-W*er[1],O=I+wr*ar[1],V=z+wr*er[1],br=$[0];br>0;)for(br<i?(Y=br,br=0):(Y=i,br-=i),or=O+br*ar[0],nr=V+br*er[0],l=ar[1]-Y*ar[0],w=er[1]-Y*er[0],hr=0;hr<rr;hr++){for(mr=0;mr<Z;mr++){for(dr=0;dr<Q;dr++){for(yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++)kr=t.call(o,u(n,or),Rr,[or,nr],[r,e]),kr!==void 0&&v(s,nr,a(kr)),or+=f,nr+=S,Rr+=1;or+=l,nr+=w}or+=p,nr+=A}or+=m,nr+=_}or+=d,nr+=b}or+=y,nr+=E}or+=h,nr+=q}or+=g,nr+=T}or+=x,nr+=j}}Xz.exports=HDr});var Zz=c((Fce,Hz)=>{"use strict";var ZDr=Fr(),QDr=Br();function rkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,kr,Rr,Hr,ie,Ne,ua,mt,Ls,Ps;for(mt=ZDr(r.shape,r.strides,e.strides),X=mt.sh,nr=mt.sx,sr=mt.sy,i=QDr(r.dtype,e.dtype),ur=r.offset,vr=e.offset,n=r.data,s=e.data,f=nr[0],w=sr[0],u=r.accessors[0],v=e.accessors[1],Ps=0,ua=X[9];ua>0;)for(ua<i?(or=ua,ua=0):(or=i,ua-=i),C=ur+ua*nr[9],J=vr+ua*sr[9],Ne=X[8];Ne>0;)for(Ne<i?(tr=Ne,Ne=0):(tr=i,Ne-=i),S=nr[9]-tr*nr[8],I=sr[9]-tr*sr[8],z=C+Ne*nr[8],W=J+Ne*sr[8],ie=X[7];ie>0;)for(ie<i?(ir=ie,ie=0):(ir=i,ie-=i),x=nr[8]-ir*nr[7],O=sr[8]-ir*sr[7],V=z+ie*nr[7],Y=W+ie*sr[7],Hr=X[6];Hr>0;)for(Hr<i?(er=Hr,Hr=0):(er=i,Hr-=i),g=nr[7]-er*nr[6],j=sr[7]-er*sr[6],B=V+Hr*nr[6],$=Y+Hr*sr[6],Rr=X[5];Rr>0;)for(Rr<i?(ar=Rr,Rr=0):(ar=i,Rr-=i),h=nr[6]-ar*nr[5],T=sr[6]-ar*sr[5],R=B+Rr*nr[5],G=$+Rr*sr[5],kr=X[4];kr>0;)for(kr<i?(rr=kr,kr=0):(rr=i,kr-=i),y=nr[5]-rr*nr[4],q=sr[5]-rr*sr[4],F=R+kr*nr[4],M=G+kr*sr[4],Or=X[3];Or>0;)for(Or<i?(Z=Or,Or=0):(Z=i,Or-=i),d=nr[4]-Z*nr[3],E=sr[4]-Z*sr[3],N=F+Or*nr[3],U=M+Or*sr[3],jr=X[2];jr>0;)for(jr<i?(Q=jr,jr=0):(Q=i,jr-=i),m=nr[3]-Q*nr[2],b=sr[3]-Q*sr[2],k=N+jr*nr[2],P=U+jr*sr[2],Tr=X[1];Tr>0;)for(Tr<i?(H=Tr,Tr=0):(H=i,Tr-=i),p=nr[2]-H*nr[1],_=sr[2]-H*sr[1],D=k+Tr*nr[1],L=P+Tr*sr[1],_r=X[0];_r>0;)for(_r<i?(K=_r,_r=0):(K=i,_r-=i),lr=D+_r*nr[0],fr=L+_r*sr[0],l=nr[1]-K*nr[0],A=sr[1]-K*sr[0],Ar=0;Ar<or;Ar++){for(gr=0;gr<tr;gr++){for(qr=0;qr<ir;qr++){for(xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++)Ls=t.call(o,u(n,lr),Ps,[lr,fr],[r,e]),Ls!==void 0&&v(s,fr,a(Ls)),lr+=f,fr+=w,Ps+=1;lr+=l,fr+=A}lr+=p,fr+=_}lr+=m,fr+=b}lr+=d,fr+=E}lr+=y,fr+=q}lr+=h,fr+=T}lr+=g,fr+=j}lr+=x,fr+=O}lr+=S,fr+=I}}Hz.exports=rkr});var rC=c((Rce,Qz)=>{"use strict";var ekr=Fr(),akr=Br();function tkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I;for(j=ekr(r.shape,r.strides,e.strides),d=j.sh,g=j.sx,x=j.sy,i=akr(r.dtype,e.dtype),S=r.offset,w=e.offset,n=r.data,s=e.data,u=g[0],f=x[0],I=0,T=d[1];T>0;)for(T<i?(h=T,T=0):(h=i,T-=i),p=S+T*g[1],m=w+T*x[1],q=d[0];q>0;)for(q<i?(y=q,q=0):(y=i,q-=i),A=p+q*g[0],_=m+q*x[0],v=g[1]-y*g[0],l=x[1]-y*x[0],E=0;E<h;E++){for(b=0;b<y;b++)O=t.call(o,n[A],I,[A,_],[r,e]),O!==void 0&&(s[_]=a(O)),A+=u,_+=f,I+=1;A+=v,_+=l}}Qz.exports=tkr});var aC=c((Vce,eC)=>{"use strict";var ikr=Fr(),okr=Br();function nkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V;for(R=ikr(r.shape,r.strides,e.strides),x=R.sh,_=R.sx,b=R.sy,i=okr(r.dtype,e.dtype),E=r.offset,q=e.offset,n=r.data,s=e.data,u=_[0],l=b[0],V=0,F=x[2];F>0;)for(F<i?(A=F,F=0):(A=i,F-=i),y=E+F*_[2],g=q+F*b[2],N=x[1];N>0;)for(N<i?(w=N,N=0):(w=i,N-=i),f=_[2]-w*_[1],m=b[2]-w*b[1],d=y+N*_[1],h=g+N*b[1],k=x[0];k>0;)for(k<i?(S=k,k=0):(S=i,k-=i),T=d+k*_[0],j=h+k*b[0],v=_[1]-S*_[0],p=b[1]-S*b[0],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++)B=t.call(o,n[T],V,[T,j],[r,e]),B!==void 0&&(s[j]=a(B)),T+=u,j+=l,V+=1;T+=v,j+=p}T+=f,j+=m}}eC.exports=nkr});var iC=c((zce,tC)=>{"use strict";var skr=Fr(),ukr=Br();function vkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G;for(U=skr(r.shape,r.strides,e.strides),_=U.sh,j=U.sx,O=U.sy,i=ukr(r.dtype,e.dtype),I=r.offset,D=e.offset,n=r.data,s=e.data,u=j[0],p=O[0],G=0,P=_[3];P>0;)for(P<i?(T=P,P=0):(T=i,P-=i),x=I+P*j[3],A=D+P*O[3],L=_[2];L>0;)for(L<i?(q=L,L=0):(q=i,L-=i),l=j[3]-q*j[2],y=O[3]-q*O[2],g=x+L*j[2],w=A+L*O[2],C=_[1];C>0;)for(C<i?(E=C,C=0):(E=i,C-=i),f=j[2]-E*j[1],d=O[2]-E*O[1],h=g+C*j[1],S=w+C*O[1],z=_[0];z>0;)for(z<i?(b=z,z=0):(b=i,z-=i),k=h+z*j[0],N=S+z*O[0],v=j[1]-b*j[0],m=O[1]-b*O[0],V=0;V<T;V++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<b;F++)M=t.call(o,n[k],G,[k,N],[r,e]),M!==void 0&&(s[N]=a(M)),k+=u,N+=p,G+=1;k+=v,N+=m}k+=f,N+=d}k+=l,N+=y}}tC.exports=vkr});var nC=c((Cce,oC)=>{"use strict";var fkr=Fr(),lkr=Br();function ckr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H;for(X=fkr(r.shape,r.strides,e.strides),T=X.sh,N=X.sx,F=X.sy,i=lkr(r.dtype,e.dtype),R=r.offset,B=e.offset,n=r.data,s=e.data,u=N[0],m=F[0],H=0,J=T[4];J>0;)for(J<i?(k=J,J=0):(k=i,J-=i),A=R+J*N[4],q=B+J*F[4],W=T[3];W>0;)for(W<i?(D=W,W=0):(D=i,W-=i),p=N[4]-D*N[3],g=F[4]-D*F[3],w=A+W*N[3],E=q+W*F[3],Y=T[2];Y>0;)for(Y<i?(I=Y,Y=0):(I=i,Y-=i),l=N[3]-I*N[2],h=F[3]-I*F[2],S=w+Y*N[2],b=E+Y*F[2],$=T[1];$>0;)for($<i?(O=$,$=0):(O=i,$-=i),f=N[2]-O*N[1],y=F[2]-O*F[1],x=S+$*N[1],_=b+$*F[1],G=T[0];G>0;)for(G<i?(j=G,G=0):(j=i,G-=i),V=x+G*N[0],z=_+G*F[0],v=N[1]-j*N[0],d=F[1]-j*F[0],M=0;M<k;M++){for(U=0;U<D;U++){for(P=0;P<I;P++){for(L=0;L<O;L++){for(C=0;C<j;C++)K=t.call(o,n[V],H,[V,z],[r,e]),K!==void 0&&(s[z]=a(K)),V+=u,z+=m,H+=1;V+=v,z+=d}V+=f,z+=y}V+=l,z+=h}V+=p,z+=g}}oC.exports=ckr});var uC=c((Lce,sC)=>{"use strict";var dkr=Fr(),pkr=Br();function ykr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr;for(er=dkr(r.shape,r.strides,e.strides),D=er.sh,z=er.sx,C=er.sy,i=pkr(r.dtype,e.dtype),L=r.offset,P=e.offset,n=r.data,s=e.data,u=z[0],d=C[0],tr=0,ar=D[5];ar>0;)for(ar<i?(V=ar,ar=0):(V=i,ar-=i),E=L+ar*z[5],I=P+ar*C[5],rr=D[4];rr>0;)for(rr<i?(B=rr,rr=0):(B=i,rr-=i),m=z[5]-B*z[4],S=C[5]-B*C[4],b=E+rr*z[4],O=I+rr*C[4],Z=D[3];Z>0;)for(Z<i?(R=Z,Z=0):(R=i,Z-=i),p=z[4]-R*z[3],x=C[4]-R*C[3],_=b+Z*z[3],j=O+Z*C[3],Q=D[2];Q>0;)for(Q<i?(F=Q,Q=0):(F=i,Q-=i),l=z[3]-F*z[2],g=C[3]-F*C[2],A=_+Q*z[2],T=j+Q*C[2],H=D[1];H>0;)for(H<i?(N=H,H=0):(N=i,H-=i),f=z[2]-N*z[1],h=C[2]-N*C[1],w=A+H*z[1],q=T+H*C[1],K=D[0];K>0;)for(K<i?(k=K,K=0):(k=i,K-=i),U=w+K*z[0],M=q+K*C[0],v=z[1]-k*z[0],y=C[1]-k*C[0],X=0;X<V;X++){for(J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++)ir=t.call(o,n[U],tr,[U,M],[r,e]),ir!==void 0&&(s[M]=a(ir)),U+=u,M+=d,tr+=1;U+=v,M+=y}U+=f,M+=h}U+=l,M+=g}U+=p,M+=x}U+=m,M+=S}}sC.exports=ykr});var fC=c((Pce,vC)=>{"use strict";var mkr=Fr(),hkr=Br();function gkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr;for(vr=mkr(r.shape,r.strides,e.strides),R=vr.sh,M=vr.sx,G=vr.sy,i=hkr(r.dtype,e.dtype),$=r.offset,Y=e.offset,n=r.data,s=e.data,u=M[0],y=G[0],fr=0,ur=R[6];ur>0;)for(ur<i?(U=ur,ur=0):(U=i,ur-=i),j=$+ur*M[6],F=Y+ur*G[6],sr=R[5];sr>0;)for(sr<i?(P=sr,sr=0):(P=i,sr-=i),d=M[6]-P*M[5],A=G[6]-P*G[5],T=j+sr*M[5],N=F+sr*G[5],nr=R[4];nr>0;)for(nr<i?(L=nr,nr=0):(L=i,nr-=i),m=M[5]-L*M[4],w=G[5]-L*G[4],q=T+nr*M[4],k=N+nr*G[4],or=R[3];or>0;)for(or<i?(C=or,or=0):(C=i,or-=i),p=M[4]-C*M[3],S=G[4]-C*G[3],E=q+or*M[3],D=k+or*G[3],tr=R[2];tr>0;)for(tr<i?(z=tr,tr=0):(z=i,tr-=i),l=M[3]-z*M[2],x=G[3]-z*G[2],b=E+tr*M[2],I=D+tr*G[2],ir=R[1];ir>0;)for(ir<i?(V=ir,ir=0):(V=i,ir-=i),f=M[2]-V*M[1],g=G[2]-V*G[1],_=b+ir*M[1],O=I+ir*G[1],er=R[0];er>0;)for(er<i?(B=er,er=0):(B=i,er-=i),W=_+er*M[0],J=O+er*G[0],v=M[1]-B*M[0],h=G[1]-B*G[0],ar=0;ar<U;ar++){for(rr=0;rr<P;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<C;Q++){for(H=0;H<z;H++){for(K=0;K<V;K++){for(X=0;X<B;X++)lr=t.call(o,n[W],fr,[W,J],[r,e]),lr!==void 0&&(s[J]=a(lr)),W+=u,J+=y,fr+=1;W+=v,J+=h}W+=f,J+=g}W+=l,J+=x}W+=p,J+=S}W+=m,J+=w}W+=d,J+=A}}vC.exports=gkr});var cC=c((Uce,lC)=>{"use strict";var bkr=Fr(),xkr=Br();function qkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr;for(br=bkr(r.shape,r.strides,e.strides),C=br.sh,J=br.sx,X=br.sy,i=xkr(r.dtype,e.dtype),K=r.offset,H=e.offset,n=r.data,s=e.data,u=J[0],h=X[0],xr=0,hr=C[7];hr>0;)for(hr<i?(W=hr,hr=0):(W=i,hr-=i),D=K+hr*J[7],z=H+hr*X[7],mr=C[6];mr>0;)for(mr<i?(Y=mr,mr=0):(Y=i,mr-=i),y=J[7]-Y*J[6],b=X[7]-Y*X[6],I=D+mr*J[6],V=z+mr*X[6],dr=C[5];dr>0;)for(dr<i?($=dr,dr=0):($=i,dr-=i),d=J[6]-$*J[5],_=X[6]-$*X[5],O=I+dr*J[5],B=V+dr*X[5],yr=C[4];yr>0;)for(yr<i?(G=yr,yr=0):(G=i,yr-=i),m=J[5]-G*J[4],A=X[5]-G*X[4],j=O+yr*J[4],R=B+yr*X[4],fr=C[3];fr>0;)for(fr<i?(M=fr,fr=0):(M=i,fr-=i),p=J[4]-M*J[3],w=X[4]-M*X[3],T=j+fr*J[3],F=R+fr*X[3],lr=C[2];lr>0;)for(lr<i?(U=lr,lr=0):(U=i,lr-=i),l=J[3]-U*J[2],S=X[3]-U*X[2],q=T+lr*J[2],N=F+lr*X[2],vr=C[1];vr>0;)for(vr<i?(P=vr,vr=0):(P=i,vr-=i),f=J[2]-P*J[1],x=X[2]-P*X[1],E=q+vr*J[1],k=N+vr*X[1],ur=C[0];ur>0;)for(ur<i?(L=ur,ur=0):(L=i,ur-=i),Q=E+ur*J[0],Z=k+ur*X[0],v=J[1]-L*J[0],g=X[1]-L*X[0],sr=0;sr<W;sr++){for(nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<L;rr++)wr=t.call(o,n[Q],xr,[Q,Z],[r,e]),wr!==void 0&&(s[Z]=a(wr)),Q+=u,Z+=h,xr+=1;Q+=v,Z+=g}Q+=f,Z+=x}Q+=l,Z+=S}Q+=p,Z+=w}Q+=m,Z+=A}Q+=d,Z+=_}Q+=y,Z+=b}}lC.exports=qkr});var pC=c((Mce,dC)=>{"use strict";var wkr=Fr(),Skr=Br();function Ekr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or;for(Tr=wkr(r.shape,r.strides,e.strides),M=Tr.sh,Z=Tr.sx,rr=Tr.sy,i=Skr(r.dtype,e.dtype),ar=r.offset,er=e.offset,n=r.data,s=e.data,u=Z[0],g=rr[0],Or=0,_r=M[8];_r>0;)for(_r<i?(Q=_r,_r=0):(Q=i,_r-=i),F=ar+_r*Z[8],U=er+_r*rr[8],Ar=M[7];Ar>0;)for(Ar<i?(H=Ar,Ar=0):(H=i,Ar-=i),h=Z[8]-H*Z[7],q=rr[8]-H*rr[7],N=F+Ar*Z[7],P=U+Ar*rr[7],gr=M[6];gr>0;)for(gr<i?(K=gr,gr=0):(K=i,gr-=i),y=Z[7]-K*Z[6],E=rr[7]-K*rr[6],k=N+gr*Z[6],L=P+gr*rr[6],qr=M[5];qr>0;)for(qr<i?(X=qr,qr=0):(X=i,qr-=i),d=Z[6]-X*Z[5],b=rr[6]-X*rr[5],D=k+qr*Z[5],C=L+qr*rr[5],xr=M[4];xr>0;)for(xr<i?(J=xr,xr=0):(J=i,xr-=i),m=Z[5]-J*Z[4],_=rr[5]-J*rr[4],I=D+xr*Z[4],z=C+xr*rr[4],wr=M[3];wr>0;)for(wr<i?(W=wr,wr=0):(W=i,wr-=i),p=Z[4]-W*Z[3],A=rr[4]-W*rr[3],O=I+wr*Z[3],V=z+wr*rr[3],br=M[2];br>0;)for(br<i?(Y=br,br=0):(Y=i,br-=i),l=Z[3]-Y*Z[2],w=rr[3]-Y*rr[2],j=O+br*Z[2],B=V+br*rr[2],hr=M[1];hr>0;)for(hr<i?($=hr,hr=0):($=i,hr-=i),f=Z[2]-$*Z[1],S=rr[2]-$*rr[1],T=j+hr*Z[1],R=B+hr*rr[1],mr=M[0];mr>0;)for(mr<i?(G=mr,mr=0):(G=i,mr-=i),ir=T+mr*Z[0],tr=R+mr*rr[0],v=Z[1]-G*Z[0],x=rr[1]-G*rr[0],dr=0;dr<Q;dr++){for(yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++)jr=t.call(o,n[ir],Or,[ir,tr],[r,e]),jr!==void 0&&(s[tr]=a(jr)),ir+=u,tr+=g,Or+=1;ir+=v,tr+=x}ir+=f,tr+=S}ir+=l,tr+=w}ir+=p,tr+=A}ir+=m,tr+=_}ir+=d,tr+=b}ir+=y,tr+=E}ir+=h,tr+=q}}dC.exports=Ekr});var mC=c((Gce,yC)=>{"use strict";var Akr=Fr(),_kr=Br();function Tkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,kr,Rr,Hr,ie,Ne,ua,mt;for(Ne=Akr(r.shape,r.strides,e.strides),W=Ne.sh,tr=Ne.sx,or=Ne.sy,i=_kr(r.dtype,e.dtype),nr=r.offset,sr=e.offset,n=r.data,s=e.data,u=tr[0],x=or[0],mt=0,ie=W[9];ie>0;)for(ie<i?(ir=ie,ie=0):(ir=i,ie-=i),V=nr+ie*tr[9],Y=sr+ie*or[9],Hr=W[8];Hr>0;)for(Hr<i?(er=Hr,Hr=0):(er=i,Hr-=i),g=tr[9]-er*tr[8],j=or[9]-er*or[8],B=V+Hr*tr[8],$=Y+Hr*or[8],Rr=W[7];Rr>0;)for(Rr<i?(ar=Rr,Rr=0):(ar=i,Rr-=i),h=tr[8]-ar*tr[7],T=or[8]-ar*or[7],R=B+Rr*tr[7],G=$+Rr*or[7],kr=W[6];kr>0;)for(kr<i?(rr=kr,kr=0):(rr=i,kr-=i),y=tr[7]-rr*tr[6],q=or[7]-rr*or[6],F=R+kr*tr[6],M=G+kr*or[6],Or=W[5];Or>0;)for(Or<i?(Z=Or,Or=0):(Z=i,Or-=i),d=tr[6]-Z*tr[5],E=or[6]-Z*or[5],N=F+Or*tr[5],U=M+Or*or[5],jr=W[4];jr>0;)for(jr<i?(Q=jr,jr=0):(Q=i,jr-=i),m=tr[5]-Q*tr[4],b=or[5]-Q*or[4],k=N+jr*tr[4],P=U+jr*or[4],Tr=W[3];Tr>0;)for(Tr<i?(H=Tr,Tr=0):(H=i,Tr-=i),p=tr[4]-H*tr[3],_=or[4]-H*or[3],D=k+Tr*tr[3],L=P+Tr*or[3],_r=W[2];_r>0;)for(_r<i?(K=_r,_r=0):(K=i,_r-=i),l=tr[3]-K*tr[2],A=or[3]-K*or[2],I=D+_r*tr[2],C=L+_r*or[2],Ar=W[1];Ar>0;)for(Ar<i?(X=Ar,Ar=0):(X=i,Ar-=i),f=tr[2]-X*tr[1],w=or[2]-X*or[1],O=I+Ar*tr[1],z=C+Ar*or[1],gr=W[0];gr>0;)for(gr<i?(J=gr,gr=0):(J=i,gr-=i),ur=O+gr*tr[0],vr=z+gr*or[0],v=tr[1]-J*tr[0],S=or[1]-J*or[0],qr=0;qr<ir;qr++){for(xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++)ua=t.call(o,n[ur],mt,[ur,vr],[r,e]),ua!==void 0&&(s[vr]=a(ua)),ur+=u,vr+=x,mt+=1;ur+=v,vr+=S}ur+=f,vr+=w}ur+=l,vr+=A}ur+=p,vr+=_}ur+=m,vr+=b}ur+=d,vr+=E}ur+=y,vr+=q}ur+=h,vr+=T}ur+=g,vr+=j}}yC.exports=Tkr});var gC=c((Yce,hC)=>{"use strict";function jkr(r,e,a,t,o){var i=r.offset,n=e.offset,s=t.call(o,r.accessors[0](r.data,i),0,[i,n],[r,e]);s!==void 0&&e.accessors[1](e.data,n,a(s))}hC.exports=jkr});var xC=c(($ce,bC)=>{"use strict";function Ikr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h;for(l=r.shape[0],v=r.strides[0],f=e.strides[0],p=r.offset,m=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],h=0,d=0;d<l;d++)y=t.call(o,s(i,p),h,[p,m],[r,e]),y!==void 0&&u(n,m,a(y)),p+=v,m+=f,h+=1}bC.exports=Ikr});var wC=c((Wce,qC)=>{"use strict";function Okr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b;for(m=r.shape,h=r.strides,g=e.strides,r.order==="row-major"?(d=m[1],y=m[0],v=h[1],f=h[0]-d*h[1],l=g[1],p=g[0]-d*g[1]):(d=m[0],y=m[1],v=h[0],f=h[1]-d*h[0],l=g[0],p=g[1]-d*g[0]),x=r.offset,S=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],b=0,A=0;A<y;A++){for(w=0;w<d;w++)_=t.call(o,s(i,x),b,[x,S],[r,e]),_!==void 0&&u(n,S,a(_)),x+=v,S+=l,b+=1;x+=f,S+=p}}qC.exports=Okr});var EC=c((Jce,SC)=>{"use strict";function Nkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j;for(y=r.shape,S=r.strides,w=e.strides,r.order==="row-major"?(h=y[2],g=y[1],x=y[0],v=S[2],f=S[1]-h*S[2],l=S[0]-g*S[1],p=w[2],m=w[1]-h*w[2],d=w[0]-g*w[1]):(h=y[0],g=y[1],x=y[2],v=S[0],f=S[1]-h*S[0],l=S[2]-g*S[1],p=w[0],m=w[1]-h*w[0],d=w[2]-g*w[1]),A=r.offset,_=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],j=0,q=0;q<x;q++){for(E=0;E<g;E++){for(b=0;b<h;b++)T=t.call(o,s(i,A),j,[A,_],[r,e]),T!==void 0&&u(n,_,a(T)),A+=v,_+=p,j+=1;A+=f,_+=m}A+=l,_+=d}}SC.exports=Nkr});var _C=c((Xce,AC)=>{"use strict";function Dkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k;for(g=r.shape,_=r.strides,b=e.strides,r.order==="row-major"?(x=g[3],S=g[2],w=g[1],A=g[0],v=_[3],f=_[2]-x*_[3],l=_[1]-S*_[2],p=_[0]-w*_[1],m=b[3],d=b[2]-x*b[3],y=b[1]-S*b[2],h=b[0]-w*b[1]):(x=g[0],S=g[1],w=g[2],A=g[3],v=_[0],f=_[1]-x*_[0],l=_[2]-S*_[1],p=_[3]-w*_[2],m=b[0],d=b[1]-x*b[0],y=b[2]-S*b[1],h=b[3]-w*b[2]),E=r.offset,q=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],k=0,I=0;I<A;I++){for(O=0;O<w;O++){for(j=0;j<S;j++){for(T=0;T<x;T++)D=t.call(o,s(i,E),k,[E,q],[r,e]),D!==void 0&&u(n,q,a(D)),E+=v,q+=m,k+=1;E+=f,q+=d}E+=l,q+=y}E+=p,q+=h}}AC.exports=Dkr});var jC=c((Kce,TC)=>{"use strict";function kkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B;for(S=r.shape,q=r.strides,T=e.strides,r.order==="row-major"?(w=S[4],A=S[3],_=S[2],b=S[1],E=S[0],v=q[4],f=q[3]-w*q[4],l=q[2]-A*q[3],p=q[1]-_*q[2],m=q[0]-b*q[1],d=T[4],y=T[3]-w*T[4],h=T[2]-A*T[3],g=T[1]-_*T[2],x=T[0]-b*T[1]):(w=S[0],A=S[1],_=S[2],b=S[3],E=S[4],v=q[0],f=q[1]-w*q[0],l=q[2]-A*q[1],p=q[3]-_*q[2],m=q[4]-b*q[3],d=T[0],y=T[1]-w*T[0],h=T[2]-A*T[1],g=T[3]-_*T[2],x=T[4]-b*T[3]),j=r.offset,O=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],B=0,F=0;F<E;F++){for(N=0;N<b;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++)R=t.call(o,s(i,j),B,[j,O],[r,e]),R!==void 0&&u(n,O,a(R)),j+=v,O+=d,B+=1;j+=f,O+=y}j+=l,O+=h}j+=p,O+=g}j+=m,O+=x}}TC.exports=kkr});var OC=c((Hce,IC)=>{"use strict";function Bkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L;for(A=r.shape,O=r.strides,I=e.strides,r.order==="row-major"?(_=A[5],b=A[4],E=A[3],q=A[2],T=A[1],j=A[0],v=O[5],f=O[4]-_*O[5],l=O[3]-b*O[4],p=O[2]-E*O[3],m=O[1]-q*O[2],d=O[0]-T*O[1],y=I[5],h=I[4]-_*I[5],g=I[3]-b*I[4],x=I[2]-E*I[3],S=I[1]-q*I[2],w=I[0]-T*I[1]):(_=A[0],b=A[1],E=A[2],q=A[3],T=A[4],j=A[5],v=O[0],f=O[1]-_*O[0],l=O[2]-b*O[1],p=O[3]-E*O[2],m=O[4]-q*O[3],d=O[5]-T*O[4],y=I[0],h=I[1]-_*I[0],g=I[2]-b*I[1],x=I[3]-E*I[2],S=I[4]-q*I[3],w=I[5]-T*I[4]),D=r.offset,k=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],L=0,z=0;z<j;z++){for(V=0;V<T;V++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<b;F++){for(N=0;N<_;N++)C=t.call(o,s(i,D),L,[D,k],[r,e]),C!==void 0&&u(n,k,a(C)),D+=v,k+=y,L+=1;D+=f,k+=h}D+=l,k+=g}D+=p,k+=x}D+=m,k+=S}D+=d,k+=w}}IC.exports=Bkr});var DC=c((Zce,NC)=>{"use strict";function Fkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G;for(b=r.shape,k=r.strides,N=e.strides,r.order==="row-major"?(E=b[6],q=b[5],T=b[4],j=b[3],O=b[2],I=b[1],D=b[0],v=k[6],f=k[5]-E*k[6],l=k[4]-q*k[5],p=k[3]-T*k[4],m=k[2]-j*k[3],d=k[1]-O*k[2],y=k[0]-I*k[1],h=N[6],g=N[5]-E*N[6],x=N[4]-q*N[5],S=N[3]-T*N[4],w=N[2]-j*N[3],A=N[1]-O*N[2],_=N[0]-I*N[1]):(E=b[0],q=b[1],T=b[2],j=b[3],O=b[4],I=b[5],D=b[6],v=k[0],f=k[1]-E*k[0],l=k[2]-q*k[1],p=k[3]-T*k[2],m=k[4]-j*k[3],d=k[5]-O*k[4],y=k[6]-I*k[5],h=N[0],g=N[1]-E*N[0],x=N[2]-q*N[1],S=N[3]-T*N[2],w=N[4]-j*N[3],A=N[5]-O*N[4],_=N[6]-I*N[5]),F=r.offset,R=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],G=0,U=0;U<D;U++){for(P=0;P<I;P++){for(L=0;L<O;L++){for(C=0;C<j;C++){for(z=0;z<T;z++){for(V=0;V<q;V++){for(B=0;B<E;B++)M=t.call(o,s(i,F),G,[F,R],[r,e]),M!==void 0&&u(n,R,a(M)),F+=v,R+=h,G+=1;F+=f,R+=g}F+=l,R+=x}F+=p,R+=S}F+=m,R+=w}F+=d,R+=A}F+=y,R+=_}}NC.exports=Fkr});var BC=c((Qce,kC)=>{"use strict";function Rkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J;for(q=r.shape,R=r.strides,B=e.strides,r.order==="row-major"?(T=q[7],j=q[6],O=q[5],I=q[4],D=q[3],k=q[2],N=q[1],F=q[0],v=R[7],f=R[6]-T*R[7],l=R[5]-j*R[6],p=R[4]-O*R[5],m=R[3]-I*R[4],d=R[2]-D*R[3],y=R[1]-k*R[2],h=R[0]-N*R[1],g=B[7],x=B[6]-T*B[7],S=B[5]-j*B[6],w=B[4]-O*B[5],A=B[3]-I*B[4],_=B[2]-D*B[3],b=B[1]-k*B[2],E=B[0]-N*B[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],v=R[0],f=R[1]-T*R[0],l=R[2]-j*R[1],p=R[3]-O*R[2],m=R[4]-I*R[3],d=R[5]-D*R[4],y=R[6]-k*R[5],h=R[7]-N*R[6],g=B[0],x=B[1]-T*B[0],S=B[2]-j*B[1],w=B[3]-O*B[2],A=B[4]-I*B[3],_=B[5]-D*B[4],b=B[6]-k*B[5],E=B[7]-N*B[6]),V=r.offset,z=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],J=0,Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<I;U++){for(P=0;P<O;P++){for(L=0;L<j;L++){for(C=0;C<T;C++)W=t.call(o,s(i,V),J,[V,z],[r,e]),W!==void 0&&u(n,z,a(W)),V+=v,z+=g,J+=1;V+=f,z+=x}V+=l,z+=S}V+=p,z+=w}V+=m,z+=A}V+=d,z+=_}V+=y,z+=b}V+=h,z+=E}}kC.exports=Rkr});var RC=c((rde,FC)=>{"use strict";function Vkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q;for(j=r.shape,z=r.strides,C=e.strides,r.order==="row-major"?(O=j[8],I=j[7],D=j[6],k=j[5],N=j[4],F=j[3],R=j[2],B=j[1],V=j[0],v=z[8],f=z[7]-O*z[8],l=z[6]-I*z[7],p=z[5]-D*z[6],m=z[4]-k*z[5],d=z[3]-N*z[4],y=z[2]-F*z[3],h=z[1]-R*z[2],g=z[0]-B*z[1],x=C[8],S=C[7]-O*C[8],w=C[6]-I*C[7],A=C[5]-D*C[6],_=C[4]-k*C[5],b=C[3]-N*C[4],E=C[2]-F*C[3],q=C[1]-R*C[2],T=C[0]-B*C[1]):(O=j[0],I=j[1],D=j[2],k=j[3],N=j[4],F=j[5],R=j[6],B=j[7],V=j[8],v=z[0],f=z[1]-O*z[0],l=z[2]-I*z[1],p=z[3]-D*z[2],m=z[4]-k*z[3],d=z[5]-N*z[4],y=z[6]-F*z[5],h=z[7]-R*z[6],g=z[8]-B*z[7],x=C[0],S=C[1]-O*C[0],w=C[2]-I*C[1],A=C[3]-D*C[2],_=C[4]-k*C[3],b=C[5]-N*C[4],E=C[6]-F*C[5],q=C[7]-R*C[6],T=C[8]-B*C[7]),L=r.offset,P=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],Q=0,K=0;K<V;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(U=0;U<O;U++)H=t.call(o,s(i,L),Q,[L,P],[r,e]),H!==void 0&&u(n,P,a(H)),L+=v,P+=x,Q+=1;L+=f,P+=S}L+=l,P+=w}L+=p,P+=A}L+=m,P+=_}L+=d,P+=b}L+=y,P+=E}L+=h,P+=q}L+=g,P+=T}}FC.exports=Vkr});var zC=c((ede,VC)=>{"use strict";function zkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er;for(I=r.shape,P=r.strides,U=e.strides,r.order==="row-major"?(D=I[9],k=I[8],N=I[7],F=I[6],R=I[5],B=I[4],V=I[3],z=I[2],C=I[1],L=I[0],v=P[9],f=P[8]-D*P[9],l=P[7]-k*P[8],p=P[6]-N*P[7],m=P[5]-F*P[6],d=P[4]-R*P[5],y=P[3]-B*P[4],h=P[2]-V*P[3],g=P[1]-z*P[2],x=P[0]-C*P[1],S=U[9],w=U[8]-D*U[9],A=U[7]-k*U[8],_=U[6]-N*U[7],b=U[5]-F*U[6],E=U[4]-R*U[5],q=U[3]-B*U[4],T=U[2]-V*U[3],j=U[1]-z*U[2],O=U[0]-C*U[1]):(D=I[0],k=I[1],N=I[2],F=I[3],R=I[4],B=I[5],V=I[6],z=I[7],C=I[8],L=I[9],v=P[0],f=P[1]-D*P[0],l=P[2]-k*P[1],p=P[3]-N*P[2],m=P[4]-F*P[3],d=P[5]-R*P[4],y=P[6]-B*P[5],h=P[7]-V*P[6],g=P[8]-z*P[7],x=P[9]-C*P[8],S=U[0],w=U[1]-D*U[0],A=U[2]-k*U[1],_=U[3]-N*U[2],b=U[4]-F*U[3],E=U[5]-R*U[4],q=U[6]-B*U[5],T=U[7]-V*U[6],j=U[8]-z*U[7],O=U[9]-C*U[8]),M=r.offset,G=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],er=0,rr=0;rr<L;rr++){for(Z=0;Z<C;Z++){for(Q=0;Q<z;Q++){for(H=0;H<V;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++)ar=t.call(o,s(i,M),er,[M,G],[r,e]),ar!==void 0&&u(n,G,a(ar)),M+=v,G+=S,er+=1;M+=f,G+=w}M+=l,G+=A}M+=p,G+=_}M+=m,G+=b}M+=d,G+=E}M+=y,G+=q}M+=h,G+=T}M+=g,G+=j}M+=x,G+=O}}VC.exports=zkr});var UC=c((ade,PC)=>{"use strict";var Ckr=Jr(),CC=na(),LC="throw";function Lkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w;for(p=r.shape,v=Ckr(p),i=r.data,n=e.data,m=r.strides,d=e.strides,y=r.offset,h=e.offset,s=r.order,u=e.order,f=r.accessors[0],l=e.accessors[1],w=0;w<v;w++)g=CC(p,m,y,s,w,LC),x=CC(p,d,h,u,w,LC),S=t.call(o,f(i,g),w,[g,x],[r,e]),S!==void 0&&l(n,x,a(S))}PC.exports=Lkr});var GC=c((tde,MC)=>{"use strict";function Pkr(r,e,a,t,o){var i=r.offset,n=e.offset,s=t.call(o,r.data[i],0,[i,n],[r,e]);s!==void 0&&(e.data[n]=a(s))}MC.exports=Pkr});var $C=c((ide,YC)=>{"use strict";function Ukr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d;for(v=r.shape[0],s=r.strides[0],u=e.strides[0],f=r.offset,l=e.offset,i=r.data,n=e.data,d=0,p=0;p<v;p++)m=t.call(o,i[f],d,[f,l],[r,e]),m!==void 0&&(n[l]=a(m)),f+=s,l+=u,d+=1}YC.exports=Ukr});var JC=c((ode,WC)=>{"use strict";function Mkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A;for(l=r.shape,d=r.strides,y=e.strides,r.order==="row-major"?(p=l[1],m=l[0],s=d[1],u=d[0]-p*d[1],v=y[1],f=y[0]-p*y[1]):(p=l[0],m=l[1],s=d[0],u=d[1]-p*d[0],v=y[0],f=y[1]-p*y[0]),h=r.offset,g=e.offset,i=r.data,n=e.data,A=0,S=0;S<m;S++){for(x=0;x<p;x++)w=t.call(o,i[h],A,[h,g],[r,e]),w!==void 0&&(n[g]=a(w)),h+=s,g+=v,A+=1;h+=u,g+=f}}WC.exports=Mkr});var KC=c((nde,XC)=>{"use strict";function Gkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q;for(m=r.shape,g=r.strides,x=e.strides,r.order==="row-major"?(d=m[2],y=m[1],h=m[0],s=g[2],u=g[1]-d*g[2],v=g[0]-y*g[1],f=x[2],l=x[1]-d*x[2],p=x[0]-y*x[1]):(d=m[0],y=m[1],h=m[2],s=g[0],u=g[1]-d*g[0],v=g[2]-y*g[1],f=x[0],l=x[1]-d*x[0],p=x[2]-y*x[1]),S=r.offset,w=e.offset,i=r.data,n=e.data,q=0,b=0;b<h;b++){for(_=0;_<y;_++){for(A=0;A<d;A++)E=t.call(o,i[S],q,[S,w],[r,e]),E!==void 0&&(n[w]=a(E)),S+=s,w+=f,q+=1;S+=u,w+=l}S+=v,w+=p}}XC.exports=Gkr});var ZC=c((sde,HC)=>{"use strict";function Ykr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I;for(y=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(h=y[3],g=y[2],x=y[1],S=y[0],s=w[3],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-x*w[1],l=A[3],p=A[2]-h*A[3],m=A[1]-g*A[2],d=A[0]-x*A[1]):(h=y[0],g=y[1],x=y[2],S=y[3],s=w[0],u=w[1]-h*w[0],v=w[2]-g*w[1],f=w[3]-x*w[2],l=A[0],p=A[1]-h*A[0],m=A[2]-g*A[1],d=A[3]-x*A[2]),_=r.offset,b=e.offset,i=r.data,n=e.data,I=0,j=0;j<S;j++){for(T=0;T<x;T++){for(q=0;q<g;q++){for(E=0;E<h;E++)O=t.call(o,i[_],I,[_,b],[r,e]),O!==void 0&&(n[b]=a(O)),_+=s,b+=l,I+=1;_+=u,b+=p}_+=v,b+=m}_+=f,b+=d}}HC.exports=Ykr});var rL=c((ude,QC)=>{"use strict";function $kr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F;for(g=r.shape,b=r.strides,E=e.strides,r.order==="row-major"?(x=g[4],S=g[3],w=g[2],A=g[1],_=g[0],s=b[4],u=b[3]-x*b[4],v=b[2]-S*b[3],f=b[1]-w*b[2],l=b[0]-A*b[1],p=E[4],m=E[3]-x*E[4],d=E[2]-S*E[3],y=E[1]-w*E[2],h=E[0]-A*E[1]):(x=g[0],S=g[1],w=g[2],A=g[3],_=g[4],s=b[0],u=b[1]-x*b[0],v=b[2]-S*b[1],f=b[3]-w*b[2],l=b[4]-A*b[3],p=E[0],m=E[1]-x*E[0],d=E[2]-S*E[1],y=E[3]-w*E[2],h=E[4]-A*E[3]),q=r.offset,T=e.offset,i=r.data,n=e.data,F=0,k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<x;j++)N=t.call(o,i[q],F,[q,T],[r,e]),N!==void 0&&(n[T]=a(N)),q+=s,T+=p,F+=1;q+=u,T+=m}q+=v,T+=d}q+=f,T+=y}q+=l,T+=h}}QC.exports=$kr});var aL=c((vde,eL)=>{"use strict";function Wkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z;for(S=r.shape,T=r.strides,j=e.strides,r.order==="row-major"?(w=S[5],A=S[4],_=S[3],b=S[2],E=S[1],q=S[0],s=T[5],u=T[4]-w*T[5],v=T[3]-A*T[4],f=T[2]-_*T[3],l=T[1]-b*T[2],p=T[0]-E*T[1],m=j[5],d=j[4]-w*j[5],y=j[3]-A*j[4],h=j[2]-_*j[3],g=j[1]-b*j[2],x=j[0]-E*j[1]):(w=S[0],A=S[1],_=S[2],b=S[3],E=S[4],q=S[5],s=T[0],u=T[1]-w*T[0],v=T[2]-A*T[1],f=T[3]-_*T[2],l=T[4]-b*T[3],p=T[5]-E*T[4],m=j[0],d=j[1]-w*j[0],y=j[2]-A*j[1],h=j[3]-_*j[2],g=j[4]-b*j[3],x=j[5]-E*j[4]),O=r.offset,I=e.offset,i=r.data,n=e.data,z=0,B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<b;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)V=t.call(o,i[O],z,[O,I],[r,e]),V!==void 0&&(n[I]=a(V)),O+=s,I+=m,z+=1;O+=u,I+=d}O+=v,I+=y}O+=f,I+=h}O+=l,I+=g}O+=p,I+=x}}eL.exports=Wkr});var iL=c((fde,tL)=>{"use strict";function Jkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U;for(A=r.shape,I=r.strides,D=e.strides,r.order==="row-major"?(_=A[6],b=A[5],E=A[4],q=A[3],T=A[2],j=A[1],O=A[0],s=I[6],u=I[5]-_*I[6],v=I[4]-b*I[5],f=I[3]-E*I[4],l=I[2]-q*I[3],p=I[1]-T*I[2],m=I[0]-j*I[1],d=D[6],y=D[5]-_*D[6],h=D[4]-b*D[5],g=D[3]-E*D[4],x=D[2]-q*D[3],S=D[1]-T*D[2],w=D[0]-j*D[1]):(_=A[0],b=A[1],E=A[2],q=A[3],T=A[4],j=A[5],O=A[6],s=I[0],u=I[1]-_*I[0],v=I[2]-b*I[1],f=I[3]-E*I[2],l=I[4]-q*I[3],p=I[5]-T*I[4],m=I[6]-j*I[5],d=D[0],y=D[1]-_*D[0],h=D[2]-b*D[1],g=D[3]-E*D[2],x=D[4]-q*D[3],S=D[5]-T*D[4],w=D[6]-j*D[5]),k=r.offset,N=e.offset,i=r.data,n=e.data,U=0,L=0;L<O;L++){for(C=0;C<j;C++){for(z=0;z<T;z++){for(V=0;V<q;V++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(F=0;F<_;F++)P=t.call(o,i[k],U,[k,N],[r,e]),P!==void 0&&(n[N]=a(P)),k+=s,N+=d,U+=1;k+=u,N+=y}k+=v,N+=h}k+=f,N+=g}k+=l,N+=x}k+=p,N+=S}k+=m,N+=w}}tL.exports=Jkr});var nL=c((lde,oL)=>{"use strict";function Xkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y;for(b=r.shape,N=r.strides,F=e.strides,r.order==="row-major"?(E=b[7],q=b[6],T=b[5],j=b[4],O=b[3],I=b[2],D=b[1],k=b[0],s=N[7],u=N[6]-E*N[7],v=N[5]-q*N[6],f=N[4]-T*N[5],l=N[3]-j*N[4],p=N[2]-O*N[3],m=N[1]-I*N[2],d=N[0]-D*N[1],y=F[7],h=F[6]-E*F[7],g=F[5]-q*F[6],x=F[4]-T*F[5],S=F[3]-j*F[4],w=F[2]-O*F[3],A=F[1]-I*F[2],_=F[0]-D*F[1]):(E=b[0],q=b[1],T=b[2],j=b[3],O=b[4],I=b[5],D=b[6],k=b[7],s=N[0],u=N[1]-E*N[0],v=N[2]-q*N[1],f=N[3]-T*N[2],l=N[4]-j*N[3],p=N[5]-O*N[4],m=N[6]-I*N[5],d=N[7]-D*N[6],y=F[0],h=F[1]-E*F[0],g=F[2]-q*F[1],x=F[3]-T*F[2],S=F[4]-j*F[3],w=F[5]-O*F[4],A=F[6]-I*F[5],_=F[7]-D*F[6]),R=r.offset,B=e.offset,i=r.data,n=e.data,Y=0,G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<I;U++){for(P=0;P<O;P++){for(L=0;L<j;L++){for(C=0;C<T;C++){for(z=0;z<q;z++){for(V=0;V<E;V++)$=t.call(o,i[R],Y,[R,B],[r,e]),$!==void 0&&(n[B]=a($)),R+=s,B+=y,Y+=1;R+=u,B+=h}R+=v,B+=g}R+=f,B+=x}R+=l,B+=S}R+=p,B+=w}R+=m,B+=A}R+=d,B+=_}}oL.exports=Xkr});var uL=c((cde,sL)=>{"use strict";function Kkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K;for(q=r.shape,B=r.strides,V=e.strides,r.order==="row-major"?(T=q[8],j=q[7],O=q[6],I=q[5],D=q[4],k=q[3],N=q[2],F=q[1],R=q[0],s=B[8],u=B[7]-T*B[8],v=B[6]-j*B[7],f=B[5]-O*B[6],l=B[4]-I*B[5],p=B[3]-D*B[4],m=B[2]-k*B[3],d=B[1]-N*B[2],y=B[0]-F*B[1],h=V[8],g=V[7]-T*V[8],x=V[6]-j*V[7],S=V[5]-O*V[6],w=V[4]-I*V[5],A=V[3]-D*V[4],_=V[2]-k*V[3],b=V[1]-N*V[2],E=V[0]-F*V[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],R=q[8],s=B[0],u=B[1]-T*B[0],v=B[2]-j*B[1],f=B[3]-O*B[2],l=B[4]-I*B[3],p=B[5]-D*B[4],m=B[6]-k*B[5],d=B[7]-N*B[6],y=B[8]-F*B[7],h=V[0],g=V[1]-T*V[0],x=V[2]-j*V[1],S=V[3]-O*V[2],w=V[4]-I*V[3],A=V[5]-D*V[4],_=V[6]-k*V[5],b=V[7]-N*V[6],E=V[8]-F*V[7]),z=r.offset,C=e.offset,i=r.data,n=e.data,K=0,J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(U=0;U<O;U++){for(P=0;P<j;P++){for(L=0;L<T;L++)X=t.call(o,i[z],K,[z,C],[r,e]),X!==void 0&&(n[C]=a(X)),z+=s,C+=h,K+=1;z+=u,C+=g}z+=v,C+=x}z+=f,C+=S}z+=l,C+=w}z+=p,C+=A}z+=m,C+=_}z+=d,C+=b}z+=y,C+=E}}sL.exports=Kkr});var fL=c((dde,vL)=>{"use strict";function Hkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C,L,P,U,M,G,$,Y,W,J,X,K,H,Q,Z,rr;for(j=r.shape,C=r.strides,L=e.strides,r.order==="row-major"?(O=j[9],I=j[8],D=j[7],k=j[6],N=j[5],F=j[4],R=j[3],B=j[2],V=j[1],z=j[0],s=C[9],u=C[8]-O*C[9],v=C[7]-I*C[8],f=C[6]-D*C[7],l=C[5]-k*C[6],p=C[4]-N*C[5],m=C[3]-F*C[4],d=C[2]-R*C[3],y=C[1]-B*C[2],h=C[0]-V*C[1],g=L[9],x=L[8]-O*L[9],S=L[7]-I*L[8],w=L[6]-D*L[7],A=L[5]-k*L[6],_=L[4]-N*L[5],b=L[3]-F*L[4],E=L[2]-R*L[3],q=L[1]-B*L[2],T=L[0]-V*L[1]):(O=j[0],I=j[1],D=j[2],k=j[3],N=j[4],F=j[5],R=j[6],B=j[7],V=j[8],z=j[9],s=C[0],u=C[1]-O*C[0],v=C[2]-I*C[1],f=C[3]-D*C[2],l=C[4]-k*C[3],p=C[5]-N*C[4],m=C[6]-F*C[5],d=C[7]-R*C[6],y=C[8]-B*C[7],h=C[9]-V*C[8],g=L[0],x=L[1]-O*L[0],S=L[2]-I*L[1],w=L[3]-D*L[2],A=L[4]-k*L[3],_=L[5]-N*L[4],b=L[6]-F*L[5],E=L[7]-R*L[6],q=L[8]-B*L[7],T=L[9]-V*L[8]),P=r.offset,U=e.offset,i=r.data,n=e.data,rr=0,Q=0;Q<z;Q++){for(H=0;H<V;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++)Z=t.call(o,i[P],rr,[P,U],[r,e]),Z!==void 0&&(n[U]=a(Z)),P+=s,U+=g,rr+=1;P+=u,U+=x}P+=v,U+=S}P+=f,U+=w}P+=l,U+=A}P+=p,U+=_}P+=m,U+=b}P+=d,U+=E}P+=y,U+=q}P+=h,U+=T}}vL.exports=Hkr});var pL=c((pde,dL)=>{"use strict";var Zkr=Jr(),lL=na(),cL="throw";function Qkr(r,e,a,t,o){var i,n,s,u,v,f,l,p,m,d,y,h,g,x;for(f=r.shape,v=Zkr(f),i=r.data,n=e.data,l=r.strides,p=e.strides,m=r.offset,d=e.offset,s=r.order,u=e.order,x=0;x<v;x++)y=lL(f,l,m,s,x,cL),h=lL(f,p,d,u,x,cL),g=t.call(o,i[y],x,[y,h],[r,e]),g!==void 0&&(n[h]=a(g))}dL.exports=Qkr});var xL=c((yde,bL)=>{"use strict";var yL=Sa(),mL=et(),hL=ri(),rBr=Rz(),eBr=zz(),aBr=Lz(),tBr=Uz(),iBr=Gz(),oBr=$z(),nBr=Jz(),sBr=Kz(),uBr=Zz(),vBr=rC(),fBr=aC(),lBr=iC(),cBr=nC(),dBr=uC(),pBr=fC(),yBr=cC(),mBr=pC(),hBr=mC(),gBr=gC(),bBr=xC(),xBr=wC(),qBr=EC(),wBr=_C(),SBr=jC(),EBr=OC(),ABr=DC(),_Br=BC(),TBr=RC(),jBr=zC(),IBr=UC(),OBr=GC(),NBr=$C(),DBr=JC(),kBr=KC(),BBr=ZC(),FBr=rL(),RBr=aL(),VBr=iL(),zBr=nL(),CBr=uL(),LBr=fL(),PBr=pL(),ji=[OBr,NBr,DBr,kBr,BBr,FBr,RBr,VBr,zBr,CBr,LBr],ko=[gBr,bBr,xBr,qBr,wBr,SBr,EBr,ABr,_Br,TBr,jBr],UBr=[vBr,fBr,lBr,cBr,dBr,pBr,yBr,mBr,hBr],MBr=[rBr,eBr,aBr,tBr,iBr,oBr,nBr,sBr,uBr],gL=ji.length-1;function GBr(r,e,a,t){var o,i,n,s,u,v,f,l,p,m,d,y,h,g,x,S,w;if(g=hL(r[0]),x=hL(r[1]),s=g.shape,u=x.shape,o=s.length,o!==u.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+o+". ndims(y) == "+u.length+".");if(o===0)return g.accessorProtocol||x.accessorProtocol?ko[o](g,x,e,a,t):ji[o](g,x,e,a,t);for(l=1,h=0,w=0;w<o;w++){if(S=s[w],S!==u[w])throw new Error("invalid arguments. Arrays must have the same shape.");l*=S,S===1&&(h+=1)}if(l!==0){if(o===1)return g.accessorProtocol||x.accessorProtocol?ko[o](g,x,e,a,t):ji[o](g,x,e,a,t);if(p=g.strides,m=x.strides,h===o-1){for(w=0;w<o&&s[w]===1;w++);return g.shape=[s[w]],x.shape=g.shape,g.strides=[p[w]],x.strides=[m[w]],g.accessorProtocol||x.accessorProtocol?ko[1](g,x,e,a,t):ji[1](g,x,e,a,t)}if(v=yL(p),f=yL(m),v!==0&&f!==0&&v===f){if(i=mL(s,p,g.offset),n=mL(u,m,x.offset),l===i[1]-i[0]+1&&l===n[1]-n[0]+1)return v===1?d=i[0]:d=i[1],f===1?y=n[0]:y=n[1],g.shape=[l],x.shape=g.shape,g.strides=[v],x.strides=[f],g.offset=d,x.offset=y,g.accessorProtocol||x.accessorProtocol?ko[1](g,x,e,a,t):ji[1](g,x,e,a,t);if(o<=gL)return g.accessorProtocol||x.accessorProtocol?ko[o](g,x,e,a,t):ji[o](g,x,e,a,t)}if(o<=gL)return g.accessorProtocol||x.accessorProtocol?MBr[o-2](g,x,e,a,t):UBr[o-2](g,x,e,a,t);if(g.accessorProtocol||x.accessorProtocol)return IBr(g,x,e,a,t);PBr(g,x,e,a,t)}}bL.exports=GBr});var wL=c((mde,qL)=>{"use strict";var YBr=xL();qL.exports=YBr});var EL=c((hde,SL)=>{"use strict";var $Br=Mn(),WBr=mf(),JBr=wo(),XBr=ff(),KBr=$n(),HBr=Wn(),ZBr=Gn(),QBr=lf(),rFr=di(),ct=Da(),eFr=pr(),aFr={floating_point:[$Br,ct.get("dtypes.floating_point")],real_floating_point:[WBr,ct.get("dtypes.real_floating_point")],complex_floating_point:[JBr,ct.get("dtypes.complex_floating_point")],integer:[XBr,ct.get("dtypes.integer")],signed_integer:[KBr,ct.get("dtypes.signed_integer")],unsigned_integer:[HBr,ct.get("dtypes.unsigned_integer")],real:[ZBr,ct.get("dtypes.real")],numeric:[QBr,ct.get("dtypes.numeric")]},tFr=ct.get("dtypes.default");function iFr(r,e){var a;if(e==="default")return tFr;if(e==="same"||e==="promoted")return r;if(e==="bool")throw new Error("not implemented");if(a=aFr[e],a===void 0){if(rFr(e))return e;throw new TypeError(eFr("invalid argument. Second argument must be a supported data type policy. Value: `%s`.",e))}return a[0](r)?r:a[1]}SL.exports=iFr});var _L=c((gde,AL)=>{"use strict";var oFr=EL();AL.exports=oFr});var jL=c((bde,TL)=>{"use strict";var nFr=Ve(),sFr=Ye(),uFr=Ba(),vFr=pr(),fFr=aa(),lFr=Jr();function cFr(r,e,a){var t,o,i,n;if(t=e.length,t>0?(i=lFr(e),n=nFr(e,a)):(i=1,n=[0]),o=uFr(r,i),o===null)throw new TypeError(vFr("invalid argument. First argument must be a recognized data type. Value: `%s`.",r));return new fFr(r,o,e,n,sFr(e,n),a)}TL.exports=cFr});var OL=c((xde,IL)=>{"use strict";var dFr=jL();IL.exports=dFr});var DL=c((qde,NL)=>{"use strict";var pFr=Ve(),yFr=Ye(),mFr=Ba(),hFr=Jr(),gFr=Xe(),bFr=Te(),xFr=sa(),qFr=pr();function wFr(r){var e,a,t,o,i,n,s;if(s=gFr(r),i=bFr(r,!0),o=xFr(r),e=i.length,e>0?(a=hFr(i),n=pFr(i,o)):(a=1,n=[0]),t=mFr(s,a),t===null)throw new TypeError(qFr("invalid argument. First argument must have a recognized data type. Value: `%s`.",s));return new r.constructor(s,t,i,n,yFr(i,n),o)}NL.exports=wFr});var BL=c((wde,kL)=>{"use strict";var SFr=DL();kL.exports=SFr});var RL=c((Sde,FL)=>{"use strict";var Er=Rt(),Sr={};Er(Sr,"assert",k8());Er(Sr,"assign",bf());Er(Sr,"binaryLoopOrder",dj());Er(Sr,"binaryBlockSize",bj());Er(Sr,"bind2vind",Oj());Er(Sr,"broadcastArray",_o());Er(Sr,"broadcastArrays",Pj());Er(Sr,"broadcastScalar",Yj());Er(Sr,"broadcastShapes",qi());Er(Sr,"buffer",Ba());Er(Sr,"bufferCtors",go());Er(Sr,"bufferDataType",Rn());Er(Sr,"bufferDataTypeEnum",Xj());Er(Sr,"bytesPerElement",bt());Er(Sr,"char2dtype",sI());Er(Sr,"clampIndex",xn());Er(Sr,"ndarray",aa());Er(Sr,"data",ft());Er(Sr,"dtype",Xe());Er(Sr,"dtypeChar",Af());Er(Sr,"dtypeDesc",pI());Er(Sr,"dtypeEnum2Str",Sn());Er(Sr,"dtypeResolveEnum",jf());Er(Sr,"dtypeResolveStr",ka());Er(Sr,"dtypeStr2Enum",mo());Er(Sr,"dtype2c",wI());Er(Sr,"dtypes2signatures",Of());Er(Sr,"empty",XI());Er(Sr,"emptyLike",QI());Er(Sr,"expandDimensions",sO());Er(Sr,"flag",yf());Er(Sr,"flags",So());Er(Sr,"fliplr",T7());Er(Sr,"flipud",k7());Er(Sr,"forEach",VD());Er(Sr,"scalar2ndarray",PD());Er(Sr,"ind",nt());Er(Sr,"ind2sub",Ai());Er(Sr,"iterationOrder",Sa());Er(Sr,"maxViewBufferIndex",YD());Er(Sr,"maybeBroadcastArray",Uf());Er(Sr,"maybeBroadcastArrays",QD());Er(Sr,"metaDataProps",tk());Er(Sr,"minViewBufferIndex",sk());Er(Sr,"minmaxViewBufferIndex",et());Er(Sr,"ndarraylike2ndarray",lk());Er(Sr,"ndarraylike2object",ri());Er(Sr,"ndims",za());Er(Sr,"nextCartesianIndex",He());Er(Sr,"nonsingletonDimensions",xk());Er(Sr,"normalizeIndex",ya());Er(Sr,"nullary",eF());Er(Sr,"nullaryLoopOrder",Zr());Er(Sr,"nullaryBlockSize",Qr());Er(Sr,"numel",Jr());Er(Sr,"numelDimension",Yf());Er(Sr,"offset",Ka());Er(Sr,"order",sa());Er(Sr,"outputPolicyEnum2Str",as());Er(Sr,"outputPolicyResolveEnum",EF());Er(Sr,"outputPolicyResolveStr",jF());Er(Sr,"outputPolicyStr2Enum",ts());Er(Sr,"prependSingletonDimensions",RF());Er(Sr,"removeSingletonDimensions",GF());Er(Sr,"reverse",JF());Er(Sr,"reverseDimension",Qn());Er(Sr,"serializeMetaData",aR());Er(Sr,"shape",Te());Er(Sr,"shape2strides",Ve());Er(Sr,"singletonDimensions",nR());Er(Sr,"slice",ye());Er(Sr,"sliceAssign",is());Er(Sr,"sliceDimension",Xf());Er(Sr,"sliceDimensionFrom",Kf());Er(Sr,"sliceDimensionTo",Hf());Er(Sr,"sliceFrom",Zf());Er(Sr,"sliceTo",Qf());Er(Sr,"stride",rl());Er(Sr,"strides",ba());Er(Sr,"strides2offset",Ye());Er(Sr,"strides2order",Lt());Er(Sr,"sub2ind",el());Er(Sr,"ndarray2array",al());Er(Sr,"transpose",$R());Er(Sr,"unary",Bz());Er(Sr,"unaryBy",wL());Er(Sr,"unaryLoopOrder",Fr());Er(Sr,"unaryOutputDataType",_L());Er(Sr,"unaryBlockSize",Br());Er(Sr,"vind2bind",na());Er(Sr,"wrapIndex",qn());Er(Sr,"zeros",OL());Er(Sr,"zerosLike",BL());FL.exports=Sr});var zL=c((Ede,VL)=>{"use strict";var EFr=se(),AFr=De(),_Fr=ge().isPrimitive,Bo=Tt(),TFr=Fa(),jFr=oe(),IFr=Ja(),OFr=_t(),NFr=Xa(),DFr=ut(),Fo=pr();function kFr(r,e){var a,t,o,i,n,s,u,v,f;if(!EFr(r))throw new TypeError(Fo("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!AFr(e))throw new TypeError(Fo("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.",e));if(n=e.length,o=jFr(r),s=o.length,n<s)throw new Error("invalid argument. Cannot broadcast an array to a shape having fewer dimensions. Arrays can only be broadcasted to shapes having the same or more dimensions.");for(a=[],v=0;v<n;v++)a.push(0);for(i=IFr(r),v=n-1;v>=0;v--)if(f=s-n+v,!(f<0)){if(u=o[f],t=e[v],!_Fr(t))throw new TypeError(Fo("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.","["+e.join(",")+"]"));if(t!==0&&t<u)throw new Error(Fo("invalid argument. Input array cannot be broadcast to the specified shape, as the specified shape has a dimension whose size is less than the size of the corresponding dimension in the input array. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Bo(o).join(", "),Bo(e).join(", "),v));if(u===t)a[v]=i[f];else if(u===1)a[v]=0;else throw new Error(Fo("invalid argument. Input array and the specified shape are broadcast incompatible. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Bo(o).join(", "),Bo(e).join(", "),v))}return new r.constructor(TFr(r),DFr(r),Bo(e),a,OFr(r),NFr(r),{readonly:!0})}VL.exports=kFr});var os=c((Ade,CL)=>{"use strict";var BFr=zL();CL.exports=BFr});var UL=c((_de,PL)=>{"use strict";var FFr=se(),RFr=ze(),VFr=qi(),zFr=os(),CFr=oe(),LL=pr();function LFr(r){var e,a,t,o,i,n,s;if(a=arguments.length,a===0)t=[];else if(a>1)for(t=[],s=0;s<arguments.length;s++)t.push(arguments[s]);else if(FFr(r))t=[r];else if(RFr(r))t=r;else throw new TypeError(LL("invalid argument. First argument must be either an ndarray or an array of ndarrays. Value: `%s`.",r));for(n=t.length,e=[],s=0;s<n;s++)try{e.push(CFr(t[s]))}catch{throw new TypeError(LL("invalid argument. An ndarray argument must be an ndarray. Value: `%s`.",t[s]))}if(i=VFr(e),i===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(o=[],s=0;s<n;s++)o.push(zFr(t[s],i));return o}PL.exports=LFr});var tl=c((Tde,ML)=>{"use strict";var PFr=UL();ML.exports=PFr});var il=c((jde,GL)=>{"use strict";var UFr=ve().isPrimitive;function MFr(r){return UFr(r)&&r>0}GL.exports=MFr});var ol=c((Ide,YL)=>{"use strict";var GFr=ve().isObject;function YFr(r){return GFr(r)&&r.valueOf()>0}YL.exports=YFr});var WL=c((Ode,$L)=>{"use strict";var $Fr=il(),WFr=ol();function JFr(r){return $Fr(r)||WFr(r)}$L.exports=JFr});var ns=c((Nde,XL)=>{"use strict";var JL=Ir(),nl=WL(),XFr=il(),KFr=ol();JL(nl,"isPrimitive",XFr);JL(nl,"isObject",KFr);XL.exports=nl});var HL=c((Dde,KL)=>{"use strict";var HFr=un(),ZFr=Pe(),QFr=HFr(ZFr);KL.exports=QFr});var QL=c((kde,ZL)=>{"use strict";function rRr(r,e,a,t,o,i,n,s,u){var v,f,l,p;for(v=i,l=0;l<r;l++){for(f=u,p=0;p<e&&a[v+p*o]===n[f];p++)f+=s;if(p===e)return l;v+=t}return-1}ZL.exports=rRr});var iP=c((Bde,tP)=>{"use strict";var rP=ge().isPrimitive,eRr=ns(),aRr=ve().isPrimitive,tRr=HL(),iRr=Pe(),eP=De(),oRr=se(),It=pr(),nRr=Fa(),aP=jf(),sRr=QL();function uRr(r){var e,a;for(e=[],a=0;a<r.length;a++)e.push(aP(r[a]));return e}function vRr(r,e,a,t,o,i){var n,s,u;if(iRr(r))u=r;else if(!tRr(r))throw new TypeError(It("invalid argument. First argument must be either a function or an array of functions. Value: `%s`.",r));if(!eP(e))throw new TypeError(It("invalid argument. Second argument must be an array-like object. Value: `%s`.",e));if(!eP(a)&&a!==null)throw new TypeError(It("invalid argument. Third argument must be an array-like object or null. Value: `%s`.",a));if(!eRr(t))throw new TypeError(It("invalid argument. Fourth argument must be a positive integer. Value: `%s`.",t));if(!rP(o))throw new TypeError(It("invalid argument. Fifth argument must be a nonnegative integer. Value: `%s`.",o));if(!rP(i))throw new TypeError(It("invalid argument. Sixth argument must be a nonnegative integer. Value: `%s`.",i));if(n=o+i,n===0)throw new Error("invalid arguments. Interface must accept at least one input and/or output ndarray. Based on the provided arguments, `nin+nout` equals `0`.");if(t!==n)throw new Error("invalid arguments. Fourth argument does not equal the number of input and output ndarrays.");if(u){if(s=e.length/n,!aRr(s))throw new Error("invalid argument. Unexpected number of types. A type must be specified for each input and output ndarray for each provided ndarray function.")}else if(s=r.length,e.length!==s*n)throw new Error("invalid argument. Unexpected number of types. A type must be specified for each input and output ndarray for each provided ndarray function.");if(a&&a.length!==s)throw new Error("invalid argument. The third argument must have the same number of elements as the first argument.");return e=uRr(e),v;function v(){var f,l,p,m,d,y,h;if(p=arguments.length,p!==t)throw p<t?new Error("invalid invocation. Insufficient arguments."):new Error("invalid invocation. Too many arguments.");for(f=[],l=[],h=0;h<t;h++){if(d=arguments[h],!oRr(d))throw h<o?new TypeError(It("invalid argument. Input array must be an ndarray-like object. Value: `%s`.",d)):new TypeError(It("invalid argument. Output array must be an ndarray-like object. Value: `%s`.",d));f.push(d),l.push(aP(nRr(d)))}if(m=sRr(s,n,e,n,1,0,l,1,0),m<0)throw new TypeError("invalid arguments. Unable to resolve an ndarray function supporting the provided array argument data types.");if(u?y=u:y=r[m],a?y(f,a[m]):y(f),i===1)return f[n-1];if(i!==0)return f.slice(o)}}tP.exports=vRr});var nP=c((Fde,oP)=>{"use strict";var fRr=iP();oP.exports=fRr});var lP=c((Rde,fP)=>{"use strict";var lRr=ne(),ss=Xr(),cRr=sn(),dRr=Ve(),pRr=Ye(),yRr=To(),mRr=At(),hRr=Jr(),gRr=ma(),vP=Da(),sl=pr(),sP=vP.get("dtypes.default"),uP=vP.get("order");function bRr(r){var e,a,t,o,i,n,s,u,v;if(i={},arguments.length>1){if(e=arguments[1],!lRr(e))throw new TypeError(sl("invalid argument. Options argument must be an object. Value: `%s`.",e));ss(e,"dtype")?a=e.dtype:a=sP,ss(e,"order")?t=e.order:t=uP,ss(e,"mode")&&(i.mode=e.mode),ss(e,"submode")&&(i.submode=e.submode)}else a=sP,t=uP;if(typeof r=="number")v=[r];else if(cRr(r))v=r;else throw new TypeError(sl("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));if(o=v.length,o>0){if(s=hRr(v),s!==s||s<0)throw new TypeError(sl("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));u=dRr(v,t)}else s=1,u=[0];return a==="binary"?n=mRr(s):n=yRr(s,a),new gRr(a,n,v,u,pRr(v,u),t,i)}fP.exports=bRr});var dP=c((Vde,cP)=>{"use strict";var xRr=lP();cP.exports=xRr});var gP=c((zde,hP)=>{"use strict";var qRr=se(),wRr=ne(),SRr=Wt().primitives,Ro=Xr(),ERr=Ve(),ARr=Ye(),_Rr=Jr(),pP=Fa(),yP=oe(),mP=Xa(),TRr=ma(),jRr=To(),IRr=At(),ul=pr();function ORr(r){var e,a,t,o,i,n,s,u,v;if(!qRr(r))throw new TypeError(ul("invalid argument. First argument must be an ndarray-like object. Value: `%s`.",r));if(i={},arguments.length>1){if(e=arguments[1],!wRr(e))throw new TypeError(ul("invalid argument. Options argument must be an object. Value: `%s`.",e));if(Ro(e,"dtype")?a=e.dtype:a=pP(r),Ro(e,"shape")){if(v=e.shape,typeof v=="number"&&(v=[v]),!SRr(v))throw new TypeError(ul("invalid option. `%s` option must be a nonnegative integer or an array of nonnegative integers. Option: `%s`.","shape",v))}else v=yP(r);Ro(e,"order")?t=e.order:t=mP(r),Ro(e,"mode")&&(i.mode=e.mode),Ro(e,"submode")&&(i.submode=e.submode)}else a=pP(r),v=yP(r),t=mP(r);return o=v.length,o>0?(s=_Rr(v),u=ERr(v,t)):(s=1,u=[0]),a==="binary"?n=IRr(s):n=jRr(s,a),new TRr(a,n,v,u,ARr(v,u),t,i)}hP.exports=ORr});var xP=c((Cde,bP)=>{"use strict";var NRr=gP();bP.exports=NRr});var wP=c((Lde,qP)=>{"use strict";var DRr=eval;qP.exports=DRr});var EP=c((Pde,SP)=>{"use strict";var kRr=wP();function BRr(){var r;try{kRr('"use strict"; var handler = { "get": function get( t, n ) { return t[ n ] * 100; } }; var target = { "beep": 3.14 }; var p = new Proxy( target, handler ); var x = p.beep; if ( x !== 314 ) { throw new Error( "native Proxy is not supported." ); }'),r=!0}catch{r=!1}return r}SP.exports=BRr});var _P=c((Ude,AP)=>{"use strict";var FRr=EP();AP.exports=FRr});var jP=c((Mde,TP)=>{"use strict";var RRr=typeof Proxy>"u"?null:Proxy;TP.exports=RRr});var OP=c((Gde,IP)=>{"use strict";function VRr(r){return r}IP.exports=VRr});var DP=c((Yde,NP)=>{"use strict";var zRr=_P(),CRr=jP(),LRr=OP(),vl;zRr()?vl=CRr:vl=LRr;NP.exports=vl});var BP=c(($de,kP)=>{"use strict";var PRr=typeof String.prototype.trim<"u";kP.exports=PRr});var fl=c((Wde,FP)=>{"use strict";var URr=String.prototype.trim;FP.exports=URr});var CP=c((Jde,zP)=>{"use strict";var RP=fl(),MRr=`
1
+ "use strict";var np=(()=>{var LK=Object.create;var Wo=Object.defineProperty;var MK=Object.getOwnPropertyDescriptor;var GK=Object.getOwnPropertyNames;var YK=Object.getPrototypeOf,$K=Object.prototype.hasOwnProperty;var c=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),WK=(r,e)=>{for(var a in e)Wo(r,a,{get:e[a],enumerable:!0})},Uc=(r,e,a,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of GK(e))!$K.call(r,o)&&o!==a&&Wo(r,o,{get:()=>e[o],enumerable:!(t=MK(e,o))||t.enumerable});return r};var ra=(r,e,a)=>(a=r!=null?LK(YK(r)):{},Uc(e||!r||!r.__esModule?Wo(a,"default",{value:r,enumerable:!0}):a,r)),JK=r=>Uc(Wo({},"__esModule",{value:!0}),r);var Pc=c((dXr,Cc)=>{"use strict";var XK=typeof Object.defineProperty=="function"?Object.defineProperty:null;Cc.exports=XK});var Mc=c((pXr,Lc)=>{"use strict";var KK=Pc();function HK(){try{return KK({},"x",{}),!0}catch{return!1}}Lc.exports=HK});var Yc=c((yXr,Gc)=>{"use strict";var ZK=Object.defineProperty;Gc.exports=ZK});var Ls=c((mXr,$c)=>{"use strict";function QK(r){return typeof r=="number"}$c.exports=QK});var Ms=c((hXr,Jc)=>{"use strict";function rH(r){return r[0]==="-"}function Wc(r){var e="",a;for(a=0;a<r;a++)e+="0";return e}function eH(r,e,a){var t=!1,o=e-r.length;return o<0||(rH(r)&&(t=!0,r=r.substr(1)),r=a?r+Wc(o):Wc(o)+r,t&&(r="-"+r)),r}Jc.exports=eH});var Zc=c((gXr,Hc)=>{"use strict";var aH=Ls(),Xc=Ms(),tH=String.prototype.toLowerCase,Kc=String.prototype.toUpperCase;function iH(r){var e,a,t;switch(r.specifier){case"b":e=2;break;case"o":e=8;break;case"x":case"X":e=16;break;case"d":case"i":case"u":default:e=10;break}if(a=r.arg,t=parseInt(a,10),!isFinite(t)){if(!aH(a))throw new Error("invalid integer. Value: "+a);t=0}return t<0&&(r.specifier==="u"||e!==10)&&(t=4294967295+t+1),t<0?(a=(-t).toString(e),r.precision&&(a=Xc(a,r.precision,r.padRight)),a="-"+a):(a=t.toString(e),!t&&!r.precision?a="":r.precision&&(a=Xc(a,r.precision,r.padRight)),r.sign&&(a=r.sign+a)),e===16&&(r.alternate&&(a="0x"+a),a=r.specifier===Kc.call(r.specifier)?Kc.call(a):tH.call(a)),e===8&&r.alternate&&a.charAt(0)!=="0"&&(a="0"+a),a}Hc.exports=iH});var rd=c((bXr,Qc)=>{"use strict";function oH(r){return typeof r=="string"}Qc.exports=oH});var td=c((xXr,ad)=>{"use strict";var nH=Ls(),sH=Math.abs,uH=String.prototype.toLowerCase,ed=String.prototype.toUpperCase,Ft=String.prototype.replace,vH=/e\+(\d)$/,fH=/e-(\d)$/,lH=/^(\d+)$/,cH=/^(\d+)e/,dH=/\.0$/,pH=/\.0*e/,yH=/(\..*[^0])0*e/;function mH(r){var e,a,t=parseFloat(r.arg);if(!isFinite(t)){if(!nH(r.arg))throw new Error("invalid floating-point number. Value: "+a);t=r.arg}switch(r.specifier){case"e":case"E":a=t.toExponential(r.precision);break;case"f":case"F":a=t.toFixed(r.precision);break;case"g":case"G":sH(t)<1e-4?(e=r.precision,e>0&&(e-=1),a=t.toExponential(e)):a=t.toPrecision(r.precision),r.alternate||(a=Ft.call(a,yH,"$1e"),a=Ft.call(a,pH,"e"),a=Ft.call(a,dH,""));break;default:throw new Error("invalid double notation. Value: "+r.specifier)}return a=Ft.call(a,vH,"e+0$1"),a=Ft.call(a,fH,"e-0$1"),r.alternate&&(a=Ft.call(a,lH,"$1."),a=Ft.call(a,cH,"$1.e")),t>=0&&r.sign&&(a=r.sign+a),a=r.specifier===ed.call(r.specifier)?ed.call(a):uH.call(a),a}ad.exports=mH});var nd=c((qXr,od)=>{"use strict";function id(r){var e="",a;for(a=0;a<r;a++)e+=" ";return e}function hH(r,e,a){var t=e-r.length;return t<0||(r=a?r+id(t):id(t)+r),r}od.exports=hH});var ud=c((wXr,sd)=>{"use strict";var gH=Zc(),bH=rd(),xH=td(),qH=nd(),wH=Ms(),SH=String.fromCharCode,EH=Array.isArray;function Jo(r){return r!==r}function AH(r){var e={};return e.specifier=r.specifier,e.precision=r.precision===void 0?1:r.precision,e.width=r.width,e.flags=r.flags||"",e.mapping=r.mapping,e}function _H(r){var e,a,t,o,i,n,s,u,v;if(!EH(r))throw new TypeError("invalid argument. First argument must be an array. Value: `"+r+"`.");for(n="",s=1,u=0;u<r.length;u++)if(t=r[u],bH(t))n+=t;else{if(e=t.precision!==void 0,t=AH(t),!t.specifier)throw new TypeError("invalid argument. Token is missing `specifier` property. Index: `"+u+"`. Value: `"+t+"`.");for(t.mapping&&(s=t.mapping),a=t.flags,v=0;v<a.length;v++)switch(o=a.charAt(v),o){case" ":t.sign=" ";break;case"+":t.sign="+";break;case"-":t.padRight=!0,t.padZeros=!1;break;case"0":t.padZeros=a.indexOf("-")<0;break;case"#":t.alternate=!0;break;default:throw new Error("invalid flag: "+o)}if(t.width==="*"){if(t.width=parseInt(arguments[s],10),s+=1,Jo(t.width))throw new TypeError("the argument for * width at position "+s+" is not a number. Value: `"+t.width+"`.");t.width<0&&(t.padRight=!0,t.width=-t.width)}if(e&&t.precision==="*"){if(t.precision=parseInt(arguments[s],10),s+=1,Jo(t.precision))throw new TypeError("the argument for * precision at position "+s+" is not a number. Value: `"+t.precision+"`.");t.precision<0&&(t.precision=1,e=!1)}switch(t.arg=arguments[s],t.specifier){case"b":case"o":case"x":case"X":case"d":case"i":case"u":e&&(t.padZeros=!1),t.arg=gH(t);break;case"s":t.maxWidth=e?t.precision:-1,t.arg=String(t.arg);break;case"c":if(!Jo(t.arg)){if(i=parseInt(t.arg,10),i<0||i>127)throw new Error("invalid character code. Value: "+t.arg);t.arg=Jo(i)?String(t.arg):SH(i)}break;case"e":case"E":case"f":case"F":case"g":case"G":e||(t.precision=6),t.arg=xH(t);break;default:throw new Error("invalid specifier: "+t.specifier)}t.maxWidth>=0&&t.arg.length>t.maxWidth&&(t.arg=t.arg.substring(0,t.maxWidth)),t.padZeros?t.arg=wH(t.arg,t.width||t.precision,t.padRight):t.width&&(t.arg=qH(t.arg,t.width,t.padRight)),n+=t.arg||"",s+=1}return n}sd.exports=_H});var fd=c((SXr,vd)=>{"use strict";var TH=ud();vd.exports=TH});var cd=c((EXr,ld)=>{"use strict";var Xo=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;function jH(r){var e={mapping:r[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]};return r[4]==="."&&r[5]===void 0&&(e.precision="1"),e}function IH(r){var e,a,t,o;for(a=[],o=0,t=Xo.exec(r);t;)e=r.slice(o,Xo.lastIndex-t[0].length),e.length&&a.push(e),a.push(jH(t)),o=Xo.lastIndex,t=Xo.exec(r);return e=r.slice(o),e.length&&a.push(e),a}ld.exports=IH});var pd=c((AXr,dd)=>{"use strict";var OH=cd();dd.exports=OH});var md=c((_Xr,yd)=>{"use strict";function NH(r){return typeof r=="string"}yd.exports=NH});var bd=c((TXr,gd)=>{"use strict";var DH=fd(),kH=pd(),BH=md();function hd(r){var e,a;if(!BH(r))throw new TypeError(hd("invalid argument. First argument must be a string. Value: `%s`.",r));for(e=[kH(r)],a=1;a<arguments.length;a++)e.push(arguments[a]);return DH.apply(null,e)}gd.exports=hd});var pr=c((jXr,xd)=>{"use strict";var FH=bd();xd.exports=FH});var _d=c((IXr,Ad)=>{"use strict";var qd=pr(),ni=Object.prototype,wd=ni.toString,Sd=ni.__defineGetter__,Ed=ni.__defineSetter__,RH=ni.__lookupGetter__,zH=ni.__lookupSetter__;function VH(r,e,a){var t,o,i,n;if(typeof r!="object"||r===null||wd.call(r)==="[object Array]")throw new TypeError(qd("invalid argument. First argument must be an object. Value: `%s`.",r));if(typeof a!="object"||a===null||wd.call(a)==="[object Array]")throw new TypeError(qd("invalid argument. Property descriptor must be an object. Value: `%s`.",a));if(o="value"in a,o&&(RH.call(r,e)||zH.call(r,e)?(t=r.__proto__,r.__proto__=ni,delete r[e],r[e]=a.value,r.__proto__=t):r[e]=a.value),i="get"in a,n="set"in a,o&&(i||n))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return i&&Sd&&Sd.call(r,e,a.get),n&&Ed&&Ed.call(r,e,a.set),r}Ad.exports=VH});var Rt=c((OXr,Td)=>{"use strict";var UH=Mc(),CH=Yc(),PH=_d(),Gs;UH()?Gs=CH:Gs=PH;Td.exports=Gs});var Id=c((NXr,jd)=>{"use strict";var LH=Rt();function MH(r,e,a){LH(r,e,{configurable:!1,enumerable:!0,writable:!1,value:a})}jd.exports=MH});var zt=c((DXr,Od)=>{"use strict";var GH=Id();Od.exports=GH});var Dd=c((kXr,Nd)=>{"use strict";var YH=Object.prototype.hasOwnProperty;function $H(r,e){return r==null?!1:YH.call(r,e)}Nd.exports=$H});var Xr=c((BXr,kd)=>{"use strict";var WH=Dd();kd.exports=WH});var Fd=c((FXr,Bd)=>{"use strict";function JH(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}Bd.exports=JH});var Ys=c((RXr,Rd)=>{"use strict";var XH=Fd();Rd.exports=XH});var Vd=c((zXr,zd)=>{"use strict";var KH=Ys(),HH=KH();function ZH(){return HH&&typeof Symbol.toStringTag=="symbol"}zd.exports=ZH});var si=c((VXr,Ud)=>{"use strict";var QH=Vd();Ud.exports=QH});var $s=c((UXr,Cd)=>{"use strict";var rZ=Object.prototype.toString;Cd.exports=rZ});var Ld=c((CXr,Pd)=>{"use strict";var eZ=$s();function aZ(r){return eZ.call(r)}Pd.exports=aZ});var Gd=c((PXr,Md)=>{"use strict";var tZ=typeof Symbol=="function"?Symbol:void 0;Md.exports=tZ});var Ws=c((LXr,Yd)=>{"use strict";var iZ=Gd();Yd.exports=iZ});var Jd=c((MXr,Wd)=>{"use strict";var $d=Ws(),oZ=typeof $d=="function"?$d.toStringTag:"";Wd.exports=oZ});var Kd=c((GXr,Xd)=>{"use strict";var nZ=Xr(),Vi=Jd(),Js=$s();function sZ(r){var e,a,t;if(r==null)return Js.call(r);a=r[Vi],e=nZ(r,Vi);try{r[Vi]=void 0}catch{return Js.call(r)}return t=Js.call(r),e?r[Vi]=a:delete r[Vi],t}Xd.exports=sZ});var me=c((YXr,Hd)=>{"use strict";var uZ=si(),vZ=Ld(),fZ=Kd(),Xs;uZ()?Xs=fZ:Xs=vZ;Hd.exports=Xs});var Qd=c(($Xr,Zd)=>{"use strict";var lZ=me(),Ks;function cZ(r){return lZ(r)==="[object Array]"}Array.isArray?Ks=Array.isArray:Ks=cZ;Zd.exports=Ks});var wa=c((WXr,r0)=>{"use strict";var dZ=Qd();r0.exports=dZ});var a0=c((JXr,e0)=>{"use strict";var pZ=wa();function yZ(r){return typeof r=="object"&&r!==null&&!pZ(r)}e0.exports=yZ});var Ui=c((XXr,t0)=>{"use strict";var mZ=a0();t0.exports=mZ});var o0=c((KXr,i0)=>{"use strict";var hZ=/./;i0.exports=hZ});var s0=c((HXr,n0)=>{"use strict";var gZ=Rt();function bZ(r,e,a){gZ(r,e,{configurable:!1,enumerable:!1,writable:!1,value:a})}n0.exports=bZ});var Ir=c((ZXr,u0)=>{"use strict";var xZ=s0();u0.exports=xZ});var Hs=c((QXr,v0)=>{"use strict";function qZ(r){return typeof r=="boolean"}v0.exports=qZ});var l0=c((rKr,f0)=>{"use strict";var wZ=Boolean;f0.exports=wZ});var Vt=c((eKr,c0)=>{"use strict";var SZ=l0();c0.exports=SZ});var p0=c((aKr,d0)=>{"use strict";var EZ=Boolean.prototype.toString;d0.exports=EZ});var m0=c((tKr,y0)=>{"use strict";var AZ=p0();function _Z(r){try{return AZ.call(r),!0}catch{return!1}}y0.exports=_Z});var Zs=c((iKr,h0)=>{"use strict";var TZ=si(),jZ=me(),IZ=Vt(),OZ=m0(),NZ=TZ();function DZ(r){return typeof r=="object"?r instanceof IZ?!0:NZ?OZ(r):jZ(r)==="[object Boolean]":!1}h0.exports=DZ});var b0=c((oKr,g0)=>{"use strict";var kZ=Hs(),BZ=Zs();function FZ(r){return kZ(r)||BZ(r)}g0.exports=FZ});var pe=c((nKr,q0)=>{"use strict";var x0=Ir(),Qs=b0(),RZ=Hs(),zZ=Zs();x0(Qs,"isPrimitive",RZ);x0(Qs,"isObject",zZ);q0.exports=Qs});var S0=c((sKr,w0)=>{"use strict";function VZ(){return new Function("return this;")()}w0.exports=VZ});var A0=c((uKr,E0)=>{"use strict";var UZ=typeof self=="object"?self:null;E0.exports=UZ});var T0=c((vKr,_0)=>{"use strict";var CZ=typeof window=="object"?window:null;_0.exports=CZ});var I0=c((fKr,j0)=>{"use strict";var PZ=typeof globalThis=="object"?globalThis:null;j0.exports=PZ});var ru=c((lKr,k0)=>{"use strict";var LZ=pe().isPrimitive,MZ=pr(),GZ=S0(),O0=A0(),N0=T0(),D0=I0();function YZ(r){if(arguments.length){if(!LZ(r))throw new TypeError(MZ("invalid argument. Must provide a boolean. Value: `%s`.",r));if(r)return GZ()}if(D0)return D0;if(O0)return O0;if(N0)return N0;throw new Error("unexpected error. Unable to resolve global object.")}k0.exports=YZ});var R0=c((cKr,F0)=>{"use strict";var $Z=ru(),B0=$Z(),WZ=B0.document&&B0.document.childNodes;F0.exports=WZ});var V0=c((dKr,z0)=>{"use strict";var JZ=Int8Array;z0.exports=JZ});var C0=c((pKr,U0)=>{"use strict";var XZ=o0(),KZ=R0(),HZ=V0();function ZZ(){return typeof XZ=="function"||typeof HZ=="object"||typeof KZ=="function"}U0.exports=ZZ});var eu=c((yKr,P0)=>{"use strict";function QZ(){return/^\s*function\s*([^(]*)/i}P0.exports=QZ});var M0=c((mKr,L0)=>{"use strict";var rQ=eu(),eQ=rQ();L0.exports=eQ});var $0=c((hKr,Y0)=>{"use strict";var aQ=Ir(),G0=eu(),tQ=M0();aQ(G0,"REGEXP",tQ);Y0.exports=G0});var J0=c((gKr,W0)=>{"use strict";var iQ=wa(),oQ=pr();function nQ(r){if(typeof r!="function")throw new TypeError(oQ("invalid argument. Must provide a function. Value: `%s`.",r));return e;function e(a){var t,o;if(!iQ(a)||(t=a.length,t===0))return!1;for(o=0;o<t;o++)if(r(a[o])===!1)return!1;return!0}}W0.exports=nQ});var au=c((bKr,X0)=>{"use strict";var sQ=J0();X0.exports=sQ});var H0=c((xKr,K0)=>{"use strict";function uQ(r){return r!==null&&typeof r=="object"}K0.exports=uQ});var Ko=c((qKr,Z0)=>{"use strict";var vQ=Ir(),fQ=au(),tu=H0(),lQ=fQ(tu);vQ(tu,"isObjectLikeArray",lQ);Z0.exports=tu});var rp=c((wKr,Q0)=>{"use strict";var cQ=Ko();function dQ(r){return cQ(r)&&(r._isBuffer||r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r))}Q0.exports=dQ});var Ci=c((SKr,ep)=>{"use strict";var pQ=rp();ep.exports=pQ});var tp=c((EKr,ap)=>{"use strict";var yQ=me(),mQ=$0().REGEXP,hQ=Ci();function gQ(r){var e,a,t;if(a=yQ(r).slice(8,-1),(a==="Object"||a==="Error")&&r.constructor){if(t=r.constructor,typeof t.name=="string")return t.name;if(e=mQ.exec(t.toString()),e)return e[1]}return hQ(r)?"Buffer":a}ap.exports=gQ});var gt=c((AKr,ip)=>{"use strict";var bQ=tp();ip.exports=bQ});var np=c((_Kr,op)=>{"use strict";var xQ=gt();function qQ(r){var e;return r===null?"null":(e=typeof r,e==="object"?xQ(r).toLowerCase():e)}op.exports=qQ});var up=c((TKr,sp)=>{"use strict";var wQ=gt();function SQ(r){return wQ(r).toLowerCase()}sp.exports=SQ});var ui=c((jKr,vp)=>{"use strict";var EQ=C0(),AQ=np(),_Q=up(),TQ=EQ()?_Q:AQ;vp.exports=TQ});var lp=c((IKr,fp)=>{"use strict";var jQ=ui();function IQ(r){return jQ(r)==="function"}fp.exports=IQ});var Pe=c((OKr,cp)=>{"use strict";var OQ=lp();cp.exports=OQ});var pp=c((NKr,dp)=>{"use strict";var NQ=Object;dp.exports=NQ});var Ut=c((DKr,yp)=>{"use strict";var DQ=pp();yp.exports=DQ});var hp=c((kKr,mp)=>{"use strict";var kQ=Object.getPrototypeOf;mp.exports=kQ});var bp=c((BKr,gp)=>{"use strict";function BQ(r){return r.__proto__}gp.exports=BQ});var qp=c((FKr,xp)=>{"use strict";var FQ=me(),RQ=bp();function zQ(r){var e=RQ(r);return e||e===null?e:FQ(r.constructor)==="[object Function]"?r.constructor.prototype:r instanceof Object?Object.prototype:null}xp.exports=zQ});var Sp=c((RKr,wp)=>{"use strict";var VQ=Pe(),UQ=hp(),CQ=qp(),iu;VQ(Object.getPrototypeOf)?iu=UQ:iu=CQ;wp.exports=iu});var Ap=c((zKr,Ep)=>{"use strict";var PQ=Ut(),LQ=Sp();function MQ(r){return r==null?null:(r=PQ(r),LQ(r))}Ep.exports=MQ});var Ct=c((VKr,_p)=>{"use strict";var GQ=Ap();_p.exports=GQ});var Ip=c((UKr,jp)=>{"use strict";var YQ=Ui(),Tp=Pe(),$Q=Ct(),Ho=Xr(),WQ=me(),JQ=Object.prototype;function XQ(r){var e;for(e in r)if(!Ho(r,e))return!1;return!0}function KQ(r){var e;return YQ(r)?(e=$Q(r),e?!Ho(r,"constructor")&&Ho(e,"constructor")&&Tp(e.constructor)&&WQ(e.constructor)==="[object Function]"&&Ho(e,"isPrototypeOf")&&Tp(e.isPrototypeOf)&&(e===JQ||XQ(r)):!0):!1}jp.exports=KQ});var ne=c((CKr,Op)=>{"use strict";var HQ=Ip();Op.exports=HQ});var ou=c((PKr,Np)=>{"use strict";function ZQ(r){return typeof r=="number"}Np.exports=ZQ});var kp=c((LKr,Dp)=>{"use strict";Dp.exports=Number});var Zo=c((MKr,Bp)=>{"use strict";var QQ=kp();Bp.exports=QQ});var Rp=c((GKr,Fp)=>{"use strict";var rrr=Zo(),err=rrr.prototype.toString;Fp.exports=err});var Vp=c((YKr,zp)=>{"use strict";var arr=Rp();function trr(r){try{return arr.call(r),!0}catch{return!1}}zp.exports=trr});var nu=c(($Kr,Up)=>{"use strict";var irr=si(),orr=me(),nrr=Zo(),srr=Vp(),urr=irr();function vrr(r){return typeof r=="object"?r instanceof nrr?!0:urr?srr(r):orr(r)==="[object Number]":!1}Up.exports=vrr});var Pp=c((WKr,Cp)=>{"use strict";var frr=ou(),lrr=nu();function crr(r){return frr(r)||lrr(r)}Cp.exports=crr});var Ge=c((JKr,Mp)=>{"use strict";var Lp=Ir(),su=Pp(),drr=ou(),prr=nu();Lp(su,"isPrimitive",drr);Lp(su,"isObject",prr);Mp.exports=su});var Pi=c((XKr,Gp)=>{"use strict";var yrr=Number.POSITIVE_INFINITY;Gp.exports=yrr});var Qo=c((KKr,Yp)=>{"use strict";var mrr=Zo(),hrr=mrr.NEGATIVE_INFINITY;Yp.exports=hrr});var Wp=c((HKr,$p)=>{"use strict";var grr=Math.floor;$p.exports=grr});var ea=c((ZKr,Jp)=>{"use strict";var brr=Wp();Jp.exports=brr});var Kp=c((QKr,Xp)=>{"use strict";var xrr=ea();function qrr(r){return xrr(r)===r}Xp.exports=qrr});var Sa=c((rHr,Hp)=>{"use strict";var wrr=Kp();Hp.exports=wrr});var uu=c((eHr,Zp)=>{"use strict";var Srr=Pi(),Err=Qo(),Arr=Sa();function _rr(r){return r<Srr&&r>Err&&Arr(r)}Zp.exports=_rr});var vu=c((aHr,Qp)=>{"use strict";var Trr=Ge().isPrimitive,jrr=uu();function Irr(r){return Trr(r)&&jrr(r)}Qp.exports=Irr});var fu=c((tHr,ry)=>{"use strict";var Orr=Ge().isObject,Nrr=uu();function Drr(r){return Orr(r)&&Nrr(r.valueOf())}ry.exports=Drr});var ay=c((iHr,ey)=>{"use strict";var krr=vu(),Brr=fu();function Frr(r){return krr(r)||Brr(r)}ey.exports=Frr});var fe=c((oHr,iy)=>{"use strict";var ty=Ir(),lu=ay(),Rrr=vu(),zrr=fu();ty(lu,"isPrimitive",Rrr);ty(lu,"isObject",zrr);iy.exports=lu});var cu=c((nHr,oy)=>{"use strict";var Vrr=fe().isPrimitive;function Urr(r){return Vrr(r)&&r>=0}oy.exports=Urr});var du=c((sHr,ny)=>{"use strict";var Crr=fe().isObject;function Prr(r){return Crr(r)&&r.valueOf()>=0}ny.exports=Prr});var uy=c((uHr,sy)=>{"use strict";var Lrr=cu(),Mrr=du();function Grr(r){return Lrr(r)||Mrr(r)}sy.exports=Grr});var ge=c((vHr,fy)=>{"use strict";var vy=Ir(),pu=uy(),Yrr=cu(),$rr=du();vy(pu,"isPrimitive",Yrr);vy(pu,"isObject",$rr);fy.exports=pu});var dy=c((fHr,cy)=>{"use strict";var Wrr=ru(),ly=Wrr();function Jrr(){return typeof ly.BigInt=="function"&&typeof BigInt=="function"&&typeof ly.BigInt("1")=="bigint"&&typeof BigInt("1")=="bigint"}cy.exports=Jrr});var yu=c((lHr,py)=>{"use strict";var Xrr=dy();py.exports=Xrr});var my=c((cHr,yy)=>{"use strict";var Krr=Rt();function Hrr(r,e,a){Krr(r,e,{configurable:!1,enumerable:!1,get:a})}yy.exports=Hrr});var bt=c((dHr,hy)=>{"use strict";var Zrr=my();hy.exports=Zrr});var gy=c((pHr,Qrr)=>{Qrr.exports={binary:1,bool:1,complex64:8,complex128:16,float16:2,bfloat16:2,float32:4,float64:8,float128:16,generic:null,int8:1,int16:2,int32:4,int64:8,int128:16,int256:32,uint8:1,uint8c:1,uint16:2,uint32:4,uint64:8,uint128:16,uint256:32}});var xy=c((yHr,by)=>{"use strict";var rer=gy();function eer(r){return rer[r]||null}by.exports=eer});var xt=c((mHr,qy)=>{"use strict";var aer=xy();qy.exports=aer});var Sy=c((hHr,wy)=>{"use strict";function ter(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]<0&&(e+=1);return e===0?1:e===r.length?-1:0}wy.exports=ter});var Ea=c((gHr,Ey)=>{"use strict";var ier=Sy();Ey.exports=ier});var _y=c((bHr,Ay)=>{"use strict";function oer(r){return Math.abs(r)}Ay.exports=oer});var vi=c((xHr,Ty)=>{"use strict";var ner=_y();Ty.exports=ner});var Oy=c((qHr,Iy)=>{"use strict";var jy=vi();function ser(r){var e,a,t,o,i,n;if(a=r.length,a===0)return 0;for(e=!0,t=!0,o=jy(r[0]),n=1;n<a;n++)if(i=jy(r[n]),e&&i<o?e=!1:t&&i>o&&(t=!1),t||e)o=i;else return 0;return t&&e?3:t?1:2}Iy.exports=ser});var Pt=c((wHr,Ny)=>{"use strict";var uer=Oy();Ny.exports=uer});var ky=c((SHr,Dy)=>{"use strict";function ver(r,e){return e&&(r===2||r===3)}Dy.exports=ver});var Fy=c((EHr,By)=>{"use strict";function fer(r,e){return e&&(r===1||r===3)}By.exports=fer});var zy=c((AHr,Ry)=>{"use strict";function ler(r,e,a){var t,o,i,n,s;for(t=r.length,o=a,i=a,s=0;s<t;s++){if(r[s]===0)return[a,a];n=e[s],n>0?i+=n*(r[s]-1):n<0&&(o+=n*(r[s]-1))}return[o,i]}Ry.exports=ler});var Uy=c((_Hr,Vy)=>{"use strict";function cer(r,e,a,t){var o,i,n,s,u;for(o=r.length,i=a,n=a,u=0;u<o;u++){if(r[u]===0)return t[0]=a,t[1]=a,t;s=e[u],s>0?n+=s*(r[u]-1):s<0&&(i+=s*(r[u]-1))}return t[0]=i,t[1]=n,t}Vy.exports=cer});var at=c((THr,Py)=>{"use strict";var der=Ir(),Cy=zy(),per=Uy();der(Cy,"assign",per);Py.exports=Cy});var My=c((jHr,Ly)=>{"use strict";var yer=at();function mer(r,e,a,t,o){var i;return r===0||o===0?!1:(i=yer(e,a,t),r===i[1]-i[0]+1)}Ly.exports=mer});var Yy=c((IHr,Gy)=>{"use strict";function her(r){return{ROW_MAJOR_CONTIGUOUS:r.ROW_MAJOR_CONTIGUOUS,COLUMN_MAJOR_CONTIGUOUS:r.COLUMN_MAJOR_CONTIGUOUS,READONLY:r.READONLY}}Gy.exports=her});var Wy=c((OHr,$y)=>{"use strict";function ger(r){var e,a,t,o,i,n;if(t=this._ndims,t===0)return this._accessors?this._buffer.get(this._offset):this._buffer[this._offset];if(this._flags.ROW_MAJOR_CONTIGUOUS||this._flags.COLUMN_MAJOR_CONTIGUOUS){if(this._iterationOrder===1)return this._accessors?this._buffer.get(this._offset+r):this._buffer[this._offset+r];if(this._iterationOrder===-1)return this._accessors?this._buffer.get(this.offset-r):this._buffer[this._offset-r]}if(a=this._shape,e=this._strides,o=this._offset,this._order==="column-major"){for(n=0;n<t;n++)i=r%a[n],r-=i,r/=a[n],o+=i*e[n];return this._accessors?this._buffer.get(o):this._buffer[o]}for(n=t-1;n>=0;n--)i=r%a[n],r-=i,r/=a[n],o+=i*e[n];return this._accessors?this._buffer.get(o):this._buffer[o]}$y.exports=ger});var Xy=c((NHr,Jy)=>{"use strict";function ber(r,e){var a,t,o,i,n,s;if(o=this._ndims,o===0)return this._accessors?this._buffer.set(r,this._offset):this._buffer[this._offset]=r,this;if(this._flags.ROW_MAJOR_CONTIGUOUS||this._flags.COLUMN_MAJOR_CONTIGUOUS){if(this._iterationOrder===1)return this._accessors?this._buffer.set(e,this._offset+r):this._buffer[this._offset+r]=e,this;if(this._iterationOrder===-1)return this._accessors?this._buffer.set(e,this._offset-r):this._buffer[this._offset-r]=e,this}if(t=this._shape,a=this._strides,i=this._offset,this._order==="column-major"){for(s=0;s<o;s++)n=r%t[s],r-=n,r/=t[s],i+=n*a[s];return this._accessors?this._buffer.set(e,i):this._buffer[i]=e,this}for(s=o-1;s>=0;s--)n=r%t[s],r-=n,r/=t[s],i+=n*a[s];return this._accessors?this._buffer.set(e,i):this._buffer[i]=e,this}Jy.exports=ber});var Hy=c((DHr,Ky)=>{"use strict";function xer(){var r,e;for(r=this._offset,e=0;e<arguments.length-1;e++)r+=this._strides[e]*arguments[e];return this._accessors?this._buffer.set(arguments[e],r):this._buffer[r]=arguments[e],this}Ky.exports=xer});var Qy=c((kHr,Zy)=>{"use strict";function qer(){var r,e;for(r=this._offset,e=0;e<arguments.length;e++)r+=this._strides[e]*arguments[e];return this._accessors?this._buffer.get(r):this._buffer[r]}Zy.exports=qer});var em=c((BHr,rm)=>{"use strict";function wer(r){return r.re}rm.exports=wer});var Lt=c((FHr,am)=>{"use strict";var Ser=em();am.exports=Ser});var im=c((RHr,tm)=>{"use strict";function Eer(r){return r.im}tm.exports=Eer});var Mt=c((zHr,om)=>{"use strict";var Aer=im();om.exports=Aer});var sm=c((VHr,nm)=>{"use strict";var _er=Lt(),Ter=Mt();function jer(){var r,e,a,t;for(e=this._length,r={},r.type="ndarray",r.dtype=this.dtype,r.flags={READONLY:this._flags.READONLY},r.order=this._order,r.shape=this._shape.slice(),r.strides=this._strides.slice(),t=0;t<e;t++)r.strides[t]<0&&(r.strides[t]*=-1);if(r.data=[],r.dtype==="complex64"||r.dtype==="complex128")for(t=0;t<e;t++)a=this.iget(t),r.data.push(_er(a),Ter(a));else for(t=0;t<e;t++)r.data.push(this.iget(t));return r}nm.exports=jer});var mu=c((UHr,um)=>{"use strict";function Ier(r){return typeof r=="string"}um.exports=Ier});var fm=c((CHr,vm)=>{"use strict";var Oer=String.prototype.valueOf;vm.exports=Oer});var cm=c((PHr,lm)=>{"use strict";var Ner=fm();function Der(r){try{return Ner.call(r),!0}catch{return!1}}lm.exports=Der});var hu=c((LHr,dm)=>{"use strict";var ker=si(),Ber=me(),Fer=cm(),Rer=ker();function zer(r){return typeof r=="object"?r instanceof String?!0:Rer?Fer(r):Ber(r)==="[object String]":!1}dm.exports=zer});var ym=c((MHr,pm)=>{"use strict";var Ver=mu(),Uer=hu();function Cer(r){return Ver(r)||Uer(r)}pm.exports=Cer});var Pa=c((GHr,hm)=>{"use strict";var mm=Ir(),gu=ym(),Per=mu(),Ler=hu();mm(gu,"isPrimitive",Per);mm(gu,"isObject",Ler);hm.exports=gu});var xm=c((YHr,bm)=>{"use strict";var Mer=Pa().isPrimitive,Ger=pr(),gm=/[-\/\\^$*+?.()|[\]{}]/g;function Yer(r){var e,a,t;if(!Mer(r))throw new TypeError(Ger("invalid argument. Must provide a regular expression string. Value: `%s`.",r));if(r[0]==="/")for(e=r.length,t=e-1;t>=0&&r[t]!=="/";t--);return t===void 0||t<=0?r.replace(gm,"\\$&"):(a=r.substring(1,t),a=a.replace(gm,"\\$&"),r=r[0]+a+r.substring(t),r)}bm.exports=Yer});var wm=c(($Hr,qm)=>{"use strict";var $er=xm();qm.exports=$er});var Em=c((WHr,Sm)=>{"use strict";var Wer=RegExp.prototype.exec;Sm.exports=Wer});var _m=c((JHr,Am)=>{"use strict";var Jer=Em();function Xer(r){try{return Jer.call(r),!0}catch{return!1}}Am.exports=Xer});var jm=c((XHr,Tm)=>{"use strict";var Ker=si(),Her=me(),Zer=_m(),Qer=Ker();function rar(r){return typeof r=="object"?r instanceof RegExp?!0:Qer?Zer(r):Her(r)==="[object RegExp]":!1}Tm.exports=rar});var Om=c((KHr,Im)=>{"use strict";var ear=jm();Im.exports=ear});var Dm=c((HHr,Nm)=>{"use strict";function aar(r,e,a){return r.replace(e,a)}Nm.exports=aar});var tt=c((ZHr,km)=>{"use strict";var tar=Dm();km.exports=tar});var Fm=c((QHr,Bm)=>{"use strict";var iar=wm(),oar=Pe(),bu=Pa().isPrimitive,nar=Om(),xu=pr(),sar=tt();function uar(r,e,a){if(!bu(r))throw new TypeError(xu("invalid argument. First argument must be a string. Value: `%s`.",r));if(bu(e))e=new RegExp(iar(e),"g");else if(!nar(e))throw new TypeError(xu("invalid argument. Second argument must be a string or regular expression. Value: `%s`.",e));if(!bu(a)&&!oar(a))throw new TypeError(xu("invalid argument. Third argument must be a string or replacement function. Value: `%s`.",a));return sar(r,e,a)}Bm.exports=uar});var zm=c((rZr,Rm)=>{"use strict";var far=Fm();Rm.exports=far});var Um=c((eZr,Vm)=>{"use strict";var lar=zm(),qu=Lt(),wu=Mt(),car={int8:"new Int8Array( [ {{data}} ] )",uint8:"new Uint8Array( [ {{data}} ] )",uint8c:"new Uint8ClampedArray( [ {{data}} ] )",int16:"new Int16Array( [ {{data}} ] )",uint16:"new Uint16Array( [ {{data}} ] )",int32:"new Int32Array( [ {{data}} ] )",uint32:"new Uint32Array( [ {{data}} ] )",float32:"new Float32Array( [ {{data}} ] )",float64:"new Float64Array( [ {{data}} ] )",generic:"[ {{data}} ]",binary:"new Buffer( [ {{data}} ] )",complex64:"new Complex64Array( [ {{data}} ] )",complex128:"new Complex128Array( [ {{data}} ] )"};function dar(){var r,e,a,t,o,i,n;if(e=this._shape.length,o=this._dtype,t="ndarray( '"+o+"', ",r="",this._length<=100)if(o==="complex64"||o==="complex128")for(n=0;n<this._length;n++)i=this.iget(n),r+=qu(i)+", "+wu(i),n<this._length-1&&(r+=", ");else for(n=0;n<this._length;n++)r+=this.iget(n),n<this._length-1&&(r+=", ");else{if(o==="complex64"||o==="complex128")for(n=0;n<3;n++)i=this.iget(n),r+=qu(i)+", "+wu(i),n<2&&(r+=", ");else for(n=0;n<3;n++)r+=this.iget(n),n<2&&(r+=", ");if(r+=", ..., ",o==="complex64"||o==="complex128")for(n=2;n>=0;n--)i=this.iget(this._length-1-n),r+=qu(i)+", "+wu(i),n>0&&(r+=", ");else for(n=2;n>=0;n--)r+=this.iget(this._length-1-n),n>0&&(r+=", ")}if(a=car[this.dtype],t+=lar(a,"{{data}}",r),t+=", ",e===0?t+="[]":t+="[ "+this._shape.join(", ")+" ]",t+=", ",t+="[ ",e===0)t+="0";else for(n=0;n<e;n++)this._strides[n]<0?t+=-this._strides[n]:t+=this._strides[n],n<e-1&&(t+=", ");return t+=" ]",t+=", ",t+="0",t+=", ",t+="'"+this._order+"'",t+=" )",t}Vm.exports=dar});var Pm=c((aZr,Cm)=>{"use strict";var par=me(),yar=typeof Uint8Array=="function";function mar(r){return yar&&r instanceof Uint8Array||par(r)==="[object Uint8Array]"}Cm.exports=mar});var Mm=c((tZr,Lm)=>{"use strict";var har=Pm();Lm.exports=har});var Su=c((iZr,Gm)=>{"use strict";var gar=255;Gm.exports=gar});var $m=c((oZr,Ym)=>{"use strict";var bar=typeof Uint8Array=="function"?Uint8Array:null;Ym.exports=bar});var Xm=c((nZr,Jm)=>{"use strict";var xar=Mm(),Eu=Su(),Wm=$m();function qar(){var r,e;if(typeof Wm!="function")return!1;try{e=[1,3.14,-3.14,Eu+1,Eu+2],e=new Wm(e),r=xar(e)&&e[0]===1&&e[1]===3&&e[2]===Eu-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}Jm.exports=qar});var Hm=c((sZr,Km)=>{"use strict";var war=Xm();Km.exports=war});var Qm=c((uZr,Zm)=>{"use strict";var Sar=typeof Uint8Array=="function"?Uint8Array:void 0;Zm.exports=Sar});var eh=c((vZr,rh)=>{"use strict";function Ear(){throw new Error("not implemented")}rh.exports=Ear});var va=c((fZr,ah)=>{"use strict";var Aar=Hm(),_ar=Qm(),Tar=eh(),Au;Aar()?Au=_ar:Au=Tar;ah.exports=Au});var ih=c((lZr,th)=>{"use strict";var jar=me(),Iar=typeof Uint16Array=="function";function Oar(r){return Iar&&r instanceof Uint16Array||jar(r)==="[object Uint16Array]"}th.exports=Oar});var nh=c((cZr,oh)=>{"use strict";var Nar=ih();oh.exports=Nar});var _u=c((dZr,sh)=>{"use strict";var Dar=65535;sh.exports=Dar});var vh=c((pZr,uh)=>{"use strict";var kar=typeof Uint16Array=="function"?Uint16Array:null;uh.exports=kar});var ch=c((yZr,lh)=>{"use strict";var Bar=nh(),Tu=_u(),fh=vh();function Far(){var r,e;if(typeof fh!="function")return!1;try{e=[1,3.14,-3.14,Tu+1,Tu+2],e=new fh(e),r=Bar(e)&&e[0]===1&&e[1]===3&&e[2]===Tu-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}lh.exports=Far});var ph=c((mZr,dh)=>{"use strict";var Rar=ch();dh.exports=Rar});var mh=c((hZr,yh)=>{"use strict";var zar=typeof Uint16Array=="function"?Uint16Array:void 0;yh.exports=zar});var gh=c((gZr,hh)=>{"use strict";function Var(){throw new Error("not implemented")}hh.exports=Var});var fi=c((bZr,bh)=>{"use strict";var Uar=ph(),Car=mh(),Par=gh(),ju;Uar()?ju=Car:ju=Par;bh.exports=ju});var qh=c((xZr,xh)=>{"use strict";var Lar=va(),Mar=fi(),Gar={uint16:Mar,uint8:Lar};xh.exports=Gar});var Ah=c((qZr,Eh)=>{"use strict";var wh=qh(),Sh;function Yar(){var r,e;return r=new wh.uint16(1),r[0]=4660,e=new wh.uint8(r.buffer),e[0]===52}Sh=Yar();Eh.exports=Sh});var Gt=c((wZr,_h)=>{"use strict";var $ar=Ah();_h.exports=$ar});var jh=c((SZr,Th)=>{"use strict";var War=me(),Jar=typeof ArrayBuffer=="function";function Xar(r){return Jar&&r instanceof ArrayBuffer||War(r)==="[object ArrayBuffer]"}Th.exports=Xar});var Li=c((EZr,Ih)=>{"use strict";var Kar=jh();Ih.exports=Kar});var Nh=c((AZr,Oh)=>{"use strict";var Har=me(),Zar=typeof Float64Array=="function";function Qar(r){return Zar&&r instanceof Float64Array||Har(r)==="[object Float64Array]"}Oh.exports=Qar});var kh=c((_Zr,Dh)=>{"use strict";var rtr=Nh();Dh.exports=rtr});var Fh=c((TZr,Bh)=>{"use strict";var etr=typeof Float64Array=="function"?Float64Array:null;Bh.exports=etr});var Vh=c((jZr,zh)=>{"use strict";var atr=kh(),Rh=Fh();function ttr(){var r,e;if(typeof Rh!="function")return!1;try{e=new Rh([1,3.14,-3.14,NaN]),r=atr(e)&&e[0]===1&&e[1]===3.14&&e[2]===-3.14&&e[3]!==e[3]}catch{r=!1}return r}zh.exports=ttr});var Ch=c((IZr,Uh)=>{"use strict";var itr=Vh();Uh.exports=itr});var Lh=c((OZr,Ph)=>{"use strict";var otr=typeof Float64Array=="function"?Float64Array:void 0;Ph.exports=otr});var Gh=c((NZr,Mh)=>{"use strict";function ntr(){throw new Error("not implemented")}Mh.exports=ntr});var qt=c((DZr,Yh)=>{"use strict";var str=Ch(),utr=Lh(),vtr=Gh(),Iu;str()?Iu=utr:Iu=vtr;Yh.exports=Iu});var Wh=c((kZr,$h)=>{"use strict";var ftr=typeof ArrayBuffer=="function"?ArrayBuffer:null;$h.exports=ftr});var Xh=c((BZr,Jh)=>{"use strict";var ltr=Li(),ctr=qt(),rn=Wh();function dtr(){var r,e,a;if(typeof rn!="function")return!1;try{a=new rn(16),r=ltr(a)&&typeof rn.isView=="function",r&&(e=new ctr(a),e[0]=-3.14,e[1]=NaN,r=r&&rn.isView(e)&&a.byteLength===16&&e[0]===-3.14&&e[1]!==e[1])}catch{r=!1}return r}Jh.exports=dtr});var Hh=c((FZr,Kh)=>{"use strict";var ptr=Xh();Kh.exports=ptr});var Qh=c((RZr,Zh)=>{"use strict";var ytr=typeof ArrayBuffer=="function"?ArrayBuffer:void 0;Zh.exports=ytr});var e1=c((zZr,r1)=>{"use strict";function mtr(){throw new Error("not implemented")}r1.exports=mtr});var li=c((VZr,a1)=>{"use strict";var htr=Hh(),gtr=Qh(),btr=e1(),Ou;htr()?Ou=gtr:Ou=btr;a1.exports=Ou});var i1=c((UZr,t1)=>{"use strict";var xtr=me(),qtr=typeof DataView=="function";function wtr(r){return qtr&&r instanceof DataView||xtr(r)==="[object DataView]"}t1.exports=wtr});var n1=c((CZr,o1)=>{"use strict";var Str=i1();o1.exports=Str});var u1=c((PZr,s1)=>{"use strict";var Etr=typeof DataView=="function"?DataView:null;s1.exports=Etr});var l1=c((LZr,f1)=>{"use strict";var Atr=n1(),_tr=li(),v1=u1();function Ttr(){var r,e,a;if(typeof v1!="function")return!1;try{a=new _tr(24),e=new v1(a,8),r=Atr(e)&&typeof e.getFloat64=="function"&&typeof e.setFloat64=="function",r&&(e.setFloat64(0,-3.14),e.setFloat64(8,NaN),r=r&&e.buffer===a&&e.byteLength===16&&e.byteOffset===8&&e.getFloat64(0)===-3.14&&e.getFloat64(8)!==e.getFloat64(8))}catch{r=!1}return r}f1.exports=Ttr});var d1=c((MZr,c1)=>{"use strict";var jtr=l1();c1.exports=jtr});var y1=c((GZr,p1)=>{"use strict";var Itr=typeof DataView=="function"?DataView:void 0;p1.exports=Itr});var h1=c((YZr,m1)=>{"use strict";function Otr(){throw new Error("not implemented")}m1.exports=Otr});var Yt=c(($Zr,g1)=>{"use strict";var Ntr=d1(),Dtr=y1(),ktr=h1(),Nu;Ntr()?Nu=Dtr:Nu=ktr;g1.exports=Nu});var x1=c((WZr,b1)=>{"use strict";var Btr=typeof BigInt=="function"?BigInt:void 0;b1.exports=Btr});var Du=c((JZr,q1)=>{"use strict";var Ftr=x1();q1.exports=Ftr});var w1=c((XZr,Rtr)=>{Rtr.exports={all:["binary","bool","complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["binary","bool","complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],boolean:["bool"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]}});var _1=c((KZr,A1)=>{"use strict";var ztr=tt(),S1=w1(),E1=/_and_generic$/;function Vtr(){var r,e,a;return arguments.length===0?S1.all.slice():(a=!1,r=arguments[0],E1.test(r)&&(r=ztr(r,E1,""),r!=="all"&&(a=!0)),e=S1[r],e=e?e.slice():[],a&&e.length>0&&e.push("generic"),e)}A1.exports=Vtr});var j1=c((HZr,T1)=>{"use strict";function Utr(){return{bool:0,int8:1,uint8:2,uint8c:3,int16:4,uint16:5,int32:6,uint32:7,int64:8,uint64:9,float32:10,float64:11,complex64:12,complex128:13,binary:14,generic:15,notype:17,userdefined_type:256}}T1.exports=Utr});var en=c((ZZr,I1)=>{"use strict";function Ctr(r){return Object.keys(Object(r))}I1.exports=Ctr});var N1=c((QZr,O1)=>{"use strict";var Ptr=en();function Ltr(){return(Ptr(arguments)||"").length!==2}function Mtr(){return Ltr(1,2)}O1.exports=Mtr});var k1=c((rQr,D1)=>{"use strict";var Gtr=typeof Object.keys<"u";D1.exports=Gtr});var ku=c((eQr,B1)=>{"use strict";var Ytr=me();function $tr(r){return Ytr(r)==="[object Arguments]"}B1.exports=$tr});var z1=c((aQr,R1)=>{"use strict";var Wtr=ku(),F1;function Jtr(){return Wtr(arguments)}F1=Jtr();R1.exports=F1});var U1=c((tQr,V1)=>{"use strict";function Xtr(r){return r!==r}V1.exports=Xtr});var Bu=c((iQr,C1)=>{"use strict";var Ktr=U1();C1.exports=Ktr});var Fu=c((oQr,P1)=>{"use strict";var Htr=Ge().isPrimitive,Ztr=Bu();function Qtr(r){return Htr(r)&&Ztr(r)}P1.exports=Qtr});var Ru=c((nQr,L1)=>{"use strict";var rir=Ge().isObject,eir=Bu();function air(r){return rir(r)&&eir(r.valueOf())}L1.exports=air});var G1=c((sQr,M1)=>{"use strict";var tir=Fu(),iir=Ru();function oir(r){return tir(r)||iir(r)}M1.exports=oir});var Vu=c((uQr,$1)=>{"use strict";var Y1=Ir(),zu=G1(),nir=Fu(),sir=Ru();Y1(zu,"isPrimitive",nir);Y1(zu,"isObject",sir);$1.exports=zu});var Uu=c((vQr,W1)=>{"use strict";var uir=Object.prototype.propertyIsEnumerable;W1.exports=uir});var K1=c((fQr,X1)=>{"use strict";var vir=Uu(),J1;function fir(){return!vir.call("beep","0")}J1=fir();X1.exports=J1});var Z1=c((lQr,H1)=>{"use strict";var lir=Pa(),cir=Vu().isPrimitive,dir=fe().isPrimitive,pir=Uu(),yir=K1();function mir(r,e){var a;return r==null?!1:(a=pir.call(r,e),!a&&yir&&lir(r)?(e=+e,!cir(e)&&dir(e)&&e>=0&&e<r.length):a)}H1.exports=mir});var Mi=c((cQr,Q1)=>{"use strict";var hir=Z1();Q1.exports=hir});var an=c((dQr,rg)=>{"use strict";var gir=4294967295;rg.exports=gir});var ag=c((pQr,eg)=>{"use strict";var bir=Xr(),xir=Mi(),qir=wa(),wir=Sa(),Sir=an();function Eir(r){return r!==null&&typeof r=="object"&&!qir(r)&&typeof r.length=="number"&&wir(r.length)&&r.length>=0&&r.length<=Sir&&bir(r,"callee")&&!xir(r,"callee")}eg.exports=Eir});var Pu=c((yQr,tg)=>{"use strict";var Air=z1(),_ir=ku(),Tir=ag(),Cu;Air?Cu=_ir:Cu=Tir;tg.exports=Cu});var ng=c((mQr,og)=>{"use strict";var jir=Pu(),ig=en(),Iir=Array.prototype.slice;function Oir(r){return jir(r)?ig(Iir.call(r)):ig(r)}og.exports=Oir});var ug=c((hQr,sg)=>{"use strict";function Nir(){}sg.exports=Nir});var fg=c((gQr,vg)=>{"use strict";var Dir=ug();vg.exports=Dir});var cg=c((bQr,lg)=>{"use strict";var kir=Mi(),Bir=fg(),Fir=kir(Bir,"prototype");lg.exports=Fir});var pg=c((xQr,dg)=>{"use strict";var Rir=Mi(),zir={toString:null},Vir=!Rir(zir,"toString");dg.exports=Vir});var mg=c((qQr,yg)=>{"use strict";var Uir=9007199254740991;yg.exports=Uir});var gg=c((wQr,hg)=>{"use strict";var Cir=Sa(),Pir=mg();function Lir(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&Cir(r.length)&&r.length>=0&&r.length<=Pir}hg.exports=Lir});var ke=c((SQr,bg)=>{"use strict";var Mir=gg();bg.exports=Mir});var Sg=c((EQr,wg)=>{"use strict";var xg=Vu(),Gir=ke(),Yir=Pa().isPrimitive,$ir=fe().isPrimitive,qg=pr();function Wir(r,e,a){var t,o;if(!Gir(r)&&!Yir(r))throw new TypeError(qg("invalid argument. First argument must be an array-like object. Value: `%s`.",r));if(t=r.length,t===0)return-1;if(arguments.length===3){if(!$ir(a))throw new TypeError(qg("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(a>=0){if(a>=t)return-1;o=a}else o=t+a,o<0&&(o=0)}else o=0;if(xg(e)){for(;o<t;o++)if(xg(r[o]))return o}else for(;o<t;o++)if(r[o]===e)return o;return-1}wg.exports=Wir});var Ag=c((AQr,Eg)=>{"use strict";var Jir=Sg();Eg.exports=Jir});var Lu=c((_Qr,_g)=>{"use strict";function Xir(r){return r.constructor&&r.constructor.prototype===r}_g.exports=Xir});var Tg=c((TQr,Kir)=>{Kir.exports=["console","external","frame","frameElement","frames","innerHeight","innerWidth","outerHeight","outerWidth","pageXOffset","pageYOffset","parent","scrollLeft","scrollTop","scrollX","scrollY","self","webkitIndexedDB","webkitStorageInfo","window"]});var Ig=c((jQr,jg)=>{"use strict";var Hir=typeof window>"u"?void 0:window;jg.exports=Hir});var kg=c((IQr,Dg)=>{"use strict";var Zir=Xr(),Qir=Ag(),Og=ui(),ror=Lu(),eor=Tg(),ci=Ig(),Ng;function aor(){var r;if(Og(ci)==="undefined")return!1;for(r in ci)try{Qir(eor,r)===-1&&Zir(ci,r)&&ci[r]!==null&&Og(ci[r])==="object"&&ror(ci[r])}catch{return!0}return!1}Ng=aor();Dg.exports=Ng});var Fg=c((OQr,Bg)=>{"use strict";var tor=typeof window<"u";Bg.exports=tor});var Vg=c((NQr,zg)=>{"use strict";var ior=kg(),Rg=Lu(),oor=Fg();function nor(r){if(oor===!1&&!ior)return Rg(r);try{return Rg(r)}catch{return!1}}zg.exports=nor});var Ug=c((DQr,sor)=>{sor.exports=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]});var Lg=c((kQr,Pg)=>{"use strict";var uor=Ko(),Mu=Xr(),vor=Pu(),lor=cg(),cor=pg(),dor=Vg(),Cg=Ug();function por(r){var e,a,t,o,i,n,s;if(o=[],vor(r)){for(s=0;s<r.length;s++)o.push(s.toString());return o}if(typeof r=="string"){if(r.length>0&&!Mu(r,"0"))for(s=0;s<r.length;s++)o.push(s.toString())}else{if(t=typeof r=="function",t===!1&&!uor(r))return o;a=lor&&t}for(i in r)!(a&&i==="prototype")&&Mu(r,i)&&o.push(String(i));if(cor)for(e=dor(r),s=0;s<Cg.length;s++)n=Cg[s],!(e&&n==="constructor")&&Mu(r,n)&&o.push(String(n));return o}Pg.exports=por});var Gg=c((BQr,Mg)=>{"use strict";var yor=N1(),mor=k1(),hor=en(),gor=ng(),bor=Lg(),tn;mor?yor()?tn=gor:tn=hor:tn=bor;Mg.exports=tn});var Aa=c((FQr,Yg)=>{"use strict";var xor=Gg();Yg.exports=xor});var Wg=c((RQr,$g)=>{"use strict";var qor=zt(),wor=Aa();function Sor(r,e){var a,t,o;for(a=wor(e),o=0;o<a.length;o++)t=a[o],qor(r,t,e[t]);return r}$g.exports=Sor});var Be=c((zQr,Xg)=>{"use strict";var Eor=Ir(),Gu=_1(),Jg=j1(),Aor=Wg();Eor(Gu,"enum",Jg);Aor(Gu,Jg());Xg.exports=Gu});var Kg=c((VQr,_or)=>{_or.exports=["row-major","column-major"]});var Zg=c((UQr,Hg)=>{"use strict";var Tor=Kg();function jor(){return Tor.slice()}Hg.exports=jor});var Qg=c((CQr,Ior)=>{Ior.exports=["row-major","column-major"]});var e2=c((PQr,r2)=>{"use strict";var Oor=Qg();function Nor(){return Oor.slice()}r2.exports=Nor});var t2=c((LQr,a2)=>{"use strict";function Dor(){return{"row-major":101,"column-major":102}}a2.exports=Dor});var Yu=c((MQr,o2)=>{"use strict";var kor=Ir(),i2=e2(),Bor=t2();kor(i2,"enum",Bor);o2.exports=i2});var u2=c((GQr,s2)=>{"use strict";var For=Yu().enum,n2=For();function Ror(){return{"row-major":n2["row-major"],"column-major":n2["column-major"]}}s2.exports=Ror});var $t=c((YQr,f2)=>{"use strict";var zor=Ir(),v2=Zg(),Vor=u2();zor(v2,"enum",Vor);f2.exports=v2});var l2=c(($Qr,Uor)=>{Uor.exports=["throw","normalize","clamp","wrap"]});var d2=c((WQr,c2)=>{"use strict";var Cor=l2();function Por(){return Cor.slice()}c2.exports=Por});var y2=c((JQr,p2)=>{"use strict";function Lor(){return{throw:1,clamp:2,wrap:3,normalize:4}}p2.exports=Lor});var Wt=c((XQr,h2)=>{"use strict";var Mor=Ir(),m2=d2(),Gor=y2();Mor(m2,"enum",Gor);h2.exports=m2});var x2=c((KQr,b2)=>{"use strict";var wt=Gt(),Yor=li(),$or=Yt(),Gi=Du(),Wor=Be().enum,Jor=$t().enum,Xor=Wt().enum,Kor=Wor(),Hor=Jor(),g2=Xor();function Zor(){var r,e,a,t,o,i,n,s,u,v,f,l,d,y;if(u=this._mode||"throw",n=this._submode||[u],l=this._ndims,d=n.length,a=33+l*16+d,s=this.__meta_dataview__,s&&s.byteLength===a)return s;for(s=new $or(new Yor(a)),o=this._shape,i=this._strides,t=this._dtype,r=this._bytesPerElement,v=0,s.setInt8(v,wt?1:0),v+=1,s.setInt16(v,Kor[t],wt),v+=2,s.setBigInt64(v,Gi(l),wt),f=l*8,v+=8,y=0;y<l;y++)s.setBigInt64(v,Gi(o[y]),wt),s.setBigInt64(v+f,Gi(i[y]*r),wt),v+=8;for(v+=f,s.setBigInt64(v,Gi(this._offset*r),wt),v+=8,s.setInt8(v,Hor[this._order]),v+=1,s.setInt8(v,g2[u]),v+=1,s.setBigInt64(v,Gi(d),wt),v+=8,y=0;y<d;y++)s.setInt8(v,g2[n[y]]),v+=1;return e=0,e|=this._flags.READONLY?4:0,s.setInt32(v,e,wt),this.__meta_dataview__=s,s}b2.exports=Zor});var w2=c((HQr,q2)=>{"use strict";var Yi=Gt(),Qor=va(),rnr=Yt(),enr=ea(),anr=4294967295,tnr=4294967296;function inr(r){var e,a,t,o;return e=new Qor(8),r===0||(o=(r&anr)>>>0,t=enr(r/tnr),a=new rnr(e.buffer),Yi?(a.setUint32(0,o,Yi),a.setUint32(4,t,Yi)):(a.setUint32(0,t,Yi),a.setUint32(4,o,Yi))),e}q2.exports=inr});var E2=c((ZQr,S2)=>{"use strict";var $i=Gt(),onr=va(),nnr=Yt(),snr=ea(),unr=4294967295,vnr=4294967296,nn=new onr(8),on=new nnr(nn.buffer);function fnr(r,e,a,t){var o,i,n;if(r===0){for(n=0;n<nn.length;n++)e[t]=0,t+=a;return e}for(i=(r&unr)>>>0,o=snr(r/vnr),$i?(on.setUint32(0,i,$i),on.setUint32(4,o,$i)):(on.setUint32(0,o,$i),on.setUint32(4,i,$i)),n=0;n<nn.length;n++)e[t]=nn[n],t+=a;return e}S2.exports=fnr});var $u=c((QQr,_2)=>{"use strict";var lnr=Ir(),A2=w2(),cnr=E2();lnr(A2,"assign",cnr);_2.exports=A2});var I2=c((rre,j2)=>{"use strict";var Wu=Gt(),dnr=li(),pnr=Yt(),ynr=va(),mnr=Be().enum,hnr=$t().enum,gnr=Wt().enum,Wi=$u().assign,bnr=mnr(),xnr=hnr(),T2=gnr();function qnr(){var r,e,a,t,o,i,n,s,u,v,f,l,d,y,p;if(v=this._mode||"throw",s=this._submode||[v],d=this._ndims,y=s.length,t=33+d*16+y,u=this.__meta_dataview__,u&&u.byteLength===t)return u;for(u=new pnr(new dnr(t)),e=new ynr(u.buffer),i=this._shape,n=this._strides,o=this._dtype,r=this._bytesPerElement,f=0,u.setInt8(f,Wu?1:0),f+=1,u.setInt16(f,bnr[o],Wu),f+=2,Wi(d,e,1,f),l=d*8,f+=8,p=0;p<d;p++)Wi(i[p],e,1,f),Wi(n[p]*r,e,1,f+l),f+=8;for(f+=l,Wi(this._offset*r,e,1,f),f+=8,u.setInt8(f,xnr[this._order]),f+=1,u.setInt8(f,T2[v]),f+=1,Wi(y,e,1,f),f+=8,p=0;p<y;p++)u.setInt8(f,T2[s[p]]),f+=1;return a=0,a|=this._flags.READONLY?4:0,u.setInt32(f,a,Wu),this.__meta_dataview__=u,u}j2.exports=qnr});var N2=c((ere,O2)=>{"use strict";var wnr=yu(),St=Ir(),_a=bt(),Snr=xt(),Enr=Ea(),Anr=Pt(),_nr=Vt(),Tnr=ky(),jnr=Fy(),Inr=My(),Onr=Yy(),Nnr=Wy(),Dnr=Xy(),knr=Hy(),Bnr=Qy(),Fnr=sm(),Rnr=Um(),znr=x2(),Vnr=I2();function be(r,e,a,t,o,i){var n,s,u,v,f;if(!(this instanceof be))return new be(r,e,a,t,o,i);for(v=1,f=0;f<a.length;f++)v*=a[f];return e.BYTES_PER_ELEMENT?s=e.BYTES_PER_ELEMENT*v:s=null,this._byteLength=s,this._bytesPerElement=Snr(r),this._buffer=e,this._dtype=r,this._length=v,this._ndims=a.length,this._offset=o,this._order=i,this._shape=a,this._strides=t,this._accessors=_nr(e.get&&e.set),this._iterationOrder=Enr(t),n=Inr(v,a,t,o,this._iterationOrder),u=Anr(t),this._flags={ROW_MAJOR_CONTIGUOUS:jnr(u,n),COLUMN_MAJOR_CONTIGUOUS:Tnr(u,n),READONLY:!1},this.__meta_dataview__=null,this}St(be,"name","ndarray");_a(be.prototype,"byteLength",function(){return this._byteLength});_a(be.prototype,"BYTES_PER_ELEMENT",function(){return this._bytesPerElement});_a(be.prototype,"data",function(){return this._buffer});_a(be.prototype,"dtype",function(){return this._dtype});_a(be.prototype,"flags",function(){return Onr(this._flags)});_a(be.prototype,"length",function(){return this._length});_a(be.prototype,"ndims",function(){return this._ndims});_a(be.prototype,"offset",function(){return this._offset});_a(be.prototype,"order",function(){return this._order});_a(be.prototype,"shape",function(){return this._shape.slice()});_a(be.prototype,"strides",function(){return this._strides.slice()});St(be.prototype,"get",Bnr);St(be.prototype,"iget",Nnr);St(be.prototype,"set",knr);St(be.prototype,"iset",Dnr);St(be.prototype,"toString",Rnr);St(be.prototype,"toJSON",Fnr);St(be.prototype,"__array_meta_dataview__",wnr()?znr:Vnr);O2.exports=be});var aa=c((are,D2)=>{"use strict";var Unr=N2();D2.exports=Unr});var B2=c((tre,k2)=>{"use strict";var Cnr=aa();function Pnr(r){return r instanceof Cnr||r!==null&&typeof r=="object"&&typeof r.data=="object"&&typeof r.shape=="object"&&typeof r.strides=="object"&&typeof r.offset=="number"&&typeof r.order=="string"&&typeof r.ndims=="number"&&typeof r.dtype=="string"&&typeof r.length=="number"&&typeof r.flags=="object"&&typeof r.get=="function"&&typeof r.set=="function"}k2.exports=Pnr});var se=c((ire,F2)=>{"use strict";var Lnr=B2();F2.exports=Lnr});var z2=c((ore,R2)=>{"use strict";function Mnr(r){var e,a,t,o;for(e=r.length,a=[],o=0;o<e;o++)a.push(0);for(t=1,o=e-1;o>=0;o--)a[o]=t,t*=r[o];return a}function Gnr(r){var e,a,t;for(e=[],a=1,t=0;t<r.length;t++)e.push(a),a*=r[t];return e}function Ynr(r,e){return e==="column-major"?Gnr(r):Mnr(r)}R2.exports=Ynr});var U2=c((nre,V2)=>{"use strict";function $nr(r,e){var a,t,o;for(a=r.length,t=1,o=a-1;o>=0;o--)e[o]=t,t*=r[o];return e}function Wnr(r,e){var a,t;for(a=1,t=0;t<r.length;t++)e[t]=a,a*=r[t];return e}function Jnr(r,e,a){return e==="column-major"?Wnr(r,a):$nr(r,a)}V2.exports=Jnr});var ze=c((sre,P2)=>{"use strict";var Xnr=Ir(),C2=z2(),Knr=U2();Xnr(C2,"assign",Knr);P2.exports=C2});var M2=c((ure,L2)=>{"use strict";function Hnr(r,e){var a,t,o;for(t=r.length,a=0,o=0;o<t;o++)e[o]<0&&(a-=e[o]*(r[o]-1));return a}L2.exports=Hnr});var Ye=c((vre,G2)=>{"use strict";var Znr=M2();G2.exports=Znr});var $2=c((fre,Y2)=>{"use strict";function Qnr(r){var e,a,t;if(e=r.length,e===0)return 0;for(a=1,t=0;t<e;t++)a*=r[t];return a}Y2.exports=Qnr});var Jr=c((lre,W2)=>{"use strict";var rsr=$2();W2.exports=rsr});var Ju=c((cre,J2)=>{"use strict";var esr=4294967295;J2.exports=esr});var K2=c((dre,X2)=>{"use strict";var asr=Sa(),tsr=Ju();function isr(r){return r!=null&&typeof r!="function"&&typeof r.length=="number"&&asr(r.length)&&r.length>=0&&r.length<=tsr}X2.exports=isr});var sn=c((pre,H2)=>{"use strict";var osr=K2();H2.exports=osr});var Q2=c((yre,Z2)=>{"use strict";var nsr=sn(),ssr=pr();function usr(r){if(typeof r!="function")throw new TypeError(ssr("invalid argument. Must provide a function. Value: `%s`.",r));return e;function e(a){var t,o;if(!nsr(a)||(t=a.length,t===0))return!1;for(o=0;o<t;o++)if(r(a[o])===!1)return!1;return!0}}Z2.exports=usr});var un=c((mre,rb)=>{"use strict";var vsr=Q2();rb.exports=vsr});var Jt=c((hre,ab)=>{"use strict";var Xu=ge(),eb=Ir(),Ku=un(),fsr=Ku(Xu.isPrimitive),lsr=Ku(Xu.isObject),Hu=Ku(Xu);eb(Hu,"primitives",fsr);eb(Hu,"objects",lsr);ab.exports=Hu});var ev=c((gre,ib)=>{"use strict";var Zu=fe(),tb=Ir(),Qu=un(),csr=Qu(Zu.isPrimitive),dsr=Qu(Zu.isObject),rv=Qu(Zu);tb(rv,"primitives",csr);tb(rv,"objects",dsr);ib.exports=rv});var sb=c((bre,nb)=>{"use strict";var psr=$t(),ob=psr(),ysr=ob.length;function msr(r){var e;for(e=0;e<ysr;e++)if(r===ob[e])return!0;return!1}nb.exports=msr});var Ta=c((xre,ub)=>{"use strict";var hsr=sb();ub.exports=hsr});var lb=c((qre,fb)=>{"use strict";var vb="function";function gsr(r){return typeof r.get===vb&&typeof r.set===vb}fb.exports=gsr});var it=c((wre,cb)=>{"use strict";var bsr=lb();cb.exports=bsr});var yb=c((Sre,pb)=>{"use strict";var db={complex128:xsr,complex64:qsr,default:wsr};function xsr(r,e){return r.get(e)}function qsr(r,e){return r.get(e)}function wsr(r,e){return r.get(e)}function Ssr(r){var e=db[r];return typeof e=="function"?e:db.default}pb.exports=Ssr});var ot=c((Ere,mb)=>{"use strict";var Esr=yb();mb.exports=Esr});var bb=c((Are,gb)=>{"use strict";var hb={float64:Asr,float32:_sr,int32:Tsr,int16:jsr,int8:Isr,uint32:Osr,uint16:Nsr,uint8:Dsr,uint8c:ksr,generic:Bsr,default:Fsr};function Asr(r,e){return r[e]}function _sr(r,e){return r[e]}function Tsr(r,e){return r[e]}function jsr(r,e){return r[e]}function Isr(r,e){return r[e]}function Osr(r,e){return r[e]}function Nsr(r,e){return r[e]}function Dsr(r,e){return r[e]}function ksr(r,e){return r[e]}function Bsr(r,e){return r[e]}function Fsr(r,e){return r[e]}function Rsr(r){var e=hb[r];return typeof e=="function"?e:hb.default}gb.exports=Rsr});var Et=c((_re,xb)=>{"use strict";var zsr=bb();xb.exports=zsr});var wb=c((Tre,qb)=>{"use strict";var Vsr={Float32Array:"float32",Float64Array:"float64",Array:"generic",Int16Array:"int16",Int32Array:"int32",Int8Array:"int8",Uint16Array:"uint16",Uint32Array:"uint32",Uint8Array:"uint8",Uint8ClampedArray:"uint8c",Complex64Array:"complex64",Complex128Array:"complex128",BooleanArray:"bool"};qb.exports=Vsr});var Eb=c((jre,Sb)=>{"use strict";var Usr=me(),Csr=typeof Float32Array=="function";function Psr(r){return Csr&&r instanceof Float32Array||Usr(r)==="[object Float32Array]"}Sb.exports=Psr});var _b=c((Ire,Ab)=>{"use strict";var Lsr=Eb();Ab.exports=Lsr});var jb=c((Ore,Tb)=>{"use strict";var Msr=typeof Float32Array=="function"?Float32Array:null;Tb.exports=Msr});var Nb=c((Nre,Ob)=>{"use strict";var Gsr=_b(),Ysr=Pi(),Ib=jb();function $sr(){var r,e;if(typeof Ib!="function")return!1;try{e=new Ib([1,3.14,-3.14,5e40]),r=Gsr(e)&&e[0]===1&&e[1]===3.140000104904175&&e[2]===-3.140000104904175&&e[3]===Ysr}catch{r=!1}return r}Ob.exports=$sr});var kb=c((Dre,Db)=>{"use strict";var Wsr=Nb();Db.exports=Wsr});var Fb=c((kre,Bb)=>{"use strict";var Jsr=typeof Float32Array=="function"?Float32Array:void 0;Bb.exports=Jsr});var zb=c((Bre,Rb)=>{"use strict";function Xsr(){throw new Error("not implemented")}Rb.exports=Xsr});var At=c((Fre,Vb)=>{"use strict";var Ksr=kb(),Hsr=Fb(),Zsr=zb(),av;Ksr()?av=Hsr:av=Zsr;Vb.exports=av});var Cb=c((Rre,Ub)=>{"use strict";var Qsr=me(),rur=typeof Uint32Array=="function";function eur(r){return rur&&r instanceof Uint32Array||Qsr(r)==="[object Uint32Array]"}Ub.exports=eur});var Lb=c((zre,Pb)=>{"use strict";var aur=Cb();Pb.exports=aur});var Gb=c((Vre,Mb)=>{"use strict";var tur=typeof Uint32Array=="function"?Uint32Array:null;Mb.exports=tur});var Wb=c((Ure,$b)=>{"use strict";var iur=Lb(),tv=an(),Yb=Gb();function our(){var r,e;if(typeof Yb!="function")return!1;try{e=[1,3.14,-3.14,tv+1,tv+2],e=new Yb(e),r=iur(e)&&e[0]===1&&e[1]===3&&e[2]===tv-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}$b.exports=our});var Xb=c((Cre,Jb)=>{"use strict";var nur=Wb();Jb.exports=nur});var Hb=c((Pre,Kb)=>{"use strict";var sur=typeof Uint32Array=="function"?Uint32Array:void 0;Kb.exports=sur});var Qb=c((Lre,Zb)=>{"use strict";function uur(){throw new Error("not implemented")}Zb.exports=uur});var Ji=c((Mre,rx)=>{"use strict";var vur=Xb(),fur=Hb(),lur=Qb(),iv;vur()?iv=fur:iv=lur;rx.exports=iv});var ax=c((Gre,ex)=>{"use strict";var cur=me(),dur=typeof Int32Array=="function";function pur(r){return dur&&r instanceof Int32Array||cur(r)==="[object Int32Array]"}ex.exports=pur});var ix=c((Yre,tx)=>{"use strict";var yur=ax();tx.exports=yur});var ov=c(($re,ox)=>{"use strict";var mur=2147483647;ox.exports=mur});var nv=c((Wre,nx)=>{"use strict";var hur=-2147483648;nx.exports=hur});var ux=c((Jre,sx)=>{"use strict";var gur=typeof Int32Array=="function"?Int32Array:null;sx.exports=gur});var lx=c((Xre,fx)=>{"use strict";var bur=ix(),xur=ov(),qur=nv(),vx=ux();function wur(){var r,e;if(typeof vx!="function")return!1;try{e=new vx([1,3.14,-3.14,xur+1]),r=bur(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===qur}catch{r=!1}return r}fx.exports=wur});var dx=c((Kre,cx)=>{"use strict";var Sur=lx();cx.exports=Sur});var yx=c((Hre,px)=>{"use strict";var Eur=typeof Int32Array=="function"?Int32Array:void 0;px.exports=Eur});var hx=c((Zre,mx)=>{"use strict";function Aur(){throw new Error("not implemented")}mx.exports=Aur});var Xi=c((Qre,gx)=>{"use strict";var _ur=dx(),Tur=yx(),jur=hx(),sv;_ur()?sv=Tur:sv=jur;gx.exports=sv});var xx=c((ree,bx)=>{"use strict";var Iur=me(),Our=typeof Int16Array=="function";function Nur(r){return Our&&r instanceof Int16Array||Iur(r)==="[object Int16Array]"}bx.exports=Nur});var wx=c((eee,qx)=>{"use strict";var Dur=xx();qx.exports=Dur});var uv=c((aee,Sx)=>{"use strict";var kur=32767;Sx.exports=kur});var vv=c((tee,Ex)=>{"use strict";var Bur=-32768;Ex.exports=Bur});var _x=c((iee,Ax)=>{"use strict";var Fur=typeof Int16Array=="function"?Int16Array:null;Ax.exports=Fur});var Ix=c((oee,jx)=>{"use strict";var Rur=wx(),zur=uv(),Vur=vv(),Tx=_x();function Uur(){var r,e;if(typeof Tx!="function")return!1;try{e=new Tx([1,3.14,-3.14,zur+1]),r=Rur(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===Vur}catch{r=!1}return r}jx.exports=Uur});var Nx=c((nee,Ox)=>{"use strict";var Cur=Ix();Ox.exports=Cur});var kx=c((see,Dx)=>{"use strict";var Pur=typeof Int16Array=="function"?Int16Array:void 0;Dx.exports=Pur});var Fx=c((uee,Bx)=>{"use strict";function Lur(){throw new Error("not implemented")}Bx.exports=Lur});var Ki=c((vee,Rx)=>{"use strict";var Mur=Nx(),Gur=kx(),Yur=Fx(),fv;Mur()?fv=Gur:fv=Yur;Rx.exports=fv});var Vx=c((fee,zx)=>{"use strict";var $ur=me(),Wur=typeof Uint8ClampedArray=="function";function Jur(r){return Wur&&r instanceof Uint8ClampedArray||$ur(r)==="[object Uint8ClampedArray]"}zx.exports=Jur});var Cx=c((lee,Ux)=>{"use strict";var Xur=Vx();Ux.exports=Xur});var Lx=c((cee,Px)=>{"use strict";var Kur=typeof Uint8ClampedArray=="function"?Uint8ClampedArray:null;Px.exports=Kur});var Yx=c((dee,Gx)=>{"use strict";var Hur=Cx(),Mx=Lx();function Zur(){var r,e;if(typeof Mx!="function")return!1;try{e=new Mx([-1,0,1,3.14,4.99,255,256]),r=Hur(e)&&e[0]===0&&e[1]===0&&e[2]===1&&e[3]===3&&e[4]===5&&e[5]===255&&e[6]===255}catch{r=!1}return r}Gx.exports=Zur});var Wx=c((pee,$x)=>{"use strict";var Qur=Yx();$x.exports=Qur});var Xx=c((yee,Jx)=>{"use strict";var rvr=typeof Uint8ClampedArray=="function"?Uint8ClampedArray:void 0;Jx.exports=rvr});var Hx=c((mee,Kx)=>{"use strict";function evr(){throw new Error("not implemented")}Kx.exports=evr});var Hi=c((hee,Zx)=>{"use strict";var avr=Wx(),tvr=Xx(),ivr=Hx(),lv;avr()?lv=tvr:lv=ivr;Zx.exports=lv});var rq=c((gee,Qx)=>{"use strict";var ovr=me(),nvr=typeof Int8Array=="function";function svr(r){return nvr&&r instanceof Int8Array||ovr(r)==="[object Int8Array]"}Qx.exports=svr});var aq=c((bee,eq)=>{"use strict";var uvr=rq();eq.exports=uvr});var cv=c((xee,tq)=>{"use strict";var vvr=127;tq.exports=vvr});var dv=c((qee,iq)=>{"use strict";var fvr=-128;iq.exports=fvr});var nq=c((wee,oq)=>{"use strict";var lvr=typeof Int8Array=="function"?Int8Array:null;oq.exports=lvr});var vq=c((See,uq)=>{"use strict";var cvr=aq(),dvr=cv(),pvr=dv(),sq=nq();function yvr(){var r,e;if(typeof sq!="function")return!1;try{e=new sq([1,3.14,-3.14,dvr+1]),r=cvr(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===pvr}catch{r=!1}return r}uq.exports=yvr});var lq=c((Eee,fq)=>{"use strict";var mvr=vq();fq.exports=mvr});var dq=c((Aee,cq)=>{"use strict";var hvr=typeof Int8Array=="function"?Int8Array:void 0;cq.exports=hvr});var yq=c((_ee,pq)=>{"use strict";function gvr(){throw new Error("not implemented")}pq.exports=gvr});var Zi=c((Tee,mq)=>{"use strict";var bvr=lq(),xvr=dq(),qvr=yq(),pv;bvr()?pv=xvr:pv=qvr;mq.exports=pv});var gq=c((jee,hq)=>{"use strict";var wvr=Sa(),Svr=Ju();function Evr(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&wvr(r.length)&&r.length>=0&&r.length<=Svr}hq.exports=Evr});var Ve=c((Iee,bq)=>{"use strict";var Avr=gq();bq.exports=Avr});var vn=c((Oee,qq)=>{"use strict";var xq=Ir(),yv=au(),mv=Pa(),_vr=yv(mv.isPrimitive),Tvr=yv(mv.isObject),hv=yv(mv);xq(hv,"primitives",_vr);xq(hv,"objects",Tvr);qq.exports=hv});var Sq=c((Nee,wq)=>{"use strict";function jvr(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i",r}wq.exports=jvr});var Aq=c((Dee,Eq)=>{"use strict";function Ivr(){var r={};return r.type="Complex128",r.re=this.re,r.im=this.im,r}Eq.exports=Ivr});var Oq=c((kee,Iq)=>{"use strict";var _q=Ge().isPrimitive,Tq=Rt(),Qi=Ir(),jq=pr(),Ovr=Sq(),Nvr=Aq();function Xt(r,e){if(!(this instanceof Xt))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!_q(r))throw new TypeError(jq("invalid argument. Real component must be a number. Value: `%s`.",r));if(!_q(e))throw new TypeError(jq("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return Tq(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:r}),Tq(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:e}),this}Qi(Xt,"BYTES_PER_ELEMENT",8);Qi(Xt.prototype,"BYTES_PER_ELEMENT",8);Qi(Xt.prototype,"byteLength",16);Qi(Xt.prototype,"toString",Ovr);Qi(Xt.prototype,"toJSON",Nvr);Iq.exports=Xt});var fn=c((Bee,Nq)=>{"use strict";var Dvr=Oq();Nq.exports=Dvr});var kq=c((Fee,Dq)=>{"use strict";var kvr=typeof Math.fround=="function"?Math.fround:null;Dq.exports=kvr});var Rq=c((Ree,Fq)=>{"use strict";var Bvr=At(),Bq=new Bvr(1);function Fvr(r){return Bq[0]=r,Bq[0]}Fq.exports=Fvr});var Uq=c((zee,Vq)=>{"use strict";var zq=kq(),Rvr=Rq(),gv;typeof zq=="function"?gv=zq:gv=Rvr;Vq.exports=gv});var Pq=c((Vee,Cq)=>{"use strict";function zvr(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i",r}Cq.exports=zvr});var Mq=c((Uee,Lq)=>{"use strict";function Vvr(){var r={};return r.type="Complex64",r.re=this.re,r.im=this.im,r}Lq.exports=Vvr});var Xq=c((Cee,Jq)=>{"use strict";var Gq=Ge().isPrimitive,Yq=Rt(),ro=Ir(),$q=Uq(),Wq=pr(),Uvr=Pq(),Cvr=Mq();function Kt(r,e){if(!(this instanceof Kt))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!Gq(r))throw new TypeError(Wq("invalid argument. Real component must be a number. Value: `%s`.",r));if(!Gq(e))throw new TypeError(Wq("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return Yq(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:$q(r)}),Yq(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:$q(e)}),this}ro(Kt,"BYTES_PER_ELEMENT",4);ro(Kt.prototype,"BYTES_PER_ELEMENT",4);ro(Kt.prototype,"byteLength",8);ro(Kt.prototype,"toString",Uvr);ro(Kt.prototype,"toJSON",Cvr);Jq.exports=Kt});var ln=c((Pee,Kq)=>{"use strict";var Pvr=Xq();Kq.exports=Pvr});var Zq=c((Lee,Hq)=>{"use strict";var Lvr=fn(),Mvr=ln();function Gvr(r){return r instanceof Lvr||r instanceof Mvr?!0:typeof r=="object"&&r!==null&&typeof r.re=="number"&&typeof r.im=="number"}Hq.exports=Gvr});var fa=c((Mee,Qq)=>{"use strict";var Yvr=Zq();Qq.exports=Yvr});var ew=c((Gee,rw)=>{"use strict";var $vr=Sa();function Wvr(r){return $vr(r/2)}rw.exports=Wvr});var bv=c((Yee,aw)=>{"use strict";var Jvr=ew();aw.exports=Jvr});var iw=c(($ee,tw)=>{"use strict";var Xvr=8;function Kvr(r){return typeof r=="object"&&r!==null&&r.constructor.name==="Complex64Array"&&r.BYTES_PER_ELEMENT===Xvr}tw.exports=Kvr});var cn=c((Wee,ow)=>{"use strict";var Hvr=iw();ow.exports=Hvr});var sw=c((Jee,nw)=>{"use strict";var Zvr=16;function Qvr(r){return typeof r=="object"&&r!==null&&r.constructor.name==="Complex128Array"&&r.BYTES_PER_ELEMENT===Zvr}nw.exports=Qvr});var dn=c((Xee,uw)=>{"use strict";var rfr=sw();uw.exports=rfr});var fw=c((Kee,vw)=>{"use strict";var efr=Xr(),pn=Ws();function afr(){return typeof pn=="function"&&typeof pn("foo")=="symbol"&&efr(pn,"iterator")&&typeof pn.iterator=="symbol"}vw.exports=afr});var eo=c((Hee,lw)=>{"use strict";var tfr=fw();lw.exports=tfr});var dw=c((Zee,cw)=>{"use strict";var ifr=eo(),ofr=ifr()?Symbol.iterator:null;cw.exports=ofr});var Fe=c((Qee,pw)=>{"use strict";var nfr=dw();pw.exports=nfr});var mw=c((rae,yw)=>{"use strict";function sfr(r){return r.re}yw.exports=sfr});var ao=c((eae,hw)=>{"use strict";var ufr=mw();hw.exports=ufr});var bw=c((aae,gw)=>{"use strict";function vfr(r){return r.im}gw.exports=vfr});var to=c((tae,xw)=>{"use strict";var ffr=bw();xw.exports=ffr});var ww=c((iae,qw)=>{"use strict";var lfr=At();function cfr(r,e){return new lfr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}qw.exports=cfr});var io=c((oae,Sw)=>{"use strict";var dfr=ww();Sw.exports=dfr});var Aw=c((nae,Ew)=>{"use strict";var pfr=qt();function yfr(r,e){return new pfr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}Ew.exports=yfr});var oo=c((sae,_w)=>{"use strict";var mfr=Aw();_w.exports=mfr});var jw=c((uae,Tw)=>{"use strict";var hfr=Ve(),gfr=fa(),bfr=ao(),xfr=to(),qfr=pr();function wfr(r){var e,a,t;for(e=[];a=r.next(),!a.done;)if(t=a.value,hfr(t)&&t.length>=2)e.push(t[0],t[1]);else if(gfr(t))e.push(bfr(t),xfr(t));else return new TypeError(qfr("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",t));return e}Tw.exports=wfr});var Ow=c((vae,Iw)=>{"use strict";var Sfr=Ve(),Efr=fa(),Afr=ao(),_fr=to(),Tfr=pr();function jfr(r,e,a){var t,o,i,n;for(t=[],n=-1;o=r.next(),!o.done;)if(n+=1,i=e.call(a,o.value,n),Sfr(i)&&i.length>=2)t.push(i[0],i[1]);else if(Efr(i))t.push(Afr(i),_fr(i));else return new TypeError(Tfr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",i));return t}Iw.exports=jfr});var Dw=c((fae,Nw)=>{"use strict";var Ifr=fa(),Ofr=ao(),Nfr=to();function Dfr(r,e){var a,t,o,i;for(a=e.length,i=0,o=0;o<a;o++){if(t=e[o],!Ifr(t))return null;r[i]=Ofr(t),r[i+1]=Nfr(t),i+=2}return r}Nw.exports=Dfr});var Uw=c((lae,Vw)=>{"use strict";var no=ge().isPrimitive,xv=Ve(),qv=ke(),kw=Li(),wv=Ui(),kfr=wa(),Bfr=vn().primitives,Bw=Pa().isPrimitive,Ee=Pe(),ca=fa(),yn=bv(),$e=Sa(),Ffr=cn(),Rfr=dn(),zfr=eo(),La=Fe(),Gr=Ir(),mn=bt(),la=At(),Vfr=ln(),kr=pr(),ja=ao(),Ia=to(),Ufr=ea(),Cfr=io(),Pfr=oo(),Lfr=Et(),Mfr=ot(),Fw=jw(),Gfr=Ow(),Yfr=Dw(),ta=la.BYTES_PER_ELEMENT*2,Rw=zfr();function ee(r){return r instanceof Cr||typeof r=="object"&&r!==null&&(r.constructor.name==="Complex64Array"||r.constructor.name==="Complex128Array")&&typeof r._length=="number"&&typeof r._buffer=="object"}function zw(r){return r===Cr||r.name==="Complex128Array"}function xe(r,e){return e*=2,new Vfr(r[e],r[e+1])}function Cr(){var r,e,a,t;if(e=arguments.length,!(this instanceof Cr))return e===0?new Cr:e===1?new Cr(arguments[0]):e===2?new Cr(arguments[0],arguments[1]):new Cr(arguments[0],arguments[1],arguments[2]);if(e===0)a=new la(0);else if(e===1)if(no(arguments[0]))a=new la(arguments[0]*2);else if(qv(arguments[0]))if(a=arguments[0],t=a.length,t&&kfr(a)&&ca(a[0])){if(a=Yfr(new la(t*2),a),a===null){if(!yn(t))throw new RangeError(kr("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new la(arguments[0])}}else{if(Ffr(a))a=Cfr(a,0);else if(Rfr(a))a=Pfr(a,0);else if(!yn(t))throw new RangeError(kr("invalid argument. Array-like object and typed array arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new la(a)}else if(kw(arguments[0])){if(a=arguments[0],!$e(a.byteLength/ta))throw new RangeError(kr("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",ta,a.byteLength));a=new la(a)}else if(wv(arguments[0])){if(a=arguments[0],Rw===!1)throw new TypeError(kr("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",a));if(!Ee(a[La]))throw new TypeError(kr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=a[La](),!Ee(a.next))throw new TypeError(kr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=Fw(a),a instanceof Error)throw a;a=new la(a)}else throw new TypeError(kr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",arguments[0]));else{if(a=arguments[0],!kw(a))throw new TypeError(kr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!no(r))throw new TypeError(kr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!$e(r/ta))throw new RangeError(kr("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",ta,r));if(e===2){if(t=a.byteLength-r,!$e(t/ta))throw new RangeError(kr("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",ta,t));a=new la(a,r)}else{if(t=arguments[2],!no(t))throw new TypeError(kr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*ta>a.byteLength-r)throw new RangeError(kr("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*ta));a=new la(a,r,t*2)}}return Gr(this,"_buffer",a),Gr(this,"_length",a.length/2),this}Gr(Cr,"BYTES_PER_ELEMENT",ta);Gr(Cr,"name","Complex64Array");Gr(Cr,"from",function(e){var a,t,o,i,n,s,u,v,f,l,d,y;if(!Ee(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!zw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(t=arguments.length,t>1){if(o=arguments[1],!Ee(o))throw new TypeError(kr("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(ee(e)){if(v=e.length,o){for(i=new this(v),n=i._buffer,y=0,d=0;d<v;d++){if(l=o.call(a,e.get(d),d),ca(l))n[y]=ja(l),n[y+1]=Ia(l);else if(xv(l)&&l.length>=2)n[y]=l[0],n[y+1]=l[1];else throw new TypeError(kr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));y+=2}return i}return new this(e)}if(qv(e)){if(o){for(v=e.length,e.get&&e.set?u=Mfr("default"):u=Lfr("default"),d=0;d<v;d++)if(!ca(u(e,d))){f=!0;break}if(f){if(!yn(v))throw new RangeError(kr("invalid argument. First argument must have a length which is a multiple of %u. Length: `%u`.",2,v));for(i=new this(v/2),n=i._buffer,d=0;d<v;d++)n[d]=o.call(a,u(e,d),d);return i}for(i=new this(v),n=i._buffer,y=0,d=0;d<v;d++){if(l=o.call(a,u(e,d),d),ca(l))n[y]=ja(l),n[y+1]=Ia(l);else if(xv(l)&&l.length>=2)n[y]=l[0],n[y+1]=l[1];else throw new TypeError(kr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));y+=2}return i}return new this(e)}if(wv(e)&&Rw&&Ee(e[La])){if(n=e[La](),!Ee(n.next))throw new TypeError(kr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));if(o?s=Gfr(n,o,a):s=Fw(n),s instanceof Error)throw s;for(v=s.length/2,i=new this(v),n=i._buffer,d=0;d<v;d++)n[d]=s[d];return i}throw new TypeError(kr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});Gr(Cr,"of",function(){var e,a;if(!Ee(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!zw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=0;a<arguments.length;a++)e.push(arguments[a]);return new this(e)});Gr(Cr.prototype,"at",function(e){if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!$e(e))throw new TypeError(kr("invalid argument. Must provide an integer. Value: `%s`.",e));if(e<0&&(e+=this._length),!(e<0||e>=this._length))return xe(this._buffer,e)});mn(Cr.prototype,"buffer",function(){return this._buffer.buffer});mn(Cr.prototype,"byteLength",function(){return this._buffer.byteLength});mn(Cr.prototype,"byteOffset",function(){return this._buffer.byteOffset});Gr(Cr.prototype,"BYTES_PER_ELEMENT",Cr.BYTES_PER_ELEMENT);Gr(Cr.prototype,"copyWithin",function(e,a){if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return arguments.length===2?this._buffer.copyWithin(e*2,a*2):this._buffer.copyWithin(e*2,a*2,arguments[2]*2),this});Gr(Cr.prototype,"entries",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,o=this._buffer,t=this._length,n=-1,a={},Gr(a,"next",s),Gr(a,"return",u),La&&Gr(a,La,v),a;function s(){return n+=1,i||n>=t?{done:!0}:{value:[n,xe(o,n)],done:!1}}function u(f){return i=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return e.entries()}});Gr(Cr.prototype,"every",function(e,a){var t,o;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(!e.call(a,xe(t,o),o,this))return!1;return!0});Gr(Cr.prototype,"fill",function(e,a,t){var o,i,n,s,u,v;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(kr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!$e(t))throw new TypeError(kr("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i,t<0&&(t=0)),t>i&&(t=i)}else t=i}else a=0,t=i;for(s=ja(e),u=Ia(e),v=a;v<t;v++)n=2*v,o[n]=s,o[n+1]=u;return this});Gr(Cr.prototype,"filter",function(e,a){var t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=[],i=0;i<this._length;i++)n=xe(t,i),e.call(a,n,i,this)&&o.push(n);return new this.constructor(o)});Gr(Cr.prototype,"find",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=xe(t,o),e.call(a,i,o,this))return i});Gr(Cr.prototype,"findIndex",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=xe(t,o),e.call(a,i,o,this))return o;return-1});Gr(Cr.prototype,"findLast",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=xe(t,o),e.call(a,i,o,this))return i});Gr(Cr.prototype,"findLastIndex",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=xe(t,o),e.call(a,i,o,this))return o;return-1});Gr(Cr.prototype,"forEach",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)i=xe(t,o),e.call(a,i,o,this)});Gr(Cr.prototype,"get",function(e){if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!no(e))throw new TypeError(kr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return xe(this._buffer,e)});Gr(Cr.prototype,"includes",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(kr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=ja(e),n=Ia(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return!0;return!1});Gr(Cr.prototype,"indexOf",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(kr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=ja(e),n=Ia(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});Gr(Cr.prototype,"join",function(e){var a,t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=",";else if(Bw(e))o=e;else throw new TypeError(kr("invalid argument. First argument must be a string. Value: `%s`.",e));for(a=[],t=this._buffer,i=0;i<this._length;i++)a.push(xe(t,i).toString());return a.join(o)});Gr(Cr.prototype,"keys",function(){var e,a,t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,t=this._length,i=-1,a={},Gr(a,"next",n),Gr(a,"return",s),La&&Gr(a,La,u),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(v){return o=!0,arguments.length?{value:v,done:!0}:{done:!0}}function u(){return e.keys()}});Gr(Cr.prototype,"lastIndexOf",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(kr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a>=this._length?a=this._length-1:a<0&&(a+=this._length)}else a=this._length-1;for(i=ja(e),n=Ia(e),t=this._buffer,s=a;s>=0;s--)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});mn(Cr.prototype,"length",function(){return this._length});Gr(Cr.prototype,"map",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(o=this._buffer,i=new this.constructor(this._length),t=i._buffer,n=0;n<this._length;n++)if(s=e.call(a,xe(o,n),n,this),ca(s))t[2*n]=ja(s),t[2*n+1]=Ia(s);else if(xv(s)&&s.length===2)t[2*n]=s[0],t[2*n+1]=s[1];else throw new TypeError(kr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",s));return i});Gr(Cr.prototype,"reduce",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=0;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=xe(t,0),s=1}for(;s<i;s++)n=xe(t,s),o=e(o,n,s,this);return o});Gr(Cr.prototype,"reduceRight",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=i-1;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=xe(t,i-1),s=i-2}for(;s>=0;s--)n=xe(t,s),o=e(o,n,s,this);return o});Gr(Cr.prototype,"reverse",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=this._buffer,o=Ufr(t/2),i=0;i<o;i++)n=t-i-1,a=e[2*i],e[2*i]=e[2*n],e[2*n]=a,a=e[2*i+1],e[2*i+1]=e[2*n+1],e[2*n+1]=a;return this});Gr(Cr.prototype,"set",function(e){var a,t,o,i,n,s,u,v,f;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!no(t))throw new TypeError(kr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(ca(e)){if(t>=this._length)throw new RangeError(kr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));t*=2,o[t]=ja(e),o[t+1]=Ia(e);return}if(ee(e)){if(s=e._length,t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e._buffer,f=o.byteOffset+t*ta,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new la(a.length),v=0;v<a.length;v++)i[v]=a[v];a=i}for(t*=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(qv(e)){for(s=e.length,v=0;v<s;v++)if(!ca(e[v])){n=!0;break}if(n){if(!yn(s))throw new RangeError(kr("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",s));if(t+s/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e,f=o.byteOffset+t*ta,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new la(s),v=0;v<s;v++)i[v]=a[v];a=i}for(t*=2,s/=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,v=0;v<s;v++)u=e[v],o[t]=ja(u),o[t+1]=Ia(u),t+=2;return}throw new TypeError(kr("invalid argument. First argument must be either a complex number, an array-like object, or a complex number array. Value: `%s`.",e))});Gr(Cr.prototype,"slice",function(e,a){var t,o,i,n,s,u,v;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(s=this._buffer,u=this._length,arguments.length===0)e=0,a=u;else{if(!$e(e))throw new TypeError(kr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=u,e<0&&(e=0)),arguments.length===1)a=u;else{if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=u,a<0&&(a=0)):a>u&&(a=u)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,v=0;v<t;v++)n=2*(v+e),o[2*v]=s[n],o[2*v+1]=s[n+1];return i});Gr(Cr.prototype,"some",function(e,a){var t,o;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(e.call(a,xe(t,o),o,this))return!0;return!1});Gr(Cr.prototype,"sort",function(e){var a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(xe(t,i));for(a.sort(e),i=0;i<o;i++)n=2*i,t[n]=ja(a[i]),t[n+1]=Ia(a[i]);return this});Gr(Cr.prototype,"subarray",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,i=this._length,arguments.length===0)e=0,a=i;else{if(!$e(e))throw new TypeError(kr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i,e<0&&(e=0)),arguments.length===1)a=i;else{if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=i,a<0&&(a=0)):a>i&&(a=i)}}return e>=i?(i=0,t=o.byteLength):e>=a?(i=0,t=o.byteOffset+e*ta):(i=a-e,t=o.byteOffset+e*ta),new this.constructor(o.buffer,t,i<0?0:i)});Gr(Cr.prototype,"toLocaleString",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=[];else if(Bw(e)||Bfr(e))o=e;else throw new TypeError(kr("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(wv(a))t=a;else throw new TypeError(kr("invalid argument. Options argument must be an object. Value: `%s`.",a));for(n=this._buffer,i=[],s=0;s<this._length;s++)i.push(xe(n,s).toLocaleString(o,t));return i.join(",")});Gr(Cr.prototype,"toReversed",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,a=new this.constructor(t),o=this._buffer,e=a._buffer,i=0;i<t;i++)n=t-i-1,e[2*i]=o[2*n],e[2*i+1]=o[2*n+1];return a});Gr(Cr.prototype,"toSorted",function(e){var a,t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(xe(t,i));return a.sort(e),new Cr(a)});Gr(Cr.prototype,"toString",function(){var e,a,t;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=this._buffer,t=0;t<this._length;t++)e.push(xe(a,t).toString());return e.join(",")});Gr(Cr.prototype,"values",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,i=this._buffer,t=this._length,n=-1,e={},Gr(e,"next",s),Gr(e,"return",u),La&&Gr(e,La,v),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:xe(i,n),done:!1}}function u(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return a.values()}});Gr(Cr.prototype,"with",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!$e(e))throw new TypeError(kr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(i=this._length,e<0&&(e+=i),e<0||e>=i)throw new RangeError(kr("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!ca(a))throw new TypeError(kr("invalid argument. Second argument must be a complex number. Value: `%s`.",a));return o=new this.constructor(this._buffer),t=o._buffer,t[2*e]=ja(a),t[2*e+1]=Ia(a),o});Vw.exports=Cr});var so=c((cae,Cw)=>{"use strict";var $fr=Uw();Cw.exports=$fr});var Lw=c((dae,Pw)=>{"use strict";var Wfr=Ve(),Jfr=fa(),Xfr=pr(),Kfr=Lt(),Hfr=Mt();function Zfr(r){var e,a,t;for(e=[];a=r.next(),!a.done;)if(t=a.value,Wfr(t)&&t.length>=2)e.push(t[0],t[1]);else if(Jfr(t))e.push(Kfr(t),Hfr(t));else return new TypeError(Xfr("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",t));return e}Pw.exports=Zfr});var Gw=c((pae,Mw)=>{"use strict";var Qfr=Ve(),rlr=fa(),elr=pr(),alr=Lt(),tlr=Mt();function ilr(r,e,a){var t,o,i,n;for(t=[],n=-1;o=r.next(),!o.done;)if(n+=1,i=e.call(a,o.value,n),Qfr(i)&&i.length>=2)t.push(i[0],i[1]);else if(rlr(i))t.push(alr(i),tlr(i));else return new TypeError(elr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",i));return t}Mw.exports=ilr});var $w=c((yae,Yw)=>{"use strict";var olr=fa(),nlr=Lt(),slr=Mt();function ulr(r,e){var a,t,o,i;for(a=e.length,i=0,o=0;o<a;o++){if(t=e[o],!olr(t))return null;r[i]=nlr(t),r[i+1]=slr(t),i+=2}return r}Yw.exports=ulr});var r3=c((mae,Qw)=>{"use strict";var uo=ge().isPrimitive,Sv=Ve(),Ev=ke(),Ww=Li(),Av=Ui(),vlr=wa(),flr=vn().primitives,Jw=Pa(),Ae=Pe(),pa=fa(),hn=bv(),We=Sa(),llr=cn(),clr=dn(),dlr=eo(),Ma=Fe(),Yr=Ir(),gn=bt(),da=qt(),Xw=fn(),Oa=Lt(),Na=Mt(),plr=ea(),ylr=io(),mlr=oo(),hlr=Et(),glr=ot(),Br=pr(),Kw=Lw(),blr=Gw(),xlr=$w(),ia=da.BYTES_PER_ELEMENT*2,Hw=dlr();function ae(r){return r instanceof Pr||typeof r=="object"&&r!==null&&(r.constructor.name==="Complex64Array"||r.constructor.name==="Complex128Array")&&typeof r._length=="number"&&typeof r._buffer=="object"}function Zw(r){return r===Pr||r.name==="Complex64Array"}function we(r,e){return e*=2,new Xw(r[e],r[e+1])}function Pr(){var r,e,a,t;if(e=arguments.length,!(this instanceof Pr))return e===0?new Pr:e===1?new Pr(arguments[0]):e===2?new Pr(arguments[0],arguments[1]):new Pr(arguments[0],arguments[1],arguments[2]);if(e===0)a=new da(0);else if(e===1)if(uo(arguments[0]))a=new da(arguments[0]*2);else if(Ev(arguments[0]))if(a=arguments[0],t=a.length,t&&vlr(a)&&pa(a[0])){if(a=xlr(new da(t*2),a),a===null){if(!hn(t))throw new RangeError(Br("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new da(arguments[0])}}else{if(llr(a))a=ylr(a,0);else if(clr(a))a=mlr(a,0);else if(!hn(t))throw new RangeError(Br("invalid argument. Array-like object and typed array arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new da(a)}else if(Ww(arguments[0])){if(a=arguments[0],!We(a.byteLength/ia))throw new RangeError(Br("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",ia,a.byteLength));a=new da(a)}else if(Av(arguments[0])){if(a=arguments[0],Hw===!1)throw new TypeError(Br("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",a));if(!Ae(a[Ma]))throw new TypeError(Br("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=a[Ma](),!Ae(a.next))throw new TypeError(Br("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=Kw(a),a instanceof Error)throw a;a=new da(a)}else throw new TypeError(Br("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",arguments[0]));else{if(a=arguments[0],!Ww(a))throw new TypeError(Br("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!uo(r))throw new TypeError(Br("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!We(r/ia))throw new RangeError(Br("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",ia,r));if(e===2){if(t=a.byteLength-r,!We(t/ia))throw new RangeError(Br("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",ia,t));a=new da(a,r)}else{if(t=arguments[2],!uo(t))throw new TypeError(Br("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*ia>a.byteLength-r)throw new RangeError(Br("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*ia));a=new da(a,r,t*2)}}return Yr(this,"_buffer",a),Yr(this,"_length",a.length/2),this}Yr(Pr,"BYTES_PER_ELEMENT",ia);Yr(Pr,"name","Complex128Array");Yr(Pr,"from",function(e){var a,t,o,i,n,s,u,v,f,l,d,y;if(!Ae(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Zw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(t=arguments.length,t>1){if(o=arguments[1],!Ae(o))throw new TypeError(Br("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(ae(e)){if(v=e.length,o){for(i=new this(v),n=i._buffer,y=0,d=0;d<v;d++){if(l=o.call(a,e.get(d),d),pa(l))n[y]=Oa(l),n[y+1]=Na(l);else if(Sv(l)&&l.length>=2)n[y]=l[0],n[y+1]=l[1];else throw new TypeError(Br("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));y+=2}return i}return new this(e)}if(Ev(e)){if(o){for(v=e.length,e.get&&e.set?u=glr("default"):u=hlr("default"),d=0;d<v;d++)if(!pa(u(e,d))){f=!0;break}if(f){if(!hn(v))throw new RangeError(Br("invalid argument. First argument must have a length which is a multiple of two. Length: `%u`.",v));for(i=new this(v/2),n=i._buffer,d=0;d<v;d++)n[d]=o.call(a,u(e,d),d);return i}for(i=new this(v),n=i._buffer,y=0,d=0;d<v;d++){if(l=o.call(a,u(e,d),d),pa(l))n[y]=Oa(l),n[y+1]=Na(l);else if(Sv(l)&&l.length>=2)n[y]=l[0],n[y+1]=l[1];else throw new TypeError(Br("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));y+=2}return i}return new this(e)}if(Av(e)&&Hw&&Ae(e[Ma])){if(n=e[Ma](),!Ae(n.next))throw new TypeError(Br("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));if(o?s=blr(n,o,a):s=Kw(n),s instanceof Error)throw s;for(v=s.length/2,i=new this(v),n=i._buffer,d=0;d<v;d++)n[d]=s[d];return i}throw new TypeError(Br("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});Yr(Pr,"of",function(){var e,a;if(!Ae(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Zw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=0;a<arguments.length;a++)e.push(arguments[a]);return new this(e)});Yr(Pr.prototype,"at",function(e){if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!We(e))throw new TypeError(Br("invalid argument. Must provide an integer. Value: `%s`.",e));if(e<0&&(e+=this._length),!(e<0||e>=this._length))return we(this._buffer,e)});gn(Pr.prototype,"buffer",function(){return this._buffer.buffer});gn(Pr.prototype,"byteLength",function(){return this._buffer.byteLength});gn(Pr.prototype,"byteOffset",function(){return this._buffer.byteOffset});Yr(Pr.prototype,"BYTES_PER_ELEMENT",Pr.BYTES_PER_ELEMENT);Yr(Pr.prototype,"copyWithin",function(e,a){if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return arguments.length===2?this._buffer.copyWithin(e*2,a*2):this._buffer.copyWithin(e*2,a*2,arguments[2]*2),this});Yr(Pr.prototype,"entries",function(){var e,a,t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,e=this._buffer,o=this._length,n=-1,s=-2,t={},Yr(t,"next",u),Yr(t,"return",v),Ma&&Yr(t,Ma,f),t;function u(){var l;return n+=1,i||n>=o?{done:!0}:(s+=2,l=new Xw(e[s],e[s+1]),{value:[n,l],done:!1})}function v(l){return i=!0,arguments.length?{value:l,done:!0}:{done:!0}}function f(){return a.entries()}});Yr(Pr.prototype,"every",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(!e.call(a,we(t,o),o,this))return!1;return!0});Yr(Pr.prototype,"fill",function(e,a,t){var o,i,n,s,u,v;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Br("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!We(t))throw new TypeError(Br("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i,t<0&&(t=0)),t>i&&(t=i)}else t=i}else a=0,t=i;for(s=Oa(e),u=Na(e),v=a;v<t;v++)n=2*v,o[n]=s,o[n+1]=u;return this});Yr(Pr.prototype,"filter",function(e,a){var t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=[],i=0;i<this._length;i++)n=we(t,i),e.call(a,n,i,this)&&o.push(n);return new this.constructor(o)});Yr(Pr.prototype,"find",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=we(t,o),e.call(a,i,o,this))return i});Yr(Pr.prototype,"findIndex",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=we(t,o),e.call(a,i,o,this))return o;return-1});Yr(Pr.prototype,"findLast",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=we(t,o),e.call(a,i,o,this))return i});Yr(Pr.prototype,"findLastIndex",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=we(t,o),e.call(a,i,o,this))return o;return-1});Yr(Pr.prototype,"forEach",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)i=we(t,o),e.call(a,i,o,this)});Yr(Pr.prototype,"get",function(e){if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!uo(e))throw new TypeError(Br("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return we(this._buffer,e)});gn(Pr.prototype,"length",function(){return this._length});Yr(Pr.prototype,"includes",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Br("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=Oa(e),n=Na(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return!0;return!1});Yr(Pr.prototype,"indexOf",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Br("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=Oa(e),n=Na(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});Yr(Pr.prototype,"join",function(e){var a,t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=",";else if(Jw(e))o=e;else throw new TypeError(Br("invalid argument. First argument must be a string. Value: `%s`.",e));for(a=[],t=this._buffer,i=0;i<this._length;i++)a.push(we(t,i).toString());return a.join(o)});Yr(Pr.prototype,"keys",function(){var e,a,t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,t=this._length,i=-1,a={},Yr(a,"next",n),Yr(a,"return",s),Ma&&Yr(a,Ma,u),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(v){return o=!0,arguments.length?{value:v,done:!0}:{done:!0}}function u(){return e.keys()}});Yr(Pr.prototype,"lastIndexOf",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Br("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));a>=this._length?a=this._length-1:a<0&&(a+=this._length)}else a=this._length-1;for(i=Oa(e),n=Na(e),t=this._buffer,s=a;s>=0;s--)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});Yr(Pr.prototype,"map",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(o=this._buffer,i=new this.constructor(this._length),t=i._buffer,n=0;n<this._length;n++)if(s=e.call(a,we(o,n),n,this),pa(s))t[2*n]=Oa(s),t[2*n+1]=Na(s);else if(Sv(s)&&s.length===2)t[2*n]=s[0],t[2*n+1]=s[1];else throw new TypeError(Br("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",s));return i});Yr(Pr.prototype,"reduce",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=0;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=we(t,0),s=1}for(;s<i;s++)n=we(t,s),o=e(o,n,s,this);return o});Yr(Pr.prototype,"reduceRight",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=i-1;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=we(t,i-1),s=i-2}for(;s>=0;s--)n=we(t,s),o=e(o,n,s,this);return o});Yr(Pr.prototype,"reverse",function(){var e,a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=this._buffer,o=plr(t/2),i=0;i<o;i++)n=t-i-1,a=e[2*i],e[2*i]=e[2*n],e[2*n]=a,a=e[2*i+1],e[2*i+1]=e[2*n+1],e[2*n+1]=a;return this});Yr(Pr.prototype,"set",function(e){var a,t,o,i,n,s,u,v,f;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!uo(t))throw new TypeError(Br("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(pa(e)){if(t>=this._length)throw new RangeError(Br("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));t*=2,o[t]=Oa(e),o[t+1]=Na(e);return}if(ae(e)){if(s=e._length,t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e._buffer,f=o.byteOffset+t*ia,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new da(a.length),v=0;v<a.length;v++)i[v]=a[v];a=i}for(t*=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(Ev(e)){for(s=e.length,v=0;v<s;v++)if(!pa(e[v])){n=!0;break}if(n){if(!hn(s))throw new RangeError(Br("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",s));if(t+s/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e,f=o.byteOffset+t*ia,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new da(s),v=0;v<s;v++)i[v]=a[v];a=i}for(t*=2,s/=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,v=0;v<s;v++)u=e[v],o[t]=Oa(u),o[t+1]=Na(u),t+=2;return}throw new TypeError(Br("invalid argument. First argument must be either a complex number, an array-like object, or a complex number array. Value: `%s`.",e))});Yr(Pr.prototype,"slice",function(e,a){var t,o,i,n,s,u,v;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(s=this._buffer,u=this._length,arguments.length===0)e=0,a=u;else{if(!We(e))throw new TypeError(Br("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=u,e<0&&(e=0)),arguments.length===1)a=u;else{if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=u,a<0&&(a=0)):a>u&&(a=u)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,v=0;v<t;v++)n=2*(v+e),o[2*v]=s[n],o[2*v+1]=s[n+1];return i});Yr(Pr.prototype,"some",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(e.call(a,we(t,o),o,this))return!0;return!1});Yr(Pr.prototype,"sort",function(e){var a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(we(t,i));for(a.sort(e),i=0;i<o;i++)n=2*i,t[n]=Oa(a[i]),t[n+1]=Na(a[i]);return this});Yr(Pr.prototype,"subarray",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,i=this._length,arguments.length===0)e=0,a=i;else{if(!We(e))throw new TypeError(Br("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i,e<0&&(e=0)),arguments.length===1)a=i;else{if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=i,a<0&&(a=0)):a>i&&(a=i)}}return e>=i?(i=0,t=o.byteLength):e>=a?(i=0,t=o.byteOffset+e*ia):(i=a-e,t=o.byteOffset+e*ia),new this.constructor(o.buffer,t,i<0?0:i)});Yr(Pr.prototype,"toLocaleString",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=[];else if(Jw(e)||flr(e))o=e;else throw new TypeError(Br("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(Av(a))t=a;else throw new TypeError(Br("invalid argument. Options argument must be an object. Value: `%s`.",a));for(n=this._buffer,i=[],s=0;s<this._length;s++)i.push(we(n,s).toLocaleString(o,t));return i.join(",")});Yr(Pr.prototype,"toReversed",function(){var e,a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,a=new this.constructor(t),o=this._buffer,e=a._buffer,i=0;i<t;i++)n=t-i-1,e[2*i]=o[2*n],e[2*i+1]=o[2*n+1];return a});Yr(Pr.prototype,"toSorted",function(e){var a,t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(we(t,i));return a.sort(e),new Pr(a)});Yr(Pr.prototype,"toString",function(){var e,a,t;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=this._buffer,t=0;t<this._length;t++)e.push(we(a,t).toString());return e.join(",")});Yr(Pr.prototype,"values",function(){var e,a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,i=this._buffer,t=this._length,n=-1,e={},Yr(e,"next",s),Yr(e,"return",u),Ma&&Yr(e,Ma,v),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:we(i,n),done:!1}}function u(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return a.values()}});Yr(Pr.prototype,"with",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!We(e))throw new TypeError(Br("invalid argument. First argument must be an integer. Value: `%s`.",e));if(i=this._length,e<0&&(e+=i),e<0||e>=i)throw new RangeError(Br("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!pa(a))throw new TypeError(Br("invalid argument. Second argument must be a complex number. Value: `%s`.",a));return o=new this.constructor(this._buffer),t=o._buffer,t[2*e]=Oa(a),t[2*e+1]=Na(a),o});Qw.exports=Pr});var vo=c((hae,e3)=>{"use strict";var qlr=r3();e3.exports=qlr});var t3=c((gae,a3)=>{"use strict";var wlr=Vt();function Slr(r){var e,a;for(e=[];a=r.next(),!a.done;)e.push(wlr(a.value));return e}a3.exports=Slr});var o3=c((bae,i3)=>{"use strict";var Elr=Vt();function Alr(r,e,a){var t,o,i;for(t=[],i=-1;o=r.next(),!o.done;)i+=1,t.push(Elr(e.call(a,o.value,i)));return t}i3.exports=Alr});var s3=c((xae,n3)=>{"use strict";var _lr=Vt();function Tlr(r,e){var a,t;for(a=e.length,t=0;t<a;t++)r[t]=_lr(e[t]);return r}n3.exports=Tlr});var p3=c((qae,d3)=>{"use strict";var fo=ge().isPrimitive,_v=ke(),u3=Li(),Tv=Ui(),_e=Pe(),lo=pe().isPrimitive,Da=fe().isPrimitive,v3=Pa().isPrimitive,jlr=vn().primitives,Ilr=eo(),Ga=Fe(),$r=Ir(),bn=bt(),nt=va(),ce=Vt(),Olr=Et(),Nlr=ea(),Dlr=ot(),Wr=pr(),f3=t3(),klr=o3(),Blr=s3(),Ht=nt.BYTES_PER_ELEMENT,l3=Ilr();function te(r){return typeof r=="object"&&r!==null&&r.constructor.name==="BooleanArray"&&r.BYTES_PER_ELEMENT===Ht}function c3(r){return r===Mr}function Mr(){var r,e,a,t,o;if(e=arguments.length,!(this instanceof Mr))return e===0?new Mr:e===1?new Mr(arguments[0]):e===2?new Mr(arguments[0],arguments[1]):new Mr(arguments[0],arguments[1],arguments[2]);if(e===0)a=new nt(0);else if(e===1)if(o=arguments[0],fo(o))a=new nt(o);else if(_v(o))a=Blr(new nt(o.length),o);else if(u3(o))a=new nt(o);else if(Tv(o)){if(l3===!1)throw new TypeError(Wr("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",o));if(!_e(o[Ga]))throw new TypeError(Wr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));if(a=o[Ga](),!_e(a.next))throw new TypeError(Wr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));a=new nt(f3(a))}else throw new TypeError(Wr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));else{if(a=arguments[0],!u3(a))throw new TypeError(Wr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!fo(r))throw new TypeError(Wr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(e===2)a=new nt(a,r);else{if(t=arguments[2],!fo(t))throw new TypeError(Wr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*Ht>a.byteLength-r)throw new RangeError(Wr("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*Ht));a=new nt(a,r,t)}}return $r(this,"_buffer",a),$r(this,"_length",a.length),this}$r(Mr,"BYTES_PER_ELEMENT",Ht);$r(Mr,"name","BooleanArray");$r(Mr,"from",function(e){var a,t,o,i,n,s,u,v,f;if(!_e(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!c3(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(t=arguments.length,t>1){if(o=arguments[1],!_e(o))throw new TypeError(Wr("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(_v(e)){if(o){for(v=e.length,e.get&&e.set?u=Dlr("default"):u=Olr("default"),i=new this(v),n=i._buffer,f=0;f<v;f++)n[f]=ce(o.call(a,u(e,f),f));return i}return new this(e)}if(Tv(e)&&l3&&_e(e[Ga])){if(n=e[Ga](),!_e(n.next))throw new TypeError(Wr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));for(o?s=klr(n,o,a):s=f3(n),v=s.length,i=new this(v),n=i._buffer,f=0;f<v;f++)n[f]=s[f];return i}throw new TypeError(Wr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});$r(Mr,"of",function(){var e,a;if(!_e(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!c3(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=[],a=0;a<arguments.length;a++)e.push(arguments[a]);return new this(e)});$r(Mr.prototype,"at",function(e){var a,t;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Da(e))throw new TypeError(Wr("invalid argument. Must provide an integer. Value: `%s`.",e));if(t=this._length,a=this._buffer,e<0&&(e+=t),!(e<0||e>=t))return ce(a[e])});bn(Mr.prototype,"buffer",function(){return this._buffer.buffer});bn(Mr.prototype,"byteLength",function(){return this._buffer.byteLength});bn(Mr.prototype,"byteOffset",function(){return this._buffer.byteOffset});$r(Mr.prototype,"BYTES_PER_ELEMENT",Mr.BYTES_PER_ELEMENT);$r(Mr.prototype,"copyWithin",function(e,a){if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return arguments.length===2?this._buffer.copyWithin(e,a):this._buffer.copyWithin(e,a,arguments[2]),this});$r(Mr.prototype,"entries",function(){var e,a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return e=this,o=this._buffer,t=this._length,n=-1,a={},$r(a,"next",s),$r(a,"return",u),Ga&&$r(a,Ga,v),a;function s(){return n+=1,i||n>=t?{done:!0}:{value:[n,ce(o[n])],done:!1}}function u(f){return i=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return e.entries()}});$r(Mr.prototype,"every",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(!e.call(a,ce(t[o]),o,this))return!1;return!0});$r(Mr.prototype,"fill",function(e,a,t){var o,i,n,s;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!Da(t))throw new TypeError(Wr("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i,t<0&&(t=0)),t>i&&(t=i)}else t=i}else a=0,t=i;for(e?n=1:n=0,s=a;s<t;s++)o[s]=n;return this});$r(Mr.prototype,"filter",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=[],i=0;i<this._length;i++)n=ce(t[i]),e.call(a,n,i,this)&&o.push(n);return new this.constructor(o)});$r(Mr.prototype,"find",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=0;i<this._length;i++)if(o=ce(t[i]),e.call(a,o,i,this))return o});$r(Mr.prototype,"findIndex",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=0;i<this._length;i++)if(o=ce(t[i]),e.call(a,o,i,this))return i;return-1});$r(Mr.prototype,"findLast",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=this._length-1;i>=0;i--)if(o=ce(t[i]),e.call(a,o,i,this))return o});$r(Mr.prototype,"findLastIndex",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=this._length-1;i>=0;i--)if(o=ce(t[i]),e.call(a,o,i,this))return i;return-1});$r(Mr.prototype,"forEach",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)e.call(a,ce(t[o]),o,this)});$r(Mr.prototype,"get",function(e){if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!fo(e))throw new TypeError(Wr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return ce(this._buffer[e])});$r(Mr.prototype,"includes",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(t=this._buffer,o=a;o<this._length;o++)if(e===ce(t[o]))return!0;return!1});$r(Mr.prototype,"indexOf",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(t=this._buffer,o=a;o<this._length;o++)if(e===ce(t[o]))return o;return-1});$r(Mr.prototype,"join",function(e){var a,t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length>0){if(!v3(e))throw new TypeError(Wr("invalid argument. First argument must be a string. Value: `%s`.",e))}else e=",";for(a=this._buffer,t=[],o=0;o<this._length;o++)a[o]?t.push("true"):t.push("false");return t.join(e)});$r(Mr.prototype,"keys",function(){var e,a,t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return e=this,t=this._length,i=-1,a={},$r(a,"next",n),$r(a,"return",s),Ga&&$r(a,Ga,u),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(v){return o=!0,arguments.length?{value:v,done:!0}:{done:!0}}function u(){return e.keys()}});$r(Mr.prototype,"lastIndexOf",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a>=this._length?a=this._length-1:a<0&&(a+=this._length)}else a=this._length-1;for(t=this._buffer,o=a;o>=0;o--)if(e===ce(t[o]))return o;return-1});bn(Mr.prototype,"length",function(){return this._length});$r(Mr.prototype,"map",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",e);for(i=this._buffer,o=new this.constructor(this._length),t=o._buffer,n=0;n<this._length;n++)t[n]=ce(e.call(a,ce(i[n]),n,this));return o});$r(Mr.prototype,"reduce",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,o=this._length,arguments.length>1)i=a,n=0;else{if(o===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=ce(t[0]),n=1}for(;n<o;n++)i=e(i,ce(t[n]),n,this);return i});$r(Mr.prototype,"reduceRight",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,o=this._length,arguments.length>1)i=a,n=o-1;else{if(o===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=ce(t[o-1]),n=o-2}for(;n>=0;n--)i=e(i,ce(t[n]),n,this);return i});$r(Mr.prototype,"reverse",function(){var e,a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=this._buffer,t=this._length,o=Nlr(t/2),i=0;i<o;i++)n=t-i-1,a=e[i],e[i]=e[n],e[n]=a;return this});$r(Mr.prototype,"set",function(e){var a,t,o,i,n,s,u;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!fo(t))throw new TypeError(Wr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(_v(e)){if(n=e.length,t+n>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(te(e)?a=e._buffer:a=e,u=o.byteOffset+t*Ht,a.buffer===o.buffer&&a.byteOffset<u&&a.byteOffset+a.byteLength>u){for(i=new nt(a.length),s=0;s<a.length;s++)i[s]=a[s];a=i}for(s=0;s<n;t++,s++)o[t]=a[s]?1:0;return}if(t>=this._length)throw new RangeError(Wr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));o[t]=e?1:0});$r(Mr.prototype,"slice",function(e,a){var t,o,i,n,s,u;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(n=this._buffer,s=this._length,arguments.length===0)e=0,a=s;else{if(!Da(e))throw new TypeError(Wr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=s,e<0&&(e=0)),arguments.length===1)a=s;else{if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=s,a<0&&(a=0)):a>s&&(a=s)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,u=0;u<t;u++)o[u]=n[u+e];return i});$r(Mr.prototype,"some",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(e.call(a,ce(t[o]),o,this))return!0;return!1});$r(Mr.prototype,"sort",function(e){var a;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(a=this._buffer,arguments.length===0)return a.sort(),this;if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));return a.sort(t),this;function t(o,i){return e(ce(o),ce(i))}});$r(Mr.prototype,"subarray",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(o=this._buffer,i=this._length,arguments.length===0)e=0,a=i;else{if(!Da(e))throw new TypeError(Wr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i,e<0&&(e=0)),arguments.length===1)a=i;else{if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=i,a<0&&(a=0)):a>i&&(a=i)}}return e>=i?(i=0,t=o.byteLength):e>=a?(i=0,t=o.byteOffset+e*Ht):(i=a-e,t=o.byteOffset+e*Ht),new this.constructor(o.buffer,t,i<0?0:i)});$r(Mr.prototype,"toLocaleString",function(e,a){var t,o,i,n,s;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length===0)o=[];else if(v3(e)||jlr(e))o=e;else throw new TypeError(Wr("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(Tv(a))t=a;else throw new TypeError(Wr("invalid argument. Options argument must be an object. Value: `%s`.",a));for(n=this._buffer,i=[],s=0;s<this._length;s++)i.push(ce(n[s]).toLocaleString(o,t));return i.join(",")});$r(Mr.prototype,"toReversed",function(){var e,a,t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(t=this._length,a=new this.constructor(t),o=this._buffer,e=a._buffer,i=0;i<t;i++)e[i]=o[t-i-1];return a});$r(Mr.prototype,"toSorted",function(e){var a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(o=this._length,t=new this.constructor(o),i=this._buffer,a=t._buffer,n=0;n<o;n++)a[n]=i[n];if(arguments.length===0)return a.sort(),t;if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));return a.sort(s),t;function s(u,v){return e(ce(u),ce(v))}});$r(Mr.prototype,"toString",function(){var e,a,t;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=[],a=this._buffer,t=0;t<this._length;t++)a[t]?e.push("true"):e.push("false");return e.join(",")});$r(Mr.prototype,"values",function(){var e,a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return a=this,i=this._buffer,t=this._length,n=-1,e={},$r(e,"next",s),$r(e,"return",u),Ga&&$r(e,Ga,v),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:ce(i[n]),done:!1}}function u(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return a.values()}});$r(Mr.prototype,"with",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Da(e))throw new TypeError(Wr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(i=this._length,e<0&&(e+=i),e<0||e>=i)throw new RangeError(Wr("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!lo(a))throw new TypeError(Wr("invalid argument. Second argument must be a boolean. Value: `%s`.",a));return o=new this.constructor(this._buffer),t=o._buffer,a?t[e]=1:t[e]=0,o});d3.exports=Mr});var co=c((wae,y3)=>{"use strict";var Flr=p3();y3.exports=Flr});var h3=c((Sae,m3)=>{"use strict";var Rlr=qt(),zlr=At(),Vlr=Ji(),Ulr=Xi(),Clr=fi(),Plr=Ki(),Llr=va(),Mlr=Hi(),Glr=Zi(),Ylr=so(),$lr=vo(),Wlr=co(),Jlr=[Rlr,zlr,Ulr,Vlr,Plr,Clr,Glr,Llr,Mlr,Ylr,$lr,Wlr];m3.exports=Jlr});var b3=c((Eae,g3)=>{"use strict";var Xlr=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"];g3.exports=Xlr});var w3=c((Aae,q3)=>{"use strict";var Klr=Ci(),Hlr=wa(),Zlr=gt(),Qlr=wb(),rcr=h3(),x3=b3(),ecr=x3.length;function acr(r){var e;if(Hlr(r))return"generic";if(Klr(r))return null;for(e=0;e<ecr;e++)if(r instanceof rcr[e])return x3[e];return Qlr[Zlr(r)]||null}q3.exports=acr});var po=c((_ae,S3)=>{"use strict";var tcr=w3();S3.exports=tcr});var A3=c((Tae,E3)=>{"use strict";var icr=it(),ocr=ot(),ncr=Et(),scr=po();function ucr(r,e){var a,t,o,i;for(o=scr(r),icr(r)?t=ocr(o):t=ncr(o),a=r.length,i=0;i<a;i++)if(t(r,i)===e)return!0;return!1}E3.exports=ucr});var T3=c((jae,_3)=>{"use strict";var vcr=ke(),fcr=it(),lcr=ot(),ccr=po(),dcr=pr();function pcr(r){var e,a,t;if(!vcr(r))throw new TypeError(dcr("invalid argument. Must provide an array-like object. Value: `%s`.",r));return t=ccr(r),fcr(r)&&(e=lcr(t)),a=r.length,e===void 0?o:i;function o(n){var s;for(s=0;s<a;s++)if(r[s]===n)return!0;return!1}function i(n){var s;for(s=0;s<a;s++)if(e(r,s)===n)return!0;return!1}}_3.exports=pcr});var Ue=c((Iae,I3)=>{"use strict";var ycr=Ir(),j3=A3(),mcr=T3();ycr(j3,"factory",mcr);I3.exports=j3});var N3=c((Oae,O3)=>{"use strict";var hcr=Ue().factory,gcr=Be(),bcr=hcr(gcr());O3.exports=bcr});var di=c((Nae,D3)=>{"use strict";var xcr=N3();D3.exports=xcr});var B3=c((Dae,k3)=>{"use strict";var qcr=at();function wcr(r,e,a,t){var o=qcr(e,a,t);return o[0]>=0&&o[1]<r}k3.exports=wcr});var jv=c((kae,F3)=>{"use strict";var Scr=B3();F3.exports=Scr});var Iv=c((Bae,R3)=>{"use strict";function Ecr(){return{dtypes:{default:"float64",numeric:"float64",real:"float64",floating_point:"float64",real_floating_point:"float64",complex_floating_point:"complex128",integer:"int32",signed_integer:"int32",unsigned_integer:"uint32",boolean:"bool"},order:"row-major",casting:"safe",index_mode:"throw"}}R3.exports=Ecr});var V3=c((Fae,z3)=>{"use strict";var Acr=Iv(),oa=Acr(),_cr={"dtypes.default":oa.dtypes.default,"dtypes.numeric":oa.dtypes.numeric,"dtypes.real":oa.dtypes.real,"dtypes.floating_point":oa.dtypes.floating_point,"dtypes.real_floating_point":oa.dtypes.real_floating_point,"dtypes.complex_floating_point":oa.dtypes.complex_floating_point,"dtypes.integer":oa.dtypes.integer,"dtypes.signed_integer":oa.dtypes.signed_integer,"dtypes.unsigned_integer":oa.dtypes.unsigned_integer,"dtypes.boolean":oa.dtypes.boolean,order:oa.order,casting:oa.casting,index_mode:oa.index_mode};function Tcr(r){var e=_cr[r];return e===void 0?null:e}z3.exports=Tcr});var ka=c((Rae,C3)=>{"use strict";var jcr=Ir(),U3=Iv(),Icr=V3();jcr(U3,"get",Icr);C3.exports=U3});var L3=c((zae,P3)=>{"use strict";var Ocr=pr();function Ncr(r){var e=typeof r;return r===null||e!=="object"&&e!=="function"?new TypeError(Ocr("invalid argument. A provided constructor must be either an object (except null) or a function. Value: `%s`.",r)):null}P3.exports=Ncr});var G3=c((Vae,M3)=>{"use strict";M3.exports=Object.create});var W3=c((Uae,$3)=>{"use strict";function Y3(){}function Dcr(r){return Y3.prototype=r,new Y3}$3.exports=Dcr});var K3=c((Cae,X3)=>{"use strict";var J3=G3(),kcr=W3(),Ov;typeof J3=="function"?Ov=J3:Ov=kcr;X3.exports=Ov});var Q3=c((Pae,Z3)=>{"use strict";var Bcr=Rt(),Fcr=pr(),H3=L3(),Rcr=K3();function zcr(r,e){var a=H3(r);if(a||(a=H3(e),a))throw a;if(typeof e.prototype>"u")throw new TypeError(Fcr("invalid argument. Second argument must have a prototype from which another object can inherit. Value: `%s`.",e.prototype));return r.prototype=Rcr(e.prototype),Bcr(r.prototype,"constructor",{configurable:!0,enumerable:!1,writable:!0,value:r}),r}Z3.exports=zcr});var Nv=c((Lae,r4)=>{"use strict";var Vcr=Q3();r4.exports=Vcr});var a4=c((Mae,e4)=>{"use strict";function Ucr(r,e){return r<0?0:r>e?e:r}e4.exports=Ucr});var xn=c((Gae,t4)=>{"use strict";var Ccr=a4();t4.exports=Ccr});var o4=c((Yae,i4)=>{"use strict";function Pcr(r,e){var a=e+1;return r<0?(r+=a,r<0&&(r%=a,r!==0&&(r+=a)),r):(r>e&&(r-=a,r>e&&(r%=a)),r)}i4.exports=Pcr});var qn=c(($ae,n4)=>{"use strict";var Lcr=o4();n4.exports=Lcr});var u4=c((Wae,s4)=>{"use strict";function Mcr(r,e){return r<0?(r+=e+1,r<0?-1:r):r>e?-1:r}s4.exports=Mcr});var ya=c((Jae,v4)=>{"use strict";var Gcr=u4();v4.exports=Gcr});var l4=c((Xae,f4)=>{"use strict";var Ycr=Ue().factory,$cr=Wt(),Wcr=Ycr($cr());f4.exports=Wcr});var pi=c((Kae,c4)=>{"use strict";var Jcr=l4();c4.exports=Jcr});var p4=c((Hae,d4)=>{"use strict";var Xcr=xn(),Kcr=qn(),Hcr=ya(),Zcr=pi(),Dv=pr(),Qcr={wrap:Kcr,clamp:Xcr,normalize:edr,throw:rdr};function rdr(r,e){if(r<0||r>e)throw new RangeError(Dv("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return r}function edr(r,e){var a=Hcr(r,e);if(a<0||a>e)throw new RangeError(Dv("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return a}function adr(r){if(!Zcr(r))throw new TypeError(Dv("invalid argument. First argument must be a recognized index mode. Value: `%s`.",r));return Qcr[r]}d4.exports=adr});var m4=c((Zae,y4)=>{"use strict";var tdr=xn(),idr=qn(),odr=ya(),ndr=pr();function sdr(r,e,a){var t;if(a==="clamp")return tdr(r,e);if(a==="wrap")return idr(r,e);if(t=r,a==="normalize"&&(t=odr(t,e)),t<0||t>e)throw new RangeError(ndr("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return t}y4.exports=sdr});var st=c((Qae,g4)=>{"use strict";var udr=Ir(),vdr=p4(),h4=m4();udr(h4,"factory",vdr);g4.exports=h4});var q4=c((rte,x4)=>{"use strict";var fdr=fe().isPrimitive,ldr=st(),cdr=aa(),ddr=pr(),b4=cdr.prototype.iget;function pdr(r){if(this._ndims>0){if(!fdr(r))throw new TypeError(ddr("invalid argument. Index must be an integer. Value: `%s`.",r));return r=ldr(r,this._length-1,this._mode),b4.call(this,r)}return b4.call(this)}x4.exports=pdr});var E4=c((ete,S4)=>{"use strict";var ydr=fe().isPrimitive,mdr=st(),hdr=aa(),gdr=pr(),w4=hdr.prototype.iset;function bdr(r,e){if(this._flags.READONLY)throw new Error("invalid invocation. Cannot write to a read-only array.");if(this._ndims>0){if(!ydr(r))throw new TypeError(gdr("invalid argument. Index must be an integer. Value: `%s`.",r));r=mdr(r,this._length-1,this._mode),w4.call(this,r,e)}else w4.call(this,r);return this}S4.exports=bdr});var T4=c((ate,_4)=>{"use strict";var xdr=fe().isPrimitive,qdr=st(),A4=pr();function wdr(){var r,e,a,t;if(arguments.length!==this._ndims)throw new RangeError(A4("invalid arguments. Number of indices must match the number of dimensions. ndims: `%u`. nargs: `%u`.",this._ndims,arguments.length));for(r=this._offset,a=this._submode.length,t=0;t<arguments.length;t++){if(!xdr(arguments[t]))throw new TypeError(A4("invalid argument. Indices must be integer valued. Argument: `%u`. Value: `%s`.",t,arguments[t]));e=qdr(arguments[t],this._shape[t]-1,this._submode[t%a]),r+=this._strides[t]*e}return this._accessors?this._buffer.get(r):this._buffer[r]}_4.exports=wdr});var O4=c((tte,I4)=>{"use strict";var Sdr=fe().isPrimitive,Edr=st(),j4=pr();function Adr(){var r,e,a,t;if(this._flags.READONLY)throw new Error("invalid invocation. Cannot write to a read-only array.");if(arguments.length!==this._ndims+1)throw new RangeError(j4("invalid arguments. Number of indices must match the number of dimensions. ndims: `%u`. nargs: `%u`.",this._ndims,arguments.length));for(r=this._offset,a=this._submode.length,t=0;t<arguments.length-1;t++){if(!Sdr(arguments[t]))throw new TypeError(j4("invalid argument. Indices must be integer valued. Argument: `%i`. Value: `%s`.",t,arguments[t]));e=Edr(arguments[t],this._shape[t]-1,this._submode[t%a]),r+=this._strides[t]*e}return this._accessors?this._buffer.set(arguments[t],r):this._buffer[r]=arguments[t],this}I4.exports=Adr});var D4=c((ite,N4)=>{"use strict";function _dr(r,e){var a,t;for(a=[],t=0;t<e;t++)a.push(r[t]);return a}N4.exports=_dr});var F4=c((ote,B4)=>{"use strict";var Tdr=ne(),kv=Xr(),jdr=Ve(),k4=pi(),Idr=pe().isPrimitive,yi=pr();function Odr(r,e){var a;if(!Tdr(e))return new TypeError(yi("invalid argument. Options argument must be an object. Value: `%s`.",e));if(kv(e,"mode")&&(r.mode=e.mode,!k4(r.mode)))return new TypeError(yi("invalid option. `%s` option must be a recognized mode. Option: `%s`.","mode",r.mode));if(kv(e,"submode")){if(r.submode=e.submode,!jdr(r.submode))return new TypeError(yi("invalid option. `%s` option must be an array containing recognized modes. Option: `%s`.","submode",r.submode));if(r.submode.length===0)return new TypeError(yi("invalid option. `%s` option must be an array containing recognized modes. Option: `%s`.","submode",r.submode.join(",")));for(a=0;a<r.submode.length;a++)if(!k4(r.submode[a]))return new TypeError(yi("invalid option. Each submode must be a recognized mode. Option: `%s`.",r.submode[a]));r.submode=r.submode.slice()}return kv(e,"readonly")&&(r.readonly=e.readonly,!Idr(r.readonly))?new TypeError(yi("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",r.readonly)):null}B4.exports=Odr});var L4=c((nte,P4)=>{"use strict";var yo=Ir(),R4=ke(),Ndr=Jt().primitives,Ddr=ge().isPrimitive,kdr=ev().primitives,z4=Pe(),Bdr=Ta(),Fdr=di(),Rdr=jv(),zdr=Jr(),C4=aa(),Vdr=ka(),Udr=Nv(),Ya=pr(),Cdr=q4(),Pdr=E4(),Ldr=T4(),Mdr=O4(),V4=D4(),Gdr=F4(),U4=32767,Ydr=Vdr.get("index_mode"),$dr=!1;function $a(r,e,a,t,o,i,n){var s,u,v,f,l;if(!(this instanceof $a))return arguments.length<7?new $a(r,e,a,t,o,i):new $a(r,e,a,t,o,i,n);if(!Fdr(r))throw new TypeError(Ya("invalid argument. First argument must be a supported ndarray data type. Value: `%s`.",r));if(R4(e)){if(e.get&&e.set&&(!z4(e.get)||!z4(e.set)))throw new TypeError(Ya("invalid argument. Second argument `get` and `set` properties must be functions. Value: `%s`.",e))}else throw new TypeError(Ya("invalid argument. Second argument must be an array-like object, typed-array-like, or a Buffer. Value: `%s`.",e));if(!Ndr(a)&&(!R4(a)||a.length>0))throw new TypeError(Ya("invalid argument. Third argument must be an array-like object containing nonnegative integers. Value: `%s`.",a));if(s=a.length,s>U4)throw new RangeError(Ya("invalid argument. Number of dimensions must not exceed %u due to stack limits. Value: `%u`.",U4,s));if(!kdr(t))throw new TypeError(Ya("invalid argument. Fourth argument must be an array-like object containing integers. Value: `%s`.",t));if(s>0){if(t.length!==s)throw new RangeError(Ya("invalid argument. Fourth argument length must match the number of dimensions. Expected number of dimensions: `%u`. Strides length: `%u`.",s,t.length))}else{if(t.length!==1)throw new RangeError("invalid argument. Fourth argument length must be equal to 1 when creating a zero-dimensional ndarray.");if(t[0]!==0)throw new RangeError(Ya("invalid argument. Fourth argument must contain a single element equal to 0. Value: `%d`.",t[0]))}if(!Ddr(o))throw new TypeError(Ya("invalid argument. Fifth argument must be a nonnegative integer. Value: `%s`.",o));if(!Bdr(i))throw new TypeError(Ya("invalid argument. Sixth argument must be a supported order. Value: `%s`.",i));if(s>0&&!Rdr(e.length,a,t,o)&&zdr(a)>0)throw new Error("invalid arguments. Input buffer is incompatible with the specified meta data. Ensure that the offset is valid with regard to the strides array and that the buffer has enough elements to satisfy the desired array shape.");if(u={},u.mode=Ydr,u.readonly=$dr,arguments.length>6&&(v=Gdr(u,n),v))throw v;return this._mode=u.mode,u.submode===void 0&&(u.submode=[this._mode]),this._submode=u.submode,f=V4(a,s),l=V4(t,s||1),C4.call(this,r,e,f,l,o,i),this._flags.READONLY=u.readonly,this}Udr($a,C4);yo($a,"name","ndarray");yo($a.prototype,"get",Ldr);yo($a.prototype,"iget",Cdr);yo($a.prototype,"set",Mdr);yo($a.prototype,"iset",Pdr);P4.exports=$a});var ma=c((ste,M4)=>{"use strict";var Wdr=L4();M4.exports=Wdr});var G4=c((ute,Jdr)=>{Jdr.exports=["none","equiv","safe","mostly-safe","same-kind","unsafe"]});var $4=c((vte,Y4)=>{"use strict";var Xdr=G4();function Kdr(){return Xdr.slice()}Y4.exports=Kdr});var J4=c((fte,W4)=>{"use strict";function Hdr(){return{none:0,equiv:1,safe:2,"mostly-safe":3,"same-kind":4,unsafe:5}}W4.exports=Hdr});var Bv=c((lte,K4)=>{"use strict";var Zdr=Ir(),X4=$4(),Qdr=J4();Zdr(X4,"enum",Qdr);K4.exports=X4});var Q4=c((cte,Z4)=>{"use strict";var r0r=Bv(),H4=r0r(),e0r=H4.length;function a0r(r){var e;for(e=0;e<e0r;e++)if(r===H4[e])return!0;return!1}Z4.exports=a0r});var Fv=c((dte,r6)=>{"use strict";var t0r=Q4();r6.exports=t0r});var t6=c((pte,a6)=>{"use strict";var i0r=Aa(),o0r=wa(),n0r=ne(),s0r=Ko(),u0r=pe().isPrimitive,e6=Xr(),Rv=pr();function v0r(r,e){var a=!0,t,o,i,n,s,u,v;if(!s0r(r))throw new TypeError(Rv("invalid argument. First argument must be an object (except null). Value: `%s`.",r));if(arguments.length>1){if(!n0r(e))throw new TypeError(Rv("invalid argument. Options argument must be an object. Value: `%s`.",e));if(e6(e,"duplicates")&&(a=e.duplicates,!u0r(a)))throw new TypeError(Rv("invalid option. `%s` option must be a boolean. Option: `%s`.","duplicates",a))}if(t=i0r(r),o=t.length,s={},a)for(v=0;v<o;v++){if(i=t[v],n=r[i],!e6(s,n)){s[n]=i;continue}u=s[n],o0r(u)?s[n].push(i):s[n]=[u,i]}else for(v=0;v<o;v++)i=t[v],s[r[i]]=i;return s}a6.exports=v0r});var wn=c((yte,i6)=>{"use strict";var f0r=t6();i6.exports=f0r});var n6=c((mte,o6)=>{"use strict";var l0r=wn(),c0r=Be().enum,d0r=l0r(c0r(),{duplicates:!1});function p0r(r){var e=d0r[r];return typeof e=="string"?e:null}o6.exports=p0r});var Sn=c((hte,s6)=>{"use strict";var y0r=n6();s6.exports=y0r});var v6=c((gte,u6)=>{"use strict";var m0r=Be().enum,h0r=m0r();function g0r(r){var e=h0r[r];return typeof e=="number"?e:null}u6.exports=g0r});var mo=c((bte,f6)=>{"use strict";var b0r=v6();f6.exports=b0r});var c6=c((xte,l6)=>{"use strict";var x0r=Sn(),q0r=mo();function w0r(r){var e=typeof r;return e==="string"?q0r(r)===null?null:r:e==="number"?x0r(r):null}l6.exports=w0r});var Ba=c((qte,d6)=>{"use strict";var S0r=c6();d6.exports=S0r});var p6=c((wte,E0r)=>{E0r.exports={float64:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},float32:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int32:{float64:1,float32:0,int32:1,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},int16:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int8:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint32:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:1,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},uint16:{float64:1,float32:1,int32:1,int16:0,int8:0,uint32:1,uint16:1,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8c:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex128:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},complex64:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},generic:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:0},binary:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:1,generic:0,bool:0},bool:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:1}}});var h6=c((Ste,m6)=>{"use strict";var y6=Aa(),A0r=Xr(),_0r=Ba(),An=p6(),En;function T0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=y6(An),e=r.length,u=0;u<e;u++){for(o=r[u],n=An[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function j0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=y6(An),e=r.length,u=0;u<e;u++){for(o=r[u],n=An[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function I0r(r){return arguments.length===0?T0r():(En===void 0&&(En=j0r()),r=_0r(r),A0r(En,r)?En[r].slice():null)}m6.exports=I0r});var zv=c((Ete,g6)=>{"use strict";var O0r=h6();g6.exports=O0r});var x6=c((Ate,b6)=>{"use strict";var N0r=zv(),D0r=N0r();function k0r(r,e){return r===e?!0:D0r[r][e]>0}b6.exports=k0r});var _n=c((_te,q6)=>{"use strict";var B0r=x6();q6.exports=B0r});var w6=c((Tte,F0r)=>{F0r.exports={float64:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},float32:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int32:{float64:1,float32:0,int32:1,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},int16:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int8:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint32:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:1,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},uint16:{float64:1,float32:1,int32:1,int16:0,int8:0,uint32:1,uint16:1,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8c:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex128:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex64:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},generic:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:0},binary:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:1,generic:0,bool:0},bool:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:1}}});var A6=c((jte,E6)=>{"use strict";var S6=Aa(),R0r=Xr(),z0r=Ba(),jn=w6(),Tn;function V0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=S6(jn),e=r.length,u=0;u<e;u++){for(o=r[u],n=jn[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function U0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=S6(jn),e=r.length,u=0;u<e;u++){for(o=r[u],n=jn[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function C0r(r){return arguments.length===0?V0r():(Tn===void 0&&(Tn=U0r()),r=z0r(r),R0r(Tn,r)?Tn[r].slice():null)}E6.exports=C0r});var Vv=c((Ite,_6)=>{"use strict";var P0r=A6();_6.exports=P0r});var j6=c((Ote,T6)=>{"use strict";var L0r=Vv(),M0r=L0r();function G0r(r,e){return r===e?!0:M0r[r][e]>0}T6.exports=G0r});var In=c((Nte,I6)=>{"use strict";var Y0r=j6();I6.exports=Y0r});var O6=c((Dte,$0r)=>{$0r.exports={float64:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},float32:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int32:{float64:1,float32:0,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},int16:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int8:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint32:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:0,binary:0,generic:1,bool:0},uint16:{float64:1,float32:1,int32:1,int16:0,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8c:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex128:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:0,bool:0},complex64:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:0,bool:0},generic:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:0},binary:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:1,generic:0,bool:0},bool:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:1}}});var k6=c((kte,D6)=>{"use strict";var N6=Aa(),W0r=Xr(),J0r=Ba(),Nn=O6(),On;function X0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=N6(Nn),e=r.length,u=0;u<e;u++){for(o=r[u],n=Nn[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function K0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=N6(Nn),e=r.length,u=0;u<e;u++){for(o=r[u],n=Nn[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function H0r(r){return arguments.length===0?X0r():(On===void 0&&(On=K0r()),r=J0r(r),W0r(On,r)?On[r].slice():null)}D6.exports=H0r});var Uv=c((Bte,B6)=>{"use strict";var Z0r=k6();B6.exports=Z0r});var R6=c((Fte,F6)=>{"use strict";var Q0r=Uv(),rpr=Q0r();function epr(r,e){return r===e?!0:rpr[r][e]>0}F6.exports=epr});var Cv=c((Rte,z6)=>{"use strict";var apr=R6();z6.exports=apr});var U6=c((zte,V6)=>{"use strict";var tpr=_n(),ipr=In(),opr=Cv();function npr(r,e,a){return a==="unsafe"||r===e?!0:a==="none"||a==="equiv"?!1:a==="safe"?tpr(r,e):a==="mostly-safe"?ipr(r,e):opr(r,e)}V6.exports=npr});var Pv=c((Vte,C6)=>{"use strict";var spr=U6();C6.exports=spr});var L6=c((Ute,P6)=>{"use strict";var upr=typeof Buffer=="function"?Buffer:null;P6.exports=upr});var G6=c((Cte,M6)=>{"use strict";var vpr=Ci(),Dn=L6();function fpr(){var r,e;if(typeof Dn!="function")return!1;try{typeof Dn.from=="function"?e=Dn.from([1,2,3,4]):e=new Dn([1,2,3,4]),r=vpr(e)&&e[0]===1&&e[1]===2&&e[2]===3&&e[3]===4}catch{r=!1}return r}M6.exports=fpr});var $6=c((Pte,Y6)=>{"use strict";var lpr=G6();Y6.exports=lpr});var X6=c(kn=>{"use strict";kn.byteLength=dpr;kn.toByteArray=ypr;kn.fromByteArray=gpr;var Wa=[],ha=[],cpr=typeof Uint8Array<"u"?Uint8Array:Array,Lv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Zt=0,W6=Lv.length;Zt<W6;++Zt)Wa[Zt]=Lv[Zt],ha[Lv.charCodeAt(Zt)]=Zt;var Zt,W6;ha[45]=62;ha[95]=63;function J6(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=r.indexOf("=");a===-1&&(a=e);var t=a===e?0:4-a%4;return[a,t]}function dpr(r){var e=J6(r),a=e[0],t=e[1];return(a+t)*3/4-t}function ppr(r,e,a){return(e+a)*3/4-a}function ypr(r){var e,a=J6(r),t=a[0],o=a[1],i=new cpr(ppr(r,t,o)),n=0,s=o>0?t-4:t,u;for(u=0;u<s;u+=4)e=ha[r.charCodeAt(u)]<<18|ha[r.charCodeAt(u+1)]<<12|ha[r.charCodeAt(u+2)]<<6|ha[r.charCodeAt(u+3)],i[n++]=e>>16&255,i[n++]=e>>8&255,i[n++]=e&255;return o===2&&(e=ha[r.charCodeAt(u)]<<2|ha[r.charCodeAt(u+1)]>>4,i[n++]=e&255),o===1&&(e=ha[r.charCodeAt(u)]<<10|ha[r.charCodeAt(u+1)]<<4|ha[r.charCodeAt(u+2)]>>2,i[n++]=e>>8&255,i[n++]=e&255),i}function mpr(r){return Wa[r>>18&63]+Wa[r>>12&63]+Wa[r>>6&63]+Wa[r&63]}function hpr(r,e,a){for(var t,o=[],i=e;i<a;i+=3)t=(r[i]<<16&16711680)+(r[i+1]<<8&65280)+(r[i+2]&255),o.push(mpr(t));return o.join("")}function gpr(r){for(var e,a=r.length,t=a%3,o=[],i=16383,n=0,s=a-t;n<s;n+=i)o.push(hpr(r,n,n+i>s?s:n+i));return t===1?(e=r[a-1],o.push(Wa[e>>2]+Wa[e<<4&63]+"==")):t===2&&(e=(r[a-2]<<8)+r[a-1],o.push(Wa[e>>10]+Wa[e>>4&63]+Wa[e<<2&63]+"=")),o.join("")}});var K6=c(Mv=>{Mv.read=function(r,e,a,t,o){var i,n,s=o*8-t-1,u=(1<<s)-1,v=u>>1,f=-7,l=a?o-1:0,d=a?-1:1,y=r[e+l];for(l+=d,i=y&(1<<-f)-1,y>>=-f,f+=s;f>0;i=i*256+r[e+l],l+=d,f-=8);for(n=i&(1<<-f)-1,i>>=-f,f+=t;f>0;n=n*256+r[e+l],l+=d,f-=8);if(i===0)i=1-v;else{if(i===u)return n?NaN:(y?-1:1)*(1/0);n=n+Math.pow(2,t),i=i-v}return(y?-1:1)*n*Math.pow(2,i-t)};Mv.write=function(r,e,a,t,o,i){var n,s,u,v=i*8-o-1,f=(1<<v)-1,l=f>>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=t?0:i-1,p=t?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,n=f):(n=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-n))<1&&(n--,u*=2),n+l>=1?e+=d/u:e+=d*Math.pow(2,1-l),e*u>=2&&(n++,u/=2),n+l>=f?(s=0,n=f):n+l>=1?(s=(e*u-1)*Math.pow(2,o),n=n+l):(s=e*Math.pow(2,l-1)*Math.pow(2,o),n=0));o>=8;r[a+y]=s&255,y+=p,s/=256,o-=8);for(n=n<<o|s,v+=o;v>0;r[a+y]=n&255,y+=p,n/=256,v-=8);r[a+y-p]|=m*128}});var vS=c(hi=>{"use strict";var Gv=X6(),mi=K6(),H6=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;hi.Buffer=cr;hi.SlowBuffer=Epr;hi.INSPECT_MAX_BYTES=50;var Bn=2147483647;hi.kMaxLength=Bn;cr.TYPED_ARRAY_SUPPORT=bpr();!cr.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function bpr(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(cr.prototype,"parent",{enumerable:!0,get:function(){if(cr.isBuffer(this))return this.buffer}});Object.defineProperty(cr.prototype,"offset",{enumerable:!0,get:function(){if(cr.isBuffer(this))return this.byteOffset}});function ut(r){if(r>Bn)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,cr.prototype),e}function cr(r,e,a){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Jv(r)}return rS(r,e,a)}cr.poolSize=8192;function rS(r,e,a){if(typeof r=="string")return qpr(r,e);if(ArrayBuffer.isView(r))return wpr(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(Ja(r,ArrayBuffer)||r&&Ja(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ja(r,SharedArrayBuffer)||r&&Ja(r.buffer,SharedArrayBuffer)))return $v(r,e,a);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var t=r.valueOf&&r.valueOf();if(t!=null&&t!==r)return cr.from(t,e,a);var o=Spr(r);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return cr.from(r[Symbol.toPrimitive]("string"),e,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}cr.from=function(r,e,a){return rS(r,e,a)};Object.setPrototypeOf(cr.prototype,Uint8Array.prototype);Object.setPrototypeOf(cr,Uint8Array);function eS(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function xpr(r,e,a){return eS(r),r<=0?ut(r):e!==void 0?typeof a=="string"?ut(r).fill(e,a):ut(r).fill(e):ut(r)}cr.alloc=function(r,e,a){return xpr(r,e,a)};function Jv(r){return eS(r),ut(r<0?0:Xv(r)|0)}cr.allocUnsafe=function(r){return Jv(r)};cr.allocUnsafeSlow=function(r){return Jv(r)};function qpr(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!cr.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var a=aS(r,e)|0,t=ut(a),o=t.write(r,e);return o!==a&&(t=t.slice(0,o)),t}function Yv(r){for(var e=r.length<0?0:Xv(r.length)|0,a=ut(e),t=0;t<e;t+=1)a[t]=r[t]&255;return a}function wpr(r){if(Ja(r,Uint8Array)){var e=new Uint8Array(r);return $v(e.buffer,e.byteOffset,e.byteLength)}return Yv(r)}function $v(r,e,a){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(a||0))throw new RangeError('"length" is outside of buffer bounds');var t;return e===void 0&&a===void 0?t=new Uint8Array(r):a===void 0?t=new Uint8Array(r,e):t=new Uint8Array(r,e,a),Object.setPrototypeOf(t,cr.prototype),t}function Spr(r){if(cr.isBuffer(r)){var e=Xv(r.length)|0,a=ut(e);return a.length===0||r.copy(a,0,0,e),a}if(r.length!==void 0)return typeof r.length!="number"||Kv(r.length)?ut(0):Yv(r);if(r.type==="Buffer"&&Array.isArray(r.data))return Yv(r.data)}function Xv(r){if(r>=Bn)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Bn.toString(16)+" bytes");return r|0}function Epr(r){return+r!=r&&(r=0),cr.alloc(+r)}cr.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==cr.prototype};cr.compare=function(e,a){if(Ja(e,Uint8Array)&&(e=cr.from(e,e.offset,e.byteLength)),Ja(a,Uint8Array)&&(a=cr.from(a,a.offset,a.byteLength)),!cr.isBuffer(e)||!cr.isBuffer(a))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===a)return 0;for(var t=e.length,o=a.length,i=0,n=Math.min(t,o);i<n;++i)if(e[i]!==a[i]){t=e[i],o=a[i];break}return t<o?-1:o<t?1:0};cr.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};cr.concat=function(e,a){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return cr.alloc(0);var t;if(a===void 0)for(a=0,t=0;t<e.length;++t)a+=e[t].length;var o=cr.allocUnsafe(a),i=0;for(t=0;t<e.length;++t){var n=e[t];if(Ja(n,Uint8Array))i+n.length>o.length?cr.from(n).copy(o,i):Uint8Array.prototype.set.call(o,n,i);else if(cr.isBuffer(n))n.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=n.length}return o};function aS(r,e){if(cr.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||Ja(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var a=r.length,t=arguments.length>2&&arguments[2]===!0;if(!t&&a===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return Wv(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a*2;case"hex":return a>>>1;case"base64":return uS(r).length;default:if(o)return t?-1:Wv(r).length;e=(""+e).toLowerCase(),o=!0}}cr.byteLength=aS;function Apr(r,e,a){var t=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0,e>>>=0,a<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return Fpr(this,e,a);case"utf8":case"utf-8":return iS(this,e,a);case"ascii":return kpr(this,e,a);case"latin1":case"binary":return Bpr(this,e,a);case"base64":return Npr(this,e,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rpr(this,e,a);default:if(t)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),t=!0}}cr.prototype._isBuffer=!0;function Qt(r,e,a){var t=r[e];r[e]=r[a],r[a]=t}cr.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<e;a+=2)Qt(this,a,a+1);return this};cr.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<e;a+=4)Qt(this,a,a+3),Qt(this,a+1,a+2);return this};cr.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<e;a+=8)Qt(this,a,a+7),Qt(this,a+1,a+6),Qt(this,a+2,a+5),Qt(this,a+3,a+4);return this};cr.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?iS(this,0,e):Apr.apply(this,arguments)};cr.prototype.toLocaleString=cr.prototype.toString;cr.prototype.equals=function(e){if(!cr.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:cr.compare(this,e)===0};cr.prototype.inspect=function(){var e="",a=hi.INSPECT_MAX_BYTES;return e=this.toString("hex",0,a).replace(/(.{2})/g,"$1 ").trim(),this.length>a&&(e+=" ... "),"<Buffer "+e+">"};H6&&(cr.prototype[H6]=cr.prototype.inspect);cr.prototype.compare=function(e,a,t,o,i){if(Ja(e,Uint8Array)&&(e=cr.from(e,e.offset,e.byteLength)),!cr.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(a===void 0&&(a=0),t===void 0&&(t=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),a<0||t>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&a>=t)return 0;if(o>=i)return-1;if(a>=t)return 1;if(a>>>=0,t>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var n=i-o,s=t-a,u=Math.min(n,s),v=this.slice(o,i),f=e.slice(a,t),l=0;l<u;++l)if(v[l]!==f[l]){n=v[l],s=f[l];break}return n<s?-1:s<n?1:0};function tS(r,e,a,t,o){if(r.length===0)return-1;if(typeof a=="string"?(t=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,Kv(a)&&(a=o?0:r.length-1),a<0&&(a=r.length+a),a>=r.length){if(o)return-1;a=r.length-1}else if(a<0)if(o)a=0;else return-1;if(typeof e=="string"&&(e=cr.from(e,t)),cr.isBuffer(e))return e.length===0?-1:Z6(r,e,a,t,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(r,e,a):Uint8Array.prototype.lastIndexOf.call(r,e,a):Z6(r,[e],a,t,o);throw new TypeError("val must be string, number or Buffer")}function Z6(r,e,a,t,o){var i=1,n=r.length,s=e.length;if(t!==void 0&&(t=String(t).toLowerCase(),t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,n/=2,s/=2,a/=2}function u(y,p){return i===1?y[p]:y.readUInt16BE(p*i)}var v;if(o){var f=-1;for(v=a;v<n;v++)if(u(r,v)===u(e,f===-1?0:v-f)){if(f===-1&&(f=v),v-f+1===s)return f*i}else f!==-1&&(v-=v-f),f=-1}else for(a+s>n&&(a=n-s),v=a;v>=0;v--){for(var l=!0,d=0;d<s;d++)if(u(r,v+d)!==u(e,d)){l=!1;break}if(l)return v}return-1}cr.prototype.includes=function(e,a,t){return this.indexOf(e,a,t)!==-1};cr.prototype.indexOf=function(e,a,t){return tS(this,e,a,t,!0)};cr.prototype.lastIndexOf=function(e,a,t){return tS(this,e,a,t,!1)};function _pr(r,e,a,t){a=Number(a)||0;var o=r.length-a;t?(t=Number(t),t>o&&(t=o)):t=o;var i=e.length;t>i/2&&(t=i/2);for(var n=0;n<t;++n){var s=parseInt(e.substr(n*2,2),16);if(Kv(s))return n;r[a+n]=s}return n}function Tpr(r,e,a,t){return Fn(Wv(e,r.length-a),r,a,t)}function jpr(r,e,a,t){return Fn(Upr(e),r,a,t)}function Ipr(r,e,a,t){return Fn(uS(e),r,a,t)}function Opr(r,e,a,t){return Fn(Cpr(e,r.length-a),r,a,t)}cr.prototype.write=function(e,a,t,o){if(a===void 0)o="utf8",t=this.length,a=0;else if(t===void 0&&typeof a=="string")o=a,t=this.length,a=0;else if(isFinite(a))a=a>>>0,isFinite(t)?(t=t>>>0,o===void 0&&(o="utf8")):(o=t,t=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-a;if((t===void 0||t>i)&&(t=i),e.length>0&&(t<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var n=!1;;)switch(o){case"hex":return _pr(this,e,a,t);case"utf8":case"utf-8":return Tpr(this,e,a,t);case"ascii":case"latin1":case"binary":return jpr(this,e,a,t);case"base64":return Ipr(this,e,a,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Opr(this,e,a,t);default:if(n)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),n=!0}};cr.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Npr(r,e,a){return e===0&&a===r.length?Gv.fromByteArray(r):Gv.fromByteArray(r.slice(e,a))}function iS(r,e,a){a=Math.min(r.length,a);for(var t=[],o=e;o<a;){var i=r[o],n=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=a){var u,v,f,l;switch(s){case 1:i<128&&(n=i);break;case 2:u=r[o+1],(u&192)===128&&(l=(i&31)<<6|u&63,l>127&&(n=l));break;case 3:u=r[o+1],v=r[o+2],(u&192)===128&&(v&192)===128&&(l=(i&15)<<12|(u&63)<<6|v&63,l>2047&&(l<55296||l>57343)&&(n=l));break;case 4:u=r[o+1],v=r[o+2],f=r[o+3],(u&192)===128&&(v&192)===128&&(f&192)===128&&(l=(i&15)<<18|(u&63)<<12|(v&63)<<6|f&63,l>65535&&l<1114112&&(n=l))}}n===null?(n=65533,s=1):n>65535&&(n-=65536,t.push(n>>>10&1023|55296),n=56320|n&1023),t.push(n),o+=s}return Dpr(t)}var Q6=4096;function Dpr(r){var e=r.length;if(e<=Q6)return String.fromCharCode.apply(String,r);for(var a="",t=0;t<e;)a+=String.fromCharCode.apply(String,r.slice(t,t+=Q6));return a}function kpr(r,e,a){var t="";a=Math.min(r.length,a);for(var o=e;o<a;++o)t+=String.fromCharCode(r[o]&127);return t}function Bpr(r,e,a){var t="";a=Math.min(r.length,a);for(var o=e;o<a;++o)t+=String.fromCharCode(r[o]);return t}function Fpr(r,e,a){var t=r.length;(!e||e<0)&&(e=0),(!a||a<0||a>t)&&(a=t);for(var o="",i=e;i<a;++i)o+=Ppr[r[i]];return o}function Rpr(r,e,a){for(var t=r.slice(e,a),o="",i=0;i<t.length-1;i+=2)o+=String.fromCharCode(t[i]+t[i+1]*256);return o}cr.prototype.slice=function(e,a){var t=this.length;e=~~e,a=a===void 0?t:~~a,e<0?(e+=t,e<0&&(e=0)):e>t&&(e=t),a<0?(a+=t,a<0&&(a=0)):a>t&&(a=t),a<e&&(a=e);var o=this.subarray(e,a);return Object.setPrototypeOf(o,cr.prototype),o};function Re(r,e,a){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>a)throw new RangeError("Trying to access beyond buffer length")}cr.prototype.readUintLE=cr.prototype.readUIntLE=function(e,a,t){e=e>>>0,a=a>>>0,t||Re(e,a,this.length);for(var o=this[e],i=1,n=0;++n<a&&(i*=256);)o+=this[e+n]*i;return o};cr.prototype.readUintBE=cr.prototype.readUIntBE=function(e,a,t){e=e>>>0,a=a>>>0,t||Re(e,a,this.length);for(var o=this[e+--a],i=1;a>0&&(i*=256);)o+=this[e+--a]*i;return o};cr.prototype.readUint8=cr.prototype.readUInt8=function(e,a){return e=e>>>0,a||Re(e,1,this.length),this[e]};cr.prototype.readUint16LE=cr.prototype.readUInt16LE=function(e,a){return e=e>>>0,a||Re(e,2,this.length),this[e]|this[e+1]<<8};cr.prototype.readUint16BE=cr.prototype.readUInt16BE=function(e,a){return e=e>>>0,a||Re(e,2,this.length),this[e]<<8|this[e+1]};cr.prototype.readUint32LE=cr.prototype.readUInt32LE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};cr.prototype.readUint32BE=cr.prototype.readUInt32BE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};cr.prototype.readIntLE=function(e,a,t){e=e>>>0,a=a>>>0,t||Re(e,a,this.length);for(var o=this[e],i=1,n=0;++n<a&&(i*=256);)o+=this[e+n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*a)),o};cr.prototype.readIntBE=function(e,a,t){e=e>>>0,a=a>>>0,t||Re(e,a,this.length);for(var o=a,i=1,n=this[e+--o];o>0&&(i*=256);)n+=this[e+--o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*a)),n};cr.prototype.readInt8=function(e,a){return e=e>>>0,a||Re(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};cr.prototype.readInt16LE=function(e,a){e=e>>>0,a||Re(e,2,this.length);var t=this[e]|this[e+1]<<8;return t&32768?t|4294901760:t};cr.prototype.readInt16BE=function(e,a){e=e>>>0,a||Re(e,2,this.length);var t=this[e+1]|this[e]<<8;return t&32768?t|4294901760:t};cr.prototype.readInt32LE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};cr.prototype.readInt32BE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};cr.prototype.readFloatLE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),mi.read(this,e,!0,23,4)};cr.prototype.readFloatBE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),mi.read(this,e,!1,23,4)};cr.prototype.readDoubleLE=function(e,a){return e=e>>>0,a||Re(e,8,this.length),mi.read(this,e,!0,52,8)};cr.prototype.readDoubleBE=function(e,a){return e=e>>>0,a||Re(e,8,this.length),mi.read(this,e,!1,52,8)};function Je(r,e,a,t,o,i){if(!cr.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(a+t>r.length)throw new RangeError("Index out of range")}cr.prototype.writeUintLE=cr.prototype.writeUIntLE=function(e,a,t,o){if(e=+e,a=a>>>0,t=t>>>0,!o){var i=Math.pow(2,8*t)-1;Je(this,e,a,t,i,0)}var n=1,s=0;for(this[a]=e&255;++s<t&&(n*=256);)this[a+s]=e/n&255;return a+t};cr.prototype.writeUintBE=cr.prototype.writeUIntBE=function(e,a,t,o){if(e=+e,a=a>>>0,t=t>>>0,!o){var i=Math.pow(2,8*t)-1;Je(this,e,a,t,i,0)}var n=t-1,s=1;for(this[a+n]=e&255;--n>=0&&(s*=256);)this[a+n]=e/s&255;return a+t};cr.prototype.writeUint8=cr.prototype.writeUInt8=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,1,255,0),this[a]=e&255,a+1};cr.prototype.writeUint16LE=cr.prototype.writeUInt16LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,65535,0),this[a]=e&255,this[a+1]=e>>>8,a+2};cr.prototype.writeUint16BE=cr.prototype.writeUInt16BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,65535,0),this[a]=e>>>8,this[a+1]=e&255,a+2};cr.prototype.writeUint32LE=cr.prototype.writeUInt32LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,4294967295,0),this[a+3]=e>>>24,this[a+2]=e>>>16,this[a+1]=e>>>8,this[a]=e&255,a+4};cr.prototype.writeUint32BE=cr.prototype.writeUInt32BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,4294967295,0),this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=e&255,a+4};cr.prototype.writeIntLE=function(e,a,t,o){if(e=+e,a=a>>>0,!o){var i=Math.pow(2,8*t-1);Je(this,e,a,t,i-1,-i)}var n=0,s=1,u=0;for(this[a]=e&255;++n<t&&(s*=256);)e<0&&u===0&&this[a+n-1]!==0&&(u=1),this[a+n]=(e/s>>0)-u&255;return a+t};cr.prototype.writeIntBE=function(e,a,t,o){if(e=+e,a=a>>>0,!o){var i=Math.pow(2,8*t-1);Je(this,e,a,t,i-1,-i)}var n=t-1,s=1,u=0;for(this[a+n]=e&255;--n>=0&&(s*=256);)e<0&&u===0&&this[a+n+1]!==0&&(u=1),this[a+n]=(e/s>>0)-u&255;return a+t};cr.prototype.writeInt8=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,1,127,-128),e<0&&(e=255+e+1),this[a]=e&255,a+1};cr.prototype.writeInt16LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,32767,-32768),this[a]=e&255,this[a+1]=e>>>8,a+2};cr.prototype.writeInt16BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,32767,-32768),this[a]=e>>>8,this[a+1]=e&255,a+2};cr.prototype.writeInt32LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,2147483647,-2147483648),this[a]=e&255,this[a+1]=e>>>8,this[a+2]=e>>>16,this[a+3]=e>>>24,a+4};cr.prototype.writeInt32BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=e&255,a+4};function oS(r,e,a,t,o,i){if(a+t>r.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function nS(r,e,a,t,o){return e=+e,a=a>>>0,o||oS(r,e,a,4,34028234663852886e22,-34028234663852886e22),mi.write(r,e,a,t,23,4),a+4}cr.prototype.writeFloatLE=function(e,a,t){return nS(this,e,a,!0,t)};cr.prototype.writeFloatBE=function(e,a,t){return nS(this,e,a,!1,t)};function sS(r,e,a,t,o){return e=+e,a=a>>>0,o||oS(r,e,a,8,17976931348623157e292,-17976931348623157e292),mi.write(r,e,a,t,52,8),a+8}cr.prototype.writeDoubleLE=function(e,a,t){return sS(this,e,a,!0,t)};cr.prototype.writeDoubleBE=function(e,a,t){return sS(this,e,a,!1,t)};cr.prototype.copy=function(e,a,t,o){if(!cr.isBuffer(e))throw new TypeError("argument should be a Buffer");if(t||(t=0),!o&&o!==0&&(o=this.length),a>=e.length&&(a=e.length),a||(a=0),o>0&&o<t&&(o=t),o===t||e.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-a<o-t&&(o=e.length-a+t);var i=o-t;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(a,t,o):Uint8Array.prototype.set.call(e,this.subarray(t,o),a),i};cr.prototype.fill=function(e,a,t,o){if(typeof e=="string"){if(typeof a=="string"?(o=a,a=0,t=this.length):typeof t=="string"&&(o=t,t=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!cr.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(a<0||this.length<a||this.length<t)throw new RangeError("Out of range index");if(t<=a)return this;a=a>>>0,t=t===void 0?this.length:t>>>0,e||(e=0);var n;if(typeof e=="number")for(n=a;n<t;++n)this[n]=e;else{var s=cr.isBuffer(e)?e:cr.from(e,o),u=s.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<t-a;++n)this[n+a]=s[n%u]}return this};var zpr=/[^+/0-9A-Za-z-_]/g;function Vpr(r){if(r=r.split("=")[0],r=r.trim().replace(zpr,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function Wv(r,e){e=e||1/0;for(var a,t=r.length,o=null,i=[],n=0;n<t;++n){if(a=r.charCodeAt(n),a>55295&&a<57344){if(!o){if(a>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(n+1===t){(e-=3)>-1&&i.push(239,191,189);continue}o=a;continue}if(a<56320){(e-=3)>-1&&i.push(239,191,189),o=a;continue}a=(o-55296<<10|a-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,a<128){if((e-=1)<0)break;i.push(a)}else if(a<2048){if((e-=2)<0)break;i.push(a>>6|192,a&63|128)}else if(a<65536){if((e-=3)<0)break;i.push(a>>12|224,a>>6&63|128,a&63|128)}else if(a<1114112){if((e-=4)<0)break;i.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else throw new Error("Invalid code point")}return i}function Upr(r){for(var e=[],a=0;a<r.length;++a)e.push(r.charCodeAt(a)&255);return e}function Cpr(r,e){for(var a,t,o,i=[],n=0;n<r.length&&!((e-=2)<0);++n)a=r.charCodeAt(n),t=a>>8,o=a%256,i.push(o),i.push(t);return i}function uS(r){return Gv.toByteArray(Vpr(r))}function Fn(r,e,a,t){for(var o=0;o<t&&!(o+a>=e.length||o>=r.length);++o)e[o+a]=r[o];return o}function Ja(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function Kv(r){return r!==r}var Ppr=(function(){for(var r="0123456789abcdef",e=new Array(256),a=0;a<16;++a)for(var t=a*16,o=0;o<16;++o)e[t+o]=r[a]+r[o];return e})()});var lS=c((Yte,fS)=>{"use strict";var Lpr=vS().Buffer;fS.exports=Lpr});var dS=c(($te,cS)=>{"use strict";function Mpr(){throw new Error("not implemented")}cS.exports=Mpr});var ho=c((Wte,pS)=>{"use strict";var Gpr=$6(),Ypr=lS(),$pr=dS(),Hv;Gpr()?Hv=Ypr:Hv=$pr;pS.exports=Hv});var mS=c((Jte,yS)=>{"use strict";var Wpr=ho(),Jpr=qt(),Xpr=At(),Kpr=Ki(),Hpr=Xi(),Zpr=Zi(),Qpr=fi(),ryr=Ji(),eyr=va(),ayr=Hi(),tyr=so(),iyr=vo(),oyr=co(),nyr={binary:Wpr,float64:Jpr,float32:Xpr,generic:Array,int16:Kpr,int32:Hpr,int8:Zpr,uint16:Qpr,uint32:ryr,uint8:eyr,uint8c:ayr,complex64:tyr,complex128:iyr,bool:oyr};yS.exports=nyr});var gS=c((Xte,hS)=>{"use strict";var syr=mS();function uyr(r){return syr[r]||null}hS.exports=uyr});var go=c((Kte,bS)=>{"use strict";var vyr=gS();bS.exports=vyr});var qS=c((Hte,xS)=>{"use strict";var fyr=Pe(),lyr=ho(),cyr=fyr(lyr.allocUnsafe);xS.exports=cyr});var SS=c((Zte,wS)=>{"use strict";var dyr=ge(),pyr=pr(),yyr=ho();function myr(r){if(!dyr(r))throw new TypeError(pyr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));return yyr.allocUnsafe(r)}wS.exports=myr});var AS=c((Qte,ES)=>{"use strict";var hyr=ge(),gyr=pr(),byr=ho();function xyr(r){if(!hyr(r))throw new TypeError(gyr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));return new byr(r)}ES.exports=xyr});var _t=c((rie,_S)=>{"use strict";var qyr=qS(),wyr=SS(),Syr=AS(),Zv;qyr?Zv=wyr:Zv=Syr;_S.exports=Zv});var jS=c((eie,TS)=>{"use strict";function Eyr(r){var e;for(e=0;e<r.length;e++)r[e]=0;return r}TS.exports=Eyr});var OS=c((aie,IS)=>{"use strict";var Ayr=go(),_yr=_t(),Tyr=jS();function jyr(r){var e,a;for(e=[],a=0;a<r;a++)e.push(0);return e}function Iyr(r){return Tyr(_yr(r))}function Oyr(r,e){var a=Ayr(r);return a?new a(e):null}function Nyr(r,e){return r==="generic"?jyr(e):r==="binary"?Iyr(e):Oyr(r,e)}IS.exports=Nyr});var Fa=c((tie,NS)=>{"use strict";var Dyr=OS();NS.exports=Dyr});var kS=c((iie,DS)=>{"use strict";var kyr={Buffer:"binary",Float32Array:"float32",Float64Array:"float64",Array:"generic",Int16Array:"int16",Int32Array:"int32",Int8Array:"int8",Object:"generic",Uint16Array:"uint16",Uint32Array:"uint32",Uint8Array:"uint8",Uint8ClampedArray:"uint8c",Complex64Array:"complex64",Complex128Array:"complex128",BooleanArray:"bool"};DS.exports=kyr});var FS=c((oie,BS)=>{"use strict";var Byr=qt(),Fyr=At(),Ryr=Ji(),zyr=Xi(),Vyr=fi(),Uyr=Ki(),Cyr=va(),Pyr=Hi(),Lyr=Zi(),Myr=so(),Gyr=vo(),Yyr=co(),$yr=[Byr,Fyr,zyr,Ryr,Uyr,Vyr,Lyr,Cyr,Pyr,Myr,Gyr,Yyr];BS.exports=$yr});var zS=c((nie,RS)=>{"use strict";var Wyr=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"];RS.exports=Wyr});var CS=c((sie,US)=>{"use strict";var Jyr=Ci(),Xyr=wa(),Kyr=gt(),Hyr=kS(),Zyr=FS(),VS=zS(),Qyr=VS.length;function rmr(r){var e;if(Xyr(r))return"generic";if(Jyr(r))return"binary";for(e=0;e<Qyr;e++)if(r instanceof Zyr[e])return VS[e];return Hyr[Kyr(r)]||null}US.exports=rmr});var Rn=c((uie,PS)=>{"use strict";var emr=CS();PS.exports=emr});var GS=c((vie,MS)=>{"use strict";var amr=di(),LS=pr();function tmr(r){var e;if(typeof r!="object"||r===null)throw new TypeError(LS("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.dtype,amr(e))return e;throw new TypeError(LS("invalid argument. Must provide an ndarray having a supported data type. Value: `%s`.",e))}MS.exports=tmr});var Ra=c((fie,YS)=>{"use strict";var imr=GS();YS.exports=imr});var WS=c((lie,$S)=>{"use strict";var omr=ge().isPrimitive,nmr=ke(),Qv=pr();function smr(r){var e,a,t,o;if(typeof r!="object"||r===null)throw new TypeError(Qv("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(a=r.shape,!nmr(a))throw new TypeError(Qv("invalid argument. Must provide an ndarray. Value: `%s`.",r));for(e=[],o=0;o<a.length;o++){if(t=a[o],!omr(t))throw new TypeError(Qv("invalid argument. Must provide an ndarray. Value: `%s`.",r));e.push(t)}return e}$S.exports=smr});var oe=c((cie,JS)=>{"use strict";var umr=WS();JS.exports=umr});var HS=c((die,KS)=>{"use strict";var vmr=fe().isPrimitive,XS=ke(),fmr=Ta(),lmr=ze(),rf=pr();function cmr(r){var e,a,t,o,i,n;if(typeof r!="object"||r===null)throw new TypeError(rf("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(o=r.strides,!XS(o)){if(t=r.shape,!XS(t))throw new TypeError(rf("invalid argument. Must provide an ndarray. Value: `%s`.",r));return t.length===0?[0]:(a=r.order,fmr(a)||(a="row-major"),lmr(t,a))}for(e=[],n=0;n<o.length;n++){if(i=o[n],!vmr(i))throw new TypeError(rf("invalid argument. Must provide an ndarray. Value: `%s`.",r));e.push(i)}return e}KS.exports=cmr});var Xa=c((pie,ZS)=>{"use strict";var dmr=HS();ZS.exports=dmr});var aE=c((yie,eE)=>{"use strict";var QS=ge().isPrimitive,rE=ke(),pmr=Ye(),ef=pr();function ymr(r){var e,a,t;if(typeof r!="object"||r===null)throw new TypeError(ef("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(t=r.offset,QS(t))return t;if(a=r.shape,!rE(a))throw new TypeError(ef("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.strides,a.length===0||!rE(e))return 0;if(t=pmr(a,e),QS(t))return t;throw new TypeError(ef("invalid argument. Must provide an ndarray. Value: `%s`.",r))}eE.exports=ymr});var Tt=c((mie,tE)=>{"use strict";var mmr=aE();tE.exports=mmr});var nE=c((hie,oE)=>{"use strict";var hmr=ge().isPrimitive,gmr=ke(),iE=pr();function bmr(r){var e,a;if(typeof r!="object"||r===null)throw new TypeError(iE("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(a=r.ndims,hmr(a))return a;if(e=r.shape,!gmr(e))throw new TypeError(iE("invalid argument. Must provide an ndarray. Value: `%s`.",r));return e.length}oE.exports=bmr});var zn=c((gie,sE)=>{"use strict";var xmr=nE();sE.exports=xmr});var fE=c((bie,vE)=>{"use strict";var qmr=Ta(),wmr=Xa(),Smr=zn(),Emr=Pt(),Amr=pr(),uE="row-major",_mr="column-major";function Tmr(r){var e,a;if(typeof r!="object"||r===null)throw new TypeError(Amr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return a=r.order,qmr(a)?a:(e=wmr(r),a=Emr(e),a===1||a===3?uE:a===2?_mr:Smr(r)===0?uE:null)}vE.exports=Tmr});var Ka=c((xie,lE)=>{"use strict";var jmr=fE();lE.exports=jmr});var pE=c((qie,dE)=>{"use strict";var Imr=ke(),cE=pr();function Omr(r){var e;if(typeof r!="object"||r===null)throw new TypeError(cE("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.data,Imr(e))return e;throw new TypeError(cE("invalid argument. Must provide an ndarray. Value: `%s`.",r))}dE.exports=Omr});var vt=c((wie,yE)=>{"use strict";var Nmr=pE();yE.exports=Nmr});var bE=c((Sie,gE)=>{"use strict";var af=Ve(),Dmr=pr();function mE(r,e){var a=e[0];return af(a)&&(r.push(a.length),mE(r,a)),r}function hE(r,e,a,t,o){var i,n,s;for(i=e[a],s=0;s<t.length;s++){if(n=t[s],!af(n)||n.length!==i)return a;if(o&&(n=hE(r,e,a+1,n,a+1<r-1),n<r))return n}return r}function kmr(r){var e,a;if(!af(r))throw new TypeError(Dmr("invalid argument. Must provide an array-like object. Value: `%s`.",r));return e=[r.length],mE(e,r),a=e.length,a>1&&(e.length=hE(a,e,1,r,a>2)),e}gE.exports=kmr});var qE=c((Eie,xE)=>{"use strict";var Bmr=bE();xE.exports=Bmr});var SE=c((Aie,wE)=>{"use strict";function Fmr(r,e){var a,t;for(a=[],t=0;t<e;t++)a.push(r);return a}wE.exports=Fmr});var bo=c((_ie,EE)=>{"use strict";var Rmr=SE();EE.exports=Rmr});var _E=c((Tie,AE)=>{"use strict";var zmr=bo();function Vmr(r){return zmr(0,r)}AE.exports=Vmr});var Se=c((jie,TE)=>{"use strict";var Umr=_E();TE.exports=Umr});var IE=c((Iie,jE)=>{"use strict";var Cmr=pr();function Pmr(r,e,a,t,o,i){var n,s,u,v,f;for(n=r.length,s=1,f=0;f<n;f++)s*=r[f];if(i==="clamp")o<0?o=0:o>=s&&(o=s-1);else if(i==="wrap")o<0?(o+=s,o<0&&(o%=s,o!==0&&(o+=s))):o>=s&&(o-=s,o>=s&&(o%=s));else if(i==="normalize"&&o<0&&(o+=s),o<0||o>=s)throw new RangeError(Cmr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",s,o));if(u=a,t==="column-major"){for(f=0;f<n;f++)v=o%r[f],o-=v,o/=r[f],u+=v*e[f];return u}for(f=n-1;f>=0;f--)v=o%r[f],o-=v,o/=r[f],u+=v*e[f];return u}jE.exports=Pmr});var na=c((Oie,OE)=>{"use strict";var Lmr=IE();OE.exports=Lmr});var kE=c((Nie,DE)=>{"use strict";var NE={float64:Mmr,float32:Gmr,int32:Ymr,int16:$mr,int8:Wmr,uint32:Jmr,uint16:Xmr,uint8:Kmr,uint8c:Hmr,generic:Zmr,default:Qmr};function Mmr(r,e,a){r[e]=a}function Gmr(r,e,a){r[e]=a}function Ymr(r,e,a){r[e]=a}function $mr(r,e,a){r[e]=a}function Wmr(r,e,a){r[e]=a}function Jmr(r,e,a){r[e]=a}function Xmr(r,e,a){r[e]=a}function Kmr(r,e,a){r[e]=a}function Hmr(r,e,a){r[e]=a}function Zmr(r,e,a){r[e]=a}function Qmr(r,e,a){r[e]=a}function rhr(r){var e=NE[r];return typeof e=="function"?e:NE.default}DE.exports=rhr});var gi=c((Die,BE)=>{"use strict";var ehr=kE();BE.exports=ehr});var zE=c((kie,RE)=>{"use strict";var FE={complex128:ahr,complex64:thr,default:ihr};function ahr(r,e,a){r.set(a,e)}function thr(r,e,a){r.set(a,e)}function ihr(r,e,a){r.set(a,e)}function ohr(r){var e=FE[r];return typeof e=="function"?e:FE.default}RE.exports=ohr});var bi=c((Bie,VE)=>{"use strict";var nhr=zE();VE.exports=nhr});var CE=c((Fie,UE)=>{"use strict";var shr=it(),uhr=Et(),vhr=gi(),fhr=ot(),lhr=bi(),chr=po();function dhr(r){var e=chr(r);return shr(r)?{data:r,dtype:e,accessorProtocol:!0,accessors:[fhr(e),lhr(e)]}:{data:r,dtype:e,accessorProtocol:!1,accessors:[uhr(e),vhr(e)]}}UE.exports=dhr});var ft=c((Rie,PE)=>{"use strict";var phr=CE();PE.exports=phr});var tf=c((zie,LE)=>{"use strict";var yhr=ea();function mhr(r,e,a,t){var o,i,n,s,u,v,f,l;for(o=e.data,n=e.accessors[0],i=e.accessors[1],f=yhr(r/2),u=t,v=u+(r-1)*a,l=0;l<f;l++)s=n(o,u),i(o,u,n(o,v)),i(o,v,s),u+=a,v-=a;return e}LE.exports=mhr});var GE=c((Vie,ME)=>{"use strict";var hhr=ea(),ghr=ft(),bhr=tf(),Vn=3;function xhr(r,e,a){var t,o,i,n,s,u,v;if(r<=0)return e;if(n=ghr(e),n.accessorProtocol)return a<0?o=(1-r)*a:o=0,bhr(r,n,a,o),n.data;if(u=hhr(r/2),a===1){if(s=u%Vn,i=r-1,s>0)for(o=0;o<s;o++)t=e[o],e[o]=e[i],e[i]=t,i-=1;if(u<Vn)return e;for(o=s;o<u;o+=Vn)t=e[o],e[o]=e[i],e[i]=t,t=e[o+1],e[o+1]=e[i-1],e[i-1]=t,t=e[o+2],e[o+2]=e[i-2],e[i-2]=t,i-=Vn;return e}for(a<0?o=(1-r)*a:o=0,i=o+(r-1)*a,v=0;v<u;v++)t=e[o],e[o]=e[i],e[i]=t,o+=a,i-=a;return e}ME.exports=xhr});var $E=c((Uie,YE)=>{"use strict";var qhr=ea(),whr=ft(),Shr=tf(),xo=3;function Ehr(r,e,a,t){var o,i,n,s,u,v,f;if(r<=0)return e;if(s=whr(e),s.accessorProtocol)return Shr(r,s,a,t),s.data;if(v=qhr(r/2),i=t,a===1){if(u=v%xo,n=i+r-1,u>0)for(f=0;f<u;f++)o=e[i],e[i]=e[n],e[n]=o,i+=a,n-=a;if(v<xo)return e;for(f=u;f<v;f+=xo)o=e[i],e[i]=e[n],e[n]=o,o=e[i+1],e[i+1]=e[n-1],e[n-1]=o,o=e[i+2],e[i+2]=e[n-2],e[n-2]=o,i+=xo,n-=xo;return e}for(n=i+(r-1)*a,f=0;f<v;f++)o=e[i],e[i]=e[n],e[n]=o,i+=a,n-=a;return e}YE.exports=Ehr});var XE=c((Cie,JE)=>{"use strict";var Ahr=Ir(),WE=GE(),_hr=$E();Ahr(WE,"ndarray",_hr);JE.exports=WE});var nf=c((Pie,QE)=>{"use strict";var Thr=ze(),jhr=na(),Ihr=Jr(),KE=XE(),HE=Se(),Ohr="throw";function ZE(r,e,a,t,o){var i;for(i=0;i<e;i++)a[o]=r[i],o+=t}function of(r,e,a,t,o,i,n){var s,u,v,f;for(v=t+1,s=v===e,u=a[t],f=0;f<u;f++)s?(o[n]=r[f],n+=i):n=of(r[f],e,a,v,o,i,n);return n}function Nhr(r,e,a,t,o,i){var n,s,u,v,f,l,d;for(n=Ihr(a),s=HE(n),of(r,e,a,0,s,1,0),u="row-major",f=Thr(a,u),v=HE(e),ZE(a,e,v,1,0),KE(e,v,1),KE(e,f,1),d=0;d<n;d++)l=jhr(v,f,0,u,d,Ohr),t[i]=s[l],i+=o}function Dhr(r,e,a,t,o,i){var n=e.length;return n===0?t:n===1?(ZE(r,e[0],t,o,i),t):a?(Nhr(r,n,e,t,o,i),t):(of(r,n,e,0,t,o,i),t)}QE.exports=Dhr});var eA=c((Lie,rA)=>{"use strict";var khr=Jr(),Bhr=Se(),Fhr=nf();function Rhr(r,e,a){var t=Bhr(khr(e));return Fhr(r,e,a,t,1,0)}rA.exports=Rhr});var iA=c((Mie,tA)=>{"use strict";var zhr=Ir(),aA=eA(),Vhr=nf();zhr(aA,"assign",Vhr);tA.exports=aA});var nA=c((Gie,oA)=>{"use strict";var Uhr=Pi(),Chr=Sa();function Phr(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&Chr(r.length)&&r.length>=0&&r.length<Uhr}oA.exports=Phr});var uA=c((Yie,sA)=>{"use strict";var Un=ka();function Lhr(){return{casting:Un.get("casting"),copy:!1,dtype:Un.get("dtypes.default"),flatten:!0,mode:Un.get("index_mode"),ndmin:0,order:Un.get("order"),readonly:!1}}sA.exports=Lhr});var fA=c(($ie,vA)=>{"use strict";var Mhr=go(),Ghr=_t();function Yhr(r,e,a){var t,o,i;if(t=Mhr(a),a==="generic")for(o=[],i=0;i<e;i++)o.push(r[i]);else if(a==="binary")for(o=Ghr(e),i=0;i<e;i++)o[i]=r[i];else for(o=new t(e),i=0;i<e;i++)o[i]=r[i];return o}vA.exports=Yhr});var dA=c((Wie,cA)=>{"use strict";var lA=Pe(),$hr=ge().isPrimitive,sf=pr(),ri="number";function Whr(r,e,a){var t;if(!lA(r))throw new TypeError(sf("invalid argument. First argument must be a function. Value: `%s`.",r));if(!$hr(e))throw new TypeError(sf("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",e));if(!lA(a))throw new TypeError(sf("invalid argument. Third argument must be a constructor function. Value: `%s`.",a));return t=[o,i,n,s,u,v],e<=5?t[e]:f;function o(){var l=r();return typeof l===ri?new a(l,0):l}function i(l){var d=r(l);return typeof d===ri?new a(d,0):d}function n(l,d){var y=r(l,d);return typeof y===ri?new a(y,0):y}function s(l,d,y){var p=r(l,d,y);return typeof p===ri?new a(p,0):p}function u(l,d,y,p){var m=r(l,d,y,p);return typeof m===ri?new a(m,0):m}function v(l,d,y,p,m){var h=r(l,d,y,p,m);return typeof h===ri?new a(h,0):h}function f(){var l,d,y;for(l=[],y=0;y<arguments.length;y++)l.push(arguments[y]);return d=r.apply(null,l),typeof d===ri?new a(d,0):d}}cA.exports=Whr});var uf=c((Jie,pA)=>{"use strict";var Jhr=dA();pA.exports=Jhr});var mA=c((Xie,yA)=>{"use strict";var Xhr=ln(),Khr=fn(),Hhr={complex64:Xhr,complex128:Khr};yA.exports=Hhr});var gA=c((Kie,hA)=>{"use strict";var Zhr=mA();function Qhr(r){return Zhr[r]||null}hA.exports=Qhr});var Cn=c((Hie,bA)=>{"use strict";var r1r=gA();bA.exports=r1r});var qA=c((Zie,xA)=>{"use strict";var e1r=ft(),a1r=uf(),t1r=Cn(),i1r=go(),o1r=_t(),n1r=aa(),s1r=Ra(),u1r=oe(),v1r=Xa(),f1r=Tt(),l1r=Ka(),c1r=vt();function d1r(r){var e,a,t;for(e=r.length,a=[],t=0;t<e;t++)a.push(r.iget(t));return a}function p1r(r){var e,a,t;for(e=r.length,a=o1r(e),t=0;t<e;t++)a[t]=r.iget(t);return a}function y1r(r,e){var a,t,o,i,n,s,u;if(a=i1r(e),t=r.length,o=new a(t),s=e1r(o),s.accessorProtocol)for(i=s.accessors[1],n=a1r(v,1,t1r(e)),u=0;u<t;u++)i(o,u,n(u));else for(u=0;u<t;u++)o[u]=r.iget(u);return o;function v(f){return r.iget(f)}}function m1r(r,e){var a;return a=new n1r(s1r(r),c1r(r),u1r(r),v1r(r),f1r(r),l1r(r)),e==="generic"?d1r(a):e==="binary"?p1r(a):y1r(a,e)}xA.exports=m1r});var SA=c((Qie,wA)=>{"use strict";function h1r(r,e,a){var t,o;for(t=[],o=0;o<a-r;o++)t.push(1);for(o=0;o<r;o++)t.push(e[o]);return t}wA.exports=h1r});var AA=c((roe,EA)=>{"use strict";var g1r=vi();function b1r(r,e,a,t){var o,i,n,s,u;if(i=a.length,u=r-i,o=[],t==="row-major"){for(n=g1r(a[0])*e[u],s=0;s<u;s++)o.push(n);for(s=0;s<i;s++)o.push(a[s])}else{for(s=0;s<u;s++)o.push(1);for(s=0;s<i;s++)o.push(a[s])}return o}EA.exports=b1r});var DA=c((eoe,NA)=>{"use strict";var za=Xr(),_A=ne(),TA=pe().isPrimitive,x1r=wa(),q1r=ge().isPrimitive,w1r=se(),S1r=ze(),E1r=Ye(),A1r=Pt(),Pn=Jr(),_1r=ma(),T1r=di(),j1r=Ta(),I1r=Fv(),O1r=Pv(),N1r=Fa(),D1r=Rn(),k1r=Ra(),B1r=oe(),jA=Xa(),F1r=Tt(),IA=Ka(),R1r=vt(),OA=qE(),z1r=iA(),ga=pr(),Ln=nA(),V1r=uA(),U1r=fA(),C1r=qA(),P1r=SA(),L1r=AA(),Va=V1r();function M1r(){var r,e,a,t,o,i,n,s,u,v,f,l,d,y,p;if(arguments.length===1)if(Ln(arguments[0]))a=arguments[0],r={};else{if(r=arguments[0],!_A(r))throw new TypeError(ga("invalid argument. Must provide either a valid data source, options argument, or both. Value: `%s`.",r));if(za(r,"buffer")&&(a=r.buffer,!Ln(a)))throw new TypeError(ga("invalid option. `%s` option must be an array-like object, typed-array-like, a Buffer, or an ndarray. Option: `%s`.","buffer",a))}else{if(a=arguments[0],!Ln(a))throw new TypeError(ga("invalid option. Data source must be an array-like object, typed-array-like, a Buffer, or an ndarray. Value: `%s`.",a));if(r=arguments[1],!_A(r))throw new TypeError(ga("invalid argument. Options argument must be an object. Value: `%s`.",r))}if(a&&(w1r(a)?(n=k1r(a),p=!0):(n=D1r(a),p=!1)),v={},f={},za(r,"casting")){if(f.casting=r.casting,!I1r(f.casting))throw new TypeError(ga("invalid option. `%s` option must be a recognized casting mode. Option: `%s`.","casting",f.casting))}else f.casting=Va.casting;if(za(r,"flatten")){if(f.flatten=r.flatten,!TA(f.flatten))throw new TypeError(ga("invalid option. `%s` option must be a boolean. Option: `%s`.","flatten",f.flatten))}else f.flatten=Va.flatten;if(za(r,"ndmin")){if(f.ndmin=r.ndmin,!q1r(f.ndmin))throw new TypeError(ga("invalid option. `%s` option must be a nonnegative integer. Option: `%s`.","ndmin",f.ndmin))}else f.ndmin=Va.ndmin;if(za(r,"dtype")){if(i=r.dtype,!T1r(i))throw new TypeError(ga("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",i));if(n&&!O1r(n,i,f.casting))throw new Error(ga("invalid option. Data type cast is not allowed. Casting mode: `%s`. From: `%s`. To: `%s`.",f.casting,n,i))}else n?!p&&n==="generic"?i=Va.dtype:i=n:i=Va.dtype;if(za(r,"order")){if(o=r.order,o==="any"||o==="same")p?o==="any"?(y=A1r(jA(a)),y===3?o=Va.order:o=IA(a)):o==="same"&&(o=IA(a)):o=Va.order;else if(!j1r(o))throw new TypeError(ga("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",o))}else o=Va.order;if(za(r,"mode")?v.mode=r.mode:v.mode=Va.mode,za(r,"submode")?v.submode=r.submode:v.submode=[v.mode],za(r,"readonly")?v.readonly=r.readonly:v.readonly=Va.readonly,za(r,"copy")){if(f.copy=r.copy,!TA(f.copy))throw new TypeError(ga("invalid option. `%s` option must be a boolean. Option: `%s`.","copy",f.copy))}else f.copy=Va.copy;if(za(r,"shape")){if(s=r.shape,!Ln(s))throw new TypeError(ga("invalid option. `%s` option must be an array-like object containing nonnegative integers. Option: `%s`.","shape",s));u=s.length,d=Pn(s)}else if(a)p?(s=B1r(a),u=s.length,d=Pn(s)):f.flatten&&x1r(a)?(s=OA(a),l=s,u=s.length,d=Pn(s)):(u=1,d=a.length,s=[d]);else throw new Error("invalid arguments. Must provide either a data source, array shape, or both.");if(u<f.ndmin&&(s=P1r(u,s,f.ndmin),u=f.ndmin),p){if(Pn(a.shape)!==d)throw new RangeError("invalid arguments. Array shape is incompatible with provided data source. Number of data source elements does not match array shape.");n!==i||f.copy?a=C1r(a,i):(e=jA(a),t=F1r(a),a=R1r(a),e.length<u&&(e=L1r(u,s,e,o)))}else if(a){if(n==="generic"&&f.flatten&&(a=z1r(a,l||OA(a),o==="column-major")),a.length!==d)throw new RangeError("invalid arguments. Array shape is incompatible with provided data source. Number of data source elements does not match array shape.");(n!==i||f.copy)&&(a=U1r(a,d,i))}else a=N1r(i,d);return e===void 0&&(e=S1r(s,o),t=E1r(s,e)),new _1r(i,a,s,e,t,o,v)}NA.exports=M1r});var BA=c((aoe,kA)=>{"use strict";var G1r=DA();kA.exports=G1r});var zA=c((toe,RA)=>{"use strict";var Y1r=se(),$1r=fe().isPrimitive,W1r=ya(),J1r=oe(),FA=pr();function X1r(r){var e,a,t,o,i,n;if(!Y1r(r))throw new TypeError(FA("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o=J1r(r),i=o.length,e=arguments.length-1,e<i)throw new RangeError("invalid invocation. Insufficient arguments. Array shape: (%s). Number of indices: %u.",o.join(","),e);if(e>i)throw new RangeError("invalid invocation. Too many arguments. Array shape: (%s). Number of indices: %u.",o.join(","),e);for(a=[],n=1;n<=e;n++){if(t=arguments[n],!$1r(t))throw new TypeError(FA("invalid argument. Index arguments must be integers. Value: `%s`.",t));if(t=W1r(t,o[n-1]-1),t===-1)return;a.push(t)}return r.get.apply(r,a)}RA.exports=X1r});var UA=c((ioe,VA)=>{"use strict";var K1r=zA();VA.exports=K1r});var PA=c((ooe,CA)=>{"use strict";function H1r(r){var e,a,t;for(a=r.length,e=[],t=0;t<a;t++)e.push(r[t]);return e}CA.exports=H1r});var jt=c((noe,LA)=>{"use strict";var Z1r=PA();LA.exports=Z1r});var GA=c((soe,MA)=>{"use strict";var Q1r=jt();function rgr(r,e){var a=r.shape;return e?Q1r(a):a}MA.exports=rgr});var Te=c((uoe,YA)=>{"use strict";var egr=GA();YA.exports=egr});var WA=c((voe,$A)=>{"use strict";function agr(r,e){var a;if(r.length!==e.length)return!1;for(a=0;a<r.length;a++)if(r[a]!==e[a])return!1;return!0}$A.exports=agr});var XA=c((foe,JA)=>{"use strict";var tgr=WA();JA.exports=tgr});var ZA=c((loe,HA)=>{"use strict";var KA=Te(),igr=XA();function ogr(r,e){return igr(KA(r,!1),KA(e,!1))}HA.exports=ogr});var r5=c((coe,QA)=>{"use strict";var ngr=ZA();QA.exports=ngr});var a5=c((doe,e5)=>{"use strict";var sgr=Ue().factory,ugr=Be(),vgr=sgr(ugr("boolean"));e5.exports=vgr});var i5=c((poe,t5)=>{"use strict";var fgr=a5();t5.exports=fgr});var n5=c((yoe,o5)=>{"use strict";var lgr=Jr();function cgr(r,e){return r>=lgr(e)}o5.exports=cgr});var u5=c((moe,s5)=>{"use strict";var dgr=n5();s5.exports=dgr});var l5=c((hoe,f5)=>{"use strict";var v5=vi();function pgr(r){var e,a,t,o;if(e=r.length,e===0)return!1;for(a=v5(r[0]),o=1;o<e;o++){if(t=v5(r[o]),t<a)return!1;a=t}return!0}f5.exports=pgr});var vf=c((goe,c5)=>{"use strict";var ygr=l5();c5.exports=ygr});var p5=c((boe,d5)=>{"use strict";var mgr=Jr(),hgr=at();function ggr(r,e,a){var t,o;return t=mgr(r),t===0?!1:(o=hgr(r,e,a),t===o[1]-o[0]+1)}d5.exports=ggr});var qo=c((xoe,y5)=>{"use strict";var bgr=p5();y5.exports=bgr});var h5=c((qoe,m5)=>{"use strict";var xgr=qo(),qgr=Ea(),wgr=vf();function Sgr(r,e,a){return qgr(e)!==0&&wgr(e)&&xgr(r,e,a)}m5.exports=Sgr});var b5=c((woe,g5)=>{"use strict";var Egr=h5();g5.exports=Egr});var q5=c((Soe,x5)=>{"use strict";var Agr=Ue().factory,_gr=Be(),Tgr=Agr(_gr("complex_floating_point"));x5.exports=Tgr});var wo=c((Eoe,w5)=>{"use strict";var jgr=q5();w5.exports=jgr});var E5=c((Aoe,S5)=>{"use strict";var Igr=qo(),Ogr=Ea();function Ngr(r,e,a){return Ogr(e)!==0&&Igr(r,e,a)}S5.exports=Ngr});var _5=c((_oe,A5)=>{"use strict";var Dgr=E5();A5.exports=Dgr});var j5=c((Toe,T5)=>{"use strict";var kgr=Ue().factory,Bgr=Be(),Fgr=kgr(Bgr("floating_point"));T5.exports=Fgr});var Mn=c((joe,I5)=>{"use strict";var Rgr=j5();I5.exports=Rgr});var N5=c((Ioe,O5)=>{"use strict";var zgr=Ue().factory,Vgr=Be(),Ugr=zgr(Vgr("integer"));O5.exports=Ugr});var ff=c((Ooe,D5)=>{"use strict";var Cgr=N5();D5.exports=Cgr});var B5=c((Noe,k5)=>{"use strict";var Pgr=Ue().factory,Lgr=Be(),Mgr=Pgr(Lgr("numeric"));k5.exports=Mgr});var lf=c((Doe,F5)=>{"use strict";var Ggr=B5();F5.exports=Ggr});var z5=c((koe,R5)=>{"use strict";var Ygr=Pe(),$gr=Ygr(Object.assign);R5.exports=$gr});var U5=c((Boe,V5)=>{"use strict";var Wgr=Object.assign;V5.exports=Wgr});var P5=c((Foe,C5)=>{"use strict";var Jgr=typeof Object.getOwnPropertySymbols<"u";C5.exports=Jgr});var G5=c((Roe,M5)=>{"use strict";var L5=Ut(),Xgr=L5.getOwnPropertySymbols;function Kgr(r){return Xgr(L5(r))}M5.exports=Kgr});var $5=c((zoe,Y5)=>{"use strict";function Hgr(){return[]}Y5.exports=Hgr});var df=c((Voe,W5)=>{"use strict";var Zgr=P5(),Qgr=G5(),r2r=$5(),cf;Zgr?cf=Qgr:cf=r2r;W5.exports=cf});var X5=c((Uoe,J5)=>{"use strict";var e2r=Aa(),a2r=df(),t2r=Mi();function i2r(r){var e,a,t;for(e=e2r(r),a=a2r(r),t=0;t<a.length;t++)t2r(r,a[t])&&e.push(a[t]);return e}J5.exports=i2r});var H5=c((Coe,K5)=>{"use strict";var o2r=X5();K5.exports=o2r});var r8=c((Poe,Q5)=>{"use strict";var n2r=H5(),Z5=Ut(),s2r=pr();function u2r(r){var e,a,t,o,i,n,s;if(r==null)throw new TypeError(s2r("invalid argument. First argument must be a non-null object. Value: `%s`.",r));for(i=Z5(r),n=1;n<arguments.length;n++)if(e=arguments[n],e!=null)for(a=n2r(Z5(e)),o=a.length,s=0;s<o;s++)t=a[s],i[t]=e[t];return i}Q5.exports=u2r});var a8=c((Loe,e8)=>{"use strict";var v2r=z5(),f2r=U5(),l2r=r8(),pf;v2r?pf=f2r:pf=l2r;e8.exports=pf});var i8=c((Moe,t8)=>{"use strict";var c2r=a8();function d2r(r,e){var a=r.flags;return typeof a!="object"||a===null?{}:e?c2r({},a):a}t8.exports=d2r});var So=c((Goe,o8)=>{"use strict";var p2r=i8();o8.exports=p2r});var s8=c((Yoe,n8)=>{"use strict";var y2r=So();function m2r(r,e){return y2r(r,!1)[e]}n8.exports=m2r});var yf=c(($oe,u8)=>{"use strict";var h2r=s8();u8.exports=h2r});var f8=c((Woe,v8)=>{"use strict";var g2r=yf();function b2r(r){return g2r(r,"READONLY")===!0}v8.exports=b2r});var Le=c((Joe,l8)=>{"use strict";var x2r=f8();l8.exports=x2r});var d8=c((Xoe,c8)=>{"use strict";var q2r=Ue().factory,w2r=Be(),S2r=q2r(w2r("real"));c8.exports=S2r});var Gn=c((Koe,p8)=>{"use strict";var E2r=d8();p8.exports=E2r});var m8=c((Hoe,y8)=>{"use strict";var A2r=Ue().factory,_2r=Be(),T2r=A2r(_2r("real_floating_point"));y8.exports=T2r});var mf=c((Zoe,h8)=>{"use strict";var j2r=m8();h8.exports=j2r});var x8=c((Qoe,b8)=>{"use strict";var g8=vi();function I2r(r){var e,a,t,o;if(e=r.length,e===0)return!1;for(a=g8(r[0]),o=1;o<e;o++){if(t=g8(r[o]),t>a)return!1;a=t}return!0}b8.exports=I2r});var Yn=c((rne,q8)=>{"use strict";var O2r=x8();q8.exports=O2r});var S8=c((ene,w8)=>{"use strict";var N2r=qo(),D2r=Ea(),k2r=Yn();function B2r(r,e,a){return D2r(e)!==0&&k2r(e)&&N2r(r,e,a)}w8.exports=B2r});var A8=c((ane,E8)=>{"use strict";var F2r=S8();E8.exports=F2r});var T8=c((tne,_8)=>{"use strict";var R2r=Ue().factory,z2r=Be(),V2r=R2r(z2r("signed_integer"));_8.exports=V2r});var $n=c((ine,j8)=>{"use strict";var U2r=T8();j8.exports=U2r});var O8=c((one,I8)=>{"use strict";var C2r=Ue().factory,P2r=Be(),L2r=C2r(P2r("unsigned_integer"));I8.exports=L2r});var Wn=c((nne,N8)=>{"use strict";var M2r=O8();N8.exports=M2r});var k8=c((sne,D8)=>{"use strict";var de=zt(),le={};de(le,"hasEqualShape",r5());de(le,"isAllowedDataTypeCast",Pv());de(le,"isBooleanDataType",i5());de(le,"isBufferLengthCompatible",jv());de(le,"isBufferLengthCompatibleShape",u5());de(le,"isCastingMode",Fv());de(le,"isColumnMajor",vf());de(le,"isColumnMajorContiguous",b5());de(le,"isComplexFloatingPointDataType",wo());de(le,"isContiguous",_5());de(le,"isDataType",di());de(le,"isFloatingPointDataType",Mn());de(le,"isIndexMode",pi());de(le,"isIntegerDataType",ff());de(le,"isMostlySafeDataTypeCast",In());de(le,"isNumericDataType",lf());de(le,"isOrder",Ta());de(le,"isReadOnly",Le());de(le,"isRealDataType",Gn());de(le,"isRealFloatingPointDataType",mf());de(le,"isRowMajor",Yn());de(le,"isRowMajorContiguous",A8());de(le,"isSafeDataTypeCast",_n());de(le,"isSameKindDataTypeCast",Cv());de(le,"isSignedIntegerDataType",$n());de(le,"isSingleSegmentCompatible",qo());de(le,"isUnsignedIntegerDataType",Wn());D8.exports=le});var F8=c((une,B8)=>{"use strict";function G2r(r){return r.dtype}B8.exports=G2r});var Xe=c((vne,R8)=>{"use strict";var Y2r=F8();R8.exports=Y2r});var V8=c((fne,z8)=>{"use strict";var $2r=ze(),W2r=jt(),J2r="row-major";function X2r(r,e){var a,t,o;return o=r.strides,typeof o!="object"||o===null?(t=r.shape,t.length===0?[0]:(a=r.order,typeof a!="string"&&(a=J2r),$2r(t,a))):e?W2r(o):o}z8.exports=X2r});var ba=c((lne,U8)=>{"use strict";var K2r=V8();U8.exports=K2r});var P8=c((cne,C8)=>{"use strict";var H2r=Ye();function Z2r(r){var e,a,t;return t=r.offset,typeof t=="number"?t:(a=r.shape,a.length===0||(e=r.strides,typeof e!="object"||e===null)?0:H2r(a,e))}C8.exports=Z2r});var Ha=c((dne,L8)=>{"use strict";var Q2r=P8();L8.exports=Q2r});var G8=c((pne,M8)=>{"use strict";var rbr=Pt(),hf="row-major",ebr="column-major";function abr(r){var e,a;return a=r.order,typeof a=="string"?a:(e=r.strides,typeof e!="object"||e===null||(a=rbr(e),a===1||a===3)?hf:a===2?ebr:r.shape.length===0?hf:null)}M8.exports=abr});var sa=c((yne,Y8)=>{"use strict";var tbr=G8();Y8.exports=tbr});var W8=c((mne,$8)=>{"use strict";function ibr(r){return r.data}$8.exports=ibr});var lt=c((hne,J8)=>{"use strict";var obr=W8();J8.exports=obr});var K8=c((gne,X8)=>{"use strict";var nbr=it(),sbr=ot(),ubr=bi(),vbr=Et(),fbr=gi(),lbr=Jr(),cbr=Xe(),dbr=Te(),pbr=ba(),ybr=Ha(),mbr=sa(),hbr=lt();function gbr(r){var e,a,t,o;return e=hbr(r),t=dbr(r,!0),o=cbr(r),a=nbr(e),{ref:r,dtype:o,data:e,length:lbr(t),shape:t,strides:pbr(r,!0),offset:ybr(r),order:mbr(r),accessorProtocol:a,accessors:a?[sbr(o),ubr(o)]:[vbr(o),fbr(o)]}}X8.exports=gbr});var ei=c((bne,H8)=>{"use strict";var bbr=K8();H8.exports=bbr});var Q8=c((xne,Z8)=>{"use strict";function xbr(r){var e,a;if(e=[],r<=0)return e;for(a=0;a<r;a++)e.push(a);return e}Z8.exports=xbr});var a_=c((qne,e_)=>{"use strict";var qbr=ft(),wbr=oo(),Sbr=io();function Ebr(r,e,a){var t,o;for(o=a,t=0;o>=0&&o<r.length;)r[o]=t,o+=e,t+=1;return r}function r_(r,e,a,t){var o,i,n;for(i=a*2,n=t*2,o=0;n>=0&&n<e.length;)e[n]=o,e[n+1]=0,n+=i,o+=1;return r}function Abr(r,e,a){var t,o,i,n;for(t=r.data,o=r.accessors[1],n=a,i=0;n>=0&&n<t.length;)o(t,n,i),n+=e,i+=1;return t}function _br(r,e,a){var t=qbr(r);return t.accessorProtocol?t.dtype==="complex128"?r_(r,wbr(r,0),e,a):t.dtype==="complex64"?r_(r,Sbr(r,0),e,a):Abr(t,e,a):Ebr(r,e,a)}e_.exports=_br});var qe=c((wne,i_)=>{"use strict";var Tbr=Ir(),t_=Q8(),jbr=a_();Tbr(t_,"assign",jbr);i_.exports=t_});var n_=c((Sne,o_)=>{"use strict";function Ibr(r,e){var a,t;for(a=[],t=0;t<e.length;t++)a.push(r[e[t]]);return a}o_.exports=Ibr});var Kr=c((Ene,s_)=>{"use strict";var Obr=n_();s_.exports=Obr});var v_=c((Ane,u_)=>{"use strict";function Nbr(r,e){var a,t,o,i,n,s,u,v,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(u=r[o],a=u<0?-u:u,v=e[i],n=o-1,s=i-1;n>=0&&(f=r[n],t=f<0?-f:f,!(t<=a));)r[n+1]=f,e[s+1]=e[s],n-=1,s-=1;r[n+1]=u,e[s+1]=v,o+=1,i+=1}}u_.exports=Nbr});var c_=c((_ne,l_)=>{"use strict";var Dbr=qe(),kbr=jt(),f_=Kr(),Bbr=v_();function Fbr(r,e,a){var t;return t=Dbr(r.length),e=kbr(e),Bbr(e,t),r=f_(r,t),a=f_(a,t),{sh:r,sx:e,sy:a,idx:t}}l_.exports=Fbr});var zr=c((Tne,d_)=>{"use strict";var Rbr=c_();d_.exports=Rbr});var y_=c((jne,p_)=>{"use strict";var zbr={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};p_.exports=zbr});var g_=c((Ine,h_)=>{"use strict";var m_=xt(),gf=y_();function Vbr(r,e){var a,t;return a=m_(r),t=m_(e),a===null||t===null?gf.BLOCK_SIZE_IN_ELEMENTS:a>t?gf.BLOCK_SIZE_IN_BYTES/a|0:gf.BLOCK_SIZE_IN_BYTES/t|0}h_.exports=Vbr});var Rr=c((One,b_)=>{"use strict";var Ubr=g_();b_.exports=Ubr});var q_=c((Nne,x_)=>{"use strict";var Cbr=zr(),Pbr=Rr();function Lbr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T;for(T=Cbr(r.shape,r.strides,e.strides),y=T.sh,h=T.sx,g=T.sy,a=Pbr(r.dtype,e.dtype),b=r.offset,S=e.offset,t=r.data,o=e.data,s=h[0],v=g[0],i=r.accessors[0],n=e.accessors[1],q=y[1];q>0;)for(q<a?(m=q,q=0):(m=a,q-=a),l=b+q*h[1],d=S+q*g[1],E=y[0];E>0;)for(E<a?(p=E,E=0):(p=a,E-=a),w=l+E*h[0],A=d+E*g[0],u=h[1]-p*h[0],f=g[1]-p*g[0],x=0;x<m;x++){for(_=0;_<p;_++)n(o,A,i(t,w)),w+=s,A+=v;w+=u,A+=f}}x_.exports=Lbr});var S_=c((Dne,w_)=>{"use strict";var Mbr=zr(),Gbr=Rr();function Ybr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F;for(F=Mbr(r.shape,r.strides,e.strides),g=F.sh,A=F.sx,_=F.sy,a=Gbr(r.dtype,e.dtype),x=r.offset,E=e.offset,t=r.data,o=e.data,s=A[0],f=_[0],i=r.accessors[0],n=e.accessors[1],N=g[2];N>0;)for(N<a?(w=N,N=0):(w=a,N-=a),p=x+N*A[2],h=E+N*_[2],k=g[1];k>0;)for(k<a?(S=k,k=0):(S=a,k-=a),v=A[2]-S*A[1],d=_[2]-S*_[1],y=p+k*A[1],m=h+k*_[1],D=g[0];D>0;)for(D<a?(b=D,D=0):(b=a,D-=a),q=y+D*A[0],T=m+D*_[0],u=A[1]-b*A[0],l=_[1]-b*_[0],I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++)n(o,T,i(t,q)),q+=s,T+=f;q+=u,T+=l}q+=v,T+=d}}w_.exports=Ybr});var A_=c((kne,E_)=>{"use strict";var $br=zr(),Wbr=Rr();function Jbr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P;for(P=$br(r.shape,r.strides,e.strides),A=P.sh,T=P.sx,j=P.sy,a=Wbr(r.dtype,e.dtype),O=r.offset,I=e.offset,t=r.data,o=e.data,s=T[0],l=j[0],i=r.accessors[0],n=e.accessors[1],C=A[3];C>0;)for(C<a?(q=C,C=0):(q=a,C-=a),g=O+C*T[3],w=I+C*j[3],U=A[2];U>0;)for(U<a?(E=U,U=0):(E=a,U-=a),f=T[3]-E*T[2],p=j[3]-E*j[2],h=g+U*T[2],S=w+U*j[2],V=A[1];V>0;)for(V<a?(x=V,V=0):(x=a,V-=a),v=T[2]-x*T[1],y=j[2]-x*j[1],m=h+V*T[1],b=S+V*j[1],z=A[0];z>0;)for(z<a?(_=z,z=0):(_=a,z-=a),D=m+z*T[0],k=b+z*j[0],u=T[1]-_*T[0],d=j[1]-_*j[0],B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++)n(o,k,i(t,D)),D+=s,k+=l;D+=u,k+=d}D+=v,k+=y}D+=f,k+=p}}E_.exports=Jbr});var T_=c((Bne,__)=>{"use strict";var Xbr=zr(),Kbr=Rr();function Hbr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J;for(J=Xbr(r.shape,r.strides,e.strides),q=J.sh,k=J.sx,N=J.sy,a=Kbr(r.dtype,e.dtype),F=r.offset,R=e.offset,t=r.data,o=e.data,s=k[0],d=N[0],i=r.accessors[0],n=e.accessors[1],W=q[4];W>0;)for(W<a?(D=W,W=0):(D=a,W-=a),w=F+W*k[4],E=R+W*N[4],Y=q[3];Y>0;)for(Y<a?(I=Y,Y=0):(I=a,Y-=a),l=k[4]-I*k[3],h=N[4]-I*N[3],S=w+Y*k[3],x=E+Y*N[3],$=q[2];$>0;)for($<a?(O=$,$=0):(O=a,$-=a),f=k[3]-O*k[2],m=N[3]-O*N[2],b=S+$*k[2],_=x+$*N[2],G=q[1];G>0;)for(G<a?(j=G,G=0):(j=a,G-=a),v=k[2]-j*k[1],p=N[2]-j*N[1],g=b+G*k[1],A=_+G*N[1],M=q[0];M>0;)for(M<a?(T=M,M=0):(T=a,M-=a),B=g+M*k[0],z=A+M*N[0],u=k[1]-T*k[0],y=N[1]-T*N[0],L=0;L<D;L++){for(P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++)n(o,z,i(t,B)),B+=s,z+=d;B+=u,z+=y}B+=v,z+=p}B+=f,z+=m}B+=l,z+=h}}__.exports=Hbr});var I_=c((Fne,j_)=>{"use strict";var Zbr=zr(),Qbr=Rr();function rxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar;for(ar=Zbr(r.shape,r.strides,e.strides),I=ar.sh,z=ar.sx,V=ar.sy,a=Qbr(r.dtype,e.dtype),U=r.offset,C=e.offset,t=r.data,o=e.data,s=z[0],y=V[0],i=r.accessors[0],n=e.accessors[1],rr=I[5];rr>0;)for(rr<a?(B=rr,rr=0):(B=a,rr-=a),x=U+rr*z[5],O=C+rr*V[5],Z=I[4];Z>0;)for(Z<a?(R=Z,Z=0):(R=a,Z-=a),d=z[5]-R*z[4],b=V[5]-R*V[4],_=x+Z*z[4],j=O+Z*V[4],Q=I[3];Q>0;)for(Q<a?(F=Q,Q=0):(F=a,Q-=a),l=z[4]-F*z[3],g=V[4]-F*V[3],A=_+Q*z[3],T=j+Q*V[3],H=I[2];H>0;)for(H<a?(N=H,H=0):(N=a,H-=a),f=z[3]-N*z[2],h=V[3]-N*V[2],w=A+H*z[2],q=T+H*V[2],K=I[1];K>0;)for(K<a?(k=K,K=0):(k=a,K-=a),v=z[2]-k*z[1],m=V[2]-k*V[1],S=w+K*z[1],E=q+K*V[1],X=I[0];X>0;)for(X<a?(D=X,X=0):(D=a,X-=a),P=S+X*z[0],L=E+X*V[0],u=z[1]-D*z[0],p=V[1]-D*V[0],J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++)n(o,L,i(t,P)),P+=s,L+=y;P+=u,L+=p}P+=v,L+=m}P+=f,L+=h}P+=l,L+=g}P+=d,L+=b}}j_.exports=rxr});var N_=c((Rne,O_)=>{"use strict";var exr=zr(),axr=Rr();function txr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur;for(ur=exr(r.shape,r.strides,e.strides),F=ur.sh,L=ur.sx,M=ur.sy,a=axr(r.dtype,e.dtype),G=r.offset,$=e.offset,t=r.data,o=e.data,s=L[0],p=M[0],i=r.accessors[0],n=e.accessors[1],sr=F[6];sr>0;)for(sr<a?(P=sr,sr=0):(P=a,sr-=a),T=G+sr*L[6],N=$+sr*M[6],nr=F[5];nr>0;)for(nr<a?(C=nr,nr=0):(C=a,nr-=a),y=L[6]-C*L[5],w=M[6]-C*M[5],q=T+nr*L[5],k=N+nr*M[5],or=F[4];or>0;)for(or<a?(U=or,or=0):(U=a,or-=a),d=L[5]-U*L[4],S=M[5]-U*M[4],E=q+or*L[4],D=k+or*M[4],tr=F[3];tr>0;)for(tr<a?(V=tr,tr=0):(V=a,tr-=a),l=L[4]-V*L[3],b=M[4]-V*M[3],x=E+tr*L[3],I=D+tr*M[3],ir=F[2];ir>0;)for(ir<a?(z=ir,ir=0):(z=a,ir-=a),f=L[3]-z*L[2],g=M[3]-z*M[2],_=x+ir*L[2],O=I+ir*M[2],er=F[1];er>0;)for(er<a?(B=er,er=0):(B=a,er-=a),v=L[2]-B*L[1],h=M[2]-B*M[1],A=_+er*L[1],j=O+er*M[1],ar=F[0];ar>0;)for(ar<a?(R=ar,ar=0):(R=a,ar-=a),Y=A+ar*L[0],W=j+ar*M[0],u=L[1]-R*L[0],m=M[1]-R*M[0],rr=0;rr<P;rr++){for(Z=0;Z<C;Z++){for(Q=0;Q<U;Q++){for(H=0;H<V;H++){for(K=0;K<z;K++){for(X=0;X<B;X++){for(J=0;J<R;J++)n(o,W,i(t,Y)),Y+=s,W+=p;Y+=u,W+=m}Y+=v,W+=h}Y+=f,W+=g}Y+=l,W+=b}Y+=d,W+=S}Y+=y,W+=w}}O_.exports=txr});var k_=c((zne,D_)=>{"use strict";var ixr=zr(),oxr=Rr();function nxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr;for(hr=ixr(r.shape,r.strides,e.strides),V=hr.sh,W=hr.sx,J=hr.sy,a=oxr(r.dtype,e.dtype),X=r.offset,K=e.offset,t=r.data,o=e.data,s=W[0],m=J[0],i=r.accessors[0],n=e.accessors[1],mr=V[7];mr>0;)for(mr<a?(Y=mr,mr=0):(Y=a,mr-=a),I=X+mr*W[7],z=K+mr*J[7],dr=V[6];dr>0;)for(dr<a?($=dr,dr=0):($=a,dr-=a),p=W[7]-$*W[6],_=J[7]-$*J[6],O=I+dr*W[6],B=z+dr*J[6],yr=V[5];yr>0;)for(yr<a?(G=yr,yr=0):(G=a,yr-=a),y=W[6]-G*W[5],A=J[6]-G*J[5],j=O+yr*W[5],R=B+yr*J[5],fr=V[4];fr>0;)for(fr<a?(M=fr,fr=0):(M=a,fr-=a),d=W[5]-M*W[4],w=J[5]-M*J[4],T=j+fr*W[4],F=R+fr*J[4],lr=V[3];lr>0;)for(lr<a?(L=lr,lr=0):(L=a,lr-=a),l=W[4]-L*W[3],S=J[4]-L*J[3],q=T+lr*W[3],N=F+lr*J[3],vr=V[2];vr>0;)for(vr<a?(P=vr,vr=0):(P=a,vr-=a),f=W[3]-P*W[2],b=J[3]-P*J[2],E=q+vr*W[2],k=N+vr*J[2],ur=V[1];ur>0;)for(ur<a?(C=ur,ur=0):(C=a,ur-=a),v=W[2]-C*W[1],g=J[2]-C*J[1],x=E+ur*W[1],D=k+ur*J[1],sr=V[0];sr>0;)for(sr<a?(U=sr,sr=0):(U=a,sr-=a),H=x+sr*W[0],Q=D+sr*J[0],u=W[1]-U*W[0],h=J[1]-U*J[0],nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<U;Z++)n(o,Q,i(t,H)),H+=s,Q+=m;H+=u,Q+=h}H+=v,Q+=g}H+=f,Q+=b}H+=l,Q+=S}H+=d,Q+=w}H+=y,Q+=A}H+=p,Q+=_}}D_.exports=nxr});var F_=c((Vne,B_)=>{"use strict";var sxr=zr(),uxr=Rr();function vxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r;for(_r=sxr(r.shape,r.strides,e.strides),L=_r.sh,Q=_r.sx,Z=_r.sy,a=uxr(r.dtype,e.dtype),rr=r.offset,ar=e.offset,t=r.data,o=e.data,s=Q[0],h=Z[0],i=r.accessors[0],n=e.accessors[1],Ar=L[8];Ar>0;)for(Ar<a?(H=Ar,Ar=0):(H=a,Ar-=a),N=rr+Ar*Q[8],P=ar+Ar*Z[8],gr=L[7];gr>0;)for(gr<a?(K=gr,gr=0):(K=a,gr-=a),m=Q[8]-K*Q[7],E=Z[8]-K*Z[7],k=N+gr*Q[7],C=P+gr*Z[7],qr=L[6];qr>0;)for(qr<a?(X=qr,qr=0):(X=a,qr-=a),p=Q[7]-X*Q[6],x=Z[7]-X*Z[6],D=k+qr*Q[6],U=C+qr*Z[6],xr=L[5];xr>0;)for(xr<a?(J=xr,xr=0):(J=a,xr-=a),y=Q[6]-J*Q[5],_=Z[6]-J*Z[5],I=D+xr*Q[5],V=U+xr*Z[5],wr=L[4];wr>0;)for(wr<a?(W=wr,wr=0):(W=a,wr-=a),d=Q[5]-W*Q[4],A=Z[5]-W*Z[4],O=I+wr*Q[4],z=V+wr*Z[4],br=L[3];br>0;)for(br<a?(Y=br,br=0):(Y=a,br-=a),l=Q[4]-Y*Q[3],w=Z[4]-Y*Z[3],j=O+br*Q[3],B=z+br*Z[3],hr=L[2];hr>0;)for(hr<a?($=hr,hr=0):($=a,hr-=a),f=Q[3]-$*Q[2],S=Z[3]-$*Z[2],T=j+hr*Q[2],R=B+hr*Z[2],mr=L[1];mr>0;)for(mr<a?(G=mr,mr=0):(G=a,mr-=a),v=Q[2]-G*Q[1],b=Z[2]-G*Z[1],q=T+mr*Q[1],F=R+mr*Z[1],dr=L[0];dr>0;)for(dr<a?(M=dr,dr=0):(M=a,dr-=a),er=q+dr*Q[0],ir=F+dr*Z[0],u=Q[1]-M*Q[0],g=Z[1]-M*Z[0],yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++)n(o,ir,i(t,er)),er+=s,ir+=h;er+=u,ir+=g}er+=v,ir+=b}er+=f,ir+=S}er+=l,ir+=w}er+=d,ir+=A}er+=y,ir+=_}er+=p,ir+=x}er+=m,ir+=E}}B_.exports=vxr});var z_=c((Une,R_)=>{"use strict";var fxr=zr(),lxr=Rr();function cxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr,Hr,ie;for(ie=fxr(r.shape,r.strides,e.strides),Y=ie.sh,ir=ie.sx,tr=ie.sy,a=lxr(r.dtype,e.dtype),or=r.offset,nr=e.offset,t=r.data,o=e.data,s=ir[0],g=tr[0],i=r.accessors[0],n=e.accessors[1],Hr=Y[9];Hr>0;)for(Hr<a?(er=Hr,Hr=0):(er=a,Hr-=a),B=or+Hr*ir[9],$=nr+Hr*tr[9],Vr=Y[8];Vr>0;)for(Vr<a?(ar=Vr,Vr=0):(ar=a,Vr-=a),h=ir[9]-ar*ir[8],T=tr[9]-ar*tr[8],R=B+Vr*ir[8],G=$+Vr*tr[8],Fr=Y[7];Fr>0;)for(Fr<a?(rr=Fr,Fr=0):(rr=a,Fr-=a),m=ir[8]-rr*ir[7],q=tr[8]-rr*tr[7],F=R+Fr*ir[7],M=G+Fr*tr[7],Or=Y[6];Or>0;)for(Or<a?(Z=Or,Or=0):(Z=a,Or-=a),p=ir[7]-Z*ir[6],E=tr[7]-Z*tr[6],N=F+Or*ir[6],L=M+Or*tr[6],jr=Y[5];jr>0;)for(jr<a?(Q=jr,jr=0):(Q=a,jr-=a),y=ir[6]-Q*ir[5],x=tr[6]-Q*tr[5],k=N+jr*ir[5],P=L+jr*tr[5],Tr=Y[4];Tr>0;)for(Tr<a?(H=Tr,Tr=0):(H=a,Tr-=a),d=ir[5]-H*ir[4],_=tr[5]-H*tr[4],D=k+Tr*ir[4],C=P+Tr*tr[4],_r=Y[3];_r>0;)for(_r<a?(K=_r,_r=0):(K=a,_r-=a),l=ir[4]-K*ir[3],A=tr[4]-K*tr[3],I=D+_r*ir[3],U=C+_r*tr[3],Ar=Y[2];Ar>0;)for(Ar<a?(X=Ar,Ar=0):(X=a,Ar-=a),f=ir[3]-X*ir[2],w=tr[3]-X*tr[2],O=I+Ar*ir[2],V=U+Ar*tr[2],gr=Y[1];gr>0;)for(gr<a?(J=gr,gr=0):(J=a,gr-=a),v=ir[2]-J*ir[1],S=tr[2]-J*tr[1],j=O+gr*ir[1],z=V+gr*tr[1],qr=Y[0];qr>0;)for(qr<a?(W=qr,qr=0):(W=a,qr-=a),sr=j+qr*ir[0],ur=z+qr*tr[0],u=ir[1]-W*ir[0],b=tr[1]-W*tr[0],xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(vr=0;vr<W;vr++)n(o,ur,i(t,sr)),sr+=s,ur+=g;sr+=u,ur+=b}sr+=v,ur+=S}sr+=f,ur+=w}sr+=l,ur+=A}sr+=d,ur+=_}sr+=y,ur+=x}sr+=p,ur+=E}sr+=m,ur+=q}sr+=h,ur+=T}}R_.exports=cxr});var U_=c((Cne,V_)=>{"use strict";var dxr=zr(),pxr=Rr();function yxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E;for(E=dxr(r.shape,r.strides,e.strides),l=E.sh,p=E.sx,m=E.sy,a=pxr(r.dtype,e.dtype),h=r.offset,g=e.offset,t=r.data,o=e.data,i=p[0],s=m[0],x=l[1];x>0;)for(x<a?(y=x,x=0):(y=a,x-=a),v=h+x*p[1],f=g+x*m[1],_=l[0];_>0;)for(_<a?(d=_,_=0):(d=a,_-=a),b=v+_*p[0],S=f+_*m[0],n=p[1]-d*p[0],u=m[1]-d*m[0],A=0;A<y;A++){for(w=0;w<d;w++)o[S]=t[b],b+=i,S+=s;b+=n,S+=u}}V_.exports=yxr});var P_=c((Pne,C_)=>{"use strict";var mxr=zr(),hxr=Rr();function gxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k;for(k=mxr(r.shape,r.strides,e.strides),m=k.sh,S=k.sx,w=k.sy,a=hxr(r.dtype,e.dtype),A=r.offset,_=e.offset,t=r.data,o=e.data,i=S[0],u=w[0],D=m[2];D>0;)for(D<a?(b=D,D=0):(b=a,D-=a),d=A+D*S[2],p=_+D*w[2],I=m[1];I>0;)for(I<a?(g=I,I=0):(g=a,I-=a),s=S[2]-g*S[1],f=w[2]-g*w[1],l=d+I*S[1],y=p+I*w[1],O=m[0];O>0;)for(O<a?(h=O,O=0):(h=a,O-=a),x=l+O*S[0],E=y+O*w[0],n=S[1]-h*S[0],v=w[1]-h*w[0],j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++)o[E]=t[x],x+=i,E+=u;x+=n,E+=v}x+=s,E+=f}}C_.exports=gxr});var M_=c((Lne,L_)=>{"use strict";var bxr=zr(),xxr=Rr();function qxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(U=bxr(r.shape,r.strides,e.strides),S=U.sh,E=U.sx,q=U.sy,a=xxr(r.dtype,e.dtype),T=r.offset,j=e.offset,t=r.data,o=e.data,i=E[0],v=q[0],V=S[3];V>0;)for(V<a?(x=V,V=0):(x=a,V-=a),m=T+V*E[3],b=j+V*q[3],z=S[2];z>0;)for(z<a?(_=z,z=0):(_=a,z-=a),u=E[3]-_*E[2],d=q[3]-_*q[2],p=m+z*E[2],g=b+z*q[2],B=S[1];B>0;)for(B<a?(A=B,B=0):(A=a,B-=a),s=E[2]-A*E[1],l=q[2]-A*q[1],y=p+B*E[1],h=g+B*q[1],R=S[0];R>0;)for(R<a?(w=R,R=0):(w=a,R-=a),O=y+R*E[0],I=h+R*q[0],n=E[1]-w*E[0],f=q[1]-w*q[0],F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)o[I]=t[O],O+=i,I+=v;O+=n,I+=f}O+=s,I+=l}O+=u,I+=d}}L_.exports=qxr});var Y_=c((Mne,G_)=>{"use strict";var wxr=zr(),Sxr=Rr();function Exr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y;for(Y=wxr(r.shape,r.strides,e.strides),x=Y.sh,I=Y.sx,D=Y.sy,a=Sxr(r.dtype,e.dtype),k=r.offset,N=e.offset,t=r.data,o=e.data,i=I[0],f=D[0],$=x[4];$>0;)for($<a?(O=$,$=0):(O=a,$-=a),b=k+$*I[4],_=N+$*D[4],G=x[3];G>0;)for(G<a?(j=G,G=0):(j=a,G-=a),v=I[4]-j*I[3],p=D[4]-j*D[3],g=b+G*I[3],A=_+G*D[3],M=x[2];M>0;)for(M<a?(T=M,M=0):(T=a,M-=a),u=I[3]-T*I[2],y=D[3]-T*D[2],h=g+M*I[2],w=A+M*D[2],L=x[1];L>0;)for(L<a?(q=L,L=0):(q=a,L-=a),s=I[2]-q*I[1],d=D[2]-q*D[1],m=h+L*I[1],S=w+L*D[1],P=x[0];P>0;)for(P<a?(E=P,P=0):(E=a,P-=a),F=m+P*I[0],R=S+P*D[0],n=I[1]-E*I[0],l=D[1]-E*D[0],C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++)o[R]=t[F],F+=i,R+=f;F+=n,R+=l}F+=s,R+=d}F+=u,R+=y}F+=v,R+=p}}G_.exports=Exr});var W_=c((Gne,$_)=>{"use strict";var Axr=zr(),_xr=Rr();function Txr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z;for(Z=Axr(r.shape,r.strides,e.strides),j=Z.sh,R=Z.sx,B=Z.sy,a=_xr(r.dtype,e.dtype),z=r.offset,V=e.offset,t=r.data,o=e.data,i=R[0],l=B[0],Q=j[5];Q>0;)for(Q<a?(F=Q,Q=0):(F=a,Q-=a),A=z+Q*R[5],T=V+Q*B[5],H=j[4];H>0;)for(H<a?(N=H,H=0):(N=a,H-=a),f=R[5]-N*R[4],h=B[5]-N*B[4],w=A+H*R[4],q=T+H*B[4],K=j[3];K>0;)for(K<a?(k=K,K=0):(k=a,K-=a),v=R[4]-k*R[3],m=B[4]-k*B[3],S=w+K*R[3],E=q+K*B[3],X=j[2];X>0;)for(X<a?(D=X,X=0):(D=a,X-=a),u=R[3]-D*R[2],p=B[3]-D*B[2],b=S+X*R[2],x=E+X*B[2],J=j[1];J>0;)for(J<a?(I=J,J=0):(I=a,J-=a),s=R[2]-I*R[1],y=B[2]-I*B[1],g=b+J*R[1],_=x+J*B[1],W=j[0];W>0;)for(W<a?(O=W,W=0):(O=a,W-=a),U=g+W*R[0],C=_+W*B[0],n=R[1]-O*R[0],d=B[1]-O*B[0],Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++)o[C]=t[U],U+=i,C+=l;U+=n,C+=d}U+=s,C+=y}U+=u,C+=p}U+=v,C+=m}U+=f,C+=h}}$_.exports=Txr});var X_=c((Yne,J_)=>{"use strict";var jxr=zr(),Ixr=Rr();function Oxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr;for(nr=jxr(r.shape,r.strides,e.strides),k=nr.sh,C=nr.sx,P=nr.sy,a=Ixr(r.dtype,e.dtype),L=r.offset,M=e.offset,t=r.data,o=e.data,i=C[0],d=P[0],or=k[6];or>0;)for(or<a?(U=or,or=0):(U=a,or-=a),E=L+or*C[6],D=M+or*P[6],tr=k[5];tr>0;)for(tr<a?(V=tr,tr=0):(V=a,tr-=a),l=C[6]-V*C[5],b=P[6]-V*P[5],x=E+tr*C[5],I=D+tr*P[5],ir=k[4];ir>0;)for(ir<a?(z=ir,ir=0):(z=a,ir-=a),f=C[5]-z*C[4],g=P[5]-z*P[4],_=x+ir*C[4],O=I+ir*P[4],er=k[3];er>0;)for(er<a?(B=er,er=0):(B=a,er-=a),v=C[4]-B*C[3],h=P[4]-B*P[3],A=_+er*C[3],j=O+er*P[3],ar=k[2];ar>0;)for(ar<a?(R=ar,ar=0):(R=a,ar-=a),u=C[3]-R*C[2],m=P[3]-R*P[2],w=A+ar*C[2],T=j+ar*P[2],rr=k[1];rr>0;)for(rr<a?(F=rr,rr=0):(F=a,rr-=a),s=C[2]-F*C[1],p=P[2]-F*P[1],S=w+rr*C[1],q=T+rr*P[1],Z=k[0];Z>0;)for(Z<a?(N=Z,Z=0):(N=a,Z-=a),G=S+Z*C[0],$=q+Z*P[0],n=C[1]-N*C[0],y=P[1]-N*P[0],Q=0;Q<U;Q++){for(H=0;H<V;H++){for(K=0;K<z;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++)o[$]=t[G],G+=i,$+=d;G+=n,$+=y}G+=s,$+=p}G+=u,$+=m}G+=v,$+=h}G+=f,$+=g}G+=l,$+=b}}J_.exports=Oxr});var H_=c(($ne,K_)=>{"use strict";var Nxr=zr(),Dxr=Rr();function kxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr;for(dr=Nxr(r.shape,r.strides,e.strides),B=dr.sh,$=dr.sx,Y=dr.sy,a=Dxr(r.dtype,e.dtype),W=r.offset,J=e.offset,t=r.data,o=e.data,i=$[0],y=Y[0],yr=B[7];yr>0;)for(yr<a?(G=yr,yr=0):(G=a,yr-=a),j=W+yr*$[7],R=J+yr*Y[7],fr=B[6];fr>0;)for(fr<a?(M=fr,fr=0):(M=a,fr-=a),d=$[7]-M*$[6],w=Y[7]-M*Y[6],T=j+fr*$[6],F=R+fr*Y[6],lr=B[5];lr>0;)for(lr<a?(L=lr,lr=0):(L=a,lr-=a),l=$[6]-L*$[5],S=Y[6]-L*Y[5],q=T+lr*$[5],N=F+lr*Y[5],vr=B[4];vr>0;)for(vr<a?(P=vr,vr=0):(P=a,vr-=a),f=$[5]-P*$[4],b=Y[5]-P*Y[4],E=q+vr*$[4],k=N+vr*Y[4],ur=B[3];ur>0;)for(ur<a?(C=ur,ur=0):(C=a,ur-=a),v=$[4]-C*$[3],g=Y[4]-C*Y[3],x=E+ur*$[3],D=k+ur*Y[3],sr=B[2];sr>0;)for(sr<a?(U=sr,sr=0):(U=a,sr-=a),u=$[3]-U*$[2],h=Y[3]-U*Y[2],_=x+sr*$[2],I=D+sr*Y[2],nr=B[1];nr>0;)for(nr<a?(V=nr,nr=0):(V=a,nr-=a),s=$[2]-V*$[1],m=Y[2]-V*Y[1],A=_+nr*$[1],O=I+nr*Y[1],or=B[0];or>0;)for(or<a?(z=or,or=0):(z=a,or-=a),X=A+or*$[0],K=O+or*Y[0],n=$[1]-z*$[0],p=Y[1]-z*Y[0],tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<U;Z++){for(Q=0;Q<V;Q++){for(H=0;H<z;H++)o[K]=t[X],X+=i,K+=y;X+=n,K+=p}X+=s,K+=m}X+=u,K+=h}X+=v,K+=g}X+=f,K+=b}X+=l,K+=S}X+=d,K+=w}}K_.exports=kxr});var Q_=c((Wne,Z_)=>{"use strict";var Bxr=zr(),Fxr=Rr();function Rxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr;for(gr=Bxr(r.shape,r.strides,e.strides),C=gr.sh,K=gr.sx,H=gr.sy,a=Fxr(r.dtype,e.dtype),Q=r.offset,Z=e.offset,t=r.data,o=e.data,i=K[0],p=H[0],qr=C[8];qr>0;)for(qr<a?(X=qr,qr=0):(X=a,qr-=a),D=Q+qr*K[8],U=Z+qr*H[8],xr=C[7];xr>0;)for(xr<a?(J=xr,xr=0):(J=a,xr-=a),y=K[8]-J*K[7],_=H[8]-J*H[7],I=D+xr*K[7],V=U+xr*H[7],wr=C[6];wr>0;)for(wr<a?(W=wr,wr=0):(W=a,wr-=a),d=K[7]-W*K[6],A=H[7]-W*H[6],O=I+wr*K[6],z=V+wr*H[6],br=C[5];br>0;)for(br<a?(Y=br,br=0):(Y=a,br-=a),l=K[6]-Y*K[5],w=H[6]-Y*H[5],j=O+br*K[5],B=z+br*H[5],hr=C[4];hr>0;)for(hr<a?($=hr,hr=0):($=a,hr-=a),f=K[5]-$*K[4],S=H[5]-$*H[4],T=j+hr*K[4],R=B+hr*H[4],mr=C[3];mr>0;)for(mr<a?(G=mr,mr=0):(G=a,mr-=a),v=K[4]-G*K[3],b=H[4]-G*H[3],q=T+mr*K[3],F=R+mr*H[3],dr=C[2];dr>0;)for(dr<a?(M=dr,dr=0):(M=a,dr-=a),u=K[3]-M*K[2],g=H[3]-M*H[2],E=q+dr*K[2],N=F+dr*H[2],yr=C[1];yr>0;)for(yr<a?(L=yr,yr=0):(L=a,yr-=a),s=K[2]-L*K[1],h=H[2]-L*H[1],x=E+yr*K[1],k=N+yr*H[1],fr=C[0];fr>0;)for(fr<a?(P=fr,fr=0):(P=a,fr-=a),rr=x+fr*K[0],ar=k+fr*H[0],n=K[1]-P*K[0],m=H[1]-P*H[0],lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++){for(ir=0;ir<L;ir++){for(er=0;er<P;er++)o[ar]=t[rr],rr+=i,ar+=p;rr+=n,ar+=m}rr+=s,ar+=h}rr+=u,ar+=g}rr+=v,ar+=b}rr+=f,ar+=S}rr+=l,ar+=w}rr+=d,ar+=A}rr+=y,ar+=_}}Z_.exports=Rxr});var eT=c((Jne,rT)=>{"use strict";var zxr=zr(),Vxr=Rr();function Uxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr;for(Vr=zxr(r.shape,r.strides,e.strides),G=Vr.sh,ar=Vr.sx,er=Vr.sy,a=Vxr(r.dtype,e.dtype),ir=r.offset,tr=e.offset,t=r.data,o=e.data,i=ar[0],m=er[0],Fr=G[9];Fr>0;)for(Fr<a?(rr=Fr,Fr=0):(rr=a,Fr-=a),F=ir+Fr*ar[9],M=tr+Fr*er[9],Or=G[8];Or>0;)for(Or<a?(Z=Or,Or=0):(Z=a,Or-=a),p=ar[9]-Z*ar[8],E=er[9]-Z*er[8],N=F+Or*ar[8],L=M+Or*er[8],jr=G[7];jr>0;)for(jr<a?(Q=jr,jr=0):(Q=a,jr-=a),y=ar[8]-Q*ar[7],x=er[8]-Q*er[7],k=N+jr*ar[7],P=L+jr*er[7],Tr=G[6];Tr>0;)for(Tr<a?(H=Tr,Tr=0):(H=a,Tr-=a),d=ar[7]-H*ar[6],_=er[7]-H*er[6],D=k+Tr*ar[6],C=P+Tr*er[6],_r=G[5];_r>0;)for(_r<a?(K=_r,_r=0):(K=a,_r-=a),l=ar[6]-K*ar[5],A=er[6]-K*er[5],I=D+_r*ar[5],U=C+_r*er[5],Ar=G[4];Ar>0;)for(Ar<a?(X=Ar,Ar=0):(X=a,Ar-=a),f=ar[5]-X*ar[4],w=er[5]-X*er[4],O=I+Ar*ar[4],V=U+Ar*er[4],gr=G[3];gr>0;)for(gr<a?(J=gr,gr=0):(J=a,gr-=a),v=ar[4]-J*ar[3],S=er[4]-J*er[3],j=O+gr*ar[3],z=V+gr*er[3],qr=G[2];qr>0;)for(qr<a?(W=qr,qr=0):(W=a,qr-=a),u=ar[3]-W*ar[2],b=er[3]-W*er[2],T=j+qr*ar[2],B=z+qr*er[2],xr=G[1];xr>0;)for(xr<a?(Y=xr,xr=0):(Y=a,xr-=a),s=ar[2]-Y*ar[1],g=er[2]-Y*er[1],q=T+xr*ar[1],R=B+xr*er[1],wr=G[0];wr>0;)for(wr<a?($=wr,wr=0):($=a,wr-=a),or=q+wr*ar[0],nr=R+wr*er[0],n=ar[1]-$*ar[0],h=er[1]-$*er[0],br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(vr=0;vr<W;vr++){for(ur=0;ur<Y;ur++){for(sr=0;sr<$;sr++)o[nr]=t[or],or+=i,nr+=m;or+=n,nr+=h}or+=s,nr+=g}or+=u,nr+=b}or+=v,nr+=S}or+=f,nr+=w}or+=l,nr+=A}or+=d,nr+=_}or+=y,nr+=x}or+=p,nr+=E}}rT.exports=Uxr});var tT=c((Xne,aT)=>{"use strict";function Cxr(r,e){e.accessors[1](e.data,e.offset,r.accessors[0](r.data,r.offset))}aT.exports=Cxr});var oT=c((Kne,iT)=>{"use strict";function Pxr(r,e){var a,t,o,i,n,s,u,v,f,l;for(u=r.shape[0],n=r.strides[0],s=e.strides[0],v=r.offset,f=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],l=0;l<u;l++)i(t,f,o(a,v)),v+=n,f+=s}iT.exports=Pxr});var sT=c((Hne,nT)=>{"use strict";function Lxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b;for(f=r.shape,y=r.strides,p=e.strides,r.order==="row-major"?(l=f[1],d=f[0],n=y[1],s=y[0]-l*y[1],u=p[1],v=p[0]-l*p[1]):(l=f[0],d=f[1],n=y[0],s=y[1]-l*y[0],u=p[0],v=p[1]-l*p[0]),m=r.offset,h=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],b=0;b<d;b++){for(g=0;g<l;g++)i(t,h,o(a,m)),m+=n,h+=u;m+=s,h+=v}}nT.exports=Lxr});var vT=c((Zne,uT)=>{"use strict";function Mxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_;for(d=r.shape,h=r.strides,g=e.strides,r.order==="row-major"?(y=d[2],p=d[1],m=d[0],n=h[2],s=h[1]-y*h[2],u=h[0]-p*h[1],v=g[2],f=g[1]-y*g[2],l=g[0]-p*g[1]):(y=d[0],p=d[1],m=d[2],n=h[0],s=h[1]-y*h[0],u=h[2]-p*h[1],v=g[0],f=g[1]-y*g[0],l=g[2]-p*g[1]),b=r.offset,S=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],_=0;_<m;_++){for(A=0;A<p;A++){for(w=0;w<y;w++)i(t,S,o(a,b)),b+=n,S+=v;b+=s,S+=f}b+=u,S+=l}}uT.exports=Mxr});var lT=c((Qne,fT)=>{"use strict";function Gxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T;for(p=r.shape,S=r.strides,w=e.strides,r.order==="row-major"?(m=p[3],h=p[2],g=p[1],b=p[0],n=S[3],s=S[2]-m*S[3],u=S[1]-h*S[2],v=S[0]-g*S[1],f=w[3],l=w[2]-m*w[3],d=w[1]-h*w[2],y=w[0]-g*w[1]):(m=p[0],h=p[1],g=p[2],b=p[3],n=S[0],s=S[1]-m*S[0],u=S[2]-h*S[1],v=S[3]-g*S[2],f=w[0],l=w[1]-m*w[0],d=w[2]-h*w[1],y=w[3]-g*w[2]),A=r.offset,_=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++)i(t,_,o(a,A)),A+=n,_+=f;A+=s,_+=l}A+=u,_+=d}A+=v,_+=y}}fT.exports=Gxr});var dT=c((rse,cT)=>{"use strict";function Yxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D;for(h=r.shape,_=r.strides,x=e.strides,r.order==="row-major"?(g=h[4],b=h[3],S=h[2],w=h[1],A=h[0],n=_[4],s=_[3]-g*_[4],u=_[2]-b*_[3],v=_[1]-S*_[2],f=_[0]-w*_[1],l=x[4],d=x[3]-g*x[4],y=x[2]-b*x[3],p=x[1]-S*x[2],m=x[0]-w*x[1]):(g=h[0],b=h[1],S=h[2],w=h[3],A=h[4],n=_[0],s=_[1]-g*_[0],u=_[2]-b*_[1],v=_[3]-S*_[2],f=_[4]-w*_[3],l=x[0],d=x[1]-g*x[0],y=x[2]-b*x[1],p=x[3]-S*x[2],m=x[4]-w*x[3]),E=r.offset,q=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++)i(t,q,o(a,E)),E+=n,q+=l;E+=s,q+=d}E+=u,q+=y}E+=v,q+=p}E+=f,q+=m}}cT.exports=Yxr});var yT=c((ese,pT)=>{"use strict";function $xr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R;for(b=r.shape,q=r.strides,T=e.strides,r.order==="row-major"?(S=b[5],w=b[4],A=b[3],_=b[2],x=b[1],E=b[0],n=q[5],s=q[4]-S*q[5],u=q[3]-w*q[4],v=q[2]-A*q[3],f=q[1]-_*q[2],l=q[0]-x*q[1],d=T[5],y=T[4]-S*T[5],p=T[3]-w*T[4],m=T[2]-A*T[3],h=T[1]-_*T[2],g=T[0]-x*T[1]):(S=b[0],w=b[1],A=b[2],_=b[3],x=b[4],E=b[5],n=q[0],s=q[1]-S*q[0],u=q[2]-w*q[1],v=q[3]-A*q[2],f=q[4]-_*q[3],l=q[5]-x*q[4],d=T[0],y=T[1]-S*T[0],p=T[2]-w*T[1],m=T[3]-A*T[2],h=T[4]-_*T[3],g=T[5]-x*T[4]),j=r.offset,O=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++)i(t,O,o(a,j)),j+=n,O+=d;j+=s,O+=y}j+=u,O+=p}j+=v,O+=m}j+=f,O+=h}j+=l,O+=g}}pT.exports=$xr});var hT=c((ase,mT)=>{"use strict";function Wxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(w=r.shape,O=r.strides,I=e.strides,r.order==="row-major"?(A=w[6],_=w[5],x=w[4],E=w[3],q=w[2],T=w[1],j=w[0],n=O[6],s=O[5]-A*O[6],u=O[4]-_*O[5],v=O[3]-x*O[4],f=O[2]-E*O[3],l=O[1]-q*O[2],d=O[0]-T*O[1],y=I[6],p=I[5]-A*I[6],m=I[4]-_*I[5],h=I[3]-x*I[4],g=I[2]-E*I[3],b=I[1]-q*I[2],S=I[0]-T*I[1]):(A=w[0],_=w[1],x=w[2],E=w[3],q=w[4],T=w[5],j=w[6],n=O[0],s=O[1]-A*O[0],u=O[2]-_*O[1],v=O[3]-x*O[2],f=O[4]-E*O[3],l=O[5]-q*O[4],d=O[6]-T*O[5],y=I[0],p=I[1]-A*I[0],m=I[2]-_*I[1],h=I[3]-x*I[2],g=I[4]-E*I[3],b=I[5]-q*I[4],S=I[6]-T*I[5]),D=r.offset,k=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++)i(t,k,o(a,D)),D+=n,k+=y;D+=s,k+=p}D+=u,k+=m}D+=v,k+=h}D+=f,k+=g}D+=l,k+=b}D+=d,k+=S}}mT.exports=Wxr});var bT=c((tse,gT)=>{"use strict";function Jxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M;for(_=r.shape,k=r.strides,N=e.strides,r.order==="row-major"?(x=_[7],E=_[6],q=_[5],T=_[4],j=_[3],O=_[2],I=_[1],D=_[0],n=k[7],s=k[6]-x*k[7],u=k[5]-E*k[6],v=k[4]-q*k[5],f=k[3]-T*k[4],l=k[2]-j*k[3],d=k[1]-O*k[2],y=k[0]-I*k[1],p=N[7],m=N[6]-x*N[7],h=N[5]-E*N[6],g=N[4]-q*N[5],b=N[3]-T*N[4],S=N[2]-j*N[3],w=N[1]-O*N[2],A=N[0]-I*N[1]):(x=_[0],E=_[1],q=_[2],T=_[3],j=_[4],O=_[5],I=_[6],D=_[7],n=k[0],s=k[1]-x*k[0],u=k[2]-E*k[1],v=k[3]-q*k[2],f=k[4]-T*k[3],l=k[5]-j*k[4],d=k[6]-O*k[5],y=k[7]-I*k[6],p=N[0],m=N[1]-x*N[0],h=N[2]-E*N[1],g=N[3]-q*N[2],b=N[4]-T*N[3],S=N[5]-j*N[4],w=N[6]-O*N[5],A=N[7]-I*N[6]),F=r.offset,R=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++)i(t,R,o(a,F)),F+=n,R+=p;F+=s,R+=m}F+=u,R+=h}F+=v,R+=g}F+=f,R+=b}F+=l,R+=S}F+=d,R+=w}F+=y,R+=A}}gT.exports=Jxr});var qT=c((ise,xT)=>{"use strict";function Xxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W;for(E=r.shape,R=r.strides,B=e.strides,r.order==="row-major"?(q=E[8],T=E[7],j=E[6],O=E[5],I=E[4],D=E[3],k=E[2],N=E[1],F=E[0],n=R[8],s=R[7]-q*R[8],u=R[6]-T*R[7],v=R[5]-j*R[6],f=R[4]-O*R[5],l=R[3]-I*R[4],d=R[2]-D*R[3],y=R[1]-k*R[2],p=R[0]-N*R[1],m=B[8],h=B[7]-q*B[8],g=B[6]-T*B[7],b=B[5]-j*B[6],S=B[4]-O*B[5],w=B[3]-I*B[4],A=B[2]-D*B[3],_=B[1]-k*B[2],x=B[0]-N*B[1]):(q=E[0],T=E[1],j=E[2],O=E[3],I=E[4],D=E[5],k=E[6],N=E[7],F=E[8],n=R[0],s=R[1]-q*R[0],u=R[2]-T*R[1],v=R[3]-j*R[2],f=R[4]-O*R[3],l=R[5]-I*R[4],d=R[6]-D*R[5],y=R[7]-k*R[6],p=R[8]-N*R[7],m=B[0],h=B[1]-q*B[0],g=B[2]-T*B[1],b=B[3]-j*B[2],S=B[4]-O*B[3],w=B[5]-I*B[4],A=B[6]-D*B[5],_=B[7]-k*B[6],x=B[8]-N*B[7]),z=r.offset,V=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++){for(U=0;U<q;U++)i(t,V,o(a,z)),z+=n,V+=m;z+=s,V+=h}z+=u,V+=g}z+=v,V+=b}z+=f,V+=S}z+=l,V+=w}z+=d,V+=A}z+=y,V+=_}z+=p,V+=x}}xT.exports=Xxr});var ST=c((ose,wT)=>{"use strict";function Kxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H;for(T=r.shape,V=r.strides,U=e.strides,r.order==="row-major"?(j=T[9],O=T[8],I=T[7],D=T[6],k=T[5],N=T[4],F=T[3],R=T[2],B=T[1],z=T[0],n=V[9],s=V[8]-j*V[9],u=V[7]-O*V[8],v=V[6]-I*V[7],f=V[5]-D*V[6],l=V[4]-k*V[5],d=V[3]-N*V[4],y=V[2]-F*V[3],p=V[1]-R*V[2],m=V[0]-B*V[1],h=U[9],g=U[8]-j*U[9],b=U[7]-O*U[8],S=U[6]-I*U[7],w=U[5]-D*U[6],A=U[4]-k*U[5],_=U[3]-N*U[4],x=U[2]-F*U[3],E=U[1]-R*U[2],q=U[0]-B*U[1]):(j=T[0],O=T[1],I=T[2],D=T[3],k=T[4],N=T[5],F=T[6],R=T[7],B=T[8],z=T[9],n=V[0],s=V[1]-j*V[0],u=V[2]-O*V[1],v=V[3]-I*V[2],f=V[4]-D*V[3],l=V[5]-k*V[4],d=V[6]-N*V[5],y=V[7]-F*V[6],p=V[8]-R*V[7],m=V[9]-B*V[8],h=U[0],g=U[1]-j*U[0],b=U[2]-O*U[1],S=U[3]-I*U[2],w=U[4]-D*U[3],A=U[5]-k*U[4],_=U[6]-N*U[5],x=U[7]-F*U[6],E=U[8]-R*U[7],q=U[9]-B*U[8]),C=r.offset,P=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],H=0;H<z;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++){for(L=0;L<j;L++)i(t,P,o(a,C)),C+=n,P+=h;C+=s,P+=g}C+=u,P+=b}C+=v,P+=S}C+=f,P+=w}C+=l,P+=A}C+=d,P+=_}C+=y,P+=x}C+=p,P+=E}C+=m,P+=q}}wT.exports=Kxr});var TT=c((nse,_T)=>{"use strict";var Hxr=Jr(),ET=na(),AT="throw";function Zxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h;for(v=r.shape,n=Hxr(v),a=r.data,t=e.data,f=r.strides,l=e.strides,d=r.offset,y=e.offset,o=r.order,i=e.order,s=r.accessors[0],u=e.accessors[1],h=0;h<n;h++)p=ET(v,f,d,o,h,AT),m=ET(v,l,y,i,h,AT),u(t,m,s(a,p))}_T.exports=Zxr});var IT=c((sse,jT)=>{"use strict";function Qxr(r,e){e.data[e.offset]=r.data[r.offset]}jT.exports=Qxr});var NT=c((use,OT)=>{"use strict";function rqr(r,e){var a,t,o,i,n,s,u,v;for(n=r.shape[0],o=r.strides[0],i=e.strides[0],s=r.offset,u=e.offset,a=r.data,t=e.data,v=0;v<n;v++)t[u]=a[s],s+=o,u+=i}OT.exports=rqr});var kT=c((vse,DT)=>{"use strict";function eqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h;for(u=r.shape,l=r.strides,d=e.strides,r.order==="row-major"?(v=u[1],f=u[0],o=l[1],i=l[0]-v*l[1],n=d[1],s=d[0]-v*d[1]):(v=u[0],f=u[1],o=l[0],i=l[1]-v*l[0],n=d[0],s=d[1]-v*d[0]),y=r.offset,p=e.offset,a=r.data,t=e.data,h=0;h<f;h++){for(m=0;m<v;m++)t[p]=a[y],y+=o,p+=n;y+=i,p+=s}}DT.exports=eqr});var FT=c((fse,BT)=>{"use strict";function aqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;for(f=r.shape,p=r.strides,m=e.strides,r.order==="row-major"?(l=f[2],d=f[1],y=f[0],o=p[2],i=p[1]-l*p[2],n=p[0]-d*p[1],s=m[2],u=m[1]-l*m[2],v=m[0]-d*m[1]):(l=f[0],d=f[1],y=f[2],o=p[0],i=p[1]-l*p[0],n=p[2]-d*p[1],s=m[0],u=m[1]-l*m[0],v=m[2]-d*m[1]),h=r.offset,g=e.offset,a=r.data,t=e.data,w=0;w<y;w++){for(S=0;S<d;S++){for(b=0;b<l;b++)t[g]=a[h],h+=o,g+=s;h+=i,g+=u}h+=n,g+=v}}BT.exports=aqr});var zT=c((lse,RT)=>{"use strict";function tqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E;for(d=r.shape,g=r.strides,b=e.strides,r.order==="row-major"?(y=d[3],p=d[2],m=d[1],h=d[0],o=g[3],i=g[2]-y*g[3],n=g[1]-p*g[2],s=g[0]-m*g[1],u=b[3],v=b[2]-y*b[3],f=b[1]-p*b[2],l=b[0]-m*b[1]):(y=d[0],p=d[1],m=d[2],h=d[3],o=g[0],i=g[1]-y*g[0],n=g[2]-p*g[1],s=g[3]-m*g[2],u=b[0],v=b[1]-y*b[0],f=b[2]-p*b[1],l=b[3]-m*b[2]),S=r.offset,w=e.offset,a=r.data,t=e.data,E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++){for(A=0;A<y;A++)t[w]=a[S],S+=o,w+=u;S+=i,w+=v}S+=n,w+=f}S+=s,w+=l}}RT.exports=tqr});var UT=c((cse,VT)=>{"use strict";function iqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O;for(p=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(m=p[4],h=p[3],g=p[2],b=p[1],S=p[0],o=w[4],i=w[3]-m*w[4],n=w[2]-h*w[3],s=w[1]-g*w[2],u=w[0]-b*w[1],v=A[4],f=A[3]-m*A[4],l=A[2]-h*A[3],d=A[1]-g*A[2],y=A[0]-b*A[1]):(m=p[0],h=p[1],g=p[2],b=p[3],S=p[4],o=w[0],i=w[1]-m*w[0],n=w[2]-h*w[1],s=w[3]-g*w[2],u=w[4]-b*w[3],v=A[0],f=A[1]-m*A[0],l=A[2]-h*A[1],d=A[3]-g*A[2],y=A[4]-b*A[3]),_=r.offset,x=e.offset,a=r.data,t=e.data,O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<m;E++)t[x]=a[_],_+=o,x+=v;_+=i,x+=f}_+=n,x+=l}_+=s,x+=d}_+=u,x+=y}}VT.exports=iqr});var PT=c((dse,CT)=>{"use strict";function oqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N;for(h=r.shape,x=r.strides,E=e.strides,r.order==="row-major"?(g=h[5],b=h[4],S=h[3],w=h[2],A=h[1],_=h[0],o=x[5],i=x[4]-g*x[5],n=x[3]-b*x[4],s=x[2]-S*x[3],u=x[1]-w*x[2],v=x[0]-A*x[1],f=E[5],l=E[4]-g*E[5],d=E[3]-b*E[4],y=E[2]-S*E[3],p=E[1]-w*E[2],m=E[0]-A*E[1]):(g=h[0],b=h[1],S=h[2],w=h[3],A=h[4],_=h[5],o=x[0],i=x[1]-g*x[0],n=x[2]-b*x[1],s=x[3]-S*x[2],u=x[4]-w*x[3],v=x[5]-A*x[4],f=E[0],l=E[1]-g*E[0],d=E[2]-b*E[1],y=E[3]-S*E[2],p=E[4]-w*E[3],m=E[5]-A*E[4]),q=r.offset,T=e.offset,a=r.data,t=e.data,N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++){for(j=0;j<g;j++)t[T]=a[q],q+=o,T+=f;q+=i,T+=l}q+=n,T+=d}q+=s,T+=y}q+=u,T+=p}q+=v,T+=m}}CT.exports=oqr});var MT=c((pse,LT)=>{"use strict";function nqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z;for(b=r.shape,T=r.strides,j=e.strides,r.order==="row-major"?(S=b[6],w=b[5],A=b[4],_=b[3],x=b[2],E=b[1],q=b[0],o=T[6],i=T[5]-S*T[6],n=T[4]-w*T[5],s=T[3]-A*T[4],u=T[2]-_*T[3],v=T[1]-x*T[2],f=T[0]-E*T[1],l=j[6],d=j[5]-S*j[6],y=j[4]-w*j[5],p=j[3]-A*j[4],m=j[2]-_*j[3],h=j[1]-x*j[2],g=j[0]-E*j[1]):(S=b[0],w=b[1],A=b[2],_=b[3],x=b[4],E=b[5],q=b[6],o=T[0],i=T[1]-S*T[0],n=T[2]-w*T[1],s=T[3]-A*T[2],u=T[4]-_*T[3],v=T[5]-x*T[4],f=T[6]-E*T[5],l=j[0],d=j[1]-S*j[0],y=j[2]-w*j[1],p=j[3]-A*j[2],m=j[4]-_*j[3],h=j[5]-x*j[4],g=j[6]-E*j[5]),O=r.offset,I=e.offset,a=r.data,t=e.data,z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++)t[I]=a[O],O+=o,I+=l;O+=i,I+=d}O+=n,I+=y}O+=s,I+=p}O+=u,I+=m}O+=v,I+=h}O+=f,I+=g}}LT.exports=nqr});var YT=c((yse,GT)=>{"use strict";function sqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P;for(w=r.shape,I=r.strides,D=e.strides,r.order==="row-major"?(A=w[7],_=w[6],x=w[5],E=w[4],q=w[3],T=w[2],j=w[1],O=w[0],o=I[7],i=I[6]-A*I[7],n=I[5]-_*I[6],s=I[4]-x*I[5],u=I[3]-E*I[4],v=I[2]-q*I[3],f=I[1]-T*I[2],l=I[0]-j*I[1],d=D[7],y=D[6]-A*D[7],p=D[5]-_*D[6],m=D[4]-x*D[5],h=D[3]-E*D[4],g=D[2]-q*D[3],b=D[1]-T*D[2],S=D[0]-j*D[1]):(A=w[0],_=w[1],x=w[2],E=w[3],q=w[4],T=w[5],j=w[6],O=w[7],o=I[0],i=I[1]-A*I[0],n=I[2]-_*I[1],s=I[3]-x*I[2],u=I[4]-E*I[3],v=I[5]-q*I[4],f=I[6]-T*I[5],l=I[7]-j*I[6],d=D[0],y=D[1]-A*D[0],p=D[2]-_*D[1],m=D[3]-x*D[2],h=D[4]-E*D[3],g=D[5]-q*D[4],b=D[6]-T*D[5],S=D[7]-j*D[6]),k=r.offset,N=e.offset,a=r.data,t=e.data,P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++){for(F=0;F<A;F++)t[N]=a[k],k+=o,N+=d;k+=i,N+=y}k+=n,N+=p}k+=s,N+=m}k+=u,N+=h}k+=v,N+=g}k+=f,N+=b}k+=l,N+=S}}GT.exports=sqr});var WT=c((mse,$T)=>{"use strict";function uqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$;for(_=r.shape,N=r.strides,F=e.strides,r.order==="row-major"?(x=_[8],E=_[7],q=_[6],T=_[5],j=_[4],O=_[3],I=_[2],D=_[1],k=_[0],o=N[8],i=N[7]-x*N[8],n=N[6]-E*N[7],s=N[5]-q*N[6],u=N[4]-T*N[5],v=N[3]-j*N[4],f=N[2]-O*N[3],l=N[1]-I*N[2],d=N[0]-D*N[1],y=F[8],p=F[7]-x*F[8],m=F[6]-E*F[7],h=F[5]-q*F[6],g=F[4]-T*F[5],b=F[3]-j*F[4],S=F[2]-O*F[3],w=F[1]-I*F[2],A=F[0]-D*F[1]):(x=_[0],E=_[1],q=_[2],T=_[3],j=_[4],O=_[5],I=_[6],D=_[7],k=_[8],o=N[0],i=N[1]-x*N[0],n=N[2]-E*N[1],s=N[3]-q*N[2],u=N[4]-T*N[3],v=N[5]-j*N[4],f=N[6]-O*N[5],l=N[7]-I*N[6],d=N[8]-D*N[7],y=F[0],p=F[1]-x*F[0],m=F[2]-E*F[1],h=F[3]-q*F[2],g=F[4]-T*F[3],b=F[5]-j*F[4],S=F[6]-O*F[5],w=F[7]-I*F[6],A=F[8]-D*F[7]),R=r.offset,B=e.offset,a=r.data,t=e.data,$=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++){for(U=0;U<q;U++){for(V=0;V<E;V++){for(z=0;z<x;z++)t[B]=a[R],R+=o,B+=y;R+=i,B+=p}R+=n,B+=m}R+=s,B+=h}R+=u,B+=g}R+=v,B+=b}R+=f,B+=S}R+=l,B+=w}R+=d,B+=A}}$T.exports=uqr});var XT=c((hse,JT)=>{"use strict";function vqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X;for(E=r.shape,B=r.strides,z=e.strides,r.order==="row-major"?(q=E[9],T=E[8],j=E[7],O=E[6],I=E[5],D=E[4],k=E[3],N=E[2],F=E[1],R=E[0],o=B[9],i=B[8]-q*B[9],n=B[7]-T*B[8],s=B[6]-j*B[7],u=B[5]-O*B[6],v=B[4]-I*B[5],f=B[3]-D*B[4],l=B[2]-k*B[3],d=B[1]-N*B[2],y=B[0]-F*B[1],p=z[9],m=z[8]-q*z[9],h=z[7]-T*z[8],g=z[6]-j*z[7],b=z[5]-O*z[6],S=z[4]-I*z[5],w=z[3]-D*z[4],A=z[2]-k*z[3],_=z[1]-N*z[2],x=z[0]-F*z[1]):(q=E[0],T=E[1],j=E[2],O=E[3],I=E[4],D=E[5],k=E[6],N=E[7],F=E[8],R=E[9],o=B[0],i=B[1]-q*B[0],n=B[2]-T*B[1],s=B[3]-j*B[2],u=B[4]-O*B[3],v=B[5]-I*B[4],f=B[6]-D*B[5],l=B[7]-k*B[6],d=B[8]-N*B[7],y=B[9]-F*B[8],p=z[0],m=z[1]-q*z[0],h=z[2]-T*z[1],g=z[3]-j*z[2],b=z[4]-O*z[3],S=z[5]-I*z[4],w=z[6]-D*z[5],A=z[7]-k*z[6],_=z[8]-N*z[7],x=z[9]-F*z[8]),V=r.offset,U=e.offset,a=r.data,t=e.data,X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++){for(L=0;L<j;L++){for(P=0;P<T;P++){for(C=0;C<q;C++)t[U]=a[V],V+=o,U+=p;V+=i,U+=m}V+=n,U+=h}V+=s,U+=g}V+=u,U+=b}V+=v,U+=S}V+=f,U+=w}V+=l,U+=A}V+=d,U+=_}V+=y,U+=x}}JT.exports=vqr});var QT=c((gse,ZT)=>{"use strict";var fqr=Jr(),KT=na(),HT="throw";function lqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p;for(s=r.shape,n=fqr(s),a=r.data,t=e.data,u=r.strides,v=e.strides,f=r.offset,l=e.offset,o=r.order,i=e.order,p=0;p<n;p++)d=KT(s,u,f,o,p,HT),y=KT(s,v,l,i,p,HT),t[y]=a[d]}ZT.exports=lqr});var oj=c((bse,ij)=>{"use strict";var cqr=wo(),dqr=Gn(),rj=Ea(),pqr=uf(),yqr=Cn(),ej=at(),aj=ei(),mqr=q_(),hqr=S_(),gqr=A_(),bqr=T_(),xqr=I_(),qqr=N_(),wqr=k_(),Sqr=F_(),Eqr=z_(),Aqr=U_(),_qr=P_(),Tqr=M_(),jqr=Y_(),Iqr=W_(),Oqr=X_(),Nqr=H_(),Dqr=Q_(),kqr=eT(),Bqr=tT(),Fqr=oT(),Rqr=sT(),zqr=vT(),Vqr=lT(),Uqr=dT(),Cqr=yT(),Pqr=hT(),Lqr=bT(),Mqr=qT(),Gqr=ST(),Yqr=TT(),$qr=IT(),Wqr=NT(),Jqr=kT(),Xqr=FT(),Kqr=zT(),Hqr=UT(),Zqr=PT(),Qqr=MT(),rwr=YT(),ewr=WT(),awr=XT(),twr=QT(),xi=[$qr,Wqr,Jqr,Xqr,Kqr,Hqr,Zqr,Qqr,rwr,ewr,awr],Eo=[Bqr,Fqr,Rqr,zqr,Vqr,Uqr,Cqr,Pqr,Lqr,Mqr,Gqr],iwr=[Aqr,_qr,Tqr,jqr,Iqr,Oqr,Nqr,Dqr,kqr],owr=[mqr,hqr,gqr,bqr,xqr,qqr,wqr,Sqr,Eqr],tj=xi.length-1;function nwr(r){var e,a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;if(p=aj(r[0]),m=aj(r[1]),dqr(p.dtype)&&cqr(m.dtype)&&(p.accessorProtocol=!0,p.accessors[0]=pqr(p.accessors[0],2,yqr(m.dtype))),o=p.shape,i=m.shape,e=o.length,e!==i.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+e+". ndims(y) == "+i.length+".");if(e===0)return p.accessorProtocol||m.accessorProtocol?Eo[e](p,m):xi[e](p,m);for(u=1,y=0,g=0;g<e;g++){if(h=o[g],h!==i[g])throw new Error("invalid arguments. Arrays must have the same shape.");u*=h,h===1&&(y+=1)}if(u!==0){if(e===1)return p.accessorProtocol||m.accessorProtocol?Eo[e](p,m):xi[e](p,m);if(v=p.strides,f=m.strides,y===e-1){for(g=0;g<e&&o[g]===1;g++);return p.shape=[o[g]],m.shape=p.shape,p.strides=[v[g]],m.strides=[f[g]],p.accessorProtocol||m.accessorProtocol?Eo[1](p,m):xi[1](p,m)}if(n=rj(v),s=rj(f),n!==0&&s!==0&&n===s){if(a=ej(o,v,p.offset),t=ej(i,f,m.offset),u===a[1]-a[0]+1&&u===t[1]-t[0]+1)return n===1?l=a[0]:l=a[1],s===1?d=t[0]:d=t[1],p.shape=[u],m.shape=p.shape,p.strides=[n],m.strides=[s],p.offset=l,m.offset=d,p.accessorProtocol||m.accessorProtocol?Eo[1](p,m):xi[1](p,m);if(e<=tj)return p.accessorProtocol||m.accessorProtocol?Eo[e](p,m):xi[e](p,m)}if(e<=tj)return p.accessorProtocol||m.accessorProtocol?owr[e-2](p,m):iwr[e-2](p,m);if(p.accessorProtocol||m.accessorProtocol)return Yqr(p,m);twr(p,m)}}ij.exports=nwr});var bf=c((xse,nj)=>{"use strict";var swr=oj();nj.exports=swr});var uj=c((qse,sj)=>{"use strict";function uwr(r,e){var a,t,o,i,n,s,u,v,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(u=r[o],a=u<0?-u:u,v=e[i],n=o-1,s=i-1;n>=0&&(f=r[n],t=f<0?-f:f,!(t<=a));)r[n+1]=f,e[s+1]=e[s],n-=1,s-=1;r[n+1]=u,e[s+1]=v,o+=1,i+=1}}sj.exports=uwr});var lj=c((wse,fj)=>{"use strict";var vwr=qe(),fwr=jt(),Jn=Kr(),lwr=bo(),xf=Pt(),cwr=uj(),vj=3;function dwr(r,e,a,t){var o,i,n,s,u,v,f,l,d,y;if(o=vwr(r.length),v=xf(e),f=xf(a),l=xf(t),i=lwr([],4),i[v].push(e),i[f].push(a),i[l].push(t),n=i[0].length,n===vj)u=e;else if(n===vj-1){for(d=1;d<4;d++)if(i[d].length){u=i[d][0];break}}else{for(y=0,d=1;d<4;d++)s=i[d].length,s>=n&&(n=s,y=d);u=i[y][0]}return u=fwr(u),cwr(u,o),r=Jn(r,o),e=e===u?u:Jn(e,o),a=a===u?u:Jn(a,o),t=t===u?u:Jn(t,o),{sh:r,sx:e,sy:a,sz:t}}fj.exports=dwr});var dj=c((Sse,cj)=>{"use strict";var pwr=lj();cj.exports=pwr});var yj=c((Ese,pj)=>{"use strict";var ywr={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};pj.exports=ywr});var hj=c((Ase,mj)=>{"use strict";var qf=xt(),Xn=yj();function mwr(r,e,a){var t,o,i;return t=qf(r),o=qf(e),i=qf(a),t===null||o===null||i===null?Xn.BLOCK_SIZE_IN_ELEMENTS:t>o&&t>i?Xn.BLOCK_SIZE_IN_BYTES/t|0:o>i?Xn.BLOCK_SIZE_IN_BYTES/o|0:Xn.BLOCK_SIZE_IN_BYTES/i|0}mj.exports=mwr});var bj=c((_se,gj)=>{"use strict";var hwr=hj();gj.exports=hwr});var qj=c((Tse,xj)=>{"use strict";var gwr=Math.ceil;xj.exports=gwr});var wf=c((jse,wj)=>{"use strict";var bwr=qj();wj.exports=bwr});var Ej=c((Ise,Sj)=>{"use strict";var xwr=ea(),qwr=wf();function wwr(r){return r<0?qwr(r):xwr(r)}Sj.exports=wwr});var Sf=c((Ose,Aj)=>{"use strict";var Swr=Ej();Aj.exports=Swr});var jj=c((Nse,Tj)=>{"use strict";var Ewr=pr(),Kn=Sf(),_j=vi();function Awr(r,e,a,t,o,i){var n,s,u,v,f,l;for(n=r.length,s=1,l=0;l<n;l++)s*=r[l];if(i==="clamp")o<0?o=0:o>=s&&(o=s-1);else if(i==="wrap")o<0?(o+=s,o<0&&(o%=s,o!==0&&(o+=s))):o>=s&&(o-=s,o>=s&&(o%=s));else if(i==="normalize"&&o<0&&(o+=s),o<0||o>=s)throw new RangeError(Ewr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",s,o));if(u=0,t==="column-major"){for(l=n-1;l>=0;l--)f=e[l],f<0?(v=Kn(o/f),o-=v*f,v+=r[l]-1):(v=Kn(o/f),o-=v*f),u+=v*_j(f);return u}for(l=0;l<n;l++)f=e[l],f<0?(v=Kn(o/f),o-=v*f,v+=r[l]-1):(v=Kn(o/f),o-=v*f),u+=v*_j(f);return u}Tj.exports=Awr});var Oj=c((Dse,Ij)=>{"use strict";var _wr=jj();Ij.exports=_wr});var kj=c((kse,Dj)=>{"use strict";var Ao=jt(),Twr=aa(),jwr=Te(),Iwr=ba(),Owr=Ha(),Nwr=sa(),Dwr=Xe(),kwr=lt(),Nj=pr();function Bwr(r,e){var a,t,o,i,n,s,u,v,f;if(n=e.length,o=jwr(r,!1),s=o.length,n<s)throw new Error("invalid argument. Cannot broadcast an array to a shape having fewer dimensions. Arrays can only be broadcasted to shapes having the same or more dimensions.");for(a=[],v=0;v<n;v++)a.push(0);for(i=Iwr(r,!1),v=n-1;v>=0;v--)if(f=s-n+v,!(f<0)){if(u=o[f],t=e[v],t!==0&&t<u)throw new Error(Nj("invalid argument. Input array cannot be broadcast to the specified shape, as the specified shape has a dimension whose size is less than the size of the corresponding dimension in the input array. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Ao(o).join(", "),Ao(e).join(", "),v));if(u===t)a[v]=i[f];else if(u===1)a[v]=0;else throw new Error(Nj("invalid argument. Input array and the specified shape are broadcast incompatible. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Ao(o).join(", "),Ao(e).join(", "),v))}return Twr(Dwr(r),kwr(r),Ao(e),a,Owr(r),Nwr(r))}Dj.exports=Bwr});var _o=c((Bse,Bj)=>{"use strict";var Fwr=kj();Bj.exports=Fwr});var Rj=c((Fse,Fj)=>{"use strict";function Rwr(r){var e,a,t,o,i,n,s,u,v,f,l;if(u=r.length,a=[],u===0)return a;if(o=r[0],v=o.length,u===1){for(f=0;f<v;f++)a.push(o[f]);return a}for(e=[v],f=1;f<u;f++)e.push(r[f].length),e[f]>v&&(v=e[f]);for(f=0;f<v;f++)a.push(0);for(f=v-1;f>=0;){for(i=e[0]-v+f,i>=0?t=o[i]:t=1,l=1;l<u;l++){if(n=e[l]-v+f,n>=0?s=r[l][n]:s=1,t===1){t=s;continue}if(!(s===1||t===s))return null}a[f]=t,f-=1}return a}Fj.exports=Rwr});var qi=c((Rse,zj)=>{"use strict";var zwr=Rj();zj.exports=zwr});var Uj=c((zse,Vj)=>{"use strict";var Vwr=qi(),Uwr=_o(),Cwr=Te();function Pwr(r){var e,a,t,o,i;for(o=r.length,e=[],i=0;i<o;i++)e.push(Cwr(r[i],!1));if(t=Vwr(e),t===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(a=[],i=0;i<o;i++)a.push(Uwr(r[i],t));return a}Vj.exports=Pwr});var Pj=c((Vse,Cj)=>{"use strict";var Lwr=Uj();Cj.exports=Lwr});var Mj=c((Use,Lj)=>{"use strict";var Mwr=it(),Gwr=bi(),Ywr=gi(),$wr=Se(),Wwr=Fa(),Jwr=aa(),Xwr=pr();function Kwr(r,e,a,t){var o,i;if(o=Wwr(e,1),o===null)throw new TypeError(Xwr("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return/^complex/.test(e)&&typeof r=="number"&&(r=[r,0]),Mwr(o)?i=Gwr(e):i=Ywr(e),i(o,0,r),new Jwr(e,o,a,$wr(a.length),0,t)}Lj.exports=Kwr});var Yj=c((Cse,Gj)=>{"use strict";var Hwr=Mj();Gj.exports=Hwr});var Wj=c((Pse,$j)=>{"use strict";var Zwr=mo(),Qwr=Rn();function r3r(r){var e=Qwr(r);return e?Zwr(e):null}$j.exports=r3r});var Xj=c((Lse,Jj)=>{"use strict";var e3r=Wj();Jj.exports=e3r});var Hj=c((Mse,Kj)=>{"use strict";function a3r(){return{binary:"r",bool:"x",complex64:"c",complex128:"z",float16:"h",bfloat16:"e",float32:"f",float64:"d",float128:"g",generic:"o",int8:"s",int16:"k",int32:"i",int64:"l",int128:"m",int256:"n",uint8:"b",uint8c:"a",uint16:"t",uint32:"u",uint64:"v",uint128:"w",uint256:"y"}}Kj.exports=a3r});var rI=c((Gse,Qj)=>{"use strict";var t3r=Ba(),Zj=Hj(),Ef;function i3r(r){return arguments.length===0?Zj():(Ef===void 0&&(Ef=Zj()),Ef[t3r(r)]||null)}Qj.exports=i3r});var Af=c((Yse,eI)=>{"use strict";var o3r=rI();eI.exports=o3r});var oI=c(($se,iI)=>{"use strict";var aI=wn(),tI=Af(),_f;function n3r(r){return arguments.length===0?aI(tI()):(_f===void 0&&(_f=aI(tI())),_f[r]||null)}iI.exports=n3r});var sI=c((Wse,nI)=>{"use strict";var s3r=oI();nI.exports=s3r});var vI=c((Jse,uI)=>{"use strict";function u3r(){return{binary:"byte",bool:"boolean",complex64:"single-precision floating-point complex number",complex128:"double-precision floating-point complex number",float16:"half-precision floating-point number",bfloat16:"brain floating-point number",float32:"single-precision floating-point number",float64:"double-precision floating-point number",float128:"quadruple-precision floating-point number",generic:"generic array value",int8:"signed 8-bit integer",int16:"signed 16-bit integer",int32:"signed 32-bit integer",int64:"signed 64-bit integer",int128:"signed 128-bit integer",int256:"signed 256-bit integer",uint8:"unsigned 8-bit integer",uint8c:"unsigned 8-bit integer (clamped)",uint16:"unsigned 16-bit integer",uint32:"unsigned 32-bit integer",uint64:"unsigned 64-bit integer",uint128:"unsigned 128-bit integer",uint256:"unsigned 256-bit integer"}}uI.exports=u3r});var cI=c((Xse,lI)=>{"use strict";var v3r=Ba(),fI=vI(),Tf;function f3r(r){return arguments.length===0?fI():(Tf===void 0&&(Tf=fI()),Tf[v3r(r)]||null)}lI.exports=f3r});var pI=c((Kse,dI)=>{"use strict";var l3r=cI();dI.exports=l3r});var mI=c((Hse,yI)=>{"use strict";var c3r=Sn(),d3r=mo();function p3r(r){var e=typeof r;return e==="number"?c3r(r)?r:null:e==="string"?d3r(r):null}yI.exports=p3r});var jf=c((Zse,hI)=>{"use strict";var y3r=mI();hI.exports=y3r});var gI=c((Qse,m3r)=>{m3r.exports={binary:null,bool:"bool",complex64:"stdlib_complex64_t",complex128:"stdlib_complex128_t",float16:null,bfloat16:null,float32:"float",float64:"double",float128:null,generic:null,int8:"int8_t",int16:"int16_t",int32:"int32_t",int64:"int64_t",int128:null,int256:null,uint8:"uint8_t",uint8c:null,uint16:"uint16_t",uint32:"uint32_t",uint64:"uint64_t",uint128:null,uint256:null}});var xI=c((rue,bI)=>{"use strict";var h3r=Ba(),g3r=gI();function b3r(r){return g3r[h3r(r)]||null}bI.exports=b3r});var wI=c((eue,qI)=>{"use strict";var x3r=xI();qI.exports=x3r});var AI=c((aue,EI)=>{"use strict";var q3r=Ve(),SI=ge().isPrimitive,w3r=Ba(),If=pr();function S3r(r,e,a){var t,o,i,n,s,u,v,f;if(!q3r(r))throw new TypeError(If("invalid argument. First argument must be an array-like object. Value: `%s`.",r));if(!SI(e))throw new TypeError(If("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",e));if(!SI(a))throw new TypeError(If("invalid argument. Third argument must be a nonnegative integer. Value: `%s`.",a));if(t=r.length,t===0)throw new RangeError("invalid argument. First argument must contain at least one element.");if(s=e+a,t%s!==0)throw new RangeError("invalid arguments. Length of the first argument is incompatible with the second and third arguments.");for(o=[],i=[],u=2*s,f=2*e,v=0;v<=u;v++)v===0?v===f?i.push("() => ("):i.push("("):v===u?v===f?i.push(") => ()"):i.push(")"):v===f?i.push(") => ("):v%2===1?i.push(""):i.push(", ");for(v=0;v<t;v++)n=w3r(r[v]),n===null&&(n=r[v]),f=v%s,i[2*f+1]=n,f===s-1&&o.push(i.join(""));return o}EI.exports=S3r});var Of=c((tue,_I)=>{"use strict";var E3r=AI();_I.exports=E3r});var jI=c((iue,TI)=>{"use strict";var A3r=qt(),_3r=At(),T3r=Ki(),j3r=Xi(),I3r=Zi(),O3r=fi(),N3r=Ji(),D3r=va(),k3r=Hi(),B3r=so(),F3r=vo(),R3r=co(),z3r={float64:A3r,float32:_3r,generic:Array,int16:T3r,int32:j3r,int8:I3r,uint16:O3r,uint32:N3r,uint8:D3r,uint8c:k3r,complex64:B3r,complex128:F3r,bool:R3r};TI.exports=z3r});var OI=c((oue,II)=>{"use strict";var V3r=jI();function U3r(r){return V3r[r]||null}II.exports=U3r});var DI=c((nue,NI)=>{"use strict";var C3r=OI();NI.exports=C3r});var Nf=c((sue,kI)=>{"use strict";function P3r(){return{dtypes:{default:"float64",numeric:"float64",real:"float64",floating_point:"float64",real_floating_point:"float64",complex_floating_point:"complex128",boolean:"bool",integer:"int32",signed_integer:"int32",unsigned_integer:"uint32"}}}kI.exports=P3r});var FI=c((uue,BI)=>{"use strict";var L3r=Nf(),Za=L3r(),M3r={"dtypes.default":Za.dtypes.default,"dtypes.numeric":Za.dtypes.numeric,"dtypes.real":Za.dtypes.real,"dtypes.floating_point":Za.dtypes.floating_point,"dtypes.real_floating_point":Za.dtypes.real_floating_point,"dtypes.complex_floating_point":Za.dtypes.complex_floating_point,"dtypes.boolean":Za.dtypes.boolean,"dtypes.integer":Za.dtypes.integer,"dtypes.signed_integer":Za.dtypes.signed_integer,"dtypes.unsigned_integer":Za.dtypes.unsigned_integer};function G3r(r){var e=M3r[r];return e===void 0?null:e}BI.exports=G3r});var VI=c((vue,zI)=>{"use strict";var Y3r=Ir(),RI=Nf(),$3r=FI();Y3r(RI,"get",$3r);zI.exports=RI});var PI=c((fue,CI)=>{"use strict";var W3r=ge().isPrimitive,J3r=DI(),X3r=Se(),K3r=VI(),UI=pr(),H3r=K3r.get("dtypes.default");function Z3r(r){var e,a;if(!W3r(r))throw new TypeError(UI("invalid argument. First argument must be a nonnegative integer. Value: `%s`.",r));if(arguments.length>1?e=arguments[1]:e=H3r,e==="generic")return X3r(r);if(a=J3r(e),a===null)throw new TypeError(UI("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return new a(r)}CI.exports=Z3r});var MI=c((lue,LI)=>{"use strict";var Q3r=PI();LI.exports=Q3r});var To=c((cue,YI)=>{"use strict";var GI=MI();function r4r(r){return arguments.length>1?GI(r,arguments[1]):GI(r)}YI.exports=r4r});var WI=c((due,$I)=>{"use strict";var e4r=ze(),a4r=Ye(),t4r=aa(),i4r=Jr(),o4r=To(),n4r=_t();function s4r(r,e,a){var t,o,i,n;return t=e.length,t>0?(i=i4r(e),n=e4r(e,a)):(i=1,n=[0]),r==="binary"?o=n4r(i):o=o4r(i,r),new t4r(r,o,e,n,a4r(e,n),a)}$I.exports=s4r});var XI=c((pue,JI)=>{"use strict";var u4r=WI();JI.exports=u4r});var HI=c((yue,KI)=>{"use strict";var v4r=ze(),f4r=Ye(),l4r=Jr(),c4r=Xe(),d4r=Te(),p4r=sa(),y4r=To(),m4r=_t();function h4r(r){var e,a,t,o,i,n,s;return s=c4r(r),i=d4r(r,!0),o=p4r(r),e=i.length,e>0?(a=l4r(i),n=v4r(i,o)):(a=1,n=[0]),s==="binary"?t=m4r(a):t=y4r(a,s),new r.constructor(s,t,i,n,f4r(i,n),o)}KI.exports=h4r});var QI=c((mue,ZI)=>{"use strict";var g4r=HI();ZI.exports=g4r});var oO=c((hue,iO)=>{"use strict";var b4r=Le(),rO=Xe(),x4r=Te(),q4r=ba(),eO=Ha(),w4r=sa(),aO=lt(),tO=pr();function S4r(r,e){var a,t,o,i,n,s,u;if(i=x4r(r,!1),n=q4r(r,!1),o=w4r(r),s=i.length,a=[],t=[],e<0){if(e<-s-1)throw new RangeError(tO("invalid argument. Specified axis is out-of-bounds. Must be on the interval: [-%u-1, %u]. Value: `%d`.",s,s,e));e+=s+1}else if(e>s)throw new RangeError(tO("invalid argument. Specified axis is out-of-bounds. Must be on the interval: [-%u-1, %u]. Value: `%d`.",s,s,e));if(e===0)for(t.push(1),a.push(n[0]),u=0;u<s;u++)t.push(i[u]),a.push(n[u]);else if(e===s){for(u=0;u<s;u++)t.push(i[u]),a.push(n[u]);t.push(1),a.push(n[s-1])}else for(u=0;u<s+1;u++)u===e?(t.push(1),o==="row-major"?a.push(n[u-1]):a.push(n[u])):u<e?(t.push(i[u]),a.push(n[u])):(t.push(i[u-1]),a.push(n[u-1]));return b4r(r)?new r.constructor(rO(r),aO(r),t,a,eO(r),o,{readonly:!0}):new r.constructor(rO(r),aO(r),t,a,eO(r),o)}iO.exports=S4r});var sO=c((gue,nO)=>{"use strict";var E4r=oO();nO.exports=E4r});var vO=c((bue,uO)=>{"use strict";function A4r(r){return r===null}uO.exports=A4r});var wi=c((xue,fO)=>{"use strict";var _4r=vO();fO.exports=_4r});var cO=c((que,lO)=>{"use strict";function T4r(r){return r===void 0}lO.exports=T4r});var Si=c((wue,dO)=>{"use strict";var j4r=cO();dO.exports=j4r});var yO=c((Sue,pO)=>{"use strict";var kf=Ir(),Bf=bt(),I4r=fe().isPrimitive,O4r=wi(),N4r=Si(),Hn=pr();function Df(r){return I4r(r)||O4r(r)||N4r(r)}function ct(){var r,e,a,t;if(r=arguments.length,r===0?(e=null,a=null,t=null):r===1?(e=null,a=arguments[0],t=null):r===2?(e=arguments[0],a=arguments[1],t=null):(e=arguments[0],a=arguments[1],t=arguments[2]),!(this instanceof ct))return new ct(e,a,t);if(!Df(e))throw new TypeError(Hn("invalid argument. First argument must be an integer, null, or undefined. Value: `%s`.",e));if(!Df(a))throw new TypeError(Hn("invalid argument. Second argument must be an integer, null, or undefined. Value: `%s`.",a));if(Df(t)){if(t===0)throw new RangeError(Hn("invalid argument. Third argument cannot be zero. Value: `%s`.",t))}else throw new TypeError(Hn("invalid argument. Third argument must be an integer, null, or undefined. Value: `%s`.",t));return this._start=e===void 0?null:e,this._stop=a===void 0?null:a,this._step=t===void 0?null:t,this}kf(ct,"name","Slice");Bf(ct.prototype,"start",function(){return this._start});Bf(ct.prototype,"stop",function(){return this._stop});Bf(ct.prototype,"step",function(){return this._step});kf(ct.prototype,"toString",function(){return"Slice("+this._start+","+this._stop+","+this.step+")"});kf(ct.prototype,"toJSON",function(){return{type:"Slice",data:[this._start,this._stop,this._step]}});pO.exports=ct});var Ce=c((Eue,mO)=>{"use strict";var D4r=yO();mO.exports=D4r});var gO=c((Aue,hO)=>{"use strict";var k4r=Ce(),B4r=gt();function F4r(r){return r instanceof k4r||B4r(r)==="Slice"}hO.exports=F4r});var Ff=c((_ue,bO)=>{"use strict";var R4r=gO();bO.exports=R4r});var wO=c((Tue,qO)=>{"use strict";var Rf=Ir(),xO=bt(),z4r=fe().isPrimitive,V4r=wi(),U4r=Si(),C4r=Ff(),P4r=pr();function L4r(r){return z4r(r)||V4r(r)||U4r(r)||C4r(r)}function Ke(){var r,e,a,t,o;if(r=arguments.length,!(this instanceof Ke)){if(r===1)return new Ke(arguments[0]);if(r===2)return new Ke(arguments[0],arguments[1]);if(r===3)return new Ke(arguments[0],arguments[1],arguments[2]);if(r===4)return new Ke(arguments[0],arguments[1],arguments[2],arguments[3]);if(r===5)return new Ke(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);for(a=[],o=0;o<r;o++)a.push(arguments[o]);return e=Object.create(Ke.prototype),Ke.apply(e,a)}for(this._data=[],o=0;o<r;o++){if(t=arguments[o],!L4r(t))throw new TypeError(P4r("invalid argument. Provided arguments must be either a Slice, integer, null, or undefined. Argument: `%d`. Value: `%s`.",o,String(t)));this._data.push(t===void 0?null:t)}return this}Rf(Ke,"name","MultiSlice");xO(Ke.prototype,"ndims",function(){return this._data.length});xO(Ke.prototype,"data",function(){return this._data.slice()});Rf(Ke.prototype,"toString",function(){var e,a,t;for(e=this._data,a=[],t=0;t<e.length;t++)a.push(String(e[t]));return"MultiSlice("+a.join(",")+")"});Rf(Ke.prototype,"toJSON",function(){var e,a,t,o;for(e=this._data,a={type:"MultiSlice",data:[]},o=0;o<e.length;o++)t=e[o],a.data.push(t&&typeof t.toJSON=="function"?t.toJSON():t);return a});qO.exports=Ke});var Qa=c((jue,SO)=>{"use strict";var M4r=wO();SO.exports=M4r});var AO=c((Iue,EO)=>{"use strict";var xa=Qa();function G4r(r){switch(r.length){case 0:return new xa;case 1:return new xa(r[0]);case 2:return new xa(r[0],r[1]);case 3:return new xa(r[0],r[1],r[2]);case 4:return new xa(r[0],r[1],r[2],r[3]);case 5:return new xa(r[0],r[1],r[2],r[3],r[4]);case 6:return new xa(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6]);case 8:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7]);case 9:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8]);case 10:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9]);default:return xa.apply(null,r)}}EO.exports=G4r});var he=c((Oue,_O)=>{"use strict";var Y4r=AO();_O.exports=Y4r});var jO=c((Nue,TO)=>{"use strict";function $4r(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}TO.exports=$4r});var OO=c((Due,IO)=>{"use strict";var W4r=Ce(),jo=jO();function J4r(r,e,a){var t,o,i;if(t=r.start,o=r.stop,i=r.step,i===null&&(i=1),t===null)i>0?t=0:t=e-1;else if(t<0){if(t=e+t,t<0){if(a)return jo();t=0}}else if(t>=e){if(a)return jo();i<0?t=e-1:t=e}if(o===null)i>0?o=e:o=null;else if(o<0){if(o=e+o,o<0)if(i>0){if(a)return jo();o=0}else{if(a&&o<-1)return jo();o=null}}else if(o>e){if(a)return jo();o=e}return new W4r(t,o,i)}IO.exports=J4r});var DO=c((kue,NO)=>{"use strict";var X4r=OO();NO.exports=X4r});var BO=c((Bue,kO)=>{"use strict";function K4r(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}kO.exports=K4r});var zO=c((Fue,RO)=>{"use strict";var Zn=Ce(),FO=BO();function H4r(r,e,a){return r>=e?a?FO():new Zn(e,e,1):r<0?(r=e+r,r<0?a?FO():new Zn(0,0,1):new Zn(r,r+1,1)):new Zn(r,r+1,1)}RO.exports=H4r});var UO=c((Rue,VO)=>{"use strict";var Z4r=zO();VO.exports=Z4r});var PO=c((zue,CO)=>{"use strict";var Q4r=he(),r6r=Ce(),e6r=DO(),a6r=UO();function t6r(r,e,a){return r===null?new r6r(0,e,1):typeof r=="number"?a6r(r,e,a):e6r(r,e,a)}function i6r(r,e,a){var t,o,i,n;for(t=r.data,o=[],n=0;n<t.length;n++){if(i=t6r(t[n],e[n],a),i.code!==void 0)return i;o.push(i)}return Q4r(o)}CO.exports=i6r});var MO=c((Vue,LO)=>{"use strict";var o6r=PO();LO.exports=o6r});var YO=c((Uue,GO)=>{"use strict";function n6r(r){var e,a,t;for(e=r.data,a=[],t=0;t<e.length;t++)typeof e[t]!="number"&&a.push(t);return a}GO.exports=n6r});var WO=c((Cue,$O)=>{"use strict";var s6r=YO();$O.exports=s6r});var XO=c((Pue,JO)=>{"use strict";var u6r=wf();function v6r(r){var e,a,t;return a=r.start,t=r.stop,e=r.step,t===null&&(t=-1),e>0&&a>=t||e<0&&a<=t?0:u6r((t-a)/e)}JO.exports=v6r});var HO=c((Lue,KO)=>{"use strict";var f6r=XO();KO.exports=f6r});var QO=c((Mue,ZO)=>{"use strict";var l6r=HO();function c6r(r){var e,a,t;for(e=r.data,a=[],t=0;t<e.length;t++)a.push(l6r(e[t]));return a}ZO.exports=c6r});var e7=c((Gue,r7)=>{"use strict";var d6r=QO();r7.exports=d6r});var t7=c((Yue,a7)=>{"use strict";function p6r(r,e,a){var t,o,i;for(t=r.data,o=a,i=0;i<t.length;i++)o+=e[i]*t[i].start;return o}a7.exports=p6r});var o7=c(($ue,i7)=>{"use strict";function y6r(r,e,a){var t,o,i,n;for(t=r.data,o=[],i=0;i<a.length;i++)n=a[i],o.push(e[n]*t[n].step);return o}i7.exports=y6r});var s7=c((Wue,n7)=>{"use strict";var m6r=Fa(),h6r=Se();function g6r(r,e,a,t,o){var i,n;return n=a.length,n===0?i=[0]:i=h6r(n),new r(e,m6r(e,0),a,i,0,t,{readonly:o})}n7.exports=g6r});var d7=c((Jue,c7)=>{"use strict";var u7=MO(),b6r=WO(),v7=e7(),zf=Kr(),x6r=Se(),f7=Jr(),q6r=Xe(),w6r=Te(),S6r=ba(),E6r=Ha(),A6r=sa(),Vf=lt(),l7=pr(),_6r=t7(),T6r=o7(),j6r=s7();function I6r(r,e,a,t){var o,i,n,s,u,v,f,l,d,y;if(n=q6r(r),s=w6r(r,!0),o=S6r(r,!0),i=E6r(r),u=A6r(r),f=s.length,e.ndims!==f)throw new RangeError(l7("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",s.join(","),e.ndims));if(l=r.constructor,f===0)return new l(n,Vf(r),s,o,i,u,{readonly:!t});if(v=b6r(e),y=u7(e,s,!0),y.code){if(a)throw new RangeError(l7("invalid argument. Slice exceeds array bounds. Array shape: (%s).",s.join(",")));y=u7(e,s,!1),d=v7(y),f7(zf(d,v))>0&&(d=x6r(d.length))}else d=v7(y);return f7(d)===0?j6r(l,n,zf(d,v),u,!t):(i=_6r(y,o,i),d=zf(d,v),d.length===0?new l(n,Vf(r),[],[0],i,u,{readonly:!t}):(o=T6r(y,o,v),new l(n,Vf(r),d,o,i,u,{readonly:!t})))}c7.exports=I6r});var ye=c((Xue,p7)=>{"use strict";var O6r=d7();p7.exports=O6r});var m7=c((Kue,y7)=>{"use strict";var N6r=bo();function D6r(r){return N6r(null,r)}y7.exports=D6r});var Ei=c((Hue,h7)=>{"use strict";var k6r=m7();h7.exports=k6r});var b7=c((Zue,g7)=>{"use strict";function B6r(r){var e=r.ndims;return typeof e=="number"?e:r.shape.length}g7.exports=B6r});var Ua=c((Que,x7)=>{"use strict";var F6r=b7();x7.exports=F6r});var w7=c((rve,q7)=>{"use strict";var R6r=he(),z6r=Ce(),V6r=ye(),U6r=Ei(),C6r=Ua(),Uf=pr();function P6r(r,e,a){var t,o,i;if(o=C6r(r),o===0)throw new TypeError(Uf("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",o));if(i=e,i<0){if(i+=o,i<0)throw new RangeError(Uf("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e))}else if(i>=o)throw new RangeError(Uf("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e));return t=U6r(o),t[i]=new z6r(null,null,-1),V6r(r,R6r(t),!0,a)}q7.exports=P6r});var Qn=c((eve,S7)=>{"use strict";var L6r=w7();S7.exports=L6r});var A7=c((ave,E7)=>{"use strict";var M6r=Qa(),G6r=Qn(),Y6r=ye(),$6r=Ua();function W6r(r,e){return $6r(r)===0?Y6r(r,new M6r,!0,e):G6r(r,-1,e)}E7.exports=W6r});var T7=c((tve,_7)=>{"use strict";var J6r=A7();_7.exports=J6r});var N7=c((ive,O7)=>{"use strict";var j7=Qa(),X6r=Qn(),I7=ye(),K6r=Ua();function H6r(r,e){var a=K6r(r);return a===0?I7(r,new j7,!0,e):a===1?I7(r,new j7(null),!0,e):X6r(r,-2,e)}O7.exports=H6r});var k7=c((ove,D7)=>{"use strict";var Z6r=N7();D7.exports=Z6r});var F7=c((nve,B7)=>{"use strict";function Q6r(r,e){var a,t,o,i,n,s,u,v,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(u=r[o],a=u<0?-u:u,v=e[i],n=o-1,s=i-1;n>=0&&(f=r[n],t=f<0?-f:f,!(t<=a));)r[n+1]=f,e[s+1]=e[s],n-=1,s-=1;r[n+1]=u,e[s+1]=v,o+=1,i+=1}}B7.exports=Q6r});var z7=c((sve,R7)=>{"use strict";var rSr=qe(),eSr=jt(),aSr=Kr(),tSr=F7();function iSr(r,e){var a;return a=rSr(r.length),e=eSr(e),tSr(e,a),r=aSr(r,a),{sh:r,sx:e,idx:a}}R7.exports=iSr});var Zr=c((uve,V7)=>{"use strict";var oSr=z7();V7.exports=oSr});var C7=c((vve,U7)=>{"use strict";var nSr={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};U7.exports=nSr});var M7=c((fve,L7)=>{"use strict";var sSr=xt(),P7=C7();function uSr(r){var e=sSr(r);return e===null?P7.BLOCK_SIZE_IN_ELEMENTS:P7.BLOCK_SIZE_IN_BYTES/e|0}L7.exports=uSr});var Qr=c((lve,G7)=>{"use strict";var vSr=M7();G7.exports=vSr});var W7=c((cve,$7)=>{"use strict";var fSr=ft(),Y7=ea();function lSr(r,e){return typeof r[e]=="function"}function cSr(r){var e,a,t,o,i;for(a=Y7(r.length/2),t=r.length-1,o=0;o<a;o++)i=t-o,e=r[o],r[o]=r[i],r[i]=e;return r}function dSr(r){var e,a,t,o,i,n,s,u;for(e=r.data,a=r.accessors[0],t=r.accessors[1],i=Y7(e.length/2),n=e.length-1,s=0;s<i;s++)u=n-s,o=a(e,s),t(e,s,a(e,u)),t(e,u,o);return e}function pSr(r){var e;return lSr(r,"reverse")?r.reverse():(e=fSr(r),e.accessorProtocol?dSr(e):cSr(r))}$7.exports=pSr});var re=c((dve,J7)=>{"use strict";var ySr=W7();J7.exports=ySr});var K7=c((pve,X7)=>{"use strict";var mSr=Zr(),hSr=Qr(),gSr=Kr(),bSr=re();function xSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;for(w=mSr(r.shape,r.strides),f=w.sh,y=w.sx,v=bSr(w.idx),t=hSr(r.dtype),p=r.offset,o=r.data,n=y[0],i=r.accessors[0],S=f[1];S>0;)for(S<t?(d=S,S=0):(d=t,S-=t),u=p+S*y[1],b=f[0];b>0;)for(b<t?(l=b,b=0):(l=t,b-=t),m=u+b*y[0],s=y[1]-l*y[0],g=0;g<d;g++){for(h=0;h<l;h++)e.call(a,i(o,m),gSr([g,h],v),r.ref),m+=n;m+=s}}X7.exports=xSr});var Z7=c((yve,H7)=>{"use strict";var qSr=Zr(),wSr=Qr(),SSr=Kr(),ESr=re();function ASr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q;for(q=qSr(r.shape,r.strides),d=q.sh,h=q.sx,l=ESr(q.idx),t=wSr(r.dtype),g=r.offset,o=r.data,n=h[0],i=r.accessors[0],E=d[2];E>0;)for(E<t?(m=E,E=0):(m=t,E-=t),f=g+E*h[2],x=d[1];x>0;)for(x<t?(p=x,x=0):(p=t,x-=t),u=h[2]-p*h[1],v=f+x*h[1],_=d[0];_>0;)for(_<t?(y=_,_=0):(y=t,_-=t),b=v+_*h[0],s=h[1]-y*h[0],A=0;A<m;A++){for(w=0;w<p;w++){for(S=0;S<y;S++)e.call(a,i(o,b),SSr([A,w,S],l),r.ref),b+=n;b+=s}b+=u}}H7.exports=ASr});var rN=c((mve,Q7)=>{"use strict";var _Sr=Zr(),TSr=Qr(),jSr=Kr(),ISr=re();function OSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D;for(D=_Sr(r.shape,r.strides),p=D.sh,S=D.sx,y=ISr(D.idx),t=TSr(r.dtype),w=r.offset,o=r.data,n=S[0],i=r.accessors[0],I=p[3];I>0;)for(I<t?(b=I,I=0):(b=t,I-=t),d=w+I*S[3],O=p[2];O>0;)for(O<t?(g=O,O=0):(g=t,O-=t),v=S[3]-g*S[2],l=d+O*S[2],j=p[1];j>0;)for(j<t?(h=j,j=0):(h=t,j-=t),u=S[2]-h*S[1],f=l+j*S[1],T=p[0];T>0;)for(T<t?(m=T,T=0):(m=t,T-=t),A=f+T*S[0],s=S[1]-m*S[0],q=0;q<b;q++){for(E=0;E<g;E++){for(x=0;x<h;x++){for(_=0;_<m;_++)e.call(a,i(o,A),jSr([q,E,x,_],y),r.ref),A+=n;A+=s}A+=u}A+=v}}Q7.exports=OSr});var aN=c((hve,eN)=>{"use strict";var NSr=Zr(),DSr=Qr(),kSr=Kr(),BSr=re();function FSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B;for(B=NSr(r.shape,r.strides),h=B.sh,_=B.sx,m=BSr(B.idx),t=DSr(r.dtype),x=r.offset,o=r.data,n=_[0],i=r.accessors[0],R=h[4];R>0;)for(R<t?(A=R,R=0):(A=t,R-=t),p=x+R*_[4],F=h[3];F>0;)for(F<t?(w=F,F=0):(w=t,F-=t),f=_[4]-w*_[3],y=p+F*_[3],N=h[2];N>0;)for(N<t?(S=N,N=0):(S=t,N-=t),v=_[3]-S*_[2],d=y+N*_[2],k=h[1];k>0;)for(k<t?(b=k,k=0):(b=t,k-=t),u=_[2]-b*_[1],l=d+k*_[1],D=h[0];D>0;)for(D<t?(g=D,D=0):(g=t,D-=t),E=l+D*_[0],s=_[1]-g*_[0],I=0;I<A;I++){for(O=0;O<w;O++){for(j=0;j<S;j++){for(T=0;T<b;T++){for(q=0;q<g;q++)e.call(a,i(o,E),kSr([I,O,j,T,q],m),r.ref),E+=n;E+=s}E+=u}E+=v}E+=f}}eN.exports=FSr});var iN=c((gve,tN)=>{"use strict";var RSr=Zr(),zSr=Qr(),VSr=Kr(),USr=re();function CSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P;for(P=RSr(r.shape,r.strides),b=P.sh,q=P.sx,g=USr(P.idx),t=zSr(r.dtype),T=r.offset,o=r.data,n=q[0],i=r.accessors[0],C=b[5];C>0;)for(C<t?(E=C,C=0):(E=t,C-=t),h=T+C*q[5],U=b[4];U>0;)for(U<t?(x=U,U=0):(x=t,U-=t),l=q[5]-x*q[4],m=h+U*q[4],V=b[3];V>0;)for(V<t?(_=V,V=0):(_=t,V-=t),f=q[4]-_*q[3],p=m+V*q[3],z=b[2];z>0;)for(z<t?(A=z,z=0):(A=t,z-=t),v=q[3]-A*q[2],y=p+z*q[2],B=b[1];B>0;)for(B<t?(w=B,B=0):(w=t,B-=t),u=q[2]-w*q[1],d=y+B*q[1],R=b[0];R>0;)for(R<t?(S=R,R=0):(S=t,R-=t),j=d+R*q[0],s=q[1]-S*q[0],F=0;F<E;F++){for(N=0;N<x;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++)e.call(a,i(o,j),VSr([F,N,k,D,I,O],g),r.ref),j+=n;j+=s}j+=u}j+=v}j+=f}j+=l}}tN.exports=CSr});var nN=c((bve,oN)=>{"use strict";var PSr=Zr(),LSr=Qr(),MSr=Kr(),GSr=re();function YSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y;for(Y=PSr(r.shape,r.strides),w=Y.sh,O=Y.sx,S=GSr(Y.idx),t=LSr(r.dtype),I=r.offset,o=r.data,n=O[0],i=r.accessors[0],$=w[6];$>0;)for($<t?(j=$,$=0):(j=t,$-=t),b=I+$*O[6],G=w[5];G>0;)for(G<t?(T=G,G=0):(T=t,G-=t),d=O[6]-T*O[5],g=b+G*O[5],M=w[4];M>0;)for(M<t?(q=M,M=0):(q=t,M-=t),l=O[5]-q*O[4],h=g+M*O[4],L=w[3];L>0;)for(L<t?(E=L,L=0):(E=t,L-=t),f=O[4]-E*O[3],m=h+L*O[3],P=w[2];P>0;)for(P<t?(x=P,P=0):(x=t,P-=t),v=O[3]-x*O[2],p=m+P*O[2],C=w[1];C>0;)for(C<t?(_=C,C=0):(_=t,C-=t),u=O[2]-_*O[1],y=p+C*O[1],U=w[0];U>0;)for(U<t?(A=U,U=0):(A=t,U-=t),D=y+U*O[0],s=O[1]-A*O[0],V=0;V<j;V++){for(z=0;z<T;z++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++)e.call(a,i(o,D),MSr([V,z,B,R,F,N,k],S),r.ref),D+=n;D+=s}D+=u}D+=v}D+=f}D+=l}D+=d}}oN.exports=YSr});var uN=c((xve,sN)=>{"use strict";var $Sr=Zr(),WSr=Qr(),JSr=Kr(),XSr=re();function KSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H;for(H=$Sr(r.shape,r.strides),_=H.sh,k=H.sx,A=XSr(H.idx),t=WSr(r.dtype),N=r.offset,o=r.data,n=k[0],i=r.accessors[0],K=_[7];K>0;)for(K<t?(D=K,K=0):(D=t,K-=t),w=N+K*k[7],X=_[6];X>0;)for(X<t?(I=X,X=0):(I=t,X-=t),y=k[7]-I*k[6],S=w+X*k[6],J=_[5];J>0;)for(J<t?(O=J,J=0):(O=t,J-=t),d=k[6]-O*k[5],b=S+J*k[5],W=_[4];W>0;)for(W<t?(j=W,W=0):(j=t,W-=t),l=k[5]-j*k[4],g=b+W*k[4],Y=_[3];Y>0;)for(Y<t?(T=Y,Y=0):(T=t,Y-=t),f=k[4]-T*k[3],h=g+Y*k[3],$=_[2];$>0;)for($<t?(q=$,$=0):(q=t,$-=t),v=k[3]-q*k[2],m=h+$*k[2],G=_[1];G>0;)for(G<t?(E=G,G=0):(E=t,G-=t),u=k[2]-E*k[1],p=m+G*k[1],M=_[0];M>0;)for(M<t?(x=M,M=0):(x=t,M-=t),F=p+M*k[0],s=k[1]-x*k[0],L=0;L<D;L++){for(P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++)e.call(a,i(o,F),JSr([L,P,C,U,V,z,B,R],A),r.ref),F+=n;F+=s}F+=u}F+=v}F+=f}F+=l}F+=d}F+=y}}sN.exports=KSr});var fN=c((qve,vN)=>{"use strict";var HSr=Zr(),ZSr=Qr(),QSr=Kr(),rEr=re();function eEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er;for(er=HSr(r.shape,r.strides),E=er.sh,R=er.sx,x=rEr(er.idx),t=ZSr(r.dtype),B=r.offset,o=r.data,n=R[0],i=r.accessors[0],ar=E[8];ar>0;)for(ar<t?(F=ar,ar=0):(F=t,ar-=t),_=B+ar*R[8],rr=E[7];rr>0;)for(rr<t?(N=rr,rr=0):(N=t,rr-=t),p=R[8]-N*R[7],A=_+rr*R[7],Z=E[6];Z>0;)for(Z<t?(k=Z,Z=0):(k=t,Z-=t),y=R[7]-k*R[6],w=A+Z*R[6],Q=E[5];Q>0;)for(Q<t?(D=Q,Q=0):(D=t,Q-=t),d=R[6]-D*R[5],S=w+Q*R[5],H=E[4];H>0;)for(H<t?(I=H,H=0):(I=t,H-=t),l=R[5]-I*R[4],b=S+H*R[4],K=E[3];K>0;)for(K<t?(O=K,K=0):(O=t,K-=t),f=R[4]-O*R[3],g=b+K*R[3],X=E[2];X>0;)for(X<t?(j=X,X=0):(j=t,X-=t),v=R[3]-j*R[2],h=g+X*R[2],J=E[1];J>0;)for(J<t?(T=J,J=0):(T=t,J-=t),u=R[2]-T*R[1],m=h+J*R[1],W=E[0];W>0;)for(W<t?(q=W,W=0):(q=t,W-=t),z=m+W*R[0],s=R[1]-q*R[0],Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++)e.call(a,i(o,z),QSr([Y,$,G,M,L,P,C,U,V],x),r.ref),z+=n;z+=s}z+=u}z+=v}z+=f}z+=l}z+=d}z+=y}z+=p}}vN.exports=eEr});var cN=c((wve,lN)=>{"use strict";var aEr=Zr(),tEr=Qr(),iEr=Kr(),oEr=re();function nEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr;for(sr=aEr(r.shape,r.strides),T=sr.sh,V=sr.sx,q=oEr(sr.idx),t=tEr(r.dtype),U=r.offset,o=r.data,n=V[0],i=r.accessors[0],nr=T[9];nr>0;)for(nr<t?(z=nr,nr=0):(z=t,nr-=t),E=U+nr*V[9],or=T[8];or>0;)for(or<t?(B=or,or=0):(B=t,or-=t),m=V[9]-B*V[8],x=E+or*V[8],tr=T[7];tr>0;)for(tr<t?(R=tr,tr=0):(R=t,tr-=t),p=V[8]-R*V[7],_=x+tr*V[7],ir=T[6];ir>0;)for(ir<t?(F=ir,ir=0):(F=t,ir-=t),y=V[7]-F*V[6],A=_+ir*V[6],er=T[5];er>0;)for(er<t?(N=er,er=0):(N=t,er-=t),d=V[6]-N*V[5],w=A+er*V[5],ar=T[4];ar>0;)for(ar<t?(k=ar,ar=0):(k=t,ar-=t),l=V[5]-k*V[4],S=w+ar*V[4],rr=T[3];rr>0;)for(rr<t?(D=rr,rr=0):(D=t,rr-=t),f=V[4]-D*V[3],b=S+rr*V[3],Z=T[2];Z>0;)for(Z<t?(I=Z,Z=0):(I=t,Z-=t),v=V[3]-I*V[2],g=b+Z*V[2],Q=T[1];Q>0;)for(Q<t?(O=Q,Q=0):(O=t,Q-=t),u=V[2]-O*V[1],h=g+Q*V[1],H=T[0];H>0;)for(H<t?(j=H,H=0):(j=t,H-=t),C=h+H*V[0],s=V[1]-j*V[0],K=0;K<z;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++)e.call(a,i(o,C),iEr([K,X,J,W,Y,$,G,M,L,P],q),r.ref),C+=n;C+=s}C+=u}C+=v}C+=f}C+=l}C+=d}C+=y}C+=p}C+=m}}lN.exports=nEr});var pN=c((Sve,dN)=>{"use strict";var sEr=Zr(),uEr=Qr(),vEr=Kr(),fEr=re();function lEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S;for(S=sEr(r.shape,r.strides),v=S.sh,d=S.sx,u=fEr(S.idx),t=uEr(r.dtype),y=r.offset,o=r.data,i=d[0],b=v[1];b>0;)for(b<t?(l=b,b=0):(l=t,b-=t),s=y+b*d[1],g=v[0];g>0;)for(g<t?(f=g,g=0):(f=t,g-=t),p=s+g*d[0],n=d[1]-f*d[0],h=0;h<l;h++){for(m=0;m<f;m++)e.call(a,o[p],vEr([h,m],u),r.ref),p+=i;p+=n}}dN.exports=lEr});var mN=c((Eve,yN)=>{"use strict";var cEr=Zr(),dEr=Qr(),pEr=Kr(),yEr=re();function mEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E;for(E=cEr(r.shape,r.strides),l=E.sh,m=E.sx,f=yEr(E.idx),t=dEr(r.dtype),h=r.offset,o=r.data,i=m[0],x=l[2];x>0;)for(x<t?(p=x,x=0):(p=t,x-=t),v=h+x*m[2],_=l[1];_>0;)for(_<t?(y=_,_=0):(y=t,_-=t),s=m[2]-y*m[1],u=v+_*m[1],A=l[0];A>0;)for(A<t?(d=A,A=0):(d=t,A-=t),g=u+A*m[0],n=m[1]-d*m[0],w=0;w<p;w++){for(S=0;S<y;S++){for(b=0;b<d;b++)e.call(a,o[g],pEr([w,S,b],f),r.ref),g+=i;g+=n}g+=s}}yN.exports=mEr});var gN=c((Ave,hN)=>{"use strict";var hEr=Zr(),gEr=Qr(),bEr=Kr(),xEr=re();function qEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(I=hEr(r.shape,r.strides),y=I.sh,b=I.sx,d=xEr(I.idx),t=gEr(r.dtype),S=r.offset,o=r.data,i=b[0],O=y[3];O>0;)for(O<t?(g=O,O=0):(g=t,O-=t),l=S+O*b[3],j=y[2];j>0;)for(j<t?(h=j,j=0):(h=t,j-=t),u=b[3]-h*b[2],f=l+j*b[2],T=y[1];T>0;)for(T<t?(m=T,T=0):(m=t,T-=t),s=b[2]-m*b[1],v=f+T*b[1],q=y[0];q>0;)for(q<t?(p=q,q=0):(p=t,q-=t),w=v+q*b[0],n=b[1]-p*b[0],E=0;E<g;E++){for(x=0;x<h;x++){for(_=0;_<m;_++){for(A=0;A<p;A++)e.call(a,o[w],bEr([E,x,_,A],d),r.ref),w+=i;w+=n}w+=s}w+=u}}hN.exports=qEr});var xN=c((_ve,bN)=>{"use strict";var wEr=Zr(),SEr=Qr(),EEr=Kr(),AEr=re();function _Er(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R;for(R=wEr(r.shape,r.strides),m=R.sh,A=R.sx,p=AEr(R.idx),t=SEr(r.dtype),_=r.offset,o=r.data,i=A[0],F=m[4];F>0;)for(F<t?(w=F,F=0):(w=t,F-=t),y=_+F*A[4],N=m[3];N>0;)for(N<t?(S=N,N=0):(S=t,N-=t),v=A[4]-S*A[3],d=y+N*A[3],k=m[2];k>0;)for(k<t?(b=k,k=0):(b=t,k-=t),u=A[3]-b*A[2],l=d+k*A[2],D=m[1];D>0;)for(D<t?(g=D,D=0):(g=t,D-=t),s=A[2]-g*A[1],f=l+D*A[1],I=m[0];I>0;)for(I<t?(h=I,I=0):(h=t,I-=t),x=f+I*A[0],n=A[1]-h*A[0],O=0;O<w;O++){for(j=0;j<S;j++){for(T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++)e.call(a,o[x],EEr([O,j,T,q,E],p),r.ref),x+=i;x+=n}x+=s}x+=u}x+=v}}bN.exports=_Er});var wN=c((Tve,qN)=>{"use strict";var TEr=Zr(),jEr=Qr(),IEr=Kr(),OEr=re();function NEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C;for(C=TEr(r.shape,r.strides),g=C.sh,E=C.sx,h=OEr(C.idx),t=jEr(r.dtype),q=r.offset,o=r.data,i=E[0],U=g[5];U>0;)for(U<t?(x=U,U=0):(x=t,U-=t),m=q+U*E[5],V=g[4];V>0;)for(V<t?(_=V,V=0):(_=t,V-=t),f=E[5]-_*E[4],p=m+V*E[4],z=g[3];z>0;)for(z<t?(A=z,z=0):(A=t,z-=t),v=E[4]-A*E[3],y=p+z*E[3],B=g[2];B>0;)for(B<t?(w=B,B=0):(w=t,B-=t),u=E[3]-w*E[2],d=y+B*E[2],R=g[1];R>0;)for(R<t?(S=R,R=0):(S=t,R-=t),s=E[2]-S*E[1],l=d+R*E[1],F=g[0];F>0;)for(F<t?(b=F,F=0):(b=t,F-=t),T=l+F*E[0],n=E[1]-b*E[0],N=0;N<x;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++)e.call(a,o[T],IEr([N,k,D,I,O,j],h),r.ref),T+=i;T+=n}T+=s}T+=u}T+=v}T+=f}}qN.exports=NEr});var EN=c((jve,SN)=>{"use strict";var DEr=Zr(),kEr=Qr(),BEr=Kr(),FEr=re();function REr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$;for($=DEr(r.shape,r.strides),S=$.sh,j=$.sx,b=FEr($.idx),t=kEr(r.dtype),O=r.offset,o=r.data,i=j[0],G=S[6];G>0;)for(G<t?(T=G,G=0):(T=t,G-=t),g=O+G*j[6],M=S[5];M>0;)for(M<t?(q=M,M=0):(q=t,M-=t),l=j[6]-q*j[5],h=g+M*j[5],L=S[4];L>0;)for(L<t?(E=L,L=0):(E=t,L-=t),f=j[5]-E*j[4],m=h+L*j[4],P=S[3];P>0;)for(P<t?(x=P,P=0):(x=t,P-=t),v=j[4]-x*j[3],p=m+P*j[3],C=S[2];C>0;)for(C<t?(_=C,C=0):(_=t,C-=t),u=j[3]-_*j[2],y=p+C*j[2],U=S[1];U>0;)for(U<t?(A=U,U=0):(A=t,U-=t),s=j[2]-A*j[1],d=y+U*j[1],V=S[0];V>0;)for(V<t?(w=V,V=0):(w=t,V-=t),I=d+V*j[0],n=j[1]-w*j[0],z=0;z<T;z++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)e.call(a,o[I],BEr([z,B,R,F,N,k,D],b),r.ref),I+=i;I+=n}I+=s}I+=u}I+=v}I+=f}I+=l}}SN.exports=REr});var _N=c((Ive,AN)=>{"use strict";var zEr=Zr(),VEr=Qr(),UEr=Kr(),CEr=re();function PEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K;for(K=zEr(r.shape,r.strides),A=K.sh,D=K.sx,w=CEr(K.idx),t=VEr(r.dtype),k=r.offset,o=r.data,i=D[0],X=A[7];X>0;)for(X<t?(I=X,X=0):(I=t,X-=t),S=k+X*D[7],J=A[6];J>0;)for(J<t?(O=J,J=0):(O=t,J-=t),d=D[7]-O*D[6],b=S+J*D[6],W=A[5];W>0;)for(W<t?(j=W,W=0):(j=t,W-=t),l=D[6]-j*D[5],g=b+W*D[5],Y=A[4];Y>0;)for(Y<t?(T=Y,Y=0):(T=t,Y-=t),f=D[5]-T*D[4],h=g+Y*D[4],$=A[3];$>0;)for($<t?(q=$,$=0):(q=t,$-=t),v=D[4]-q*D[3],m=h+$*D[3],G=A[2];G>0;)for(G<t?(E=G,G=0):(E=t,G-=t),u=D[3]-E*D[2],p=m+G*D[2],M=A[1];M>0;)for(M<t?(x=M,M=0):(x=t,M-=t),s=D[2]-x*D[1],y=p+M*D[1],L=A[0];L>0;)for(L<t?(_=L,L=0):(_=t,L-=t),N=y+L*D[0],n=D[1]-_*D[0],P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++)e.call(a,o[N],UEr([P,C,U,V,z,B,R,F],w),r.ref),N+=i;N+=n}N+=s}N+=u}N+=v}N+=f}N+=l}N+=d}}AN.exports=PEr});var jN=c((Ove,TN)=>{"use strict";var LEr=Zr(),MEr=Qr(),GEr=Kr(),YEr=re();function $Er(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar;for(ar=LEr(r.shape,r.strides),x=ar.sh,F=ar.sx,_=YEr(ar.idx),t=MEr(r.dtype),R=r.offset,o=r.data,i=F[0],rr=x[8];rr>0;)for(rr<t?(N=rr,rr=0):(N=t,rr-=t),A=R+rr*F[8],Z=x[7];Z>0;)for(Z<t?(k=Z,Z=0):(k=t,Z-=t),y=F[8]-k*F[7],w=A+Z*F[7],Q=x[6];Q>0;)for(Q<t?(D=Q,Q=0):(D=t,Q-=t),d=F[7]-D*F[6],S=w+Q*F[6],H=x[5];H>0;)for(H<t?(I=H,H=0):(I=t,H-=t),l=F[6]-I*F[5],b=S+H*F[5],K=x[4];K>0;)for(K<t?(O=K,K=0):(O=t,K-=t),f=F[5]-O*F[4],g=b+K*F[4],X=x[3];X>0;)for(X<t?(j=X,X=0):(j=t,X-=t),v=F[4]-j*F[3],h=g+X*F[3],J=x[2];J>0;)for(J<t?(T=J,J=0):(T=t,J-=t),u=F[3]-T*F[2],m=h+J*F[2],W=x[1];W>0;)for(W<t?(q=W,W=0):(q=t,W-=t),s=F[2]-q*F[1],p=m+W*F[1],Y=x[0];Y>0;)for(Y<t?(E=Y,Y=0):(E=t,Y-=t),B=p+Y*F[0],n=F[1]-E*F[0],$=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++)e.call(a,o[B],GEr([$,G,M,L,P,C,U,V,z],_),r.ref),B+=i;B+=n}B+=s}B+=u}B+=v}B+=f}B+=l}B+=d}B+=y}}TN.exports=$Er});var ON=c((Nve,IN)=>{"use strict";var WEr=Zr(),JEr=Qr(),XEr=Kr(),KEr=re();function HEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr;for(nr=WEr(r.shape,r.strides),q=nr.sh,z=nr.sx,E=KEr(nr.idx),t=JEr(r.dtype),V=r.offset,o=r.data,i=z[0],or=q[9];or>0;)for(or<t?(B=or,or=0):(B=t,or-=t),x=V+or*z[9],tr=q[8];tr>0;)for(tr<t?(R=tr,tr=0):(R=t,tr-=t),p=z[9]-R*z[8],_=x+tr*z[8],ir=q[7];ir>0;)for(ir<t?(F=ir,ir=0):(F=t,ir-=t),y=z[8]-F*z[7],A=_+ir*z[7],er=q[6];er>0;)for(er<t?(N=er,er=0):(N=t,er-=t),d=z[7]-N*z[6],w=A+er*z[6],ar=q[5];ar>0;)for(ar<t?(k=ar,ar=0):(k=t,ar-=t),l=z[6]-k*z[5],S=w+ar*z[5],rr=q[4];rr>0;)for(rr<t?(D=rr,rr=0):(D=t,rr-=t),f=z[5]-D*z[4],b=S+rr*z[4],Z=q[3];Z>0;)for(Z<t?(I=Z,Z=0):(I=t,Z-=t),v=z[4]-I*z[3],g=b+Z*z[3],Q=q[2];Q>0;)for(Q<t?(O=Q,Q=0):(O=t,Q-=t),u=z[3]-O*z[2],h=g+Q*z[2],H=q[1];H>0;)for(H<t?(j=H,H=0):(j=t,H-=t),s=z[2]-j*z[1],m=h+H*z[1],K=q[0];K>0;)for(K<t?(T=K,K=0):(T=t,K-=t),U=m+K*z[0],n=z[1]-T*z[0],X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++)e.call(a,o[U],XEr([X,J,W,Y,$,G,M,L,P,C],E),r.ref),U+=i;U+=n}U+=s}U+=u}U+=v}U+=f}U+=l}U+=d}U+=y}U+=p}}IN.exports=HEr});var DN=c((Dve,NN)=>{"use strict";function ZEr(r,e,a){e.call(a,r.accessors[0](r.data,r.offset),[],r.ref)}NN.exports=ZEr});var BN=c((kve,kN)=>{"use strict";function QEr(r,e,a){var t,o,i,n,s,u;for(n=r.shape[0],i=r.strides[0],s=r.offset,t=r.data,o=r.accessors[0],u=0;u<n;u++)e.call(a,o(t,s),[u],r.ref),s+=i}kN.exports=QEr});var RN=c((Bve,FN)=>{"use strict";var rAr=qe(),eAr=re(),aAr=Kr();function tAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p;for(u=r.shape,l=r.strides,s=rAr(u.length),r.order==="row-major"?(v=u[1],f=u[0],i=l[1],n=l[0]-v*l[1]):(v=u[0],f=u[1],i=l[0],n=l[1]-v*l[0],s=eAr(s)),d=r.offset,t=r.data,o=r.accessors[0],p=0;p<f;p++){for(y=0;y<v;y++)e.call(a,o(t,d),aAr([p,y],s),r.ref),d+=i;d+=n}}FN.exports=tAr});var VN=c((Fve,zN)=>{"use strict";var iAr=qe(),oAr=re(),nAr=Kr();function sAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;for(v=r.shape,y=r.strides,u=iAr(v.length),r.order==="row-major"?(f=v[2],l=v[1],d=v[0],i=y[2],n=y[1]-f*y[2],s=y[0]-l*y[1]):(f=v[0],l=v[1],d=v[2],i=y[0],n=y[1]-f*y[0],s=y[2]-l*y[1],u=oAr(u)),p=r.offset,t=r.data,o=r.accessors[0],g=0;g<d;g++){for(h=0;h<l;h++){for(m=0;m<f;m++)e.call(a,o(t,p),nAr([g,h,m],u),r.ref),p+=i;p+=n}p+=s}}zN.exports=sAr});var CN=c((Rve,UN)=>{"use strict";var uAr=qe(),vAr=re(),fAr=Kr();function lAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;for(f=r.shape,m=r.strides,v=uAr(f.length),r.order==="row-major"?(l=f[3],d=f[2],y=f[1],p=f[0],i=m[3],n=m[2]-l*m[3],s=m[1]-d*m[2],u=m[0]-y*m[1]):(l=f[0],d=f[1],y=f[2],p=f[3],i=m[0],n=m[1]-l*m[0],s=m[2]-d*m[1],u=m[3]-y*m[2],v=vAr(v)),h=r.offset,t=r.data,o=r.accessors[0],w=0;w<p;w++){for(S=0;S<y;S++){for(b=0;b<d;b++){for(g=0;g<l;g++)e.call(a,o(t,h),fAr([w,S,b,g],v),r.ref),h+=i;h+=n}h+=s}h+=u}}UN.exports=lAr});var LN=c((zve,PN)=>{"use strict";var cAr=qe(),dAr=re(),pAr=Kr();function yAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x;for(l=r.shape,g=r.strides,f=cAr(l.length),r.order==="row-major"?(d=l[4],y=l[3],p=l[2],m=l[1],h=l[0],i=g[4],n=g[3]-d*g[4],s=g[2]-y*g[3],u=g[1]-p*g[2],v=g[0]-m*g[1]):(d=l[0],y=l[1],p=l[2],m=l[3],h=l[4],i=g[0],n=g[1]-d*g[0],s=g[2]-y*g[1],u=g[3]-p*g[2],v=g[4]-m*g[3],f=dAr(f)),b=r.offset,t=r.data,o=r.accessors[0],x=0;x<h;x++){for(_=0;_<m;_++){for(A=0;A<p;A++){for(w=0;w<y;w++){for(S=0;S<d;S++)e.call(a,o(t,b),pAr([x,_,A,w,S],f),r.ref),b+=i;b+=n}b+=s}b+=u}b+=v}}PN.exports=yAr});var GN=c((Vve,MN)=>{"use strict";var mAr=qe(),hAr=re(),gAr=Kr();function bAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T;for(d=r.shape,S=r.strides,l=mAr(d.length),r.order==="row-major"?(y=d[5],p=d[4],m=d[3],h=d[2],g=d[1],b=d[0],i=S[5],n=S[4]-y*S[5],s=S[3]-p*S[4],u=S[2]-m*S[3],v=S[1]-h*S[2],f=S[0]-g*S[1]):(y=d[0],p=d[1],m=d[2],h=d[3],g=d[4],b=d[5],i=S[0],n=S[1]-y*S[0],s=S[2]-p*S[1],u=S[3]-m*S[2],v=S[4]-h*S[3],f=S[5]-g*S[4],l=hAr(l)),w=r.offset,t=r.data,o=r.accessors[0],T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++){for(A=0;A<y;A++)e.call(a,o(t,w),gAr([T,q,E,x,_,A],l),r.ref),w+=i;w+=n}w+=s}w+=u}w+=v}w+=f}}MN.exports=bAr});var $N=c((Uve,YN)=>{"use strict";var xAr=qe(),qAr=re(),wAr=Kr();function SAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(y=r.shape,A=r.strides,d=xAr(y.length),r.order==="row-major"?(p=y[6],m=y[5],h=y[4],g=y[3],b=y[2],S=y[1],w=y[0],i=A[6],n=A[5]-p*A[6],s=A[4]-m*A[5],u=A[3]-h*A[4],v=A[2]-g*A[3],f=A[1]-b*A[2],l=A[0]-S*A[1]):(p=y[0],m=y[1],h=y[2],g=y[3],b=y[4],S=y[5],w=y[6],i=A[0],n=A[1]-p*A[0],s=A[2]-m*A[1],u=A[3]-h*A[2],v=A[4]-g*A[3],f=A[5]-b*A[4],l=A[6]-S*A[5],d=qAr(d)),_=r.offset,t=r.data,o=r.accessors[0],I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<m;E++){for(x=0;x<p;x++)e.call(a,o(t,_),wAr([I,O,j,T,q,E,x],d),r.ref),_+=i;_+=n}_+=s}_+=u}_+=v}_+=f}_+=l}}YN.exports=SAr});var JN=c((Cve,WN)=>{"use strict";var EAr=qe(),AAr=re(),_Ar=Kr();function TAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N;for(p=r.shape,x=r.strides,y=EAr(p.length),r.order==="row-major"?(m=p[7],h=p[6],g=p[5],b=p[4],S=p[3],w=p[2],A=p[1],_=p[0],i=x[7],n=x[6]-m*x[7],s=x[5]-h*x[6],u=x[4]-g*x[5],v=x[3]-b*x[4],f=x[2]-S*x[3],l=x[1]-w*x[2],d=x[0]-A*x[1]):(m=p[0],h=p[1],g=p[2],b=p[3],S=p[4],w=p[5],A=p[6],_=p[7],i=x[0],n=x[1]-m*x[0],s=x[2]-h*x[1],u=x[3]-g*x[2],v=x[4]-b*x[3],f=x[5]-S*x[4],l=x[6]-w*x[5],d=x[7]-A*x[6],y=AAr(y)),E=r.offset,t=r.data,o=r.accessors[0],N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<m;q++)e.call(a,o(t,E),_Ar([N,k,D,I,O,j,T,q],y),r.ref),E+=i;E+=n}E+=s}E+=u}E+=v}E+=f}E+=l}E+=d}}WN.exports=TAr});var KN=c((Pve,XN)=>{"use strict";var jAr=qe(),IAr=re(),OAr=Kr();function NAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B;for(m=r.shape,q=r.strides,p=jAr(m.length),r.order==="row-major"?(h=m[8],g=m[7],b=m[6],S=m[5],w=m[4],A=m[3],_=m[2],x=m[1],E=m[0],i=q[8],n=q[7]-h*q[8],s=q[6]-g*q[7],u=q[5]-b*q[6],v=q[4]-S*q[5],f=q[3]-w*q[4],l=q[2]-A*q[3],d=q[1]-_*q[2],y=q[0]-x*q[1]):(h=m[0],g=m[1],b=m[2],S=m[3],w=m[4],A=m[5],_=m[6],x=m[7],E=m[8],i=q[0],n=q[1]-h*q[0],s=q[2]-g*q[1],u=q[3]-b*q[2],v=q[4]-S*q[3],f=q[5]-w*q[4],l=q[6]-A*q[5],d=q[7]-_*q[6],y=q[8]-x*q[7],p=IAr(p)),T=r.offset,t=r.data,o=r.accessors[0],B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<b;I++){for(O=0;O<g;O++){for(j=0;j<h;j++)e.call(a,o(t,T),OAr([B,R,F,N,k,D,I,O,j],p),r.ref),T+=i;T+=n}T+=s}T+=u}T+=v}T+=f}T+=l}T+=d}T+=y}}XN.exports=NAr});var ZN=c((Lve,HN)=>{"use strict";var DAr=qe(),kAr=re(),BAr=Kr();function FAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(h=r.shape,j=r.strides,m=DAr(h.length),r.order==="row-major"?(g=h[9],b=h[8],S=h[7],w=h[6],A=h[5],_=h[4],x=h[3],E=h[2],q=h[1],T=h[0],i=j[9],n=j[8]-g*j[9],s=j[7]-b*j[8],u=j[6]-S*j[7],v=j[5]-w*j[6],f=j[4]-A*j[5],l=j[3]-_*j[4],d=j[2]-x*j[3],y=j[1]-E*j[2],p=j[0]-q*j[1]):(g=h[0],b=h[1],S=h[2],w=h[3],A=h[4],_=h[5],x=h[6],E=h[7],q=h[8],T=h[9],i=j[0],n=j[1]-g*j[0],s=j[2]-b*j[1],u=j[3]-S*j[2],v=j[4]-w*j[3],f=j[5]-A*j[4],l=j[6]-_*j[5],d=j[7]-x*j[6],y=j[8]-E*j[7],p=j[9]-q*j[8],m=kAr(m)),O=r.offset,t=r.data,o=r.accessors[0],U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(I=0;I<g;I++)e.call(a,o(t,O),BAr([U,V,z,B,R,F,N,k,D,I],m),r.ref),O+=i;O+=n}O+=s}O+=u}O+=v}O+=f}O+=l}O+=d}O+=y}O+=p}}HN.exports=FAr});var Cf=c((Mve,QN)=>{"use strict";var RAr=pr(),rs=Sf();function zAr(r,e,a,t,o,i,n){var s,u,v,f,l;for(s=r.length,u=1,l=0;l<s;l++)u*=r[l];if(i==="clamp")o<0?o=0:o>=u&&(o=u-1);else if(i==="wrap")o<0?(o+=u,o<0&&(o%=u,o!==0&&(o+=u))):o>=u&&(o-=u,o>=u&&(o%=u));else if(i==="normalize"&&o<0&&(o+=u),o<0||o>=u)throw new RangeError(RAr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",u,o));if(a===0){if(t==="column-major"){for(l=0;l<s;l++)f=o%r[l],o-=f,o/=r[l],n[l]=f;return n}for(l=s-1;l>=0;l--)f=o%r[l],o-=f,o/=r[l],n[l]=f;return n}if(t==="column-major"){for(l=s-1;l>=0;l--)f=e[l],f<0?(v=rs(o/f),o-=v*f,n[l]=r[l]-1+v):(v=rs(o/f),o-=v*f,n[l]=v);return n}for(l=0;l<s;l++)f=e[l],f<0?(v=rs(o/f),o-=v*f,n[l]=r[l]-1+v):(v=rs(o/f),o-=v*f,n[l]=v);return n}QN.exports=zAr});var eD=c((Gve,rD)=>{"use strict";var VAr=Se(),UAr=Cf();function CAr(r,e,a,t,o,i){return UAr(r,e,a,t,o,i,VAr(r.length))}rD.exports=CAr});var Ai=c((Yve,tD)=>{"use strict";var PAr=Ir(),aD=eD(),LAr=Cf();PAr(aD,"assign",LAr);tD.exports=aD});var nD=c(($ve,oD)=>{"use strict";var MAr=Jr(),GAr=na(),YAr=Ai(),iD="throw";function $Ar(r,e,a){var t,o,i,n,s,u,v,f,l,d;for(u=r.shape,i=MAr(u),t=r.data,v=r.strides,f=r.offset,o=r.order,n=r.accessors[0],d=0;d<i;d++)l=GAr(u,v,f,o,d,iD),s=YAr(u,v,0,o,d,iD),e.call(a,n(t,l),s,r.ref)}oD.exports=$Ar});var uD=c((Wve,sD)=>{"use strict";function WAr(r,e,a){e.call(a,r.data[r.offset],[],r.ref)}sD.exports=WAr});var fD=c((Jve,vD)=>{"use strict";function JAr(r,e,a){var t,o,i,n,s;for(i=r.shape[0],o=r.strides[0],n=r.offset,t=r.data,s=0;s<i;s++)e.call(a,t[n],[s],r.ref),n+=o}vD.exports=JAr});var cD=c((Xve,lD)=>{"use strict";var XAr=qe(),KAr=re(),HAr=Kr();function ZAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y;for(s=r.shape,f=r.strides,n=XAr(s.length),r.order==="row-major"?(u=s[1],v=s[0],o=f[1],i=f[0]-u*f[1]):(u=s[0],v=s[1],o=f[0],i=f[1]-u*f[0],n=KAr(n)),l=r.offset,t=r.data,y=0;y<v;y++){for(d=0;d<u;d++)e.call(a,t[l],HAr([y,d],n),r.ref),l+=o;l+=i}}lD.exports=ZAr});var pD=c((Kve,dD)=>{"use strict";var QAr=qe(),r5r=re(),e5r=Kr();function a5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h;for(u=r.shape,d=r.strides,s=QAr(u.length),r.order==="row-major"?(v=u[2],f=u[1],l=u[0],o=d[2],i=d[1]-v*d[2],n=d[0]-f*d[1]):(v=u[0],f=u[1],l=u[2],o=d[0],i=d[1]-v*d[0],n=d[2]-f*d[1],s=r5r(s)),y=r.offset,t=r.data,h=0;h<l;h++){for(m=0;m<f;m++){for(p=0;p<v;p++)e.call(a,t[y],e5r([h,m,p],s),r.ref),y+=o;y+=i}y+=n}}dD.exports=a5r});var mD=c((Hve,yD)=>{"use strict";var t5r=qe(),i5r=re(),o5r=Kr();function n5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S;for(v=r.shape,p=r.strides,u=t5r(v.length),r.order==="row-major"?(f=v[3],l=v[2],d=v[1],y=v[0],o=p[3],i=p[2]-f*p[3],n=p[1]-l*p[2],s=p[0]-d*p[1]):(f=v[0],l=v[1],d=v[2],y=v[3],o=p[0],i=p[1]-f*p[0],n=p[2]-l*p[1],s=p[3]-d*p[2],u=i5r(u)),m=r.offset,t=r.data,S=0;S<y;S++){for(b=0;b<d;b++){for(g=0;g<l;g++){for(h=0;h<f;h++)e.call(a,t[m],o5r([S,b,g,h],u),r.ref),m+=o;m+=i}m+=n}m+=s}}yD.exports=n5r});var gD=c((Zve,hD)=>{"use strict";var s5r=qe(),u5r=re(),v5r=Kr();function f5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_;for(f=r.shape,h=r.strides,v=s5r(f.length),r.order==="row-major"?(l=f[4],d=f[3],y=f[2],p=f[1],m=f[0],o=h[4],i=h[3]-l*h[4],n=h[2]-d*h[3],s=h[1]-y*h[2],u=h[0]-p*h[1]):(l=f[0],d=f[1],y=f[2],p=f[3],m=f[4],o=h[0],i=h[1]-l*h[0],n=h[2]-d*h[1],s=h[3]-y*h[2],u=h[4]-p*h[3],v=u5r(v)),g=r.offset,t=r.data,_=0;_<m;_++){for(A=0;A<p;A++){for(w=0;w<y;w++){for(S=0;S<d;S++){for(b=0;b<l;b++)e.call(a,t[g],v5r([_,A,w,S,b],v),r.ref),g+=o;g+=i}g+=n}g+=s}g+=u}}hD.exports=f5r});var xD=c((Qve,bD)=>{"use strict";var l5r=qe(),c5r=re(),d5r=Kr();function p5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q;for(l=r.shape,b=r.strides,f=l5r(l.length),r.order==="row-major"?(d=l[5],y=l[4],p=l[3],m=l[2],h=l[1],g=l[0],o=b[5],i=b[4]-d*b[5],n=b[3]-y*b[4],s=b[2]-p*b[3],u=b[1]-m*b[2],v=b[0]-h*b[1]):(d=l[0],y=l[1],p=l[2],m=l[3],h=l[4],g=l[5],o=b[0],i=b[1]-d*b[0],n=b[2]-y*b[1],s=b[3]-p*b[2],u=b[4]-m*b[3],v=b[5]-h*b[4],f=c5r(f)),S=r.offset,t=r.data,q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++){for(A=0;A<y;A++){for(w=0;w<d;w++)e.call(a,t[S],d5r([q,E,x,_,A,w],f),r.ref),S+=o;S+=i}S+=n}S+=s}S+=u}S+=v}}bD.exports=p5r});var wD=c((rfe,qD)=>{"use strict";var y5r=qe(),m5r=re(),h5r=Kr();function g5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O;for(d=r.shape,w=r.strides,l=y5r(d.length),r.order==="row-major"?(y=d[6],p=d[5],m=d[4],h=d[3],g=d[2],b=d[1],S=d[0],o=w[6],i=w[5]-y*w[6],n=w[4]-p*w[5],s=w[3]-m*w[4],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-b*w[1]):(y=d[0],p=d[1],m=d[2],h=d[3],g=d[4],b=d[5],S=d[6],o=w[0],i=w[1]-y*w[0],n=w[2]-p*w[1],s=w[3]-m*w[2],u=w[4]-h*w[3],v=w[5]-g*w[4],f=w[6]-b*w[5],l=m5r(l)),A=r.offset,t=r.data,O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<m;E++){for(x=0;x<p;x++){for(_=0;_<y;_++)e.call(a,t[A],h5r([O,j,T,q,E,x,_],l),r.ref),A+=o;A+=i}A+=n}A+=s}A+=u}A+=v}A+=f}}qD.exports=g5r});var ED=c((efe,SD)=>{"use strict";var b5r=qe(),x5r=re(),q5r=Kr();function w5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k;for(y=r.shape,_=r.strides,d=b5r(y.length),r.order==="row-major"?(p=y[7],m=y[6],h=y[5],g=y[4],b=y[3],S=y[2],w=y[1],A=y[0],o=_[7],i=_[6]-p*_[7],n=_[5]-m*_[6],s=_[4]-h*_[5],u=_[3]-g*_[4],v=_[2]-b*_[3],f=_[1]-S*_[2],l=_[0]-w*_[1]):(p=y[0],m=y[1],h=y[2],g=y[3],b=y[4],S=y[5],w=y[6],A=y[7],o=_[0],i=_[1]-p*_[0],n=_[2]-m*_[1],s=_[3]-h*_[2],u=_[4]-g*_[3],v=_[5]-b*_[4],f=_[6]-S*_[5],l=_[7]-w*_[6],d=x5r(d)),x=r.offset,t=r.data,k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<m;q++){for(E=0;E<p;E++)e.call(a,t[x],q5r([k,D,I,O,j,T,q,E],d),r.ref),x+=o;x+=i}x+=n}x+=s}x+=u}x+=v}x+=f}x+=l}}SD.exports=w5r});var _D=c((afe,AD)=>{"use strict";var S5r=qe(),E5r=re(),A5r=Kr();function _5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R;for(p=r.shape,E=r.strides,y=S5r(p.length),r.order==="row-major"?(m=p[8],h=p[7],g=p[6],b=p[5],S=p[4],w=p[3],A=p[2],_=p[1],x=p[0],o=E[8],i=E[7]-m*E[8],n=E[6]-h*E[7],s=E[5]-g*E[6],u=E[4]-b*E[5],v=E[3]-S*E[4],f=E[2]-w*E[3],l=E[1]-A*E[2],d=E[0]-_*E[1]):(m=p[0],h=p[1],g=p[2],b=p[3],S=p[4],w=p[5],A=p[6],_=p[7],x=p[8],o=E[0],i=E[1]-m*E[0],n=E[2]-h*E[1],s=E[3]-g*E[2],u=E[4]-b*E[3],v=E[5]-S*E[4],f=E[6]-w*E[5],l=E[7]-A*E[6],d=E[8]-_*E[7],y=E5r(y)),q=r.offset,t=r.data,R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<b;I++){for(O=0;O<g;O++){for(j=0;j<h;j++){for(T=0;T<m;T++)e.call(a,t[q],A5r([R,F,N,k,D,I,O,j,T],y),r.ref),q+=o;q+=i}q+=n}q+=s}q+=u}q+=v}q+=f}q+=l}q+=d}}AD.exports=_5r});var jD=c((tfe,TD)=>{"use strict";var T5r=qe(),j5r=re(),I5r=Kr();function O5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V;for(m=r.shape,T=r.strides,p=T5r(m.length),r.order==="row-major"?(h=m[9],g=m[8],b=m[7],S=m[6],w=m[5],A=m[4],_=m[3],x=m[2],E=m[1],q=m[0],o=T[9],i=T[8]-h*T[9],n=T[7]-g*T[8],s=T[6]-b*T[7],u=T[5]-S*T[6],v=T[4]-w*T[5],f=T[3]-A*T[4],l=T[2]-_*T[3],d=T[1]-x*T[2],y=T[0]-E*T[1]):(h=m[0],g=m[1],b=m[2],S=m[3],w=m[4],A=m[5],_=m[6],x=m[7],E=m[8],q=m[9],o=T[0],i=T[1]-h*T[0],n=T[2]-g*T[1],s=T[3]-b*T[2],u=T[4]-S*T[3],v=T[5]-w*T[4],f=T[6]-A*T[5],l=T[7]-_*T[6],d=T[8]-x*T[7],y=T[9]-E*T[8],p=j5r(p)),j=r.offset,t=r.data,V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(I=0;I<g;I++){for(O=0;O<h;O++)e.call(a,t[j],I5r([V,z,B,R,F,N,k,D,I,O],p),r.ref),j+=o;j+=i}j+=n}j+=s}j+=u}j+=v}j+=f}j+=l}j+=d}j+=y}}TD.exports=O5r});var ND=c((ife,OD)=>{"use strict";var N5r=Jr(),D5r=na(),k5r=Ai(),ID="throw";function B5r(r,e,a){var t,o,i,n,s,u,v,f,l;for(s=r.shape,i=N5r(s),t=r.data,u=r.strides,v=r.offset,o=r.order,l=0;l<i;l++)f=D5r(s,u,v,o,l,ID),n=k5r(s,u,0,o,l,ID),e.call(a,t[f],n,r.ref)}OD.exports=B5r});var FD=c((ofe,BD)=>{"use strict";var F5r=Ea(),R5r=ei(),z5r=Jr(),V5r=K7(),U5r=Z7(),C5r=rN(),P5r=aN(),L5r=iN(),M5r=nN(),G5r=uN(),Y5r=fN(),$5r=cN(),W5r=pN(),J5r=mN(),X5r=gN(),K5r=xN(),H5r=wN(),Z5r=EN(),Q5r=_N(),r8r=jN(),e8r=ON(),a8r=DN(),t8r=BN(),i8r=RN(),o8r=VN(),n8r=CN(),s8r=LN(),u8r=GN(),v8r=$N(),f8r=JN(),l8r=KN(),c8r=ZN(),d8r=nD(),p8r=uD(),y8r=fD(),m8r=cD(),h8r=pD(),g8r=mD(),b8r=gD(),x8r=xD(),q8r=wD(),w8r=ED(),S8r=_D(),E8r=jD(),A8r=ND(),Pf=[p8r,y8r,m8r,h8r,g8r,b8r,x8r,q8r,w8r,S8r,E8r],DD=[a8r,t8r,i8r,o8r,n8r,s8r,u8r,v8r,f8r,l8r,c8r],_8r=[W5r,J5r,X5r,K5r,H5r,Z5r,Q5r,r8r,e8r],T8r=[V5r,U5r,C5r,P5r,L5r,M5r,G5r,Y5r,$5r],kD=Pf.length-1;function j8r(r,e,a){var t,o,i;if(i=R5r(r[0]),o=i.shape,t=o.length,t===0)return i.accessorProtocol?DD[t](i,e,a):Pf[t](i,e,a);if(z5r(o)!==0){if(t<=kD&&F5r(i.strides)!==0)return i.accessorProtocol?DD[t](i,e,a):Pf[t](i,e,a);if(t<=kD)return i.accessorProtocol?T8r[t-2](i,e,a):_8r[t-2](i,e,a);if(i.accessorProtocol)return d8r(i,e,a);A8r(i,e,a)}}BD.exports=j8r});var zD=c((nfe,RD)=>{"use strict";var I8r=FD();RD.exports=I8r});var UD=c((sfe,VD)=>{"use strict";var O8r=it(),N8r=bi(),D8r=gi(),k8r=Fa(),B8r=aa(),F8r=pr();function R8r(r,e,a){var t,o;if(t=k8r(e,1),t===null)throw new TypeError(F8r("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return/^complex/.test(e)&&typeof r=="number"&&(r=[r,0]),O8r(t)?o=N8r(e):o=D8r(e),o(t,0,r),new B8r(e,t,[],[0],0,a)}VD.exports=R8r});var PD=c((ufe,CD)=>{"use strict";var z8r=UD();CD.exports=z8r});var MD=c((vfe,LD)=>{"use strict";function V8r(r,e,a){var t,o,i;for(t=r.length,o=a,i=0;i<t;i++){if(r[i]===0)return a;e[i]>0&&(o+=e[i]*(r[i]-1))}return o}LD.exports=V8r});var YD=c((ffe,GD)=>{"use strict";var U8r=MD();GD.exports=U8r});var JD=c((lfe,WD)=>{"use strict";var $D=_o(),C8r=Te();function P8r(r,e){var a,t,o;if(t=e.length,a=C8r(r,!1),a.length===t){for(o=0;o<t;o++)if(a[o]!==e[o])return $D(r,e);return r}return $D(r,e)}WD.exports=P8r});var Lf=c((cfe,XD)=>{"use strict";var L8r=JD();XD.exports=L8r});var HD=c((dfe,KD)=>{"use strict";var M8r=qi(),G8r=Lf(),Y8r=Te();function $8r(r){var e,a,t,o,i;for(o=r.length,e=[],i=0;i<o;i++)e.push(Y8r(r[i],!1));if(t=M8r(e),t===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(a=[],i=0;i<o;i++)a.push(G8r(r[i],t));return a}KD.exports=$8r});var QD=c((pfe,ZD)=>{"use strict";var W8r=HD();ZD.exports=W8r});var ek=c((yfe,rk)=>{"use strict";var Mf=Ir(),J8r=bt(),X8r=Of();function K8r(r,e,a){return Mf(a,"nargs",r.nargs),Mf(a,"nin",r.nin),Mf(a,"nout",r.nout),J8r(a,"types",t),a;function t(){return X8r(e,r.nin,r.nout)}}rk.exports=K8r});var tk=c((mfe,ak)=>{"use strict";var H8r=ek();ak.exports=H8r});var ok=c((hfe,ik)=>{"use strict";function Z8r(r,e,a){var t,o,i;for(t=r.length,o=a,i=0;i<t;i++){if(r[i]===0)return a;e[i]<0&&(o+=e[i]*(r[i]-1))}return o}ik.exports=Z8r});var sk=c((gfe,nk)=>{"use strict";var Q8r=ok();nk.exports=Q8r});var vk=c((bfe,uk)=>{"use strict";var r_r=Ra(),e_r=oe(),a_r=Xa(),t_r=Tt(),i_r=Ka(),o_r=vt(),n_r=aa(),s_r=ka(),u_r=s_r("order");function v_r(r){return new n_r(r_r(r),o_r(r),e_r(r),a_r(r),t_r(r),i_r(r)||u_r)}uk.exports=v_r});var lk=c((xfe,fk)=>{"use strict";var f_r=vk();fk.exports=f_r});var Gf=c((qfe,ck)=>{"use strict";var l_r="row-major";function c_r(r,e,a,t,o){var i,n;for(i=r-1;i>t;i--)o[i]=a[i];for(i=t;i>=0&&(n=(a[i]+1)%e[i],o[i]=n,!(n>0));i--);for(i-=1;i>=0;i--)o[i]=a[i];return o}function d_r(r,e,a,t,o){var i,n;for(i=0;i<t;i++)o[i]=a[i];for(i=t;i<r&&(n=(a[i]+1)%e[i],o[i]=n,!(n>0));i++);for(i+=1;i<r;i++)o[i]=a[i];return o}function p_r(r,e,a,t,o){var i=r.length;if(i===0)return null;if(t<0){if(t+=i,t<0)return null}else if(t>=i)return null;return e===l_r?c_r(i,r,a,t,o):d_r(i,r,a,t,o)}ck.exports=p_r});var pk=c((wfe,dk)=>{"use strict";var y_r=Se(),m_r=Gf();function h_r(r,e,a,t){return m_r(r,e,a,t,y_r(r.length))}dk.exports=h_r});var He=c((Sfe,mk)=>{"use strict";var g_r=Ir(),yk=pk(),b_r=Gf();g_r(yk,"assign",b_r);mk.exports=yk});var gk=c((Efe,hk)=>{"use strict";function x_r(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]!==1&&(e+=1);return e}hk.exports=x_r});var xk=c((Afe,bk)=>{"use strict";var q_r=gk();bk.exports=q_r});var wk=c((_fe,qk)=>{"use strict";var w_r=Zr(),S_r=Qr();function E_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b;for(b=w_r(r.shape,r.strides),u=b.sh,l=b.sx,a=S_r(r.dtype),d=r.offset,t=r.data,i=l[0],o=r.accessors[1],g=u[1];g>0;)for(g<a?(f=g,g=0):(f=a,g-=a),s=d+g*l[1],h=u[0];h>0;)for(h<a?(v=h,h=0):(v=a,h-=a),y=s+h*l[0],n=l[1]-v*l[0],m=0;m<f;m++){for(p=0;p<v;p++)o(t,y,e()),y+=i;y+=n}}qk.exports=E_r});var Ek=c((Tfe,Sk)=>{"use strict";var A_r=Zr(),__r=Qr();function T_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x;for(x=A_r(r.shape,r.strides),f=x.sh,p=x.sx,a=__r(r.dtype),m=r.offset,t=r.data,i=p[0],o=r.accessors[1],_=f[2];_>0;)for(_<a?(y=_,_=0):(y=a,_-=a),v=m+_*p[2],A=f[1];A>0;)for(A<a?(d=A,A=0):(d=a,A-=a),s=p[2]-d*p[1],u=v+A*p[1],w=f[0];w>0;)for(w<a?(l=w,w=0):(l=a,w-=a),h=u+w*p[0],n=p[1]-l*p[0],S=0;S<y;S++){for(b=0;b<d;b++){for(g=0;g<l;g++)o(t,h,e()),h+=i;h+=n}h+=s}}Sk.exports=T_r});var _k=c((jfe,Ak)=>{"use strict";var j_r=Zr(),I_r=Qr();function O_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O;for(O=j_r(r.shape,r.strides),d=O.sh,g=O.sx,a=I_r(r.dtype),b=r.offset,t=r.data,i=g[0],o=r.accessors[1],j=d[3];j>0;)for(j<a?(h=j,j=0):(h=a,j-=a),l=b+j*g[3],T=d[2];T>0;)for(T<a?(m=T,T=0):(m=a,T-=a),u=g[3]-m*g[2],f=l+T*g[2],q=d[1];q>0;)for(q<a?(p=q,q=0):(p=a,q-=a),s=g[2]-p*g[1],v=f+q*g[1],E=d[0];E>0;)for(E<a?(y=E,E=0):(y=a,E-=a),S=v+E*g[0],n=g[1]-y*g[0],x=0;x<h;x++){for(_=0;_<m;_++){for(A=0;A<p;A++){for(w=0;w<y;w++)o(t,S,e()),S+=i;S+=n}S+=s}S+=u}}Ak.exports=O_r});var jk=c((Ife,Tk)=>{"use strict";var N_r=Zr(),D_r=Qr();function k_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F;for(F=N_r(r.shape,r.strides),p=F.sh,w=F.sx,a=D_r(r.dtype),A=r.offset,t=r.data,i=w[0],o=r.accessors[1],N=p[4];N>0;)for(N<a?(S=N,N=0):(S=a,N-=a),y=A+N*w[4],k=p[3];k>0;)for(k<a?(b=k,k=0):(b=a,k-=a),v=w[4]-b*w[3],d=y+k*w[3],D=p[2];D>0;)for(D<a?(g=D,D=0):(g=a,D-=a),u=w[3]-g*w[2],l=d+D*w[2],I=p[1];I>0;)for(I<a?(h=I,I=0):(h=a,I-=a),s=w[2]-h*w[1],f=l+I*w[1],O=p[0];O>0;)for(O<a?(m=O,O=0):(m=a,O-=a),_=f+O*w[0],n=w[1]-m*w[0],j=0;j<S;j++){for(T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++)o(t,_,e()),_+=i;_+=n}_+=s}_+=u}_+=v}}Tk.exports=k_r});var Ok=c((Ofe,Ik)=>{"use strict";var B_r=Zr(),F_r=Qr();function R_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(U=B_r(r.shape,r.strides),h=U.sh,x=U.sx,a=F_r(r.dtype),E=r.offset,t=r.data,i=x[0],o=r.accessors[1],V=h[5];V>0;)for(V<a?(_=V,V=0):(_=a,V-=a),m=E+V*x[5],z=h[4];z>0;)for(z<a?(A=z,z=0):(A=a,z-=a),f=x[5]-A*x[4],p=m+z*x[4],B=h[3];B>0;)for(B<a?(w=B,B=0):(w=a,B-=a),v=x[4]-w*x[3],y=p+B*x[3],R=h[2];R>0;)for(R<a?(S=R,R=0):(S=a,R-=a),u=x[3]-S*x[2],d=y+R*x[2],F=h[1];F>0;)for(F<a?(b=F,F=0):(b=a,F-=a),s=x[2]-b*x[1],l=d+F*x[1],N=h[0];N>0;)for(N<a?(g=N,N=0):(g=a,N-=a),q=l+N*x[0],n=x[1]-g*x[0],k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++)o(t,q,e()),q+=i;q+=n}q+=s}q+=u}q+=v}q+=f}}Ik.exports=R_r});var Dk=c((Nfe,Nk)=>{"use strict";var z_r=Zr(),V_r=Qr();function U_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G;for(G=z_r(r.shape,r.strides),b=G.sh,T=G.sx,a=V_r(r.dtype),j=r.offset,t=r.data,i=T[0],o=r.accessors[1],M=b[6];M>0;)for(M<a?(q=M,M=0):(q=a,M-=a),g=j+M*T[6],L=b[5];L>0;)for(L<a?(E=L,L=0):(E=a,L-=a),l=T[6]-E*T[5],h=g+L*T[5],P=b[4];P>0;)for(P<a?(x=P,P=0):(x=a,P-=a),f=T[5]-x*T[4],m=h+P*T[4],C=b[3];C>0;)for(C<a?(_=C,C=0):(_=a,C-=a),v=T[4]-_*T[3],p=m+C*T[3],U=b[2];U>0;)for(U<a?(A=U,U=0):(A=a,U-=a),u=T[3]-A*T[2],y=p+U*T[2],V=b[1];V>0;)for(V<a?(w=V,V=0):(w=a,V-=a),s=T[2]-w*T[1],d=y+V*T[1],z=b[0];z>0;)for(z<a?(S=z,z=0):(S=a,z-=a),O=d+z*T[0],n=T[1]-S*T[0],B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++)o(t,O,e()),O+=i;O+=n}O+=s}O+=u}O+=v}O+=f}O+=l}}Nk.exports=U_r});var Bk=c((Dfe,kk)=>{"use strict";var C_r=Zr(),P_r=Qr();function L_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X;for(X=C_r(r.shape,r.strides),w=X.sh,I=X.sx,a=P_r(r.dtype),D=r.offset,t=r.data,i=I[0],o=r.accessors[1],J=w[7];J>0;)for(J<a?(O=J,J=0):(O=a,J-=a),S=D+J*I[7],W=w[6];W>0;)for(W<a?(j=W,W=0):(j=a,W-=a),d=I[7]-j*I[6],b=S+W*I[6],Y=w[5];Y>0;)for(Y<a?(T=Y,Y=0):(T=a,Y-=a),l=I[6]-T*I[5],g=b+Y*I[5],$=w[4];$>0;)for($<a?(q=$,$=0):(q=a,$-=a),f=I[5]-q*I[4],h=g+$*I[4],G=w[3];G>0;)for(G<a?(E=G,G=0):(E=a,G-=a),v=I[4]-E*I[3],m=h+G*I[3],M=w[2];M>0;)for(M<a?(x=M,M=0):(x=a,M-=a),u=I[3]-x*I[2],p=m+M*I[2],L=w[1];L>0;)for(L<a?(_=L,L=0):(_=a,L-=a),s=I[2]-_*I[1],y=p+L*I[1],P=w[0];P>0;)for(P<a?(A=P,P=0):(A=a,P-=a),k=y+P*I[0],n=I[1]-A*I[0],C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++)o(t,k,e()),k+=i;k+=n}k+=s}k+=u}k+=v}k+=f}k+=l}k+=d}}kk.exports=L_r});var Rk=c((kfe,Fk)=>{"use strict";var M_r=Zr(),G_r=Qr();function Y_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr;for(rr=M_r(r.shape,r.strides),_=rr.sh,N=rr.sx,a=G_r(r.dtype),F=r.offset,t=r.data,i=N[0],o=r.accessors[1],Z=_[8];Z>0;)for(Z<a?(k=Z,Z=0):(k=a,Z-=a),A=F+Z*N[8],Q=_[7];Q>0;)for(Q<a?(D=Q,Q=0):(D=a,Q-=a),y=N[8]-D*N[7],w=A+Q*N[7],H=_[6];H>0;)for(H<a?(I=H,H=0):(I=a,H-=a),d=N[7]-I*N[6],S=w+H*N[6],K=_[5];K>0;)for(K<a?(O=K,K=0):(O=a,K-=a),l=N[6]-O*N[5],b=S+K*N[5],X=_[4];X>0;)for(X<a?(j=X,X=0):(j=a,X-=a),f=N[5]-j*N[4],g=b+X*N[4],J=_[3];J>0;)for(J<a?(T=J,J=0):(T=a,J-=a),v=N[4]-T*N[3],h=g+J*N[3],W=_[2];W>0;)for(W<a?(q=W,W=0):(q=a,W-=a),u=N[3]-q*N[2],m=h+W*N[2],Y=_[1];Y>0;)for(Y<a?(E=Y,Y=0):(E=a,Y-=a),s=N[2]-E*N[1],p=m+Y*N[1],$=_[0];$>0;)for($<a?(x=$,$=0):(x=a,$-=a),R=p+$*N[0],n=N[1]-x*N[0],G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++)o(t,R,e()),R+=i;R+=n}R+=s}R+=u}R+=v}R+=f}R+=l}R+=d}R+=y}}Fk.exports=Y_r});var Vk=c((Bfe,zk)=>{"use strict";var $_r=Zr(),W_r=Qr();function J_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or;for(or=$_r(r.shape,r.strides),E=or.sh,B=or.sx,a=W_r(r.dtype),z=r.offset,t=r.data,i=B[0],o=r.accessors[1],tr=E[9];tr>0;)for(tr<a?(R=tr,tr=0):(R=a,tr-=a),x=z+tr*B[9],ir=E[8];ir>0;)for(ir<a?(F=ir,ir=0):(F=a,ir-=a),p=B[9]-F*B[8],_=x+ir*B[8],er=E[7];er>0;)for(er<a?(N=er,er=0):(N=a,er-=a),y=B[8]-N*B[7],A=_+er*B[7],ar=E[6];ar>0;)for(ar<a?(k=ar,ar=0):(k=a,ar-=a),d=B[7]-k*B[6],w=A+ar*B[6],rr=E[5];rr>0;)for(rr<a?(D=rr,rr=0):(D=a,rr-=a),l=B[6]-D*B[5],S=w+rr*B[5],Z=E[4];Z>0;)for(Z<a?(I=Z,Z=0):(I=a,Z-=a),f=B[5]-I*B[4],b=S+Z*B[4],Q=E[3];Q>0;)for(Q<a?(O=Q,Q=0):(O=a,Q-=a),v=B[4]-O*B[3],g=b+Q*B[3],H=E[2];H>0;)for(H<a?(j=H,H=0):(j=a,H-=a),u=B[3]-j*B[2],h=g+H*B[2],K=E[1];K>0;)for(K<a?(T=K,K=0):(T=a,K-=a),s=B[2]-T*B[1],m=h+K*B[1],X=E[0];X>0;)for(X<a?(q=X,X=0):(q=a,X-=a),V=m+X*B[0],n=B[1]-q*B[0],J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++){for(U=0;U<q;U++)o(t,V,e()),V+=i;V+=n}V+=s}V+=u}V+=v}V+=f}V+=l}V+=d}V+=y}V+=p}}zk.exports=J_r});var Ck=c((Ffe,Uk)=>{"use strict";var X_r=Zr(),K_r=Qr();function H_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;for(g=X_r(r.shape,r.strides),s=g.sh,f=g.sx,a=K_r(r.dtype),l=r.offset,t=r.data,o=f[0],h=s[1];h>0;)for(h<a?(v=h,h=0):(v=a,h-=a),n=l+h*f[1],m=s[0];m>0;)for(m<a?(u=m,m=0):(u=a,m-=a),d=n+m*f[0],i=f[1]-u*f[0],p=0;p<v;p++){for(y=0;y<u;y++)t[d]=e(),d+=o;d+=i}}Uk.exports=H_r});var Lk=c((Rfe,Pk)=>{"use strict";var Z_r=Zr(),Q_r=Qr();function rTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_;for(_=Z_r(r.shape,r.strides),v=_.sh,y=_.sx,a=Q_r(r.dtype),p=r.offset,t=r.data,o=y[0],A=v[2];A>0;)for(A<a?(d=A,A=0):(d=a,A-=a),u=p+A*y[2],w=v[1];w>0;)for(w<a?(l=w,w=0):(l=a,w-=a),n=y[2]-l*y[1],s=u+w*y[1],S=v[0];S>0;)for(S<a?(f=S,S=0):(f=a,S-=a),m=s+S*y[0],i=y[1]-f*y[0],b=0;b<d;b++){for(g=0;g<l;g++){for(h=0;h<f;h++)t[m]=e(),m+=o;m+=i}m+=n}}Pk.exports=rTr});var Gk=c((zfe,Mk)=>{"use strict";var eTr=Zr(),aTr=Qr();function tTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j;for(j=eTr(r.shape,r.strides),l=j.sh,h=j.sx,a=aTr(r.dtype),g=r.offset,t=r.data,o=h[0],T=l[3];T>0;)for(T<a?(m=T,T=0):(m=a,T-=a),f=g+T*h[3],q=l[2];q>0;)for(q<a?(p=q,q=0):(p=a,q-=a),s=h[3]-p*h[2],v=f+q*h[2],E=l[1];E>0;)for(E<a?(y=E,E=0):(y=a,E-=a),n=h[2]-y*h[1],u=v+E*h[1],x=l[0];x>0;)for(x<a?(d=x,x=0):(d=a,x-=a),b=u+x*h[0],i=h[1]-d*h[0],_=0;_<m;_++){for(A=0;A<p;A++){for(w=0;w<y;w++){for(S=0;S<d;S++)t[b]=e(),b+=o;b+=i}b+=n}b+=s}}Mk.exports=tTr});var $k=c((Vfe,Yk)=>{"use strict";var iTr=Zr(),oTr=Qr();function nTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N;for(N=iTr(r.shape,r.strides),y=N.sh,S=N.sx,a=oTr(r.dtype),w=r.offset,t=r.data,o=S[0],k=y[4];k>0;)for(k<a?(b=k,k=0):(b=a,k-=a),d=w+k*S[4],D=y[3];D>0;)for(D<a?(g=D,D=0):(g=a,D-=a),u=S[4]-g*S[3],l=d+D*S[3],I=y[2];I>0;)for(I<a?(h=I,I=0):(h=a,I-=a),s=S[3]-h*S[2],f=l+I*S[2],O=y[1];O>0;)for(O<a?(m=O,O=0):(m=a,O-=a),n=S[2]-m*S[1],v=f+O*S[1],j=y[0];j>0;)for(j<a?(p=j,j=0):(p=a,j-=a),A=v+j*S[0],i=S[1]-p*S[0],T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++)t[A]=e(),A+=o;A+=i}A+=n}A+=s}A+=u}}Yk.exports=nTr});var Jk=c((Ufe,Wk)=>{"use strict";var sTr=Zr(),uTr=Qr();function vTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V;for(V=sTr(r.shape,r.strides),m=V.sh,_=V.sx,a=uTr(r.dtype),x=r.offset,t=r.data,o=_[0],z=m[5];z>0;)for(z<a?(A=z,z=0):(A=a,z-=a),p=x+z*_[5],B=m[4];B>0;)for(B<a?(w=B,B=0):(w=a,B-=a),v=_[5]-w*_[4],y=p+B*_[4],R=m[3];R>0;)for(R<a?(S=R,R=0):(S=a,R-=a),u=_[4]-S*_[3],d=y+R*_[3],F=m[2];F>0;)for(F<a?(b=F,F=0):(b=a,F-=a),s=_[3]-b*_[2],l=d+F*_[2],N=m[1];N>0;)for(N<a?(g=N,N=0):(g=a,N-=a),n=_[2]-g*_[1],f=l+N*_[1],k=m[0];k>0;)for(k<a?(h=k,k=0):(h=a,k-=a),E=f+k*_[0],i=_[1]-h*_[0],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++)t[E]=e(),E+=o;E+=i}E+=n}E+=s}E+=u}E+=v}}Wk.exports=vTr});var Kk=c((Cfe,Xk)=>{"use strict";var fTr=Zr(),lTr=Qr();function cTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M;for(M=fTr(r.shape,r.strides),g=M.sh,q=M.sx,a=lTr(r.dtype),T=r.offset,t=r.data,o=q[0],L=g[6];L>0;)for(L<a?(E=L,L=0):(E=a,L-=a),h=T+L*q[6],P=g[5];P>0;)for(P<a?(x=P,P=0):(x=a,P-=a),f=q[6]-x*q[5],m=h+P*q[5],C=g[4];C>0;)for(C<a?(_=C,C=0):(_=a,C-=a),v=q[5]-_*q[4],p=m+C*q[4],U=g[3];U>0;)for(U<a?(A=U,U=0):(A=a,U-=a),u=q[4]-A*q[3],y=p+U*q[3],V=g[2];V>0;)for(V<a?(w=V,V=0):(w=a,V-=a),s=q[3]-w*q[2],d=y+V*q[2],z=g[1];z>0;)for(z<a?(S=z,z=0):(S=a,z-=a),n=q[2]-S*q[1],l=d+z*q[1],B=g[0];B>0;)for(B<a?(b=B,B=0):(b=a,B-=a),j=l+B*q[0],i=q[1]-b*q[0],R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++)t[j]=e(),j+=o;j+=i}j+=n}j+=s}j+=u}j+=v}j+=f}}Xk.exports=cTr});var Zk=c((Pfe,Hk)=>{"use strict";var dTr=Zr(),pTr=Qr();function yTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J;for(J=dTr(r.shape,r.strides),S=J.sh,O=J.sx,a=pTr(r.dtype),I=r.offset,t=r.data,o=O[0],W=S[7];W>0;)for(W<a?(j=W,W=0):(j=a,W-=a),b=I+W*O[7],Y=S[6];Y>0;)for(Y<a?(T=Y,Y=0):(T=a,Y-=a),l=O[7]-T*O[6],g=b+Y*O[6],$=S[5];$>0;)for($<a?(q=$,$=0):(q=a,$-=a),f=O[6]-q*O[5],h=g+$*O[5],G=S[4];G>0;)for(G<a?(E=G,G=0):(E=a,G-=a),v=O[5]-E*O[4],m=h+G*O[4],M=S[3];M>0;)for(M<a?(x=M,M=0):(x=a,M-=a),u=O[4]-x*O[3],p=m+M*O[3],L=S[2];L>0;)for(L<a?(_=L,L=0):(_=a,L-=a),s=O[3]-_*O[2],y=p+L*O[2],P=S[1];P>0;)for(P<a?(A=P,P=0):(A=a,P-=a),n=O[2]-A*O[1],d=y+P*O[1],C=S[0];C>0;)for(C<a?(w=C,C=0):(w=a,C-=a),D=d+C*O[0],i=O[1]-w*O[0],U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++)t[D]=e(),D+=o;D+=i}D+=n}D+=s}D+=u}D+=v}D+=f}D+=l}}Hk.exports=yTr});var rB=c((Lfe,Qk)=>{"use strict";var mTr=Zr(),hTr=Qr();function gTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z;for(Z=mTr(r.shape,r.strides),A=Z.sh,k=Z.sx,a=hTr(r.dtype),N=r.offset,t=r.data,o=k[0],Q=A[8];Q>0;)for(Q<a?(D=Q,Q=0):(D=a,Q-=a),w=N+Q*k[8],H=A[7];H>0;)for(H<a?(I=H,H=0):(I=a,H-=a),d=k[8]-I*k[7],S=w+H*k[7],K=A[6];K>0;)for(K<a?(O=K,K=0):(O=a,K-=a),l=k[7]-O*k[6],b=S+K*k[6],X=A[5];X>0;)for(X<a?(j=X,X=0):(j=a,X-=a),f=k[6]-j*k[5],g=b+X*k[5],J=A[4];J>0;)for(J<a?(T=J,J=0):(T=a,J-=a),v=k[5]-T*k[4],h=g+J*k[4],W=A[3];W>0;)for(W<a?(q=W,W=0):(q=a,W-=a),u=k[4]-q*k[3],m=h+W*k[3],Y=A[2];Y>0;)for(Y<a?(E=Y,Y=0):(E=a,Y-=a),s=k[3]-E*k[2],p=m+Y*k[2],$=A[1];$>0;)for($<a?(x=$,$=0):(x=a,$-=a),n=k[2]-x*k[1],y=p+$*k[1],G=A[0];G>0;)for(G<a?(_=G,G=0):(_=a,G-=a),F=y+G*k[0],i=k[1]-_*k[0],M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++)t[F]=e(),F+=o;F+=i}F+=n}F+=s}F+=u}F+=v}F+=f}F+=l}F+=d}}Qk.exports=gTr});var aB=c((Mfe,eB)=>{"use strict";var bTr=Zr(),xTr=Qr();function qTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr;for(tr=bTr(r.shape,r.strides),x=tr.sh,R=tr.sx,a=xTr(r.dtype),B=r.offset,t=r.data,o=R[0],ir=x[9];ir>0;)for(ir<a?(F=ir,ir=0):(F=a,ir-=a),_=B+ir*R[9],er=x[8];er>0;)for(er<a?(N=er,er=0):(N=a,er-=a),y=R[9]-N*R[8],A=_+er*R[8],ar=x[7];ar>0;)for(ar<a?(k=ar,ar=0):(k=a,ar-=a),d=R[8]-k*R[7],w=A+ar*R[7],rr=x[6];rr>0;)for(rr<a?(D=rr,rr=0):(D=a,rr-=a),l=R[7]-D*R[6],S=w+rr*R[6],Z=x[5];Z>0;)for(Z<a?(I=Z,Z=0):(I=a,Z-=a),f=R[6]-I*R[5],b=S+Z*R[5],Q=x[4];Q>0;)for(Q<a?(O=Q,Q=0):(O=a,Q-=a),v=R[5]-O*R[4],g=b+Q*R[4],H=x[3];H>0;)for(H<a?(j=H,H=0):(j=a,H-=a),u=R[4]-j*R[3],h=g+H*R[3],K=x[2];K>0;)for(K<a?(T=K,K=0):(T=a,K-=a),s=R[3]-T*R[2],m=h+K*R[2],X=x[1];X>0;)for(X<a?(q=X,X=0):(q=a,X-=a),n=R[2]-q*R[1],p=m+X*R[1],J=x[0];J>0;)for(J<a?(E=J,J=0):(E=a,J-=a),z=p+J*R[0],i=R[1]-E*R[0],W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++){for(U=0;U<q;U++){for(V=0;V<E;V++)t[z]=e(),z+=o;z+=i}z+=n}z+=s}z+=u}z+=v}z+=f}z+=l}z+=d}z+=y}}eB.exports=qTr});var iB=c((Gfe,tB)=>{"use strict";function wTr(r,e){r.accessors[1](r.data,r.offset,e())}tB.exports=wTr});var nB=c((Yfe,oB)=>{"use strict";function STr(r,e){var a,t,o,i,n,s;for(i=r.shape[0],o=r.strides[0],n=r.offset,a=r.data,t=r.accessors[1],s=0;s<i;s++)t(a,n,e()),n+=o}oB.exports=STr});var uB=c(($fe,sB)=>{"use strict";function ETr(r,e){var a,t,o,i,n,s,u,v,f,l,d;for(n=r.shape,v=r.strides,r.order==="row-major"?(s=n[1],u=n[0],o=v[1],i=v[0]-s*v[1]):(s=n[0],u=n[1],o=v[0],i=v[1]-s*v[0]),f=r.offset,a=r.data,t=r.accessors[1],d=0;d<u;d++){for(l=0;l<s;l++)t(a,f,e()),f+=o;f+=i}}sB.exports=ETr});var fB=c((Wfe,vB)=>{"use strict";function ATr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m;for(s=r.shape,l=r.strides,r.order==="row-major"?(u=s[2],v=s[1],f=s[0],o=l[2],i=l[1]-u*l[2],n=l[0]-v*l[1]):(u=s[0],v=s[1],f=s[2],o=l[0],i=l[1]-u*l[0],n=l[2]-v*l[1]),d=r.offset,a=r.data,t=r.accessors[1],m=0;m<f;m++){for(p=0;p<v;p++){for(y=0;y<u;y++)t(a,d,e()),d+=o;d+=i}d+=n}}vB.exports=ATr});var cB=c((Jfe,lB)=>{"use strict";function _Tr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b;for(u=r.shape,y=r.strides,r.order==="row-major"?(v=u[3],f=u[2],l=u[1],d=u[0],o=y[3],i=y[2]-v*y[3],n=y[1]-f*y[2],s=y[0]-l*y[1]):(v=u[0],f=u[1],l=u[2],d=u[3],o=y[0],i=y[1]-v*y[0],n=y[2]-f*y[1],s=y[3]-l*y[2]),p=r.offset,a=r.data,t=r.accessors[1],b=0;b<d;b++){for(g=0;g<l;g++){for(h=0;h<f;h++){for(m=0;m<v;m++)t(a,p,e()),p+=o;p+=i}p+=n}p+=s}}lB.exports=_Tr});var pB=c((Xfe,dB)=>{"use strict";function TTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A;for(v=r.shape,m=r.strides,r.order==="row-major"?(f=v[4],l=v[3],d=v[2],y=v[1],p=v[0],o=m[4],i=m[3]-f*m[4],n=m[2]-l*m[3],s=m[1]-d*m[2],u=m[0]-y*m[1]):(f=v[0],l=v[1],d=v[2],y=v[3],p=v[4],o=m[0],i=m[1]-f*m[0],n=m[2]-l*m[1],s=m[3]-d*m[2],u=m[4]-y*m[3]),h=r.offset,a=r.data,t=r.accessors[1],A=0;A<p;A++){for(w=0;w<y;w++){for(S=0;S<d;S++){for(b=0;b<l;b++){for(g=0;g<f;g++)t(a,h,e()),h+=o;h+=i}h+=n}h+=s}h+=u}}dB.exports=TTr});var mB=c((Kfe,yB)=>{"use strict";function jTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E;for(f=r.shape,g=r.strides,r.order==="row-major"?(l=f[5],d=f[4],y=f[3],p=f[2],m=f[1],h=f[0],o=g[5],i=g[4]-l*g[5],n=g[3]-d*g[4],s=g[2]-y*g[3],u=g[1]-p*g[2],v=g[0]-m*g[1]):(l=f[0],d=f[1],y=f[2],p=f[3],m=f[4],h=f[5],o=g[0],i=g[1]-l*g[0],n=g[2]-d*g[1],s=g[3]-y*g[2],u=g[4]-p*g[3],v=g[5]-m*g[4]),b=r.offset,a=r.data,t=r.accessors[1],E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++){for(A=0;A<y;A++){for(w=0;w<d;w++){for(S=0;S<l;S++)t(a,b,e()),b+=o;b+=i}b+=n}b+=s}b+=u}b+=v}}yB.exports=jTr});var gB=c((Hfe,hB)=>{"use strict";function ITr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j;for(l=r.shape,S=r.strides,r.order==="row-major"?(d=l[6],y=l[5],p=l[4],m=l[3],h=l[2],g=l[1],b=l[0],o=S[6],i=S[5]-d*S[6],n=S[4]-y*S[5],s=S[3]-p*S[4],u=S[2]-m*S[3],v=S[1]-h*S[2],f=S[0]-g*S[1]):(d=l[0],y=l[1],p=l[2],m=l[3],h=l[4],g=l[5],b=l[6],o=S[0],i=S[1]-d*S[0],n=S[2]-y*S[1],s=S[3]-p*S[2],u=S[4]-m*S[3],v=S[5]-h*S[4],f=S[6]-g*S[5]),w=r.offset,a=r.data,t=r.accessors[1],j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<m;E++){for(x=0;x<p;x++){for(_=0;_<y;_++){for(A=0;A<d;A++)t(a,w,e()),w+=o;w+=i}w+=n}w+=s}w+=u}w+=v}w+=f}}hB.exports=ITr});var xB=c((Zfe,bB)=>{"use strict";function OTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D;for(d=r.shape,A=r.strides,r.order==="row-major"?(y=d[7],p=d[6],m=d[5],h=d[4],g=d[3],b=d[2],S=d[1],w=d[0],o=A[7],i=A[6]-y*A[7],n=A[5]-p*A[6],s=A[4]-m*A[5],u=A[3]-h*A[4],v=A[2]-g*A[3],f=A[1]-b*A[2],l=A[0]-S*A[1]):(y=d[0],p=d[1],m=d[2],h=d[3],g=d[4],b=d[5],S=d[6],w=d[7],o=A[0],i=A[1]-y*A[0],n=A[2]-p*A[1],s=A[3]-m*A[2],u=A[4]-h*A[3],v=A[5]-g*A[4],f=A[6]-b*A[5],l=A[7]-S*A[6]),_=r.offset,a=r.data,t=r.accessors[1],D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<m;q++){for(E=0;E<p;E++){for(x=0;x<y;x++)t(a,_,e()),_+=o;_+=i}_+=n}_+=s}_+=u}_+=v}_+=f}_+=l}}bB.exports=OTr});var wB=c((Qfe,qB)=>{"use strict";function NTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F;for(y=r.shape,x=r.strides,r.order==="row-major"?(p=y[8],m=y[7],h=y[6],g=y[5],b=y[4],S=y[3],w=y[2],A=y[1],_=y[0],o=x[8],i=x[7]-p*x[8],n=x[6]-m*x[7],s=x[5]-h*x[6],u=x[4]-g*x[5],v=x[3]-b*x[4],f=x[2]-S*x[3],l=x[1]-w*x[2],d=x[0]-A*x[1]):(p=y[0],m=y[1],h=y[2],g=y[3],b=y[4],S=y[5],w=y[6],A=y[7],_=y[8],o=x[0],i=x[1]-p*x[0],n=x[2]-m*x[1],s=x[3]-h*x[2],u=x[4]-g*x[3],v=x[5]-b*x[4],f=x[6]-S*x[5],l=x[7]-w*x[6],d=x[8]-A*x[7]),E=r.offset,a=r.data,t=r.accessors[1],F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<b;I++){for(O=0;O<g;O++){for(j=0;j<h;j++){for(T=0;T<m;T++){for(q=0;q<p;q++)t(a,E,e()),E+=o;E+=i}E+=n}E+=s}E+=u}E+=v}E+=f}E+=l}E+=d}}qB.exports=NTr});var EB=c((rle,SB)=>{"use strict";function DTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z;for(p=r.shape,q=r.strides,r.order==="row-major"?(m=p[9],h=p[8],g=p[7],b=p[6],S=p[5],w=p[4],A=p[3],_=p[2],x=p[1],E=p[0],o=q[9],i=q[8]-m*q[9],n=q[7]-h*q[8],s=q[6]-g*q[7],u=q[5]-b*q[6],v=q[4]-S*q[5],f=q[3]-w*q[4],l=q[2]-A*q[3],d=q[1]-_*q[2],y=q[0]-x*q[1]):(m=p[0],h=p[1],g=p[2],b=p[3],S=p[4],w=p[5],A=p[6],_=p[7],x=p[8],E=p[9],o=q[0],i=q[1]-m*q[0],n=q[2]-h*q[1],s=q[3]-g*q[2],u=q[4]-b*q[3],v=q[5]-S*q[4],f=q[6]-w*q[5],l=q[7]-A*q[6],d=q[8]-_*q[7],y=q[9]-x*q[8]),T=r.offset,a=r.data,t=r.accessors[1],z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(I=0;I<g;I++){for(O=0;O<h;O++){for(j=0;j<m;j++)t(a,T,e()),T+=o;T+=i}T+=n}T+=s}T+=u}T+=v}T+=f}T+=l}T+=d}T+=y}}SB.exports=DTr});var _B=c((ele,AB)=>{"use strict";var kTr=Jr(),BTr=na(),FTr="throw";function RTr(r,e){var a,t,o,i,n,s,u,v,f;for(n=r.shape,o=kTr(n),a=r.data,s=r.strides,u=r.offset,t=r.order,i=r.accessors[1],f=0;f<o;f++)v=BTr(n,s,u,t,f,FTr),i(a,v,e())}AB.exports=RTr});var jB=c((ale,TB)=>{"use strict";function zTr(r,e){r.data[r.offset]=e()}TB.exports=zTr});var OB=c((tle,IB)=>{"use strict";function VTr(r,e){var a,t,o,i,n;for(o=r.shape[0],t=r.strides[0],i=r.offset,a=r.data,n=0;n<o;n++)a[i]=e(),i+=t}IB.exports=VTr});var DB=c((ile,NB)=>{"use strict";function UTr(r,e){var a,t,o,i,n,s,u,v,f,l;for(i=r.shape,u=r.strides,r.order==="row-major"?(n=i[1],s=i[0],t=u[1],o=u[0]-n*u[1]):(n=i[0],s=i[1],t=u[0],o=u[1]-n*u[0]),v=r.offset,a=r.data,l=0;l<s;l++){for(f=0;f<n;f++)a[v]=e(),v+=t;v+=o}}NB.exports=UTr});var BB=c((ole,kB)=>{"use strict";function CTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p;for(n=r.shape,f=r.strides,r.order==="row-major"?(s=n[2],u=n[1],v=n[0],t=f[2],o=f[1]-s*f[2],i=f[0]-u*f[1]):(s=n[0],u=n[1],v=n[2],t=f[0],o=f[1]-s*f[0],i=f[2]-u*f[1]),l=r.offset,a=r.data,p=0;p<v;p++){for(y=0;y<u;y++){for(d=0;d<s;d++)a[l]=e(),l+=t;l+=o}l+=i}}kB.exports=CTr});var RB=c((nle,FB)=>{"use strict";function PTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;for(s=r.shape,d=r.strides,r.order==="row-major"?(u=s[3],v=s[2],f=s[1],l=s[0],t=d[3],o=d[2]-u*d[3],i=d[1]-v*d[2],n=d[0]-f*d[1]):(u=s[0],v=s[1],f=s[2],l=s[3],t=d[0],o=d[1]-u*d[0],i=d[2]-v*d[1],n=d[3]-f*d[2]),y=r.offset,a=r.data,g=0;g<l;g++){for(h=0;h<f;h++){for(m=0;m<v;m++){for(p=0;p<u;p++)a[y]=e(),y+=t;y+=o}y+=i}y+=n}}FB.exports=PTr});var VB=c((sle,zB)=>{"use strict";function LTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;for(u=r.shape,p=r.strides,r.order==="row-major"?(v=u[4],f=u[3],l=u[2],d=u[1],y=u[0],t=p[4],o=p[3]-v*p[4],i=p[2]-f*p[3],n=p[1]-l*p[2],s=p[0]-d*p[1]):(v=u[0],f=u[1],l=u[2],d=u[3],y=u[4],t=p[0],o=p[1]-v*p[0],i=p[2]-f*p[1],n=p[3]-l*p[2],s=p[4]-d*p[3]),m=r.offset,a=r.data,w=0;w<y;w++){for(S=0;S<d;S++){for(b=0;b<l;b++){for(g=0;g<f;g++){for(h=0;h<v;h++)a[m]=e(),m+=t;m+=o}m+=i}m+=n}m+=s}}zB.exports=LTr});var CB=c((ule,UB)=>{"use strict";function MTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x;for(v=r.shape,h=r.strides,r.order==="row-major"?(f=v[5],l=v[4],d=v[3],y=v[2],p=v[1],m=v[0],t=h[5],o=h[4]-f*h[5],i=h[3]-l*h[4],n=h[2]-d*h[3],s=h[1]-y*h[2],u=h[0]-p*h[1]):(f=v[0],l=v[1],d=v[2],y=v[3],p=v[4],m=v[5],t=h[0],o=h[1]-f*h[0],i=h[2]-l*h[1],n=h[3]-d*h[2],s=h[4]-y*h[3],u=h[5]-p*h[4]),g=r.offset,a=r.data,x=0;x<m;x++){for(_=0;_<p;_++){for(A=0;A<y;A++){for(w=0;w<d;w++){for(S=0;S<l;S++){for(b=0;b<f;b++)a[g]=e(),g+=t;g+=o}g+=i}g+=n}g+=s}g+=u}}UB.exports=MTr});var LB=c((vle,PB)=>{"use strict";function GTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T;for(f=r.shape,b=r.strides,r.order==="row-major"?(l=f[6],d=f[5],y=f[4],p=f[3],m=f[2],h=f[1],g=f[0],t=b[6],o=b[5]-l*b[6],i=b[4]-d*b[5],n=b[3]-y*b[4],s=b[2]-p*b[3],u=b[1]-m*b[2],v=b[0]-h*b[1]):(l=f[0],d=f[1],y=f[2],p=f[3],m=f[4],h=f[5],g=f[6],t=b[0],o=b[1]-l*b[0],i=b[2]-d*b[1],n=b[3]-y*b[2],s=b[4]-p*b[3],u=b[5]-m*b[4],v=b[6]-h*b[5]),S=r.offset,a=r.data,T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<m;E++){for(x=0;x<p;x++){for(_=0;_<y;_++){for(A=0;A<d;A++){for(w=0;w<l;w++)a[S]=e(),S+=t;S+=o}S+=i}S+=n}S+=s}S+=u}S+=v}}PB.exports=GTr});var GB=c((fle,MB)=>{"use strict";function YTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(l=r.shape,w=r.strides,r.order==="row-major"?(d=l[7],y=l[6],p=l[5],m=l[4],h=l[3],g=l[2],b=l[1],S=l[0],t=w[7],o=w[6]-d*w[7],i=w[5]-y*w[6],n=w[4]-p*w[5],s=w[3]-m*w[4],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-b*w[1]):(d=l[0],y=l[1],p=l[2],m=l[3],h=l[4],g=l[5],b=l[6],S=l[7],t=w[0],o=w[1]-d*w[0],i=w[2]-y*w[1],n=w[3]-p*w[2],s=w[4]-m*w[3],u=w[5]-h*w[4],v=w[6]-g*w[5],f=w[7]-b*w[6]),A=r.offset,a=r.data,I=0;I<S;I++){for(O=0;O<b;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<m;q++){for(E=0;E<p;E++){for(x=0;x<y;x++){for(_=0;_<d;_++)a[A]=e(),A+=t;A+=o}A+=i}A+=n}A+=s}A+=u}A+=v}A+=f}}MB.exports=YTr});var $B=c((lle,YB)=>{"use strict";function $Tr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N;for(d=r.shape,_=r.strides,r.order==="row-major"?(y=d[8],p=d[7],m=d[6],h=d[5],g=d[4],b=d[3],S=d[2],w=d[1],A=d[0],t=_[8],o=_[7]-y*_[8],i=_[6]-p*_[7],n=_[5]-m*_[6],s=_[4]-h*_[5],u=_[3]-g*_[4],v=_[2]-b*_[3],f=_[1]-S*_[2],l=_[0]-w*_[1]):(y=d[0],p=d[1],m=d[2],h=d[3],g=d[4],b=d[5],S=d[6],w=d[7],A=d[8],t=_[0],o=_[1]-y*_[0],i=_[2]-p*_[1],n=_[3]-m*_[2],s=_[4]-h*_[3],u=_[5]-g*_[4],v=_[6]-b*_[5],f=_[7]-S*_[6],l=_[8]-w*_[7]),x=r.offset,a=r.data,N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<b;I++){for(O=0;O<g;O++){for(j=0;j<h;j++){for(T=0;T<m;T++){for(q=0;q<p;q++){for(E=0;E<y;E++)a[x]=e(),x+=t;x+=o}x+=i}x+=n}x+=s}x+=u}x+=v}x+=f}x+=l}}YB.exports=$Tr});var JB=c((cle,WB)=>{"use strict";function WTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B;for(y=r.shape,E=r.strides,r.order==="row-major"?(p=y[9],m=y[8],h=y[7],g=y[6],b=y[5],S=y[4],w=y[3],A=y[2],_=y[1],x=y[0],t=E[9],o=E[8]-p*E[9],i=E[7]-m*E[8],n=E[6]-h*E[7],s=E[5]-g*E[6],u=E[4]-b*E[5],v=E[3]-S*E[4],f=E[2]-w*E[3],l=E[1]-A*E[2],d=E[0]-_*E[1]):(p=y[0],m=y[1],h=y[2],g=y[3],b=y[4],S=y[5],w=y[6],A=y[7],_=y[8],x=y[9],t=E[0],o=E[1]-p*E[0],i=E[2]-m*E[1],n=E[3]-h*E[2],s=E[4]-g*E[3],u=E[5]-b*E[4],v=E[6]-S*E[5],f=E[7]-w*E[6],l=E[8]-A*E[7],d=E[9]-_*E[8]),q=r.offset,a=r.data,B=0;B<x;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(I=0;I<g;I++){for(O=0;O<h;O++){for(j=0;j<m;j++){for(T=0;T<p;T++)a[q]=e(),q+=t;q+=o}q+=i}q+=n}q+=s}q+=u}q+=v}q+=f}q+=l}q+=d}}WB.exports=WTr});var KB=c((dle,XB)=>{"use strict";var JTr=Jr(),XTr=na(),KTr="throw";function HTr(r,e){var a,t,o,i,n,s,u,v;for(i=r.shape,o=JTr(i),a=r.data,n=r.strides,s=r.offset,t=r.order,v=0;v<o;v++)u=XTr(i,n,s,t,v,KTr),a[u]=e()}XB.exports=HTr});var QB=c((ple,ZB)=>{"use strict";var ZTr=Ea(),QTr=at(),rjr=ei(),ejr=wk(),ajr=Ek(),tjr=_k(),ijr=jk(),ojr=Ok(),njr=Dk(),sjr=Bk(),ujr=Rk(),vjr=Vk(),fjr=Ck(),ljr=Lk(),cjr=Gk(),djr=$k(),pjr=Jk(),yjr=Kk(),mjr=Zk(),hjr=rB(),gjr=aB(),bjr=iB(),xjr=nB(),qjr=uB(),wjr=fB(),Sjr=cB(),Ejr=pB(),Ajr=mB(),_jr=gB(),Tjr=xB(),jjr=wB(),Ijr=EB(),Ojr=_B(),Njr=jB(),Djr=OB(),kjr=DB(),Bjr=BB(),Fjr=RB(),Rjr=VB(),zjr=CB(),Vjr=LB(),Ujr=GB(),Cjr=$B(),Pjr=JB(),Ljr=KB(),_i=[Njr,Djr,kjr,Bjr,Fjr,Rjr,zjr,Vjr,Ujr,Cjr,Pjr],Io=[bjr,xjr,qjr,wjr,Sjr,Ejr,Ajr,_jr,Tjr,jjr,Ijr],Mjr=[fjr,ljr,cjr,djr,pjr,yjr,mjr,hjr,gjr],Gjr=[ejr,ajr,tjr,ijr,ojr,njr,sjr,ujr,vjr],HB=_i.length-1;function Yjr(r,e){var a,t,o,i,n,s,u,v,f,l,d;if(f=rjr(r[0]),o=f.shape,a=o.length,a===0)return f.accessorProtocol?Io[a](f,e):_i[a](f,e);for(n=1,v=0,d=0;d<a;d++)l=o[d],n*=l,l===1&&(v+=1);if(n!==0){if(a===1)return f.accessorProtocol?Io[a](f,e):_i[a](f,e);if(s=f.strides,v===a-1){for(d=0;d<a&&o[d]===1;d++);return f.shape=[o[d]],f.strides=[s[d]],f.accessorProtocol?Io[1](f,e):_i[1](f,e)}if(i=ZTr(s),i!==0){if(t=QTr(o,s,f.offset),n===t[1]-t[0]+1)return i===1?u=t[0]:u=t[1],f.shape=[n],f.strides=[i],f.offset=u,f.accessorProtocol?Io[1](f,e):_i[1](f,e);if(a<=HB)return f.accessorProtocol?Io[a](f,e):_i[a](f,e)}if(a<=HB)return f.accessorProtocol?Gjr[a-2](f,e):Mjr[a-2](f,e);if(f.accessorProtocol)return Ojr(f,e);Ljr(f,e)}}ZB.exports=Yjr});var eF=c((yle,rF)=>{"use strict";var $jr=QB();rF.exports=$jr});var iF=c((mle,tF)=>{"use strict";var Wjr=ya(),Jjr=Ua(),Xjr=Te(),aF=pr();function Kjr(r,e){var a,t;if(a=Jjr(r),a===0)throw new TypeError(aF("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",a));if(t=Wjr(e,a-1),t===-1)throw new RangeError(aF("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",a,e));return Xjr(r,!1)[t]}tF.exports=Kjr});var Yf=c((hle,oF)=>{"use strict";var Hjr=iF();oF.exports=Hjr});var nF=c((gle,Zjr)=>{Zjr.exports=["same","promoted","bool","signed_integer","unsigned_integer","integer","floating_point","real_floating_point","complex_floating_point","real","numeric","default"]});var uF=c((ble,sF)=>{"use strict";var Qjr=nF();function rIr(){return Qjr.slice()}sF.exports=rIr});var fF=c((xle,vF)=>{"use strict";function eIr(){return{same:0,promoted:1,bool:2,signed_integer:3,unsigned_integer:4,integer:5,floating_point:6,real_floating_point:7,complex_floating_point:8,real:9,numeric:10,default:11}}vF.exports=eIr});var cF=c((qle,lF)=>{"use strict";var aIr=zt(),tIr=Aa();function iIr(r,e){var a,t,o;for(a=tIr(e),o=0;o<a.length;o++)t=a[o],aIr(r,t,e[t]);return r}lF.exports=iIr});var es=c((wle,pF)=>{"use strict";var oIr=Ir(),$f=uF(),dF=fF(),nIr=cF();oIr($f,"enum",dF);nIr($f,dF());pF.exports=$f});var mF=c((Sle,yF)=>{"use strict";var sIr=wn(),uIr=es().enum,vIr=sIr(uIr(),{duplicates:!1});function fIr(r){var e=vIr[r];return typeof e=="string"?e:null}yF.exports=fIr});var as=c((Ele,hF)=>{"use strict";var lIr=mF();hF.exports=lIr});var bF=c((Ale,gF)=>{"use strict";var cIr=es().enum,dIr=cIr();function pIr(r){var e=dIr[r];return typeof e=="number"?e:null}gF.exports=pIr});var ts=c((_le,xF)=>{"use strict";var yIr=bF();xF.exports=yIr});var wF=c((Tle,qF)=>{"use strict";var mIr=as(),hIr=ts();function gIr(r){var e=typeof r;return e==="number"?mIr(r)?r:null:e==="string"?hIr(r):null}qF.exports=gIr});var EF=c((jle,SF)=>{"use strict";var bIr=wF();SF.exports=bIr});var _F=c((Ile,AF)=>{"use strict";var xIr=as(),qIr=ts();function wIr(r){var e=typeof r;return e==="string"?qIr(r)===null?null:r:e==="number"?xIr(r):null}AF.exports=wIr});var jF=c((Ole,TF)=>{"use strict";var SIr=_F();TF.exports=SIr});var BF=c((Nle,kF)=>{"use strict";var EIr=Le(),IF=Xe(),AIr=Te(),_Ir=ba(),OF=Ha(),NF=sa(),DF=lt();function TIr(r,e){var a,t,o,i,n,s;for(o=AIr(r,!1),i=_Ir(r,!1),n=o.length,a=[],t=[],s=0;s<e;s++)t.push(1),a.push(i[0]);for(s=0;s<n;s++)t.push(o[s]),a.push(i[s]);return EIr(r)?new r.constructor(IF(r),DF(r),t,a,OF(r),NF(r),{readonly:!0}):new r.constructor(IF(r),DF(r),t,a,OF(r),NF(r))}kF.exports=TIr});var RF=c((Dle,FF)=>{"use strict";var jIr=BF();FF.exports=jIr});var LF=c((kle,PF)=>{"use strict";var IIr=Le(),zF=Xe(),OIr=Te(),NIr=ba(),VF=Ha(),UF=sa(),CF=lt();function DIr(r){var e,a,t,o,i,n;for(t=OIr(r,!1),o=NIr(r,!1),i=t.length,e=[],a=[],n=0;n<i;n++)t[n]!==1&&(a.push(t[n]),e.push(o[n]));return a.length===i?r:IIr(r)?new r.constructor(zF(r),CF(r),a,e,VF(r),UF(r),{readonly:!0}):new r.constructor(zF(r),CF(r),a,e,VF(r),UF(r))}PF.exports=DIr});var GF=c((Ble,MF)=>{"use strict";var kIr=LF();MF.exports=kIr});var $F=c((Fle,YF)=>{"use strict";var BIr=he(),FIr=Ce(),RIr=bo(),zIr=ye(),VIr=Ua();function UIr(r,e){var a=RIr(new FIr(null,null,-1),VIr(r));return zIr(r,BIr(a),!0,e)}YF.exports=UIr});var JF=c((Rle,WF)=>{"use strict";var CIr=$F();WF.exports=CIr});var HF=c((zle,KF)=>{"use strict";var It=Gt(),PIr=li(),LIr=Yt(),Oo=Du(),MIr=xt(),GIr=Be().enum,YIr=$t().enum,$Ir=Wt().enum,WIr=Xe(),JIr=Te(),XIr=ba(),KIr=Ha(),HIr=sa(),ZIr=GIr(),QIr=YIr(),XF=$Ir();function rOr(r){var e,a,t,o,i,n,s,u,v,f,l,d,y,p;if(r.__array_meta_dataview__)return r.__array_meta_dataview__();for(o=WIr(r),i=JIr(r,!1),n=XIr(r,!1),d=i.length,v=r.mode||"throw",s=r.submode||[v],y=s.length,e=MIr(o),t=33+d*16+y,u=new LIr(new PIr(t)),f=0,u.setInt8(f,It?1:0),f+=1,u.setInt16(f,ZIr[o],It),f+=2,u.setBigInt64(f,Oo(d),It),l=d*8,f+=8,p=0;p<d;p++)u.setBigInt64(f,Oo(i[p]),It),u.setBigInt64(f+l,Oo(n[p]*e),It),f+=8;for(f+=l,u.setBigInt64(f,Oo(KIr(r)*e),It),f+=8,u.setInt8(f,QIr[HIr(r)]),f+=1,u.setInt8(f,XF[v]),f+=1,u.setBigInt64(f,Oo(y),It),f+=8,p=0;p<y;p++)u.setInt8(f,XF[s[p]]),f+=1;return a=0,r.flags&&(a|=r.flags.READONLY?4:0),u.setInt32(f,a,It),u}KF.exports=rOr});var rR=c((Vle,QF)=>{"use strict";var Wf=Gt(),No=$u().assign,eOr=li(),aOr=va(),tOr=Yt(),iOr=xt(),oOr=Be().enum,nOr=$t().enum,sOr=Wt().enum,uOr=Xe(),vOr=Te(),fOr=ba(),lOr=Ha(),cOr=sa(),dOr=oOr(),pOr=nOr(),ZF=sOr();function yOr(r){var e,a,t,o,i,n,s,u,v,f,l,d,y,p,m;if(r.__array_meta_dataview__)return r.__array_meta_dataview__();for(i=uOr(r),n=vOr(r,!1),s=fOr(r,!1),y=n.length,f=r.mode||"throw",u=r.submode||[f],p=u.length,e=iOr(i),o=33+y*16+p,v=new tOr(new eOr(o)),a=new aOr(v.buffer),l=0,v.setInt8(l,Wf?1:0),l+=1,v.setInt16(l,dOr[i],Wf),l+=2,No(y,a,1,l),d=y*8,l+=8,m=0;m<y;m++)No(n[m],a,1,l),No(s[m]*e,a,1,l+d),l+=8;for(l+=d,No(lOr(r)*e,a,1,l),l+=8,v.setInt8(l,pOr[cOr(r)]),l+=1,v.setInt8(l,ZF[f]),l+=1,No(p,a,1,l),l+=8,m=0;m<p;m++)v.setInt8(l,ZF[u[m]]),l+=1;return t=0,r.flags&&(t|=r.flags.READONLY?4:0),v.setInt32(l,t,Wf),v}QF.exports=yOr});var aR=c((Ule,eR)=>{"use strict";var mOr=yu(),hOr=HF(),gOr=rR(),Jf;mOr()?Jf=hOr:Jf=gOr;eR.exports=Jf});var iR=c((Cle,tR)=>{"use strict";function bOr(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]===1&&(e+=1);return e}tR.exports=bOr});var nR=c((Ple,oR)=>{"use strict";var xOr=iR();oR.exports=xOr});var vR=c((Lle,uR)=>{"use strict";var qOr=In(),wOr=_o(),SOr=bf(),EOr=ye(),sR=Xe(),AOr=Te(),_Or=pr();function TOr(r,e,a,t){var o,i,n;if(i=sR(r),n=sR(e),!qOr(i,n))throw new TypeError(_Or("invalid argument. Input array values cannot be safely cast to the output array data type. Data types: [%s, %s].",i,n));return o=EOr(e,a,t,!0),r=wOr(r,AOr(o,!0)),SOr([r,o]),e}uR.exports=TOr});var is=c((Mle,fR)=>{"use strict";var jOr=vR();fR.exports=jOr});var dR=c((Gle,cR)=>{"use strict";var IOr=he(),OOr=Ua(),NOr=ye(),DOr=ya(),kOr=Ei(),lR=pr();function BOr(r,e,a,t,o){var i,n,s;if(n=OOr(r),n===0)throw new TypeError(lR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=DOr(e,n-1),s===-1)throw new RangeError(lR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=kOr(n),i[s]=a,NOr(r,IOr(i),t,o)}cR.exports=BOr});var Xf=c((Yle,pR)=>{"use strict";var FOr=dR();pR.exports=FOr});var hR=c(($le,mR)=>{"use strict";var ROr=he(),zOr=Ce(),VOr=Ua(),UOr=ye(),COr=ya(),POr=Ei(),yR=pr();function LOr(r,e,a,t,o){var i,n,s;if(n=VOr(r),n===0)throw new TypeError(yR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=COr(e,n-1),s===-1)throw new RangeError(yR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=POr(n),i[s]=new zOr(a,null),UOr(r,ROr(i),t,o)}mR.exports=LOr});var Kf=c((Wle,gR)=>{"use strict";var MOr=hR();gR.exports=MOr});var qR=c((Jle,xR)=>{"use strict";var GOr=he(),YOr=Ce(),$Or=Ua(),WOr=ye(),JOr=ya(),XOr=Ei(),bR=pr();function KOr(r,e,a,t,o){var i,n,s;if(n=$Or(r),n===0)throw new TypeError(bR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=JOr(e,n-1),s===-1)throw new RangeError(bR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=XOr(n),i[s]=new YOr(a),WOr(r,GOr(i),t,o)}xR.exports=KOr});var Hf=c((Xle,wR)=>{"use strict";var HOr=qR();wR.exports=HOr});var AR=c((Kle,ER)=>{"use strict";var ZOr=Ge().isPrimitive,QOr=he(),SR=Ce(),r7r=Te(),e7r=ye();function a7r(r,e,a,t){var o,i,n,s;for(i=r7r(r),o=[],s=0;s<e.length;s++)n=e[s],ZOr(n)&&n!==0?n===i[s]?(n-=1,o.push(new SR(n,n))):o.push(new SR(n,null)):o.push(null);return e7r(r,QOr(o),a,t)}ER.exports=a7r});var Zf=c((Hle,_R)=>{"use strict";var t7r=AR();_R.exports=t7r});var jR=c((Zle,TR)=>{"use strict";var i7r=Ge().isPrimitive,o7r=he(),n7r=Ce(),s7r=ye();function u7r(r,e,a,t){var o,i;for(o=[],i=0;i<e.length;i++)i7r(e[i])?o.push(new n7r(e[i])):o.push(null);return s7r(r,o7r(o),a,t)}TR.exports=u7r});var Qf=c((Qle,IR)=>{"use strict";var v7r=jR();IR.exports=v7r});var DR=c((rce,NR)=>{"use strict";var f7r=ya(),l7r=Ua(),c7r=ba(),OR=pr();function d7r(r,e){var a,t;if(a=l7r(r),a===0)throw new TypeError(OR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",a));if(t=f7r(e,a-1),t===-1)throw new RangeError(OR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",a,e));return c7r(r,!1)[t]}NR.exports=d7r});var rl=c((ece,kR)=>{"use strict";var p7r=DR();kR.exports=p7r});var FR=c((ace,BR)=>{"use strict";var y7r=pr();function m7r(){var r,e,a,t,o,i,n,s,u,v,f,l;for(t=arguments[0],r=arguments[1],e=arguments[2],o=t.length,i=arguments[3+o],a=i.length,s=e,l=0;l<o;l++){if(u=t[l],f=arguments[l+3],n=i[l%a],n==="clamp")f<0?f=0:f>=u&&(f=u-1);else if(n==="wrap")f<0?(f+=u,f<0&&(f%=u,f!==0&&(f+=u))):f>=u&&(f-=u,f>=u&&(f%=u));else if(n==="normalize"&&f<0&&(f+=u),f<0||f>=u)throw new RangeError(y7r("invalid argument. Subscripts must not exceed array dimensions. Subscript: `%u`. Value: `%d`.",l,f));v=r[l],v<0&&e===0?s-=f*v:s+=f*v}return s}BR.exports=m7r});var el=c((tce,RR)=>{"use strict";var h7r=FR();RR.exports=h7r});var UR=c((ice,VR)=>{"use strict";function zR(r,e,a,t,o,i){var n,s,u,v,f;if(i>=e.length)return r.accessors[0](r.data,t);for(u=[],v=e[i],n=a[i],f=0;f<v;f++)s=zR(r,e,a,t,o,i+1),u.push(s),t+=n;return u}VR.exports=zR});var PR=c((oce,CR)=>{"use strict";var g7r=ft(),b7r=UR();function x7r(r,e,a,t,o){var i;if(e.length===0)return[];for(i=0;i<e.length;i++)if(e[i]===0)return[];return b7r(g7r(r),e,a,t,o,0)}CR.exports=x7r});var al=c((nce,LR)=>{"use strict";var q7r=PR();LR.exports=q7r});var GR=c((sce,MR)=>{"use strict";var w7r=Ye(),S7r=Xe(),E7r=Te(),A7r=ba(),_7r=sa(),T7r=lt();function j7r(r){var e,a,t,o;if(a=E7r(r,!0),o=a.length,o<2)throw new Error("invalid argument. Must provide an ndarray having two or more dimensions.");return t=A7r(r,!0),e=a[o-2],a[o-2]=a[o-1],a[o-1]=e,e=t[o-2],t[o-2]=t[o-1],t[o-1]=e,new r.constructor(S7r(r),T7r(r),a,t,w7r(a,t),_7r(r))}MR.exports=j7r});var $R=c((uce,YR)=>{"use strict";var I7r=GR();YR.exports=I7r});var JR=c((vce,WR)=>{"use strict";var O7r=zr(),N7r=Rr();function D7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j;for(j=O7r(r.shape,r.strides,e.strides),p=j.sh,g=j.sx,b=j.sy,t=N7r(r.dtype,e.dtype),S=r.offset,w=e.offset,o=r.data,i=e.data,u=g[0],f=b[0],n=r.accessors[0],s=e.accessors[1],T=p[1];T>0;)for(T<t?(h=T,T=0):(h=t,T-=t),d=S+T*g[1],y=w+T*b[1],q=p[0];q>0;)for(q<t?(m=q,q=0):(m=t,q-=t),A=d+q*g[0],_=y+q*b[0],v=g[1]-m*g[0],l=b[1]-m*b[0],E=0;E<h;E++){for(x=0;x<m;x++)s(i,_,a(n(o,A))),A+=u,_+=f;A+=v,_+=l}}WR.exports=D7r});var KR=c((fce,XR)=>{"use strict";var k7r=zr(),B7r=Rr();function F7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R;for(R=k7r(r.shape,r.strides,e.strides),b=R.sh,_=R.sx,x=R.sy,t=B7r(r.dtype,e.dtype),E=r.offset,q=e.offset,o=r.data,i=e.data,u=_[0],l=x[0],n=r.accessors[0],s=e.accessors[1],F=b[2];F>0;)for(F<t?(A=F,F=0):(A=t,F-=t),m=E+F*_[2],g=q+F*x[2],N=b[1];N>0;)for(N<t?(w=N,N=0):(w=t,N-=t),f=_[2]-w*_[1],y=x[2]-w*x[1],p=m+N*_[1],h=g+N*x[1],k=b[0];k>0;)for(k<t?(S=k,k=0):(S=t,k-=t),T=p+k*_[0],j=h+k*x[0],v=_[1]-S*_[0],d=x[1]-S*x[0],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++)s(i,j,a(n(o,T))),T+=u,j+=l;T+=v,j+=d}T+=f,j+=y}}XR.exports=F7r});var ZR=c((lce,HR)=>{"use strict";var R7r=zr(),z7r=Rr();function V7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L;for(L=R7r(r.shape,r.strides,e.strides),_=L.sh,j=L.sx,O=L.sy,t=z7r(r.dtype,e.dtype),I=r.offset,D=e.offset,o=r.data,i=e.data,u=j[0],d=O[0],n=r.accessors[0],s=e.accessors[1],P=_[3];P>0;)for(P<t?(T=P,P=0):(T=t,P-=t),b=I+P*j[3],A=D+P*O[3],C=_[2];C>0;)for(C<t?(q=C,C=0):(q=t,C-=t),l=j[3]-q*j[2],m=O[3]-q*O[2],g=b+C*j[2],w=A+C*O[2],U=_[1];U>0;)for(U<t?(E=U,U=0):(E=t,U-=t),f=j[2]-E*j[1],p=O[2]-E*O[1],h=g+U*j[1],S=w+U*O[1],V=_[0];V>0;)for(V<t?(x=V,V=0):(x=t,V-=t),k=h+V*j[0],N=S+V*O[0],v=j[1]-x*j[0],y=O[1]-x*O[0],z=0;z<T;z++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++)s(i,N,a(n(o,k))),k+=u,N+=d;k+=v,N+=y}k+=f,N+=p}k+=l,N+=m}}HR.exports=V7r});var rz=c((cce,QR)=>{"use strict";var U7r=zr(),C7r=Rr();function P7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X;for(X=U7r(r.shape,r.strides,e.strides),T=X.sh,N=X.sx,F=X.sy,t=C7r(r.dtype,e.dtype),R=r.offset,B=e.offset,o=r.data,i=e.data,u=N[0],y=F[0],n=r.accessors[0],s=e.accessors[1],J=T[4];J>0;)for(J<t?(k=J,J=0):(k=t,J-=t),A=R+J*N[4],q=B+J*F[4],W=T[3];W>0;)for(W<t?(D=W,W=0):(D=t,W-=t),d=N[4]-D*N[3],g=F[4]-D*F[3],w=A+W*N[3],E=q+W*F[3],Y=T[2];Y>0;)for(Y<t?(I=Y,Y=0):(I=t,Y-=t),l=N[3]-I*N[2],h=F[3]-I*F[2],S=w+Y*N[2],x=E+Y*F[2],$=T[1];$>0;)for($<t?(O=$,$=0):(O=t,$-=t),f=N[2]-O*N[1],m=F[2]-O*F[1],b=S+$*N[1],_=x+$*F[1],G=T[0];G>0;)for(G<t?(j=G,G=0):(j=t,G-=t),z=b+G*N[0],V=_+G*F[0],v=N[1]-j*N[0],p=F[1]-j*F[0],M=0;M<k;M++){for(L=0;L<D;L++){for(P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++)s(i,V,a(n(o,z))),z+=u,V+=y;z+=v,V+=p}z+=f,V+=m}z+=l,V+=h}z+=d,V+=g}}QR.exports=P7r});var az=c((dce,ez)=>{"use strict";var L7r=zr(),M7r=Rr();function G7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er;for(er=L7r(r.shape,r.strides,e.strides),D=er.sh,V=er.sx,U=er.sy,t=M7r(r.dtype,e.dtype),C=r.offset,P=e.offset,o=r.data,i=e.data,u=V[0],p=U[0],n=r.accessors[0],s=e.accessors[1],ar=D[5];ar>0;)for(ar<t?(z=ar,ar=0):(z=t,ar-=t),E=C+ar*V[5],I=P+ar*U[5],rr=D[4];rr>0;)for(rr<t?(B=rr,rr=0):(B=t,rr-=t),y=V[5]-B*V[4],S=U[5]-B*U[4],x=E+rr*V[4],O=I+rr*U[4],Z=D[3];Z>0;)for(Z<t?(R=Z,Z=0):(R=t,Z-=t),d=V[4]-R*V[3],b=U[4]-R*U[3],_=x+Z*V[3],j=O+Z*U[3],Q=D[2];Q>0;)for(Q<t?(F=Q,Q=0):(F=t,Q-=t),l=V[3]-F*V[2],g=U[3]-F*U[2],A=_+Q*V[2],T=j+Q*U[2],H=D[1];H>0;)for(H<t?(N=H,H=0):(N=t,H-=t),f=V[2]-N*V[1],h=U[2]-N*U[1],w=A+H*V[1],q=T+H*U[1],K=D[0];K>0;)for(K<t?(k=K,K=0):(k=t,K-=t),L=w+K*V[0],M=q+K*U[0],v=V[1]-k*V[0],m=U[1]-k*U[0],X=0;X<z;X++){for(J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++)s(i,M,a(n(o,L))),L+=u,M+=p;L+=v,M+=m}L+=f,M+=h}L+=l,M+=g}L+=d,M+=b}L+=y,M+=S}}ez.exports=G7r});var iz=c((pce,tz)=>{"use strict";var Y7r=zr(),$7r=Rr();function W7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr;for(vr=Y7r(r.shape,r.strides,e.strides),R=vr.sh,M=vr.sx,G=vr.sy,t=$7r(r.dtype,e.dtype),$=r.offset,Y=e.offset,o=r.data,i=e.data,u=M[0],m=G[0],n=r.accessors[0],s=e.accessors[1],ur=R[6];ur>0;)for(ur<t?(L=ur,ur=0):(L=t,ur-=t),j=$+ur*M[6],F=Y+ur*G[6],sr=R[5];sr>0;)for(sr<t?(P=sr,sr=0):(P=t,sr-=t),p=M[6]-P*M[5],A=G[6]-P*G[5],T=j+sr*M[5],N=F+sr*G[5],nr=R[4];nr>0;)for(nr<t?(C=nr,nr=0):(C=t,nr-=t),y=M[5]-C*M[4],w=G[5]-C*G[4],q=T+nr*M[4],k=N+nr*G[4],or=R[3];or>0;)for(or<t?(U=or,or=0):(U=t,or-=t),d=M[4]-U*M[3],S=G[4]-U*G[3],E=q+or*M[3],D=k+or*G[3],tr=R[2];tr>0;)for(tr<t?(V=tr,tr=0):(V=t,tr-=t),l=M[3]-V*M[2],b=G[3]-V*G[2],x=E+tr*M[2],I=D+tr*G[2],ir=R[1];ir>0;)for(ir<t?(z=ir,ir=0):(z=t,ir-=t),f=M[2]-z*M[1],g=G[2]-z*G[1],_=x+ir*M[1],O=I+ir*G[1],er=R[0];er>0;)for(er<t?(B=er,er=0):(B=t,er-=t),W=_+er*M[0],J=O+er*G[0],v=M[1]-B*M[0],h=G[1]-B*G[0],ar=0;ar<L;ar++){for(rr=0;rr<P;rr++){for(Z=0;Z<C;Z++){for(Q=0;Q<U;Q++){for(H=0;H<V;H++){for(K=0;K<z;K++){for(X=0;X<B;X++)s(i,J,a(n(o,W))),W+=u,J+=m;W+=v,J+=h}W+=f,J+=g}W+=l,J+=b}W+=d,J+=S}W+=y,J+=w}W+=p,J+=A}}tz.exports=W7r});var nz=c((yce,oz)=>{"use strict";var J7r=zr(),X7r=Rr();function K7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br;for(br=J7r(r.shape,r.strides,e.strides),U=br.sh,J=br.sx,X=br.sy,t=X7r(r.dtype,e.dtype),K=r.offset,H=e.offset,o=r.data,i=e.data,u=J[0],h=X[0],n=r.accessors[0],s=e.accessors[1],hr=U[7];hr>0;)for(hr<t?(W=hr,hr=0):(W=t,hr-=t),D=K+hr*J[7],V=H+hr*X[7],mr=U[6];mr>0;)for(mr<t?(Y=mr,mr=0):(Y=t,mr-=t),m=J[7]-Y*J[6],x=X[7]-Y*X[6],I=D+mr*J[6],z=V+mr*X[6],dr=U[5];dr>0;)for(dr<t?($=dr,dr=0):($=t,dr-=t),p=J[6]-$*J[5],_=X[6]-$*X[5],O=I+dr*J[5],B=z+dr*X[5],yr=U[4];yr>0;)for(yr<t?(G=yr,yr=0):(G=t,yr-=t),y=J[5]-G*J[4],A=X[5]-G*X[4],j=O+yr*J[4],R=B+yr*X[4],fr=U[3];fr>0;)for(fr<t?(M=fr,fr=0):(M=t,fr-=t),d=J[4]-M*J[3],w=X[4]-M*X[3],T=j+fr*J[3],F=R+fr*X[3],lr=U[2];lr>0;)for(lr<t?(L=lr,lr=0):(L=t,lr-=t),l=J[3]-L*J[2],S=X[3]-L*X[2],q=T+lr*J[2],N=F+lr*X[2],vr=U[1];vr>0;)for(vr<t?(P=vr,vr=0):(P=t,vr-=t),f=J[2]-P*J[1],b=X[2]-P*X[1],E=q+vr*J[1],k=N+vr*X[1],ur=U[0];ur>0;)for(ur<t?(C=ur,ur=0):(C=t,ur-=t),Q=E+ur*J[0],Z=k+ur*X[0],v=J[1]-C*J[0],g=X[1]-C*X[0],sr=0;sr<W;sr++){for(nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<C;rr++)s(i,Z,a(n(o,Q))),Q+=u,Z+=h;Q+=v,Z+=g}Q+=f,Z+=b}Q+=l,Z+=S}Q+=d,Z+=w}Q+=y,Z+=A}Q+=p,Z+=_}Q+=m,Z+=x}}oz.exports=K7r});var uz=c((mce,sz)=>{"use strict";var H7r=zr(),Z7r=Rr();function Q7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr;for(Tr=H7r(r.shape,r.strides,e.strides),M=Tr.sh,Z=Tr.sx,rr=Tr.sy,t=Z7r(r.dtype,e.dtype),ar=r.offset,er=e.offset,o=r.data,i=e.data,u=Z[0],g=rr[0],n=r.accessors[0],s=e.accessors[1],_r=M[8];_r>0;)for(_r<t?(Q=_r,_r=0):(Q=t,_r-=t),F=ar+_r*Z[8],L=er+_r*rr[8],Ar=M[7];Ar>0;)for(Ar<t?(H=Ar,Ar=0):(H=t,Ar-=t),h=Z[8]-H*Z[7],q=rr[8]-H*rr[7],N=F+Ar*Z[7],P=L+Ar*rr[7],gr=M[6];gr>0;)for(gr<t?(K=gr,gr=0):(K=t,gr-=t),m=Z[7]-K*Z[6],E=rr[7]-K*rr[6],k=N+gr*Z[6],C=P+gr*rr[6],qr=M[5];qr>0;)for(qr<t?(X=qr,qr=0):(X=t,qr-=t),p=Z[6]-X*Z[5],x=rr[6]-X*rr[5],D=k+qr*Z[5],U=C+qr*rr[5],xr=M[4];xr>0;)for(xr<t?(J=xr,xr=0):(J=t,xr-=t),y=Z[5]-J*Z[4],_=rr[5]-J*rr[4],I=D+xr*Z[4],V=U+xr*rr[4],wr=M[3];wr>0;)for(wr<t?(W=wr,wr=0):(W=t,wr-=t),d=Z[4]-W*Z[3],A=rr[4]-W*rr[3],O=I+wr*Z[3],z=V+wr*rr[3],br=M[2];br>0;)for(br<t?(Y=br,br=0):(Y=t,br-=t),l=Z[3]-Y*Z[2],w=rr[3]-Y*rr[2],j=O+br*Z[2],B=z+br*rr[2],hr=M[1];hr>0;)for(hr<t?($=hr,hr=0):($=t,hr-=t),f=Z[2]-$*Z[1],S=rr[2]-$*rr[1],T=j+hr*Z[1],R=B+hr*rr[1],mr=M[0];mr>0;)for(mr<t?(G=mr,mr=0):(G=t,mr-=t),ir=T+mr*Z[0],tr=R+mr*rr[0],v=Z[1]-G*Z[0],b=rr[1]-G*rr[0],dr=0;dr<Q;dr++){for(yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++)s(i,tr,a(n(o,ir))),ir+=u,tr+=g;ir+=v,tr+=b}ir+=f,tr+=S}ir+=l,tr+=w}ir+=d,tr+=A}ir+=y,tr+=_}ir+=p,tr+=x}ir+=m,tr+=E}ir+=h,tr+=q}}sz.exports=Q7r});var fz=c((hce,vz)=>{"use strict";var rNr=zr(),eNr=Rr();function aNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr,Hr,ie,De;for(De=rNr(r.shape,r.strides,e.strides),W=De.sh,tr=De.sx,or=De.sy,t=eNr(r.dtype,e.dtype),nr=r.offset,sr=e.offset,o=r.data,i=e.data,u=tr[0],b=or[0],n=r.accessors[0],s=e.accessors[1],ie=W[9];ie>0;)for(ie<t?(ir=ie,ie=0):(ir=t,ie-=t),z=nr+ie*tr[9],Y=sr+ie*or[9],Hr=W[8];Hr>0;)for(Hr<t?(er=Hr,Hr=0):(er=t,Hr-=t),g=tr[9]-er*tr[8],j=or[9]-er*or[8],B=z+Hr*tr[8],$=Y+Hr*or[8],Vr=W[7];Vr>0;)for(Vr<t?(ar=Vr,Vr=0):(ar=t,Vr-=t),h=tr[8]-ar*tr[7],T=or[8]-ar*or[7],R=B+Vr*tr[7],G=$+Vr*or[7],Fr=W[6];Fr>0;)for(Fr<t?(rr=Fr,Fr=0):(rr=t,Fr-=t),m=tr[7]-rr*tr[6],q=or[7]-rr*or[6],F=R+Fr*tr[6],M=G+Fr*or[6],Or=W[5];Or>0;)for(Or<t?(Z=Or,Or=0):(Z=t,Or-=t),p=tr[6]-Z*tr[5],E=or[6]-Z*or[5],N=F+Or*tr[5],L=M+Or*or[5],jr=W[4];jr>0;)for(jr<t?(Q=jr,jr=0):(Q=t,jr-=t),y=tr[5]-Q*tr[4],x=or[5]-Q*or[4],k=N+jr*tr[4],P=L+jr*or[4],Tr=W[3];Tr>0;)for(Tr<t?(H=Tr,Tr=0):(H=t,Tr-=t),d=tr[4]-H*tr[3],_=or[4]-H*or[3],D=k+Tr*tr[3],C=P+Tr*or[3],_r=W[2];_r>0;)for(_r<t?(K=_r,_r=0):(K=t,_r-=t),l=tr[3]-K*tr[2],A=or[3]-K*or[2],I=D+_r*tr[2],U=C+_r*or[2],Ar=W[1];Ar>0;)for(Ar<t?(X=Ar,Ar=0):(X=t,Ar-=t),f=tr[2]-X*tr[1],w=or[2]-X*or[1],O=I+Ar*tr[1],V=U+Ar*or[1],gr=W[0];gr>0;)for(gr<t?(J=gr,gr=0):(J=t,gr-=t),ur=O+gr*tr[0],vr=V+gr*or[0],v=tr[1]-J*tr[0],S=or[1]-J*or[0],qr=0;qr<ir;qr++){for(xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++)s(i,vr,a(n(o,ur))),ur+=u,vr+=b;ur+=v,vr+=S}ur+=f,vr+=w}ur+=l,vr+=A}ur+=d,vr+=_}ur+=y,vr+=x}ur+=p,vr+=E}ur+=m,vr+=q}ur+=h,vr+=T}ur+=g,vr+=j}}vz.exports=aNr});var cz=c((gce,lz)=>{"use strict";var tNr=zr(),iNr=Rr();function oNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q;for(q=tNr(r.shape,r.strides,e.strides),d=q.sh,m=q.sx,h=q.sy,t=iNr(r.dtype,e.dtype),g=r.offset,b=e.offset,o=r.data,i=e.data,n=m[0],u=h[0],E=d[1];E>0;)for(E<t?(p=E,E=0):(p=t,E-=t),f=g+E*m[1],l=b+E*h[1],x=d[0];x>0;)for(x<t?(y=x,x=0):(y=t,x-=t),S=f+x*m[0],w=l+x*h[0],s=m[1]-y*m[0],v=h[1]-y*h[0],_=0;_<p;_++){for(A=0;A<y;A++)i[w]=a(o[S]),S+=n,w+=u;S+=s,w+=v}}lz.exports=oNr});var pz=c((bce,dz)=>{"use strict";var nNr=zr(),sNr=Rr();function uNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N;for(N=nNr(r.shape,r.strides,e.strides),h=N.sh,w=N.sx,A=N.sy,t=sNr(r.dtype,e.dtype),_=r.offset,x=e.offset,o=r.data,i=e.data,n=w[0],v=A[0],k=h[2];k>0;)for(k<t?(S=k,k=0):(S=t,k-=t),y=_+k*w[2],m=x+k*A[2],D=h[1];D>0;)for(D<t?(b=D,D=0):(b=t,D-=t),u=w[2]-b*w[1],l=A[2]-b*A[1],d=y+D*w[1],p=m+D*A[1],I=h[0];I>0;)for(I<t?(g=I,I=0):(g=t,I-=t),E=d+I*w[0],q=p+I*A[0],s=w[1]-g*w[0],f=A[1]-g*A[0],O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++)i[q]=a(o[E]),E+=n,q+=v;E+=s,q+=f}E+=u,q+=l}}dz.exports=uNr});var mz=c((xce,yz)=>{"use strict";var vNr=zr(),fNr=Rr();function lNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C;for(C=vNr(r.shape,r.strides,e.strides),w=C.sh,q=C.sx,T=C.sy,t=fNr(r.dtype,e.dtype),j=r.offset,O=e.offset,o=r.data,i=e.data,n=q[0],f=T[0],U=w[3];U>0;)for(U<t?(E=U,U=0):(E=t,U-=t),h=j+U*q[3],S=O+U*T[3],V=w[2];V>0;)for(V<t?(x=V,V=0):(x=t,V-=t),v=q[3]-x*q[2],y=T[3]-x*T[2],m=h+V*q[2],b=S+V*T[2],z=w[1];z>0;)for(z<t?(_=z,z=0):(_=t,z-=t),u=q[2]-_*q[1],d=T[2]-_*T[1],p=m+z*q[1],g=b+z*T[1],B=w[0];B>0;)for(B<t?(A=B,B=0):(A=t,B-=t),I=p+B*q[0],D=g+B*T[0],s=q[1]-A*q[0],l=T[1]-A*T[0],R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++)i[D]=a(o[I]),I+=n,D+=f;I+=s,D+=l}I+=u,D+=d}I+=v,D+=y}}yz.exports=lNr});var gz=c((qce,hz)=>{"use strict";var cNr=zr(),dNr=Rr();function pNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W;for(W=cNr(r.shape,r.strides,e.strides),E=W.sh,D=W.sx,k=W.sy,t=dNr(r.dtype,e.dtype),N=r.offset,F=e.offset,o=r.data,i=e.data,n=D[0],l=k[0],Y=E[4];Y>0;)for(Y<t?(I=Y,Y=0):(I=t,Y-=t),S=N+Y*D[4],x=F+Y*k[4],$=E[3];$>0;)for($<t?(O=$,$=0):(O=t,$-=t),f=D[4]-O*D[3],m=k[4]-O*k[3],b=S+$*D[3],_=x+$*k[3],G=E[2];G>0;)for(G<t?(j=G,G=0):(j=t,G-=t),v=D[3]-j*D[2],p=k[3]-j*k[2],g=b+G*D[2],A=_+G*k[2],M=E[1];M>0;)for(M<t?(T=M,M=0):(T=t,M-=t),u=D[2]-T*D[1],y=k[2]-T*k[1],h=g+M*D[1],w=A+M*k[1],L=E[0];L>0;)for(L<t?(q=L,L=0):(q=t,L-=t),R=h+L*D[0],B=w+L*k[0],s=D[1]-q*D[0],d=k[1]-q*k[0],P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++)i[B]=a(o[R]),R+=n,B+=l;R+=s,B+=d}R+=u,B+=y}R+=v,B+=p}R+=f,B+=m}}hz.exports=pNr});var xz=c((wce,bz)=>{"use strict";var yNr=zr(),mNr=Rr();function hNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr;for(rr=yNr(r.shape,r.strides,e.strides),O=rr.sh,B=rr.sx,z=rr.sy,t=mNr(r.dtype,e.dtype),V=r.offset,U=e.offset,o=r.data,i=e.data,n=B[0],d=z[0],Z=O[5];Z>0;)for(Z<t?(R=Z,Z=0):(R=t,Z-=t),_=V+Z*B[5],j=U+Z*z[5],Q=O[4];Q>0;)for(Q<t?(F=Q,Q=0):(F=t,Q-=t),l=B[5]-F*B[4],g=z[5]-F*z[4],A=_+Q*B[4],T=j+Q*z[4],H=O[3];H>0;)for(H<t?(N=H,H=0):(N=t,H-=t),f=B[4]-N*B[3],h=z[4]-N*z[3],w=A+H*B[3],q=T+H*z[3],K=O[2];K>0;)for(K<t?(k=K,K=0):(k=t,K-=t),v=B[3]-k*B[2],m=z[3]-k*z[2],S=w+K*B[2],E=q+K*z[2],X=O[1];X>0;)for(X<t?(D=X,X=0):(D=t,X-=t),u=B[2]-D*B[1],p=z[2]-D*z[1],b=S+X*B[1],x=E+X*z[1],J=O[0];J>0;)for(J<t?(I=J,J=0):(I=t,J-=t),C=b+J*B[0],P=x+J*z[0],s=B[1]-I*B[0],y=z[1]-I*z[0],W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++)i[P]=a(o[C]),C+=n,P+=d;C+=s,P+=y}C+=u,P+=p}C+=v,P+=m}C+=f,P+=h}C+=l,P+=g}}bz.exports=hNr});var wz=c((Sce,qz)=>{"use strict";var gNr=zr(),bNr=Rr();function xNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr;for(sr=gNr(r.shape,r.strides,e.strides),N=sr.sh,P=sr.sx,L=sr.sy,t=bNr(r.dtype,e.dtype),M=r.offset,G=e.offset,o=r.data,i=e.data,n=P[0],y=L[0],nr=N[6];nr>0;)for(nr<t?(C=nr,nr=0):(C=t,nr-=t),q=M+nr*P[6],k=G+nr*L[6],or=N[5];or>0;)for(or<t?(U=or,or=0):(U=t,or-=t),d=P[6]-U*P[5],S=L[6]-U*L[5],E=q+or*P[5],D=k+or*L[5],tr=N[4];tr>0;)for(tr<t?(V=tr,tr=0):(V=t,tr-=t),l=P[5]-V*P[4],b=L[5]-V*L[4],x=E+tr*P[4],I=D+tr*L[4],ir=N[3];ir>0;)for(ir<t?(z=ir,ir=0):(z=t,ir-=t),f=P[4]-z*P[3],g=L[4]-z*L[3],_=x+ir*P[3],O=I+ir*L[3],er=N[2];er>0;)for(er<t?(B=er,er=0):(B=t,er-=t),v=P[3]-B*P[2],h=L[3]-B*L[2],A=_+er*P[2],j=O+er*L[2],ar=N[1];ar>0;)for(ar<t?(R=ar,ar=0):(R=t,ar-=t),u=P[2]-R*P[1],m=L[2]-R*L[1],w=A+ar*P[1],T=j+ar*L[1],rr=N[0];rr>0;)for(rr<t?(F=rr,rr=0):(F=t,rr-=t),$=w+rr*P[0],Y=T+rr*L[0],s=P[1]-F*P[0],p=L[1]-F*L[0],Z=0;Z<C;Z++){for(Q=0;Q<U;Q++){for(H=0;H<V;H++){for(K=0;K<z;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++)i[Y]=a(o[$]),$+=n,Y+=y;$+=s,Y+=p}$+=u,Y+=m}$+=v,Y+=h}$+=f,Y+=g}$+=l,Y+=b}$+=d,Y+=S}}qz.exports=xNr});var Ez=c((Ece,Sz)=>{"use strict";var qNr=zr(),wNr=Rr();function SNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr;for(mr=qNr(r.shape,r.strides,e.strides),z=mr.sh,Y=mr.sx,W=mr.sy,t=wNr(r.dtype,e.dtype),J=r.offset,X=e.offset,o=r.data,i=e.data,n=Y[0],p=W[0],dr=z[7];dr>0;)for(dr<t?($=dr,dr=0):($=t,dr-=t),O=J+dr*Y[7],B=X+dr*W[7],yr=z[6];yr>0;)for(yr<t?(G=yr,yr=0):(G=t,yr-=t),y=Y[7]-G*Y[6],A=W[7]-G*W[6],j=O+yr*Y[6],R=B+yr*W[6],fr=z[5];fr>0;)for(fr<t?(M=fr,fr=0):(M=t,fr-=t),d=Y[6]-M*Y[5],w=W[6]-M*W[5],T=j+fr*Y[5],F=R+fr*W[5],lr=z[4];lr>0;)for(lr<t?(L=lr,lr=0):(L=t,lr-=t),l=Y[5]-L*Y[4],S=W[5]-L*W[4],q=T+lr*Y[4],N=F+lr*W[4],vr=z[3];vr>0;)for(vr<t?(P=vr,vr=0):(P=t,vr-=t),f=Y[4]-P*Y[3],b=W[4]-P*W[3],E=q+vr*Y[3],k=N+vr*W[3],ur=z[2];ur>0;)for(ur<t?(C=ur,ur=0):(C=t,ur-=t),v=Y[3]-C*Y[2],g=W[3]-C*W[2],x=E+ur*Y[2],D=k+ur*W[2],sr=z[1];sr>0;)for(sr<t?(U=sr,sr=0):(U=t,sr-=t),u=Y[2]-U*Y[1],h=W[2]-U*W[1],_=x+sr*Y[1],I=D+sr*W[1],nr=z[0];nr>0;)for(nr<t?(V=nr,nr=0):(V=t,nr-=t),K=_+nr*Y[0],H=I+nr*W[0],s=Y[1]-V*Y[0],m=W[1]-V*W[0],or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<U;Z++){for(Q=0;Q<V;Q++)i[H]=a(o[K]),K+=n,H+=p;K+=s,H+=m}K+=u,H+=h}K+=v,H+=g}K+=f,H+=b}K+=l,H+=S}K+=d,H+=w}K+=y,H+=A}}Sz.exports=SNr});var _z=c((Ace,Az)=>{"use strict";var ENr=zr(),ANr=Rr();function _Nr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar;for(Ar=ENr(r.shape,r.strides,e.strides),P=Ar.sh,H=Ar.sx,Q=Ar.sy,t=ANr(r.dtype,e.dtype),Z=r.offset,rr=e.offset,o=r.data,i=e.data,n=H[0],m=Q[0],gr=P[8];gr>0;)for(gr<t?(K=gr,gr=0):(K=t,gr-=t),k=Z+gr*H[8],C=rr+gr*Q[8],qr=P[7];qr>0;)for(qr<t?(X=qr,qr=0):(X=t,qr-=t),p=H[8]-X*H[7],x=Q[8]-X*Q[7],D=k+qr*H[7],U=C+qr*Q[7],xr=P[6];xr>0;)for(xr<t?(J=xr,xr=0):(J=t,xr-=t),y=H[7]-J*H[6],_=Q[7]-J*Q[6],I=D+xr*H[6],V=U+xr*Q[6],wr=P[5];wr>0;)for(wr<t?(W=wr,wr=0):(W=t,wr-=t),d=H[6]-W*H[5],A=Q[6]-W*Q[5],O=I+wr*H[5],z=V+wr*Q[5],br=P[4];br>0;)for(br<t?(Y=br,br=0):(Y=t,br-=t),l=H[5]-Y*H[4],w=Q[5]-Y*Q[4],j=O+br*H[4],B=z+br*Q[4],hr=P[3];hr>0;)for(hr<t?($=hr,hr=0):($=t,hr-=t),f=H[4]-$*H[3],S=Q[4]-$*Q[3],T=j+hr*H[3],R=B+hr*Q[3],mr=P[2];mr>0;)for(mr<t?(G=mr,mr=0):(G=t,mr-=t),v=H[3]-G*H[2],b=Q[3]-G*Q[2],q=T+mr*H[2],F=R+mr*Q[2],dr=P[1];dr>0;)for(dr<t?(M=dr,dr=0):(M=t,dr-=t),u=H[2]-M*H[1],g=Q[2]-M*Q[1],E=q+dr*H[1],N=F+dr*Q[1],yr=P[0];yr>0;)for(yr<t?(L=yr,yr=0):(L=t,yr-=t),ar=E+yr*H[0],er=N+yr*Q[0],s=H[1]-L*H[0],h=Q[1]-L*Q[0],fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++){for(ir=0;ir<L;ir++)i[er]=a(o[ar]),ar+=n,er+=m;ar+=s,er+=h}ar+=u,er+=g}ar+=v,er+=b}ar+=f,er+=S}ar+=l,er+=w}ar+=d,er+=A}ar+=y,er+=_}ar+=p,er+=x}}Az.exports=_Nr});var jz=c((_ce,Tz)=>{"use strict";var TNr=zr(),jNr=Rr();function INr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr,Hr;for(Hr=TNr(r.shape,r.strides,e.strides),$=Hr.sh,er=Hr.sx,ir=Hr.sy,t=jNr(r.dtype,e.dtype),tr=r.offset,or=e.offset,o=r.data,i=e.data,n=er[0],h=ir[0],Vr=$[9];Vr>0;)for(Vr<t?(ar=Vr,Vr=0):(ar=t,Vr-=t),R=tr+Vr*er[9],G=or+Vr*ir[9],Fr=$[8];Fr>0;)for(Fr<t?(rr=Fr,Fr=0):(rr=t,Fr-=t),m=er[9]-rr*er[8],q=ir[9]-rr*ir[8],F=R+Fr*er[8],M=G+Fr*ir[8],Or=$[7];Or>0;)for(Or<t?(Z=Or,Or=0):(Z=t,Or-=t),p=er[8]-Z*er[7],E=ir[8]-Z*ir[7],N=F+Or*er[7],L=M+Or*ir[7],jr=$[6];jr>0;)for(jr<t?(Q=jr,jr=0):(Q=t,jr-=t),y=er[7]-Q*er[6],x=ir[7]-Q*ir[6],k=N+jr*er[6],P=L+jr*ir[6],Tr=$[5];Tr>0;)for(Tr<t?(H=Tr,Tr=0):(H=t,Tr-=t),d=er[6]-H*er[5],_=ir[6]-H*ir[5],D=k+Tr*er[5],C=P+Tr*ir[5],_r=$[4];_r>0;)for(_r<t?(K=_r,_r=0):(K=t,_r-=t),l=er[5]-K*er[4],A=ir[5]-K*ir[4],I=D+_r*er[4],U=C+_r*ir[4],Ar=$[3];Ar>0;)for(Ar<t?(X=Ar,Ar=0):(X=t,Ar-=t),f=er[4]-X*er[3],w=ir[4]-X*ir[3],O=I+Ar*er[3],V=U+Ar*ir[3],gr=$[2];gr>0;)for(gr<t?(J=gr,gr=0):(J=t,gr-=t),v=er[3]-J*er[2],S=ir[3]-J*ir[2],j=O+gr*er[2],z=V+gr*ir[2],qr=$[1];qr>0;)for(qr<t?(W=qr,qr=0):(W=t,qr-=t),u=er[2]-W*er[1],b=ir[2]-W*ir[1],T=j+qr*er[1],B=z+qr*ir[1],xr=$[0];xr>0;)for(xr<t?(Y=xr,xr=0):(Y=t,xr-=t),nr=T+xr*er[0],sr=B+xr*ir[0],s=er[1]-Y*er[0],g=ir[1]-Y*ir[0],wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(vr=0;vr<W;vr++){for(ur=0;ur<Y;ur++)i[sr]=a(o[nr]),nr+=n,sr+=h;nr+=s,sr+=g}nr+=u,sr+=b}nr+=v,sr+=S}nr+=f,sr+=w}nr+=l,sr+=A}nr+=d,sr+=_}nr+=y,sr+=x}nr+=p,sr+=E}nr+=m,sr+=q}}Tz.exports=INr});var Oz=c((Tce,Iz)=>{"use strict";function ONr(r,e,a){e.accessors[1](e.data,e.offset,a(r.accessors[0](r.data,r.offset)))}Iz.exports=ONr});var Dz=c((jce,Nz)=>{"use strict";function NNr(r,e,a){var t,o,i,n,s,u,v,f,l,d;for(v=r.shape[0],s=r.strides[0],u=e.strides[0],f=r.offset,l=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],d=0;d<v;d++)n(o,l,a(i(t,f))),f+=s,l+=u}Nz.exports=NNr});var Bz=c((Ice,kz)=>{"use strict";function DNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S;for(l=r.shape,p=r.strides,m=e.strides,r.order==="row-major"?(d=l[1],y=l[0],s=p[1],u=p[0]-d*p[1],v=m[1],f=m[0]-d*m[1]):(d=l[0],y=l[1],s=p[0],u=p[1]-d*p[0],v=m[0],f=m[1]-d*m[0]),h=r.offset,g=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],S=0;S<y;S++){for(b=0;b<d;b++)n(o,g,a(i(t,h))),h+=s,g+=v;h+=u,g+=f}}kz.exports=DNr});var Rz=c((Oce,Fz)=>{"use strict";function kNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x;for(y=r.shape,g=r.strides,b=e.strides,r.order==="row-major"?(p=y[2],m=y[1],h=y[0],s=g[2],u=g[1]-p*g[2],v=g[0]-m*g[1],f=b[2],l=b[1]-p*b[2],d=b[0]-m*b[1]):(p=y[0],m=y[1],h=y[2],s=g[0],u=g[1]-p*g[0],v=g[2]-m*g[1],f=b[0],l=b[1]-p*b[0],d=b[2]-m*b[1]),S=r.offset,w=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],x=0;x<h;x++){for(_=0;_<m;_++){for(A=0;A<p;A++)n(o,w,a(i(t,S))),S+=s,w+=f;S+=u,w+=l}S+=v,w+=d}}Fz.exports=kNr});var Vz=c((Nce,zz)=>{"use strict";function BNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j;for(m=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(h=m[3],g=m[2],b=m[1],S=m[0],s=w[3],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-b*w[1],l=A[3],d=A[2]-h*A[3],y=A[1]-g*A[2],p=A[0]-b*A[1]):(h=m[0],g=m[1],b=m[2],S=m[3],s=w[0],u=w[1]-h*w[0],v=w[2]-g*w[1],f=w[3]-b*w[2],l=A[0],d=A[1]-h*A[0],y=A[2]-g*A[1],p=A[3]-b*A[2]),_=r.offset,x=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],j=0;j<S;j++){for(T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++)n(o,x,a(i(t,_))),_+=s,x+=l;_+=u,x+=d}_+=v,x+=y}_+=f,x+=p}}zz.exports=BNr});var Cz=c((Dce,Uz)=>{"use strict";function FNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k;for(g=r.shape,x=r.strides,E=e.strides,r.order==="row-major"?(b=g[4],S=g[3],w=g[2],A=g[1],_=g[0],s=x[4],u=x[3]-b*x[4],v=x[2]-S*x[3],f=x[1]-w*x[2],l=x[0]-A*x[1],d=E[4],y=E[3]-b*E[4],p=E[2]-S*E[3],m=E[1]-w*E[2],h=E[0]-A*E[1]):(b=g[0],S=g[1],w=g[2],A=g[3],_=g[4],s=x[0],u=x[1]-b*x[0],v=x[2]-S*x[1],f=x[3]-w*x[2],l=x[4]-A*x[3],d=E[0],y=E[1]-b*E[0],p=E[2]-S*E[1],m=E[3]-w*E[2],h=E[4]-A*E[3]),q=r.offset,T=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++)n(o,T,a(i(t,q))),q+=s,T+=d;q+=u,T+=y}q+=v,T+=p}q+=f,T+=m}q+=l,T+=h}}Uz.exports=FNr});var Lz=c((kce,Pz)=>{"use strict";function RNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B;for(S=r.shape,T=r.strides,j=e.strides,r.order==="row-major"?(w=S[5],A=S[4],_=S[3],x=S[2],E=S[1],q=S[0],s=T[5],u=T[4]-w*T[5],v=T[3]-A*T[4],f=T[2]-_*T[3],l=T[1]-x*T[2],d=T[0]-E*T[1],y=j[5],p=j[4]-w*j[5],m=j[3]-A*j[4],h=j[2]-_*j[3],g=j[1]-x*j[2],b=j[0]-E*j[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],q=S[5],s=T[0],u=T[1]-w*T[0],v=T[2]-A*T[1],f=T[3]-_*T[2],l=T[4]-x*T[3],d=T[5]-E*T[4],y=j[0],p=j[1]-w*j[0],m=j[2]-A*j[1],h=j[3]-_*j[2],g=j[4]-x*j[3],b=j[5]-E*j[4]),O=r.offset,I=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)n(o,I,a(i(t,O))),O+=s,I+=y;O+=u,I+=p}O+=v,I+=m}O+=f,I+=h}O+=l,I+=g}O+=d,I+=b}}Pz.exports=RNr});var Gz=c((Bce,Mz)=>{"use strict";function zNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C;for(A=r.shape,I=r.strides,D=e.strides,r.order==="row-major"?(_=A[6],x=A[5],E=A[4],q=A[3],T=A[2],j=A[1],O=A[0],s=I[6],u=I[5]-_*I[6],v=I[4]-x*I[5],f=I[3]-E*I[4],l=I[2]-q*I[3],d=I[1]-T*I[2],y=I[0]-j*I[1],p=D[6],m=D[5]-_*D[6],h=D[4]-x*D[5],g=D[3]-E*D[4],b=D[2]-q*D[3],S=D[1]-T*D[2],w=D[0]-j*D[1]):(_=A[0],x=A[1],E=A[2],q=A[3],T=A[4],j=A[5],O=A[6],s=I[0],u=I[1]-_*I[0],v=I[2]-x*I[1],f=I[3]-E*I[2],l=I[4]-q*I[3],d=I[5]-T*I[4],y=I[6]-j*I[5],p=D[0],m=D[1]-_*D[0],h=D[2]-x*D[1],g=D[3]-E*D[2],b=D[4]-q*D[3],S=D[5]-T*D[4],w=D[6]-j*D[5]),k=r.offset,N=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++)n(o,N,a(i(t,k))),k+=s,N+=p;k+=u,N+=m}k+=v,N+=h}k+=f,N+=g}k+=l,N+=b}k+=d,N+=S}k+=y,N+=w}}Mz.exports=zNr});var $z=c((Fce,Yz)=>{"use strict";function VNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G;for(x=r.shape,N=r.strides,F=e.strides,r.order==="row-major"?(E=x[7],q=x[6],T=x[5],j=x[4],O=x[3],I=x[2],D=x[1],k=x[0],s=N[7],u=N[6]-E*N[7],v=N[5]-q*N[6],f=N[4]-T*N[5],l=N[3]-j*N[4],d=N[2]-O*N[3],y=N[1]-I*N[2],p=N[0]-D*N[1],m=F[7],h=F[6]-E*F[7],g=F[5]-q*F[6],b=F[4]-T*F[5],S=F[3]-j*F[4],w=F[2]-O*F[3],A=F[1]-I*F[2],_=F[0]-D*F[1]):(E=x[0],q=x[1],T=x[2],j=x[3],O=x[4],I=x[5],D=x[6],k=x[7],s=N[0],u=N[1]-E*N[0],v=N[2]-q*N[1],f=N[3]-T*N[2],l=N[4]-j*N[3],d=N[5]-O*N[4],y=N[6]-I*N[5],p=N[7]-D*N[6],m=F[0],h=F[1]-E*F[0],g=F[2]-q*F[1],b=F[3]-T*F[2],S=F[4]-j*F[3],w=F[5]-O*F[4],A=F[6]-I*F[5],_=F[7]-D*F[6]),R=r.offset,B=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++)n(o,B,a(i(t,R))),R+=s,B+=m;R+=u,B+=h}R+=v,B+=g}R+=f,B+=b}R+=l,B+=S}R+=d,B+=w}R+=y,B+=A}R+=p,B+=_}}Yz.exports=VNr});var Jz=c((Rce,Wz)=>{"use strict";function UNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J;for(q=r.shape,B=r.strides,z=e.strides,r.order==="row-major"?(T=q[8],j=q[7],O=q[6],I=q[5],D=q[4],k=q[3],N=q[2],F=q[1],R=q[0],s=B[8],u=B[7]-T*B[8],v=B[6]-j*B[7],f=B[5]-O*B[6],l=B[4]-I*B[5],d=B[3]-D*B[4],y=B[2]-k*B[3],p=B[1]-N*B[2],m=B[0]-F*B[1],h=z[8],g=z[7]-T*z[8],b=z[6]-j*z[7],S=z[5]-O*z[6],w=z[4]-I*z[5],A=z[3]-D*z[4],_=z[2]-k*z[3],x=z[1]-N*z[2],E=z[0]-F*z[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],R=q[8],s=B[0],u=B[1]-T*B[0],v=B[2]-j*B[1],f=B[3]-O*B[2],l=B[4]-I*B[3],d=B[5]-D*B[4],y=B[6]-k*B[5],p=B[7]-N*B[6],m=B[8]-F*B[7],h=z[0],g=z[1]-T*z[0],b=z[2]-j*z[1],S=z[3]-O*z[2],w=z[4]-I*z[3],A=z[5]-D*z[4],_=z[6]-k*z[5],x=z[7]-N*z[6],E=z[8]-F*z[7]),V=r.offset,U=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++)n(o,U,a(i(t,V))),V+=s,U+=h;V+=u,U+=g}V+=v,U+=b}V+=f,U+=S}V+=l,U+=w}V+=d,U+=A}V+=y,U+=_}V+=p,U+=x}V+=m,U+=E}}Wz.exports=UNr});var Kz=c((zce,Xz)=>{"use strict";function CNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q;for(j=r.shape,U=r.strides,C=e.strides,r.order==="row-major"?(O=j[9],I=j[8],D=j[7],k=j[6],N=j[5],F=j[4],R=j[3],B=j[2],z=j[1],V=j[0],s=U[9],u=U[8]-O*U[9],v=U[7]-I*U[8],f=U[6]-D*U[7],l=U[5]-k*U[6],d=U[4]-N*U[5],y=U[3]-F*U[4],p=U[2]-R*U[3],m=U[1]-B*U[2],h=U[0]-z*U[1],g=C[9],b=C[8]-O*C[9],S=C[7]-I*C[8],w=C[6]-D*C[7],A=C[5]-k*C[6],_=C[4]-N*C[5],x=C[3]-F*C[4],E=C[2]-R*C[3],q=C[1]-B*C[2],T=C[0]-z*C[1]):(O=j[0],I=j[1],D=j[2],k=j[3],N=j[4],F=j[5],R=j[6],B=j[7],z=j[8],V=j[9],s=U[0],u=U[1]-O*U[0],v=U[2]-I*U[1],f=U[3]-D*U[2],l=U[4]-k*U[3],d=U[5]-N*U[4],y=U[6]-F*U[5],p=U[7]-R*U[6],m=U[8]-B*U[7],h=U[9]-z*U[8],g=C[0],b=C[1]-O*C[0],S=C[2]-I*C[1],w=C[3]-D*C[2],A=C[4]-k*C[3],_=C[5]-N*C[4],x=C[6]-F*C[5],E=C[7]-R*C[6],q=C[8]-B*C[7],T=C[9]-z*C[8]),P=r.offset,L=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],Q=0;Q<V;Q++){for(H=0;H<z;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++)n(o,L,a(i(t,P))),P+=s,L+=g;P+=u,L+=b}P+=v,L+=S}P+=f,L+=w}P+=l,L+=A}P+=d,L+=_}P+=y,L+=x}P+=p,L+=E}P+=m,L+=q}P+=h,L+=T}}Xz.exports=CNr});var rV=c((Vce,Qz)=>{"use strict";var PNr=Jr(),Hz=na(),Zz="throw";function LNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;for(f=r.shape,s=PNr(f),t=r.data,o=e.data,l=r.strides,d=e.strides,y=r.offset,p=e.offset,i=r.order,n=e.order,u=r.accessors[0],v=e.accessors[1],g=0;g<s;g++)m=Hz(f,l,y,i,g,Zz),h=Hz(f,d,p,n,g,Zz),v(o,h,a(u(t,m)))}Qz.exports=LNr});var aV=c((Uce,eV)=>{"use strict";function MNr(r,e,a){e.data[e.offset]=a(r.data[r.offset])}eV.exports=MNr});var iV=c((Cce,tV)=>{"use strict";function GNr(r,e,a){var t,o,i,n,s,u,v,f;for(s=r.shape[0],i=r.strides[0],n=e.strides[0],u=r.offset,v=e.offset,t=r.data,o=e.data,f=0;f<s;f++)o[v]=a(t[u]),u+=i,v+=n}tV.exports=GNr});var nV=c((Pce,oV)=>{"use strict";function YNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;for(v=r.shape,d=r.strides,y=e.strides,r.order==="row-major"?(f=v[1],l=v[0],i=d[1],n=d[0]-f*d[1],s=y[1],u=y[0]-f*y[1]):(f=v[0],l=v[1],i=d[0],n=d[1]-f*d[0],s=y[0],u=y[1]-f*y[0]),p=r.offset,m=e.offset,t=r.data,o=e.data,g=0;g<l;g++){for(h=0;h<f;h++)o[m]=a(t[p]),p+=i,m+=s;p+=n,m+=u}}oV.exports=YNr});var uV=c((Lce,sV)=>{"use strict";function $Nr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A;for(l=r.shape,m=r.strides,h=e.strides,r.order==="row-major"?(d=l[2],y=l[1],p=l[0],i=m[2],n=m[1]-d*m[2],s=m[0]-y*m[1],u=h[2],v=h[1]-d*h[2],f=h[0]-y*h[1]):(d=l[0],y=l[1],p=l[2],i=m[0],n=m[1]-d*m[0],s=m[2]-y*m[1],u=h[0],v=h[1]-d*h[0],f=h[2]-y*h[1]),g=r.offset,b=e.offset,t=r.data,o=e.data,A=0;A<p;A++){for(w=0;w<y;w++){for(S=0;S<d;S++)o[b]=a(t[g]),g+=i,b+=u;g+=n,b+=v}g+=s,b+=f}}sV.exports=$Nr});var fV=c((Mce,vV)=>{"use strict";function WNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q;for(y=r.shape,b=r.strides,S=e.strides,r.order==="row-major"?(p=y[3],m=y[2],h=y[1],g=y[0],i=b[3],n=b[2]-p*b[3],s=b[1]-m*b[2],u=b[0]-h*b[1],v=S[3],f=S[2]-p*S[3],l=S[1]-m*S[2],d=S[0]-h*S[1]):(p=y[0],m=y[1],h=y[2],g=y[3],i=b[0],n=b[1]-p*b[0],s=b[2]-m*b[1],u=b[3]-h*b[2],v=S[0],f=S[1]-p*S[0],l=S[2]-m*S[1],d=S[3]-h*S[2]),w=r.offset,A=e.offset,t=r.data,o=e.data,q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++)o[A]=a(t[w]),w+=i,A+=v;w+=n,A+=f}w+=s,A+=l}w+=u,A+=d}}vV.exports=WNr});var cV=c((Gce,lV)=>{"use strict";function JNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(m=r.shape,A=r.strides,_=e.strides,r.order==="row-major"?(h=m[4],g=m[3],b=m[2],S=m[1],w=m[0],i=A[4],n=A[3]-h*A[4],s=A[2]-g*A[3],u=A[1]-b*A[2],v=A[0]-S*A[1],f=_[4],l=_[3]-h*_[4],d=_[2]-g*_[3],y=_[1]-b*_[2],p=_[0]-S*_[1]):(h=m[0],g=m[1],b=m[2],S=m[3],w=m[4],i=A[0],n=A[1]-h*A[0],s=A[2]-g*A[1],u=A[3]-b*A[2],v=A[4]-S*A[3],f=_[0],l=_[1]-h*_[0],d=_[2]-g*_[1],y=_[3]-b*_[2],p=_[4]-S*_[3]),x=r.offset,E=e.offset,t=r.data,o=e.data,I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++)o[E]=a(t[x]),x+=i,E+=f;x+=n,E+=l}x+=s,E+=d}x+=u,E+=y}x+=v,E+=p}}lV.exports=JNr});var pV=c((Yce,dV)=>{"use strict";function XNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F;for(g=r.shape,E=r.strides,q=e.strides,r.order==="row-major"?(b=g[5],S=g[4],w=g[3],A=g[2],_=g[1],x=g[0],i=E[5],n=E[4]-b*E[5],s=E[3]-S*E[4],u=E[2]-w*E[3],v=E[1]-A*E[2],f=E[0]-_*E[1],l=q[5],d=q[4]-b*q[5],y=q[3]-S*q[4],p=q[2]-w*q[3],m=q[1]-A*q[2],h=q[0]-_*q[1]):(b=g[0],S=g[1],w=g[2],A=g[3],_=g[4],x=g[5],i=E[0],n=E[1]-b*E[0],s=E[2]-S*E[1],u=E[3]-w*E[2],v=E[4]-A*E[3],f=E[5]-_*E[4],l=q[0],d=q[1]-b*q[0],y=q[2]-S*q[1],p=q[3]-w*q[2],m=q[4]-A*q[3],h=q[5]-_*q[4]),T=r.offset,j=e.offset,t=r.data,o=e.data,F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++)o[j]=a(t[T]),T+=i,j+=l;T+=n,j+=d}T+=s,j+=y}T+=u,j+=p}T+=v,j+=m}T+=f,j+=h}}dV.exports=XNr});var mV=c(($ce,yV)=>{"use strict";function KNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V;for(S=r.shape,j=r.strides,O=e.strides,r.order==="row-major"?(w=S[6],A=S[5],_=S[4],x=S[3],E=S[2],q=S[1],T=S[0],i=j[6],n=j[5]-w*j[6],s=j[4]-A*j[5],u=j[3]-_*j[4],v=j[2]-x*j[3],f=j[1]-E*j[2],l=j[0]-q*j[1],d=O[6],y=O[5]-w*O[6],p=O[4]-A*O[5],m=O[3]-_*O[4],h=O[2]-x*O[3],g=O[1]-E*O[2],b=O[0]-q*O[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],q=S[5],T=S[6],i=j[0],n=j[1]-w*j[0],s=j[2]-A*j[1],u=j[3]-_*j[2],v=j[4]-x*j[3],f=j[5]-E*j[4],l=j[6]-q*j[5],d=O[0],y=O[1]-w*O[0],p=O[2]-A*O[1],m=O[3]-_*O[2],h=O[4]-x*O[3],g=O[5]-E*O[4],b=O[6]-q*O[5]),I=r.offset,D=e.offset,t=r.data,o=e.data,V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++)o[D]=a(t[I]),I+=i,D+=d;I+=n,D+=y}I+=s,D+=p}I+=u,D+=m}I+=v,D+=h}I+=f,D+=g}I+=l,D+=b}}yV.exports=KNr});var gV=c((Wce,hV)=>{"use strict";function HNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L;for(A=r.shape,D=r.strides,k=e.strides,r.order==="row-major"?(_=A[7],x=A[6],E=A[5],q=A[4],T=A[3],j=A[2],O=A[1],I=A[0],i=D[7],n=D[6]-_*D[7],s=D[5]-x*D[6],u=D[4]-E*D[5],v=D[3]-q*D[4],f=D[2]-T*D[3],l=D[1]-j*D[2],d=D[0]-O*D[1],y=k[7],p=k[6]-_*k[7],m=k[5]-x*k[6],h=k[4]-E*k[5],g=k[3]-q*k[4],b=k[2]-T*k[3],S=k[1]-j*k[2],w=k[0]-O*k[1]):(_=A[0],x=A[1],E=A[2],q=A[3],T=A[4],j=A[5],O=A[6],I=A[7],i=D[0],n=D[1]-_*D[0],s=D[2]-x*D[1],u=D[3]-E*D[2],v=D[4]-q*D[3],f=D[5]-T*D[4],l=D[6]-j*D[5],d=D[7]-O*D[6],y=k[0],p=k[1]-_*k[0],m=k[2]-x*k[1],h=k[3]-E*k[2],g=k[4]-q*k[3],b=k[5]-T*k[4],S=k[6]-j*k[5],w=k[7]-O*k[6]),N=r.offset,F=e.offset,t=r.data,o=e.data,L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++)o[F]=a(t[N]),N+=i,F+=y;N+=n,F+=p}N+=s,F+=m}N+=u,F+=h}N+=v,F+=g}N+=f,F+=b}N+=l,F+=S}N+=d,F+=w}}hV.exports=HNr});var xV=c((Jce,bV)=>{"use strict";function ZNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y;for(x=r.shape,F=r.strides,R=e.strides,r.order==="row-major"?(E=x[8],q=x[7],T=x[6],j=x[5],O=x[4],I=x[3],D=x[2],k=x[1],N=x[0],i=F[8],n=F[7]-E*F[8],s=F[6]-q*F[7],u=F[5]-T*F[6],v=F[4]-j*F[5],f=F[3]-O*F[4],l=F[2]-I*F[3],d=F[1]-D*F[2],y=F[0]-k*F[1],p=R[8],m=R[7]-E*R[8],h=R[6]-q*R[7],g=R[5]-T*R[6],b=R[4]-j*R[5],S=R[3]-O*R[4],w=R[2]-I*R[3],A=R[1]-D*R[2],_=R[0]-k*R[1]):(E=x[0],q=x[1],T=x[2],j=x[3],O=x[4],I=x[5],D=x[6],k=x[7],N=x[8],i=F[0],n=F[1]-E*F[0],s=F[2]-q*F[1],u=F[3]-T*F[2],v=F[4]-j*F[3],f=F[5]-O*F[4],l=F[6]-I*F[5],d=F[7]-D*F[6],y=F[8]-k*F[7],p=R[0],m=R[1]-E*R[0],h=R[2]-q*R[1],g=R[3]-T*R[2],b=R[4]-j*R[3],S=R[5]-O*R[4],w=R[6]-I*R[5],A=R[7]-D*R[6],_=R[8]-k*R[7]),B=r.offset,z=e.offset,t=r.data,o=e.data,Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++){for(U=0;U<q;U++){for(V=0;V<E;V++)o[z]=a(t[B]),B+=i,z+=p;B+=n,z+=m}B+=s,z+=h}B+=u,z+=g}B+=v,z+=b}B+=f,z+=S}B+=l,z+=w}B+=d,z+=A}B+=y,z+=_}}bV.exports=ZNr});var wV=c((Xce,qV)=>{"use strict";function QNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K;for(q=r.shape,z=r.strides,V=e.strides,r.order==="row-major"?(T=q[9],j=q[8],O=q[7],I=q[6],D=q[5],k=q[4],N=q[3],F=q[2],R=q[1],B=q[0],i=z[9],n=z[8]-T*z[9],s=z[7]-j*z[8],u=z[6]-O*z[7],v=z[5]-I*z[6],f=z[4]-D*z[5],l=z[3]-k*z[4],d=z[2]-N*z[3],y=z[1]-F*z[2],p=z[0]-R*z[1],m=V[9],h=V[8]-T*V[9],g=V[7]-j*V[8],b=V[6]-O*V[7],S=V[5]-I*V[6],w=V[4]-D*V[5],A=V[3]-k*V[4],_=V[2]-N*V[3],x=V[1]-F*V[2],E=V[0]-R*V[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],R=q[8],B=q[9],i=z[0],n=z[1]-T*z[0],s=z[2]-j*z[1],u=z[3]-O*z[2],v=z[4]-I*z[3],f=z[5]-D*z[4],l=z[6]-k*z[5],d=z[7]-N*z[6],y=z[8]-F*z[7],p=z[9]-R*z[8],m=V[0],h=V[1]-T*V[0],g=V[2]-j*V[1],b=V[3]-O*V[2],S=V[4]-I*V[3],w=V[5]-D*V[4],A=V[6]-k*V[5],_=V[7]-N*V[6],x=V[8]-F*V[7],E=V[9]-R*V[8]),U=r.offset,C=e.offset,t=r.data,o=e.data,K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++){for(L=0;L<j;L++){for(P=0;P<T;P++)o[C]=a(t[U]),U+=i,C+=m;U+=n,C+=h}U+=s,C+=g}U+=u,C+=b}U+=v,C+=S}U+=f,C+=w}U+=l,C+=A}U+=d,C+=_}U+=y,C+=x}U+=p,C+=E}}qV.exports=QNr});var _V=c((Kce,AV)=>{"use strict";var rDr=Jr(),SV=na(),EV="throw";function eDr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m;for(u=r.shape,s=rDr(u),t=r.data,o=e.data,v=r.strides,f=e.strides,l=r.offset,d=e.offset,i=r.order,n=e.order,m=0;m<s;m++)y=SV(u,v,l,i,m,EV),p=SV(u,f,d,n,m,EV),o[p]=a(t[y])}AV.exports=eDr});var DV=c((Hce,NV)=>{"use strict";var TV=Ea(),jV=at(),IV=ei(),aDr=JR(),tDr=KR(),iDr=ZR(),oDr=rz(),nDr=az(),sDr=iz(),uDr=nz(),vDr=uz(),fDr=fz(),lDr=cz(),cDr=pz(),dDr=mz(),pDr=gz(),yDr=xz(),mDr=wz(),hDr=Ez(),gDr=_z(),bDr=jz(),xDr=Oz(),qDr=Dz(),wDr=Bz(),SDr=Rz(),EDr=Vz(),ADr=Cz(),_Dr=Lz(),TDr=Gz(),jDr=$z(),IDr=Jz(),ODr=Kz(),NDr=rV(),DDr=aV(),kDr=iV(),BDr=nV(),FDr=uV(),RDr=fV(),zDr=cV(),VDr=pV(),UDr=mV(),CDr=gV(),PDr=xV(),LDr=wV(),MDr=_V(),Ti=[DDr,kDr,BDr,FDr,RDr,zDr,VDr,UDr,CDr,PDr,LDr],Do=[xDr,qDr,wDr,SDr,EDr,ADr,_Dr,TDr,jDr,IDr,ODr],GDr=[lDr,cDr,dDr,pDr,yDr,mDr,hDr,gDr,bDr],YDr=[aDr,tDr,iDr,oDr,nDr,sDr,uDr,vDr,fDr],OV=Ti.length-1;function $Dr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b;if(m=IV(r[0]),h=IV(r[1]),i=m.shape,n=h.shape,a=i.length,a!==n.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+a+". ndims(y) == "+n.length+".");if(a===0)return m.accessorProtocol||h.accessorProtocol?Do[a](m,h,e):Ti[a](m,h,e);for(v=1,p=0,b=0;b<a;b++){if(g=i[b],g!==n[b])throw new Error("invalid arguments. Arrays must have the same shape.");v*=g,g===1&&(p+=1)}if(v!==0){if(a===1)return m.accessorProtocol||h.accessorProtocol?Do[a](m,h,e):Ti[a](m,h,e);if(f=m.strides,l=h.strides,p===a-1){for(b=0;b<a&&i[b]===1;b++);return m.shape=[i[b]],h.shape=m.shape,m.strides=[f[b]],h.strides=[l[b]],m.accessorProtocol||h.accessorProtocol?Do[1](m,h,e):Ti[1](m,h,e)}if(s=TV(f),u=TV(l),s!==0&&u!==0&&s===u){if(t=jV(i,f,m.offset),o=jV(n,l,h.offset),v===t[1]-t[0]+1&&v===o[1]-o[0]+1)return s===1?d=t[0]:d=t[1],u===1?y=o[0]:y=o[1],m.shape=[v],h.shape=m.shape,m.strides=[s],h.strides=[u],m.offset=d,h.offset=y,m.accessorProtocol||h.accessorProtocol?Do[1](m,h,e):Ti[1](m,h,e);if(a<=OV)return m.accessorProtocol||h.accessorProtocol?Do[a](m,h,e):Ti[a](m,h,e)}if(a<=OV)return m.accessorProtocol||h.accessorProtocol?YDr[a-2](m,h,e):GDr[a-2](m,h,e);if(m.accessorProtocol||h.accessorProtocol)return NDr(m,h,e);MDr(m,h,e)}}NV.exports=$Dr});var BV=c((Zce,kV)=>{"use strict";var WDr=DV();kV.exports=WDr});var RV=c((Qce,FV)=>{"use strict";var JDr=zr(),XDr=Rr();function KDr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k;for(I=JDr(r.shape,r.strides,e.strides),h=I.sh,S=I.sx,w=I.sy,i=XDr(r.dtype,e.dtype),A=r.offset,_=e.offset,n=r.data,s=e.data,f=S[0],d=w[0],u=r.accessors[0],v=e.accessors[1],k=0,O=h[1];O>0;)for(O<i?(b=O,O=0):(b=i,O-=i),p=A+O*S[1],m=_+O*w[1],j=h[0];j>0;)for(j<i?(g=j,j=0):(g=i,j-=i),x=p+j*S[0],E=m+j*w[0],l=S[1]-g*S[0],y=w[1]-g*w[0],T=0;T<b;T++){for(q=0;q<g;q++)D=t.call(o,u(n,x),k,[x,E],[r,e]),D!==void 0&&v(s,E,a(D)),x+=f,E+=d,k+=1;x+=l,E+=y}}FV.exports=KDr});var VV=c((rde,zV)=>{"use strict";var HDr=zr(),ZDr=Rr();function QDr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(z=HDr(r.shape,r.strides,e.strides),w=z.sh,E=z.sx,q=z.sy,i=ZDr(r.dtype,e.dtype),T=r.offset,j=e.offset,n=r.data,s=e.data,f=E[0],y=q[0],u=r.accessors[0],v=e.accessors[1],U=0,B=w[2];B>0;)for(B<i?(x=B,B=0):(x=i,B-=i),g=T+B*E[2],S=j+B*q[2],R=w[1];R>0;)for(R<i?(_=R,R=0):(_=i,R-=i),d=E[2]-_*E[1],m=q[2]-_*q[1],h=g+R*E[1],b=S+R*q[1],F=w[0];F>0;)for(F<i?(A=F,F=0):(A=i,F-=i),O=h+F*E[0],I=b+F*q[0],l=E[1]-A*E[0],p=q[1]-A*q[0],N=0;N<x;N++){for(k=0;k<_;k++){for(D=0;D<A;D++)V=t.call(o,u(n,O),U,[O,I],[r,e]),V!==void 0&&v(s,I,a(V)),O+=f,I+=y,U+=1;O+=l,I+=p}O+=d,I+=m}}zV.exports=QDr});var CV=c((ede,UV)=>{"use strict";var rkr=zr(),ekr=Rr();function akr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y;for(G=rkr(r.shape,r.strides,e.strides),E=G.sh,I=G.sx,D=G.sy,i=ekr(r.dtype,e.dtype),k=r.offset,N=e.offset,n=r.data,s=e.data,f=I[0],p=D[0],u=r.accessors[0],v=e.accessors[1],Y=0,M=E[3];M>0;)for(M<i?(O=M,M=0):(O=i,M-=i),w=k+M*I[3],x=N+M*D[3],L=E[2];L>0;)for(L<i?(j=L,L=0):(j=i,L-=i),y=I[3]-j*I[2],g=D[3]-j*D[2],S=w+L*I[2],_=x+L*D[2],P=E[1];P>0;)for(P<i?(T=P,P=0):(T=i,P-=i),d=I[2]-T*I[1],h=D[2]-T*D[1],b=S+P*I[1],A=_+P*D[1],C=E[0];C>0;)for(C<i?(q=C,C=0):(q=i,C-=i),F=b+C*I[0],R=A+C*D[0],l=I[1]-q*I[0],m=D[1]-q*D[0],U=0;U<O;U++){for(V=0;V<j;V++){for(z=0;z<T;z++){for(B=0;B<q;B++)$=t.call(o,u(n,F),Y,[F,R],[r,e]),$!==void 0&&v(s,R,a($)),F+=f,R+=p,Y+=1;F+=l,R+=m}F+=d,R+=h}F+=y,R+=g}}UV.exports=akr});var LV=c((ade,PV)=>{"use strict";var tkr=zr(),ikr=Rr();function okr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z;for(H=tkr(r.shape,r.strides,e.strides),O=H.sh,R=H.sx,B=H.sy,i=ikr(r.dtype,e.dtype),z=r.offset,V=e.offset,n=r.data,s=e.data,f=R[0],m=B[0],u=r.accessors[0],v=e.accessors[1],Z=0,K=O[4];K>0;)for(K<i?(F=K,K=0):(F=i,K-=i),x=z+K*R[4],j=V+K*B[4],X=O[3];X>0;)for(X<i?(N=X,X=0):(N=i,X-=i),p=R[4]-N*R[3],S=B[4]-N*B[3],_=x+X*R[3],T=j+X*B[3],J=O[2];J>0;)for(J<i?(k=J,J=0):(k=i,J-=i),y=R[3]-k*R[2],b=B[3]-k*B[2],A=_+J*R[2],q=T+J*B[2],W=O[1];W>0;)for(W<i?(D=W,W=0):(D=i,W-=i),d=R[2]-D*R[1],g=B[2]-D*B[1],w=A+W*R[1],E=q+W*B[1],Y=O[0];Y>0;)for(Y<i?(I=Y,Y=0):(I=i,Y-=i),U=w+Y*R[0],C=E+Y*B[0],l=R[1]-I*R[0],h=B[1]-I*B[0],$=0;$<F;$++){for(G=0;G<N;G++){for(M=0;M<k;M++){for(L=0;L<D;L++){for(P=0;P<I;P++)Q=t.call(o,u(n,U),Z,[U,C],[r,e]),Q!==void 0&&v(s,C,a(Q)),U+=f,C+=m,Z+=1;U+=l,C+=h}U+=d,C+=g}U+=y,C+=b}U+=p,C+=S}}PV.exports=okr});var GV=c((tde,MV)=>{"use strict";var nkr=zr(),skr=Rr();function ukr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr;for(tr=nkr(r.shape,r.strides,e.strides),N=tr.sh,C=tr.sx,P=tr.sy,i=skr(r.dtype,e.dtype),L=r.offset,M=e.offset,n=r.data,s=e.data,f=C[0],h=P[0],u=r.accessors[0],v=e.accessors[1],nr=0,ir=N[5];ir>0;)for(ir<i?(U=ir,ir=0):(U=i,ir-=i),T=L+ir*C[5],k=M+ir*P[5],er=N[4];er>0;)for(er<i?(V=er,er=0):(V=i,er-=i),m=C[5]-V*C[4],A=P[5]-V*P[4],q=T+er*C[4],D=k+er*P[4],ar=N[3];ar>0;)for(ar<i?(z=ar,ar=0):(z=i,ar-=i),p=C[4]-z*C[3],w=P[4]-z*P[3],E=q+ar*C[3],I=D+ar*P[3],rr=N[2];rr>0;)for(rr<i?(B=rr,rr=0):(B=i,rr-=i),y=C[3]-B*C[2],S=P[3]-B*P[2],x=E+rr*C[2],O=I+rr*P[2],Z=N[1];Z>0;)for(Z<i?(R=Z,Z=0):(R=i,Z-=i),d=C[2]-R*C[1],b=P[2]-R*P[1],_=x+Z*C[1],j=O+Z*P[1],Q=N[0];Q>0;)for(Q<i?(F=Q,Q=0):(F=i,Q-=i),G=_+Q*C[0],$=j+Q*P[0],l=C[1]-F*C[0],g=P[1]-F*P[0],H=0;H<U;H++){for(K=0;K<V;K++){for(X=0;X<z;X++){for(J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++)or=t.call(o,u(n,G),nr,[G,$],[r,e]),or!==void 0&&v(s,$,a(or)),G+=f,$+=h,nr+=1;G+=l,$+=g}G+=d,$+=b}G+=y,$+=S}G+=p,$+=w}G+=m,$+=A}}MV.exports=ukr});var $V=c((ide,YV)=>{"use strict";var vkr=zr(),fkr=Rr();function lkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr;for(fr=vkr(r.shape,r.strides,e.strides),z=fr.sh,$=fr.sx,Y=fr.sy,i=fkr(r.dtype,e.dtype),W=r.offset,J=e.offset,n=r.data,s=e.data,f=$[0],g=Y[0],u=r.accessors[0],v=e.accessors[1],dr=0,lr=z[6];lr>0;)for(lr<i?(G=lr,lr=0):(G=i,lr-=i),I=W+lr*$[6],B=J+lr*Y[6],vr=z[5];vr>0;)for(vr<i?(M=vr,vr=0):(M=i,vr-=i),h=$[6]-M*$[5],x=Y[6]-M*Y[5],O=I+vr*$[5],R=B+vr*Y[5],ur=z[4];ur>0;)for(ur<i?(L=ur,ur=0):(L=i,ur-=i),m=$[5]-L*$[4],_=Y[5]-L*Y[4],j=O+ur*$[4],F=R+ur*Y[4],sr=z[3];sr>0;)for(sr<i?(P=sr,sr=0):(P=i,sr-=i),p=$[4]-P*$[3],A=Y[4]-P*Y[3],T=j+sr*$[3],N=F+sr*Y[3],nr=z[2];nr>0;)for(nr<i?(C=nr,nr=0):(C=i,nr-=i),y=$[3]-C*$[2],w=Y[3]-C*Y[2],q=T+nr*$[2],k=N+nr*Y[2],or=z[1];or>0;)for(or<i?(U=or,or=0):(U=i,or-=i),d=$[2]-U*$[1],S=Y[2]-U*Y[1],E=q+or*$[1],D=k+or*Y[1],tr=z[0];tr>0;)for(tr<i?(V=tr,tr=0):(V=i,tr-=i),X=E+tr*$[0],K=D+tr*Y[0],l=$[1]-V*$[0],b=Y[1]-V*Y[0],ir=0;ir<G;ir++){for(er=0;er<M;er++){for(ar=0;ar<L;ar++){for(rr=0;rr<P;rr++){for(Z=0;Z<C;Z++){for(Q=0;Q<U;Q++){for(H=0;H<V;H++)yr=t.call(o,u(n,X),dr,[X,K],[r,e]),yr!==void 0&&v(s,K,a(yr)),X+=f,K+=g,dr+=1;X+=l,K+=b}X+=d,K+=S}X+=y,K+=w}X+=p,K+=A}X+=m,K+=_}X+=h,K+=x}}YV.exports=lkr});var JV=c((ode,WV)=>{"use strict";var ckr=zr(),dkr=Rr();function pkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr;for(xr=ckr(r.shape,r.strides,e.strides),P=xr.sh,K=xr.sx,H=xr.sy,i=dkr(r.dtype,e.dtype),Q=r.offset,Z=e.offset,n=r.data,s=e.data,f=K[0],b=H[0],u=r.accessors[0],v=e.accessors[1],gr=0,wr=P[7];wr>0;)for(wr<i?(X=wr,wr=0):(X=i,wr-=i),N=Q+wr*K[7],C=Z+wr*H[7],br=P[6];br>0;)for(br<i?(J=br,br=0):(J=i,br-=i),g=K[7]-J*K[6],q=H[7]-J*H[6],k=N+br*K[6],U=C+br*H[6],hr=P[5];hr>0;)for(hr<i?(W=hr,hr=0):(W=i,hr-=i),h=K[6]-W*K[5],E=H[6]-W*H[5],D=k+hr*K[5],V=U+hr*H[5],mr=P[4];mr>0;)for(mr<i?(Y=mr,mr=0):(Y=i,mr-=i),m=K[5]-Y*K[4],x=H[5]-Y*H[4],I=D+mr*K[4],z=V+mr*H[4],dr=P[3];dr>0;)for(dr<i?($=dr,dr=0):($=i,dr-=i),p=K[4]-$*K[3],_=H[4]-$*H[3],O=I+dr*K[3],B=z+dr*H[3],yr=P[2];yr>0;)for(yr<i?(G=yr,yr=0):(G=i,yr-=i),y=K[3]-G*K[2],A=H[3]-G*H[2],j=O+yr*K[2],R=B+yr*H[2],fr=P[1];fr>0;)for(fr<i?(M=fr,fr=0):(M=i,fr-=i),d=K[2]-M*K[1],w=H[2]-M*H[1],T=j+fr*K[1],F=R+fr*H[1],lr=P[0];lr>0;)for(lr<i?(L=lr,lr=0):(L=i,lr-=i),rr=T+lr*K[0],ar=F+lr*H[0],l=K[1]-L*K[0],S=H[1]-L*H[0],vr=0;vr<X;vr++){for(ur=0;ur<J;ur++){for(sr=0;sr<W;sr++){for(nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++)qr=t.call(o,u(n,rr),gr,[rr,ar],[r,e]),qr!==void 0&&v(s,ar,a(qr)),rr+=f,ar+=b,gr+=1;rr+=l,ar+=S}rr+=d,ar+=w}rr+=y,ar+=A}rr+=p,ar+=_}rr+=m,ar+=x}rr+=h,ar+=E}rr+=g,ar+=q}}WV.exports=pkr});var KV=c((nde,XV)=>{"use strict";var ykr=zr(),mkr=Rr();function hkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr;for(Or=ykr(r.shape,r.strides,e.strides),$=Or.sh,ar=Or.sx,er=Or.sy,i=mkr(r.dtype,e.dtype),ir=r.offset,tr=e.offset,n=r.data,s=e.data,f=ar[0],S=er[0],u=r.accessors[0],v=e.accessors[1],Vr=0,jr=$[8];jr>0;)for(jr<i?(rr=jr,jr=0):(rr=i,jr-=i),B=ir+jr*ar[8],G=tr+jr*er[8],Tr=$[7];Tr>0;)for(Tr<i?(Z=Tr,Tr=0):(Z=i,Tr-=i),b=ar[8]-Z*ar[7],j=er[8]-Z*er[7],R=B+Tr*ar[7],M=G+Tr*er[7],_r=$[6];_r>0;)for(_r<i?(Q=_r,_r=0):(Q=i,_r-=i),g=ar[7]-Q*ar[6],T=er[7]-Q*er[6],F=R+_r*ar[6],L=M+_r*er[6],Ar=$[5];Ar>0;)for(Ar<i?(H=Ar,Ar=0):(H=i,Ar-=i),h=ar[6]-H*ar[5],q=er[6]-H*er[5],N=F+Ar*ar[5],P=L+Ar*er[5],gr=$[4];gr>0;)for(gr<i?(K=gr,gr=0):(K=i,gr-=i),m=ar[5]-K*ar[4],E=er[5]-K*er[4],k=N+gr*ar[4],C=P+gr*er[4],qr=$[3];qr>0;)for(qr<i?(X=qr,qr=0):(X=i,qr-=i),p=ar[4]-X*ar[3],x=er[4]-X*er[3],D=k+qr*ar[3],U=C+qr*er[3],xr=$[2];xr>0;)for(xr<i?(J=xr,xr=0):(J=i,xr-=i),y=ar[3]-J*ar[2],_=er[3]-J*er[2],I=D+xr*ar[2],V=U+xr*er[2],wr=$[1];wr>0;)for(wr<i?(W=wr,wr=0):(W=i,wr-=i),d=ar[2]-W*ar[1],A=er[2]-W*er[1],O=I+wr*ar[1],z=V+wr*er[1],br=$[0];br>0;)for(br<i?(Y=br,br=0):(Y=i,br-=i),or=O+br*ar[0],nr=z+br*er[0],l=ar[1]-Y*ar[0],w=er[1]-Y*er[0],hr=0;hr<rr;hr++){for(mr=0;mr<Z;mr++){for(dr=0;dr<Q;dr++){for(yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++)Fr=t.call(o,u(n,or),Vr,[or,nr],[r,e]),Fr!==void 0&&v(s,nr,a(Fr)),or+=f,nr+=S,Vr+=1;or+=l,nr+=w}or+=d,nr+=A}or+=y,nr+=_}or+=p,nr+=x}or+=m,nr+=E}or+=h,nr+=q}or+=g,nr+=T}or+=b,nr+=j}}XV.exports=hkr});var ZV=c((sde,HV)=>{"use strict";var gkr=zr(),bkr=Rr();function xkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr,Hr,ie,De,ua,ht,Cs,Ps;for(ht=gkr(r.shape,r.strides,e.strides),X=ht.sh,nr=ht.sx,sr=ht.sy,i=bkr(r.dtype,e.dtype),ur=r.offset,vr=e.offset,n=r.data,s=e.data,f=nr[0],w=sr[0],u=r.accessors[0],v=e.accessors[1],Ps=0,ua=X[9];ua>0;)for(ua<i?(or=ua,ua=0):(or=i,ua-=i),U=ur+ua*nr[9],J=vr+ua*sr[9],De=X[8];De>0;)for(De<i?(tr=De,De=0):(tr=i,De-=i),S=nr[9]-tr*nr[8],I=sr[9]-tr*sr[8],V=U+De*nr[8],W=J+De*sr[8],ie=X[7];ie>0;)for(ie<i?(ir=ie,ie=0):(ir=i,ie-=i),b=nr[8]-ir*nr[7],O=sr[8]-ir*sr[7],z=V+ie*nr[7],Y=W+ie*sr[7],Hr=X[6];Hr>0;)for(Hr<i?(er=Hr,Hr=0):(er=i,Hr-=i),g=nr[7]-er*nr[6],j=sr[7]-er*sr[6],B=z+Hr*nr[6],$=Y+Hr*sr[6],Vr=X[5];Vr>0;)for(Vr<i?(ar=Vr,Vr=0):(ar=i,Vr-=i),h=nr[6]-ar*nr[5],T=sr[6]-ar*sr[5],R=B+Vr*nr[5],G=$+Vr*sr[5],Fr=X[4];Fr>0;)for(Fr<i?(rr=Fr,Fr=0):(rr=i,Fr-=i),m=nr[5]-rr*nr[4],q=sr[5]-rr*sr[4],F=R+Fr*nr[4],M=G+Fr*sr[4],Or=X[3];Or>0;)for(Or<i?(Z=Or,Or=0):(Z=i,Or-=i),p=nr[4]-Z*nr[3],E=sr[4]-Z*sr[3],N=F+Or*nr[3],L=M+Or*sr[3],jr=X[2];jr>0;)for(jr<i?(Q=jr,jr=0):(Q=i,jr-=i),y=nr[3]-Q*nr[2],x=sr[3]-Q*sr[2],k=N+jr*nr[2],P=L+jr*sr[2],Tr=X[1];Tr>0;)for(Tr<i?(H=Tr,Tr=0):(H=i,Tr-=i),d=nr[2]-H*nr[1],_=sr[2]-H*sr[1],D=k+Tr*nr[1],C=P+Tr*sr[1],_r=X[0];_r>0;)for(_r<i?(K=_r,_r=0):(K=i,_r-=i),lr=D+_r*nr[0],fr=C+_r*sr[0],l=nr[1]-K*nr[0],A=sr[1]-K*sr[0],Ar=0;Ar<or;Ar++){for(gr=0;gr<tr;gr++){for(qr=0;qr<ir;qr++){for(xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++)Cs=t.call(o,u(n,lr),Ps,[lr,fr],[r,e]),Cs!==void 0&&v(s,fr,a(Cs)),lr+=f,fr+=w,Ps+=1;lr+=l,fr+=A}lr+=d,fr+=_}lr+=y,fr+=x}lr+=p,fr+=E}lr+=m,fr+=q}lr+=h,fr+=T}lr+=g,fr+=j}lr+=b,fr+=O}lr+=S,fr+=I}}HV.exports=xkr});var rU=c((ude,QV)=>{"use strict";var qkr=zr(),wkr=Rr();function Skr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(j=qkr(r.shape,r.strides,e.strides),p=j.sh,g=j.sx,b=j.sy,i=wkr(r.dtype,e.dtype),S=r.offset,w=e.offset,n=r.data,s=e.data,u=g[0],f=b[0],I=0,T=p[1];T>0;)for(T<i?(h=T,T=0):(h=i,T-=i),d=S+T*g[1],y=w+T*b[1],q=p[0];q>0;)for(q<i?(m=q,q=0):(m=i,q-=i),A=d+q*g[0],_=y+q*b[0],v=g[1]-m*g[0],l=b[1]-m*b[0],E=0;E<h;E++){for(x=0;x<m;x++)O=t.call(o,n[A],I,[A,_],[r,e]),O!==void 0&&(s[_]=a(O)),A+=u,_+=f,I+=1;A+=v,_+=l}}QV.exports=Skr});var aU=c((vde,eU)=>{"use strict";var Ekr=zr(),Akr=Rr();function _kr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z;for(R=Ekr(r.shape,r.strides,e.strides),b=R.sh,_=R.sx,x=R.sy,i=Akr(r.dtype,e.dtype),E=r.offset,q=e.offset,n=r.data,s=e.data,u=_[0],l=x[0],z=0,F=b[2];F>0;)for(F<i?(A=F,F=0):(A=i,F-=i),m=E+F*_[2],g=q+F*x[2],N=b[1];N>0;)for(N<i?(w=N,N=0):(w=i,N-=i),f=_[2]-w*_[1],y=x[2]-w*x[1],p=m+N*_[1],h=g+N*x[1],k=b[0];k>0;)for(k<i?(S=k,k=0):(S=i,k-=i),T=p+k*_[0],j=h+k*x[0],v=_[1]-S*_[0],d=x[1]-S*x[0],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++)B=t.call(o,n[T],z,[T,j],[r,e]),B!==void 0&&(s[j]=a(B)),T+=u,j+=l,z+=1;T+=v,j+=d}T+=f,j+=y}}eU.exports=_kr});var iU=c((fde,tU)=>{"use strict";var Tkr=zr(),jkr=Rr();function Ikr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G;for(L=Tkr(r.shape,r.strides,e.strides),_=L.sh,j=L.sx,O=L.sy,i=jkr(r.dtype,e.dtype),I=r.offset,D=e.offset,n=r.data,s=e.data,u=j[0],d=O[0],G=0,P=_[3];P>0;)for(P<i?(T=P,P=0):(T=i,P-=i),b=I+P*j[3],A=D+P*O[3],C=_[2];C>0;)for(C<i?(q=C,C=0):(q=i,C-=i),l=j[3]-q*j[2],m=O[3]-q*O[2],g=b+C*j[2],w=A+C*O[2],U=_[1];U>0;)for(U<i?(E=U,U=0):(E=i,U-=i),f=j[2]-E*j[1],p=O[2]-E*O[1],h=g+U*j[1],S=w+U*O[1],V=_[0];V>0;)for(V<i?(x=V,V=0):(x=i,V-=i),k=h+V*j[0],N=S+V*O[0],v=j[1]-x*j[0],y=O[1]-x*O[0],z=0;z<T;z++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++)M=t.call(o,n[k],G,[k,N],[r,e]),M!==void 0&&(s[N]=a(M)),k+=u,N+=d,G+=1;k+=v,N+=y}k+=f,N+=p}k+=l,N+=m}}tU.exports=Ikr});var nU=c((lde,oU)=>{"use strict";var Okr=zr(),Nkr=Rr();function Dkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H;for(X=Okr(r.shape,r.strides,e.strides),T=X.sh,N=X.sx,F=X.sy,i=Nkr(r.dtype,e.dtype),R=r.offset,B=e.offset,n=r.data,s=e.data,u=N[0],y=F[0],H=0,J=T[4];J>0;)for(J<i?(k=J,J=0):(k=i,J-=i),A=R+J*N[4],q=B+J*F[4],W=T[3];W>0;)for(W<i?(D=W,W=0):(D=i,W-=i),d=N[4]-D*N[3],g=F[4]-D*F[3],w=A+W*N[3],E=q+W*F[3],Y=T[2];Y>0;)for(Y<i?(I=Y,Y=0):(I=i,Y-=i),l=N[3]-I*N[2],h=F[3]-I*F[2],S=w+Y*N[2],x=E+Y*F[2],$=T[1];$>0;)for($<i?(O=$,$=0):(O=i,$-=i),f=N[2]-O*N[1],m=F[2]-O*F[1],b=S+$*N[1],_=x+$*F[1],G=T[0];G>0;)for(G<i?(j=G,G=0):(j=i,G-=i),z=b+G*N[0],V=_+G*F[0],v=N[1]-j*N[0],p=F[1]-j*F[0],M=0;M<k;M++){for(L=0;L<D;L++){for(P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++)K=t.call(o,n[z],H,[z,V],[r,e]),K!==void 0&&(s[V]=a(K)),z+=u,V+=y,H+=1;z+=v,V+=p}z+=f,V+=m}z+=l,V+=h}z+=d,V+=g}}oU.exports=Dkr});var uU=c((cde,sU)=>{"use strict";var kkr=zr(),Bkr=Rr();function Fkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr;for(er=kkr(r.shape,r.strides,e.strides),D=er.sh,V=er.sx,U=er.sy,i=Bkr(r.dtype,e.dtype),C=r.offset,P=e.offset,n=r.data,s=e.data,u=V[0],p=U[0],tr=0,ar=D[5];ar>0;)for(ar<i?(z=ar,ar=0):(z=i,ar-=i),E=C+ar*V[5],I=P+ar*U[5],rr=D[4];rr>0;)for(rr<i?(B=rr,rr=0):(B=i,rr-=i),y=V[5]-B*V[4],S=U[5]-B*U[4],x=E+rr*V[4],O=I+rr*U[4],Z=D[3];Z>0;)for(Z<i?(R=Z,Z=0):(R=i,Z-=i),d=V[4]-R*V[3],b=U[4]-R*U[3],_=x+Z*V[3],j=O+Z*U[3],Q=D[2];Q>0;)for(Q<i?(F=Q,Q=0):(F=i,Q-=i),l=V[3]-F*V[2],g=U[3]-F*U[2],A=_+Q*V[2],T=j+Q*U[2],H=D[1];H>0;)for(H<i?(N=H,H=0):(N=i,H-=i),f=V[2]-N*V[1],h=U[2]-N*U[1],w=A+H*V[1],q=T+H*U[1],K=D[0];K>0;)for(K<i?(k=K,K=0):(k=i,K-=i),L=w+K*V[0],M=q+K*U[0],v=V[1]-k*V[0],m=U[1]-k*U[0],X=0;X<z;X++){for(J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++)ir=t.call(o,n[L],tr,[L,M],[r,e]),ir!==void 0&&(s[M]=a(ir)),L+=u,M+=p,tr+=1;L+=v,M+=m}L+=f,M+=h}L+=l,M+=g}L+=d,M+=b}L+=y,M+=S}}sU.exports=Fkr});var fU=c((dde,vU)=>{"use strict";var Rkr=zr(),zkr=Rr();function Vkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr;for(vr=Rkr(r.shape,r.strides,e.strides),R=vr.sh,M=vr.sx,G=vr.sy,i=zkr(r.dtype,e.dtype),$=r.offset,Y=e.offset,n=r.data,s=e.data,u=M[0],m=G[0],fr=0,ur=R[6];ur>0;)for(ur<i?(L=ur,ur=0):(L=i,ur-=i),j=$+ur*M[6],F=Y+ur*G[6],sr=R[5];sr>0;)for(sr<i?(P=sr,sr=0):(P=i,sr-=i),p=M[6]-P*M[5],A=G[6]-P*G[5],T=j+sr*M[5],N=F+sr*G[5],nr=R[4];nr>0;)for(nr<i?(C=nr,nr=0):(C=i,nr-=i),y=M[5]-C*M[4],w=G[5]-C*G[4],q=T+nr*M[4],k=N+nr*G[4],or=R[3];or>0;)for(or<i?(U=or,or=0):(U=i,or-=i),d=M[4]-U*M[3],S=G[4]-U*G[3],E=q+or*M[3],D=k+or*G[3],tr=R[2];tr>0;)for(tr<i?(V=tr,tr=0):(V=i,tr-=i),l=M[3]-V*M[2],b=G[3]-V*G[2],x=E+tr*M[2],I=D+tr*G[2],ir=R[1];ir>0;)for(ir<i?(z=ir,ir=0):(z=i,ir-=i),f=M[2]-z*M[1],g=G[2]-z*G[1],_=x+ir*M[1],O=I+ir*G[1],er=R[0];er>0;)for(er<i?(B=er,er=0):(B=i,er-=i),W=_+er*M[0],J=O+er*G[0],v=M[1]-B*M[0],h=G[1]-B*G[0],ar=0;ar<L;ar++){for(rr=0;rr<P;rr++){for(Z=0;Z<C;Z++){for(Q=0;Q<U;Q++){for(H=0;H<V;H++){for(K=0;K<z;K++){for(X=0;X<B;X++)lr=t.call(o,n[W],fr,[W,J],[r,e]),lr!==void 0&&(s[J]=a(lr)),W+=u,J+=m,fr+=1;W+=v,J+=h}W+=f,J+=g}W+=l,J+=b}W+=d,J+=S}W+=y,J+=w}W+=p,J+=A}}vU.exports=Vkr});var cU=c((pde,lU)=>{"use strict";var Ukr=zr(),Ckr=Rr();function Pkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr;for(br=Ukr(r.shape,r.strides,e.strides),U=br.sh,J=br.sx,X=br.sy,i=Ckr(r.dtype,e.dtype),K=r.offset,H=e.offset,n=r.data,s=e.data,u=J[0],h=X[0],xr=0,hr=U[7];hr>0;)for(hr<i?(W=hr,hr=0):(W=i,hr-=i),D=K+hr*J[7],V=H+hr*X[7],mr=U[6];mr>0;)for(mr<i?(Y=mr,mr=0):(Y=i,mr-=i),m=J[7]-Y*J[6],x=X[7]-Y*X[6],I=D+mr*J[6],z=V+mr*X[6],dr=U[5];dr>0;)for(dr<i?($=dr,dr=0):($=i,dr-=i),p=J[6]-$*J[5],_=X[6]-$*X[5],O=I+dr*J[5],B=z+dr*X[5],yr=U[4];yr>0;)for(yr<i?(G=yr,yr=0):(G=i,yr-=i),y=J[5]-G*J[4],A=X[5]-G*X[4],j=O+yr*J[4],R=B+yr*X[4],fr=U[3];fr>0;)for(fr<i?(M=fr,fr=0):(M=i,fr-=i),d=J[4]-M*J[3],w=X[4]-M*X[3],T=j+fr*J[3],F=R+fr*X[3],lr=U[2];lr>0;)for(lr<i?(L=lr,lr=0):(L=i,lr-=i),l=J[3]-L*J[2],S=X[3]-L*X[2],q=T+lr*J[2],N=F+lr*X[2],vr=U[1];vr>0;)for(vr<i?(P=vr,vr=0):(P=i,vr-=i),f=J[2]-P*J[1],b=X[2]-P*X[1],E=q+vr*J[1],k=N+vr*X[1],ur=U[0];ur>0;)for(ur<i?(C=ur,ur=0):(C=i,ur-=i),Q=E+ur*J[0],Z=k+ur*X[0],v=J[1]-C*J[0],g=X[1]-C*X[0],sr=0;sr<W;sr++){for(nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<C;rr++)wr=t.call(o,n[Q],xr,[Q,Z],[r,e]),wr!==void 0&&(s[Z]=a(wr)),Q+=u,Z+=h,xr+=1;Q+=v,Z+=g}Q+=f,Z+=b}Q+=l,Z+=S}Q+=d,Z+=w}Q+=y,Z+=A}Q+=p,Z+=_}Q+=m,Z+=x}}lU.exports=Pkr});var pU=c((yde,dU)=>{"use strict";var Lkr=zr(),Mkr=Rr();function Gkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or;for(Tr=Lkr(r.shape,r.strides,e.strides),M=Tr.sh,Z=Tr.sx,rr=Tr.sy,i=Mkr(r.dtype,e.dtype),ar=r.offset,er=e.offset,n=r.data,s=e.data,u=Z[0],g=rr[0],Or=0,_r=M[8];_r>0;)for(_r<i?(Q=_r,_r=0):(Q=i,_r-=i),F=ar+_r*Z[8],L=er+_r*rr[8],Ar=M[7];Ar>0;)for(Ar<i?(H=Ar,Ar=0):(H=i,Ar-=i),h=Z[8]-H*Z[7],q=rr[8]-H*rr[7],N=F+Ar*Z[7],P=L+Ar*rr[7],gr=M[6];gr>0;)for(gr<i?(K=gr,gr=0):(K=i,gr-=i),m=Z[7]-K*Z[6],E=rr[7]-K*rr[6],k=N+gr*Z[6],C=P+gr*rr[6],qr=M[5];qr>0;)for(qr<i?(X=qr,qr=0):(X=i,qr-=i),p=Z[6]-X*Z[5],x=rr[6]-X*rr[5],D=k+qr*Z[5],U=C+qr*rr[5],xr=M[4];xr>0;)for(xr<i?(J=xr,xr=0):(J=i,xr-=i),y=Z[5]-J*Z[4],_=rr[5]-J*rr[4],I=D+xr*Z[4],V=U+xr*rr[4],wr=M[3];wr>0;)for(wr<i?(W=wr,wr=0):(W=i,wr-=i),d=Z[4]-W*Z[3],A=rr[4]-W*rr[3],O=I+wr*Z[3],z=V+wr*rr[3],br=M[2];br>0;)for(br<i?(Y=br,br=0):(Y=i,br-=i),l=Z[3]-Y*Z[2],w=rr[3]-Y*rr[2],j=O+br*Z[2],B=z+br*rr[2],hr=M[1];hr>0;)for(hr<i?($=hr,hr=0):($=i,hr-=i),f=Z[2]-$*Z[1],S=rr[2]-$*rr[1],T=j+hr*Z[1],R=B+hr*rr[1],mr=M[0];mr>0;)for(mr<i?(G=mr,mr=0):(G=i,mr-=i),ir=T+mr*Z[0],tr=R+mr*rr[0],v=Z[1]-G*Z[0],b=rr[1]-G*rr[0],dr=0;dr<Q;dr++){for(yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++)jr=t.call(o,n[ir],Or,[ir,tr],[r,e]),jr!==void 0&&(s[tr]=a(jr)),ir+=u,tr+=g,Or+=1;ir+=v,tr+=b}ir+=f,tr+=S}ir+=l,tr+=w}ir+=d,tr+=A}ir+=y,tr+=_}ir+=p,tr+=x}ir+=m,tr+=E}ir+=h,tr+=q}}dU.exports=Gkr});var mU=c((mde,yU)=>{"use strict";var Ykr=zr(),$kr=Rr();function Wkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr,Hr,ie,De,ua,ht;for(De=Ykr(r.shape,r.strides,e.strides),W=De.sh,tr=De.sx,or=De.sy,i=$kr(r.dtype,e.dtype),nr=r.offset,sr=e.offset,n=r.data,s=e.data,u=tr[0],b=or[0],ht=0,ie=W[9];ie>0;)for(ie<i?(ir=ie,ie=0):(ir=i,ie-=i),z=nr+ie*tr[9],Y=sr+ie*or[9],Hr=W[8];Hr>0;)for(Hr<i?(er=Hr,Hr=0):(er=i,Hr-=i),g=tr[9]-er*tr[8],j=or[9]-er*or[8],B=z+Hr*tr[8],$=Y+Hr*or[8],Vr=W[7];Vr>0;)for(Vr<i?(ar=Vr,Vr=0):(ar=i,Vr-=i),h=tr[8]-ar*tr[7],T=or[8]-ar*or[7],R=B+Vr*tr[7],G=$+Vr*or[7],Fr=W[6];Fr>0;)for(Fr<i?(rr=Fr,Fr=0):(rr=i,Fr-=i),m=tr[7]-rr*tr[6],q=or[7]-rr*or[6],F=R+Fr*tr[6],M=G+Fr*or[6],Or=W[5];Or>0;)for(Or<i?(Z=Or,Or=0):(Z=i,Or-=i),p=tr[6]-Z*tr[5],E=or[6]-Z*or[5],N=F+Or*tr[5],L=M+Or*or[5],jr=W[4];jr>0;)for(jr<i?(Q=jr,jr=0):(Q=i,jr-=i),y=tr[5]-Q*tr[4],x=or[5]-Q*or[4],k=N+jr*tr[4],P=L+jr*or[4],Tr=W[3];Tr>0;)for(Tr<i?(H=Tr,Tr=0):(H=i,Tr-=i),d=tr[4]-H*tr[3],_=or[4]-H*or[3],D=k+Tr*tr[3],C=P+Tr*or[3],_r=W[2];_r>0;)for(_r<i?(K=_r,_r=0):(K=i,_r-=i),l=tr[3]-K*tr[2],A=or[3]-K*or[2],I=D+_r*tr[2],U=C+_r*or[2],Ar=W[1];Ar>0;)for(Ar<i?(X=Ar,Ar=0):(X=i,Ar-=i),f=tr[2]-X*tr[1],w=or[2]-X*or[1],O=I+Ar*tr[1],V=U+Ar*or[1],gr=W[0];gr>0;)for(gr<i?(J=gr,gr=0):(J=i,gr-=i),ur=O+gr*tr[0],vr=V+gr*or[0],v=tr[1]-J*tr[0],S=or[1]-J*or[0],qr=0;qr<ir;qr++){for(xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++)ua=t.call(o,n[ur],ht,[ur,vr],[r,e]),ua!==void 0&&(s[vr]=a(ua)),ur+=u,vr+=b,ht+=1;ur+=v,vr+=S}ur+=f,vr+=w}ur+=l,vr+=A}ur+=d,vr+=_}ur+=y,vr+=x}ur+=p,vr+=E}ur+=m,vr+=q}ur+=h,vr+=T}ur+=g,vr+=j}}yU.exports=Wkr});var gU=c((hde,hU)=>{"use strict";function Jkr(r,e,a,t,o){var i=r.offset,n=e.offset,s=t.call(o,r.accessors[0](r.data,i),0,[i,n],[r,e]);s!==void 0&&e.accessors[1](e.data,n,a(s))}hU.exports=Jkr});var xU=c((gde,bU)=>{"use strict";function Xkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h;for(l=r.shape[0],v=r.strides[0],f=e.strides[0],d=r.offset,y=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],h=0,p=0;p<l;p++)m=t.call(o,s(i,d),h,[d,y],[r,e]),m!==void 0&&u(n,y,a(m)),d+=v,y+=f,h+=1}bU.exports=Xkr});var wU=c((bde,qU)=>{"use strict";function Kkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x;for(y=r.shape,h=r.strides,g=e.strides,r.order==="row-major"?(p=y[1],m=y[0],v=h[1],f=h[0]-p*h[1],l=g[1],d=g[0]-p*g[1]):(p=y[0],m=y[1],v=h[0],f=h[1]-p*h[0],l=g[0],d=g[1]-p*g[0]),b=r.offset,S=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],x=0,A=0;A<m;A++){for(w=0;w<p;w++)_=t.call(o,s(i,b),x,[b,S],[r,e]),_!==void 0&&u(n,S,a(_)),b+=v,S+=l,x+=1;b+=f,S+=d}}qU.exports=Kkr});var EU=c((xde,SU)=>{"use strict";function Hkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j;for(m=r.shape,S=r.strides,w=e.strides,r.order==="row-major"?(h=m[2],g=m[1],b=m[0],v=S[2],f=S[1]-h*S[2],l=S[0]-g*S[1],d=w[2],y=w[1]-h*w[2],p=w[0]-g*w[1]):(h=m[0],g=m[1],b=m[2],v=S[0],f=S[1]-h*S[0],l=S[2]-g*S[1],d=w[0],y=w[1]-h*w[0],p=w[2]-g*w[1]),A=r.offset,_=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],j=0,q=0;q<b;q++){for(E=0;E<g;E++){for(x=0;x<h;x++)T=t.call(o,s(i,A),j,[A,_],[r,e]),T!==void 0&&u(n,_,a(T)),A+=v,_+=d,j+=1;A+=f,_+=y}A+=l,_+=p}}SU.exports=Hkr});var _U=c((qde,AU)=>{"use strict";function Zkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k;for(g=r.shape,_=r.strides,x=e.strides,r.order==="row-major"?(b=g[3],S=g[2],w=g[1],A=g[0],v=_[3],f=_[2]-b*_[3],l=_[1]-S*_[2],d=_[0]-w*_[1],y=x[3],p=x[2]-b*x[3],m=x[1]-S*x[2],h=x[0]-w*x[1]):(b=g[0],S=g[1],w=g[2],A=g[3],v=_[0],f=_[1]-b*_[0],l=_[2]-S*_[1],d=_[3]-w*_[2],y=x[0],p=x[1]-b*x[0],m=x[2]-S*x[1],h=x[3]-w*x[2]),E=r.offset,q=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],k=0,I=0;I<A;I++){for(O=0;O<w;O++){for(j=0;j<S;j++){for(T=0;T<b;T++)D=t.call(o,s(i,E),k,[E,q],[r,e]),D!==void 0&&u(n,q,a(D)),E+=v,q+=y,k+=1;E+=f,q+=p}E+=l,q+=m}E+=d,q+=h}}AU.exports=Zkr});var jU=c((wde,TU)=>{"use strict";function Qkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B;for(S=r.shape,q=r.strides,T=e.strides,r.order==="row-major"?(w=S[4],A=S[3],_=S[2],x=S[1],E=S[0],v=q[4],f=q[3]-w*q[4],l=q[2]-A*q[3],d=q[1]-_*q[2],y=q[0]-x*q[1],p=T[4],m=T[3]-w*T[4],h=T[2]-A*T[3],g=T[1]-_*T[2],b=T[0]-x*T[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],v=q[0],f=q[1]-w*q[0],l=q[2]-A*q[1],d=q[3]-_*q[2],y=q[4]-x*q[3],p=T[0],m=T[1]-w*T[0],h=T[2]-A*T[1],g=T[3]-_*T[2],b=T[4]-x*T[3]),j=r.offset,O=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],B=0,F=0;F<E;F++){for(N=0;N<x;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++)R=t.call(o,s(i,j),B,[j,O],[r,e]),R!==void 0&&u(n,O,a(R)),j+=v,O+=p,B+=1;j+=f,O+=m}j+=l,O+=h}j+=d,O+=g}j+=y,O+=b}}TU.exports=Qkr});var OU=c((Sde,IU)=>{"use strict";function rBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C;for(A=r.shape,O=r.strides,I=e.strides,r.order==="row-major"?(_=A[5],x=A[4],E=A[3],q=A[2],T=A[1],j=A[0],v=O[5],f=O[4]-_*O[5],l=O[3]-x*O[4],d=O[2]-E*O[3],y=O[1]-q*O[2],p=O[0]-T*O[1],m=I[5],h=I[4]-_*I[5],g=I[3]-x*I[4],b=I[2]-E*I[3],S=I[1]-q*I[2],w=I[0]-T*I[1]):(_=A[0],x=A[1],E=A[2],q=A[3],T=A[4],j=A[5],v=O[0],f=O[1]-_*O[0],l=O[2]-x*O[1],d=O[3]-E*O[2],y=O[4]-q*O[3],p=O[5]-T*O[4],m=I[0],h=I[1]-_*I[0],g=I[2]-x*I[1],b=I[3]-E*I[2],S=I[4]-q*I[3],w=I[5]-T*I[4]),D=r.offset,k=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],C=0,V=0;V<j;V++){for(z=0;z<T;z++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++)U=t.call(o,s(i,D),C,[D,k],[r,e]),U!==void 0&&u(n,k,a(U)),D+=v,k+=m,C+=1;D+=f,k+=h}D+=l,k+=g}D+=d,k+=b}D+=y,k+=S}D+=p,k+=w}}IU.exports=rBr});var DU=c((Ede,NU)=>{"use strict";function eBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G;for(x=r.shape,k=r.strides,N=e.strides,r.order==="row-major"?(E=x[6],q=x[5],T=x[4],j=x[3],O=x[2],I=x[1],D=x[0],v=k[6],f=k[5]-E*k[6],l=k[4]-q*k[5],d=k[3]-T*k[4],y=k[2]-j*k[3],p=k[1]-O*k[2],m=k[0]-I*k[1],h=N[6],g=N[5]-E*N[6],b=N[4]-q*N[5],S=N[3]-T*N[4],w=N[2]-j*N[3],A=N[1]-O*N[2],_=N[0]-I*N[1]):(E=x[0],q=x[1],T=x[2],j=x[3],O=x[4],I=x[5],D=x[6],v=k[0],f=k[1]-E*k[0],l=k[2]-q*k[1],d=k[3]-T*k[2],y=k[4]-j*k[3],p=k[5]-O*k[4],m=k[6]-I*k[5],h=N[0],g=N[1]-E*N[0],b=N[2]-q*N[1],S=N[3]-T*N[2],w=N[4]-j*N[3],A=N[5]-O*N[4],_=N[6]-I*N[5]),F=r.offset,R=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],G=0,L=0;L<D;L++){for(P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++)M=t.call(o,s(i,F),G,[F,R],[r,e]),M!==void 0&&u(n,R,a(M)),F+=v,R+=h,G+=1;F+=f,R+=g}F+=l,R+=b}F+=d,R+=S}F+=y,R+=w}F+=p,R+=A}F+=m,R+=_}}NU.exports=eBr});var BU=c((Ade,kU)=>{"use strict";function aBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J;for(q=r.shape,R=r.strides,B=e.strides,r.order==="row-major"?(T=q[7],j=q[6],O=q[5],I=q[4],D=q[3],k=q[2],N=q[1],F=q[0],v=R[7],f=R[6]-T*R[7],l=R[5]-j*R[6],d=R[4]-O*R[5],y=R[3]-I*R[4],p=R[2]-D*R[3],m=R[1]-k*R[2],h=R[0]-N*R[1],g=B[7],b=B[6]-T*B[7],S=B[5]-j*B[6],w=B[4]-O*B[5],A=B[3]-I*B[4],_=B[2]-D*B[3],x=B[1]-k*B[2],E=B[0]-N*B[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],v=R[0],f=R[1]-T*R[0],l=R[2]-j*R[1],d=R[3]-O*R[2],y=R[4]-I*R[3],p=R[5]-D*R[4],m=R[6]-k*R[5],h=R[7]-N*R[6],g=B[0],b=B[1]-T*B[0],S=B[2]-j*B[1],w=B[3]-O*B[2],A=B[4]-I*B[3],_=B[5]-D*B[4],x=B[6]-k*B[5],E=B[7]-N*B[6]),z=r.offset,V=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],J=0,Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++)W=t.call(o,s(i,z),J,[z,V],[r,e]),W!==void 0&&u(n,V,a(W)),z+=v,V+=g,J+=1;z+=f,V+=b}z+=l,V+=S}z+=d,V+=w}z+=y,V+=A}z+=p,V+=_}z+=m,V+=x}z+=h,V+=E}}kU.exports=aBr});var RU=c((_de,FU)=>{"use strict";function tBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q;for(j=r.shape,V=r.strides,U=e.strides,r.order==="row-major"?(O=j[8],I=j[7],D=j[6],k=j[5],N=j[4],F=j[3],R=j[2],B=j[1],z=j[0],v=V[8],f=V[7]-O*V[8],l=V[6]-I*V[7],d=V[5]-D*V[6],y=V[4]-k*V[5],p=V[3]-N*V[4],m=V[2]-F*V[3],h=V[1]-R*V[2],g=V[0]-B*V[1],b=U[8],S=U[7]-O*U[8],w=U[6]-I*U[7],A=U[5]-D*U[6],_=U[4]-k*U[5],x=U[3]-N*U[4],E=U[2]-F*U[3],q=U[1]-R*U[2],T=U[0]-B*U[1]):(O=j[0],I=j[1],D=j[2],k=j[3],N=j[4],F=j[5],R=j[6],B=j[7],z=j[8],v=V[0],f=V[1]-O*V[0],l=V[2]-I*V[1],d=V[3]-D*V[2],y=V[4]-k*V[3],p=V[5]-N*V[4],m=V[6]-F*V[5],h=V[7]-R*V[6],g=V[8]-B*V[7],b=U[0],S=U[1]-O*U[0],w=U[2]-I*U[1],A=U[3]-D*U[2],_=U[4]-k*U[3],x=U[5]-N*U[4],E=U[6]-F*U[5],q=U[7]-R*U[6],T=U[8]-B*U[7]),C=r.offset,P=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],Q=0,K=0;K<z;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++)H=t.call(o,s(i,C),Q,[C,P],[r,e]),H!==void 0&&u(n,P,a(H)),C+=v,P+=b,Q+=1;C+=f,P+=S}C+=l,P+=w}C+=d,P+=A}C+=y,P+=_}C+=p,P+=x}C+=m,P+=E}C+=h,P+=q}C+=g,P+=T}}FU.exports=tBr});var VU=c((Tde,zU)=>{"use strict";function iBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er;for(I=r.shape,P=r.strides,L=e.strides,r.order==="row-major"?(D=I[9],k=I[8],N=I[7],F=I[6],R=I[5],B=I[4],z=I[3],V=I[2],U=I[1],C=I[0],v=P[9],f=P[8]-D*P[9],l=P[7]-k*P[8],d=P[6]-N*P[7],y=P[5]-F*P[6],p=P[4]-R*P[5],m=P[3]-B*P[4],h=P[2]-z*P[3],g=P[1]-V*P[2],b=P[0]-U*P[1],S=L[9],w=L[8]-D*L[9],A=L[7]-k*L[8],_=L[6]-N*L[7],x=L[5]-F*L[6],E=L[4]-R*L[5],q=L[3]-B*L[4],T=L[2]-z*L[3],j=L[1]-V*L[2],O=L[0]-U*L[1]):(D=I[0],k=I[1],N=I[2],F=I[3],R=I[4],B=I[5],z=I[6],V=I[7],U=I[8],C=I[9],v=P[0],f=P[1]-D*P[0],l=P[2]-k*P[1],d=P[3]-N*P[2],y=P[4]-F*P[3],p=P[5]-R*P[4],m=P[6]-B*P[5],h=P[7]-z*P[6],g=P[8]-V*P[7],b=P[9]-U*P[8],S=L[0],w=L[1]-D*L[0],A=L[2]-k*L[1],_=L[3]-N*L[2],x=L[4]-F*L[3],E=L[5]-R*L[4],q=L[6]-B*L[5],T=L[7]-z*L[6],j=L[8]-V*L[7],O=L[9]-U*L[8]),M=r.offset,G=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],er=0,rr=0;rr<C;rr++){for(Z=0;Z<U;Z++){for(Q=0;Q<V;Q++){for(H=0;H<z;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++)ar=t.call(o,s(i,M),er,[M,G],[r,e]),ar!==void 0&&u(n,G,a(ar)),M+=v,G+=S,er+=1;M+=f,G+=w}M+=l,G+=A}M+=d,G+=_}M+=y,G+=x}M+=p,G+=E}M+=m,G+=q}M+=h,G+=T}M+=g,G+=j}M+=b,G+=O}}zU.exports=iBr});var LU=c((jde,PU)=>{"use strict";var oBr=Jr(),UU=na(),CU="throw";function nBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;for(d=r.shape,v=oBr(d),i=r.data,n=e.data,y=r.strides,p=e.strides,m=r.offset,h=e.offset,s=r.order,u=e.order,f=r.accessors[0],l=e.accessors[1],w=0;w<v;w++)g=UU(d,y,m,s,w,CU),b=UU(d,p,h,u,w,CU),S=t.call(o,f(i,g),w,[g,b],[r,e]),S!==void 0&&l(n,b,a(S))}PU.exports=nBr});var GU=c((Ide,MU)=>{"use strict";function sBr(r,e,a,t,o){var i=r.offset,n=e.offset,s=t.call(o,r.data[i],0,[i,n],[r,e]);s!==void 0&&(e.data[n]=a(s))}MU.exports=sBr});var $U=c((Ode,YU)=>{"use strict";function uBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p;for(v=r.shape[0],s=r.strides[0],u=e.strides[0],f=r.offset,l=e.offset,i=r.data,n=e.data,p=0,d=0;d<v;d++)y=t.call(o,i[f],p,[f,l],[r,e]),y!==void 0&&(n[l]=a(y)),f+=s,l+=u,p+=1}YU.exports=uBr});var JU=c((Nde,WU)=>{"use strict";function vBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A;for(l=r.shape,p=r.strides,m=e.strides,r.order==="row-major"?(d=l[1],y=l[0],s=p[1],u=p[0]-d*p[1],v=m[1],f=m[0]-d*m[1]):(d=l[0],y=l[1],s=p[0],u=p[1]-d*p[0],v=m[0],f=m[1]-d*m[0]),h=r.offset,g=e.offset,i=r.data,n=e.data,A=0,S=0;S<y;S++){for(b=0;b<d;b++)w=t.call(o,i[h],A,[h,g],[r,e]),w!==void 0&&(n[g]=a(w)),h+=s,g+=v,A+=1;h+=u,g+=f}}WU.exports=vBr});var KU=c((Dde,XU)=>{"use strict";function fBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q;for(y=r.shape,g=r.strides,b=e.strides,r.order==="row-major"?(p=y[2],m=y[1],h=y[0],s=g[2],u=g[1]-p*g[2],v=g[0]-m*g[1],f=b[2],l=b[1]-p*b[2],d=b[0]-m*b[1]):(p=y[0],m=y[1],h=y[2],s=g[0],u=g[1]-p*g[0],v=g[2]-m*g[1],f=b[0],l=b[1]-p*b[0],d=b[2]-m*b[1]),S=r.offset,w=e.offset,i=r.data,n=e.data,q=0,x=0;x<h;x++){for(_=0;_<m;_++){for(A=0;A<p;A++)E=t.call(o,i[S],q,[S,w],[r,e]),E!==void 0&&(n[w]=a(E)),S+=s,w+=f,q+=1;S+=u,w+=l}S+=v,w+=d}}XU.exports=fBr});var ZU=c((kde,HU)=>{"use strict";function lBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(m=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(h=m[3],g=m[2],b=m[1],S=m[0],s=w[3],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-b*w[1],l=A[3],d=A[2]-h*A[3],y=A[1]-g*A[2],p=A[0]-b*A[1]):(h=m[0],g=m[1],b=m[2],S=m[3],s=w[0],u=w[1]-h*w[0],v=w[2]-g*w[1],f=w[3]-b*w[2],l=A[0],d=A[1]-h*A[0],y=A[2]-g*A[1],p=A[3]-b*A[2]),_=r.offset,x=e.offset,i=r.data,n=e.data,I=0,j=0;j<S;j++){for(T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++)O=t.call(o,i[_],I,[_,x],[r,e]),O!==void 0&&(n[x]=a(O)),_+=s,x+=l,I+=1;_+=u,x+=d}_+=v,x+=y}_+=f,x+=p}}HU.exports=lBr});var rC=c((Bde,QU)=>{"use strict";function cBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F;for(g=r.shape,x=r.strides,E=e.strides,r.order==="row-major"?(b=g[4],S=g[3],w=g[2],A=g[1],_=g[0],s=x[4],u=x[3]-b*x[4],v=x[2]-S*x[3],f=x[1]-w*x[2],l=x[0]-A*x[1],d=E[4],y=E[3]-b*E[4],p=E[2]-S*E[3],m=E[1]-w*E[2],h=E[0]-A*E[1]):(b=g[0],S=g[1],w=g[2],A=g[3],_=g[4],s=x[0],u=x[1]-b*x[0],v=x[2]-S*x[1],f=x[3]-w*x[2],l=x[4]-A*x[3],d=E[0],y=E[1]-b*E[0],p=E[2]-S*E[1],m=E[3]-w*E[2],h=E[4]-A*E[3]),q=r.offset,T=e.offset,i=r.data,n=e.data,F=0,k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++)N=t.call(o,i[q],F,[q,T],[r,e]),N!==void 0&&(n[T]=a(N)),q+=s,T+=d,F+=1;q+=u,T+=y}q+=v,T+=p}q+=f,T+=m}q+=l,T+=h}}QU.exports=cBr});var aC=c((Fde,eC)=>{"use strict";function dBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V;for(S=r.shape,T=r.strides,j=e.strides,r.order==="row-major"?(w=S[5],A=S[4],_=S[3],x=S[2],E=S[1],q=S[0],s=T[5],u=T[4]-w*T[5],v=T[3]-A*T[4],f=T[2]-_*T[3],l=T[1]-x*T[2],d=T[0]-E*T[1],y=j[5],p=j[4]-w*j[5],m=j[3]-A*j[4],h=j[2]-_*j[3],g=j[1]-x*j[2],b=j[0]-E*j[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],q=S[5],s=T[0],u=T[1]-w*T[0],v=T[2]-A*T[1],f=T[3]-_*T[2],l=T[4]-x*T[3],d=T[5]-E*T[4],y=j[0],p=j[1]-w*j[0],m=j[2]-A*j[1],h=j[3]-_*j[2],g=j[4]-x*j[3],b=j[5]-E*j[4]),O=r.offset,I=e.offset,i=r.data,n=e.data,V=0,B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)z=t.call(o,i[O],V,[O,I],[r,e]),z!==void 0&&(n[I]=a(z)),O+=s,I+=y,V+=1;O+=u,I+=p}O+=v,I+=m}O+=f,I+=h}O+=l,I+=g}O+=d,I+=b}}eC.exports=dBr});var iC=c((Rde,tC)=>{"use strict";function pBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L;for(A=r.shape,I=r.strides,D=e.strides,r.order==="row-major"?(_=A[6],x=A[5],E=A[4],q=A[3],T=A[2],j=A[1],O=A[0],s=I[6],u=I[5]-_*I[6],v=I[4]-x*I[5],f=I[3]-E*I[4],l=I[2]-q*I[3],d=I[1]-T*I[2],y=I[0]-j*I[1],p=D[6],m=D[5]-_*D[6],h=D[4]-x*D[5],g=D[3]-E*D[4],b=D[2]-q*D[3],S=D[1]-T*D[2],w=D[0]-j*D[1]):(_=A[0],x=A[1],E=A[2],q=A[3],T=A[4],j=A[5],O=A[6],s=I[0],u=I[1]-_*I[0],v=I[2]-x*I[1],f=I[3]-E*I[2],l=I[4]-q*I[3],d=I[5]-T*I[4],y=I[6]-j*I[5],p=D[0],m=D[1]-_*D[0],h=D[2]-x*D[1],g=D[3]-E*D[2],b=D[4]-q*D[3],S=D[5]-T*D[4],w=D[6]-j*D[5]),k=r.offset,N=e.offset,i=r.data,n=e.data,L=0,C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++)P=t.call(o,i[k],L,[k,N],[r,e]),P!==void 0&&(n[N]=a(P)),k+=s,N+=p,L+=1;k+=u,N+=m}k+=v,N+=h}k+=f,N+=g}k+=l,N+=b}k+=d,N+=S}k+=y,N+=w}}tC.exports=pBr});var nC=c((zde,oC)=>{"use strict";function yBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y;for(x=r.shape,N=r.strides,F=e.strides,r.order==="row-major"?(E=x[7],q=x[6],T=x[5],j=x[4],O=x[3],I=x[2],D=x[1],k=x[0],s=N[7],u=N[6]-E*N[7],v=N[5]-q*N[6],f=N[4]-T*N[5],l=N[3]-j*N[4],d=N[2]-O*N[3],y=N[1]-I*N[2],p=N[0]-D*N[1],m=F[7],h=F[6]-E*F[7],g=F[5]-q*F[6],b=F[4]-T*F[5],S=F[3]-j*F[4],w=F[2]-O*F[3],A=F[1]-I*F[2],_=F[0]-D*F[1]):(E=x[0],q=x[1],T=x[2],j=x[3],O=x[4],I=x[5],D=x[6],k=x[7],s=N[0],u=N[1]-E*N[0],v=N[2]-q*N[1],f=N[3]-T*N[2],l=N[4]-j*N[3],d=N[5]-O*N[4],y=N[6]-I*N[5],p=N[7]-D*N[6],m=F[0],h=F[1]-E*F[0],g=F[2]-q*F[1],b=F[3]-T*F[2],S=F[4]-j*F[3],w=F[5]-O*F[4],A=F[6]-I*F[5],_=F[7]-D*F[6]),R=r.offset,B=e.offset,i=r.data,n=e.data,Y=0,G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++)$=t.call(o,i[R],Y,[R,B],[r,e]),$!==void 0&&(n[B]=a($)),R+=s,B+=m,Y+=1;R+=u,B+=h}R+=v,B+=g}R+=f,B+=b}R+=l,B+=S}R+=d,B+=w}R+=y,B+=A}R+=p,B+=_}}oC.exports=yBr});var uC=c((Vde,sC)=>{"use strict";function mBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K;for(q=r.shape,B=r.strides,z=e.strides,r.order==="row-major"?(T=q[8],j=q[7],O=q[6],I=q[5],D=q[4],k=q[3],N=q[2],F=q[1],R=q[0],s=B[8],u=B[7]-T*B[8],v=B[6]-j*B[7],f=B[5]-O*B[6],l=B[4]-I*B[5],d=B[3]-D*B[4],y=B[2]-k*B[3],p=B[1]-N*B[2],m=B[0]-F*B[1],h=z[8],g=z[7]-T*z[8],b=z[6]-j*z[7],S=z[5]-O*z[6],w=z[4]-I*z[5],A=z[3]-D*z[4],_=z[2]-k*z[3],x=z[1]-N*z[2],E=z[0]-F*z[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],R=q[8],s=B[0],u=B[1]-T*B[0],v=B[2]-j*B[1],f=B[3]-O*B[2],l=B[4]-I*B[3],d=B[5]-D*B[4],y=B[6]-k*B[5],p=B[7]-N*B[6],m=B[8]-F*B[7],h=z[0],g=z[1]-T*z[0],b=z[2]-j*z[1],S=z[3]-O*z[2],w=z[4]-I*z[3],A=z[5]-D*z[4],_=z[6]-k*z[5],x=z[7]-N*z[6],E=z[8]-F*z[7]),V=r.offset,U=e.offset,i=r.data,n=e.data,K=0,J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++)X=t.call(o,i[V],K,[V,U],[r,e]),X!==void 0&&(n[U]=a(X)),V+=s,U+=h,K+=1;V+=u,U+=g}V+=v,U+=b}V+=f,U+=S}V+=l,U+=w}V+=d,U+=A}V+=y,U+=_}V+=p,U+=x}V+=m,U+=E}}sC.exports=mBr});var fC=c((Ude,vC)=>{"use strict";function hBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr;for(j=r.shape,U=r.strides,C=e.strides,r.order==="row-major"?(O=j[9],I=j[8],D=j[7],k=j[6],N=j[5],F=j[4],R=j[3],B=j[2],z=j[1],V=j[0],s=U[9],u=U[8]-O*U[9],v=U[7]-I*U[8],f=U[6]-D*U[7],l=U[5]-k*U[6],d=U[4]-N*U[5],y=U[3]-F*U[4],p=U[2]-R*U[3],m=U[1]-B*U[2],h=U[0]-z*U[1],g=C[9],b=C[8]-O*C[9],S=C[7]-I*C[8],w=C[6]-D*C[7],A=C[5]-k*C[6],_=C[4]-N*C[5],x=C[3]-F*C[4],E=C[2]-R*C[3],q=C[1]-B*C[2],T=C[0]-z*C[1]):(O=j[0],I=j[1],D=j[2],k=j[3],N=j[4],F=j[5],R=j[6],B=j[7],z=j[8],V=j[9],s=U[0],u=U[1]-O*U[0],v=U[2]-I*U[1],f=U[3]-D*U[2],l=U[4]-k*U[3],d=U[5]-N*U[4],y=U[6]-F*U[5],p=U[7]-R*U[6],m=U[8]-B*U[7],h=U[9]-z*U[8],g=C[0],b=C[1]-O*C[0],S=C[2]-I*C[1],w=C[3]-D*C[2],A=C[4]-k*C[3],_=C[5]-N*C[4],x=C[6]-F*C[5],E=C[7]-R*C[6],q=C[8]-B*C[7],T=C[9]-z*C[8]),P=r.offset,L=e.offset,i=r.data,n=e.data,rr=0,Q=0;Q<V;Q++){for(H=0;H<z;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++)Z=t.call(o,i[P],rr,[P,L],[r,e]),Z!==void 0&&(n[L]=a(Z)),P+=s,L+=g,rr+=1;P+=u,L+=b}P+=v,L+=S}P+=f,L+=w}P+=l,L+=A}P+=d,L+=_}P+=y,L+=x}P+=p,L+=E}P+=m,L+=q}P+=h,L+=T}}vC.exports=hBr});var pC=c((Cde,dC)=>{"use strict";var gBr=Jr(),lC=na(),cC="throw";function bBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b;for(f=r.shape,v=gBr(f),i=r.data,n=e.data,l=r.strides,d=e.strides,y=r.offset,p=e.offset,s=r.order,u=e.order,b=0;b<v;b++)m=lC(f,l,y,s,b,cC),h=lC(f,d,p,u,b,cC),g=t.call(o,i[m],b,[m,h],[r,e]),g!==void 0&&(n[h]=a(g))}dC.exports=bBr});var xC=c((Pde,bC)=>{"use strict";var yC=Ea(),mC=at(),hC=ei(),xBr=RV(),qBr=VV(),wBr=CV(),SBr=LV(),EBr=GV(),ABr=$V(),_Br=JV(),TBr=KV(),jBr=ZV(),IBr=rU(),OBr=aU(),NBr=iU(),DBr=nU(),kBr=uU(),BBr=fU(),FBr=cU(),RBr=pU(),zBr=mU(),VBr=gU(),UBr=xU(),CBr=wU(),PBr=EU(),LBr=_U(),MBr=jU(),GBr=OU(),YBr=DU(),$Br=BU(),WBr=RU(),JBr=VU(),XBr=LU(),KBr=GU(),HBr=$U(),ZBr=JU(),QBr=KU(),rFr=ZU(),eFr=rC(),aFr=aC(),tFr=iC(),iFr=nC(),oFr=uC(),nFr=fC(),sFr=pC(),ji=[KBr,HBr,ZBr,QBr,rFr,eFr,aFr,tFr,iFr,oFr,nFr],ko=[VBr,UBr,CBr,PBr,LBr,MBr,GBr,YBr,$Br,WBr,JBr],uFr=[IBr,OBr,NBr,DBr,kBr,BBr,FBr,RBr,zBr],vFr=[xBr,qBr,wBr,SBr,EBr,ABr,_Br,TBr,jBr],gC=ji.length-1;function fFr(r,e,a,t){var o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;if(g=hC(r[0]),b=hC(r[1]),s=g.shape,u=b.shape,o=s.length,o!==u.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+o+". ndims(y) == "+u.length+".");if(o===0)return g.accessorProtocol||b.accessorProtocol?ko[o](g,b,e,a,t):ji[o](g,b,e,a,t);for(l=1,h=0,w=0;w<o;w++){if(S=s[w],S!==u[w])throw new Error("invalid arguments. Arrays must have the same shape.");l*=S,S===1&&(h+=1)}if(l!==0){if(o===1)return g.accessorProtocol||b.accessorProtocol?ko[o](g,b,e,a,t):ji[o](g,b,e,a,t);if(d=g.strides,y=b.strides,h===o-1){for(w=0;w<o&&s[w]===1;w++);return g.shape=[s[w]],b.shape=g.shape,g.strides=[d[w]],b.strides=[y[w]],g.accessorProtocol||b.accessorProtocol?ko[1](g,b,e,a,t):ji[1](g,b,e,a,t)}if(v=yC(d),f=yC(y),v!==0&&f!==0&&v===f){if(i=mC(s,d,g.offset),n=mC(u,y,b.offset),l===i[1]-i[0]+1&&l===n[1]-n[0]+1)return v===1?p=i[0]:p=i[1],f===1?m=n[0]:m=n[1],g.shape=[l],b.shape=g.shape,g.strides=[v],b.strides=[f],g.offset=p,b.offset=m,g.accessorProtocol||b.accessorProtocol?ko[1](g,b,e,a,t):ji[1](g,b,e,a,t);if(o<=gC)return g.accessorProtocol||b.accessorProtocol?ko[o](g,b,e,a,t):ji[o](g,b,e,a,t)}if(o<=gC)return g.accessorProtocol||b.accessorProtocol?vFr[o-2](g,b,e,a,t):uFr[o-2](g,b,e,a,t);if(g.accessorProtocol||b.accessorProtocol)return XBr(g,b,e,a,t);sFr(g,b,e,a,t)}}bC.exports=fFr});var wC=c((Lde,qC)=>{"use strict";var lFr=xC();qC.exports=lFr});var EC=c((Mde,SC)=>{"use strict";var cFr=Mn(),dFr=mf(),pFr=wo(),yFr=ff(),mFr=$n(),hFr=Wn(),gFr=Gn(),bFr=lf(),xFr=di(),dt=ka(),qFr=pr(),wFr={floating_point:[cFr,dt.get("dtypes.floating_point")],real_floating_point:[dFr,dt.get("dtypes.real_floating_point")],complex_floating_point:[pFr,dt.get("dtypes.complex_floating_point")],integer:[yFr,dt.get("dtypes.integer")],signed_integer:[mFr,dt.get("dtypes.signed_integer")],unsigned_integer:[hFr,dt.get("dtypes.unsigned_integer")],real:[gFr,dt.get("dtypes.real")],numeric:[bFr,dt.get("dtypes.numeric")]},SFr=dt.get("dtypes.default");function EFr(r,e){var a;if(e==="default")return SFr;if(e==="same"||e==="promoted")return r;if(e==="bool")throw new Error("not implemented");if(a=wFr[e],a===void 0){if(xFr(e))return e;throw new TypeError(qFr("invalid argument. Second argument must be a supported data type policy. Value: `%s`.",e))}return a[0](r)?r:a[1]}SC.exports=EFr});var _C=c((Gde,AC)=>{"use strict";var AFr=EC();AC.exports=AFr});var jC=c((Yde,TC)=>{"use strict";var _Fr=ze(),TFr=Ye(),jFr=Fa(),IFr=pr(),OFr=aa(),NFr=Jr();function DFr(r,e,a){var t,o,i,n;if(t=e.length,t>0?(i=NFr(e),n=_Fr(e,a)):(i=1,n=[0]),o=jFr(r,i),o===null)throw new TypeError(IFr("invalid argument. First argument must be a recognized data type. Value: `%s`.",r));return new OFr(r,o,e,n,TFr(e,n),a)}TC.exports=DFr});var OC=c(($de,IC)=>{"use strict";var kFr=jC();IC.exports=kFr});var DC=c((Wde,NC)=>{"use strict";var BFr=ze(),FFr=Ye(),RFr=Fa(),zFr=Jr(),VFr=Xe(),UFr=Te(),CFr=sa(),PFr=pr();function LFr(r){var e,a,t,o,i,n,s;if(s=VFr(r),i=UFr(r,!0),o=CFr(r),e=i.length,e>0?(a=zFr(i),n=BFr(i,o)):(a=1,n=[0]),t=RFr(s,a),t===null)throw new TypeError(PFr("invalid argument. First argument must have a recognized data type. Value: `%s`.",s));return new r.constructor(s,t,i,n,FFr(i,n),o)}NC.exports=LFr});var BC=c((Jde,kC)=>{"use strict";var MFr=DC();kC.exports=MFr});var RC=c((Xde,FC)=>{"use strict";var Er=zt(),Sr={};Er(Sr,"assert",k8());Er(Sr,"assign",bf());Er(Sr,"binaryLoopOrder",dj());Er(Sr,"binaryBlockSize",bj());Er(Sr,"bind2vind",Oj());Er(Sr,"broadcastArray",_o());Er(Sr,"broadcastArrays",Pj());Er(Sr,"broadcastScalar",Yj());Er(Sr,"broadcastShapes",qi());Er(Sr,"buffer",Fa());Er(Sr,"bufferCtors",go());Er(Sr,"bufferDataType",Rn());Er(Sr,"bufferDataTypeEnum",Xj());Er(Sr,"bytesPerElement",xt());Er(Sr,"char2dtype",sI());Er(Sr,"clampIndex",xn());Er(Sr,"ndarray",aa());Er(Sr,"data",lt());Er(Sr,"dtype",Xe());Er(Sr,"dtypeChar",Af());Er(Sr,"dtypeDesc",pI());Er(Sr,"dtypeEnum2Str",Sn());Er(Sr,"dtypeResolveEnum",jf());Er(Sr,"dtypeResolveStr",Ba());Er(Sr,"dtypeStr2Enum",mo());Er(Sr,"dtype2c",wI());Er(Sr,"dtypes2signatures",Of());Er(Sr,"empty",XI());Er(Sr,"emptyLike",QI());Er(Sr,"expandDimensions",sO());Er(Sr,"flag",yf());Er(Sr,"flags",So());Er(Sr,"fliplr",T7());Er(Sr,"flipud",k7());Er(Sr,"forEach",zD());Er(Sr,"scalar2ndarray",PD());Er(Sr,"ind",st());Er(Sr,"ind2sub",Ai());Er(Sr,"iterationOrder",Ea());Er(Sr,"maxViewBufferIndex",YD());Er(Sr,"maybeBroadcastArray",Lf());Er(Sr,"maybeBroadcastArrays",QD());Er(Sr,"metaDataProps",tk());Er(Sr,"minViewBufferIndex",sk());Er(Sr,"minmaxViewBufferIndex",at());Er(Sr,"ndarraylike2ndarray",lk());Er(Sr,"ndarraylike2object",ei());Er(Sr,"ndims",Ua());Er(Sr,"nextCartesianIndex",He());Er(Sr,"nonsingletonDimensions",xk());Er(Sr,"normalizeIndex",ya());Er(Sr,"nullary",eF());Er(Sr,"nullaryLoopOrder",Zr());Er(Sr,"nullaryBlockSize",Qr());Er(Sr,"numel",Jr());Er(Sr,"numelDimension",Yf());Er(Sr,"offset",Ha());Er(Sr,"order",sa());Er(Sr,"outputPolicyEnum2Str",as());Er(Sr,"outputPolicyResolveEnum",EF());Er(Sr,"outputPolicyResolveStr",jF());Er(Sr,"outputPolicyStr2Enum",ts());Er(Sr,"prependSingletonDimensions",RF());Er(Sr,"removeSingletonDimensions",GF());Er(Sr,"reverse",JF());Er(Sr,"reverseDimension",Qn());Er(Sr,"serializeMetaData",aR());Er(Sr,"shape",Te());Er(Sr,"shape2strides",ze());Er(Sr,"singletonDimensions",nR());Er(Sr,"slice",ye());Er(Sr,"sliceAssign",is());Er(Sr,"sliceDimension",Xf());Er(Sr,"sliceDimensionFrom",Kf());Er(Sr,"sliceDimensionTo",Hf());Er(Sr,"sliceFrom",Zf());Er(Sr,"sliceTo",Qf());Er(Sr,"stride",rl());Er(Sr,"strides",ba());Er(Sr,"strides2offset",Ye());Er(Sr,"strides2order",Pt());Er(Sr,"sub2ind",el());Er(Sr,"ndarray2array",al());Er(Sr,"transpose",$R());Er(Sr,"unary",BV());Er(Sr,"unaryBy",wC());Er(Sr,"unaryLoopOrder",zr());Er(Sr,"unaryOutputDataType",_C());Er(Sr,"unaryBlockSize",Rr());Er(Sr,"vind2bind",na());Er(Sr,"wrapIndex",qn());Er(Sr,"zeros",OC());Er(Sr,"zerosLike",BC());FC.exports=Sr});var VC=c((Kde,zC)=>{"use strict";var GFr=se(),YFr=ke(),$Fr=ge().isPrimitive,Bo=jt(),WFr=Ra(),JFr=oe(),XFr=Xa(),KFr=Tt(),HFr=Ka(),ZFr=vt(),Fo=pr();function QFr(r,e){var a,t,o,i,n,s,u,v,f;if(!GFr(r))throw new TypeError(Fo("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!YFr(e))throw new TypeError(Fo("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.",e));if(n=e.length,o=JFr(r),s=o.length,n<s)throw new Error("invalid argument. Cannot broadcast an array to a shape having fewer dimensions. Arrays can only be broadcasted to shapes having the same or more dimensions.");for(a=[],v=0;v<n;v++)a.push(0);for(i=XFr(r),v=n-1;v>=0;v--)if(f=s-n+v,!(f<0)){if(u=o[f],t=e[v],!$Fr(t))throw new TypeError(Fo("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.","["+e.join(",")+"]"));if(t!==0&&t<u)throw new Error(Fo("invalid argument. Input array cannot be broadcast to the specified shape, as the specified shape has a dimension whose size is less than the size of the corresponding dimension in the input array. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Bo(o).join(", "),Bo(e).join(", "),v));if(u===t)a[v]=i[f];else if(u===1)a[v]=0;else throw new Error(Fo("invalid argument. Input array and the specified shape are broadcast incompatible. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Bo(o).join(", "),Bo(e).join(", "),v))}return new r.constructor(WFr(r),ZFr(r),Bo(e),a,KFr(r),HFr(r),{readonly:!0})}zC.exports=QFr});var os=c((Hde,UC)=>{"use strict";var rRr=VC();UC.exports=rRr});var LC=c((Zde,PC)=>{"use strict";var eRr=se(),aRr=Ve(),tRr=qi(),iRr=os(),oRr=oe(),CC=pr();function nRr(r){var e,a,t,o,i,n,s;if(a=arguments.length,a===0)t=[];else if(a>1)for(t=[],s=0;s<arguments.length;s++)t.push(arguments[s]);else if(eRr(r))t=[r];else if(aRr(r))t=r;else throw new TypeError(CC("invalid argument. First argument must be either an ndarray or an array of ndarrays. Value: `%s`.",r));for(n=t.length,e=[],s=0;s<n;s++)try{e.push(oRr(t[s]))}catch{throw new TypeError(CC("invalid argument. An ndarray argument must be an ndarray. Value: `%s`.",t[s]))}if(i=tRr(e),i===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(o=[],s=0;s<n;s++)o.push(iRr(t[s],i));return o}PC.exports=nRr});var tl=c((Qde,MC)=>{"use strict";var sRr=LC();MC.exports=sRr});var il=c((r0e,GC)=>{"use strict";var uRr=fe().isPrimitive;function vRr(r){return uRr(r)&&r>0}GC.exports=vRr});var ol=c((e0e,YC)=>{"use strict";var fRr=fe().isObject;function lRr(r){return fRr(r)&&r.valueOf()>0}YC.exports=lRr});var WC=c((a0e,$C)=>{"use strict";var cRr=il(),dRr=ol();function pRr(r){return cRr(r)||dRr(r)}$C.exports=pRr});var ns=c((t0e,XC)=>{"use strict";var JC=Ir(),nl=WC(),yRr=il(),mRr=ol();JC(nl,"isPrimitive",yRr);JC(nl,"isObject",mRr);XC.exports=nl});var HC=c((i0e,KC)=>{"use strict";var hRr=un(),gRr=Pe(),bRr=hRr(gRr);KC.exports=bRr});var QC=c((o0e,ZC)=>{"use strict";function xRr(r,e,a,t,o,i,n,s,u){var v,f,l,d;for(v=i,l=0;l<r;l++){for(f=u,d=0;d<e&&a[v+d*o]===n[f];d++)f+=s;if(d===e)return l;v+=t}return-1}ZC.exports=xRr});var iP=c((n0e,tP)=>{"use strict";var rP=ge().isPrimitive,qRr=ns(),wRr=fe().isPrimitive,SRr=HC(),ERr=Pe(),eP=ke(),ARr=se(),Ot=pr(),_Rr=Ra(),aP=jf(),TRr=QC();function jRr(r){var e,a;for(e=[],a=0;a<r.length;a++)e.push(aP(r[a]));return e}function IRr(r,e,a,t,o,i){var n,s,u;if(ERr(r))u=r;else if(!SRr(r))throw new TypeError(Ot("invalid argument. First argument must be either a function or an array of functions. Value: `%s`.",r));if(!eP(e))throw new TypeError(Ot("invalid argument. Second argument must be an array-like object. Value: `%s`.",e));if(!eP(a)&&a!==null)throw new TypeError(Ot("invalid argument. Third argument must be an array-like object or null. Value: `%s`.",a));if(!qRr(t))throw new TypeError(Ot("invalid argument. Fourth argument must be a positive integer. Value: `%s`.",t));if(!rP(o))throw new TypeError(Ot("invalid argument. Fifth argument must be a nonnegative integer. Value: `%s`.",o));if(!rP(i))throw new TypeError(Ot("invalid argument. Sixth argument must be a nonnegative integer. Value: `%s`.",i));if(n=o+i,n===0)throw new Error("invalid arguments. Interface must accept at least one input and/or output ndarray. Based on the provided arguments, `nin+nout` equals `0`.");if(t!==n)throw new Error("invalid arguments. Fourth argument does not equal the number of input and output ndarrays.");if(u){if(s=e.length/n,!wRr(s))throw new Error("invalid argument. Unexpected number of types. A type must be specified for each input and output ndarray for each provided ndarray function.")}else if(s=r.length,e.length!==s*n)throw new Error("invalid argument. Unexpected number of types. A type must be specified for each input and output ndarray for each provided ndarray function.");if(a&&a.length!==s)throw new Error("invalid argument. The third argument must have the same number of elements as the first argument.");return e=jRr(e),v;function v(){var f,l,d,y,p,m,h;if(d=arguments.length,d!==t)throw d<t?new Error("invalid invocation. Insufficient arguments."):new Error("invalid invocation. Too many arguments.");for(f=[],l=[],h=0;h<t;h++){if(p=arguments[h],!ARr(p))throw h<o?new TypeError(Ot("invalid argument. Input array must be an ndarray-like object. Value: `%s`.",p)):new TypeError(Ot("invalid argument. Output array must be an ndarray-like object. Value: `%s`.",p));f.push(p),l.push(aP(_Rr(p)))}if(y=TRr(s,n,e,n,1,0,l,1,0),y<0)throw new TypeError("invalid arguments. Unable to resolve an ndarray function supporting the provided array argument data types.");if(u?m=u:m=r[y],a?m(f,a[y]):m(f),i===1)return f[n-1];if(i!==0)return f.slice(o)}}tP.exports=IRr});var nP=c((s0e,oP)=>{"use strict";var ORr=iP();oP.exports=ORr});var lP=c((u0e,fP)=>{"use strict";var NRr=ne(),ss=Xr(),DRr=sn(),kRr=ze(),BRr=Ye(),FRr=To(),RRr=_t(),zRr=Jr(),VRr=ma(),vP=ka(),sl=pr(),sP=vP.get("dtypes.default"),uP=vP.get("order");function URr(r){var e,a,t,o,i,n,s,u,v;if(i={},arguments.length>1){if(e=arguments[1],!NRr(e))throw new TypeError(sl("invalid argument. Options argument must be an object. Value: `%s`.",e));ss(e,"dtype")?a=e.dtype:a=sP,ss(e,"order")?t=e.order:t=uP,ss(e,"mode")&&(i.mode=e.mode),ss(e,"submode")&&(i.submode=e.submode)}else a=sP,t=uP;if(typeof r=="number")v=[r];else if(DRr(r))v=r;else throw new TypeError(sl("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));if(o=v.length,o>0){if(s=zRr(v),s!==s||s<0)throw new TypeError(sl("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));u=kRr(v,t)}else s=1,u=[0];return a==="binary"?n=RRr(s):n=FRr(s,a),new VRr(a,n,v,u,BRr(v,u),t,i)}fP.exports=URr});var dP=c((v0e,cP)=>{"use strict";var CRr=lP();cP.exports=CRr});var gP=c((f0e,hP)=>{"use strict";var PRr=se(),LRr=ne(),MRr=Jt().primitives,Ro=Xr(),GRr=ze(),YRr=Ye(),$Rr=Jr(),pP=Ra(),yP=oe(),mP=Ka(),WRr=ma(),JRr=To(),XRr=_t(),ul=pr();function KRr(r){var e,a,t,o,i,n,s,u,v;if(!PRr(r))throw new TypeError(ul("invalid argument. First argument must be an ndarray-like object. Value: `%s`.",r));if(i={},arguments.length>1){if(e=arguments[1],!LRr(e))throw new TypeError(ul("invalid argument. Options argument must be an object. Value: `%s`.",e));if(Ro(e,"dtype")?a=e.dtype:a=pP(r),Ro(e,"shape")){if(v=e.shape,typeof v=="number"&&(v=[v]),!MRr(v))throw new TypeError(ul("invalid option. `%s` option must be a nonnegative integer or an array of nonnegative integers. Option: `%s`.","shape",v))}else v=yP(r);Ro(e,"order")?t=e.order:t=mP(r),Ro(e,"mode")&&(i.mode=e.mode),Ro(e,"submode")&&(i.submode=e.submode)}else a=pP(r),v=yP(r),t=mP(r);return o=v.length,o>0?(s=$Rr(v),u=GRr(v,t)):(s=1,u=[0]),a==="binary"?n=XRr(s):n=JRr(s,a),new WRr(a,n,v,u,YRr(v,u),t,i)}hP.exports=KRr});var xP=c((l0e,bP)=>{"use strict";var HRr=gP();bP.exports=HRr});var wP=c((c0e,qP)=>{"use strict";var ZRr=eval;qP.exports=ZRr});var EP=c((d0e,SP)=>{"use strict";var QRr=wP();function rzr(){var r;try{QRr('"use strict"; var handler = { "get": function get( t, n ) { return t[ n ] * 100; } }; var target = { "beep": 3.14 }; var p = new Proxy( target, handler ); var x = p.beep; if ( x !== 314 ) { throw new Error( "native Proxy is not supported." ); }'),r=!0}catch{r=!1}return r}SP.exports=rzr});var _P=c((p0e,AP)=>{"use strict";var ezr=EP();AP.exports=ezr});var jP=c((y0e,TP)=>{"use strict";var azr=typeof Proxy>"u"?null:Proxy;TP.exports=azr});var OP=c((m0e,IP)=>{"use strict";function tzr(r){return r}IP.exports=tzr});var DP=c((h0e,NP)=>{"use strict";var izr=_P(),ozr=jP(),nzr=OP(),vl;izr()?vl=ozr:vl=nzr;NP.exports=vl});var BP=c((g0e,kP)=>{"use strict";var szr=typeof String.prototype.trim<"u";kP.exports=szr});var fl=c((b0e,FP)=>{"use strict";var uzr=String.prototype.trim;FP.exports=uzr});var UP=c((x0e,VP)=>{"use strict";var RP=fl(),vzr=`
2
2
  \r
3
- \f\v\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,VP="\u180E";function GRr(){return RP.call(MRr)===""&&RP.call(VP)===VP}zP.exports=GRr});var PP=c((Xde,LP)=>{"use strict";var YRr=at(),$Rr=/^[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*([\S\s]*?)[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*$/;function WRr(r){return YRr(r,$Rr,"$1")}LP.exports=WRr});var MP=c((Kde,UP)=>{"use strict";var JRr=fl();function XRr(r){return JRr.call(r)}UP.exports=XRr});var Ot=c((Hde,GP)=>{"use strict";var KRr=BP(),HRr=CP(),ZRr=PP(),QRr=MP(),ll;KRr&&HRr()?ll=QRr:ll=ZRr;GP.exports=ll});var WP=c((Zde,$P)=>{"use strict";var rVr=Ot(),eVr=Le(),cl="Slice(",YP=3,aVr=/\s*,\s*/,tVr=/^-?[0-9]+$/;function iVr(r){var e,a,t,o,i;if(r.substring(0,cl.length)!==cl||(t=r.length-1,r[t]!==")")||(r=rVr(r.substring(cl.length,t)),r=r.split(aVr),r.length!==YP))return null;for(e=[],i=0;i<YP;i++){if(o=r[i],o==="null")a=null;else if(tVr.test(o))a=parseInt(o,10);else return null;e.push(a)}return new eVr(e[0],e[1],e[2])}$P.exports=iVr});var us=c((Qde,JP)=>{"use strict";var oVr=WP();JP.exports=oVr});var KP=c((r0e,XP)=>{"use strict";var nVr=Ot(),sVr=us(),uVr=Za(),vVr=he(),dl="MultiSlice(",fVr=/\s*,\s*/,lVr=/^-?[0-9]+$/;function cVr(r){var e,a,t,o,i;if(r.substring(0,dl.length)!==dl||(t=r.length-1,r[t]!==")"))return null;if(r=nVr(r.substring(dl.length,t)),r=r.split(fVr),t=r.length,t===1&&r[0]==="")return new uVr;for(e=[],i=0;i<t;i++){if(o=r[i],o[0]==="S"){if(o=r.slice(i,i+3).join(","),a=sVr(o),a===null)return null;i+=2}else if(o==="null")a=null;else if(lVr.test(o))a=parseInt(o,10);else return null;e.push(a)}return vVr(e)}XP.exports=cVr});var Vo=c((e0e,HP)=>{"use strict";var dVr=KP();HP.exports=dVr});var QP=c((a0e,ZP)=>{"use strict";var pVr=/(?:\s*-\s*)(?=\d+)(\d+)$/;ZP.exports=pVr});var eU=c((t0e,rU)=>{"use strict";var yVr=/(?:\s*\/\s*)(?=\d*\.?\d+)(\d*\.?\d+)$/;rU.exports=yVr});var iU=c((i0e,tU)=>{"use strict";var aU=ea(),mVr=QP(),hVr=eU();function gVr(r,e,a,t){var o;if(r==="end")return e;if(o=r.match(mVr),o){if(r=e-parseInt(o[1],10),r<0){if(t)return-2;r=0}return r}return o=r.match(hVr),o?(r=parseFloat(o[1]),r<1?t?-2:-1:a&&e>0&&r!==1?aU((e-1)/r):aU(e/r)):-1}tU.exports=gVr});var nU=c((o0e,oU)=>{"use strict";var bVr=/\s*:\s*/;oU.exports=bVr});var uU=c((n0e,sU)=>{"use strict";var xVr=/^[-+]?[0-9]+$/;sU.exports=xVr});var fU=c((s0e,vU)=>{"use strict";var qVr=/^end/;vU.exports=qVr});var cU=c((u0e,lU)=>{"use strict";function wVr(){return{code:"ERR_SLICE_INVALID_SUBSEQUENCE"}}lU.exports=wVr});var pU=c((v0e,dU)=>{"use strict";function SVr(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}dU.exports=SVr});var mU=c((f0e,yU)=>{"use strict";function EVr(){return{code:"ERR_SLICE_INVALID_INCREMENT"}}yU.exports=EVr});var qU=c((l0e,xU)=>{"use strict";var hU=Le(),AVr=Ot(),gU=iU(),_Vr=nU(),pl=uU(),bU=fU(),Ii=cU(),ei=pU(),TVr=mU();function jVr(r,e,a){var t,o,i;if(t=AVr(r).split(_Vr),o=t.length,o<2||o>3)return Ii();if(o===3)if(i=t[2],i.length===0)t[2]=1;else{if(pl.test(i)===!1)return Ii();if(i=parseInt(i,10),i===0)return TVr();t[2]=i}else t.push(1);if(i=t[0],i.length===0)t[2]<0&&e>0?t[0]=e-1:t[0]=0;else if(bU.test(i)){if(i=gU(i,e,t[2]<0,a),i<0)return i===-2?ei():Ii();t[2]<0&&i>=e&&(i-=1),t[0]=i}else if(pl.test(i)){if(i=parseInt(i,10),i<0){if(i=e+i,i<0){if(a)return ei();i=0}}else if(i>=e){if(a)return ei();t[2]<0?i=e-1:i=e}t[0]=i}else return Ii();if(i=t[1],i.length===0)t[2]<0?t[1]=null:t[1]=e;else if(bU.test(i)){if(i=gU(i,e,t[2]<0,a),i<0)return i===-2?ei():Ii();t[1]=i}else if(pl.test(i)){if(i=parseInt(i,10),i<0){if(i=e+i,i<0)if(t[2]>0){if(a)return ei();i=0}else{if(a&&i<-1)return ei();i=null}}else if(i>e){if(a)return ei();i=e}t[1]=i}else return Ii();return e===0?new hU(0,0,t[2]):new hU(t[0],t[1],t[2])}xU.exports=jVr});var SU=c((c0e,wU)=>{"use strict";var IVr=qU();wU.exports=IVr});var AU=c((d0e,EU)=>{"use strict";function OVr(){return{code:"ERR_SLICE_INVALID_ELLIPSIS"}}EU.exports=OVr});var TU=c((p0e,_U)=>{"use strict";function NVr(){return{code:"ERR_SLICE_INSUFFICIENT_DIMENSIONS"}}_U.exports=NVr});var IU=c((y0e,jU)=>{"use strict";function DVr(){return{code:"ERR_SLICE_TOO_MANY_DIMENSIONS"}}jU.exports=DVr});var NU=c((m0e,OU)=>{"use strict";function kVr(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}OU.exports=kVr});var kU=c((h0e,DU)=>{"use strict";var BVr=/\s*,\s*/;DU.exports=BVr});var FU=c((g0e,BU)=>{"use strict";var FVr=/^[-+]?[0-9]+$/;BU.exports=FVr});var zU=c((b0e,VU)=>{"use strict";var RVr=Ot(),VVr=Le(),zVr=he(),CVr=SU(),LVr=AU(),PVr=TU(),UVr=IU(),RU=NU(),MVr=kU(),GVr=FU();function YVr(r,e,a){var t,o,i,n,s,u,v,f,l,p;for(s=e.length,t=RVr(r).split(MVr),u=t.length,i=!1,o=[],l=0,f=0;f<u;f++){if(v=t[f],v==="..."){if(i)return LVr();for(i=!0,p=0;p<s-u+1;p++)o.push(new VVr(0,e[l],1)),l+=1;continue}if(n=e[l],GVr.test(v)){if(v=parseInt(v,10),a){if(v<0){if(n+v<0)return RU()}else if(v>=n)return RU()}l+=1}else{if(v=CVr(v,n,a),v.code)return v;l+=1}o.push(v)}return o.length!==s?o.length<s?PVr():UVr():zVr(o)}VU.exports=YVr});var vs=c((x0e,CU)=>{"use strict";var $Vr=zU();CU.exports=$Vr});var yl=c((q0e,LU)=>{"use strict";var WVr=/^-?[0-9]+$/;LU.exports=WVr});var ml=c((w0e,PU)=>{"use strict";var JVr=/:/;PU.exports=JVr});var MU=c((S0e,UU)=>{"use strict";var XVr=Ot(),KVr=at(),hl=Za(),HVr=Vo(),ZVr=vs(),QVr=us(),ai=pr(),rzr=yl(),ezr=ml();function azr(r,e){var a,t,o,i;if(t=XVr(e),o=t[0],o==="S"){if(i=QVr(e),i===null)throw new Error(ai("invalid operation. Unsupported slice operation. Value: `%s`.",e));i=new hl(i)}else if(o==="M"){if(i=HVr(t),i===null)throw new Error(ai("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(rzr.test(t))i=parseInt(t,10),i=new hl(i);else if(ezr.test(t)){if(a=r.shape,i=ZVr(t,a,!0),i.code)throw i.code==="ERR_SLICE_INVALID_INCREMENT"?new Error(ai("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e)):i.code==="ERR_SLICE_INVALID_ELLIPSIS"?new Error(ai("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e)):i.code==="ERR_SLICE_INVALID_SUBSEQUENCE"?new Error(ai("invalid operation. Unsupported slice operation. Value: `%s`.",e)):new RangeError(ai("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",a.join(","),KVr(t,/\.\.\.,/,"").split(",").length))}else if(t.length===0||t==="...")i=new hl;else throw new Error(ai("invalid operation. Unsupported slice operation. Value: `%s`.",e));return i}UU.exports=azr});var WU=c((E0e,$U)=>{"use strict";var tzr=Ot(),izr=at(),GU=Za(),ozr=Vo(),YU=vs(),nzr=us(),Nt=pr(),szr=yl();function uzr(r,e,a){var t,o,i,n;if(o=tzr(e),i=o[0],i==="S"){if(n=nzr(e),n===null)throw new Error(Nt("invalid operation. Unsupported slice operation. Value: `%s`.",e));n=new GU(n)}else if(i==="M"){if(n=ozr(o),n===null)throw new Error(Nt("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(szr.test(o))n=parseInt(o,10),n=new GU(n);else if(o.length>0){if(t=r.shape,n=YU(o,t,!0),n.code){if(n.code==="ERR_SLICE_INVALID_INCREMENT")throw new Error(Nt("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_ELLIPSIS")throw new Error(Nt("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_SUBSEQUENCE")throw new Error(Nt("invalid operation. Unsupported slice operation. Value: `%s`.",e));if(n.code==="ERR_SLICE_TOO_MANY_DIMENSIONS")throw new RangeError(Nt("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",r.shape.join(","),izr(o,/\.\.\.,/,"").split(",").length));if(n.code==="ERR_SLICE_OUT_OF_BOUNDS"){if(a)throw new RangeError(Nt("invalid operation. Slice exceeds array bounds. Array shape: (%s).",t.join(",")));n=YU(o,t,!1)}}}else throw new RangeError(Nt("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",r.shape.join(","),0));return n}$U.exports=uzr});var XU=c((A0e,JU)=>{"use strict";var fs=at(),vzr=Vo();function fzr(r){return r=fs(r,/^,/,"null,"),r=fs(r,/,$/,",null"),r=fs(r,/,(?=,)/g,",null"),r=fs(r,/undefined/g,"null"),vzr("MultiSlice("+r+")")}JU.exports=fzr});var HU=c((_0e,KU)=>{"use strict";var lzr=XU();KU.exports=lzr});var rM=c((T0e,QU)=>{"use strict";var czr=Ot(),dzr=Vo(),ZU=vs(),pzr=HU(),Oi=pr(),yzr=ml();function mzr(r,e,a){var t,o,i,n;if(o=czr(e),i=o[0],i==="M"){if(n=dzr(o),n===null)throw new Error(Oi("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(yzr.test(o)||o==="..."){if(t=r.shape,n=ZU(o,t,!0),n.code){if(n.code==="ERR_SLICE_INVALID_INCREMENT")throw new Error(Oi("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_ELLIPSIS")throw new Error(Oi("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_SUBSEQUENCE")throw new Error(Oi("invalid operation. Unsupported slice operation. Value: `%s`.",e));if(n.code==="ERR_SLICE_OUT_OF_BOUNDS"){if(a)throw new RangeError(Oi("invalid operation. Slice exceeds array bounds. Array shape: (%s).",t.join(",")));n=ZU(o,t,!1)}}}else if(n=pzr(o),n===null)throw new Error(Oi("invalid operation. Unsupported slice operation. Value: `%s`.",e));return n}QU.exports=mzr});var aM=c((j0e,eM)=>{"use strict";var hzr=typeof Object.getOwnPropertyNames<"u";eM.exports=hzr});var oM=c((I0e,iM)=>{"use strict";var tM=zt(),gzr=tM.getOwnPropertyNames;function bzr(r){return gzr(tM(r))}iM.exports=bzr});var sM=c((O0e,nM)=>{"use strict";var xzr=zt(),qzr=Ea();function wzr(r){return qzr(xzr(r))}nM.exports=wzr});var vM=c((N0e,uM)=>{"use strict";var Szr=aM(),Ezr=oM(),Azr=sM(),gl;Szr?gl=Ezr:gl=Azr;uM.exports=gl});var cM=c((D0e,lM)=>{"use strict";var _zr=df(),Tzr=vM(),jzr=Ct(),Izr=zt();function fM(r,e){var a;for(a=0;a<r.length;a++)if(r[a]===e)return!0;return!1}function Ozr(r){var e,a,t,o;if(r==null)return[];a=Izr(r),e=[];do{for(t=Tzr(a),o=0;o<t.length;o++)fM(e,t[o])===!1&&e.push(t[o]);for(t=_zr(a),o=0;o<t.length;o++)fM(e,t[o])===!1&&e.push(t[o]);a=jzr(a)}while(a);return e}lM.exports=Ozr});var pM=c((k0e,dM)=>{"use strict";var Nzr=cM();dM.exports=Nzr});var bl=c((B0e,yM)=>{"use strict";var Dzr=pM(),kzr=Ce().factory,Bzr=ma(),Fzr=Da(),Rzr=kzr(Dzr(new Bzr("generic",[0],[],[0],0,Fzr.get("order"))));yM.exports=Rzr});var hM=c((F0e,mM)=>{"use strict";var Vzr=Pe();function zzr(r,e,a){var t=r[e];if(Vzr(t))return o;return t;function o(){var i,n;for(i=[],n=0;n<arguments.length;n++)i.push(arguments[n]);return t.apply(this===a?r:this,i)}}mM.exports=zzr});var xl=c((R0e,gM)=>{"use strict";var Czr=at();function Lzr(r){return Czr(r,/^invalid argument/,"invalid operation")}gM.exports=Lzr});var xM=c((V0e,bM)=>{"use strict";var Pzr=Ct(),Uzr=me();function Mzr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof Error)return!0;for(;r;){if(Uzr(r)==="[object Error]")return!0;r=Pzr(r)}return!1}bM.exports=Mzr});var ls=c((z0e,qM)=>{"use strict";var Gzr=xM();qM.exports=Gzr});var SM=c((C0e,wM)=>{"use strict";var Yzr=Ct(),$zr=ui(),Wzr=ls();function Jzr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof RangeError)return!0;if(Wzr(r))for(;r;){if($zr(r)==="rangeerror")return!0;r=Yzr(r)}return!1}wM.exports=Jzr});var AM=c((L0e,EM)=>{"use strict";var Xzr=SM();EM.exports=Xzr});var TM=c((P0e,_M)=>{"use strict";var Kzr=Ct(),Hzr=ui(),Zzr=ls();function Qzr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof TypeError)return!0;if(Zzr(r))for(;r;){if(Hzr(r)==="typeerror")return!0;r=Kzr(r)}return!1}_M.exports=Qzr});var IM=c((U0e,jM)=>{"use strict";var rCr=TM();jM.exports=rCr});var NM=c((M0e,OM)=>{"use strict";var eCr=Ct(),aCr=ui(),tCr=ls();function iCr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof SyntaxError)return!0;if(tCr(r))for(;r;){if(aCr(r)==="syntaxerror")return!0;r=eCr(r)}return!1}OM.exports=iCr});var kM=c((G0e,DM)=>{"use strict";var oCr=NM();DM.exports=oCr});var ql=c((Y0e,BM)=>{"use strict";var nCr=AM(),sCr=IM(),uCr=kM();function vCr(r){return nCr(r)?RangeError:sCr(r)?TypeError:uCr(r)?SyntaxError:Error}BM.exports=vCr});var RM=c(($0e,FM)=>{"use strict";var fCr=ye(),lCr=xl(),cCr=ql();function dCr(r,e,a,t){var o,i,n;o=!1,n=t(r,e,o);try{return fCr(a,n,o,!1)}catch(s){throw i=cCr(s),new i(lCr(s.message))}}FM.exports=dCr});var zM=c((W0e,VM)=>{"use strict";var pCr=bl(),yCr=hM(),mCr=RM();function hCr(r){return e;function e(a,t,o){return pCr(t)?yCr(a,t,o):mCr(a,t,o,r)}}VM.exports=hCr});var LM=c((J0e,CM)=>{"use strict";function gCr(r,e,a){return r[e]=a,!0}CM.exports=gCr});var UM=c((X0e,PM)=>{"use strict";var bCr=Qo();function xCr(r){return r===0&&1/r===bCr}PM.exports=xCr});var GM=c((K0e,MM)=>{"use strict";var qCr=UM();MM.exports=qCr});var $M=c((H0e,YM)=>{"use strict";var wCr=1401298464324817e-60;YM.exports=wCr});var JM=c((Z0e,WM)=>{"use strict";var SCr=16777215;WM.exports=SCr});var KM=c((Q0e,XM)=>{"use strict";var ECr=-16777215;XM.exports=ECr});var a9=c((rpe,e9)=>{"use strict";var ACr=Ge().isPrimitive,_Cr=pe().isPrimitive,ZM=wa(),TCr=GM(),jCr=fa(),QM=Pi(),r9=Qo(),cs=$M(),ICr=JM(),OCr=KM(),NCr=dv(),DCr=vv(),kCr=nv(),BCr=Su(),FCr=_u(),RCr=an();function HM(r){return r!==r||r===QM||r===r9?"float32":ZM(r)?r>=OCr&&r<=ICr?"float32":"float64":r>-cs&&r<cs?"float64":"float32"}function VCr(r){return ACr(r)?r!==r||r===QM||r===r9?"float32":ZM(r)?r===0&&TCr(r)?"float32":r<0?r>=NCr?"int8":r>=DCr?"int16":r>=kCr?"int32":"float64":r<=BCr?"uint8":r<=FCr?"uint16":r<=RCr?"uint32":"float64":r>-cs&&r<cs?"float64":"float32":_Cr(r)?"bool":jCr(r)?HM(r.re)==="float64"||HM(r.im)==="float64"?"complex128":"complex64":"generic"}e9.exports=VCr});var wl=c((epe,t9)=>{"use strict";var zCr=a9();t9.exports=zCr});var o9=c((ape,i9)=>{"use strict";var CCr={Complex64:"complex64",Complex128:"complex128"};i9.exports=CCr});var n9=c((tpe,LCr)=>{LCr.exports=["complex64","complex128"]});var u9=c((ipe,s9)=>{"use strict";var PCr=n9();function UCr(){return PCr.slice()}s9.exports=UCr});var f9=c((ope,v9)=>{"use strict";var MCr=u9();v9.exports=MCr});var Sl=c((npe,l9)=>{"use strict";var GCr=f9(),YCr=GCr();l9.exports=YCr});var y9=c((spe,p9)=>{"use strict";var $Cr=Ln(),c9=Sl(),d9=[],ds;for(ds=0;ds<c9.length;ds++)d9.push($Cr(c9[ds]));p9.exports=d9});var g9=c((upe,h9)=>{"use strict";var WCr=ht(),JCr=o9(),XCr=y9(),m9=Sl(),KCr=m9.length;function HCr(r){var e;for(e=0;e<KCr;e++)if(r instanceof XCr[e])return m9[e];return JCr[WCr(r)]||null}h9.exports=HCr});var El=c((vpe,b9)=>{"use strict";var ZCr=g9();b9.exports=ZCr});var x9=c((fpe,QCr)=>{QCr.exports={all:["bool","complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["bool","complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],boolean:["bool"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]}});var E9=c((lpe,S9)=>{"use strict";var rLr=at(),q9=x9(),w9=/_and_generic$/;function eLr(){var r,e,a;return arguments.length===0?q9.all.slice():(a=!1,r=arguments[0],w9.test(r)&&(r=rLr(r,w9,""),r!=="all"&&(a=!0)),e=q9[r],e=e?e.slice():[],a&&e.length>0&&e.push("generic"),e)}S9.exports=eLr});var Al=c((cpe,A9)=>{"use strict";var aLr=E9();A9.exports=aLr});var T9=c((dpe,_9)=>{"use strict";var tLr=Ce().factory,iLr=Al(),oLr=tLr(iLr("complex_floating_point"));_9.exports=oLr});var ps=c((ppe,j9)=>{"use strict";var nLr=T9();j9.exports=nLr});var N9=c((ype,O9)=>{"use strict";var _l=Xr(),sLr=ne(),uLr=Ge().isPrimitive,vLr=ps(),fLr=fa(),lLr=pe().isPrimitive,cLr=tt(),dLr=bi(),pLr=gi(),yLr=Ba(),mLr=ma(),ys=Da(),hLr=El(),I9=pr(),gLr=ys.get("order"),bLr=ys.get("dtypes.real_floating_point"),xLr=ys.get("dtypes.complex_floating_point"),qLr=ys.get("dtypes.boolean");function wLr(r){var e,a,t,o,i,n,s;if(a={dtype:"",order:gLr,readonly:!1},arguments.length>1){if(e=arguments[1],!sLr(e))throw new TypeError(I9("invalid argument. Options argument must be an object. Value: `%s`.",e));_l(e,"dtype")&&(a.dtype=e.dtype),_l(e,"order")&&(a.order=e.order),_l(e,"readonly")&&(a.readonly=e.readonly)}if(o=uLr(r),a.dtype===""?o?n=bLr:lLr(r)?n=qLr:fLr(r)?(n=hLr(r),n===null&&(n=xLr)):n="generic":n=a.dtype,t=yLr(n,1),t===null)throw new TypeError(I9("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",n));return vLr(n)&&o?s=[r,0]:s=r,cLr(t)?i=dLr(n):i=pLr(n),i(t,0,s),new mLr(n,t,[],[0],0,a.order,a)}O9.exports=wLr});var Tl=c((mpe,D9)=>{"use strict";var SLr=N9();D9.exports=SLr});var F9=c((hpe,B9)=>{"use strict";var ELr=is(),ALr=se(),_Lr=Ge().isPrimitive,TLr=ve().isPrimitive,jLr=fa(),ILr=wo(),OLr=Mn(),NLr=Wn(),DLr=$n(),k9=_n(),kLr=cv(),BLr=uv(),FLr=ov(),ms=wl(),RLr=El(),Ni=Tl(),ti=pr(),VLr=xl(),zLr=ql();function Di(r){return{dtype:r}}function CLr(r,e,a,t,o){var i,n,s,u,v;if(!ALr(a))if(s=r.dtype,s==="generic")a=Ni(a,Di(s));else if(_Lr(a))if(OLr(s))a=Ni(a,Di(s));else if(NLr(s))if(n=ms(a),k9(n,s))a=Ni(a,Di(s));else throw new TypeError(ti("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",n,s));else if(DLr(s)){if(!TLr(a))throw new TypeError(ti("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",ms(a),s));if(a<0?n=ms(a):a<=kLr?n="int8":a<=BLr?n="int16":a<=FLr?n="int32":n="float64",k9(n,s))a=Ni(a,Di(s));else throw new TypeError(ti("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",n,s))}else if(s==="binary")if(n=ms(a),n==="uint8")a=Ni(a,Di(s));else throw new TypeError(ti("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",n,s));else throw new TypeError(ti("invalid operation. Unsupported target array data type. Data type: `%s`.",s));else if(jLr(a)){if(!ILr(s))throw new TypeError(ti("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",RLr(a),s));a=Ni(a,Di(s))}else throw new TypeError(ti("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",typeof a,s));i=!1,v=o(r,e,i);try{return ELr(a,t,v,i),!0}catch(f){throw u=zLr(f),new u(VLr(f.message))}}B9.exports=CLr});var V9=c((gpe,R9)=>{"use strict";var LLr=bl(),PLr=LM(),ULr=F9();function MLr(r){return e;function e(a,t,o,i){return LLr(t)?PLr(a,t,o):ULr(a,t,o,i,r)}}R9.exports=MLr});var G9=c((bpe,M9)=>{"use strict";var GLr=Ir(),C9=ma(),YLr=Nv(),z9=DP(),L9=MU(),P9=WU(),U9=rM(),jl=zM(),Il=V9(),$Lr=jl(L9),WLr=Il(L9),JLr=jl(P9),XLr=Il(P9),KLr=jl(U9),HLr=Il(U9);function ki(r,e,a,t,o,i,n){var s,u,v;return u=arguments.length,this instanceof ki?(C9.call(this,r,e,a,t,o,i,u<7?{}:n),z9?(v=a.length,s={},v===0?(s.get=$Lr,s.set=WLr):v===1?(s.get=JLr,s.set=XLr):(s.get=KLr,s.set=HLr),new z9(this,s)):(console.warn("WARNING: Proxy objects are not supported in the current environment. Some `FancyArray` functionality may not be available."),this)):u<7?new ki(r,e,a,t,o,i):new ki(r,e,a,t,o,i,n)}YLr(ki,C9);GLr(ki,"name","ndarray");M9.exports=ki});var $9=c((xpe,Y9)=>{"use strict";var ZLr=G9();Y9.exports=ZLr});var Ol=c((qpe,W9)=>{"use strict";function QLr(r){return typeof r=="symbol"}W9.exports=QLr});var X9=c((wpe,J9)=>{"use strict";function rPr(r){return Symbol.prototype.toString.call(r)}J9.exports=rPr});var H9=c((Spe,K9)=>{"use strict";var ePr=X9(),aPr=/^Symbol\(.*\)$/;function tPr(r){try{return typeof r.valueOf()=="symbol"&&aPr.test(ePr(r))}catch{return!1}}K9.exports=tPr});var Nl=c((Epe,Z9)=>{"use strict";var iPr=me(),oPr=H9();function nPr(r){return typeof r=="object"&&iPr(r)==="[object Symbol]"&&oPr(r)}Z9.exports=nPr});var rG=c((Ape,Q9)=>{"use strict";var sPr=Ol(),uPr=Nl();function vPr(r){return sPr(r)||uPr(r)}Q9.exports=vPr});var tG=c((_pe,aG)=>{"use strict";var eG=Ir(),Dl=rG(),fPr=Ol(),lPr=Nl();eG(Dl,"isPrimitive",fPr);eG(Dl,"isObject",lPr);aG.exports=Dl});var oG=c((Tpe,iG)=>{"use strict";function cPr(r){return e;function e(){return r}}iG.exports=cPr});var sG=c((jpe,nG)=>{"use strict";var dPr=oG();nG.exports=dPr});var fG=c((Ipe,vG)=>{"use strict";var uG=Ir(),kl=sG(),Bl=kl(!1),pPr=kl(!1),yPr=kl(!1);uG(Bl,"isPrimitive",pPr);uG(Bl,"isObject",yPr);vG.exports=Bl});var cG=c((Ope,lG)=>{"use strict";var mPr=Ys(),hPr=tG(),gPr=fG(),Fl;mPr()?Fl=hPr:Fl=gPr;lG.exports=Fl});var pG=c((Npe,dG)=>{"use strict";var bPr=La().isPrimitive,xPr=cG().isPrimitive,qPr=ge().isPrimitive;function wPr(r){return bPr(r)||xPr(r)||qPr(r)}dG.exports=wPr});var mG=c((Dpe,yG)=>{"use strict";var SPr=pG();yG.exports=SPr});var bG=c((kpe,gG)=>{"use strict";var EPr=mG(),APr=So(),hG=pr();function _Pr(r,e){if(typeof r!="object"||r===null)throw new TypeError(hG("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!EPr(e))throw new TypeError(hG("invalid argument. Second argument must be a valid property name. Value: `%s`.",e));return APr(r,!1)[e]}gG.exports=_Pr});var qG=c((Bpe,xG)=>{"use strict";var TPr=bG();xG.exports=TPr});var SG=c((Fpe,wG)=>{"use strict";var jPr=So(),IPr=pr();function OPr(r){if(typeof r!="object"||r===null)throw new TypeError(IPr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return jPr(r,!0)}wG.exports=OPr});var AG=c((Rpe,EG)=>{"use strict";var NPr=SG();EG.exports=NPr});var Rl=c((Vpe,DPr)=>{DPr.exports={mode:"throw",order:"row-major"}});var zl=c((zpe,TG)=>{"use strict";var kPr=ne(),_G=Xr(),BPr=_a(),FPr=pi(),Vl=pr();function RPr(r,e){return kPr(e)?_G(e,"mode")&&(r.mode=e.mode,!FPr(r.mode))?new TypeError(Vl("invalid option. `%s` option must be a supported/recognized mode. Option: `%s`.","mode",r.mode)):_G(e,"order")&&(r.order=e.order,!BPr(r.order))?new TypeError(Vl("invalid option. `%s` option must be a supported/recognized order. Option: `%s`.","order",r.order)):null:new TypeError(Vl("invalid argument. Options argument must be an object. Value: `%s`.",e))}TG.exports=RPr});var NG=c((Cpe,OG)=>{"use strict";var VPr=Wt().primitives,zPr=ve().isPrimitive,CPr=Ve(),LPr=Ai(),jG=pr(),IG=Rl(),PPr=zl();function UPr(r,e,a){var t,o;if(t={},t.mode=IG.mode,t.order=IG.order,arguments.length>2&&(o=PPr(t,a),o))throw o;if(!VPr(r))throw new TypeError(jG("invalid argument. Shape argument must be an array-like object containing nonnegative integers. Value: `%s`.",r));if(!zPr(e))throw new TypeError(jG("invalid argument. Linear index must be integer valued. Value: `%s`.",e));return LPr(r,CPr(r,t.order),0,t.order,e,t.mode)}OG.exports=UPr});var BG=c((Lpe,kG)=>{"use strict";var MPr=Wt().primitives,GPr=ve().isPrimitive,YPr=Ve(),$Pr=Ai().assign,hs=pr(),DG=Rl(),WPr=zl();function JPr(r,e,a,t){var o,i,n;if(o={},o.mode=DG.mode,o.order=DG.order,arguments.length===4){if(n=WPr(o,arguments[2]),n)throw n;if(typeof t!="object"||t===null)throw new TypeError(hs("invalid argument. Output argument must be either an array, typed array, or object. Value: `%s`.",t));i=t}else if(i=a,typeof i!="object"||i===null)throw new TypeError(hs("invalid argument. Output argument must be either an array, typed array, or object. Value: `%s`.",i));if(!MPr(r))throw new TypeError(hs("invalid argument. Shape argument must be an array-like object containing nonnegative integers. Value: `%s`.",r));if(!GPr(e))throw new TypeError(hs("invalid argument. Linear index must be integer valued. Value: `%s`.",e));return $Pr(r,YPr(r,o.order),0,o.order,e,o.mode,i)}kG.exports=JPr});var VG=c((Ppe,RG)=>{"use strict";var XPr=Ir(),FG=NG(),KPr=BG();XPr(FG,"assign",KPr);RG.exports=FG});var PG=c((Upe,LG)=>{"use strict";var Cl=Ir(),HPr=ne(),ZPr=pe().isPrimitive,QPr=se(),rUr=Ue(),eUr=Xr(),zG=Be(),aUr=Se(),tUr=oe(),iUr=Jr(),oUr=ye(),nUr=He().assign,sUr=he(),gs=pr();function CG(r){var e,a,t,o,i,n,s,u,v,f,l;if(!QPr(r))throw new TypeError(gs("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!HPr(e))throw new TypeError(gs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(eUr(e,"readonly")){if(!ZPr(e.readonly))throw new TypeError(gs("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&rUr(r))throw new Error(gs("invalid option. Cannot write to read-only array."))}}if(a=tUr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=iUr(a),f===0&&(n=!0),f/=a[t-2],u=t-1,v=a[u],l=-1,s=aUr(t),s[t-2]=null,i={},Cl(i,"next",p),Cl(i,"return",m),zG&&Cl(i,zG,d),i;function p(){var y,h,g;return l+=1,n||l>=f?{done:!0}:(y=s.slice(),h=sUr(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=nUr(a,"row-major",s,u-2,s)),{value:[y,oUr(r,h,!0,o.writable)],done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return CG(r,o)}}LG.exports=CG});var MG=c((Mpe,UG)=>{"use strict";var uUr=PG();UG.exports=uUr});var WG=c((Gpe,$G)=>{"use strict";var Ll=Ir(),vUr=ne(),fUr=pe().isPrimitive,lUr=se(),cUr=Ue(),dUr=Xr(),GG=Be(),pUr=Se(),yUr=oe(),mUr=Jr(),hUr=ye(),gUr=He().assign,bUr=he(),bs=pr();function YG(r){var e,a,t,o,i,n,s,u,v,f,l;if(!lUr(r))throw new TypeError(bs("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!vUr(e))throw new TypeError(bs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(dUr(e,"readonly")){if(!fUr(e.readonly))throw new TypeError(bs("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&cUr(r))throw new Error(bs("invalid option. Cannot write to read-only array."))}}if(a=yUr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=mUr(a),f===0&&(n=!0),f/=a[t-2],u=t-1,v=a[u],l=-1,s=pUr(t),s[t-2]=null,i={},Ll(i,"next",p),Ll(i,"return",m),GG&&Ll(i,GG,d),i;function p(){var y,h;return l+=1,n||l>=f?{done:!0}:(y=bUr(s),h=(s[u]+1)%v,s[u]=h,h===0&&(s=gUr(a,"row-major",s,u-2,s)),{value:hUr(r,y,!0,o.writable),done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return YG(r,o)}}$G.exports=YG});var XG=c((Ype,JG)=>{"use strict";var xUr=WG();JG.exports=xUr});var QG=c(($pe,ZG)=>{"use strict";var Pl=Ir(),qUr=ne(),wUr=_a(),SUr=se(),EUr=Xr(),KG=Be(),AUr=Se(),_Ur=oe(),TUr=Jr(),jUr=He().assign,Ul=pr();function HG(r){var e,a,t,o,i,n,s,u,v,f;if(!SUr(r))throw new TypeError(Ul("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={order:r.order},arguments.length>1){if(e=arguments[1],!qUr(e))throw new TypeError(Ul("invalid argument. Options argument must be an object. Value: `%s`.",e));if(EUr(e,"order")){if(!wUr(e.order))throw new TypeError(Ul("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));o.order=e.order}}return a=_Ur(r),t=a.length,v=TUr(a),v===0&&(n=!0),o.order==="row-major"?u=t-1:u=0,f=-1,s=AUr(t),i={},Pl(i,"next",l),Pl(i,"return",p),KG&&Pl(i,KG,m),i;function l(){return f+=1,n||f>=v?{done:!0}:(f>0&&(s=jUr(a,o.order,s,u,s)),{value:[s.slice(),r.get.apply(r,s)],done:!1})}function p(d){return n=!0,arguments.length?{value:d,done:!0}:{done:!0}}function m(){return HG(r,o)}}ZG.exports=HG});var eY=c((Wpe,rY)=>{"use strict";var IUr=QG();rY.exports=IUr});var oY=c((Jpe,iY)=>{"use strict";var Ml=Ir(),OUr=ne(),NUr=_a(),DUr=De(),kUr=ge().isPrimitive,BUr=Xr(),aY=Be(),FUr=Se(),RUr=Jr(),VUr=He().assign,xs=pr();function tY(r){var e,a,t,o,i,n,s,u,v,f;if(!DUr(r))throw new TypeError(xs("invalid argument. First argument must be an array of nonnegative integers. Value: `%s`.",r));if(t={order:"row-major"},arguments.length>1){if(e=arguments[1],!OUr(e))throw new TypeError(xs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(BUr(e,"order")){if(!NUr(e.order))throw new TypeError(xs("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));t.order=e.order}}for(a=r.length,u=[],f=0;f<a;f++){if(!kUr(r[f]))throw new TypeError(xs("invalid argument. First argument must be an array of nonnegative integers. Value: `%s`.",r));u.push(r[f])}return v=RUr(u),v===0&&(i=!0),t.order==="row-major"?s=a-1:s=0,f=-1,n=FUr(a),o={},Ml(o,"next",l),Ml(o,"return",p),aY&&Ml(o,aY,m),o;function l(){return f+=1,i||f>=v?{done:!0}:(f>0&&(n=VUr(r,t.order,n,s,n)),{value:n.slice(),done:!1})}function p(d){return i=!0,arguments.length?{value:d,done:!0}:{done:!0}}function m(){return tY(u,t)}}iY.exports=tY});var sY=c((Xpe,nY)=>{"use strict";var zUr=oY();nY.exports=zUr});var fY=c((Kpe,vY)=>{"use strict";var CUr=se(),LUr=De(),PUr=ge().isPrimitive,uY=os(),UUr=oe(),Gl=pr();function MUr(r,e){var a,t,o,i;if(!CUr(r))throw new TypeError(Gl("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!LUr(e))throw new TypeError(Gl("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.",e));if(t=e.length,a=UUr(r),a.length===t){for(i=0;i<t;i++){if(o=e[i],!PUr(o))throw new TypeError(Gl("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.","["+e.join(",")+"]"));if(a[i]!==o)return uY(r,e)}return r}return uY(r,e)}vY.exports=MUr});var Yl=c((Hpe,lY)=>{"use strict";var GUr=fY();lY.exports=GUr});var pY=c((Zpe,dY)=>{"use strict";var YUr=se(),$Ur=ze(),WUr=qi(),JUr=Yl(),XUr=oe(),cY=pr();function KUr(r){var e,a,t,o,i,n,s;if(a=arguments.length,a===0)t=[];else if(a>1)for(t=[],s=0;s<arguments.length;s++)t.push(arguments[s]);else if(YUr(r))t=[r];else if($Ur(r))t=r;else throw new TypeError(cY("invalid argument. First argument must be either an ndarray or an array of ndarrays. Value: `%s`.",r));for(n=t.length,e=[],s=0;s<n;s++)try{e.push(XUr(t[s]))}catch{throw new TypeError(cY("invalid argument. An ndarray argument must be an ndarray. Value: `%s`.",t[s]))}if(i=WUr(e),i===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(o=[],s=0;s<n;s++)o.push(JUr(t[s],i));return o}dY.exports=KUr});var $l=c((Qpe,yY)=>{"use strict";var HUr=pY();yY.exports=HUr});var bY=c((rye,gY)=>{"use strict";var Wl=Ir(),ZUr=ze(),QUr=ns().isPrimitive,mY=Be(),rMr=Se(),eMr=oe(),aMr=Jr(),tMr=ye(),iMr=$l(),oMr=He().assign,nMr=he(),qs=pr();function hY(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y;if(!ZUr(r))throw new TypeError(qs("invalid argument. First argument must be an array of ndarrays. Value: `%s`.",r));if(!QUr(e))throw new TypeError(qs("invalid argument. Second argument must be a positive integer. Value: `%s`.",e));try{o=iMr(r)}catch{throw new TypeError(qs("invalid argument. First argument must be an array of ndarrays which are broadcast-compatible. Value: `%s`.",r))}if(p=o.length,a=eMr(o[0]),f=a.length,f<=e)throw new TypeError(qs("invalid argument. First argument must be an array of ndarrays having at least %d dimensions after broadcasting.",e+1));for(l=aMr(a),l===0&&(i=!0),s=f-e-1,m=s+1;m<f;m++)l/=a[m];for(l*=p,v=a[s],n=[],m=0;m<p;m++){for(u=rMr(f),d=s+1;d<f;d++)u[d]=null;n.push(u)}return m=-1,y=-1,t={},Wl(t,"next",h),Wl(t,"return",g),mY&&Wl(t,mY,x),t;function h(){var S,w,A;return m+=1,i||m>=l?{done:!0}:(y=(y+1)%p,S=n[y],w=nMr(S),A=(S[s]+1)%v,S[s]=A,A===0&&(S=oMr(a,"row-major",S,s-1,S)),{value:tMr(o[y],w,!0,!1),done:!1})}function g(S){return i=!0,arguments.length?{value:S,done:!0}:{done:!0}}function x(){return hY(r,e)}}gY.exports=hY});var qY=c((eye,xY)=>{"use strict";var sMr=bY();xY.exports=sMr});var AY=c((aye,EY)=>{"use strict";var Jl=Ir(),uMr=ne(),vMr=pe().isPrimitive,fMr=se(),lMr=Ue(),cMr=Xr(),wY=Be(),dMr=Se(),pMr=oe(),yMr=Jr(),mMr=ye(),hMr=He().assign,gMr=he(),ws=pr();function SY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!fMr(r))throw new TypeError(ws("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!uMr(e))throw new TypeError(ws("invalid argument. Options argument must be an object. Value: `%s`.",e));if(cMr(e,"readonly")){if(!vMr(e.readonly))throw new TypeError(ws("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&lMr(r))throw new Error(ws("invalid option. Cannot write to read-only array."))}}if(a=pMr(r),t=a.length,t<3)throw new TypeError("invalid argument. First argument must be an ndarray having at least three dimensions.");return f=yMr(a),f===0&&(n=!0),f/=a[t-1]*a[t-2],u=t-3,v=a[u],l=-1,s=dMr(t),s[t-1]=null,s[t-2]=null,i={},Jl(i,"next",p),Jl(i,"return",m),wY&&Jl(i,wY,d),i;function p(){var y,h;return l+=1,n||l>=f?{done:!0}:(y=gMr(s),h=(s[u]+1)%v,s[u]=h,h===0&&(s=hMr(a,"row-major",s,u-1,s)),{value:mMr(r,y,!0,o.writable),done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return SY(r,o)}}EY.exports=SY});var TY=c((tye,_Y)=>{"use strict";var bMr=AY();_Y.exports=bMr});var NY=c((iye,OY)=>{"use strict";var Xl=Ir(),xMr=ne(),qMr=pe().isPrimitive,wMr=se(),SMr=Ue(),EMr=Xr(),jY=Be(),AMr=Se(),_Mr=oe(),TMr=Jr(),jMr=ye(),IMr=He().assign,OMr=he(),Ss=pr();function IY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!wMr(r))throw new TypeError(Ss("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!xMr(e))throw new TypeError(Ss("invalid argument. Options argument must be an object. Value: `%s`.",e));if(EMr(e,"readonly")){if(!qMr(e.readonly))throw new TypeError(Ss("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&SMr(r))throw new Error(Ss("invalid option. Cannot write to read-only array."))}}if(a=_Mr(r),t=a.length,t<3)throw new TypeError("invalid argument. First argument must be an ndarray having at least three dimensions.");return f=TMr(a),f===0&&(n=!0),f/=a[t-1]*a[t-2],u=t-3,v=a[u],l=-1,s=AMr(t),s[t-1]=null,s[t-2]=null,i={},Xl(i,"next",p),Xl(i,"return",m),jY&&Xl(i,jY,d),i;function p(){var y,h,g;return l+=1,n||l>=f?{done:!0}:(y=s.slice(),h=OMr(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=IMr(a,"row-major",s,u-1,s)),{value:[y,jMr(r,h,!0,o.writable)],done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return IY(r,o)}}OY.exports=IY});var kY=c((oye,DY)=>{"use strict";var NMr=NY();DY.exports=NMr});var VY=c((nye,RY)=>{"use strict";var Kl=Ir(),DMr=ne(),kMr=pe().isPrimitive,BMr=se(),FMr=Ue(),RMr=Xr(),BY=Be(),VMr=Se(),zMr=oe(),CMr=Jr(),LMr=ye(),PMr=He().assign,UMr=he(),Es=pr();function FY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!BMr(r))throw new TypeError(Es("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!DMr(e))throw new TypeError(Es("invalid argument. Options argument must be an object. Value: `%s`.",e));if(RMr(e,"readonly")){if(!kMr(e.readonly))throw new TypeError(Es("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&FMr(r))throw new Error(Es("invalid option. Cannot write to read-only array."))}}if(a=zMr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=CMr(a),f===0&&(n=!0),f/=a[t-1],u=t-2,v=a[u],l=-1,s=VMr(t),s[t-1]=null,i={},Kl(i,"next",p),Kl(i,"return",m),BY&&Kl(i,BY,d),i;function p(){var y,h,g;return l+=1,n||l>=f?{done:!0}:(y=s.slice(),h=UMr(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=PMr(a,"row-major",s,u-1,s)),{value:[y,LMr(r,h,!0,o.writable)],done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return FY(r,o)}}RY.exports=FY});var CY=c((sye,zY)=>{"use strict";var MMr=VY();zY.exports=MMr});var MY=c((uye,UY)=>{"use strict";var Hl=Ir(),GMr=ne(),YMr=pe().isPrimitive,$Mr=se(),WMr=Ue(),JMr=Xr(),LY=Be(),XMr=Se(),KMr=oe(),HMr=Jr(),ZMr=ye(),QMr=He().assign,r9r=he(),As=pr();function PY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!$Mr(r))throw new TypeError(As("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!GMr(e))throw new TypeError(As("invalid argument. Options argument must be an object. Value: `%s`.",e));if(JMr(e,"readonly")){if(!YMr(e.readonly))throw new TypeError(As("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&WMr(r))throw new Error(As("invalid option. Cannot write to read-only array."))}}if(a=KMr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=HMr(a),f===0&&(n=!0),f/=a[t-1],u=t-2,v=a[u],l=-1,s=XMr(t),s[t-1]=null,i={},Hl(i,"next",p),Hl(i,"return",m),LY&&Hl(i,LY,d),i;function p(){var y,h;return l+=1,n||l>=f?{done:!0}:(y=r9r(s),h=(s[u]+1)%v,s[u]=h,h===0&&(s=QMr(a,"row-major",s,u-1,s)),{value:ZMr(r,y,!0,o.writable),done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return PY(r,o)}}UY.exports=PY});var YY=c((vye,GY)=>{"use strict";var e9r=MY();GY.exports=e9r});var HY=c((fye,KY)=>{"use strict";var Zl=Ir(),a9r=ne(),$Y=pe().isPrimitive,t9r=ve().isPrimitive,i9r=se(),o9r=Ue(),WY=Xr(),JY=Be(),n9r=Ei(),s9r=oe(),u9r=ya(),v9r=Jr(),f9r=ye(),l9r=Le(),c9r=he(),ii=pr();function XY(r,e){var a,t,o,i,n,s,u,v,f,l;if(!i9r(r))throw new TypeError(ii("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!t9r(e))throw new TypeError(ii("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(i={writable:!1,keepdim:!1},arguments.length>2){if(a=arguments[2],!a9r(a))throw new TypeError(ii("invalid argument. Options argument must be an object. Value: `%s`.",a));if(WY(a,"readonly")){if(!$Y(a.readonly))throw new TypeError(ii("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",a.readonly));if(i.writable=!a.readonly,i.writable&&o9r(r))throw new Error(ii("invalid option. Cannot write to read-only array."))}if(WY(a,"keepdim")){if(!$Y(a.keepdim))throw new TypeError(ii("invalid option. `%s` option must be a boolean. Option: `%s`.","keepdim",a.keepdim));i.keepdim=a.keepdim}}if(t=s9r(r),o=t.length,f=u9r(e,o-1),f===-1)throw new RangeError(ii("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e));return v=v9r(t),v===0&&(s=!0),v=t[f],l=-1,u=n9r(o),n={},Zl(n,"next",p),Zl(n,"return",m),JY&&Zl(n,JY,d),n;function p(){var y;return l+=1,s||l>=v?{done:!0}:(i.keepdim?u[f]=new l9r(l,l+1,1):u[f]=l,y=c9r(u),{value:f9r(r,y,!0,i.writable),done:!1})}function m(y){return s=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return XY(r,e,i)}}KY.exports=XY});var QY=c((lye,ZY)=>{"use strict";var d9r=HY();ZY.exports=d9r});var e$=c((cye,r$)=>{"use strict";var p9r=tt(),y9r=it(),m9r=St(),h9r=po();function g9r(r){var e=h9r(r);return p9r(r)?y9r(e):m9r(e)}r$.exports=g9r});var Ql=c((dye,a$)=>{"use strict";var b9r=e$();a$.exports=b9r});var i$=c((pye,t$)=>{"use strict";var x9r=Ql();function q9r(r){var e,a,t,o;for(t=x9r(r),a=r.length,e=[],o=0;o<a;o++)e.push(t(r,o));return e}t$.exports=q9r});var n$=c((yye,o$)=>{"use strict";var w9r=i$();o$.exports=w9r});var v$=c((mye,u$)=>{"use strict";var s$=Ql(),S9r=nt().factory;function E9r(r,e,a){var t,o,i,n,s,u,v;for(o=s$(r),i=s$(e),t=S9r(a),s=r.length-1,n=[],u=0;u<e.length;u++)v=t(i(e,u),s),n.push(o(r,v));return n}u$.exports=E9r});var l$=c((hye,f$)=>{"use strict";var A9r=Ce().factory,_9r=Al(),T9r=A9r(_9r("boolean"));f$.exports=T9r});var rc=c((gye,c$)=>{"use strict";var j9r=l$();c$.exports=j9r});var p$=c((bye,d$)=>{"use strict";var I9r=dn(),O9r=cn(),N9r=oo(),D9r=io(),k9r=pr();function B9r(r,e){if(I9r(r))return N9r(r,e);if(O9r(r))return D9r(r,e);throw new TypeError(k9r("invalid argument. First argument must be a complex-valued floating-point array. Value: `%s`.",r))}d$.exports=B9r});var ec=c((xye,y$)=>{"use strict";var F9r=p$();y$.exports=F9r});var h$=c((qye,m$)=>{"use strict";var R9r=va();function V9r(r,e){return new R9r(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,r.length-e)}m$.exports=V9r});var ac=c((wye,g$)=>{"use strict";var z9r=h$();g$.exports=z9r});var E$=c((Sye,S$)=>{"use strict";var b$=ps(),x$=rc(),tc=vt(),q$=ec(),w$=ac(),_s=nt().factory;function C9r(r,e,a,t,o,i){var n,s,u,v,f;for(n=_s(a),s=r.length-1,u=i,v=0;v<e.length;v++)f=n(e[v],s),t[u]=r[f],u+=o;return t}function L9r(r,e,a,t,o,i){var n,s,u,v,f,l,p,m,d,y,h;for(s=r.data,u=e.data,v=t.data,f=r.accessors[0],l=e.accessors[0],p=t.accessors[1],n=_s(a),m=s.length-1,d=i,y=0;y<u.length;y++)h=n(l(u,y),m),p(v,d,f(s,h)),d+=o;return v}function P9r(r,e,a,t,o,i){var n,s,u,v,f,l,p,m,d;for(s=e.data,u=e.accessors[0],n=_s(a),v=r.length/2-1,l=o*2,f=i*2,p=0;p<s.length;p++)m=n(u(s,p),v),d=m*2,t[f]=r[d],t[f+1]=r[d+1],f+=l;return t}function U9r(r,e,a,t,o,i){var n,s,u,v,f,l,p;for(s=e.data,u=e.accessors[0],n=_s(a),v=r.length-1,f=i,l=0;l<s.length;l++)p=n(u(s,l),v),t[f]=r[p],f+=o;return t}function M9r(r,e,a,t,o,i){var n,s,u;return n=tc(r),s=tc(e),u=tc(t),n.accessorProtocol||s.accessorProtocol||u.accessorProtocol?b$(n.dtype)&&b$(u.dtype)?(P9r(q$(r,0),s,a,q$(t,0),o,i),t):x$(n.dtype)&&x$(u.dtype)?(U9r(w$(r,0),s,a,w$(t,0),o,i),t):(L9r(n,s,a,u,o,i),t):(C9r(r,e,a,t,o,i),t)}S$.exports=M9r});var T$=c((Eye,_$)=>{"use strict";var G9r=Ir(),A$=v$(),Y9r=E$();G9r(A$,"assign",Y9r);_$.exports=A$});var k$=c((Aye,D$)=>{"use strict";var j$=ps(),I$=rc(),ic=vt(),O$=ec(),N$=ac(),$9r=nt().factory,W9r=pr();function J9r(r,e,a,t,o,i){var n,s,u;for(n=0,s=0;s<e.length;s++)u=o(e[s],i),r[u]=a[n],n+=t;return r}function X9r(r,e,a,t,o,i){var n,s,u,v,f,l,p,m,d;for(n=r.data,s=e.data,u=a.data,v=r.accessors[1],f=e.accessors[0],l=a.accessors[0],p=0,m=0;m<s.length;m++)d=o(f(s,m),i),v(n,d,l(u,p)),p+=t;return n}function K9r(r,e,a,t,o,i){var n,s,u,v,f,l,p;for(n=e.data,s=e.accessors[0],v=t*2,u=0,f=0;f<n.length;f++)l=o(s(n,f),i),p=l*2,r[p]=a[u],r[p+1]=a[u+1],u+=v;return r}function H9r(r,e,a,t,o,i){var n,s,u,v,f;for(n=e.data,s=e.accessors[0],u=0,v=0;v<n.length;v++)f=o(s(n,v),i),r[f]=a[u],u+=t;return r}function Z9r(r,e,a,t){var o,i,n,s,u,v;if(e.length>0)if(a.length===e.length)i=1;else if(a.length===1)i=0;else throw new Error(W9r("invalid argument. The third argument must be broadcast compatible with the second argument. Array shape: (%d). Desired shape: (%d).",a.length,e.length));return o=$9r(t),n=r.length-1,s=ic(r),u=ic(e),v=ic(a),s.accessorProtocol||u.accessorProtocol||v.accessorProtocol?j$(s.dtype)&&j$(v.dtype)?(K9r(O$(r,0),u,O$(a,0),i,o,n),r):I$(s.dtype)&&I$(v.dtype)?(H9r(N$(r,0),u,N$(a,0),i,o,n),r):(X9r(s,u,v,i,o,n),r):(J9r(r,e,a,i,o,n),r)}D$.exports=Z9r});var F$=c((_ye,B$)=>{"use strict";var Q9r=k$();B$.exports=Q9r});var L$=c((Tye,C$)=>{"use strict";var oc=Ir(),rGr=ne(),eGr=pe().isPrimitive,aGr=ev().primitives,tGr=se(),iGr=Ue(),oGr=Xr(),R$=Be(),nGr=Se(),sGr=n$(),V$=T$(),uGr=F$(),vGr=oe(),fGr=ya(),lGr=Jr(),cGr=ye(),dGr=He().assign,pGr=he(),dt=pr();function z$(r,e){var a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g;if(!tGr(r))throw new TypeError(dt("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!aGr(e))throw new TypeError(dt("invalid argument. Second argument must be an array of integers. Value: `%s`.",e));if(s={writable:!1},arguments.length>2){if(t=arguments[2],!rGr(t))throw new TypeError(dt("invalid argument. Options argument must be an object. Value: `%s`.",t));if(oGr(t,"readonly")){if(!eGr(t.readonly))throw new TypeError(dt("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",t.readonly));if(s.writable=!t.readonly,s.writable&&iGr(r))throw new Error(dt("invalid option. Cannot write to read-only array."))}}if(n=e,e=sGr(e),m=e.length,o=vGr(r),i=o.length,i<=m)throw new TypeError(dt("invalid argument. First argument must be an ndarray having at least %d dimensions.",m+1));for(h=0;h<m;h++){if(y=fGr(e[h],i-1),y===-1)throw new RangeError(dt("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",i,e[h]));e[h]=y}for(d=lGr(o),d===0&&(f=!0),h=0;h<m-1;h++)if(e[h]>e[h+1])throw new Error(dt("invalid argument. Dimension indices must be sorted in ascending order. Value: `%s`.",n));for(g=1,h=1;h<m;h++){if(e[h]===e[h-1])throw new Error(dt("invalid argument. Dimension indices must be unique. Value: `%s`.",n));e[g]=e[h],g+=1}for(h=0;h<m;h++)d/=o[e[h]];for(l=nGr(i),h=0;h<m;h++)l[e[h]]=null;for(a=[],g=0,h=0;h<i;h++){if(h===e[g]){g+=1;continue}a.push(h)}return p=V$(o,a,"throw"),v=V$(l,a,"throw"),h=-1,u={},oc(u,"next",x),oc(u,"return",S),R$&&oc(u,R$,w),u;function x(){var A;return h+=1,f||h>=d?{done:!0}:(A=pGr(l),v=dGr(p,"row-major",v,-1,v),l=uGr(l,a,v,"throw"),{value:cGr(r,A,!0,s.writable),done:!1})}function S(A){return f=!0,arguments.length?{value:A,done:!0}:{done:!0}}function w(){return z$(r,e,s)}}C$.exports=z$});var U$=c((jye,P$)=>{"use strict";var yGr=L$();P$.exports=yGr});var $$=c((Iye,Y$)=>{"use strict";var nc=Ir(),mGr=ne(),hGr=pe().isPrimitive,gGr=ns().isPrimitive,bGr=se(),xGr=Ue(),qGr=Xr(),M$=Be(),wGr=Se(),SGr=oe(),EGr=Jr(),AGr=ye(),_Gr=He().assign,TGr=he(),Bi=pr();function G$(r,e){var a,t,o,i,n,s,u,v,f,l,p;if(!bGr(r))throw new TypeError(Bi("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!gGr(e))throw new TypeError(Bi("invalid argument. Second argument must be a positive integer. Value: `%s`.",e));if(o={writable:!1},arguments.length>2){if(a=arguments[2],!mGr(a))throw new TypeError(Bi("invalid argument. Options argument must be an object. Value: `%s`.",a));if(qGr(a,"readonly")){if(!hGr(a.readonly))throw new TypeError(Bi("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",a.readonly));if(o.writable=!a.readonly,o.writable&&xGr(r))throw new Error(Bi("invalid option. Cannot write to read-only array."))}}if(t=SGr(r),f=t.length,f<=e)throw new TypeError(Bi("invalid argument. First argument must be an ndarray having at least %d dimensions.",e+1));for(l=EGr(t),l===0&&(n=!0),u=f-e-1,p=u+1;p<f;p++)l/=t[p];for(v=t[u],s=wGr(f),p=u+1;p<f;p++)s[p]=null;return p=-1,i={},nc(i,"next",m),nc(i,"return",d),M$&&nc(i,M$,y),i;function m(){var h,g;return p+=1,n||p>=l?{done:!0}:(h=TGr(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=_Gr(t,"row-major",s,u-1,s)),{value:AGr(r,h,!0,o.writable),done:!1})}function d(h){return n=!0,arguments.length?{value:h,done:!0}:{done:!0}}function y(){return G$(r,e,o)}}Y$.exports=G$});var J$=c((Oye,W$)=>{"use strict";var jGr=$$();W$.exports=jGr});var K$=c((Nye,X$)=>{"use strict";var IGr=Pe();function OGr(r){var e=typeof r;return r!==null&&(e==="object"||e==="function")&&IGr(r.next)}X$.exports=OGr});var Z$=c((Dye,H$)=>{"use strict";var NGr=K$();H$.exports=NGr});var rW=c((kye,Q$)=>{"use strict";var DGr=se(),kGr=al(),BGr=Ja(),FGr=_t(),RGr=oe(),VGr=Xa(),zGr=ut(),CGr=pr();function LGr(r){if(!DGr(r))throw new TypeError(CGr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return kGr(zGr(r),RGr(r),BGr(r),FGr(r),VGr(r))}Q$.exports=LGr});var sc=c((Bye,eW)=>{"use strict";var PGr=rW();eW.exports=PGr});var iW=c((Fye,tW)=>{"use strict";var uc=Ir(),UGr=Pe(),MGr=Z$(),Ts=Be(),GGr=sc(),YGr=pr();function aW(r){var e,a;if(!MGr(r))throw new TypeError(YGr("invalid argument. First argument must be an iterator protocol-compliant object. Value: `%s`.",r));return e={},uc(e,"next",t),uc(e,"return",o),Ts&&UGr(r[Ts])&&uc(e,Ts,i),e;function t(){var n;return a?{done:!0}:(n=r.next(),n.done?(a=!0,n):{value:GGr(n.value),done:!1})}function o(n){return a=!0,arguments.length?{value:n,done:!0}:{done:!0}}function i(){return aW(r[Ts]())}}tW.exports=aW});var nW=c((Rye,oW)=>{"use strict";var $Gr=iW();oW.exports=$Gr});var fW=c((Vye,vW)=>{"use strict";var vc=Ir(),WGr=ne(),JGr=_a(),XGr=se(),KGr=Xr(),sW=Be(),HGr=Se(),ZGr=oe(),QGr=Jr(),rYr=He().assign,fc=pr();function uW(r){var e,a,t,o,i,n,s,u,v,f;if(!XGr(r))throw new TypeError(fc("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={order:r.order},arguments.length>1){if(e=arguments[1],!WGr(e))throw new TypeError(fc("invalid argument. Options argument must be an object. Value: `%s`.",e));if(KGr(e,"order")){if(!JGr(e.order))throw new TypeError(fc("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));o.order=e.order}}return a=ZGr(r),t=a.length,v=QGr(a),v===0&&(n=!0),o.order==="row-major"?u=t-1:u=0,f=-1,s=HGr(t),i={},vc(i,"next",l),vc(i,"return",p),sW&&vc(i,sW,m),i;function l(){return f+=1,n||f>=v?{done:!0}:(f>0&&(s=rYr(a,o.order,s,u,s)),{value:r.get.apply(r,s),done:!1})}function p(d){return n=!0,arguments.length?{value:d,done:!0}:{done:!0}}function m(){return uW(r,o)}}vW.exports=uW});var cW=c((zye,lW)=>{"use strict";var eYr=fW();lW.exports=eYr});var pW=c((Cye,dW)=>{"use strict";var Ze=Rt(),Me={};Ze(Me,"nditerColumnEntries",MG());Ze(Me,"nditerColumns",XG());Ze(Me,"nditerEntries",eY());Ze(Me,"nditerIndices",sY());Ze(Me,"nditerInterleaveSubarrays",qY());Ze(Me,"nditerMatrices",TY());Ze(Me,"nditerMatrixEntries",kY());Ze(Me,"nditerRowEntries",CY());Ze(Me,"nditerRows",YY());Ze(Me,"nditerSelectDimension",QY());Ze(Me,"nditerStacks",U$());Ze(Me,"nditerSubarrays",J$());Ze(Me,"nditer2arrayEach",nW());Ze(Me,"nditerValues",cW());dW.exports=Me});var mW=c((Lye,yW)=>{"use strict";var aYr=Ue(),tYr=Fa(),iYr=oe(),oYr=Ja(),nYr=_t(),sYr=Xa(),uYr=ut(),vYr=ma(),fYr=Da(),lYr=fYr("order");function cYr(r){var e,a,t,o,i,n,s;if(s=tYr(r),i=uYr(r),o=iYr(r),e=oYr(r),a=nYr(r),t=sYr(r)||lYr,arguments.length>1?n=arguments[1]:n={},aYr(r)){if(n.readonly===void 0)n.readonly=!0;else if(n.readonly===!1)throw new Error("invalid argument. Cannot write to a read-only array.")}return new vYr(s,i,o,e,a,t,n)}yW.exports=cYr});var gW=c((Pye,hW)=>{"use strict";var dYr=mW();hW.exports=dYr});var bW=c((Uye,pYr)=>{pYr.exports={float64:-1,float32:"float64",int32:-1,int16:"int32",int8:"int16",uint32:-1,uint16:"uint32",uint8:"uint16",uint8c:"uint16",complex64:"complex128",complex128:-1,generic:-1,binary:-1,bool:-1}});var qW=c((Mye,xW)=>{"use strict";var yYr=Ea(),mYr=Xr(),hYr=ka(),js=bW();function gYr(){var r,e,a,t;for(a={},r=yYr(js),e=r.length,t=0;t<e;t++)a[r[t]]=js[r[t]];return a}function bYr(r){return arguments.length===0?gYr():(r=hYr(r),mYr(js,r)?js[r]:null)}xW.exports=bYr});var SW=c((Gye,wW)=>{"use strict";var xYr=qW();wW.exports=xYr});var _W=c((Yye,AW)=>{"use strict";var EW=ge().isPrimitive,qYr=De(),lc=pr();function wYr(r){var e,a,t,o,i;if(typeof r!="object"||r===null)throw new TypeError(lc("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(t=r.length,EW(t))return t;if(a=r.shape,!qYr(a))throw new TypeError(lc("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=a.length,e===0)return 0;for(t=1,i=0;i<e;i++){if(o=a[i],!EW(o))throw new TypeError(lc("invalid argument. Must provide an ndarray. Value: `%s`.",r));t*=o}return t}AW.exports=wYr});var cc=c(($ye,TW)=>{"use strict";var SYr=_W();TW.exports=SYr});var IW=c((Wye,jW)=>{"use strict";var EYr=ge().isPrimitive,AYr=ve().isPrimitive,_Yr=Yf(),dc=pr();function TYr(r,e){var a;if(typeof r!="object"||r===null)throw new TypeError(dc("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!AYr(e))throw new TypeError(dc("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(a=_Yr(r,e),EYr(a))return a;throw new TypeError(dc("invalid argument. First argument must be an ndarray. Value: `%s`.",r))}jW.exports=TYr});var NW=c((Jye,OW)=>{"use strict";var jYr=IW();OW.exports=jYr});var DW=c((Xye,IYr)=>{IYr.exports={float64:{float64:"float64",float32:"float64",int32:"float64",int16:"float64",int8:"float64",uint32:"float64",uint16:"float64",uint8:"float64",uint8c:"float64",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},float32:{float64:"float64",float32:"float32",int32:"float64",int16:"float32",int8:"float32",uint32:"float64",uint16:"float32",uint8:"float32",uint8c:"float32",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},int32:{float64:"float64",float32:"float64",int32:"int32",int16:"int32",int8:"int32",uint32:"float64",uint16:"int32",uint8:"int32",uint8c:"int32",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},int16:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int16",uint32:"float64",uint16:"int32",uint8:"int16",uint8c:"int16",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},int8:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int8",uint32:"float64",uint16:"int32",uint8:"int16",uint8c:"int16",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint32:{float64:"float64",float32:"float64",int32:"float64",int16:"float64",int8:"float64",uint32:"uint32",uint16:"uint32",uint8:"uint32",uint8c:"uint32",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint16:{float64:"float64",float32:"float32",int32:"int32",int16:"int32",int8:"int32",uint32:"uint32",uint16:"uint16",uint8:"uint16",uint8c:"uint16",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint8:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int16",uint32:"uint32",uint16:"uint16",uint8:"uint8",uint8c:"uint8",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint8c:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int16",uint32:"uint32",uint16:"uint16",uint8:"uint8",uint8c:"uint8c",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},complex128:{float64:"complex128",float32:"complex128",int32:"complex128",int16:"complex128",int8:"complex128",uint32:"complex128",uint16:"complex128",uint8:"complex128",uint8c:"complex128",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},complex64:{float64:"complex128",float32:"complex64",int32:"complex128",int16:"complex64",int8:"complex64",uint32:"complex128",uint16:"complex64",uint8:"complex64",uint8c:"complex64",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},generic:{float64:"generic",float32:"generic",int32:"generic",int16:"generic",int8:"generic",uint32:"generic",uint16:"generic",uint8:"generic",uint8c:"generic",complex64:"generic",complex128:"generic",binary:-1,generic:"generic",bool:"generic"},binary:{float64:-1,float32:-1,int32:-1,int16:-1,int8:-1,uint32:-1,uint16:-1,uint8:-1,uint8c:-1,complex64:-1,complex128:-1,binary:"binary",generic:-1,bool:-1},bool:{float64:-1,float32:-1,int32:-1,int16:-1,int8:-1,uint32:-1,uint16:-1,uint8:-1,uint8c:-1,complex64:-1,complex128:-1,binary:-1,generic:"generic",bool:"bool"}}});var RW=c((Kye,FW)=>{"use strict";var OYr=Ea(),kW=Xr(),BW=ka(),Is=DW();function NYr(){var r,e,a,t,o,i,n,s,u;for(a={},r=OYr(Is),e=r.length,u=0;u<e;u++){for(o=r[u],n=Is[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function DYr(r,e){var a;return arguments.length===0?NYr():(r=BW(r),kW(Is,r)&&(a=Is[r],e=BW(e),kW(a,e))?a[e]:null)}FW.exports=DYr});var zW=c((Hye,VW)=>{"use strict";var kYr=RW();VW.exports=kYr});var LW=c((Zye,CW)=>{"use strict";var BYr=Za(),FYr=ht();function RYr(r){return r instanceof BYr||FYr(r)==="MultiSlice"}CW.exports=RYr});var pc=c((Qye,PW)=>{"use strict";var VYr=LW();PW.exports=VYr});var MW=c((rme,UW)=>{"use strict";var zYr=se(),CYr=pc(),LYr=ze(),PYr=ne(),UYr=pe().isPrimitive,MYr=Xr(),GYr=Za(),YYr=he(),$Yr=ye(),WYr=oe(),Os=pr();function JYr(r,e){var a,t,o,i,n,s,u;if(o={strict:!0},t=arguments.length,!zYr(r))throw new TypeError(Os("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(PYr(arguments[t-1])){if(t-=1,a=arguments[t],MYr(a,"strict")){if(!UYr(a.strict))throw new TypeError(Os("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(n=WYr(r),t===1&&n.length>0)throw new RangeError(Os("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",n.join(","),0))}if(CYr(e)){if(s=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else{if(LYr(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],u=1;u<t;u++)i.push(arguments[u]);try{s=YYr(i)}catch{for(u=0;u<i.length;u++)try{new GYr(i[u])}catch{throw new TypeError(Os("invalid argument. Slice arguments must be either a Slice, integer, null, or undefined. Value: `%s`.",String(i[u])))}}}return $Yr(r,s,o.strict,!1)}UW.exports=JYr});var yc=c((eme,GW)=>{"use strict";var XYr=MW();GW.exports=XYr});var WW=c((ame,$W)=>{"use strict";var YW=se(),KYr=pc(),HYr=ze(),ZYr=ne(),QYr=pe().isPrimitive,r$r=Ue(),e$r=Xr(),a$r=Za(),t$r=he(),i$r=is(),o$r=oe(),zo=pr();function n$r(r,e,a){var t,o,i,n,s,u,v;if(i={strict:!0},o=arguments.length,!YW(r))throw new TypeError(zo("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!YW(e))throw new TypeError(zo("invalid argument. Second argument must be an ndarray. Value: `%s`.",e));if(r$r(e))throw new Error("invalid argument. Cannot write to a read-only array.");if(ZYr(arguments[o-1])){if(o-=1,t=arguments[o],e$r(t,"strict")){if(!QYr(t.strict))throw new TypeError(zo("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));i.strict=t.strict}if(s=o$r(e),o===2&&s.length>0)throw new RangeError(zo("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",s.join(","),0))}if(KYr(a)){if(u=a,o>3)throw new Error("invalid invocation. Too many arguments.")}else{if(HYr(a)){if(n=a,o>3)throw new Error("invalid invocation. Too many arguments.")}else for(n=[],v=2;v<o;v++)n.push(arguments[v]);try{u=t$r(n)}catch{for(v=0;v<n.length;v++)try{new a$r(n[v])}catch{throw new TypeError(zo("invalid argument. Slice arguments must be either a Slice, integer, null, or undefined. Value: `%s`.",String(n[v])))}}}return i$r(r,e,u,i.strict)}$W.exports=n$r});var XW=c((tme,JW)=>{"use strict";var s$r=WW();JW.exports=s$r});var ZW=c((ime,HW)=>{"use strict";var u$r=ne(),v$r=pe().isPrimitive,KW=ve().isPrimitive,f$r=se(),l$r=Si(),c$r=Ff(),d$r=wi(),p$r=Xr(),y$r=Le(),m$r=Xf(),Co=pr();function h$r(r,e,a){var t,o,i;if(i={strict:!0},!f$r(r))throw new TypeError(Co("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!KW(e))throw new TypeError(Co("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(KW(a)||c$r(a))o=a;else if(d$r(a)||l$r(a))o=new y$r;else throw new TypeError(Co("invalid argument. Third argument must be either a Slice, integer, null, or undefined. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!u$r(t))throw new TypeError(Co("invalid argument. Options argument must be an object. Value: `%s`.",t));if(p$r(t,"strict")){if(!v$r(t.strict))throw new TypeError(Co("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));i.strict=t.strict}}return m$r(r,e,o,i.strict,!1)}HW.exports=h$r});var rJ=c((ome,QW)=>{"use strict";var g$r=ZW();QW.exports=g$r});var tJ=c((nme,aJ)=>{"use strict";var b$r=ne(),x$r=pe().isPrimitive,eJ=ve().isPrimitive,q$r=se(),w$r=Xr(),S$r=Kf(),Lo=pr();function E$r(r,e,a){var t,o;if(o={strict:!0},!q$r(r))throw new TypeError(Lo("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!eJ(e))throw new TypeError(Lo("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(!eJ(a))throw new TypeError(Lo("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!b$r(t))throw new TypeError(Lo("invalid argument. Options argument must be an object. Value: `%s`.",t));if(w$r(t,"strict")){if(!x$r(t.strict))throw new TypeError(Lo("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));o.strict=t.strict}}return S$r(r,e,a,o.strict,!1)}aJ.exports=E$r});var oJ=c((sme,iJ)=>{"use strict";var A$r=tJ();iJ.exports=A$r});var uJ=c((ume,sJ)=>{"use strict";var _$r=ne(),T$r=pe().isPrimitive,nJ=ve().isPrimitive,j$r=se(),I$r=Xr(),O$r=Hf(),Po=pr();function N$r(r,e,a){var t,o;if(o={strict:!0},!j$r(r))throw new TypeError(Po("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!nJ(e))throw new TypeError(Po("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(!nJ(a))throw new TypeError(Po("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!_$r(t))throw new TypeError(Po("invalid argument. Options argument must be an object. Value: `%s`.",t));if(I$r(t,"strict")){if(!T$r(t.strict))throw new TypeError(Po("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));o.strict=t.strict}}return O$r(r,e,a,o.strict,!1)}sJ.exports=N$r});var fJ=c((vme,vJ)=>{"use strict";var D$r=uJ();vJ.exports=D$r});var cJ=c((fme,lJ)=>{"use strict";var k$r=se(),B$r=ze(),F$r=ne(),R$r=Ge().isPrimitive,V$r=pe().isPrimitive,z$r=wi(),C$r=Si(),L$r=Xr(),P$r=oe(),U$r=Zf(),Ns=pr();function M$r(r){return!(R$r(r)||z$r(r)||C$r(r))}function G$r(r,e){var a,t,o,i,n,s;if(o={strict:!0},t=arguments.length,!k$r(r))throw new TypeError(Ns("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(F$r(arguments[t-1])){if(t-=1,a=arguments[t],L$r(a,"strict")){if(!V$r(a.strict))throw new TypeError(Ns("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(n=P$r(r),t===1&&n.length>0)throw new RangeError(Ns("invalid argument. Number of indices does not match the number of array dimensions. Array shape: (%s). Number of indices: %u.",n.join(","),0))}if(B$r(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],s=1;s<t;s++)i.push(arguments[s]);for(s=0;s<i.length;s++)if(M$r(i[s]))throw new TypeError(Ns("invalid argument. Each index argument must be either an integer, null, or undefined. Value: `%s`.",String(i[s])));return U$r(r,i,o.strict,!1)}lJ.exports=G$r});var pJ=c((lme,dJ)=>{"use strict";var Y$r=cJ();dJ.exports=Y$r});var mJ=c((cme,yJ)=>{"use strict";var $$r=se(),W$r=ze(),J$r=ne(),X$r=Ge().isPrimitive,K$r=pe().isPrimitive,H$r=wi(),Z$r=Si(),Q$r=Xr(),rWr=oe(),eWr=Qf(),Ds=pr();function aWr(r){return!(X$r(r)||H$r(r)||Z$r(r))}function tWr(r,e){var a,t,o,i,n,s;if(o={strict:!0},t=arguments.length,!$$r(r))throw new TypeError(Ds("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(J$r(arguments[t-1])){if(t-=1,a=arguments[t],Q$r(a,"strict")){if(!K$r(a.strict))throw new TypeError(Ds("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(n=rWr(r),t===1&&n.length>0)throw new RangeError(Ds("invalid argument. Number of indices does not match the number of array dimensions. Array shape: (%s). Number of indices: %u.",n.join(","),0))}if(W$r(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],s=1;s<t;s++)i.push(arguments[s]);for(s=0;s<i.length;s++)if(aWr(i[s]))throw new TypeError(Ds("invalid argument. Each index argument must be either an integer, null, or undefined. Value: `%s`.",String(i[s])));return eWr(r,i,o.strict,!1)}yJ.exports=tWr});var gJ=c((dme,hJ)=>{"use strict";var iWr=mJ();hJ.exports=iWr});var qJ=c((pme,xJ)=>{"use strict";var bJ=ve().isPrimitive,oWr=De(),nWr=rl(),mc=pr();function sWr(r,e){var a;if(typeof r!="object"||r===null||!oWr(r.shape))throw new TypeError(mc("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!bJ(e))throw new TypeError(mc("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(a=nWr(r,e),bJ(a))return a;throw new TypeError(mc("invalid argument. First argument must be an ndarray. Value: `%s`.",r))}xJ.exports=sWr});var SJ=c((yme,wJ)=>{"use strict";var uWr=qJ();wJ.exports=uWr});var EJ=c((mme,vWr)=>{vWr.exports={mode:["throw"],order:"row-major"}});var TJ=c((hme,_J)=>{"use strict";var fWr=ne(),AJ=Xr(),lWr=qa(),cWr=_a(),dWr=pi(),ks=pr();function pWr(r,e){var a;if(!fWr(e))return new TypeError(ks("invalid argument. Options argument must be an object. Value: `%s`.",e));if(AJ(e,"mode")){if(r.mode=e.mode,!lWr(r.mode))r.mode=[r.mode];else if(r.mode.length===0)return new TypeError(ks("invalid option. `%s` option cannot be an empty array.","mode"));for(a=0;a<r.mode.length;a++)if(!dWr(r.mode[a]))return new TypeError(ks("invalid option. `%s` option must be a supported/recognized mode. Option: `%s`.","mode",r.mode[a]))}return AJ(e,"order")&&(r.order=e.order,!cWr(r.order))?new TypeError(ks("invalid option. `%s` option must be a supported/recognized order. Option: `%s`.","order",r.order)):null}_J.exports=pWr});var OJ=c((gme,IJ)=>{"use strict";var yWr=Wt().primitives,mWr=ve().isPrimitive,hWr=Ve(),gWr=el(),hc=pr(),jJ=EJ(),bWr=TJ();function xWr(){var r,e,a,t,o,i,n,s,u;if(e=arguments[0],!yWr(e))throw new TypeError(hc("invalid argument. First argument must be an array-like object containing nonnegative integers. Value: `%s`.",e));if(n=arguments.length,a=e.length,o={},o.mode=jJ.mode.slice(),o.order=jJ.order,n>a+1){if(u=n-1,r=arguments[u],i=bWr(o,r),i)throw i}else u=n;if(s=1,u-s!==a)throw new RangeError(hc("invalid argument. Number of provided subscripts must match the number of dimensions. ndims: `%u`. Number of subscripts: `%u`.",a,u-s));for(t=new Array(a+4),t[0]=e,t[1]=hWr(e,o.order),t[2]=0;s<u;s++){if(!mWr(arguments[s]))throw new TypeError(hc("invalid argument. Subscripts must be integer valued. Argument: `%u`. Value: `%s`.",s,arguments[s]));t[s+2]=arguments[s]}return t[s+2]=o.mode,gWr.apply(null,t)}IJ.exports=xWr});var DJ=c((bme,NJ)=>{"use strict";var qWr=OJ();NJ.exports=qWr});var VJ=c((xme,RJ)=>{"use strict";var wWr=ne(),Uo=Xr(),SWr=sn(),EWr=Ve(),AWr=Ye(),_Wr=Ba(),TWr=Jr(),jWr=ma(),FJ=Da(),Bs=pr(),kJ=FJ.get("dtypes.default"),BJ=FJ.get("order");function IWr(r){var e,a,t,o,i,n,s,u,v;if(i={},arguments.length>1){if(e=arguments[1],!wWr(e))throw new TypeError(Bs("invalid argument. Options argument must be an object. Value: `%s`.",e));Uo(e,"dtype")?a=e.dtype:a=kJ,Uo(e,"order")?t=e.order:t=BJ,Uo(e,"mode")&&(i.mode=e.mode),Uo(e,"submode")&&(i.submode=e.submode),Uo(e,"readonly")&&(i.readonly=e.readonly)}else a=kJ,t=BJ;if(typeof r=="number")v=[r];else if(SWr(r))v=r;else throw new TypeError(Bs("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));if(o=v.length,o>0){if(s=TWr(v),s!==s||s<0)throw new TypeError(Bs("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));u=EWr(v,t)}else s=1,u=[0];if(n=_Wr(a,s),n===null)throw new TypeError(Bs("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",a));return new jWr(a,n,v,u,AWr(v,u),t,i)}RJ.exports=IWr});var CJ=c((qme,zJ)=>{"use strict";var OWr=VJ();zJ.exports=OWr});var GJ=c((wme,MJ)=>{"use strict";var NWr=se(),DWr=ne(),kWr=Wt().primitives,Fi=Xr(),BWr=Ve(),FWr=Ye(),RWr=Ba(),VWr=Jr(),LJ=Fa(),PJ=oe(),UJ=Xa(),zWr=ma(),Fs=pr();function CWr(r){var e,a,t,o,i,n,s,u,v;if(!NWr(r))throw new TypeError(Fs("invalid argument. First argument must be an ndarray-like object. Value: `%s`.",r));if(i={},arguments.length>1){if(e=arguments[1],!DWr(e))throw new TypeError(Fs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(Fi(e,"dtype")?a=e.dtype:a=LJ(r),Fi(e,"shape")){if(v=e.shape,typeof v=="number"&&(v=[v]),!kWr(v))throw new TypeError(Fs("invalid option. `%s` option must be a nonnegative integer or an array of nonnegative integers. Option: `%s`.","shape",v))}else v=PJ(r);Fi(e,"order")?t=e.order:t=UJ(r),Fi(e,"mode")&&(i.mode=e.mode),Fi(e,"submode")&&(i.submode=e.submode),Fi(e,"readonly")&&(i.readonly=e.readonly)}else a=LJ(r),v=PJ(r),t=UJ(r);if(o=v.length,o>0?(s=VWr(v),u=BWr(v,t)):(s=1,u=[0]),n=RWr(a,s),n===null)throw new TypeError(Fs("invalid argument. First argument must have a recognized data type. Value: `%s`.",a));return new zWr(a,n,v,u,FWr(v,u),t,i)}MJ.exports=CWr});var $J=c((Sme,YJ)=>{"use strict";var LWr=GJ();YJ.exports=LWr});var gc=c((Eme,WJ)=>{"use strict";var Lr=Rt(),Vr={};Lr(Vr,"array",BA());Lr(Vr,"at",CA());Lr(Vr,"base",RL());Lr(Vr,"broadcastArray",os());Lr(Vr,"broadcastArrays",tl());Lr(Vr,"castingModes",Bv());Lr(Vr,"ndarray",ma());Lr(Vr,"dataBuffer",ut());Lr(Vr,"defaults",Da());Lr(Vr,"dispatch",nP());Lr(Vr,"dtype",Fa());Lr(Vr,"dtypes",ke());Lr(Vr,"empty",dP());Lr(Vr,"emptyLike",xP());Lr(Vr,"FancyArray",$9());Lr(Vr,"flag",qG());Lr(Vr,"flags",AG());Lr(Vr,"scalar2ndarray",Tl());Lr(Vr,"ind2sub",VG());Lr(Vr,"indexModes",$t());Lr(Vr,"iter",pW());Lr(Vr,"maybeBroadcastArray",Yl());Lr(Vr,"maybeBroadcastArrays",$l());Lr(Vr,"minDataType",wl());Lr(Vr,"mostlySafeCasts",zv());Lr(Vr,"ndarraylike2ndarray",gW());Lr(Vr,"ndims",Vn());Lr(Vr,"nextDataType",SW());Lr(Vr,"numel",cc());Lr(Vr,"numelDimension",NW());Lr(Vr,"offset",_t());Lr(Vr,"order",Xa());Lr(Vr,"orders",Yt());Lr(Vr,"outputDataTypePolicies",es());Lr(Vr,"promotionRules",zW());Lr(Vr,"safeCasts",Vv());Lr(Vr,"sameKindCasts",Cv());Lr(Vr,"shape",oe());Lr(Vr,"slice",yc());Lr(Vr,"ndsliceAssign",XW());Lr(Vr,"sliceDimension",rJ());Lr(Vr,"sliceDimensionFrom",oJ());Lr(Vr,"sliceDimensionTo",fJ());Lr(Vr,"sliceFrom",pJ());Lr(Vr,"sliceTo",gJ());Lr(Vr,"stride",SJ());Lr(Vr,"strides",Ja());Lr(Vr,"sub2ind",DJ());Lr(Vr,"ndarray2array",sc());Lr(Vr,"zeros",CJ());Lr(Vr,"zerosLike",$J());WJ.exports=Vr});var qX=c((Yme,xX)=>{"use strict";function aJr(r,e){return r>e?r:e}xX.exports=aJr});var SX=c(($me,wX)=>{"use strict";var tJr=qX();wX.exports=tJr});var AX=c((Wme,EX)=>{"use strict";var iJr=Ce().factory,oJr=Yu(),nJr=iJr(oJr());EX.exports=nJr});var TX=c((Jme,_X)=>{"use strict";var sJr=AX();_X.exports=sJr});var jX=c((Xme,uJr)=>{uJr.exports=["no-transpose","transpose","conjugate-transpose"]});var OX=c((Kme,IX)=>{"use strict";var vJr=jX();function fJr(){return vJr.slice()}IX.exports=fJr});var DX=c((Hme,NX)=>{"use strict";function lJr(){return{"no-transpose":111,transpose:112,"conjugate-transpose":113}}NX.exports=lJr});var FX=c((Zme,BX)=>{"use strict";var cJr=Ir(),kX=OX(),dJr=DX();cJr(kX,"enum",dJr);BX.exports=kX});var VX=c((Qme,RX)=>{"use strict";var pJr=Ce().factory,yJr=FX(),mJr=pJr(yJr());RX.exports=mJr});var Nc=c((rhe,zX)=>{"use strict";var hJr=VX();zX.exports=hJr});var LX=c((ehe,CX)=>{"use strict";function gJr(r,e){return e>0?0:(1-r)*e}CX.exports=gJr});var UX=c((ahe,PX)=>{"use strict";var bJr=LX();PX.exports=bJr});var Dc=c((the,MX)=>{"use strict";var Yo=5;function xJr(r,e,a,t,o,i,n){var s,u,v,f,l;if(s=0,r<=0)return s;if(u=t,v=n,a===1&&i===1){if(f=r%Yo,f>0)for(l=0;l<f;l++)s+=e[u]*o[v],u+=1,v+=1;if(r<Yo)return s;for(l=f;l<r;l+=Yo)s+=e[u]*o[v]+e[u+1]*o[v+1]+e[u+2]*o[v+2]+e[u+3]*o[v+3]+e[u+4]*o[v+4],u+=Yo,v+=Yo;return s}for(l=0;l<r;l++)s+=e[u]*o[v],u+=a,v+=i;return s}MX.exports=xJr});var $X=c((ihe,YX)=>{"use strict";var GX=UX(),qJr=Dc();function wJr(r,e,a,t,o){var i,n;return r<=0?0:(i=GX(r,a),n=GX(r,o),qJr(r,e,a,i,t,o,n))}YX.exports=wJr});var XX=c((ohe,JX)=>{"use strict";var SJr=Ir(),WX=$X(),EJr=Dc();SJr(WX,"ndarray",EJr);JX.exports=WX});var kc=c((nhe,HX)=>{"use strict";var zs=Yn(),KX=XX().ndarray,AJr=Br(),pt=AJr("float64");function kt(r){return r!=="no-transpose"}function _Jr(r,e,a,t,o,i){var n,s,u,v,f,l,p;for(zs([t,o])?(u=e,v=r,n=o,s=t-u*o):(u=r,v=e,n=t,s=o-u*t),p=i,l=0;l<v;l++){for(f=0;f<u;f++)a[p]=0,p+=n;p+=s}return a}function TJr(r,e,a,t,o,i,n){var s,u,v,f,l,p,m;for(zs([o,i])?(v=e,f=r,s=i,u=o-v*i):(v=r,f=e,s=o,u=i-v*o),m=n,p=0;p<f;p++){for(l=0;l<v;l++)t[m]*=a,m+=s;m+=u}return t}function Vs(r,e,a,t,o,i,n,s,u,v,f,l,p,m,d,y){var h,g,x,S,w,A,_,b,E,q,T;for(w=e,A=r,h=n,g=v,x=d,S=m-w*d,T=y,b=0;b<A;b++){for(E=s+b*i,_=0;_<w;_++)q=l+_*f,p[T]+=t*KX(a,o,h,E,u,g,q),T+=x;T+=S}return p}function jJr(r,e,a,t,o,i,n,s,u,v,f,l,p,m,d,y){var h,g,x,S,w,A,_,b,E,q,T,j,O,I,D,k,N,F,R,B,V,z,C;for(E=e,q=r,h=n,g=v,x=d,N=q;N>0;)for(N<pt?(j=N,N=0):(j=pt,N-=pt),w=s+N*i,b=y+N*m,k=E;k>0;)for(k<pt?(T=k,k=0):(T=pt,k-=pt),A=l+k*f,_=b+k*d,S=m-T*d,C=a;C>0;)for(C<pt?(O=C,C=0):(O=pt,C-=pt),V=w+C*n,z=A+C*v,B=_,D=0;D<j;D++){for(F=V+D*i,I=0;I<T;I++)R=z+I*f,p[B]+=t*KX(O,o,h,F,u,g,R),B+=x;B+=S}return p}function IJr(r,e,a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x){var S,w,A,_,b,E;if(a===0||t===0||d===1&&(i===0||o===0)||(d===0?y=_Jr(a,t,y,h,g,x):d!==1&&(y=TJr(a,t,d,y,h,g,x)),i===0))return y;if(S=zs([s,u]),w=zs([l,p]),S){if(!kt(r)){if(!w&&!kt(e))return Vs(a,t,o,i,n,s,u,v,f,l,p,m,y,h,g,x);if(w&&kt(e))return Vs(a,t,o,i,n,s,u,v,f,p,l,m,y,h,g,x)}}else if(kt(r)){if(w&&kt(e))return Vs(a,t,o,i,n,u,s,v,f,p,l,m,y,h,g,x);if(!w&&!kt(e))return Vs(a,t,o,i,n,u,s,v,f,l,p,m,y,h,g,x)}return kt(r)?(A=u,_=s):(A=s,_=u),kt(e)?(b=p,E=l):(b=l,E=p),jJr(a,t,o,i,n,A,_,v,f,b,E,m,y,h,g,x)}HX.exports=IJr});var rK=c((she,QX)=>{"use strict";var Bc=SX(),OJr=TX(),ZX=Nc(),yt=pr(),NJr=kc();function DJr(r,e,a,t,o,i,n,s,u,v,f,l,p,m){var d,y,h,g,x,S,w,A,_;if(!OJr(r))throw new TypeError(yt("invalid argument. First argument must be a valid order. Value: `%s`.",r));if(!ZX(e))throw new TypeError(yt("invalid argument. Second argument must be a valid transpose operation. Value: `%s`.",e));if(!ZX(a))throw new TypeError(yt("invalid argument. Third argument must be a valid transpose operation. Value: `%s`.",a));if(t<0)throw new RangeError(yt("invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.",t));if(o<0)throw new RangeError(yt("invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.",t));if(i<0)throw new RangeError(yt("invalid argument. Sixth argument must be a nonnegative integer. Value: `%d`.",i));if(r==="row-major"&&e==="no-transpose"||r==="column-major"&&e==="transpose"?d=i:d=t,r==="row-major"&&a==="no-transpose"||r==="column-major"&&a==="transpose"?y=o:y=i,u<Bc(1,d))throw new RangeError(yt("invalid argument. Ninth argument must be greater than or equal to max(1,%d). Value: `%d`.",d,u));if(f<Bc(1,y))throw new RangeError(yt("invalid argument. Eleventh argument must be greater than or equal to max(1,%d). Value: `%d`.",y,f));if(r==="row-major"?h=o:h=t,m<Bc(1,h))throw new RangeError(yt("invalid argument. Fourteenth argument must be greater than or equal to max(1,%d). Value: `%d`.",h,m));return r==="column-major"?(g=1,x=u,S=1,w=f,A=1,_=m):(g=u,x=1,S=f,w=1,A=m,_=1),NJr(e,a,t,o,i,n,s,g,x,0,v,S,w,0,l,p,A,_,0)}QX.exports=DJr});var tK=c((uhe,aK)=>{"use strict";var eK=Nc(),$o=pr(),kJr=kc();function BJr(r,e,a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x){if(!eK(r))throw new TypeError($o("invalid argument. First argument must be a valid transpose operation. Value: `%s`.",r));if(!eK(e))throw new TypeError($o("invalid argument. Second argument must be a valid transpose operation. Value: `%s`.",e));if(a<0)throw new RangeError($o("invalid argument. Third argument must be a nonnegative integer. Value: `%d`.",a));if(t<0)throw new RangeError($o("invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.",a));if(o<0)throw new RangeError($o("invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.",o));return kJr(r,e,a,t,o,i,n,s,u,v,f,l,p,m,d,y,h,g,x)}aK.exports=BJr});var nK=c((vhe,oK)=>{"use strict";var FJr=Ir(),iK=rK(),RJr=tK();FJr(iK,"ndarray",RJr);oK.exports=iK});var CJr={};TK(CJr,{NDArray:()=>Re,__version__:()=>zJr,arange:()=>lK,array:()=>rt,asarray:()=>mK,copy:()=>hK,empty:()=>Vc,empty_like:()=>xK,eye:()=>Rc,full:()=>zc,full_like:()=>qK,geomspace:()=>pK,identity:()=>yK,linspace:()=>cK,logspace:()=>dK,ones:()=>Fc,ones_like:()=>bK,zeros:()=>Cs,zeros_like:()=>gK});var de=ra(gc(),1),vK=ra(yc(),1),fK=ra(Le(),1);function JJ(r){if(!r.includes(":")){if(r.includes("."))throw new Error(`Invalid slice index: "${r}" (must be integer)`);let i=parseInt(r,10);if(isNaN(i))throw new Error(`Invalid slice index: "${r}"`);return{start:i,stop:null,step:1,isIndex:!0}}let e=r.split(":");if(e.length>3)throw new Error(`Invalid slice notation: "${r}" (too many colons)`);let a=e[0]===""?null:parseInt(e[0],10),t=e[1]===""||e[1]===void 0?null:parseInt(e[1],10),o=e[2]===""||e[2]===void 0?1:parseInt(e[2],10);if(a!==null&&isNaN(a))throw new Error(`Invalid start index in slice: "${r}"`);if(t!==null&&isNaN(t))throw new Error(`Invalid stop index in slice: "${r}"`);if(isNaN(o))throw new Error(`Invalid step in slice: "${r}"`);if(o===0)throw new Error("Slice step cannot be zero");return{start:a,stop:t,step:o,isIndex:!1}}function XJ(r,e){let{start:a,stop:t}=r,{step:o,isIndex:i}=r;if(i){if(a===null)throw new Error("Index cannot be null");let n=a<0?e+a:a;if(n<0||n>=e)throw new Error(`Index ${a} is out of bounds for size ${e}`);return{start:n,stop:n+1,step:1,isIndex:!0}}return o>0?(a===null&&(a=0),t===null&&(t=e)):(a===null&&(a=e-1),t===null&&(t=-e-1)),a<0&&(a=e+a),t<0&&(t=e+t),a=Math.max(0,Math.min(a,e)),t=Math.max(-1,Math.min(t,e)),{start:a,stop:t,step:o,isIndex:!1}}var Qe="float64";function Oe(r){switch(r){case"float64":return Float64Array;case"float32":return Float32Array;case"int64":return BigInt64Array;case"int32":return Int32Array;case"int16":return Int16Array;case"int8":return Int8Array;case"uint64":return BigUint64Array;case"uint32":return Uint32Array;case"uint16":return Uint16Array;case"uint8":return Uint8Array;case"bool":return Uint8Array;default:throw new Error(`Unknown dtype: ${r}`)}}function KJ(r){return r==="float64"||r==="float32"}function Pr(r){return r==="int64"||r==="uint64"}function Rs(r,e){if(r===e)return r;if(r==="bool")return e;if(e==="bool")return r;if(KJ(r)||KJ(e)){if(r==="float64"||e==="float64")return"float64";if(r==="float32"){let v=e;return v==="int32"||v==="int64"||v==="uint32"||v==="uint64"?"float64":"float32"}if(e==="float32"){let v=r;return v==="int32"||v==="int64"||v==="uint32"||v==="uint64"?"float64":"float32"}return"float32"}let a=r.startsWith("int"),t=e.startsWith("int"),o=r.startsWith("uint"),i=e.startsWith("uint"),n=v=>v.includes("64")?64:v.includes("32")?32:v.includes("16")?16:v.includes("8")?8:0,s=n(r),u=n(e);if(r==="int64"&&e==="uint64"||r==="uint64"&&e==="int64")return"float64";if(a&&i&&s===u){if(s===8)return"int16";if(s===16)return"int32";if(s===32)return"int64"}if(o&&t&&s===u){if(u===8)return"int16";if(u===16)return"int32";if(u===32)return"int64"}if(a&&t||o&&i){let v=Math.max(s,u);return a?v===64?"int64":v===32?"int32":v===16?"int16":"int8":v===64?"uint64":v===32?"uint32":v===16?"uint16":"uint8"}return a&&i?s>u?r:u===8?"int16":u===16?"int32":u===32?"int64":"float64":o&&t?u>s?e:s===8?"int16":s===16?"int32":s===32?"int64":"float64":"float64"}function ue(r){return r==="int64"||r==="uint64"?"generic":r}var Mo=ra(ma(),1),HJ=ra(Fa(),1),ZJ=ra(oe(),1),QJ=ra(Ja(),1),rX=ra(Vn(),1),eX=ra(cc(),1),aX=ra(ut(),1);var Ur=class r{constructor(e,a){this._stdlib=e,this._dtype=a||(0,HJ.default)(e)}get shape(){return Array.from((0,ZJ.default)(this._stdlib))}get ndim(){return(0,rX.default)(this._stdlib)}get size(){return(0,eX.default)(this._stdlib)}get dtype(){return this._dtype}get data(){return(0,aX.default)(this._stdlib)}get strides(){return Array.from((0,QJ.default)(this._stdlib))}get stdlib(){return this._stdlib}get isCContiguous(){let e=this.shape,a=this.strides,t=e.length;if(t===0)return!0;if(t===1)return a[0]===1;let o=1;for(let i=t-1;i>=0;i--){if(a[i]!==o)return!1;o*=e[i]}return!0}get isFContiguous(){let e=this.shape,a=this.strides,t=e.length;if(t===0)return!0;if(t===1)return a[0]===1;let o=1;for(let i=0;i<t;i++){if(a[i]!==o)return!1;o*=e[i]}return!0}copy(){let e=Array.from(this.shape),a=this.data,t=this._dtype,o=Oe(t);if(!o)throw new Error(`Cannot copy array with dtype ${t}`);if(Pr(t)){let i=new o(this.size),n=a;for(let u=0;u<this.size;u++)i[u]=n[u];let s=(0,Mo.default)(ue(t),i,e,this._computeStrides(e),0,"row-major");return new r(s,t)}else{let i=new o(this.size),n=a;i.set(n);let s=(0,Mo.default)(ue(t),i,e,this._computeStrides(e),0,"row-major");return new r(s,t)}}static fromStdlib(e,a){return new r(e,a)}static fromData(e,a,t){let o=r._computeStrides(a),i=(0,Mo.default)(ue(t),e,a,o,0,"row-major");return new r(i,t)}static zeros(e,a=Qe){let t=e.reduce((s,u)=>s*u,1),o=Oe(a);if(!o)throw new Error(`Cannot create array with dtype ${a}`);let i=new o(t),n=(0,Mo.default)(ue(a),i,e,r._computeStrides(e),0,"row-major");return new r(n,a)}static ones(e,a=Qe){let t=r.zeros(e,a),o=t.data;if(Pr(a)){let i=o;for(let n=0;n<t.size;n++)i[n]=BigInt(1)}else{let i=o;for(let n=0;n<t.size;n++)i[n]=1}return t}_computeStrides(e){return r._computeStrides(e)}static _computeStrides(e){let a=new Array(e.length),t=1;for(let o=e.length-1;o>=0;o--)a[o]=t,t*=e[o];return a}};var bc=ra(tl(),1);function oi(r,e,a,t){let o,i;try{[o,i]=(0,bc.default)([r.stdlib,e.stdlib])}catch{throw new Error(`operands could not be broadcast together with shapes ${JSON.stringify(r.shape)} ${JSON.stringify(e.shape)}`)}let n=Rs(r.dtype,e.dtype),s=Array.from(o.shape),u=Ur.zeros(s,n),v=u.data,f=u.size;if(Pr(n)){let l=v;for(let p=0;p<f;p++){let m=o.iget(p),d=i.iget(p),y=typeof m=="bigint"?m:BigInt(Math.round(m)),h=typeof d=="bigint"?d:BigInt(Math.round(d));t==="add"?l[p]=y+h:t==="subtract"?l[p]=y-h:t==="multiply"?l[p]=y*h:t==="divide"?l[p]=y/h:l[p]=BigInt(Math.round(a(Number(y),Number(h))))}}else{let l=Pr(r.dtype)||Pr(e.dtype);for(let p=0;p<f;p++){let m=o.iget(p),d=i.iget(p),y=Number(m),h=Number(d);v[p]=a(y,h)}}return u}function Dt(r,e,a){let t,o;try{[t,o]=(0,bc.default)([r.stdlib,e.stdlib])}catch{throw new Error(`operands could not be broadcast together with shapes ${JSON.stringify(r.shape)} ${JSON.stringify(e.shape)}`)}let i=Array.from(t.shape),n=i.reduce((v,f)=>v*f,1),s=new Uint8Array(n),u=Pr(r.dtype)||Pr(e.dtype);for(let v=0;v<n;v++){let f=t.iget(v),l=o.iget(v),p=Number(f),m=Number(l);s[v]=a(p,m)?1:0}return Ur.fromData(s,i,"bool")}function tX(r,e){return typeof e=="number"?PWr(r,e):oi(r,e,(a,t)=>a+t,"add")}function iX(r,e){return typeof e=="number"?UWr(r,e):oi(r,e,(a,t)=>a-t,"subtract")}function oX(r,e){return typeof e=="number"?MWr(r,e):oi(r,e,(a,t)=>a*t,"multiply")}function nX(r,e){if(typeof e=="number")return GWr(r,e);let a=r.dtype==="float64",t=e.dtype==="float64",o=r.dtype==="float32",i=e.dtype==="float32";if(a||t){let u=a?r:Ri(r,"float64"),v=t?e:Ri(e,"float64");return oi(u,v,(f,l)=>f/l,"divide")}if(o||i){let u=o?r:Ri(r,"float32"),v=i?e:Ri(e,"float32");return oi(u,v,(f,l)=>f/l,"divide")}let n=Ri(r,"float64"),s=Ri(e,"float64");return oi(n,s,(u,v)=>u/v,"divide")}function Ri(r,e){let a=Ur.zeros(Array.from(r.shape),e),t=r.size,o=r.data,i=a.data;for(let n=0;n<t;n++)i[n]=Number(o[n]);return a}function PWr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Ur.zeros(t,a),s=n.data;if(Pr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)v[l]=u[l]+f}else for(let u=0;u<i;u++)s[u]=Number(o[u])+e;return n}function UWr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Ur.zeros(t,a),s=n.data;if(Pr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)v[l]=u[l]-f}else for(let u=0;u<i;u++)s[u]=Number(o[u])-e;return n}function MWr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Ur.zeros(t,a),s=n.data;if(Pr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)v[l]=u[l]*f}else for(let u=0;u<i;u++)s[u]=Number(o[u])*e;return n}function GWr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,s=a!=="float32"&&a!=="float64"?"float64":a,u=Ur.zeros(t,s),v=u.data;if(Pr(a))for(let f=0;f<i;f++)v[f]=Number(o[f])/e;else for(let f=0;f<i;f++)v[f]=Number(o[f])/e;return u}function sX(r,e){return typeof e=="number"?$Wr(r,e):Dt(r,e,(a,t)=>a>t)}function uX(r,e){return typeof e=="number"?WWr(r,e):Dt(r,e,(a,t)=>a>=t)}function vX(r,e){return typeof e=="number"?JWr(r,e):Dt(r,e,(a,t)=>a<t)}function fX(r,e){return typeof e=="number"?XWr(r,e):Dt(r,e,(a,t)=>a<=t)}function lX(r,e){return typeof e=="number"?KWr(r,e):Dt(r,e,(a,t)=>a===t)}function cX(r,e){return typeof e=="number"?HWr(r,e):Dt(r,e,(a,t)=>a!==t)}function xc(r,e,a=1e-5,t=1e-8){return typeof e=="number"?ZWr(r,e,a,t):Dt(r,e,(o,i)=>{let n=Math.abs(o-i),s=t+a*Math.abs(i);return n<=s})}function dX(r,e,a=1e-5,t=1e-8){let o=xc(r,e,a,t),i=o.data;for(let n=0;n<o.size;n++)if(i[n]===0)return!1;return!0}function $Wr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]>e?1:0;return Ur.fromData(a,Array.from(r.shape),"bool")}function WWr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]>=e?1:0;return Ur.fromData(a,Array.from(r.shape),"bool")}function JWr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]<e?1:0;return Ur.fromData(a,Array.from(r.shape),"bool")}function XWr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]<=e?1:0;return Ur.fromData(a,Array.from(r.shape),"bool")}function KWr(r,e){let a=new Uint8Array(r.size),t=r.data,o=r.dtype;if(Pr(o)){let i=BigInt(Math.round(e)),n=t;for(let s=0;s<r.size;s++)a[s]=n[s]===i?1:0}else for(let i=0;i<r.size;i++)a[i]=t[i]===e?1:0;return Ur.fromData(a,Array.from(r.shape),"bool")}function HWr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]!==e?1:0;return Ur.fromData(a,Array.from(r.shape),"bool")}function ZWr(r,e,a,t){let o=new Uint8Array(r.size),i=r.data,n=r.dtype;if(Pr(n)){let s=i;for(let u=0;u<r.size;u++){let v=Number(s[u]),f=Math.abs(v-e),l=t+a*Math.abs(e);o[u]=f<=l?1:0}}else for(let s=0;s<r.size;s++){let u=Number(i[s]),v=Math.abs(u-e),f=t+a*Math.abs(e);o[s]=v<=f?1:0}return Ur.fromData(o,Array.from(r.shape),"bool")}function Vi(r){let e=new Array(r.length),a=1;for(let t=r.length-1;t>=0;t--)e[t]=a,a*=r[t];return e}function je(r,e){let a=0,t=1;for(let o=r.length-1;o>=0;o--)a+=r[o]*t,t*=e[o];return a}function Ie(r,e,a,t){let o=t.length,i=new Array(o),n=Array.from(t).filter((u,v)=>v!==e),s=r;for(let u=n.length-1;u>=0;u--)i[u>=e?u+1:u]=s%n[u],s=Math.floor(s/n[u]);return i[e]=a,i}function Go(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0)if(Pr(t)){let d=s,y=BigInt(0);for(let h=0;h<n;h++)y+=d[h];return Number(y)}else{let d=0;for(let y=0;y<n;y++)d+=Number(s[y]);return d}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((d,y)=>y!==u);if(v.length===0)return Go(r);let f=Ur.zeros(v,t),l=f.data,p=o[u],m=v.reduce((d,y)=>d*y,1);if(Pr(t)){let d=s,y=l;for(let h=0;h<m;h++){let g=BigInt(0);for(let x=0;x<p;x++){let S=Ie(h,u,x,o),w=je(S,o);g+=d[w]}y[h]=g}}else for(let d=0;d<m;d++){let y=0;for(let h=0;h<p;h++){let g=Ie(d,u,h,o),x=je(g,o);y+=Number(s[x])}l[d]=y}if(a){let d=[...o];return d[u]=1,Ur.fromData(l,d,t)}return f}function qc(r,e,a=!1){let t=r.dtype,o=r.shape;if(e===void 0)return Go(r)/r.size;let i=e;if(i<0&&(i=o.length+i),i<0||i>=o.length)throw new Error(`axis ${e} is out of bounds for array of dimension ${o.length}`);let n=Go(r,e,a);if(typeof n=="number")return n/o[i];let s=o[i],u=t;(Pr(t)||t.startsWith("int")||t.startsWith("uint"))&&(u="float64");let v=Ur.zeros(Array.from(n.shape),u),f=v.data,l=n.data;if(Pr(t)){let p=l;for(let m=0;m<f.length;m++)f[m]=Number(p[m])/s}else for(let p=0;p<f.length;p++)f[p]=Number(l[p])/s;return v}function wc(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0){if(n===0)throw new Error("max of empty array");let d=s[0];for(let y=1;y<n;y++)s[y]>d&&(d=s[y]);return Number(d)}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((d,y)=>y!==u);if(v.length===0)return wc(r);let f=Ur.zeros(v,t),l=f.data,p=o[u],m=v.reduce((d,y)=>d*y,1);if(Pr(t)){let d=s,y=l;for(let h=0;h<m;h++){let g=Ie(h,u,0,o),x=je(g,o),S=d[x];for(let w=1;w<p;w++){let A=Ie(h,u,w,o),_=je(A,o),b=d[_];b>S&&(S=b)}y[h]=S}}else for(let d=0;d<m;d++){let y=-1/0;for(let h=0;h<p;h++){let g=Ie(d,u,h,o),x=je(g,o),S=Number(s[x]);S>y&&(y=S)}l[d]=y}if(a){let d=[...o];return d[u]=1,Ur.fromData(l,d,t)}return f}function Sc(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0)if(Pr(t)){let d=s,y=BigInt(1);for(let h=0;h<n;h++)y*=d[h];return Number(y)}else{let d=1;for(let y=0;y<n;y++)d*=Number(s[y]);return d}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((d,y)=>y!==u);if(v.length===0)return Sc(r);let f=Ur.zeros(v,t),l=f.data,p=o[u],m=v.reduce((d,y)=>d*y,1);if(Pr(t)){let d=s,y=l;for(let h=0;h<m;h++){let g=BigInt(1);for(let x=0;x<p;x++){let S=Ie(h,u,x,o),w=je(S,o);g*=d[w]}y[h]=g}}else for(let d=0;d<m;d++){let y=1;for(let h=0;h<p;h++){let g=Ie(d,u,h,o),x=je(g,o);y*=Number(s[x])}l[d]=y}if(a){let d=[...o];return d[u]=1,Ur.fromData(l,d,t)}return f}function Ec(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0){if(n===0)throw new Error("min of empty array");let d=s[0];for(let y=1;y<n;y++)s[y]<d&&(d=s[y]);return Number(d)}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((d,y)=>y!==u);if(v.length===0)return Ec(r);let f=Ur.zeros(v,t),l=f.data,p=o[u],m=v.reduce((d,y)=>d*y,1);if(Pr(t)){let d=s,y=l;for(let h=0;h<m;h++){let g=Ie(h,u,0,o),x=je(g,o),S=d[x];for(let w=1;w<p;w++){let A=Ie(h,u,w,o),_=je(A,o),b=d[_];b<S&&(S=b)}y[h]=S}}else for(let d=0;d<m;d++){let y=1/0;for(let h=0;h<p;h++){let g=Ie(d,u,h,o),x=je(g,o),S=Number(s[x]);S<y&&(y=S)}l[d]=y}if(a){let d=[...o];return d[u]=1,Ur.fromData(l,d,t)}return f}function Ac(r,e){let a=r.dtype,t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){if(i===0)throw new Error("argmin of empty array");let m=n[0],d=0;for(let y=1;y<i;y++)n[y]<m&&(m=n[y],d=y);return d}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((m,d)=>d!==s);if(u.length===0)return Ac(r);let v=Ur.zeros(u,"int32"),f=v.data,l=t[s],p=u.reduce((m,d)=>m*d,1);if(Pr(a)){let m=n;for(let d=0;d<p;d++){let y=Ie(d,s,0,t),h=je(y,t),g=m[h],x=0;for(let S=1;S<l;S++){let w=Ie(d,s,S,t),A=je(w,t),_=m[A];_<g&&(g=_,x=S)}f[d]=x}}else for(let m=0;m<p;m++){let d=1/0,y=0;for(let h=0;h<l;h++){let g=Ie(m,s,h,t),x=je(g,t),S=Number(n[x]);S<d&&(d=S,y=h)}f[m]=y}return v}function _c(r,e){let a=r.dtype,t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){if(i===0)throw new Error("argmax of empty array");let m=n[0],d=0;for(let y=1;y<i;y++)n[y]>m&&(m=n[y],d=y);return d}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((m,d)=>d!==s);if(u.length===0)return _c(r);let v=Ur.zeros(u,"int32"),f=v.data,l=t[s],p=u.reduce((m,d)=>m*d,1);if(Pr(a)){let m=n;for(let d=0;d<p;d++){let y=Ie(d,s,0,t),h=je(y,t),g=m[h],x=0;for(let S=1;S<l;S++){let w=Ie(d,s,S,t),A=je(w,t),_=m[A];_>g&&(g=_,x=S)}f[d]=x}}else for(let m=0;m<p;m++){let d=-1/0,y=0;for(let h=0;h<l;h++){let g=Ie(m,s,h,t),x=je(g,t),S=Number(n[x]);S>d&&(d=S,y=h)}f[m]=y}return v}function Tc(r,e,a=0,t=!1){let o=r.shape,i=o.length,n=r.size,s=r.data,u=qc(r,e,t);if(e===void 0){let g=u,x=0;for(let S=0;S<n;S++){let w=Number(s[S])-g;x+=w*w}return x/(n-a)}let v=e;if(v<0&&(v=i+v),v<0||v>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let f=o[v],l=u,p=l.data,m=t?l.shape:Array.from(o).filter((g,x)=>x!==v),d=Ur.zeros(Array.from(m),"float64"),y=d.data,h=m.reduce((g,x)=>g*x,1);for(let g=0;g<h;g++){let x=0,S=Number(p[g]);for(let w=0;w<f;w++){let A=Ie(g,v,w,o),_=je(A,o),b=Number(s[_])-S;x+=b*b}y[g]=x/(f-a)}return d}function pX(r,e,a=0,t=!1){let o=Tc(r,e,a,t);if(typeof o=="number")return Math.sqrt(o);let i=Ur.zeros(Array.from(o.shape),"float64"),n=o.data,s=i.data;for(let u=0;u<n.length;u++)s[u]=Math.sqrt(Number(n[u]));return i}function jc(r,e,a=!1){let t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){for(let m=0;m<i;m++)if(!n[m])return!1;return!0}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((m,d)=>d!==s);if(u.length===0)return jc(r);let v=Ur.zeros(u,"bool"),f=v.data,l=t[s],p=u.reduce((m,d)=>m*d,1);for(let m=0;m<p;m++){let d=!0;for(let y=0;y<l;y++){let h=Ie(m,s,y,t),g=je(h,t);if(!n[g]){d=!1;break}}f[m]=d?1:0}if(a){let m=[...t];return m[s]=1,Ur.fromData(f,m,"bool")}return v}function Ic(r,e,a=!1){let t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){for(let m=0;m<i;m++)if(n[m])return!0;return!1}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((m,d)=>d!==s);if(u.length===0)return Ic(r);let v=Ur.zeros(u,"bool"),f=v.data,l=t[s],p=u.reduce((m,d)=>m*d,1);for(let m=0;m<p;m++){let d=!1;for(let y=0;y<l;y++){let h=Ie(m,s,y,t),g=je(h,t);if(n[g]){d=!0;break}}f[m]=d?1:0}if(a){let m=[...t];return m[s]=1,Ur.fromData(f,m,"bool")}return v}var Qa=ra(gc(),1);function yX(r,e){let a=r.size,t=r.dtype,o=e.indexOf(-1),i;if(o!==-1){let f=e.reduce((p,m,d)=>d===o?p:p*m,1),l=a/f;if(!Number.isInteger(l))throw new Error(`cannot reshape array of size ${a} into shape ${JSON.stringify(e)}`);i=e.map((p,m)=>m===o?l:p)}else i=e;if(i.reduce((f,l)=>f*l,1)!==a)throw new Error(`cannot reshape array of size ${a} into shape ${JSON.stringify(i)}`);if(r.isCContiguous){let f=r.data,l=Qa.default.ndarray(ue(t),f,i,Vi(i),0,"row-major");return Ur.fromStdlib(l,t)}let u=r.copy().data,v=Qa.default.ndarray(ue(t),u,i,Vi(i),0,"row-major");return Ur.fromStdlib(v,t)}function Oc(r){let e=r.stdlib,a=r.shape,t=a.length,o=r.size,i=r.dtype,n=Oe(i);if(!n)throw new Error(`Cannot flatten array with dtype ${i}`);let s=new n(o),u=0,v=(l,p)=>{if(p===t){let m=e.get(...l);s[u++]=m;return}for(let m=0;m<a[p];m++)l[p]=m,v(l,p+1)};v(new Array(t),0);let f=Qa.default.ndarray(ue(i),s,[o],[1],0,"row-major");return Ur.fromStdlib(f,i)}function mX(r){let e=r.size,a=r.dtype;if(r.isCContiguous){let t=r.data,o=Qa.default.ndarray(ue(a),t,[e],[1],0,"row-major");return Ur.fromStdlib(o,a)}return Oc(r)}function hX(r,e){let a=r.shape,t=a.length,o=r.strides,i=r.data,n=r.dtype,s=r.stdlib,u;if(e===void 0)u=Array.from({length:t},(m,d)=>t-1-d);else{if(e.length!==t)throw new Error(`axes must have length ${t}, got ${e.length}`);let m=new Set;for(let d of e){let y=d<0?t+d:d;if(y<0||y>=t)throw new Error(`axis ${d} is out of bounds for array of dimension ${t}`);if(m.has(y))throw new Error("repeated axis in transpose");m.add(y)}u=e.map(d=>d<0?t+d:d)}let v=u.map(m=>a[m]),f=Array.from(o),l=u.map(m=>f[m]),p=Qa.default.ndarray(ue(n),i,v,l,Qa.default.offset(s),"row-major");return Ur.fromStdlib(p,n)}function gX(r,e){let a=r.shape,t=a.length,o=r.data,i=r.dtype;if(e===void 0){let n=Array.from(a).filter(v=>v!==1);n.length===0&&n.push(1);let s=Vi(n),u=Qa.default.ndarray(ue(i),o,n,s,0,"row-major");return Ur.fromStdlib(u,i)}else{let n=e<0?t+e:e;if(n<0||n>=t)throw new Error(`axis ${e} is out of bounds for array of dimension ${t}`);if(a[n]!==1)throw new Error(`cannot select an axis which has size not equal to one (axis ${e} has size ${a[n]})`);let s=Array.from(a).filter((f,l)=>l!==n),u=Vi(s),v=Qa.default.ndarray(ue(i),o,s,u,0,"row-major");return Ur.fromStdlib(v,i)}}function bX(r,e){let a=r.shape,t=a.length,o=r.data,i=r.dtype,n=e;if(n<0&&(n=t+e+1),n<0||n>t)throw new Error(`axis ${e} is out of bounds for array of dimension ${t+1}`);let s=[...Array.from(a)];s.splice(n,0,1);let u=Vi(s),v=Qa.default.ndarray(ue(i),o,s,u,0,"row-major");return Ur.fromStdlib(v,i)}var sK=ra(nK(),1);function uK(r,e){if(r.ndim!==2||e.ndim!==2)throw new Error("matmul requires 2D arrays");let[a=0,t=0]=r.shape,[o=0,i=0]=e.shape;if(t!==o)throw new Error(`matmul shape mismatch: (${a},${t}) @ (${o},${i})`);let n=Rs(r.dtype,e.dtype),s=n.startsWith("int")||n.startsWith("uint")||n==="bool"?"float64":n;if(s!=="float64")throw new Error(`matmul currently only supports float64, got ${s}`);let u=r.dtype==="float64"?r.data:Float64Array.from(Array.from(r.data).map(Number)),v=e.dtype==="float64"?e.data:Float64Array.from(Array.from(e.data).map(Number)),f=Ur.zeros([a,i],"float64");return(0,sK.default)("row-major","no-transpose","no-transpose",a,i,t,1,u,t,v,i,0,f.data,i),f}var Re=class r{constructor(e,a,t){this._data=e,this._dtype=a,this._base=t}get _storage(){return new Ur(this._data,this._dtype)}static _fromStorage(e,a){return new r(e.stdlib,e.dtype,a)}get shape(){return Array.from(de.default.shape(this._data))}get ndim(){return de.default.ndims(this._data)}get size(){return de.default.numel(this._data)}get dtype(){return this._dtype||de.default.dtype(this._data)}get data(){return de.default.dataBuffer(this._data)}get strides(){return Array.from(de.default.strides(this._data))}get flags(){let e=this._storage;return{C_CONTIGUOUS:e.isCContiguous,F_CONTIGUOUS:e.isFContiguous,OWNDATA:this._base===void 0}}get base(){return this._base??null}get(e){if(e.length!==this.ndim)throw new Error(`Index has ${e.length} dimensions, but array has ${this.ndim} dimensions`);let a=e.map((i,n)=>{let s=i;if(s<0&&(s=this.shape[n]+s),s<0||s>=this.shape[n])throw new Error(`Index ${i} is out of bounds for axis ${n} with size ${this.shape[n]}`);return s}),t=this._data.get(...a),o=this.dtype;return Pr(o)?typeof t=="bigint"?t:BigInt(Math.round(t)):Number(t)}set(e,a){if(e.length!==this.ndim)throw new Error(`Index has ${e.length} dimensions, but array has ${this.ndim} dimensions`);let t=e.map((n,s)=>{let u=n;if(u<0&&(u=this.shape[s]+u),u<0||u>=this.shape[s])throw new Error(`Index ${n} is out of bounds for axis ${s} with size ${this.shape[s]}`);return u}),o=this.dtype,i;Pr(o)?i=typeof a=="bigint"?a:BigInt(Math.round(a)):o==="bool"?i=a?1:0:i=Number(a),this._data.set(...t,i)}copy(){let e=this.dtype,a=Array.from(this.shape),t=this.data,o=Oe(e);if(!o)throw new Error(`Cannot copy array with dtype ${e}`);if(Pr(e)){let i=new o(this.size),n=t;for(let u=0;u<this.size;u++)i[u]=n[u];let s=de.default.ndarray(ue(e),i,a,Ca(a),0,"row-major");return new r(s,e)}else{let i=new o(this.size),n=t;i.set(n);let s=de.default.ndarray(ue(e),i,a,Ca(a),0,"row-major");return new r(s,e)}}astype(e,a=!0){let t=this.dtype;if(t===e&&!a)return this;if(t===e&&a)return rt(this.toArray(),e);let o=Array.from(this.shape),i=this.size,n=Oe(e);if(!n)throw new Error(`Cannot convert to dtype ${e}`);let s=new n(i),u=this.data;if(Pr(t)&&!Pr(e)){let f=u;if(e==="bool")for(let l=0;l<i;l++)s[l]=f[l]!==BigInt(0)?1:0;else for(let l=0;l<i;l++)s[l]=Number(f[l])}else if(!Pr(t)&&Pr(e)){let f=u;for(let l=0;l<i;l++)s[l]=BigInt(Math.round(Number(f[l])))}else if(e==="bool"){let f=u;for(let l=0;l<i;l++)s[l]=f[l]!==0?1:0}else if(t==="bool"&&!Pr(e)){let f=u;for(let l=0;l<i;l++)s[l]=f[l]}else if(!Pr(t)&&!Pr(e)){let f=u;for(let l=0;l<i;l++)s[l]=f[l]}else{let f=u;for(let l=0;l<i;l++)s[l]=f[l]}let v=de.default.ndarray(ue(e),s,o,Ca(o),0,"row-major");return new r(v,e)}add(e){let a=typeof e=="number"?e:e._storage,t=tX(this._storage,a);return r._fromStorage(t)}subtract(e){let a=typeof e=="number"?e:e._storage,t=iX(this._storage,a);return r._fromStorage(t)}multiply(e){let a=typeof e=="number"?e:e._storage,t=oX(this._storage,a);return r._fromStorage(t)}divide(e){let a=typeof e=="number"?e:e._storage,t=nX(this._storage,a);return r._fromStorage(t)}greater(e){let a=typeof e=="number"?e:e._storage,t=sX(this._storage,a);return r._fromStorage(t)}greater_equal(e){let a=typeof e=="number"?e:e._storage,t=uX(this._storage,a);return r._fromStorage(t)}less(e){let a=typeof e=="number"?e:e._storage,t=vX(this._storage,a);return r._fromStorage(t)}less_equal(e){let a=typeof e=="number"?e:e._storage,t=fX(this._storage,a);return r._fromStorage(t)}equal(e){let a=typeof e=="number"?e:e._storage,t=lX(this._storage,a);return r._fromStorage(t)}not_equal(e){let a=typeof e=="number"?e:e._storage,t=cX(this._storage,a);return r._fromStorage(t)}isclose(e,a=1e-5,t=1e-8){let o=typeof e=="number"?e:e._storage,i=xc(this._storage,o,a,t);return r._fromStorage(i)}allclose(e,a=1e-5,t=1e-8){let o=typeof e=="number"?e:e._storage;return dX(this._storage,o,a,t)}sum(e,a=!1){let t=Go(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}mean(e,a=!1){let t=qc(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}max(e,a=!1){let t=wc(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}min(e,a=!1){let t=Ec(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}prod(e,a=!1){let t=Sc(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}argmin(e){let a=Ac(this._storage,e);return typeof a=="number"?a:r._fromStorage(a)}argmax(e){let a=_c(this._storage,e);return typeof a=="number"?a:r._fromStorage(a)}var(e,a=0,t=!1){let o=Tc(this._storage,e,a,t);return typeof o=="number"?o:r._fromStorage(o)}std(e,a=0,t=!1){let o=pX(this._storage,e,a,t);return typeof o=="number"?o:r._fromStorage(o)}all(e,a=!1){let t=jc(this._storage,e,a);return typeof t=="boolean"?t:r._fromStorage(t)}any(e,a=!1){let t=Ic(this._storage,e,a);return typeof t=="boolean"?t:r._fromStorage(t)}reshape(...e){let a=e.length===1&&Array.isArray(e[0])?e[0]:e,t=yX(this._storage,a),i=t.data===this.data?this._base??this:void 0;return r._fromStorage(t,i)}flatten(){let e=Oc(this._storage);return r._fromStorage(e)}ravel(){let e=mX(this._storage),t=e.data===this.data?this._base??this:void 0;return r._fromStorage(e,t)}transpose(e){let a=hX(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}squeeze(e){let a=gX(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}expand_dims(e){let a=bX(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}matmul(e){let a=uK(this._storage,e._storage);return r._fromStorage(a)}slice(...e){if(e.length===0)return this;if(e.length>this.ndim)throw new Error(`Too many indices for array: array is ${this.ndim}-dimensional, but ${e.length} were indexed`);let a=e.map((n,s)=>{let u=JJ(n);return XJ(u,this.shape[s])});for(;a.length<this.ndim;)a.push({start:0,stop:this.shape[a.length],step:1,isIndex:!1});let t=a.map((n,s)=>{if(n.isIndex)return n.start;{let u=n.start,v=n.stop;return n.step>0?(u===0&&(u=null),v===this.shape[s]&&(v=null)):(u===this.shape[s]-1&&(u=null),v===-1&&(v=null)),new fK.default(u,v,n.step)}}),o=(0,vK.default)(this._data,...t),i=this._base??this;return new r(o,this._dtype,i)}row(e){if(this.ndim<2)throw new Error("row() requires at least 2 dimensions");return this.slice(String(e),":")}col(e){if(this.ndim<2)throw new Error("col() requires at least 2 dimensions");return this.slice(":",String(e))}rows(e,a){if(this.ndim<2)throw new Error("rows() requires at least 2 dimensions");return this.slice(`${e}:${a}`,":")}cols(e,a){if(this.ndim<2)throw new Error("cols() requires at least 2 dimensions");return this.slice(":",`${e}:${a}`)}toString(){return`NDArray(shape=${JSON.stringify(this.shape)}, dtype=${this.dtype})`}toArray(){return this.ndim===0?this._data.get():de.default.ndarray2array(this._data)}};function Cs(r,e=Qe){let a=Oe(e);if(!a)throw new Error(`Cannot create zeros array with dtype ${e}`);let t=r.reduce((n,s)=>n*s,1),o=new a(t),i=de.default.ndarray(ue(e),o,r,Ca(r),0,"row-major");return new Re(i,e)}function Ca(r){let e=new Array(r.length),a=1;for(let t=r.length-1;t>=0;t--)e[t]=a,a*=r[t];return e}function Fc(r,e=Qe){let a=Oe(e);if(!a)throw new Error(`Cannot create ones array with dtype ${e}`);let t=r.reduce((n,s)=>n*s,1),o=new a(t);Pr(e)?o.fill(BigInt(1)):o.fill(1);let i=de.default.ndarray(ue(e),o,r,Ca(r),0,"row-major");return new Re(i,e)}function rt(r,e){if(e===void 0){let f=de.default.array(r);return new Re(f)}let a=de.default.array(r);if(de.default.dtype(a)===e)return new Re(a);let o=Array.from(de.default.shape(a)),i=o.reduce((f,l)=>f*l,1),n=Oe(e);if(!n)throw new Error(`Cannot create array with dtype ${e}`);let s=new n(i),u=de.default.dataBuffer(a);if(Pr(e))for(let f=0;f<i;f++)s[f]=BigInt(Math.round(Number(u[f])));else if(e==="bool")for(let f=0;f<i;f++)s[f]=u[f]?1:0;else for(let f=0;f<i;f++)s[f]=Number(u[f]);let v=de.default.ndarray(ue(e),s,o,Ca(o),0,"row-major");return new Re(v,e)}function lK(r,e,a=1,t=Qe){let o=r,i=e;if(e===void 0&&(o=0,i=r),i===void 0)throw new Error("stop is required");let n=Math.max(0,Math.ceil((i-o)/a)),s=Oe(t);if(!s)throw new Error(`Cannot create arange array with dtype ${t}`);let u=new s(n);if(Pr(t))for(let f=0;f<n;f++)u[f]=BigInt(Math.round(o+f*a));else if(t==="bool")for(let f=0;f<n;f++)u[f]=o+f*a!==0?1:0;else for(let f=0;f<n;f++)u[f]=o+f*a;let v=de.default.ndarray(ue(t),u,[n],[1],0,"row-major");return new Re(v,t)}function cK(r,e,a=50,t=Qe){if(a<0)throw new Error("num must be non-negative");if(a===0)return rt([],t);if(a===1)return rt([r],t);let o=Oe(t);if(!o)throw new Error(`Cannot create linspace array with dtype ${t}`);let i=new o(a),n=(e-r)/(a-1);if(Pr(t))for(let u=0;u<a;u++)i[u]=BigInt(Math.round(r+u*n));else if(t==="bool")for(let u=0;u<a;u++)i[u]=r+u*n!==0?1:0;else for(let u=0;u<a;u++)i[u]=r+u*n;let s=de.default.ndarray(ue(t),i,[a],[1],0,"row-major");return new Re(s,t)}function dK(r,e,a=50,t=10,o=Qe){if(a<0)throw new Error("num must be non-negative");if(a===0)return rt([],o);if(a===1)return rt([Math.pow(t,r)],o);let i=Oe(o);if(!i)throw new Error(`Cannot create logspace array with dtype ${o}`);let n=new i(a),s=(e-r)/(a-1);if(Pr(o))for(let v=0;v<a;v++){let f=r+v*s;n[v]=BigInt(Math.round(Math.pow(t,f)))}else if(o==="bool")for(let v=0;v<a;v++){let f=r+v*s;n[v]=Math.pow(t,f)!==0?1:0}else for(let v=0;v<a;v++){let f=r+v*s;n[v]=Math.pow(t,f)}let u=de.default.ndarray(ue(o),n,[a],[1],0,"row-major");return new Re(u,o)}function pK(r,e,a=50,t=Qe){if(a<0)throw new Error("num must be non-negative");if(r===0||e===0)throw new Error("Geometric sequence cannot include zero");if(a===0)return rt([],t);if(a===1)return rt([r],t);let o=Math.sign(r),i=Math.sign(e);if(o!==i)throw new Error("Geometric sequence cannot contain both positive and negative values");let n=Oe(t);if(!n)throw new Error(`Cannot create geomspace array with dtype ${t}`);let s=new n(a),u=Math.log(Math.abs(r)),f=(Math.log(Math.abs(e))-u)/(a-1);if(Pr(t))for(let p=0;p<a;p++){let m=o*Math.exp(u+p*f);s[p]=BigInt(Math.round(m))}else if(t==="bool")for(let p=0;p<a;p++){let m=o*Math.exp(u+p*f);s[p]=m!==0?1:0}else for(let p=0;p<a;p++){let m=o*Math.exp(u+p*f);s[p]=m}let l=de.default.ndarray(ue(t),s,[a],[1],0,"row-major");return new Re(l,t)}function Rc(r,e,a=0,t=Qe){let o=e??r,i=Cs([r,o],t),n=i.data;if(Pr(t)){let s=n;for(let u=0;u<r;u++){let v=u+a;v>=0&&v<o&&(s[u*o+v]=BigInt(1))}}else{let s=n;for(let u=0;u<r;u++){let v=u+a;v>=0&&v<o&&(s[u*o+v]=1)}}return i}function Vc(r,e=Qe){let a=Oe(e);if(!a)throw new Error(`Cannot create empty array with dtype ${e}`);let t=r.reduce((n,s)=>n*s,1),o=new a(t),i=de.default.ndarray(ue(e),o,r,Ca(r),0,"row-major");return new Re(i,e)}function zc(r,e,a){let t=a;t||(typeof e=="bigint"?t="int64":typeof e=="boolean"?t="bool":Number.isInteger(e)?t="int32":t=Qe);let o=Oe(t);if(!o)throw new Error(`Cannot create full array with dtype ${t}`);let i=r.reduce((u,v)=>u*v,1),n=new o(i);if(Pr(t)){let u=typeof e=="bigint"?e:BigInt(Math.round(Number(e)));n.fill(u)}else t==="bool"?n.fill(e?1:0):n.fill(Number(e));let s=de.default.ndarray(ue(t),n,r,Ca(r),0,"row-major");return new Re(s,t)}function yK(r,e=Qe){return Rc(r,r,0,e)}function mK(r,e){if(r instanceof Re){if(!e||r.dtype===e)return r;let a=Array.from(r.shape),t=r.size,o=Oe(e);if(!o)throw new Error(`Cannot create array with dtype ${e}`);let i=new o(t),n=r.data;if(Pr(e))for(let u=0;u<t;u++)i[u]=BigInt(Math.round(Number(n[u])));else if(e==="bool")for(let u=0;u<t;u++)i[u]=n[u]?1:0;else for(let u=0;u<t;u++)i[u]=Number(n[u]);let s=de.default.ndarray(ue(e),i,a,Ca(a),0,"row-major");return new Re(s,e)}return rt(r,e)}function hK(r){let e=Array.from(r.shape),a=r.dtype,t=Oe(a);if(!t)throw new Error(`Cannot copy array with dtype ${a}`);let o=r.size,i=r.data,n=new t(o);if(r.flags.C_CONTIGUOUS)Pr(a),n.set(i);else{let u=Array.from(e),v=Ca(u);for(let f=0;f<o;f++){let l=[],p=f;for(let d=0;d<u.length;d++){let y=v[d],h=Math.floor(p/y);l.push(h),p-=h*y}let m=r.get(l);Pr(a),n[f]=m}}let s=de.default.ndarray(ue(a),n,e,Ca(e),0,"row-major");return new Re(s,a)}function gK(r,e){return Cs(Array.from(r.shape),e??r.dtype)}function bK(r,e){return Fc(Array.from(r.shape),e??r.dtype)}function xK(r,e){return Vc(Array.from(r.shape),e??r.dtype)}function qK(r,e,a){return zc(Array.from(r.shape),e,a??r.dtype)}var zJr="0.1.0";return jK(CJr);})();
3
+ \f\v\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,zP="\u180E";function fzr(){return RP.call(vzr)===""&&RP.call(zP)===zP}VP.exports=fzr});var PP=c((q0e,CP)=>{"use strict";var lzr=tt(),czr=/^[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*([\S\s]*?)[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*$/;function dzr(r){return lzr(r,czr,"$1")}CP.exports=dzr});var MP=c((w0e,LP)=>{"use strict";var pzr=fl();function yzr(r){return pzr.call(r)}LP.exports=yzr});var Nt=c((S0e,GP)=>{"use strict";var mzr=BP(),hzr=UP(),gzr=PP(),bzr=MP(),ll;mzr&&hzr()?ll=bzr:ll=gzr;GP.exports=ll});var WP=c((E0e,$P)=>{"use strict";var xzr=Nt(),qzr=Ce(),cl="Slice(",YP=3,wzr=/\s*,\s*/,Szr=/^-?[0-9]+$/;function Ezr(r){var e,a,t,o,i;if(r.substring(0,cl.length)!==cl||(t=r.length-1,r[t]!==")")||(r=xzr(r.substring(cl.length,t)),r=r.split(wzr),r.length!==YP))return null;for(e=[],i=0;i<YP;i++){if(o=r[i],o==="null")a=null;else if(Szr.test(o))a=parseInt(o,10);else return null;e.push(a)}return new qzr(e[0],e[1],e[2])}$P.exports=Ezr});var us=c((A0e,JP)=>{"use strict";var Azr=WP();JP.exports=Azr});var KP=c((_0e,XP)=>{"use strict";var _zr=Nt(),Tzr=us(),jzr=Qa(),Izr=he(),dl="MultiSlice(",Ozr=/\s*,\s*/,Nzr=/^-?[0-9]+$/;function Dzr(r){var e,a,t,o,i;if(r.substring(0,dl.length)!==dl||(t=r.length-1,r[t]!==")"))return null;if(r=_zr(r.substring(dl.length,t)),r=r.split(Ozr),t=r.length,t===1&&r[0]==="")return new jzr;for(e=[],i=0;i<t;i++){if(o=r[i],o[0]==="S"){if(o=r.slice(i,i+3).join(","),a=Tzr(o),a===null)return null;i+=2}else if(o==="null")a=null;else if(Nzr.test(o))a=parseInt(o,10);else return null;e.push(a)}return Izr(e)}XP.exports=Dzr});var zo=c((T0e,HP)=>{"use strict";var kzr=KP();HP.exports=kzr});var QP=c((j0e,ZP)=>{"use strict";var Bzr=/(?:\s*-\s*)(?=\d+)(\d+)$/;ZP.exports=Bzr});var eL=c((I0e,rL)=>{"use strict";var Fzr=/(?:\s*\/\s*)(?=\d*\.?\d+)(\d*\.?\d+)$/;rL.exports=Fzr});var iL=c((O0e,tL)=>{"use strict";var aL=ea(),Rzr=QP(),zzr=eL();function Vzr(r,e,a,t){var o;if(r==="end")return e;if(o=r.match(Rzr),o){if(r=e-parseInt(o[1],10),r<0){if(t)return-2;r=0}return r}return o=r.match(zzr),o?(r=parseFloat(o[1]),r<1?t?-2:-1:a&&e>0&&r!==1?aL((e-1)/r):aL(e/r)):-1}tL.exports=Vzr});var nL=c((N0e,oL)=>{"use strict";var Uzr=/\s*:\s*/;oL.exports=Uzr});var uL=c((D0e,sL)=>{"use strict";var Czr=/^[-+]?[0-9]+$/;sL.exports=Czr});var fL=c((k0e,vL)=>{"use strict";var Pzr=/^end/;vL.exports=Pzr});var cL=c((B0e,lL)=>{"use strict";function Lzr(){return{code:"ERR_SLICE_INVALID_SUBSEQUENCE"}}lL.exports=Lzr});var pL=c((F0e,dL)=>{"use strict";function Mzr(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}dL.exports=Mzr});var mL=c((R0e,yL)=>{"use strict";function Gzr(){return{code:"ERR_SLICE_INVALID_INCREMENT"}}yL.exports=Gzr});var qL=c((z0e,xL)=>{"use strict";var hL=Ce(),Yzr=Nt(),gL=iL(),$zr=nL(),pl=uL(),bL=fL(),Ii=cL(),ai=pL(),Wzr=mL();function Jzr(r,e,a){var t,o,i;if(t=Yzr(r).split($zr),o=t.length,o<2||o>3)return Ii();if(o===3)if(i=t[2],i.length===0)t[2]=1;else{if(pl.test(i)===!1)return Ii();if(i=parseInt(i,10),i===0)return Wzr();t[2]=i}else t.push(1);if(i=t[0],i.length===0)t[2]<0&&e>0?t[0]=e-1:t[0]=0;else if(bL.test(i)){if(i=gL(i,e,t[2]<0,a),i<0)return i===-2?ai():Ii();t[2]<0&&i>=e&&(i-=1),t[0]=i}else if(pl.test(i)){if(i=parseInt(i,10),i<0){if(i=e+i,i<0){if(a)return ai();i=0}}else if(i>=e){if(a)return ai();t[2]<0?i=e-1:i=e}t[0]=i}else return Ii();if(i=t[1],i.length===0)t[2]<0?t[1]=null:t[1]=e;else if(bL.test(i)){if(i=gL(i,e,t[2]<0,a),i<0)return i===-2?ai():Ii();t[1]=i}else if(pl.test(i)){if(i=parseInt(i,10),i<0){if(i=e+i,i<0)if(t[2]>0){if(a)return ai();i=0}else{if(a&&i<-1)return ai();i=null}}else if(i>e){if(a)return ai();i=e}t[1]=i}else return Ii();return e===0?new hL(0,0,t[2]):new hL(t[0],t[1],t[2])}xL.exports=Jzr});var SL=c((V0e,wL)=>{"use strict";var Xzr=qL();wL.exports=Xzr});var AL=c((U0e,EL)=>{"use strict";function Kzr(){return{code:"ERR_SLICE_INVALID_ELLIPSIS"}}EL.exports=Kzr});var TL=c((C0e,_L)=>{"use strict";function Hzr(){return{code:"ERR_SLICE_INSUFFICIENT_DIMENSIONS"}}_L.exports=Hzr});var IL=c((P0e,jL)=>{"use strict";function Zzr(){return{code:"ERR_SLICE_TOO_MANY_DIMENSIONS"}}jL.exports=Zzr});var NL=c((L0e,OL)=>{"use strict";function Qzr(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}OL.exports=Qzr});var kL=c((M0e,DL)=>{"use strict";var rVr=/\s*,\s*/;DL.exports=rVr});var FL=c((G0e,BL)=>{"use strict";var eVr=/^[-+]?[0-9]+$/;BL.exports=eVr});var VL=c((Y0e,zL)=>{"use strict";var aVr=Nt(),tVr=Ce(),iVr=he(),oVr=SL(),nVr=AL(),sVr=TL(),uVr=IL(),RL=NL(),vVr=kL(),fVr=FL();function lVr(r,e,a){var t,o,i,n,s,u,v,f,l,d;for(s=e.length,t=aVr(r).split(vVr),u=t.length,i=!1,o=[],l=0,f=0;f<u;f++){if(v=t[f],v==="..."){if(i)return nVr();for(i=!0,d=0;d<s-u+1;d++)o.push(new tVr(0,e[l],1)),l+=1;continue}if(n=e[l],fVr.test(v)){if(v=parseInt(v,10),a){if(v<0){if(n+v<0)return RL()}else if(v>=n)return RL()}l+=1}else{if(v=oVr(v,n,a),v.code)return v;l+=1}o.push(v)}return o.length!==s?o.length<s?sVr():uVr():iVr(o)}zL.exports=lVr});var vs=c(($0e,UL)=>{"use strict";var cVr=VL();UL.exports=cVr});var yl=c((W0e,CL)=>{"use strict";var dVr=/^-?[0-9]+$/;CL.exports=dVr});var ml=c((J0e,PL)=>{"use strict";var pVr=/:/;PL.exports=pVr});var ML=c((X0e,LL)=>{"use strict";var yVr=Nt(),mVr=tt(),hl=Qa(),hVr=zo(),gVr=vs(),bVr=us(),ti=pr(),xVr=yl(),qVr=ml();function wVr(r,e){var a,t,o,i;if(t=yVr(e),o=t[0],o==="S"){if(i=bVr(e),i===null)throw new Error(ti("invalid operation. Unsupported slice operation. Value: `%s`.",e));i=new hl(i)}else if(o==="M"){if(i=hVr(t),i===null)throw new Error(ti("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(xVr.test(t))i=parseInt(t,10),i=new hl(i);else if(qVr.test(t)){if(a=r.shape,i=gVr(t,a,!0),i.code)throw i.code==="ERR_SLICE_INVALID_INCREMENT"?new Error(ti("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e)):i.code==="ERR_SLICE_INVALID_ELLIPSIS"?new Error(ti("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e)):i.code==="ERR_SLICE_INVALID_SUBSEQUENCE"?new Error(ti("invalid operation. Unsupported slice operation. Value: `%s`.",e)):new RangeError(ti("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",a.join(","),mVr(t,/\.\.\.,/,"").split(",").length))}else if(t.length===0||t==="...")i=new hl;else throw new Error(ti("invalid operation. Unsupported slice operation. Value: `%s`.",e));return i}LL.exports=wVr});var WL=c((K0e,$L)=>{"use strict";var SVr=Nt(),EVr=tt(),GL=Qa(),AVr=zo(),YL=vs(),_Vr=us(),Dt=pr(),TVr=yl();function jVr(r,e,a){var t,o,i,n;if(o=SVr(e),i=o[0],i==="S"){if(n=_Vr(e),n===null)throw new Error(Dt("invalid operation. Unsupported slice operation. Value: `%s`.",e));n=new GL(n)}else if(i==="M"){if(n=AVr(o),n===null)throw new Error(Dt("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(TVr.test(o))n=parseInt(o,10),n=new GL(n);else if(o.length>0){if(t=r.shape,n=YL(o,t,!0),n.code){if(n.code==="ERR_SLICE_INVALID_INCREMENT")throw new Error(Dt("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_ELLIPSIS")throw new Error(Dt("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_SUBSEQUENCE")throw new Error(Dt("invalid operation. Unsupported slice operation. Value: `%s`.",e));if(n.code==="ERR_SLICE_TOO_MANY_DIMENSIONS")throw new RangeError(Dt("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",r.shape.join(","),EVr(o,/\.\.\.,/,"").split(",").length));if(n.code==="ERR_SLICE_OUT_OF_BOUNDS"){if(a)throw new RangeError(Dt("invalid operation. Slice exceeds array bounds. Array shape: (%s).",t.join(",")));n=YL(o,t,!1)}}}else throw new RangeError(Dt("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",r.shape.join(","),0));return n}$L.exports=jVr});var XL=c((H0e,JL)=>{"use strict";var fs=tt(),IVr=zo();function OVr(r){return r=fs(r,/^,/,"null,"),r=fs(r,/,$/,",null"),r=fs(r,/,(?=,)/g,",null"),r=fs(r,/undefined/g,"null"),IVr("MultiSlice("+r+")")}JL.exports=OVr});var HL=c((Z0e,KL)=>{"use strict";var NVr=XL();KL.exports=NVr});var rM=c((Q0e,QL)=>{"use strict";var DVr=Nt(),kVr=zo(),ZL=vs(),BVr=HL(),Oi=pr(),FVr=ml();function RVr(r,e,a){var t,o,i,n;if(o=DVr(e),i=o[0],i==="M"){if(n=kVr(o),n===null)throw new Error(Oi("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(FVr.test(o)||o==="..."){if(t=r.shape,n=ZL(o,t,!0),n.code){if(n.code==="ERR_SLICE_INVALID_INCREMENT")throw new Error(Oi("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_ELLIPSIS")throw new Error(Oi("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_SUBSEQUENCE")throw new Error(Oi("invalid operation. Unsupported slice operation. Value: `%s`.",e));if(n.code==="ERR_SLICE_OUT_OF_BOUNDS"){if(a)throw new RangeError(Oi("invalid operation. Slice exceeds array bounds. Array shape: (%s).",t.join(",")));n=ZL(o,t,!1)}}}else if(n=BVr(o),n===null)throw new Error(Oi("invalid operation. Unsupported slice operation. Value: `%s`.",e));return n}QL.exports=RVr});var aM=c((rpe,eM)=>{"use strict";var zVr=typeof Object.getOwnPropertyNames<"u";eM.exports=zVr});var oM=c((epe,iM)=>{"use strict";var tM=Ut(),VVr=tM.getOwnPropertyNames;function UVr(r){return VVr(tM(r))}iM.exports=UVr});var sM=c((ape,nM)=>{"use strict";var CVr=Ut(),PVr=Aa();function LVr(r){return PVr(CVr(r))}nM.exports=LVr});var vM=c((tpe,uM)=>{"use strict";var MVr=aM(),GVr=oM(),YVr=sM(),gl;MVr?gl=GVr:gl=YVr;uM.exports=gl});var cM=c((ipe,lM)=>{"use strict";var $Vr=df(),WVr=vM(),JVr=Ct(),XVr=Ut();function fM(r,e){var a;for(a=0;a<r.length;a++)if(r[a]===e)return!0;return!1}function KVr(r){var e,a,t,o;if(r==null)return[];a=XVr(r),e=[];do{for(t=WVr(a),o=0;o<t.length;o++)fM(e,t[o])===!1&&e.push(t[o]);for(t=$Vr(a),o=0;o<t.length;o++)fM(e,t[o])===!1&&e.push(t[o]);a=JVr(a)}while(a);return e}lM.exports=KVr});var pM=c((ope,dM)=>{"use strict";var HVr=cM();dM.exports=HVr});var bl=c((npe,yM)=>{"use strict";var ZVr=pM(),QVr=Ue().factory,rUr=ma(),eUr=ka(),aUr=QVr(ZVr(new rUr("generic",[0],[],[0],0,eUr.get("order"))));yM.exports=aUr});var hM=c((spe,mM)=>{"use strict";var tUr=Pe();function iUr(r,e,a){var t=r[e];if(tUr(t))return o;return t;function o(){var i,n;for(i=[],n=0;n<arguments.length;n++)i.push(arguments[n]);return t.apply(this===a?r:this,i)}}mM.exports=iUr});var xl=c((upe,gM)=>{"use strict";var oUr=tt();function nUr(r){return oUr(r,/^invalid argument/,"invalid operation")}gM.exports=nUr});var xM=c((vpe,bM)=>{"use strict";var sUr=Ct(),uUr=me();function vUr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof Error)return!0;for(;r;){if(uUr(r)==="[object Error]")return!0;r=sUr(r)}return!1}bM.exports=vUr});var ls=c((fpe,qM)=>{"use strict";var fUr=xM();qM.exports=fUr});var SM=c((lpe,wM)=>{"use strict";var lUr=Ct(),cUr=ui(),dUr=ls();function pUr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof RangeError)return!0;if(dUr(r))for(;r;){if(cUr(r)==="rangeerror")return!0;r=lUr(r)}return!1}wM.exports=pUr});var AM=c((cpe,EM)=>{"use strict";var yUr=SM();EM.exports=yUr});var TM=c((dpe,_M)=>{"use strict";var mUr=Ct(),hUr=ui(),gUr=ls();function bUr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof TypeError)return!0;if(gUr(r))for(;r;){if(hUr(r)==="typeerror")return!0;r=mUr(r)}return!1}_M.exports=bUr});var IM=c((ppe,jM)=>{"use strict";var xUr=TM();jM.exports=xUr});var NM=c((ype,OM)=>{"use strict";var qUr=Ct(),wUr=ui(),SUr=ls();function EUr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof SyntaxError)return!0;if(SUr(r))for(;r;){if(wUr(r)==="syntaxerror")return!0;r=qUr(r)}return!1}OM.exports=EUr});var kM=c((mpe,DM)=>{"use strict";var AUr=NM();DM.exports=AUr});var ql=c((hpe,BM)=>{"use strict";var _Ur=AM(),TUr=IM(),jUr=kM();function IUr(r){return _Ur(r)?RangeError:TUr(r)?TypeError:jUr(r)?SyntaxError:Error}BM.exports=IUr});var RM=c((gpe,FM)=>{"use strict";var OUr=ye(),NUr=xl(),DUr=ql();function kUr(r,e,a,t){var o,i,n;o=!1,n=t(r,e,o);try{return OUr(a,n,o,!1)}catch(s){throw i=DUr(s),new i(NUr(s.message))}}FM.exports=kUr});var VM=c((bpe,zM)=>{"use strict";var BUr=bl(),FUr=hM(),RUr=RM();function zUr(r){return e;function e(a,t,o){return BUr(t)?FUr(a,t,o):RUr(a,t,o,r)}}zM.exports=zUr});var CM=c((xpe,UM)=>{"use strict";function VUr(r,e,a){return r[e]=a,!0}UM.exports=VUr});var LM=c((qpe,PM)=>{"use strict";var UUr=Qo();function CUr(r){return r===0&&1/r===UUr}PM.exports=CUr});var GM=c((wpe,MM)=>{"use strict";var PUr=LM();MM.exports=PUr});var $M=c((Spe,YM)=>{"use strict";var LUr=1401298464324817e-60;YM.exports=LUr});var JM=c((Epe,WM)=>{"use strict";var MUr=16777215;WM.exports=MUr});var KM=c((Ape,XM)=>{"use strict";var GUr=-16777215;XM.exports=GUr});var a9=c((_pe,e9)=>{"use strict";var YUr=Ge().isPrimitive,$Ur=pe().isPrimitive,ZM=Sa(),WUr=GM(),JUr=fa(),QM=Pi(),r9=Qo(),cs=$M(),XUr=JM(),KUr=KM(),HUr=dv(),ZUr=vv(),QUr=nv(),rCr=Su(),eCr=_u(),aCr=an();function HM(r){return r!==r||r===QM||r===r9?"float32":ZM(r)?r>=KUr&&r<=XUr?"float32":"float64":r>-cs&&r<cs?"float64":"float32"}function tCr(r){return YUr(r)?r!==r||r===QM||r===r9?"float32":ZM(r)?r===0&&WUr(r)?"float32":r<0?r>=HUr?"int8":r>=ZUr?"int16":r>=QUr?"int32":"float64":r<=rCr?"uint8":r<=eCr?"uint16":r<=aCr?"uint32":"float64":r>-cs&&r<cs?"float64":"float32":$Ur(r)?"bool":JUr(r)?HM(r.re)==="float64"||HM(r.im)==="float64"?"complex128":"complex64":"generic"}e9.exports=tCr});var wl=c((Tpe,t9)=>{"use strict";var iCr=a9();t9.exports=iCr});var o9=c((jpe,i9)=>{"use strict";var oCr={Complex64:"complex64",Complex128:"complex128"};i9.exports=oCr});var n9=c((Ipe,nCr)=>{nCr.exports=["complex64","complex128"]});var u9=c((Ope,s9)=>{"use strict";var sCr=n9();function uCr(){return sCr.slice()}s9.exports=uCr});var f9=c((Npe,v9)=>{"use strict";var vCr=u9();v9.exports=vCr});var Sl=c((Dpe,l9)=>{"use strict";var fCr=f9(),lCr=fCr();l9.exports=lCr});var y9=c((kpe,p9)=>{"use strict";var cCr=Cn(),c9=Sl(),d9=[],ds;for(ds=0;ds<c9.length;ds++)d9.push(cCr(c9[ds]));p9.exports=d9});var g9=c((Bpe,h9)=>{"use strict";var dCr=gt(),pCr=o9(),yCr=y9(),m9=Sl(),mCr=m9.length;function hCr(r){var e;for(e=0;e<mCr;e++)if(r instanceof yCr[e])return m9[e];return pCr[dCr(r)]||null}h9.exports=hCr});var El=c((Fpe,b9)=>{"use strict";var gCr=g9();b9.exports=gCr});var x9=c((Rpe,bCr)=>{bCr.exports={all:["bool","complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["bool","complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],boolean:["bool"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]}});var E9=c((zpe,S9)=>{"use strict";var xCr=tt(),q9=x9(),w9=/_and_generic$/;function qCr(){var r,e,a;return arguments.length===0?q9.all.slice():(a=!1,r=arguments[0],w9.test(r)&&(r=xCr(r,w9,""),r!=="all"&&(a=!0)),e=q9[r],e=e?e.slice():[],a&&e.length>0&&e.push("generic"),e)}S9.exports=qCr});var Al=c((Vpe,A9)=>{"use strict";var wCr=E9();A9.exports=wCr});var T9=c((Upe,_9)=>{"use strict";var SCr=Ue().factory,ECr=Al(),ACr=SCr(ECr("complex_floating_point"));_9.exports=ACr});var ps=c((Cpe,j9)=>{"use strict";var _Cr=T9();j9.exports=_Cr});var N9=c((Ppe,O9)=>{"use strict";var _l=Xr(),TCr=ne(),jCr=Ge().isPrimitive,ICr=ps(),OCr=fa(),NCr=pe().isPrimitive,DCr=it(),kCr=bi(),BCr=gi(),FCr=Fa(),RCr=ma(),ys=ka(),zCr=El(),I9=pr(),VCr=ys.get("order"),UCr=ys.get("dtypes.real_floating_point"),CCr=ys.get("dtypes.complex_floating_point"),PCr=ys.get("dtypes.boolean");function LCr(r){var e,a,t,o,i,n,s;if(a={dtype:"",order:VCr,readonly:!1},arguments.length>1){if(e=arguments[1],!TCr(e))throw new TypeError(I9("invalid argument. Options argument must be an object. Value: `%s`.",e));_l(e,"dtype")&&(a.dtype=e.dtype),_l(e,"order")&&(a.order=e.order),_l(e,"readonly")&&(a.readonly=e.readonly)}if(o=jCr(r),a.dtype===""?o?n=UCr:NCr(r)?n=PCr:OCr(r)?(n=zCr(r),n===null&&(n=CCr)):n="generic":n=a.dtype,t=FCr(n,1),t===null)throw new TypeError(I9("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",n));return ICr(n)&&o?s=[r,0]:s=r,DCr(t)?i=kCr(n):i=BCr(n),i(t,0,s),new RCr(n,t,[],[0],0,a.order,a)}O9.exports=LCr});var Tl=c((Lpe,D9)=>{"use strict";var MCr=N9();D9.exports=MCr});var F9=c((Mpe,B9)=>{"use strict";var GCr=is(),YCr=se(),$Cr=Ge().isPrimitive,WCr=fe().isPrimitive,JCr=fa(),XCr=wo(),KCr=Mn(),HCr=Wn(),ZCr=$n(),k9=_n(),QCr=cv(),rPr=uv(),ePr=ov(),ms=wl(),aPr=El(),Ni=Tl(),ii=pr(),tPr=xl(),iPr=ql();function Di(r){return{dtype:r}}function oPr(r,e,a,t,o){var i,n,s,u,v;if(!YCr(a))if(s=r.dtype,s==="generic")a=Ni(a,Di(s));else if($Cr(a))if(KCr(s))a=Ni(a,Di(s));else if(HCr(s))if(n=ms(a),k9(n,s))a=Ni(a,Di(s));else throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",n,s));else if(ZCr(s)){if(!WCr(a))throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",ms(a),s));if(a<0?n=ms(a):a<=QCr?n="int8":a<=rPr?n="int16":a<=ePr?n="int32":n="float64",k9(n,s))a=Ni(a,Di(s));else throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",n,s))}else if(s==="binary")if(n=ms(a),n==="uint8")a=Ni(a,Di(s));else throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",n,s));else throw new TypeError(ii("invalid operation. Unsupported target array data type. Data type: `%s`.",s));else if(JCr(a)){if(!XCr(s))throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",aPr(a),s));a=Ni(a,Di(s))}else throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",typeof a,s));i=!1,v=o(r,e,i);try{return GCr(a,t,v,i),!0}catch(f){throw u=iPr(f),new u(tPr(f.message))}}B9.exports=oPr});var z9=c((Gpe,R9)=>{"use strict";var nPr=bl(),sPr=CM(),uPr=F9();function vPr(r){return e;function e(a,t,o,i){return nPr(t)?sPr(a,t,o):uPr(a,t,o,i,r)}}R9.exports=vPr});var G9=c((Ype,M9)=>{"use strict";var fPr=Ir(),U9=ma(),lPr=Nv(),V9=DP(),C9=ML(),P9=WL(),L9=rM(),jl=VM(),Il=z9(),cPr=jl(C9),dPr=Il(C9),pPr=jl(P9),yPr=Il(P9),mPr=jl(L9),hPr=Il(L9);function ki(r,e,a,t,o,i,n){var s,u,v;return u=arguments.length,this instanceof ki?(U9.call(this,r,e,a,t,o,i,u<7?{}:n),V9?(v=a.length,s={},v===0?(s.get=cPr,s.set=dPr):v===1?(s.get=pPr,s.set=yPr):(s.get=mPr,s.set=hPr),new V9(this,s)):(console.warn("WARNING: Proxy objects are not supported in the current environment. Some `FancyArray` functionality may not be available."),this)):u<7?new ki(r,e,a,t,o,i):new ki(r,e,a,t,o,i,n)}lPr(ki,U9);fPr(ki,"name","ndarray");M9.exports=ki});var $9=c(($pe,Y9)=>{"use strict";var gPr=G9();Y9.exports=gPr});var Ol=c((Wpe,W9)=>{"use strict";function bPr(r){return typeof r=="symbol"}W9.exports=bPr});var X9=c((Jpe,J9)=>{"use strict";function xPr(r){return Symbol.prototype.toString.call(r)}J9.exports=xPr});var H9=c((Xpe,K9)=>{"use strict";var qPr=X9(),wPr=/^Symbol\(.*\)$/;function SPr(r){try{return typeof r.valueOf()=="symbol"&&wPr.test(qPr(r))}catch{return!1}}K9.exports=SPr});var Nl=c((Kpe,Z9)=>{"use strict";var EPr=me(),APr=H9();function _Pr(r){return typeof r=="object"&&EPr(r)==="[object Symbol]"&&APr(r)}Z9.exports=_Pr});var rG=c((Hpe,Q9)=>{"use strict";var TPr=Ol(),jPr=Nl();function IPr(r){return TPr(r)||jPr(r)}Q9.exports=IPr});var tG=c((Zpe,aG)=>{"use strict";var eG=Ir(),Dl=rG(),OPr=Ol(),NPr=Nl();eG(Dl,"isPrimitive",OPr);eG(Dl,"isObject",NPr);aG.exports=Dl});var oG=c((Qpe,iG)=>{"use strict";function DPr(r){return e;function e(){return r}}iG.exports=DPr});var sG=c((rye,nG)=>{"use strict";var kPr=oG();nG.exports=kPr});var fG=c((eye,vG)=>{"use strict";var uG=Ir(),kl=sG(),Bl=kl(!1),BPr=kl(!1),FPr=kl(!1);uG(Bl,"isPrimitive",BPr);uG(Bl,"isObject",FPr);vG.exports=Bl});var cG=c((aye,lG)=>{"use strict";var RPr=Ys(),zPr=tG(),VPr=fG(),Fl;RPr()?Fl=zPr:Fl=VPr;lG.exports=Fl});var pG=c((tye,dG)=>{"use strict";var UPr=Pa().isPrimitive,CPr=cG().isPrimitive,PPr=ge().isPrimitive;function LPr(r){return UPr(r)||CPr(r)||PPr(r)}dG.exports=LPr});var mG=c((iye,yG)=>{"use strict";var MPr=pG();yG.exports=MPr});var bG=c((oye,gG)=>{"use strict";var GPr=mG(),YPr=So(),hG=pr();function $Pr(r,e){if(typeof r!="object"||r===null)throw new TypeError(hG("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!GPr(e))throw new TypeError(hG("invalid argument. Second argument must be a valid property name. Value: `%s`.",e));return YPr(r,!1)[e]}gG.exports=$Pr});var qG=c((nye,xG)=>{"use strict";var WPr=bG();xG.exports=WPr});var SG=c((sye,wG)=>{"use strict";var JPr=So(),XPr=pr();function KPr(r){if(typeof r!="object"||r===null)throw new TypeError(XPr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return JPr(r,!0)}wG.exports=KPr});var AG=c((uye,EG)=>{"use strict";var HPr=SG();EG.exports=HPr});var Rl=c((vye,ZPr)=>{ZPr.exports={mode:"throw",order:"row-major"}});var Vl=c((fye,TG)=>{"use strict";var QPr=ne(),_G=Xr(),rLr=Ta(),eLr=pi(),zl=pr();function aLr(r,e){return QPr(e)?_G(e,"mode")&&(r.mode=e.mode,!eLr(r.mode))?new TypeError(zl("invalid option. `%s` option must be a supported/recognized mode. Option: `%s`.","mode",r.mode)):_G(e,"order")&&(r.order=e.order,!rLr(r.order))?new TypeError(zl("invalid option. `%s` option must be a supported/recognized order. Option: `%s`.","order",r.order)):null:new TypeError(zl("invalid argument. Options argument must be an object. Value: `%s`.",e))}TG.exports=aLr});var NG=c((lye,OG)=>{"use strict";var tLr=Jt().primitives,iLr=fe().isPrimitive,oLr=ze(),nLr=Ai(),jG=pr(),IG=Rl(),sLr=Vl();function uLr(r,e,a){var t,o;if(t={},t.mode=IG.mode,t.order=IG.order,arguments.length>2&&(o=sLr(t,a),o))throw o;if(!tLr(r))throw new TypeError(jG("invalid argument. Shape argument must be an array-like object containing nonnegative integers. Value: `%s`.",r));if(!iLr(e))throw new TypeError(jG("invalid argument. Linear index must be integer valued. Value: `%s`.",e));return nLr(r,oLr(r,t.order),0,t.order,e,t.mode)}OG.exports=uLr});var BG=c((cye,kG)=>{"use strict";var vLr=Jt().primitives,fLr=fe().isPrimitive,lLr=ze(),cLr=Ai().assign,hs=pr(),DG=Rl(),dLr=Vl();function pLr(r,e,a,t){var o,i,n;if(o={},o.mode=DG.mode,o.order=DG.order,arguments.length===4){if(n=dLr(o,arguments[2]),n)throw n;if(typeof t!="object"||t===null)throw new TypeError(hs("invalid argument. Output argument must be either an array, typed array, or object. Value: `%s`.",t));i=t}else if(i=a,typeof i!="object"||i===null)throw new TypeError(hs("invalid argument. Output argument must be either an array, typed array, or object. Value: `%s`.",i));if(!vLr(r))throw new TypeError(hs("invalid argument. Shape argument must be an array-like object containing nonnegative integers. Value: `%s`.",r));if(!fLr(e))throw new TypeError(hs("invalid argument. Linear index must be integer valued. Value: `%s`.",e));return cLr(r,lLr(r,o.order),0,o.order,e,o.mode,i)}kG.exports=pLr});var zG=c((dye,RG)=>{"use strict";var yLr=Ir(),FG=NG(),mLr=BG();yLr(FG,"assign",mLr);RG.exports=FG});var PG=c((pye,CG)=>{"use strict";var Ul=Ir(),hLr=ne(),gLr=pe().isPrimitive,bLr=se(),xLr=Le(),qLr=Xr(),VG=Fe(),wLr=Se(),SLr=oe(),ELr=Jr(),ALr=ye(),_Lr=He().assign,TLr=he(),gs=pr();function UG(r){var e,a,t,o,i,n,s,u,v,f,l;if(!bLr(r))throw new TypeError(gs("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!hLr(e))throw new TypeError(gs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(qLr(e,"readonly")){if(!gLr(e.readonly))throw new TypeError(gs("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&xLr(r))throw new Error(gs("invalid option. Cannot write to read-only array."))}}if(a=SLr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=ELr(a),f===0&&(n=!0),f/=a[t-2],u=t-1,v=a[u],l=-1,s=wLr(t),s[t-2]=null,i={},Ul(i,"next",d),Ul(i,"return",y),VG&&Ul(i,VG,p),i;function d(){var m,h,g;return l+=1,n||l>=f?{done:!0}:(m=s.slice(),h=TLr(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=_Lr(a,"row-major",s,u-2,s)),{value:[m,ALr(r,h,!0,o.writable)],done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return UG(r,o)}}CG.exports=UG});var MG=c((yye,LG)=>{"use strict";var jLr=PG();LG.exports=jLr});var WG=c((mye,$G)=>{"use strict";var Cl=Ir(),ILr=ne(),OLr=pe().isPrimitive,NLr=se(),DLr=Le(),kLr=Xr(),GG=Fe(),BLr=Se(),FLr=oe(),RLr=Jr(),zLr=ye(),VLr=He().assign,ULr=he(),bs=pr();function YG(r){var e,a,t,o,i,n,s,u,v,f,l;if(!NLr(r))throw new TypeError(bs("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!ILr(e))throw new TypeError(bs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(kLr(e,"readonly")){if(!OLr(e.readonly))throw new TypeError(bs("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&DLr(r))throw new Error(bs("invalid option. Cannot write to read-only array."))}}if(a=FLr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=RLr(a),f===0&&(n=!0),f/=a[t-2],u=t-1,v=a[u],l=-1,s=BLr(t),s[t-2]=null,i={},Cl(i,"next",d),Cl(i,"return",y),GG&&Cl(i,GG,p),i;function d(){var m,h;return l+=1,n||l>=f?{done:!0}:(m=ULr(s),h=(s[u]+1)%v,s[u]=h,h===0&&(s=VLr(a,"row-major",s,u-2,s)),{value:zLr(r,m,!0,o.writable),done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return YG(r,o)}}$G.exports=YG});var XG=c((hye,JG)=>{"use strict";var CLr=WG();JG.exports=CLr});var QG=c((gye,ZG)=>{"use strict";var Pl=Ir(),PLr=ne(),LLr=Ta(),MLr=se(),GLr=Xr(),KG=Fe(),YLr=Se(),$Lr=oe(),WLr=Jr(),JLr=He().assign,Ll=pr();function HG(r){var e,a,t,o,i,n,s,u,v,f;if(!MLr(r))throw new TypeError(Ll("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={order:r.order},arguments.length>1){if(e=arguments[1],!PLr(e))throw new TypeError(Ll("invalid argument. Options argument must be an object. Value: `%s`.",e));if(GLr(e,"order")){if(!LLr(e.order))throw new TypeError(Ll("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));o.order=e.order}}return a=$Lr(r),t=a.length,v=WLr(a),v===0&&(n=!0),o.order==="row-major"?u=t-1:u=0,f=-1,s=YLr(t),i={},Pl(i,"next",l),Pl(i,"return",d),KG&&Pl(i,KG,y),i;function l(){return f+=1,n||f>=v?{done:!0}:(f>0&&(s=JLr(a,o.order,s,u,s)),{value:[s.slice(),r.get.apply(r,s)],done:!1})}function d(p){return n=!0,arguments.length?{value:p,done:!0}:{done:!0}}function y(){return HG(r,o)}}ZG.exports=HG});var eY=c((bye,rY)=>{"use strict";var XLr=QG();rY.exports=XLr});var oY=c((xye,iY)=>{"use strict";var Ml=Ir(),KLr=ne(),HLr=Ta(),ZLr=ke(),QLr=ge().isPrimitive,rMr=Xr(),aY=Fe(),eMr=Se(),aMr=Jr(),tMr=He().assign,xs=pr();function tY(r){var e,a,t,o,i,n,s,u,v,f;if(!ZLr(r))throw new TypeError(xs("invalid argument. First argument must be an array of nonnegative integers. Value: `%s`.",r));if(t={order:"row-major"},arguments.length>1){if(e=arguments[1],!KLr(e))throw new TypeError(xs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(rMr(e,"order")){if(!HLr(e.order))throw new TypeError(xs("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));t.order=e.order}}for(a=r.length,u=[],f=0;f<a;f++){if(!QLr(r[f]))throw new TypeError(xs("invalid argument. First argument must be an array of nonnegative integers. Value: `%s`.",r));u.push(r[f])}return v=aMr(u),v===0&&(i=!0),t.order==="row-major"?s=a-1:s=0,f=-1,n=eMr(a),o={},Ml(o,"next",l),Ml(o,"return",d),aY&&Ml(o,aY,y),o;function l(){return f+=1,i||f>=v?{done:!0}:(f>0&&(n=tMr(r,t.order,n,s,n)),{value:n.slice(),done:!1})}function d(p){return i=!0,arguments.length?{value:p,done:!0}:{done:!0}}function y(){return tY(u,t)}}iY.exports=tY});var sY=c((qye,nY)=>{"use strict";var iMr=oY();nY.exports=iMr});var fY=c((wye,vY)=>{"use strict";var oMr=se(),nMr=ke(),sMr=ge().isPrimitive,uY=os(),uMr=oe(),Gl=pr();function vMr(r,e){var a,t,o,i;if(!oMr(r))throw new TypeError(Gl("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!nMr(e))throw new TypeError(Gl("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.",e));if(t=e.length,a=uMr(r),a.length===t){for(i=0;i<t;i++){if(o=e[i],!sMr(o))throw new TypeError(Gl("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.","["+e.join(",")+"]"));if(a[i]!==o)return uY(r,e)}return r}return uY(r,e)}vY.exports=vMr});var Yl=c((Sye,lY)=>{"use strict";var fMr=fY();lY.exports=fMr});var pY=c((Eye,dY)=>{"use strict";var lMr=se(),cMr=Ve(),dMr=qi(),pMr=Yl(),yMr=oe(),cY=pr();function mMr(r){var e,a,t,o,i,n,s;if(a=arguments.length,a===0)t=[];else if(a>1)for(t=[],s=0;s<arguments.length;s++)t.push(arguments[s]);else if(lMr(r))t=[r];else if(cMr(r))t=r;else throw new TypeError(cY("invalid argument. First argument must be either an ndarray or an array of ndarrays. Value: `%s`.",r));for(n=t.length,e=[],s=0;s<n;s++)try{e.push(yMr(t[s]))}catch{throw new TypeError(cY("invalid argument. An ndarray argument must be an ndarray. Value: `%s`.",t[s]))}if(i=dMr(e),i===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(o=[],s=0;s<n;s++)o.push(pMr(t[s],i));return o}dY.exports=mMr});var $l=c((Aye,yY)=>{"use strict";var hMr=pY();yY.exports=hMr});var bY=c((_ye,gY)=>{"use strict";var Wl=Ir(),gMr=Ve(),bMr=ns().isPrimitive,mY=Fe(),xMr=Se(),qMr=oe(),wMr=Jr(),SMr=ye(),EMr=$l(),AMr=He().assign,_Mr=he(),qs=pr();function hY(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m;if(!gMr(r))throw new TypeError(qs("invalid argument. First argument must be an array of ndarrays. Value: `%s`.",r));if(!bMr(e))throw new TypeError(qs("invalid argument. Second argument must be a positive integer. Value: `%s`.",e));try{o=EMr(r)}catch{throw new TypeError(qs("invalid argument. First argument must be an array of ndarrays which are broadcast-compatible. Value: `%s`.",r))}if(d=o.length,a=qMr(o[0]),f=a.length,f<=e)throw new TypeError(qs("invalid argument. First argument must be an array of ndarrays having at least %d dimensions after broadcasting.",e+1));for(l=wMr(a),l===0&&(i=!0),s=f-e-1,y=s+1;y<f;y++)l/=a[y];for(l*=d,v=a[s],n=[],y=0;y<d;y++){for(u=xMr(f),p=s+1;p<f;p++)u[p]=null;n.push(u)}return y=-1,m=-1,t={},Wl(t,"next",h),Wl(t,"return",g),mY&&Wl(t,mY,b),t;function h(){var S,w,A;return y+=1,i||y>=l?{done:!0}:(m=(m+1)%d,S=n[m],w=_Mr(S),A=(S[s]+1)%v,S[s]=A,A===0&&(S=AMr(a,"row-major",S,s-1,S)),{value:SMr(o[m],w,!0,!1),done:!1})}function g(S){return i=!0,arguments.length?{value:S,done:!0}:{done:!0}}function b(){return hY(r,e)}}gY.exports=hY});var qY=c((Tye,xY)=>{"use strict";var TMr=bY();xY.exports=TMr});var AY=c((jye,EY)=>{"use strict";var Jl=Ir(),jMr=ne(),IMr=pe().isPrimitive,OMr=se(),NMr=Le(),DMr=Xr(),wY=Fe(),kMr=Se(),BMr=oe(),FMr=Jr(),RMr=ye(),zMr=He().assign,VMr=he(),ws=pr();function SY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!OMr(r))throw new TypeError(ws("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!jMr(e))throw new TypeError(ws("invalid argument. Options argument must be an object. Value: `%s`.",e));if(DMr(e,"readonly")){if(!IMr(e.readonly))throw new TypeError(ws("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&NMr(r))throw new Error(ws("invalid option. Cannot write to read-only array."))}}if(a=BMr(r),t=a.length,t<3)throw new TypeError("invalid argument. First argument must be an ndarray having at least three dimensions.");return f=FMr(a),f===0&&(n=!0),f/=a[t-1]*a[t-2],u=t-3,v=a[u],l=-1,s=kMr(t),s[t-1]=null,s[t-2]=null,i={},Jl(i,"next",d),Jl(i,"return",y),wY&&Jl(i,wY,p),i;function d(){var m,h;return l+=1,n||l>=f?{done:!0}:(m=VMr(s),h=(s[u]+1)%v,s[u]=h,h===0&&(s=zMr(a,"row-major",s,u-1,s)),{value:RMr(r,m,!0,o.writable),done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return SY(r,o)}}EY.exports=SY});var TY=c((Iye,_Y)=>{"use strict";var UMr=AY();_Y.exports=UMr});var NY=c((Oye,OY)=>{"use strict";var Xl=Ir(),CMr=ne(),PMr=pe().isPrimitive,LMr=se(),MMr=Le(),GMr=Xr(),jY=Fe(),YMr=Se(),$Mr=oe(),WMr=Jr(),JMr=ye(),XMr=He().assign,KMr=he(),Ss=pr();function IY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!LMr(r))throw new TypeError(Ss("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!CMr(e))throw new TypeError(Ss("invalid argument. Options argument must be an object. Value: `%s`.",e));if(GMr(e,"readonly")){if(!PMr(e.readonly))throw new TypeError(Ss("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&MMr(r))throw new Error(Ss("invalid option. Cannot write to read-only array."))}}if(a=$Mr(r),t=a.length,t<3)throw new TypeError("invalid argument. First argument must be an ndarray having at least three dimensions.");return f=WMr(a),f===0&&(n=!0),f/=a[t-1]*a[t-2],u=t-3,v=a[u],l=-1,s=YMr(t),s[t-1]=null,s[t-2]=null,i={},Xl(i,"next",d),Xl(i,"return",y),jY&&Xl(i,jY,p),i;function d(){var m,h,g;return l+=1,n||l>=f?{done:!0}:(m=s.slice(),h=KMr(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=XMr(a,"row-major",s,u-1,s)),{value:[m,JMr(r,h,!0,o.writable)],done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return IY(r,o)}}OY.exports=IY});var kY=c((Nye,DY)=>{"use strict";var HMr=NY();DY.exports=HMr});var zY=c((Dye,RY)=>{"use strict";var Kl=Ir(),ZMr=ne(),QMr=pe().isPrimitive,r9r=se(),e9r=Le(),a9r=Xr(),BY=Fe(),t9r=Se(),i9r=oe(),o9r=Jr(),n9r=ye(),s9r=He().assign,u9r=he(),Es=pr();function FY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!r9r(r))throw new TypeError(Es("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!ZMr(e))throw new TypeError(Es("invalid argument. Options argument must be an object. Value: `%s`.",e));if(a9r(e,"readonly")){if(!QMr(e.readonly))throw new TypeError(Es("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&e9r(r))throw new Error(Es("invalid option. Cannot write to read-only array."))}}if(a=i9r(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=o9r(a),f===0&&(n=!0),f/=a[t-1],u=t-2,v=a[u],l=-1,s=t9r(t),s[t-1]=null,i={},Kl(i,"next",d),Kl(i,"return",y),BY&&Kl(i,BY,p),i;function d(){var m,h,g;return l+=1,n||l>=f?{done:!0}:(m=s.slice(),h=u9r(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=s9r(a,"row-major",s,u-1,s)),{value:[m,n9r(r,h,!0,o.writable)],done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return FY(r,o)}}RY.exports=FY});var UY=c((kye,VY)=>{"use strict";var v9r=zY();VY.exports=v9r});var MY=c((Bye,LY)=>{"use strict";var Hl=Ir(),f9r=ne(),l9r=pe().isPrimitive,c9r=se(),d9r=Le(),p9r=Xr(),CY=Fe(),y9r=Se(),m9r=oe(),h9r=Jr(),g9r=ye(),b9r=He().assign,x9r=he(),As=pr();function PY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!c9r(r))throw new TypeError(As("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!f9r(e))throw new TypeError(As("invalid argument. Options argument must be an object. Value: `%s`.",e));if(p9r(e,"readonly")){if(!l9r(e.readonly))throw new TypeError(As("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&d9r(r))throw new Error(As("invalid option. Cannot write to read-only array."))}}if(a=m9r(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=h9r(a),f===0&&(n=!0),f/=a[t-1],u=t-2,v=a[u],l=-1,s=y9r(t),s[t-1]=null,i={},Hl(i,"next",d),Hl(i,"return",y),CY&&Hl(i,CY,p),i;function d(){var m,h;return l+=1,n||l>=f?{done:!0}:(m=x9r(s),h=(s[u]+1)%v,s[u]=h,h===0&&(s=b9r(a,"row-major",s,u-1,s)),{value:g9r(r,m,!0,o.writable),done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return PY(r,o)}}LY.exports=PY});var YY=c((Fye,GY)=>{"use strict";var q9r=MY();GY.exports=q9r});var HY=c((Rye,KY)=>{"use strict";var Zl=Ir(),w9r=ne(),$Y=pe().isPrimitive,S9r=fe().isPrimitive,E9r=se(),A9r=Le(),WY=Xr(),JY=Fe(),_9r=Ei(),T9r=oe(),j9r=ya(),I9r=Jr(),O9r=ye(),N9r=Ce(),D9r=he(),oi=pr();function XY(r,e){var a,t,o,i,n,s,u,v,f,l;if(!E9r(r))throw new TypeError(oi("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!S9r(e))throw new TypeError(oi("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(i={writable:!1,keepdim:!1},arguments.length>2){if(a=arguments[2],!w9r(a))throw new TypeError(oi("invalid argument. Options argument must be an object. Value: `%s`.",a));if(WY(a,"readonly")){if(!$Y(a.readonly))throw new TypeError(oi("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",a.readonly));if(i.writable=!a.readonly,i.writable&&A9r(r))throw new Error(oi("invalid option. Cannot write to read-only array."))}if(WY(a,"keepdim")){if(!$Y(a.keepdim))throw new TypeError(oi("invalid option. `%s` option must be a boolean. Option: `%s`.","keepdim",a.keepdim));i.keepdim=a.keepdim}}if(t=T9r(r),o=t.length,f=j9r(e,o-1),f===-1)throw new RangeError(oi("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e));return v=I9r(t),v===0&&(s=!0),v=t[f],l=-1,u=_9r(o),n={},Zl(n,"next",d),Zl(n,"return",y),JY&&Zl(n,JY,p),n;function d(){var m;return l+=1,s||l>=v?{done:!0}:(i.keepdim?u[f]=new N9r(l,l+1,1):u[f]=l,m=D9r(u),{value:O9r(r,m,!0,i.writable),done:!1})}function y(m){return s=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return XY(r,e,i)}}KY.exports=XY});var QY=c((zye,ZY)=>{"use strict";var k9r=HY();ZY.exports=k9r});var e$=c((Vye,r$)=>{"use strict";var B9r=it(),F9r=ot(),R9r=Et(),z9r=po();function V9r(r){var e=z9r(r);return B9r(r)?F9r(e):R9r(e)}r$.exports=V9r});var Ql=c((Uye,a$)=>{"use strict";var U9r=e$();a$.exports=U9r});var i$=c((Cye,t$)=>{"use strict";var C9r=Ql();function P9r(r){var e,a,t,o;for(t=C9r(r),a=r.length,e=[],o=0;o<a;o++)e.push(t(r,o));return e}t$.exports=P9r});var n$=c((Pye,o$)=>{"use strict";var L9r=i$();o$.exports=L9r});var v$=c((Lye,u$)=>{"use strict";var s$=Ql(),M9r=st().factory;function G9r(r,e,a){var t,o,i,n,s,u,v;for(o=s$(r),i=s$(e),t=M9r(a),s=r.length-1,n=[],u=0;u<e.length;u++)v=t(i(e,u),s),n.push(o(r,v));return n}u$.exports=G9r});var l$=c((Mye,f$)=>{"use strict";var Y9r=Ue().factory,$9r=Al(),W9r=Y9r($9r("boolean"));f$.exports=W9r});var rc=c((Gye,c$)=>{"use strict";var J9r=l$();c$.exports=J9r});var p$=c((Yye,d$)=>{"use strict";var X9r=dn(),K9r=cn(),H9r=oo(),Z9r=io(),Q9r=pr();function rGr(r,e){if(X9r(r))return H9r(r,e);if(K9r(r))return Z9r(r,e);throw new TypeError(Q9r("invalid argument. First argument must be a complex-valued floating-point array. Value: `%s`.",r))}d$.exports=rGr});var ec=c(($ye,y$)=>{"use strict";var eGr=p$();y$.exports=eGr});var h$=c((Wye,m$)=>{"use strict";var aGr=va();function tGr(r,e){return new aGr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,r.length-e)}m$.exports=tGr});var ac=c((Jye,g$)=>{"use strict";var iGr=h$();g$.exports=iGr});var E$=c((Xye,S$)=>{"use strict";var b$=ps(),x$=rc(),tc=ft(),q$=ec(),w$=ac(),_s=st().factory;function oGr(r,e,a,t,o,i){var n,s,u,v,f;for(n=_s(a),s=r.length-1,u=i,v=0;v<e.length;v++)f=n(e[v],s),t[u]=r[f],u+=o;return t}function nGr(r,e,a,t,o,i){var n,s,u,v,f,l,d,y,p,m,h;for(s=r.data,u=e.data,v=t.data,f=r.accessors[0],l=e.accessors[0],d=t.accessors[1],n=_s(a),y=s.length-1,p=i,m=0;m<u.length;m++)h=n(l(u,m),y),d(v,p,f(s,h)),p+=o;return v}function sGr(r,e,a,t,o,i){var n,s,u,v,f,l,d,y,p;for(s=e.data,u=e.accessors[0],n=_s(a),v=r.length/2-1,l=o*2,f=i*2,d=0;d<s.length;d++)y=n(u(s,d),v),p=y*2,t[f]=r[p],t[f+1]=r[p+1],f+=l;return t}function uGr(r,e,a,t,o,i){var n,s,u,v,f,l,d;for(s=e.data,u=e.accessors[0],n=_s(a),v=r.length-1,f=i,l=0;l<s.length;l++)d=n(u(s,l),v),t[f]=r[d],f+=o;return t}function vGr(r,e,a,t,o,i){var n,s,u;return n=tc(r),s=tc(e),u=tc(t),n.accessorProtocol||s.accessorProtocol||u.accessorProtocol?b$(n.dtype)&&b$(u.dtype)?(sGr(q$(r,0),s,a,q$(t,0),o,i),t):x$(n.dtype)&&x$(u.dtype)?(uGr(w$(r,0),s,a,w$(t,0),o,i),t):(nGr(n,s,a,u,o,i),t):(oGr(r,e,a,t,o,i),t)}S$.exports=vGr});var T$=c((Kye,_$)=>{"use strict";var fGr=Ir(),A$=v$(),lGr=E$();fGr(A$,"assign",lGr);_$.exports=A$});var k$=c((Hye,D$)=>{"use strict";var j$=ps(),I$=rc(),ic=ft(),O$=ec(),N$=ac(),cGr=st().factory,dGr=pr();function pGr(r,e,a,t,o,i){var n,s,u;for(n=0,s=0;s<e.length;s++)u=o(e[s],i),r[u]=a[n],n+=t;return r}function yGr(r,e,a,t,o,i){var n,s,u,v,f,l,d,y,p;for(n=r.data,s=e.data,u=a.data,v=r.accessors[1],f=e.accessors[0],l=a.accessors[0],d=0,y=0;y<s.length;y++)p=o(f(s,y),i),v(n,p,l(u,d)),d+=t;return n}function mGr(r,e,a,t,o,i){var n,s,u,v,f,l,d;for(n=e.data,s=e.accessors[0],v=t*2,u=0,f=0;f<n.length;f++)l=o(s(n,f),i),d=l*2,r[d]=a[u],r[d+1]=a[u+1],u+=v;return r}function hGr(r,e,a,t,o,i){var n,s,u,v,f;for(n=e.data,s=e.accessors[0],u=0,v=0;v<n.length;v++)f=o(s(n,v),i),r[f]=a[u],u+=t;return r}function gGr(r,e,a,t){var o,i,n,s,u,v;if(e.length>0)if(a.length===e.length)i=1;else if(a.length===1)i=0;else throw new Error(dGr("invalid argument. The third argument must be broadcast compatible with the second argument. Array shape: (%d). Desired shape: (%d).",a.length,e.length));return o=cGr(t),n=r.length-1,s=ic(r),u=ic(e),v=ic(a),s.accessorProtocol||u.accessorProtocol||v.accessorProtocol?j$(s.dtype)&&j$(v.dtype)?(mGr(O$(r,0),u,O$(a,0),i,o,n),r):I$(s.dtype)&&I$(v.dtype)?(hGr(N$(r,0),u,N$(a,0),i,o,n),r):(yGr(s,u,v,i,o,n),r):(pGr(r,e,a,i,o,n),r)}D$.exports=gGr});var F$=c((Zye,B$)=>{"use strict";var bGr=k$();B$.exports=bGr});var C$=c((Qye,U$)=>{"use strict";var oc=Ir(),xGr=ne(),qGr=pe().isPrimitive,wGr=ev().primitives,SGr=se(),EGr=Le(),AGr=Xr(),R$=Fe(),_Gr=Se(),TGr=n$(),z$=T$(),jGr=F$(),IGr=oe(),OGr=ya(),NGr=Jr(),DGr=ye(),kGr=He().assign,BGr=he(),pt=pr();function V$(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;if(!SGr(r))throw new TypeError(pt("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!wGr(e))throw new TypeError(pt("invalid argument. Second argument must be an array of integers. Value: `%s`.",e));if(s={writable:!1},arguments.length>2){if(t=arguments[2],!xGr(t))throw new TypeError(pt("invalid argument. Options argument must be an object. Value: `%s`.",t));if(AGr(t,"readonly")){if(!qGr(t.readonly))throw new TypeError(pt("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",t.readonly));if(s.writable=!t.readonly,s.writable&&EGr(r))throw new Error(pt("invalid option. Cannot write to read-only array."))}}if(n=e,e=TGr(e),y=e.length,o=IGr(r),i=o.length,i<=y)throw new TypeError(pt("invalid argument. First argument must be an ndarray having at least %d dimensions.",y+1));for(h=0;h<y;h++){if(m=OGr(e[h],i-1),m===-1)throw new RangeError(pt("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",i,e[h]));e[h]=m}for(p=NGr(o),p===0&&(f=!0),h=0;h<y-1;h++)if(e[h]>e[h+1])throw new Error(pt("invalid argument. Dimension indices must be sorted in ascending order. Value: `%s`.",n));for(g=1,h=1;h<y;h++){if(e[h]===e[h-1])throw new Error(pt("invalid argument. Dimension indices must be unique. Value: `%s`.",n));e[g]=e[h],g+=1}for(h=0;h<y;h++)p/=o[e[h]];for(l=_Gr(i),h=0;h<y;h++)l[e[h]]=null;for(a=[],g=0,h=0;h<i;h++){if(h===e[g]){g+=1;continue}a.push(h)}return d=z$(o,a,"throw"),v=z$(l,a,"throw"),h=-1,u={},oc(u,"next",b),oc(u,"return",S),R$&&oc(u,R$,w),u;function b(){var A;return h+=1,f||h>=p?{done:!0}:(A=BGr(l),v=kGr(d,"row-major",v,-1,v),l=jGr(l,a,v,"throw"),{value:DGr(r,A,!0,s.writable),done:!1})}function S(A){return f=!0,arguments.length?{value:A,done:!0}:{done:!0}}function w(){return V$(r,e,s)}}U$.exports=V$});var L$=c((rme,P$)=>{"use strict";var FGr=C$();P$.exports=FGr});var $$=c((eme,Y$)=>{"use strict";var nc=Ir(),RGr=ne(),zGr=pe().isPrimitive,VGr=ns().isPrimitive,UGr=se(),CGr=Le(),PGr=Xr(),M$=Fe(),LGr=Se(),MGr=oe(),GGr=Jr(),YGr=ye(),$Gr=He().assign,WGr=he(),Bi=pr();function G$(r,e){var a,t,o,i,n,s,u,v,f,l,d;if(!UGr(r))throw new TypeError(Bi("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!VGr(e))throw new TypeError(Bi("invalid argument. Second argument must be a positive integer. Value: `%s`.",e));if(o={writable:!1},arguments.length>2){if(a=arguments[2],!RGr(a))throw new TypeError(Bi("invalid argument. Options argument must be an object. Value: `%s`.",a));if(PGr(a,"readonly")){if(!zGr(a.readonly))throw new TypeError(Bi("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",a.readonly));if(o.writable=!a.readonly,o.writable&&CGr(r))throw new Error(Bi("invalid option. Cannot write to read-only array."))}}if(t=MGr(r),f=t.length,f<=e)throw new TypeError(Bi("invalid argument. First argument must be an ndarray having at least %d dimensions.",e+1));for(l=GGr(t),l===0&&(n=!0),u=f-e-1,d=u+1;d<f;d++)l/=t[d];for(v=t[u],s=LGr(f),d=u+1;d<f;d++)s[d]=null;return d=-1,i={},nc(i,"next",y),nc(i,"return",p),M$&&nc(i,M$,m),i;function y(){var h,g;return d+=1,n||d>=l?{done:!0}:(h=WGr(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=$Gr(t,"row-major",s,u-1,s)),{value:YGr(r,h,!0,o.writable),done:!1})}function p(h){return n=!0,arguments.length?{value:h,done:!0}:{done:!0}}function m(){return G$(r,e,o)}}Y$.exports=G$});var J$=c((ame,W$)=>{"use strict";var JGr=$$();W$.exports=JGr});var K$=c((tme,X$)=>{"use strict";var XGr=Pe();function KGr(r){var e=typeof r;return r!==null&&(e==="object"||e==="function")&&XGr(r.next)}X$.exports=KGr});var Z$=c((ime,H$)=>{"use strict";var HGr=K$();H$.exports=HGr});var rW=c((ome,Q$)=>{"use strict";var ZGr=se(),QGr=al(),rYr=Xa(),eYr=Tt(),aYr=oe(),tYr=Ka(),iYr=vt(),oYr=pr();function nYr(r){if(!ZGr(r))throw new TypeError(oYr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return QGr(iYr(r),aYr(r),rYr(r),eYr(r),tYr(r))}Q$.exports=nYr});var sc=c((nme,eW)=>{"use strict";var sYr=rW();eW.exports=sYr});var iW=c((sme,tW)=>{"use strict";var uc=Ir(),uYr=Pe(),vYr=Z$(),Ts=Fe(),fYr=sc(),lYr=pr();function aW(r){var e,a;if(!vYr(r))throw new TypeError(lYr("invalid argument. First argument must be an iterator protocol-compliant object. Value: `%s`.",r));return e={},uc(e,"next",t),uc(e,"return",o),Ts&&uYr(r[Ts])&&uc(e,Ts,i),e;function t(){var n;return a?{done:!0}:(n=r.next(),n.done?(a=!0,n):{value:fYr(n.value),done:!1})}function o(n){return a=!0,arguments.length?{value:n,done:!0}:{done:!0}}function i(){return aW(r[Ts]())}}tW.exports=aW});var nW=c((ume,oW)=>{"use strict";var cYr=iW();oW.exports=cYr});var fW=c((vme,vW)=>{"use strict";var vc=Ir(),dYr=ne(),pYr=Ta(),yYr=se(),mYr=Xr(),sW=Fe(),hYr=Se(),gYr=oe(),bYr=Jr(),xYr=He().assign,fc=pr();function uW(r){var e,a,t,o,i,n,s,u,v,f;if(!yYr(r))throw new TypeError(fc("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={order:r.order},arguments.length>1){if(e=arguments[1],!dYr(e))throw new TypeError(fc("invalid argument. Options argument must be an object. Value: `%s`.",e));if(mYr(e,"order")){if(!pYr(e.order))throw new TypeError(fc("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));o.order=e.order}}return a=gYr(r),t=a.length,v=bYr(a),v===0&&(n=!0),o.order==="row-major"?u=t-1:u=0,f=-1,s=hYr(t),i={},vc(i,"next",l),vc(i,"return",d),sW&&vc(i,sW,y),i;function l(){return f+=1,n||f>=v?{done:!0}:(f>0&&(s=xYr(a,o.order,s,u,s)),{value:r.get.apply(r,s),done:!1})}function d(p){return n=!0,arguments.length?{value:p,done:!0}:{done:!0}}function y(){return uW(r,o)}}vW.exports=uW});var cW=c((fme,lW)=>{"use strict";var qYr=fW();lW.exports=qYr});var pW=c((lme,dW)=>{"use strict";var Ze=zt(),Me={};Ze(Me,"nditerColumnEntries",MG());Ze(Me,"nditerColumns",XG());Ze(Me,"nditerEntries",eY());Ze(Me,"nditerIndices",sY());Ze(Me,"nditerInterleaveSubarrays",qY());Ze(Me,"nditerMatrices",TY());Ze(Me,"nditerMatrixEntries",kY());Ze(Me,"nditerRowEntries",UY());Ze(Me,"nditerRows",YY());Ze(Me,"nditerSelectDimension",QY());Ze(Me,"nditerStacks",L$());Ze(Me,"nditerSubarrays",J$());Ze(Me,"nditer2arrayEach",nW());Ze(Me,"nditerValues",cW());dW.exports=Me});var mW=c((cme,yW)=>{"use strict";var wYr=Le(),SYr=Ra(),EYr=oe(),AYr=Xa(),_Yr=Tt(),TYr=Ka(),jYr=vt(),IYr=ma(),OYr=ka(),NYr=OYr("order");function DYr(r){var e,a,t,o,i,n,s;if(s=SYr(r),i=jYr(r),o=EYr(r),e=AYr(r),a=_Yr(r),t=TYr(r)||NYr,arguments.length>1?n=arguments[1]:n={},wYr(r)){if(n.readonly===void 0)n.readonly=!0;else if(n.readonly===!1)throw new Error("invalid argument. Cannot write to a read-only array.")}return new IYr(s,i,o,e,a,t,n)}yW.exports=DYr});var gW=c((dme,hW)=>{"use strict";var kYr=mW();hW.exports=kYr});var bW=c((pme,BYr)=>{BYr.exports={float64:-1,float32:"float64",int32:-1,int16:"int32",int8:"int16",uint32:-1,uint16:"uint32",uint8:"uint16",uint8c:"uint16",complex64:"complex128",complex128:-1,generic:-1,binary:-1,bool:-1}});var qW=c((yme,xW)=>{"use strict";var FYr=Aa(),RYr=Xr(),zYr=Ba(),js=bW();function VYr(){var r,e,a,t;for(a={},r=FYr(js),e=r.length,t=0;t<e;t++)a[r[t]]=js[r[t]];return a}function UYr(r){return arguments.length===0?VYr():(r=zYr(r),RYr(js,r)?js[r]:null)}xW.exports=UYr});var SW=c((mme,wW)=>{"use strict";var CYr=qW();wW.exports=CYr});var _W=c((hme,AW)=>{"use strict";var EW=ge().isPrimitive,PYr=ke(),lc=pr();function LYr(r){var e,a,t,o,i;if(typeof r!="object"||r===null)throw new TypeError(lc("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(t=r.length,EW(t))return t;if(a=r.shape,!PYr(a))throw new TypeError(lc("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=a.length,e===0)return 0;for(t=1,i=0;i<e;i++){if(o=a[i],!EW(o))throw new TypeError(lc("invalid argument. Must provide an ndarray. Value: `%s`.",r));t*=o}return t}AW.exports=LYr});var cc=c((gme,TW)=>{"use strict";var MYr=_W();TW.exports=MYr});var IW=c((bme,jW)=>{"use strict";var GYr=ge().isPrimitive,YYr=fe().isPrimitive,$Yr=Yf(),dc=pr();function WYr(r,e){var a;if(typeof r!="object"||r===null)throw new TypeError(dc("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!YYr(e))throw new TypeError(dc("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(a=$Yr(r,e),GYr(a))return a;throw new TypeError(dc("invalid argument. First argument must be an ndarray. Value: `%s`.",r))}jW.exports=WYr});var NW=c((xme,OW)=>{"use strict";var JYr=IW();OW.exports=JYr});var DW=c((qme,XYr)=>{XYr.exports={float64:{float64:"float64",float32:"float64",int32:"float64",int16:"float64",int8:"float64",uint32:"float64",uint16:"float64",uint8:"float64",uint8c:"float64",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},float32:{float64:"float64",float32:"float32",int32:"float64",int16:"float32",int8:"float32",uint32:"float64",uint16:"float32",uint8:"float32",uint8c:"float32",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},int32:{float64:"float64",float32:"float64",int32:"int32",int16:"int32",int8:"int32",uint32:"float64",uint16:"int32",uint8:"int32",uint8c:"int32",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},int16:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int16",uint32:"float64",uint16:"int32",uint8:"int16",uint8c:"int16",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},int8:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int8",uint32:"float64",uint16:"int32",uint8:"int16",uint8c:"int16",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint32:{float64:"float64",float32:"float64",int32:"float64",int16:"float64",int8:"float64",uint32:"uint32",uint16:"uint32",uint8:"uint32",uint8c:"uint32",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint16:{float64:"float64",float32:"float32",int32:"int32",int16:"int32",int8:"int32",uint32:"uint32",uint16:"uint16",uint8:"uint16",uint8c:"uint16",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint8:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int16",uint32:"uint32",uint16:"uint16",uint8:"uint8",uint8c:"uint8",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint8c:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int16",uint32:"uint32",uint16:"uint16",uint8:"uint8",uint8c:"uint8c",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},complex128:{float64:"complex128",float32:"complex128",int32:"complex128",int16:"complex128",int8:"complex128",uint32:"complex128",uint16:"complex128",uint8:"complex128",uint8c:"complex128",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},complex64:{float64:"complex128",float32:"complex64",int32:"complex128",int16:"complex64",int8:"complex64",uint32:"complex128",uint16:"complex64",uint8:"complex64",uint8c:"complex64",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},generic:{float64:"generic",float32:"generic",int32:"generic",int16:"generic",int8:"generic",uint32:"generic",uint16:"generic",uint8:"generic",uint8c:"generic",complex64:"generic",complex128:"generic",binary:-1,generic:"generic",bool:"generic"},binary:{float64:-1,float32:-1,int32:-1,int16:-1,int8:-1,uint32:-1,uint16:-1,uint8:-1,uint8c:-1,complex64:-1,complex128:-1,binary:"binary",generic:-1,bool:-1},bool:{float64:-1,float32:-1,int32:-1,int16:-1,int8:-1,uint32:-1,uint16:-1,uint8:-1,uint8c:-1,complex64:-1,complex128:-1,binary:-1,generic:"generic",bool:"bool"}}});var RW=c((wme,FW)=>{"use strict";var KYr=Aa(),kW=Xr(),BW=Ba(),Is=DW();function HYr(){var r,e,a,t,o,i,n,s,u;for(a={},r=KYr(Is),e=r.length,u=0;u<e;u++){for(o=r[u],n=Is[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function ZYr(r,e){var a;return arguments.length===0?HYr():(r=BW(r),kW(Is,r)&&(a=Is[r],e=BW(e),kW(a,e))?a[e]:null)}FW.exports=ZYr});var VW=c((Sme,zW)=>{"use strict";var QYr=RW();zW.exports=QYr});var CW=c((Eme,UW)=>{"use strict";var r$r=Qa(),e$r=gt();function a$r(r){return r instanceof r$r||e$r(r)==="MultiSlice"}UW.exports=a$r});var pc=c((Ame,PW)=>{"use strict";var t$r=CW();PW.exports=t$r});var MW=c((_me,LW)=>{"use strict";var i$r=se(),o$r=pc(),n$r=Ve(),s$r=ne(),u$r=pe().isPrimitive,v$r=Xr(),f$r=Qa(),l$r=he(),c$r=ye(),d$r=oe(),Os=pr();function p$r(r,e){var a,t,o,i,n,s,u;if(o={strict:!0},t=arguments.length,!i$r(r))throw new TypeError(Os("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(s$r(arguments[t-1])){if(t-=1,a=arguments[t],v$r(a,"strict")){if(!u$r(a.strict))throw new TypeError(Os("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(n=d$r(r),t===1&&n.length>0)throw new RangeError(Os("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",n.join(","),0))}if(o$r(e)){if(s=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else{if(n$r(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],u=1;u<t;u++)i.push(arguments[u]);try{s=l$r(i)}catch{for(u=0;u<i.length;u++)try{new f$r(i[u])}catch{throw new TypeError(Os("invalid argument. Slice arguments must be either a Slice, integer, null, or undefined. Value: `%s`.",String(i[u])))}}}return c$r(r,s,o.strict,!1)}LW.exports=p$r});var yc=c((Tme,GW)=>{"use strict";var y$r=MW();GW.exports=y$r});var WW=c((jme,$W)=>{"use strict";var YW=se(),m$r=pc(),h$r=Ve(),g$r=ne(),b$r=pe().isPrimitive,x$r=Le(),q$r=Xr(),w$r=Qa(),S$r=he(),E$r=is(),A$r=oe(),Vo=pr();function _$r(r,e,a){var t,o,i,n,s,u,v;if(i={strict:!0},o=arguments.length,!YW(r))throw new TypeError(Vo("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!YW(e))throw new TypeError(Vo("invalid argument. Second argument must be an ndarray. Value: `%s`.",e));if(x$r(e))throw new Error("invalid argument. Cannot write to a read-only array.");if(g$r(arguments[o-1])){if(o-=1,t=arguments[o],q$r(t,"strict")){if(!b$r(t.strict))throw new TypeError(Vo("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));i.strict=t.strict}if(s=A$r(e),o===2&&s.length>0)throw new RangeError(Vo("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",s.join(","),0))}if(m$r(a)){if(u=a,o>3)throw new Error("invalid invocation. Too many arguments.")}else{if(h$r(a)){if(n=a,o>3)throw new Error("invalid invocation. Too many arguments.")}else for(n=[],v=2;v<o;v++)n.push(arguments[v]);try{u=S$r(n)}catch{for(v=0;v<n.length;v++)try{new w$r(n[v])}catch{throw new TypeError(Vo("invalid argument. Slice arguments must be either a Slice, integer, null, or undefined. Value: `%s`.",String(n[v])))}}}return E$r(r,e,u,i.strict)}$W.exports=_$r});var XW=c((Ime,JW)=>{"use strict";var T$r=WW();JW.exports=T$r});var ZW=c((Ome,HW)=>{"use strict";var j$r=ne(),I$r=pe().isPrimitive,KW=fe().isPrimitive,O$r=se(),N$r=Si(),D$r=Ff(),k$r=wi(),B$r=Xr(),F$r=Ce(),R$r=Xf(),Uo=pr();function z$r(r,e,a){var t,o,i;if(i={strict:!0},!O$r(r))throw new TypeError(Uo("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!KW(e))throw new TypeError(Uo("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(KW(a)||D$r(a))o=a;else if(k$r(a)||N$r(a))o=new F$r;else throw new TypeError(Uo("invalid argument. Third argument must be either a Slice, integer, null, or undefined. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!j$r(t))throw new TypeError(Uo("invalid argument. Options argument must be an object. Value: `%s`.",t));if(B$r(t,"strict")){if(!I$r(t.strict))throw new TypeError(Uo("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));i.strict=t.strict}}return R$r(r,e,o,i.strict,!1)}HW.exports=z$r});var rJ=c((Nme,QW)=>{"use strict";var V$r=ZW();QW.exports=V$r});var tJ=c((Dme,aJ)=>{"use strict";var U$r=ne(),C$r=pe().isPrimitive,eJ=fe().isPrimitive,P$r=se(),L$r=Xr(),M$r=Kf(),Co=pr();function G$r(r,e,a){var t,o;if(o={strict:!0},!P$r(r))throw new TypeError(Co("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!eJ(e))throw new TypeError(Co("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(!eJ(a))throw new TypeError(Co("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!U$r(t))throw new TypeError(Co("invalid argument. Options argument must be an object. Value: `%s`.",t));if(L$r(t,"strict")){if(!C$r(t.strict))throw new TypeError(Co("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));o.strict=t.strict}}return M$r(r,e,a,o.strict,!1)}aJ.exports=G$r});var oJ=c((kme,iJ)=>{"use strict";var Y$r=tJ();iJ.exports=Y$r});var uJ=c((Bme,sJ)=>{"use strict";var $$r=ne(),W$r=pe().isPrimitive,nJ=fe().isPrimitive,J$r=se(),X$r=Xr(),K$r=Hf(),Po=pr();function H$r(r,e,a){var t,o;if(o={strict:!0},!J$r(r))throw new TypeError(Po("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!nJ(e))throw new TypeError(Po("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(!nJ(a))throw new TypeError(Po("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!$$r(t))throw new TypeError(Po("invalid argument. Options argument must be an object. Value: `%s`.",t));if(X$r(t,"strict")){if(!W$r(t.strict))throw new TypeError(Po("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));o.strict=t.strict}}return K$r(r,e,a,o.strict,!1)}sJ.exports=H$r});var fJ=c((Fme,vJ)=>{"use strict";var Z$r=uJ();vJ.exports=Z$r});var cJ=c((Rme,lJ)=>{"use strict";var Q$r=se(),rWr=Ve(),eWr=ne(),aWr=Ge().isPrimitive,tWr=pe().isPrimitive,iWr=wi(),oWr=Si(),nWr=Xr(),sWr=oe(),uWr=Zf(),Ns=pr();function vWr(r){return!(aWr(r)||iWr(r)||oWr(r))}function fWr(r,e){var a,t,o,i,n,s;if(o={strict:!0},t=arguments.length,!Q$r(r))throw new TypeError(Ns("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(eWr(arguments[t-1])){if(t-=1,a=arguments[t],nWr(a,"strict")){if(!tWr(a.strict))throw new TypeError(Ns("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(n=sWr(r),t===1&&n.length>0)throw new RangeError(Ns("invalid argument. Number of indices does not match the number of array dimensions. Array shape: (%s). Number of indices: %u.",n.join(","),0))}if(rWr(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],s=1;s<t;s++)i.push(arguments[s]);for(s=0;s<i.length;s++)if(vWr(i[s]))throw new TypeError(Ns("invalid argument. Each index argument must be either an integer, null, or undefined. Value: `%s`.",String(i[s])));return uWr(r,i,o.strict,!1)}lJ.exports=fWr});var pJ=c((zme,dJ)=>{"use strict";var lWr=cJ();dJ.exports=lWr});var mJ=c((Vme,yJ)=>{"use strict";var cWr=se(),dWr=Ve(),pWr=ne(),yWr=Ge().isPrimitive,mWr=pe().isPrimitive,hWr=wi(),gWr=Si(),bWr=Xr(),xWr=oe(),qWr=Qf(),Ds=pr();function wWr(r){return!(yWr(r)||hWr(r)||gWr(r))}function SWr(r,e){var a,t,o,i,n,s;if(o={strict:!0},t=arguments.length,!cWr(r))throw new TypeError(Ds("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(pWr(arguments[t-1])){if(t-=1,a=arguments[t],bWr(a,"strict")){if(!mWr(a.strict))throw new TypeError(Ds("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(n=xWr(r),t===1&&n.length>0)throw new RangeError(Ds("invalid argument. Number of indices does not match the number of array dimensions. Array shape: (%s). Number of indices: %u.",n.join(","),0))}if(dWr(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],s=1;s<t;s++)i.push(arguments[s]);for(s=0;s<i.length;s++)if(wWr(i[s]))throw new TypeError(Ds("invalid argument. Each index argument must be either an integer, null, or undefined. Value: `%s`.",String(i[s])));return qWr(r,i,o.strict,!1)}yJ.exports=SWr});var gJ=c((Ume,hJ)=>{"use strict";var EWr=mJ();hJ.exports=EWr});var qJ=c((Cme,xJ)=>{"use strict";var bJ=fe().isPrimitive,AWr=ke(),_Wr=rl(),mc=pr();function TWr(r,e){var a;if(typeof r!="object"||r===null||!AWr(r.shape))throw new TypeError(mc("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!bJ(e))throw new TypeError(mc("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(a=_Wr(r,e),bJ(a))return a;throw new TypeError(mc("invalid argument. First argument must be an ndarray. Value: `%s`.",r))}xJ.exports=TWr});var SJ=c((Pme,wJ)=>{"use strict";var jWr=qJ();wJ.exports=jWr});var EJ=c((Lme,IWr)=>{IWr.exports={mode:["throw"],order:"row-major"}});var TJ=c((Mme,_J)=>{"use strict";var OWr=ne(),AJ=Xr(),NWr=wa(),DWr=Ta(),kWr=pi(),ks=pr();function BWr(r,e){var a;if(!OWr(e))return new TypeError(ks("invalid argument. Options argument must be an object. Value: `%s`.",e));if(AJ(e,"mode")){if(r.mode=e.mode,!NWr(r.mode))r.mode=[r.mode];else if(r.mode.length===0)return new TypeError(ks("invalid option. `%s` option cannot be an empty array.","mode"));for(a=0;a<r.mode.length;a++)if(!kWr(r.mode[a]))return new TypeError(ks("invalid option. `%s` option must be a supported/recognized mode. Option: `%s`.","mode",r.mode[a]))}return AJ(e,"order")&&(r.order=e.order,!DWr(r.order))?new TypeError(ks("invalid option. `%s` option must be a supported/recognized order. Option: `%s`.","order",r.order)):null}_J.exports=BWr});var OJ=c((Gme,IJ)=>{"use strict";var FWr=Jt().primitives,RWr=fe().isPrimitive,zWr=ze(),VWr=el(),hc=pr(),jJ=EJ(),UWr=TJ();function CWr(){var r,e,a,t,o,i,n,s,u;if(e=arguments[0],!FWr(e))throw new TypeError(hc("invalid argument. First argument must be an array-like object containing nonnegative integers. Value: `%s`.",e));if(n=arguments.length,a=e.length,o={},o.mode=jJ.mode.slice(),o.order=jJ.order,n>a+1){if(u=n-1,r=arguments[u],i=UWr(o,r),i)throw i}else u=n;if(s=1,u-s!==a)throw new RangeError(hc("invalid argument. Number of provided subscripts must match the number of dimensions. ndims: `%u`. Number of subscripts: `%u`.",a,u-s));for(t=new Array(a+4),t[0]=e,t[1]=zWr(e,o.order),t[2]=0;s<u;s++){if(!RWr(arguments[s]))throw new TypeError(hc("invalid argument. Subscripts must be integer valued. Argument: `%u`. Value: `%s`.",s,arguments[s]));t[s+2]=arguments[s]}return t[s+2]=o.mode,VWr.apply(null,t)}IJ.exports=CWr});var DJ=c((Yme,NJ)=>{"use strict";var PWr=OJ();NJ.exports=PWr});var zJ=c(($me,RJ)=>{"use strict";var LWr=ne(),Lo=Xr(),MWr=sn(),GWr=ze(),YWr=Ye(),$Wr=Fa(),WWr=Jr(),JWr=ma(),FJ=ka(),Bs=pr(),kJ=FJ.get("dtypes.default"),BJ=FJ.get("order");function XWr(r){var e,a,t,o,i,n,s,u,v;if(i={},arguments.length>1){if(e=arguments[1],!LWr(e))throw new TypeError(Bs("invalid argument. Options argument must be an object. Value: `%s`.",e));Lo(e,"dtype")?a=e.dtype:a=kJ,Lo(e,"order")?t=e.order:t=BJ,Lo(e,"mode")&&(i.mode=e.mode),Lo(e,"submode")&&(i.submode=e.submode),Lo(e,"readonly")&&(i.readonly=e.readonly)}else a=kJ,t=BJ;if(typeof r=="number")v=[r];else if(MWr(r))v=r;else throw new TypeError(Bs("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));if(o=v.length,o>0){if(s=WWr(v),s!==s||s<0)throw new TypeError(Bs("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));u=GWr(v,t)}else s=1,u=[0];if(n=$Wr(a,s),n===null)throw new TypeError(Bs("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",a));return new JWr(a,n,v,u,YWr(v,u),t,i)}RJ.exports=XWr});var UJ=c((Wme,VJ)=>{"use strict";var KWr=zJ();VJ.exports=KWr});var GJ=c((Jme,MJ)=>{"use strict";var HWr=se(),ZWr=ne(),QWr=Jt().primitives,Fi=Xr(),rJr=ze(),eJr=Ye(),aJr=Fa(),tJr=Jr(),CJ=Ra(),PJ=oe(),LJ=Ka(),iJr=ma(),Fs=pr();function oJr(r){var e,a,t,o,i,n,s,u,v;if(!HWr(r))throw new TypeError(Fs("invalid argument. First argument must be an ndarray-like object. Value: `%s`.",r));if(i={},arguments.length>1){if(e=arguments[1],!ZWr(e))throw new TypeError(Fs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(Fi(e,"dtype")?a=e.dtype:a=CJ(r),Fi(e,"shape")){if(v=e.shape,typeof v=="number"&&(v=[v]),!QWr(v))throw new TypeError(Fs("invalid option. `%s` option must be a nonnegative integer or an array of nonnegative integers. Option: `%s`.","shape",v))}else v=PJ(r);Fi(e,"order")?t=e.order:t=LJ(r),Fi(e,"mode")&&(i.mode=e.mode),Fi(e,"submode")&&(i.submode=e.submode),Fi(e,"readonly")&&(i.readonly=e.readonly)}else a=CJ(r),v=PJ(r),t=LJ(r);if(o=v.length,o>0?(s=tJr(v),u=rJr(v,t)):(s=1,u=[0]),n=aJr(a,s),n===null)throw new TypeError(Fs("invalid argument. First argument must have a recognized data type. Value: `%s`.",a));return new iJr(a,n,v,u,eJr(v,u),t,i)}MJ.exports=oJr});var $J=c((Xme,YJ)=>{"use strict";var nJr=GJ();YJ.exports=nJr});var gc=c((Kme,WJ)=>{"use strict";var Lr=zt(),Ur={};Lr(Ur,"array",BA());Lr(Ur,"at",UA());Lr(Ur,"base",RC());Lr(Ur,"broadcastArray",os());Lr(Ur,"broadcastArrays",tl());Lr(Ur,"castingModes",Bv());Lr(Ur,"ndarray",ma());Lr(Ur,"dataBuffer",vt());Lr(Ur,"defaults",ka());Lr(Ur,"dispatch",nP());Lr(Ur,"dtype",Ra());Lr(Ur,"dtypes",Be());Lr(Ur,"empty",dP());Lr(Ur,"emptyLike",xP());Lr(Ur,"FancyArray",$9());Lr(Ur,"flag",qG());Lr(Ur,"flags",AG());Lr(Ur,"scalar2ndarray",Tl());Lr(Ur,"ind2sub",zG());Lr(Ur,"indexModes",Wt());Lr(Ur,"iter",pW());Lr(Ur,"maybeBroadcastArray",Yl());Lr(Ur,"maybeBroadcastArrays",$l());Lr(Ur,"minDataType",wl());Lr(Ur,"mostlySafeCasts",Vv());Lr(Ur,"ndarraylike2ndarray",gW());Lr(Ur,"ndims",zn());Lr(Ur,"nextDataType",SW());Lr(Ur,"numel",cc());Lr(Ur,"numelDimension",NW());Lr(Ur,"offset",Tt());Lr(Ur,"order",Ka());Lr(Ur,"orders",$t());Lr(Ur,"outputDataTypePolicies",es());Lr(Ur,"promotionRules",VW());Lr(Ur,"safeCasts",zv());Lr(Ur,"sameKindCasts",Uv());Lr(Ur,"shape",oe());Lr(Ur,"slice",yc());Lr(Ur,"ndsliceAssign",XW());Lr(Ur,"sliceDimension",rJ());Lr(Ur,"sliceDimensionFrom",oJ());Lr(Ur,"sliceDimensionTo",fJ());Lr(Ur,"sliceFrom",pJ());Lr(Ur,"sliceTo",gJ());Lr(Ur,"stride",SJ());Lr(Ur,"strides",Xa());Lr(Ur,"sub2ind",DJ());Lr(Ur,"ndarray2array",sc());Lr(Ur,"zeros",UJ());Lr(Ur,"zerosLike",$J());WJ.exports=Ur});var IX=c((hhe,jX)=>{"use strict";function EJr(r,e){return r>e?r:e}jX.exports=EJr});var NX=c((ghe,OX)=>{"use strict";var AJr=IX();OX.exports=AJr});var kX=c((bhe,DX)=>{"use strict";var _Jr=Ue().factory,TJr=Yu(),jJr=_Jr(TJr());DX.exports=jJr});var FX=c((xhe,BX)=>{"use strict";var IJr=kX();BX.exports=IJr});var RX=c((qhe,OJr)=>{OJr.exports=["no-transpose","transpose","conjugate-transpose"]});var VX=c((whe,zX)=>{"use strict";var NJr=RX();function DJr(){return NJr.slice()}zX.exports=DJr});var CX=c((She,UX)=>{"use strict";function kJr(){return{"no-transpose":111,transpose:112,"conjugate-transpose":113}}UX.exports=kJr});var MX=c((Ehe,LX)=>{"use strict";var BJr=Ir(),PX=VX(),FJr=CX();BJr(PX,"enum",FJr);LX.exports=PX});var YX=c((Ahe,GX)=>{"use strict";var RJr=Ue().factory,zJr=MX(),VJr=RJr(zJr());GX.exports=VJr});var Nc=c((_he,$X)=>{"use strict";var UJr=YX();$X.exports=UJr});var JX=c((The,WX)=>{"use strict";function CJr(r,e){return e>0?0:(1-r)*e}WX.exports=CJr});var KX=c((jhe,XX)=>{"use strict";var PJr=JX();XX.exports=PJr});var Dc=c((Ihe,HX)=>{"use strict";var Yo=5;function LJr(r,e,a,t,o,i,n){var s,u,v,f,l;if(s=0,r<=0)return s;if(u=t,v=n,a===1&&i===1){if(f=r%Yo,f>0)for(l=0;l<f;l++)s+=e[u]*o[v],u+=1,v+=1;if(r<Yo)return s;for(l=f;l<r;l+=Yo)s+=e[u]*o[v]+e[u+1]*o[v+1]+e[u+2]*o[v+2]+e[u+3]*o[v+3]+e[u+4]*o[v+4],u+=Yo,v+=Yo;return s}for(l=0;l<r;l++)s+=e[u]*o[v],u+=a,v+=i;return s}HX.exports=LJr});var rK=c((Ohe,QX)=>{"use strict";var ZX=KX(),MJr=Dc();function GJr(r,e,a,t,o){var i,n;return r<=0?0:(i=ZX(r,a),n=ZX(r,o),MJr(r,e,a,i,t,o,n))}QX.exports=GJr});var tK=c((Nhe,aK)=>{"use strict";var YJr=Ir(),eK=rK(),$Jr=Dc();YJr(eK,"ndarray",$Jr);aK.exports=eK});var kc=c((Dhe,oK)=>{"use strict";var Vs=Yn(),iK=tK().ndarray,WJr=Rr(),yt=WJr("float64");function Bt(r){return r!=="no-transpose"}function JJr(r,e,a,t,o,i){var n,s,u,v,f,l,d;for(Vs([t,o])?(u=e,v=r,n=o,s=t-u*o):(u=r,v=e,n=t,s=o-u*t),d=i,l=0;l<v;l++){for(f=0;f<u;f++)a[d]=0,d+=n;d+=s}return a}function XJr(r,e,a,t,o,i,n){var s,u,v,f,l,d,y;for(Vs([o,i])?(v=e,f=r,s=i,u=o-v*i):(v=r,f=e,s=o,u=i-v*o),y=n,d=0;d<f;d++){for(l=0;l<v;l++)t[y]*=a,y+=s;y+=u}return t}function zs(r,e,a,t,o,i,n,s,u,v,f,l,d,y,p,m){var h,g,b,S,w,A,_,x,E,q,T;for(w=e,A=r,h=n,g=v,b=p,S=y-w*p,T=m,x=0;x<A;x++){for(E=s+x*i,_=0;_<w;_++)q=l+_*f,d[T]+=t*iK(a,o,h,E,u,g,q),T+=b;T+=S}return d}function KJr(r,e,a,t,o,i,n,s,u,v,f,l,d,y,p,m){var h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(E=e,q=r,h=n,g=v,b=p,N=q;N>0;)for(N<yt?(j=N,N=0):(j=yt,N-=yt),w=s+N*i,x=m+N*y,k=E;k>0;)for(k<yt?(T=k,k=0):(T=yt,k-=yt),A=l+k*f,_=x+k*p,S=y-T*p,U=a;U>0;)for(U<yt?(O=U,U=0):(O=yt,U-=yt),z=w+U*n,V=A+U*v,B=_,D=0;D<j;D++){for(F=z+D*i,I=0;I<T;I++)R=V+I*f,d[B]+=t*iK(O,o,h,F,u,g,R),B+=b;B+=S}return d}function HJr(r,e,a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b){var S,w,A,_,x,E;if(a===0||t===0||p===1&&(i===0||o===0)||(p===0?m=JJr(a,t,m,h,g,b):p!==1&&(m=XJr(a,t,p,m,h,g,b)),i===0))return m;if(S=Vs([s,u]),w=Vs([l,d]),S){if(!Bt(r)){if(!w&&!Bt(e))return zs(a,t,o,i,n,s,u,v,f,l,d,y,m,h,g,b);if(w&&Bt(e))return zs(a,t,o,i,n,s,u,v,f,d,l,y,m,h,g,b)}}else if(Bt(r)){if(w&&Bt(e))return zs(a,t,o,i,n,u,s,v,f,d,l,y,m,h,g,b);if(!w&&!Bt(e))return zs(a,t,o,i,n,u,s,v,f,l,d,y,m,h,g,b)}return Bt(r)?(A=u,_=s):(A=s,_=u),Bt(e)?(x=d,E=l):(x=l,E=d),KJr(a,t,o,i,n,A,_,v,f,x,E,y,m,h,g,b)}oK.exports=HJr});var uK=c((khe,sK)=>{"use strict";var Bc=NX(),ZJr=FX(),nK=Nc(),mt=pr(),QJr=kc();function rXr(r,e,a,t,o,i,n,s,u,v,f,l,d,y){var p,m,h,g,b,S,w,A,_;if(!ZJr(r))throw new TypeError(mt("invalid argument. First argument must be a valid order. Value: `%s`.",r));if(!nK(e))throw new TypeError(mt("invalid argument. Second argument must be a valid transpose operation. Value: `%s`.",e));if(!nK(a))throw new TypeError(mt("invalid argument. Third argument must be a valid transpose operation. Value: `%s`.",a));if(t<0)throw new RangeError(mt("invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.",t));if(o<0)throw new RangeError(mt("invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.",t));if(i<0)throw new RangeError(mt("invalid argument. Sixth argument must be a nonnegative integer. Value: `%d`.",i));if(r==="row-major"&&e==="no-transpose"||r==="column-major"&&e==="transpose"?p=i:p=t,r==="row-major"&&a==="no-transpose"||r==="column-major"&&a==="transpose"?m=o:m=i,u<Bc(1,p))throw new RangeError(mt("invalid argument. Ninth argument must be greater than or equal to max(1,%d). Value: `%d`.",p,u));if(f<Bc(1,m))throw new RangeError(mt("invalid argument. Eleventh argument must be greater than or equal to max(1,%d). Value: `%d`.",m,f));if(r==="row-major"?h=o:h=t,y<Bc(1,h))throw new RangeError(mt("invalid argument. Fourteenth argument must be greater than or equal to max(1,%d). Value: `%d`.",h,y));return r==="column-major"?(g=1,b=u,S=1,w=f,A=1,_=y):(g=u,b=1,S=f,w=1,A=y,_=1),QJr(e,a,t,o,i,n,s,g,b,0,v,S,w,0,l,d,A,_,0)}sK.exports=rXr});var lK=c((Bhe,fK)=>{"use strict";var vK=Nc(),$o=pr(),eXr=kc();function aXr(r,e,a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b){if(!vK(r))throw new TypeError($o("invalid argument. First argument must be a valid transpose operation. Value: `%s`.",r));if(!vK(e))throw new TypeError($o("invalid argument. Second argument must be a valid transpose operation. Value: `%s`.",e));if(a<0)throw new RangeError($o("invalid argument. Third argument must be a nonnegative integer. Value: `%d`.",a));if(t<0)throw new RangeError($o("invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.",a));if(o<0)throw new RangeError($o("invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.",o));return eXr(r,e,a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b)}fK.exports=aXr});var pK=c((Fhe,dK)=>{"use strict";var tXr=Ir(),cK=uK(),iXr=lK();tXr(cK,"ndarray",iXr);dK.exports=cK});var lXr={};WK(lXr,{NDArray:()=>Ne,__version__:()=>fXr,absolute:()=>FK,arange:()=>wK,array:()=>et,asarray:()=>TK,copy:()=>jK,empty:()=>zc,empty_like:()=>NK,eye:()=>Rc,floor_divide:()=>UK,full:()=>Vc,full_like:()=>DK,geomspace:()=>AK,identity:()=>_K,linspace:()=>SK,logspace:()=>EK,mod:()=>VK,negative:()=>RK,ones:()=>Fc,ones_like:()=>OK,positive:()=>CK,power:()=>BK,reciprocal:()=>PK,sign:()=>zK,sqrt:()=>kK,zeros:()=>Us,zeros_like:()=>IK});var ve=ra(gc(),1),bK=ra(yc(),1),xK=ra(Ce(),1);function JJ(r){if(!r.includes(":")){if(r.includes("."))throw new Error(`Invalid slice index: "${r}" (must be integer)`);let i=parseInt(r,10);if(isNaN(i))throw new Error(`Invalid slice index: "${r}"`);return{start:i,stop:null,step:1,isIndex:!0}}let e=r.split(":");if(e.length>3)throw new Error(`Invalid slice notation: "${r}" (too many colons)`);let a=e[0]===""?null:parseInt(e[0],10),t=e[1]===""||e[1]===void 0?null:parseInt(e[1],10),o=e[2]===""||e[2]===void 0?1:parseInt(e[2],10);if(a!==null&&isNaN(a))throw new Error(`Invalid start index in slice: "${r}"`);if(t!==null&&isNaN(t))throw new Error(`Invalid stop index in slice: "${r}"`);if(isNaN(o))throw new Error(`Invalid step in slice: "${r}"`);if(o===0)throw new Error("Slice step cannot be zero");return{start:a,stop:t,step:o,isIndex:!1}}function XJ(r,e){let{start:a,stop:t}=r,{step:o,isIndex:i}=r;if(i){if(a===null)throw new Error("Index cannot be null");let n=a<0?e+a:a;if(n<0||n>=e)throw new Error(`Index ${a} is out of bounds for size ${e}`);return{start:n,stop:n+1,step:1,isIndex:!0}}return o>0?(a===null&&(a=0),t===null&&(t=e)):(a===null&&(a=e-1),t===null&&(t=-e-1)),a<0&&(a=e+a),t<0&&(t=e+t),a=Math.max(0,Math.min(a,e)),t=Math.max(-1,Math.min(t,e)),{start:a,stop:t,step:o,isIndex:!1}}var Qe="float64";function je(r){switch(r){case"float64":return Float64Array;case"float32":return Float32Array;case"int64":return BigInt64Array;case"int32":return Int32Array;case"int16":return Int16Array;case"int8":return Int8Array;case"uint64":return BigUint64Array;case"uint32":return Uint32Array;case"uint16":return Uint16Array;case"uint8":return Uint8Array;case"bool":return Uint8Array;default:throw new Error(`Unknown dtype: ${r}`)}}function KJ(r){return r==="float64"||r==="float32"}function Nr(r){return r==="int64"||r==="uint64"}function Rs(r,e){if(r===e)return r;if(r==="bool")return e;if(e==="bool")return r;if(KJ(r)||KJ(e)){if(r==="float64"||e==="float64")return"float64";if(r==="float32"){let v=e;return v==="int32"||v==="int64"||v==="uint32"||v==="uint64"?"float64":"float32"}if(e==="float32"){let v=r;return v==="int32"||v==="int64"||v==="uint32"||v==="uint64"?"float64":"float32"}return"float32"}let a=r.startsWith("int"),t=e.startsWith("int"),o=r.startsWith("uint"),i=e.startsWith("uint"),n=v=>v.includes("64")?64:v.includes("32")?32:v.includes("16")?16:v.includes("8")?8:0,s=n(r),u=n(e);if(r==="int64"&&e==="uint64"||r==="uint64"&&e==="int64")return"float64";if(a&&i&&s===u){if(s===8)return"int16";if(s===16)return"int32";if(s===32)return"int64"}if(o&&t&&s===u){if(u===8)return"int16";if(u===16)return"int32";if(u===32)return"int64"}if(a&&t||o&&i){let v=Math.max(s,u);return a?v===64?"int64":v===32?"int32":v===16?"int16":"int8":v===64?"uint64":v===32?"uint32":v===16?"uint16":"uint8"}return a&&i?s>u?r:u===8?"int16":u===16?"int32":u===32?"int64":"float64":o&&t?u>s?e:s===8?"int16":s===16?"int32":s===32?"int64":"float64":"float64"}function ue(r){return r==="int64"||r==="uint64"?"generic":r}var Mo=ra(ma(),1),HJ=ra(Ra(),1),ZJ=ra(oe(),1),QJ=ra(Xa(),1),rX=ra(zn(),1),eX=ra(cc(),1),aX=ra(vt(),1);var Dr=class r{constructor(e,a){this._stdlib=e,this._dtype=a||(0,HJ.default)(e)}get shape(){return Array.from((0,ZJ.default)(this._stdlib))}get ndim(){return(0,rX.default)(this._stdlib)}get size(){return(0,eX.default)(this._stdlib)}get dtype(){return this._dtype}get data(){return(0,aX.default)(this._stdlib)}get strides(){return Array.from((0,QJ.default)(this._stdlib))}get stdlib(){return this._stdlib}get isCContiguous(){let e=this.shape,a=this.strides,t=e.length;if(t===0)return!0;if(t===1)return a[0]===1;let o=1;for(let i=t-1;i>=0;i--){if(a[i]!==o)return!1;o*=e[i]}return!0}get isFContiguous(){let e=this.shape,a=this.strides,t=e.length;if(t===0)return!0;if(t===1)return a[0]===1;let o=1;for(let i=0;i<t;i++){if(a[i]!==o)return!1;o*=e[i]}return!0}copy(){let e=Array.from(this.shape),a=this.data,t=this._dtype,o=je(t);if(!o)throw new Error(`Cannot copy array with dtype ${t}`);if(Nr(t)){let i=new o(this.size),n=a;for(let u=0;u<this.size;u++)i[u]=n[u];let s=(0,Mo.default)(ue(t),i,e,this._computeStrides(e),0,"row-major");return new r(s,t)}else{let i=new o(this.size),n=a;i.set(n);let s=(0,Mo.default)(ue(t),i,e,this._computeStrides(e),0,"row-major");return new r(s,t)}}static fromStdlib(e,a){return new r(e,a)}static fromData(e,a,t){let o=r._computeStrides(a),i=(0,Mo.default)(ue(t),e,a,o,0,"row-major");return new r(i,t)}static zeros(e,a=Qe){let t=e.reduce((s,u)=>s*u,1),o=je(a);if(!o)throw new Error(`Cannot create array with dtype ${a}`);let i=new o(t),n=(0,Mo.default)(ue(a),i,e,r._computeStrides(e),0,"row-major");return new r(n,a)}static ones(e,a=Qe){let t=r.zeros(e,a),o=t.data;if(Nr(a)){let i=o;for(let n=0;n<t.size;n++)i[n]=BigInt(1)}else{let i=o;for(let n=0;n<t.size;n++)i[n]=1}return t}_computeStrides(e){return r._computeStrides(e)}static _computeStrides(e){let a=new Array(e.length),t=1;for(let o=e.length-1;o>=0;o--)a[o]=t,t*=e[o];return a}};var bc=ra(tl(),1);function Ca(r,e,a,t){let o,i;try{[o,i]=(0,bc.default)([r.stdlib,e.stdlib])}catch{throw new Error(`operands could not be broadcast together with shapes ${JSON.stringify(r.shape)} ${JSON.stringify(e.shape)}`)}let n=Rs(r.dtype,e.dtype),s=Array.from(o.shape),u=Dr.zeros(s,n),v=u.data,f=u.size;if(Nr(n)){let l=v;for(let d=0;d<f;d++){let y=o.iget(d),p=i.iget(d),m=typeof y=="bigint"?y:BigInt(Math.round(y)),h=typeof p=="bigint"?p:BigInt(Math.round(p));t==="add"?l[d]=m+h:t==="subtract"?l[d]=m-h:t==="multiply"?l[d]=m*h:t==="divide"?l[d]=m/h:l[d]=BigInt(Math.round(a(Number(m),Number(h))))}}else{let l=Nr(r.dtype)||Nr(e.dtype);for(let d=0;d<f;d++){let y=o.iget(d),p=i.iget(d),m=Number(y),h=Number(p);v[d]=a(m,h)}}return u}function kt(r,e,a){let t,o;try{[t,o]=(0,bc.default)([r.stdlib,e.stdlib])}catch{throw new Error(`operands could not be broadcast together with shapes ${JSON.stringify(r.shape)} ${JSON.stringify(e.shape)}`)}let i=Array.from(t.shape),n=i.reduce((v,f)=>v*f,1),s=new Uint8Array(n),u=Nr(r.dtype)||Nr(e.dtype);for(let v=0;v<n;v++){let f=t.iget(v),l=o.iget(v),d=Number(f),y=Number(l);s[v]=a(d,y)?1:0}return Dr.fromData(s,i,"bool")}function tX(r,e,a=!0){let t=r.dtype,o=Array.from(r.shape),i=r.size,s=a?t:t!=="float32"&&t!=="float64"?"float64":t,u=Dr.zeros(o,s),v=u.data,f=r.data;if(Nr(t))if(Nr(s)){let l=v;for(let d=0;d<i;d++){let y=Number(f[d]);l[d]=BigInt(Math.round(e(y)))}}else for(let l=0;l<i;l++)v[l]=e(Number(f[l]));else for(let l=0;l<i;l++)v[l]=e(Number(f[l]));return u}function iX(r,e){return typeof e=="number"?sJr(r,e):Ca(r,e,(a,t)=>a+t,"add")}function oX(r,e){return typeof e=="number"?uJr(r,e):Ca(r,e,(a,t)=>a-t,"subtract")}function nX(r,e){return typeof e=="number"?vJr(r,e):Ca(r,e,(a,t)=>a*t,"multiply")}function sX(r,e){if(typeof e=="number")return fJr(r,e);let a=r.dtype==="float64",t=e.dtype==="float64",o=r.dtype==="float32",i=e.dtype==="float32";if(a||t){let u=a?r:Ri(r,"float64"),v=t?e:Ri(e,"float64");return Ca(u,v,(f,l)=>f/l,"divide")}if(o||i){let u=o?r:Ri(r,"float32"),v=i?e:Ri(e,"float32");return Ca(u,v,(f,l)=>f/l,"divide")}let n=Ri(r,"float64"),s=Ri(e,"float64");return Ca(n,s,(u,v)=>u/v,"divide")}function Ri(r,e){let a=Dr.zeros(Array.from(r.shape),e),t=r.size,o=r.data,i=a.data;for(let n=0;n<t;n++)i[n]=Number(o[n]);return a}function sJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Dr.zeros(t,a),s=n.data;if(Nr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)v[l]=u[l]+f}else for(let u=0;u<i;u++)s[u]=Number(o[u])+e;return n}function uJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Dr.zeros(t,a),s=n.data;if(Nr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)v[l]=u[l]-f}else for(let u=0;u<i;u++)s[u]=Number(o[u])-e;return n}function vJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Dr.zeros(t,a),s=n.data;if(Nr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)v[l]=u[l]*f}else for(let u=0;u<i;u++)s[u]=Number(o[u])*e;return n}function fJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,s=a!=="float32"&&a!=="float64"?"float64":a,u=Dr.zeros(t,s),v=u.data;if(Nr(a))for(let f=0;f<i;f++)v[f]=Number(o[f])/e;else for(let f=0;f<i;f++)v[f]=Number(o[f])/e;return u}function uX(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Dr.zeros(a,e),n=i.data;if(Nr(e)){let s=t,u=n;for(let v=0;v<o;v++){let f=s[v];u[v]=f<0n?-f:f}}else for(let s=0;s<o;s++)n[s]=Math.abs(Number(t[s]));return i}function vX(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Dr.zeros(a,e),n=i.data;if(Nr(e)){let s=t,u=n;for(let v=0;v<o;v++)u[v]=-s[v]}else for(let s=0;s<o;s++)n[s]=-Number(t[s]);return i}function fX(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Dr.zeros(a,e),n=i.data;if(Nr(e)){let s=t,u=n;for(let v=0;v<o;v++){let f=s[v];u[v]=f>0n?1n:f<0n?-1n:0n}}else for(let s=0;s<o;s++){let u=Number(t[s]);n[s]=u>0?1:u<0?-1:0}return i}function lX(r,e){return typeof e=="number"?lJr(r,e):Ca(r,e,(a,t)=>(a%t+t)%t,"mod")}function lJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Dr.zeros(t,a),s=n.data;if(Nr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++){let d=u[l];v[l]=(d%f+f)%f}}else for(let u=0;u<i;u++){let v=Number(o[u]);s[u]=(v%e+e)%e}return n}function cX(r,e){return typeof e=="number"?cJr(r,e):Ca(r,e,(a,t)=>Math.floor(a/t),"floor_divide")}function cJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Dr.zeros(t,a),s=n.data;if(Nr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)v[l]=u[l]/f}else for(let u=0;u<i;u++)s[u]=Math.floor(Number(o[u])/e);return n}function dX(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Dr.zeros(a,e),n=i.data;for(let s=0;s<o;s++)n[s]=t[s];return i}function pX(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,n=e!=="float32"&&e!=="float64"?"float64":e,s=Dr.zeros(a,n),u=s.data;if(Nr(e))for(let v=0;v<o;v++)u[v]=1/Number(t[v]);else for(let v=0;v<o;v++)u[v]=1/Number(t[v]);return s}function yX(r,e){return typeof e=="number"?pJr(r,e):kt(r,e,(a,t)=>a>t)}function mX(r,e){return typeof e=="number"?yJr(r,e):kt(r,e,(a,t)=>a>=t)}function hX(r,e){return typeof e=="number"?mJr(r,e):kt(r,e,(a,t)=>a<t)}function gX(r,e){return typeof e=="number"?hJr(r,e):kt(r,e,(a,t)=>a<=t)}function bX(r,e){return typeof e=="number"?gJr(r,e):kt(r,e,(a,t)=>a===t)}function xX(r,e){return typeof e=="number"?bJr(r,e):kt(r,e,(a,t)=>a!==t)}function xc(r,e,a=1e-5,t=1e-8){return typeof e=="number"?xJr(r,e,a,t):kt(r,e,(o,i)=>{let n=Math.abs(o-i),s=t+a*Math.abs(i);return n<=s})}function qX(r,e,a=1e-5,t=1e-8){let o=xc(r,e,a,t),i=o.data;for(let n=0;n<o.size;n++)if(i[n]===0)return!1;return!0}function pJr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]>e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function yJr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]>=e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function mJr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]<e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function hJr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]<=e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function gJr(r,e){let a=new Uint8Array(r.size),t=r.data,o=r.dtype;if(Nr(o)){let i=BigInt(Math.round(e)),n=t;for(let s=0;s<r.size;s++)a[s]=n[s]===i?1:0}else for(let i=0;i<r.size;i++)a[i]=t[i]===e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function bJr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]!==e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function xJr(r,e,a,t){let o=new Uint8Array(r.size),i=r.data,n=r.dtype;if(Nr(n)){let s=i;for(let u=0;u<r.size;u++){let v=Number(s[u]),f=Math.abs(v-e),l=t+a*Math.abs(e);o[u]=f<=l?1:0}}else for(let s=0;s<r.size;s++){let u=Number(i[s]),v=Math.abs(u-e),f=t+a*Math.abs(e);o[s]=v<=f?1:0}return Dr.fromData(o,Array.from(r.shape),"bool")}function zi(r){let e=new Array(r.length),a=1;for(let t=r.length-1;t>=0;t--)e[t]=a,a*=r[t];return e}function Ie(r,e){let a=0,t=1;for(let o=r.length-1;o>=0;o--)a+=r[o]*t,t*=e[o];return a}function Oe(r,e,a,t){let o=t.length,i=new Array(o),n=Array.from(t).filter((u,v)=>v!==e),s=r;for(let u=n.length-1;u>=0;u--)i[u>=e?u+1:u]=s%n[u],s=Math.floor(s/n[u]);return i[e]=a,i}function Go(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0)if(Nr(t)){let p=s,m=BigInt(0);for(let h=0;h<n;h++)m+=p[h];return Number(m)}else{let p=0;for(let m=0;m<n;m++)p+=Number(s[m]);return p}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((p,m)=>m!==u);if(v.length===0)return Go(r);let f=Dr.zeros(v,t),l=f.data,d=o[u],y=v.reduce((p,m)=>p*m,1);if(Nr(t)){let p=s,m=l;for(let h=0;h<y;h++){let g=BigInt(0);for(let b=0;b<d;b++){let S=Oe(h,u,b,o),w=Ie(S,o);g+=p[w]}m[h]=g}}else for(let p=0;p<y;p++){let m=0;for(let h=0;h<d;h++){let g=Oe(p,u,h,o),b=Ie(g,o);m+=Number(s[b])}l[p]=m}if(a){let p=[...o];return p[u]=1,Dr.fromData(l,p,t)}return f}function qc(r,e,a=!1){let t=r.dtype,o=r.shape;if(e===void 0)return Go(r)/r.size;let i=e;if(i<0&&(i=o.length+i),i<0||i>=o.length)throw new Error(`axis ${e} is out of bounds for array of dimension ${o.length}`);let n=Go(r,e,a);if(typeof n=="number")return n/o[i];let s=o[i],u=t;(Nr(t)||t.startsWith("int")||t.startsWith("uint"))&&(u="float64");let v=Dr.zeros(Array.from(n.shape),u),f=v.data,l=n.data;if(Nr(t)){let d=l;for(let y=0;y<f.length;y++)f[y]=Number(d[y])/s}else for(let d=0;d<f.length;d++)f[d]=Number(l[d])/s;return v}function wc(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0){if(n===0)throw new Error("max of empty array");let p=s[0];for(let m=1;m<n;m++)s[m]>p&&(p=s[m]);return Number(p)}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((p,m)=>m!==u);if(v.length===0)return wc(r);let f=Dr.zeros(v,t),l=f.data,d=o[u],y=v.reduce((p,m)=>p*m,1);if(Nr(t)){let p=s,m=l;for(let h=0;h<y;h++){let g=Oe(h,u,0,o),b=Ie(g,o),S=p[b];for(let w=1;w<d;w++){let A=Oe(h,u,w,o),_=Ie(A,o),x=p[_];x>S&&(S=x)}m[h]=S}}else for(let p=0;p<y;p++){let m=-1/0;for(let h=0;h<d;h++){let g=Oe(p,u,h,o),b=Ie(g,o),S=Number(s[b]);S>m&&(m=S)}l[p]=m}if(a){let p=[...o];return p[u]=1,Dr.fromData(l,p,t)}return f}function Sc(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0)if(Nr(t)){let p=s,m=BigInt(1);for(let h=0;h<n;h++)m*=p[h];return Number(m)}else{let p=1;for(let m=0;m<n;m++)p*=Number(s[m]);return p}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((p,m)=>m!==u);if(v.length===0)return Sc(r);let f=Dr.zeros(v,t),l=f.data,d=o[u],y=v.reduce((p,m)=>p*m,1);if(Nr(t)){let p=s,m=l;for(let h=0;h<y;h++){let g=BigInt(1);for(let b=0;b<d;b++){let S=Oe(h,u,b,o),w=Ie(S,o);g*=p[w]}m[h]=g}}else for(let p=0;p<y;p++){let m=1;for(let h=0;h<d;h++){let g=Oe(p,u,h,o),b=Ie(g,o);m*=Number(s[b])}l[p]=m}if(a){let p=[...o];return p[u]=1,Dr.fromData(l,p,t)}return f}function Ec(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0){if(n===0)throw new Error("min of empty array");let p=s[0];for(let m=1;m<n;m++)s[m]<p&&(p=s[m]);return Number(p)}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((p,m)=>m!==u);if(v.length===0)return Ec(r);let f=Dr.zeros(v,t),l=f.data,d=o[u],y=v.reduce((p,m)=>p*m,1);if(Nr(t)){let p=s,m=l;for(let h=0;h<y;h++){let g=Oe(h,u,0,o),b=Ie(g,o),S=p[b];for(let w=1;w<d;w++){let A=Oe(h,u,w,o),_=Ie(A,o),x=p[_];x<S&&(S=x)}m[h]=S}}else for(let p=0;p<y;p++){let m=1/0;for(let h=0;h<d;h++){let g=Oe(p,u,h,o),b=Ie(g,o),S=Number(s[b]);S<m&&(m=S)}l[p]=m}if(a){let p=[...o];return p[u]=1,Dr.fromData(l,p,t)}return f}function Ac(r,e){let a=r.dtype,t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){if(i===0)throw new Error("argmin of empty array");let y=n[0],p=0;for(let m=1;m<i;m++)n[m]<y&&(y=n[m],p=m);return p}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((y,p)=>p!==s);if(u.length===0)return Ac(r);let v=Dr.zeros(u,"int32"),f=v.data,l=t[s],d=u.reduce((y,p)=>y*p,1);if(Nr(a)){let y=n;for(let p=0;p<d;p++){let m=Oe(p,s,0,t),h=Ie(m,t),g=y[h],b=0;for(let S=1;S<l;S++){let w=Oe(p,s,S,t),A=Ie(w,t),_=y[A];_<g&&(g=_,b=S)}f[p]=b}}else for(let y=0;y<d;y++){let p=1/0,m=0;for(let h=0;h<l;h++){let g=Oe(y,s,h,t),b=Ie(g,t),S=Number(n[b]);S<p&&(p=S,m=h)}f[y]=m}return v}function _c(r,e){let a=r.dtype,t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){if(i===0)throw new Error("argmax of empty array");let y=n[0],p=0;for(let m=1;m<i;m++)n[m]>y&&(y=n[m],p=m);return p}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((y,p)=>p!==s);if(u.length===0)return _c(r);let v=Dr.zeros(u,"int32"),f=v.data,l=t[s],d=u.reduce((y,p)=>y*p,1);if(Nr(a)){let y=n;for(let p=0;p<d;p++){let m=Oe(p,s,0,t),h=Ie(m,t),g=y[h],b=0;for(let S=1;S<l;S++){let w=Oe(p,s,S,t),A=Ie(w,t),_=y[A];_>g&&(g=_,b=S)}f[p]=b}}else for(let y=0;y<d;y++){let p=-1/0,m=0;for(let h=0;h<l;h++){let g=Oe(y,s,h,t),b=Ie(g,t),S=Number(n[b]);S>p&&(p=S,m=h)}f[y]=m}return v}function Tc(r,e,a=0,t=!1){let o=r.shape,i=o.length,n=r.size,s=r.data,u=qc(r,e,t);if(e===void 0){let g=u,b=0;for(let S=0;S<n;S++){let w=Number(s[S])-g;b+=w*w}return b/(n-a)}let v=e;if(v<0&&(v=i+v),v<0||v>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let f=o[v],l=u,d=l.data,y=t?l.shape:Array.from(o).filter((g,b)=>b!==v),p=Dr.zeros(Array.from(y),"float64"),m=p.data,h=y.reduce((g,b)=>g*b,1);for(let g=0;g<h;g++){let b=0,S=Number(d[g]);for(let w=0;w<f;w++){let A=Oe(g,v,w,o),_=Ie(A,o),x=Number(s[_])-S;b+=x*x}m[g]=b/(f-a)}return p}function wX(r,e,a=0,t=!1){let o=Tc(r,e,a,t);if(typeof o=="number")return Math.sqrt(o);let i=Dr.zeros(Array.from(o.shape),"float64"),n=o.data,s=i.data;for(let u=0;u<n.length;u++)s[u]=Math.sqrt(Number(n[u]));return i}function jc(r,e,a=!1){let t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){for(let y=0;y<i;y++)if(!n[y])return!1;return!0}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((y,p)=>p!==s);if(u.length===0)return jc(r);let v=Dr.zeros(u,"bool"),f=v.data,l=t[s],d=u.reduce((y,p)=>y*p,1);for(let y=0;y<d;y++){let p=!0;for(let m=0;m<l;m++){let h=Oe(y,s,m,t),g=Ie(h,t);if(!n[g]){p=!1;break}}f[y]=p?1:0}if(a){let y=[...t];return y[s]=1,Dr.fromData(f,y,"bool")}return v}function Ic(r,e,a=!1){let t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){for(let y=0;y<i;y++)if(n[y])return!0;return!1}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((y,p)=>p!==s);if(u.length===0)return Ic(r);let v=Dr.zeros(u,"bool"),f=v.data,l=t[s],d=u.reduce((y,p)=>y*p,1);for(let y=0;y<d;y++){let p=!1;for(let m=0;m<l;m++){let h=Oe(y,s,m,t),g=Ie(h,t);if(n[g]){p=!0;break}}f[y]=p?1:0}if(a){let y=[...t];return y[s]=1,Dr.fromData(f,y,"bool")}return v}var rt=ra(gc(),1);function SX(r,e){let a=r.size,t=r.dtype,o=e.indexOf(-1),i;if(o!==-1){let f=e.reduce((d,y,p)=>p===o?d:d*y,1),l=a/f;if(!Number.isInteger(l))throw new Error(`cannot reshape array of size ${a} into shape ${JSON.stringify(e)}`);i=e.map((d,y)=>y===o?l:d)}else i=e;if(i.reduce((f,l)=>f*l,1)!==a)throw new Error(`cannot reshape array of size ${a} into shape ${JSON.stringify(i)}`);if(r.isCContiguous){let f=r.data,l=rt.default.ndarray(ue(t),f,i,zi(i),0,"row-major");return Dr.fromStdlib(l,t)}let u=r.copy().data,v=rt.default.ndarray(ue(t),u,i,zi(i),0,"row-major");return Dr.fromStdlib(v,t)}function Oc(r){let e=r.stdlib,a=r.shape,t=a.length,o=r.size,i=r.dtype,n=je(i);if(!n)throw new Error(`Cannot flatten array with dtype ${i}`);let s=new n(o),u=0,v=(l,d)=>{if(d===t){let y=e.get(...l);s[u++]=y;return}for(let y=0;y<a[d];y++)l[d]=y,v(l,d+1)};v(new Array(t),0);let f=rt.default.ndarray(ue(i),s,[o],[1],0,"row-major");return Dr.fromStdlib(f,i)}function EX(r){let e=r.size,a=r.dtype;if(r.isCContiguous){let t=r.data,o=rt.default.ndarray(ue(a),t,[e],[1],0,"row-major");return Dr.fromStdlib(o,a)}return Oc(r)}function AX(r,e){let a=r.shape,t=a.length,o=r.strides,i=r.data,n=r.dtype,s=r.stdlib,u;if(e===void 0)u=Array.from({length:t},(y,p)=>t-1-p);else{if(e.length!==t)throw new Error(`axes must have length ${t}, got ${e.length}`);let y=new Set;for(let p of e){let m=p<0?t+p:p;if(m<0||m>=t)throw new Error(`axis ${p} is out of bounds for array of dimension ${t}`);if(y.has(m))throw new Error("repeated axis in transpose");y.add(m)}u=e.map(p=>p<0?t+p:p)}let v=u.map(y=>a[y]),f=Array.from(o),l=u.map(y=>f[y]),d=rt.default.ndarray(ue(n),i,v,l,rt.default.offset(s),"row-major");return Dr.fromStdlib(d,n)}function _X(r,e){let a=r.shape,t=a.length,o=r.data,i=r.dtype;if(e===void 0){let n=Array.from(a).filter(v=>v!==1);n.length===0&&n.push(1);let s=zi(n),u=rt.default.ndarray(ue(i),o,n,s,0,"row-major");return Dr.fromStdlib(u,i)}else{let n=e<0?t+e:e;if(n<0||n>=t)throw new Error(`axis ${e} is out of bounds for array of dimension ${t}`);if(a[n]!==1)throw new Error(`cannot select an axis which has size not equal to one (axis ${e} has size ${a[n]})`);let s=Array.from(a).filter((f,l)=>l!==n),u=zi(s),v=rt.default.ndarray(ue(i),o,s,u,0,"row-major");return Dr.fromStdlib(v,i)}}function TX(r,e){let a=r.shape,t=a.length,o=r.data,i=r.dtype,n=e;if(n<0&&(n=t+e+1),n<0||n>t)throw new Error(`axis ${e} is out of bounds for array of dimension ${t+1}`);let s=[...Array.from(a)];s.splice(n,0,1);let u=zi(s),v=rt.default.ndarray(ue(i),o,s,u,0,"row-major");return Dr.fromStdlib(v,i)}var yK=ra(pK(),1);function mK(r,e){if(r.ndim!==2||e.ndim!==2)throw new Error("matmul requires 2D arrays");let[a=0,t=0]=r.shape,[o=0,i=0]=e.shape;if(t!==o)throw new Error(`matmul shape mismatch: (${a},${t}) @ (${o},${i})`);let n=Rs(r.dtype,e.dtype),s=n.startsWith("int")||n.startsWith("uint")||n==="bool"?"float64":n;if(s!=="float64")throw new Error(`matmul currently only supports float64, got ${s}`);let u=r.dtype==="float64"?r.data:Float64Array.from(Array.from(r.data).map(Number)),v=e.dtype==="float64"?e.data:Float64Array.from(Array.from(e.data).map(Number)),f=Dr.zeros([a,i],"float64");return(0,yK.default)("row-major","no-transpose","no-transpose",a,i,t,1,u,t,v,i,0,f.data,i),f}function hK(r){return tX(r,Math.sqrt,!1)}function gK(r,e){return typeof e=="number"?nXr(r,e):Ca(r,e,Math.pow,"power")}function nXr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,u=a!=="float32"&&a!=="float64"&&(e<0||!Number.isInteger(e))?"float64":a,v=Dr.zeros(t,u),f=v.data;if(Nr(a))if(Nr(u)&&Number.isInteger(e)&&e>=0){let l=o,d=f;for(let y=0;y<i;y++)d[y]=l[y]**BigInt(e)}else for(let l=0;l<i;l++)f[l]=Math.pow(Number(o[l]),e);else for(let l=0;l<i;l++)f[l]=Math.pow(Number(o[l]),e);return v}var Ne=class r{constructor(e,a,t){this._data=e,this._dtype=a,this._base=t}get _storage(){return new Dr(this._data,this._dtype)}static _fromStorage(e,a){return new r(e.stdlib,e.dtype,a)}get shape(){return Array.from(ve.default.shape(this._data))}get ndim(){return ve.default.ndims(this._data)}get size(){return ve.default.numel(this._data)}get dtype(){return this._dtype||ve.default.dtype(this._data)}get data(){return ve.default.dataBuffer(this._data)}get strides(){return Array.from(ve.default.strides(this._data))}get flags(){let e=this._storage;return{C_CONTIGUOUS:e.isCContiguous,F_CONTIGUOUS:e.isFContiguous,OWNDATA:this._base===void 0}}get base(){return this._base??null}get(e){if(e.length!==this.ndim)throw new Error(`Index has ${e.length} dimensions, but array has ${this.ndim} dimensions`);let a=e.map((i,n)=>{let s=i;if(s<0&&(s=this.shape[n]+s),s<0||s>=this.shape[n])throw new Error(`Index ${i} is out of bounds for axis ${n} with size ${this.shape[n]}`);return s}),t=this._data.get(...a),o=this.dtype;return Nr(o)?typeof t=="bigint"?t:BigInt(Math.round(t)):Number(t)}set(e,a){if(e.length!==this.ndim)throw new Error(`Index has ${e.length} dimensions, but array has ${this.ndim} dimensions`);let t=e.map((n,s)=>{let u=n;if(u<0&&(u=this.shape[s]+u),u<0||u>=this.shape[s])throw new Error(`Index ${n} is out of bounds for axis ${s} with size ${this.shape[s]}`);return u}),o=this.dtype,i;Nr(o)?i=typeof a=="bigint"?a:BigInt(Math.round(a)):o==="bool"?i=a?1:0:i=Number(a),this._data.set(...t,i)}copy(){let e=this.dtype,a=Array.from(this.shape),t=this.data,o=je(e);if(!o)throw new Error(`Cannot copy array with dtype ${e}`);if(Nr(e)){let i=new o(this.size),n=t;for(let u=0;u<this.size;u++)i[u]=n[u];let s=ve.default.ndarray(ue(e),i,a,qa(a),0,"row-major");return new r(s,e)}else{let i=new o(this.size),n=t;i.set(n);let s=ve.default.ndarray(ue(e),i,a,qa(a),0,"row-major");return new r(s,e)}}astype(e,a=!0){let t=this.dtype;if(t===e&&!a)return this;if(t===e&&a)return et(this.toArray(),e);let o=Array.from(this.shape),i=this.size,n=je(e);if(!n)throw new Error(`Cannot convert to dtype ${e}`);let s=new n(i),u=this.data;if(Nr(t)&&!Nr(e)){let f=u;if(e==="bool")for(let l=0;l<i;l++)s[l]=f[l]!==BigInt(0)?1:0;else for(let l=0;l<i;l++)s[l]=Number(f[l])}else if(!Nr(t)&&Nr(e)){let f=u;for(let l=0;l<i;l++)s[l]=BigInt(Math.round(Number(f[l])))}else if(e==="bool"){let f=u;for(let l=0;l<i;l++)s[l]=f[l]!==0?1:0}else if(t==="bool"&&!Nr(e)){let f=u;for(let l=0;l<i;l++)s[l]=f[l]}else if(!Nr(t)&&!Nr(e)){let f=u;for(let l=0;l<i;l++)s[l]=f[l]}else{let f=u;for(let l=0;l<i;l++)s[l]=f[l]}let v=ve.default.ndarray(ue(e),s,o,qa(o),0,"row-major");return new r(v,e)}add(e){let a=typeof e=="number"?e:e._storage,t=iX(this._storage,a);return r._fromStorage(t)}subtract(e){let a=typeof e=="number"?e:e._storage,t=oX(this._storage,a);return r._fromStorage(t)}multiply(e){let a=typeof e=="number"?e:e._storage,t=nX(this._storage,a);return r._fromStorage(t)}divide(e){let a=typeof e=="number"?e:e._storage,t=sX(this._storage,a);return r._fromStorage(t)}mod(e){let a=typeof e=="number"?e:e._storage,t=lX(this._storage,a);return r._fromStorage(t)}floor_divide(e){let a=typeof e=="number"?e:e._storage,t=cX(this._storage,a);return r._fromStorage(t)}positive(){let e=dX(this._storage);return r._fromStorage(e)}reciprocal(){let e=pX(this._storage);return r._fromStorage(e)}sqrt(){let e=hK(this._storage);return r._fromStorage(e)}power(e){let a=typeof e=="number"?e:e._storage,t=gK(this._storage,a);return r._fromStorage(t)}absolute(){let e=uX(this._storage);return r._fromStorage(e)}negative(){let e=vX(this._storage);return r._fromStorage(e)}sign(){let e=fX(this._storage);return r._fromStorage(e)}greater(e){let a=typeof e=="number"?e:e._storage,t=yX(this._storage,a);return r._fromStorage(t)}greater_equal(e){let a=typeof e=="number"?e:e._storage,t=mX(this._storage,a);return r._fromStorage(t)}less(e){let a=typeof e=="number"?e:e._storage,t=hX(this._storage,a);return r._fromStorage(t)}less_equal(e){let a=typeof e=="number"?e:e._storage,t=gX(this._storage,a);return r._fromStorage(t)}equal(e){let a=typeof e=="number"?e:e._storage,t=bX(this._storage,a);return r._fromStorage(t)}not_equal(e){let a=typeof e=="number"?e:e._storage,t=xX(this._storage,a);return r._fromStorage(t)}isclose(e,a=1e-5,t=1e-8){let o=typeof e=="number"?e:e._storage,i=xc(this._storage,o,a,t);return r._fromStorage(i)}allclose(e,a=1e-5,t=1e-8){let o=typeof e=="number"?e:e._storage;return qX(this._storage,o,a,t)}sum(e,a=!1){let t=Go(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}mean(e,a=!1){let t=qc(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}max(e,a=!1){let t=wc(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}min(e,a=!1){let t=Ec(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}prod(e,a=!1){let t=Sc(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}argmin(e){let a=Ac(this._storage,e);return typeof a=="number"?a:r._fromStorage(a)}argmax(e){let a=_c(this._storage,e);return typeof a=="number"?a:r._fromStorage(a)}var(e,a=0,t=!1){let o=Tc(this._storage,e,a,t);return typeof o=="number"?o:r._fromStorage(o)}std(e,a=0,t=!1){let o=wX(this._storage,e,a,t);return typeof o=="number"?o:r._fromStorage(o)}all(e,a=!1){let t=jc(this._storage,e,a);return typeof t=="boolean"?t:r._fromStorage(t)}any(e,a=!1){let t=Ic(this._storage,e,a);return typeof t=="boolean"?t:r._fromStorage(t)}reshape(...e){let a=e.length===1&&Array.isArray(e[0])?e[0]:e,t=SX(this._storage,a),i=t.data===this.data?this._base??this:void 0;return r._fromStorage(t,i)}flatten(){let e=Oc(this._storage);return r._fromStorage(e)}ravel(){let e=EX(this._storage),t=e.data===this.data?this._base??this:void 0;return r._fromStorage(e,t)}transpose(e){let a=AX(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}squeeze(e){let a=_X(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}expand_dims(e){let a=TX(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}matmul(e){let a=mK(this._storage,e._storage);return r._fromStorage(a)}slice(...e){if(e.length===0)return this;if(e.length>this.ndim)throw new Error(`Too many indices for array: array is ${this.ndim}-dimensional, but ${e.length} were indexed`);let a=e.map((n,s)=>{let u=JJ(n);return XJ(u,this.shape[s])});for(;a.length<this.ndim;)a.push({start:0,stop:this.shape[a.length],step:1,isIndex:!1});let t=a.map((n,s)=>{if(n.isIndex)return n.start;{let u=n.start,v=n.stop;return n.step>0?(u===0&&(u=null),v===this.shape[s]&&(v=null)):(u===this.shape[s]-1&&(u=null),v===-1&&(v=null)),new xK.default(u,v,n.step)}}),o=(0,bK.default)(this._data,...t),i=this._base??this;return new r(o,this._dtype,i)}row(e){if(this.ndim<2)throw new Error("row() requires at least 2 dimensions");return this.slice(String(e),":")}col(e){if(this.ndim<2)throw new Error("col() requires at least 2 dimensions");return this.slice(":",String(e))}rows(e,a){if(this.ndim<2)throw new Error("rows() requires at least 2 dimensions");return this.slice(`${e}:${a}`,":")}cols(e,a){if(this.ndim<2)throw new Error("cols() requires at least 2 dimensions");return this.slice(":",`${e}:${a}`)}toString(){return`NDArray(shape=${JSON.stringify(this.shape)}, dtype=${this.dtype})`}toArray(){return this.ndim===0?this._data.get():ve.default.ndarray2array(this._data)}};function Us(r,e=Qe){let a=je(e);if(!a)throw new Error(`Cannot create zeros array with dtype ${e}`);let t=r.reduce((n,s)=>n*s,1),o=new a(t),i=ve.default.ndarray(ue(e),o,r,qa(r),0,"row-major");return new Ne(i,e)}function qa(r){let e=new Array(r.length),a=1;for(let t=r.length-1;t>=0;t--)e[t]=a,a*=r[t];return e}function Fc(r,e=Qe){let a=je(e);if(!a)throw new Error(`Cannot create ones array with dtype ${e}`);let t=r.reduce((n,s)=>n*s,1),o=new a(t);Nr(e)?o.fill(BigInt(1)):o.fill(1);let i=ve.default.ndarray(ue(e),o,r,qa(r),0,"row-major");return new Ne(i,e)}function uXr(r){let e=[],a=r;for(;Array.isArray(a);)e.push(a.length),a=a[0];return e}function qK(r){return typeof r=="bigint"?!0:Array.isArray(r)?r.some(e=>qK(e)):!1}function vXr(r){let e=[];function a(t){Array.isArray(t)?t.forEach(o=>a(o)):e.push(t)}return a(r),e}function et(r,e){let a=qK(r);if(a&&e&&Nr(e)){let l=uXr(r),d=l.reduce((g,b)=>g*b,1),y=je(e);if(!y)throw new Error(`Cannot create array with dtype ${e}`);let p=new y(d),m=vXr(r);for(let g=0;g<d;g++){let b=m[g];p[g]=typeof b=="bigint"?b:BigInt(Math.round(Number(b)))}let h=ve.default.ndarray(ue(e),p,l,qa(l),0,"row-major");return new Ne(h,e)}if(a&&e===void 0){let l=JSON.parse(JSON.stringify(r,(y,p)=>typeof p=="bigint"?Number(p):p)),d=ve.default.array(l);return new Ne(d)}if(e===void 0){let l=ve.default.array(r);return new Ne(l)}let t=ve.default.array(r);if(ve.default.dtype(t)===e)return new Ne(t);let i=Array.from(ve.default.shape(t)),n=i.reduce((l,d)=>l*d,1),s=je(e);if(!s)throw new Error(`Cannot create array with dtype ${e}`);let u=new s(n),v=ve.default.dataBuffer(t);if(Nr(e))for(let l=0;l<n;l++)u[l]=BigInt(Math.round(Number(v[l])));else if(e==="bool")for(let l=0;l<n;l++)u[l]=v[l]?1:0;else for(let l=0;l<n;l++)u[l]=Number(v[l]);let f=ve.default.ndarray(ue(e),u,i,qa(i),0,"row-major");return new Ne(f,e)}function wK(r,e,a=1,t=Qe){let o=r,i=e;if(e===void 0&&(o=0,i=r),i===void 0)throw new Error("stop is required");let n=Math.max(0,Math.ceil((i-o)/a)),s=je(t);if(!s)throw new Error(`Cannot create arange array with dtype ${t}`);let u=new s(n);if(Nr(t))for(let f=0;f<n;f++)u[f]=BigInt(Math.round(o+f*a));else if(t==="bool")for(let f=0;f<n;f++)u[f]=o+f*a!==0?1:0;else for(let f=0;f<n;f++)u[f]=o+f*a;let v=ve.default.ndarray(ue(t),u,[n],[1],0,"row-major");return new Ne(v,t)}function SK(r,e,a=50,t=Qe){if(a<0)throw new Error("num must be non-negative");if(a===0)return et([],t);if(a===1)return et([r],t);let o=je(t);if(!o)throw new Error(`Cannot create linspace array with dtype ${t}`);let i=new o(a),n=(e-r)/(a-1);if(Nr(t))for(let u=0;u<a;u++)i[u]=BigInt(Math.round(r+u*n));else if(t==="bool")for(let u=0;u<a;u++)i[u]=r+u*n!==0?1:0;else for(let u=0;u<a;u++)i[u]=r+u*n;let s=ve.default.ndarray(ue(t),i,[a],[1],0,"row-major");return new Ne(s,t)}function EK(r,e,a=50,t=10,o=Qe){if(a<0)throw new Error("num must be non-negative");if(a===0)return et([],o);if(a===1)return et([Math.pow(t,r)],o);let i=je(o);if(!i)throw new Error(`Cannot create logspace array with dtype ${o}`);let n=new i(a),s=(e-r)/(a-1);if(Nr(o))for(let v=0;v<a;v++){let f=r+v*s;n[v]=BigInt(Math.round(Math.pow(t,f)))}else if(o==="bool")for(let v=0;v<a;v++){let f=r+v*s;n[v]=Math.pow(t,f)!==0?1:0}else for(let v=0;v<a;v++){let f=r+v*s;n[v]=Math.pow(t,f)}let u=ve.default.ndarray(ue(o),n,[a],[1],0,"row-major");return new Ne(u,o)}function AK(r,e,a=50,t=Qe){if(a<0)throw new Error("num must be non-negative");if(r===0||e===0)throw new Error("Geometric sequence cannot include zero");if(a===0)return et([],t);if(a===1)return et([r],t);let o=Math.sign(r),i=Math.sign(e);if(o!==i)throw new Error("Geometric sequence cannot contain both positive and negative values");let n=je(t);if(!n)throw new Error(`Cannot create geomspace array with dtype ${t}`);let s=new n(a),u=Math.log(Math.abs(r)),f=(Math.log(Math.abs(e))-u)/(a-1);if(Nr(t))for(let d=0;d<a;d++){let y=o*Math.exp(u+d*f);s[d]=BigInt(Math.round(y))}else if(t==="bool")for(let d=0;d<a;d++){let y=o*Math.exp(u+d*f);s[d]=y!==0?1:0}else for(let d=0;d<a;d++){let y=o*Math.exp(u+d*f);s[d]=y}let l=ve.default.ndarray(ue(t),s,[a],[1],0,"row-major");return new Ne(l,t)}function Rc(r,e,a=0,t=Qe){let o=e??r,i=Us([r,o],t),n=i.data;if(Nr(t)){let s=n;for(let u=0;u<r;u++){let v=u+a;v>=0&&v<o&&(s[u*o+v]=BigInt(1))}}else{let s=n;for(let u=0;u<r;u++){let v=u+a;v>=0&&v<o&&(s[u*o+v]=1)}}return i}function zc(r,e=Qe){let a=je(e);if(!a)throw new Error(`Cannot create empty array with dtype ${e}`);let t=r.reduce((n,s)=>n*s,1),o=new a(t),i=ve.default.ndarray(ue(e),o,r,qa(r),0,"row-major");return new Ne(i,e)}function Vc(r,e,a){let t=a;t||(typeof e=="bigint"?t="int64":typeof e=="boolean"?t="bool":Number.isInteger(e)?t="int32":t=Qe);let o=je(t);if(!o)throw new Error(`Cannot create full array with dtype ${t}`);let i=r.reduce((u,v)=>u*v,1),n=new o(i);if(Nr(t)){let u=typeof e=="bigint"?e:BigInt(Math.round(Number(e)));n.fill(u)}else t==="bool"?n.fill(e?1:0):n.fill(Number(e));let s=ve.default.ndarray(ue(t),n,r,qa(r),0,"row-major");return new Ne(s,t)}function _K(r,e=Qe){return Rc(r,r,0,e)}function TK(r,e){if(r instanceof Ne){if(!e||r.dtype===e)return r;let a=Array.from(r.shape),t=r.size,o=je(e);if(!o)throw new Error(`Cannot create array with dtype ${e}`);let i=new o(t),n=r.data;if(Nr(e))for(let u=0;u<t;u++)i[u]=BigInt(Math.round(Number(n[u])));else if(e==="bool")for(let u=0;u<t;u++)i[u]=n[u]?1:0;else for(let u=0;u<t;u++)i[u]=Number(n[u]);let s=ve.default.ndarray(ue(e),i,a,qa(a),0,"row-major");return new Ne(s,e)}return et(r,e)}function jK(r){let e=Array.from(r.shape),a=r.dtype,t=je(a);if(!t)throw new Error(`Cannot copy array with dtype ${a}`);let o=r.size,i=r.data,n=new t(o);if(r.flags.C_CONTIGUOUS)Nr(a),n.set(i);else{let u=Array.from(e),v=qa(u);for(let f=0;f<o;f++){let l=[],d=f;for(let p=0;p<u.length;p++){let m=v[p],h=Math.floor(d/m);l.push(h),d-=h*m}let y=r.get(l);Nr(a),n[f]=y}}let s=ve.default.ndarray(ue(a),n,e,qa(e),0,"row-major");return new Ne(s,a)}function IK(r,e){return Us(Array.from(r.shape),e??r.dtype)}function OK(r,e){return Fc(Array.from(r.shape),e??r.dtype)}function NK(r,e){return zc(Array.from(r.shape),e??r.dtype)}function DK(r,e,a){return Vc(Array.from(r.shape),e,a??r.dtype)}function kK(r){return r.sqrt()}function BK(r,e){return r.power(e)}function FK(r){return r.absolute()}function RK(r){return r.negative()}function zK(r){return r.sign()}function VK(r,e){return r.mod(e)}function UK(r,e){return r.floor_divide(e)}function CK(r){return r.positive()}function PK(r){return r.reciprocal()}var fXr="0.2.0";return JK(lXr);})();
4
4
  /*! Bundled license information:
5
5
 
6
6
  @stdlib/utils/define-property/lib/define_property.js: