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.
- package/README.md +36 -39
- package/dist/numpy-ts.browser.js +2 -2
- package/dist/numpy-ts.esm.js +2 -2
- package/dist/numpy-ts.node.cjs +2 -2
- package/dist/types/core/ndarray.d.ts +40 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal/compute.d.ts +9 -0
- package/dist/types/ops/arithmetic.d.ts +59 -0
- package/dist/types/ops/exponential.d.ts +28 -0
- package/package.json +1 -3
package/dist/numpy-ts.node.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var pK=Object.create;var Bo=Object.defineProperty;var yK=Object.getOwnPropertyDescriptor;var mK=Object.getOwnPropertyNames;var hK=Object.getPrototypeOf,gK=Object.prototype.hasOwnProperty;var l=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),bK=(r,e)=>{for(var a in e)Bo(r,a,{get:e[a],enumerable:!0})},wc=(r,e,a,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of mK(e))!gK.call(r,o)&&o!==a&&Bo(r,o,{get:()=>e[o],enumerable:!(t=yK(e,o))||t.enumerable});return r};var He=(r,e,a)=>(a=r!=null?pK(hK(r)):{},wc(e||!r||!r.__esModule?Bo(a,"default",{value:r,enumerable:!0}):a,r)),xK=r=>wc(Bo({},"__esModule",{value:!0}),r);var Ec=l(($Jr,Sc)=>{"use strict";var qK=typeof Object.defineProperty=="function"?Object.defineProperty:null;Sc.exports=qK});var _c=l((YJr,Ac)=>{"use strict";var wK=Ec();function SK(){try{return wK({},"x",{}),!0}catch{return!1}}Ac.exports=SK});var Tc=l((WJr,jc)=>{"use strict";var EK=Object.defineProperty;jc.exports=EK});var Tn=l((JJr,Oc)=>{"use strict";function AK(r){return typeof r=="number"}Oc.exports=AK});var On=l((XJr,Nc)=>{"use strict";function _K(r){return r[0]==="-"}function Ic(r){var e="",a;for(a=0;a<r;a++)e+="0";return e}function jK(r,e,a){var t=!1,o=e-r.length;return o<0||(_K(r)&&(t=!0,r=r.substr(1)),r=a?r+Ic(o):Ic(o)+r,t&&(r="-"+r)),r}Nc.exports=jK});var Vc=l((KJr,Rc)=>{"use strict";var TK=Tn(),Dc=On(),OK=String.prototype.toLowerCase,kc=String.prototype.toUpperCase;function IK(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(!TK(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=Dc(a,r.precision,r.padRight)),a="-"+a):(a=t.toString(e),!t&&!r.precision?a="":r.precision&&(a=Dc(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):OK.call(a)),e===8&&r.alternate&&a.charAt(0)!=="0"&&(a="0"+a),a}Rc.exports=IK});var Bc=l((HJr,zc)=>{"use strict";function NK(r){return typeof r=="string"}zc.exports=NK});var Lc=l((ZJr,Fc)=>{"use strict";var DK=Tn(),kK=Math.abs,RK=String.prototype.toLowerCase,Pc=String.prototype.toUpperCase,jt=String.prototype.replace,VK=/e\+(\d)$/,zK=/e-(\d)$/,BK=/^(\d+)$/,PK=/^(\d+)e/,FK=/\.0$/,LK=/\.0*e/,CK=/(\..*[^0])0*e/;function UK(r){var e,a,t=parseFloat(r.arg);if(!isFinite(t)){if(!DK(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":kK(t)<1e-4?(e=r.precision,e>0&&(e-=1),a=t.toExponential(e)):a=t.toPrecision(r.precision),r.alternate||(a=jt.call(a,CK,"$1e"),a=jt.call(a,LK,"e"),a=jt.call(a,FK,""));break;default:throw new Error("invalid double notation. Value: "+r.specifier)}return a=jt.call(a,VK,"e+0$1"),a=jt.call(a,zK,"e-0$1"),r.alternate&&(a=jt.call(a,BK,"$1."),a=jt.call(a,PK,"$1.e")),t>=0&&r.sign&&(a=r.sign+a),a=r.specifier===Pc.call(r.specifier)?Pc.call(a):RK.call(a),a}Fc.exports=UK});var Mc=l((QJr,Uc)=>{"use strict";function Cc(r){var e="",a;for(a=0;a<r;a++)e+=" ";return e}function MK(r,e,a){var t=e-r.length;return t<0||(r=a?r+Cc(t):Cc(t)+r),r}Uc.exports=MK});var $c=l((rXr,Gc)=>{"use strict";var GK=Vc(),$K=Bc(),YK=Lc(),WK=Mc(),JK=On(),XK=String.fromCharCode,KK=Array.isArray;function Po(r){return r!==r}function HK(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 ZK(r){var e,a,t,o,i,s,n,v,u;if(!KK(r))throw new TypeError("invalid argument. First argument must be an array. Value: `"+r+"`.");for(s="",n=1,v=0;v<r.length;v++)if(t=r[v],$K(t))s+=t;else{if(e=t.precision!==void 0,t=HK(t),!t.specifier)throw new TypeError("invalid argument. Token is missing `specifier` property. Index: `"+v+"`. Value: `"+t+"`.");for(t.mapping&&(n=t.mapping),a=t.flags,u=0;u<a.length;u++)switch(o=a.charAt(u),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[n],10),n+=1,Po(t.width))throw new TypeError("the argument for * width at position "+n+" 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[n],10),n+=1,Po(t.precision))throw new TypeError("the argument for * precision at position "+n+" is not a number. Value: `"+t.precision+"`.");t.precision<0&&(t.precision=1,e=!1)}switch(t.arg=arguments[n],t.specifier){case"b":case"o":case"x":case"X":case"d":case"i":case"u":e&&(t.padZeros=!1),t.arg=GK(t);break;case"s":t.maxWidth=e?t.precision:-1,t.arg=String(t.arg);break;case"c":if(!Po(t.arg)){if(i=parseInt(t.arg,10),i<0||i>127)throw new Error("invalid character code. Value: "+t.arg);t.arg=Po(i)?String(t.arg):XK(i)}break;case"e":case"E":case"f":case"F":case"g":case"G":e||(t.precision=6),t.arg=YK(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=JK(t.arg,t.width||t.precision,t.padRight):t.width&&(t.arg=WK(t.arg,t.width,t.padRight)),s+=t.arg||"",n+=1}return s}Gc.exports=ZK});var Wc=l((eXr,Yc)=>{"use strict";var QK=$c();Yc.exports=QK});var Xc=l((aXr,Jc)=>{"use strict";var Fo=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;function rH(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 eH(r){var e,a,t,o;for(a=[],o=0,t=Fo.exec(r);t;)e=r.slice(o,Fo.lastIndex-t[0].length),e.length&&a.push(e),a.push(rH(t)),o=Fo.lastIndex,t=Fo.exec(r);return e=r.slice(o),e.length&&a.push(e),a}Jc.exports=eH});var Hc=l((tXr,Kc)=>{"use strict";var aH=Xc();Kc.exports=aH});var Qc=l((iXr,Zc)=>{"use strict";function tH(r){return typeof r=="string"}Zc.exports=tH});var ad=l((oXr,ed)=>{"use strict";var iH=Wc(),oH=Hc(),sH=Qc();function rd(r){var e,a;if(!sH(r))throw new TypeError(rd("invalid argument. First argument must be a string. Value: `%s`.",r));for(e=[oH(r)],a=1;a<arguments.length;a++)e.push(arguments[a]);return iH.apply(null,e)}ed.exports=rd});var cr=l((sXr,td)=>{"use strict";var nH=ad();td.exports=nH});var ud=l((nXr,vd)=>{"use strict";var id=cr(),Qt=Object.prototype,od=Qt.toString,sd=Qt.__defineGetter__,nd=Qt.__defineSetter__,vH=Qt.__lookupGetter__,uH=Qt.__lookupSetter__;function fH(r,e,a){var t,o,i,s;if(typeof r!="object"||r===null||od.call(r)==="[object Array]")throw new TypeError(id("invalid argument. First argument must be an object. Value: `%s`.",r));if(typeof a!="object"||a===null||od.call(a)==="[object Array]")throw new TypeError(id("invalid argument. Property descriptor must be an object. Value: `%s`.",a));if(o="value"in a,o&&(vH.call(r,e)||uH.call(r,e)?(t=r.__proto__,r.__proto__=Qt,delete r[e],r[e]=a.value,r.__proto__=t):r[e]=a.value),i="get"in a,s="set"in a,o&&(i||s))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),s&&nd&&nd.call(r,e,a.set),r}vd.exports=fH});var Tt=l((vXr,fd)=>{"use strict";var lH=_c(),cH=Tc(),dH=ud(),In;lH()?In=cH:In=dH;fd.exports=In});var cd=l((uXr,ld)=>{"use strict";var pH=Tt();function yH(r,e,a){pH(r,e,{configurable:!1,enumerable:!0,writable:!1,value:a})}ld.exports=yH});var Ot=l((fXr,dd)=>{"use strict";var mH=cd();dd.exports=mH});var yd=l((lXr,pd)=>{"use strict";var hH=Object.prototype.hasOwnProperty;function gH(r,e){return r==null?!1:hH.call(r,e)}pd.exports=gH});var Jr=l((cXr,md)=>{"use strict";var bH=yd();md.exports=bH});var gd=l((dXr,hd)=>{"use strict";function xH(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}hd.exports=xH});var Nn=l((pXr,bd)=>{"use strict";var qH=gd();bd.exports=qH});var qd=l((yXr,xd)=>{"use strict";var wH=Nn(),SH=wH();function EH(){return SH&&typeof Symbol.toStringTag=="symbol"}xd.exports=EH});var ri=l((mXr,wd)=>{"use strict";var AH=qd();wd.exports=AH});var Dn=l((hXr,Sd)=>{"use strict";var _H=Object.prototype.toString;Sd.exports=_H});var Ad=l((gXr,Ed)=>{"use strict";var jH=Dn();function TH(r){return jH.call(r)}Ed.exports=TH});var jd=l((bXr,_d)=>{"use strict";var OH=typeof Symbol=="function"?Symbol:void 0;_d.exports=OH});var kn=l((xXr,Td)=>{"use strict";var IH=jd();Td.exports=IH});var Nd=l((qXr,Id)=>{"use strict";var Od=kn(),NH=typeof Od=="function"?Od.toStringTag:"";Id.exports=NH});var kd=l((wXr,Dd)=>{"use strict";var DH=Jr(),zi=Nd(),Rn=Dn();function kH(r){var e,a,t;if(r==null)return Rn.call(r);a=r[zi],e=DH(r,zi);try{r[zi]=void 0}catch{return Rn.call(r)}return t=Rn.call(r),e?r[zi]=a:delete r[zi],t}Dd.exports=kH});var ye=l((SXr,Rd)=>{"use strict";var RH=ri(),VH=Ad(),zH=kd(),Vn;RH()?Vn=zH:Vn=VH;Rd.exports=Vn});var zd=l((EXr,Vd)=>{"use strict";var BH=ye(),zn;function PH(r){return BH(r)==="[object Array]"}Array.isArray?zn=Array.isArray:zn=PH;Vd.exports=zn});var ha=l((AXr,Bd)=>{"use strict";var FH=zd();Bd.exports=FH});var Fd=l((_Xr,Pd)=>{"use strict";var LH=ha();function CH(r){return typeof r=="object"&&r!==null&&!LH(r)}Pd.exports=CH});var Bi=l((jXr,Ld)=>{"use strict";var UH=Fd();Ld.exports=UH});var Ud=l((TXr,Cd)=>{"use strict";var MH=/./;Cd.exports=MH});var Gd=l((OXr,Md)=>{"use strict";var GH=Tt();function $H(r,e,a){GH(r,e,{configurable:!1,enumerable:!1,writable:!1,value:a})}Md.exports=$H});var Tr=l((IXr,$d)=>{"use strict";var YH=Gd();$d.exports=YH});var Bn=l((NXr,Yd)=>{"use strict";function WH(r){return typeof r=="boolean"}Yd.exports=WH});var Jd=l((DXr,Wd)=>{"use strict";var JH=Boolean;Wd.exports=JH});var It=l((kXr,Xd)=>{"use strict";var XH=Jd();Xd.exports=XH});var Hd=l((RXr,Kd)=>{"use strict";var KH=Boolean.prototype.toString;Kd.exports=KH});var Qd=l((VXr,Zd)=>{"use strict";var HH=Hd();function ZH(r){try{return HH.call(r),!0}catch{return!1}}Zd.exports=ZH});var Pn=l((zXr,r0)=>{"use strict";var QH=ri(),rZ=ye(),eZ=It(),aZ=Qd(),tZ=QH();function iZ(r){return typeof r=="object"?r instanceof eZ?!0:tZ?aZ(r):rZ(r)==="[object Boolean]":!1}r0.exports=iZ});var a0=l((BXr,e0)=>{"use strict";var oZ=Bn(),sZ=Pn();function nZ(r){return oZ(r)||sZ(r)}e0.exports=nZ});var de=l((PXr,i0)=>{"use strict";var t0=Tr(),Fn=a0(),vZ=Bn(),uZ=Pn();t0(Fn,"isPrimitive",vZ);t0(Fn,"isObject",uZ);i0.exports=Fn});var s0=l((FXr,o0)=>{"use strict";function fZ(){return new Function("return this;")()}o0.exports=fZ});var v0=l((LXr,n0)=>{"use strict";var lZ=typeof self=="object"?self:null;n0.exports=lZ});var f0=l((CXr,u0)=>{"use strict";var cZ=typeof window=="object"?window:null;u0.exports=cZ});var c0=l((UXr,l0)=>{"use strict";var dZ=typeof global=="object"?global:null;l0.exports=dZ});var p0=l((MXr,d0)=>{"use strict";var pZ=typeof globalThis=="object"?globalThis:null;d0.exports=pZ});var x0=l((GXr,b0)=>{"use strict";var yZ=de().isPrimitive,mZ=cr(),hZ=s0(),y0=v0(),m0=f0(),h0=c0(),g0=p0();function gZ(r){if(arguments.length){if(!yZ(r))throw new TypeError(mZ("invalid argument. Must provide a boolean. Value: `%s`.",r));if(r)return hZ()}if(g0)return g0;if(y0)return y0;if(m0)return m0;if(h0)return h0;throw new Error("unexpected error. Unable to resolve global object.")}b0.exports=gZ});var Ln=l(($Xr,q0)=>{"use strict";var bZ=x0();q0.exports=bZ});var E0=l((YXr,S0)=>{"use strict";var xZ=Ln(),w0=xZ(),qZ=w0.document&&w0.document.childNodes;S0.exports=qZ});var _0=l((WXr,A0)=>{"use strict";var wZ=Int8Array;A0.exports=wZ});var T0=l((JXr,j0)=>{"use strict";var SZ=Ud(),EZ=E0(),AZ=_0();function _Z(){return typeof SZ=="function"||typeof AZ=="object"||typeof EZ=="function"}j0.exports=_Z});var Cn=l((XXr,O0)=>{"use strict";function jZ(){return/^\s*function\s*([^(]*)/i}O0.exports=jZ});var N0=l((KXr,I0)=>{"use strict";var TZ=Cn(),OZ=TZ();I0.exports=OZ});var R0=l((HXr,k0)=>{"use strict";var IZ=Tr(),D0=Cn(),NZ=N0();IZ(D0,"REGEXP",NZ);k0.exports=D0});var z0=l((ZXr,V0)=>{"use strict";var DZ=ha(),kZ=cr();function RZ(r){if(typeof r!="function")throw new TypeError(kZ("invalid argument. Must provide a function. Value: `%s`.",r));return e;function e(a){var t,o;if(!DZ(a)||(t=a.length,t===0))return!1;for(o=0;o<t;o++)if(r(a[o])===!1)return!1;return!0}}V0.exports=RZ});var Un=l((QXr,B0)=>{"use strict";var VZ=z0();B0.exports=VZ});var F0=l((rKr,P0)=>{"use strict";function zZ(r){return r!==null&&typeof r=="object"}P0.exports=zZ});var Lo=l((eKr,L0)=>{"use strict";var BZ=Tr(),PZ=Un(),Mn=F0(),FZ=PZ(Mn);BZ(Mn,"isObjectLikeArray",FZ);L0.exports=Mn});var U0=l((aKr,C0)=>{"use strict";var LZ=Lo();function CZ(r){return LZ(r)&&(r._isBuffer||r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r))}C0.exports=CZ});var Pi=l((tKr,M0)=>{"use strict";var UZ=U0();M0.exports=UZ});var $0=l((iKr,G0)=>{"use strict";var MZ=ye(),GZ=R0().REGEXP,$Z=Pi();function YZ(r){var e,a,t;if(a=MZ(r).slice(8,-1),(a==="Object"||a==="Error")&&r.constructor){if(t=r.constructor,typeof t.name=="string")return t.name;if(e=GZ.exec(t.toString()),e)return e[1]}return $Z(r)?"Buffer":a}G0.exports=YZ});var pt=l((oKr,Y0)=>{"use strict";var WZ=$0();Y0.exports=WZ});var J0=l((sKr,W0)=>{"use strict";var JZ=pt();function XZ(r){var e;return r===null?"null":(e=typeof r,e==="object"?JZ(r).toLowerCase():e)}W0.exports=XZ});var K0=l((nKr,X0)=>{"use strict";var KZ=pt();function HZ(r){return KZ(r).toLowerCase()}X0.exports=HZ});var ei=l((vKr,H0)=>{"use strict";var ZZ=T0(),QZ=J0(),rQ=K0(),eQ=ZZ()?rQ:QZ;H0.exports=eQ});var Q0=l((uKr,Z0)=>{"use strict";var aQ=ei();function tQ(r){return aQ(r)==="function"}Z0.exports=tQ});var Fe=l((fKr,rp)=>{"use strict";var iQ=Q0();rp.exports=iQ});var ap=l((lKr,ep)=>{"use strict";var oQ=Object;ep.exports=oQ});var Nt=l((cKr,tp)=>{"use strict";var sQ=ap();tp.exports=sQ});var op=l((dKr,ip)=>{"use strict";var nQ=Object.getPrototypeOf;ip.exports=nQ});var np=l((pKr,sp)=>{"use strict";function vQ(r){return r.__proto__}sp.exports=vQ});var up=l((yKr,vp)=>{"use strict";var uQ=ye(),fQ=np();function lQ(r){var e=fQ(r);return e||e===null?e:uQ(r.constructor)==="[object Function]"?r.constructor.prototype:r instanceof Object?Object.prototype:null}vp.exports=lQ});var lp=l((mKr,fp)=>{"use strict";var cQ=Fe(),dQ=op(),pQ=up(),Gn;cQ(Object.getPrototypeOf)?Gn=dQ:Gn=pQ;fp.exports=Gn});var dp=l((hKr,cp)=>{"use strict";var yQ=Nt(),mQ=lp();function hQ(r){return r==null?null:(r=yQ(r),mQ(r))}cp.exports=hQ});var Dt=l((gKr,pp)=>{"use strict";var gQ=dp();pp.exports=gQ});var hp=l((bKr,mp)=>{"use strict";var bQ=Bi(),yp=Fe(),xQ=Dt(),Co=Jr(),qQ=ye(),wQ=Object.prototype;function SQ(r){var e;for(e in r)if(!Co(r,e))return!1;return!0}function EQ(r){var e;return bQ(r)?(e=xQ(r),e?!Co(r,"constructor")&&Co(e,"constructor")&&yp(e.constructor)&&qQ(e.constructor)==="[object Function]"&&Co(e,"isPrototypeOf")&&yp(e.isPrototypeOf)&&(e===wQ||SQ(r)):!0):!1}mp.exports=EQ});var oe=l((xKr,gp)=>{"use strict";var AQ=hp();gp.exports=AQ});var $n=l((qKr,bp)=>{"use strict";function _Q(r){return typeof r=="number"}bp.exports=_Q});var qp=l((wKr,xp)=>{"use strict";xp.exports=Number});var Uo=l((SKr,wp)=>{"use strict";var jQ=qp();wp.exports=jQ});var Ep=l((EKr,Sp)=>{"use strict";var TQ=Uo(),OQ=TQ.prototype.toString;Sp.exports=OQ});var _p=l((AKr,Ap)=>{"use strict";var IQ=Ep();function NQ(r){try{return IQ.call(r),!0}catch{return!1}}Ap.exports=NQ});var Yn=l((_Kr,jp)=>{"use strict";var DQ=ri(),kQ=ye(),RQ=Uo(),VQ=_p(),zQ=DQ();function BQ(r){return typeof r=="object"?r instanceof RQ?!0:zQ?VQ(r):kQ(r)==="[object Number]":!1}jp.exports=BQ});var Op=l((jKr,Tp)=>{"use strict";var PQ=$n(),FQ=Yn();function LQ(r){return PQ(r)||FQ(r)}Tp.exports=LQ});var Ue=l((TKr,Np)=>{"use strict";var Ip=Tr(),Wn=Op(),CQ=$n(),UQ=Yn();Ip(Wn,"isPrimitive",CQ);Ip(Wn,"isObject",UQ);Np.exports=Wn});var Fi=l((OKr,Dp)=>{"use strict";var MQ=Number.POSITIVE_INFINITY;Dp.exports=MQ});var Mo=l((IKr,kp)=>{"use strict";var GQ=Uo(),$Q=GQ.NEGATIVE_INFINITY;kp.exports=$Q});var Vp=l((NKr,Rp)=>{"use strict";var YQ=Math.floor;Rp.exports=YQ});var Ze=l((DKr,zp)=>{"use strict";var WQ=Vp();zp.exports=WQ});var Pp=l((kKr,Bp)=>{"use strict";var JQ=Ze();function XQ(r){return JQ(r)===r}Bp.exports=XQ});var ga=l((RKr,Fp)=>{"use strict";var KQ=Pp();Fp.exports=KQ});var Jn=l((VKr,Lp)=>{"use strict";var HQ=Fi(),ZQ=Mo(),QQ=ga();function rrr(r){return r<HQ&&r>ZQ&&QQ(r)}Lp.exports=rrr});var Xn=l((zKr,Cp)=>{"use strict";var err=Ue().isPrimitive,arr=Jn();function trr(r){return err(r)&&arr(r)}Cp.exports=trr});var Kn=l((BKr,Up)=>{"use strict";var irr=Ue().isObject,orr=Jn();function srr(r){return irr(r)&&orr(r.valueOf())}Up.exports=srr});var Gp=l((PKr,Mp)=>{"use strict";var nrr=Xn(),vrr=Kn();function urr(r){return nrr(r)||vrr(r)}Mp.exports=urr});var ve=l((FKr,Yp)=>{"use strict";var $p=Tr(),Hn=Gp(),frr=Xn(),lrr=Kn();$p(Hn,"isPrimitive",frr);$p(Hn,"isObject",lrr);Yp.exports=Hn});var Zn=l((LKr,Wp)=>{"use strict";var crr=ve().isPrimitive;function drr(r){return crr(r)&&r>=0}Wp.exports=drr});var Qn=l((CKr,Jp)=>{"use strict";var prr=ve().isObject;function yrr(r){return prr(r)&&r.valueOf()>=0}Jp.exports=yrr});var Kp=l((UKr,Xp)=>{"use strict";var mrr=Zn(),hrr=Qn();function grr(r){return mrr(r)||hrr(r)}Xp.exports=grr});var me=l((MKr,Zp)=>{"use strict";var Hp=Tr(),rv=Kp(),brr=Zn(),xrr=Qn();Hp(rv,"isPrimitive",brr);Hp(rv,"isObject",xrr);Zp.exports=rv});var ey=l((GKr,ry)=>{"use strict";var qrr=Ln(),Qp=qrr();function wrr(){return typeof Qp.BigInt=="function"&&typeof BigInt=="function"&&typeof Qp.BigInt("1")=="bigint"&&typeof BigInt("1")=="bigint"}ry.exports=wrr});var ev=l(($Kr,ay)=>{"use strict";var Srr=ey();ay.exports=Srr});var iy=l((YKr,ty)=>{"use strict";var Err=Tt();function Arr(r,e,a){Err(r,e,{configurable:!1,enumerable:!1,get:a})}ty.exports=Arr});var yt=l((WKr,oy)=>{"use strict";var _rr=iy();oy.exports=_rr});var sy=l((JKr,jrr)=>{jrr.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 vy=l((XKr,ny)=>{"use strict";var Trr=sy();function Orr(r){return Trr[r]||null}ny.exports=Orr});var Ka=l((KKr,uy)=>{"use strict";var Irr=vy();uy.exports=Irr});var ly=l((HKr,fy)=>{"use strict";function Nrr(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}fy.exports=Nrr});var ba=l((ZKr,cy)=>{"use strict";var Drr=ly();cy.exports=Drr});var py=l((QKr,dy)=>{"use strict";function krr(r){return Math.abs(r)}dy.exports=krr});var ai=l((rHr,yy)=>{"use strict";var Rrr=py();yy.exports=Rrr});var gy=l((eHr,hy)=>{"use strict";var my=ai();function Vrr(r){var e,a,t,o,i,s;if(a=r.length,a===0)return 0;for(e=!0,t=!0,o=my(r[0]),s=1;s<a;s++)if(i=my(r[s]),e&&i<o?e=!1:t&&i>o&&(t=!1),t||e)o=i;else return 0;return t&&e?3:t?1:2}hy.exports=Vrr});var kt=l((aHr,by)=>{"use strict";var zrr=gy();by.exports=zrr});var qy=l((tHr,xy)=>{"use strict";function Brr(r,e){return e&&(r===2||r===3)}xy.exports=Brr});var Sy=l((iHr,wy)=>{"use strict";function Prr(r,e){return e&&(r===1||r===3)}wy.exports=Prr});var Ay=l((oHr,Ey)=>{"use strict";function Frr(r,e,a){var t,o,i,s,n;for(t=r.length,o=a,i=a,n=0;n<t;n++){if(r[n]===0)return[a,a];s=e[n],s>0?i+=s*(r[n]-1):s<0&&(o+=s*(r[n]-1))}return[o,i]}Ey.exports=Frr});var jy=l((sHr,_y)=>{"use strict";function Lrr(r,e,a,t){var o,i,s,n,v;for(o=r.length,i=a,s=a,v=0;v<o;v++){if(r[v]===0)return t[0]=a,t[1]=a,t;n=e[v],n>0?s+=n*(r[v]-1):n<0&&(i+=n*(r[v]-1))}return t[0]=i,t[1]=s,t}_y.exports=Lrr});var Ha=l((nHr,Oy)=>{"use strict";var Crr=Tr(),Ty=Ay(),Urr=jy();Crr(Ty,"assign",Urr);Oy.exports=Ty});var Ny=l((vHr,Iy)=>{"use strict";var Mrr=Ha();function Grr(r,e,a,t,o){var i;return r===0||o===0?!1:(i=Mrr(e,a,t),r===i[1]-i[0]+1)}Iy.exports=Grr});var ky=l((uHr,Dy)=>{"use strict";function $rr(r){return{ROW_MAJOR_CONTIGUOUS:r.ROW_MAJOR_CONTIGUOUS,COLUMN_MAJOR_CONTIGUOUS:r.COLUMN_MAJOR_CONTIGUOUS,READONLY:r.READONLY}}Dy.exports=$rr});var Vy=l((fHr,Ry)=>{"use strict";function Yrr(r){var e,a,t,o,i,s;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(s=0;s<t;s++)i=r%a[s],r-=i,r/=a[s],o+=i*e[s];return this._accessors?this._buffer.get(o):this._buffer[o]}for(s=t-1;s>=0;s--)i=r%a[s],r-=i,r/=a[s],o+=i*e[s];return this._accessors?this._buffer.get(o):this._buffer[o]}Ry.exports=Yrr});var By=l((lHr,zy)=>{"use strict";function Wrr(r,e){var a,t,o,i,s,n;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(n=0;n<o;n++)s=r%t[n],r-=s,r/=t[n],i+=s*a[n];return this._accessors?this._buffer.set(e,i):this._buffer[i]=e,this}for(n=o-1;n>=0;n--)s=r%t[n],r-=s,r/=t[n],i+=s*a[n];return this._accessors?this._buffer.set(e,i):this._buffer[i]=e,this}zy.exports=Wrr});var Fy=l((cHr,Py)=>{"use strict";function Jrr(){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}Py.exports=Jrr});var Cy=l((dHr,Ly)=>{"use strict";function Xrr(){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]}Ly.exports=Xrr});var My=l((pHr,Uy)=>{"use strict";function Krr(r){return r.re}Uy.exports=Krr});var Rt=l((yHr,Gy)=>{"use strict";var Hrr=My();Gy.exports=Hrr});var Yy=l((mHr,$y)=>{"use strict";function Zrr(r){return r.im}$y.exports=Zrr});var Vt=l((hHr,Wy)=>{"use strict";var Qrr=Yy();Wy.exports=Qrr});var Xy=l((gHr,Jy)=>{"use strict";var rer=Rt(),eer=Vt();function aer(){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(rer(a),eer(a));else for(t=0;t<e;t++)r.data.push(this.iget(t));return r}Jy.exports=aer});var av=l((bHr,Ky)=>{"use strict";function ter(r){return typeof r=="string"}Ky.exports=ter});var Zy=l((xHr,Hy)=>{"use strict";var ier=String.prototype.valueOf;Hy.exports=ier});var rm=l((qHr,Qy)=>{"use strict";var oer=Zy();function ser(r){try{return oer.call(r),!0}catch{return!1}}Qy.exports=ser});var tv=l((wHr,em)=>{"use strict";var ner=ri(),ver=ye(),uer=rm(),fer=ner();function ler(r){return typeof r=="object"?r instanceof String?!0:fer?uer(r):ver(r)==="[object String]":!1}em.exports=ler});var tm=l((SHr,am)=>{"use strict";var cer=av(),der=tv();function per(r){return cer(r)||der(r)}am.exports=per});var za=l((EHr,om)=>{"use strict";var im=Tr(),iv=tm(),yer=av(),mer=tv();im(iv,"isPrimitive",yer);im(iv,"isObject",mer);om.exports=iv});var vm=l((AHr,nm)=>{"use strict";var her=za().isPrimitive,ger=cr(),sm=/[-\/\\^$*+?.()|[\]{}]/g;function ber(r){var e,a,t;if(!her(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(sm,"\\$&"):(a=r.substring(1,t),a=a.replace(sm,"\\$&"),r=r[0]+a+r.substring(t),r)}nm.exports=ber});var fm=l((_Hr,um)=>{"use strict";var xer=vm();um.exports=xer});var cm=l((jHr,lm)=>{"use strict";var qer=RegExp.prototype.exec;lm.exports=qer});var pm=l((THr,dm)=>{"use strict";var wer=cm();function Ser(r){try{return wer.call(r),!0}catch{return!1}}dm.exports=Ser});var mm=l((OHr,ym)=>{"use strict";var Eer=ri(),Aer=ye(),_er=pm(),jer=Eer();function Ter(r){return typeof r=="object"?r instanceof RegExp?!0:jer?_er(r):Aer(r)==="[object RegExp]":!1}ym.exports=Ter});var gm=l((IHr,hm)=>{"use strict";var Oer=mm();hm.exports=Oer});var xm=l((NHr,bm)=>{"use strict";function Ier(r,e,a){return r.replace(e,a)}bm.exports=Ier});var Za=l((DHr,qm)=>{"use strict";var Ner=xm();qm.exports=Ner});var Sm=l((kHr,wm)=>{"use strict";var Der=fm(),ker=Fe(),ov=za().isPrimitive,Rer=gm(),sv=cr(),Ver=Za();function zer(r,e,a){if(!ov(r))throw new TypeError(sv("invalid argument. First argument must be a string. Value: `%s`.",r));if(ov(e))e=new RegExp(Der(e),"g");else if(!Rer(e))throw new TypeError(sv("invalid argument. Second argument must be a string or regular expression. Value: `%s`.",e));if(!ov(a)&&!ker(a))throw new TypeError(sv("invalid argument. Third argument must be a string or replacement function. Value: `%s`.",a));return Ver(r,e,a)}wm.exports=zer});var Am=l((RHr,Em)=>{"use strict";var Ber=Sm();Em.exports=Ber});var jm=l((VHr,_m)=>{"use strict";var Per=Am(),nv=Rt(),vv=Vt(),Fer={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 Ler(){var r,e,a,t,o,i,s;if(e=this._shape.length,o=this._dtype,t="ndarray( '"+o+"', ",r="",this._length<=100)if(o==="complex64"||o==="complex128")for(s=0;s<this._length;s++)i=this.iget(s),r+=nv(i)+", "+vv(i),s<this._length-1&&(r+=", ");else for(s=0;s<this._length;s++)r+=this.iget(s),s<this._length-1&&(r+=", ");else{if(o==="complex64"||o==="complex128")for(s=0;s<3;s++)i=this.iget(s),r+=nv(i)+", "+vv(i),s<2&&(r+=", ");else for(s=0;s<3;s++)r+=this.iget(s),s<2&&(r+=", ");if(r+=", ..., ",o==="complex64"||o==="complex128")for(s=2;s>=0;s--)i=this.iget(this._length-1-s),r+=nv(i)+", "+vv(i),s>0&&(r+=", ");else for(s=2;s>=0;s--)r+=this.iget(this._length-1-s),s>0&&(r+=", ")}if(a=Fer[this.dtype],t+=Per(a,"{{data}}",r),t+=", ",e===0?t+="[]":t+="[ "+this._shape.join(", ")+" ]",t+=", ",t+="[ ",e===0)t+="0";else for(s=0;s<e;s++)this._strides[s]<0?t+=-this._strides[s]:t+=this._strides[s],s<e-1&&(t+=", ");return t+=" ]",t+=", ",t+="0",t+=", ",t+="'"+this._order+"'",t+=" )",t}_m.exports=Ler});var Om=l((zHr,Tm)=>{"use strict";var Cer=ye(),Uer=typeof Uint8Array=="function";function Mer(r){return Uer&&r instanceof Uint8Array||Cer(r)==="[object Uint8Array]"}Tm.exports=Mer});var uv=l((BHr,Im)=>{"use strict";var Ger=Om();Im.exports=Ger});var fv=l((PHr,Nm)=>{"use strict";var $er=255;Nm.exports=$er});var km=l((FHr,Dm)=>{"use strict";var Yer=typeof Uint8Array=="function"?Uint8Array:null;Dm.exports=Yer});var zm=l((LHr,Vm)=>{"use strict";var Wer=uv(),lv=fv(),Rm=km();function Jer(){var r,e;if(typeof Rm!="function")return!1;try{e=[1,3.14,-3.14,lv+1,lv+2],e=new Rm(e),r=Wer(e)&&e[0]===1&&e[1]===3&&e[2]===lv-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}Vm.exports=Jer});var Pm=l((CHr,Bm)=>{"use strict";var Xer=zm();Bm.exports=Xer});var Lm=l((UHr,Fm)=>{"use strict";var Ker=typeof Uint8Array=="function"?Uint8Array:void 0;Fm.exports=Ker});var Um=l((MHr,Cm)=>{"use strict";function Her(){throw new Error("not implemented")}Cm.exports=Her});var Qe=l((GHr,Mm)=>{"use strict";var Zer=Pm(),Qer=Lm(),rar=Um(),cv;Zer()?cv=Qer:cv=rar;Mm.exports=cv});var $m=l(($Hr,Gm)=>{"use strict";var ear=ye(),aar=typeof Uint16Array=="function";function tar(r){return aar&&r instanceof Uint16Array||ear(r)==="[object Uint16Array]"}Gm.exports=tar});var Wm=l((YHr,Ym)=>{"use strict";var iar=$m();Ym.exports=iar});var dv=l((WHr,Jm)=>{"use strict";var oar=65535;Jm.exports=oar});var Km=l((JHr,Xm)=>{"use strict";var sar=typeof Uint16Array=="function"?Uint16Array:null;Xm.exports=sar});var Qm=l((XHr,Zm)=>{"use strict";var nar=Wm(),pv=dv(),Hm=Km();function uar(){var r,e;if(typeof Hm!="function")return!1;try{e=[1,3.14,-3.14,pv+1,pv+2],e=new Hm(e),r=nar(e)&&e[0]===1&&e[1]===3&&e[2]===pv-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}Zm.exports=uar});var e1=l((KHr,r1)=>{"use strict";var far=Qm();r1.exports=far});var t1=l((HHr,a1)=>{"use strict";var lar=typeof Uint16Array=="function"?Uint16Array:void 0;a1.exports=lar});var o1=l((ZHr,i1)=>{"use strict";function car(){throw new Error("not implemented")}i1.exports=car});var zt=l((QHr,s1)=>{"use strict";var dar=e1(),par=t1(),yar=o1(),yv;dar()?yv=par:yv=yar;s1.exports=yv});var v1=l((rZr,n1)=>{"use strict";var mar=Qe(),har=zt(),gar={uint16:har,uint8:mar};n1.exports=gar});var c1=l((eZr,l1)=>{"use strict";var u1=v1(),f1;function bar(){var r,e;return r=new u1.uint16(1),r[0]=4660,e=new u1.uint8(r.buffer),e[0]===52}f1=bar();l1.exports=f1});var Bt=l((aZr,d1)=>{"use strict";var xar=c1();d1.exports=xar});var y1=l((tZr,p1)=>{"use strict";var qar=ye(),war=typeof ArrayBuffer=="function";function Sar(r){return war&&r instanceof ArrayBuffer||qar(r)==="[object ArrayBuffer]"}p1.exports=Sar});var Li=l((iZr,m1)=>{"use strict";var Ear=y1();m1.exports=Ear});var g1=l((oZr,h1)=>{"use strict";var Aar=ye(),_ar=typeof Float64Array=="function";function jar(r){return _ar&&r instanceof Float64Array||Aar(r)==="[object Float64Array]"}h1.exports=jar});var x1=l((sZr,b1)=>{"use strict";var Tar=g1();b1.exports=Tar});var w1=l((nZr,q1)=>{"use strict";var Oar=typeof Float64Array=="function"?Float64Array:null;q1.exports=Oar});var A1=l((vZr,E1)=>{"use strict";var Iar=x1(),S1=w1();function Nar(){var r,e;if(typeof S1!="function")return!1;try{e=new S1([1,3.14,-3.14,NaN]),r=Iar(e)&&e[0]===1&&e[1]===3.14&&e[2]===-3.14&&e[3]!==e[3]}catch{r=!1}return r}E1.exports=Nar});var j1=l((uZr,_1)=>{"use strict";var Dar=A1();_1.exports=Dar});var O1=l((fZr,T1)=>{"use strict";var kar=typeof Float64Array=="function"?Float64Array:void 0;T1.exports=kar});var N1=l((lZr,I1)=>{"use strict";function Rar(){throw new Error("not implemented")}I1.exports=Rar});var Qa=l((cZr,D1)=>{"use strict";var Var=j1(),zar=O1(),Bar=N1(),mv;Var()?mv=zar:mv=Bar;D1.exports=mv});var R1=l((dZr,k1)=>{"use strict";var Par=typeof ArrayBuffer=="function"?ArrayBuffer:null;k1.exports=Par});var z1=l((pZr,V1)=>{"use strict";var Far=Li(),Lar=Qa(),Go=R1();function Car(){var r,e,a;if(typeof Go!="function")return!1;try{a=new Go(16),r=Far(a)&&typeof Go.isView=="function",r&&(e=new Lar(a),e[0]=-3.14,e[1]=NaN,r=r&&Go.isView(e)&&a.byteLength===16&&e[0]===-3.14&&e[1]!==e[1])}catch{r=!1}return r}V1.exports=Car});var P1=l((yZr,B1)=>{"use strict";var Uar=z1();B1.exports=Uar});var L1=l((mZr,F1)=>{"use strict";var Mar=typeof ArrayBuffer=="function"?ArrayBuffer:void 0;F1.exports=Mar});var U1=l((hZr,C1)=>{"use strict";function Gar(){throw new Error("not implemented")}C1.exports=Gar});var ti=l((gZr,M1)=>{"use strict";var $ar=P1(),Yar=L1(),War=U1(),hv;$ar()?hv=Yar:hv=War;M1.exports=hv});var $1=l((bZr,G1)=>{"use strict";var Jar=ye(),Xar=typeof DataView=="function";function Kar(r){return Xar&&r instanceof DataView||Jar(r)==="[object DataView]"}G1.exports=Kar});var W1=l((xZr,Y1)=>{"use strict";var Har=$1();Y1.exports=Har});var X1=l((qZr,J1)=>{"use strict";var Zar=typeof DataView=="function"?DataView:null;J1.exports=Zar});var Z1=l((wZr,H1)=>{"use strict";var Qar=W1(),rtr=ti(),K1=X1();function etr(){var r,e,a;if(typeof K1!="function")return!1;try{a=new rtr(24),e=new K1(a,8),r=Qar(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}H1.exports=etr});var rh=l((SZr,Q1)=>{"use strict";var atr=Z1();Q1.exports=atr});var ah=l((EZr,eh)=>{"use strict";var ttr=typeof DataView=="function"?DataView:void 0;eh.exports=ttr});var ih=l((AZr,th)=>{"use strict";function itr(){throw new Error("not implemented")}th.exports=itr});var Pt=l((_Zr,oh)=>{"use strict";var otr=rh(),str=ah(),ntr=ih(),gv;otr()?gv=str:gv=ntr;oh.exports=gv});var nh=l((jZr,sh)=>{"use strict";var vtr=typeof BigInt=="function"?BigInt:void 0;sh.exports=vtr});var bv=l((TZr,vh)=>{"use strict";var utr=nh();vh.exports=utr});var uh=l((OZr,ftr)=>{ftr.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 dh=l((IZr,ch)=>{"use strict";var ltr=Za(),fh=uh(),lh=/_and_generic$/;function ctr(){var r,e,a;return arguments.length===0?fh.all.slice():(a=!1,r=arguments[0],lh.test(r)&&(r=ltr(r,lh,""),r!=="all"&&(a=!0)),e=fh[r],e=e?e.slice():[],a&&e.length>0&&e.push("generic"),e)}ch.exports=ctr});var yh=l((NZr,ph)=>{"use strict";function dtr(){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}}ph.exports=dtr});var $o=l((DZr,mh)=>{"use strict";function ptr(r){return Object.keys(Object(r))}mh.exports=ptr});var gh=l((kZr,hh)=>{"use strict";var ytr=$o();function mtr(){return(ytr(arguments)||"").length!==2}function htr(){return mtr(1,2)}hh.exports=htr});var xh=l((RZr,bh)=>{"use strict";var gtr=typeof Object.keys<"u";bh.exports=gtr});var xv=l((VZr,qh)=>{"use strict";var btr=ye();function xtr(r){return btr(r)==="[object Arguments]"}qh.exports=xtr});var Eh=l((zZr,Sh)=>{"use strict";var qtr=xv(),wh;function wtr(){return qtr(arguments)}wh=wtr();Sh.exports=wh});var _h=l((BZr,Ah)=>{"use strict";function Str(r){return r!==r}Ah.exports=Str});var qv=l((PZr,jh)=>{"use strict";var Etr=_h();jh.exports=Etr});var wv=l((FZr,Th)=>{"use strict";var Atr=Ue().isPrimitive,_tr=qv();function jtr(r){return Atr(r)&&_tr(r)}Th.exports=jtr});var Sv=l((LZr,Oh)=>{"use strict";var Ttr=Ue().isObject,Otr=qv();function Itr(r){return Ttr(r)&&Otr(r.valueOf())}Oh.exports=Itr});var Nh=l((CZr,Ih)=>{"use strict";var Ntr=wv(),Dtr=Sv();function ktr(r){return Ntr(r)||Dtr(r)}Ih.exports=ktr});var Av=l((UZr,kh)=>{"use strict";var Dh=Tr(),Ev=Nh(),Rtr=wv(),Vtr=Sv();Dh(Ev,"isPrimitive",Rtr);Dh(Ev,"isObject",Vtr);kh.exports=Ev});var _v=l((MZr,Rh)=>{"use strict";var ztr=Object.prototype.propertyIsEnumerable;Rh.exports=ztr});var Bh=l((GZr,zh)=>{"use strict";var Btr=_v(),Vh;function Ptr(){return!Btr.call("beep","0")}Vh=Ptr();zh.exports=Vh});var Fh=l(($Zr,Ph)=>{"use strict";var Ftr=za(),Ltr=Av().isPrimitive,Ctr=ve().isPrimitive,Utr=_v(),Mtr=Bh();function Gtr(r,e){var a;return r==null?!1:(a=Utr.call(r,e),!a&&Mtr&&Ftr(r)?(e=+e,!Ltr(e)&&Ctr(e)&&e>=0&&e<r.length):a)}Ph.exports=Gtr});var Ci=l((YZr,Lh)=>{"use strict";var $tr=Fh();Lh.exports=$tr});var Yo=l((WZr,Ch)=>{"use strict";var Ytr=4294967295;Ch.exports=Ytr});var Mh=l((JZr,Uh)=>{"use strict";var Wtr=Jr(),Jtr=Ci(),Xtr=ha(),Ktr=ga(),Htr=Yo();function Ztr(r){return r!==null&&typeof r=="object"&&!Xtr(r)&&typeof r.length=="number"&&Ktr(r.length)&&r.length>=0&&r.length<=Htr&&Wtr(r,"callee")&&!Jtr(r,"callee")}Uh.exports=Ztr});var Tv=l((XZr,Gh)=>{"use strict";var Qtr=Eh(),rir=xv(),eir=Mh(),jv;Qtr?jv=rir:jv=eir;Gh.exports=jv});var Wh=l((KZr,Yh)=>{"use strict";var air=Tv(),$h=$o(),tir=Array.prototype.slice;function iir(r){return air(r)?$h(tir.call(r)):$h(r)}Yh.exports=iir});var Xh=l((HZr,Jh)=>{"use strict";function oir(){}Jh.exports=oir});var Hh=l((ZZr,Kh)=>{"use strict";var sir=Xh();Kh.exports=sir});var Qh=l((QZr,Zh)=>{"use strict";var nir=Ci(),vir=Hh(),uir=nir(vir,"prototype");Zh.exports=uir});var eg=l((rQr,rg)=>{"use strict";var fir=Ci(),lir={toString:null},cir=!fir(lir,"toString");rg.exports=cir});var tg=l((eQr,ag)=>{"use strict";var dir=9007199254740991;ag.exports=dir});var og=l((aQr,ig)=>{"use strict";var pir=ga(),yir=tg();function mir(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&pir(r.length)&&r.length>=0&&r.length<=yir}ig.exports=mir});var Ne=l((tQr,sg)=>{"use strict";var hir=og();sg.exports=hir});var fg=l((iQr,ug)=>{"use strict";var ng=Av(),gir=Ne(),bir=za().isPrimitive,xir=ve().isPrimitive,vg=cr();function qir(r,e,a){var t,o;if(!gir(r)&&!bir(r))throw new TypeError(vg("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(!xir(a))throw new TypeError(vg("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(ng(e)){for(;o<t;o++)if(ng(r[o]))return o}else for(;o<t;o++)if(r[o]===e)return o;return-1}ug.exports=qir});var cg=l((oQr,lg)=>{"use strict";var wir=fg();lg.exports=wir});var Ov=l((sQr,dg)=>{"use strict";function Sir(r){return r.constructor&&r.constructor.prototype===r}dg.exports=Sir});var pg=l((nQr,Eir)=>{Eir.exports=["console","external","frame","frameElement","frames","innerHeight","innerWidth","outerHeight","outerWidth","pageXOffset","pageYOffset","parent","scrollLeft","scrollTop","scrollX","scrollY","self","webkitIndexedDB","webkitStorageInfo","window"]});var mg=l((vQr,yg)=>{"use strict";var Air=typeof window>"u"?void 0:window;yg.exports=Air});var xg=l((uQr,bg)=>{"use strict";var _ir=Jr(),jir=cg(),hg=ei(),Tir=Ov(),Oir=pg(),ii=mg(),gg;function Iir(){var r;if(hg(ii)==="undefined")return!1;for(r in ii)try{jir(Oir,r)===-1&&_ir(ii,r)&&ii[r]!==null&&hg(ii[r])==="object"&&Tir(ii[r])}catch{return!0}return!1}gg=Iir();bg.exports=gg});var wg=l((fQr,qg)=>{"use strict";var Nir=typeof window<"u";qg.exports=Nir});var Ag=l((lQr,Eg)=>{"use strict";var Dir=xg(),Sg=Ov(),kir=wg();function Rir(r){if(kir===!1&&!Dir)return Sg(r);try{return Sg(r)}catch{return!1}}Eg.exports=Rir});var _g=l((cQr,Vir)=>{Vir.exports=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]});var Og=l((dQr,Tg)=>{"use strict";var zir=Lo(),Iv=Jr(),Bir=Tv(),Pir=Qh(),Fir=eg(),Lir=Ag(),jg=_g();function Cir(r){var e,a,t,o,i,s,n;if(o=[],Bir(r)){for(n=0;n<r.length;n++)o.push(n.toString());return o}if(typeof r=="string"){if(r.length>0&&!Iv(r,"0"))for(n=0;n<r.length;n++)o.push(n.toString())}else{if(t=typeof r=="function",t===!1&&!zir(r))return o;a=Pir&&t}for(i in r)!(a&&i==="prototype")&&Iv(r,i)&&o.push(String(i));if(Fir)for(e=Lir(r),n=0;n<jg.length;n++)s=jg[n],!(e&&s==="constructor")&&Iv(r,s)&&o.push(String(s));return o}Tg.exports=Cir});var Ng=l((pQr,Ig)=>{"use strict";var Uir=gh(),Mir=xh(),Gir=$o(),$ir=Wh(),Yir=Og(),Wo;Mir?Uir()?Wo=$ir:Wo=Gir:Wo=Yir;Ig.exports=Wo});var xa=l((yQr,Dg)=>{"use strict";var Wir=Ng();Dg.exports=Wir});var Rg=l((mQr,kg)=>{"use strict";var Jir=Ot(),Xir=xa();function Kir(r,e){var a,t,o;for(a=Xir(e),o=0;o<a.length;o++)t=a[o],Jir(r,t,e[t]);return r}kg.exports=Kir});var De=l((hQr,zg)=>{"use strict";var Hir=Tr(),Nv=dh(),Vg=yh(),Zir=Rg();Hir(Nv,"enum",Vg);Zir(Nv,Vg());zg.exports=Nv});var Bg=l((gQr,Qir)=>{Qir.exports=["row-major","column-major"]});var Fg=l((bQr,Pg)=>{"use strict";var ror=Bg();function eor(){return ror.slice()}Pg.exports=eor});var Lg=l((xQr,aor)=>{aor.exports=["row-major","column-major"]});var Ug=l((qQr,Cg)=>{"use strict";var tor=Lg();function ior(){return tor.slice()}Cg.exports=ior});var Gg=l((wQr,Mg)=>{"use strict";function oor(){return{"row-major":101,"column-major":102}}Mg.exports=oor});var Dv=l((SQr,Yg)=>{"use strict";var sor=Tr(),$g=Ug(),nor=Gg();sor($g,"enum",nor);Yg.exports=$g});var Xg=l((EQr,Jg)=>{"use strict";var vor=Dv().enum,Wg=vor();function uor(){return{"row-major":Wg["row-major"],"column-major":Wg["column-major"]}}Jg.exports=uor});var Ft=l((AQr,Hg)=>{"use strict";var lor=Tr(),Kg=Fg(),cor=Xg();lor(Kg,"enum",cor);Hg.exports=Kg});var Zg=l((_Qr,dor)=>{dor.exports=["throw","normalize","clamp","wrap"]});var rb=l((jQr,Qg)=>{"use strict";var por=Zg();function yor(){return por.slice()}Qg.exports=yor});var ab=l((TQr,eb)=>{"use strict";function mor(){return{throw:1,clamp:2,wrap:3,normalize:4}}eb.exports=mor});var Lt=l((OQr,ib)=>{"use strict";var hor=Tr(),tb=rb(),gor=ab();hor(tb,"enum",gor);ib.exports=tb});var nb=l((IQr,sb)=>{"use strict";var mt=Bt(),bor=ti(),xor=Pt(),Ui=bv(),qor=De().enum,wor=Ft().enum,Sor=Lt().enum,Eor=qor(),Aor=wor(),ob=Sor();function _or(){var r,e,a,t,o,i,s,n,v,u,f,c,p,m;if(v=this._mode||"throw",s=this._submode||[v],c=this._ndims,p=s.length,a=33+c*16+p,n=this.__meta_dataview__,n&&n.byteLength===a)return n;for(n=new xor(new bor(a)),o=this._shape,i=this._strides,t=this._dtype,r=this._bytesPerElement,u=0,n.setInt8(u,mt?1:0),u+=1,n.setInt16(u,Eor[t],mt),u+=2,n.setBigInt64(u,Ui(c),mt),f=c*8,u+=8,m=0;m<c;m++)n.setBigInt64(u,Ui(o[m]),mt),n.setBigInt64(u+f,Ui(i[m]*r),mt),u+=8;for(u+=f,n.setBigInt64(u,Ui(this._offset*r),mt),u+=8,n.setInt8(u,Aor[this._order]),u+=1,n.setInt8(u,ob[v]),u+=1,n.setBigInt64(u,Ui(p),mt),u+=8,m=0;m<p;m++)n.setInt8(u,ob[s[m]]),u+=1;return e=0,e|=this._flags.READONLY?4:0,n.setInt32(u,e,mt),this.__meta_dataview__=n,n}sb.exports=_or});var ub=l((NQr,vb)=>{"use strict";var Mi=Bt(),jor=Qe(),Tor=Pt(),Oor=Ze(),Ior=4294967295,Nor=4294967296;function Dor(r){var e,a,t,o;return e=new jor(8),r===0||(o=(r&Ior)>>>0,t=Oor(r/Nor),a=new Tor(e.buffer),Mi?(a.setUint32(0,o,Mi),a.setUint32(4,t,Mi)):(a.setUint32(0,t,Mi),a.setUint32(4,o,Mi))),e}vb.exports=Dor});var lb=l((DQr,fb)=>{"use strict";var Gi=Bt(),kor=Qe(),Ror=Pt(),Vor=Ze(),zor=4294967295,Bor=4294967296,Xo=new kor(8),Jo=new Ror(Xo.buffer);function Por(r,e,a,t){var o,i,s;if(r===0){for(s=0;s<Xo.length;s++)e[t]=0,t+=a;return e}for(i=(r&zor)>>>0,o=Vor(r/Bor),Gi?(Jo.setUint32(0,i,Gi),Jo.setUint32(4,o,Gi)):(Jo.setUint32(0,o,Gi),Jo.setUint32(4,i,Gi)),s=0;s<Xo.length;s++)e[t]=Xo[s],t+=a;return e}fb.exports=Por});var kv=l((kQr,db)=>{"use strict";var For=Tr(),cb=ub(),Lor=lb();For(cb,"assign",Lor);db.exports=cb});var mb=l((RQr,yb)=>{"use strict";var Rv=Bt(),Cor=ti(),Uor=Pt(),Mor=Qe(),Gor=De().enum,$or=Ft().enum,Yor=Lt().enum,$i=kv().assign,Wor=Gor(),Jor=$or(),pb=Yor();function Xor(){var r,e,a,t,o,i,s,n,v,u,f,c,p,m,d;if(u=this._mode||"throw",n=this._submode||[u],p=this._ndims,m=n.length,t=33+p*16+m,v=this.__meta_dataview__,v&&v.byteLength===t)return v;for(v=new Uor(new Cor(t)),e=new Mor(v.buffer),i=this._shape,s=this._strides,o=this._dtype,r=this._bytesPerElement,f=0,v.setInt8(f,Rv?1:0),f+=1,v.setInt16(f,Wor[o],Rv),f+=2,$i(p,e,1,f),c=p*8,f+=8,d=0;d<p;d++)$i(i[d],e,1,f),$i(s[d]*r,e,1,f+c),f+=8;for(f+=c,$i(this._offset*r,e,1,f),f+=8,v.setInt8(f,Jor[this._order]),f+=1,v.setInt8(f,pb[u]),f+=1,$i(m,e,1,f),f+=8,d=0;d<m;d++)v.setInt8(f,pb[n[d]]),f+=1;return a=0,a|=this._flags.READONLY?4:0,v.setInt32(f,a,Rv),this.__meta_dataview__=v,v}yb.exports=Xor});var gb=l((VQr,hb)=>{"use strict";var Kor=ev(),ht=Tr(),qa=yt(),Hor=Ka(),Zor=ba(),Qor=kt(),rsr=It(),esr=qy(),asr=Sy(),tsr=Ny(),isr=ky(),osr=Vy(),ssr=By(),nsr=Fy(),vsr=Cy(),usr=Xy(),fsr=jm(),lsr=nb(),csr=mb();function ge(r,e,a,t,o,i){var s,n,v,u,f;if(!(this instanceof ge))return new ge(r,e,a,t,o,i);for(u=1,f=0;f<a.length;f++)u*=a[f];return e.BYTES_PER_ELEMENT?n=e.BYTES_PER_ELEMENT*u:n=null,this._byteLength=n,this._bytesPerElement=Hor(r),this._buffer=e,this._dtype=r,this._length=u,this._ndims=a.length,this._offset=o,this._order=i,this._shape=a,this._strides=t,this._accessors=rsr(e.get&&e.set),this._iterationOrder=Zor(t),s=tsr(u,a,t,o,this._iterationOrder),v=Qor(t),this._flags={ROW_MAJOR_CONTIGUOUS:asr(v,s),COLUMN_MAJOR_CONTIGUOUS:esr(v,s),READONLY:!1},this.__meta_dataview__=null,this}ht(ge,"name","ndarray");qa(ge.prototype,"byteLength",function(){return this._byteLength});qa(ge.prototype,"BYTES_PER_ELEMENT",function(){return this._bytesPerElement});qa(ge.prototype,"data",function(){return this._buffer});qa(ge.prototype,"dtype",function(){return this._dtype});qa(ge.prototype,"flags",function(){return isr(this._flags)});qa(ge.prototype,"length",function(){return this._length});qa(ge.prototype,"ndims",function(){return this._ndims});qa(ge.prototype,"offset",function(){return this._offset});qa(ge.prototype,"order",function(){return this._order});qa(ge.prototype,"shape",function(){return this._shape.slice()});qa(ge.prototype,"strides",function(){return this._strides.slice()});ht(ge.prototype,"get",vsr);ht(ge.prototype,"iget",osr);ht(ge.prototype,"set",nsr);ht(ge.prototype,"iset",ssr);ht(ge.prototype,"toString",fsr);ht(ge.prototype,"toJSON",usr);ht(ge.prototype,"__array_meta_dataview__",Kor()?lsr:csr);hb.exports=ge});var ra=l((zQr,bb)=>{"use strict";var dsr=gb();bb.exports=dsr});var qb=l((BQr,xb)=>{"use strict";var psr=ra();function ysr(r){return r instanceof psr||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"}xb.exports=ysr});var se=l((PQr,wb)=>{"use strict";var msr=qb();wb.exports=msr});var Eb=l((FQr,Sb)=>{"use strict";function hsr(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 gsr(r){var e,a,t;for(e=[],a=1,t=0;t<r.length;t++)e.push(a),a*=r[t];return e}function bsr(r,e){return e==="column-major"?gsr(r):hsr(r)}Sb.exports=bsr});var _b=l((LQr,Ab)=>{"use strict";function xsr(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 qsr(r,e){var a,t;for(a=1,t=0;t<r.length;t++)e[t]=a,a*=r[t];return e}function wsr(r,e,a){return e==="column-major"?qsr(r,a):xsr(r,a)}Ab.exports=wsr});var Ve=l((CQr,Tb)=>{"use strict";var Ssr=Tr(),jb=Eb(),Esr=_b();Ssr(jb,"assign",Esr);Tb.exports=jb});var Ib=l((UQr,Ob)=>{"use strict";function Asr(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}Ob.exports=Asr});var Me=l((MQr,Nb)=>{"use strict";var _sr=Ib();Nb.exports=_sr});var kb=l((GQr,Db)=>{"use strict";function jsr(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}Db.exports=jsr});var Wr=l(($Qr,Rb)=>{"use strict";var Tsr=kb();Rb.exports=Tsr});var Vv=l((YQr,Vb)=>{"use strict";var Osr=4294967295;Vb.exports=Osr});var Bb=l((WQr,zb)=>{"use strict";var Isr=ga(),Nsr=Vv();function Dsr(r){return r!=null&&typeof r!="function"&&typeof r.length=="number"&&Isr(r.length)&&r.length>=0&&r.length<=Nsr}zb.exports=Dsr});var Ko=l((JQr,Pb)=>{"use strict";var ksr=Bb();Pb.exports=ksr});var Lb=l((XQr,Fb)=>{"use strict";var Rsr=Ko(),Vsr=cr();function zsr(r){if(typeof r!="function")throw new TypeError(Vsr("invalid argument. Must provide a function. Value: `%s`.",r));return e;function e(a){var t,o;if(!Rsr(a)||(t=a.length,t===0))return!1;for(o=0;o<t;o++)if(r(a[o])===!1)return!1;return!0}}Fb.exports=zsr});var Ho=l((KQr,Cb)=>{"use strict";var Bsr=Lb();Cb.exports=Bsr});var Ct=l((HQr,Mb)=>{"use strict";var zv=me(),Ub=Tr(),Bv=Ho(),Psr=Bv(zv.isPrimitive),Fsr=Bv(zv.isObject),Pv=Bv(zv);Ub(Pv,"primitives",Psr);Ub(Pv,"objects",Fsr);Mb.exports=Pv});var Uv=l((ZQr,$b)=>{"use strict";var Fv=ve(),Gb=Tr(),Lv=Ho(),Lsr=Lv(Fv.isPrimitive),Csr=Lv(Fv.isObject),Cv=Lv(Fv);Gb(Cv,"primitives",Lsr);Gb(Cv,"objects",Csr);$b.exports=Cv});var Jb=l((QQr,Wb)=>{"use strict";var Usr=Ft(),Yb=Usr(),Msr=Yb.length;function Gsr(r){var e;for(e=0;e<Msr;e++)if(r===Yb[e])return!0;return!1}Wb.exports=Gsr});var wa=l((rre,Xb)=>{"use strict";var $sr=Jb();Xb.exports=$sr});var Zb=l((ere,Hb)=>{"use strict";var Kb="function";function Ysr(r){return typeof r.get===Kb&&typeof r.set===Kb}Hb.exports=Ysr});var rt=l((are,Qb)=>{"use strict";var Wsr=Zb();Qb.exports=Wsr});var a2=l((tre,e2)=>{"use strict";var r2={complex128:Jsr,complex64:Xsr,default:Ksr};function Jsr(r,e){return r.get(e)}function Xsr(r,e){return r.get(e)}function Ksr(r,e){return r.get(e)}function Hsr(r){var e=r2[r];return typeof e=="function"?e:r2.default}e2.exports=Hsr});var et=l((ire,t2)=>{"use strict";var Zsr=a2();t2.exports=Zsr});var s2=l((ore,o2)=>{"use strict";var i2={float64:Qsr,float32:rnr,int32:enr,int16:anr,int8:tnr,uint32:inr,uint16:onr,uint8:snr,uint8c:nnr,generic:vnr,default:unr};function Qsr(r,e){return r[e]}function rnr(r,e){return r[e]}function enr(r,e){return r[e]}function anr(r,e){return r[e]}function tnr(r,e){return r[e]}function inr(r,e){return r[e]}function onr(r,e){return r[e]}function snr(r,e){return r[e]}function nnr(r,e){return r[e]}function vnr(r,e){return r[e]}function unr(r,e){return r[e]}function fnr(r){var e=i2[r];return typeof e=="function"?e:i2.default}o2.exports=fnr});var gt=l((sre,n2)=>{"use strict";var lnr=s2();n2.exports=lnr});var u2=l((nre,v2)=>{"use strict";var cnr={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"};v2.exports=cnr});var l2=l((vre,f2)=>{"use strict";var dnr=ye(),pnr=typeof Float32Array=="function";function ynr(r){return pnr&&r instanceof Float32Array||dnr(r)==="[object Float32Array]"}f2.exports=ynr});var d2=l((ure,c2)=>{"use strict";var mnr=l2();c2.exports=mnr});var y2=l((fre,p2)=>{"use strict";var hnr=typeof Float32Array=="function"?Float32Array:null;p2.exports=hnr});var g2=l((lre,h2)=>{"use strict";var gnr=d2(),bnr=Fi(),m2=y2();function xnr(){var r,e;if(typeof m2!="function")return!1;try{e=new m2([1,3.14,-3.14,5e40]),r=gnr(e)&&e[0]===1&&e[1]===3.140000104904175&&e[2]===-3.140000104904175&&e[3]===bnr}catch{r=!1}return r}h2.exports=xnr});var x2=l((cre,b2)=>{"use strict";var qnr=g2();b2.exports=qnr});var w2=l((dre,q2)=>{"use strict";var wnr=typeof Float32Array=="function"?Float32Array:void 0;q2.exports=wnr});var E2=l((pre,S2)=>{"use strict";function Snr(){throw new Error("not implemented")}S2.exports=Snr});var at=l((yre,A2)=>{"use strict";var Enr=x2(),Anr=w2(),_nr=E2(),Mv;Enr()?Mv=Anr:Mv=_nr;A2.exports=Mv});var j2=l((mre,_2)=>{"use strict";var jnr=ye(),Tnr=typeof Uint32Array=="function";function Onr(r){return Tnr&&r instanceof Uint32Array||jnr(r)==="[object Uint32Array]"}_2.exports=Onr});var O2=l((hre,T2)=>{"use strict";var Inr=j2();T2.exports=Inr});var N2=l((gre,I2)=>{"use strict";var Nnr=typeof Uint32Array=="function"?Uint32Array:null;I2.exports=Nnr});var R2=l((bre,k2)=>{"use strict";var Dnr=O2(),Gv=Yo(),D2=N2();function knr(){var r,e;if(typeof D2!="function")return!1;try{e=[1,3.14,-3.14,Gv+1,Gv+2],e=new D2(e),r=Dnr(e)&&e[0]===1&&e[1]===3&&e[2]===Gv-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}k2.exports=knr});var z2=l((xre,V2)=>{"use strict";var Rnr=R2();V2.exports=Rnr});var P2=l((qre,B2)=>{"use strict";var Vnr=typeof Uint32Array=="function"?Uint32Array:void 0;B2.exports=Vnr});var L2=l((wre,F2)=>{"use strict";function znr(){throw new Error("not implemented")}F2.exports=znr});var oi=l((Sre,C2)=>{"use strict";var Bnr=z2(),Pnr=P2(),Fnr=L2(),$v;Bnr()?$v=Pnr:$v=Fnr;C2.exports=$v});var M2=l((Ere,U2)=>{"use strict";var Lnr=ye(),Cnr=typeof Int32Array=="function";function Unr(r){return Cnr&&r instanceof Int32Array||Lnr(r)==="[object Int32Array]"}U2.exports=Unr});var $2=l((Are,G2)=>{"use strict";var Mnr=M2();G2.exports=Mnr});var Yv=l((_re,Y2)=>{"use strict";var Gnr=2147483647;Y2.exports=Gnr});var Wv=l((jre,W2)=>{"use strict";var $nr=-2147483648;W2.exports=$nr});var X2=l((Tre,J2)=>{"use strict";var Ynr=typeof Int32Array=="function"?Int32Array:null;J2.exports=Ynr});var Z2=l((Ore,H2)=>{"use strict";var Wnr=$2(),Jnr=Yv(),Xnr=Wv(),K2=X2();function Knr(){var r,e;if(typeof K2!="function")return!1;try{e=new K2([1,3.14,-3.14,Jnr+1]),r=Wnr(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===Xnr}catch{r=!1}return r}H2.exports=Knr});var rx=l((Ire,Q2)=>{"use strict";var Hnr=Z2();Q2.exports=Hnr});var ax=l((Nre,ex)=>{"use strict";var Znr=typeof Int32Array=="function"?Int32Array:void 0;ex.exports=Znr});var ix=l((Dre,tx)=>{"use strict";function Qnr(){throw new Error("not implemented")}tx.exports=Qnr});var si=l((kre,ox)=>{"use strict";var rvr=rx(),evr=ax(),avr=ix(),Jv;rvr()?Jv=evr:Jv=avr;ox.exports=Jv});var nx=l((Rre,sx)=>{"use strict";var tvr=ye(),ivr=typeof Int16Array=="function";function ovr(r){return ivr&&r instanceof Int16Array||tvr(r)==="[object Int16Array]"}sx.exports=ovr});var ux=l((Vre,vx)=>{"use strict";var svr=nx();vx.exports=svr});var Xv=l((zre,fx)=>{"use strict";var nvr=32767;fx.exports=nvr});var Kv=l((Bre,lx)=>{"use strict";var vvr=-32768;lx.exports=vvr});var dx=l((Pre,cx)=>{"use strict";var uvr=typeof Int16Array=="function"?Int16Array:null;cx.exports=uvr});var mx=l((Fre,yx)=>{"use strict";var fvr=ux(),lvr=Xv(),cvr=Kv(),px=dx();function dvr(){var r,e;if(typeof px!="function")return!1;try{e=new px([1,3.14,-3.14,lvr+1]),r=fvr(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===cvr}catch{r=!1}return r}yx.exports=dvr});var gx=l((Lre,hx)=>{"use strict";var pvr=mx();hx.exports=pvr});var xx=l((Cre,bx)=>{"use strict";var yvr=typeof Int16Array=="function"?Int16Array:void 0;bx.exports=yvr});var wx=l((Ure,qx)=>{"use strict";function mvr(){throw new Error("not implemented")}qx.exports=mvr});var ni=l((Mre,Sx)=>{"use strict";var hvr=gx(),gvr=xx(),bvr=wx(),Hv;hvr()?Hv=gvr:Hv=bvr;Sx.exports=Hv});var Ax=l((Gre,Ex)=>{"use strict";var xvr=ye(),qvr=typeof Uint8ClampedArray=="function";function wvr(r){return qvr&&r instanceof Uint8ClampedArray||xvr(r)==="[object Uint8ClampedArray]"}Ex.exports=wvr});var jx=l(($re,_x)=>{"use strict";var Svr=Ax();_x.exports=Svr});var Ox=l((Yre,Tx)=>{"use strict";var Evr=typeof Uint8ClampedArray=="function"?Uint8ClampedArray:null;Tx.exports=Evr});var Dx=l((Wre,Nx)=>{"use strict";var Avr=jx(),Ix=Ox();function _vr(){var r,e;if(typeof Ix!="function")return!1;try{e=new Ix([-1,0,1,3.14,4.99,255,256]),r=Avr(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}Nx.exports=_vr});var Rx=l((Jre,kx)=>{"use strict";var jvr=Dx();kx.exports=jvr});var zx=l((Xre,Vx)=>{"use strict";var Tvr=typeof Uint8ClampedArray=="function"?Uint8ClampedArray:void 0;Vx.exports=Tvr});var Px=l((Kre,Bx)=>{"use strict";function Ovr(){throw new Error("not implemented")}Bx.exports=Ovr});var vi=l((Hre,Fx)=>{"use strict";var Ivr=Rx(),Nvr=zx(),Dvr=Px(),Zv;Ivr()?Zv=Nvr:Zv=Dvr;Fx.exports=Zv});var Cx=l((Zre,Lx)=>{"use strict";var kvr=ye(),Rvr=typeof Int8Array=="function";function Vvr(r){return Rvr&&r instanceof Int8Array||kvr(r)==="[object Int8Array]"}Lx.exports=Vvr});var Mx=l((Qre,Ux)=>{"use strict";var zvr=Cx();Ux.exports=zvr});var Qv=l((ree,Gx)=>{"use strict";var Bvr=127;Gx.exports=Bvr});var ru=l((eee,$x)=>{"use strict";var Pvr=-128;$x.exports=Pvr});var Wx=l((aee,Yx)=>{"use strict";var Fvr=typeof Int8Array=="function"?Int8Array:null;Yx.exports=Fvr});var Kx=l((tee,Xx)=>{"use strict";var Lvr=Mx(),Cvr=Qv(),Uvr=ru(),Jx=Wx();function Mvr(){var r,e;if(typeof Jx!="function")return!1;try{e=new Jx([1,3.14,-3.14,Cvr+1]),r=Lvr(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===Uvr}catch{r=!1}return r}Xx.exports=Mvr});var Zx=l((iee,Hx)=>{"use strict";var Gvr=Kx();Hx.exports=Gvr});var rq=l((oee,Qx)=>{"use strict";var $vr=typeof Int8Array=="function"?Int8Array:void 0;Qx.exports=$vr});var aq=l((see,eq)=>{"use strict";function Yvr(){throw new Error("not implemented")}eq.exports=Yvr});var ui=l((nee,tq)=>{"use strict";var Wvr=Zx(),Jvr=rq(),Xvr=aq(),eu;Wvr()?eu=Jvr:eu=Xvr;tq.exports=eu});var oq=l((vee,iq)=>{"use strict";var Kvr=ga(),Hvr=Vv();function Zvr(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&Kvr(r.length)&&r.length>=0&&r.length<=Hvr}iq.exports=Zvr});var ze=l((uee,sq)=>{"use strict";var Qvr=oq();sq.exports=Qvr});var Zo=l((fee,vq)=>{"use strict";var nq=Tr(),au=Un(),tu=za(),rur=au(tu.isPrimitive),eur=au(tu.isObject),iu=au(tu);nq(iu,"primitives",rur);nq(iu,"objects",eur);vq.exports=iu});var fq=l((lee,uq)=>{"use strict";function aur(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i",r}uq.exports=aur});var cq=l((cee,lq)=>{"use strict";function tur(){var r={};return r.type="Complex128",r.re=this.re,r.im=this.im,r}lq.exports=tur});var hq=l((dee,mq)=>{"use strict";var dq=Ue().isPrimitive,pq=Tt(),Yi=Tr(),yq=cr(),iur=fq(),our=cq();function Ut(r,e){if(!(this instanceof Ut))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!dq(r))throw new TypeError(yq("invalid argument. Real component must be a number. Value: `%s`.",r));if(!dq(e))throw new TypeError(yq("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return pq(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:r}),pq(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:e}),this}Yi(Ut,"BYTES_PER_ELEMENT",8);Yi(Ut.prototype,"BYTES_PER_ELEMENT",8);Yi(Ut.prototype,"byteLength",16);Yi(Ut.prototype,"toString",iur);Yi(Ut.prototype,"toJSON",our);mq.exports=Ut});var Qo=l((pee,gq)=>{"use strict";var sur=hq();gq.exports=sur});var xq=l((yee,bq)=>{"use strict";var nur=typeof Math.fround=="function"?Math.fround:null;bq.exports=nur});var Sq=l((mee,wq)=>{"use strict";var vur=at(),qq=new vur(1);function uur(r){return qq[0]=r,qq[0]}wq.exports=uur});var _q=l((hee,Aq)=>{"use strict";var Eq=xq(),fur=Sq(),ou;typeof Eq=="function"?ou=Eq:ou=fur;Aq.exports=ou});var Tq=l((gee,jq)=>{"use strict";function lur(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i",r}jq.exports=lur});var Iq=l((bee,Oq)=>{"use strict";function cur(){var r={};return r.type="Complex64",r.re=this.re,r.im=this.im,r}Oq.exports=cur});var zq=l((xee,Vq)=>{"use strict";var Nq=Ue().isPrimitive,Dq=Tt(),Wi=Tr(),kq=_q(),Rq=cr(),dur=Tq(),pur=Iq();function Mt(r,e){if(!(this instanceof Mt))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!Nq(r))throw new TypeError(Rq("invalid argument. Real component must be a number. Value: `%s`.",r));if(!Nq(e))throw new TypeError(Rq("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return Dq(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:kq(r)}),Dq(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:kq(e)}),this}Wi(Mt,"BYTES_PER_ELEMENT",4);Wi(Mt.prototype,"BYTES_PER_ELEMENT",4);Wi(Mt.prototype,"byteLength",8);Wi(Mt.prototype,"toString",dur);Wi(Mt.prototype,"toJSON",pur);Vq.exports=Mt});var rs=l((qee,Bq)=>{"use strict";var yur=zq();Bq.exports=yur});var Fq=l((wee,Pq)=>{"use strict";var mur=Qo(),hur=rs();function gur(r){return r instanceof mur||r instanceof hur?!0:typeof r=="object"&&r!==null&&typeof r.re=="number"&&typeof r.im=="number"}Pq.exports=gur});var na=l((See,Lq)=>{"use strict";var bur=Fq();Lq.exports=bur});var Uq=l((Eee,Cq)=>{"use strict";var xur=ga();function qur(r){return xur(r/2)}Cq.exports=qur});var su=l((Aee,Mq)=>{"use strict";var wur=Uq();Mq.exports=wur});var $q=l((_ee,Gq)=>{"use strict";var Sur=8;function Eur(r){return typeof r=="object"&&r!==null&&r.constructor.name==="Complex64Array"&&r.BYTES_PER_ELEMENT===Sur}Gq.exports=Eur});var es=l((jee,Yq)=>{"use strict";var Aur=$q();Yq.exports=Aur});var Jq=l((Tee,Wq)=>{"use strict";var _ur=16;function jur(r){return typeof r=="object"&&r!==null&&r.constructor.name==="Complex128Array"&&r.BYTES_PER_ELEMENT===_ur}Wq.exports=jur});var as=l((Oee,Xq)=>{"use strict";var Tur=Jq();Xq.exports=Tur});var Hq=l((Iee,Kq)=>{"use strict";var Our=Jr(),ts=kn();function Iur(){return typeof ts=="function"&&typeof ts("foo")=="symbol"&&Our(ts,"iterator")&&typeof ts.iterator=="symbol"}Kq.exports=Iur});var Ji=l((Nee,Zq)=>{"use strict";var Nur=Hq();Zq.exports=Nur});var rw=l((Dee,Qq)=>{"use strict";var Dur=Ji(),kur=Dur()?Symbol.iterator:null;Qq.exports=kur});var ke=l((kee,ew)=>{"use strict";var Rur=rw();ew.exports=Rur});var tw=l((Ree,aw)=>{"use strict";function Vur(r){return r.re}aw.exports=Vur});var Xi=l((Vee,iw)=>{"use strict";var zur=tw();iw.exports=zur});var sw=l((zee,ow)=>{"use strict";function Bur(r){return r.im}ow.exports=Bur});var Ki=l((Bee,nw)=>{"use strict";var Pur=sw();nw.exports=Pur});var uw=l((Pee,vw)=>{"use strict";var Fur=at();function Lur(r,e){return new Fur(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}vw.exports=Lur});var Hi=l((Fee,fw)=>{"use strict";var Cur=uw();fw.exports=Cur});var cw=l((Lee,lw)=>{"use strict";var Uur=Qa();function Mur(r,e){return new Uur(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}lw.exports=Mur});var Zi=l((Cee,dw)=>{"use strict";var Gur=cw();dw.exports=Gur});var yw=l((Uee,pw)=>{"use strict";var $ur=ze(),Yur=na(),Wur=Xi(),Jur=Ki(),Xur=cr();function Kur(r){var e,a,t;for(e=[];a=r.next(),!a.done;)if(t=a.value,$ur(t)&&t.length>=2)e.push(t[0],t[1]);else if(Yur(t))e.push(Wur(t),Jur(t));else return new TypeError(Xur("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=Kur});var hw=l((Mee,mw)=>{"use strict";var Hur=ze(),Zur=na(),Qur=Xi(),rfr=Ki(),efr=cr();function afr(r,e,a){var t,o,i,s;for(t=[],s=-1;o=r.next(),!o.done;)if(s+=1,i=e.call(a,o.value,s),Hur(i)&&i.length>=2)t.push(i[0],i[1]);else if(Zur(i))t.push(Qur(i),rfr(i));else return new TypeError(efr("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=afr});var bw=l((Gee,gw)=>{"use strict";var tfr=na(),ifr=Xi(),ofr=Ki();function sfr(r,e){var a,t,o,i;for(a=e.length,i=0,o=0;o<a;o++){if(t=e[o],!tfr(t))return null;r[i]=ifr(t),r[i+1]=ofr(t),i+=2}return r}gw.exports=sfr});var _w=l(($ee,Aw)=>{"use strict";var Qi=me().isPrimitive,nu=ze(),vu=Ne(),xw=Li(),uu=Bi(),nfr=ha(),vfr=Zo().primitives,qw=za().isPrimitive,Se=Fe(),ua=na(),is=su(),Ge=ga(),ufr=es(),ffr=as(),lfr=Ji(),Ba=ke(),Mr=Tr(),os=yt(),va=at(),cfr=rs(),Ir=cr(),Sa=Xi(),Ea=Ki(),dfr=Ze(),pfr=Hi(),yfr=Zi(),mfr=gt(),hfr=et(),ww=yw(),gfr=hw(),bfr=bw(),ea=va.BYTES_PER_ELEMENT*2,Sw=lfr();function re(r){return r instanceof Br||typeof r=="object"&&r!==null&&(r.constructor.name==="Complex64Array"||r.constructor.name==="Complex128Array")&&typeof r._length=="number"&&typeof r._buffer=="object"}function Ew(r){return r===Br||r.name==="Complex128Array"}function be(r,e){return e*=2,new cfr(r[e],r[e+1])}function Br(){var r,e,a,t;if(e=arguments.length,!(this instanceof Br))return e===0?new Br:e===1?new Br(arguments[0]):e===2?new Br(arguments[0],arguments[1]):new Br(arguments[0],arguments[1],arguments[2]);if(e===0)a=new va(0);else if(e===1)if(Qi(arguments[0]))a=new va(arguments[0]*2);else if(vu(arguments[0]))if(a=arguments[0],t=a.length,t&&nfr(a)&&ua(a[0])){if(a=bfr(new va(t*2),a),a===null){if(!is(t))throw new RangeError(Ir("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new va(arguments[0])}}else{if(ufr(a))a=pfr(a,0);else if(ffr(a))a=yfr(a,0);else if(!is(t))throw new RangeError(Ir("invalid argument. Array-like object and typed array arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new va(a)}else if(xw(arguments[0])){if(a=arguments[0],!Ge(a.byteLength/ea))throw new RangeError(Ir("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",ea,a.byteLength));a=new va(a)}else if(uu(arguments[0])){if(a=arguments[0],Sw===!1)throw new TypeError(Ir("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",a));if(!Se(a[Ba]))throw new TypeError(Ir("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=a[Ba](),!Se(a.next))throw new TypeError(Ir("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=ww(a),a instanceof Error)throw a;a=new va(a)}else throw new TypeError(Ir("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",arguments[0]));else{if(a=arguments[0],!xw(a))throw new TypeError(Ir("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!Qi(r))throw new TypeError(Ir("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!Ge(r/ea))throw new RangeError(Ir("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",ea,r));if(e===2){if(t=a.byteLength-r,!Ge(t/ea))throw new RangeError(Ir("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",ea,t));a=new va(a,r)}else{if(t=arguments[2],!Qi(t))throw new TypeError(Ir("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*ea>a.byteLength-r)throw new RangeError(Ir("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*ea));a=new va(a,r,t*2)}}return Mr(this,"_buffer",a),Mr(this,"_length",a.length/2),this}Mr(Br,"BYTES_PER_ELEMENT",ea);Mr(Br,"name","Complex64Array");Mr(Br,"from",function(e){var a,t,o,i,s,n,v,u,f,c,p,m;if(!Se(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Ew(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(t=arguments.length,t>1){if(o=arguments[1],!Se(o))throw new TypeError(Ir("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(re(e)){if(u=e.length,o){for(i=new this(u),s=i._buffer,m=0,p=0;p<u;p++){if(c=o.call(a,e.get(p),p),ua(c))s[m]=Sa(c),s[m+1]=Ea(c);else if(nu(c)&&c.length>=2)s[m]=c[0],s[m+1]=c[1];else throw new TypeError(Ir("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",c));m+=2}return i}return new this(e)}if(vu(e)){if(o){for(u=e.length,e.get&&e.set?v=hfr("default"):v=mfr("default"),p=0;p<u;p++)if(!ua(v(e,p))){f=!0;break}if(f){if(!is(u))throw new RangeError(Ir("invalid argument. First argument must have a length which is a multiple of %u. Length: `%u`.",2,u));for(i=new this(u/2),s=i._buffer,p=0;p<u;p++)s[p]=o.call(a,v(e,p),p);return i}for(i=new this(u),s=i._buffer,m=0,p=0;p<u;p++){if(c=o.call(a,v(e,p),p),ua(c))s[m]=Sa(c),s[m+1]=Ea(c);else if(nu(c)&&c.length>=2)s[m]=c[0],s[m+1]=c[1];else throw new TypeError(Ir("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",c));m+=2}return i}return new this(e)}if(uu(e)&&Sw&&Se(e[Ba])){if(s=e[Ba](),!Se(s.next))throw new TypeError(Ir("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));if(o?n=gfr(s,o,a):n=ww(s),n instanceof Error)throw n;for(u=n.length/2,i=new this(u),s=i._buffer,p=0;p<u;p++)s[p]=n[p];return i}throw new TypeError(Ir("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});Mr(Br,"of",function(){var e,a;if(!Se(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Ew(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)});Mr(Br.prototype,"at",function(e){if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ge(e))throw new TypeError(Ir("invalid argument. Must provide an integer. Value: `%s`.",e));if(e<0&&(e+=this._length),!(e<0||e>=this._length))return be(this._buffer,e)});os(Br.prototype,"buffer",function(){return this._buffer.buffer});os(Br.prototype,"byteLength",function(){return this._buffer.byteLength});os(Br.prototype,"byteOffset",function(){return this._buffer.byteOffset});Mr(Br.prototype,"BYTES_PER_ELEMENT",Br.BYTES_PER_ELEMENT);Mr(Br.prototype,"copyWithin",function(e,a){if(!re(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});Mr(Br.prototype,"entries",function(){var e,a,t,o,i,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,o=this._buffer,t=this._length,s=-1,a={},Mr(a,"next",n),Mr(a,"return",v),Ba&&Mr(a,Ba,u),a;function n(){return s+=1,i||s>=t?{done:!0}:{value:[s,be(o,s)],done:!1}}function v(f){return i=!0,arguments.length?{value:f,done:!0}:{done:!0}}function u(){return e.entries()}});Mr(Br.prototype,"every",function(e,a){var t,o;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("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,be(t,o),o,this))return!1;return!0});Mr(Br.prototype,"fill",function(e,a,t){var o,i,s,n,v,u;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ua(e))throw new TypeError(Ir("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!Ge(a))throw new TypeError(Ir("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!Ge(t))throw new TypeError(Ir("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(n=Sa(e),v=Ea(e),u=a;u<t;u++)s=2*u,o[s]=n,o[s+1]=v;return this});Mr(Br.prototype,"filter",function(e,a){var t,o,i,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=[],i=0;i<this._length;i++)s=be(t,i),e.call(a,s,i,this)&&o.push(s);return new this.constructor(o)});Mr(Br.prototype,"find",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=be(t,o),e.call(a,i,o,this))return i});Mr(Br.prototype,"findIndex",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=be(t,o),e.call(a,i,o,this))return o;return-1});Mr(Br.prototype,"findLast",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=be(t,o),e.call(a,i,o,this))return i});Mr(Br.prototype,"findLastIndex",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=be(t,o),e.call(a,i,o,this))return o;return-1});Mr(Br.prototype,"forEach",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)i=be(t,o),e.call(a,i,o,this)});Mr(Br.prototype,"get",function(e){if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Qi(e))throw new TypeError(Ir("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return be(this._buffer,e)});Mr(Br.prototype,"includes",function(e,a){var t,o,i,s,n;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ua(e))throw new TypeError(Ir("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!Ge(a))throw new TypeError(Ir("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=Sa(e),s=Ea(e),t=this._buffer,n=a;n<this._length;n++)if(o=2*n,i===t[o]&&s===t[o+1])return!0;return!1});Mr(Br.prototype,"indexOf",function(e,a){var t,o,i,s,n;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ua(e))throw new TypeError(Ir("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!Ge(a))throw new TypeError(Ir("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=Sa(e),s=Ea(e),t=this._buffer,n=a;n<this._length;n++)if(o=2*n,i===t[o]&&s===t[o+1])return n;return-1});Mr(Br.prototype,"join",function(e){var a,t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=",";else if(qw(e))o=e;else throw new TypeError(Ir("invalid argument. First argument must be a string. Value: `%s`.",e));for(a=[],t=this._buffer,i=0;i<this._length;i++)a.push(be(t,i).toString());return a.join(o)});Mr(Br.prototype,"keys",function(){var e,a,t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,t=this._length,i=-1,a={},Mr(a,"next",s),Mr(a,"return",n),Ba&&Mr(a,Ba,v),a;function s(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function n(u){return o=!0,arguments.length?{value:u,done:!0}:{done:!0}}function v(){return e.keys()}});Mr(Br.prototype,"lastIndexOf",function(e,a){var t,o,i,s,n;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ua(e))throw new TypeError(Ir("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!Ge(a))throw new TypeError(Ir("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=Sa(e),s=Ea(e),t=this._buffer,n=a;n>=0;n--)if(o=2*n,i===t[o]&&s===t[o+1])return n;return-1});os(Br.prototype,"length",function(){return this._length});Mr(Br.prototype,"map",function(e,a){var t,o,i,s,n;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("invalid argument. First argument must be a function. Value: `%s`.",e));for(o=this._buffer,i=new this.constructor(this._length),t=i._buffer,s=0;s<this._length;s++)if(n=e.call(a,be(o,s),s,this),ua(n))t[2*s]=Sa(n),t[2*s+1]=Ea(n);else if(nu(n)&&n.length===2)t[2*s]=n[0],t[2*s+1]=n[1];else throw new TypeError(Ir("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));return i});Mr(Br.prototype,"reduce",function(e,a){var t,o,i,s,n;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,n=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=be(t,0),n=1}for(;n<i;n++)s=be(t,n),o=e(o,s,n,this);return o});Mr(Br.prototype,"reduceRight",function(e,a){var t,o,i,s,n;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,n=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=be(t,i-1),n=i-2}for(;n>=0;n--)s=be(t,n),o=e(o,s,n,this);return o});Mr(Br.prototype,"reverse",function(){var e,a,t,o,i,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=this._buffer,o=dfr(t/2),i=0;i<o;i++)s=t-i-1,a=e[2*i],e[2*i]=e[2*s],e[2*s]=a,a=e[2*i+1],e[2*i+1]=e[2*s+1],e[2*s+1]=a;return this});Mr(Br.prototype,"set",function(e){var a,t,o,i,s,n,v,u,f;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!Qi(t))throw new TypeError(Ir("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(ua(e)){if(t>=this._length)throw new RangeError(Ir("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));t*=2,o[t]=Sa(e),o[t+1]=Ea(e);return}if(re(e)){if(n=e._length,t+n>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e._buffer,f=o.byteOffset+t*ea,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new va(a.length),u=0;u<a.length;u++)i[u]=a[u];a=i}for(t*=2,f=0,u=0;u<n;u++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(vu(e)){for(n=e.length,u=0;u<n;u++)if(!ua(e[u])){s=!0;break}if(s){if(!is(n))throw new RangeError(Ir("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",n));if(t+n/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e,f=o.byteOffset+t*ea,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new va(n),u=0;u<n;u++)i[u]=a[u];a=i}for(t*=2,n/=2,f=0,u=0;u<n;u++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(t+n>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,u=0;u<n;u++)v=e[u],o[t]=Sa(v),o[t+1]=Ea(v),t+=2;return}throw new TypeError(Ir("invalid argument. First argument must be either a complex number, an array-like object, or a complex number array. Value: `%s`.",e))});Mr(Br.prototype,"slice",function(e,a){var t,o,i,s,n,v,u;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(n=this._buffer,v=this._length,arguments.length===0)e=0,a=v;else{if(!Ge(e))throw new TypeError(Ir("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=v,e<0&&(e=0)),arguments.length===1)a=v;else{if(!Ge(a))throw new TypeError(Ir("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=v,a<0&&(a=0)):a>v&&(a=v)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,u=0;u<t;u++)s=2*(u+e),o[2*u]=n[s],o[2*u+1]=n[s+1];return i});Mr(Br.prototype,"some",function(e,a){var t,o;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("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,be(t,o),o,this))return!0;return!1});Mr(Br.prototype,"sort",function(e){var a,t,o,i,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("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(be(t,i));for(a.sort(e),i=0;i<o;i++)s=2*i,t[s]=Sa(a[i]),t[s+1]=Ea(a[i]);return this});Mr(Br.prototype,"subarray",function(e,a){var t,o,i;if(!re(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(!Ge(e))throw new TypeError(Ir("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(!Ge(a))throw new TypeError(Ir("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*ea):(i=a-e,t=o.byteOffset+e*ea),new this.constructor(o.buffer,t,i<0?0:i)});Mr(Br.prototype,"toLocaleString",function(e,a){var t,o,i,s,n;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=[];else if(qw(e)||vfr(e))o=e;else throw new TypeError(Ir("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(uu(a))t=a;else throw new TypeError(Ir("invalid argument. Options argument must be an object. Value: `%s`.",a));for(s=this._buffer,i=[],n=0;n<this._length;n++)i.push(be(s,n).toLocaleString(o,t));return i.join(",")});Mr(Br.prototype,"toReversed",function(){var e,a,t,o,i,s;if(!re(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++)s=t-i-1,e[2*i]=o[2*s],e[2*i+1]=o[2*s+1];return a});Mr(Br.prototype,"toSorted",function(e){var a,t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(e))throw new TypeError(Ir("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(be(t,i));return a.sort(e),new Br(a)});Mr(Br.prototype,"toString",function(){var e,a,t;if(!re(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(be(a,t).toString());return e.join(",")});Mr(Br.prototype,"values",function(){var e,a,t,o,i,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,i=this._buffer,t=this._length,s=-1,e={},Mr(e,"next",n),Mr(e,"return",v),Ba&&Mr(e,Ba,u),e;function n(){return s+=1,o||s>=t?{done:!0}:{value:be(i,s),done:!1}}function v(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function u(){return a.values()}});Mr(Br.prototype,"with",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ge(e))throw new TypeError(Ir("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(Ir("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!ua(a))throw new TypeError(Ir("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]=Sa(a),t[2*e+1]=Ea(a),o});Aw.exports=Br});var fi=l((Yee,jw)=>{"use strict";var xfr=_w();jw.exports=xfr});var Ow=l((Wee,Tw)=>{"use strict";var qfr=ze(),wfr=na(),Sfr=cr(),Efr=Rt(),Afr=Vt();function _fr(r){var e,a,t;for(e=[];a=r.next(),!a.done;)if(t=a.value,qfr(t)&&t.length>=2)e.push(t[0],t[1]);else if(wfr(t))e.push(Efr(t),Afr(t));else return new TypeError(Sfr("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=_fr});var Nw=l((Jee,Iw)=>{"use strict";var jfr=ze(),Tfr=na(),Ofr=cr(),Ifr=Rt(),Nfr=Vt();function Dfr(r,e,a){var t,o,i,s;for(t=[],s=-1;o=r.next(),!o.done;)if(s+=1,i=e.call(a,o.value,s),jfr(i)&&i.length>=2)t.push(i[0],i[1]);else if(Tfr(i))t.push(Ifr(i),Nfr(i));else return new TypeError(Ofr("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=Dfr});var kw=l((Xee,Dw)=>{"use strict";var kfr=na(),Rfr=Rt(),Vfr=Vt();function zfr(r,e){var a,t,o,i;for(a=e.length,i=0,o=0;o<a;o++){if(t=e[o],!kfr(t))return null;r[i]=Rfr(t),r[i+1]=Vfr(t),i+=2}return r}Dw.exports=zfr});var Cw=l((Kee,Lw)=>{"use strict";var ro=me().isPrimitive,fu=ze(),lu=Ne(),Rw=Li(),cu=Bi(),Bfr=ha(),Pfr=Zo().primitives,Vw=za(),Ee=Fe(),la=na(),ss=su(),$e=ga(),Ffr=es(),Lfr=as(),Cfr=Ji(),Pa=ke(),Gr=Tr(),ns=yt(),fa=Qa(),zw=Qo(),Aa=Rt(),_a=Vt(),Ufr=Ze(),Mfr=Hi(),Gfr=Zi(),$fr=gt(),Yfr=et(),Nr=cr(),Bw=Ow(),Wfr=Nw(),Jfr=kw(),aa=fa.BYTES_PER_ELEMENT*2,Pw=Cfr();function ee(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 Fw(r){return r===Pr||r.name==="Complex64Array"}function we(r,e){return e*=2,new zw(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 fa(0);else if(e===1)if(ro(arguments[0]))a=new fa(arguments[0]*2);else if(lu(arguments[0]))if(a=arguments[0],t=a.length,t&&Bfr(a)&&la(a[0])){if(a=Jfr(new fa(t*2),a),a===null){if(!ss(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 fa(arguments[0])}}else{if(Ffr(a))a=Mfr(a,0);else if(Lfr(a))a=Gfr(a,0);else if(!ss(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 fa(a)}else if(Rw(arguments[0])){if(a=arguments[0],!$e(a.byteLength/aa))throw new RangeError(Nr("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",aa,a.byteLength));a=new fa(a)}else if(cu(arguments[0])){if(a=arguments[0],Pw===!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=Bw(a),a instanceof Error)throw a;a=new fa(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],!Rw(a))throw new TypeError(Nr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!ro(r))throw new TypeError(Nr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!$e(r/aa))throw new RangeError(Nr("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",aa,r));if(e===2){if(t=a.byteLength-r,!$e(t/aa))throw new RangeError(Nr("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",aa,t));a=new fa(a,r)}else{if(t=arguments[2],!ro(t))throw new TypeError(Nr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*aa>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*aa));a=new fa(a,r,t*2)}}return Gr(this,"_buffer",a),Gr(this,"_length",a.length/2),this}Gr(Pr,"BYTES_PER_ELEMENT",aa);Gr(Pr,"name","Complex128Array");Gr(Pr,"from",function(e){var a,t,o,i,s,n,v,u,f,c,p,m;if(!Ee(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Fw(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(u=e.length,o){for(i=new this(u),s=i._buffer,m=0,p=0;p<u;p++){if(c=o.call(a,e.get(p),p),la(c))s[m]=Aa(c),s[m+1]=_a(c);else if(fu(c)&&c.length>=2)s[m]=c[0],s[m+1]=c[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`.",c));m+=2}return i}return new this(e)}if(lu(e)){if(o){for(u=e.length,e.get&&e.set?v=Yfr("default"):v=$fr("default"),p=0;p<u;p++)if(!la(v(e,p))){f=!0;break}if(f){if(!ss(u))throw new RangeError(Nr("invalid argument. First argument must have a length which is a multiple of two. Length: `%u`.",u));for(i=new this(u/2),s=i._buffer,p=0;p<u;p++)s[p]=o.call(a,v(e,p),p);return i}for(i=new this(u),s=i._buffer,m=0,p=0;p<u;p++){if(c=o.call(a,v(e,p),p),la(c))s[m]=Aa(c),s[m+1]=_a(c);else if(fu(c)&&c.length>=2)s[m]=c[0],s[m+1]=c[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`.",c));m+=2}return i}return new this(e)}if(cu(e)&&Pw&&Ee(e[Pa])){if(s=e[Pa](),!Ee(s.next))throw new TypeError(Nr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));if(o?n=Wfr(s,o,a):n=Bw(s),n instanceof Error)throw n;for(u=n.length/2,i=new this(u),s=i._buffer,p=0;p<u;p++)s[p]=n[p];return i}throw new TypeError(Nr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});Gr(Pr,"of",function(){var e,a;if(!Ee(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Fw(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(Pr.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 we(this._buffer,e)});ns(Pr.prototype,"buffer",function(){return this._buffer.buffer});ns(Pr.prototype,"byteLength",function(){return this._buffer.byteLength});ns(Pr.prototype,"byteOffset",function(){return this._buffer.byteOffset});Gr(Pr.prototype,"BYTES_PER_ELEMENT",Pr.BYTES_PER_ELEMENT);Gr(Pr.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(Pr.prototype,"entries",function(){var e,a,t,o,i,s,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,e=this._buffer,o=this._length,s=-1,n=-2,t={},Gr(t,"next",v),Gr(t,"return",u),Pa&&Gr(t,Pa,f),t;function v(){var c;return s+=1,i||s>=o?{done:!0}:(n+=2,c=new zw(e[n],e[n+1]),{value:[s,c],done:!1})}function u(c){return i=!0,arguments.length?{value:c,done:!0}:{done:!0}}function f(){return a.entries()}});Gr(Pr.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,we(t,o),o,this))return!1;return!0});Gr(Pr.prototype,"fill",function(e,a,t){var o,i,s,n,v,u;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!la(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(n=Aa(e),v=_a(e),u=a;u<t;u++)s=2*u,o[s]=n,o[s+1]=v;return this});Gr(Pr.prototype,"filter",function(e,a){var t,o,i,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(t=this._buffer,o=[],i=0;i<this._length;i++)s=we(t,i),e.call(a,s,i,this)&&o.push(s);return new this.constructor(o)});Gr(Pr.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=we(t,o),e.call(a,i,o,this))return i});Gr(Pr.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=we(t,o),e.call(a,i,o,this))return o;return-1});Gr(Pr.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=we(t,o),e.call(a,i,o,this))return i});Gr(Pr.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=we(t,o),e.call(a,i,o,this))return o;return-1});Gr(Pr.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=we(t,o),e.call(a,i,o,this)});Gr(Pr.prototype,"get",function(e){if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ro(e))throw new TypeError(Nr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return we(this._buffer,e)});ns(Pr.prototype,"length",function(){return this._length});Gr(Pr.prototype,"includes",function(e,a){var t,o,i,s,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!la(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=Aa(e),s=_a(e),t=this._buffer,n=a;n<this._length;n++)if(o=2*n,i===t[o]&&s===t[o+1])return!0;return!1});Gr(Pr.prototype,"indexOf",function(e,a){var t,o,i,s,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!la(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=Aa(e),s=_a(e),t=this._buffer,n=a;n<this._length;n++)if(o=2*n,i===t[o]&&s===t[o+1])return n;return-1});Gr(Pr.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(Vw(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(we(t,i).toString());return a.join(o)});Gr(Pr.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",s),Gr(a,"return",n),Pa&&Gr(a,Pa,v),a;function s(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function n(u){return o=!0,arguments.length?{value:u,done:!0}:{done:!0}}function v(){return e.keys()}});Gr(Pr.prototype,"lastIndexOf",function(e,a){var t,o,i,s,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!la(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=Aa(e),s=_a(e),t=this._buffer,n=a;n>=0;n--)if(o=2*n,i===t[o]&&s===t[o+1])return n;return-1});Gr(Pr.prototype,"map",function(e,a){var t,o,i,s,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(o=this._buffer,i=new this.constructor(this._length),t=i._buffer,s=0;s<this._length;s++)if(n=e.call(a,we(o,s),s,this),la(n))t[2*s]=Aa(n),t[2*s+1]=_a(n);else if(fu(n)&&n.length===2)t[2*s]=n[0],t[2*s+1]=n[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`.",n));return i});Gr(Pr.prototype,"reduce",function(e,a){var t,o,i,s,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));if(t=this._buffer,i=this._length,arguments.length>1)o=a,n=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),n=1}for(;n<i;n++)s=we(t,n),o=e(o,s,n,this);return o});Gr(Pr.prototype,"reduceRight",function(e,a){var t,o,i,s,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));if(t=this._buffer,i=this._length,arguments.length>1)o=a,n=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),n=i-2}for(;n>=0;n--)s=we(t,n),o=e(o,s,n,this);return o});Gr(Pr.prototype,"reverse",function(){var e,a,t,o,i,s;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++)s=t-i-1,a=e[2*i],e[2*i]=e[2*s],e[2*s]=a,a=e[2*i+1],e[2*i+1]=e[2*s+1],e[2*s+1]=a;return this});Gr(Pr.prototype,"set",function(e){var a,t,o,i,s,n,v,u,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],!ro(t))throw new TypeError(Nr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(la(e)){if(t>=this._length)throw new RangeError(Nr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));t*=2,o[t]=Aa(e),o[t+1]=_a(e);return}if(ee(e)){if(n=e._length,t+n>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e._buffer,f=o.byteOffset+t*aa,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new fa(a.length),u=0;u<a.length;u++)i[u]=a[u];a=i}for(t*=2,f=0,u=0;u<n;u++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(lu(e)){for(n=e.length,u=0;u<n;u++)if(!la(e[u])){s=!0;break}if(s){if(!ss(n))throw new RangeError(Nr("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",n));if(t+n/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e,f=o.byteOffset+t*aa,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new fa(n),u=0;u<n;u++)i[u]=a[u];a=i}for(t*=2,n/=2,f=0,u=0;u<n;u++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(t+n>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,u=0;u<n;u++)v=e[u],o[t]=Aa(v),o[t+1]=_a(v),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(Pr.prototype,"slice",function(e,a){var t,o,i,s,n,v,u;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(n=this._buffer,v=this._length,arguments.length===0)e=0,a=v;else{if(!$e(e))throw new TypeError(Nr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=v,e<0&&(e=0)),arguments.length===1)a=v;else{if(!$e(a))throw new TypeError(Nr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=v,a<0&&(a=0)):a>v&&(a=v)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,u=0;u<t;u++)s=2*(u+e),o[2*u]=n[s],o[2*u+1]=n[s+1];return i});Gr(Pr.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,we(t,o),o,this))return!0;return!1});Gr(Pr.prototype,"sort",function(e){var a,t,o,i,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(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++)s=2*i,t[s]=Aa(a[i]),t[s+1]=_a(a[i]);return this});Gr(Pr.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*aa):(i=a-e,t=o.byteOffset+e*aa),new this.constructor(o.buffer,t,i<0?0:i)});Gr(Pr.prototype,"toLocaleString",function(e,a){var t,o,i,s,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=[];else if(Vw(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(cu(a))t=a;else throw new TypeError(Nr("invalid argument. Options argument must be an object. Value: `%s`.",a));for(s=this._buffer,i=[],n=0;n<this._length;n++)i.push(we(s,n).toLocaleString(o,t));return i.join(",")});Gr(Pr.prototype,"toReversed",function(){var e,a,t,o,i,s;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++)s=t-i-1,e[2*i]=o[2*s],e[2*i+1]=o[2*s+1];return a});Gr(Pr.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(we(t,i));return a.sort(e),new Pr(a)});Gr(Pr.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(we(a,t).toString());return e.join(",")});Gr(Pr.prototype,"values",function(){var e,a,t,o,i,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,i=this._buffer,t=this._length,s=-1,e={},Gr(e,"next",n),Gr(e,"return",v),Pa&&Gr(e,Pa,u),e;function n(){return s+=1,o||s>=t?{done:!0}:{value:we(i,s),done:!1}}function v(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function u(){return a.values()}});Gr(Pr.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(!la(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]=Aa(a),t[2*e+1]=_a(a),o});Lw.exports=Pr});var li=l((Hee,Uw)=>{"use strict";var Xfr=Cw();Uw.exports=Xfr});var Gw=l((Zee,Mw)=>{"use strict";var Kfr=It();function Hfr(r){var e,a;for(e=[];a=r.next(),!a.done;)e.push(Kfr(a.value));return e}Mw.exports=Hfr});var Yw=l((Qee,$w)=>{"use strict";var Zfr=It();function Qfr(r,e,a){var t,o,i;for(t=[],i=-1;o=r.next(),!o.done;)i+=1,t.push(Zfr(e.call(a,o.value,i)));return t}$w.exports=Qfr});var Jw=l((rae,Ww)=>{"use strict";var rlr=It();function elr(r,e){var a,t;for(a=e.length,t=0;t<a;t++)r[t]=rlr(e[t]);return r}Ww.exports=elr});var e3=l((eae,r3)=>{"use strict";var eo=me().isPrimitive,du=Ne(),Xw=Li(),pu=Bi(),Ae=Fe(),ao=de().isPrimitive,ja=ve().isPrimitive,Kw=za().isPrimitive,alr=Zo().primitives,tlr=Ji(),Fa=ke(),$r=Tr(),vs=yt(),tt=Qe(),fe=It(),ilr=gt(),olr=Ze(),slr=et(),Yr=cr(),Hw=Gw(),nlr=Yw(),vlr=Jw(),Gt=tt.BYTES_PER_ELEMENT,Zw=tlr();function ae(r){return typeof r=="object"&&r!==null&&r.constructor.name==="BooleanArray"&&r.BYTES_PER_ELEMENT===Gt}function Qw(r){return r===Ur}function Ur(){var r,e,a,t,o;if(e=arguments.length,!(this instanceof Ur))return e===0?new Ur:e===1?new Ur(arguments[0]):e===2?new Ur(arguments[0],arguments[1]):new Ur(arguments[0],arguments[1],arguments[2]);if(e===0)a=new tt(0);else if(e===1)if(o=arguments[0],eo(o))a=new tt(o);else if(du(o))a=vlr(new tt(o.length),o);else if(Xw(o))a=new tt(o);else if(pu(o)){if(Zw===!1)throw new TypeError(Yr("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",o));if(!Ae(o[Fa]))throw new TypeError(Yr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));if(a=o[Fa](),!Ae(a.next))throw new TypeError(Yr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));a=new tt(Hw(a))}else throw new TypeError(Yr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));else{if(a=arguments[0],!Xw(a))throw new TypeError(Yr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!eo(r))throw new TypeError(Yr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(e===2)a=new tt(a,r);else{if(t=arguments[2],!eo(t))throw new TypeError(Yr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*Gt>a.byteLength-r)throw new RangeError(Yr("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*Gt));a=new tt(a,r,t)}}return $r(this,"_buffer",a),$r(this,"_length",a.length),this}$r(Ur,"BYTES_PER_ELEMENT",Gt);$r(Ur,"name","BooleanArray");$r(Ur,"from",function(e){var a,t,o,i,s,n,v,u,f;if(!Ae(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Qw(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(t=arguments.length,t>1){if(o=arguments[1],!Ae(o))throw new TypeError(Yr("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(du(e)){if(o){for(u=e.length,e.get&&e.set?v=slr("default"):v=ilr("default"),i=new this(u),s=i._buffer,f=0;f<u;f++)s[f]=fe(o.call(a,v(e,f),f));return i}return new this(e)}if(pu(e)&&Zw&&Ae(e[Fa])){if(s=e[Fa](),!Ae(s.next))throw new TypeError(Yr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));for(o?n=nlr(s,o,a):n=Hw(s),u=n.length,i=new this(u),s=i._buffer,f=0;f<u;f++)s[f]=n[f];return i}throw new TypeError(Yr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});$r(Ur,"of",function(){var e,a;if(!Ae(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Qw(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(Ur.prototype,"at",function(e){var a,t;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!ja(e))throw new TypeError(Yr("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 fe(a[e])});vs(Ur.prototype,"buffer",function(){return this._buffer.buffer});vs(Ur.prototype,"byteLength",function(){return this._buffer.byteLength});vs(Ur.prototype,"byteOffset",function(){return this._buffer.byteOffset});$r(Ur.prototype,"BYTES_PER_ELEMENT",Ur.BYTES_PER_ELEMENT);$r(Ur.prototype,"copyWithin",function(e,a){if(!ae(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(Ur.prototype,"entries",function(){var e,a,t,o,i,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return e=this,o=this._buffer,t=this._length,s=-1,a={},$r(a,"next",n),$r(a,"return",v),Fa&&$r(a,Fa,u),a;function n(){return s+=1,i||s>=t?{done:!0}:{value:[s,fe(o[s])],done:!1}}function v(f){return i=!0,arguments.length?{value:f,done:!0}:{done:!0}}function u(){return e.entries()}});$r(Ur.prototype,"every",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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,fe(t[o]),o,this))return!1;return!0});$r(Ur.prototype,"fill",function(e,a,t){var o,i,s,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!ao(e))throw new TypeError(Yr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!ja(a))throw new TypeError(Yr("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!ja(t))throw new TypeError(Yr("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?s=1:s=0,n=a;n<t;n++)o[n]=s;return this});$r(Ur.prototype,"filter",function(e,a){var t,o,i,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=[],i=0;i<this._length;i++)s=fe(t[i]),e.call(a,s,i,this)&&o.push(s);return new this.constructor(o)});$r(Ur.prototype,"find",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=0;i<this._length;i++)if(o=fe(t[i]),e.call(a,o,i,this))return o});$r(Ur.prototype,"findIndex",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=0;i<this._length;i++)if(o=fe(t[i]),e.call(a,o,i,this))return i;return-1});$r(Ur.prototype,"findLast",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=this._length-1;i>=0;i--)if(o=fe(t[i]),e.call(a,o,i,this))return o});$r(Ur.prototype,"findLastIndex",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=this._length-1;i>=0;i--)if(o=fe(t[i]),e.call(a,o,i,this))return i;return-1});$r(Ur.prototype,"forEach",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)e.call(a,fe(t[o]),o,this)});$r(Ur.prototype,"get",function(e){if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!eo(e))throw new TypeError(Yr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return fe(this._buffer[e])});$r(Ur.prototype,"includes",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!ao(e))throw new TypeError(Yr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!ja(a))throw new TypeError(Yr("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===fe(t[o]))return!0;return!1});$r(Ur.prototype,"indexOf",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!ao(e))throw new TypeError(Yr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!ja(a))throw new TypeError(Yr("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===fe(t[o]))return o;return-1});$r(Ur.prototype,"join",function(e){var a,t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length>0){if(!Kw(e))throw new TypeError(Yr("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(Ur.prototype,"keys",function(){var e,a,t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return e=this,t=this._length,i=-1,a={},$r(a,"next",s),$r(a,"return",n),Fa&&$r(a,Fa,v),a;function s(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function n(u){return o=!0,arguments.length?{value:u,done:!0}:{done:!0}}function v(){return e.keys()}});$r(Ur.prototype,"lastIndexOf",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!ao(e))throw new TypeError(Yr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!ja(a))throw new TypeError(Yr("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===fe(t[o]))return o;return-1});vs(Ur.prototype,"length",function(){return this._length});$r(Ur.prototype,"map",function(e,a){var t,o,i,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(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,s=0;s<this._length;s++)t[s]=fe(e.call(a,fe(i[s]),s,this));return o});$r(Ur.prototype,"reduce",function(e,a){var t,o,i,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,o=this._length,arguments.length>1)i=a,s=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=fe(t[0]),s=1}for(;s<o;s++)i=e(i,fe(t[s]),s,this);return i});$r(Ur.prototype,"reduceRight",function(e,a){var t,o,i,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,o=this._length,arguments.length>1)i=a,s=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=fe(t[o-1]),s=o-2}for(;s>=0;s--)i=e(i,fe(t[s]),s,this);return i});$r(Ur.prototype,"reverse",function(){var e,a,t,o,i,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=this._buffer,t=this._length,o=olr(t/2),i=0;i<o;i++)s=t-i-1,a=e[i],e[i]=e[s],e[s]=a;return this});$r(Ur.prototype,"set",function(e){var a,t,o,i,s,n,v;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!eo(t))throw new TypeError(Yr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(du(e)){if(s=e.length,t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(ae(e)?a=e._buffer:a=e,v=o.byteOffset+t*Gt,a.buffer===o.buffer&&a.byteOffset<v&&a.byteOffset+a.byteLength>v){for(i=new tt(a.length),n=0;n<a.length;n++)i[n]=a[n];a=i}for(n=0;n<s;t++,n++)o[t]=a[n]?1:0;return}if(t>=this._length)throw new RangeError(Yr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));o[t]=e?1:0});$r(Ur.prototype,"slice",function(e,a){var t,o,i,s,n,v;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(s=this._buffer,n=this._length,arguments.length===0)e=0,a=n;else{if(!ja(e))throw new TypeError(Yr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=n,e<0&&(e=0)),arguments.length===1)a=n;else{if(!ja(a))throw new TypeError(Yr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=n,a<0&&(a=0)):a>n&&(a=n)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,v=0;v<t;v++)o[v]=s[v+e];return i});$r(Ur.prototype,"some",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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,fe(t[o]),o,this))return!0;return!1});$r(Ur.prototype,"sort",function(e){var a;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(a=this._buffer,arguments.length===0)return a.sort(),this;if(!Ae(e))throw new TypeError(Yr("invalid argument. First argument must be a function. Value: `%s`.",e));return a.sort(t),this;function t(o,i){return e(fe(o),fe(i))}});$r(Ur.prototype,"subarray",function(e,a){var t,o,i;if(!ae(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(!ja(e))throw new TypeError(Yr("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(!ja(a))throw new TypeError(Yr("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*Gt):(i=a-e,t=o.byteOffset+e*Gt),new this.constructor(o.buffer,t,i<0?0:i)});$r(Ur.prototype,"toLocaleString",function(e,a){var t,o,i,s,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length===0)o=[];else if(Kw(e)||alr(e))o=e;else throw new TypeError(Yr("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(pu(a))t=a;else throw new TypeError(Yr("invalid argument. Options argument must be an object. Value: `%s`.",a));for(s=this._buffer,i=[],n=0;n<this._length;n++)i.push(fe(s[n]).toLocaleString(o,t));return i.join(",")});$r(Ur.prototype,"toReversed",function(){var e,a,t,o,i;if(!ae(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(Ur.prototype,"toSorted",function(e){var a,t,o,i,s;if(!ae(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,s=0;s<o;s++)a[s]=i[s];if(arguments.length===0)return a.sort(),t;if(!Ae(e))throw new TypeError(Yr("invalid argument. First argument must be a function. Value: `%s`.",e));return a.sort(n),t;function n(v,u){return e(fe(v),fe(u))}});$r(Ur.prototype,"toString",function(){var e,a,t;if(!ae(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(Ur.prototype,"values",function(){var e,a,t,o,i,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return a=this,i=this._buffer,t=this._length,s=-1,e={},$r(e,"next",n),$r(e,"return",v),Fa&&$r(e,Fa,u),e;function n(){return s+=1,o||s>=t?{done:!0}:{value:fe(i[s]),done:!1}}function v(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function u(){return a.values()}});$r(Ur.prototype,"with",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!ja(e))throw new TypeError(Yr("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(Yr("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!ao(a))throw new TypeError(Yr("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});r3.exports=Ur});var ci=l((aae,a3)=>{"use strict";var ulr=e3();a3.exports=ulr});var i3=l((tae,t3)=>{"use strict";var flr=Qa(),llr=at(),clr=oi(),dlr=si(),plr=zt(),ylr=ni(),mlr=Qe(),hlr=vi(),glr=ui(),blr=fi(),xlr=li(),qlr=ci(),wlr=[flr,llr,dlr,clr,ylr,plr,glr,mlr,hlr,blr,xlr,qlr];t3.exports=wlr});var s3=l((iae,o3)=>{"use strict";var Slr=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"];o3.exports=Slr});var u3=l((oae,v3)=>{"use strict";var Elr=Pi(),Alr=ha(),_lr=pt(),jlr=u2(),Tlr=i3(),n3=s3(),Olr=n3.length;function Ilr(r){var e;if(Alr(r))return"generic";if(Elr(r))return null;for(e=0;e<Olr;e++)if(r instanceof Tlr[e])return n3[e];return jlr[_lr(r)]||null}v3.exports=Ilr});var to=l((sae,f3)=>{"use strict";var Nlr=u3();f3.exports=Nlr});var c3=l((nae,l3)=>{"use strict";var Dlr=rt(),klr=et(),Rlr=gt(),Vlr=to();function zlr(r,e){var a,t,o,i;for(o=Vlr(r),Dlr(r)?t=klr(o):t=Rlr(o),a=r.length,i=0;i<a;i++)if(t(r,i)===e)return!0;return!1}l3.exports=zlr});var p3=l((vae,d3)=>{"use strict";var Blr=Ne(),Plr=rt(),Flr=et(),Llr=to(),Clr=cr();function Ulr(r){var e,a,t;if(!Blr(r))throw new TypeError(Clr("invalid argument. Must provide an array-like object. Value: `%s`.",r));return t=Llr(r),Plr(r)&&(e=Flr(t)),a=r.length,e===void 0?o:i;function o(s){var n;for(n=0;n<a;n++)if(r[n]===s)return!0;return!1}function i(s){var n;for(n=0;n<a;n++)if(e(r,n)===s)return!0;return!1}}d3.exports=Ulr});var Be=l((uae,m3)=>{"use strict";var Mlr=Tr(),y3=c3(),Glr=p3();Mlr(y3,"factory",Glr);m3.exports=y3});var g3=l((fae,h3)=>{"use strict";var $lr=Be().factory,Ylr=De(),Wlr=$lr(Ylr());h3.exports=Wlr});var di=l((lae,b3)=>{"use strict";var Jlr=g3();b3.exports=Jlr});var q3=l((cae,x3)=>{"use strict";var Xlr=Ha();function Klr(r,e,a,t){var o=Xlr(e,a,t);return o[0]>=0&&o[1]<r}x3.exports=Klr});var yu=l((dae,w3)=>{"use strict";var Hlr=q3();w3.exports=Hlr});var mu=l((pae,S3)=>{"use strict";function Zlr(){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"}}S3.exports=Zlr});var A3=l((yae,E3)=>{"use strict";var Qlr=mu(),ta=Qlr(),rcr={"dtypes.default":ta.dtypes.default,"dtypes.numeric":ta.dtypes.numeric,"dtypes.real":ta.dtypes.real,"dtypes.floating_point":ta.dtypes.floating_point,"dtypes.real_floating_point":ta.dtypes.real_floating_point,"dtypes.complex_floating_point":ta.dtypes.complex_floating_point,"dtypes.integer":ta.dtypes.integer,"dtypes.signed_integer":ta.dtypes.signed_integer,"dtypes.unsigned_integer":ta.dtypes.unsigned_integer,"dtypes.boolean":ta.dtypes.boolean,order:ta.order,casting:ta.casting,index_mode:ta.index_mode};function ecr(r){var e=rcr[r];return e===void 0?null:e}E3.exports=ecr});var Ta=l((mae,j3)=>{"use strict";var acr=Tr(),_3=mu(),tcr=A3();acr(_3,"get",tcr);j3.exports=_3});var O3=l((hae,T3)=>{"use strict";var icr=cr();function ocr(r){var e=typeof r;return r===null||e!=="object"&&e!=="function"?new TypeError(icr("invalid argument. A provided constructor must be either an object (except null) or a function. Value: `%s`.",r)):null}T3.exports=ocr});var N3=l((gae,I3)=>{"use strict";I3.exports=Object.create});var R3=l((bae,k3)=>{"use strict";function D3(){}function scr(r){return D3.prototype=r,new D3}k3.exports=scr});var B3=l((xae,z3)=>{"use strict";var V3=N3(),ncr=R3(),hu;typeof V3=="function"?hu=V3:hu=ncr;z3.exports=hu});var L3=l((qae,F3)=>{"use strict";var vcr=Tt(),ucr=cr(),P3=O3(),fcr=B3();function lcr(r,e){var a=P3(r);if(a||(a=P3(e),a))throw a;if(typeof e.prototype>"u")throw new TypeError(ucr("invalid argument. Second argument must have a prototype from which another object can inherit. Value: `%s`.",e.prototype));return r.prototype=fcr(e.prototype),vcr(r.prototype,"constructor",{configurable:!0,enumerable:!1,writable:!0,value:r}),r}F3.exports=lcr});var gu=l((wae,C3)=>{"use strict";var ccr=L3();C3.exports=ccr});var M3=l((Sae,U3)=>{"use strict";function dcr(r,e){return r<0?0:r>e?e:r}U3.exports=dcr});var us=l((Eae,G3)=>{"use strict";var pcr=M3();G3.exports=pcr});var Y3=l((Aae,$3)=>{"use strict";function ycr(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)}$3.exports=ycr});var fs=l((_ae,W3)=>{"use strict";var mcr=Y3();W3.exports=mcr});var X3=l((jae,J3)=>{"use strict";function hcr(r,e){return r<0?(r+=e+1,r<0?-1:r):r>e?-1:r}J3.exports=hcr});var ca=l((Tae,K3)=>{"use strict";var gcr=X3();K3.exports=gcr});var Z3=l((Oae,H3)=>{"use strict";var bcr=Be().factory,xcr=Lt(),qcr=bcr(xcr());H3.exports=qcr});var pi=l((Iae,Q3)=>{"use strict";var wcr=Z3();Q3.exports=wcr});var e4=l((Nae,r4)=>{"use strict";var Scr=us(),Ecr=fs(),Acr=ca(),_cr=pi(),bu=cr(),jcr={wrap:Ecr,clamp:Scr,normalize:Ocr,throw:Tcr};function Tcr(r,e){if(r<0||r>e)throw new RangeError(bu("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return r}function Ocr(r,e){var a=Acr(r,e);if(a<0||a>e)throw new RangeError(bu("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return a}function Icr(r){if(!_cr(r))throw new TypeError(bu("invalid argument. First argument must be a recognized index mode. Value: `%s`.",r));return jcr[r]}r4.exports=Icr});var t4=l((Dae,a4)=>{"use strict";var Ncr=us(),Dcr=fs(),kcr=ca(),Rcr=cr();function Vcr(r,e,a){var t;if(a==="clamp")return Ncr(r,e);if(a==="wrap")return Dcr(r,e);if(t=r,a==="normalize"&&(t=kcr(t,e)),t<0||t>e)throw new RangeError(Rcr("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return t}a4.exports=Vcr});var it=l((kae,o4)=>{"use strict";var zcr=Tr(),Bcr=e4(),i4=t4();zcr(i4,"factory",Bcr);o4.exports=i4});var v4=l((Rae,n4)=>{"use strict";var Pcr=ve().isPrimitive,Fcr=it(),Lcr=ra(),Ccr=cr(),s4=Lcr.prototype.iget;function Ucr(r){if(this._ndims>0){if(!Pcr(r))throw new TypeError(Ccr("invalid argument. Index must be an integer. Value: `%s`.",r));return r=Fcr(r,this._length-1,this._mode),s4.call(this,r)}return s4.call(this)}n4.exports=Ucr});var l4=l((Vae,f4)=>{"use strict";var Mcr=ve().isPrimitive,Gcr=it(),$cr=ra(),Ycr=cr(),u4=$cr.prototype.iset;function Wcr(r,e){if(this._flags.READONLY)throw new Error("invalid invocation. Cannot write to a read-only array.");if(this._ndims>0){if(!Mcr(r))throw new TypeError(Ycr("invalid argument. Index must be an integer. Value: `%s`.",r));r=Gcr(r,this._length-1,this._mode),u4.call(this,r,e)}else u4.call(this,r);return this}f4.exports=Wcr});var p4=l((zae,d4)=>{"use strict";var Jcr=ve().isPrimitive,Xcr=it(),c4=cr();function Kcr(){var r,e,a,t;if(arguments.length!==this._ndims)throw new RangeError(c4("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(!Jcr(arguments[t]))throw new TypeError(c4("invalid argument. Indices must be integer valued. Argument: `%u`. Value: `%s`.",t,arguments[t]));e=Xcr(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]}d4.exports=Kcr});var h4=l((Bae,m4)=>{"use strict";var Hcr=ve().isPrimitive,Zcr=it(),y4=cr();function Qcr(){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(y4("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(!Hcr(arguments[t]))throw new TypeError(y4("invalid argument. Indices must be integer valued. Argument: `%i`. Value: `%s`.",t,arguments[t]));e=Zcr(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}m4.exports=Qcr});var b4=l((Pae,g4)=>{"use strict";function rdr(r,e){var a,t;for(a=[],t=0;t<e;t++)a.push(r[t]);return a}g4.exports=rdr});var w4=l((Fae,q4)=>{"use strict";var edr=oe(),xu=Jr(),adr=ze(),x4=pi(),tdr=de().isPrimitive,yi=cr();function idr(r,e){var a;if(!edr(e))return new TypeError(yi("invalid argument. Options argument must be an object. Value: `%s`.",e));if(xu(e,"mode")&&(r.mode=e.mode,!x4(r.mode)))return new TypeError(yi("invalid option. `%s` option must be a recognized mode. Option: `%s`.","mode",r.mode));if(xu(e,"submode")){if(r.submode=e.submode,!adr(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(!x4(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 xu(e,"readonly")&&(r.readonly=e.readonly,!tdr(r.readonly))?new TypeError(yi("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",r.readonly)):null}q4.exports=idr});var O4=l((Lae,T4)=>{"use strict";var io=Tr(),S4=Ne(),odr=Ct().primitives,sdr=me().isPrimitive,ndr=Uv().primitives,E4=Fe(),vdr=wa(),udr=di(),fdr=yu(),ldr=Wr(),j4=ra(),cdr=Ta(),ddr=gu(),La=cr(),pdr=v4(),ydr=l4(),mdr=p4(),hdr=h4(),A4=b4(),gdr=w4(),_4=32767,bdr=cdr.get("index_mode"),xdr=!1;function Ca(r,e,a,t,o,i,s){var n,v,u,f,c;if(!(this instanceof Ca))return arguments.length<7?new Ca(r,e,a,t,o,i):new Ca(r,e,a,t,o,i,s);if(!udr(r))throw new TypeError(La("invalid argument. First argument must be a supported ndarray data type. Value: `%s`.",r));if(S4(e)){if(e.get&&e.set&&(!E4(e.get)||!E4(e.set)))throw new TypeError(La("invalid argument. Second argument `get` and `set` properties must be functions. Value: `%s`.",e))}else throw new TypeError(La("invalid argument. Second argument must be an array-like object, typed-array-like, or a Buffer. Value: `%s`.",e));if(!odr(a)&&(!S4(a)||a.length>0))throw new TypeError(La("invalid argument. Third argument must be an array-like object containing nonnegative integers. Value: `%s`.",a));if(n=a.length,n>_4)throw new RangeError(La("invalid argument. Number of dimensions must not exceed %u due to stack limits. Value: `%u`.",_4,n));if(!ndr(t))throw new TypeError(La("invalid argument. Fourth argument must be an array-like object containing integers. Value: `%s`.",t));if(n>0){if(t.length!==n)throw new RangeError(La("invalid argument. Fourth argument length must match the number of dimensions. Expected number of dimensions: `%u`. Strides length: `%u`.",n,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(La("invalid argument. Fourth argument must contain a single element equal to 0. Value: `%d`.",t[0]))}if(!sdr(o))throw new TypeError(La("invalid argument. Fifth argument must be a nonnegative integer. Value: `%s`.",o));if(!vdr(i))throw new TypeError(La("invalid argument. Sixth argument must be a supported order. Value: `%s`.",i));if(n>0&&!fdr(e.length,a,t,o)&&ldr(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(v={},v.mode=bdr,v.readonly=xdr,arguments.length>6&&(u=gdr(v,s),u))throw u;return this._mode=v.mode,v.submode===void 0&&(v.submode=[this._mode]),this._submode=v.submode,f=A4(a,n),c=A4(t,n||1),j4.call(this,r,e,f,c,o,i),this._flags.READONLY=v.readonly,this}ddr(Ca,j4);io(Ca,"name","ndarray");io(Ca.prototype,"get",mdr);io(Ca.prototype,"iget",pdr);io(Ca.prototype,"set",hdr);io(Ca.prototype,"iset",ydr);T4.exports=Ca});var da=l((Cae,I4)=>{"use strict";var qdr=O4();I4.exports=qdr});var N4=l((Uae,wdr)=>{wdr.exports=["none","equiv","safe","mostly-safe","same-kind","unsafe"]});var k4=l((Mae,D4)=>{"use strict";var Sdr=N4();function Edr(){return Sdr.slice()}D4.exports=Edr});var V4=l((Gae,R4)=>{"use strict";function Adr(){return{none:0,equiv:1,safe:2,"mostly-safe":3,"same-kind":4,unsafe:5}}R4.exports=Adr});var qu=l(($ae,B4)=>{"use strict";var _dr=Tr(),z4=k4(),jdr=V4();_dr(z4,"enum",jdr);B4.exports=z4});var L4=l((Yae,F4)=>{"use strict";var Tdr=qu(),P4=Tdr(),Odr=P4.length;function Idr(r){var e;for(e=0;e<Odr;e++)if(r===P4[e])return!0;return!1}F4.exports=Idr});var wu=l((Wae,C4)=>{"use strict";var Ndr=L4();C4.exports=Ndr});var G4=l((Jae,M4)=>{"use strict";var Ddr=xa(),kdr=ha(),Rdr=oe(),Vdr=Lo(),zdr=de().isPrimitive,U4=Jr(),Su=cr();function Bdr(r,e){var a=!0,t,o,i,s,n,v,u;if(!Vdr(r))throw new TypeError(Su("invalid argument. First argument must be an object (except null). Value: `%s`.",r));if(arguments.length>1){if(!Rdr(e))throw new TypeError(Su("invalid argument. Options argument must be an object. Value: `%s`.",e));if(U4(e,"duplicates")&&(a=e.duplicates,!zdr(a)))throw new TypeError(Su("invalid option. `%s` option must be a boolean. Option: `%s`.","duplicates",a))}if(t=Ddr(r),o=t.length,n={},a)for(u=0;u<o;u++){if(i=t[u],s=r[i],!U4(n,s)){n[s]=i;continue}v=n[s],kdr(v)?n[s].push(i):n[s]=[v,i]}else for(u=0;u<o;u++)i=t[u],n[r[i]]=i;return n}M4.exports=Bdr});var ls=l((Xae,$4)=>{"use strict";var Pdr=G4();$4.exports=Pdr});var W4=l((Kae,Y4)=>{"use strict";var Fdr=ls(),Ldr=De().enum,Cdr=Fdr(Ldr(),{duplicates:!1});function Udr(r){var e=Cdr[r];return typeof e=="string"?e:null}Y4.exports=Udr});var cs=l((Hae,J4)=>{"use strict";var Mdr=W4();J4.exports=Mdr});var K4=l((Zae,X4)=>{"use strict";var Gdr=De().enum,$dr=Gdr();function Ydr(r){var e=$dr[r];return typeof e=="number"?e:null}X4.exports=Ydr});var oo=l((Qae,H4)=>{"use strict";var Wdr=K4();H4.exports=Wdr});var Q4=l((rte,Z4)=>{"use strict";var Jdr=cs(),Xdr=oo();function Kdr(r){var e=typeof r;return e==="string"?Xdr(r)===null?null:r:e==="number"?Jdr(r):null}Z4.exports=Kdr});var Oa=l((ete,r6)=>{"use strict";var Hdr=Q4();r6.exports=Hdr});var e6=l((ate,Zdr)=>{Zdr.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 i6=l((tte,t6)=>{"use strict";var a6=xa(),Qdr=Jr(),r0r=Oa(),ps=e6(),ds;function e0r(){var r,e,a,t,o,i,s,n,v;for(a={},r=a6(ps),e=r.length,v=0;v<e;v++){for(o=r[v],s=ps[o],t={},n=0;n<e;n++)i=r[n],t[i]=s[i];a[o]=t}return a}function a0r(){var r,e,a,t,o,i,s,n,v;for(a={},r=a6(ps),e=r.length,v=0;v<e;v++){for(o=r[v],s=ps[o],t=[],n=0;n<e;n++)i=r[n],s[i]===1&&t.push(i);a[o]=t}return a}function t0r(r){return arguments.length===0?e0r():(ds===void 0&&(ds=a0r()),r=r0r(r),Qdr(ds,r)?ds[r].slice():null)}t6.exports=t0r});var Eu=l((ite,o6)=>{"use strict";var i0r=i6();o6.exports=i0r});var n6=l((ote,s6)=>{"use strict";var o0r=Eu(),s0r=o0r();function n0r(r,e){return r===e?!0:s0r[r][e]>0}s6.exports=n0r});var ys=l((ste,v6)=>{"use strict";var v0r=n6();v6.exports=v0r});var u6=l((nte,u0r)=>{u0r.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 c6=l((vte,l6)=>{"use strict";var f6=xa(),f0r=Jr(),l0r=Oa(),hs=u6(),ms;function c0r(){var r,e,a,t,o,i,s,n,v;for(a={},r=f6(hs),e=r.length,v=0;v<e;v++){for(o=r[v],s=hs[o],t={},n=0;n<e;n++)i=r[n],t[i]=s[i];a[o]=t}return a}function d0r(){var r,e,a,t,o,i,s,n,v;for(a={},r=f6(hs),e=r.length,v=0;v<e;v++){for(o=r[v],s=hs[o],t=[],n=0;n<e;n++)i=r[n],s[i]===1&&t.push(i);a[o]=t}return a}function p0r(r){return arguments.length===0?c0r():(ms===void 0&&(ms=d0r()),r=l0r(r),f0r(ms,r)?ms[r].slice():null)}l6.exports=p0r});var Au=l((ute,d6)=>{"use strict";var y0r=c6();d6.exports=y0r});var y6=l((fte,p6)=>{"use strict";var m0r=Au(),h0r=m0r();function g0r(r,e){return r===e?!0:h0r[r][e]>0}p6.exports=g0r});var gs=l((lte,m6)=>{"use strict";var b0r=y6();m6.exports=b0r});var h6=l((cte,x0r)=>{x0r.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 x6=l((dte,b6)=>{"use strict";var g6=xa(),q0r=Jr(),w0r=Oa(),xs=h6(),bs;function S0r(){var r,e,a,t,o,i,s,n,v;for(a={},r=g6(xs),e=r.length,v=0;v<e;v++){for(o=r[v],s=xs[o],t={},n=0;n<e;n++)i=r[n],t[i]=s[i];a[o]=t}return a}function E0r(){var r,e,a,t,o,i,s,n,v;for(a={},r=g6(xs),e=r.length,v=0;v<e;v++){for(o=r[v],s=xs[o],t=[],n=0;n<e;n++)i=r[n],s[i]===1&&t.push(i);a[o]=t}return a}function A0r(r){return arguments.length===0?S0r():(bs===void 0&&(bs=E0r()),r=w0r(r),q0r(bs,r)?bs[r].slice():null)}b6.exports=A0r});var _u=l((pte,q6)=>{"use strict";var _0r=x6();q6.exports=_0r});var S6=l((yte,w6)=>{"use strict";var j0r=_u(),T0r=j0r();function O0r(r,e){return r===e?!0:T0r[r][e]>0}w6.exports=O0r});var ju=l((mte,E6)=>{"use strict";var I0r=S6();E6.exports=I0r});var _6=l((hte,A6)=>{"use strict";var N0r=ys(),D0r=gs(),k0r=ju();function R0r(r,e,a){return a==="unsafe"||r===e?!0:a==="none"||a==="equiv"?!1:a==="safe"?N0r(r,e):a==="mostly-safe"?D0r(r,e):k0r(r,e)}A6.exports=R0r});var Tu=l((gte,j6)=>{"use strict";var V0r=_6();j6.exports=V0r});var O6=l((bte,T6)=>{"use strict";var z0r=typeof Buffer=="function"?Buffer:null;T6.exports=z0r});var N6=l((xte,I6)=>{"use strict";var B0r=Pi(),qs=O6();function P0r(){var r,e;if(typeof qs!="function")return!1;try{typeof qs.from=="function"?e=qs.from([1,2,3,4]):e=new qs([1,2,3,4]),r=B0r(e)&&e[0]===1&&e[1]===2&&e[2]===3&&e[3]===4}catch{r=!1}return r}I6.exports=P0r});var k6=l((qte,D6)=>{"use strict";var F0r=N6();D6.exports=F0r});var V6=l((wte,R6)=>{"use strict";var L0r=require("buffer").Buffer;R6.exports=L0r});var B6=l((Ste,z6)=>{"use strict";function C0r(){throw new Error("not implemented")}z6.exports=C0r});var so=l((Ete,P6)=>{"use strict";var U0r=k6(),M0r=V6(),G0r=B6(),Ou;U0r()?Ou=M0r:Ou=G0r;P6.exports=Ou});var L6=l((Ate,F6)=>{"use strict";var $0r=so(),Y0r=Qa(),W0r=at(),J0r=ni(),X0r=si(),K0r=ui(),H0r=zt(),Z0r=oi(),Q0r=Qe(),rpr=vi(),epr=fi(),apr=li(),tpr=ci(),ipr={binary:$0r,float64:Y0r,float32:W0r,generic:Array,int16:J0r,int32:X0r,int8:K0r,uint16:H0r,uint32:Z0r,uint8:Q0r,uint8c:rpr,complex64:epr,complex128:apr,bool:tpr};F6.exports=ipr});var U6=l((_te,C6)=>{"use strict";var opr=L6();function spr(r){return opr[r]||null}C6.exports=spr});var no=l((jte,M6)=>{"use strict";var npr=U6();M6.exports=npr});var $6=l((Tte,G6)=>{"use strict";var vpr=Fe(),upr=so(),fpr=vpr(upr.allocUnsafe);G6.exports=fpr});var W6=l((Ote,Y6)=>{"use strict";var lpr=me(),cpr=cr(),dpr=so();function ppr(r){if(!lpr(r))throw new TypeError(cpr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));return dpr.allocUnsafe(r)}Y6.exports=ppr});var X6=l((Ite,J6)=>{"use strict";var ypr=me(),mpr=cr(),hpr=so();function gpr(r){if(!ypr(r))throw new TypeError(mpr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));return new hpr(r)}J6.exports=gpr});var Ua=l((Nte,K6)=>{"use strict";var bpr=$6(),xpr=W6(),qpr=X6(),Iu;bpr?Iu=xpr:Iu=qpr;K6.exports=Iu});var Z6=l((Dte,H6)=>{"use strict";function wpr(r){var e;for(e=0;e<r.length;e++)r[e]=0;return r}H6.exports=wpr});var rS=l((kte,Q6)=>{"use strict";var Spr=no(),Epr=Ua(),Apr=Z6();function _pr(r){var e,a;for(e=[],a=0;a<r;a++)e.push(0);return e}function jpr(r){return Apr(Epr(r))}function Tpr(r,e){var a=Spr(r);return a?new a(e):null}function Opr(r,e){return r==="generic"?_pr(e):r==="binary"?jpr(e):Tpr(r,e)}Q6.exports=Opr});var Ia=l((Rte,eS)=>{"use strict";var Ipr=rS();eS.exports=Ipr});var tS=l((Vte,aS)=>{"use strict";var Npr={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"};aS.exports=Npr});var oS=l((zte,iS)=>{"use strict";var Dpr=Qa(),kpr=at(),Rpr=oi(),Vpr=si(),zpr=zt(),Bpr=ni(),Ppr=Qe(),Fpr=vi(),Lpr=ui(),Cpr=fi(),Upr=li(),Mpr=ci(),Gpr=[Dpr,kpr,Vpr,Rpr,Bpr,zpr,Lpr,Ppr,Fpr,Cpr,Upr,Mpr];iS.exports=Gpr});var nS=l((Bte,sS)=>{"use strict";var $pr=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"];sS.exports=$pr});var fS=l((Pte,uS)=>{"use strict";var Ypr=Pi(),Wpr=ha(),Jpr=pt(),Xpr=tS(),Kpr=oS(),vS=nS(),Hpr=vS.length;function Zpr(r){var e;if(Wpr(r))return"generic";if(Ypr(r))return"binary";for(e=0;e<Hpr;e++)if(r instanceof Kpr[e])return vS[e];return Xpr[Jpr(r)]||null}uS.exports=Zpr});var ws=l((Fte,lS)=>{"use strict";var Qpr=fS();lS.exports=Qpr});var pS=l((Lte,dS)=>{"use strict";var ryr=di(),cS=cr();function eyr(r){var e;if(typeof r!="object"||r===null)throw new TypeError(cS("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.dtype,ryr(e))return e;throw new TypeError(cS("invalid argument. Must provide an ndarray having a supported data type. Value: `%s`.",e))}dS.exports=eyr});var Na=l((Cte,yS)=>{"use strict";var ayr=pS();yS.exports=ayr});var hS=l((Ute,mS)=>{"use strict";var tyr=me().isPrimitive,iyr=Ne(),Nu=cr();function oyr(r){var e,a,t,o;if(typeof r!="object"||r===null)throw new TypeError(Nu("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(a=r.shape,!iyr(a))throw new TypeError(Nu("invalid argument. Must provide an ndarray. Value: `%s`.",r));for(e=[],o=0;o<a.length;o++){if(t=a[o],!tyr(t))throw new TypeError(Nu("invalid argument. Must provide an ndarray. Value: `%s`.",r));e.push(t)}return e}mS.exports=oyr});var ie=l((Mte,gS)=>{"use strict";var syr=hS();gS.exports=syr});var qS=l((Gte,xS)=>{"use strict";var nyr=ve().isPrimitive,bS=Ne(),vyr=wa(),uyr=Ve(),Du=cr();function fyr(r){var e,a,t,o,i,s;if(typeof r!="object"||r===null)throw new TypeError(Du("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(o=r.strides,!bS(o)){if(t=r.shape,!bS(t))throw new TypeError(Du("invalid argument. Must provide an ndarray. Value: `%s`.",r));return t.length===0?[0]:(a=r.order,vyr(a)||(a="row-major"),uyr(t,a))}for(e=[],s=0;s<o.length;s++){if(i=o[s],!nyr(i))throw new TypeError(Du("invalid argument. Must provide an ndarray. Value: `%s`.",r));e.push(i)}return e}xS.exports=fyr});var Ma=l(($te,wS)=>{"use strict";var lyr=qS();wS.exports=lyr});var _S=l((Yte,AS)=>{"use strict";var SS=me().isPrimitive,ES=Ne(),cyr=Me(),ku=cr();function dyr(r){var e,a,t;if(typeof r!="object"||r===null)throw new TypeError(ku("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(t=r.offset,SS(t))return t;if(a=r.shape,!ES(a))throw new TypeError(ku("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.strides,a.length===0||!ES(e))return 0;if(t=cyr(a,e),SS(t))return t;throw new TypeError(ku("invalid argument. Must provide an ndarray. Value: `%s`.",r))}AS.exports=dyr});var bt=l((Wte,jS)=>{"use strict";var pyr=_S();jS.exports=pyr});var IS=l((Jte,OS)=>{"use strict";var yyr=me().isPrimitive,myr=Ne(),TS=cr();function hyr(r){var e,a;if(typeof r!="object"||r===null)throw new TypeError(TS("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(a=r.ndims,yyr(a))return a;if(e=r.shape,!myr(e))throw new TypeError(TS("invalid argument. Must provide an ndarray. Value: `%s`.",r));return e.length}OS.exports=hyr});var Ss=l((Xte,NS)=>{"use strict";var gyr=IS();NS.exports=gyr});var RS=l((Kte,kS)=>{"use strict";var byr=wa(),xyr=Ma(),qyr=Ss(),wyr=kt(),Syr=cr(),DS="row-major",Eyr="column-major";function Ayr(r){var e,a;if(typeof r!="object"||r===null)throw new TypeError(Syr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return a=r.order,byr(a)?a:(e=xyr(r),a=wyr(e),a===1||a===3?DS:a===2?Eyr:qyr(r)===0?DS:null)}kS.exports=Ayr});var Ga=l((Hte,VS)=>{"use strict";var _yr=RS();VS.exports=_yr});var PS=l((Zte,BS)=>{"use strict";var jyr=Ne(),zS=cr();function Tyr(r){var e;if(typeof r!="object"||r===null)throw new TypeError(zS("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.data,jyr(e))return e;throw new TypeError(zS("invalid argument. Must provide an ndarray. Value: `%s`.",r))}BS.exports=Tyr});var ot=l((Qte,FS)=>{"use strict";var Oyr=PS();FS.exports=Oyr});var MS=l((rie,US)=>{"use strict";var Ru=ze(),Iyr=cr();function LS(r,e){var a=e[0];return Ru(a)&&(r.push(a.length),LS(r,a)),r}function CS(r,e,a,t,o){var i,s,n;for(i=e[a],n=0;n<t.length;n++){if(s=t[n],!Ru(s)||s.length!==i)return a;if(o&&(s=CS(r,e,a+1,s,a+1<r-1),s<r))return s}return r}function Nyr(r){var e,a;if(!Ru(r))throw new TypeError(Iyr("invalid argument. Must provide an array-like object. Value: `%s`.",r));return e=[r.length],LS(e,r),a=e.length,a>1&&(e.length=CS(a,e,1,r,a>2)),e}US.exports=Nyr});var $S=l((eie,GS)=>{"use strict";var Dyr=MS();GS.exports=Dyr});var WS=l((aie,YS)=>{"use strict";function kyr(r,e){var a,t;for(a=[],t=0;t<e;t++)a.push(r);return a}YS.exports=kyr});var vo=l((tie,JS)=>{"use strict";var Ryr=WS();JS.exports=Ryr});var KS=l((iie,XS)=>{"use strict";var Vyr=vo();function zyr(r){return Vyr(0,r)}XS.exports=zyr});var xe=l((oie,HS)=>{"use strict";var Byr=KS();HS.exports=Byr});var QS=l((sie,ZS)=>{"use strict";var Pyr=cr();function Fyr(r,e,a,t,o,i){var s,n,v,u,f;for(s=r.length,n=1,f=0;f<s;f++)n*=r[f];if(i==="clamp")o<0?o=0:o>=n&&(o=n-1);else if(i==="wrap")o<0?(o+=n,o<0&&(o%=n,o!==0&&(o+=n))):o>=n&&(o-=n,o>=n&&(o%=n));else if(i==="normalize"&&o<0&&(o+=n),o<0||o>=n)throw new RangeError(Pyr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",n,o));if(v=a,t==="column-major"){for(f=0;f<s;f++)u=o%r[f],o-=u,o/=r[f],v+=u*e[f];return v}for(f=s-1;f>=0;f--)u=o%r[f],o-=u,o/=r[f],v+=u*e[f];return v}ZS.exports=Fyr});var ia=l((nie,rE)=>{"use strict";var Lyr=QS();rE.exports=Lyr});var tE=l((vie,aE)=>{"use strict";var eE={float64:Cyr,float32:Uyr,int32:Myr,int16:Gyr,int8:$yr,uint32:Yyr,uint16:Wyr,uint8:Jyr,uint8c:Xyr,generic:Kyr,default:Hyr};function Cyr(r,e,a){r[e]=a}function Uyr(r,e,a){r[e]=a}function Myr(r,e,a){r[e]=a}function Gyr(r,e,a){r[e]=a}function $yr(r,e,a){r[e]=a}function Yyr(r,e,a){r[e]=a}function Wyr(r,e,a){r[e]=a}function Jyr(r,e,a){r[e]=a}function Xyr(r,e,a){r[e]=a}function Kyr(r,e,a){r[e]=a}function Hyr(r,e,a){r[e]=a}function Zyr(r){var e=eE[r];return typeof e=="function"?e:eE.default}aE.exports=Zyr});var mi=l((uie,iE)=>{"use strict";var Qyr=tE();iE.exports=Qyr});var nE=l((fie,sE)=>{"use strict";var oE={complex128:rmr,complex64:emr,default:amr};function rmr(r,e,a){r.set(a,e)}function emr(r,e,a){r.set(a,e)}function amr(r,e,a){r.set(a,e)}function tmr(r){var e=oE[r];return typeof e=="function"?e:oE.default}sE.exports=tmr});var hi=l((lie,vE)=>{"use strict";var imr=nE();vE.exports=imr});var fE=l((cie,uE)=>{"use strict";var omr=rt(),smr=gt(),nmr=mi(),vmr=et(),umr=hi(),fmr=to();function lmr(r){var e=fmr(r);return omr(r)?{data:r,dtype:e,accessorProtocol:!0,accessors:[vmr(e),umr(e)]}:{data:r,dtype:e,accessorProtocol:!1,accessors:[smr(e),nmr(e)]}}uE.exports=lmr});var st=l((die,lE)=>{"use strict";var cmr=fE();lE.exports=cmr});var Vu=l((pie,cE)=>{"use strict";var dmr=Ze();function pmr(r,e,a,t){var o,i,s,n,v,u,f,c;for(o=e.data,s=e.accessors[0],i=e.accessors[1],f=dmr(r/2),v=t,u=v+(r-1)*a,c=0;c<f;c++)n=s(o,v),i(o,v,s(o,u)),i(o,u,n),v+=a,u-=a;return e}cE.exports=pmr});var pE=l((yie,dE)=>{"use strict";var ymr=Ze(),mmr=st(),hmr=Vu(),Es=3;function gmr(r,e,a){var t,o,i,s,n,v,u;if(r<=0)return e;if(s=mmr(e),s.accessorProtocol)return a<0?o=(1-r)*a:o=0,hmr(r,s,a,o),s.data;if(v=ymr(r/2),a===1){if(n=v%Es,i=r-1,n>0)for(o=0;o<n;o++)t=e[o],e[o]=e[i],e[i]=t,i-=1;if(v<Es)return e;for(o=n;o<v;o+=Es)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-=Es;return e}for(a<0?o=(1-r)*a:o=0,i=o+(r-1)*a,u=0;u<v;u++)t=e[o],e[o]=e[i],e[i]=t,o+=a,i-=a;return e}dE.exports=gmr});var mE=l((mie,yE)=>{"use strict";var bmr=Ze(),xmr=st(),qmr=Vu(),uo=3;function wmr(r,e,a,t){var o,i,s,n,v,u,f;if(r<=0)return e;if(n=xmr(e),n.accessorProtocol)return qmr(r,n,a,t),n.data;if(u=bmr(r/2),i=t,a===1){if(v=u%uo,s=i+r-1,v>0)for(f=0;f<v;f++)o=e[i],e[i]=e[s],e[s]=o,i+=a,s-=a;if(u<uo)return e;for(f=v;f<u;f+=uo)o=e[i],e[i]=e[s],e[s]=o,o=e[i+1],e[i+1]=e[s-1],e[s-1]=o,o=e[i+2],e[i+2]=e[s-2],e[s-2]=o,i+=uo,s-=uo;return e}for(s=i+(r-1)*a,f=0;f<u;f++)o=e[i],e[i]=e[s],e[s]=o,i+=a,s-=a;return e}yE.exports=wmr});var bE=l((hie,gE)=>{"use strict";var Smr=Tr(),hE=pE(),Emr=mE();Smr(hE,"ndarray",Emr);gE.exports=hE});var Bu=l((gie,SE)=>{"use strict";var Amr=Ve(),_mr=ia(),jmr=Wr(),xE=bE(),qE=xe(),Tmr="throw";function wE(r,e,a,t,o){var i;for(i=0;i<e;i++)a[o]=r[i],o+=t}function zu(r,e,a,t,o,i,s){var n,v,u,f;for(u=t+1,n=u===e,v=a[t],f=0;f<v;f++)n?(o[s]=r[f],s+=i):s=zu(r[f],e,a,u,o,i,s);return s}function Omr(r,e,a,t,o,i){var s,n,v,u,f,c,p;for(s=jmr(a),n=qE(s),zu(r,e,a,0,n,1,0),v="row-major",f=Amr(a,v),u=qE(e),wE(a,e,u,1,0),xE(e,u,1),xE(e,f,1),p=0;p<s;p++)c=_mr(u,f,0,v,p,Tmr),t[i]=n[c],i+=o}function Imr(r,e,a,t,o,i){var s=e.length;return s===0?t:s===1?(wE(r,e[0],t,o,i),t):a?(Omr(r,s,e,t,o,i),t):(zu(r,s,e,0,t,o,i),t)}SE.exports=Imr});var AE=l((bie,EE)=>{"use strict";var Nmr=Wr(),Dmr=xe(),kmr=Bu();function Rmr(r,e,a){var t=Dmr(Nmr(e));return kmr(r,e,a,t,1,0)}EE.exports=Rmr});var TE=l((xie,jE)=>{"use strict";var Vmr=Tr(),_E=AE(),zmr=Bu();Vmr(_E,"assign",zmr);jE.exports=_E});var IE=l((qie,OE)=>{"use strict";var Bmr=Fi(),Pmr=ga();function Fmr(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&Pmr(r.length)&&r.length>=0&&r.length<Bmr}OE.exports=Fmr});var DE=l((wie,NE)=>{"use strict";var As=Ta();function Lmr(){return{casting:As.get("casting"),copy:!1,dtype:As.get("dtypes.default"),flatten:!0,mode:As.get("index_mode"),ndmin:0,order:As.get("order"),readonly:!1}}NE.exports=Lmr});var RE=l((Sie,kE)=>{"use strict";var Cmr=no(),Umr=Ua();function Mmr(r,e,a){var t,o,i;if(t=Cmr(a),a==="generic")for(o=[],i=0;i<e;i++)o.push(r[i]);else if(a==="binary")for(o=Umr(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}kE.exports=Mmr});var BE=l((Eie,zE)=>{"use strict";var VE=Fe(),Gmr=me().isPrimitive,Pu=cr(),$t="number";function $mr(r,e,a){var t;if(!VE(r))throw new TypeError(Pu("invalid argument. First argument must be a function. Value: `%s`.",r));if(!Gmr(e))throw new TypeError(Pu("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",e));if(!VE(a))throw new TypeError(Pu("invalid argument. Third argument must be a constructor function. Value: `%s`.",a));return t=[o,i,s,n,v,u],e<=5?t[e]:f;function o(){var c=r();return typeof c===$t?new a(c,0):c}function i(c){var p=r(c);return typeof p===$t?new a(p,0):p}function s(c,p){var m=r(c,p);return typeof m===$t?new a(m,0):m}function n(c,p,m){var d=r(c,p,m);return typeof d===$t?new a(d,0):d}function v(c,p,m,d){var y=r(c,p,m,d);return typeof y===$t?new a(y,0):y}function u(c,p,m,d,y){var h=r(c,p,m,d,y);return typeof h===$t?new a(h,0):h}function f(){var c,p,m;for(c=[],m=0;m<arguments.length;m++)c.push(arguments[m]);return p=r.apply(null,c),typeof p===$t?new a(p,0):p}}zE.exports=$mr});var Fu=l((Aie,PE)=>{"use strict";var Ymr=BE();PE.exports=Ymr});var LE=l((_ie,FE)=>{"use strict";var Wmr=rs(),Jmr=Qo(),Xmr={complex64:Wmr,complex128:Jmr};FE.exports=Xmr});var UE=l((jie,CE)=>{"use strict";var Kmr=LE();function Hmr(r){return Kmr[r]||null}CE.exports=Hmr});var _s=l((Tie,ME)=>{"use strict";var Zmr=UE();ME.exports=Zmr});var $E=l((Oie,GE)=>{"use strict";var Qmr=st(),r1r=Fu(),e1r=_s(),a1r=no(),t1r=Ua(),i1r=ra(),o1r=Na(),s1r=ie(),n1r=Ma(),v1r=bt(),u1r=Ga(),f1r=ot();function l1r(r){var e,a,t;for(e=r.length,a=[],t=0;t<e;t++)a.push(r.iget(t));return a}function c1r(r){var e,a,t;for(e=r.length,a=t1r(e),t=0;t<e;t++)a[t]=r.iget(t);return a}function d1r(r,e){var a,t,o,i,s,n,v;if(a=a1r(e),t=r.length,o=new a(t),n=Qmr(o),n.accessorProtocol)for(i=n.accessors[1],s=r1r(u,1,e1r(e)),v=0;v<t;v++)i(o,v,s(v));else for(v=0;v<t;v++)o[v]=r.iget(v);return o;function u(f){return r.iget(f)}}function p1r(r,e){var a;return a=new i1r(o1r(r),f1r(r),s1r(r),n1r(r),v1r(r),u1r(r)),e==="generic"?l1r(a):e==="binary"?c1r(a):d1r(a,e)}GE.exports=p1r});var WE=l((Iie,YE)=>{"use strict";function y1r(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}YE.exports=y1r});var XE=l((Nie,JE)=>{"use strict";var m1r=ai();function h1r(r,e,a,t){var o,i,s,n,v;if(i=a.length,v=r-i,o=[],t==="row-major"){for(s=m1r(a[0])*e[v],n=0;n<v;n++)o.push(s);for(n=0;n<i;n++)o.push(a[n])}else{for(n=0;n<v;n++)o.push(1);for(n=0;n<i;n++)o.push(a[n])}return o}JE.exports=h1r});var a5=l((Die,e5)=>{"use strict";var Da=Jr(),KE=oe(),HE=de().isPrimitive,g1r=ha(),b1r=me().isPrimitive,x1r=se(),q1r=Ve(),w1r=Me(),S1r=kt(),js=Wr(),E1r=da(),A1r=di(),_1r=wa(),j1r=wu(),T1r=Tu(),O1r=Ia(),I1r=ws(),N1r=Na(),D1r=ie(),ZE=Ma(),k1r=bt(),QE=Ga(),R1r=ot(),r5=$S(),V1r=TE(),pa=cr(),Ts=IE(),z1r=DE(),B1r=RE(),P1r=$E(),F1r=WE(),L1r=XE(),ka=z1r();function C1r(){var r,e,a,t,o,i,s,n,v,u,f,c,p,m,d;if(arguments.length===1)if(Ts(arguments[0]))a=arguments[0],r={};else{if(r=arguments[0],!KE(r))throw new TypeError(pa("invalid argument. Must provide either a valid data source, options argument, or both. Value: `%s`.",r));if(Da(r,"buffer")&&(a=r.buffer,!Ts(a)))throw new TypeError(pa("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],!Ts(a))throw new TypeError(pa("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],!KE(r))throw new TypeError(pa("invalid argument. Options argument must be an object. Value: `%s`.",r))}if(a&&(x1r(a)?(s=N1r(a),d=!0):(s=I1r(a),d=!1)),u={},f={},Da(r,"casting")){if(f.casting=r.casting,!j1r(f.casting))throw new TypeError(pa("invalid option. `%s` option must be a recognized casting mode. Option: `%s`.","casting",f.casting))}else f.casting=ka.casting;if(Da(r,"flatten")){if(f.flatten=r.flatten,!HE(f.flatten))throw new TypeError(pa("invalid option. `%s` option must be a boolean. Option: `%s`.","flatten",f.flatten))}else f.flatten=ka.flatten;if(Da(r,"ndmin")){if(f.ndmin=r.ndmin,!b1r(f.ndmin))throw new TypeError(pa("invalid option. `%s` option must be a nonnegative integer. Option: `%s`.","ndmin",f.ndmin))}else f.ndmin=ka.ndmin;if(Da(r,"dtype")){if(i=r.dtype,!A1r(i))throw new TypeError(pa("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",i));if(s&&!T1r(s,i,f.casting))throw new Error(pa("invalid option. Data type cast is not allowed. Casting mode: `%s`. From: `%s`. To: `%s`.",f.casting,s,i))}else s?!d&&s==="generic"?i=ka.dtype:i=s:i=ka.dtype;if(Da(r,"order")){if(o=r.order,o==="any"||o==="same")d?o==="any"?(m=S1r(ZE(a)),m===3?o=ka.order:o=QE(a)):o==="same"&&(o=QE(a)):o=ka.order;else if(!_1r(o))throw new TypeError(pa("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",o))}else o=ka.order;if(Da(r,"mode")?u.mode=r.mode:u.mode=ka.mode,Da(r,"submode")?u.submode=r.submode:u.submode=[u.mode],Da(r,"readonly")?u.readonly=r.readonly:u.readonly=ka.readonly,Da(r,"copy")){if(f.copy=r.copy,!HE(f.copy))throw new TypeError(pa("invalid option. `%s` option must be a boolean. Option: `%s`.","copy",f.copy))}else f.copy=ka.copy;if(Da(r,"shape")){if(n=r.shape,!Ts(n))throw new TypeError(pa("invalid option. `%s` option must be an array-like object containing nonnegative integers. Option: `%s`.","shape",n));v=n.length,p=js(n)}else if(a)d?(n=D1r(a),v=n.length,p=js(n)):f.flatten&&g1r(a)?(n=r5(a),c=n,v=n.length,p=js(n)):(v=1,p=a.length,n=[p]);else throw new Error("invalid arguments. Must provide either a data source, array shape, or both.");if(v<f.ndmin&&(n=F1r(v,n,f.ndmin),v=f.ndmin),d){if(js(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.");s!==i||f.copy?a=P1r(a,i):(e=ZE(a),t=k1r(a),a=R1r(a),e.length<v&&(e=L1r(v,n,e,o)))}else if(a){if(s==="generic"&&f.flatten&&(a=V1r(a,c||r5(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.");(s!==i||f.copy)&&(a=B1r(a,p,i))}else a=O1r(i,p);return e===void 0&&(e=q1r(n,o),t=w1r(n,e)),new E1r(i,a,n,e,t,o,u)}e5.exports=C1r});var i5=l((kie,t5)=>{"use strict";var U1r=a5();t5.exports=U1r});var n5=l((Rie,s5)=>{"use strict";var M1r=se(),G1r=ve().isPrimitive,$1r=ca(),Y1r=ie(),o5=cr();function W1r(r){var e,a,t,o,i,s;if(!M1r(r))throw new TypeError(o5("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o=Y1r(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=[],s=1;s<=e;s++){if(t=arguments[s],!G1r(t))throw new TypeError(o5("invalid argument. Index arguments must be integers. Value: `%s`.",t));if(t=$1r(t,o[s-1]-1),t===-1)return;a.push(t)}return r.get.apply(r,a)}s5.exports=W1r});var u5=l((Vie,v5)=>{"use strict";var J1r=n5();v5.exports=J1r});var l5=l((zie,f5)=>{"use strict";function X1r(r){var e,a,t;for(a=r.length,e=[],t=0;t<a;t++)e.push(r[t]);return e}f5.exports=X1r});var xt=l((Bie,c5)=>{"use strict";var K1r=l5();c5.exports=K1r});var p5=l((Pie,d5)=>{"use strict";var H1r=xt();function Z1r(r,e){var a=r.shape;return e?H1r(a):a}d5.exports=Z1r});var _e=l((Fie,y5)=>{"use strict";var Q1r=p5();y5.exports=Q1r});var h5=l((Lie,m5)=>{"use strict";function rhr(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}m5.exports=rhr});var b5=l((Cie,g5)=>{"use strict";var ehr=h5();g5.exports=ehr});var w5=l((Uie,q5)=>{"use strict";var x5=_e(),ahr=b5();function thr(r,e){return ahr(x5(r,!1),x5(e,!1))}q5.exports=thr});var E5=l((Mie,S5)=>{"use strict";var ihr=w5();S5.exports=ihr});var _5=l((Gie,A5)=>{"use strict";var ohr=Be().factory,shr=De(),nhr=ohr(shr("boolean"));A5.exports=nhr});var T5=l(($ie,j5)=>{"use strict";var vhr=_5();j5.exports=vhr});var I5=l((Yie,O5)=>{"use strict";var uhr=Wr();function fhr(r,e){return r>=uhr(e)}O5.exports=fhr});var D5=l((Wie,N5)=>{"use strict";var lhr=I5();N5.exports=lhr});var V5=l((Jie,R5)=>{"use strict";var k5=ai();function chr(r){var e,a,t,o;if(e=r.length,e===0)return!1;for(a=k5(r[0]),o=1;o<e;o++){if(t=k5(r[o]),t<a)return!1;a=t}return!0}R5.exports=chr});var Lu=l((Xie,z5)=>{"use strict";var dhr=V5();z5.exports=dhr});var P5=l((Kie,B5)=>{"use strict";var phr=Wr(),yhr=Ha();function mhr(r,e,a){var t,o;return t=phr(r),t===0?!1:(o=yhr(r,e,a),t===o[1]-o[0]+1)}B5.exports=mhr});var fo=l((Hie,F5)=>{"use strict";var hhr=P5();F5.exports=hhr});var C5=l((Zie,L5)=>{"use strict";var ghr=fo(),bhr=ba(),xhr=Lu();function qhr(r,e,a){return bhr(e)!==0&&xhr(e)&&ghr(r,e,a)}L5.exports=qhr});var M5=l((Qie,U5)=>{"use strict";var whr=C5();U5.exports=whr});var $5=l((roe,G5)=>{"use strict";var Shr=Be().factory,Ehr=De(),Ahr=Shr(Ehr("complex_floating_point"));G5.exports=Ahr});var lo=l((eoe,Y5)=>{"use strict";var _hr=$5();Y5.exports=_hr});var J5=l((aoe,W5)=>{"use strict";var jhr=fo(),Thr=ba();function Ohr(r,e,a){return Thr(e)!==0&&jhr(r,e,a)}W5.exports=Ohr});var K5=l((toe,X5)=>{"use strict";var Ihr=J5();X5.exports=Ihr});var Z5=l((ioe,H5)=>{"use strict";var Nhr=Be().factory,Dhr=De(),khr=Nhr(Dhr("floating_point"));H5.exports=khr});var Os=l((ooe,Q5)=>{"use strict";var Rhr=Z5();Q5.exports=Rhr});var eA=l((soe,rA)=>{"use strict";var Vhr=Be().factory,zhr=De(),Bhr=Vhr(zhr("integer"));rA.exports=Bhr});var Cu=l((noe,aA)=>{"use strict";var Phr=eA();aA.exports=Phr});var iA=l((voe,tA)=>{"use strict";var Fhr=Be().factory,Lhr=De(),Chr=Fhr(Lhr("numeric"));tA.exports=Chr});var Uu=l((uoe,oA)=>{"use strict";var Uhr=iA();oA.exports=Uhr});var nA=l((foe,sA)=>{"use strict";var Mhr=Fe(),Ghr=Mhr(Object.assign);sA.exports=Ghr});var uA=l((loe,vA)=>{"use strict";var $hr=Object.assign;vA.exports=$hr});var lA=l((coe,fA)=>{"use strict";var Yhr=typeof Object.getOwnPropertySymbols<"u";fA.exports=Yhr});var pA=l((doe,dA)=>{"use strict";var cA=Nt(),Whr=cA.getOwnPropertySymbols;function Jhr(r){return Whr(cA(r))}dA.exports=Jhr});var mA=l((poe,yA)=>{"use strict";function Xhr(){return[]}yA.exports=Xhr});var Gu=l((yoe,hA)=>{"use strict";var Khr=lA(),Hhr=pA(),Zhr=mA(),Mu;Khr?Mu=Hhr:Mu=Zhr;hA.exports=Mu});var bA=l((moe,gA)=>{"use strict";var Qhr=xa(),rgr=Gu(),egr=Ci();function agr(r){var e,a,t;for(e=Qhr(r),a=rgr(r),t=0;t<a.length;t++)egr(r,a[t])&&e.push(a[t]);return e}gA.exports=agr});var qA=l((hoe,xA)=>{"use strict";var tgr=bA();xA.exports=tgr});var EA=l((goe,SA)=>{"use strict";var igr=qA(),wA=Nt(),ogr=cr();function sgr(r){var e,a,t,o,i,s,n;if(r==null)throw new TypeError(ogr("invalid argument. First argument must be a non-null object. Value: `%s`.",r));for(i=wA(r),s=1;s<arguments.length;s++)if(e=arguments[s],e!=null)for(a=igr(wA(e)),o=a.length,n=0;n<o;n++)t=a[n],i[t]=e[t];return i}SA.exports=sgr});var _A=l((boe,AA)=>{"use strict";var ngr=nA(),vgr=uA(),ugr=EA(),$u;ngr?$u=vgr:$u=ugr;AA.exports=$u});var TA=l((xoe,jA)=>{"use strict";var fgr=_A();function lgr(r,e){var a=r.flags;return typeof a!="object"||a===null?{}:e?fgr({},a):a}jA.exports=lgr});var co=l((qoe,OA)=>{"use strict";var cgr=TA();OA.exports=cgr});var NA=l((woe,IA)=>{"use strict";var dgr=co();function pgr(r,e){return dgr(r,!1)[e]}IA.exports=pgr});var Yu=l((Soe,DA)=>{"use strict";var ygr=NA();DA.exports=ygr});var RA=l((Eoe,kA)=>{"use strict";var mgr=Yu();function hgr(r){return mgr(r,"READONLY")===!0}kA.exports=hgr});var Le=l((Aoe,VA)=>{"use strict";var ggr=RA();VA.exports=ggr});var BA=l((_oe,zA)=>{"use strict";var bgr=Be().factory,xgr=De(),qgr=bgr(xgr("real"));zA.exports=qgr});var Is=l((joe,PA)=>{"use strict";var wgr=BA();PA.exports=wgr});var LA=l((Toe,FA)=>{"use strict";var Sgr=Be().factory,Egr=De(),Agr=Sgr(Egr("real_floating_point"));FA.exports=Agr});var Wu=l((Ooe,CA)=>{"use strict";var _gr=LA();CA.exports=_gr});var GA=l((Ioe,MA)=>{"use strict";var UA=ai();function jgr(r){var e,a,t,o;if(e=r.length,e===0)return!1;for(a=UA(r[0]),o=1;o<e;o++){if(t=UA(r[o]),t>a)return!1;a=t}return!0}MA.exports=jgr});var Ns=l((Noe,$A)=>{"use strict";var Tgr=GA();$A.exports=Tgr});var WA=l((Doe,YA)=>{"use strict";var Ogr=fo(),Igr=ba(),Ngr=Ns();function Dgr(r,e,a){return Igr(e)!==0&&Ngr(e)&&Ogr(r,e,a)}YA.exports=Dgr});var XA=l((koe,JA)=>{"use strict";var kgr=WA();JA.exports=kgr});var HA=l((Roe,KA)=>{"use strict";var Rgr=Be().factory,Vgr=De(),zgr=Rgr(Vgr("signed_integer"));KA.exports=zgr});var Ds=l((Voe,ZA)=>{"use strict";var Bgr=HA();ZA.exports=Bgr});var r_=l((zoe,QA)=>{"use strict";var Pgr=Be().factory,Fgr=De(),Lgr=Pgr(Fgr("unsigned_integer"));QA.exports=Lgr});var ks=l((Boe,e_)=>{"use strict";var Cgr=r_();e_.exports=Cgr});var t_=l((Poe,a_)=>{"use strict";var le=Ot(),ue={};le(ue,"hasEqualShape",E5());le(ue,"isAllowedDataTypeCast",Tu());le(ue,"isBooleanDataType",T5());le(ue,"isBufferLengthCompatible",yu());le(ue,"isBufferLengthCompatibleShape",D5());le(ue,"isCastingMode",wu());le(ue,"isColumnMajor",Lu());le(ue,"isColumnMajorContiguous",M5());le(ue,"isComplexFloatingPointDataType",lo());le(ue,"isContiguous",K5());le(ue,"isDataType",di());le(ue,"isFloatingPointDataType",Os());le(ue,"isIndexMode",pi());le(ue,"isIntegerDataType",Cu());le(ue,"isMostlySafeDataTypeCast",gs());le(ue,"isNumericDataType",Uu());le(ue,"isOrder",wa());le(ue,"isReadOnly",Le());le(ue,"isRealDataType",Is());le(ue,"isRealFloatingPointDataType",Wu());le(ue,"isRowMajor",Ns());le(ue,"isRowMajorContiguous",XA());le(ue,"isSafeDataTypeCast",ys());le(ue,"isSameKindDataTypeCast",ju());le(ue,"isSignedIntegerDataType",Ds());le(ue,"isSingleSegmentCompatible",fo());le(ue,"isUnsignedIntegerDataType",ks());a_.exports=ue});var o_=l((Foe,i_)=>{"use strict";function Ugr(r){return r.dtype}i_.exports=Ugr});var Ye=l((Loe,s_)=>{"use strict";var Mgr=o_();s_.exports=Mgr});var v_=l((Coe,n_)=>{"use strict";var Ggr=Ve(),$gr=xt(),Ygr="row-major";function Wgr(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=Ygr),Ggr(t,a))):e?$gr(o):o}n_.exports=Wgr});var ya=l((Uoe,u_)=>{"use strict";var Jgr=v_();u_.exports=Jgr});var l_=l((Moe,f_)=>{"use strict";var Xgr=Me();function Kgr(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:Xgr(a,e))}f_.exports=Kgr});var $a=l((Goe,c_)=>{"use strict";var Hgr=l_();c_.exports=Hgr});var p_=l(($oe,d_)=>{"use strict";var Zgr=kt(),Ju="row-major",Qgr="column-major";function rbr(r){var e,a;return a=r.order,typeof a=="string"?a:(e=r.strides,typeof e!="object"||e===null||(a=Zgr(e),a===1||a===3)?Ju:a===2?Qgr:r.shape.length===0?Ju:null)}d_.exports=rbr});var oa=l((Yoe,y_)=>{"use strict";var ebr=p_();y_.exports=ebr});var h_=l((Woe,m_)=>{"use strict";function abr(r){return r.data}m_.exports=abr});var nt=l((Joe,g_)=>{"use strict";var tbr=h_();g_.exports=tbr});var x_=l((Xoe,b_)=>{"use strict";var ibr=rt(),obr=et(),sbr=hi(),nbr=gt(),vbr=mi(),ubr=Wr(),fbr=Ye(),lbr=_e(),cbr=ya(),dbr=$a(),pbr=oa(),ybr=nt();function mbr(r){var e,a,t,o;return e=ybr(r),t=lbr(r,!0),o=fbr(r),a=ibr(e),{ref:r,dtype:o,data:e,length:ubr(t),shape:t,strides:cbr(r,!0),offset:dbr(r),order:pbr(r),accessorProtocol:a,accessors:a?[obr(o),sbr(o)]:[nbr(o),vbr(o)]}}b_.exports=mbr});var Yt=l((Koe,q_)=>{"use strict";var hbr=x_();q_.exports=hbr});var S_=l((Hoe,w_)=>{"use strict";function gbr(r){var e,a;if(e=[],r<=0)return e;for(a=0;a<r;a++)e.push(a);return e}w_.exports=gbr});var __=l((Zoe,A_)=>{"use strict";var bbr=st(),xbr=Zi(),qbr=Hi();function wbr(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 E_(r,e,a,t){var o,i,s;for(i=a*2,s=t*2,o=0;s>=0&&s<e.length;)e[s]=o,e[s+1]=0,s+=i,o+=1;return r}function Sbr(r,e,a){var t,o,i,s;for(t=r.data,o=r.accessors[1],s=a,i=0;s>=0&&s<t.length;)o(t,s,i),s+=e,i+=1;return t}function Ebr(r,e,a){var t=bbr(r);return t.accessorProtocol?t.dtype==="complex128"?E_(r,xbr(r,0),e,a):t.dtype==="complex64"?E_(r,qbr(r,0),e,a):Sbr(t,e,a):wbr(r,e,a)}A_.exports=Ebr});var qe=l((Qoe,T_)=>{"use strict";var Abr=Tr(),j_=S_(),_br=__();Abr(j_,"assign",_br);T_.exports=j_});var I_=l((rse,O_)=>{"use strict";function jbr(r,e){var a,t;for(a=[],t=0;t<e.length;t++)a.push(r[e[t]]);return a}O_.exports=jbr});var Xr=l((ese,N_)=>{"use strict";var Tbr=I_();N_.exports=Tbr});var k_=l((ase,D_)=>{"use strict";function Obr(r,e){var a,t,o,i,s,n,v,u,f,c;for(o=1,i=1,c=1;c<r.length;c++){for(v=r[o],a=v<0?-v:v,u=e[i],s=o-1,n=i-1;s>=0&&(f=r[s],t=f<0?-f:f,!(t<=a));)r[s+1]=f,e[n+1]=e[n],s-=1,n-=1;r[s+1]=v,e[n+1]=u,o+=1,i+=1}}D_.exports=Obr});var z_=l((tse,V_)=>{"use strict";var Ibr=qe(),Nbr=xt(),R_=Xr(),Dbr=k_();function kbr(r,e,a){var t;return t=Ibr(r.length),e=Nbr(e),Dbr(e,t),r=R_(r,t),a=R_(a,t),{sh:r,sx:e,sy:a,idx:t}}V_.exports=kbr});var Rr=l((ise,B_)=>{"use strict";var Rbr=z_();B_.exports=Rbr});var F_=l((ose,P_)=>{"use strict";var Vbr={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};P_.exports=Vbr});var U_=l((sse,C_)=>{"use strict";var L_=Ka(),Xu=F_();function zbr(r,e){var a,t;return a=L_(r),t=L_(e),a===null||t===null?Xu.BLOCK_SIZE_IN_ELEMENTS:a>t?Xu.BLOCK_SIZE_IN_BYTES/a|0:Xu.BLOCK_SIZE_IN_BYTES/t|0}C_.exports=zbr});var kr=l((nse,M_)=>{"use strict";var Bbr=U_();M_.exports=Bbr});var $_=l((vse,G_)=>{"use strict";var Pbr=Rr(),Fbr=kr();function Lbr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j;for(j=Pbr(r.shape,r.strides,e.strides),m=j.sh,h=j.sx,g=j.sy,a=Fbr(r.dtype,e.dtype),x=r.offset,S=e.offset,t=r.data,o=e.data,n=h[0],u=g[0],i=r.accessors[0],s=e.accessors[1],q=m[1];q>0;)for(q<a?(y=q,q=0):(y=a,q-=a),c=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=c+E*h[0],A=p+E*g[0],v=h[1]-d*h[0],f=g[1]-d*g[0],b=0;b<y;b++){for(_=0;_<d;_++)s(o,A,i(t,w)),w+=n,A+=u;w+=v,A+=f}}G_.exports=Lbr});var W_=l((use,Y_)=>{"use strict";var Cbr=Rr(),Ubr=kr();function Mbr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V;for(V=Cbr(r.shape,r.strides,e.strides),g=V.sh,A=V.sx,_=V.sy,a=Ubr(r.dtype,e.dtype),b=r.offset,E=e.offset,t=r.data,o=e.data,n=A[0],f=_[0],i=r.accessors[0],s=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),u=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],j=y+D*_[0],v=A[1]-x*A[0],c=_[1]-x*_[0],O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<x;T++)s(o,j,i(t,q)),q+=n,j+=f;q+=v,j+=c}q+=u,j+=p}}Y_.exports=Mbr});var X_=l((fse,J_)=>{"use strict";var Gbr=Rr(),$br=kr();function Ybr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C;for(C=Gbr(r.shape,r.strides,e.strides),A=C.sh,j=C.sx,T=C.sy,a=$br(r.dtype,e.dtype),I=r.offset,O=e.offset,t=r.data,o=e.data,n=j[0],c=T[0],i=r.accessors[0],s=e.accessors[1],L=A[3];L>0;)for(L<a?(q=L,L=0):(q=a,L-=a),g=I+L*j[3],w=O+L*T[3],F=A[2];F>0;)for(F<a?(E=F,F=0):(E=a,F-=a),f=j[3]-E*j[2],d=T[3]-E*T[2],h=g+F*j[2],S=w+F*T[2],P=A[1];P>0;)for(P<a?(b=P,P=0):(b=a,P-=a),u=j[2]-b*j[1],m=T[2]-b*T[1],y=h+P*j[1],x=S+P*T[1],B=A[0];B>0;)for(B<a?(_=B,B=0):(_=a,B-=a),D=y+B*j[0],k=x+B*T[0],v=j[1]-_*j[0],p=T[1]-_*T[0],R=0;R<q;R++){for(z=0;z<E;z++){for(V=0;V<b;V++){for(N=0;N<_;N++)s(o,k,i(t,D)),D+=n,k+=c;D+=v,k+=p}D+=u,k+=m}D+=f,k+=d}}J_.exports=Ybr});var H_=l((lse,K_)=>{"use strict";var Wbr=Rr(),Jbr=kr();function Xbr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J;for(J=Wbr(r.shape,r.strides,e.strides),q=J.sh,k=J.sx,N=J.sy,a=Jbr(r.dtype,e.dtype),V=r.offset,z=e.offset,t=r.data,o=e.data,n=k[0],p=N[0],i=r.accessors[0],s=e.accessors[1],W=q[4];W>0;)for(W<a?(D=W,W=0):(D=a,W-=a),w=V+W*k[4],E=z+W*N[4],$=q[3];$>0;)for($<a?(O=$,$=0):(O=a,$-=a),c=k[4]-O*k[3],h=N[4]-O*N[3],S=w+$*k[3],b=E+$*N[3],Y=q[2];Y>0;)for(Y<a?(I=Y,Y=0):(I=a,Y-=a),f=k[3]-I*k[2],y=N[3]-I*N[2],x=S+Y*k[2],_=b+Y*N[2],G=q[1];G>0;)for(G<a?(T=G,G=0):(T=a,G-=a),u=k[2]-T*k[1],d=N[2]-T*N[1],g=x+G*k[1],A=_+G*N[1],M=q[0];M>0;)for(M<a?(j=M,M=0):(j=a,M-=a),R=g+M*k[0],B=A+M*N[0],v=k[1]-j*k[0],m=N[1]-j*N[0],U=0;U<D;U++){for(C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++)s(o,B,i(t,R)),R+=n,B+=p;R+=v,B+=m}R+=u,B+=d}R+=f,B+=y}R+=c,B+=h}}K_.exports=Xbr});var Q_=l((cse,Z_)=>{"use strict";var Kbr=Rr(),Hbr=kr();function Zbr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar;for(ar=Kbr(r.shape,r.strides,e.strides),O=ar.sh,B=ar.sx,P=ar.sy,a=Hbr(r.dtype,e.dtype),F=r.offset,L=e.offset,t=r.data,o=e.data,n=B[0],m=P[0],i=r.accessors[0],s=e.accessors[1],rr=O[5];rr>0;)for(rr<a?(R=rr,rr=0):(R=a,rr-=a),b=F+rr*B[5],I=L+rr*P[5],Z=O[4];Z>0;)for(Z<a?(z=Z,Z=0):(z=a,Z-=a),p=B[5]-z*B[4],x=P[5]-z*P[4],_=b+Z*B[4],T=I+Z*P[4],Q=O[3];Q>0;)for(Q<a?(V=Q,Q=0):(V=a,Q-=a),c=B[4]-V*B[3],g=P[4]-V*P[3],A=_+Q*B[3],j=T+Q*P[3],H=O[2];H>0;)for(H<a?(N=H,H=0):(N=a,H-=a),f=B[3]-N*B[2],h=P[3]-N*P[2],w=A+H*B[2],q=j+H*P[2],K=O[1];K>0;)for(K<a?(k=K,K=0):(k=a,K-=a),u=B[2]-k*B[1],y=P[2]-k*P[1],S=w+K*B[1],E=q+K*P[1],X=O[0];X>0;)for(X<a?(D=X,X=0):(D=a,X-=a),C=S+X*B[0],U=E+X*P[0],v=B[1]-D*B[0],d=P[1]-D*P[0],J=0;J<R;J++){for(W=0;W<z;W++){for($=0;$<V;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++)s(o,U,i(t,C)),C+=n,U+=m;C+=v,U+=d}C+=u,U+=y}C+=f,U+=h}C+=c,U+=g}C+=p,U+=x}}Z_.exports=Zbr});var e8=l((dse,r8)=>{"use strict";var Qbr=Rr(),r2r=kr();function e2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr;for(vr=Qbr(r.shape,r.strides,e.strides),V=vr.sh,U=vr.sx,M=vr.sy,a=r2r(r.dtype,e.dtype),G=r.offset,Y=e.offset,t=r.data,o=e.data,n=U[0],d=M[0],i=r.accessors[0],s=e.accessors[1],nr=V[6];nr>0;)for(nr<a?(C=nr,nr=0):(C=a,nr-=a),j=G+nr*U[6],N=Y+nr*M[6],sr=V[5];sr>0;)for(sr<a?(L=sr,sr=0):(L=a,sr-=a),m=U[6]-L*U[5],w=M[6]-L*M[5],q=j+sr*U[5],k=N+sr*M[5],or=V[4];or>0;)for(or<a?(F=or,or=0):(F=a,or-=a),p=U[5]-F*U[4],S=M[5]-F*M[4],E=q+or*U[4],D=k+or*M[4],tr=V[3];tr>0;)for(tr<a?(P=tr,tr=0):(P=a,tr-=a),c=U[4]-P*U[3],x=M[4]-P*M[3],b=E+tr*U[3],O=D+tr*M[3],ir=V[2];ir>0;)for(ir<a?(B=ir,ir=0):(B=a,ir-=a),f=U[3]-B*U[2],g=M[3]-B*M[2],_=b+ir*U[2],I=O+ir*M[2],er=V[1];er>0;)for(er<a?(R=er,er=0):(R=a,er-=a),u=U[2]-R*U[1],h=M[2]-R*M[1],A=_+er*U[1],T=I+er*M[1],ar=V[0];ar>0;)for(ar<a?(z=ar,ar=0):(z=a,ar-=a),$=A+ar*U[0],W=T+ar*M[0],v=U[1]-z*U[0],y=M[1]-z*M[0],rr=0;rr<C;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<F;Q++){for(H=0;H<P;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<z;J++)s(o,W,i(t,$)),$+=n,W+=d;$+=v,W+=y}$+=u,W+=h}$+=f,W+=g}$+=c,W+=x}$+=p,W+=S}$+=m,W+=w}}r8.exports=e2r});var t8=l((pse,a8)=>{"use strict";var a2r=Rr(),t2r=kr();function i2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr;for(mr=a2r(r.shape,r.strides,e.strides),P=mr.sh,W=mr.sx,J=mr.sy,a=t2r(r.dtype,e.dtype),X=r.offset,K=e.offset,t=r.data,o=e.data,n=W[0],y=J[0],i=r.accessors[0],s=e.accessors[1],yr=P[7];yr>0;)for(yr<a?($=yr,yr=0):($=a,yr-=a),O=X+yr*W[7],B=K+yr*J[7],dr=P[6];dr>0;)for(dr<a?(Y=dr,dr=0):(Y=a,dr-=a),d=W[7]-Y*W[6],_=J[7]-Y*J[6],I=O+dr*W[6],R=B+dr*J[6],pr=P[5];pr>0;)for(pr<a?(G=pr,pr=0):(G=a,pr-=a),m=W[6]-G*W[5],A=J[6]-G*J[5],T=I+pr*W[5],z=R+pr*J[5],fr=P[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],j=T+fr*W[4],V=z+fr*J[4],lr=P[3];lr>0;)for(lr<a?(U=lr,lr=0):(U=a,lr-=a),c=W[4]-U*W[3],S=J[4]-U*J[3],q=j+lr*W[3],N=V+lr*J[3],ur=P[2];ur>0;)for(ur<a?(C=ur,ur=0):(C=a,ur-=a),f=W[3]-C*W[2],x=J[3]-C*J[2],E=q+ur*W[2],k=N+ur*J[2],vr=P[1];vr>0;)for(vr<a?(L=vr,vr=0):(L=a,vr-=a),u=W[2]-L*W[1],g=J[2]-L*J[1],b=E+vr*W[1],D=k+vr*J[1],nr=P[0];nr>0;)for(nr<a?(F=nr,nr=0):(F=a,nr-=a),H=b+nr*W[0],Q=D+nr*J[0],v=W[1]-F*W[0],h=J[1]-F*J[0],sr=0;sr<$;sr++){for(or=0;or<Y;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<C;ar++){for(rr=0;rr<L;rr++){for(Z=0;Z<F;Z++)s(o,Q,i(t,H)),H+=n,Q+=y;H+=v,Q+=h}H+=u,Q+=g}H+=f,Q+=x}H+=c,Q+=S}H+=p,Q+=w}H+=m,Q+=A}H+=d,Q+=_}}a8.exports=i2r});var o8=l((yse,i8)=>{"use strict";var o2r=Rr(),s2r=kr();function n2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr,Er,Ar;for(Ar=o2r(r.shape,r.strides,e.strides),U=Ar.sh,Q=Ar.sx,Z=Ar.sy,a=s2r(r.dtype,e.dtype),rr=r.offset,ar=e.offset,t=r.data,o=e.data,n=Q[0],h=Z[0],i=r.accessors[0],s=e.accessors[1],Er=U[8];Er>0;)for(Er<a?(H=Er,Er=0):(H=a,Er-=a),N=rr+Er*Q[8],C=ar+Er*Z[8],hr=U[7];hr>0;)for(hr<a?(K=hr,hr=0):(K=a,hr-=a),y=Q[8]-K*Q[7],E=Z[8]-K*Z[7],k=N+hr*Q[7],L=C+hr*Z[7],xr=U[6];xr>0;)for(xr<a?(X=xr,xr=0):(X=a,xr-=a),d=Q[7]-X*Q[6],b=Z[7]-X*Z[6],D=k+xr*Q[6],F=L+xr*Z[6],br=U[5];br>0;)for(br<a?(J=br,br=0):(J=a,br-=a),m=Q[6]-J*Q[5],_=Z[6]-J*Z[5],O=D+br*Q[5],P=F+br*Z[5],qr=U[4];qr>0;)for(qr<a?(W=qr,qr=0):(W=a,qr-=a),p=Q[5]-W*Q[4],A=Z[5]-W*Z[4],I=O+qr*Q[4],B=P+qr*Z[4],gr=U[3];gr>0;)for(gr<a?($=gr,gr=0):($=a,gr-=a),c=Q[4]-$*Q[3],w=Z[4]-$*Z[3],T=I+gr*Q[3],R=B+gr*Z[3],mr=U[2];mr>0;)for(mr<a?(Y=mr,mr=0):(Y=a,mr-=a),f=Q[3]-Y*Q[2],S=Z[3]-Y*Z[2],j=T+mr*Q[2],z=R+mr*Z[2],yr=U[1];yr>0;)for(yr<a?(G=yr,yr=0):(G=a,yr-=a),u=Q[2]-G*Q[1],x=Z[2]-G*Z[1],q=j+yr*Q[1],V=z+yr*Z[1],dr=U[0];dr>0;)for(dr<a?(M=dr,dr=0):(M=a,dr-=a),er=q+dr*Q[0],ir=V+dr*Z[0],v=Q[1]-M*Q[0],g=Z[1]-M*Z[0],pr=0;pr<H;pr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++){for(sr=0;sr<Y;sr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++)s(o,ir,i(t,er)),er+=n,ir+=h;er+=v,ir+=g}er+=u,ir+=x}er+=f,ir+=S}er+=c,ir+=w}er+=p,ir+=A}er+=m,ir+=_}er+=d,ir+=b}er+=y,ir+=E}}i8.exports=n2r});var n8=l((mse,s8)=>{"use strict";var v2r=Rr(),u2r=kr();function f2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr,Er,Ar,_r,jr,Or,Dr,Vr,Kr,te;for(te=v2r(r.shape,r.strides,e.strides),$=te.sh,ir=te.sx,tr=te.sy,a=u2r(r.dtype,e.dtype),or=r.offset,sr=e.offset,t=r.data,o=e.data,n=ir[0],g=tr[0],i=r.accessors[0],s=e.accessors[1],Kr=$[9];Kr>0;)for(Kr<a?(er=Kr,Kr=0):(er=a,Kr-=a),R=or+Kr*ir[9],Y=sr+Kr*tr[9],Vr=$[8];Vr>0;)for(Vr<a?(ar=Vr,Vr=0):(ar=a,Vr-=a),h=ir[9]-ar*ir[8],j=tr[9]-ar*tr[8],z=R+Vr*ir[8],G=Y+Vr*tr[8],Dr=$[7];Dr>0;)for(Dr<a?(rr=Dr,Dr=0):(rr=a,Dr-=a),y=ir[8]-rr*ir[7],q=tr[8]-rr*tr[7],V=z+Dr*ir[7],M=G+Dr*tr[7],Or=$[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=V+Or*ir[6],U=M+Or*tr[6],jr=$[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],C=U+jr*tr[5],_r=$[4];_r>0;)for(_r<a?(H=_r,_r=0):(H=a,_r-=a),p=ir[5]-H*ir[4],_=tr[5]-H*tr[4],D=k+_r*ir[4],L=C+_r*tr[4],Ar=$[3];Ar>0;)for(Ar<a?(K=Ar,Ar=0):(K=a,Ar-=a),c=ir[4]-K*ir[3],A=tr[4]-K*tr[3],O=D+Ar*ir[3],F=L+Ar*tr[3],Er=$[2];Er>0;)for(Er<a?(X=Er,Er=0):(X=a,Er-=a),f=ir[3]-X*ir[2],w=tr[3]-X*tr[2],I=O+Er*ir[2],P=F+Er*tr[2],hr=$[1];hr>0;)for(hr<a?(J=hr,hr=0):(J=a,hr-=a),u=ir[2]-J*ir[1],S=tr[2]-J*tr[1],T=I+hr*ir[1],B=P+hr*tr[1],xr=$[0];xr>0;)for(xr<a?(W=xr,xr=0):(W=a,xr-=a),nr=T+xr*ir[0],vr=B+xr*tr[0],v=ir[1]-W*ir[0],x=tr[1]-W*tr[0],br=0;br<er;br++){for(qr=0;qr<ar;qr++){for(gr=0;gr<rr;gr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<K;pr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(ur=0;ur<W;ur++)s(o,vr,i(t,nr)),nr+=n,vr+=g;nr+=v,vr+=x}nr+=u,vr+=S}nr+=f,vr+=w}nr+=c,vr+=A}nr+=p,vr+=_}nr+=m,vr+=b}nr+=d,vr+=E}nr+=y,vr+=q}nr+=h,vr+=j}}s8.exports=f2r});var u8=l((hse,v8)=>{"use strict";var l2r=Rr(),c2r=kr();function d2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E;for(E=l2r(r.shape,r.strides,e.strides),c=E.sh,d=E.sx,y=E.sy,a=c2r(r.dtype,e.dtype),h=r.offset,g=e.offset,t=r.data,o=e.data,i=d[0],n=y[0],b=c[1];b>0;)for(b<a?(m=b,b=0):(m=a,b-=a),u=h+b*d[1],f=g+b*y[1],_=c[0];_>0;)for(_<a?(p=_,_=0):(p=a,_-=a),x=u+_*d[0],S=f+_*y[0],s=d[1]-p*d[0],v=y[1]-p*y[0],A=0;A<m;A++){for(w=0;w<p;w++)o[S]=t[x],x+=i,S+=n;x+=s,S+=v}}v8.exports=d2r});var l8=l((gse,f8)=>{"use strict";var p2r=Rr(),y2r=kr();function m2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k;for(k=p2r(r.shape,r.strides,e.strides),y=k.sh,S=k.sx,w=k.sy,a=y2r(r.dtype,e.dtype),A=r.offset,_=e.offset,t=r.data,o=e.data,i=S[0],v=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],O=y[1];O>0;)for(O<a?(g=O,O=0):(g=a,O-=a),n=S[2]-g*S[1],f=w[2]-g*w[1],c=p+O*S[1],m=d+O*w[1],I=y[0];I>0;)for(I<a?(h=I,I=0):(h=a,I-=a),b=c+I*S[0],E=m+I*w[0],s=S[1]-h*S[0],u=w[1]-h*w[0],T=0;T<x;T++){for(j=0;j<g;j++){for(q=0;q<h;q++)o[E]=t[b],b+=i,E+=v;b+=s,E+=u}b+=n,E+=f}}f8.exports=m2r});var d8=l((bse,c8)=>{"use strict";var h2r=Rr(),g2r=kr();function b2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F;for(F=h2r(r.shape,r.strides,e.strides),S=F.sh,E=F.sx,q=F.sy,a=g2r(r.dtype,e.dtype),j=r.offset,T=e.offset,t=r.data,o=e.data,i=E[0],u=q[0],P=S[3];P>0;)for(P<a?(b=P,P=0):(b=a,P-=a),y=j+P*E[3],x=T+P*q[3],B=S[2];B>0;)for(B<a?(_=B,B=0):(_=a,B-=a),v=E[3]-_*E[2],p=q[3]-_*q[2],d=y+B*E[2],g=x+B*q[2],R=S[1];R>0;)for(R<a?(A=R,R=0):(A=a,R-=a),n=E[2]-A*E[1],c=q[2]-A*q[1],m=d+R*E[1],h=g+R*q[1],z=S[0];z>0;)for(z<a?(w=z,z=0):(w=a,z-=a),I=m+z*E[0],O=h+z*q[0],s=E[1]-w*E[0],f=q[1]-w*q[0],V=0;V<b;V++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)o[O]=t[I],I+=i,O+=u;I+=s,O+=f}I+=n,O+=c}I+=v,O+=p}}c8.exports=b2r});var y8=l((xse,p8)=>{"use strict";var x2r=Rr(),q2r=kr();function w2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$;for($=x2r(r.shape,r.strides,e.strides),b=$.sh,O=$.sx,D=$.sy,a=q2r(r.dtype,e.dtype),k=r.offset,N=e.offset,t=r.data,o=e.data,i=O[0],f=D[0],Y=b[4];Y>0;)for(Y<a?(I=Y,Y=0):(I=a,Y-=a),x=k+Y*O[4],_=N+Y*D[4],G=b[3];G>0;)for(G<a?(T=G,G=0):(T=a,G-=a),u=O[4]-T*O[3],d=D[4]-T*D[3],g=x+G*O[3],A=_+G*D[3],M=b[2];M>0;)for(M<a?(j=M,M=0):(j=a,M-=a),v=O[3]-j*O[2],m=D[3]-j*D[2],h=g+M*O[2],w=A+M*D[2],U=b[1];U>0;)for(U<a?(q=U,U=0):(q=a,U-=a),n=O[2]-q*O[1],p=D[2]-q*D[1],y=h+U*O[1],S=w+U*D[1],C=b[0];C>0;)for(C<a?(E=C,C=0):(E=a,C-=a),V=y+C*O[0],z=S+C*D[0],s=O[1]-E*O[0],c=D[1]-E*D[0],L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(B=0;B<q;B++){for(R=0;R<E;R++)o[z]=t[V],V+=i,z+=f;V+=s,z+=c}V+=n,z+=p}V+=v,z+=m}V+=u,z+=d}}p8.exports=w2r});var h8=l((qse,m8)=>{"use strict";var S2r=Rr(),E2r=kr();function A2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z;for(Z=S2r(r.shape,r.strides,e.strides),T=Z.sh,z=Z.sx,R=Z.sy,a=E2r(r.dtype,e.dtype),B=r.offset,P=e.offset,t=r.data,o=e.data,i=z[0],c=R[0],Q=T[5];Q>0;)for(Q<a?(V=Q,Q=0):(V=a,Q-=a),A=B+Q*z[5],j=P+Q*R[5],H=T[4];H>0;)for(H<a?(N=H,H=0):(N=a,H-=a),f=z[5]-N*z[4],h=R[5]-N*R[4],w=A+H*z[4],q=j+H*R[4],K=T[3];K>0;)for(K<a?(k=K,K=0):(k=a,K-=a),u=z[4]-k*z[3],y=R[4]-k*R[3],S=w+K*z[3],E=q+K*R[3],X=T[2];X>0;)for(X<a?(D=X,X=0):(D=a,X-=a),v=z[3]-D*z[2],d=R[3]-D*R[2],x=S+X*z[2],b=E+X*R[2],J=T[1];J>0;)for(J<a?(O=J,J=0):(O=a,J-=a),n=z[2]-O*z[1],m=R[2]-O*R[1],g=x+J*z[1],_=b+J*R[1],W=T[0];W>0;)for(W<a?(I=W,W=0):(I=a,W-=a),F=g+W*z[0],L=_+W*R[0],s=z[1]-I*z[0],p=R[1]-I*R[0],$=0;$<V;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++)o[L]=t[F],F+=i,L+=c;F+=s,L+=p}F+=n,L+=m}F+=v,L+=d}F+=u,L+=y}F+=f,L+=h}}m8.exports=A2r});var b8=l((wse,g8)=>{"use strict";var _2r=Rr(),j2r=kr();function T2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr;for(sr=_2r(r.shape,r.strides,e.strides),k=sr.sh,L=sr.sx,C=sr.sy,a=j2r(r.dtype,e.dtype),U=r.offset,M=e.offset,t=r.data,o=e.data,i=L[0],p=C[0],or=k[6];or>0;)for(or<a?(F=or,or=0):(F=a,or-=a),E=U+or*L[6],D=M+or*C[6],tr=k[5];tr>0;)for(tr<a?(P=tr,tr=0):(P=a,tr-=a),c=L[6]-P*L[5],x=C[6]-P*C[5],b=E+tr*L[5],O=D+tr*C[5],ir=k[4];ir>0;)for(ir<a?(B=ir,ir=0):(B=a,ir-=a),f=L[5]-B*L[4],g=C[5]-B*C[4],_=b+ir*L[4],I=O+ir*C[4],er=k[3];er>0;)for(er<a?(R=er,er=0):(R=a,er-=a),u=L[4]-R*L[3],h=C[4]-R*C[3],A=_+er*L[3],T=I+er*C[3],ar=k[2];ar>0;)for(ar<a?(z=ar,ar=0):(z=a,ar-=a),v=L[3]-z*L[2],y=C[3]-z*C[2],w=A+ar*L[2],j=T+ar*C[2],rr=k[1];rr>0;)for(rr<a?(V=rr,rr=0):(V=a,rr-=a),n=L[2]-V*L[1],d=C[2]-V*C[1],S=w+rr*L[1],q=j+rr*C[1],Z=k[0];Z>0;)for(Z<a?(N=Z,Z=0):(N=a,Z-=a),G=S+Z*L[0],Y=q+Z*C[0],s=L[1]-N*L[0],m=C[1]-N*C[0],Q=0;Q<F;Q++){for(H=0;H<P;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<z;J++){for(W=0;W<V;W++){for($=0;$<N;$++)o[Y]=t[G],G+=i,Y+=p;G+=s,Y+=m}G+=n,Y+=d}G+=v,Y+=y}G+=u,Y+=h}G+=f,Y+=g}G+=c,Y+=x}}g8.exports=T2r});var q8=l((Sse,x8)=>{"use strict";var O2r=Rr(),I2r=kr();function N2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr;for(dr=O2r(r.shape,r.strides,e.strides),R=dr.sh,Y=dr.sx,$=dr.sy,a=I2r(r.dtype,e.dtype),W=r.offset,J=e.offset,t=r.data,o=e.data,i=Y[0],m=$[0],pr=R[7];pr>0;)for(pr<a?(G=pr,pr=0):(G=a,pr-=a),T=W+pr*Y[7],z=J+pr*$[7],fr=R[6];fr>0;)for(fr<a?(M=fr,fr=0):(M=a,fr-=a),p=Y[7]-M*Y[6],w=$[7]-M*$[6],j=T+fr*Y[6],V=z+fr*$[6],lr=R[5];lr>0;)for(lr<a?(U=lr,lr=0):(U=a,lr-=a),c=Y[6]-U*Y[5],S=$[6]-U*$[5],q=j+lr*Y[5],N=V+lr*$[5],ur=R[4];ur>0;)for(ur<a?(C=ur,ur=0):(C=a,ur-=a),f=Y[5]-C*Y[4],x=$[5]-C*$[4],E=q+ur*Y[4],k=N+ur*$[4],vr=R[3];vr>0;)for(vr<a?(L=vr,vr=0):(L=a,vr-=a),u=Y[4]-L*Y[3],g=$[4]-L*$[3],b=E+vr*Y[3],D=k+vr*$[3],nr=R[2];nr>0;)for(nr<a?(F=nr,nr=0):(F=a,nr-=a),v=Y[3]-F*Y[2],h=$[3]-F*$[2],_=b+nr*Y[2],O=D+nr*$[2],sr=R[1];sr>0;)for(sr<a?(P=sr,sr=0):(P=a,sr-=a),n=Y[2]-P*Y[1],y=$[2]-P*$[1],A=_+sr*Y[1],I=O+sr*$[1],or=R[0];or>0;)for(or<a?(B=or,or=0):(B=a,or-=a),X=A+or*Y[0],K=I+or*$[0],s=Y[1]-B*Y[0],d=$[1]-B*$[0],tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<C;ar++){for(rr=0;rr<L;rr++){for(Z=0;Z<F;Z++){for(Q=0;Q<P;Q++){for(H=0;H<B;H++)o[K]=t[X],X+=i,K+=m;X+=s,K+=d}X+=n,K+=y}X+=v,K+=h}X+=u,K+=g}X+=f,K+=x}X+=c,K+=S}X+=p,K+=w}}x8.exports=N2r});var S8=l((Ese,w8)=>{"use strict";var D2r=Rr(),k2r=kr();function R2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr;for(hr=D2r(r.shape,r.strides,e.strides),L=hr.sh,K=hr.sx,H=hr.sy,a=k2r(r.dtype,e.dtype),Q=r.offset,Z=e.offset,t=r.data,o=e.data,i=K[0],d=H[0],xr=L[8];xr>0;)for(xr<a?(X=xr,xr=0):(X=a,xr-=a),D=Q+xr*K[8],F=Z+xr*H[8],br=L[7];br>0;)for(br<a?(J=br,br=0):(J=a,br-=a),m=K[8]-J*K[7],_=H[8]-J*H[7],O=D+br*K[7],P=F+br*H[7],qr=L[6];qr>0;)for(qr<a?(W=qr,qr=0):(W=a,qr-=a),p=K[7]-W*K[6],A=H[7]-W*H[6],I=O+qr*K[6],B=P+qr*H[6],gr=L[5];gr>0;)for(gr<a?($=gr,gr=0):($=a,gr-=a),c=K[6]-$*K[5],w=H[6]-$*H[5],T=I+gr*K[5],R=B+gr*H[5],mr=L[4];mr>0;)for(mr<a?(Y=mr,mr=0):(Y=a,mr-=a),f=K[5]-Y*K[4],S=H[5]-Y*H[4],j=T+mr*K[4],z=R+mr*H[4],yr=L[3];yr>0;)for(yr<a?(G=yr,yr=0):(G=a,yr-=a),u=K[4]-G*K[3],x=H[4]-G*H[3],q=j+yr*K[3],V=z+yr*H[3],dr=L[2];dr>0;)for(dr<a?(M=dr,dr=0):(M=a,dr-=a),v=K[3]-M*K[2],g=H[3]-M*H[2],E=q+dr*K[2],N=V+dr*H[2],pr=L[1];pr>0;)for(pr<a?(U=pr,pr=0):(U=a,pr-=a),n=K[2]-U*K[1],h=H[2]-U*H[1],b=E+pr*K[1],k=N+pr*H[1],fr=L[0];fr>0;)for(fr<a?(C=fr,fr=0):(C=a,fr-=a),rr=b+fr*K[0],ar=k+fr*H[0],s=K[1]-C*K[0],y=H[1]-C*H[0],lr=0;lr<X;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++){for(sr=0;sr<Y;sr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++){for(ir=0;ir<U;ir++){for(er=0;er<C;er++)o[ar]=t[rr],rr+=i,ar+=d;rr+=s,ar+=y}rr+=n,ar+=h}rr+=v,ar+=g}rr+=u,ar+=x}rr+=f,ar+=S}rr+=c,ar+=w}rr+=p,ar+=A}rr+=m,ar+=_}}w8.exports=R2r});var A8=l((Ase,E8)=>{"use strict";var V2r=Rr(),z2r=kr();function B2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr,Er,Ar,_r,jr,Or,Dr,Vr;for(Vr=V2r(r.shape,r.strides,e.strides),G=Vr.sh,ar=Vr.sx,er=Vr.sy,a=z2r(r.dtype,e.dtype),ir=r.offset,tr=e.offset,t=r.data,o=e.data,i=ar[0],y=er[0],Dr=G[9];Dr>0;)for(Dr<a?(rr=Dr,Dr=0):(rr=a,Dr-=a),V=ir+Dr*ar[9],M=tr+Dr*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=V+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],C=U+jr*er[7],_r=G[6];_r>0;)for(_r<a?(H=_r,_r=0):(H=a,_r-=a),p=ar[7]-H*ar[6],_=er[7]-H*er[6],D=k+_r*ar[6],L=C+_r*er[6],Ar=G[5];Ar>0;)for(Ar<a?(K=Ar,Ar=0):(K=a,Ar-=a),c=ar[6]-K*ar[5],A=er[6]-K*er[5],O=D+Ar*ar[5],F=L+Ar*er[5],Er=G[4];Er>0;)for(Er<a?(X=Er,Er=0):(X=a,Er-=a),f=ar[5]-X*ar[4],w=er[5]-X*er[4],I=O+Er*ar[4],P=F+Er*er[4],hr=G[3];hr>0;)for(hr<a?(J=hr,hr=0):(J=a,hr-=a),u=ar[4]-J*ar[3],S=er[4]-J*er[3],T=I+hr*ar[3],B=P+hr*er[3],xr=G[2];xr>0;)for(xr<a?(W=xr,xr=0):(W=a,xr-=a),v=ar[3]-W*ar[2],x=er[3]-W*er[2],j=T+xr*ar[2],R=B+xr*er[2],br=G[1];br>0;)for(br<a?($=br,br=0):($=a,br-=a),n=ar[2]-$*ar[1],g=er[2]-$*er[1],q=j+br*ar[1],z=R+br*er[1],qr=G[0];qr>0;)for(qr<a?(Y=qr,qr=0):(Y=a,qr-=a),or=q+qr*ar[0],sr=z+qr*er[0],s=ar[1]-Y*ar[0],h=er[1]-Y*er[0],gr=0;gr<rr;gr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<K;pr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(ur=0;ur<W;ur++){for(vr=0;vr<$;vr++){for(nr=0;nr<Y;nr++)o[sr]=t[or],or+=i,sr+=y;or+=s,sr+=h}or+=n,sr+=g}or+=v,sr+=x}or+=u,sr+=S}or+=f,sr+=w}or+=c,sr+=A}or+=p,sr+=_}or+=m,sr+=b}or+=d,sr+=E}}E8.exports=B2r});var j8=l((_se,_8)=>{"use strict";function P2r(r,e){e.accessors[1](e.data,e.offset,r.accessors[0](r.data,r.offset))}_8.exports=P2r});var O8=l((jse,T8)=>{"use strict";function F2r(r,e){var a,t,o,i,s,n,v,u,f,c;for(v=r.shape[0],s=r.strides[0],n=e.strides[0],u=r.offset,f=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],c=0;c<v;c++)i(t,f,o(a,u)),u+=s,f+=n}T8.exports=F2r});var N8=l((Tse,I8)=>{"use strict";function L2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x;for(f=r.shape,m=r.strides,d=e.strides,r.order==="row-major"?(c=f[1],p=f[0],s=m[1],n=m[0]-c*m[1],v=d[1],u=d[0]-c*d[1]):(c=f[0],p=f[1],s=m[0],n=m[1]-c*m[0],v=d[0],u=d[1]-c*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<c;g++)i(t,h,o(a,y)),y+=s,h+=v;y+=n,h+=u}}I8.exports=L2r});var k8=l((Ose,D8)=>{"use strict";function C2r(r,e){var a,t,o,i,s,n,v,u,f,c,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],s=h[2],n=h[1]-m*h[2],v=h[0]-d*h[1],u=g[2],f=g[1]-m*g[2],c=g[0]-d*g[1]):(m=p[0],d=p[1],y=p[2],s=h[0],n=h[1]-m*h[0],v=h[2]-d*h[1],u=g[0],f=g[1]-m*g[0],c=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+=s,S+=u;x+=n,S+=f}x+=v,S+=c}}D8.exports=C2r});var V8=l((Ise,R8)=>{"use strict";function U2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j;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],s=S[3],n=S[2]-y*S[3],v=S[1]-h*S[2],u=S[0]-g*S[1],f=w[3],c=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],s=S[0],n=S[1]-y*S[0],v=S[2]-h*S[1],u=S[3]-g*S[2],f=w[0],c=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],j=0;j<x;j++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(b=0;b<y;b++)i(t,_,o(a,A)),A+=s,_+=f;A+=n,_+=c}A+=v,_+=p}A+=u,_+=m}}R8.exports=U2r});var B8=l((Nse,z8)=>{"use strict";function M2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,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],s=_[4],n=_[3]-g*_[4],v=_[2]-x*_[3],u=_[1]-S*_[2],f=_[0]-w*_[1],c=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],s=_[0],n=_[1]-g*_[0],v=_[2]-x*_[1],u=_[3]-S*_[2],f=_[4]-w*_[3],c=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(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<x;T++){for(j=0;j<g;j++)i(t,q,o(a,E)),E+=s,q+=c;E+=n,q+=p}E+=v,q+=m}E+=u,q+=d}E+=f,q+=y}}z8.exports=M2r});var F8=l((Dse,P8)=>{"use strict";function G2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z;for(x=r.shape,q=r.strides,j=e.strides,r.order==="row-major"?(S=x[5],w=x[4],A=x[3],_=x[2],b=x[1],E=x[0],s=q[5],n=q[4]-S*q[5],v=q[3]-w*q[4],u=q[2]-A*q[3],f=q[1]-_*q[2],c=q[0]-b*q[1],p=j[5],m=j[4]-S*j[5],d=j[3]-w*j[4],y=j[2]-A*j[3],h=j[1]-_*j[2],g=j[0]-b*j[1]):(S=x[0],w=x[1],A=x[2],_=x[3],b=x[4],E=x[5],s=q[0],n=q[1]-S*q[0],v=q[2]-w*q[1],u=q[3]-A*q[2],f=q[4]-_*q[3],c=q[5]-b*q[4],p=j[0],m=j[1]-S*j[0],d=j[2]-w*j[1],y=j[3]-A*j[2],h=j[4]-_*j[3],g=j[5]-b*j[4]),T=r.offset,I=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],z=0;z<E;z++){for(V=0;V<b;V++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(O=0;O<S;O++)i(t,I,o(a,T)),T+=s,I+=p;T+=n,I+=m}T+=v,I+=d}T+=u,I+=y}T+=f,I+=h}T+=c,I+=g}}P8.exports=G2r});var C8=l((kse,L8)=>{"use strict";function $2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F;for(w=r.shape,I=r.strides,O=e.strides,r.order==="row-major"?(A=w[6],_=w[5],b=w[4],E=w[3],q=w[2],j=w[1],T=w[0],s=I[6],n=I[5]-A*I[6],v=I[4]-_*I[5],u=I[3]-b*I[4],f=I[2]-E*I[3],c=I[1]-q*I[2],p=I[0]-j*I[1],m=O[6],d=O[5]-A*O[6],y=O[4]-_*O[5],h=O[3]-b*O[4],g=O[2]-E*O[3],x=O[1]-q*O[2],S=O[0]-j*O[1]):(A=w[0],_=w[1],b=w[2],E=w[3],q=w[4],j=w[5],T=w[6],s=I[0],n=I[1]-A*I[0],v=I[2]-_*I[1],u=I[3]-b*I[2],f=I[4]-E*I[3],c=I[5]-q*I[4],p=I[6]-j*I[5],m=O[0],d=O[1]-A*O[0],y=O[2]-_*O[1],h=O[3]-b*O[2],g=O[4]-E*O[3],x=O[5]-q*O[4],S=O[6]-j*O[5]),D=r.offset,k=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],F=0;F<T;F++){for(P=0;P<j;P++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(z=0;z<b;z++){for(V=0;V<_;V++){for(N=0;N<A;N++)i(t,k,o(a,D)),D+=s,k+=m;D+=n,k+=d}D+=v,k+=y}D+=u,k+=h}D+=f,k+=g}D+=c,k+=x}D+=p,k+=S}}L8.exports=$2r});var M8=l((Rse,U8)=>{"use strict";function Y2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M;for(_=r.shape,k=r.strides,N=e.strides,r.order==="row-major"?(b=_[7],E=_[6],q=_[5],j=_[4],T=_[3],I=_[2],O=_[1],D=_[0],s=k[7],n=k[6]-b*k[7],v=k[5]-E*k[6],u=k[4]-q*k[5],f=k[3]-j*k[4],c=k[2]-T*k[3],p=k[1]-I*k[2],m=k[0]-O*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]-j*N[4],S=N[2]-T*N[3],w=N[1]-I*N[2],A=N[0]-O*N[1]):(b=_[0],E=_[1],q=_[2],j=_[3],T=_[4],I=_[5],O=_[6],D=_[7],s=k[0],n=k[1]-b*k[0],v=k[2]-E*k[1],u=k[3]-q*k[2],f=k[4]-j*k[3],c=k[5]-T*k[4],p=k[6]-I*k[5],m=k[7]-O*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]-j*N[3],S=N[5]-T*N[4],w=N[6]-I*N[5],A=N[7]-O*N[6]),V=r.offset,z=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<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(B=0;B<E;B++){for(R=0;R<b;R++)i(t,z,o(a,V)),V+=s,z+=d;V+=n,z+=y}V+=v,z+=h}V+=u,z+=g}V+=f,z+=x}V+=c,z+=S}V+=p,z+=w}V+=m,z+=A}}U8.exports=Y2r});var $8=l((Vse,G8)=>{"use strict";function W2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W;for(E=r.shape,z=r.strides,R=e.strides,r.order==="row-major"?(q=E[8],j=E[7],T=E[6],I=E[5],O=E[4],D=E[3],k=E[2],N=E[1],V=E[0],s=z[8],n=z[7]-q*z[8],v=z[6]-j*z[7],u=z[5]-T*z[6],f=z[4]-I*z[5],c=z[3]-O*z[4],p=z[2]-D*z[3],m=z[1]-k*z[2],d=z[0]-N*z[1],y=R[8],h=R[7]-q*R[8],g=R[6]-j*R[7],x=R[5]-T*R[6],S=R[4]-I*R[5],w=R[3]-O*R[4],A=R[2]-D*R[3],_=R[1]-k*R[2],b=R[0]-N*R[1]):(q=E[0],j=E[1],T=E[2],I=E[3],O=E[4],D=E[5],k=E[6],N=E[7],V=E[8],s=z[0],n=z[1]-q*z[0],v=z[2]-j*z[1],u=z[3]-T*z[2],f=z[4]-I*z[3],c=z[5]-O*z[4],p=z[6]-D*z[5],m=z[7]-k*z[6],d=z[8]-N*z[7],y=R[0],h=R[1]-q*R[0],g=R[2]-j*R[1],x=R[3]-T*R[2],S=R[4]-I*R[3],w=R[5]-O*R[4],A=R[6]-D*R[5],_=R[7]-k*R[6],b=R[8]-N*R[7]),B=r.offset,P=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],W=0;W<V;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++){for(F=0;F<q;F++)i(t,P,o(a,B)),B+=s,P+=y;B+=n,P+=h}B+=v,P+=g}B+=u,P+=x}B+=f,P+=S}B+=c,P+=w}B+=p,P+=A}B+=m,P+=_}B+=d,P+=b}}G8.exports=W2r});var W8=l((zse,Y8)=>{"use strict";function J2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H;for(j=r.shape,P=r.strides,F=e.strides,r.order==="row-major"?(T=j[9],I=j[8],O=j[7],D=j[6],k=j[5],N=j[4],V=j[3],z=j[2],R=j[1],B=j[0],s=P[9],n=P[8]-T*P[9],v=P[7]-I*P[8],u=P[6]-O*P[7],f=P[5]-D*P[6],c=P[4]-k*P[5],p=P[3]-N*P[4],m=P[2]-V*P[3],d=P[1]-z*P[2],y=P[0]-R*P[1],h=F[9],g=F[8]-T*F[9],x=F[7]-I*F[8],S=F[6]-O*F[7],w=F[5]-D*F[6],A=F[4]-k*F[5],_=F[3]-N*F[4],b=F[2]-V*F[3],E=F[1]-z*F[2],q=F[0]-R*F[1]):(T=j[0],I=j[1],O=j[2],D=j[3],k=j[4],N=j[5],V=j[6],z=j[7],R=j[8],B=j[9],s=P[0],n=P[1]-T*P[0],v=P[2]-I*P[1],u=P[3]-O*P[2],f=P[4]-D*P[3],c=P[5]-k*P[4],p=P[6]-N*P[5],m=P[7]-V*P[6],d=P[8]-z*P[7],y=P[9]-R*P[8],h=F[0],g=F[1]-T*F[0],x=F[2]-I*F[1],S=F[3]-O*F[2],w=F[4]-D*F[3],A=F[5]-k*F[4],_=F[6]-N*F[5],b=F[7]-V*F[6],E=F[8]-z*F[7],q=F[9]-R*F[8]),L=r.offset,C=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],H=0;H<B;H++){for(K=0;K<R;K++){for(X=0;X<z;X++){for(J=0;J<V;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++){for(G=0;G<O;G++){for(M=0;M<I;M++){for(U=0;U<T;U++)i(t,C,o(a,L)),L+=s,C+=h;L+=n,C+=g}L+=v,C+=x}L+=u,C+=S}L+=f,C+=w}L+=c,C+=A}L+=p,C+=_}L+=m,C+=b}L+=d,C+=E}L+=y,C+=q}}Y8.exports=J2r});var H8=l((Bse,K8)=>{"use strict";var X2r=Wr(),J8=ia(),X8="throw";function K2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h;for(u=r.shape,s=X2r(u),a=r.data,t=e.data,f=r.strides,c=e.strides,p=r.offset,m=e.offset,o=r.order,i=e.order,n=r.accessors[0],v=e.accessors[1],h=0;h<s;h++)d=J8(u,f,p,o,h,X8),y=J8(u,c,m,i,h,X8),v(t,y,n(a,d))}K8.exports=K2r});var Q8=l((Pse,Z8)=>{"use strict";function H2r(r,e){e.data[e.offset]=r.data[r.offset]}Z8.exports=H2r});var ej=l((Fse,rj)=>{"use strict";function Z2r(r,e){var a,t,o,i,s,n,v,u;for(s=r.shape[0],o=r.strides[0],i=e.strides[0],n=r.offset,v=e.offset,a=r.data,t=e.data,u=0;u<s;u++)t[v]=a[n],n+=o,v+=i}rj.exports=Z2r});var tj=l((Lse,aj)=>{"use strict";function Q2r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h;for(v=r.shape,c=r.strides,p=e.strides,r.order==="row-major"?(u=v[1],f=v[0],o=c[1],i=c[0]-u*c[1],s=p[1],n=p[0]-u*p[1]):(u=v[0],f=v[1],o=c[0],i=c[1]-u*c[0],s=p[0],n=p[1]-u*p[0]),m=r.offset,d=e.offset,a=r.data,t=e.data,h=0;h<f;h++){for(y=0;y<u;y++)t[d]=a[m],m+=o,d+=s;m+=i,d+=n}}aj.exports=Q2r});var oj=l((Cse,ij)=>{"use strict";function rxr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w;for(f=r.shape,d=r.strides,y=e.strides,r.order==="row-major"?(c=f[2],p=f[1],m=f[0],o=d[2],i=d[1]-c*d[2],s=d[0]-p*d[1],n=y[2],v=y[1]-c*y[2],u=y[0]-p*y[1]):(c=f[0],p=f[1],m=f[2],o=d[0],i=d[1]-c*d[0],s=d[2]-p*d[1],n=y[0],v=y[1]-c*y[0],u=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<c;x++)t[g]=a[h],h+=o,g+=n;h+=i,g+=v}h+=s,g+=u}}ij.exports=rxr});var nj=l((Use,sj)=>{"use strict";function exr(r,e){var a,t,o,i,s,n,v,u,f,c,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],s=g[1]-d*g[2],n=g[0]-y*g[1],v=x[3],u=x[2]-m*x[3],f=x[1]-d*x[2],c=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],s=g[2]-d*g[1],n=g[3]-y*g[2],v=x[0],u=x[1]-m*x[0],f=x[2]-d*x[1],c=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+=v;S+=i,w+=u}S+=s,w+=f}S+=n,w+=c}}sj.exports=exr});var uj=l((Mse,vj)=>{"use strict";function axr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I;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],s=w[2]-h*w[3],n=w[1]-g*w[2],v=w[0]-x*w[1],u=A[4],f=A[3]-y*A[4],c=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],s=w[2]-h*w[1],n=w[3]-g*w[2],v=w[4]-x*w[3],u=A[0],f=A[1]-y*A[0],c=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,I=0;I<S;I++){for(T=0;T<x;T++){for(j=0;j<g;j++){for(q=0;q<h;q++){for(E=0;E<y;E++)t[b]=a[_],_+=o,b+=u;_+=i,b+=f}_+=s,b+=c}_+=n,b+=p}_+=v,b+=m}}vj.exports=axr});var lj=l((Gse,fj)=>{"use strict";function txr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,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],s=b[3]-x*b[4],n=b[2]-S*b[3],v=b[1]-w*b[2],u=b[0]-A*b[1],f=E[5],c=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],s=b[2]-x*b[1],n=b[3]-S*b[2],v=b[4]-w*b[3],u=b[5]-A*b[4],f=E[0],c=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,j=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(O=0;O<S;O++){for(I=0;I<x;I++){for(T=0;T<g;T++)t[j]=a[q],q+=o,j+=f;q+=i,j+=c}q+=s,j+=p}q+=n,j+=m}q+=v,j+=d}q+=u,j+=y}}fj.exports=txr});var dj=l(($se,cj)=>{"use strict";function ixr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B;for(x=r.shape,j=r.strides,T=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=j[6],i=j[5]-S*j[6],s=j[4]-w*j[5],n=j[3]-A*j[4],v=j[2]-_*j[3],u=j[1]-b*j[2],f=j[0]-E*j[1],c=T[6],p=T[5]-S*T[6],m=T[4]-w*T[5],d=T[3]-A*T[4],y=T[2]-_*T[3],h=T[1]-b*T[2],g=T[0]-E*T[1]):(S=x[0],w=x[1],A=x[2],_=x[3],b=x[4],E=x[5],q=x[6],o=j[0],i=j[1]-S*j[0],s=j[2]-w*j[1],n=j[3]-A*j[2],v=j[4]-_*j[3],u=j[5]-b*j[4],f=j[6]-E*j[5],c=T[0],p=T[1]-S*T[0],m=T[2]-w*T[1],d=T[3]-A*T[2],y=T[4]-_*T[3],h=T[5]-b*T[4],g=T[6]-E*T[5]),I=r.offset,O=e.offset,a=r.data,t=e.data,B=0;B<q;B++){for(R=0;R<E;R++){for(z=0;z<b;z++){for(V=0;V<_;V++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++)t[O]=a[I],I+=o,O+=c;I+=i,O+=p}I+=s,O+=m}I+=n,O+=d}I+=v,O+=y}I+=u,O+=h}I+=f,O+=g}}cj.exports=ixr});var yj=l((Yse,pj)=>{"use strict";function oxr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C;for(w=r.shape,O=r.strides,D=e.strides,r.order==="row-major"?(A=w[7],_=w[6],b=w[5],E=w[4],q=w[3],j=w[2],T=w[1],I=w[0],o=O[7],i=O[6]-A*O[7],s=O[5]-_*O[6],n=O[4]-b*O[5],v=O[3]-E*O[4],u=O[2]-q*O[3],f=O[1]-j*O[2],c=O[0]-T*O[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]-j*D[2],S=D[0]-T*D[1]):(A=w[0],_=w[1],b=w[2],E=w[3],q=w[4],j=w[5],T=w[6],I=w[7],o=O[0],i=O[1]-A*O[0],s=O[2]-_*O[1],n=O[3]-b*O[2],v=O[4]-E*O[3],u=O[5]-q*O[4],f=O[6]-j*O[5],c=O[7]-T*O[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]-j*D[5],S=D[7]-T*D[6]),k=r.offset,N=e.offset,a=r.data,t=e.data,C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(z=0;z<_;z++){for(V=0;V<A;V++)t[N]=a[k],k+=o,N+=p;k+=i,N+=m}k+=s,N+=d}k+=n,N+=y}k+=v,N+=h}k+=u,N+=g}k+=f,N+=x}k+=c,N+=S}}pj.exports=oxr});var hj=l((Wse,mj)=>{"use strict";function sxr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y;for(_=r.shape,N=r.strides,V=e.strides,r.order==="row-major"?(b=_[8],E=_[7],q=_[6],j=_[5],T=_[4],I=_[3],O=_[2],D=_[1],k=_[0],o=N[8],i=N[7]-b*N[8],s=N[6]-E*N[7],n=N[5]-q*N[6],v=N[4]-j*N[5],u=N[3]-T*N[4],f=N[2]-I*N[3],c=N[1]-O*N[2],p=N[0]-D*N[1],m=V[8],d=V[7]-b*V[8],y=V[6]-E*V[7],h=V[5]-q*V[6],g=V[4]-j*V[5],x=V[3]-T*V[4],S=V[2]-I*V[3],w=V[1]-O*V[2],A=V[0]-D*V[1]):(b=_[0],E=_[1],q=_[2],j=_[3],T=_[4],I=_[5],O=_[6],D=_[7],k=_[8],o=N[0],i=N[1]-b*N[0],s=N[2]-E*N[1],n=N[3]-q*N[2],v=N[4]-j*N[3],u=N[5]-T*N[4],f=N[6]-I*N[5],c=N[7]-O*N[6],p=N[8]-D*N[7],m=V[0],d=V[1]-b*V[0],y=V[2]-E*V[1],h=V[3]-q*V[2],g=V[4]-j*V[3],x=V[5]-T*V[4],S=V[6]-I*V[5],w=V[7]-O*V[6],A=V[8]-D*V[7]),z=r.offset,R=e.offset,a=r.data,t=e.data,Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++){for(F=0;F<q;F++){for(P=0;P<E;P++){for(B=0;B<b;B++)t[R]=a[z],z+=o,R+=m;z+=i,R+=d}z+=s,R+=y}z+=n,R+=h}z+=v,R+=g}z+=u,R+=x}z+=f,R+=S}z+=c,R+=w}z+=p,R+=A}}mj.exports=sxr});var bj=l((Jse,gj)=>{"use strict";function nxr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X;for(E=r.shape,R=r.strides,B=e.strides,r.order==="row-major"?(q=E[9],j=E[8],T=E[7],I=E[6],O=E[5],D=E[4],k=E[3],N=E[2],V=E[1],z=E[0],o=R[9],i=R[8]-q*R[9],s=R[7]-j*R[8],n=R[6]-T*R[7],v=R[5]-I*R[6],u=R[4]-O*R[5],f=R[3]-D*R[4],c=R[2]-k*R[3],p=R[1]-N*R[2],m=R[0]-V*R[1],d=B[9],y=B[8]-q*B[9],h=B[7]-j*B[8],g=B[6]-T*B[7],x=B[5]-I*B[6],S=B[4]-O*B[5],w=B[3]-D*B[4],A=B[2]-k*B[3],_=B[1]-N*B[2],b=B[0]-V*B[1]):(q=E[0],j=E[1],T=E[2],I=E[3],O=E[4],D=E[5],k=E[6],N=E[7],V=E[8],z=E[9],o=R[0],i=R[1]-q*R[0],s=R[2]-j*R[1],n=R[3]-T*R[2],v=R[4]-I*R[3],u=R[5]-O*R[4],f=R[6]-D*R[5],c=R[7]-k*R[6],p=R[8]-N*R[7],m=R[9]-V*R[8],d=B[0],y=B[1]-q*B[0],h=B[2]-j*B[1],g=B[3]-T*B[2],x=B[4]-I*B[3],S=B[5]-O*B[4],w=B[6]-D*B[5],A=B[7]-k*B[6],_=B[8]-N*B[7],b=B[9]-V*B[8]),P=r.offset,F=e.offset,a=r.data,t=e.data,X=0;X<z;X++){for(J=0;J<V;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++){for(G=0;G<O;G++){for(M=0;M<I;M++){for(U=0;U<T;U++){for(C=0;C<j;C++){for(L=0;L<q;L++)t[F]=a[P],P+=o,F+=d;P+=i,F+=y}P+=s,F+=h}P+=n,F+=g}P+=v,F+=x}P+=u,F+=S}P+=f,F+=w}P+=c,F+=A}P+=p,F+=_}P+=m,F+=b}}gj.exports=nxr});var Sj=l((Xse,wj)=>{"use strict";var vxr=Wr(),xj=ia(),qj="throw";function uxr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d;for(n=r.shape,s=vxr(n),a=r.data,t=e.data,v=r.strides,u=e.strides,f=r.offset,c=e.offset,o=r.order,i=e.order,d=0;d<s;d++)p=xj(n,v,f,o,d,qj),m=xj(n,u,c,i,d,qj),t[m]=a[p]}wj.exports=uxr});var Oj=l((Kse,Tj)=>{"use strict";var fxr=lo(),lxr=Is(),Ej=ba(),cxr=Fu(),dxr=_s(),Aj=Ha(),_j=Yt(),pxr=$_(),yxr=W_(),mxr=X_(),hxr=H_(),gxr=Q_(),bxr=e8(),xxr=t8(),qxr=o8(),wxr=n8(),Sxr=u8(),Exr=l8(),Axr=d8(),_xr=y8(),jxr=h8(),Txr=b8(),Oxr=q8(),Ixr=S8(),Nxr=A8(),Dxr=j8(),kxr=O8(),Rxr=N8(),Vxr=k8(),zxr=V8(),Bxr=B8(),Pxr=F8(),Fxr=C8(),Lxr=M8(),Cxr=$8(),Uxr=W8(),Mxr=H8(),Gxr=Q8(),$xr=ej(),Yxr=tj(),Wxr=oj(),Jxr=nj(),Xxr=uj(),Kxr=lj(),Hxr=dj(),Zxr=yj(),Qxr=hj(),rqr=bj(),eqr=Sj(),gi=[Gxr,$xr,Yxr,Wxr,Jxr,Xxr,Kxr,Hxr,Zxr,Qxr,rqr],po=[Dxr,kxr,Rxr,Vxr,zxr,Bxr,Pxr,Fxr,Lxr,Cxr,Uxr],aqr=[Sxr,Exr,Axr,_xr,jxr,Txr,Oxr,Ixr,Nxr],tqr=[pxr,yxr,mxr,hxr,gxr,bxr,xxr,qxr,wxr],jj=gi.length-1;function iqr(r){var e,a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g;if(d=_j(r[0]),y=_j(r[1]),lxr(d.dtype)&&fxr(y.dtype)&&(d.accessorProtocol=!0,d.accessors[0]=cxr(d.accessors[0],2,dxr(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?po[e](d,y):gi[e](d,y);for(v=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.");v*=h,h===1&&(m+=1)}if(v!==0){if(e===1)return d.accessorProtocol||y.accessorProtocol?po[e](d,y):gi[e](d,y);if(u=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=[u[g]],y.strides=[f[g]],d.accessorProtocol||y.accessorProtocol?po[1](d,y):gi[1](d,y)}if(s=Ej(u),n=Ej(f),s!==0&&n!==0&&s===n){if(a=Aj(o,u,d.offset),t=Aj(i,f,y.offset),v===a[1]-a[0]+1&&v===t[1]-t[0]+1)return s===1?c=a[0]:c=a[1],n===1?p=t[0]:p=t[1],d.shape=[v],y.shape=d.shape,d.strides=[s],y.strides=[n],d.offset=c,y.offset=p,d.accessorProtocol||y.accessorProtocol?po[1](d,y):gi[1](d,y);if(e<=jj)return d.accessorProtocol||y.accessorProtocol?po[e](d,y):gi[e](d,y)}if(e<=jj)return d.accessorProtocol||y.accessorProtocol?tqr[e-2](d,y):aqr[e-2](d,y);if(d.accessorProtocol||y.accessorProtocol)return Mxr(d,y);eqr(d,y)}}Tj.exports=iqr});var Ku=l((Hse,Ij)=>{"use strict";var oqr=Oj();Ij.exports=oqr});var Dj=l((Zse,Nj)=>{"use strict";function sqr(r,e){var a,t,o,i,s,n,v,u,f,c;for(o=1,i=1,c=1;c<r.length;c++){for(v=r[o],a=v<0?-v:v,u=e[i],s=o-1,n=i-1;s>=0&&(f=r[s],t=f<0?-f:f,!(t<=a));)r[s+1]=f,e[n+1]=e[n],s-=1,n-=1;r[s+1]=v,e[n+1]=u,o+=1,i+=1}}Nj.exports=sqr});var Vj=l((Qse,Rj)=>{"use strict";var nqr=qe(),vqr=xt(),Rs=Xr(),uqr=vo(),Hu=kt(),fqr=Dj(),kj=3;function lqr(r,e,a,t){var o,i,s,n,v,u,f,c,p,m;if(o=nqr(r.length),u=Hu(e),f=Hu(a),c=Hu(t),i=uqr([],4),i[u].push(e),i[f].push(a),i[c].push(t),s=i[0].length,s===kj)v=e;else if(s===kj-1){for(p=1;p<4;p++)if(i[p].length){v=i[p][0];break}}else{for(m=0,p=1;p<4;p++)n=i[p].length,n>=s&&(s=n,m=p);v=i[m][0]}return v=vqr(v),fqr(v,o),r=Rs(r,o),e=e===v?v:Rs(e,o),a=a===v?v:Rs(a,o),t=t===v?v:Rs(t,o),{sh:r,sx:e,sy:a,sz:t}}Rj.exports=lqr});var Bj=l((rne,zj)=>{"use strict";var cqr=Vj();zj.exports=cqr});var Fj=l((ene,Pj)=>{"use strict";var dqr={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};Pj.exports=dqr});var Cj=l((ane,Lj)=>{"use strict";var Zu=Ka(),Vs=Fj();function pqr(r,e,a){var t,o,i;return t=Zu(r),o=Zu(e),i=Zu(a),t===null||o===null||i===null?Vs.BLOCK_SIZE_IN_ELEMENTS:t>o&&t>i?Vs.BLOCK_SIZE_IN_BYTES/t|0:o>i?Vs.BLOCK_SIZE_IN_BYTES/o|0:Vs.BLOCK_SIZE_IN_BYTES/i|0}Lj.exports=pqr});var Mj=l((tne,Uj)=>{"use strict";var yqr=Cj();Uj.exports=yqr});var $j=l((ine,Gj)=>{"use strict";var mqr=Math.ceil;Gj.exports=mqr});var Qu=l((one,Yj)=>{"use strict";var hqr=$j();Yj.exports=hqr});var Jj=l((sne,Wj)=>{"use strict";var gqr=Ze(),bqr=Qu();function xqr(r){return r<0?bqr(r):gqr(r)}Wj.exports=xqr});var rf=l((nne,Xj)=>{"use strict";var qqr=Jj();Xj.exports=qqr});var Zj=l((vne,Hj)=>{"use strict";var wqr=cr(),zs=rf(),Kj=ai();function Sqr(r,e,a,t,o,i){var s,n,v,u,f,c;for(s=r.length,n=1,c=0;c<s;c++)n*=r[c];if(i==="clamp")o<0?o=0:o>=n&&(o=n-1);else if(i==="wrap")o<0?(o+=n,o<0&&(o%=n,o!==0&&(o+=n))):o>=n&&(o-=n,o>=n&&(o%=n));else if(i==="normalize"&&o<0&&(o+=n),o<0||o>=n)throw new RangeError(wqr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",n,o));if(v=0,t==="column-major"){for(c=s-1;c>=0;c--)f=e[c],f<0?(u=zs(o/f),o-=u*f,u+=r[c]-1):(u=zs(o/f),o-=u*f),v+=u*Kj(f);return v}for(c=0;c<s;c++)f=e[c],f<0?(u=zs(o/f),o-=u*f,u+=r[c]-1):(u=zs(o/f),o-=u*f),v+=u*Kj(f);return v}Hj.exports=Sqr});var rT=l((une,Qj)=>{"use strict";var Eqr=Zj();Qj.exports=Eqr});var tT=l((fne,aT)=>{"use strict";var yo=xt(),Aqr=ra(),_qr=_e(),jqr=ya(),Tqr=$a(),Oqr=oa(),Iqr=Ye(),Nqr=nt(),eT=cr();function Dqr(r,e){var a,t,o,i,s,n,v,u,f;if(s=e.length,o=_qr(r,!1),n=o.length,s<n)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=[],u=0;u<s;u++)a.push(0);for(i=jqr(r,!1),u=s-1;u>=0;u--)if(f=n-s+u,!(f<0)){if(v=o[f],t=e[u],t!==0&&t<v)throw new Error(eT("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.",yo(o).join(", "),yo(e).join(", "),u));if(v===t)a[u]=i[f];else if(v===1)a[u]=0;else throw new Error(eT("invalid argument. Input array and the specified shape are broadcast incompatible. Array shape: (%s). Desired shape: (%s). Dimension: %u.",yo(o).join(", "),yo(e).join(", "),u))}return Aqr(Iqr(r),Nqr(r),yo(e),a,Tqr(r),Oqr(r))}aT.exports=Dqr});var mo=l((lne,iT)=>{"use strict";var kqr=tT();iT.exports=kqr});var sT=l((cne,oT)=>{"use strict";function Rqr(r){var e,a,t,o,i,s,n,v,u,f,c;if(v=r.length,a=[],v===0)return a;if(o=r[0],u=o.length,v===1){for(f=0;f<u;f++)a.push(o[f]);return a}for(e=[u],f=1;f<v;f++)e.push(r[f].length),e[f]>u&&(u=e[f]);for(f=0;f<u;f++)a.push(0);for(f=u-1;f>=0;){for(i=e[0]-u+f,i>=0?t=o[i]:t=1,c=1;c<v;c++){if(s=e[c]-u+f,s>=0?n=r[c][s]:n=1,t===1){t=n;continue}if(!(n===1||t===n))return null}a[f]=t,f-=1}return a}oT.exports=Rqr});var bi=l((dne,nT)=>{"use strict";var Vqr=sT();nT.exports=Vqr});var uT=l((pne,vT)=>{"use strict";var zqr=bi(),Bqr=mo(),Pqr=_e();function Fqr(r){var e,a,t,o,i;for(o=r.length,e=[],i=0;i<o;i++)e.push(Pqr(r[i],!1));if(t=zqr(e),t===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(a=[],i=0;i<o;i++)a.push(Bqr(r[i],t));return a}vT.exports=Fqr});var lT=l((yne,fT)=>{"use strict";var Lqr=uT();fT.exports=Lqr});var dT=l((mne,cT)=>{"use strict";var Cqr=rt(),Uqr=hi(),Mqr=mi(),Gqr=xe(),$qr=Ia(),Yqr=ra(),Wqr=cr();function Jqr(r,e,a,t){var o,i;if(o=$qr(e,1),o===null)throw new TypeError(Wqr("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return/^complex/.test(e)&&typeof r=="number"&&(r=[r,0]),Cqr(o)?i=Uqr(e):i=Mqr(e),i(o,0,r),new Yqr(e,o,a,Gqr(a.length),0,t)}cT.exports=Jqr});var yT=l((hne,pT)=>{"use strict";var Xqr=dT();pT.exports=Xqr});var hT=l((gne,mT)=>{"use strict";var Kqr=oo(),Hqr=ws();function Zqr(r){var e=Hqr(r);return e?Kqr(e):null}mT.exports=Zqr});var bT=l((bne,gT)=>{"use strict";var Qqr=hT();gT.exports=Qqr});var qT=l((xne,xT)=>{"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"}}xT.exports=rwr});var ET=l((qne,ST)=>{"use strict";var ewr=Oa(),wT=qT(),ef;function awr(r){return arguments.length===0?wT():(ef===void 0&&(ef=wT()),ef[ewr(r)]||null)}ST.exports=awr});var af=l((wne,AT)=>{"use strict";var twr=ET();AT.exports=twr});var OT=l((Sne,TT)=>{"use strict";var _T=ls(),jT=af(),tf;function iwr(r){return arguments.length===0?_T(jT()):(tf===void 0&&(tf=_T(jT())),tf[r]||null)}TT.exports=iwr});var NT=l((Ene,IT)=>{"use strict";var owr=OT();IT.exports=owr});var kT=l((Ane,DT)=>{"use strict";function swr(){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"}}DT.exports=swr});var zT=l((_ne,VT)=>{"use strict";var nwr=Oa(),RT=kT(),of;function vwr(r){return arguments.length===0?RT():(of===void 0&&(of=RT()),of[nwr(r)]||null)}VT.exports=vwr});var PT=l((jne,BT)=>{"use strict";var uwr=zT();BT.exports=uwr});var LT=l((Tne,FT)=>{"use strict";var fwr=cs(),lwr=oo();function cwr(r){var e=typeof r;return e==="number"?fwr(r)?r:null:e==="string"?lwr(r):null}FT.exports=cwr});var sf=l((One,CT)=>{"use strict";var dwr=LT();CT.exports=dwr});var UT=l((Ine,pwr)=>{pwr.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 GT=l((Nne,MT)=>{"use strict";var ywr=Oa(),mwr=UT();function hwr(r){return mwr[ywr(r)]||null}MT.exports=hwr});var YT=l((Dne,$T)=>{"use strict";var gwr=GT();$T.exports=gwr});var XT=l((kne,JT)=>{"use strict";var bwr=ze(),WT=me().isPrimitive,xwr=Oa(),nf=cr();function qwr(r,e,a){var t,o,i,s,n,v,u,f;if(!bwr(r))throw new TypeError(nf("invalid argument. First argument must be an array-like object. Value: `%s`.",r));if(!WT(e))throw new TypeError(nf("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",e));if(!WT(a))throw new TypeError(nf("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(n=e+a,t%n!==0)throw new RangeError("invalid arguments. Length of the first argument is incompatible with the second and third arguments.");for(o=[],i=[],v=2*n,f=2*e,u=0;u<=v;u++)u===0?u===f?i.push("() => ("):i.push("("):u===v?u===f?i.push(") => ()"):i.push(")"):u===f?i.push(") => ("):u%2===1?i.push(""):i.push(", ");for(u=0;u<t;u++)s=xwr(r[u]),s===null&&(s=r[u]),f=u%n,i[2*f+1]=s,f===n-1&&o.push(i.join(""));return o}JT.exports=qwr});var vf=l((Rne,KT)=>{"use strict";var wwr=XT();KT.exports=wwr});var ZT=l((Vne,HT)=>{"use strict";var Swr=Ua(),Ewr=uv();function Awr(){var r=Swr(1);return Ewr(r)}HT.exports=Awr});var rO=l((zne,QT)=>{"use strict";var _wr=Qa(),jwr=at(),Twr=ni(),Owr=si(),Iwr=ui(),Nwr=zt(),Dwr=oi(),kwr=Qe(),Rwr=vi(),Vwr=fi(),zwr=li(),Bwr=ci(),Pwr={float64:_wr,float32:jwr,int16:Twr,int32:Owr,int8:Iwr,uint16:Nwr,uint32:Dwr,uint8:kwr,uint8c:Rwr,complex64:Vwr,complex128:zwr,bool:Bwr};QT.exports=Pwr});var aO=l((Bne,eO)=>{"use strict";var Fwr=rO();function Lwr(r){return Fwr[r]||null}eO.exports=Lwr});var iO=l((Pne,tO)=>{"use strict";var Cwr=aO();tO.exports=Cwr});var uf=l((Fne,oO)=>{"use strict";function Uwr(){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"}}}oO.exports=Uwr});var nO=l((Lne,sO)=>{"use strict";var Mwr=uf(),Ya=Mwr(),Gwr={"dtypes.default":Ya.dtypes.default,"dtypes.numeric":Ya.dtypes.numeric,"dtypes.real":Ya.dtypes.real,"dtypes.floating_point":Ya.dtypes.floating_point,"dtypes.real_floating_point":Ya.dtypes.real_floating_point,"dtypes.complex_floating_point":Ya.dtypes.complex_floating_point,"dtypes.boolean":Ya.dtypes.boolean,"dtypes.integer":Ya.dtypes.integer,"dtypes.signed_integer":Ya.dtypes.signed_integer,"dtypes.unsigned_integer":Ya.dtypes.unsigned_integer};function $wr(r){var e=Gwr[r];return e===void 0?null:e}sO.exports=$wr});var ff=l((Cne,uO)=>{"use strict";var Ywr=Tr(),vO=uf(),Wwr=nO();Ywr(vO,"get",Wwr);uO.exports=vO});var dO=l((Une,cO)=>{"use strict";var fO=me().isPrimitive,Jwr=Ua(),Xwr=iO(),Kwr=xe(),Hwr=Ka(),Zwr=ff(),lO=cr(),Qwr=Zwr.get("dtypes.default");function r3r(r){var e,a,t,o,i,s,n;if(!fO(r))throw new TypeError(lO("invalid argument. First argument must be a nonnegative integer. Value: `%s`.",r));if(arguments.length>1?t=arguments[1]:t=Qwr,t==="generic")return Kwr(r);if(e=Hwr(t),e===null)throw new TypeError(lO("invalid argument. Second argument must be a supported data type. Value: `%s`.",t));return o=Xwr(t),n=e*r,t==="complex128"&&(n+=8),i=Jwr(n),a=i.byteOffset,t==="complex128"&&(fO(a/e)||(a+=8)),s=new o(i.buffer,a,r),s}cO.exports=r3r});var yO=l((Mne,pO)=>{"use strict";var e3r=Qa(),a3r=at(),t3r=ni(),i3r=si(),o3r=ui(),s3r=zt(),n3r=oi(),v3r=Qe(),u3r=vi(),f3r=fi(),l3r=li(),c3r=ci(),d3r={float64:e3r,float32:a3r,generic:Array,int16:t3r,int32:i3r,int8:o3r,uint16:s3r,uint32:n3r,uint8:v3r,uint8c:u3r,complex64:f3r,complex128:l3r,bool:c3r};pO.exports=d3r});var hO=l((Gne,mO)=>{"use strict";var p3r=yO();function y3r(r){return p3r[r]||null}mO.exports=y3r});var bO=l(($ne,gO)=>{"use strict";var m3r=hO();gO.exports=m3r});var wO=l((Yne,qO)=>{"use strict";var h3r=me().isPrimitive,g3r=bO(),b3r=xe(),x3r=ff(),xO=cr(),q3r=x3r.get("dtypes.default");function w3r(r){var e,a;if(!h3r(r))throw new TypeError(xO("invalid argument. First argument must be a nonnegative integer. Value: `%s`.",r));if(arguments.length>1?e=arguments[1]:e=q3r,e==="generic")return b3r(r);if(a=g3r(e),a===null)throw new TypeError(xO("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return new a(r)}qO.exports=w3r});var EO=l((Wne,SO)=>{"use strict";var S3r=wO();SO.exports=S3r});var jO=l((Jne,_O)=>{"use strict";var AO=EO();function E3r(r){return arguments.length>1?AO(r,arguments[1]):AO(r)}_O.exports=E3r});var ho=l((Xne,TO)=>{"use strict";var A3r=ZT(),_3r=dO(),j3r=jO(),lf;A3r()?lf=_3r:lf=j3r;TO.exports=lf});var IO=l((Kne,OO)=>{"use strict";var T3r=Ve(),O3r=Me(),I3r=ra(),N3r=Wr(),D3r=ho(),k3r=Ua();function R3r(r,e,a){var t,o,i,s;return t=e.length,t>0?(i=N3r(e),s=T3r(e,a)):(i=1,s=[0]),r==="binary"?o=k3r(i):o=D3r(i,r),new I3r(r,o,e,s,O3r(e,s),a)}OO.exports=R3r});var DO=l((Hne,NO)=>{"use strict";var V3r=IO();NO.exports=V3r});var RO=l((Zne,kO)=>{"use strict";var z3r=Ve(),B3r=Me(),P3r=Wr(),F3r=Ye(),L3r=_e(),C3r=oa(),U3r=ho(),M3r=Ua();function G3r(r){var e,a,t,o,i,s,n;return n=F3r(r),i=L3r(r,!0),o=C3r(r),e=i.length,e>0?(a=P3r(i),s=z3r(i,o)):(a=1,s=[0]),n==="binary"?t=M3r(a):t=U3r(a,n),new r.constructor(n,t,i,s,B3r(i,s),o)}kO.exports=G3r});var zO=l((Qne,VO)=>{"use strict";var $3r=RO();VO.exports=$3r});var UO=l((rve,CO)=>{"use strict";var Y3r=Le(),BO=Ye(),W3r=_e(),J3r=ya(),PO=$a(),X3r=oa(),FO=nt(),LO=cr();function K3r(r,e){var a,t,o,i,s,n,v;if(i=W3r(r,!1),s=J3r(r,!1),o=X3r(r),n=i.length,a=[],t=[],e<0){if(e<-n-1)throw new RangeError(LO("invalid argument. Specified axis is out-of-bounds. Must be on the interval: [-%u-1, %u]. Value: `%d`.",n,n,e));e+=n+1}else if(e>n)throw new RangeError(LO("invalid argument. Specified axis is out-of-bounds. Must be on the interval: [-%u-1, %u]. Value: `%d`.",n,n,e));if(e===0)for(t.push(1),a.push(s[0]),v=0;v<n;v++)t.push(i[v]),a.push(s[v]);else if(e===n){for(v=0;v<n;v++)t.push(i[v]),a.push(s[v]);t.push(1),a.push(s[n-1])}else for(v=0;v<n+1;v++)v===e?(t.push(1),o==="row-major"?a.push(s[v-1]):a.push(s[v])):v<e?(t.push(i[v]),a.push(s[v])):(t.push(i[v-1]),a.push(s[v-1]));return Y3r(r)?new r.constructor(BO(r),FO(r),t,a,PO(r),o,{readonly:!0}):new r.constructor(BO(r),FO(r),t,a,PO(r),o)}CO.exports=K3r});var GO=l((eve,MO)=>{"use strict";var H3r=UO();MO.exports=H3r});var YO=l((ave,$O)=>{"use strict";function Z3r(r){return r===null}$O.exports=Z3r});var xi=l((tve,WO)=>{"use strict";var Q3r=YO();WO.exports=Q3r});var XO=l((ive,JO)=>{"use strict";function r4r(r){return r===void 0}JO.exports=r4r});var qi=l((ove,KO)=>{"use strict";var e4r=XO();KO.exports=e4r});var ZO=l((sve,HO)=>{"use strict";var df=Tr(),pf=yt(),a4r=ve().isPrimitive,t4r=xi(),i4r=qi(),Bs=cr();function cf(r){return a4r(r)||t4r(r)||i4r(r)}function vt(){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 vt))return new vt(e,a,t);if(!cf(e))throw new TypeError(Bs("invalid argument. First argument must be an integer, null, or undefined. Value: `%s`.",e));if(!cf(a))throw new TypeError(Bs("invalid argument. Second argument must be an integer, null, or undefined. Value: `%s`.",a));if(cf(t)){if(t===0)throw new RangeError(Bs("invalid argument. Third argument cannot be zero. Value: `%s`.",t))}else throw new TypeError(Bs("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}df(vt,"name","Slice");pf(vt.prototype,"start",function(){return this._start});pf(vt.prototype,"stop",function(){return this._stop});pf(vt.prototype,"step",function(){return this._step});df(vt.prototype,"toString",function(){return"Slice("+this._start+","+this._stop+","+this.step+")"});df(vt.prototype,"toJSON",function(){return{type:"Slice",data:[this._start,this._stop,this._step]}});HO.exports=vt});var Pe=l((nve,QO)=>{"use strict";var o4r=ZO();QO.exports=o4r});var eI=l((vve,rI)=>{"use strict";var s4r=Pe(),n4r=pt();function v4r(r){return r instanceof s4r||n4r(r)==="Slice"}rI.exports=v4r});var yf=l((uve,aI)=>{"use strict";var u4r=eI();aI.exports=u4r});var oI=l((fve,iI)=>{"use strict";var mf=Tr(),tI=yt(),f4r=ve().isPrimitive,l4r=xi(),c4r=qi(),d4r=yf(),p4r=cr();function y4r(r){return f4r(r)||l4r(r)||c4r(r)||d4r(r)}function We(){var r,e,a,t,o;if(r=arguments.length,!(this instanceof We)){if(r===1)return new We(arguments[0]);if(r===2)return new We(arguments[0],arguments[1]);if(r===3)return new We(arguments[0],arguments[1],arguments[2]);if(r===4)return new We(arguments[0],arguments[1],arguments[2],arguments[3]);if(r===5)return new We(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(We.prototype),We.apply(e,a)}for(this._data=[],o=0;o<r;o++){if(t=arguments[o],!y4r(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}mf(We,"name","MultiSlice");tI(We.prototype,"ndims",function(){return this._data.length});tI(We.prototype,"data",function(){return this._data.slice()});mf(We.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(",")+")"});mf(We.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});iI.exports=We});var Wa=l((lve,sI)=>{"use strict";var m4r=oI();sI.exports=m4r});var vI=l((cve,nI)=>{"use strict";var ma=Wa();function h4r(r){switch(r.length){case 0:return new ma;case 1:return new ma(r[0]);case 2:return new ma(r[0],r[1]);case 3:return new ma(r[0],r[1],r[2]);case 4:return new ma(r[0],r[1],r[2],r[3]);case 5:return new ma(r[0],r[1],r[2],r[3],r[4]);case 6:return new ma(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new ma(r[0],r[1],r[2],r[3],r[4],r[5],r[6]);case 8:return new ma(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7]);case 9:return new ma(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8]);case 10:return new ma(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9]);default:return ma.apply(null,r)}}nI.exports=h4r});var he=l((dve,uI)=>{"use strict";var g4r=vI();uI.exports=g4r});var lI=l((pve,fI)=>{"use strict";function b4r(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}fI.exports=b4r});var dI=l((yve,cI)=>{"use strict";var x4r=Pe(),go=lI();function q4r(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 go();t=0}}else if(t>=e){if(a)return go();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 go();o=0}else{if(a&&o<-1)return go();o=null}}else if(o>e){if(a)return go();o=e}return new x4r(t,o,i)}cI.exports=q4r});var yI=l((mve,pI)=>{"use strict";var w4r=dI();pI.exports=w4r});var hI=l((hve,mI)=>{"use strict";function S4r(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}mI.exports=S4r});var xI=l((gve,bI)=>{"use strict";var Ps=Pe(),gI=hI();function E4r(r,e,a){return r>=e?a?gI():new Ps(e,e,1):r<0?(r=e+r,r<0?a?gI():new Ps(0,0,1):new Ps(r,r+1,1)):new Ps(r,r+1,1)}bI.exports=E4r});var wI=l((bve,qI)=>{"use strict";var A4r=xI();qI.exports=A4r});var EI=l((xve,SI)=>{"use strict";var _4r=he(),j4r=Pe(),T4r=yI(),O4r=wI();function I4r(r,e,a){return r===null?new j4r(0,e,1):typeof r=="number"?O4r(r,e,a):T4r(r,e,a)}function N4r(r,e,a){var t,o,i,s;for(t=r.data,o=[],s=0;s<t.length;s++){if(i=I4r(t[s],e[s],a),i.code!==void 0)return i;o.push(i)}return _4r(o)}SI.exports=N4r});var _I=l((qve,AI)=>{"use strict";var D4r=EI();AI.exports=D4r});var TI=l((wve,jI)=>{"use strict";function k4r(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}jI.exports=k4r});var II=l((Sve,OI)=>{"use strict";var R4r=TI();OI.exports=R4r});var DI=l((Eve,NI)=>{"use strict";var V4r=Qu();function z4r(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:V4r((t-a)/e)}NI.exports=z4r});var RI=l((Ave,kI)=>{"use strict";var B4r=DI();kI.exports=B4r});var zI=l((_ve,VI)=>{"use strict";var P4r=RI();function F4r(r){var e,a,t;for(e=r.data,a=[],t=0;t<e.length;t++)a.push(P4r(e[t]));return a}VI.exports=F4r});var PI=l((jve,BI)=>{"use strict";var L4r=zI();BI.exports=L4r});var LI=l((Tve,FI)=>{"use strict";function C4r(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}FI.exports=C4r});var UI=l((Ove,CI)=>{"use strict";function U4r(r,e,a){var t,o,i,s;for(t=r.data,o=[],i=0;i<a.length;i++)s=a[i],o.push(e[s]*t[s].step);return o}CI.exports=U4r});var GI=l((Ive,MI)=>{"use strict";var M4r=Ia(),G4r=xe();function $4r(r,e,a,t,o){var i,s;return s=a.length,s===0?i=[0]:i=G4r(s),new r(e,M4r(e,0),a,i,0,t,{readonly:o})}MI.exports=$4r});var KI=l((Nve,XI)=>{"use strict";var $I=_I(),Y4r=II(),YI=PI(),hf=Xr(),W4r=xe(),WI=Wr(),J4r=Ye(),X4r=_e(),K4r=ya(),H4r=$a(),Z4r=oa(),gf=nt(),JI=cr(),Q4r=LI(),r6r=UI(),e6r=GI();function a6r(r,e,a,t){var o,i,s,n,v,u,f,c,p,m;if(s=J4r(r),n=X4r(r,!0),o=K4r(r,!0),i=H4r(r),v=Z4r(r),f=n.length,e.ndims!==f)throw new RangeError(JI("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",n.join(","),e.ndims));if(c=r.constructor,f===0)return new c(s,gf(r),n,o,i,v,{readonly:!t});if(u=Y4r(e),m=$I(e,n,!0),m.code){if(a)throw new RangeError(JI("invalid argument. Slice exceeds array bounds. Array shape: (%s).",n.join(",")));m=$I(e,n,!1),p=YI(m),WI(hf(p,u))>0&&(p=W4r(p.length))}else p=YI(m);return WI(p)===0?e6r(c,s,hf(p,u),v,!t):(i=Q4r(m,o,i),p=hf(p,u),p.length===0?new c(s,gf(r),[],[0],i,v,{readonly:!t}):(o=r6r(m,o,u),new c(s,gf(r),p,o,i,v,{readonly:!t})))}XI.exports=a6r});var pe=l((Dve,HI)=>{"use strict";var t6r=KI();HI.exports=t6r});var QI=l((kve,ZI)=>{"use strict";var i6r=vo();function o6r(r){return i6r(null,r)}ZI.exports=o6r});var wi=l((Rve,r7)=>{"use strict";var s6r=QI();r7.exports=s6r});var a7=l((Vve,e7)=>{"use strict";function n6r(r){var e=r.ndims;return typeof e=="number"?e:r.shape.length}e7.exports=n6r});var Ra=l((zve,t7)=>{"use strict";var v6r=a7();t7.exports=v6r});var o7=l((Bve,i7)=>{"use strict";var u6r=he(),f6r=Pe(),l6r=pe(),c6r=wi(),d6r=Ra(),bf=cr();function p6r(r,e,a){var t,o,i;if(o=d6r(r),o===0)throw new TypeError(bf("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(bf("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e))}else if(i>=o)throw new RangeError(bf("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e));return t=c6r(o),t[i]=new f6r(null,null,-1),l6r(r,u6r(t),!0,a)}i7.exports=p6r});var Fs=l((Pve,s7)=>{"use strict";var y6r=o7();s7.exports=y6r});var v7=l((Fve,n7)=>{"use strict";var m6r=Wa(),h6r=Fs(),g6r=pe(),b6r=Ra();function x6r(r,e){return b6r(r)===0?g6r(r,new m6r,!0,e):h6r(r,-1,e)}n7.exports=x6r});var f7=l((Lve,u7)=>{"use strict";var q6r=v7();u7.exports=q6r});var p7=l((Cve,d7)=>{"use strict";var l7=Wa(),w6r=Fs(),c7=pe(),S6r=Ra();function E6r(r,e){var a=S6r(r);return a===0?c7(r,new l7,!0,e):a===1?c7(r,new l7(null),!0,e):w6r(r,-2,e)}d7.exports=E6r});var m7=l((Uve,y7)=>{"use strict";var A6r=p7();y7.exports=A6r});var g7=l((Mve,h7)=>{"use strict";function _6r(r,e){var a,t,o,i,s,n,v,u,f,c;for(o=1,i=1,c=1;c<r.length;c++){for(v=r[o],a=v<0?-v:v,u=e[i],s=o-1,n=i-1;s>=0&&(f=r[s],t=f<0?-f:f,!(t<=a));)r[s+1]=f,e[n+1]=e[n],s-=1,n-=1;r[s+1]=v,e[n+1]=u,o+=1,i+=1}}h7.exports=_6r});var x7=l((Gve,b7)=>{"use strict";var j6r=qe(),T6r=xt(),O6r=Xr(),I6r=g7();function N6r(r,e){var a;return a=j6r(r.length),e=T6r(e),I6r(e,a),r=O6r(r,a),{sh:r,sx:e,idx:a}}b7.exports=N6r});var Hr=l(($ve,q7)=>{"use strict";var D6r=x7();q7.exports=D6r});var S7=l((Yve,w7)=>{"use strict";var k6r={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};w7.exports=k6r});var _7=l((Wve,A7)=>{"use strict";var R6r=Ka(),E7=S7();function V6r(r){var e=R6r(r);return e===null?E7.BLOCK_SIZE_IN_ELEMENTS:E7.BLOCK_SIZE_IN_BYTES/e|0}A7.exports=V6r});var Zr=l((Jve,j7)=>{"use strict";var z6r=_7();j7.exports=z6r});var I7=l((Xve,O7)=>{"use strict";var B6r=st(),T7=Ze();function P6r(r,e){return typeof r[e]=="function"}function F6r(r){var e,a,t,o,i;for(a=T7(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 L6r(r){var e,a,t,o,i,s,n,v;for(e=r.data,a=r.accessors[0],t=r.accessors[1],i=T7(e.length/2),s=e.length-1,n=0;n<i;n++)v=s-n,o=a(e,n),t(e,n,a(e,v)),t(e,v,o);return e}function C6r(r){var e;return P6r(r,"reverse")?r.reverse():(e=B6r(r),e.accessorProtocol?L6r(e):F6r(r))}O7.exports=C6r});var Qr=l((Kve,N7)=>{"use strict";var U6r=I7();N7.exports=U6r});var k7=l((Hve,D7)=>{"use strict";var M6r=Hr(),G6r=Zr(),$6r=Xr(),Y6r=Qr();function W6r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w;for(w=M6r(r.shape,r.strides),f=w.sh,m=w.sx,u=Y6r(w.idx),t=G6r(r.dtype),d=r.offset,o=r.data,s=m[0],i=r.accessors[0],S=f[1];S>0;)for(S<t?(p=S,S=0):(p=t,S-=t),v=d+S*m[1],x=f[0];x>0;)for(x<t?(c=x,x=0):(c=t,x-=t),y=v+x*m[0],n=m[1]-c*m[0],g=0;g<p;g++){for(h=0;h<c;h++)e.call(a,i(o,y),$6r([g,h],u),r.ref),y+=s;y+=n}}D7.exports=W6r});var V7=l((Zve,R7)=>{"use strict";var J6r=Hr(),X6r=Zr(),K6r=Xr(),H6r=Qr();function Z6r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q;for(q=J6r(r.shape,r.strides),p=q.sh,h=q.sx,c=H6r(q.idx),t=X6r(r.dtype),g=r.offset,o=r.data,s=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),v=h[2]-d*h[1],u=f+b*h[1],_=p[0];_>0;)for(_<t?(m=_,_=0):(m=t,_-=t),x=u+_*h[0],n=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),K6r([A,w,S],c),r.ref),x+=s;x+=n}x+=v}}R7.exports=Z6r});var B7=l((Qve,z7)=>{"use strict";var Q6r=Hr(),rSr=Zr(),eSr=Xr(),aSr=Qr();function tSr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D;for(D=Q6r(r.shape,r.strides),d=D.sh,S=D.sx,m=aSr(D.idx),t=rSr(r.dtype),w=r.offset,o=r.data,s=S[0],i=r.accessors[0],O=d[3];O>0;)for(O<t?(x=O,O=0):(x=t,O-=t),p=w+O*S[3],I=d[2];I>0;)for(I<t?(g=I,I=0):(g=t,I-=t),u=S[3]-g*S[2],c=p+I*S[2],T=d[1];T>0;)for(T<t?(h=T,T=0):(h=t,T-=t),v=S[2]-h*S[1],f=c+T*S[1],j=d[0];j>0;)for(j<t?(y=j,j=0):(y=t,j-=t),A=f+j*S[0],n=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),eSr([q,E,b,_],m),r.ref),A+=s;A+=n}A+=v}A+=u}}z7.exports=tSr});var F7=l((rue,P7)=>{"use strict";var iSr=Hr(),oSr=Zr(),sSr=Xr(),nSr=Qr();function vSr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R;for(R=iSr(r.shape,r.strides),h=R.sh,_=R.sx,y=nSr(R.idx),t=oSr(r.dtype),b=r.offset,o=r.data,s=_[0],i=r.accessors[0],z=h[4];z>0;)for(z<t?(A=z,z=0):(A=t,z-=t),d=b+z*_[4],V=h[3];V>0;)for(V<t?(w=V,V=0):(w=t,V-=t),f=_[4]-w*_[3],m=d+V*_[3],N=h[2];N>0;)for(N<t?(S=N,N=0):(S=t,N-=t),u=_[3]-S*_[2],p=m+N*_[2],k=h[1];k>0;)for(k<t?(x=k,k=0):(x=t,k-=t),v=_[2]-x*_[1],c=p+k*_[1],D=h[0];D>0;)for(D<t?(g=D,D=0):(g=t,D-=t),E=c+D*_[0],n=_[1]-g*_[0],O=0;O<A;O++){for(I=0;I<w;I++){for(T=0;T<S;T++){for(j=0;j<x;j++){for(q=0;q<g;q++)e.call(a,i(o,E),sSr([O,I,T,j,q],y),r.ref),E+=s;E+=n}E+=v}E+=u}E+=f}}P7.exports=vSr});var C7=l((eue,L7)=>{"use strict";var uSr=Hr(),fSr=Zr(),lSr=Xr(),cSr=Qr();function dSr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C;for(C=uSr(r.shape,r.strides),x=C.sh,q=C.sx,g=cSr(C.idx),t=fSr(r.dtype),j=r.offset,o=r.data,s=q[0],i=r.accessors[0],L=x[5];L>0;)for(L<t?(E=L,L=0):(E=t,L-=t),h=j+L*q[5],F=x[4];F>0;)for(F<t?(b=F,F=0):(b=t,F-=t),c=q[5]-b*q[4],y=h+F*q[4],P=x[3];P>0;)for(P<t?(_=P,P=0):(_=t,P-=t),f=q[4]-_*q[3],d=y+P*q[3],B=x[2];B>0;)for(B<t?(A=B,B=0):(A=t,B-=t),u=q[3]-A*q[2],m=d+B*q[2],R=x[1];R>0;)for(R<t?(w=R,R=0):(w=t,R-=t),v=q[2]-w*q[1],p=m+R*q[1],z=x[0];z>0;)for(z<t?(S=z,z=0):(S=t,z-=t),T=p+z*q[0],n=q[1]-S*q[0],V=0;V<E;V++){for(N=0;N<b;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++)e.call(a,i(o,T),lSr([V,N,k,D,O,I],g),r.ref),T+=s;T+=n}T+=v}T+=u}T+=f}T+=c}}L7.exports=dSr});var M7=l((aue,U7)=>{"use strict";var pSr=Hr(),ySr=Zr(),mSr=Xr(),hSr=Qr();function gSr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$;for($=pSr(r.shape,r.strides),w=$.sh,I=$.sx,S=hSr($.idx),t=ySr(r.dtype),O=r.offset,o=r.data,s=I[0],i=r.accessors[0],Y=w[6];Y>0;)for(Y<t?(T=Y,Y=0):(T=t,Y-=t),x=O+Y*I[6],G=w[5];G>0;)for(G<t?(j=G,G=0):(j=t,G-=t),p=I[6]-j*I[5],g=x+G*I[5],M=w[4];M>0;)for(M<t?(q=M,M=0):(q=t,M-=t),c=I[5]-q*I[4],h=g+M*I[4],U=w[3];U>0;)for(U<t?(E=U,U=0):(E=t,U-=t),f=I[4]-E*I[3],y=h+U*I[3],C=w[2];C>0;)for(C<t?(b=C,C=0):(b=t,C-=t),u=I[3]-b*I[2],d=y+C*I[2],L=w[1];L>0;)for(L<t?(_=L,L=0):(_=t,L-=t),v=I[2]-_*I[1],m=d+L*I[1],F=w[0];F>0;)for(F<t?(A=F,F=0):(A=t,F-=t),D=m+F*I[0],n=I[1]-A*I[0],P=0;P<T;P++){for(B=0;B<j;B++){for(R=0;R<q;R++){for(z=0;z<E;z++){for(V=0;V<b;V++){for(N=0;N<_;N++){for(k=0;k<A;k++)e.call(a,i(o,D),mSr([P,B,R,z,V,N,k],S),r.ref),D+=s;D+=n}D+=v}D+=u}D+=f}D+=c}D+=p}}U7.exports=gSr});var $7=l((tue,G7)=>{"use strict";var bSr=Hr(),xSr=Zr(),qSr=Xr(),wSr=Qr();function SSr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H;for(H=bSr(r.shape,r.strides),_=H.sh,k=H.sx,A=wSr(H.idx),t=xSr(r.dtype),N=r.offset,o=r.data,s=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?(O=X,X=0):(O=t,X-=t),m=k[7]-O*k[6],S=w+X*k[6],J=_[5];J>0;)for(J<t?(I=J,J=0):(I=t,J-=t),p=k[6]-I*k[5],x=S+J*k[5],W=_[4];W>0;)for(W<t?(T=W,W=0):(T=t,W-=t),c=k[5]-T*k[4],g=x+W*k[4],$=_[3];$>0;)for($<t?(j=$,$=0):(j=t,$-=t),f=k[4]-j*k[3],h=g+$*k[3],Y=_[2];Y>0;)for(Y<t?(q=Y,Y=0):(q=t,Y-=t),u=k[3]-q*k[2],y=h+Y*k[2],G=_[1];G>0;)for(G<t?(E=G,G=0):(E=t,G-=t),v=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),V=d+M*k[0],n=k[1]-b*k[0],U=0;U<D;U++){for(C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(z=0;z<b;z++)e.call(a,i(o,V),qSr([U,C,L,F,P,B,R,z],A),r.ref),V+=s;V+=n}V+=v}V+=u}V+=f}V+=c}V+=p}V+=m}}G7.exports=SSr});var W7=l((iue,Y7)=>{"use strict";var ESr=Hr(),ASr=Zr(),_Sr=Xr(),jSr=Qr();function TSr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er;for(er=ESr(r.shape,r.strides),E=er.sh,z=er.sx,b=jSr(er.idx),t=ASr(r.dtype),R=r.offset,o=r.data,s=z[0],i=r.accessors[0],ar=E[8];ar>0;)for(ar<t?(V=ar,ar=0):(V=t,ar-=t),_=R+ar*z[8],rr=E[7];rr>0;)for(rr<t?(N=rr,rr=0):(N=t,rr-=t),d=z[8]-N*z[7],A=_+rr*z[7],Z=E[6];Z>0;)for(Z<t?(k=Z,Z=0):(k=t,Z-=t),m=z[7]-k*z[6],w=A+Z*z[6],Q=E[5];Q>0;)for(Q<t?(D=Q,Q=0):(D=t,Q-=t),p=z[6]-D*z[5],S=w+Q*z[5],H=E[4];H>0;)for(H<t?(O=H,H=0):(O=t,H-=t),c=z[5]-O*z[4],x=S+H*z[4],K=E[3];K>0;)for(K<t?(I=K,K=0):(I=t,K-=t),f=z[4]-I*z[3],g=x+K*z[3],X=E[2];X>0;)for(X<t?(T=X,X=0):(T=t,X-=t),u=z[3]-T*z[2],h=g+X*z[2],J=E[1];J>0;)for(J<t?(j=J,J=0):(j=t,J-=t),v=z[2]-j*z[1],y=h+J*z[1],W=E[0];W>0;)for(W<t?(q=W,W=0):(q=t,W-=t),B=y+W*z[0],n=z[1]-q*z[0],$=0;$<V;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++)e.call(a,i(o,B),_Sr([$,Y,G,M,U,C,L,F,P],b),r.ref),B+=s;B+=n}B+=v}B+=u}B+=f}B+=c}B+=p}B+=m}B+=d}}Y7.exports=TSr});var X7=l((oue,J7)=>{"use strict";var OSr=Hr(),ISr=Zr(),NSr=Xr(),DSr=Qr();function kSr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr;for(nr=OSr(r.shape,r.strides),j=nr.sh,P=nr.sx,q=DSr(nr.idx),t=ISr(r.dtype),F=r.offset,o=r.data,s=P[0],i=r.accessors[0],sr=j[9];sr>0;)for(sr<t?(B=sr,sr=0):(B=t,sr-=t),E=F+sr*P[9],or=j[8];or>0;)for(or<t?(R=or,or=0):(R=t,or-=t),y=P[9]-R*P[8],b=E+or*P[8],tr=j[7];tr>0;)for(tr<t?(z=tr,tr=0):(z=t,tr-=t),d=P[8]-z*P[7],_=b+tr*P[7],ir=j[6];ir>0;)for(ir<t?(V=ir,ir=0):(V=t,ir-=t),m=P[7]-V*P[6],A=_+ir*P[6],er=j[5];er>0;)for(er<t?(N=er,er=0):(N=t,er-=t),p=P[6]-N*P[5],w=A+er*P[5],ar=j[4];ar>0;)for(ar<t?(k=ar,ar=0):(k=t,ar-=t),c=P[5]-k*P[4],S=w+ar*P[4],rr=j[3];rr>0;)for(rr<t?(D=rr,rr=0):(D=t,rr-=t),f=P[4]-D*P[3],x=S+rr*P[3],Z=j[2];Z>0;)for(Z<t?(O=Z,Z=0):(O=t,Z-=t),u=P[3]-O*P[2],g=x+Z*P[2],Q=j[1];Q>0;)for(Q<t?(I=Q,Q=0):(I=t,Q-=t),v=P[2]-I*P[1],h=g+Q*P[1],H=j[0];H>0;)for(H<t?(T=H,H=0):(T=t,H-=t),L=h+H*P[0],n=P[1]-T*P[0],K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<z;J++){for(W=0;W<V;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++)e.call(a,i(o,L),NSr([K,X,J,W,$,Y,G,M,U,C],q),r.ref),L+=s;L+=n}L+=v}L+=u}L+=f}L+=c}L+=p}L+=m}L+=d}L+=y}}J7.exports=kSr});var H7=l((sue,K7)=>{"use strict";var RSr=Hr(),VSr=Zr(),zSr=Xr(),BSr=Qr();function PSr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S;for(S=RSr(r.shape,r.strides),u=S.sh,p=S.sx,v=BSr(S.idx),t=VSr(r.dtype),m=r.offset,o=r.data,i=p[0],x=u[1];x>0;)for(x<t?(c=x,x=0):(c=t,x-=t),n=m+x*p[1],g=u[0];g>0;)for(g<t?(f=g,g=0):(f=t,g-=t),d=n+g*p[0],s=p[1]-f*p[0],h=0;h<c;h++){for(y=0;y<f;y++)e.call(a,o[d],zSr([h,y],v),r.ref),d+=i;d+=s}}K7.exports=PSr});var Q7=l((nue,Z7)=>{"use strict";var FSr=Hr(),LSr=Zr(),CSr=Xr(),USr=Qr();function MSr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E;for(E=FSr(r.shape,r.strides),c=E.sh,y=E.sx,f=USr(E.idx),t=LSr(r.dtype),h=r.offset,o=r.data,i=y[0],b=c[2];b>0;)for(b<t?(d=b,b=0):(d=t,b-=t),u=h+b*y[2],_=c[1];_>0;)for(_<t?(m=_,_=0):(m=t,_-=t),n=y[2]-m*y[1],v=u+_*y[1],A=c[0];A>0;)for(A<t?(p=A,A=0):(p=t,A-=t),g=v+A*y[0],s=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],CSr([w,S,x],f),r.ref),g+=i;g+=s}g+=n}}Z7.exports=MSr});var eN=l((vue,rN)=>{"use strict";var GSr=Hr(),$Sr=Zr(),YSr=Xr(),WSr=Qr();function JSr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O;for(O=GSr(r.shape,r.strides),m=O.sh,x=O.sx,p=WSr(O.idx),t=$Sr(r.dtype),S=r.offset,o=r.data,i=x[0],I=m[3];I>0;)for(I<t?(g=I,I=0):(g=t,I-=t),c=S+I*x[3],T=m[2];T>0;)for(T<t?(h=T,T=0):(h=t,T-=t),v=x[3]-h*x[2],f=c+T*x[2],j=m[1];j>0;)for(j<t?(y=j,j=0):(y=t,j-=t),n=x[2]-y*x[1],u=f+j*x[1],q=m[0];q>0;)for(q<t?(d=q,q=0):(d=t,q-=t),w=u+q*x[0],s=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],YSr([E,b,_,A],p),r.ref),w+=i;w+=s}w+=n}w+=v}}rN.exports=JSr});var tN=l((uue,aN)=>{"use strict";var XSr=Hr(),KSr=Zr(),HSr=Xr(),ZSr=Qr();function QSr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z;for(z=XSr(r.shape,r.strides),y=z.sh,A=z.sx,d=ZSr(z.idx),t=KSr(r.dtype),_=r.offset,o=r.data,i=A[0],V=y[4];V>0;)for(V<t?(w=V,V=0):(w=t,V-=t),m=_+V*A[4],N=y[3];N>0;)for(N<t?(S=N,N=0):(S=t,N-=t),u=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),v=A[3]-x*A[2],c=p+k*A[2],D=y[1];D>0;)for(D<t?(g=D,D=0):(g=t,D-=t),n=A[2]-g*A[1],f=c+D*A[1],O=y[0];O>0;)for(O<t?(h=O,O=0):(h=t,O-=t),b=f+O*A[0],s=A[1]-h*A[0],I=0;I<w;I++){for(T=0;T<S;T++){for(j=0;j<x;j++){for(q=0;q<g;q++){for(E=0;E<h;E++)e.call(a,o[b],HSr([I,T,j,q,E],d),r.ref),b+=i;b+=s}b+=n}b+=v}b+=u}}aN.exports=QSr});var oN=l((fue,iN)=>{"use strict";var rEr=Hr(),eEr=Zr(),aEr=Xr(),tEr=Qr();function iEr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L;for(L=rEr(r.shape,r.strides),g=L.sh,E=L.sx,h=tEr(L.idx),t=eEr(r.dtype),q=r.offset,o=r.data,i=E[0],F=g[5];F>0;)for(F<t?(b=F,F=0):(b=t,F-=t),y=q+F*E[5],P=g[4];P>0;)for(P<t?(_=P,P=0):(_=t,P-=t),f=E[5]-_*E[4],d=y+P*E[4],B=g[3];B>0;)for(B<t?(A=B,B=0):(A=t,B-=t),u=E[4]-A*E[3],m=d+B*E[3],R=g[2];R>0;)for(R<t?(w=R,R=0):(w=t,R-=t),v=E[3]-w*E[2],p=m+R*E[2],z=g[1];z>0;)for(z<t?(S=z,z=0):(S=t,z-=t),n=E[2]-S*E[1],c=p+z*E[1],V=g[0];V>0;)for(V<t?(x=V,V=0):(x=t,V-=t),j=c+V*E[0],s=E[1]-x*E[0],N=0;N<b;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<x;T++)e.call(a,o[j],aEr([N,k,D,O,I,T],h),r.ref),j+=i;j+=s}j+=n}j+=v}j+=u}j+=f}}iN.exports=iEr});var nN=l((lue,sN)=>{"use strict";var oEr=Hr(),sEr=Zr(),nEr=Xr(),vEr=Qr();function uEr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y;for(Y=oEr(r.shape,r.strides),S=Y.sh,T=Y.sx,x=vEr(Y.idx),t=sEr(r.dtype),I=r.offset,o=r.data,i=T[0],G=S[6];G>0;)for(G<t?(j=G,G=0):(j=t,G-=t),g=I+G*T[6],M=S[5];M>0;)for(M<t?(q=M,M=0):(q=t,M-=t),c=T[6]-q*T[5],h=g+M*T[5],U=S[4];U>0;)for(U<t?(E=U,U=0):(E=t,U-=t),f=T[5]-E*T[4],y=h+U*T[4],C=S[3];C>0;)for(C<t?(b=C,C=0):(b=t,C-=t),u=T[4]-b*T[3],d=y+C*T[3],L=S[2];L>0;)for(L<t?(_=L,L=0):(_=t,L-=t),v=T[3]-_*T[2],m=d+L*T[2],F=S[1];F>0;)for(F<t?(A=F,F=0):(A=t,F-=t),n=T[2]-A*T[1],p=m+F*T[1],P=S[0];P>0;)for(P<t?(w=P,P=0):(w=t,P-=t),O=p+P*T[0],s=T[1]-w*T[0],B=0;B<j;B++){for(R=0;R<q;R++){for(z=0;z<E;z++){for(V=0;V<b;V++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)e.call(a,o[O],nEr([B,R,z,V,N,k,D],x),r.ref),O+=i;O+=s}O+=n}O+=v}O+=u}O+=f}O+=c}}sN.exports=uEr});var uN=l((cue,vN)=>{"use strict";var fEr=Hr(),lEr=Zr(),cEr=Xr(),dEr=Qr();function pEr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K;for(K=fEr(r.shape,r.strides),A=K.sh,D=K.sx,w=dEr(K.idx),t=lEr(r.dtype),k=r.offset,o=r.data,i=D[0],X=A[7];X>0;)for(X<t?(O=X,X=0):(O=t,X-=t),S=k+X*D[7],J=A[6];J>0;)for(J<t?(I=J,J=0):(I=t,J-=t),p=D[7]-I*D[6],x=S+J*D[6],W=A[5];W>0;)for(W<t?(T=W,W=0):(T=t,W-=t),c=D[6]-T*D[5],g=x+W*D[5],$=A[4];$>0;)for($<t?(j=$,$=0):(j=t,$-=t),f=D[5]-j*D[4],h=g+$*D[4],Y=A[3];Y>0;)for(Y<t?(q=Y,Y=0):(q=t,Y-=t),u=D[4]-q*D[3],y=h+Y*D[3],G=A[2];G>0;)for(G<t?(E=G,G=0):(E=t,G-=t),v=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),n=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],s=D[1]-_*D[0],C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(z=0;z<b;z++){for(V=0;V<_;V++)e.call(a,o[N],cEr([C,L,F,P,B,R,z,V],w),r.ref),N+=i;N+=s}N+=n}N+=v}N+=u}N+=f}N+=c}N+=p}}vN.exports=pEr});var lN=l((due,fN)=>{"use strict";var yEr=Hr(),mEr=Zr(),hEr=Xr(),gEr=Qr();function bEr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar;for(ar=yEr(r.shape,r.strides),b=ar.sh,V=ar.sx,_=gEr(ar.idx),t=mEr(r.dtype),z=r.offset,o=r.data,i=V[0],rr=b[8];rr>0;)for(rr<t?(N=rr,rr=0):(N=t,rr-=t),A=z+rr*V[8],Z=b[7];Z>0;)for(Z<t?(k=Z,Z=0):(k=t,Z-=t),m=V[8]-k*V[7],w=A+Z*V[7],Q=b[6];Q>0;)for(Q<t?(D=Q,Q=0):(D=t,Q-=t),p=V[7]-D*V[6],S=w+Q*V[6],H=b[5];H>0;)for(H<t?(O=H,H=0):(O=t,H-=t),c=V[6]-O*V[5],x=S+H*V[5],K=b[4];K>0;)for(K<t?(I=K,K=0):(I=t,K-=t),f=V[5]-I*V[4],g=x+K*V[4],X=b[3];X>0;)for(X<t?(T=X,X=0):(T=t,X-=t),u=V[4]-T*V[3],h=g+X*V[3],J=b[2];J>0;)for(J<t?(j=J,J=0):(j=t,J-=t),v=V[3]-j*V[2],y=h+J*V[2],W=b[1];W>0;)for(W<t?(q=W,W=0):(q=t,W-=t),n=V[2]-q*V[1],d=y+W*V[1],$=b[0];$>0;)for($<t?(E=$,$=0):(E=t,$-=t),R=d+$*V[0],s=V[1]-E*V[0],Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(B=0;B<E;B++)e.call(a,o[R],hEr([Y,G,M,U,C,L,F,P,B],_),r.ref),R+=i;R+=s}R+=n}R+=v}R+=u}R+=f}R+=c}R+=p}R+=m}}fN.exports=bEr});var dN=l((pue,cN)=>{"use strict";var xEr=Hr(),qEr=Zr(),wEr=Xr(),SEr=Qr();function EEr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr;for(sr=xEr(r.shape,r.strides),q=sr.sh,B=sr.sx,E=SEr(sr.idx),t=qEr(r.dtype),P=r.offset,o=r.data,i=B[0],or=q[9];or>0;)for(or<t?(R=or,or=0):(R=t,or-=t),b=P+or*B[9],tr=q[8];tr>0;)for(tr<t?(z=tr,tr=0):(z=t,tr-=t),d=B[9]-z*B[8],_=b+tr*B[8],ir=q[7];ir>0;)for(ir<t?(V=ir,ir=0):(V=t,ir-=t),m=B[8]-V*B[7],A=_+ir*B[7],er=q[6];er>0;)for(er<t?(N=er,er=0):(N=t,er-=t),p=B[7]-N*B[6],w=A+er*B[6],ar=q[5];ar>0;)for(ar<t?(k=ar,ar=0):(k=t,ar-=t),c=B[6]-k*B[5],S=w+ar*B[5],rr=q[4];rr>0;)for(rr<t?(D=rr,rr=0):(D=t,rr-=t),f=B[5]-D*B[4],x=S+rr*B[4],Z=q[3];Z>0;)for(Z<t?(O=Z,Z=0):(O=t,Z-=t),u=B[4]-O*B[3],g=x+Z*B[3],Q=q[2];Q>0;)for(Q<t?(I=Q,Q=0):(I=t,Q-=t),v=B[3]-I*B[2],h=g+Q*B[2],H=q[1];H>0;)for(H<t?(T=H,H=0):(T=t,H-=t),n=B[2]-T*B[1],y=h+H*B[1],K=q[0];K>0;)for(K<t?(j=K,K=0):(j=t,K-=t),F=y+K*B[0],s=B[1]-j*B[0],X=0;X<R;X++){for(J=0;J<z;J++){for(W=0;W<V;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++)e.call(a,o[F],wEr([X,J,W,$,Y,G,M,U,C,L],E),r.ref),F+=i;F+=s}F+=n}F+=v}F+=u}F+=f}F+=c}F+=p}F+=m}F+=d}}cN.exports=EEr});var yN=l((yue,pN)=>{"use strict";function AEr(r,e,a){e.call(a,r.accessors[0](r.data,r.offset),[],r.ref)}pN.exports=AEr});var hN=l((mue,mN)=>{"use strict";function _Er(r,e,a){var t,o,i,s,n,v;for(s=r.shape[0],i=r.strides[0],n=r.offset,t=r.data,o=r.accessors[0],v=0;v<s;v++)e.call(a,o(t,n),[v],r.ref),n+=i}mN.exports=_Er});var bN=l((hue,gN)=>{"use strict";var jEr=qe(),TEr=Qr(),OEr=Xr();function IEr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d;for(v=r.shape,c=r.strides,n=jEr(v.length),r.order==="row-major"?(u=v[1],f=v[0],i=c[1],s=c[0]-u*c[1]):(u=v[0],f=v[1],i=c[0],s=c[1]-u*c[0],n=TEr(n)),p=r.offset,t=r.data,o=r.accessors[0],d=0;d<f;d++){for(m=0;m<u;m++)e.call(a,o(t,p),OEr([d,m],n),r.ref),p+=i;p+=s}}gN.exports=IEr});var qN=l((gue,xN)=>{"use strict";var NEr=qe(),DEr=Qr(),kEr=Xr();function REr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g;for(u=r.shape,m=r.strides,v=NEr(u.length),r.order==="row-major"?(f=u[2],c=u[1],p=u[0],i=m[2],s=m[1]-f*m[2],n=m[0]-c*m[1]):(f=u[0],c=u[1],p=u[2],i=m[0],s=m[1]-f*m[0],n=m[2]-c*m[1],v=DEr(v)),d=r.offset,t=r.data,o=r.accessors[0],g=0;g<p;g++){for(h=0;h<c;h++){for(y=0;y<f;y++)e.call(a,o(t,d),kEr([g,h,y],v),r.ref),d+=i;d+=s}d+=n}}xN.exports=REr});var SN=l((bue,wN)=>{"use strict";var VEr=qe(),zEr=Qr(),BEr=Xr();function PEr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w;for(f=r.shape,y=r.strides,u=VEr(f.length),r.order==="row-major"?(c=f[3],p=f[2],m=f[1],d=f[0],i=y[3],s=y[2]-c*y[3],n=y[1]-p*y[2],v=y[0]-m*y[1]):(c=f[0],p=f[1],m=f[2],d=f[3],i=y[0],s=y[1]-c*y[0],n=y[2]-p*y[1],v=y[3]-m*y[2],u=zEr(u)),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<c;g++)e.call(a,o(t,h),BEr([w,S,x,g],u),r.ref),h+=i;h+=s}h+=n}h+=v}}wN.exports=PEr});var AN=l((xue,EN)=>{"use strict";var FEr=qe(),LEr=Qr(),CEr=Xr();function UEr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b;for(c=r.shape,g=r.strides,f=FEr(c.length),r.order==="row-major"?(p=c[4],m=c[3],d=c[2],y=c[1],h=c[0],i=g[4],s=g[3]-p*g[4],n=g[2]-m*g[3],v=g[1]-d*g[2],u=g[0]-y*g[1]):(p=c[0],m=c[1],d=c[2],y=c[3],h=c[4],i=g[0],s=g[1]-p*g[0],n=g[2]-m*g[1],v=g[3]-d*g[2],u=g[4]-y*g[3],f=LEr(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),CEr([b,_,A,w,S],f),r.ref),x+=i;x+=s}x+=n}x+=v}x+=u}}EN.exports=UEr});var jN=l((que,_N)=>{"use strict";var MEr=qe(),GEr=Qr(),$Er=Xr();function YEr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j;for(p=r.shape,S=r.strides,c=MEr(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],s=S[4]-m*S[5],n=S[3]-d*S[4],v=S[2]-y*S[3],u=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],s=S[1]-m*S[0],n=S[2]-d*S[1],v=S[3]-y*S[2],u=S[4]-h*S[3],f=S[5]-g*S[4],c=GEr(c)),w=r.offset,t=r.data,o=r.accessors[0],j=0;j<x;j++){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),$Er([j,q,E,b,_,A],c),r.ref),w+=i;w+=s}w+=n}w+=v}w+=u}w+=f}}_N.exports=YEr});var ON=l((wue,TN)=>{"use strict";var WEr=qe(),JEr=Qr(),XEr=Xr();function KEr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O;for(m=r.shape,A=r.strides,p=WEr(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],s=A[5]-d*A[6],n=A[4]-y*A[5],v=A[3]-h*A[4],u=A[2]-g*A[3],f=A[1]-x*A[2],c=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],s=A[1]-d*A[0],n=A[2]-y*A[1],v=A[3]-h*A[2],u=A[4]-g*A[3],f=A[5]-x*A[4],c=A[6]-S*A[5],p=JEr(p)),_=r.offset,t=r.data,o=r.accessors[0],O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<x;T++){for(j=0;j<g;j++){for(q=0;q<h;q++){for(E=0;E<y;E++){for(b=0;b<d;b++)e.call(a,o(t,_),XEr([O,I,T,j,q,E,b],p),r.ref),_+=i;_+=s}_+=n}_+=v}_+=u}_+=f}_+=c}}TN.exports=KEr});var NN=l((Sue,IN)=>{"use strict";var HEr=qe(),ZEr=Qr(),QEr=Xr();function r5r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N;for(d=r.shape,b=r.strides,m=HEr(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],s=b[6]-y*b[7],n=b[5]-h*b[6],v=b[4]-g*b[5],u=b[3]-x*b[4],f=b[2]-S*b[3],c=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],s=b[1]-y*b[0],n=b[2]-h*b[1],v=b[3]-g*b[2],u=b[4]-x*b[3],f=b[5]-S*b[4],c=b[6]-w*b[5],p=b[7]-A*b[6],m=ZEr(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(O=0;O<S;O++){for(I=0;I<x;I++){for(T=0;T<g;T++){for(j=0;j<h;j++){for(q=0;q<y;q++)e.call(a,o(t,E),QEr([N,k,D,O,I,T,j,q],m),r.ref),E+=i;E+=s}E+=n}E+=v}E+=u}E+=f}E+=c}E+=p}}IN.exports=r5r});var kN=l((Eue,DN)=>{"use strict";var e5r=qe(),a5r=Qr(),t5r=Xr();function i5r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R;for(y=r.shape,q=r.strides,d=e5r(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],s=q[7]-h*q[8],n=q[6]-g*q[7],v=q[5]-x*q[6],u=q[4]-S*q[5],f=q[3]-w*q[4],c=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],s=q[1]-h*q[0],n=q[2]-g*q[1],v=q[3]-x*q[2],u=q[4]-S*q[3],f=q[5]-w*q[4],c=q[6]-A*q[5],p=q[7]-_*q[6],m=q[8]-b*q[7],d=a5r(d)),j=r.offset,t=r.data,o=r.accessors[0],R=0;R<E;R++){for(z=0;z<b;z++){for(V=0;V<_;V++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(O=0;O<x;O++){for(I=0;I<g;I++){for(T=0;T<h;T++)e.call(a,o(t,j),t5r([R,z,V,N,k,D,O,I,T],d),r.ref),j+=i;j+=s}j+=n}j+=v}j+=u}j+=f}j+=c}j+=p}j+=m}}DN.exports=i5r});var VN=l((Aue,RN)=>{"use strict";var o5r=qe(),s5r=Qr(),n5r=Xr();function v5r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F;for(h=r.shape,T=r.strides,y=o5r(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],j=h[0],i=T[9],s=T[8]-g*T[9],n=T[7]-x*T[8],v=T[6]-S*T[7],u=T[5]-w*T[6],f=T[4]-A*T[5],c=T[3]-_*T[4],p=T[2]-b*T[3],m=T[1]-E*T[2],d=T[0]-q*T[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],j=h[9],i=T[0],s=T[1]-g*T[0],n=T[2]-x*T[1],v=T[3]-S*T[2],u=T[4]-w*T[3],f=T[5]-A*T[4],c=T[6]-_*T[5],p=T[7]-b*T[6],m=T[8]-E*T[7],d=T[9]-q*T[8],y=s5r(y)),I=r.offset,t=r.data,o=r.accessors[0],F=0;F<j;F++){for(P=0;P<q;P++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(z=0;z<_;z++){for(V=0;V<A;V++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<x;D++){for(O=0;O<g;O++)e.call(a,o(t,I),n5r([F,P,B,R,z,V,N,k,D,O],y),r.ref),I+=i;I+=s}I+=n}I+=v}I+=u}I+=f}I+=c}I+=p}I+=m}I+=d}}RN.exports=v5r});var xf=l((_ue,zN)=>{"use strict";var u5r=cr(),Ls=rf();function f5r(r,e,a,t,o,i,s){var n,v,u,f,c;for(n=r.length,v=1,c=0;c<n;c++)v*=r[c];if(i==="clamp")o<0?o=0:o>=v&&(o=v-1);else if(i==="wrap")o<0?(o+=v,o<0&&(o%=v,o!==0&&(o+=v))):o>=v&&(o-=v,o>=v&&(o%=v));else if(i==="normalize"&&o<0&&(o+=v),o<0||o>=v)throw new RangeError(u5r("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",v,o));if(a===0){if(t==="column-major"){for(c=0;c<n;c++)f=o%r[c],o-=f,o/=r[c],s[c]=f;return s}for(c=n-1;c>=0;c--)f=o%r[c],o-=f,o/=r[c],s[c]=f;return s}if(t==="column-major"){for(c=n-1;c>=0;c--)f=e[c],f<0?(u=Ls(o/f),o-=u*f,s[c]=r[c]-1+u):(u=Ls(o/f),o-=u*f,s[c]=u);return s}for(c=0;c<n;c++)f=e[c],f<0?(u=Ls(o/f),o-=u*f,s[c]=r[c]-1+u):(u=Ls(o/f),o-=u*f,s[c]=u);return s}zN.exports=f5r});var PN=l((jue,BN)=>{"use strict";var l5r=xe(),c5r=xf();function d5r(r,e,a,t,o,i){return c5r(r,e,a,t,o,i,l5r(r.length))}BN.exports=d5r});var Si=l((Tue,LN)=>{"use strict";var p5r=Tr(),FN=PN(),y5r=xf();p5r(FN,"assign",y5r);LN.exports=FN});var MN=l((Oue,UN)=>{"use strict";var m5r=Wr(),h5r=ia(),g5r=Si(),CN="throw";function b5r(r,e,a){var t,o,i,s,n,v,u,f,c,p;for(v=r.shape,i=m5r(v),t=r.data,u=r.strides,f=r.offset,o=r.order,s=r.accessors[0],p=0;p<i;p++)c=h5r(v,u,f,o,p,CN),n=g5r(v,u,0,o,p,CN),e.call(a,s(t,c),n,r.ref)}UN.exports=b5r});var $N=l((Iue,GN)=>{"use strict";function x5r(r,e,a){e.call(a,r.data[r.offset],[],r.ref)}GN.exports=x5r});var WN=l((Nue,YN)=>{"use strict";function q5r(r,e,a){var t,o,i,s,n;for(i=r.shape[0],o=r.strides[0],s=r.offset,t=r.data,n=0;n<i;n++)e.call(a,t[s],[n],r.ref),s+=o}YN.exports=q5r});var XN=l((Due,JN)=>{"use strict";var w5r=qe(),S5r=Qr(),E5r=Xr();function A5r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m;for(n=r.shape,f=r.strides,s=w5r(n.length),r.order==="row-major"?(v=n[1],u=n[0],o=f[1],i=f[0]-v*f[1]):(v=n[0],u=n[1],o=f[0],i=f[1]-v*f[0],s=S5r(s)),c=r.offset,t=r.data,m=0;m<u;m++){for(p=0;p<v;p++)e.call(a,t[c],E5r([m,p],s),r.ref),c+=o;c+=i}}JN.exports=A5r});var HN=l((kue,KN)=>{"use strict";var _5r=qe(),j5r=Qr(),T5r=Xr();function O5r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h;for(v=r.shape,p=r.strides,n=_5r(v.length),r.order==="row-major"?(u=v[2],f=v[1],c=v[0],o=p[2],i=p[1]-u*p[2],s=p[0]-f*p[1]):(u=v[0],f=v[1],c=v[2],o=p[0],i=p[1]-u*p[0],s=p[2]-f*p[1],n=j5r(n)),m=r.offset,t=r.data,h=0;h<c;h++){for(y=0;y<f;y++){for(d=0;d<u;d++)e.call(a,t[m],T5r([h,y,d],n),r.ref),m+=o;m+=i}m+=s}}KN.exports=O5r});var QN=l((Rue,ZN)=>{"use strict";var I5r=qe(),N5r=Qr(),D5r=Xr();function k5r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S;for(u=r.shape,d=r.strides,v=I5r(u.length),r.order==="row-major"?(f=u[3],c=u[2],p=u[1],m=u[0],o=d[3],i=d[2]-f*d[3],s=d[1]-c*d[2],n=d[0]-p*d[1]):(f=u[0],c=u[1],p=u[2],m=u[3],o=d[0],i=d[1]-f*d[0],s=d[2]-c*d[1],n=d[3]-p*d[2],v=N5r(v)),y=r.offset,t=r.data,S=0;S<m;S++){for(x=0;x<p;x++){for(g=0;g<c;g++){for(h=0;h<f;h++)e.call(a,t[y],D5r([S,x,g,h],v),r.ref),y+=o;y+=i}y+=s}y+=n}}ZN.exports=k5r});var eD=l((Vue,rD)=>{"use strict";var R5r=qe(),V5r=Qr(),z5r=Xr();function B5r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_;for(f=r.shape,h=r.strides,u=R5r(f.length),r.order==="row-major"?(c=f[4],p=f[3],m=f[2],d=f[1],y=f[0],o=h[4],i=h[3]-c*h[4],s=h[2]-p*h[3],n=h[1]-m*h[2],v=h[0]-d*h[1]):(c=f[0],p=f[1],m=f[2],d=f[3],y=f[4],o=h[0],i=h[1]-c*h[0],s=h[2]-p*h[1],n=h[3]-m*h[2],v=h[4]-d*h[3],u=V5r(u)),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<c;x++)e.call(a,t[g],z5r([_,A,w,S,x],u),r.ref),g+=o;g+=i}g+=s}g+=n}g+=v}}rD.exports=B5r});var tD=l((zue,aD)=>{"use strict";var P5r=qe(),F5r=Qr(),L5r=Xr();function C5r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q;for(c=r.shape,x=r.strides,f=P5r(c.length),r.order==="row-major"?(p=c[5],m=c[4],d=c[3],y=c[2],h=c[1],g=c[0],o=x[5],i=x[4]-p*x[5],s=x[3]-m*x[4],n=x[2]-d*x[3],v=x[1]-y*x[2],u=x[0]-h*x[1]):(p=c[0],m=c[1],d=c[2],y=c[3],h=c[4],g=c[5],o=x[0],i=x[1]-p*x[0],s=x[2]-m*x[1],n=x[3]-d*x[2],v=x[4]-y*x[3],u=x[5]-h*x[4],f=F5r(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],L5r([q,E,b,_,A,w],f),r.ref),S+=o;S+=i}S+=s}S+=n}S+=v}S+=u}}aD.exports=C5r});var oD=l((Bue,iD)=>{"use strict";var U5r=qe(),M5r=Qr(),G5r=Xr();function $5r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I;for(p=r.shape,w=r.strides,c=U5r(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],s=w[4]-d*w[5],n=w[3]-y*w[4],v=w[2]-h*w[3],u=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],s=w[2]-d*w[1],n=w[3]-y*w[2],v=w[4]-h*w[3],u=w[5]-g*w[4],f=w[6]-x*w[5],c=M5r(c)),A=r.offset,t=r.data,I=0;I<S;I++){for(T=0;T<x;T++){for(j=0;j<g;j++){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],G5r([I,T,j,q,E,b,_],c),r.ref),A+=o;A+=i}A+=s}A+=n}A+=v}A+=u}A+=f}}iD.exports=$5r});var nD=l((Pue,sD)=>{"use strict";var Y5r=qe(),W5r=Qr(),J5r=Xr();function X5r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k;for(m=r.shape,_=r.strides,p=Y5r(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],s=_[5]-y*_[6],n=_[4]-h*_[5],v=_[3]-g*_[4],u=_[2]-x*_[3],f=_[1]-S*_[2],c=_[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],s=_[2]-y*_[1],n=_[3]-h*_[2],v=_[4]-g*_[3],u=_[5]-x*_[4],f=_[6]-S*_[5],c=_[7]-w*_[6],p=W5r(p)),b=r.offset,t=r.data,k=0;k<A;k++){for(D=0;D<w;D++){for(O=0;O<S;O++){for(I=0;I<x;I++){for(T=0;T<g;T++){for(j=0;j<h;j++){for(q=0;q<y;q++){for(E=0;E<d;E++)e.call(a,t[b],J5r([k,D,O,I,T,j,q,E],p),r.ref),b+=o;b+=i}b+=s}b+=n}b+=v}b+=u}b+=f}b+=c}}sD.exports=X5r});var uD=l((Fue,vD)=>{"use strict";var K5r=qe(),H5r=Qr(),Z5r=Xr();function Q5r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z;for(d=r.shape,E=r.strides,m=K5r(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],s=E[6]-h*E[7],n=E[5]-g*E[6],v=E[4]-x*E[5],u=E[3]-S*E[4],f=E[2]-w*E[3],c=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],s=E[2]-h*E[1],n=E[3]-g*E[2],v=E[4]-x*E[3],u=E[5]-S*E[4],f=E[6]-w*E[5],c=E[7]-A*E[6],p=E[8]-_*E[7],m=H5r(m)),q=r.offset,t=r.data,z=0;z<b;z++){for(V=0;V<_;V++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(O=0;O<x;O++){for(I=0;I<g;I++){for(T=0;T<h;T++){for(j=0;j<y;j++)e.call(a,t[q],Z5r([z,V,N,k,D,O,I,T,j],m),r.ref),q+=o;q+=i}q+=s}q+=n}q+=v}q+=u}q+=f}q+=c}q+=p}}vD.exports=Q5r});var lD=l((Lue,fD)=>{"use strict";var rAr=qe(),eAr=Qr(),aAr=Xr();function tAr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P;for(y=r.shape,j=r.strides,d=rAr(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=j[9],i=j[8]-h*j[9],s=j[7]-g*j[8],n=j[6]-x*j[7],v=j[5]-S*j[6],u=j[4]-w*j[5],f=j[3]-A*j[4],c=j[2]-_*j[3],p=j[1]-b*j[2],m=j[0]-E*j[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=j[0],i=j[1]-h*j[0],s=j[2]-g*j[1],n=j[3]-x*j[2],v=j[4]-S*j[3],u=j[5]-w*j[4],f=j[6]-A*j[5],c=j[7]-_*j[6],p=j[8]-b*j[7],m=j[9]-E*j[8],d=eAr(d)),T=r.offset,t=r.data,P=0;P<q;P++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(z=0;z<_;z++){for(V=0;V<A;V++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<x;D++){for(O=0;O<g;O++){for(I=0;I<h;I++)e.call(a,t[T],aAr([P,B,R,z,V,N,k,D,O,I],d),r.ref),T+=o;T+=i}T+=s}T+=n}T+=v}T+=u}T+=f}T+=c}T+=p}T+=m}}fD.exports=tAr});var pD=l((Cue,dD)=>{"use strict";var iAr=Wr(),oAr=ia(),sAr=Si(),cD="throw";function nAr(r,e,a){var t,o,i,s,n,v,u,f,c;for(n=r.shape,i=iAr(n),t=r.data,v=r.strides,u=r.offset,o=r.order,c=0;c<i;c++)f=oAr(n,v,u,o,c,cD),s=sAr(n,v,0,o,c,cD),e.call(a,t[f],s,r.ref)}dD.exports=nAr});var gD=l((Uue,hD)=>{"use strict";var vAr=ba(),uAr=Yt(),fAr=Wr(),lAr=k7(),cAr=V7(),dAr=B7(),pAr=F7(),yAr=C7(),mAr=M7(),hAr=$7(),gAr=W7(),bAr=X7(),xAr=H7(),qAr=Q7(),wAr=eN(),SAr=tN(),EAr=oN(),AAr=nN(),_Ar=uN(),jAr=lN(),TAr=dN(),OAr=yN(),IAr=hN(),NAr=bN(),DAr=qN(),kAr=SN(),RAr=AN(),VAr=jN(),zAr=ON(),BAr=NN(),PAr=kN(),FAr=VN(),LAr=MN(),CAr=$N(),UAr=WN(),MAr=XN(),GAr=HN(),$Ar=QN(),YAr=eD(),WAr=tD(),JAr=oD(),XAr=nD(),KAr=uD(),HAr=lD(),ZAr=pD(),qf=[CAr,UAr,MAr,GAr,$Ar,YAr,WAr,JAr,XAr,KAr,HAr],yD=[OAr,IAr,NAr,DAr,kAr,RAr,VAr,zAr,BAr,PAr,FAr],QAr=[xAr,qAr,wAr,SAr,EAr,AAr,_Ar,jAr,TAr],r_r=[lAr,cAr,dAr,pAr,yAr,mAr,hAr,gAr,bAr],mD=qf.length-1;function e_r(r,e,a){var t,o,i;if(i=uAr(r[0]),o=i.shape,t=o.length,t===0)return i.accessorProtocol?yD[t](i,e,a):qf[t](i,e,a);if(fAr(o)!==0){if(t<=mD&&vAr(i.strides)!==0)return i.accessorProtocol?yD[t](i,e,a):qf[t](i,e,a);if(t<=mD)return i.accessorProtocol?r_r[t-2](i,e,a):QAr[t-2](i,e,a);if(i.accessorProtocol)return LAr(i,e,a);ZAr(i,e,a)}}hD.exports=e_r});var xD=l((Mue,bD)=>{"use strict";var a_r=gD();bD.exports=a_r});var wD=l((Gue,qD)=>{"use strict";var t_r=rt(),i_r=hi(),o_r=mi(),s_r=Ia(),n_r=ra(),v_r=cr();function u_r(r,e,a){var t,o;if(t=s_r(e,1),t===null)throw new TypeError(v_r("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return/^complex/.test(e)&&typeof r=="number"&&(r=[r,0]),t_r(t)?o=i_r(e):o=o_r(e),o(t,0,r),new n_r(e,t,[],[0],0,a)}qD.exports=u_r});var ED=l(($ue,SD)=>{"use strict";var f_r=wD();SD.exports=f_r});var _D=l((Yue,AD)=>{"use strict";function l_r(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}AD.exports=l_r});var TD=l((Wue,jD)=>{"use strict";var c_r=_D();jD.exports=c_r});var ND=l((Jue,ID)=>{"use strict";var OD=mo(),d_r=_e();function p_r(r,e){var a,t,o;if(t=e.length,a=d_r(r,!1),a.length===t){for(o=0;o<t;o++)if(a[o]!==e[o])return OD(r,e);return r}return OD(r,e)}ID.exports=p_r});var wf=l((Xue,DD)=>{"use strict";var y_r=ND();DD.exports=y_r});var RD=l((Kue,kD)=>{"use strict";var m_r=bi(),h_r=wf(),g_r=_e();function b_r(r){var e,a,t,o,i;for(o=r.length,e=[],i=0;i<o;i++)e.push(g_r(r[i],!1));if(t=m_r(e),t===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(a=[],i=0;i<o;i++)a.push(h_r(r[i],t));return a}kD.exports=b_r});var zD=l((Hue,VD)=>{"use strict";var x_r=RD();VD.exports=x_r});var PD=l((Zue,BD)=>{"use strict";var Sf=Tr(),q_r=yt(),w_r=vf();function S_r(r,e,a){return Sf(a,"nargs",r.nargs),Sf(a,"nin",r.nin),Sf(a,"nout",r.nout),q_r(a,"types",t),a;function t(){return w_r(e,r.nin,r.nout)}}BD.exports=S_r});var LD=l((Que,FD)=>{"use strict";var E_r=PD();FD.exports=E_r});var UD=l((rfe,CD)=>{"use strict";function A_r(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}CD.exports=A_r});var GD=l((efe,MD)=>{"use strict";var __r=UD();MD.exports=__r});var YD=l((afe,$D)=>{"use strict";var j_r=Na(),T_r=ie(),O_r=Ma(),I_r=bt(),N_r=Ga(),D_r=ot(),k_r=ra(),R_r=Ta(),V_r=R_r("order");function z_r(r){return new k_r(j_r(r),D_r(r),T_r(r),O_r(r),I_r(r),N_r(r)||V_r)}$D.exports=z_r});var JD=l((tfe,WD)=>{"use strict";var B_r=YD();WD.exports=B_r});var Ef=l((ife,XD)=>{"use strict";var P_r="row-major";function F_r(r,e,a,t,o){var i,s;for(i=r-1;i>t;i--)o[i]=a[i];for(i=t;i>=0&&(s=(a[i]+1)%e[i],o[i]=s,!(s>0));i--);for(i-=1;i>=0;i--)o[i]=a[i];return o}function L_r(r,e,a,t,o){var i,s;for(i=0;i<t;i++)o[i]=a[i];for(i=t;i<r&&(s=(a[i]+1)%e[i],o[i]=s,!(s>0));i++);for(i+=1;i<r;i++)o[i]=a[i];return o}function C_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===P_r?F_r(i,r,a,t,o):L_r(i,r,a,t,o)}XD.exports=C_r});var HD=l((ofe,KD)=>{"use strict";var U_r=xe(),M_r=Ef();function G_r(r,e,a,t){return M_r(r,e,a,t,U_r(r.length))}KD.exports=G_r});var Je=l((sfe,QD)=>{"use strict";var $_r=Tr(),ZD=HD(),Y_r=Ef();$_r(ZD,"assign",Y_r);QD.exports=ZD});var ek=l((nfe,rk)=>{"use strict";function W_r(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]!==1&&(e+=1);return e}rk.exports=W_r});var tk=l((vfe,ak)=>{"use strict";var J_r=ek();ak.exports=J_r});var ok=l((ufe,ik)=>{"use strict";var X_r=Hr(),K_r=Zr();function H_r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x;for(x=X_r(r.shape,r.strides),v=x.sh,c=x.sx,a=K_r(r.dtype),p=r.offset,t=r.data,i=c[0],o=r.accessors[1],g=v[1];g>0;)for(g<a?(f=g,g=0):(f=a,g-=a),n=p+g*c[1],h=v[0];h>0;)for(h<a?(u=h,h=0):(u=a,h-=a),m=n+h*c[0],s=c[1]-u*c[0],y=0;y<f;y++){for(d=0;d<u;d++)o(t,m,e()),m+=i;m+=s}}ik.exports=H_r});var nk=l((ffe,sk)=>{"use strict";var Z_r=Hr(),Q_r=Zr();function r8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b;for(b=Z_r(r.shape,r.strides),f=b.sh,d=b.sx,a=Q_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),u=y+_*d[2],A=f[1];A>0;)for(A<a?(p=A,A=0):(p=a,A-=a),n=d[2]-p*d[1],v=u+A*d[1],w=f[0];w>0;)for(w<a?(c=w,w=0):(c=a,w-=a),h=v+w*d[0],s=d[1]-c*d[0],S=0;S<m;S++){for(x=0;x<p;x++){for(g=0;g<c;g++)o(t,h,e()),h+=i;h+=s}h+=n}}sk.exports=r8r});var uk=l((lfe,vk)=>{"use strict";var e8r=Hr(),a8r=Zr();function t8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I;for(I=e8r(r.shape,r.strides),p=I.sh,g=I.sx,a=a8r(r.dtype),x=r.offset,t=r.data,i=g[0],o=r.accessors[1],T=p[3];T>0;)for(T<a?(h=T,T=0):(h=a,T-=a),c=x+T*g[3],j=p[2];j>0;)for(j<a?(y=j,j=0):(y=a,j-=a),v=g[3]-y*g[2],f=c+j*g[2],q=p[1];q>0;)for(q<a?(d=q,q=0):(d=a,q-=a),n=g[2]-d*g[1],u=f+q*g[1],E=p[0];E>0;)for(E<a?(m=E,E=0):(m=a,E-=a),S=u+E*g[0],s=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+=s}S+=n}S+=v}}vk.exports=t8r});var lk=l((cfe,fk)=>{"use strict";var i8r=Hr(),o8r=Zr();function s8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V;for(V=i8r(r.shape,r.strides),d=V.sh,w=V.sx,a=o8r(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),u=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),v=w[3]-g*w[2],c=p+D*w[2],O=d[1];O>0;)for(O<a?(h=O,O=0):(h=a,O-=a),n=w[2]-h*w[1],f=c+O*w[1],I=d[0];I>0;)for(I<a?(y=I,I=0):(y=a,I-=a),_=f+I*w[0],s=w[1]-y*w[0],T=0;T<S;T++){for(j=0;j<x;j++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(b=0;b<y;b++)o(t,_,e()),_+=i;_+=s}_+=n}_+=v}_+=u}}fk.exports=s8r});var dk=l((dfe,ck)=>{"use strict";var n8r=Hr(),v8r=Zr();function u8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F;for(F=n8r(r.shape,r.strides),h=F.sh,b=F.sx,a=v8r(r.dtype),E=r.offset,t=r.data,i=b[0],o=r.accessors[1],P=h[5];P>0;)for(P<a?(_=P,P=0):(_=a,P-=a),y=E+P*b[5],B=h[4];B>0;)for(B<a?(A=B,B=0):(A=a,B-=a),f=b[5]-A*b[4],d=y+B*b[4],R=h[3];R>0;)for(R<a?(w=R,R=0):(w=a,R-=a),u=b[4]-w*b[3],m=d+R*b[3],z=h[2];z>0;)for(z<a?(S=z,z=0):(S=a,z-=a),v=b[3]-S*b[2],p=m+z*b[2],V=h[1];V>0;)for(V<a?(x=V,V=0):(x=a,V-=a),n=b[2]-x*b[1],c=p+V*b[1],N=h[0];N>0;)for(N<a?(g=N,N=0):(g=a,N-=a),q=c+N*b[0],s=b[1]-g*b[0],k=0;k<_;k++){for(D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<x;T++){for(j=0;j<g;j++)o(t,q,e()),q+=i;q+=s}q+=n}q+=v}q+=u}q+=f}}ck.exports=u8r});var yk=l((pfe,pk)=>{"use strict";var f8r=Hr(),l8r=Zr();function c8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G;for(G=f8r(r.shape,r.strides),x=G.sh,j=G.sx,a=l8r(r.dtype),T=r.offset,t=r.data,i=j[0],o=r.accessors[1],M=x[6];M>0;)for(M<a?(q=M,M=0):(q=a,M-=a),g=T+M*j[6],U=x[5];U>0;)for(U<a?(E=U,U=0):(E=a,U-=a),c=j[6]-E*j[5],h=g+U*j[5],C=x[4];C>0;)for(C<a?(b=C,C=0):(b=a,C-=a),f=j[5]-b*j[4],y=h+C*j[4],L=x[3];L>0;)for(L<a?(_=L,L=0):(_=a,L-=a),u=j[4]-_*j[3],d=y+L*j[3],F=x[2];F>0;)for(F<a?(A=F,F=0):(A=a,F-=a),v=j[3]-A*j[2],m=d+F*j[2],P=x[1];P>0;)for(P<a?(w=P,P=0):(w=a,P-=a),n=j[2]-w*j[1],p=m+P*j[1],B=x[0];B>0;)for(B<a?(S=B,B=0):(S=a,B-=a),I=p+B*j[0],s=j[1]-S*j[0],R=0;R<q;R++){for(z=0;z<E;z++){for(V=0;V<b;V++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(O=0;O<S;O++)o(t,I,e()),I+=i;I+=s}I+=n}I+=v}I+=u}I+=f}I+=c}}pk.exports=c8r});var hk=l((yfe,mk)=>{"use strict";var d8r=Hr(),p8r=Zr();function y8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X;for(X=d8r(r.shape,r.strides),w=X.sh,O=X.sx,a=p8r(r.dtype),D=r.offset,t=r.data,i=O[0],o=r.accessors[1],J=w[7];J>0;)for(J<a?(I=J,J=0):(I=a,J-=a),S=D+J*O[7],W=w[6];W>0;)for(W<a?(T=W,W=0):(T=a,W-=a),p=O[7]-T*O[6],x=S+W*O[6],$=w[5];$>0;)for($<a?(j=$,$=0):(j=a,$-=a),c=O[6]-j*O[5],g=x+$*O[5],Y=w[4];Y>0;)for(Y<a?(q=Y,Y=0):(q=a,Y-=a),f=O[5]-q*O[4],h=g+Y*O[4],G=w[3];G>0;)for(G<a?(E=G,G=0):(E=a,G-=a),u=O[4]-E*O[3],y=h+G*O[3],M=w[2];M>0;)for(M<a?(b=M,M=0):(b=a,M-=a),v=O[3]-b*O[2],d=y+M*O[2],U=w[1];U>0;)for(U<a?(_=U,U=0):(_=a,U-=a),n=O[2]-_*O[1],m=d+U*O[1],C=w[0];C>0;)for(C<a?(A=C,C=0):(A=a,C-=a),k=m+C*O[0],s=O[1]-A*O[0],L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(z=0;z<b;z++){for(V=0;V<_;V++){for(N=0;N<A;N++)o(t,k,e()),k+=i;k+=s}k+=n}k+=v}k+=u}k+=f}k+=c}k+=p}}mk.exports=y8r});var bk=l((mfe,gk)=>{"use strict";var m8r=Hr(),h8r=Zr();function g8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr;for(rr=m8r(r.shape,r.strides),_=rr.sh,N=rr.sx,a=h8r(r.dtype),V=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=V+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?(O=H,H=0):(O=a,H-=a),p=N[7]-O*N[6],S=w+H*N[6],K=_[5];K>0;)for(K<a?(I=K,K=0):(I=a,K-=a),c=N[6]-I*N[5],x=S+K*N[5],X=_[4];X>0;)for(X<a?(T=X,X=0):(T=a,X-=a),f=N[5]-T*N[4],g=x+X*N[4],J=_[3];J>0;)for(J<a?(j=J,J=0):(j=a,J-=a),u=N[4]-j*N[3],h=g+J*N[3],W=_[2];W>0;)for(W<a?(q=W,W=0):(q=a,W-=a),v=N[3]-q*N[2],y=h+W*N[2],$=_[1];$>0;)for($<a?(E=$,$=0):(E=a,$-=a),n=N[2]-E*N[1],d=y+$*N[1],Y=_[0];Y>0;)for(Y<a?(b=Y,Y=0):(b=a,Y-=a),z=d+Y*N[0],s=N[1]-b*N[0],G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(B=0;B<E;B++){for(R=0;R<b;R++)o(t,z,e()),z+=i;z+=s}z+=n}z+=v}z+=u}z+=f}z+=c}z+=p}z+=m}}gk.exports=g8r});var qk=l((hfe,xk)=>{"use strict";var b8r=Hr(),x8r=Zr();function q8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or;for(or=b8r(r.shape,r.strides),E=or.sh,R=or.sx,a=x8r(r.dtype),B=r.offset,t=r.data,i=R[0],o=r.accessors[1],tr=E[9];tr>0;)for(tr<a?(z=tr,tr=0):(z=a,tr-=a),b=B+tr*R[9],ir=E[8];ir>0;)for(ir<a?(V=ir,ir=0):(V=a,ir-=a),d=R[9]-V*R[8],_=b+ir*R[8],er=E[7];er>0;)for(er<a?(N=er,er=0):(N=a,er-=a),m=R[8]-N*R[7],A=_+er*R[7],ar=E[6];ar>0;)for(ar<a?(k=ar,ar=0):(k=a,ar-=a),p=R[7]-k*R[6],w=A+ar*R[6],rr=E[5];rr>0;)for(rr<a?(D=rr,rr=0):(D=a,rr-=a),c=R[6]-D*R[5],S=w+rr*R[5],Z=E[4];Z>0;)for(Z<a?(O=Z,Z=0):(O=a,Z-=a),f=R[5]-O*R[4],x=S+Z*R[4],Q=E[3];Q>0;)for(Q<a?(I=Q,Q=0):(I=a,Q-=a),u=R[4]-I*R[3],g=x+Q*R[3],H=E[2];H>0;)for(H<a?(T=H,H=0):(T=a,H-=a),v=R[3]-T*R[2],h=g+H*R[2],K=E[1];K>0;)for(K<a?(j=K,K=0):(j=a,K-=a),n=R[2]-j*R[1],y=h+K*R[1],X=E[0];X>0;)for(X<a?(q=X,X=0):(q=a,X-=a),P=y+X*R[0],s=R[1]-q*R[0],J=0;J<z;J++){for(W=0;W<V;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++){for(F=0;F<q;F++)o(t,P,e()),P+=i;P+=s}P+=n}P+=v}P+=u}P+=f}P+=c}P+=p}P+=m}P+=d}}xk.exports=q8r});var Sk=l((gfe,wk)=>{"use strict";var w8r=Hr(),S8r=Zr();function E8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g;for(g=w8r(r.shape,r.strides),n=g.sh,f=g.sx,a=S8r(r.dtype),c=r.offset,t=r.data,o=f[0],h=n[1];h>0;)for(h<a?(u=h,h=0):(u=a,h-=a),s=c+h*f[1],y=n[0];y>0;)for(y<a?(v=y,y=0):(v=a,y-=a),p=s+y*f[0],i=f[1]-v*f[0],d=0;d<u;d++){for(m=0;m<v;m++)t[p]=e(),p+=o;p+=i}}wk.exports=E8r});var Ak=l((bfe,Ek)=>{"use strict";var A8r=Hr(),_8r=Zr();function j8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_;for(_=A8r(r.shape,r.strides),u=_.sh,m=_.sx,a=_8r(r.dtype),d=r.offset,t=r.data,o=m[0],A=u[2];A>0;)for(A<a?(p=A,A=0):(p=a,A-=a),v=d+A*m[2],w=u[1];w>0;)for(w<a?(c=w,w=0):(c=a,w-=a),s=m[2]-c*m[1],n=v+w*m[1],S=u[0];S>0;)for(S<a?(f=S,S=0):(f=a,S-=a),y=n+S*m[0],i=m[1]-f*m[0],x=0;x<p;x++){for(g=0;g<c;g++){for(h=0;h<f;h++)t[y]=e(),y+=o;y+=i}y+=s}}Ek.exports=j8r});var jk=l((xfe,_k)=>{"use strict";var T8r=Hr(),O8r=Zr();function I8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T;for(T=T8r(r.shape,r.strides),c=T.sh,h=T.sx,a=O8r(r.dtype),g=r.offset,t=r.data,o=h[0],j=c[3];j>0;)for(j<a?(y=j,j=0):(y=a,j-=a),f=g+j*h[3],q=c[2];q>0;)for(q<a?(d=q,q=0):(d=a,q-=a),n=h[3]-d*h[2],u=f+q*h[2],E=c[1];E>0;)for(E<a?(m=E,E=0):(m=a,E-=a),s=h[2]-m*h[1],v=u+E*h[1],b=c[0];b>0;)for(b<a?(p=b,b=0):(p=a,b-=a),x=v+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+=s}x+=n}}_k.exports=I8r});var Ok=l((qfe,Tk)=>{"use strict";var N8r=Hr(),D8r=Zr();function k8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N;for(N=N8r(r.shape,r.strides),m=N.sh,S=N.sx,a=D8r(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),v=S[4]-g*S[3],c=p+D*S[3],O=m[2];O>0;)for(O<a?(h=O,O=0):(h=a,O-=a),n=S[3]-h*S[2],f=c+O*S[2],I=m[1];I>0;)for(I<a?(y=I,I=0):(y=a,I-=a),s=S[2]-y*S[1],u=f+I*S[1],T=m[0];T>0;)for(T<a?(d=T,T=0):(d=a,T-=a),A=u+T*S[0],i=S[1]-d*S[0],j=0;j<x;j++){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+=s}A+=n}A+=v}}Tk.exports=k8r});var Nk=l((wfe,Ik)=>{"use strict";var R8r=Hr(),V8r=Zr();function z8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P;for(P=R8r(r.shape,r.strides),y=P.sh,_=P.sx,a=V8r(r.dtype),b=r.offset,t=r.data,o=_[0],B=y[5];B>0;)for(B<a?(A=B,B=0):(A=a,B-=a),d=b+B*_[5],R=y[4];R>0;)for(R<a?(w=R,R=0):(w=a,R-=a),u=_[5]-w*_[4],m=d+R*_[4],z=y[3];z>0;)for(z<a?(S=z,z=0):(S=a,z-=a),v=_[4]-S*_[3],p=m+z*_[3],V=y[2];V>0;)for(V<a?(x=V,V=0):(x=a,V-=a),n=_[3]-x*_[2],c=p+V*_[2],N=y[1];N>0;)for(N<a?(g=N,N=0):(g=a,N-=a),s=_[2]-g*_[1],f=c+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(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<x;T++){for(j=0;j<g;j++){for(q=0;q<h;q++)t[E]=e(),E+=o;E+=i}E+=s}E+=n}E+=v}E+=u}}Ik.exports=z8r});var kk=l((Sfe,Dk)=>{"use strict";var B8r=Hr(),P8r=Zr();function F8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M;for(M=B8r(r.shape,r.strides),g=M.sh,q=M.sx,a=P8r(r.dtype),j=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=j+U*q[6],C=g[5];C>0;)for(C<a?(b=C,C=0):(b=a,C-=a),f=q[6]-b*q[5],y=h+C*q[5],L=g[4];L>0;)for(L<a?(_=L,L=0):(_=a,L-=a),u=q[5]-_*q[4],d=y+L*q[4],F=g[3];F>0;)for(F<a?(A=F,F=0):(A=a,F-=a),v=q[4]-A*q[3],m=d+F*q[3],P=g[2];P>0;)for(P<a?(w=P,P=0):(w=a,P-=a),n=q[3]-w*q[2],p=m+P*q[2],B=g[1];B>0;)for(B<a?(S=B,B=0):(S=a,B-=a),s=q[2]-S*q[1],c=p+B*q[1],R=g[0];R>0;)for(R<a?(x=R,R=0):(x=a,R-=a),T=c+R*q[0],i=q[1]-x*q[0],z=0;z<E;z++){for(V=0;V<b;V++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(O=0;O<S;O++){for(I=0;I<x;I++)t[T]=e(),T+=o;T+=i}T+=s}T+=n}T+=v}T+=u}T+=f}}Dk.exports=F8r});var Vk=l((Efe,Rk)=>{"use strict";var L8r=Hr(),C8r=Zr();function U8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J;for(J=L8r(r.shape,r.strides),S=J.sh,I=J.sx,a=C8r(r.dtype),O=r.offset,t=r.data,o=I[0],W=S[7];W>0;)for(W<a?(T=W,W=0):(T=a,W-=a),x=O+W*I[7],$=S[6];$>0;)for($<a?(j=$,$=0):(j=a,$-=a),c=I[7]-j*I[6],g=x+$*I[6],Y=S[5];Y>0;)for(Y<a?(q=Y,Y=0):(q=a,Y-=a),f=I[6]-q*I[5],h=g+Y*I[5],G=S[4];G>0;)for(G<a?(E=G,G=0):(E=a,G-=a),u=I[5]-E*I[4],y=h+G*I[4],M=S[3];M>0;)for(M<a?(b=M,M=0):(b=a,M-=a),v=I[4]-b*I[3],d=y+M*I[3],U=S[2];U>0;)for(U<a?(_=U,U=0):(_=a,U-=a),n=I[3]-_*I[2],m=d+U*I[2],C=S[1];C>0;)for(C<a?(A=C,C=0):(A=a,C-=a),s=I[2]-A*I[1],p=m+C*I[1],L=S[0];L>0;)for(L<a?(w=L,L=0):(w=a,L-=a),D=p+L*I[0],i=I[1]-w*I[0],F=0;F<T;F++){for(P=0;P<j;P++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(z=0;z<b;z++){for(V=0;V<_;V++){for(N=0;N<A;N++){for(k=0;k<w;k++)t[D]=e(),D+=o;D+=i}D+=s}D+=n}D+=v}D+=u}D+=f}D+=c}}Rk.exports=U8r});var Bk=l((Afe,zk)=>{"use strict";var M8r=Hr(),G8r=Zr();function $8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z;for(Z=M8r(r.shape,r.strides),A=Z.sh,k=Z.sx,a=G8r(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?(O=H,H=0):(O=a,H-=a),p=k[8]-O*k[7],S=w+H*k[7],K=A[6];K>0;)for(K<a?(I=K,K=0):(I=a,K-=a),c=k[7]-I*k[6],x=S+K*k[6],X=A[5];X>0;)for(X<a?(T=X,X=0):(T=a,X-=a),f=k[6]-T*k[5],g=x+X*k[5],J=A[4];J>0;)for(J<a?(j=J,J=0):(j=a,J-=a),u=k[5]-j*k[4],h=g+J*k[4],W=A[3];W>0;)for(W<a?(q=W,W=0):(q=a,W-=a),v=k[4]-q*k[3],y=h+W*k[3],$=A[2];$>0;)for($<a?(E=$,$=0):(E=a,$-=a),n=k[3]-E*k[2],d=y+$*k[2],Y=A[1];Y>0;)for(Y<a?(b=Y,Y=0):(b=a,Y-=a),s=k[2]-b*k[1],m=d+Y*k[1],G=A[0];G>0;)for(G<a?(_=G,G=0):(_=a,G-=a),V=m+G*k[0],i=k[1]-_*k[0],M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(z=0;z<_;z++)t[V]=e(),V+=o;V+=i}V+=s}V+=n}V+=v}V+=u}V+=f}V+=c}V+=p}}zk.exports=$8r});var Fk=l((_fe,Pk)=>{"use strict";var Y8r=Hr(),W8r=Zr();function J8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr;for(tr=Y8r(r.shape,r.strides),b=tr.sh,z=tr.sx,a=W8r(r.dtype),R=r.offset,t=r.data,o=z[0],ir=b[9];ir>0;)for(ir<a?(V=ir,ir=0):(V=a,ir-=a),_=R+ir*z[9],er=b[8];er>0;)for(er<a?(N=er,er=0):(N=a,er-=a),m=z[9]-N*z[8],A=_+er*z[8],ar=b[7];ar>0;)for(ar<a?(k=ar,ar=0):(k=a,ar-=a),p=z[8]-k*z[7],w=A+ar*z[7],rr=b[6];rr>0;)for(rr<a?(D=rr,rr=0):(D=a,rr-=a),c=z[7]-D*z[6],S=w+rr*z[6],Z=b[5];Z>0;)for(Z<a?(O=Z,Z=0):(O=a,Z-=a),f=z[6]-O*z[5],x=S+Z*z[5],Q=b[4];Q>0;)for(Q<a?(I=Q,Q=0):(I=a,Q-=a),u=z[5]-I*z[4],g=x+Q*z[4],H=b[3];H>0;)for(H<a?(T=H,H=0):(T=a,H-=a),v=z[4]-T*z[3],h=g+H*z[3],K=b[2];K>0;)for(K<a?(j=K,K=0):(j=a,K-=a),n=z[3]-j*z[2],y=h+K*z[2],X=b[1];X>0;)for(X<a?(q=X,X=0):(q=a,X-=a),s=z[2]-q*z[1],d=y+X*z[1],J=b[0];J>0;)for(J<a?(E=J,J=0):(E=a,J-=a),B=d+J*z[0],i=z[1]-E*z[0],W=0;W<V;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++){for(F=0;F<q;F++){for(P=0;P<E;P++)t[B]=e(),B+=o;B+=i}B+=s}B+=n}B+=v}B+=u}B+=f}B+=c}B+=p}B+=m}}Pk.exports=J8r});var Ck=l((jfe,Lk)=>{"use strict";function X8r(r,e){r.accessors[1](r.data,r.offset,e())}Lk.exports=X8r});var Mk=l((Tfe,Uk)=>{"use strict";function K8r(r,e){var a,t,o,i,s,n;for(i=r.shape[0],o=r.strides[0],s=r.offset,a=r.data,t=r.accessors[1],n=0;n<i;n++)t(a,s,e()),s+=o}Uk.exports=K8r});var $k=l((Ofe,Gk)=>{"use strict";function H8r(r,e){var a,t,o,i,s,n,v,u,f,c,p;for(s=r.shape,u=r.strides,r.order==="row-major"?(n=s[1],v=s[0],o=u[1],i=u[0]-n*u[1]):(n=s[0],v=s[1],o=u[0],i=u[1]-n*u[0]),f=r.offset,a=r.data,t=r.accessors[1],p=0;p<v;p++){for(c=0;c<n;c++)t(a,f,e()),f+=o;f+=i}}Gk.exports=H8r});var Wk=l((Ife,Yk)=>{"use strict";function Z8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y;for(n=r.shape,c=r.strides,r.order==="row-major"?(v=n[2],u=n[1],f=n[0],o=c[2],i=c[1]-v*c[2],s=c[0]-u*c[1]):(v=n[0],u=n[1],f=n[2],o=c[0],i=c[1]-v*c[0],s=c[2]-u*c[1]),p=r.offset,a=r.data,t=r.accessors[1],y=0;y<f;y++){for(d=0;d<u;d++){for(m=0;m<v;m++)t(a,p,e()),p+=o;p+=i}p+=s}}Yk.exports=Z8r});var Xk=l((Nfe,Jk)=>{"use strict";function Q8r(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x;for(v=r.shape,m=r.strides,r.order==="row-major"?(u=v[3],f=v[2],c=v[1],p=v[0],o=m[3],i=m[2]-u*m[3],s=m[1]-f*m[2],n=m[0]-c*m[1]):(u=v[0],f=v[1],c=v[2],p=v[3],o=m[0],i=m[1]-u*m[0],s=m[2]-f*m[1],n=m[3]-c*m[2]),d=r.offset,a=r.data,t=r.accessors[1],x=0;x<p;x++){for(g=0;g<c;g++){for(h=0;h<f;h++){for(y=0;y<u;y++)t(a,d,e()),d+=o;d+=i}d+=s}d+=n}}Jk.exports=Q8r});var Hk=l((Dfe,Kk)=>{"use strict";function rjr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A;for(u=r.shape,y=r.strides,r.order==="row-major"?(f=u[4],c=u[3],p=u[2],m=u[1],d=u[0],o=y[4],i=y[3]-f*y[4],s=y[2]-c*y[3],n=y[1]-p*y[2],v=y[0]-m*y[1]):(f=u[0],c=u[1],p=u[2],m=u[3],d=u[4],o=y[0],i=y[1]-f*y[0],s=y[2]-c*y[1],n=y[3]-p*y[2],v=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<c;x++){for(g=0;g<f;g++)t(a,h,e()),h+=o;h+=i}h+=s}h+=n}h+=v}}Kk.exports=rjr});var Qk=l((kfe,Zk)=>{"use strict";function ejr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E;for(f=r.shape,g=r.strides,r.order==="row-major"?(c=f[5],p=f[4],m=f[3],d=f[2],y=f[1],h=f[0],o=g[5],i=g[4]-c*g[5],s=g[3]-p*g[4],n=g[2]-m*g[3],v=g[1]-d*g[2],u=g[0]-y*g[1]):(c=f[0],p=f[1],m=f[2],d=f[3],y=f[4],h=f[5],o=g[0],i=g[1]-c*g[0],s=g[2]-p*g[1],n=g[3]-m*g[2],v=g[4]-d*g[3],u=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<c;S++)t(a,x,e()),x+=o;x+=i}x+=s}x+=n}x+=v}x+=u}}Zk.exports=ejr});var eR=l((Rfe,rR)=>{"use strict";function ajr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T;for(c=r.shape,S=r.strides,r.order==="row-major"?(p=c[6],m=c[5],d=c[4],y=c[3],h=c[2],g=c[1],x=c[0],o=S[6],i=S[5]-p*S[6],s=S[4]-m*S[5],n=S[3]-d*S[4],v=S[2]-y*S[3],u=S[1]-h*S[2],f=S[0]-g*S[1]):(p=c[0],m=c[1],d=c[2],y=c[3],h=c[4],g=c[5],x=c[6],o=S[0],i=S[1]-p*S[0],s=S[2]-m*S[1],n=S[3]-d*S[2],v=S[4]-y*S[3],u=S[5]-h*S[4],f=S[6]-g*S[5]),w=r.offset,a=r.data,t=r.accessors[1],T=0;T<x;T++){for(j=0;j<g;j++){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+=s}w+=n}w+=v}w+=u}w+=f}}rR.exports=ajr});var tR=l((Vfe,aR)=>{"use strict";function tjr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,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],s=A[5]-d*A[6],n=A[4]-y*A[5],v=A[3]-h*A[4],u=A[2]-g*A[3],f=A[1]-x*A[2],c=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],s=A[2]-d*A[1],n=A[3]-y*A[2],v=A[4]-h*A[3],u=A[5]-g*A[4],f=A[6]-x*A[5],c=A[7]-S*A[6]),_=r.offset,a=r.data,t=r.accessors[1],D=0;D<w;D++){for(O=0;O<S;O++){for(I=0;I<x;I++){for(T=0;T<g;T++){for(j=0;j<h;j++){for(q=0;q<y;q++){for(E=0;E<d;E++){for(b=0;b<m;b++)t(a,_,e()),_+=o;_+=i}_+=s}_+=n}_+=v}_+=u}_+=f}_+=c}}aR.exports=tjr});var oR=l((zfe,iR)=>{"use strict";function ijr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V;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],s=b[6]-y*b[7],n=b[5]-h*b[6],v=b[4]-g*b[5],u=b[3]-x*b[4],f=b[2]-S*b[3],c=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],s=b[2]-y*b[1],n=b[3]-h*b[2],v=b[4]-g*b[3],u=b[5]-x*b[4],f=b[6]-S*b[5],c=b[7]-w*b[6],p=b[8]-A*b[7]),E=r.offset,a=r.data,t=r.accessors[1],V=0;V<_;V++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(O=0;O<x;O++){for(I=0;I<g;I++){for(T=0;T<h;T++){for(j=0;j<y;j++){for(q=0;q<d;q++)t(a,E,e()),E+=o;E+=i}E+=s}E+=n}E+=v}E+=u}E+=f}E+=c}E+=p}}iR.exports=ijr});var nR=l((Bfe,sR)=>{"use strict";function ojr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B;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],s=q[7]-h*q[8],n=q[6]-g*q[7],v=q[5]-x*q[6],u=q[4]-S*q[5],f=q[3]-w*q[4],c=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],s=q[2]-h*q[1],n=q[3]-g*q[2],v=q[4]-x*q[3],u=q[5]-S*q[4],f=q[6]-w*q[5],c=q[7]-A*q[6],p=q[8]-_*q[7],m=q[9]-b*q[8]),j=r.offset,a=r.data,t=r.accessors[1],B=0;B<E;B++){for(R=0;R<b;R++){for(z=0;z<_;z++){for(V=0;V<A;V++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<x;D++){for(O=0;O<g;O++){for(I=0;I<h;I++){for(T=0;T<y;T++)t(a,j,e()),j+=o;j+=i}j+=s}j+=n}j+=v}j+=u}j+=f}j+=c}j+=p}j+=m}}sR.exports=ojr});var uR=l((Pfe,vR)=>{"use strict";var sjr=Wr(),njr=ia(),vjr="throw";function ujr(r,e){var a,t,o,i,s,n,v,u,f;for(s=r.shape,o=sjr(s),a=r.data,n=r.strides,v=r.offset,t=r.order,i=r.accessors[1],f=0;f<o;f++)u=njr(s,n,v,t,f,vjr),i(a,u,e())}vR.exports=ujr});var lR=l((Ffe,fR)=>{"use strict";function fjr(r,e){r.data[r.offset]=e()}fR.exports=fjr});var dR=l((Lfe,cR)=>{"use strict";function ljr(r,e){var a,t,o,i,s;for(o=r.shape[0],t=r.strides[0],i=r.offset,a=r.data,s=0;s<o;s++)a[i]=e(),i+=t}cR.exports=ljr});var yR=l((Cfe,pR)=>{"use strict";function cjr(r,e){var a,t,o,i,s,n,v,u,f,c;for(i=r.shape,v=r.strides,r.order==="row-major"?(s=i[1],n=i[0],t=v[1],o=v[0]-s*v[1]):(s=i[0],n=i[1],t=v[0],o=v[1]-s*v[0]),u=r.offset,a=r.data,c=0;c<n;c++){for(f=0;f<s;f++)a[u]=e(),u+=t;u+=o}}pR.exports=cjr});var hR=l((Ufe,mR)=>{"use strict";function djr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d;for(s=r.shape,f=r.strides,r.order==="row-major"?(n=s[2],v=s[1],u=s[0],t=f[2],o=f[1]-n*f[2],i=f[0]-v*f[1]):(n=s[0],v=s[1],u=s[2],t=f[0],o=f[1]-n*f[0],i=f[2]-v*f[1]),c=r.offset,a=r.data,d=0;d<u;d++){for(m=0;m<v;m++){for(p=0;p<n;p++)a[c]=e(),c+=t;c+=o}c+=i}}mR.exports=djr});var bR=l((Mfe,gR)=>{"use strict";function pjr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g;for(n=r.shape,p=r.strides,r.order==="row-major"?(v=n[3],u=n[2],f=n[1],c=n[0],t=p[3],o=p[2]-v*p[3],i=p[1]-u*p[2],s=p[0]-f*p[1]):(v=n[0],u=n[1],f=n[2],c=n[3],t=p[0],o=p[1]-v*p[0],i=p[2]-u*p[1],s=p[3]-f*p[2]),m=r.offset,a=r.data,g=0;g<c;g++){for(h=0;h<f;h++){for(y=0;y<u;y++){for(d=0;d<v;d++)a[m]=e(),m+=t;m+=o}m+=i}m+=s}}gR.exports=pjr});var qR=l((Gfe,xR)=>{"use strict";function yjr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w;for(v=r.shape,d=r.strides,r.order==="row-major"?(u=v[4],f=v[3],c=v[2],p=v[1],m=v[0],t=d[4],o=d[3]-u*d[4],i=d[2]-f*d[3],s=d[1]-c*d[2],n=d[0]-p*d[1]):(u=v[0],f=v[1],c=v[2],p=v[3],m=v[4],t=d[0],o=d[1]-u*d[0],i=d[2]-f*d[1],s=d[3]-c*d[2],n=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<c;x++){for(g=0;g<f;g++){for(h=0;h<u;h++)a[y]=e(),y+=t;y+=o}y+=i}y+=s}y+=n}}xR.exports=yjr});var SR=l(($fe,wR)=>{"use strict";function mjr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b;for(u=r.shape,h=r.strides,r.order==="row-major"?(f=u[5],c=u[4],p=u[3],m=u[2],d=u[1],y=u[0],t=h[5],o=h[4]-f*h[5],i=h[3]-c*h[4],s=h[2]-p*h[3],n=h[1]-m*h[2],v=h[0]-d*h[1]):(f=u[0],c=u[1],p=u[2],m=u[3],d=u[4],y=u[5],t=h[0],o=h[1]-f*h[0],i=h[2]-c*h[1],s=h[3]-p*h[2],n=h[4]-m*h[3],v=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<c;S++){for(x=0;x<f;x++)a[g]=e(),g+=t;g+=o}g+=i}g+=s}g+=n}g+=v}}wR.exports=mjr});var AR=l((Yfe,ER)=>{"use strict";function hjr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j;for(f=r.shape,x=r.strides,r.order==="row-major"?(c=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]-c*x[6],i=x[4]-p*x[5],s=x[3]-m*x[4],n=x[2]-d*x[3],v=x[1]-y*x[2],u=x[0]-h*x[1]):(c=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]-c*x[0],i=x[2]-p*x[1],s=x[3]-m*x[2],n=x[4]-d*x[3],v=x[5]-y*x[4],u=x[6]-h*x[5]),S=r.offset,a=r.data,j=0;j<g;j++){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<c;w++)a[S]=e(),S+=t;S+=o}S+=i}S+=s}S+=n}S+=v}S+=u}}ER.exports=hjr});var jR=l((Wfe,_R)=>{"use strict";function gjr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O;for(c=r.shape,w=r.strides,r.order==="row-major"?(p=c[7],m=c[6],d=c[5],y=c[4],h=c[3],g=c[2],x=c[1],S=c[0],t=w[7],o=w[6]-p*w[7],i=w[5]-m*w[6],s=w[4]-d*w[5],n=w[3]-y*w[4],v=w[2]-h*w[3],u=w[1]-g*w[2],f=w[0]-x*w[1]):(p=c[0],m=c[1],d=c[2],y=c[3],h=c[4],g=c[5],x=c[6],S=c[7],t=w[0],o=w[1]-p*w[0],i=w[2]-m*w[1],s=w[3]-d*w[2],n=w[4]-y*w[3],v=w[5]-h*w[4],u=w[6]-g*w[5],f=w[7]-x*w[6]),A=r.offset,a=r.data,O=0;O<S;O++){for(I=0;I<x;I++){for(T=0;T<g;T++){for(j=0;j<h;j++){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+=s}A+=n}A+=v}A+=u}A+=f}}_R.exports=gjr});var OR=l((Jfe,TR)=>{"use strict";function bjr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,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],s=_[5]-y*_[6],n=_[4]-h*_[5],v=_[3]-g*_[4],u=_[2]-x*_[3],f=_[1]-S*_[2],c=_[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],s=_[3]-y*_[2],n=_[4]-h*_[3],v=_[5]-g*_[4],u=_[6]-x*_[5],f=_[7]-S*_[6],c=_[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(O=0;O<x;O++){for(I=0;I<g;I++){for(T=0;T<h;T++){for(j=0;j<y;j++){for(q=0;q<d;q++){for(E=0;E<m;E++)a[b]=e(),b+=t;b+=o}b+=i}b+=s}b+=n}b+=v}b+=u}b+=f}b+=c}}TR.exports=bjr});var NR=l((Xfe,IR)=>{"use strict";function xjr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R;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],s=E[6]-h*E[7],n=E[5]-g*E[6],v=E[4]-x*E[5],u=E[3]-S*E[4],f=E[2]-w*E[3],c=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],s=E[3]-h*E[2],n=E[4]-g*E[3],v=E[5]-x*E[4],u=E[6]-S*E[5],f=E[7]-w*E[6],c=E[8]-A*E[7],p=E[9]-_*E[8]),q=r.offset,a=r.data,R=0;R<b;R++){for(z=0;z<_;z++){for(V=0;V<A;V++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<x;D++){for(O=0;O<g;O++){for(I=0;I<h;I++){for(T=0;T<y;T++){for(j=0;j<d;j++)a[q]=e(),q+=t;q+=o}q+=i}q+=s}q+=n}q+=v}q+=u}q+=f}q+=c}q+=p}}IR.exports=xjr});var kR=l((Kfe,DR)=>{"use strict";var qjr=Wr(),wjr=ia(),Sjr="throw";function Ejr(r,e){var a,t,o,i,s,n,v,u;for(i=r.shape,o=qjr(i),a=r.data,s=r.strides,n=r.offset,t=r.order,u=0;u<o;u++)v=wjr(i,s,n,t,u,Sjr),a[v]=e()}DR.exports=Ejr});var zR=l((Hfe,VR)=>{"use strict";var Ajr=ba(),_jr=Ha(),jjr=Yt(),Tjr=ok(),Ojr=nk(),Ijr=uk(),Njr=lk(),Djr=dk(),kjr=yk(),Rjr=hk(),Vjr=bk(),zjr=qk(),Bjr=Sk(),Pjr=Ak(),Fjr=jk(),Ljr=Ok(),Cjr=Nk(),Ujr=kk(),Mjr=Vk(),Gjr=Bk(),$jr=Fk(),Yjr=Ck(),Wjr=Mk(),Jjr=$k(),Xjr=Wk(),Kjr=Xk(),Hjr=Hk(),Zjr=Qk(),Qjr=eR(),rTr=tR(),eTr=oR(),aTr=nR(),tTr=uR(),iTr=lR(),oTr=dR(),sTr=yR(),nTr=hR(),vTr=bR(),uTr=qR(),fTr=SR(),lTr=AR(),cTr=jR(),dTr=OR(),pTr=NR(),yTr=kR(),Ei=[iTr,oTr,sTr,nTr,vTr,uTr,fTr,lTr,cTr,dTr,pTr],bo=[Yjr,Wjr,Jjr,Xjr,Kjr,Hjr,Zjr,Qjr,rTr,eTr,aTr],mTr=[Bjr,Pjr,Fjr,Ljr,Cjr,Ujr,Mjr,Gjr,$jr],hTr=[Tjr,Ojr,Ijr,Njr,Djr,kjr,Rjr,Vjr,zjr],RR=Ei.length-1;function gTr(r,e){var a,t,o,i,s,n,v,u,f,c,p;if(f=jjr(r[0]),o=f.shape,a=o.length,a===0)return f.accessorProtocol?bo[a](f,e):Ei[a](f,e);for(s=1,u=0,p=0;p<a;p++)c=o[p],s*=c,c===1&&(u+=1);if(s!==0){if(a===1)return f.accessorProtocol?bo[a](f,e):Ei[a](f,e);if(n=f.strides,u===a-1){for(p=0;p<a&&o[p]===1;p++);return f.shape=[o[p]],f.strides=[n[p]],f.accessorProtocol?bo[1](f,e):Ei[1](f,e)}if(i=Ajr(n),i!==0){if(t=_jr(o,n,f.offset),s===t[1]-t[0]+1)return i===1?v=t[0]:v=t[1],f.shape=[s],f.strides=[i],f.offset=v,f.accessorProtocol?bo[1](f,e):Ei[1](f,e);if(a<=RR)return f.accessorProtocol?bo[a](f,e):Ei[a](f,e)}if(a<=RR)return f.accessorProtocol?hTr[a-2](f,e):mTr[a-2](f,e);if(f.accessorProtocol)return tTr(f,e);yTr(f,e)}}VR.exports=gTr});var PR=l((Zfe,BR)=>{"use strict";var bTr=zR();BR.exports=bTr});var CR=l((Qfe,LR)=>{"use strict";var xTr=ca(),qTr=Ra(),wTr=_e(),FR=cr();function STr(r,e){var a,t;if(a=qTr(r),a===0)throw new TypeError(FR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",a));if(t=xTr(e,a-1),t===-1)throw new RangeError(FR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",a,e));return wTr(r,!1)[t]}LR.exports=STr});var Af=l((rle,UR)=>{"use strict";var ETr=CR();UR.exports=ETr});var MR=l((ele,ATr)=>{ATr.exports=["same","promoted","bool","signed_integer","unsigned_integer","integer","floating_point","real_floating_point","complex_floating_point","real","numeric","default"]});var $R=l((ale,GR)=>{"use strict";var _Tr=MR();function jTr(){return _Tr.slice()}GR.exports=jTr});var WR=l((tle,YR)=>{"use strict";function TTr(){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}}YR.exports=TTr});var XR=l((ile,JR)=>{"use strict";var OTr=Ot(),ITr=xa();function NTr(r,e){var a,t,o;for(a=ITr(e),o=0;o<a.length;o++)t=a[o],OTr(r,t,e[t]);return r}JR.exports=NTr});var Cs=l((ole,HR)=>{"use strict";var DTr=Tr(),_f=$R(),KR=WR(),kTr=XR();DTr(_f,"enum",KR);kTr(_f,KR());HR.exports=_f});var QR=l((sle,ZR)=>{"use strict";var RTr=ls(),VTr=Cs().enum,zTr=RTr(VTr(),{duplicates:!1});function BTr(r){var e=zTr[r];return typeof e=="string"?e:null}ZR.exports=BTr});var Us=l((nle,rV)=>{"use strict";var PTr=QR();rV.exports=PTr});var aV=l((vle,eV)=>{"use strict";var FTr=Cs().enum,LTr=FTr();function CTr(r){var e=LTr[r];return typeof e=="number"?e:null}eV.exports=CTr});var Ms=l((ule,tV)=>{"use strict";var UTr=aV();tV.exports=UTr});var oV=l((fle,iV)=>{"use strict";var MTr=Us(),GTr=Ms();function $Tr(r){var e=typeof r;return e==="number"?MTr(r)?r:null:e==="string"?GTr(r):null}iV.exports=$Tr});var nV=l((lle,sV)=>{"use strict";var YTr=oV();sV.exports=YTr});var uV=l((cle,vV)=>{"use strict";var WTr=Us(),JTr=Ms();function XTr(r){var e=typeof r;return e==="string"?JTr(r)===null?null:r:e==="number"?WTr(r):null}vV.exports=XTr});var lV=l((dle,fV)=>{"use strict";var KTr=uV();fV.exports=KTr});var hV=l((ple,mV)=>{"use strict";var HTr=Le(),cV=Ye(),ZTr=_e(),QTr=ya(),dV=$a(),pV=oa(),yV=nt();function rOr(r,e){var a,t,o,i,s,n;for(o=ZTr(r,!1),i=QTr(r,!1),s=o.length,a=[],t=[],n=0;n<e;n++)t.push(1),a.push(i[0]);for(n=0;n<s;n++)t.push(o[n]),a.push(i[n]);return HTr(r)?new r.constructor(cV(r),yV(r),t,a,dV(r),pV(r),{readonly:!0}):new r.constructor(cV(r),yV(r),t,a,dV(r),pV(r))}mV.exports=rOr});var bV=l((yle,gV)=>{"use strict";var eOr=hV();gV.exports=eOr});var AV=l((mle,EV)=>{"use strict";var aOr=Le(),xV=Ye(),tOr=_e(),iOr=ya(),qV=$a(),wV=oa(),SV=nt();function oOr(r){var e,a,t,o,i,s;for(t=tOr(r,!1),o=iOr(r,!1),i=t.length,e=[],a=[],s=0;s<i;s++)t[s]!==1&&(a.push(t[s]),e.push(o[s]));return a.length===i?r:aOr(r)?new r.constructor(xV(r),SV(r),a,e,qV(r),wV(r),{readonly:!0}):new r.constructor(xV(r),SV(r),a,e,qV(r),wV(r))}EV.exports=oOr});var jV=l((hle,_V)=>{"use strict";var sOr=AV();_V.exports=sOr});var OV=l((gle,TV)=>{"use strict";var nOr=he(),vOr=Pe(),uOr=vo(),fOr=pe(),lOr=Ra();function cOr(r,e){var a=uOr(new vOr(null,null,-1),lOr(r));return fOr(r,nOr(a),!0,e)}TV.exports=cOr});var NV=l((ble,IV)=>{"use strict";var dOr=OV();IV.exports=dOr});var RV=l((xle,kV)=>{"use strict";var qt=Bt(),pOr=ti(),yOr=Pt(),xo=bv(),mOr=Ka(),hOr=De().enum,gOr=Ft().enum,bOr=Lt().enum,xOr=Ye(),qOr=_e(),wOr=ya(),SOr=$a(),EOr=oa(),AOr=hOr(),_Or=gOr(),DV=bOr();function jOr(r){var e,a,t,o,i,s,n,v,u,f,c,p,m,d;if(r.__array_meta_dataview__)return r.__array_meta_dataview__();for(o=xOr(r),i=qOr(r,!1),s=wOr(r,!1),p=i.length,u=r.mode||"throw",n=r.submode||[u],m=n.length,e=mOr(o),t=33+p*16+m,v=new yOr(new pOr(t)),f=0,v.setInt8(f,qt?1:0),f+=1,v.setInt16(f,AOr[o],qt),f+=2,v.setBigInt64(f,xo(p),qt),c=p*8,f+=8,d=0;d<p;d++)v.setBigInt64(f,xo(i[d]),qt),v.setBigInt64(f+c,xo(s[d]*e),qt),f+=8;for(f+=c,v.setBigInt64(f,xo(SOr(r)*e),qt),f+=8,v.setInt8(f,_Or[EOr(r)]),f+=1,v.setInt8(f,DV[u]),f+=1,v.setBigInt64(f,xo(m),qt),f+=8,d=0;d<m;d++)v.setInt8(f,DV[n[d]]),f+=1;return a=0,r.flags&&(a|=r.flags.READONLY?4:0),v.setInt32(f,a,qt),v}kV.exports=jOr});var BV=l((qle,zV)=>{"use strict";var jf=Bt(),qo=kv().assign,TOr=ti(),OOr=Qe(),IOr=Pt(),NOr=Ka(),DOr=De().enum,kOr=Ft().enum,ROr=Lt().enum,VOr=Ye(),zOr=_e(),BOr=ya(),POr=$a(),FOr=oa(),LOr=DOr(),COr=kOr(),VV=ROr();function UOr(r){var e,a,t,o,i,s,n,v,u,f,c,p,m,d,y;if(r.__array_meta_dataview__)return r.__array_meta_dataview__();for(i=VOr(r),s=zOr(r,!1),n=BOr(r,!1),m=s.length,f=r.mode||"throw",v=r.submode||[f],d=v.length,e=NOr(i),o=33+m*16+d,u=new IOr(new TOr(o)),a=new OOr(u.buffer),c=0,u.setInt8(c,jf?1:0),c+=1,u.setInt16(c,LOr[i],jf),c+=2,qo(m,a,1,c),p=m*8,c+=8,y=0;y<m;y++)qo(s[y],a,1,c),qo(n[y]*e,a,1,c+p),c+=8;for(c+=p,qo(POr(r)*e,a,1,c),c+=8,u.setInt8(c,COr[FOr(r)]),c+=1,u.setInt8(c,VV[f]),c+=1,qo(d,a,1,c),c+=8,y=0;y<d;y++)u.setInt8(c,VV[v[y]]),c+=1;return t=0,r.flags&&(t|=r.flags.READONLY?4:0),u.setInt32(c,t,jf),u}zV.exports=UOr});var FV=l((wle,PV)=>{"use strict";var MOr=ev(),GOr=RV(),$Or=BV(),Tf;MOr()?Tf=GOr:Tf=$Or;PV.exports=Tf});var CV=l((Sle,LV)=>{"use strict";function YOr(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]===1&&(e+=1);return e}LV.exports=YOr});var MV=l((Ele,UV)=>{"use strict";var WOr=CV();UV.exports=WOr});var YV=l((Ale,$V)=>{"use strict";var JOr=gs(),XOr=mo(),KOr=Ku(),HOr=pe(),GV=Ye(),ZOr=_e(),QOr=cr();function rIr(r,e,a,t){var o,i,s;if(i=GV(r),s=GV(e),!JOr(i,s))throw new TypeError(QOr("invalid argument. Input array values cannot be safely cast to the output array data type. Data types: [%s, %s].",i,s));return o=HOr(e,a,t,!0),r=XOr(r,ZOr(o,!0)),KOr([r,o]),e}$V.exports=rIr});var Gs=l((_le,WV)=>{"use strict";var eIr=YV();WV.exports=eIr});var KV=l((jle,XV)=>{"use strict";var aIr=he(),tIr=Ra(),iIr=pe(),oIr=ca(),sIr=wi(),JV=cr();function nIr(r,e,a,t,o){var i,s,n;if(s=tIr(r),s===0)throw new TypeError(JV("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",s));if(n=oIr(e,s-1),n===-1)throw new RangeError(JV("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",s,e));return i=sIr(s),i[n]=a,iIr(r,aIr(i),t,o)}XV.exports=nIr});var Of=l((Tle,HV)=>{"use strict";var vIr=KV();HV.exports=vIr});var rz=l((Ole,QV)=>{"use strict";var uIr=he(),fIr=Pe(),lIr=Ra(),cIr=pe(),dIr=ca(),pIr=wi(),ZV=cr();function yIr(r,e,a,t,o){var i,s,n;if(s=lIr(r),s===0)throw new TypeError(ZV("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",s));if(n=dIr(e,s-1),n===-1)throw new RangeError(ZV("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",s,e));return i=pIr(s),i[n]=new fIr(a,null),cIr(r,uIr(i),t,o)}QV.exports=yIr});var If=l((Ile,ez)=>{"use strict";var mIr=rz();ez.exports=mIr});var iz=l((Nle,tz)=>{"use strict";var hIr=he(),gIr=Pe(),bIr=Ra(),xIr=pe(),qIr=ca(),wIr=wi(),az=cr();function SIr(r,e,a,t,o){var i,s,n;if(s=bIr(r),s===0)throw new TypeError(az("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",s));if(n=qIr(e,s-1),n===-1)throw new RangeError(az("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",s,e));return i=wIr(s),i[n]=new gIr(a),xIr(r,hIr(i),t,o)}tz.exports=SIr});var Nf=l((Dle,oz)=>{"use strict";var EIr=iz();oz.exports=EIr});var vz=l((kle,nz)=>{"use strict";var AIr=Ue().isPrimitive,_Ir=he(),sz=Pe(),jIr=_e(),TIr=pe();function OIr(r,e,a,t){var o,i,s,n;for(i=jIr(r),o=[],n=0;n<e.length;n++)s=e[n],AIr(s)&&s!==0?s===i[n]?(s-=1,o.push(new sz(s,s))):o.push(new sz(s,null)):o.push(null);return TIr(r,_Ir(o),a,t)}nz.exports=OIr});var Df=l((Rle,uz)=>{"use strict";var IIr=vz();uz.exports=IIr});var lz=l((Vle,fz)=>{"use strict";var NIr=Ue().isPrimitive,DIr=he(),kIr=Pe(),RIr=pe();function VIr(r,e,a,t){var o,i;for(o=[],i=0;i<e.length;i++)NIr(e[i])?o.push(new kIr(e[i])):o.push(null);return RIr(r,DIr(o),a,t)}fz.exports=VIr});var kf=l((zle,cz)=>{"use strict";var zIr=lz();cz.exports=zIr});var yz=l((Ble,pz)=>{"use strict";var BIr=ca(),PIr=Ra(),FIr=ya(),dz=cr();function LIr(r,e){var a,t;if(a=PIr(r),a===0)throw new TypeError(dz("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",a));if(t=BIr(e,a-1),t===-1)throw new RangeError(dz("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",a,e));return FIr(r,!1)[t]}pz.exports=LIr});var Rf=l((Ple,mz)=>{"use strict";var CIr=yz();mz.exports=CIr});var gz=l((Fle,hz)=>{"use strict";var UIr=cr();function MIr(){var r,e,a,t,o,i,s,n,v,u,f,c;for(t=arguments[0],r=arguments[1],e=arguments[2],o=t.length,i=arguments[3+o],a=i.length,n=e,c=0;c<o;c++){if(v=t[c],f=arguments[c+3],s=i[c%a],s==="clamp")f<0?f=0:f>=v&&(f=v-1);else if(s==="wrap")f<0?(f+=v,f<0&&(f%=v,f!==0&&(f+=v))):f>=v&&(f-=v,f>=v&&(f%=v));else if(s==="normalize"&&f<0&&(f+=v),f<0||f>=v)throw new RangeError(UIr("invalid argument. Subscripts must not exceed array dimensions. Subscript: `%u`. Value: `%d`.",c,f));u=r[c],u<0&&e===0?n-=f*u:n+=f*u}return n}hz.exports=MIr});var Vf=l((Lle,bz)=>{"use strict";var GIr=gz();bz.exports=GIr});var wz=l((Cle,qz)=>{"use strict";function xz(r,e,a,t,o,i){var s,n,v,u,f;if(i>=e.length)return r.accessors[0](r.data,t);for(v=[],u=e[i],s=a[i],f=0;f<u;f++)n=xz(r,e,a,t,o,i+1),v.push(n),t+=s;return v}qz.exports=xz});var Ez=l((Ule,Sz)=>{"use strict";var $Ir=st(),YIr=wz();function WIr(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 YIr($Ir(r),e,a,t,o,0)}Sz.exports=WIr});var zf=l((Mle,Az)=>{"use strict";var JIr=Ez();Az.exports=JIr});var jz=l((Gle,_z)=>{"use strict";var XIr=Me(),KIr=Ye(),HIr=_e(),ZIr=ya(),QIr=oa(),r7r=nt();function e7r(r){var e,a,t,o;if(a=HIr(r,!0),o=a.length,o<2)throw new Error("invalid argument. Must provide an ndarray having two or more dimensions.");return t=ZIr(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(KIr(r),r7r(r),a,t,XIr(a,t),QIr(r))}_z.exports=e7r});var Oz=l(($le,Tz)=>{"use strict";var a7r=jz();Tz.exports=a7r});var Nz=l((Yle,Iz)=>{"use strict";var t7r=Rr(),i7r=kr();function o7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T;for(T=t7r(r.shape,r.strides,e.strides),d=T.sh,g=T.sx,x=T.sy,t=i7r(r.dtype,e.dtype),S=r.offset,w=e.offset,o=r.data,i=e.data,v=g[0],f=x[0],s=r.accessors[0],n=e.accessors[1],j=d[1];j>0;)for(j<t?(h=j,j=0):(h=t,j-=t),p=S+j*g[1],m=w+j*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],u=g[1]-y*g[0],c=x[1]-y*x[0],E=0;E<h;E++){for(b=0;b<y;b++)n(i,_,a(s(o,A))),A+=v,_+=f;A+=u,_+=c}}Iz.exports=o7r});var kz=l((Wle,Dz)=>{"use strict";var s7r=Rr(),n7r=kr();function v7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z;for(z=s7r(r.shape,r.strides,e.strides),x=z.sh,_=z.sx,b=z.sy,t=n7r(r.dtype,e.dtype),E=r.offset,q=e.offset,o=r.data,i=e.data,v=_[0],c=b[0],s=r.accessors[0],n=e.accessors[1],V=x[2];V>0;)for(V<t?(A=V,V=0):(A=t,V-=t),y=E+V*_[2],g=q+V*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),j=d+k*_[0],T=h+k*b[0],u=_[1]-S*_[0],p=b[1]-S*b[0],D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++)n(i,T,a(s(o,j))),j+=v,T+=c;j+=u,T+=p}j+=f,T+=m}}Dz.exports=v7r});var Vz=l((Jle,Rz)=>{"use strict";var u7r=Rr(),f7r=kr();function l7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U;for(U=u7r(r.shape,r.strides,e.strides),_=U.sh,T=U.sx,I=U.sy,t=f7r(r.dtype,e.dtype),O=r.offset,D=e.offset,o=r.data,i=e.data,v=T[0],p=I[0],s=r.accessors[0],n=e.accessors[1],C=_[3];C>0;)for(C<t?(j=C,C=0):(j=t,C-=t),x=O+C*T[3],A=D+C*I[3],L=_[2];L>0;)for(L<t?(q=L,L=0):(q=t,L-=t),c=T[3]-q*T[2],y=I[3]-q*I[2],g=x+L*T[2],w=A+L*I[2],F=_[1];F>0;)for(F<t?(E=F,F=0):(E=t,F-=t),f=T[2]-E*T[1],d=I[2]-E*I[1],h=g+F*T[1],S=w+F*I[1],P=_[0];P>0;)for(P<t?(b=P,P=0):(b=t,P-=t),k=h+P*T[0],N=S+P*I[0],u=T[1]-b*T[0],m=I[1]-b*I[0],B=0;B<j;B++){for(R=0;R<q;R++){for(z=0;z<E;z++){for(V=0;V<b;V++)n(i,N,a(s(o,k))),k+=v,N+=p;k+=u,N+=m}k+=f,N+=d}k+=c,N+=y}}Rz.exports=l7r});var Bz=l((Xle,zz)=>{"use strict";var c7r=Rr(),d7r=kr();function p7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X;for(X=c7r(r.shape,r.strides,e.strides),j=X.sh,N=X.sx,V=X.sy,t=d7r(r.dtype,e.dtype),z=r.offset,R=e.offset,o=r.data,i=e.data,v=N[0],m=V[0],s=r.accessors[0],n=e.accessors[1],J=j[4];J>0;)for(J<t?(k=J,J=0):(k=t,J-=t),A=z+J*N[4],q=R+J*V[4],W=j[3];W>0;)for(W<t?(D=W,W=0):(D=t,W-=t),p=N[4]-D*N[3],g=V[4]-D*V[3],w=A+W*N[3],E=q+W*V[3],$=j[2];$>0;)for($<t?(O=$,$=0):(O=t,$-=t),c=N[3]-O*N[2],h=V[3]-O*V[2],S=w+$*N[2],b=E+$*V[2],Y=j[1];Y>0;)for(Y<t?(I=Y,Y=0):(I=t,Y-=t),f=N[2]-I*N[1],y=V[2]-I*V[1],x=S+Y*N[1],_=b+Y*V[1],G=j[0];G>0;)for(G<t?(T=G,G=0):(T=t,G-=t),B=x+G*N[0],P=_+G*V[0],u=N[1]-T*N[0],d=V[1]-T*V[0],M=0;M<k;M++){for(U=0;U<D;U++){for(C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++)n(i,P,a(s(o,B))),B+=v,P+=m;B+=u,P+=d}B+=f,P+=y}B+=c,P+=h}B+=p,P+=g}}zz.exports=p7r});var Fz=l((Kle,Pz)=>{"use strict";var y7r=Rr(),m7r=kr();function h7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er;for(er=y7r(r.shape,r.strides,e.strides),D=er.sh,P=er.sx,F=er.sy,t=m7r(r.dtype,e.dtype),L=r.offset,C=e.offset,o=r.data,i=e.data,v=P[0],d=F[0],s=r.accessors[0],n=e.accessors[1],ar=D[5];ar>0;)for(ar<t?(B=ar,ar=0):(B=t,ar-=t),E=L+ar*P[5],O=C+ar*F[5],rr=D[4];rr>0;)for(rr<t?(R=rr,rr=0):(R=t,rr-=t),m=P[5]-R*P[4],S=F[5]-R*F[4],b=E+rr*P[4],I=O+rr*F[4],Z=D[3];Z>0;)for(Z<t?(z=Z,Z=0):(z=t,Z-=t),p=P[4]-z*P[3],x=F[4]-z*F[3],_=b+Z*P[3],T=I+Z*F[3],Q=D[2];Q>0;)for(Q<t?(V=Q,Q=0):(V=t,Q-=t),c=P[3]-V*P[2],g=F[3]-V*F[2],A=_+Q*P[2],j=T+Q*F[2],H=D[1];H>0;)for(H<t?(N=H,H=0):(N=t,H-=t),f=P[2]-N*P[1],h=F[2]-N*F[1],w=A+H*P[1],q=j+H*F[1],K=D[0];K>0;)for(K<t?(k=K,K=0):(k=t,K-=t),U=w+K*P[0],M=q+K*F[0],u=P[1]-k*P[0],y=F[1]-k*F[0],X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<z;W++){for($=0;$<V;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++)n(i,M,a(s(o,U))),U+=v,M+=d;U+=u,M+=y}U+=f,M+=h}U+=c,M+=g}U+=p,M+=x}U+=m,M+=S}}Pz.exports=h7r});var Cz=l((Hle,Lz)=>{"use strict";var g7r=Rr(),b7r=kr();function x7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur;for(ur=g7r(r.shape,r.strides,e.strides),z=ur.sh,M=ur.sx,G=ur.sy,t=b7r(r.dtype,e.dtype),Y=r.offset,$=e.offset,o=r.data,i=e.data,v=M[0],y=G[0],s=r.accessors[0],n=e.accessors[1],vr=z[6];vr>0;)for(vr<t?(U=vr,vr=0):(U=t,vr-=t),T=Y+vr*M[6],V=$+vr*G[6],nr=z[5];nr>0;)for(nr<t?(C=nr,nr=0):(C=t,nr-=t),d=M[6]-C*M[5],A=G[6]-C*G[5],j=T+nr*M[5],N=V+nr*G[5],sr=z[4];sr>0;)for(sr<t?(L=sr,sr=0):(L=t,sr-=t),m=M[5]-L*M[4],w=G[5]-L*G[4],q=j+sr*M[4],k=N+sr*G[4],or=z[3];or>0;)for(or<t?(F=or,or=0):(F=t,or-=t),p=M[4]-F*M[3],S=G[4]-F*G[3],E=q+or*M[3],D=k+or*G[3],tr=z[2];tr>0;)for(tr<t?(P=tr,tr=0):(P=t,tr-=t),c=M[3]-P*M[2],x=G[3]-P*G[2],b=E+tr*M[2],O=D+tr*G[2],ir=z[1];ir>0;)for(ir<t?(B=ir,ir=0):(B=t,ir-=t),f=M[2]-B*M[1],g=G[2]-B*G[1],_=b+ir*M[1],I=O+ir*G[1],er=z[0];er>0;)for(er<t?(R=er,er=0):(R=t,er-=t),W=_+er*M[0],J=I+er*G[0],u=M[1]-R*M[0],h=G[1]-R*G[0],ar=0;ar<U;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<F;Q++){for(H=0;H<P;H++){for(K=0;K<B;K++){for(X=0;X<R;X++)n(i,J,a(s(o,W))),W+=v,J+=y;W+=u,J+=h}W+=f,J+=g}W+=c,J+=x}W+=p,J+=S}W+=m,J+=w}W+=d,J+=A}}Lz.exports=x7r});var Mz=l((Zle,Uz)=>{"use strict";var q7r=Rr(),w7r=kr();function S7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr;for(gr=q7r(r.shape,r.strides,e.strides),F=gr.sh,J=gr.sx,X=gr.sy,t=w7r(r.dtype,e.dtype),K=r.offset,H=e.offset,o=r.data,i=e.data,v=J[0],h=X[0],s=r.accessors[0],n=e.accessors[1],mr=F[7];mr>0;)for(mr<t?(W=mr,mr=0):(W=t,mr-=t),D=K+mr*J[7],P=H+mr*X[7],yr=F[6];yr>0;)for(yr<t?($=yr,yr=0):($=t,yr-=t),y=J[7]-$*J[6],b=X[7]-$*X[6],O=D+yr*J[6],B=P+yr*X[6],dr=F[5];dr>0;)for(dr<t?(Y=dr,dr=0):(Y=t,dr-=t),d=J[6]-Y*J[5],_=X[6]-Y*X[5],I=O+dr*J[5],R=B+dr*X[5],pr=F[4];pr>0;)for(pr<t?(G=pr,pr=0):(G=t,pr-=t),m=J[5]-G*J[4],A=X[5]-G*X[4],T=I+pr*J[4],z=R+pr*X[4],fr=F[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],j=T+fr*J[3],V=z+fr*X[3],lr=F[2];lr>0;)for(lr<t?(U=lr,lr=0):(U=t,lr-=t),c=J[3]-U*J[2],S=X[3]-U*X[2],q=j+lr*J[2],N=V+lr*X[2],ur=F[1];ur>0;)for(ur<t?(C=ur,ur=0):(C=t,ur-=t),f=J[2]-C*J[1],x=X[2]-C*X[1],E=q+ur*J[1],k=N+ur*X[1],vr=F[0];vr>0;)for(vr<t?(L=vr,vr=0):(L=t,vr-=t),Q=E+vr*J[0],Z=k+vr*X[0],u=J[1]-L*J[0],g=X[1]-L*X[0],nr=0;nr<W;nr++){for(sr=0;sr<$;sr++){for(or=0;or<Y;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<C;ar++){for(rr=0;rr<L;rr++)n(i,Z,a(s(o,Q))),Q+=v,Z+=h;Q+=u,Z+=g}Q+=f,Z+=x}Q+=c,Z+=S}Q+=p,Z+=w}Q+=m,Z+=A}Q+=d,Z+=_}Q+=y,Z+=b}}Uz.exports=S7r});var $z=l((Qle,Gz)=>{"use strict";var E7r=Rr(),A7r=kr();function _7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr,Er,Ar,_r;for(_r=E7r(r.shape,r.strides,e.strides),M=_r.sh,Z=_r.sx,rr=_r.sy,t=A7r(r.dtype,e.dtype),ar=r.offset,er=e.offset,o=r.data,i=e.data,v=Z[0],g=rr[0],s=r.accessors[0],n=e.accessors[1],Ar=M[8];Ar>0;)for(Ar<t?(Q=Ar,Ar=0):(Q=t,Ar-=t),V=ar+Ar*Z[8],U=er+Ar*rr[8],Er=M[7];Er>0;)for(Er<t?(H=Er,Er=0):(H=t,Er-=t),h=Z[8]-H*Z[7],q=rr[8]-H*rr[7],N=V+Er*Z[7],C=U+Er*rr[7],hr=M[6];hr>0;)for(hr<t?(K=hr,hr=0):(K=t,hr-=t),y=Z[7]-K*Z[6],E=rr[7]-K*rr[6],k=N+hr*Z[6],L=C+hr*rr[6],xr=M[5];xr>0;)for(xr<t?(X=xr,xr=0):(X=t,xr-=t),d=Z[6]-X*Z[5],b=rr[6]-X*rr[5],D=k+xr*Z[5],F=L+xr*rr[5],br=M[4];br>0;)for(br<t?(J=br,br=0):(J=t,br-=t),m=Z[5]-J*Z[4],_=rr[5]-J*rr[4],O=D+br*Z[4],P=F+br*rr[4],qr=M[3];qr>0;)for(qr<t?(W=qr,qr=0):(W=t,qr-=t),p=Z[4]-W*Z[3],A=rr[4]-W*rr[3],I=O+qr*Z[3],B=P+qr*rr[3],gr=M[2];gr>0;)for(gr<t?($=gr,gr=0):($=t,gr-=t),c=Z[3]-$*Z[2],w=rr[3]-$*rr[2],T=I+gr*Z[2],R=B+gr*rr[2],mr=M[1];mr>0;)for(mr<t?(Y=mr,mr=0):(Y=t,mr-=t),f=Z[2]-Y*Z[1],S=rr[2]-Y*rr[1],j=T+mr*Z[1],z=R+mr*rr[1],yr=M[0];yr>0;)for(yr<t?(G=yr,yr=0):(G=t,yr-=t),ir=j+yr*Z[0],tr=z+yr*rr[0],u=Z[1]-G*Z[0],x=rr[1]-G*rr[0],dr=0;dr<Q;dr++){for(pr=0;pr<H;pr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++){for(sr=0;sr<Y;sr++){for(or=0;or<G;or++)n(i,tr,a(s(o,ir))),ir+=v,tr+=g;ir+=u,tr+=x}ir+=f,tr+=S}ir+=c,tr+=w}ir+=p,tr+=A}ir+=m,tr+=_}ir+=d,tr+=b}ir+=y,tr+=E}ir+=h,tr+=q}}Gz.exports=_7r});var Wz=l((rce,Yz)=>{"use strict";var j7r=Rr(),T7r=kr();function O7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr,Er,Ar,_r,jr,Or,Dr,Vr,Kr,te,Ie;for(Ie=j7r(r.shape,r.strides,e.strides),W=Ie.sh,tr=Ie.sx,or=Ie.sy,t=T7r(r.dtype,e.dtype),sr=r.offset,nr=e.offset,o=r.data,i=e.data,v=tr[0],x=or[0],s=r.accessors[0],n=e.accessors[1],te=W[9];te>0;)for(te<t?(ir=te,te=0):(ir=t,te-=t),B=sr+te*tr[9],$=nr+te*or[9],Kr=W[8];Kr>0;)for(Kr<t?(er=Kr,Kr=0):(er=t,Kr-=t),g=tr[9]-er*tr[8],T=or[9]-er*or[8],R=B+Kr*tr[8],Y=$+Kr*or[8],Vr=W[7];Vr>0;)for(Vr<t?(ar=Vr,Vr=0):(ar=t,Vr-=t),h=tr[8]-ar*tr[7],j=or[8]-ar*or[7],z=R+Vr*tr[7],G=Y+Vr*or[7],Dr=W[6];Dr>0;)for(Dr<t?(rr=Dr,Dr=0):(rr=t,Dr-=t),y=tr[7]-rr*tr[6],q=or[7]-rr*or[6],V=z+Dr*tr[6],M=G+Dr*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=V+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],C=U+jr*or[4],_r=W[3];_r>0;)for(_r<t?(H=_r,_r=0):(H=t,_r-=t),p=tr[4]-H*tr[3],_=or[4]-H*or[3],D=k+_r*tr[3],L=C+_r*or[3],Ar=W[2];Ar>0;)for(Ar<t?(K=Ar,Ar=0):(K=t,Ar-=t),c=tr[3]-K*tr[2],A=or[3]-K*or[2],O=D+Ar*tr[2],F=L+Ar*or[2],Er=W[1];Er>0;)for(Er<t?(X=Er,Er=0):(X=t,Er-=t),f=tr[2]-X*tr[1],w=or[2]-X*or[1],I=O+Er*tr[1],P=F+Er*or[1],hr=W[0];hr>0;)for(hr<t?(J=hr,hr=0):(J=t,hr-=t),vr=I+hr*tr[0],ur=P+hr*or[0],u=tr[1]-J*tr[0],S=or[1]-J*or[0],xr=0;xr<ir;xr++){for(br=0;br<er;br++){for(qr=0;qr<ar;qr++){for(gr=0;gr<rr;gr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<K;pr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++)n(i,ur,a(s(o,vr))),vr+=v,ur+=x;vr+=u,ur+=S}vr+=f,ur+=w}vr+=c,ur+=A}vr+=p,ur+=_}vr+=m,ur+=b}vr+=d,ur+=E}vr+=y,ur+=q}vr+=h,ur+=j}vr+=g,ur+=T}}Yz.exports=O7r});var Xz=l((ece,Jz)=>{"use strict";var I7r=Rr(),N7r=kr();function D7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q;for(q=I7r(r.shape,r.strides,e.strides),p=q.sh,y=q.sx,h=q.sy,t=N7r(r.dtype,e.dtype),g=r.offset,x=e.offset,o=r.data,i=e.data,s=y[0],v=h[0],E=p[1];E>0;)for(E<t?(d=E,E=0):(d=t,E-=t),f=g+E*y[1],c=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=c+b*h[0],n=y[1]-m*y[0],u=h[1]-m*h[0],_=0;_<d;_++){for(A=0;A<m;A++)i[w]=a(o[S]),S+=s,w+=v;S+=n,w+=u}}Jz.exports=D7r});var Hz=l((ace,Kz)=>{"use strict";var k7r=Rr(),R7r=kr();function V7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N;for(N=k7r(r.shape,r.strides,e.strides),h=N.sh,w=N.sx,A=N.sy,t=R7r(r.dtype,e.dtype),_=r.offset,b=e.offset,o=r.data,i=e.data,s=w[0],u=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),v=w[2]-x*w[1],c=A[2]-x*A[1],p=m+D*w[1],d=y+D*A[1],O=h[0];O>0;)for(O<t?(g=O,O=0):(g=t,O-=t),E=p+O*w[0],q=d+O*A[0],n=w[1]-g*w[0],f=A[1]-g*A[0],I=0;I<S;I++){for(T=0;T<x;T++){for(j=0;j<g;j++)i[q]=a(o[E]),E+=s,q+=u;E+=n,q+=f}E+=v,q+=c}}Kz.exports=V7r});var Qz=l((tce,Zz)=>{"use strict";var z7r=Rr(),B7r=kr();function P7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L;for(L=z7r(r.shape,r.strides,e.strides),w=L.sh,q=L.sx,j=L.sy,t=B7r(r.dtype,e.dtype),T=r.offset,I=e.offset,o=r.data,i=e.data,s=q[0],f=j[0],F=w[3];F>0;)for(F<t?(E=F,F=0):(E=t,F-=t),h=T+F*q[3],S=I+F*j[3],P=w[2];P>0;)for(P<t?(b=P,P=0):(b=t,P-=t),u=q[3]-b*q[2],m=j[3]-b*j[2],y=h+P*q[2],x=S+P*j[2],B=w[1];B>0;)for(B<t?(_=B,B=0):(_=t,B-=t),v=q[2]-_*q[1],p=j[2]-_*j[1],d=y+B*q[1],g=x+B*j[1],R=w[0];R>0;)for(R<t?(A=R,R=0):(A=t,R-=t),O=d+R*q[0],D=g+R*j[0],n=q[1]-A*q[0],c=j[1]-A*j[0],z=0;z<E;z++){for(V=0;V<b;V++){for(N=0;N<_;N++){for(k=0;k<A;k++)i[D]=a(o[O]),O+=s,D+=f;O+=n,D+=c}O+=v,D+=p}O+=u,D+=m}}Zz.exports=P7r});var eB=l((ice,rB)=>{"use strict";var F7r=Rr(),L7r=kr();function C7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W;for(W=F7r(r.shape,r.strides,e.strides),E=W.sh,D=W.sx,k=W.sy,t=L7r(r.dtype,e.dtype),N=r.offset,V=e.offset,o=r.data,i=e.data,s=D[0],c=k[0],$=E[4];$>0;)for($<t?(O=$,$=0):(O=t,$-=t),S=N+$*D[4],b=V+$*k[4],Y=E[3];Y>0;)for(Y<t?(I=Y,Y=0):(I=t,Y-=t),f=D[4]-I*D[3],y=k[4]-I*k[3],x=S+Y*D[3],_=b+Y*k[3],G=E[2];G>0;)for(G<t?(T=G,G=0):(T=t,G-=t),u=D[3]-T*D[2],d=k[3]-T*k[2],g=x+G*D[2],A=_+G*k[2],M=E[1];M>0;)for(M<t?(j=M,M=0):(j=t,M-=t),v=D[2]-j*D[1],m=k[2]-j*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),z=h+U*D[0],R=w+U*k[0],n=D[1]-q*D[0],p=k[1]-q*k[0],C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(B=0;B<q;B++)i[R]=a(o[z]),z+=s,R+=c;z+=n,R+=p}z+=v,R+=m}z+=u,R+=d}z+=f,R+=y}}rB.exports=C7r});var tB=l((oce,aB)=>{"use strict";var U7r=Rr(),M7r=kr();function G7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr;for(rr=U7r(r.shape,r.strides,e.strides),I=rr.sh,R=rr.sx,B=rr.sy,t=M7r(r.dtype,e.dtype),P=r.offset,F=e.offset,o=r.data,i=e.data,s=R[0],p=B[0],Z=I[5];Z>0;)for(Z<t?(z=Z,Z=0):(z=t,Z-=t),_=P+Z*R[5],T=F+Z*B[5],Q=I[4];Q>0;)for(Q<t?(V=Q,Q=0):(V=t,Q-=t),c=R[5]-V*R[4],g=B[5]-V*B[4],A=_+Q*R[4],j=T+Q*B[4],H=I[3];H>0;)for(H<t?(N=H,H=0):(N=t,H-=t),f=R[4]-N*R[3],h=B[4]-N*B[3],w=A+H*R[3],q=j+H*B[3],K=I[2];K>0;)for(K<t?(k=K,K=0):(k=t,K-=t),u=R[3]-k*R[2],y=B[3]-k*B[2],S=w+K*R[2],E=q+K*B[2],X=I[1];X>0;)for(X<t?(D=X,X=0):(D=t,X-=t),v=R[2]-D*R[1],d=B[2]-D*B[1],x=S+X*R[1],b=E+X*B[1],J=I[0];J>0;)for(J<t?(O=J,J=0):(O=t,J-=t),L=x+J*R[0],C=b+J*B[0],n=R[1]-O*R[0],m=B[1]-O*B[0],W=0;W<z;W++){for($=0;$<V;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++)i[C]=a(o[L]),L+=s,C+=p;L+=n,C+=m}L+=v,C+=d}L+=u,C+=y}L+=f,C+=h}L+=c,C+=g}}aB.exports=G7r});var oB=l((sce,iB)=>{"use strict";var $7r=Rr(),Y7r=kr();function W7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr;for(nr=$7r(r.shape,r.strides,e.strides),N=nr.sh,C=nr.sx,U=nr.sy,t=Y7r(r.dtype,e.dtype),M=r.offset,G=e.offset,o=r.data,i=e.data,s=C[0],m=U[0],sr=N[6];sr>0;)for(sr<t?(L=sr,sr=0):(L=t,sr-=t),q=M+sr*C[6],k=G+sr*U[6],or=N[5];or>0;)for(or<t?(F=or,or=0):(F=t,or-=t),p=C[6]-F*C[5],S=U[6]-F*U[5],E=q+or*C[5],D=k+or*U[5],tr=N[4];tr>0;)for(tr<t?(P=tr,tr=0):(P=t,tr-=t),c=C[5]-P*C[4],x=U[5]-P*U[4],b=E+tr*C[4],O=D+tr*U[4],ir=N[3];ir>0;)for(ir<t?(B=ir,ir=0):(B=t,ir-=t),f=C[4]-B*C[3],g=U[4]-B*U[3],_=b+ir*C[3],I=O+ir*U[3],er=N[2];er>0;)for(er<t?(R=er,er=0):(R=t,er-=t),u=C[3]-R*C[2],h=U[3]-R*U[2],A=_+er*C[2],T=I+er*U[2],ar=N[1];ar>0;)for(ar<t?(z=ar,ar=0):(z=t,ar-=t),v=C[2]-z*C[1],y=U[2]-z*U[1],w=A+ar*C[1],j=T+ar*U[1],rr=N[0];rr>0;)for(rr<t?(V=rr,rr=0):(V=t,rr-=t),Y=w+rr*C[0],$=j+rr*U[0],n=C[1]-V*C[0],d=U[1]-V*U[0],Z=0;Z<L;Z++){for(Q=0;Q<F;Q++){for(H=0;H<P;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<z;J++){for(W=0;W<V;W++)i[$]=a(o[Y]),Y+=s,$+=m;Y+=n,$+=d}Y+=v,$+=y}Y+=u,$+=h}Y+=f,$+=g}Y+=c,$+=x}Y+=p,$+=S}}iB.exports=W7r});var nB=l((nce,sB)=>{"use strict";var J7r=Rr(),X7r=kr();function K7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr;for(yr=J7r(r.shape,r.strides,e.strides),B=yr.sh,$=yr.sx,W=yr.sy,t=X7r(r.dtype,e.dtype),J=r.offset,X=e.offset,o=r.data,i=e.data,s=$[0],d=W[0],dr=B[7];dr>0;)for(dr<t?(Y=dr,dr=0):(Y=t,dr-=t),I=J+dr*$[7],R=X+dr*W[7],pr=B[6];pr>0;)for(pr<t?(G=pr,pr=0):(G=t,pr-=t),m=$[7]-G*$[6],A=W[7]-G*W[6],T=I+pr*$[6],z=R+pr*W[6],fr=B[5];fr>0;)for(fr<t?(M=fr,fr=0):(M=t,fr-=t),p=$[6]-M*$[5],w=W[6]-M*W[5],j=T+fr*$[5],V=z+fr*W[5],lr=B[4];lr>0;)for(lr<t?(U=lr,lr=0):(U=t,lr-=t),c=$[5]-U*$[4],S=W[5]-U*W[4],q=j+lr*$[4],N=V+lr*W[4],ur=B[3];ur>0;)for(ur<t?(C=ur,ur=0):(C=t,ur-=t),f=$[4]-C*$[3],x=W[4]-C*W[3],E=q+ur*$[3],k=N+ur*W[3],vr=B[2];vr>0;)for(vr<t?(L=vr,vr=0):(L=t,vr-=t),u=$[3]-L*$[2],g=W[3]-L*W[2],b=E+vr*$[2],D=k+vr*W[2],nr=B[1];nr>0;)for(nr<t?(F=nr,nr=0):(F=t,nr-=t),v=$[2]-F*$[1],h=W[2]-F*W[1],_=b+nr*$[1],O=D+nr*W[1],sr=B[0];sr>0;)for(sr<t?(P=sr,sr=0):(P=t,sr-=t),K=_+sr*$[0],H=O+sr*W[0],n=$[1]-P*$[0],y=W[1]-P*W[0],or=0;or<Y;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<C;ar++){for(rr=0;rr<L;rr++){for(Z=0;Z<F;Z++){for(Q=0;Q<P;Q++)i[H]=a(o[K]),K+=s,H+=d;K+=n,H+=y}K+=v,H+=h}K+=u,H+=g}K+=f,H+=x}K+=c,H+=S}K+=p,H+=w}K+=m,H+=A}}sB.exports=K7r});var uB=l((vce,vB)=>{"use strict";var H7r=Rr(),Z7r=kr();function Q7r(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr,Er;for(Er=H7r(r.shape,r.strides,e.strides),C=Er.sh,H=Er.sx,Q=Er.sy,t=Z7r(r.dtype,e.dtype),Z=r.offset,rr=e.offset,o=r.data,i=e.data,s=H[0],y=Q[0],hr=C[8];hr>0;)for(hr<t?(K=hr,hr=0):(K=t,hr-=t),k=Z+hr*H[8],L=rr+hr*Q[8],xr=C[7];xr>0;)for(xr<t?(X=xr,xr=0):(X=t,xr-=t),d=H[8]-X*H[7],b=Q[8]-X*Q[7],D=k+xr*H[7],F=L+xr*Q[7],br=C[6];br>0;)for(br<t?(J=br,br=0):(J=t,br-=t),m=H[7]-J*H[6],_=Q[7]-J*Q[6],O=D+br*H[6],P=F+br*Q[6],qr=C[5];qr>0;)for(qr<t?(W=qr,qr=0):(W=t,qr-=t),p=H[6]-W*H[5],A=Q[6]-W*Q[5],I=O+qr*H[5],B=P+qr*Q[5],gr=C[4];gr>0;)for(gr<t?($=gr,gr=0):($=t,gr-=t),c=H[5]-$*H[4],w=Q[5]-$*Q[4],T=I+gr*H[4],R=B+gr*Q[4],mr=C[3];mr>0;)for(mr<t?(Y=mr,mr=0):(Y=t,mr-=t),f=H[4]-Y*H[3],S=Q[4]-Y*Q[3],j=T+mr*H[3],z=R+mr*Q[3],yr=C[2];yr>0;)for(yr<t?(G=yr,yr=0):(G=t,yr-=t),u=H[3]-G*H[2],x=Q[3]-G*Q[2],q=j+yr*H[2],V=z+yr*Q[2],dr=C[1];dr>0;)for(dr<t?(M=dr,dr=0):(M=t,dr-=t),v=H[2]-M*H[1],g=Q[2]-M*Q[1],E=q+dr*H[1],N=V+dr*Q[1],pr=C[0];pr>0;)for(pr<t?(U=pr,pr=0):(U=t,pr-=t),ar=E+pr*H[0],er=N+pr*Q[0],n=H[1]-U*H[0],h=Q[1]-U*Q[0],fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++){for(sr=0;sr<Y;sr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++){for(ir=0;ir<U;ir++)i[er]=a(o[ar]),ar+=s,er+=y;ar+=n,er+=h}ar+=v,er+=g}ar+=u,er+=x}ar+=f,er+=S}ar+=c,er+=w}ar+=p,er+=A}ar+=m,er+=_}ar+=d,er+=b}}vB.exports=Q7r});var lB=l((uce,fB)=>{"use strict";var rNr=Rr(),eNr=kr();function aNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr,Er,Ar,_r,jr,Or,Dr,Vr,Kr;for(Kr=rNr(r.shape,r.strides,e.strides),Y=Kr.sh,er=Kr.sx,ir=Kr.sy,t=eNr(r.dtype,e.dtype),tr=r.offset,or=e.offset,o=r.data,i=e.data,s=er[0],h=ir[0],Vr=Y[9];Vr>0;)for(Vr<t?(ar=Vr,Vr=0):(ar=t,Vr-=t),z=tr+Vr*er[9],G=or+Vr*ir[9],Dr=Y[8];Dr>0;)for(Dr<t?(rr=Dr,Dr=0):(rr=t,Dr-=t),y=er[9]-rr*er[8],q=ir[9]-rr*ir[8],V=z+Dr*er[8],M=G+Dr*ir[8],Or=Y[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=V+Or*er[7],U=M+Or*ir[7],jr=Y[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],C=U+jr*ir[6],_r=Y[5];_r>0;)for(_r<t?(H=_r,_r=0):(H=t,_r-=t),p=er[6]-H*er[5],_=ir[6]-H*ir[5],D=k+_r*er[5],L=C+_r*ir[5],Ar=Y[4];Ar>0;)for(Ar<t?(K=Ar,Ar=0):(K=t,Ar-=t),c=er[5]-K*er[4],A=ir[5]-K*ir[4],O=D+Ar*er[4],F=L+Ar*ir[4],Er=Y[3];Er>0;)for(Er<t?(X=Er,Er=0):(X=t,Er-=t),f=er[4]-X*er[3],w=ir[4]-X*ir[3],I=O+Er*er[3],P=F+Er*ir[3],hr=Y[2];hr>0;)for(hr<t?(J=hr,hr=0):(J=t,hr-=t),u=er[3]-J*er[2],S=ir[3]-J*ir[2],T=I+hr*er[2],B=P+hr*ir[2],xr=Y[1];xr>0;)for(xr<t?(W=xr,xr=0):(W=t,xr-=t),v=er[2]-W*er[1],x=ir[2]-W*ir[1],j=T+xr*er[1],R=B+xr*ir[1],br=Y[0];br>0;)for(br<t?($=br,br=0):($=t,br-=t),sr=j+br*er[0],nr=R+br*ir[0],n=er[1]-$*er[0],g=ir[1]-$*ir[0],qr=0;qr<ar;qr++){for(gr=0;gr<rr;gr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<K;pr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(ur=0;ur<W;ur++){for(vr=0;vr<$;vr++)i[nr]=a(o[sr]),sr+=s,nr+=h;sr+=n,nr+=g}sr+=v,nr+=x}sr+=u,nr+=S}sr+=f,nr+=w}sr+=c,nr+=A}sr+=p,nr+=_}sr+=m,nr+=b}sr+=d,nr+=E}sr+=y,nr+=q}}fB.exports=aNr});var dB=l((fce,cB)=>{"use strict";function tNr(r,e,a){e.accessors[1](e.data,e.offset,a(r.accessors[0](r.data,r.offset)))}cB.exports=tNr});var yB=l((lce,pB)=>{"use strict";function iNr(r,e,a){var t,o,i,s,n,v,u,f,c,p;for(u=r.shape[0],n=r.strides[0],v=e.strides[0],f=r.offset,c=e.offset,t=r.data,o=e.data,i=r.accessors[0],s=e.accessors[1],p=0;p<u;p++)s(o,c,a(i(t,f))),f+=n,c+=v}pB.exports=iNr});var hB=l((cce,mB)=>{"use strict";function oNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S;for(c=r.shape,d=r.strides,y=e.strides,r.order==="row-major"?(p=c[1],m=c[0],n=d[1],v=d[0]-p*d[1],u=y[1],f=y[0]-p*y[1]):(p=c[0],m=c[1],n=d[0],v=d[1]-p*d[0],u=y[0],f=y[1]-p*y[0]),h=r.offset,g=e.offset,t=r.data,o=e.data,i=r.accessors[0],s=e.accessors[1],S=0;S<m;S++){for(x=0;x<p;x++)s(o,g,a(i(t,h))),h+=n,g+=u;h+=v,g+=f}}mB.exports=oNr});var bB=l((dce,gB)=>{"use strict";function sNr(r,e,a){var t,o,i,s,n,v,u,f,c,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],n=g[2],v=g[1]-d*g[2],u=g[0]-y*g[1],f=x[2],c=x[1]-d*x[2],p=x[0]-y*x[1]):(d=m[0],y=m[1],h=m[2],n=g[0],v=g[1]-d*g[0],u=g[2]-y*g[1],f=x[0],c=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],s=e.accessors[1],b=0;b<h;b++){for(_=0;_<y;_++){for(A=0;A<d;A++)s(o,w,a(i(t,S))),S+=n,w+=f;S+=v,w+=c}S+=u,w+=p}}gB.exports=sNr});var qB=l((pce,xB)=>{"use strict";function nNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T;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],n=w[3],v=w[2]-h*w[3],u=w[1]-g*w[2],f=w[0]-x*w[1],c=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],n=w[0],v=w[1]-h*w[0],u=w[2]-g*w[1],f=w[3]-x*w[2],c=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],s=e.accessors[1],T=0;T<S;T++){for(j=0;j<x;j++){for(q=0;q<g;q++){for(E=0;E<h;E++)s(o,b,a(i(t,_))),_+=n,b+=c;_+=v,b+=p}_+=u,b+=m}_+=f,b+=d}}xB.exports=nNr});var SB=l((yce,wB)=>{"use strict";function vNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,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],n=b[4],v=b[3]-x*b[4],u=b[2]-S*b[3],f=b[1]-w*b[2],c=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],n=b[0],v=b[1]-x*b[0],u=b[2]-S*b[1],f=b[3]-w*b[2],c=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,j=e.offset,t=r.data,o=e.data,i=r.accessors[0],s=e.accessors[1],k=0;k<_;k++){for(D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<x;T++)s(o,j,a(i(t,q))),q+=n,j+=p;q+=v,j+=m}q+=u,j+=d}q+=f,j+=y}q+=c,j+=h}}wB.exports=vNr});var AB=l((mce,EB)=>{"use strict";function uNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R;for(S=r.shape,j=r.strides,T=e.strides,r.order==="row-major"?(w=S[5],A=S[4],_=S[3],b=S[2],E=S[1],q=S[0],n=j[5],v=j[4]-w*j[5],u=j[3]-A*j[4],f=j[2]-_*j[3],c=j[1]-b*j[2],p=j[0]-E*j[1],m=T[5],d=T[4]-w*T[5],y=T[3]-A*T[4],h=T[2]-_*T[3],g=T[1]-b*T[2],x=T[0]-E*T[1]):(w=S[0],A=S[1],_=S[2],b=S[3],E=S[4],q=S[5],n=j[0],v=j[1]-w*j[0],u=j[2]-A*j[1],f=j[3]-_*j[2],c=j[4]-b*j[3],p=j[5]-E*j[4],m=T[0],d=T[1]-w*T[0],y=T[2]-A*T[1],h=T[3]-_*T[2],g=T[4]-b*T[3],x=T[5]-E*T[4]),I=r.offset,O=e.offset,t=r.data,o=e.data,i=r.accessors[0],s=e.accessors[1],R=0;R<q;R++){for(z=0;z<E;z++){for(V=0;V<b;V++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)s(o,O,a(i(t,I))),I+=n,O+=m;I+=v,O+=d}I+=u,O+=y}I+=f,O+=h}I+=c,O+=g}I+=p,O+=x}}EB.exports=uNr});var jB=l((hce,_B)=>{"use strict";function fNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L;for(A=r.shape,O=r.strides,D=e.strides,r.order==="row-major"?(_=A[6],b=A[5],E=A[4],q=A[3],j=A[2],T=A[1],I=A[0],n=O[6],v=O[5]-_*O[6],u=O[4]-b*O[5],f=O[3]-E*O[4],c=O[2]-q*O[3],p=O[1]-j*O[2],m=O[0]-T*O[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]-j*D[2],w=D[0]-T*D[1]):(_=A[0],b=A[1],E=A[2],q=A[3],j=A[4],T=A[5],I=A[6],n=O[0],v=O[1]-_*O[0],u=O[2]-b*O[1],f=O[3]-E*O[2],c=O[4]-q*O[3],p=O[5]-j*O[4],m=O[6]-T*O[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]-j*D[4],w=D[6]-T*D[5]),k=r.offset,N=e.offset,t=r.data,o=e.data,i=r.accessors[0],s=e.accessors[1],L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(z=0;z<b;z++){for(V=0;V<_;V++)s(o,N,a(i(t,k))),k+=n,N+=d;k+=v,N+=y}k+=u,N+=h}k+=f,N+=g}k+=c,N+=x}k+=p,N+=S}k+=m,N+=w}}_B.exports=fNr});var OB=l((gce,TB)=>{"use strict";function lNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G;for(b=r.shape,N=r.strides,V=e.strides,r.order==="row-major"?(E=b[7],q=b[6],j=b[5],T=b[4],I=b[3],O=b[2],D=b[1],k=b[0],n=N[7],v=N[6]-E*N[7],u=N[5]-q*N[6],f=N[4]-j*N[5],c=N[3]-T*N[4],p=N[2]-I*N[3],m=N[1]-O*N[2],d=N[0]-D*N[1],y=V[7],h=V[6]-E*V[7],g=V[5]-q*V[6],x=V[4]-j*V[5],S=V[3]-T*V[4],w=V[2]-I*V[3],A=V[1]-O*V[2],_=V[0]-D*V[1]):(E=b[0],q=b[1],j=b[2],T=b[3],I=b[4],O=b[5],D=b[6],k=b[7],n=N[0],v=N[1]-E*N[0],u=N[2]-q*N[1],f=N[3]-j*N[2],c=N[4]-T*N[3],p=N[5]-I*N[4],m=N[6]-O*N[5],d=N[7]-D*N[6],y=V[0],h=V[1]-E*V[0],g=V[2]-q*V[1],x=V[3]-j*V[2],S=V[4]-T*V[3],w=V[5]-I*V[4],A=V[6]-O*V[5],_=V[7]-D*V[6]),z=r.offset,R=e.offset,t=r.data,o=e.data,i=r.accessors[0],s=e.accessors[1],G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(B=0;B<E;B++)s(o,R,a(i(t,z))),z+=n,R+=y;z+=v,R+=h}z+=u,R+=g}z+=f,R+=x}z+=c,R+=S}z+=p,R+=w}z+=m,R+=A}z+=d,R+=_}}TB.exports=lNr});var NB=l((bce,IB)=>{"use strict";function cNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J;for(q=r.shape,R=r.strides,B=e.strides,r.order==="row-major"?(j=q[8],T=q[7],I=q[6],O=q[5],D=q[4],k=q[3],N=q[2],V=q[1],z=q[0],n=R[8],v=R[7]-j*R[8],u=R[6]-T*R[7],f=R[5]-I*R[6],c=R[4]-O*R[5],p=R[3]-D*R[4],m=R[2]-k*R[3],d=R[1]-N*R[2],y=R[0]-V*R[1],h=B[8],g=B[7]-j*B[8],x=B[6]-T*B[7],S=B[5]-I*B[6],w=B[4]-O*B[5],A=B[3]-D*B[4],_=B[2]-k*B[3],b=B[1]-N*B[2],E=B[0]-V*B[1]):(j=q[0],T=q[1],I=q[2],O=q[3],D=q[4],k=q[5],N=q[6],V=q[7],z=q[8],n=R[0],v=R[1]-j*R[0],u=R[2]-T*R[1],f=R[3]-I*R[2],c=R[4]-O*R[3],p=R[5]-D*R[4],m=R[6]-k*R[5],d=R[7]-N*R[6],y=R[8]-V*R[7],h=B[0],g=B[1]-j*B[0],x=B[2]-T*B[1],S=B[3]-I*B[2],w=B[4]-O*B[3],A=B[5]-D*B[4],_=B[6]-k*B[5],b=B[7]-N*B[6],E=B[8]-V*B[7]),P=r.offset,F=e.offset,t=r.data,o=e.data,i=r.accessors[0],s=e.accessors[1],J=0;J<z;J++){for(W=0;W<V;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++)s(o,F,a(i(t,P))),P+=n,F+=h;P+=v,F+=g}P+=u,F+=x}P+=f,F+=S}P+=c,F+=w}P+=p,F+=A}P+=m,F+=_}P+=d,F+=b}P+=y,F+=E}}IB.exports=cNr});var kB=l((xce,DB)=>{"use strict";function dNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q;for(T=r.shape,F=r.strides,L=e.strides,r.order==="row-major"?(I=T[9],O=T[8],D=T[7],k=T[6],N=T[5],V=T[4],z=T[3],R=T[2],B=T[1],P=T[0],n=F[9],v=F[8]-I*F[9],u=F[7]-O*F[8],f=F[6]-D*F[7],c=F[5]-k*F[6],p=F[4]-N*F[5],m=F[3]-V*F[4],d=F[2]-z*F[3],y=F[1]-R*F[2],h=F[0]-B*F[1],g=L[9],x=L[8]-I*L[9],S=L[7]-O*L[8],w=L[6]-D*L[7],A=L[5]-k*L[6],_=L[4]-N*L[5],b=L[3]-V*L[4],E=L[2]-z*L[3],q=L[1]-R*L[2],j=L[0]-B*L[1]):(I=T[0],O=T[1],D=T[2],k=T[3],N=T[4],V=T[5],z=T[6],R=T[7],B=T[8],P=T[9],n=F[0],v=F[1]-I*F[0],u=F[2]-O*F[1],f=F[3]-D*F[2],c=F[4]-k*F[3],p=F[5]-N*F[4],m=F[6]-V*F[5],d=F[7]-z*F[6],y=F[8]-R*F[7],h=F[9]-B*F[8],g=L[0],x=L[1]-I*L[0],S=L[2]-O*L[1],w=L[3]-D*L[2],A=L[4]-k*L[3],_=L[5]-N*L[4],b=L[6]-V*L[5],E=L[7]-z*L[6],q=L[8]-R*L[7],j=L[9]-B*L[8]),C=r.offset,U=e.offset,t=r.data,o=e.data,i=r.accessors[0],s=e.accessors[1],Q=0;Q<P;Q++){for(H=0;H<B;H++){for(K=0;K<R;K++){for(X=0;X<z;X++){for(J=0;J<V;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++){for(G=0;G<O;G++){for(M=0;M<I;M++)s(o,U,a(i(t,C))),C+=n,U+=g;C+=v,U+=x}C+=u,U+=S}C+=f,U+=w}C+=c,U+=A}C+=p,U+=_}C+=m,U+=b}C+=d,U+=E}C+=y,U+=q}C+=h,U+=j}}DB.exports=dNr});var BB=l((qce,zB)=>{"use strict";var pNr=Wr(),RB=ia(),VB="throw";function yNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g;for(f=r.shape,n=pNr(f),t=r.data,o=e.data,c=r.strides,p=e.strides,m=r.offset,d=e.offset,i=r.order,s=e.order,v=r.accessors[0],u=e.accessors[1],g=0;g<n;g++)y=RB(f,c,m,i,g,VB),h=RB(f,p,d,s,g,VB),u(o,h,a(v(t,y)))}zB.exports=yNr});var FB=l((wce,PB)=>{"use strict";function mNr(r,e,a){e.data[e.offset]=a(r.data[r.offset])}PB.exports=mNr});var CB=l((Sce,LB)=>{"use strict";function hNr(r,e,a){var t,o,i,s,n,v,u,f;for(n=r.shape[0],i=r.strides[0],s=e.strides[0],v=r.offset,u=e.offset,t=r.data,o=e.data,f=0;f<n;f++)o[u]=a(t[v]),v+=i,u+=s}LB.exports=hNr});var MB=l((Ece,UB)=>{"use strict";function gNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g;for(u=r.shape,p=r.strides,m=e.strides,r.order==="row-major"?(f=u[1],c=u[0],i=p[1],s=p[0]-f*p[1],n=m[1],v=m[0]-f*m[1]):(f=u[0],c=u[1],i=p[0],s=p[1]-f*p[0],n=m[0],v=m[1]-f*m[0]),d=r.offset,y=e.offset,t=r.data,o=e.data,g=0;g<c;g++){for(h=0;h<f;h++)o[y]=a(t[d]),d+=i,y+=n;d+=s,y+=v}}UB.exports=gNr});var $B=l((Ace,GB)=>{"use strict";function bNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A;for(c=r.shape,y=r.strides,h=e.strides,r.order==="row-major"?(p=c[2],m=c[1],d=c[0],i=y[2],s=y[1]-p*y[2],n=y[0]-m*y[1],v=h[2],u=h[1]-p*h[2],f=h[0]-m*h[1]):(p=c[0],m=c[1],d=c[2],i=y[0],s=y[1]-p*y[0],n=y[2]-m*y[1],v=h[0],u=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+=v;g+=s,x+=u}g+=n,x+=f}}GB.exports=bNr});var WB=l((_ce,YB)=>{"use strict";function xNr(r,e,a){var t,o,i,s,n,v,u,f,c,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],s=x[2]-d*x[3],n=x[1]-y*x[2],v=x[0]-h*x[1],u=S[3],f=S[2]-d*S[3],c=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],s=x[1]-d*x[0],n=x[2]-y*x[1],v=x[3]-h*x[2],u=S[0],f=S[1]-d*S[0],c=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+=u;w+=s,A+=f}w+=n,A+=c}w+=v,A+=p}}YB.exports=xNr});var XB=l((jce,JB)=>{"use strict";function qNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O;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],s=A[3]-h*A[4],n=A[2]-g*A[3],v=A[1]-x*A[2],u=A[0]-S*A[1],f=_[4],c=_[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],s=A[1]-h*A[0],n=A[2]-g*A[1],v=A[3]-x*A[2],u=A[4]-S*A[3],f=_[0],c=_[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,O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<x;T++){for(j=0;j<g;j++){for(q=0;q<h;q++)o[E]=a(t[b]),b+=i,E+=f;b+=s,E+=c}b+=n,E+=p}b+=v,E+=m}b+=u,E+=d}}JB.exports=qNr});var HB=l((Tce,KB)=>{"use strict";function wNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V;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],s=E[4]-x*E[5],n=E[3]-S*E[4],v=E[2]-w*E[3],u=E[1]-A*E[2],f=E[0]-_*E[1],c=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],s=E[1]-x*E[0],n=E[2]-S*E[1],v=E[3]-w*E[2],u=E[4]-A*E[3],f=E[5]-_*E[4],c=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]),j=r.offset,T=e.offset,t=r.data,o=e.data,V=0;V<b;V++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(O=0;O<S;O++){for(I=0;I<x;I++)o[T]=a(t[j]),j+=i,T+=c;j+=s,T+=p}j+=n,T+=m}j+=v,T+=d}j+=u,T+=y}j+=f,T+=h}}KB.exports=wNr});var QB=l((Oce,ZB)=>{"use strict";function SNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P;for(S=r.shape,T=r.strides,I=e.strides,r.order==="row-major"?(w=S[6],A=S[5],_=S[4],b=S[3],E=S[2],q=S[1],j=S[0],i=T[6],s=T[5]-w*T[6],n=T[4]-A*T[5],v=T[3]-_*T[4],u=T[2]-b*T[3],f=T[1]-E*T[2],c=T[0]-q*T[1],p=I[6],m=I[5]-w*I[6],d=I[4]-A*I[5],y=I[3]-_*I[4],h=I[2]-b*I[3],g=I[1]-E*I[2],x=I[0]-q*I[1]):(w=S[0],A=S[1],_=S[2],b=S[3],E=S[4],q=S[5],j=S[6],i=T[0],s=T[1]-w*T[0],n=T[2]-A*T[1],v=T[3]-_*T[2],u=T[4]-b*T[3],f=T[5]-E*T[4],c=T[6]-q*T[5],p=I[0],m=I[1]-w*I[0],d=I[2]-A*I[1],y=I[3]-_*I[2],h=I[4]-b*I[3],g=I[5]-E*I[4],x=I[6]-q*I[5]),O=r.offset,D=e.offset,t=r.data,o=e.data,P=0;P<j;P++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(z=0;z<b;z++){for(V=0;V<_;V++){for(N=0;N<A;N++){for(k=0;k<w;k++)o[D]=a(t[O]),O+=i,D+=p;O+=s,D+=m}O+=n,D+=d}O+=v,D+=y}O+=u,D+=h}O+=f,D+=g}O+=c,D+=x}}ZB.exports=SNr});var eP=l((Ice,rP)=>{"use strict";function ENr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,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],j=A[3],T=A[2],I=A[1],O=A[0],i=D[7],s=D[6]-_*D[7],n=D[5]-b*D[6],v=D[4]-E*D[5],u=D[3]-q*D[4],f=D[2]-j*D[3],c=D[1]-T*D[2],p=D[0]-I*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]-j*k[3],S=k[1]-T*k[2],w=k[0]-I*k[1]):(_=A[0],b=A[1],E=A[2],q=A[3],j=A[4],T=A[5],I=A[6],O=A[7],i=D[0],s=D[1]-_*D[0],n=D[2]-b*D[1],v=D[3]-E*D[2],u=D[4]-q*D[3],f=D[5]-j*D[4],c=D[6]-T*D[5],p=D[7]-I*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]-j*k[4],S=k[6]-T*k[5],w=k[7]-I*k[6]),N=r.offset,V=e.offset,t=r.data,o=e.data,U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(B=0;B<E;B++){for(R=0;R<b;R++){for(z=0;z<_;z++)o[V]=a(t[N]),N+=i,V+=m;N+=s,V+=d}N+=n,V+=y}N+=v,V+=h}N+=u,V+=g}N+=f,V+=x}N+=c,V+=S}N+=p,V+=w}}rP.exports=ENr});var tP=l((Nce,aP)=>{"use strict";function ANr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$;for(b=r.shape,V=r.strides,z=e.strides,r.order==="row-major"?(E=b[8],q=b[7],j=b[6],T=b[5],I=b[4],O=b[3],D=b[2],k=b[1],N=b[0],i=V[8],s=V[7]-E*V[8],n=V[6]-q*V[7],v=V[5]-j*V[6],u=V[4]-T*V[5],f=V[3]-I*V[4],c=V[2]-O*V[3],p=V[1]-D*V[2],m=V[0]-k*V[1],d=z[8],y=z[7]-E*z[8],h=z[6]-q*z[7],g=z[5]-j*z[6],x=z[4]-T*z[5],S=z[3]-I*z[4],w=z[2]-O*z[3],A=z[1]-D*z[2],_=z[0]-k*z[1]):(E=b[0],q=b[1],j=b[2],T=b[3],I=b[4],O=b[5],D=b[6],k=b[7],N=b[8],i=V[0],s=V[1]-E*V[0],n=V[2]-q*V[1],v=V[3]-j*V[2],u=V[4]-T*V[3],f=V[5]-I*V[4],c=V[6]-O*V[5],p=V[7]-D*V[6],m=V[8]-k*V[7],d=z[0],y=z[1]-E*z[0],h=z[2]-q*z[1],g=z[3]-j*z[2],x=z[4]-T*z[3],S=z[5]-I*z[4],w=z[6]-O*z[5],A=z[7]-D*z[6],_=z[8]-k*z[7]),R=r.offset,B=e.offset,t=r.data,o=e.data,$=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++){for(F=0;F<q;F++){for(P=0;P<E;P++)o[B]=a(t[R]),R+=i,B+=d;R+=s,B+=y}R+=n,B+=h}R+=v,B+=g}R+=u,B+=x}R+=f,B+=S}R+=c,B+=w}R+=p,B+=A}R+=m,B+=_}}aP.exports=ANr});var oP=l((Dce,iP)=>{"use strict";function _Nr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K;for(q=r.shape,B=r.strides,P=e.strides,r.order==="row-major"?(j=q[9],T=q[8],I=q[7],O=q[6],D=q[5],k=q[4],N=q[3],V=q[2],z=q[1],R=q[0],i=B[9],s=B[8]-j*B[9],n=B[7]-T*B[8],v=B[6]-I*B[7],u=B[5]-O*B[6],f=B[4]-D*B[5],c=B[3]-k*B[4],p=B[2]-N*B[3],m=B[1]-V*B[2],d=B[0]-z*B[1],y=P[9],h=P[8]-j*P[9],g=P[7]-T*P[8],x=P[6]-I*P[7],S=P[5]-O*P[6],w=P[4]-D*P[5],A=P[3]-k*P[4],_=P[2]-N*P[3],b=P[1]-V*P[2],E=P[0]-z*P[1]):(j=q[0],T=q[1],I=q[2],O=q[3],D=q[4],k=q[5],N=q[6],V=q[7],z=q[8],R=q[9],i=B[0],s=B[1]-j*B[0],n=B[2]-T*B[1],v=B[3]-I*B[2],u=B[4]-O*B[3],f=B[5]-D*B[4],c=B[6]-k*B[5],p=B[7]-N*B[6],m=B[8]-V*B[7],d=B[9]-z*B[8],y=P[0],h=P[1]-j*P[0],g=P[2]-T*P[1],x=P[3]-I*P[2],S=P[4]-O*P[3],w=P[5]-D*P[4],A=P[6]-k*P[5],_=P[7]-N*P[6],b=P[8]-V*P[7],E=P[9]-z*P[8]),F=r.offset,L=e.offset,t=r.data,o=e.data,K=0;K<R;K++){for(X=0;X<z;X++){for(J=0;J<V;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++){for(G=0;G<O;G++){for(M=0;M<I;M++){for(U=0;U<T;U++){for(C=0;C<j;C++)o[L]=a(t[F]),F+=i,L+=y;F+=s,L+=h}F+=n,L+=g}F+=v,L+=x}F+=u,L+=S}F+=f,L+=w}F+=c,L+=A}F+=p,L+=_}F+=m,L+=b}F+=d,L+=E}}iP.exports=_Nr});var uP=l((kce,vP)=>{"use strict";var jNr=Wr(),sP=ia(),nP="throw";function TNr(r,e,a){var t,o,i,s,n,v,u,f,c,p,m,d,y;for(v=r.shape,n=jNr(v),t=r.data,o=e.data,u=r.strides,f=e.strides,c=r.offset,p=e.offset,i=r.order,s=e.order,y=0;y<n;y++)m=sP(v,u,c,i,y,nP),d=sP(v,f,p,s,y,nP),o[d]=a(t[m])}vP.exports=TNr});var yP=l((Rce,pP)=>{"use strict";var fP=ba(),lP=Ha(),cP=Yt(),ONr=Nz(),INr=kz(),NNr=Vz(),DNr=Bz(),kNr=Fz(),RNr=Cz(),VNr=Mz(),zNr=$z(),BNr=Wz(),PNr=Xz(),FNr=Hz(),LNr=Qz(),CNr=eB(),UNr=tB(),MNr=oB(),GNr=nB(),$Nr=uB(),YNr=lB(),WNr=dB(),JNr=yB(),XNr=hB(),KNr=bB(),HNr=qB(),ZNr=SB(),QNr=AB(),rDr=jB(),eDr=OB(),aDr=NB(),tDr=kB(),iDr=BB(),oDr=FB(),sDr=CB(),nDr=MB(),vDr=$B(),uDr=WB(),fDr=XB(),lDr=HB(),cDr=QB(),dDr=eP(),pDr=tP(),yDr=oP(),mDr=uP(),Ai=[oDr,sDr,nDr,vDr,uDr,fDr,lDr,cDr,dDr,pDr,yDr],wo=[WNr,JNr,XNr,KNr,HNr,ZNr,QNr,rDr,eDr,aDr,tDr],hDr=[PNr,FNr,LNr,CNr,UNr,MNr,GNr,$Nr,YNr],gDr=[ONr,INr,NNr,DNr,kNr,RNr,VNr,zNr,BNr],dP=Ai.length-1;function bDr(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x;if(y=cP(r[0]),h=cP(r[1]),i=y.shape,s=h.shape,a=i.length,a!==s.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+a+". ndims(y) == "+s.length+".");if(a===0)return y.accessorProtocol||h.accessorProtocol?wo[a](y,h,e):Ai[a](y,h,e);for(u=1,d=0,x=0;x<a;x++){if(g=i[x],g!==s[x])throw new Error("invalid arguments. Arrays must have the same shape.");u*=g,g===1&&(d+=1)}if(u!==0){if(a===1)return y.accessorProtocol||h.accessorProtocol?wo[a](y,h,e):Ai[a](y,h,e);if(f=y.strides,c=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=[c[x]],y.accessorProtocol||h.accessorProtocol?wo[1](y,h,e):Ai[1](y,h,e)}if(n=fP(f),v=fP(c),n!==0&&v!==0&&n===v){if(t=lP(i,f,y.offset),o=lP(s,c,h.offset),u===t[1]-t[0]+1&&u===o[1]-o[0]+1)return n===1?p=t[0]:p=t[1],v===1?m=o[0]:m=o[1],y.shape=[u],h.shape=y.shape,y.strides=[n],h.strides=[v],y.offset=p,h.offset=m,y.accessorProtocol||h.accessorProtocol?wo[1](y,h,e):Ai[1](y,h,e);if(a<=dP)return y.accessorProtocol||h.accessorProtocol?wo[a](y,h,e):Ai[a](y,h,e)}if(a<=dP)return y.accessorProtocol||h.accessorProtocol?gDr[a-2](y,h,e):hDr[a-2](y,h,e);if(y.accessorProtocol||h.accessorProtocol)return iDr(y,h,e);mDr(y,h,e)}}pP.exports=bDr});var hP=l((Vce,mP)=>{"use strict";var xDr=yP();mP.exports=xDr});var bP=l((zce,gP)=>{"use strict";var qDr=Rr(),wDr=kr();function SDr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k;for(O=qDr(r.shape,r.strides,e.strides),h=O.sh,S=O.sx,w=O.sy,i=wDr(r.dtype,e.dtype),A=r.offset,_=e.offset,s=r.data,n=e.data,f=S[0],p=w[0],v=r.accessors[0],u=e.accessors[1],k=0,I=h[1];I>0;)for(I<i?(x=I,I=0):(x=i,I-=i),d=A+I*S[1],y=_+I*w[1],T=h[0];T>0;)for(T<i?(g=T,T=0):(g=i,T-=i),b=d+T*S[0],E=y+T*w[0],c=S[1]-g*S[0],m=w[1]-g*w[0],j=0;j<x;j++){for(q=0;q<g;q++)D=t.call(o,v(s,b),k,[b,E],[r,e]),D!==void 0&&u(n,E,a(D)),b+=f,E+=p,k+=1;b+=c,E+=m}}gP.exports=SDr});var qP=l((Bce,xP)=>{"use strict";var EDr=Rr(),ADr=kr();function _Dr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F;for(B=EDr(r.shape,r.strides,e.strides),w=B.sh,E=B.sx,q=B.sy,i=ADr(r.dtype,e.dtype),j=r.offset,T=e.offset,s=r.data,n=e.data,f=E[0],m=q[0],v=r.accessors[0],u=e.accessors[1],F=0,R=w[2];R>0;)for(R<i?(b=R,R=0):(b=i,R-=i),g=j+R*E[2],S=T+R*q[2],z=w[1];z>0;)for(z<i?(_=z,z=0):(_=i,z-=i),p=E[2]-_*E[1],y=q[2]-_*q[1],h=g+z*E[1],x=S+z*q[1],V=w[0];V>0;)for(V<i?(A=V,V=0):(A=i,V-=i),I=h+V*E[0],O=x+V*q[0],c=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++)P=t.call(o,v(s,I),F,[I,O],[r,e]),P!==void 0&&u(n,O,a(P)),I+=f,O+=m,F+=1;I+=c,O+=d}I+=p,O+=y}}xP.exports=_Dr});var SP=l((Pce,wP)=>{"use strict";var jDr=Rr(),TDr=kr();function ODr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$;for(G=jDr(r.shape,r.strides,e.strides),E=G.sh,O=G.sx,D=G.sy,i=TDr(r.dtype,e.dtype),k=r.offset,N=e.offset,s=r.data,n=e.data,f=O[0],d=D[0],v=r.accessors[0],u=e.accessors[1],$=0,M=E[3];M>0;)for(M<i?(I=M,M=0):(I=i,M-=i),w=k+M*O[3],b=N+M*D[3],U=E[2];U>0;)for(U<i?(T=U,U=0):(T=i,U-=i),m=O[3]-T*O[2],g=D[3]-T*D[2],S=w+U*O[2],_=b+U*D[2],C=E[1];C>0;)for(C<i?(j=C,C=0):(j=i,C-=i),p=O[2]-j*O[1],h=D[2]-j*D[1],x=S+C*O[1],A=_+C*D[1],L=E[0];L>0;)for(L<i?(q=L,L=0):(q=i,L-=i),V=x+L*O[0],z=A+L*D[0],c=O[1]-q*O[0],y=D[1]-q*D[0],F=0;F<I;F++){for(P=0;P<T;P++){for(B=0;B<j;B++){for(R=0;R<q;R++)Y=t.call(o,v(s,V),$,[V,z],[r,e]),Y!==void 0&&u(n,z,a(Y)),V+=f,z+=d,$+=1;V+=c,z+=y}V+=p,z+=h}V+=m,z+=g}}wP.exports=ODr});var AP=l((Fce,EP)=>{"use strict";var IDr=Rr(),NDr=kr();function DDr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z;for(H=IDr(r.shape,r.strides,e.strides),I=H.sh,z=H.sx,R=H.sy,i=NDr(r.dtype,e.dtype),B=r.offset,P=e.offset,s=r.data,n=e.data,f=z[0],y=R[0],v=r.accessors[0],u=e.accessors[1],Z=0,K=I[4];K>0;)for(K<i?(V=K,K=0):(V=i,K-=i),b=B+K*z[4],T=P+K*R[4],X=I[3];X>0;)for(X<i?(N=X,X=0):(N=i,X-=i),d=z[4]-N*z[3],S=R[4]-N*R[3],_=b+X*z[3],j=T+X*R[3],J=I[2];J>0;)for(J<i?(k=J,J=0):(k=i,J-=i),m=z[3]-k*z[2],x=R[3]-k*R[2],A=_+J*z[2],q=j+J*R[2],W=I[1];W>0;)for(W<i?(D=W,W=0):(D=i,W-=i),p=z[2]-D*z[1],g=R[2]-D*R[1],w=A+W*z[1],E=q+W*R[1],$=I[0];$>0;)for($<i?(O=$,$=0):(O=i,$-=i),F=w+$*z[0],L=E+$*R[0],c=z[1]-O*z[0],h=R[1]-O*R[0],Y=0;Y<V;Y++){for(G=0;G<N;G++){for(M=0;M<k;M++){for(U=0;U<D;U++){for(C=0;C<O;C++)Q=t.call(o,v(s,F),Z,[F,L],[r,e]),Q!==void 0&&u(n,L,a(Q)),F+=f,L+=y,Z+=1;F+=c,L+=h}F+=p,L+=g}F+=m,L+=x}F+=d,L+=S}}EP.exports=DDr});var jP=l((Lce,_P)=>{"use strict";var kDr=Rr(),RDr=kr();function VDr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr;for(tr=kDr(r.shape,r.strides,e.strides),N=tr.sh,L=tr.sx,C=tr.sy,i=RDr(r.dtype,e.dtype),U=r.offset,M=e.offset,s=r.data,n=e.data,f=L[0],h=C[0],v=r.accessors[0],u=e.accessors[1],sr=0,ir=N[5];ir>0;)for(ir<i?(F=ir,ir=0):(F=i,ir-=i),j=U+ir*L[5],k=M+ir*C[5],er=N[4];er>0;)for(er<i?(P=er,er=0):(P=i,er-=i),y=L[5]-P*L[4],A=C[5]-P*C[4],q=j+er*L[4],D=k+er*C[4],ar=N[3];ar>0;)for(ar<i?(B=ar,ar=0):(B=i,ar-=i),d=L[4]-B*L[3],w=C[4]-B*C[3],E=q+ar*L[3],O=D+ar*C[3],rr=N[2];rr>0;)for(rr<i?(R=rr,rr=0):(R=i,rr-=i),m=L[3]-R*L[2],S=C[3]-R*C[2],b=E+rr*L[2],I=O+rr*C[2],Z=N[1];Z>0;)for(Z<i?(z=Z,Z=0):(z=i,Z-=i),p=L[2]-z*L[1],x=C[2]-z*C[1],_=b+Z*L[1],T=I+Z*C[1],Q=N[0];Q>0;)for(Q<i?(V=Q,Q=0):(V=i,Q-=i),G=_+Q*L[0],Y=T+Q*C[0],c=L[1]-V*L[0],g=C[1]-V*C[0],H=0;H<F;H++){for(K=0;K<P;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<z;W++){for($=0;$<V;$++)or=t.call(o,v(s,G),sr,[G,Y],[r,e]),or!==void 0&&u(n,Y,a(or)),G+=f,Y+=h,sr+=1;G+=c,Y+=g}G+=p,Y+=x}G+=m,Y+=S}G+=d,Y+=w}G+=y,Y+=A}}_P.exports=VDr});var OP=l((Cce,TP)=>{"use strict";var zDr=Rr(),BDr=kr();function PDr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr;for(fr=zDr(r.shape,r.strides,e.strides),B=fr.sh,Y=fr.sx,$=fr.sy,i=BDr(r.dtype,e.dtype),W=r.offset,J=e.offset,s=r.data,n=e.data,f=Y[0],g=$[0],v=r.accessors[0],u=e.accessors[1],dr=0,lr=B[6];lr>0;)for(lr<i?(G=lr,lr=0):(G=i,lr-=i),O=W+lr*Y[6],R=J+lr*$[6],ur=B[5];ur>0;)for(ur<i?(M=ur,ur=0):(M=i,ur-=i),h=Y[6]-M*Y[5],b=$[6]-M*$[5],I=O+ur*Y[5],z=R+ur*$[5],vr=B[4];vr>0;)for(vr<i?(U=vr,vr=0):(U=i,vr-=i),y=Y[5]-U*Y[4],_=$[5]-U*$[4],T=I+vr*Y[4],V=z+vr*$[4],nr=B[3];nr>0;)for(nr<i?(C=nr,nr=0):(C=i,nr-=i),d=Y[4]-C*Y[3],A=$[4]-C*$[3],j=T+nr*Y[3],N=V+nr*$[3],sr=B[2];sr>0;)for(sr<i?(L=sr,sr=0):(L=i,sr-=i),m=Y[3]-L*Y[2],w=$[3]-L*$[2],q=j+sr*Y[2],k=N+sr*$[2],or=B[1];or>0;)for(or<i?(F=or,or=0):(F=i,or-=i),p=Y[2]-F*Y[1],S=$[2]-F*$[1],E=q+or*Y[1],D=k+or*$[1],tr=B[0];tr>0;)for(tr<i?(P=tr,tr=0):(P=i,tr-=i),X=E+tr*Y[0],K=D+tr*$[0],c=Y[1]-P*Y[0],x=$[1]-P*$[0],ir=0;ir<G;ir++){for(er=0;er<M;er++){for(ar=0;ar<U;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<F;Q++){for(H=0;H<P;H++)pr=t.call(o,v(s,X),dr,[X,K],[r,e]),pr!==void 0&&u(n,K,a(pr)),X+=f,K+=g,dr+=1;X+=c,K+=x}X+=p,K+=S}X+=m,K+=w}X+=d,K+=A}X+=y,K+=_}X+=h,K+=b}}TP.exports=PDr});var NP=l((Uce,IP)=>{"use strict";var FDr=Rr(),LDr=kr();function CDr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr;for(br=FDr(r.shape,r.strides,e.strides),C=br.sh,K=br.sx,H=br.sy,i=LDr(r.dtype,e.dtype),Q=r.offset,Z=e.offset,s=r.data,n=e.data,f=K[0],x=H[0],v=r.accessors[0],u=e.accessors[1],hr=0,qr=C[7];qr>0;)for(qr<i?(X=qr,qr=0):(X=i,qr-=i),N=Q+qr*K[7],L=Z+qr*H[7],gr=C[6];gr>0;)for(gr<i?(J=gr,gr=0):(J=i,gr-=i),g=K[7]-J*K[6],q=H[7]-J*H[6],k=N+gr*K[6],F=L+gr*H[6],mr=C[5];mr>0;)for(mr<i?(W=mr,mr=0):(W=i,mr-=i),h=K[6]-W*K[5],E=H[6]-W*H[5],D=k+mr*K[5],P=F+mr*H[5],yr=C[4];yr>0;)for(yr<i?($=yr,yr=0):($=i,yr-=i),y=K[5]-$*K[4],b=H[5]-$*H[4],O=D+yr*K[4],B=P+yr*H[4],dr=C[3];dr>0;)for(dr<i?(Y=dr,dr=0):(Y=i,dr-=i),d=K[4]-Y*K[3],_=H[4]-Y*H[3],I=O+dr*K[3],R=B+dr*H[3],pr=C[2];pr>0;)for(pr<i?(G=pr,pr=0):(G=i,pr-=i),m=K[3]-G*K[2],A=H[3]-G*H[2],T=I+pr*K[2],z=R+pr*H[2],fr=C[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],j=T+fr*K[1],V=z+fr*H[1],lr=C[0];lr>0;)for(lr<i?(U=lr,lr=0):(U=i,lr-=i),rr=j+lr*K[0],ar=V+lr*H[0],c=K[1]-U*K[0],S=H[1]-U*H[0],ur=0;ur<X;ur++){for(vr=0;vr<J;vr++){for(nr=0;nr<W;nr++){for(sr=0;sr<$;sr++){for(or=0;or<Y;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++)xr=t.call(o,v(s,rr),hr,[rr,ar],[r,e]),xr!==void 0&&u(n,ar,a(xr)),rr+=f,ar+=x,hr+=1;rr+=c,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}}IP.exports=CDr});var kP=l((Mce,DP)=>{"use strict";var UDr=Rr(),MDr=kr();function GDr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr,Er,Ar,_r,jr,Or,Dr,Vr;for(Or=UDr(r.shape,r.strides,e.strides),Y=Or.sh,ar=Or.sx,er=Or.sy,i=MDr(r.dtype,e.dtype),ir=r.offset,tr=e.offset,s=r.data,n=e.data,f=ar[0],S=er[0],v=r.accessors[0],u=e.accessors[1],Vr=0,jr=Y[8];jr>0;)for(jr<i?(rr=jr,jr=0):(rr=i,jr-=i),R=ir+jr*ar[8],G=tr+jr*er[8],_r=Y[7];_r>0;)for(_r<i?(Z=_r,_r=0):(Z=i,_r-=i),x=ar[8]-Z*ar[7],T=er[8]-Z*er[7],z=R+_r*ar[7],M=G+_r*er[7],Ar=Y[6];Ar>0;)for(Ar<i?(Q=Ar,Ar=0):(Q=i,Ar-=i),g=ar[7]-Q*ar[6],j=er[7]-Q*er[6],V=z+Ar*ar[6],U=M+Ar*er[6],Er=Y[5];Er>0;)for(Er<i?(H=Er,Er=0):(H=i,Er-=i),h=ar[6]-H*ar[5],q=er[6]-H*er[5],N=V+Er*ar[5],C=U+Er*er[5],hr=Y[4];hr>0;)for(hr<i?(K=hr,hr=0):(K=i,hr-=i),y=ar[5]-K*ar[4],E=er[5]-K*er[4],k=N+hr*ar[4],L=C+hr*er[4],xr=Y[3];xr>0;)for(xr<i?(X=xr,xr=0):(X=i,xr-=i),d=ar[4]-X*ar[3],b=er[4]-X*er[3],D=k+xr*ar[3],F=L+xr*er[3],br=Y[2];br>0;)for(br<i?(J=br,br=0):(J=i,br-=i),m=ar[3]-J*ar[2],_=er[3]-J*er[2],O=D+br*ar[2],P=F+br*er[2],qr=Y[1];qr>0;)for(qr<i?(W=qr,qr=0):(W=i,qr-=i),p=ar[2]-W*ar[1],A=er[2]-W*er[1],I=O+qr*ar[1],B=P+qr*er[1],gr=Y[0];gr>0;)for(gr<i?($=gr,gr=0):($=i,gr-=i),or=I+gr*ar[0],sr=B+gr*er[0],c=ar[1]-$*ar[0],w=er[1]-$*er[0],mr=0;mr<rr;mr++){for(yr=0;yr<Z;yr++){for(dr=0;dr<Q;dr++){for(pr=0;pr<H;pr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++)Dr=t.call(o,v(s,or),Vr,[or,sr],[r,e]),Dr!==void 0&&u(n,sr,a(Dr)),or+=f,sr+=S,Vr+=1;or+=c,sr+=w}or+=p,sr+=A}or+=m,sr+=_}or+=d,sr+=b}or+=y,sr+=E}or+=h,sr+=q}or+=g,sr+=j}or+=x,sr+=T}}DP.exports=GDr});var VP=l((Gce,RP)=>{"use strict";var $Dr=Rr(),YDr=kr();function WDr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr,Er,Ar,_r,jr,Or,Dr,Vr,Kr,te,Ie,sa,dt,_n,jn;for(dt=$Dr(r.shape,r.strides,e.strides),X=dt.sh,sr=dt.sx,nr=dt.sy,i=YDr(r.dtype,e.dtype),vr=r.offset,ur=e.offset,s=r.data,n=e.data,f=sr[0],w=nr[0],v=r.accessors[0],u=e.accessors[1],jn=0,sa=X[9];sa>0;)for(sa<i?(or=sa,sa=0):(or=i,sa-=i),F=vr+sa*sr[9],J=ur+sa*nr[9],Ie=X[8];Ie>0;)for(Ie<i?(tr=Ie,Ie=0):(tr=i,Ie-=i),S=sr[9]-tr*sr[8],O=nr[9]-tr*nr[8],P=F+Ie*sr[8],W=J+Ie*nr[8],te=X[7];te>0;)for(te<i?(ir=te,te=0):(ir=i,te-=i),x=sr[8]-ir*sr[7],I=nr[8]-ir*nr[7],B=P+te*sr[7],$=W+te*nr[7],Kr=X[6];Kr>0;)for(Kr<i?(er=Kr,Kr=0):(er=i,Kr-=i),g=sr[7]-er*sr[6],T=nr[7]-er*nr[6],R=B+Kr*sr[6],Y=$+Kr*nr[6],Vr=X[5];Vr>0;)for(Vr<i?(ar=Vr,Vr=0):(ar=i,Vr-=i),h=sr[6]-ar*sr[5],j=nr[6]-ar*nr[5],z=R+Vr*sr[5],G=Y+Vr*nr[5],Dr=X[4];Dr>0;)for(Dr<i?(rr=Dr,Dr=0):(rr=i,Dr-=i),y=sr[5]-rr*sr[4],q=nr[5]-rr*nr[4],V=z+Dr*sr[4],M=G+Dr*nr[4],Or=X[3];Or>0;)for(Or<i?(Z=Or,Or=0):(Z=i,Or-=i),d=sr[4]-Z*sr[3],E=nr[4]-Z*nr[3],N=V+Or*sr[3],U=M+Or*nr[3],jr=X[2];jr>0;)for(jr<i?(Q=jr,jr=0):(Q=i,jr-=i),m=sr[3]-Q*sr[2],b=nr[3]-Q*nr[2],k=N+jr*sr[2],C=U+jr*nr[2],_r=X[1];_r>0;)for(_r<i?(H=_r,_r=0):(H=i,_r-=i),p=sr[2]-H*sr[1],_=nr[2]-H*nr[1],D=k+_r*sr[1],L=C+_r*nr[1],Ar=X[0];Ar>0;)for(Ar<i?(K=Ar,Ar=0):(K=i,Ar-=i),lr=D+Ar*sr[0],fr=L+Ar*nr[0],c=sr[1]-K*sr[0],A=nr[1]-K*nr[0],Er=0;Er<or;Er++){for(hr=0;hr<tr;hr++){for(xr=0;xr<ir;xr++){for(br=0;br<er;br++){for(qr=0;qr<ar;qr++){for(gr=0;gr<rr;gr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<K;pr++)_n=t.call(o,v(s,lr),jn,[lr,fr],[r,e]),_n!==void 0&&u(n,fr,a(_n)),lr+=f,fr+=w,jn+=1;lr+=c,fr+=A}lr+=p,fr+=_}lr+=m,fr+=b}lr+=d,fr+=E}lr+=y,fr+=q}lr+=h,fr+=j}lr+=g,fr+=T}lr+=x,fr+=I}lr+=S,fr+=O}}RP.exports=WDr});var BP=l(($ce,zP)=>{"use strict";var JDr=Rr(),XDr=kr();function KDr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O;for(T=JDr(r.shape,r.strides,e.strides),d=T.sh,g=T.sx,x=T.sy,i=XDr(r.dtype,e.dtype),S=r.offset,w=e.offset,s=r.data,n=e.data,v=g[0],f=x[0],O=0,j=d[1];j>0;)for(j<i?(h=j,j=0):(h=i,j-=i),p=S+j*g[1],m=w+j*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],u=g[1]-y*g[0],c=x[1]-y*x[0],E=0;E<h;E++){for(b=0;b<y;b++)I=t.call(o,s[A],O,[A,_],[r,e]),I!==void 0&&(n[_]=a(I)),A+=v,_+=f,O+=1;A+=u,_+=c}}zP.exports=KDr});var FP=l((Yce,PP)=>{"use strict";var HDr=Rr(),ZDr=kr();function QDr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B;for(z=HDr(r.shape,r.strides,e.strides),x=z.sh,_=z.sx,b=z.sy,i=ZDr(r.dtype,e.dtype),E=r.offset,q=e.offset,s=r.data,n=e.data,v=_[0],c=b[0],B=0,V=x[2];V>0;)for(V<i?(A=V,V=0):(A=i,V-=i),y=E+V*_[2],g=q+V*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),j=d+k*_[0],T=h+k*b[0],u=_[1]-S*_[0],p=b[1]-S*b[0],D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++)R=t.call(o,s[j],B,[j,T],[r,e]),R!==void 0&&(n[T]=a(R)),j+=v,T+=c,B+=1;j+=u,T+=p}j+=f,T+=m}}PP.exports=QDr});var CP=l((Wce,LP)=>{"use strict";var rkr=Rr(),ekr=kr();function akr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G;for(U=rkr(r.shape,r.strides,e.strides),_=U.sh,T=U.sx,I=U.sy,i=ekr(r.dtype,e.dtype),O=r.offset,D=e.offset,s=r.data,n=e.data,v=T[0],p=I[0],G=0,C=_[3];C>0;)for(C<i?(j=C,C=0):(j=i,C-=i),x=O+C*T[3],A=D+C*I[3],L=_[2];L>0;)for(L<i?(q=L,L=0):(q=i,L-=i),c=T[3]-q*T[2],y=I[3]-q*I[2],g=x+L*T[2],w=A+L*I[2],F=_[1];F>0;)for(F<i?(E=F,F=0):(E=i,F-=i),f=T[2]-E*T[1],d=I[2]-E*I[1],h=g+F*T[1],S=w+F*I[1],P=_[0];P>0;)for(P<i?(b=P,P=0):(b=i,P-=i),k=h+P*T[0],N=S+P*I[0],u=T[1]-b*T[0],m=I[1]-b*I[0],B=0;B<j;B++){for(R=0;R<q;R++){for(z=0;z<E;z++){for(V=0;V<b;V++)M=t.call(o,s[k],G,[k,N],[r,e]),M!==void 0&&(n[N]=a(M)),k+=v,N+=p,G+=1;k+=u,N+=m}k+=f,N+=d}k+=c,N+=y}}LP.exports=akr});var MP=l((Jce,UP)=>{"use strict";var tkr=Rr(),ikr=kr();function okr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H;for(X=tkr(r.shape,r.strides,e.strides),j=X.sh,N=X.sx,V=X.sy,i=ikr(r.dtype,e.dtype),z=r.offset,R=e.offset,s=r.data,n=e.data,v=N[0],m=V[0],H=0,J=j[4];J>0;)for(J<i?(k=J,J=0):(k=i,J-=i),A=z+J*N[4],q=R+J*V[4],W=j[3];W>0;)for(W<i?(D=W,W=0):(D=i,W-=i),p=N[4]-D*N[3],g=V[4]-D*V[3],w=A+W*N[3],E=q+W*V[3],$=j[2];$>0;)for($<i?(O=$,$=0):(O=i,$-=i),c=N[3]-O*N[2],h=V[3]-O*V[2],S=w+$*N[2],b=E+$*V[2],Y=j[1];Y>0;)for(Y<i?(I=Y,Y=0):(I=i,Y-=i),f=N[2]-I*N[1],y=V[2]-I*V[1],x=S+Y*N[1],_=b+Y*V[1],G=j[0];G>0;)for(G<i?(T=G,G=0):(T=i,G-=i),B=x+G*N[0],P=_+G*V[0],u=N[1]-T*N[0],d=V[1]-T*V[0],M=0;M<k;M++){for(U=0;U<D;U++){for(C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++)K=t.call(o,s[B],H,[B,P],[r,e]),K!==void 0&&(n[P]=a(K)),B+=v,P+=m,H+=1;B+=u,P+=d}B+=f,P+=y}B+=c,P+=h}B+=p,P+=g}}UP.exports=okr});var $P=l((Xce,GP)=>{"use strict";var skr=Rr(),nkr=kr();function vkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr;for(er=skr(r.shape,r.strides,e.strides),D=er.sh,P=er.sx,F=er.sy,i=nkr(r.dtype,e.dtype),L=r.offset,C=e.offset,s=r.data,n=e.data,v=P[0],d=F[0],tr=0,ar=D[5];ar>0;)for(ar<i?(B=ar,ar=0):(B=i,ar-=i),E=L+ar*P[5],O=C+ar*F[5],rr=D[4];rr>0;)for(rr<i?(R=rr,rr=0):(R=i,rr-=i),m=P[5]-R*P[4],S=F[5]-R*F[4],b=E+rr*P[4],I=O+rr*F[4],Z=D[3];Z>0;)for(Z<i?(z=Z,Z=0):(z=i,Z-=i),p=P[4]-z*P[3],x=F[4]-z*F[3],_=b+Z*P[3],T=I+Z*F[3],Q=D[2];Q>0;)for(Q<i?(V=Q,Q=0):(V=i,Q-=i),c=P[3]-V*P[2],g=F[3]-V*F[2],A=_+Q*P[2],j=T+Q*F[2],H=D[1];H>0;)for(H<i?(N=H,H=0):(N=i,H-=i),f=P[2]-N*P[1],h=F[2]-N*F[1],w=A+H*P[1],q=j+H*F[1],K=D[0];K>0;)for(K<i?(k=K,K=0):(k=i,K-=i),U=w+K*P[0],M=q+K*F[0],u=P[1]-k*P[0],y=F[1]-k*F[0],X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<z;W++){for($=0;$<V;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++)ir=t.call(o,s[U],tr,[U,M],[r,e]),ir!==void 0&&(n[M]=a(ir)),U+=v,M+=d,tr+=1;U+=u,M+=y}U+=f,M+=h}U+=c,M+=g}U+=p,M+=x}U+=m,M+=S}}GP.exports=vkr});var WP=l((Kce,YP)=>{"use strict";var ukr=Rr(),fkr=kr();function lkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr;for(ur=ukr(r.shape,r.strides,e.strides),z=ur.sh,M=ur.sx,G=ur.sy,i=fkr(r.dtype,e.dtype),Y=r.offset,$=e.offset,s=r.data,n=e.data,v=M[0],y=G[0],fr=0,vr=z[6];vr>0;)for(vr<i?(U=vr,vr=0):(U=i,vr-=i),T=Y+vr*M[6],V=$+vr*G[6],nr=z[5];nr>0;)for(nr<i?(C=nr,nr=0):(C=i,nr-=i),d=M[6]-C*M[5],A=G[6]-C*G[5],j=T+nr*M[5],N=V+nr*G[5],sr=z[4];sr>0;)for(sr<i?(L=sr,sr=0):(L=i,sr-=i),m=M[5]-L*M[4],w=G[5]-L*G[4],q=j+sr*M[4],k=N+sr*G[4],or=z[3];or>0;)for(or<i?(F=or,or=0):(F=i,or-=i),p=M[4]-F*M[3],S=G[4]-F*G[3],E=q+or*M[3],D=k+or*G[3],tr=z[2];tr>0;)for(tr<i?(P=tr,tr=0):(P=i,tr-=i),c=M[3]-P*M[2],x=G[3]-P*G[2],b=E+tr*M[2],O=D+tr*G[2],ir=z[1];ir>0;)for(ir<i?(B=ir,ir=0):(B=i,ir-=i),f=M[2]-B*M[1],g=G[2]-B*G[1],_=b+ir*M[1],I=O+ir*G[1],er=z[0];er>0;)for(er<i?(R=er,er=0):(R=i,er-=i),W=_+er*M[0],J=I+er*G[0],u=M[1]-R*M[0],h=G[1]-R*G[0],ar=0;ar<U;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<F;Q++){for(H=0;H<P;H++){for(K=0;K<B;K++){for(X=0;X<R;X++)lr=t.call(o,s[W],fr,[W,J],[r,e]),lr!==void 0&&(n[J]=a(lr)),W+=v,J+=y,fr+=1;W+=u,J+=h}W+=f,J+=g}W+=c,J+=x}W+=p,J+=S}W+=m,J+=w}W+=d,J+=A}}YP.exports=lkr});var XP=l((Hce,JP)=>{"use strict";var ckr=Rr(),dkr=kr();function pkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br;for(gr=ckr(r.shape,r.strides,e.strides),F=gr.sh,J=gr.sx,X=gr.sy,i=dkr(r.dtype,e.dtype),K=r.offset,H=e.offset,s=r.data,n=e.data,v=J[0],h=X[0],br=0,mr=F[7];mr>0;)for(mr<i?(W=mr,mr=0):(W=i,mr-=i),D=K+mr*J[7],P=H+mr*X[7],yr=F[6];yr>0;)for(yr<i?($=yr,yr=0):($=i,yr-=i),y=J[7]-$*J[6],b=X[7]-$*X[6],O=D+yr*J[6],B=P+yr*X[6],dr=F[5];dr>0;)for(dr<i?(Y=dr,dr=0):(Y=i,dr-=i),d=J[6]-Y*J[5],_=X[6]-Y*X[5],I=O+dr*J[5],R=B+dr*X[5],pr=F[4];pr>0;)for(pr<i?(G=pr,pr=0):(G=i,pr-=i),m=J[5]-G*J[4],A=X[5]-G*X[4],T=I+pr*J[4],z=R+pr*X[4],fr=F[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],j=T+fr*J[3],V=z+fr*X[3],lr=F[2];lr>0;)for(lr<i?(U=lr,lr=0):(U=i,lr-=i),c=J[3]-U*J[2],S=X[3]-U*X[2],q=j+lr*J[2],N=V+lr*X[2],ur=F[1];ur>0;)for(ur<i?(C=ur,ur=0):(C=i,ur-=i),f=J[2]-C*J[1],x=X[2]-C*X[1],E=q+ur*J[1],k=N+ur*X[1],vr=F[0];vr>0;)for(vr<i?(L=vr,vr=0):(L=i,vr-=i),Q=E+vr*J[0],Z=k+vr*X[0],u=J[1]-L*J[0],g=X[1]-L*X[0],nr=0;nr<W;nr++){for(sr=0;sr<$;sr++){for(or=0;or<Y;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<C;ar++){for(rr=0;rr<L;rr++)qr=t.call(o,s[Q],br,[Q,Z],[r,e]),qr!==void 0&&(n[Z]=a(qr)),Q+=v,Z+=h,br+=1;Q+=u,Z+=g}Q+=f,Z+=x}Q+=c,Z+=S}Q+=p,Z+=w}Q+=m,Z+=A}Q+=d,Z+=_}Q+=y,Z+=b}}JP.exports=pkr});var HP=l((Zce,KP)=>{"use strict";var ykr=Rr(),mkr=kr();function hkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr,Er,Ar,_r,jr,Or;for(_r=ykr(r.shape,r.strides,e.strides),M=_r.sh,Z=_r.sx,rr=_r.sy,i=mkr(r.dtype,e.dtype),ar=r.offset,er=e.offset,s=r.data,n=e.data,v=Z[0],g=rr[0],Or=0,Ar=M[8];Ar>0;)for(Ar<i?(Q=Ar,Ar=0):(Q=i,Ar-=i),V=ar+Ar*Z[8],U=er+Ar*rr[8],Er=M[7];Er>0;)for(Er<i?(H=Er,Er=0):(H=i,Er-=i),h=Z[8]-H*Z[7],q=rr[8]-H*rr[7],N=V+Er*Z[7],C=U+Er*rr[7],hr=M[6];hr>0;)for(hr<i?(K=hr,hr=0):(K=i,hr-=i),y=Z[7]-K*Z[6],E=rr[7]-K*rr[6],k=N+hr*Z[6],L=C+hr*rr[6],xr=M[5];xr>0;)for(xr<i?(X=xr,xr=0):(X=i,xr-=i),d=Z[6]-X*Z[5],b=rr[6]-X*rr[5],D=k+xr*Z[5],F=L+xr*rr[5],br=M[4];br>0;)for(br<i?(J=br,br=0):(J=i,br-=i),m=Z[5]-J*Z[4],_=rr[5]-J*rr[4],O=D+br*Z[4],P=F+br*rr[4],qr=M[3];qr>0;)for(qr<i?(W=qr,qr=0):(W=i,qr-=i),p=Z[4]-W*Z[3],A=rr[4]-W*rr[3],I=O+qr*Z[3],B=P+qr*rr[3],gr=M[2];gr>0;)for(gr<i?($=gr,gr=0):($=i,gr-=i),c=Z[3]-$*Z[2],w=rr[3]-$*rr[2],T=I+gr*Z[2],R=B+gr*rr[2],mr=M[1];mr>0;)for(mr<i?(Y=mr,mr=0):(Y=i,mr-=i),f=Z[2]-Y*Z[1],S=rr[2]-Y*rr[1],j=T+mr*Z[1],z=R+mr*rr[1],yr=M[0];yr>0;)for(yr<i?(G=yr,yr=0):(G=i,yr-=i),ir=j+yr*Z[0],tr=z+yr*rr[0],u=Z[1]-G*Z[0],x=rr[1]-G*rr[0],dr=0;dr<Q;dr++){for(pr=0;pr<H;pr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++){for(sr=0;sr<Y;sr++){for(or=0;or<G;or++)jr=t.call(o,s[ir],Or,[ir,tr],[r,e]),jr!==void 0&&(n[tr]=a(jr)),ir+=v,tr+=g,Or+=1;ir+=u,tr+=x}ir+=f,tr+=S}ir+=c,tr+=w}ir+=p,tr+=A}ir+=m,tr+=_}ir+=d,tr+=b}ir+=y,tr+=E}ir+=h,tr+=q}}KP.exports=hkr});var QP=l((Qce,ZP)=>{"use strict";var gkr=Rr(),bkr=kr();function xkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,gr,qr,br,xr,hr,Er,Ar,_r,jr,Or,Dr,Vr,Kr,te,Ie,sa,dt;for(Ie=gkr(r.shape,r.strides,e.strides),W=Ie.sh,tr=Ie.sx,or=Ie.sy,i=bkr(r.dtype,e.dtype),sr=r.offset,nr=e.offset,s=r.data,n=e.data,v=tr[0],x=or[0],dt=0,te=W[9];te>0;)for(te<i?(ir=te,te=0):(ir=i,te-=i),B=sr+te*tr[9],$=nr+te*or[9],Kr=W[8];Kr>0;)for(Kr<i?(er=Kr,Kr=0):(er=i,Kr-=i),g=tr[9]-er*tr[8],T=or[9]-er*or[8],R=B+Kr*tr[8],Y=$+Kr*or[8],Vr=W[7];Vr>0;)for(Vr<i?(ar=Vr,Vr=0):(ar=i,Vr-=i),h=tr[8]-ar*tr[7],j=or[8]-ar*or[7],z=R+Vr*tr[7],G=Y+Vr*or[7],Dr=W[6];Dr>0;)for(Dr<i?(rr=Dr,Dr=0):(rr=i,Dr-=i),y=tr[7]-rr*tr[6],q=or[7]-rr*or[6],V=z+Dr*tr[6],M=G+Dr*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=V+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],C=U+jr*or[4],_r=W[3];_r>0;)for(_r<i?(H=_r,_r=0):(H=i,_r-=i),p=tr[4]-H*tr[3],_=or[4]-H*or[3],D=k+_r*tr[3],L=C+_r*or[3],Ar=W[2];Ar>0;)for(Ar<i?(K=Ar,Ar=0):(K=i,Ar-=i),c=tr[3]-K*tr[2],A=or[3]-K*or[2],O=D+Ar*tr[2],F=L+Ar*or[2],Er=W[1];Er>0;)for(Er<i?(X=Er,Er=0):(X=i,Er-=i),f=tr[2]-X*tr[1],w=or[2]-X*or[1],I=O+Er*tr[1],P=F+Er*or[1],hr=W[0];hr>0;)for(hr<i?(J=hr,hr=0):(J=i,hr-=i),vr=I+hr*tr[0],ur=P+hr*or[0],u=tr[1]-J*tr[0],S=or[1]-J*or[0],xr=0;xr<ir;xr++){for(br=0;br<er;br++){for(qr=0;qr<ar;qr++){for(gr=0;gr<rr;gr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<K;pr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++)sa=t.call(o,s[vr],dt,[vr,ur],[r,e]),sa!==void 0&&(n[ur]=a(sa)),vr+=v,ur+=x,dt+=1;vr+=u,ur+=S}vr+=f,ur+=w}vr+=c,ur+=A}vr+=p,ur+=_}vr+=m,ur+=b}vr+=d,ur+=E}vr+=y,ur+=q}vr+=h,ur+=j}vr+=g,ur+=T}}ZP.exports=xkr});var eF=l((rde,rF)=>{"use strict";function qkr(r,e,a,t,o){var i=r.offset,s=e.offset,n=t.call(o,r.accessors[0](r.data,i),0,[i,s],[r,e]);n!==void 0&&e.accessors[1](e.data,s,a(n))}rF.exports=qkr});var tF=l((ede,aF)=>{"use strict";function wkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h;for(c=r.shape[0],u=r.strides[0],f=e.strides[0],p=r.offset,m=e.offset,i=r.data,s=e.data,n=r.accessors[0],v=e.accessors[1],h=0,d=0;d<c;d++)y=t.call(o,n(i,p),h,[p,m],[r,e]),y!==void 0&&v(s,m,a(y)),p+=u,m+=f,h+=1}aF.exports=wkr});var oF=l((ade,iF)=>{"use strict";function Skr(r,e,a,t,o){var i,s,n,v,u,f,c,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],u=h[1],f=h[0]-d*h[1],c=g[1],p=g[0]-d*g[1]):(d=m[0],y=m[1],u=h[0],f=h[1]-d*h[0],c=g[0],p=g[1]-d*g[0]),x=r.offset,S=e.offset,i=r.data,s=e.data,n=r.accessors[0],v=e.accessors[1],b=0,A=0;A<y;A++){for(w=0;w<d;w++)_=t.call(o,n(i,x),b,[x,S],[r,e]),_!==void 0&&v(s,S,a(_)),x+=u,S+=c,b+=1;x+=f,S+=p}}iF.exports=Skr});var nF=l((tde,sF)=>{"use strict";function Ekr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T;for(y=r.shape,S=r.strides,w=e.strides,r.order==="row-major"?(h=y[2],g=y[1],x=y[0],u=S[2],f=S[1]-h*S[2],c=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],u=S[0],f=S[1]-h*S[0],c=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,s=e.data,n=r.accessors[0],v=e.accessors[1],T=0,q=0;q<x;q++){for(E=0;E<g;E++){for(b=0;b<h;b++)j=t.call(o,n(i,A),T,[A,_],[r,e]),j!==void 0&&v(s,_,a(j)),A+=u,_+=p,T+=1;A+=f,_+=m}A+=c,_+=d}}sF.exports=Ekr});var uF=l((ide,vF)=>{"use strict";function Akr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,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],u=_[3],f=_[2]-x*_[3],c=_[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],u=_[0],f=_[1]-x*_[0],c=_[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,s=e.data,n=r.accessors[0],v=e.accessors[1],k=0,O=0;O<A;O++){for(I=0;I<w;I++){for(T=0;T<S;T++){for(j=0;j<x;j++)D=t.call(o,n(i,E),k,[E,q],[r,e]),D!==void 0&&v(s,q,a(D)),E+=u,q+=m,k+=1;E+=f,q+=d}E+=c,q+=y}E+=p,q+=h}}vF.exports=Akr});var lF=l((ode,fF)=>{"use strict";function _kr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R;for(S=r.shape,q=r.strides,j=e.strides,r.order==="row-major"?(w=S[4],A=S[3],_=S[2],b=S[1],E=S[0],u=q[4],f=q[3]-w*q[4],c=q[2]-A*q[3],p=q[1]-_*q[2],m=q[0]-b*q[1],d=j[4],y=j[3]-w*j[4],h=j[2]-A*j[3],g=j[1]-_*j[2],x=j[0]-b*j[1]):(w=S[0],A=S[1],_=S[2],b=S[3],E=S[4],u=q[0],f=q[1]-w*q[0],c=q[2]-A*q[1],p=q[3]-_*q[2],m=q[4]-b*q[3],d=j[0],y=j[1]-w*j[0],h=j[2]-A*j[1],g=j[3]-_*j[2],x=j[4]-b*j[3]),T=r.offset,I=e.offset,i=r.data,s=e.data,n=r.accessors[0],v=e.accessors[1],R=0,V=0;V<E;V++){for(N=0;N<b;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(O=0;O<w;O++)z=t.call(o,n(i,T),R,[T,I],[r,e]),z!==void 0&&v(s,I,a(z)),T+=u,I+=d,R+=1;T+=f,I+=y}T+=c,I+=h}T+=p,I+=g}T+=m,I+=x}}fF.exports=_kr});var dF=l((sde,cF)=>{"use strict";function jkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L;for(A=r.shape,I=r.strides,O=e.strides,r.order==="row-major"?(_=A[5],b=A[4],E=A[3],q=A[2],j=A[1],T=A[0],u=I[5],f=I[4]-_*I[5],c=I[3]-b*I[4],p=I[2]-E*I[3],m=I[1]-q*I[2],d=I[0]-j*I[1],y=O[5],h=O[4]-_*O[5],g=O[3]-b*O[4],x=O[2]-E*O[3],S=O[1]-q*O[2],w=O[0]-j*O[1]):(_=A[0],b=A[1],E=A[2],q=A[3],j=A[4],T=A[5],u=I[0],f=I[1]-_*I[0],c=I[2]-b*I[1],p=I[3]-E*I[2],m=I[4]-q*I[3],d=I[5]-j*I[4],y=O[0],h=O[1]-_*O[0],g=O[2]-b*O[1],x=O[3]-E*O[2],S=O[4]-q*O[3],w=O[5]-j*O[4]),D=r.offset,k=e.offset,i=r.data,s=e.data,n=r.accessors[0],v=e.accessors[1],L=0,P=0;P<T;P++){for(B=0;B<j;B++){for(R=0;R<q;R++){for(z=0;z<E;z++){for(V=0;V<b;V++){for(N=0;N<_;N++)F=t.call(o,n(i,D),L,[D,k],[r,e]),F!==void 0&&v(s,k,a(F)),D+=u,k+=y,L+=1;D+=f,k+=h}D+=c,k+=g}D+=p,k+=x}D+=m,k+=S}D+=d,k+=w}}cF.exports=jkr});var yF=l((nde,pF)=>{"use strict";function Tkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G;for(b=r.shape,k=r.strides,N=e.strides,r.order==="row-major"?(E=b[6],q=b[5],j=b[4],T=b[3],I=b[2],O=b[1],D=b[0],u=k[6],f=k[5]-E*k[6],c=k[4]-q*k[5],p=k[3]-j*k[4],m=k[2]-T*k[3],d=k[1]-I*k[2],y=k[0]-O*k[1],h=N[6],g=N[5]-E*N[6],x=N[4]-q*N[5],S=N[3]-j*N[4],w=N[2]-T*N[3],A=N[1]-I*N[2],_=N[0]-O*N[1]):(E=b[0],q=b[1],j=b[2],T=b[3],I=b[4],O=b[5],D=b[6],u=k[0],f=k[1]-E*k[0],c=k[2]-q*k[1],p=k[3]-j*k[2],m=k[4]-T*k[3],d=k[5]-I*k[4],y=k[6]-O*k[5],h=N[0],g=N[1]-E*N[0],x=N[2]-q*N[1],S=N[3]-j*N[2],w=N[4]-T*N[3],A=N[5]-I*N[4],_=N[6]-O*N[5]),V=r.offset,z=e.offset,i=r.data,s=e.data,n=r.accessors[0],v=e.accessors[1],G=0,U=0;U<D;U++){for(C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(B=0;B<q;B++){for(R=0;R<E;R++)M=t.call(o,n(i,V),G,[V,z],[r,e]),M!==void 0&&v(s,z,a(M)),V+=u,z+=h,G+=1;V+=f,z+=g}V+=c,z+=x}V+=p,z+=S}V+=m,z+=w}V+=d,z+=A}V+=y,z+=_}}pF.exports=Tkr});var hF=l((vde,mF)=>{"use strict";function Okr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J;for(q=r.shape,z=r.strides,R=e.strides,r.order==="row-major"?(j=q[7],T=q[6],I=q[5],O=q[4],D=q[3],k=q[2],N=q[1],V=q[0],u=z[7],f=z[6]-j*z[7],c=z[5]-T*z[6],p=z[4]-I*z[5],m=z[3]-O*z[4],d=z[2]-D*z[3],y=z[1]-k*z[2],h=z[0]-N*z[1],g=R[7],x=R[6]-j*R[7],S=R[5]-T*R[6],w=R[4]-I*R[5],A=R[3]-O*R[4],_=R[2]-D*R[3],b=R[1]-k*R[2],E=R[0]-N*R[1]):(j=q[0],T=q[1],I=q[2],O=q[3],D=q[4],k=q[5],N=q[6],V=q[7],u=z[0],f=z[1]-j*z[0],c=z[2]-T*z[1],p=z[3]-I*z[2],m=z[4]-O*z[3],d=z[5]-D*z[4],y=z[6]-k*z[5],h=z[7]-N*z[6],g=R[0],x=R[1]-j*R[0],S=R[2]-T*R[1],w=R[3]-I*R[2],A=R[4]-O*R[3],_=R[5]-D*R[4],b=R[6]-k*R[5],E=R[7]-N*R[6]),B=r.offset,P=e.offset,i=r.data,s=e.data,n=r.accessors[0],v=e.accessors[1],J=0,$=0;$<V;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++)W=t.call(o,n(i,B),J,[B,P],[r,e]),W!==void 0&&v(s,P,a(W)),B+=u,P+=g,J+=1;B+=f,P+=x}B+=c,P+=S}B+=p,P+=w}B+=m,P+=A}B+=d,P+=_}B+=y,P+=b}B+=h,P+=E}}mF.exports=Okr});var bF=l((ude,gF)=>{"use strict";function Ikr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q;for(T=r.shape,P=r.strides,F=e.strides,r.order==="row-major"?(I=T[8],O=T[7],D=T[6],k=T[5],N=T[4],V=T[3],z=T[2],R=T[1],B=T[0],u=P[8],f=P[7]-I*P[8],c=P[6]-O*P[7],p=P[5]-D*P[6],m=P[4]-k*P[5],d=P[3]-N*P[4],y=P[2]-V*P[3],h=P[1]-z*P[2],g=P[0]-R*P[1],x=F[8],S=F[7]-I*F[8],w=F[6]-O*F[7],A=F[5]-D*F[6],_=F[4]-k*F[5],b=F[3]-N*F[4],E=F[2]-V*F[3],q=F[1]-z*F[2],j=F[0]-R*F[1]):(I=T[0],O=T[1],D=T[2],k=T[3],N=T[4],V=T[5],z=T[6],R=T[7],B=T[8],u=P[0],f=P[1]-I*P[0],c=P[2]-O*P[1],p=P[3]-D*P[2],m=P[4]-k*P[3],d=P[5]-N*P[4],y=P[6]-V*P[5],h=P[7]-z*P[6],g=P[8]-R*P[7],x=F[0],S=F[1]-I*F[0],w=F[2]-O*F[1],A=F[3]-D*F[2],_=F[4]-k*F[3],b=F[5]-N*F[4],E=F[6]-V*F[5],q=F[7]-z*F[6],j=F[8]-R*F[7]),L=r.offset,C=e.offset,i=r.data,s=e.data,n=r.accessors[0],v=e.accessors[1],Q=0,K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<z;J++){for(W=0;W<V;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++)H=t.call(o,n(i,L),Q,[L,C],[r,e]),H!==void 0&&v(s,C,a(H)),L+=u,C+=x,Q+=1;L+=f,C+=S}L+=c,C+=w}L+=p,C+=A}L+=m,C+=_}L+=d,C+=b}L+=y,C+=E}L+=h,C+=q}L+=g,C+=j}}gF.exports=Ikr});var qF=l((fde,xF)=>{"use strict";function Nkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr,ar,er;for(O=r.shape,C=r.strides,U=e.strides,r.order==="row-major"?(D=O[9],k=O[8],N=O[7],V=O[6],z=O[5],R=O[4],B=O[3],P=O[2],F=O[1],L=O[0],u=C[9],f=C[8]-D*C[9],c=C[7]-k*C[8],p=C[6]-N*C[7],m=C[5]-V*C[6],d=C[4]-z*C[5],y=C[3]-R*C[4],h=C[2]-B*C[3],g=C[1]-P*C[2],x=C[0]-F*C[1],S=U[9],w=U[8]-D*U[9],A=U[7]-k*U[8],_=U[6]-N*U[7],b=U[5]-V*U[6],E=U[4]-z*U[5],q=U[3]-R*U[4],j=U[2]-B*U[3],T=U[1]-P*U[2],I=U[0]-F*U[1]):(D=O[0],k=O[1],N=O[2],V=O[3],z=O[4],R=O[5],B=O[6],P=O[7],F=O[8],L=O[9],u=C[0],f=C[1]-D*C[0],c=C[2]-k*C[1],p=C[3]-N*C[2],m=C[4]-V*C[3],d=C[5]-z*C[4],y=C[6]-R*C[5],h=C[7]-B*C[6],g=C[8]-P*C[7],x=C[9]-F*C[8],S=U[0],w=U[1]-D*U[0],A=U[2]-k*U[1],_=U[3]-N*U[2],b=U[4]-V*U[3],E=U[5]-z*U[4],q=U[6]-R*U[5],j=U[7]-B*U[6],T=U[8]-P*U[7],I=U[9]-F*U[8]),M=r.offset,G=e.offset,i=r.data,s=e.data,n=r.accessors[0],v=e.accessors[1],er=0,rr=0;rr<L;rr++){for(Z=0;Z<F;Z++){for(Q=0;Q<P;Q++){for(H=0;H<B;H++){for(K=0;K<R;K++){for(X=0;X<z;X++){for(J=0;J<V;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++)ar=t.call(o,n(i,M),er,[M,G],[r,e]),ar!==void 0&&v(s,G,a(ar)),M+=u,G+=S,er+=1;M+=f,G+=w}M+=c,G+=A}M+=p,G+=_}M+=m,G+=b}M+=d,G+=E}M+=y,G+=q}M+=h,G+=j}M+=g,G+=T}M+=x,G+=I}}xF.exports=Nkr});var AF=l((lde,EF)=>{"use strict";var Dkr=Wr(),wF=ia(),SF="throw";function kkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w;for(p=r.shape,u=Dkr(p),i=r.data,s=e.data,m=r.strides,d=e.strides,y=r.offset,h=e.offset,n=r.order,v=e.order,f=r.accessors[0],c=e.accessors[1],w=0;w<u;w++)g=wF(p,m,y,n,w,SF),x=wF(p,d,h,v,w,SF),S=t.call(o,f(i,g),w,[g,x],[r,e]),S!==void 0&&c(s,x,a(S))}EF.exports=kkr});var jF=l((cde,_F)=>{"use strict";function Rkr(r,e,a,t,o){var i=r.offset,s=e.offset,n=t.call(o,r.data[i],0,[i,s],[r,e]);n!==void 0&&(e.data[s]=a(n))}_F.exports=Rkr});var OF=l((dde,TF)=>{"use strict";function Vkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d;for(u=r.shape[0],n=r.strides[0],v=e.strides[0],f=r.offset,c=e.offset,i=r.data,s=e.data,d=0,p=0;p<u;p++)m=t.call(o,i[f],d,[f,c],[r,e]),m!==void 0&&(s[c]=a(m)),f+=n,c+=v,d+=1}TF.exports=Vkr});var NF=l((pde,IF)=>{"use strict";function zkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A;for(c=r.shape,d=r.strides,y=e.strides,r.order==="row-major"?(p=c[1],m=c[0],n=d[1],v=d[0]-p*d[1],u=y[1],f=y[0]-p*y[1]):(p=c[0],m=c[1],n=d[0],v=d[1]-p*d[0],u=y[0],f=y[1]-p*y[0]),h=r.offset,g=e.offset,i=r.data,s=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&&(s[g]=a(w)),h+=n,g+=u,A+=1;h+=v,g+=f}}IF.exports=zkr});var kF=l((yde,DF)=>{"use strict";function Bkr(r,e,a,t,o){var i,s,n,v,u,f,c,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],n=g[2],v=g[1]-d*g[2],u=g[0]-y*g[1],f=x[2],c=x[1]-d*x[2],p=x[0]-y*x[1]):(d=m[0],y=m[1],h=m[2],n=g[0],v=g[1]-d*g[0],u=g[2]-y*g[1],f=x[0],c=x[1]-d*x[0],p=x[2]-y*x[1]),S=r.offset,w=e.offset,i=r.data,s=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&&(s[w]=a(E)),S+=n,w+=f,q+=1;S+=v,w+=c}S+=u,w+=p}}DF.exports=Bkr});var VF=l((mde,RF)=>{"use strict";function Pkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O;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],n=w[3],v=w[2]-h*w[3],u=w[1]-g*w[2],f=w[0]-x*w[1],c=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],n=w[0],v=w[1]-h*w[0],u=w[2]-g*w[1],f=w[3]-x*w[2],c=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,s=e.data,O=0,T=0;T<S;T++){for(j=0;j<x;j++){for(q=0;q<g;q++){for(E=0;E<h;E++)I=t.call(o,i[_],O,[_,b],[r,e]),I!==void 0&&(s[b]=a(I)),_+=n,b+=c,O+=1;_+=v,b+=p}_+=u,b+=m}_+=f,b+=d}}RF.exports=Pkr});var BF=l((hde,zF)=>{"use strict";function Fkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V;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],n=b[4],v=b[3]-x*b[4],u=b[2]-S*b[3],f=b[1]-w*b[2],c=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],n=b[0],v=b[1]-x*b[0],u=b[2]-S*b[1],f=b[3]-w*b[2],c=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,j=e.offset,i=r.data,s=e.data,V=0,k=0;k<_;k++){for(D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<x;T++)N=t.call(o,i[q],V,[q,j],[r,e]),N!==void 0&&(s[j]=a(N)),q+=n,j+=p,V+=1;q+=v,j+=m}q+=u,j+=d}q+=f,j+=y}q+=c,j+=h}}zF.exports=Fkr});var FF=l((gde,PF)=>{"use strict";function Lkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P;for(S=r.shape,j=r.strides,T=e.strides,r.order==="row-major"?(w=S[5],A=S[4],_=S[3],b=S[2],E=S[1],q=S[0],n=j[5],v=j[4]-w*j[5],u=j[3]-A*j[4],f=j[2]-_*j[3],c=j[1]-b*j[2],p=j[0]-E*j[1],m=T[5],d=T[4]-w*T[5],y=T[3]-A*T[4],h=T[2]-_*T[3],g=T[1]-b*T[2],x=T[0]-E*T[1]):(w=S[0],A=S[1],_=S[2],b=S[3],E=S[4],q=S[5],n=j[0],v=j[1]-w*j[0],u=j[2]-A*j[1],f=j[3]-_*j[2],c=j[4]-b*j[3],p=j[5]-E*j[4],m=T[0],d=T[1]-w*T[0],y=T[2]-A*T[1],h=T[3]-_*T[2],g=T[4]-b*T[3],x=T[5]-E*T[4]),I=r.offset,O=e.offset,i=r.data,s=e.data,P=0,R=0;R<q;R++){for(z=0;z<E;z++){for(V=0;V<b;V++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)B=t.call(o,i[I],P,[I,O],[r,e]),B!==void 0&&(s[O]=a(B)),I+=n,O+=m,P+=1;I+=v,O+=d}I+=u,O+=y}I+=f,O+=h}I+=c,O+=g}I+=p,O+=x}}PF.exports=Lkr});var CF=l((bde,LF)=>{"use strict";function Ckr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U;for(A=r.shape,O=r.strides,D=e.strides,r.order==="row-major"?(_=A[6],b=A[5],E=A[4],q=A[3],j=A[2],T=A[1],I=A[0],n=O[6],v=O[5]-_*O[6],u=O[4]-b*O[5],f=O[3]-E*O[4],c=O[2]-q*O[3],p=O[1]-j*O[2],m=O[0]-T*O[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]-j*D[2],w=D[0]-T*D[1]):(_=A[0],b=A[1],E=A[2],q=A[3],j=A[4],T=A[5],I=A[6],n=O[0],v=O[1]-_*O[0],u=O[2]-b*O[1],f=O[3]-E*O[2],c=O[4]-q*O[3],p=O[5]-j*O[4],m=O[6]-T*O[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]-j*D[4],w=D[6]-T*D[5]),k=r.offset,N=e.offset,i=r.data,s=e.data,U=0,L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(z=0;z<b;z++){for(V=0;V<_;V++)C=t.call(o,i[k],U,[k,N],[r,e]),C!==void 0&&(s[N]=a(C)),k+=n,N+=d,U+=1;k+=v,N+=y}k+=u,N+=h}k+=f,N+=g}k+=c,N+=x}k+=p,N+=S}k+=m,N+=w}}LF.exports=Ckr});var MF=l((xde,UF)=>{"use strict";function Ukr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$;for(b=r.shape,N=r.strides,V=e.strides,r.order==="row-major"?(E=b[7],q=b[6],j=b[5],T=b[4],I=b[3],O=b[2],D=b[1],k=b[0],n=N[7],v=N[6]-E*N[7],u=N[5]-q*N[6],f=N[4]-j*N[5],c=N[3]-T*N[4],p=N[2]-I*N[3],m=N[1]-O*N[2],d=N[0]-D*N[1],y=V[7],h=V[6]-E*V[7],g=V[5]-q*V[6],x=V[4]-j*V[5],S=V[3]-T*V[4],w=V[2]-I*V[3],A=V[1]-O*V[2],_=V[0]-D*V[1]):(E=b[0],q=b[1],j=b[2],T=b[3],I=b[4],O=b[5],D=b[6],k=b[7],n=N[0],v=N[1]-E*N[0],u=N[2]-q*N[1],f=N[3]-j*N[2],c=N[4]-T*N[3],p=N[5]-I*N[4],m=N[6]-O*N[5],d=N[7]-D*N[6],y=V[0],h=V[1]-E*V[0],g=V[2]-q*V[1],x=V[3]-j*V[2],S=V[4]-T*V[3],w=V[5]-I*V[4],A=V[6]-O*V[5],_=V[7]-D*V[6]),z=r.offset,R=e.offset,i=r.data,s=e.data,$=0,G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(B=0;B<E;B++)Y=t.call(o,i[z],$,[z,R],[r,e]),Y!==void 0&&(s[R]=a(Y)),z+=n,R+=y,$+=1;z+=v,R+=h}z+=u,R+=g}z+=f,R+=x}z+=c,R+=S}z+=p,R+=w}z+=m,R+=A}z+=d,R+=_}}UF.exports=Ukr});var $F=l((qde,GF)=>{"use strict";function Mkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K;for(q=r.shape,R=r.strides,B=e.strides,r.order==="row-major"?(j=q[8],T=q[7],I=q[6],O=q[5],D=q[4],k=q[3],N=q[2],V=q[1],z=q[0],n=R[8],v=R[7]-j*R[8],u=R[6]-T*R[7],f=R[5]-I*R[6],c=R[4]-O*R[5],p=R[3]-D*R[4],m=R[2]-k*R[3],d=R[1]-N*R[2],y=R[0]-V*R[1],h=B[8],g=B[7]-j*B[8],x=B[6]-T*B[7],S=B[5]-I*B[6],w=B[4]-O*B[5],A=B[3]-D*B[4],_=B[2]-k*B[3],b=B[1]-N*B[2],E=B[0]-V*B[1]):(j=q[0],T=q[1],I=q[2],O=q[3],D=q[4],k=q[5],N=q[6],V=q[7],z=q[8],n=R[0],v=R[1]-j*R[0],u=R[2]-T*R[1],f=R[3]-I*R[2],c=R[4]-O*R[3],p=R[5]-D*R[4],m=R[6]-k*R[5],d=R[7]-N*R[6],y=R[8]-V*R[7],h=B[0],g=B[1]-j*B[0],x=B[2]-T*B[1],S=B[3]-I*B[2],w=B[4]-O*B[3],A=B[5]-D*B[4],_=B[6]-k*B[5],b=B[7]-N*B[6],E=B[8]-V*B[7]),P=r.offset,F=e.offset,i=r.data,s=e.data,K=0,J=0;J<z;J++){for(W=0;W<V;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++)X=t.call(o,i[P],K,[P,F],[r,e]),X!==void 0&&(s[F]=a(X)),P+=n,F+=h,K+=1;P+=v,F+=g}P+=u,F+=x}P+=f,F+=S}P+=c,F+=w}P+=p,F+=A}P+=m,F+=_}P+=d,F+=b}P+=y,F+=E}}GF.exports=Mkr});var WF=l((wde,YF)=>{"use strict";function Gkr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F,L,C,U,M,G,Y,$,W,J,X,K,H,Q,Z,rr;for(T=r.shape,F=r.strides,L=e.strides,r.order==="row-major"?(I=T[9],O=T[8],D=T[7],k=T[6],N=T[5],V=T[4],z=T[3],R=T[2],B=T[1],P=T[0],n=F[9],v=F[8]-I*F[9],u=F[7]-O*F[8],f=F[6]-D*F[7],c=F[5]-k*F[6],p=F[4]-N*F[5],m=F[3]-V*F[4],d=F[2]-z*F[3],y=F[1]-R*F[2],h=F[0]-B*F[1],g=L[9],x=L[8]-I*L[9],S=L[7]-O*L[8],w=L[6]-D*L[7],A=L[5]-k*L[6],_=L[4]-N*L[5],b=L[3]-V*L[4],E=L[2]-z*L[3],q=L[1]-R*L[2],j=L[0]-B*L[1]):(I=T[0],O=T[1],D=T[2],k=T[3],N=T[4],V=T[5],z=T[6],R=T[7],B=T[8],P=T[9],n=F[0],v=F[1]-I*F[0],u=F[2]-O*F[1],f=F[3]-D*F[2],c=F[4]-k*F[3],p=F[5]-N*F[4],m=F[6]-V*F[5],d=F[7]-z*F[6],y=F[8]-R*F[7],h=F[9]-B*F[8],g=L[0],x=L[1]-I*L[0],S=L[2]-O*L[1],w=L[3]-D*L[2],A=L[4]-k*L[3],_=L[5]-N*L[4],b=L[6]-V*L[5],E=L[7]-z*L[6],q=L[8]-R*L[7],j=L[9]-B*L[8]),C=r.offset,U=e.offset,i=r.data,s=e.data,rr=0,Q=0;Q<P;Q++){for(H=0;H<B;H++){for(K=0;K<R;K++){for(X=0;X<z;X++){for(J=0;J<V;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++){for(G=0;G<O;G++){for(M=0;M<I;M++)Z=t.call(o,i[C],rr,[C,U],[r,e]),Z!==void 0&&(s[U]=a(Z)),C+=n,U+=g,rr+=1;C+=v,U+=x}C+=u,U+=S}C+=f,U+=w}C+=c,U+=A}C+=p,U+=_}C+=m,U+=b}C+=d,U+=E}C+=y,U+=q}C+=h,U+=j}}YF.exports=Gkr});var HF=l((Sde,KF)=>{"use strict";var $kr=Wr(),JF=ia(),XF="throw";function Ykr(r,e,a,t,o){var i,s,n,v,u,f,c,p,m,d,y,h,g,x;for(f=r.shape,u=$kr(f),i=r.data,s=e.data,c=r.strides,p=e.strides,m=r.offset,d=e.offset,n=r.order,v=e.order,x=0;x<u;x++)y=JF(f,c,m,n,x,XF),h=JF(f,p,d,v,x,XF),g=t.call(o,i[y],x,[y,h],[r,e]),g!==void 0&&(s[h]=a(g))}KF.exports=Ykr});var tL=l((Ede,aL)=>{"use strict";var ZF=ba(),QF=Ha(),rL=Yt(),Wkr=bP(),Jkr=qP(),Xkr=SP(),Kkr=AP(),Hkr=jP(),Zkr=OP(),Qkr=NP(),rRr=kP(),eRr=VP(),aRr=BP(),tRr=FP(),iRr=CP(),oRr=MP(),sRr=$P(),nRr=WP(),vRr=XP(),uRr=HP(),fRr=QP(),lRr=eF(),cRr=tF(),dRr=oF(),pRr=nF(),yRr=uF(),mRr=lF(),hRr=dF(),gRr=yF(),bRr=hF(),xRr=bF(),qRr=qF(),wRr=AF(),SRr=jF(),ERr=OF(),ARr=NF(),_Rr=kF(),jRr=VF(),TRr=BF(),ORr=FF(),IRr=CF(),NRr=MF(),DRr=$F(),kRr=WF(),RRr=HF(),_i=[SRr,ERr,ARr,_Rr,jRr,TRr,ORr,IRr,NRr,DRr,kRr],So=[lRr,cRr,dRr,pRr,yRr,mRr,hRr,gRr,bRr,xRr,qRr],VRr=[aRr,tRr,iRr,oRr,sRr,nRr,vRr,uRr,fRr],zRr=[Wkr,Jkr,Xkr,Kkr,Hkr,Zkr,Qkr,rRr,eRr],eL=_i.length-1;function BRr(r,e,a,t){var o,i,s,n,v,u,f,c,p,m,d,y,h,g,x,S,w;if(g=rL(r[0]),x=rL(r[1]),n=g.shape,v=x.shape,o=n.length,o!==v.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+o+". ndims(y) == "+v.length+".");if(o===0)return g.accessorProtocol||x.accessorProtocol?So[o](g,x,e,a,t):_i[o](g,x,e,a,t);for(c=1,h=0,w=0;w<o;w++){if(S=n[w],S!==v[w])throw new Error("invalid arguments. Arrays must have the same shape.");c*=S,S===1&&(h+=1)}if(c!==0){if(o===1)return g.accessorProtocol||x.accessorProtocol?So[o](g,x,e,a,t):_i[o](g,x,e,a,t);if(p=g.strides,m=x.strides,h===o-1){for(w=0;w<o&&n[w]===1;w++);return g.shape=[n[w]],x.shape=g.shape,g.strides=[p[w]],x.strides=[m[w]],g.accessorProtocol||x.accessorProtocol?So[1](g,x,e,a,t):_i[1](g,x,e,a,t)}if(u=ZF(p),f=ZF(m),u!==0&&f!==0&&u===f){if(i=QF(n,p,g.offset),s=QF(v,m,x.offset),c===i[1]-i[0]+1&&c===s[1]-s[0]+1)return u===1?d=i[0]:d=i[1],f===1?y=s[0]:y=s[1],g.shape=[c],x.shape=g.shape,g.strides=[u],x.strides=[f],g.offset=d,x.offset=y,g.accessorProtocol||x.accessorProtocol?So[1](g,x,e,a,t):_i[1](g,x,e,a,t);if(o<=eL)return g.accessorProtocol||x.accessorProtocol?So[o](g,x,e,a,t):_i[o](g,x,e,a,t)}if(o<=eL)return g.accessorProtocol||x.accessorProtocol?zRr[o-2](g,x,e,a,t):VRr[o-2](g,x,e,a,t);if(g.accessorProtocol||x.accessorProtocol)return wRr(g,x,e,a,t);RRr(g,x,e,a,t)}}aL.exports=BRr});var oL=l((Ade,iL)=>{"use strict";var PRr=tL();iL.exports=PRr});var nL=l((_de,sL)=>{"use strict";var FRr=Os(),LRr=Wu(),CRr=lo(),URr=Cu(),MRr=Ds(),GRr=ks(),$Rr=Is(),YRr=Uu(),WRr=di(),ut=Ta(),JRr=cr(),XRr={floating_point:[FRr,ut.get("dtypes.floating_point")],real_floating_point:[LRr,ut.get("dtypes.real_floating_point")],complex_floating_point:[CRr,ut.get("dtypes.complex_floating_point")],integer:[URr,ut.get("dtypes.integer")],signed_integer:[MRr,ut.get("dtypes.signed_integer")],unsigned_integer:[GRr,ut.get("dtypes.unsigned_integer")],real:[$Rr,ut.get("dtypes.real")],numeric:[YRr,ut.get("dtypes.numeric")]},KRr=ut.get("dtypes.default");function HRr(r,e){var a;if(e==="default")return KRr;if(e==="same"||e==="promoted")return r;if(e==="bool")throw new Error("not implemented");if(a=XRr[e],a===void 0){if(WRr(e))return e;throw new TypeError(JRr("invalid argument. Second argument must be a supported data type policy. Value: `%s`.",e))}return a[0](r)?r:a[1]}sL.exports=HRr});var uL=l((jde,vL)=>{"use strict";var ZRr=nL();vL.exports=ZRr});var lL=l((Tde,fL)=>{"use strict";var QRr=Ve(),rVr=Me(),eVr=Ia(),aVr=cr(),tVr=ra(),iVr=Wr();function oVr(r,e,a){var t,o,i,s;if(t=e.length,t>0?(i=iVr(e),s=QRr(e,a)):(i=1,s=[0]),o=eVr(r,i),o===null)throw new TypeError(aVr("invalid argument. First argument must be a recognized data type. Value: `%s`.",r));return new tVr(r,o,e,s,rVr(e,s),a)}fL.exports=oVr});var dL=l((Ode,cL)=>{"use strict";var sVr=lL();cL.exports=sVr});var yL=l((Ide,pL)=>{"use strict";var nVr=Ve(),vVr=Me(),uVr=Ia(),fVr=Wr(),lVr=Ye(),cVr=_e(),dVr=oa(),pVr=cr();function yVr(r){var e,a,t,o,i,s,n;if(n=lVr(r),i=cVr(r,!0),o=dVr(r),e=i.length,e>0?(a=fVr(i),s=nVr(i,o)):(a=1,s=[0]),t=uVr(n,a),t===null)throw new TypeError(pVr("invalid argument. First argument must have a recognized data type. Value: `%s`.",n));return new r.constructor(n,t,i,s,vVr(i,s),o)}pL.exports=yVr});var hL=l((Nde,mL)=>{"use strict";var mVr=yL();mL.exports=mVr});var bL=l((Dde,gL)=>{"use strict";var Sr=Ot(),wr={};Sr(wr,"assert",t_());Sr(wr,"assign",Ku());Sr(wr,"binaryLoopOrder",Bj());Sr(wr,"binaryBlockSize",Mj());Sr(wr,"bind2vind",rT());Sr(wr,"broadcastArray",mo());Sr(wr,"broadcastArrays",lT());Sr(wr,"broadcastScalar",yT());Sr(wr,"broadcastShapes",bi());Sr(wr,"buffer",Ia());Sr(wr,"bufferCtors",no());Sr(wr,"bufferDataType",ws());Sr(wr,"bufferDataTypeEnum",bT());Sr(wr,"bytesPerElement",Ka());Sr(wr,"char2dtype",NT());Sr(wr,"clampIndex",us());Sr(wr,"ndarray",ra());Sr(wr,"data",nt());Sr(wr,"dtype",Ye());Sr(wr,"dtypeChar",af());Sr(wr,"dtypeDesc",PT());Sr(wr,"dtypeEnum2Str",cs());Sr(wr,"dtypeResolveEnum",sf());Sr(wr,"dtypeResolveStr",Oa());Sr(wr,"dtypeStr2Enum",oo());Sr(wr,"dtype2c",YT());Sr(wr,"dtypes2signatures",vf());Sr(wr,"empty",DO());Sr(wr,"emptyLike",zO());Sr(wr,"expandDimensions",GO());Sr(wr,"flag",Yu());Sr(wr,"flags",co());Sr(wr,"fliplr",f7());Sr(wr,"flipud",m7());Sr(wr,"forEach",xD());Sr(wr,"scalar2ndarray",ED());Sr(wr,"ind",it());Sr(wr,"ind2sub",Si());Sr(wr,"iterationOrder",ba());Sr(wr,"maxViewBufferIndex",TD());Sr(wr,"maybeBroadcastArray",wf());Sr(wr,"maybeBroadcastArrays",zD());Sr(wr,"metaDataProps",LD());Sr(wr,"minViewBufferIndex",GD());Sr(wr,"minmaxViewBufferIndex",Ha());Sr(wr,"ndarraylike2ndarray",JD());Sr(wr,"ndarraylike2object",Yt());Sr(wr,"ndims",Ra());Sr(wr,"nextCartesianIndex",Je());Sr(wr,"nonsingletonDimensions",tk());Sr(wr,"normalizeIndex",ca());Sr(wr,"nullary",PR());Sr(wr,"nullaryLoopOrder",Hr());Sr(wr,"nullaryBlockSize",Zr());Sr(wr,"numel",Wr());Sr(wr,"numelDimension",Af());Sr(wr,"offset",$a());Sr(wr,"order",oa());Sr(wr,"outputPolicyEnum2Str",Us());Sr(wr,"outputPolicyResolveEnum",nV());Sr(wr,"outputPolicyResolveStr",lV());Sr(wr,"outputPolicyStr2Enum",Ms());Sr(wr,"prependSingletonDimensions",bV());Sr(wr,"removeSingletonDimensions",jV());Sr(wr,"reverse",NV());Sr(wr,"reverseDimension",Fs());Sr(wr,"serializeMetaData",FV());Sr(wr,"shape",_e());Sr(wr,"shape2strides",Ve());Sr(wr,"singletonDimensions",MV());Sr(wr,"slice",pe());Sr(wr,"sliceAssign",Gs());Sr(wr,"sliceDimension",Of());Sr(wr,"sliceDimensionFrom",If());Sr(wr,"sliceDimensionTo",Nf());Sr(wr,"sliceFrom",Df());Sr(wr,"sliceTo",kf());Sr(wr,"stride",Rf());Sr(wr,"strides",ya());Sr(wr,"strides2offset",Me());Sr(wr,"strides2order",kt());Sr(wr,"sub2ind",Vf());Sr(wr,"ndarray2array",zf());Sr(wr,"transpose",Oz());Sr(wr,"unary",hP());Sr(wr,"unaryBy",oL());Sr(wr,"unaryLoopOrder",Rr());Sr(wr,"unaryOutputDataType",uL());Sr(wr,"unaryBlockSize",kr());Sr(wr,"vind2bind",ia());Sr(wr,"wrapIndex",fs());Sr(wr,"zeros",dL());Sr(wr,"zerosLike",hL());gL.exports=wr});var qL=l((kde,xL)=>{"use strict";var hVr=se(),gVr=Ne(),bVr=me().isPrimitive,Eo=xt(),xVr=Na(),qVr=ie(),wVr=Ma(),SVr=bt(),EVr=Ga(),AVr=ot(),Ao=cr();function _Vr(r,e){var a,t,o,i,s,n,v,u,f;if(!hVr(r))throw new TypeError(Ao("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!gVr(e))throw new TypeError(Ao("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.",e));if(s=e.length,o=qVr(r),n=o.length,s<n)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=[],u=0;u<s;u++)a.push(0);for(i=wVr(r),u=s-1;u>=0;u--)if(f=n-s+u,!(f<0)){if(v=o[f],t=e[u],!bVr(t))throw new TypeError(Ao("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.","["+e.join(",")+"]"));if(t!==0&&t<v)throw new Error(Ao("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.",Eo(o).join(", "),Eo(e).join(", "),u));if(v===t)a[u]=i[f];else if(v===1)a[u]=0;else throw new Error(Ao("invalid argument. Input array and the specified shape are broadcast incompatible. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Eo(o).join(", "),Eo(e).join(", "),u))}return new r.constructor(xVr(r),AVr(r),Eo(e),a,SVr(r),EVr(r),{readonly:!0})}xL.exports=_Vr});var $s=l((Rde,wL)=>{"use strict";var jVr=qL();wL.exports=jVr});var AL=l((Vde,EL)=>{"use strict";var TVr=se(),OVr=ze(),IVr=bi(),NVr=$s(),DVr=ie(),SL=cr();function kVr(r){var e,a,t,o,i,s,n;if(a=arguments.length,a===0)t=[];else if(a>1)for(t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);else if(TVr(r))t=[r];else if(OVr(r))t=r;else throw new TypeError(SL("invalid argument. First argument must be either an ndarray or an array of ndarrays. Value: `%s`.",r));for(s=t.length,e=[],n=0;n<s;n++)try{e.push(DVr(t[n]))}catch{throw new TypeError(SL("invalid argument. An ndarray argument must be an ndarray. Value: `%s`.",t[n]))}if(i=IVr(e),i===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(o=[],n=0;n<s;n++)o.push(NVr(t[n],i));return o}EL.exports=kVr});var Bf=l((zde,_L)=>{"use strict";var RVr=AL();_L.exports=RVr});var Pf=l((Bde,jL)=>{"use strict";var VVr=ve().isPrimitive;function zVr(r){return VVr(r)&&r>0}jL.exports=zVr});var Ff=l((Pde,TL)=>{"use strict";var BVr=ve().isObject;function PVr(r){return BVr(r)&&r.valueOf()>0}TL.exports=PVr});var IL=l((Fde,OL)=>{"use strict";var FVr=Pf(),LVr=Ff();function CVr(r){return FVr(r)||LVr(r)}OL.exports=CVr});var Ys=l((Lde,DL)=>{"use strict";var NL=Tr(),Lf=IL(),UVr=Pf(),MVr=Ff();NL(Lf,"isPrimitive",UVr);NL(Lf,"isObject",MVr);DL.exports=Lf});var RL=l((Cde,kL)=>{"use strict";var GVr=Ho(),$Vr=Fe(),YVr=GVr($Vr);kL.exports=YVr});var zL=l((Ude,VL)=>{"use strict";function WVr(r,e,a,t,o,i,s,n,v){var u,f,c,p;for(u=i,c=0;c<r;c++){for(f=v,p=0;p<e&&a[u+p*o]===s[f];p++)f+=n;if(p===e)return c;u+=t}return-1}VL.exports=WVr});var CL=l((Mde,LL)=>{"use strict";var BL=me().isPrimitive,JVr=Ys(),XVr=ve().isPrimitive,KVr=RL(),HVr=Fe(),PL=Ne(),ZVr=se(),wt=cr(),QVr=Na(),FL=sf(),rzr=zL();function ezr(r){var e,a;for(e=[],a=0;a<r.length;a++)e.push(FL(r[a]));return e}function azr(r,e,a,t,o,i){var s,n,v;if(HVr(r))v=r;else if(!KVr(r))throw new TypeError(wt("invalid argument. First argument must be either a function or an array of functions. Value: `%s`.",r));if(!PL(e))throw new TypeError(wt("invalid argument. Second argument must be an array-like object. Value: `%s`.",e));if(!PL(a)&&a!==null)throw new TypeError(wt("invalid argument. Third argument must be an array-like object or null. Value: `%s`.",a));if(!JVr(t))throw new TypeError(wt("invalid argument. Fourth argument must be a positive integer. Value: `%s`.",t));if(!BL(o))throw new TypeError(wt("invalid argument. Fifth argument must be a nonnegative integer. Value: `%s`.",o));if(!BL(i))throw new TypeError(wt("invalid argument. Sixth argument must be a nonnegative integer. Value: `%s`.",i));if(s=o+i,s===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!==s)throw new Error("invalid arguments. Fourth argument does not equal the number of input and output ndarrays.");if(v){if(n=e.length/s,!XVr(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.")}else if(n=r.length,e.length!==n*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.");if(a&&a.length!==n)throw new Error("invalid argument. The third argument must have the same number of elements as the first argument.");return e=ezr(e),u;function u(){var f,c,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=[],c=[],h=0;h<t;h++){if(d=arguments[h],!ZVr(d))throw h<o?new TypeError(wt("invalid argument. Input array must be an ndarray-like object. Value: `%s`.",d)):new TypeError(wt("invalid argument. Output array must be an ndarray-like object. Value: `%s`.",d));f.push(d),c.push(FL(QVr(d)))}if(m=rzr(n,s,e,s,1,0,c,1,0),m<0)throw new TypeError("invalid arguments. Unable to resolve an ndarray function supporting the provided array argument data types.");if(v?y=v:y=r[m],a?y(f,a[m]):y(f),i===1)return f[s-1];if(i!==0)return f.slice(o)}}LL.exports=azr});var ML=l((Gde,UL)=>{"use strict";var tzr=CL();UL.exports=tzr});var JL=l(($de,WL)=>{"use strict";var izr=oe(),Ws=Jr(),ozr=Ko(),szr=Ve(),nzr=Me(),vzr=ho(),uzr=Ua(),fzr=Wr(),lzr=da(),YL=Ta(),Cf=cr(),GL=YL.get("dtypes.default"),$L=YL.get("order");function czr(r){var e,a,t,o,i,s,n,v,u;if(i={},arguments.length>1){if(e=arguments[1],!izr(e))throw new TypeError(Cf("invalid argument. Options argument must be an object. Value: `%s`.",e));Ws(e,"dtype")?a=e.dtype:a=GL,Ws(e,"order")?t=e.order:t=$L,Ws(e,"mode")&&(i.mode=e.mode),Ws(e,"submode")&&(i.submode=e.submode)}else a=GL,t=$L;if(typeof r=="number")u=[r];else if(ozr(r))u=r;else throw new TypeError(Cf("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));if(o=u.length,o>0){if(n=fzr(u),n!==n||n<0)throw new TypeError(Cf("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));v=szr(u,t)}else n=1,v=[0];return a==="binary"?s=uzr(n):s=vzr(n,a),new lzr(a,s,u,v,nzr(u,v),t,i)}WL.exports=czr});var KL=l((Yde,XL)=>{"use strict";var dzr=JL();XL.exports=dzr});var eC=l((Wde,rC)=>{"use strict";var pzr=se(),yzr=oe(),mzr=Ct().primitives,_o=Jr(),hzr=Ve(),gzr=Me(),bzr=Wr(),HL=Na(),ZL=ie(),QL=Ga(),xzr=da(),qzr=ho(),wzr=Ua(),Uf=cr();function Szr(r){var e,a,t,o,i,s,n,v,u;if(!pzr(r))throw new TypeError(Uf("invalid argument. First argument must be an ndarray-like object. Value: `%s`.",r));if(i={},arguments.length>1){if(e=arguments[1],!yzr(e))throw new TypeError(Uf("invalid argument. Options argument must be an object. Value: `%s`.",e));if(_o(e,"dtype")?a=e.dtype:a=HL(r),_o(e,"shape")){if(u=e.shape,typeof u=="number"&&(u=[u]),!mzr(u))throw new TypeError(Uf("invalid option. `%s` option must be a nonnegative integer or an array of nonnegative integers. Option: `%s`.","shape",u))}else u=ZL(r);_o(e,"order")?t=e.order:t=QL(r),_o(e,"mode")&&(i.mode=e.mode),_o(e,"submode")&&(i.submode=e.submode)}else a=HL(r),u=ZL(r),t=QL(r);return o=u.length,o>0?(n=bzr(u),v=hzr(u,t)):(n=1,v=[0]),a==="binary"?s=wzr(n):s=qzr(n,a),new xzr(a,s,u,v,gzr(u,v),t,i)}rC.exports=Szr});var tC=l((Jde,aC)=>{"use strict";var Ezr=eC();aC.exports=Ezr});var oC=l((Xde,iC)=>{"use strict";var Azr=eval;iC.exports=Azr});var nC=l((Kde,sC)=>{"use strict";var _zr=oC();function jzr(){var r;try{_zr('"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}sC.exports=jzr});var uC=l((Hde,vC)=>{"use strict";var Tzr=nC();vC.exports=Tzr});var lC=l((Zde,fC)=>{"use strict";var Ozr=typeof Proxy>"u"?null:Proxy;fC.exports=Ozr});var dC=l((Qde,cC)=>{"use strict";function Izr(r){return r}cC.exports=Izr});var yC=l((r0e,pC)=>{"use strict";var Nzr=uC(),Dzr=lC(),kzr=dC(),Mf;Nzr()?Mf=Dzr:Mf=kzr;pC.exports=Mf});var hC=l((e0e,mC)=>{"use strict";var Rzr=typeof String.prototype.trim<"u";mC.exports=Rzr});var Gf=l((a0e,gC)=>{"use strict";var Vzr=String.prototype.trim;gC.exports=Vzr});var wC=l((t0e,qC)=>{"use strict";var bC=Gf(),zzr=`
|
|
1
|
+
"use strict";var RX=Object.create;var Vo=Object.defineProperty;var BX=Object.getOwnPropertyDescriptor;var zX=Object.getOwnPropertyNames;var VX=Object.getPrototypeOf,PX=Object.prototype.hasOwnProperty;var c=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),FX=(r,e)=>{for(var a in e)Vo(r,a,{get:e[a],enumerable:!0})},wc=(r,e,a,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of zX(e))!PX.call(r,o)&&o!==a&&Vo(r,o,{get:()=>e[o],enumerable:!(t=BX(e,o))||t.enumerable});return r};var He=(r,e,a)=>(a=r!=null?RX(VX(r)):{},wc(e||!r||!r.__esModule?Vo(a,"default",{value:r,enumerable:!0}):a,r)),LX=r=>wc(Vo({},"__esModule",{value:!0}),r);var Ec=c((gKr,Sc)=>{"use strict";var CX=typeof Object.defineProperty=="function"?Object.defineProperty:null;Sc.exports=CX});var _c=c((hKr,Ac)=>{"use strict";var UX=Ec();function MX(){try{return UX({},"x",{}),!0}catch{return!1}}Ac.exports=MX});var Tc=c((bKr,jc)=>{"use strict";var GX=Object.defineProperty;jc.exports=GX});var Tn=c((xKr,Oc)=>{"use strict";function $X(r){return typeof r=="number"}Oc.exports=$X});var On=c((qKr,Nc)=>{"use strict";function YX(r){return r[0]==="-"}function Ic(r){var e="",a;for(a=0;a<r;a++)e+="0";return e}function WX(r,e,a){var t=!1,o=e-r.length;return o<0||(YX(r)&&(t=!0,r=r.substr(1)),r=a?r+Ic(o):Ic(o)+r,t&&(r="-"+r)),r}Nc.exports=WX});var Bc=c((wKr,Rc)=>{"use strict";var JX=Tn(),Dc=On(),KX=String.prototype.toLowerCase,kc=String.prototype.toUpperCase;function XX(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(!JX(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=Dc(a,r.precision,r.padRight)),a="-"+a):(a=t.toString(e),!t&&!r.precision?a="":r.precision&&(a=Dc(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):KX.call(a)),e===8&&r.alternate&&a.charAt(0)!=="0"&&(a="0"+a),a}Rc.exports=XX});var Vc=c((SKr,zc)=>{"use strict";function HX(r){return typeof r=="string"}zc.exports=HX});var Lc=c((EKr,Fc)=>{"use strict";var ZX=Tn(),QX=Math.abs,rH=String.prototype.toLowerCase,Pc=String.prototype.toUpperCase,Tt=String.prototype.replace,eH=/e\+(\d)$/,aH=/e-(\d)$/,tH=/^(\d+)$/,iH=/^(\d+)e/,oH=/\.0$/,sH=/\.0*e/,nH=/(\..*[^0])0*e/;function vH(r){var e,a,t=parseFloat(r.arg);if(!isFinite(t)){if(!ZX(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":QX(t)<1e-4?(e=r.precision,e>0&&(e-=1),a=t.toExponential(e)):a=t.toPrecision(r.precision),r.alternate||(a=Tt.call(a,nH,"$1e"),a=Tt.call(a,sH,"e"),a=Tt.call(a,oH,""));break;default:throw new Error("invalid double notation. Value: "+r.specifier)}return a=Tt.call(a,eH,"e+0$1"),a=Tt.call(a,aH,"e-0$1"),r.alternate&&(a=Tt.call(a,tH,"$1."),a=Tt.call(a,iH,"$1.e")),t>=0&&r.sign&&(a=r.sign+a),a=r.specifier===Pc.call(r.specifier)?Pc.call(a):rH.call(a),a}Fc.exports=vH});var Mc=c((AKr,Uc)=>{"use strict";function Cc(r){var e="",a;for(a=0;a<r;a++)e+=" ";return e}function uH(r,e,a){var t=e-r.length;return t<0||(r=a?r+Cc(t):Cc(t)+r),r}Uc.exports=uH});var $c=c((_Kr,Gc)=>{"use strict";var fH=Bc(),lH=Vc(),cH=Lc(),dH=Mc(),pH=On(),yH=String.fromCharCode,mH=Array.isArray;function Po(r){return r!==r}function gH(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 hH(r){var e,a,t,o,i,n,s,v,u;if(!mH(r))throw new TypeError("invalid argument. First argument must be an array. Value: `"+r+"`.");for(n="",s=1,v=0;v<r.length;v++)if(t=r[v],lH(t))n+=t;else{if(e=t.precision!==void 0,t=gH(t),!t.specifier)throw new TypeError("invalid argument. Token is missing `specifier` property. Index: `"+v+"`. Value: `"+t+"`.");for(t.mapping&&(s=t.mapping),a=t.flags,u=0;u<a.length;u++)switch(o=a.charAt(u),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,Po(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,Po(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=fH(t);break;case"s":t.maxWidth=e?t.precision:-1,t.arg=String(t.arg);break;case"c":if(!Po(t.arg)){if(i=parseInt(t.arg,10),i<0||i>127)throw new Error("invalid character code. Value: "+t.arg);t.arg=Po(i)?String(t.arg):yH(i)}break;case"e":case"E":case"f":case"F":case"g":case"G":e||(t.precision=6),t.arg=cH(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=pH(t.arg,t.width||t.precision,t.padRight):t.width&&(t.arg=dH(t.arg,t.width,t.padRight)),n+=t.arg||"",s+=1}return n}Gc.exports=hH});var Wc=c((jKr,Yc)=>{"use strict";var bH=$c();Yc.exports=bH});var Kc=c((TKr,Jc)=>{"use strict";var Fo=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;function xH(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 qH(r){var e,a,t,o;for(a=[],o=0,t=Fo.exec(r);t;)e=r.slice(o,Fo.lastIndex-t[0].length),e.length&&a.push(e),a.push(xH(t)),o=Fo.lastIndex,t=Fo.exec(r);return e=r.slice(o),e.length&&a.push(e),a}Jc.exports=qH});var Hc=c((OKr,Xc)=>{"use strict";var wH=Kc();Xc.exports=wH});var Qc=c((IKr,Zc)=>{"use strict";function SH(r){return typeof r=="string"}Zc.exports=SH});var ad=c((NKr,ed)=>{"use strict";var EH=Wc(),AH=Hc(),_H=Qc();function rd(r){var e,a;if(!_H(r))throw new TypeError(rd("invalid argument. First argument must be a string. Value: `%s`.",r));for(e=[AH(r)],a=1;a<arguments.length;a++)e.push(arguments[a]);return EH.apply(null,e)}ed.exports=rd});var cr=c((DKr,td)=>{"use strict";var jH=ad();td.exports=jH});var ud=c((kKr,vd)=>{"use strict";var id=cr(),Qt=Object.prototype,od=Qt.toString,sd=Qt.__defineGetter__,nd=Qt.__defineSetter__,TH=Qt.__lookupGetter__,OH=Qt.__lookupSetter__;function IH(r,e,a){var t,o,i,n;if(typeof r!="object"||r===null||od.call(r)==="[object Array]")throw new TypeError(id("invalid argument. First argument must be an object. Value: `%s`.",r));if(typeof a!="object"||a===null||od.call(a)==="[object Array]")throw new TypeError(id("invalid argument. Property descriptor must be an object. Value: `%s`.",a));if(o="value"in a,o&&(TH.call(r,e)||OH.call(r,e)?(t=r.__proto__,r.__proto__=Qt,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&&nd&&nd.call(r,e,a.set),r}vd.exports=IH});var Ot=c((RKr,fd)=>{"use strict";var NH=_c(),DH=Tc(),kH=ud(),In;NH()?In=DH:In=kH;fd.exports=In});var cd=c((BKr,ld)=>{"use strict";var RH=Ot();function BH(r,e,a){RH(r,e,{configurable:!1,enumerable:!0,writable:!1,value:a})}ld.exports=BH});var It=c((zKr,dd)=>{"use strict";var zH=cd();dd.exports=zH});var yd=c((VKr,pd)=>{"use strict";var VH=Object.prototype.hasOwnProperty;function PH(r,e){return r==null?!1:VH.call(r,e)}pd.exports=PH});var Jr=c((PKr,md)=>{"use strict";var FH=yd();md.exports=FH});var hd=c((FKr,gd)=>{"use strict";function LH(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}gd.exports=LH});var Nn=c((LKr,bd)=>{"use strict";var CH=hd();bd.exports=CH});var qd=c((CKr,xd)=>{"use strict";var UH=Nn(),MH=UH();function GH(){return MH&&typeof Symbol.toStringTag=="symbol"}xd.exports=GH});var ri=c((UKr,wd)=>{"use strict";var $H=qd();wd.exports=$H});var Dn=c((MKr,Sd)=>{"use strict";var YH=Object.prototype.toString;Sd.exports=YH});var Ad=c((GKr,Ed)=>{"use strict";var WH=Dn();function JH(r){return WH.call(r)}Ed.exports=JH});var jd=c(($Kr,_d)=>{"use strict";var KH=typeof Symbol=="function"?Symbol:void 0;_d.exports=KH});var kn=c((YKr,Td)=>{"use strict";var XH=jd();Td.exports=XH});var Nd=c((WKr,Id)=>{"use strict";var Od=kn(),HH=typeof Od=="function"?Od.toStringTag:"";Id.exports=HH});var kd=c((JKr,Dd)=>{"use strict";var ZH=Jr(),zi=Nd(),Rn=Dn();function QH(r){var e,a,t;if(r==null)return Rn.call(r);a=r[zi],e=ZH(r,zi);try{r[zi]=void 0}catch{return Rn.call(r)}return t=Rn.call(r),e?r[zi]=a:delete r[zi],t}Dd.exports=QH});var ye=c((KKr,Rd)=>{"use strict";var rZ=ri(),eZ=Ad(),aZ=kd(),Bn;rZ()?Bn=aZ:Bn=eZ;Rd.exports=Bn});var zd=c((XKr,Bd)=>{"use strict";var tZ=ye(),zn;function iZ(r){return tZ(r)==="[object Array]"}Array.isArray?zn=Array.isArray:zn=iZ;Bd.exports=zn});var ha=c((HKr,Vd)=>{"use strict";var oZ=zd();Vd.exports=oZ});var Fd=c((ZKr,Pd)=>{"use strict";var sZ=ha();function nZ(r){return typeof r=="object"&&r!==null&&!sZ(r)}Pd.exports=nZ});var Vi=c((QKr,Ld)=>{"use strict";var vZ=Fd();Ld.exports=vZ});var Ud=c((rXr,Cd)=>{"use strict";var uZ=/./;Cd.exports=uZ});var Gd=c((eXr,Md)=>{"use strict";var fZ=Ot();function lZ(r,e,a){fZ(r,e,{configurable:!1,enumerable:!1,writable:!1,value:a})}Md.exports=lZ});var Tr=c((aXr,$d)=>{"use strict";var cZ=Gd();$d.exports=cZ});var Vn=c((tXr,Yd)=>{"use strict";function dZ(r){return typeof r=="boolean"}Yd.exports=dZ});var Jd=c((iXr,Wd)=>{"use strict";var pZ=Boolean;Wd.exports=pZ});var Nt=c((oXr,Kd)=>{"use strict";var yZ=Jd();Kd.exports=yZ});var Hd=c((sXr,Xd)=>{"use strict";var mZ=Boolean.prototype.toString;Xd.exports=mZ});var Qd=c((nXr,Zd)=>{"use strict";var gZ=Hd();function hZ(r){try{return gZ.call(r),!0}catch{return!1}}Zd.exports=hZ});var Pn=c((vXr,r0)=>{"use strict";var bZ=ri(),xZ=ye(),qZ=Nt(),wZ=Qd(),SZ=bZ();function EZ(r){return typeof r=="object"?r instanceof qZ?!0:SZ?wZ(r):xZ(r)==="[object Boolean]":!1}r0.exports=EZ});var a0=c((uXr,e0)=>{"use strict";var AZ=Vn(),_Z=Pn();function jZ(r){return AZ(r)||_Z(r)}e0.exports=jZ});var de=c((fXr,i0)=>{"use strict";var t0=Tr(),Fn=a0(),TZ=Vn(),OZ=Pn();t0(Fn,"isPrimitive",TZ);t0(Fn,"isObject",OZ);i0.exports=Fn});var s0=c((lXr,o0)=>{"use strict";function IZ(){return new Function("return this;")()}o0.exports=IZ});var v0=c((cXr,n0)=>{"use strict";var NZ=typeof self=="object"?self:null;n0.exports=NZ});var f0=c((dXr,u0)=>{"use strict";var DZ=typeof window=="object"?window:null;u0.exports=DZ});var c0=c((pXr,l0)=>{"use strict";var kZ=typeof global=="object"?global:null;l0.exports=kZ});var p0=c((yXr,d0)=>{"use strict";var RZ=typeof globalThis=="object"?globalThis:null;d0.exports=RZ});var x0=c((mXr,b0)=>{"use strict";var BZ=de().isPrimitive,zZ=cr(),VZ=s0(),y0=v0(),m0=f0(),g0=c0(),h0=p0();function PZ(r){if(arguments.length){if(!BZ(r))throw new TypeError(zZ("invalid argument. Must provide a boolean. Value: `%s`.",r));if(r)return VZ()}if(h0)return h0;if(y0)return y0;if(m0)return m0;if(g0)return g0;throw new Error("unexpected error. Unable to resolve global object.")}b0.exports=PZ});var Ln=c((gXr,q0)=>{"use strict";var FZ=x0();q0.exports=FZ});var E0=c((hXr,S0)=>{"use strict";var LZ=Ln(),w0=LZ(),CZ=w0.document&&w0.document.childNodes;S0.exports=CZ});var _0=c((bXr,A0)=>{"use strict";var UZ=Int8Array;A0.exports=UZ});var T0=c((xXr,j0)=>{"use strict";var MZ=Ud(),GZ=E0(),$Z=_0();function YZ(){return typeof MZ=="function"||typeof $Z=="object"||typeof GZ=="function"}j0.exports=YZ});var Cn=c((qXr,O0)=>{"use strict";function WZ(){return/^\s*function\s*([^(]*)/i}O0.exports=WZ});var N0=c((wXr,I0)=>{"use strict";var JZ=Cn(),KZ=JZ();I0.exports=KZ});var R0=c((SXr,k0)=>{"use strict";var XZ=Tr(),D0=Cn(),HZ=N0();XZ(D0,"REGEXP",HZ);k0.exports=D0});var z0=c((EXr,B0)=>{"use strict";var ZZ=ha(),QZ=cr();function rQ(r){if(typeof r!="function")throw new TypeError(QZ("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}}B0.exports=rQ});var Un=c((AXr,V0)=>{"use strict";var eQ=z0();V0.exports=eQ});var F0=c((_Xr,P0)=>{"use strict";function aQ(r){return r!==null&&typeof r=="object"}P0.exports=aQ});var Lo=c((jXr,L0)=>{"use strict";var tQ=Tr(),iQ=Un(),Mn=F0(),oQ=iQ(Mn);tQ(Mn,"isObjectLikeArray",oQ);L0.exports=Mn});var U0=c((TXr,C0)=>{"use strict";var sQ=Lo();function nQ(r){return sQ(r)&&(r._isBuffer||r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r))}C0.exports=nQ});var Pi=c((OXr,M0)=>{"use strict";var vQ=U0();M0.exports=vQ});var $0=c((IXr,G0)=>{"use strict";var uQ=ye(),fQ=R0().REGEXP,lQ=Pi();function cQ(r){var e,a,t;if(a=uQ(r).slice(8,-1),(a==="Object"||a==="Error")&&r.constructor){if(t=r.constructor,typeof t.name=="string")return t.name;if(e=fQ.exec(t.toString()),e)return e[1]}return lQ(r)?"Buffer":a}G0.exports=cQ});var yt=c((NXr,Y0)=>{"use strict";var dQ=$0();Y0.exports=dQ});var J0=c((DXr,W0)=>{"use strict";var pQ=yt();function yQ(r){var e;return r===null?"null":(e=typeof r,e==="object"?pQ(r).toLowerCase():e)}W0.exports=yQ});var X0=c((kXr,K0)=>{"use strict";var mQ=yt();function gQ(r){return mQ(r).toLowerCase()}K0.exports=gQ});var ei=c((RXr,H0)=>{"use strict";var hQ=T0(),bQ=J0(),xQ=X0(),qQ=hQ()?xQ:bQ;H0.exports=qQ});var Q0=c((BXr,Z0)=>{"use strict";var wQ=ei();function SQ(r){return wQ(r)==="function"}Z0.exports=SQ});var Fe=c((zXr,rp)=>{"use strict";var EQ=Q0();rp.exports=EQ});var ap=c((VXr,ep)=>{"use strict";var AQ=Object;ep.exports=AQ});var Dt=c((PXr,tp)=>{"use strict";var _Q=ap();tp.exports=_Q});var op=c((FXr,ip)=>{"use strict";var jQ=Object.getPrototypeOf;ip.exports=jQ});var np=c((LXr,sp)=>{"use strict";function TQ(r){return r.__proto__}sp.exports=TQ});var up=c((CXr,vp)=>{"use strict";var OQ=ye(),IQ=np();function NQ(r){var e=IQ(r);return e||e===null?e:OQ(r.constructor)==="[object Function]"?r.constructor.prototype:r instanceof Object?Object.prototype:null}vp.exports=NQ});var lp=c((UXr,fp)=>{"use strict";var DQ=Fe(),kQ=op(),RQ=up(),Gn;DQ(Object.getPrototypeOf)?Gn=kQ:Gn=RQ;fp.exports=Gn});var dp=c((MXr,cp)=>{"use strict";var BQ=Dt(),zQ=lp();function VQ(r){return r==null?null:(r=BQ(r),zQ(r))}cp.exports=VQ});var kt=c((GXr,pp)=>{"use strict";var PQ=dp();pp.exports=PQ});var gp=c(($Xr,mp)=>{"use strict";var FQ=Vi(),yp=Fe(),LQ=kt(),Co=Jr(),CQ=ye(),UQ=Object.prototype;function MQ(r){var e;for(e in r)if(!Co(r,e))return!1;return!0}function GQ(r){var e;return FQ(r)?(e=LQ(r),e?!Co(r,"constructor")&&Co(e,"constructor")&&yp(e.constructor)&&CQ(e.constructor)==="[object Function]"&&Co(e,"isPrototypeOf")&&yp(e.isPrototypeOf)&&(e===UQ||MQ(r)):!0):!1}mp.exports=GQ});var oe=c((YXr,hp)=>{"use strict";var $Q=gp();hp.exports=$Q});var $n=c((WXr,bp)=>{"use strict";function YQ(r){return typeof r=="number"}bp.exports=YQ});var qp=c((JXr,xp)=>{"use strict";xp.exports=Number});var Uo=c((KXr,wp)=>{"use strict";var WQ=qp();wp.exports=WQ});var Ep=c((XXr,Sp)=>{"use strict";var JQ=Uo(),KQ=JQ.prototype.toString;Sp.exports=KQ});var _p=c((HXr,Ap)=>{"use strict";var XQ=Ep();function HQ(r){try{return XQ.call(r),!0}catch{return!1}}Ap.exports=HQ});var Yn=c((ZXr,jp)=>{"use strict";var ZQ=ri(),QQ=ye(),rrr=Uo(),err=_p(),arr=ZQ();function trr(r){return typeof r=="object"?r instanceof rrr?!0:arr?err(r):QQ(r)==="[object Number]":!1}jp.exports=trr});var Op=c((QXr,Tp)=>{"use strict";var irr=$n(),orr=Yn();function srr(r){return irr(r)||orr(r)}Tp.exports=srr});var Ue=c((rHr,Np)=>{"use strict";var Ip=Tr(),Wn=Op(),nrr=$n(),vrr=Yn();Ip(Wn,"isPrimitive",nrr);Ip(Wn,"isObject",vrr);Np.exports=Wn});var Fi=c((eHr,Dp)=>{"use strict";var urr=Number.POSITIVE_INFINITY;Dp.exports=urr});var Mo=c((aHr,kp)=>{"use strict";var frr=Uo(),lrr=frr.NEGATIVE_INFINITY;kp.exports=lrr});var Bp=c((tHr,Rp)=>{"use strict";var crr=Math.floor;Rp.exports=crr});var Ze=c((iHr,zp)=>{"use strict";var drr=Bp();zp.exports=drr});var Pp=c((oHr,Vp)=>{"use strict";var prr=Ze();function yrr(r){return prr(r)===r}Vp.exports=yrr});var ba=c((sHr,Fp)=>{"use strict";var mrr=Pp();Fp.exports=mrr});var Jn=c((nHr,Lp)=>{"use strict";var grr=Fi(),hrr=Mo(),brr=ba();function xrr(r){return r<grr&&r>hrr&&brr(r)}Lp.exports=xrr});var Kn=c((vHr,Cp)=>{"use strict";var qrr=Ue().isPrimitive,wrr=Jn();function Srr(r){return qrr(r)&&wrr(r)}Cp.exports=Srr});var Xn=c((uHr,Up)=>{"use strict";var Err=Ue().isObject,Arr=Jn();function _rr(r){return Err(r)&&Arr(r.valueOf())}Up.exports=_rr});var Gp=c((fHr,Mp)=>{"use strict";var jrr=Kn(),Trr=Xn();function Orr(r){return jrr(r)||Trr(r)}Mp.exports=Orr});var ue=c((lHr,Yp)=>{"use strict";var $p=Tr(),Hn=Gp(),Irr=Kn(),Nrr=Xn();$p(Hn,"isPrimitive",Irr);$p(Hn,"isObject",Nrr);Yp.exports=Hn});var Zn=c((cHr,Wp)=>{"use strict";var Drr=ue().isPrimitive;function krr(r){return Drr(r)&&r>=0}Wp.exports=krr});var Qn=c((dHr,Jp)=>{"use strict";var Rrr=ue().isObject;function Brr(r){return Rrr(r)&&r.valueOf()>=0}Jp.exports=Brr});var Xp=c((pHr,Kp)=>{"use strict";var zrr=Zn(),Vrr=Qn();function Prr(r){return zrr(r)||Vrr(r)}Kp.exports=Prr});var me=c((yHr,Zp)=>{"use strict";var Hp=Tr(),rv=Xp(),Frr=Zn(),Lrr=Qn();Hp(rv,"isPrimitive",Frr);Hp(rv,"isObject",Lrr);Zp.exports=rv});var ey=c((mHr,ry)=>{"use strict";var Crr=Ln(),Qp=Crr();function Urr(){return typeof Qp.BigInt=="function"&&typeof BigInt=="function"&&typeof Qp.BigInt("1")=="bigint"&&typeof BigInt("1")=="bigint"}ry.exports=Urr});var ev=c((gHr,ay)=>{"use strict";var Mrr=ey();ay.exports=Mrr});var iy=c((hHr,ty)=>{"use strict";var Grr=Ot();function $rr(r,e,a){Grr(r,e,{configurable:!1,enumerable:!1,get:a})}ty.exports=$rr});var mt=c((bHr,oy)=>{"use strict";var Yrr=iy();oy.exports=Yrr});var sy=c((xHr,Wrr)=>{Wrr.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 vy=c((qHr,ny)=>{"use strict";var Jrr=sy();function Krr(r){return Jrr[r]||null}ny.exports=Krr});var Ha=c((wHr,uy)=>{"use strict";var Xrr=vy();uy.exports=Xrr});var ly=c((SHr,fy)=>{"use strict";function Hrr(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}fy.exports=Hrr});var xa=c((EHr,cy)=>{"use strict";var Zrr=ly();cy.exports=Zrr});var py=c((AHr,dy)=>{"use strict";function Qrr(r){return Math.abs(r)}dy.exports=Qrr});var ai=c((_Hr,yy)=>{"use strict";var rer=py();yy.exports=rer});var hy=c((jHr,gy)=>{"use strict";var my=ai();function eer(r){var e,a,t,o,i,n;if(a=r.length,a===0)return 0;for(e=!0,t=!0,o=my(r[0]),n=1;n<a;n++)if(i=my(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}gy.exports=eer});var Rt=c((THr,by)=>{"use strict";var aer=hy();by.exports=aer});var qy=c((OHr,xy)=>{"use strict";function ter(r,e){return e&&(r===2||r===3)}xy.exports=ter});var Sy=c((IHr,wy)=>{"use strict";function ier(r,e){return e&&(r===1||r===3)}wy.exports=ier});var Ay=c((NHr,Ey)=>{"use strict";function oer(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]}Ey.exports=oer});var jy=c((DHr,_y)=>{"use strict";function ser(r,e,a,t){var o,i,n,s,v;for(o=r.length,i=a,n=a,v=0;v<o;v++){if(r[v]===0)return t[0]=a,t[1]=a,t;s=e[v],s>0?n+=s*(r[v]-1):s<0&&(i+=s*(r[v]-1))}return t[0]=i,t[1]=n,t}_y.exports=ser});var Za=c((kHr,Oy)=>{"use strict";var ner=Tr(),Ty=Ay(),ver=jy();ner(Ty,"assign",ver);Oy.exports=Ty});var Ny=c((RHr,Iy)=>{"use strict";var uer=Za();function fer(r,e,a,t,o){var i;return r===0||o===0?!1:(i=uer(e,a,t),r===i[1]-i[0]+1)}Iy.exports=fer});var ky=c((BHr,Dy)=>{"use strict";function ler(r){return{ROW_MAJOR_CONTIGUOUS:r.ROW_MAJOR_CONTIGUOUS,COLUMN_MAJOR_CONTIGUOUS:r.COLUMN_MAJOR_CONTIGUOUS,READONLY:r.READONLY}}Dy.exports=ler});var By=c((zHr,Ry)=>{"use strict";function cer(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]}Ry.exports=cer});var Vy=c((VHr,zy)=>{"use strict";function der(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}zy.exports=der});var Fy=c((PHr,Py)=>{"use strict";function per(){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}Py.exports=per});var Cy=c((FHr,Ly)=>{"use strict";function yer(){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]}Ly.exports=yer});var My=c((LHr,Uy)=>{"use strict";function mer(r){return r.re}Uy.exports=mer});var Bt=c((CHr,Gy)=>{"use strict";var ger=My();Gy.exports=ger});var Yy=c((UHr,$y)=>{"use strict";function her(r){return r.im}$y.exports=her});var zt=c((MHr,Wy)=>{"use strict";var ber=Yy();Wy.exports=ber});var Ky=c((GHr,Jy)=>{"use strict";var xer=Bt(),qer=zt();function wer(){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(xer(a),qer(a));else for(t=0;t<e;t++)r.data.push(this.iget(t));return r}Jy.exports=wer});var av=c(($Hr,Xy)=>{"use strict";function Ser(r){return typeof r=="string"}Xy.exports=Ser});var Zy=c((YHr,Hy)=>{"use strict";var Eer=String.prototype.valueOf;Hy.exports=Eer});var rm=c((WHr,Qy)=>{"use strict";var Aer=Zy();function _er(r){try{return Aer.call(r),!0}catch{return!1}}Qy.exports=_er});var tv=c((JHr,em)=>{"use strict";var jer=ri(),Ter=ye(),Oer=rm(),Ier=jer();function Ner(r){return typeof r=="object"?r instanceof String?!0:Ier?Oer(r):Ter(r)==="[object String]":!1}em.exports=Ner});var tm=c((KHr,am)=>{"use strict";var Der=av(),ker=tv();function Rer(r){return Der(r)||ker(r)}am.exports=Rer});var Va=c((XHr,om)=>{"use strict";var im=Tr(),iv=tm(),Ber=av(),zer=tv();im(iv,"isPrimitive",Ber);im(iv,"isObject",zer);om.exports=iv});var vm=c((HHr,nm)=>{"use strict";var Ver=Va().isPrimitive,Per=cr(),sm=/[-\/\\^$*+?.()|[\]{}]/g;function Fer(r){var e,a,t;if(!Ver(r))throw new TypeError(Per("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(sm,"\\$&"):(a=r.substring(1,t),a=a.replace(sm,"\\$&"),r=r[0]+a+r.substring(t),r)}nm.exports=Fer});var fm=c((ZHr,um)=>{"use strict";var Ler=vm();um.exports=Ler});var cm=c((QHr,lm)=>{"use strict";var Cer=RegExp.prototype.exec;lm.exports=Cer});var pm=c((rZr,dm)=>{"use strict";var Uer=cm();function Mer(r){try{return Uer.call(r),!0}catch{return!1}}dm.exports=Mer});var mm=c((eZr,ym)=>{"use strict";var Ger=ri(),$er=ye(),Yer=pm(),Wer=Ger();function Jer(r){return typeof r=="object"?r instanceof RegExp?!0:Wer?Yer(r):$er(r)==="[object RegExp]":!1}ym.exports=Jer});var hm=c((aZr,gm)=>{"use strict";var Ker=mm();gm.exports=Ker});var xm=c((tZr,bm)=>{"use strict";function Xer(r,e,a){return r.replace(e,a)}bm.exports=Xer});var Qa=c((iZr,qm)=>{"use strict";var Her=xm();qm.exports=Her});var Sm=c((oZr,wm)=>{"use strict";var Zer=fm(),Qer=Fe(),ov=Va().isPrimitive,rar=hm(),sv=cr(),ear=Qa();function aar(r,e,a){if(!ov(r))throw new TypeError(sv("invalid argument. First argument must be a string. Value: `%s`.",r));if(ov(e))e=new RegExp(Zer(e),"g");else if(!rar(e))throw new TypeError(sv("invalid argument. Second argument must be a string or regular expression. Value: `%s`.",e));if(!ov(a)&&!Qer(a))throw new TypeError(sv("invalid argument. Third argument must be a string or replacement function. Value: `%s`.",a));return ear(r,e,a)}wm.exports=aar});var Am=c((sZr,Em)=>{"use strict";var tar=Sm();Em.exports=tar});var jm=c((nZr,_m)=>{"use strict";var iar=Am(),nv=Bt(),vv=zt(),oar={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 sar(){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+=nv(i)+", "+vv(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+=nv(i)+", "+vv(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+=nv(i)+", "+vv(i),n>0&&(r+=", ");else for(n=2;n>=0;n--)r+=this.iget(this._length-1-n),n>0&&(r+=", ")}if(a=oar[this.dtype],t+=iar(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}_m.exports=sar});var Om=c((vZr,Tm)=>{"use strict";var nar=ye(),uar=typeof Uint8Array=="function";function far(r){return uar&&r instanceof Uint8Array||nar(r)==="[object Uint8Array]"}Tm.exports=far});var uv=c((uZr,Im)=>{"use strict";var lar=Om();Im.exports=lar});var fv=c((fZr,Nm)=>{"use strict";var car=255;Nm.exports=car});var km=c((lZr,Dm)=>{"use strict";var dar=typeof Uint8Array=="function"?Uint8Array:null;Dm.exports=dar});var zm=c((cZr,Bm)=>{"use strict";var par=uv(),lv=fv(),Rm=km();function yar(){var r,e;if(typeof Rm!="function")return!1;try{e=[1,3.14,-3.14,lv+1,lv+2],e=new Rm(e),r=par(e)&&e[0]===1&&e[1]===3&&e[2]===lv-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}Bm.exports=yar});var Pm=c((dZr,Vm)=>{"use strict";var mar=zm();Vm.exports=mar});var Lm=c((pZr,Fm)=>{"use strict";var gar=typeof Uint8Array=="function"?Uint8Array:void 0;Fm.exports=gar});var Um=c((yZr,Cm)=>{"use strict";function har(){throw new Error("not implemented")}Cm.exports=har});var Qe=c((mZr,Mm)=>{"use strict";var bar=Pm(),xar=Lm(),qar=Um(),cv;bar()?cv=xar:cv=qar;Mm.exports=cv});var $m=c((gZr,Gm)=>{"use strict";var war=ye(),Sar=typeof Uint16Array=="function";function Ear(r){return Sar&&r instanceof Uint16Array||war(r)==="[object Uint16Array]"}Gm.exports=Ear});var Wm=c((hZr,Ym)=>{"use strict";var Aar=$m();Ym.exports=Aar});var dv=c((bZr,Jm)=>{"use strict";var _ar=65535;Jm.exports=_ar});var Xm=c((xZr,Km)=>{"use strict";var jar=typeof Uint16Array=="function"?Uint16Array:null;Km.exports=jar});var Qm=c((qZr,Zm)=>{"use strict";var Tar=Wm(),pv=dv(),Hm=Xm();function Oar(){var r,e;if(typeof Hm!="function")return!1;try{e=[1,3.14,-3.14,pv+1,pv+2],e=new Hm(e),r=Tar(e)&&e[0]===1&&e[1]===3&&e[2]===pv-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}Zm.exports=Oar});var e1=c((wZr,r1)=>{"use strict";var Iar=Qm();r1.exports=Iar});var t1=c((SZr,a1)=>{"use strict";var Nar=typeof Uint16Array=="function"?Uint16Array:void 0;a1.exports=Nar});var o1=c((EZr,i1)=>{"use strict";function Dar(){throw new Error("not implemented")}i1.exports=Dar});var Vt=c((AZr,s1)=>{"use strict";var kar=e1(),Rar=t1(),Bar=o1(),yv;kar()?yv=Rar:yv=Bar;s1.exports=yv});var v1=c((_Zr,n1)=>{"use strict";var zar=Qe(),Var=Vt(),Par={uint16:Var,uint8:zar};n1.exports=Par});var c1=c((jZr,l1)=>{"use strict";var u1=v1(),f1;function Far(){var r,e;return r=new u1.uint16(1),r[0]=4660,e=new u1.uint8(r.buffer),e[0]===52}f1=Far();l1.exports=f1});var Pt=c((TZr,d1)=>{"use strict";var Lar=c1();d1.exports=Lar});var y1=c((OZr,p1)=>{"use strict";var Car=ye(),Uar=typeof ArrayBuffer=="function";function Mar(r){return Uar&&r instanceof ArrayBuffer||Car(r)==="[object ArrayBuffer]"}p1.exports=Mar});var Li=c((IZr,m1)=>{"use strict";var Gar=y1();m1.exports=Gar});var h1=c((NZr,g1)=>{"use strict";var $ar=ye(),Yar=typeof Float64Array=="function";function War(r){return Yar&&r instanceof Float64Array||$ar(r)==="[object Float64Array]"}g1.exports=War});var x1=c((DZr,b1)=>{"use strict";var Jar=h1();b1.exports=Jar});var w1=c((kZr,q1)=>{"use strict";var Kar=typeof Float64Array=="function"?Float64Array:null;q1.exports=Kar});var A1=c((RZr,E1)=>{"use strict";var Xar=x1(),S1=w1();function Har(){var r,e;if(typeof S1!="function")return!1;try{e=new S1([1,3.14,-3.14,NaN]),r=Xar(e)&&e[0]===1&&e[1]===3.14&&e[2]===-3.14&&e[3]!==e[3]}catch{r=!1}return r}E1.exports=Har});var j1=c((BZr,_1)=>{"use strict";var Zar=A1();_1.exports=Zar});var O1=c((zZr,T1)=>{"use strict";var Qar=typeof Float64Array=="function"?Float64Array:void 0;T1.exports=Qar});var N1=c((VZr,I1)=>{"use strict";function rtr(){throw new Error("not implemented")}I1.exports=rtr});var rt=c((PZr,D1)=>{"use strict";var etr=j1(),atr=O1(),ttr=N1(),mv;etr()?mv=atr:mv=ttr;D1.exports=mv});var R1=c((FZr,k1)=>{"use strict";var itr=typeof ArrayBuffer=="function"?ArrayBuffer:null;k1.exports=itr});var z1=c((LZr,B1)=>{"use strict";var otr=Li(),str=rt(),Go=R1();function ntr(){var r,e,a;if(typeof Go!="function")return!1;try{a=new Go(16),r=otr(a)&&typeof Go.isView=="function",r&&(e=new str(a),e[0]=-3.14,e[1]=NaN,r=r&&Go.isView(e)&&a.byteLength===16&&e[0]===-3.14&&e[1]!==e[1])}catch{r=!1}return r}B1.exports=ntr});var P1=c((CZr,V1)=>{"use strict";var vtr=z1();V1.exports=vtr});var L1=c((UZr,F1)=>{"use strict";var utr=typeof ArrayBuffer=="function"?ArrayBuffer:void 0;F1.exports=utr});var U1=c((MZr,C1)=>{"use strict";function ftr(){throw new Error("not implemented")}C1.exports=ftr});var ti=c((GZr,M1)=>{"use strict";var ltr=P1(),ctr=L1(),dtr=U1(),gv;ltr()?gv=ctr:gv=dtr;M1.exports=gv});var $1=c(($Zr,G1)=>{"use strict";var ptr=ye(),ytr=typeof DataView=="function";function mtr(r){return ytr&&r instanceof DataView||ptr(r)==="[object DataView]"}G1.exports=mtr});var W1=c((YZr,Y1)=>{"use strict";var gtr=$1();Y1.exports=gtr});var K1=c((WZr,J1)=>{"use strict";var htr=typeof DataView=="function"?DataView:null;J1.exports=htr});var Z1=c((JZr,H1)=>{"use strict";var btr=W1(),xtr=ti(),X1=K1();function qtr(){var r,e,a;if(typeof X1!="function")return!1;try{a=new xtr(24),e=new X1(a,8),r=btr(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}H1.exports=qtr});var rg=c((KZr,Q1)=>{"use strict";var wtr=Z1();Q1.exports=wtr});var ag=c((XZr,eg)=>{"use strict";var Str=typeof DataView=="function"?DataView:void 0;eg.exports=Str});var ig=c((HZr,tg)=>{"use strict";function Etr(){throw new Error("not implemented")}tg.exports=Etr});var Ft=c((ZZr,og)=>{"use strict";var Atr=rg(),_tr=ag(),jtr=ig(),hv;Atr()?hv=_tr:hv=jtr;og.exports=hv});var ng=c((QZr,sg)=>{"use strict";var Ttr=typeof BigInt=="function"?BigInt:void 0;sg.exports=Ttr});var bv=c((rQr,vg)=>{"use strict";var Otr=ng();vg.exports=Otr});var ug=c((eQr,Itr)=>{Itr.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 dg=c((aQr,cg)=>{"use strict";var Ntr=Qa(),fg=ug(),lg=/_and_generic$/;function Dtr(){var r,e,a;return arguments.length===0?fg.all.slice():(a=!1,r=arguments[0],lg.test(r)&&(r=Ntr(r,lg,""),r!=="all"&&(a=!0)),e=fg[r],e=e?e.slice():[],a&&e.length>0&&e.push("generic"),e)}cg.exports=Dtr});var yg=c((tQr,pg)=>{"use strict";function ktr(){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}}pg.exports=ktr});var $o=c((iQr,mg)=>{"use strict";function Rtr(r){return Object.keys(Object(r))}mg.exports=Rtr});var hg=c((oQr,gg)=>{"use strict";var Btr=$o();function ztr(){return(Btr(arguments)||"").length!==2}function Vtr(){return ztr(1,2)}gg.exports=Vtr});var xg=c((sQr,bg)=>{"use strict";var Ptr=typeof Object.keys<"u";bg.exports=Ptr});var xv=c((nQr,qg)=>{"use strict";var Ftr=ye();function Ltr(r){return Ftr(r)==="[object Arguments]"}qg.exports=Ltr});var Eg=c((vQr,Sg)=>{"use strict";var Ctr=xv(),wg;function Utr(){return Ctr(arguments)}wg=Utr();Sg.exports=wg});var _g=c((uQr,Ag)=>{"use strict";function Mtr(r){return r!==r}Ag.exports=Mtr});var qv=c((fQr,jg)=>{"use strict";var Gtr=_g();jg.exports=Gtr});var wv=c((lQr,Tg)=>{"use strict";var $tr=Ue().isPrimitive,Ytr=qv();function Wtr(r){return $tr(r)&&Ytr(r)}Tg.exports=Wtr});var Sv=c((cQr,Og)=>{"use strict";var Jtr=Ue().isObject,Ktr=qv();function Xtr(r){return Jtr(r)&&Ktr(r.valueOf())}Og.exports=Xtr});var Ng=c((dQr,Ig)=>{"use strict";var Htr=wv(),Ztr=Sv();function Qtr(r){return Htr(r)||Ztr(r)}Ig.exports=Qtr});var Av=c((pQr,kg)=>{"use strict";var Dg=Tr(),Ev=Ng(),rir=wv(),eir=Sv();Dg(Ev,"isPrimitive",rir);Dg(Ev,"isObject",eir);kg.exports=Ev});var _v=c((yQr,Rg)=>{"use strict";var air=Object.prototype.propertyIsEnumerable;Rg.exports=air});var Vg=c((mQr,zg)=>{"use strict";var tir=_v(),Bg;function iir(){return!tir.call("beep","0")}Bg=iir();zg.exports=Bg});var Fg=c((gQr,Pg)=>{"use strict";var oir=Va(),sir=Av().isPrimitive,nir=ue().isPrimitive,vir=_v(),uir=Vg();function fir(r,e){var a;return r==null?!1:(a=vir.call(r,e),!a&&uir&&oir(r)?(e=+e,!sir(e)&&nir(e)&&e>=0&&e<r.length):a)}Pg.exports=fir});var Ci=c((hQr,Lg)=>{"use strict";var lir=Fg();Lg.exports=lir});var Yo=c((bQr,Cg)=>{"use strict";var cir=4294967295;Cg.exports=cir});var Mg=c((xQr,Ug)=>{"use strict";var dir=Jr(),pir=Ci(),yir=ha(),mir=ba(),gir=Yo();function hir(r){return r!==null&&typeof r=="object"&&!yir(r)&&typeof r.length=="number"&&mir(r.length)&&r.length>=0&&r.length<=gir&&dir(r,"callee")&&!pir(r,"callee")}Ug.exports=hir});var Tv=c((qQr,Gg)=>{"use strict";var bir=Eg(),xir=xv(),qir=Mg(),jv;bir?jv=xir:jv=qir;Gg.exports=jv});var Wg=c((wQr,Yg)=>{"use strict";var wir=Tv(),$g=$o(),Sir=Array.prototype.slice;function Eir(r){return wir(r)?$g(Sir.call(r)):$g(r)}Yg.exports=Eir});var Kg=c((SQr,Jg)=>{"use strict";function Air(){}Jg.exports=Air});var Hg=c((EQr,Xg)=>{"use strict";var _ir=Kg();Xg.exports=_ir});var Qg=c((AQr,Zg)=>{"use strict";var jir=Ci(),Tir=Hg(),Oir=jir(Tir,"prototype");Zg.exports=Oir});var eh=c((_Qr,rh)=>{"use strict";var Iir=Ci(),Nir={toString:null},Dir=!Iir(Nir,"toString");rh.exports=Dir});var th=c((jQr,ah)=>{"use strict";var kir=9007199254740991;ah.exports=kir});var oh=c((TQr,ih)=>{"use strict";var Rir=ba(),Bir=th();function zir(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&Rir(r.length)&&r.length>=0&&r.length<=Bir}ih.exports=zir});var De=c((OQr,sh)=>{"use strict";var Vir=oh();sh.exports=Vir});var fh=c((IQr,uh)=>{"use strict";var nh=Av(),Pir=De(),Fir=Va().isPrimitive,Lir=ue().isPrimitive,vh=cr();function Cir(r,e,a){var t,o;if(!Pir(r)&&!Fir(r))throw new TypeError(vh("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(!Lir(a))throw new TypeError(vh("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(nh(e)){for(;o<t;o++)if(nh(r[o]))return o}else for(;o<t;o++)if(r[o]===e)return o;return-1}uh.exports=Cir});var ch=c((NQr,lh)=>{"use strict";var Uir=fh();lh.exports=Uir});var Ov=c((DQr,dh)=>{"use strict";function Mir(r){return r.constructor&&r.constructor.prototype===r}dh.exports=Mir});var ph=c((kQr,Gir)=>{Gir.exports=["console","external","frame","frameElement","frames","innerHeight","innerWidth","outerHeight","outerWidth","pageXOffset","pageYOffset","parent","scrollLeft","scrollTop","scrollX","scrollY","self","webkitIndexedDB","webkitStorageInfo","window"]});var mh=c((RQr,yh)=>{"use strict";var $ir=typeof window>"u"?void 0:window;yh.exports=$ir});var xh=c((BQr,bh)=>{"use strict";var Yir=Jr(),Wir=ch(),gh=ei(),Jir=Ov(),Kir=ph(),ii=mh(),hh;function Xir(){var r;if(gh(ii)==="undefined")return!1;for(r in ii)try{Wir(Kir,r)===-1&&Yir(ii,r)&&ii[r]!==null&&gh(ii[r])==="object"&&Jir(ii[r])}catch{return!0}return!1}hh=Xir();bh.exports=hh});var wh=c((zQr,qh)=>{"use strict";var Hir=typeof window<"u";qh.exports=Hir});var Ah=c((VQr,Eh)=>{"use strict";var Zir=xh(),Sh=Ov(),Qir=wh();function ror(r){if(Qir===!1&&!Zir)return Sh(r);try{return Sh(r)}catch{return!1}}Eh.exports=ror});var _h=c((PQr,eor)=>{eor.exports=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]});var Oh=c((FQr,Th)=>{"use strict";var aor=Lo(),Iv=Jr(),tor=Tv(),ior=Qg(),oor=eh(),sor=Ah(),jh=_h();function nor(r){var e,a,t,o,i,n,s;if(o=[],tor(r)){for(s=0;s<r.length;s++)o.push(s.toString());return o}if(typeof r=="string"){if(r.length>0&&!Iv(r,"0"))for(s=0;s<r.length;s++)o.push(s.toString())}else{if(t=typeof r=="function",t===!1&&!aor(r))return o;a=ior&&t}for(i in r)!(a&&i==="prototype")&&Iv(r,i)&&o.push(String(i));if(oor)for(e=sor(r),s=0;s<jh.length;s++)n=jh[s],!(e&&n==="constructor")&&Iv(r,n)&&o.push(String(n));return o}Th.exports=nor});var Nh=c((LQr,Ih)=>{"use strict";var vor=hg(),uor=xg(),lor=$o(),cor=Wg(),dor=Oh(),Wo;uor?vor()?Wo=cor:Wo=lor:Wo=dor;Ih.exports=Wo});var qa=c((CQr,Dh)=>{"use strict";var por=Nh();Dh.exports=por});var Rh=c((UQr,kh)=>{"use strict";var yor=It(),mor=qa();function gor(r,e){var a,t,o;for(a=mor(e),o=0;o<a.length;o++)t=a[o],yor(r,t,e[t]);return r}kh.exports=gor});var ke=c((MQr,zh)=>{"use strict";var hor=Tr(),Nv=dg(),Bh=yg(),bor=Rh();hor(Nv,"enum",Bh);bor(Nv,Bh());zh.exports=Nv});var Vh=c((GQr,xor)=>{xor.exports=["row-major","column-major"]});var Fh=c(($Qr,Ph)=>{"use strict";var qor=Vh();function wor(){return qor.slice()}Ph.exports=wor});var Lh=c((YQr,Sor)=>{Sor.exports=["row-major","column-major"]});var Uh=c((WQr,Ch)=>{"use strict";var Eor=Lh();function Aor(){return Eor.slice()}Ch.exports=Aor});var Gh=c((JQr,Mh)=>{"use strict";function _or(){return{"row-major":101,"column-major":102}}Mh.exports=_or});var Dv=c((KQr,Yh)=>{"use strict";var jor=Tr(),$h=Uh(),Tor=Gh();jor($h,"enum",Tor);Yh.exports=$h});var Kh=c((XQr,Jh)=>{"use strict";var Oor=Dv().enum,Wh=Oor();function Ior(){return{"row-major":Wh["row-major"],"column-major":Wh["column-major"]}}Jh.exports=Ior});var Lt=c((HQr,Hh)=>{"use strict";var Nor=Tr(),Xh=Fh(),Dor=Kh();Nor(Xh,"enum",Dor);Hh.exports=Xh});var Zh=c((ZQr,kor)=>{kor.exports=["throw","normalize","clamp","wrap"]});var rb=c((QQr,Qh)=>{"use strict";var Ror=Zh();function Bor(){return Ror.slice()}Qh.exports=Bor});var ab=c((rre,eb)=>{"use strict";function zor(){return{throw:1,clamp:2,wrap:3,normalize:4}}eb.exports=zor});var Ct=c((ere,ib)=>{"use strict";var Vor=Tr(),tb=rb(),Por=ab();Vor(tb,"enum",Por);ib.exports=tb});var nb=c((are,sb)=>{"use strict";var gt=Pt(),For=ti(),Lor=Ft(),Ui=bv(),Cor=ke().enum,Uor=Lt().enum,Mor=Ct().enum,Gor=Cor(),$or=Uor(),ob=Mor();function Yor(){var r,e,a,t,o,i,n,s,v,u,f,l,d,m;if(v=this._mode||"throw",n=this._submode||[v],l=this._ndims,d=n.length,a=33+l*16+d,s=this.__meta_dataview__,s&&s.byteLength===a)return s;for(s=new Lor(new For(a)),o=this._shape,i=this._strides,t=this._dtype,r=this._bytesPerElement,u=0,s.setInt8(u,gt?1:0),u+=1,s.setInt16(u,Gor[t],gt),u+=2,s.setBigInt64(u,Ui(l),gt),f=l*8,u+=8,m=0;m<l;m++)s.setBigInt64(u,Ui(o[m]),gt),s.setBigInt64(u+f,Ui(i[m]*r),gt),u+=8;for(u+=f,s.setBigInt64(u,Ui(this._offset*r),gt),u+=8,s.setInt8(u,$or[this._order]),u+=1,s.setInt8(u,ob[v]),u+=1,s.setBigInt64(u,Ui(d),gt),u+=8,m=0;m<d;m++)s.setInt8(u,ob[n[m]]),u+=1;return e=0,e|=this._flags.READONLY?4:0,s.setInt32(u,e,gt),this.__meta_dataview__=s,s}sb.exports=Yor});var ub=c((tre,vb)=>{"use strict";var Mi=Pt(),Wor=Qe(),Jor=Ft(),Kor=Ze(),Xor=4294967295,Hor=4294967296;function Zor(r){var e,a,t,o;return e=new Wor(8),r===0||(o=(r&Xor)>>>0,t=Kor(r/Hor),a=new Jor(e.buffer),Mi?(a.setUint32(0,o,Mi),a.setUint32(4,t,Mi)):(a.setUint32(0,t,Mi),a.setUint32(4,o,Mi))),e}vb.exports=Zor});var lb=c((ire,fb)=>{"use strict";var Gi=Pt(),Qor=Qe(),rsr=Ft(),esr=Ze(),asr=4294967295,tsr=4294967296,Ko=new Qor(8),Jo=new rsr(Ko.buffer);function isr(r,e,a,t){var o,i,n;if(r===0){for(n=0;n<Ko.length;n++)e[t]=0,t+=a;return e}for(i=(r&asr)>>>0,o=esr(r/tsr),Gi?(Jo.setUint32(0,i,Gi),Jo.setUint32(4,o,Gi)):(Jo.setUint32(0,o,Gi),Jo.setUint32(4,i,Gi)),n=0;n<Ko.length;n++)e[t]=Ko[n],t+=a;return e}fb.exports=isr});var kv=c((ore,db)=>{"use strict";var osr=Tr(),cb=ub(),ssr=lb();osr(cb,"assign",ssr);db.exports=cb});var mb=c((sre,yb)=>{"use strict";var Rv=Pt(),nsr=ti(),vsr=Ft(),usr=Qe(),fsr=ke().enum,lsr=Lt().enum,csr=Ct().enum,$i=kv().assign,dsr=fsr(),psr=lsr(),pb=csr();function ysr(){var r,e,a,t,o,i,n,s,v,u,f,l,d,m,p;if(u=this._mode||"throw",s=this._submode||[u],d=this._ndims,m=s.length,t=33+d*16+m,v=this.__meta_dataview__,v&&v.byteLength===t)return v;for(v=new vsr(new nsr(t)),e=new usr(v.buffer),i=this._shape,n=this._strides,o=this._dtype,r=this._bytesPerElement,f=0,v.setInt8(f,Rv?1:0),f+=1,v.setInt16(f,dsr[o],Rv),f+=2,$i(d,e,1,f),l=d*8,f+=8,p=0;p<d;p++)$i(i[p],e,1,f),$i(n[p]*r,e,1,f+l),f+=8;for(f+=l,$i(this._offset*r,e,1,f),f+=8,v.setInt8(f,psr[this._order]),f+=1,v.setInt8(f,pb[u]),f+=1,$i(m,e,1,f),f+=8,p=0;p<m;p++)v.setInt8(f,pb[s[p]]),f+=1;return a=0,a|=this._flags.READONLY?4:0,v.setInt32(f,a,Rv),this.__meta_dataview__=v,v}yb.exports=ysr});var hb=c((nre,gb)=>{"use strict";var msr=ev(),ht=Tr(),wa=mt(),gsr=Ha(),hsr=xa(),bsr=Rt(),xsr=Nt(),qsr=qy(),wsr=Sy(),Ssr=Ny(),Esr=ky(),Asr=By(),_sr=Vy(),jsr=Fy(),Tsr=Cy(),Osr=Ky(),Isr=jm(),Nsr=nb(),Dsr=mb();function he(r,e,a,t,o,i){var n,s,v,u,f;if(!(this instanceof he))return new he(r,e,a,t,o,i);for(u=1,f=0;f<a.length;f++)u*=a[f];return e.BYTES_PER_ELEMENT?s=e.BYTES_PER_ELEMENT*u:s=null,this._byteLength=s,this._bytesPerElement=gsr(r),this._buffer=e,this._dtype=r,this._length=u,this._ndims=a.length,this._offset=o,this._order=i,this._shape=a,this._strides=t,this._accessors=xsr(e.get&&e.set),this._iterationOrder=hsr(t),n=Ssr(u,a,t,o,this._iterationOrder),v=bsr(t),this._flags={ROW_MAJOR_CONTIGUOUS:wsr(v,n),COLUMN_MAJOR_CONTIGUOUS:qsr(v,n),READONLY:!1},this.__meta_dataview__=null,this}ht(he,"name","ndarray");wa(he.prototype,"byteLength",function(){return this._byteLength});wa(he.prototype,"BYTES_PER_ELEMENT",function(){return this._bytesPerElement});wa(he.prototype,"data",function(){return this._buffer});wa(he.prototype,"dtype",function(){return this._dtype});wa(he.prototype,"flags",function(){return Esr(this._flags)});wa(he.prototype,"length",function(){return this._length});wa(he.prototype,"ndims",function(){return this._ndims});wa(he.prototype,"offset",function(){return this._offset});wa(he.prototype,"order",function(){return this._order});wa(he.prototype,"shape",function(){return this._shape.slice()});wa(he.prototype,"strides",function(){return this._strides.slice()});ht(he.prototype,"get",Tsr);ht(he.prototype,"iget",Asr);ht(he.prototype,"set",jsr);ht(he.prototype,"iset",_sr);ht(he.prototype,"toString",Isr);ht(he.prototype,"toJSON",Osr);ht(he.prototype,"__array_meta_dataview__",msr()?Nsr:Dsr);gb.exports=he});var ra=c((vre,bb)=>{"use strict";var ksr=hb();bb.exports=ksr});var qb=c((ure,xb)=>{"use strict";var Rsr=ra();function Bsr(r){return r instanceof Rsr||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"}xb.exports=Bsr});var se=c((fre,wb)=>{"use strict";var zsr=qb();wb.exports=zsr});var Eb=c((lre,Sb)=>{"use strict";function Vsr(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 Psr(r){var e,a,t;for(e=[],a=1,t=0;t<r.length;t++)e.push(a),a*=r[t];return e}function Fsr(r,e){return e==="column-major"?Psr(r):Vsr(r)}Sb.exports=Fsr});var _b=c((cre,Ab)=>{"use strict";function Lsr(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 Csr(r,e){var a,t;for(a=1,t=0;t<r.length;t++)e[t]=a,a*=r[t];return e}function Usr(r,e,a){return e==="column-major"?Csr(r,a):Lsr(r,a)}Ab.exports=Usr});var Be=c((dre,Tb)=>{"use strict";var Msr=Tr(),jb=Eb(),Gsr=_b();Msr(jb,"assign",Gsr);Tb.exports=jb});var Ib=c((pre,Ob)=>{"use strict";function $sr(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}Ob.exports=$sr});var Me=c((yre,Nb)=>{"use strict";var Ysr=Ib();Nb.exports=Ysr});var kb=c((mre,Db)=>{"use strict";function Wsr(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}Db.exports=Wsr});var Wr=c((gre,Rb)=>{"use strict";var Jsr=kb();Rb.exports=Jsr});var Bv=c((hre,Bb)=>{"use strict";var Ksr=4294967295;Bb.exports=Ksr});var Vb=c((bre,zb)=>{"use strict";var Xsr=ba(),Hsr=Bv();function Zsr(r){return r!=null&&typeof r!="function"&&typeof r.length=="number"&&Xsr(r.length)&&r.length>=0&&r.length<=Hsr}zb.exports=Zsr});var Xo=c((xre,Pb)=>{"use strict";var Qsr=Vb();Pb.exports=Qsr});var Lb=c((qre,Fb)=>{"use strict";var rnr=Xo(),enr=cr();function anr(r){if(typeof r!="function")throw new TypeError(enr("invalid argument. Must provide a function. Value: `%s`.",r));return e;function e(a){var t,o;if(!rnr(a)||(t=a.length,t===0))return!1;for(o=0;o<t;o++)if(r(a[o])===!1)return!1;return!0}}Fb.exports=anr});var Ho=c((wre,Cb)=>{"use strict";var tnr=Lb();Cb.exports=tnr});var Ut=c((Sre,Mb)=>{"use strict";var zv=me(),Ub=Tr(),Vv=Ho(),inr=Vv(zv.isPrimitive),onr=Vv(zv.isObject),Pv=Vv(zv);Ub(Pv,"primitives",inr);Ub(Pv,"objects",onr);Mb.exports=Pv});var Uv=c((Ere,$b)=>{"use strict";var Fv=ue(),Gb=Tr(),Lv=Ho(),snr=Lv(Fv.isPrimitive),nnr=Lv(Fv.isObject),Cv=Lv(Fv);Gb(Cv,"primitives",snr);Gb(Cv,"objects",nnr);$b.exports=Cv});var Jb=c((Are,Wb)=>{"use strict";var vnr=Lt(),Yb=vnr(),unr=Yb.length;function fnr(r){var e;for(e=0;e<unr;e++)if(r===Yb[e])return!0;return!1}Wb.exports=fnr});var Sa=c((_re,Kb)=>{"use strict";var lnr=Jb();Kb.exports=lnr});var Zb=c((jre,Hb)=>{"use strict";var Xb="function";function cnr(r){return typeof r.get===Xb&&typeof r.set===Xb}Hb.exports=cnr});var et=c((Tre,Qb)=>{"use strict";var dnr=Zb();Qb.exports=dnr});var a2=c((Ore,e2)=>{"use strict";var r2={complex128:pnr,complex64:ynr,default:mnr};function pnr(r,e){return r.get(e)}function ynr(r,e){return r.get(e)}function mnr(r,e){return r.get(e)}function gnr(r){var e=r2[r];return typeof e=="function"?e:r2.default}e2.exports=gnr});var at=c((Ire,t2)=>{"use strict";var hnr=a2();t2.exports=hnr});var s2=c((Nre,o2)=>{"use strict";var i2={float64:bnr,float32:xnr,int32:qnr,int16:wnr,int8:Snr,uint32:Enr,uint16:Anr,uint8:_nr,uint8c:jnr,generic:Tnr,default:Onr};function bnr(r,e){return r[e]}function xnr(r,e){return r[e]}function qnr(r,e){return r[e]}function wnr(r,e){return r[e]}function Snr(r,e){return r[e]}function Enr(r,e){return r[e]}function Anr(r,e){return r[e]}function _nr(r,e){return r[e]}function jnr(r,e){return r[e]}function Tnr(r,e){return r[e]}function Onr(r,e){return r[e]}function Inr(r){var e=i2[r];return typeof e=="function"?e:i2.default}o2.exports=Inr});var bt=c((Dre,n2)=>{"use strict";var Nnr=s2();n2.exports=Nnr});var u2=c((kre,v2)=>{"use strict";var Dnr={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"};v2.exports=Dnr});var l2=c((Rre,f2)=>{"use strict";var knr=ye(),Rnr=typeof Float32Array=="function";function Bnr(r){return Rnr&&r instanceof Float32Array||knr(r)==="[object Float32Array]"}f2.exports=Bnr});var d2=c((Bre,c2)=>{"use strict";var znr=l2();c2.exports=znr});var y2=c((zre,p2)=>{"use strict";var Vnr=typeof Float32Array=="function"?Float32Array:null;p2.exports=Vnr});var h2=c((Vre,g2)=>{"use strict";var Pnr=d2(),Fnr=Fi(),m2=y2();function Lnr(){var r,e;if(typeof m2!="function")return!1;try{e=new m2([1,3.14,-3.14,5e40]),r=Pnr(e)&&e[0]===1&&e[1]===3.140000104904175&&e[2]===-3.140000104904175&&e[3]===Fnr}catch{r=!1}return r}g2.exports=Lnr});var x2=c((Pre,b2)=>{"use strict";var Cnr=h2();b2.exports=Cnr});var w2=c((Fre,q2)=>{"use strict";var Unr=typeof Float32Array=="function"?Float32Array:void 0;q2.exports=Unr});var E2=c((Lre,S2)=>{"use strict";function Mnr(){throw new Error("not implemented")}S2.exports=Mnr});var tt=c((Cre,A2)=>{"use strict";var Gnr=x2(),$nr=w2(),Ynr=E2(),Mv;Gnr()?Mv=$nr:Mv=Ynr;A2.exports=Mv});var j2=c((Ure,_2)=>{"use strict";var Wnr=ye(),Jnr=typeof Uint32Array=="function";function Knr(r){return Jnr&&r instanceof Uint32Array||Wnr(r)==="[object Uint32Array]"}_2.exports=Knr});var O2=c((Mre,T2)=>{"use strict";var Xnr=j2();T2.exports=Xnr});var N2=c((Gre,I2)=>{"use strict";var Hnr=typeof Uint32Array=="function"?Uint32Array:null;I2.exports=Hnr});var R2=c(($re,k2)=>{"use strict";var Znr=O2(),Gv=Yo(),D2=N2();function Qnr(){var r,e;if(typeof D2!="function")return!1;try{e=[1,3.14,-3.14,Gv+1,Gv+2],e=new D2(e),r=Znr(e)&&e[0]===1&&e[1]===3&&e[2]===Gv-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}k2.exports=Qnr});var z2=c((Yre,B2)=>{"use strict";var rvr=R2();B2.exports=rvr});var P2=c((Wre,V2)=>{"use strict";var evr=typeof Uint32Array=="function"?Uint32Array:void 0;V2.exports=evr});var L2=c((Jre,F2)=>{"use strict";function avr(){throw new Error("not implemented")}F2.exports=avr});var oi=c((Kre,C2)=>{"use strict";var tvr=z2(),ivr=P2(),ovr=L2(),$v;tvr()?$v=ivr:$v=ovr;C2.exports=$v});var M2=c((Xre,U2)=>{"use strict";var svr=ye(),nvr=typeof Int32Array=="function";function vvr(r){return nvr&&r instanceof Int32Array||svr(r)==="[object Int32Array]"}U2.exports=vvr});var $2=c((Hre,G2)=>{"use strict";var uvr=M2();G2.exports=uvr});var Yv=c((Zre,Y2)=>{"use strict";var fvr=2147483647;Y2.exports=fvr});var Wv=c((Qre,W2)=>{"use strict";var lvr=-2147483648;W2.exports=lvr});var K2=c((ree,J2)=>{"use strict";var cvr=typeof Int32Array=="function"?Int32Array:null;J2.exports=cvr});var Z2=c((eee,H2)=>{"use strict";var dvr=$2(),pvr=Yv(),yvr=Wv(),X2=K2();function mvr(){var r,e;if(typeof X2!="function")return!1;try{e=new X2([1,3.14,-3.14,pvr+1]),r=dvr(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===yvr}catch{r=!1}return r}H2.exports=mvr});var rx=c((aee,Q2)=>{"use strict";var gvr=Z2();Q2.exports=gvr});var ax=c((tee,ex)=>{"use strict";var hvr=typeof Int32Array=="function"?Int32Array:void 0;ex.exports=hvr});var ix=c((iee,tx)=>{"use strict";function bvr(){throw new Error("not implemented")}tx.exports=bvr});var si=c((oee,ox)=>{"use strict";var xvr=rx(),qvr=ax(),wvr=ix(),Jv;xvr()?Jv=qvr:Jv=wvr;ox.exports=Jv});var nx=c((see,sx)=>{"use strict";var Svr=ye(),Evr=typeof Int16Array=="function";function Avr(r){return Evr&&r instanceof Int16Array||Svr(r)==="[object Int16Array]"}sx.exports=Avr});var ux=c((nee,vx)=>{"use strict";var _vr=nx();vx.exports=_vr});var Kv=c((vee,fx)=>{"use strict";var jvr=32767;fx.exports=jvr});var Xv=c((uee,lx)=>{"use strict";var Tvr=-32768;lx.exports=Tvr});var dx=c((fee,cx)=>{"use strict";var Ovr=typeof Int16Array=="function"?Int16Array:null;cx.exports=Ovr});var mx=c((lee,yx)=>{"use strict";var Ivr=ux(),Nvr=Kv(),Dvr=Xv(),px=dx();function kvr(){var r,e;if(typeof px!="function")return!1;try{e=new px([1,3.14,-3.14,Nvr+1]),r=Ivr(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===Dvr}catch{r=!1}return r}yx.exports=kvr});var hx=c((cee,gx)=>{"use strict";var Rvr=mx();gx.exports=Rvr});var xx=c((dee,bx)=>{"use strict";var Bvr=typeof Int16Array=="function"?Int16Array:void 0;bx.exports=Bvr});var wx=c((pee,qx)=>{"use strict";function zvr(){throw new Error("not implemented")}qx.exports=zvr});var ni=c((yee,Sx)=>{"use strict";var Vvr=hx(),Pvr=xx(),Fvr=wx(),Hv;Vvr()?Hv=Pvr:Hv=Fvr;Sx.exports=Hv});var Ax=c((mee,Ex)=>{"use strict";var Lvr=ye(),Cvr=typeof Uint8ClampedArray=="function";function Uvr(r){return Cvr&&r instanceof Uint8ClampedArray||Lvr(r)==="[object Uint8ClampedArray]"}Ex.exports=Uvr});var jx=c((gee,_x)=>{"use strict";var Mvr=Ax();_x.exports=Mvr});var Ox=c((hee,Tx)=>{"use strict";var Gvr=typeof Uint8ClampedArray=="function"?Uint8ClampedArray:null;Tx.exports=Gvr});var Dx=c((bee,Nx)=>{"use strict";var $vr=jx(),Ix=Ox();function Yvr(){var r,e;if(typeof Ix!="function")return!1;try{e=new Ix([-1,0,1,3.14,4.99,255,256]),r=$vr(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}Nx.exports=Yvr});var Rx=c((xee,kx)=>{"use strict";var Wvr=Dx();kx.exports=Wvr});var zx=c((qee,Bx)=>{"use strict";var Jvr=typeof Uint8ClampedArray=="function"?Uint8ClampedArray:void 0;Bx.exports=Jvr});var Px=c((wee,Vx)=>{"use strict";function Kvr(){throw new Error("not implemented")}Vx.exports=Kvr});var vi=c((See,Fx)=>{"use strict";var Xvr=Rx(),Hvr=zx(),Zvr=Px(),Zv;Xvr()?Zv=Hvr:Zv=Zvr;Fx.exports=Zv});var Cx=c((Eee,Lx)=>{"use strict";var Qvr=ye(),rur=typeof Int8Array=="function";function eur(r){return rur&&r instanceof Int8Array||Qvr(r)==="[object Int8Array]"}Lx.exports=eur});var Mx=c((Aee,Ux)=>{"use strict";var aur=Cx();Ux.exports=aur});var Qv=c((_ee,Gx)=>{"use strict";var tur=127;Gx.exports=tur});var ru=c((jee,$x)=>{"use strict";var iur=-128;$x.exports=iur});var Wx=c((Tee,Yx)=>{"use strict";var our=typeof Int8Array=="function"?Int8Array:null;Yx.exports=our});var Xx=c((Oee,Kx)=>{"use strict";var sur=Mx(),nur=Qv(),vur=ru(),Jx=Wx();function uur(){var r,e;if(typeof Jx!="function")return!1;try{e=new Jx([1,3.14,-3.14,nur+1]),r=sur(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===vur}catch{r=!1}return r}Kx.exports=uur});var Zx=c((Iee,Hx)=>{"use strict";var fur=Xx();Hx.exports=fur});var rq=c((Nee,Qx)=>{"use strict";var lur=typeof Int8Array=="function"?Int8Array:void 0;Qx.exports=lur});var aq=c((Dee,eq)=>{"use strict";function cur(){throw new Error("not implemented")}eq.exports=cur});var ui=c((kee,tq)=>{"use strict";var dur=Zx(),pur=rq(),yur=aq(),eu;dur()?eu=pur:eu=yur;tq.exports=eu});var oq=c((Ree,iq)=>{"use strict";var mur=ba(),gur=Bv();function hur(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&mur(r.length)&&r.length>=0&&r.length<=gur}iq.exports=hur});var ze=c((Bee,sq)=>{"use strict";var bur=oq();sq.exports=bur});var Zo=c((zee,vq)=>{"use strict";var nq=Tr(),au=Un(),tu=Va(),xur=au(tu.isPrimitive),qur=au(tu.isObject),iu=au(tu);nq(iu,"primitives",xur);nq(iu,"objects",qur);vq.exports=iu});var fq=c((Vee,uq)=>{"use strict";function wur(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i",r}uq.exports=wur});var cq=c((Pee,lq)=>{"use strict";function Sur(){var r={};return r.type="Complex128",r.re=this.re,r.im=this.im,r}lq.exports=Sur});var gq=c((Fee,mq)=>{"use strict";var dq=Ue().isPrimitive,pq=Ot(),Yi=Tr(),yq=cr(),Eur=fq(),Aur=cq();function Mt(r,e){if(!(this instanceof Mt))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!dq(r))throw new TypeError(yq("invalid argument. Real component must be a number. Value: `%s`.",r));if(!dq(e))throw new TypeError(yq("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return pq(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:r}),pq(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:e}),this}Yi(Mt,"BYTES_PER_ELEMENT",8);Yi(Mt.prototype,"BYTES_PER_ELEMENT",8);Yi(Mt.prototype,"byteLength",16);Yi(Mt.prototype,"toString",Eur);Yi(Mt.prototype,"toJSON",Aur);mq.exports=Mt});var Qo=c((Lee,hq)=>{"use strict";var _ur=gq();hq.exports=_ur});var xq=c((Cee,bq)=>{"use strict";var jur=typeof Math.fround=="function"?Math.fround:null;bq.exports=jur});var Sq=c((Uee,wq)=>{"use strict";var Tur=tt(),qq=new Tur(1);function Our(r){return qq[0]=r,qq[0]}wq.exports=Our});var _q=c((Mee,Aq)=>{"use strict";var Eq=xq(),Iur=Sq(),ou;typeof Eq=="function"?ou=Eq:ou=Iur;Aq.exports=ou});var Tq=c((Gee,jq)=>{"use strict";function Nur(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i",r}jq.exports=Nur});var Iq=c(($ee,Oq)=>{"use strict";function Dur(){var r={};return r.type="Complex64",r.re=this.re,r.im=this.im,r}Oq.exports=Dur});var zq=c((Yee,Bq)=>{"use strict";var Nq=Ue().isPrimitive,Dq=Ot(),Wi=Tr(),kq=_q(),Rq=cr(),kur=Tq(),Rur=Iq();function Gt(r,e){if(!(this instanceof Gt))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!Nq(r))throw new TypeError(Rq("invalid argument. Real component must be a number. Value: `%s`.",r));if(!Nq(e))throw new TypeError(Rq("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return Dq(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:kq(r)}),Dq(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:kq(e)}),this}Wi(Gt,"BYTES_PER_ELEMENT",4);Wi(Gt.prototype,"BYTES_PER_ELEMENT",4);Wi(Gt.prototype,"byteLength",8);Wi(Gt.prototype,"toString",kur);Wi(Gt.prototype,"toJSON",Rur);Bq.exports=Gt});var rs=c((Wee,Vq)=>{"use strict";var Bur=zq();Vq.exports=Bur});var Fq=c((Jee,Pq)=>{"use strict";var zur=Qo(),Vur=rs();function Pur(r){return r instanceof zur||r instanceof Vur?!0:typeof r=="object"&&r!==null&&typeof r.re=="number"&&typeof r.im=="number"}Pq.exports=Pur});var na=c((Kee,Lq)=>{"use strict";var Fur=Fq();Lq.exports=Fur});var Uq=c((Xee,Cq)=>{"use strict";var Lur=ba();function Cur(r){return Lur(r/2)}Cq.exports=Cur});var su=c((Hee,Mq)=>{"use strict";var Uur=Uq();Mq.exports=Uur});var $q=c((Zee,Gq)=>{"use strict";var Mur=8;function Gur(r){return typeof r=="object"&&r!==null&&r.constructor.name==="Complex64Array"&&r.BYTES_PER_ELEMENT===Mur}Gq.exports=Gur});var es=c((Qee,Yq)=>{"use strict";var $ur=$q();Yq.exports=$ur});var Jq=c((rae,Wq)=>{"use strict";var Yur=16;function Wur(r){return typeof r=="object"&&r!==null&&r.constructor.name==="Complex128Array"&&r.BYTES_PER_ELEMENT===Yur}Wq.exports=Wur});var as=c((eae,Kq)=>{"use strict";var Jur=Jq();Kq.exports=Jur});var Hq=c((aae,Xq)=>{"use strict";var Kur=Jr(),ts=kn();function Xur(){return typeof ts=="function"&&typeof ts("foo")=="symbol"&&Kur(ts,"iterator")&&typeof ts.iterator=="symbol"}Xq.exports=Xur});var Ji=c((tae,Zq)=>{"use strict";var Hur=Hq();Zq.exports=Hur});var rw=c((iae,Qq)=>{"use strict";var Zur=Ji(),Qur=Zur()?Symbol.iterator:null;Qq.exports=Qur});var Re=c((oae,ew)=>{"use strict";var rfr=rw();ew.exports=rfr});var tw=c((sae,aw)=>{"use strict";function efr(r){return r.re}aw.exports=efr});var Ki=c((nae,iw)=>{"use strict";var afr=tw();iw.exports=afr});var sw=c((vae,ow)=>{"use strict";function tfr(r){return r.im}ow.exports=tfr});var Xi=c((uae,nw)=>{"use strict";var ifr=sw();nw.exports=ifr});var uw=c((fae,vw)=>{"use strict";var ofr=tt();function sfr(r,e){return new ofr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}vw.exports=sfr});var Hi=c((lae,fw)=>{"use strict";var nfr=uw();fw.exports=nfr});var cw=c((cae,lw)=>{"use strict";var vfr=rt();function ufr(r,e){return new vfr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}lw.exports=ufr});var Zi=c((dae,dw)=>{"use strict";var ffr=cw();dw.exports=ffr});var yw=c((pae,pw)=>{"use strict";var lfr=ze(),cfr=na(),dfr=Ki(),pfr=Xi(),yfr=cr();function mfr(r){var e,a,t;for(e=[];a=r.next(),!a.done;)if(t=a.value,lfr(t)&&t.length>=2)e.push(t[0],t[1]);else if(cfr(t))e.push(dfr(t),pfr(t));else return new TypeError(yfr("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=mfr});var gw=c((yae,mw)=>{"use strict";var gfr=ze(),hfr=na(),bfr=Ki(),xfr=Xi(),qfr=cr();function wfr(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),gfr(i)&&i.length>=2)t.push(i[0],i[1]);else if(hfr(i))t.push(bfr(i),xfr(i));else return new TypeError(qfr("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=wfr});var bw=c((mae,hw)=>{"use strict";var Sfr=na(),Efr=Ki(),Afr=Xi();function _fr(r,e){var a,t,o,i;for(a=e.length,i=0,o=0;o<a;o++){if(t=e[o],!Sfr(t))return null;r[i]=Efr(t),r[i+1]=Afr(t),i+=2}return r}hw.exports=_fr});var _w=c((gae,Aw)=>{"use strict";var Qi=me().isPrimitive,nu=ze(),vu=De(),xw=Li(),uu=Vi(),jfr=ha(),Tfr=Zo().primitives,qw=Va().isPrimitive,Se=Fe(),ua=na(),is=su(),Ge=ba(),Ofr=es(),Ifr=as(),Nfr=Ji(),Pa=Re(),Mr=Tr(),os=mt(),va=tt(),Dfr=rs(),Dr=cr(),Ea=Ki(),Aa=Xi(),kfr=Ze(),Rfr=Hi(),Bfr=Zi(),zfr=bt(),Vfr=at(),ww=yw(),Pfr=gw(),Ffr=bw(),ea=va.BYTES_PER_ELEMENT*2,Sw=Nfr();function re(r){return r instanceof Fr||typeof r=="object"&&r!==null&&(r.constructor.name==="Complex64Array"||r.constructor.name==="Complex128Array")&&typeof r._length=="number"&&typeof r._buffer=="object"}function Ew(r){return r===Fr||r.name==="Complex128Array"}function be(r,e){return e*=2,new Dfr(r[e],r[e+1])}function Fr(){var r,e,a,t;if(e=arguments.length,!(this instanceof Fr))return e===0?new Fr:e===1?new Fr(arguments[0]):e===2?new Fr(arguments[0],arguments[1]):new Fr(arguments[0],arguments[1],arguments[2]);if(e===0)a=new va(0);else if(e===1)if(Qi(arguments[0]))a=new va(arguments[0]*2);else if(vu(arguments[0]))if(a=arguments[0],t=a.length,t&&jfr(a)&&ua(a[0])){if(a=Ffr(new va(t*2),a),a===null){if(!is(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 va(arguments[0])}}else{if(Ofr(a))a=Rfr(a,0);else if(Ifr(a))a=Bfr(a,0);else if(!is(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 va(a)}else if(xw(arguments[0])){if(a=arguments[0],!Ge(a.byteLength/ea))throw new RangeError(Dr("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",ea,a.byteLength));a=new va(a)}else if(uu(arguments[0])){if(a=arguments[0],Sw===!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(!Se(a[Pa]))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[Pa](),!Se(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=ww(a),a instanceof Error)throw a;a=new va(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],!xw(a))throw new TypeError(Dr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!Qi(r))throw new TypeError(Dr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!Ge(r/ea))throw new RangeError(Dr("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",ea,r));if(e===2){if(t=a.byteLength-r,!Ge(t/ea))throw new RangeError(Dr("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",ea,t));a=new va(a,r)}else{if(t=arguments[2],!Qi(t))throw new TypeError(Dr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*ea>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*ea));a=new va(a,r,t*2)}}return Mr(this,"_buffer",a),Mr(this,"_length",a.length/2),this}Mr(Fr,"BYTES_PER_ELEMENT",ea);Mr(Fr,"name","Complex64Array");Mr(Fr,"from",function(e){var a,t,o,i,n,s,v,u,f,l,d,m;if(!Se(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Ew(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(t=arguments.length,t>1){if(o=arguments[1],!Se(o))throw new TypeError(Dr("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(re(e)){if(u=e.length,o){for(i=new this(u),n=i._buffer,m=0,d=0;d<u;d++){if(l=o.call(a,e.get(d),d),ua(l))n[m]=Ea(l),n[m+1]=Aa(l);else if(nu(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(vu(e)){if(o){for(u=e.length,e.get&&e.set?v=Vfr("default"):v=zfr("default"),d=0;d<u;d++)if(!ua(v(e,d))){f=!0;break}if(f){if(!is(u))throw new RangeError(Dr("invalid argument. First argument must have a length which is a multiple of %u. Length: `%u`.",2,u));for(i=new this(u/2),n=i._buffer,d=0;d<u;d++)n[d]=o.call(a,v(e,d),d);return i}for(i=new this(u),n=i._buffer,m=0,d=0;d<u;d++){if(l=o.call(a,v(e,d),d),ua(l))n[m]=Ea(l),n[m+1]=Aa(l);else if(nu(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(uu(e)&&Sw&&Se(e[Pa])){if(n=e[Pa](),!Se(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=Pfr(n,o,a):s=ww(n),s instanceof Error)throw s;for(u=s.length/2,i=new this(u),n=i._buffer,d=0;d<u;d++)n[d]=s[d];return i}throw new TypeError(Dr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});Mr(Fr,"of",function(){var e,a;if(!Se(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Ew(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)});Mr(Fr.prototype,"at",function(e){if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ge(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 be(this._buffer,e)});os(Fr.prototype,"buffer",function(){return this._buffer.buffer});os(Fr.prototype,"byteLength",function(){return this._buffer.byteLength});os(Fr.prototype,"byteOffset",function(){return this._buffer.byteOffset});Mr(Fr.prototype,"BYTES_PER_ELEMENT",Fr.BYTES_PER_ELEMENT);Mr(Fr.prototype,"copyWithin",function(e,a){if(!re(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});Mr(Fr.prototype,"entries",function(){var e,a,t,o,i,n;if(!re(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={},Mr(a,"next",s),Mr(a,"return",v),Pa&&Mr(a,Pa,u),a;function s(){return n+=1,i||n>=t?{done:!0}:{value:[n,be(o,n)],done:!1}}function v(f){return i=!0,arguments.length?{value:f,done:!0}:{done:!0}}function u(){return e.entries()}});Mr(Fr.prototype,"every",function(e,a){var t,o;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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,be(t,o),o,this))return!1;return!0});Mr(Fr.prototype,"fill",function(e,a,t){var o,i,n,s,v,u;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ua(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(!Ge(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(!Ge(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=Ea(e),v=Aa(e),u=a;u<t;u++)n=2*u,o[n]=s,o[n+1]=v;return this});Mr(Fr.prototype,"filter",function(e,a){var t,o,i,n;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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=be(t,i),e.call(a,n,i,this)&&o.push(n);return new this.constructor(o)});Mr(Fr.prototype,"find",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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=be(t,o),e.call(a,i,o,this))return i});Mr(Fr.prototype,"findIndex",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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=be(t,o),e.call(a,i,o,this))return o;return-1});Mr(Fr.prototype,"findLast",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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=be(t,o),e.call(a,i,o,this))return i});Mr(Fr.prototype,"findLastIndex",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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=be(t,o),e.call(a,i,o,this))return o;return-1});Mr(Fr.prototype,"forEach",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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=be(t,o),e.call(a,i,o,this)});Mr(Fr.prototype,"get",function(e){if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Qi(e))throw new TypeError(Dr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return be(this._buffer,e)});Mr(Fr.prototype,"includes",function(e,a){var t,o,i,n,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ua(e))throw new TypeError(Dr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!Ge(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=Ea(e),n=Aa(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});Mr(Fr.prototype,"indexOf",function(e,a){var t,o,i,n,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ua(e))throw new TypeError(Dr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!Ge(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=Ea(e),n=Aa(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});Mr(Fr.prototype,"join",function(e){var a,t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=",";else if(qw(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(be(t,i).toString());return a.join(o)});Mr(Fr.prototype,"keys",function(){var e,a,t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,t=this._length,i=-1,a={},Mr(a,"next",n),Mr(a,"return",s),Pa&&Mr(a,Pa,v),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(u){return o=!0,arguments.length?{value:u,done:!0}:{done:!0}}function v(){return e.keys()}});Mr(Fr.prototype,"lastIndexOf",function(e,a){var t,o,i,n,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ua(e))throw new TypeError(Dr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!Ge(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=Ea(e),n=Aa(e),t=this._buffer,s=a;s>=0;s--)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});os(Fr.prototype,"length",function(){return this._length});Mr(Fr.prototype,"map",function(e,a){var t,o,i,n,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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,be(o,n),n,this),ua(s))t[2*n]=Ea(s),t[2*n+1]=Aa(s);else if(nu(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});Mr(Fr.prototype,"reduce",function(e,a){var t,o,i,n,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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=be(t,0),s=1}for(;s<i;s++)n=be(t,s),o=e(o,n,s,this);return o});Mr(Fr.prototype,"reduceRight",function(e,a){var t,o,i,n,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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=be(t,i-1),s=i-2}for(;s>=0;s--)n=be(t,s),o=e(o,n,s,this);return o});Mr(Fr.prototype,"reverse",function(){var e,a,t,o,i,n;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=this._buffer,o=kfr(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});Mr(Fr.prototype,"set",function(e){var a,t,o,i,n,s,v,u,f;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!Qi(t))throw new TypeError(Dr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(ua(e)){if(t>=this._length)throw new RangeError(Dr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));t*=2,o[t]=Ea(e),o[t+1]=Aa(e);return}if(re(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*ea,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new va(a.length),u=0;u<a.length;u++)i[u]=a[u];a=i}for(t*=2,f=0,u=0;u<s;u++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(vu(e)){for(s=e.length,u=0;u<s;u++)if(!ua(e[u])){n=!0;break}if(n){if(!is(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*ea,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new va(s),u=0;u<s;u++)i[u]=a[u];a=i}for(t*=2,s/=2,f=0,u=0;u<s;u++)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,u=0;u<s;u++)v=e[u],o[t]=Ea(v),o[t+1]=Aa(v),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))});Mr(Fr.prototype,"slice",function(e,a){var t,o,i,n,s,v,u;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(s=this._buffer,v=this._length,arguments.length===0)e=0,a=v;else{if(!Ge(e))throw new TypeError(Dr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=v,e<0&&(e=0)),arguments.length===1)a=v;else{if(!Ge(a))throw new TypeError(Dr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=v,a<0&&(a=0)):a>v&&(a=v)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,u=0;u<t;u++)n=2*(u+e),o[2*u]=s[n],o[2*u+1]=s[n+1];return i});Mr(Fr.prototype,"some",function(e,a){var t,o;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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,be(t,o),o,this))return!0;return!1});Mr(Fr.prototype,"sort",function(e){var a,t,o,i,n;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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(be(t,i));for(a.sort(e),i=0;i<o;i++)n=2*i,t[n]=Ea(a[i]),t[n+1]=Aa(a[i]);return this});Mr(Fr.prototype,"subarray",function(e,a){var t,o,i;if(!re(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(!Ge(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(!Ge(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*ea):(i=a-e,t=o.byteOffset+e*ea),new this.constructor(o.buffer,t,i<0?0:i)});Mr(Fr.prototype,"toLocaleString",function(e,a){var t,o,i,n,s;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=[];else if(qw(e)||Tfr(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(uu(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(be(n,s).toLocaleString(o,t));return i.join(",")});Mr(Fr.prototype,"toReversed",function(){var e,a,t,o,i,n;if(!re(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});Mr(Fr.prototype,"toSorted",function(e){var a,t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Se(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(be(t,i));return a.sort(e),new Fr(a)});Mr(Fr.prototype,"toString",function(){var e,a,t;if(!re(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(be(a,t).toString());return e.join(",")});Mr(Fr.prototype,"values",function(){var e,a,t,o,i,n;if(!re(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={},Mr(e,"next",s),Mr(e,"return",v),Pa&&Mr(e,Pa,u),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:be(i,n),done:!1}}function v(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function u(){return a.values()}});Mr(Fr.prototype,"with",function(e,a){var t,o,i;if(!re(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ge(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(!ua(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]=Ea(a),t[2*e+1]=Aa(a),o});Aw.exports=Fr});var fi=c((hae,jw)=>{"use strict";var Lfr=_w();jw.exports=Lfr});var Ow=c((bae,Tw)=>{"use strict";var Cfr=ze(),Ufr=na(),Mfr=cr(),Gfr=Bt(),$fr=zt();function Yfr(r){var e,a,t;for(e=[];a=r.next(),!a.done;)if(t=a.value,Cfr(t)&&t.length>=2)e.push(t[0],t[1]);else if(Ufr(t))e.push(Gfr(t),$fr(t));else return new TypeError(Mfr("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=Yfr});var Nw=c((xae,Iw)=>{"use strict";var Wfr=ze(),Jfr=na(),Kfr=cr(),Xfr=Bt(),Hfr=zt();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),Wfr(i)&&i.length>=2)t.push(i[0],i[1]);else if(Jfr(i))t.push(Xfr(i),Hfr(i));else return new TypeError(Kfr("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=Zfr});var kw=c((qae,Dw)=>{"use strict";var Qfr=na(),rlr=Bt(),elr=zt();function alr(r,e){var a,t,o,i;for(a=e.length,i=0,o=0;o<a;o++){if(t=e[o],!Qfr(t))return null;r[i]=rlr(t),r[i+1]=elr(t),i+=2}return r}Dw.exports=alr});var Cw=c((wae,Lw)=>{"use strict";var ro=me().isPrimitive,fu=ze(),lu=De(),Rw=Li(),cu=Vi(),tlr=ha(),ilr=Zo().primitives,Bw=Va(),Ee=Fe(),la=na(),ss=su(),$e=ba(),olr=es(),slr=as(),nlr=Ji(),Fa=Re(),Gr=Tr(),ns=mt(),fa=rt(),zw=Qo(),_a=Bt(),ja=zt(),vlr=Ze(),ulr=Hi(),flr=Zi(),llr=bt(),clr=at(),kr=cr(),Vw=Ow(),dlr=Nw(),plr=kw(),aa=fa.BYTES_PER_ELEMENT*2,Pw=nlr();function ee(r){return r instanceof Lr||typeof r=="object"&&r!==null&&(r.constructor.name==="Complex64Array"||r.constructor.name==="Complex128Array")&&typeof r._length=="number"&&typeof r._buffer=="object"}function Fw(r){return r===Lr||r.name==="Complex64Array"}function we(r,e){return e*=2,new zw(r[e],r[e+1])}function Lr(){var r,e,a,t;if(e=arguments.length,!(this instanceof Lr))return e===0?new Lr:e===1?new Lr(arguments[0]):e===2?new Lr(arguments[0],arguments[1]):new Lr(arguments[0],arguments[1],arguments[2]);if(e===0)a=new fa(0);else if(e===1)if(ro(arguments[0]))a=new fa(arguments[0]*2);else if(lu(arguments[0]))if(a=arguments[0],t=a.length,t&&tlr(a)&&la(a[0])){if(a=plr(new fa(t*2),a),a===null){if(!ss(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 fa(arguments[0])}}else{if(olr(a))a=ulr(a,0);else if(slr(a))a=flr(a,0);else if(!ss(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 fa(a)}else if(Rw(arguments[0])){if(a=arguments[0],!$e(a.byteLength/aa))throw new RangeError(kr("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",aa,a.byteLength));a=new fa(a)}else if(cu(arguments[0])){if(a=arguments[0],Pw===!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[Fa]))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[Fa](),!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=Vw(a),a instanceof Error)throw a;a=new fa(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],!Rw(a))throw new TypeError(kr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!ro(r))throw new TypeError(kr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!$e(r/aa))throw new RangeError(kr("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",aa,r));if(e===2){if(t=a.byteLength-r,!$e(t/aa))throw new RangeError(kr("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",aa,t));a=new fa(a,r)}else{if(t=arguments[2],!ro(t))throw new TypeError(kr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*aa>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*aa));a=new fa(a,r,t*2)}}return Gr(this,"_buffer",a),Gr(this,"_length",a.length/2),this}Gr(Lr,"BYTES_PER_ELEMENT",aa);Gr(Lr,"name","Complex128Array");Gr(Lr,"from",function(e){var a,t,o,i,n,s,v,u,f,l,d,m;if(!Ee(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Fw(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(u=e.length,o){for(i=new this(u),n=i._buffer,m=0,d=0;d<u;d++){if(l=o.call(a,e.get(d),d),la(l))n[m]=_a(l),n[m+1]=ja(l);else if(fu(l)&&l.length>=2)n[m]=l[0],n[m+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));m+=2}return i}return new this(e)}if(lu(e)){if(o){for(u=e.length,e.get&&e.set?v=clr("default"):v=llr("default"),d=0;d<u;d++)if(!la(v(e,d))){f=!0;break}if(f){if(!ss(u))throw new RangeError(kr("invalid argument. First argument must have a length which is a multiple of two. Length: `%u`.",u));for(i=new this(u/2),n=i._buffer,d=0;d<u;d++)n[d]=o.call(a,v(e,d),d);return i}for(i=new this(u),n=i._buffer,m=0,d=0;d<u;d++){if(l=o.call(a,v(e,d),d),la(l))n[m]=_a(l),n[m+1]=ja(l);else if(fu(l)&&l.length>=2)n[m]=l[0],n[m+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));m+=2}return i}return new this(e)}if(cu(e)&&Pw&&Ee(e[Fa])){if(n=e[Fa](),!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=dlr(n,o,a):s=Vw(n),s instanceof Error)throw s;for(u=s.length/2,i=new this(u),n=i._buffer,d=0;d<u;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(Lr,"of",function(){var e,a;if(!Ee(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Fw(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(Lr.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 we(this._buffer,e)});ns(Lr.prototype,"buffer",function(){return this._buffer.buffer});ns(Lr.prototype,"byteLength",function(){return this._buffer.byteLength});ns(Lr.prototype,"byteOffset",function(){return this._buffer.byteOffset});Gr(Lr.prototype,"BYTES_PER_ELEMENT",Lr.BYTES_PER_ELEMENT);Gr(Lr.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(Lr.prototype,"entries",function(){var e,a,t,o,i,n,s;if(!ee(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={},Gr(t,"next",v),Gr(t,"return",u),Fa&&Gr(t,Fa,f),t;function v(){var l;return n+=1,i||n>=o?{done:!0}:(s+=2,l=new zw(e[s],e[s+1]),{value:[n,l],done:!1})}function u(l){return i=!0,arguments.length?{value:l,done:!0}:{done:!0}}function f(){return a.entries()}});Gr(Lr.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,we(t,o),o,this))return!1;return!0});Gr(Lr.prototype,"fill",function(e,a,t){var o,i,n,s,v,u;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!la(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=_a(e),v=ja(e),u=a;u<t;u++)n=2*u,o[n]=s,o[n+1]=v;return this});Gr(Lr.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=we(t,i),e.call(a,n,i,this)&&o.push(n);return new this.constructor(o)});Gr(Lr.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=we(t,o),e.call(a,i,o,this))return i});Gr(Lr.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=we(t,o),e.call(a,i,o,this))return o;return-1});Gr(Lr.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=we(t,o),e.call(a,i,o,this))return i});Gr(Lr.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=we(t,o),e.call(a,i,o,this))return o;return-1});Gr(Lr.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=we(t,o),e.call(a,i,o,this)});Gr(Lr.prototype,"get",function(e){if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ro(e))throw new TypeError(kr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return we(this._buffer,e)});ns(Lr.prototype,"length",function(){return this._length});Gr(Lr.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(!la(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=_a(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(Lr.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(!la(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=_a(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(Lr.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(we(t,i).toString());return a.join(o)});Gr(Lr.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),Fa&&Gr(a,Fa,v),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(u){return o=!0,arguments.length?{value:u,done:!0}:{done:!0}}function v(){return e.keys()}});Gr(Lr.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(!la(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=_a(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});Gr(Lr.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,we(o,n),n,this),la(s))t[2*n]=_a(s),t[2*n+1]=ja(s);else if(fu(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(Lr.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=we(t,0),s=1}for(;s<i;s++)n=we(t,s),o=e(o,n,s,this);return o});Gr(Lr.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=we(t,i-1),s=i-2}for(;s>=0;s--)n=we(t,s),o=e(o,n,s,this);return o});Gr(Lr.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=vlr(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(Lr.prototype,"set",function(e){var a,t,o,i,n,s,v,u,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],!ro(t))throw new TypeError(kr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(la(e)){if(t>=this._length)throw new RangeError(kr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));t*=2,o[t]=_a(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*aa,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new fa(a.length),u=0;u<a.length;u++)i[u]=a[u];a=i}for(t*=2,f=0,u=0;u<s;u++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(lu(e)){for(s=e.length,u=0;u<s;u++)if(!la(e[u])){n=!0;break}if(n){if(!ss(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*aa,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new fa(s),u=0;u<s;u++)i[u]=a[u];a=i}for(t*=2,s/=2,f=0,u=0;u<s;u++)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,u=0;u<s;u++)v=e[u],o[t]=_a(v),o[t+1]=ja(v),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(Lr.prototype,"slice",function(e,a){var t,o,i,n,s,v,u;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(s=this._buffer,v=this._length,arguments.length===0)e=0,a=v;else{if(!$e(e))throw new TypeError(kr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=v,e<0&&(e=0)),arguments.length===1)a=v;else{if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=v,a<0&&(a=0)):a>v&&(a=v)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,u=0;u<t;u++)n=2*(u+e),o[2*u]=s[n],o[2*u+1]=s[n+1];return i});Gr(Lr.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,we(t,o),o,this))return!0;return!1});Gr(Lr.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(we(t,i));for(a.sort(e),i=0;i<o;i++)n=2*i,t[n]=_a(a[i]),t[n+1]=ja(a[i]);return this});Gr(Lr.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*aa):(i=a-e,t=o.byteOffset+e*aa),new this.constructor(o.buffer,t,i<0?0:i)});Gr(Lr.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)||ilr(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(cu(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(we(n,s).toLocaleString(o,t));return i.join(",")});Gr(Lr.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(Lr.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(we(t,i));return a.sort(e),new Lr(a)});Gr(Lr.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(we(a,t).toString());return e.join(",")});Gr(Lr.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",v),Fa&&Gr(e,Fa,u),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:we(i,n),done:!1}}function v(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function u(){return a.values()}});Gr(Lr.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(!la(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]=_a(a),t[2*e+1]=ja(a),o});Lw.exports=Lr});var li=c((Sae,Uw)=>{"use strict";var ylr=Cw();Uw.exports=ylr});var Gw=c((Eae,Mw)=>{"use strict";var mlr=Nt();function glr(r){var e,a;for(e=[];a=r.next(),!a.done;)e.push(mlr(a.value));return e}Mw.exports=glr});var Yw=c((Aae,$w)=>{"use strict";var hlr=Nt();function blr(r,e,a){var t,o,i;for(t=[],i=-1;o=r.next(),!o.done;)i+=1,t.push(hlr(e.call(a,o.value,i)));return t}$w.exports=blr});var Jw=c((_ae,Ww)=>{"use strict";var xlr=Nt();function qlr(r,e){var a,t;for(a=e.length,t=0;t<a;t++)r[t]=xlr(e[t]);return r}Ww.exports=qlr});var e3=c((jae,r3)=>{"use strict";var eo=me().isPrimitive,du=De(),Kw=Li(),pu=Vi(),Ae=Fe(),ao=de().isPrimitive,Ta=ue().isPrimitive,Xw=Va().isPrimitive,wlr=Zo().primitives,Slr=Ji(),La=Re(),$r=Tr(),vs=mt(),it=Qe(),le=Nt(),Elr=bt(),Alr=Ze(),_lr=at(),Yr=cr(),Hw=Gw(),jlr=Yw(),Tlr=Jw(),$t=it.BYTES_PER_ELEMENT,Zw=Slr();function ae(r){return typeof r=="object"&&r!==null&&r.constructor.name==="BooleanArray"&&r.BYTES_PER_ELEMENT===$t}function Qw(r){return r===Ur}function Ur(){var r,e,a,t,o;if(e=arguments.length,!(this instanceof Ur))return e===0?new Ur:e===1?new Ur(arguments[0]):e===2?new Ur(arguments[0],arguments[1]):new Ur(arguments[0],arguments[1],arguments[2]);if(e===0)a=new it(0);else if(e===1)if(o=arguments[0],eo(o))a=new it(o);else if(du(o))a=Tlr(new it(o.length),o);else if(Kw(o))a=new it(o);else if(pu(o)){if(Zw===!1)throw new TypeError(Yr("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",o));if(!Ae(o[La]))throw new TypeError(Yr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));if(a=o[La](),!Ae(a.next))throw new TypeError(Yr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));a=new it(Hw(a))}else throw new TypeError(Yr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));else{if(a=arguments[0],!Kw(a))throw new TypeError(Yr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!eo(r))throw new TypeError(Yr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(e===2)a=new it(a,r);else{if(t=arguments[2],!eo(t))throw new TypeError(Yr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*$t>a.byteLength-r)throw new RangeError(Yr("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*$t));a=new it(a,r,t)}}return $r(this,"_buffer",a),$r(this,"_length",a.length),this}$r(Ur,"BYTES_PER_ELEMENT",$t);$r(Ur,"name","BooleanArray");$r(Ur,"from",function(e){var a,t,o,i,n,s,v,u,f;if(!Ae(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Qw(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(t=arguments.length,t>1){if(o=arguments[1],!Ae(o))throw new TypeError(Yr("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(du(e)){if(o){for(u=e.length,e.get&&e.set?v=_lr("default"):v=Elr("default"),i=new this(u),n=i._buffer,f=0;f<u;f++)n[f]=le(o.call(a,v(e,f),f));return i}return new this(e)}if(pu(e)&&Zw&&Ae(e[La])){if(n=e[La](),!Ae(n.next))throw new TypeError(Yr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));for(o?s=jlr(n,o,a):s=Hw(n),u=s.length,i=new this(u),n=i._buffer,f=0;f<u;f++)n[f]=s[f];return i}throw new TypeError(Yr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});$r(Ur,"of",function(){var e,a;if(!Ae(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Qw(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(Ur.prototype,"at",function(e){var a,t;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ta(e))throw new TypeError(Yr("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])});vs(Ur.prototype,"buffer",function(){return this._buffer.buffer});vs(Ur.prototype,"byteLength",function(){return this._buffer.byteLength});vs(Ur.prototype,"byteOffset",function(){return this._buffer.byteOffset});$r(Ur.prototype,"BYTES_PER_ELEMENT",Ur.BYTES_PER_ELEMENT);$r(Ur.prototype,"copyWithin",function(e,a){if(!ae(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(Ur.prototype,"entries",function(){var e,a,t,o,i,n;if(!ae(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",v),La&&$r(a,La,u),a;function s(){return n+=1,i||n>=t?{done:!0}:{value:[n,le(o[n])],done:!1}}function v(f){return i=!0,arguments.length?{value:f,done:!0}:{done:!0}}function u(){return e.entries()}});$r(Ur.prototype,"every",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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(Ur.prototype,"fill",function(e,a,t){var o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!ao(e))throw new TypeError(Yr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!Ta(a))throw new TypeError(Yr("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!Ta(t))throw new TypeError(Yr("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(Ur.prototype,"filter",function(e,a){var t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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(Ur.prototype,"find",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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(Ur.prototype,"findIndex",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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(Ur.prototype,"findLast",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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(Ur.prototype,"findLastIndex",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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(Ur.prototype,"forEach",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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(Ur.prototype,"get",function(e){if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!eo(e))throw new TypeError(Yr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return le(this._buffer[e])});$r(Ur.prototype,"includes",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!ao(e))throw new TypeError(Yr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Ta(a))throw new TypeError(Yr("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(Ur.prototype,"indexOf",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!ao(e))throw new TypeError(Yr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Ta(a))throw new TypeError(Yr("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(Ur.prototype,"join",function(e){var a,t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length>0){if(!Xw(e))throw new TypeError(Yr("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(Ur.prototype,"keys",function(){var e,a,t,o,i;if(!ae(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),La&&$r(a,La,v),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(u){return o=!0,arguments.length?{value:u,done:!0}:{done:!0}}function v(){return e.keys()}});$r(Ur.prototype,"lastIndexOf",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!ao(e))throw new TypeError(Yr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Ta(a))throw new TypeError(Yr("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});vs(Ur.prototype,"length",function(){return this._length});$r(Ur.prototype,"map",function(e,a){var t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(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(Ur.prototype,"reduce",function(e,a){var t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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(Ur.prototype,"reduceRight",function(e,a){var t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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(Ur.prototype,"reverse",function(){var e,a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=this._buffer,t=this._length,o=Alr(t/2),i=0;i<o;i++)n=t-i-1,a=e[i],e[i]=e[n],e[n]=a;return this});$r(Ur.prototype,"set",function(e){var a,t,o,i,n,s,v;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!eo(t))throw new TypeError(Yr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(du(e)){if(n=e.length,t+n>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(ae(e)?a=e._buffer:a=e,v=o.byteOffset+t*$t,a.buffer===o.buffer&&a.byteOffset<v&&a.byteOffset+a.byteLength>v){for(i=new it(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(Yr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));o[t]=e?1:0});$r(Ur.prototype,"slice",function(e,a){var t,o,i,n,s,v;if(!ae(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(!Ta(e))throw new TypeError(Yr("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(!Ta(a))throw new TypeError(Yr("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,v=0;v<t;v++)o[v]=n[v+e];return i});$r(Ur.prototype,"some",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ae(e))throw new TypeError(Yr("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(Ur.prototype,"sort",function(e){var a;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(a=this._buffer,arguments.length===0)return a.sort(),this;if(!Ae(e))throw new TypeError(Yr("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(Ur.prototype,"subarray",function(e,a){var t,o,i;if(!ae(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(!Ta(e))throw new TypeError(Yr("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(!Ta(a))throw new TypeError(Yr("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*$t):(i=a-e,t=o.byteOffset+e*$t),new this.constructor(o.buffer,t,i<0?0:i)});$r(Ur.prototype,"toLocaleString",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length===0)o=[];else if(Xw(e)||wlr(e))o=e;else throw new TypeError(Yr("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(pu(a))t=a;else throw new TypeError(Yr("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(Ur.prototype,"toReversed",function(){var e,a,t,o,i;if(!ae(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(Ur.prototype,"toSorted",function(e){var a,t,o,i,n;if(!ae(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(!Ae(e))throw new TypeError(Yr("invalid argument. First argument must be a function. Value: `%s`.",e));return a.sort(s),t;function s(v,u){return e(le(v),le(u))}});$r(Ur.prototype,"toString",function(){var e,a,t;if(!ae(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(Ur.prototype,"values",function(){var e,a,t,o,i,n;if(!ae(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",v),La&&$r(e,La,u),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:le(i[n]),done:!1}}function v(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function u(){return a.values()}});$r(Ur.prototype,"with",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Ta(e))throw new TypeError(Yr("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(Yr("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!ao(a))throw new TypeError(Yr("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});r3.exports=Ur});var ci=c((Tae,a3)=>{"use strict";var Olr=e3();a3.exports=Olr});var i3=c((Oae,t3)=>{"use strict";var Ilr=rt(),Nlr=tt(),Dlr=oi(),klr=si(),Rlr=Vt(),Blr=ni(),zlr=Qe(),Vlr=vi(),Plr=ui(),Flr=fi(),Llr=li(),Clr=ci(),Ulr=[Ilr,Nlr,klr,Dlr,Blr,Rlr,Plr,zlr,Vlr,Flr,Llr,Clr];t3.exports=Ulr});var s3=c((Iae,o3)=>{"use strict";var Mlr=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"];o3.exports=Mlr});var u3=c((Nae,v3)=>{"use strict";var Glr=Pi(),$lr=ha(),Ylr=yt(),Wlr=u2(),Jlr=i3(),n3=s3(),Klr=n3.length;function Xlr(r){var e;if($lr(r))return"generic";if(Glr(r))return null;for(e=0;e<Klr;e++)if(r instanceof Jlr[e])return n3[e];return Wlr[Ylr(r)]||null}v3.exports=Xlr});var to=c((Dae,f3)=>{"use strict";var Hlr=u3();f3.exports=Hlr});var c3=c((kae,l3)=>{"use strict";var Zlr=et(),Qlr=at(),rcr=bt(),ecr=to();function acr(r,e){var a,t,o,i;for(o=ecr(r),Zlr(r)?t=Qlr(o):t=rcr(o),a=r.length,i=0;i<a;i++)if(t(r,i)===e)return!0;return!1}l3.exports=acr});var p3=c((Rae,d3)=>{"use strict";var tcr=De(),icr=et(),ocr=at(),scr=to(),ncr=cr();function vcr(r){var e,a,t;if(!tcr(r))throw new TypeError(ncr("invalid argument. Must provide an array-like object. Value: `%s`.",r));return t=scr(r),icr(r)&&(e=ocr(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}}d3.exports=vcr});var Ve=c((Bae,m3)=>{"use strict";var ucr=Tr(),y3=c3(),fcr=p3();ucr(y3,"factory",fcr);m3.exports=y3});var h3=c((zae,g3)=>{"use strict";var lcr=Ve().factory,ccr=ke(),dcr=lcr(ccr());g3.exports=dcr});var di=c((Vae,b3)=>{"use strict";var pcr=h3();b3.exports=pcr});var q3=c((Pae,x3)=>{"use strict";var ycr=Za();function mcr(r,e,a,t){var o=ycr(e,a,t);return o[0]>=0&&o[1]<r}x3.exports=mcr});var yu=c((Fae,w3)=>{"use strict";var gcr=q3();w3.exports=gcr});var mu=c((Lae,S3)=>{"use strict";function hcr(){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"}}S3.exports=hcr});var A3=c((Cae,E3)=>{"use strict";var bcr=mu(),ta=bcr(),xcr={"dtypes.default":ta.dtypes.default,"dtypes.numeric":ta.dtypes.numeric,"dtypes.real":ta.dtypes.real,"dtypes.floating_point":ta.dtypes.floating_point,"dtypes.real_floating_point":ta.dtypes.real_floating_point,"dtypes.complex_floating_point":ta.dtypes.complex_floating_point,"dtypes.integer":ta.dtypes.integer,"dtypes.signed_integer":ta.dtypes.signed_integer,"dtypes.unsigned_integer":ta.dtypes.unsigned_integer,"dtypes.boolean":ta.dtypes.boolean,order:ta.order,casting:ta.casting,index_mode:ta.index_mode};function qcr(r){var e=xcr[r];return e===void 0?null:e}E3.exports=qcr});var Oa=c((Uae,j3)=>{"use strict";var wcr=Tr(),_3=mu(),Scr=A3();wcr(_3,"get",Scr);j3.exports=_3});var O3=c((Mae,T3)=>{"use strict";var Ecr=cr();function Acr(r){var e=typeof r;return r===null||e!=="object"&&e!=="function"?new TypeError(Ecr("invalid argument. A provided constructor must be either an object (except null) or a function. Value: `%s`.",r)):null}T3.exports=Acr});var N3=c((Gae,I3)=>{"use strict";I3.exports=Object.create});var R3=c(($ae,k3)=>{"use strict";function D3(){}function _cr(r){return D3.prototype=r,new D3}k3.exports=_cr});var V3=c((Yae,z3)=>{"use strict";var B3=N3(),jcr=R3(),gu;typeof B3=="function"?gu=B3:gu=jcr;z3.exports=gu});var L3=c((Wae,F3)=>{"use strict";var Tcr=Ot(),Ocr=cr(),P3=O3(),Icr=V3();function Ncr(r,e){var a=P3(r);if(a||(a=P3(e),a))throw a;if(typeof e.prototype>"u")throw new TypeError(Ocr("invalid argument. Second argument must have a prototype from which another object can inherit. Value: `%s`.",e.prototype));return r.prototype=Icr(e.prototype),Tcr(r.prototype,"constructor",{configurable:!0,enumerable:!1,writable:!0,value:r}),r}F3.exports=Ncr});var hu=c((Jae,C3)=>{"use strict";var Dcr=L3();C3.exports=Dcr});var M3=c((Kae,U3)=>{"use strict";function kcr(r,e){return r<0?0:r>e?e:r}U3.exports=kcr});var us=c((Xae,G3)=>{"use strict";var Rcr=M3();G3.exports=Rcr});var Y3=c((Hae,$3)=>{"use strict";function Bcr(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)}$3.exports=Bcr});var fs=c((Zae,W3)=>{"use strict";var zcr=Y3();W3.exports=zcr});var K3=c((Qae,J3)=>{"use strict";function Vcr(r,e){return r<0?(r+=e+1,r<0?-1:r):r>e?-1:r}J3.exports=Vcr});var ca=c((rte,X3)=>{"use strict";var Pcr=K3();X3.exports=Pcr});var Z3=c((ete,H3)=>{"use strict";var Fcr=Ve().factory,Lcr=Ct(),Ccr=Fcr(Lcr());H3.exports=Ccr});var pi=c((ate,Q3)=>{"use strict";var Ucr=Z3();Q3.exports=Ucr});var e4=c((tte,r4)=>{"use strict";var Mcr=us(),Gcr=fs(),$cr=ca(),Ycr=pi(),bu=cr(),Wcr={wrap:Gcr,clamp:Mcr,normalize:Kcr,throw:Jcr};function Jcr(r,e){if(r<0||r>e)throw new RangeError(bu("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return r}function Kcr(r,e){var a=$cr(r,e);if(a<0||a>e)throw new RangeError(bu("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return a}function Xcr(r){if(!Ycr(r))throw new TypeError(bu("invalid argument. First argument must be a recognized index mode. Value: `%s`.",r));return Wcr[r]}r4.exports=Xcr});var t4=c((ite,a4)=>{"use strict";var Hcr=us(),Zcr=fs(),Qcr=ca(),rdr=cr();function edr(r,e,a){var t;if(a==="clamp")return Hcr(r,e);if(a==="wrap")return Zcr(r,e);if(t=r,a==="normalize"&&(t=Qcr(t,e)),t<0||t>e)throw new RangeError(rdr("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return t}a4.exports=edr});var ot=c((ote,o4)=>{"use strict";var adr=Tr(),tdr=e4(),i4=t4();adr(i4,"factory",tdr);o4.exports=i4});var v4=c((ste,n4)=>{"use strict";var idr=ue().isPrimitive,odr=ot(),sdr=ra(),ndr=cr(),s4=sdr.prototype.iget;function vdr(r){if(this._ndims>0){if(!idr(r))throw new TypeError(ndr("invalid argument. Index must be an integer. Value: `%s`.",r));return r=odr(r,this._length-1,this._mode),s4.call(this,r)}return s4.call(this)}n4.exports=vdr});var l4=c((nte,f4)=>{"use strict";var udr=ue().isPrimitive,fdr=ot(),ldr=ra(),cdr=cr(),u4=ldr.prototype.iset;function ddr(r,e){if(this._flags.READONLY)throw new Error("invalid invocation. Cannot write to a read-only array.");if(this._ndims>0){if(!udr(r))throw new TypeError(cdr("invalid argument. Index must be an integer. Value: `%s`.",r));r=fdr(r,this._length-1,this._mode),u4.call(this,r,e)}else u4.call(this,r);return this}f4.exports=ddr});var p4=c((vte,d4)=>{"use strict";var pdr=ue().isPrimitive,ydr=ot(),c4=cr();function mdr(){var r,e,a,t;if(arguments.length!==this._ndims)throw new RangeError(c4("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(!pdr(arguments[t]))throw new TypeError(c4("invalid argument. Indices must be integer valued. Argument: `%u`. Value: `%s`.",t,arguments[t]));e=ydr(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]}d4.exports=mdr});var g4=c((ute,m4)=>{"use strict";var gdr=ue().isPrimitive,hdr=ot(),y4=cr();function bdr(){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(y4("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(!gdr(arguments[t]))throw new TypeError(y4("invalid argument. Indices must be integer valued. Argument: `%i`. Value: `%s`.",t,arguments[t]));e=hdr(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}m4.exports=bdr});var b4=c((fte,h4)=>{"use strict";function xdr(r,e){var a,t;for(a=[],t=0;t<e;t++)a.push(r[t]);return a}h4.exports=xdr});var w4=c((lte,q4)=>{"use strict";var qdr=oe(),xu=Jr(),wdr=ze(),x4=pi(),Sdr=de().isPrimitive,yi=cr();function Edr(r,e){var a;if(!qdr(e))return new TypeError(yi("invalid argument. Options argument must be an object. Value: `%s`.",e));if(xu(e,"mode")&&(r.mode=e.mode,!x4(r.mode)))return new TypeError(yi("invalid option. `%s` option must be a recognized mode. Option: `%s`.","mode",r.mode));if(xu(e,"submode")){if(r.submode=e.submode,!wdr(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(!x4(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 xu(e,"readonly")&&(r.readonly=e.readonly,!Sdr(r.readonly))?new TypeError(yi("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",r.readonly)):null}q4.exports=Edr});var O4=c((cte,T4)=>{"use strict";var io=Tr(),S4=De(),Adr=Ut().primitives,_dr=me().isPrimitive,jdr=Uv().primitives,E4=Fe(),Tdr=Sa(),Odr=di(),Idr=yu(),Ndr=Wr(),j4=ra(),Ddr=Oa(),kdr=hu(),Ca=cr(),Rdr=v4(),Bdr=l4(),zdr=p4(),Vdr=g4(),A4=b4(),Pdr=w4(),_4=32767,Fdr=Ddr.get("index_mode"),Ldr=!1;function Ua(r,e,a,t,o,i,n){var s,v,u,f,l;if(!(this instanceof Ua))return arguments.length<7?new Ua(r,e,a,t,o,i):new Ua(r,e,a,t,o,i,n);if(!Odr(r))throw new TypeError(Ca("invalid argument. First argument must be a supported ndarray data type. Value: `%s`.",r));if(S4(e)){if(e.get&&e.set&&(!E4(e.get)||!E4(e.set)))throw new TypeError(Ca("invalid argument. Second argument `get` and `set` properties must be functions. Value: `%s`.",e))}else throw new TypeError(Ca("invalid argument. Second argument must be an array-like object, typed-array-like, or a Buffer. Value: `%s`.",e));if(!Adr(a)&&(!S4(a)||a.length>0))throw new TypeError(Ca("invalid argument. Third argument must be an array-like object containing nonnegative integers. Value: `%s`.",a));if(s=a.length,s>_4)throw new RangeError(Ca("invalid argument. Number of dimensions must not exceed %u due to stack limits. Value: `%u`.",_4,s));if(!jdr(t))throw new TypeError(Ca("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(Ca("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(Ca("invalid argument. Fourth argument must contain a single element equal to 0. Value: `%d`.",t[0]))}if(!_dr(o))throw new TypeError(Ca("invalid argument. Fifth argument must be a nonnegative integer. Value: `%s`.",o));if(!Tdr(i))throw new TypeError(Ca("invalid argument. Sixth argument must be a supported order. Value: `%s`.",i));if(s>0&&!Idr(e.length,a,t,o)&&Ndr(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(v={},v.mode=Fdr,v.readonly=Ldr,arguments.length>6&&(u=Pdr(v,n),u))throw u;return this._mode=v.mode,v.submode===void 0&&(v.submode=[this._mode]),this._submode=v.submode,f=A4(a,s),l=A4(t,s||1),j4.call(this,r,e,f,l,o,i),this._flags.READONLY=v.readonly,this}kdr(Ua,j4);io(Ua,"name","ndarray");io(Ua.prototype,"get",zdr);io(Ua.prototype,"iget",Rdr);io(Ua.prototype,"set",Vdr);io(Ua.prototype,"iset",Bdr);T4.exports=Ua});var da=c((dte,I4)=>{"use strict";var Cdr=O4();I4.exports=Cdr});var N4=c((pte,Udr)=>{Udr.exports=["none","equiv","safe","mostly-safe","same-kind","unsafe"]});var k4=c((yte,D4)=>{"use strict";var Mdr=N4();function Gdr(){return Mdr.slice()}D4.exports=Gdr});var B4=c((mte,R4)=>{"use strict";function $dr(){return{none:0,equiv:1,safe:2,"mostly-safe":3,"same-kind":4,unsafe:5}}R4.exports=$dr});var qu=c((gte,V4)=>{"use strict";var Ydr=Tr(),z4=k4(),Wdr=B4();Ydr(z4,"enum",Wdr);V4.exports=z4});var L4=c((hte,F4)=>{"use strict";var Jdr=qu(),P4=Jdr(),Kdr=P4.length;function Xdr(r){var e;for(e=0;e<Kdr;e++)if(r===P4[e])return!0;return!1}F4.exports=Xdr});var wu=c((bte,C4)=>{"use strict";var Hdr=L4();C4.exports=Hdr});var G4=c((xte,M4)=>{"use strict";var Zdr=qa(),Qdr=ha(),r0r=oe(),e0r=Lo(),a0r=de().isPrimitive,U4=Jr(),Su=cr();function t0r(r,e){var a=!0,t,o,i,n,s,v,u;if(!e0r(r))throw new TypeError(Su("invalid argument. First argument must be an object (except null). Value: `%s`.",r));if(arguments.length>1){if(!r0r(e))throw new TypeError(Su("invalid argument. Options argument must be an object. Value: `%s`.",e));if(U4(e,"duplicates")&&(a=e.duplicates,!a0r(a)))throw new TypeError(Su("invalid option. `%s` option must be a boolean. Option: `%s`.","duplicates",a))}if(t=Zdr(r),o=t.length,s={},a)for(u=0;u<o;u++){if(i=t[u],n=r[i],!U4(s,n)){s[n]=i;continue}v=s[n],Qdr(v)?s[n].push(i):s[n]=[v,i]}else for(u=0;u<o;u++)i=t[u],s[r[i]]=i;return s}M4.exports=t0r});var ls=c((qte,$4)=>{"use strict";var i0r=G4();$4.exports=i0r});var W4=c((wte,Y4)=>{"use strict";var o0r=ls(),s0r=ke().enum,n0r=o0r(s0r(),{duplicates:!1});function v0r(r){var e=n0r[r];return typeof e=="string"?e:null}Y4.exports=v0r});var cs=c((Ste,J4)=>{"use strict";var u0r=W4();J4.exports=u0r});var X4=c((Ete,K4)=>{"use strict";var f0r=ke().enum,l0r=f0r();function c0r(r){var e=l0r[r];return typeof e=="number"?e:null}K4.exports=c0r});var oo=c((Ate,H4)=>{"use strict";var d0r=X4();H4.exports=d0r});var Q4=c((_te,Z4)=>{"use strict";var p0r=cs(),y0r=oo();function m0r(r){var e=typeof r;return e==="string"?y0r(r)===null?null:r:e==="number"?p0r(r):null}Z4.exports=m0r});var Ia=c((jte,r6)=>{"use strict";var g0r=Q4();r6.exports=g0r});var e6=c((Tte,h0r)=>{h0r.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 i6=c((Ote,t6)=>{"use strict";var a6=qa(),b0r=Jr(),x0r=Ia(),ps=e6(),ds;function q0r(){var r,e,a,t,o,i,n,s,v;for(a={},r=a6(ps),e=r.length,v=0;v<e;v++){for(o=r[v],n=ps[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function w0r(){var r,e,a,t,o,i,n,s,v;for(a={},r=a6(ps),e=r.length,v=0;v<e;v++){for(o=r[v],n=ps[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function S0r(r){return arguments.length===0?q0r():(ds===void 0&&(ds=w0r()),r=x0r(r),b0r(ds,r)?ds[r].slice():null)}t6.exports=S0r});var Eu=c((Ite,o6)=>{"use strict";var E0r=i6();o6.exports=E0r});var n6=c((Nte,s6)=>{"use strict";var A0r=Eu(),_0r=A0r();function j0r(r,e){return r===e?!0:_0r[r][e]>0}s6.exports=j0r});var ys=c((Dte,v6)=>{"use strict";var T0r=n6();v6.exports=T0r});var u6=c((kte,O0r)=>{O0r.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 c6=c((Rte,l6)=>{"use strict";var f6=qa(),I0r=Jr(),N0r=Ia(),gs=u6(),ms;function D0r(){var r,e,a,t,o,i,n,s,v;for(a={},r=f6(gs),e=r.length,v=0;v<e;v++){for(o=r[v],n=gs[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,v;for(a={},r=f6(gs),e=r.length,v=0;v<e;v++){for(o=r[v],n=gs[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function R0r(r){return arguments.length===0?D0r():(ms===void 0&&(ms=k0r()),r=N0r(r),I0r(ms,r)?ms[r].slice():null)}l6.exports=R0r});var Au=c((Bte,d6)=>{"use strict";var B0r=c6();d6.exports=B0r});var y6=c((zte,p6)=>{"use strict";var z0r=Au(),V0r=z0r();function P0r(r,e){return r===e?!0:V0r[r][e]>0}p6.exports=P0r});var hs=c((Vte,m6)=>{"use strict";var F0r=y6();m6.exports=F0r});var g6=c((Pte,L0r)=>{L0r.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 x6=c((Fte,b6)=>{"use strict";var h6=qa(),C0r=Jr(),U0r=Ia(),xs=g6(),bs;function M0r(){var r,e,a,t,o,i,n,s,v;for(a={},r=h6(xs),e=r.length,v=0;v<e;v++){for(o=r[v],n=xs[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function G0r(){var r,e,a,t,o,i,n,s,v;for(a={},r=h6(xs),e=r.length,v=0;v<e;v++){for(o=r[v],n=xs[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function $0r(r){return arguments.length===0?M0r():(bs===void 0&&(bs=G0r()),r=U0r(r),C0r(bs,r)?bs[r].slice():null)}b6.exports=$0r});var _u=c((Lte,q6)=>{"use strict";var Y0r=x6();q6.exports=Y0r});var S6=c((Cte,w6)=>{"use strict";var W0r=_u(),J0r=W0r();function K0r(r,e){return r===e?!0:J0r[r][e]>0}w6.exports=K0r});var ju=c((Ute,E6)=>{"use strict";var X0r=S6();E6.exports=X0r});var _6=c((Mte,A6)=>{"use strict";var H0r=ys(),Z0r=hs(),Q0r=ju();function rpr(r,e,a){return a==="unsafe"||r===e?!0:a==="none"||a==="equiv"?!1:a==="safe"?H0r(r,e):a==="mostly-safe"?Z0r(r,e):Q0r(r,e)}A6.exports=rpr});var Tu=c((Gte,j6)=>{"use strict";var epr=_6();j6.exports=epr});var O6=c(($te,T6)=>{"use strict";var apr=typeof Buffer=="function"?Buffer:null;T6.exports=apr});var N6=c((Yte,I6)=>{"use strict";var tpr=Pi(),qs=O6();function ipr(){var r,e;if(typeof qs!="function")return!1;try{typeof qs.from=="function"?e=qs.from([1,2,3,4]):e=new qs([1,2,3,4]),r=tpr(e)&&e[0]===1&&e[1]===2&&e[2]===3&&e[3]===4}catch{r=!1}return r}I6.exports=ipr});var k6=c((Wte,D6)=>{"use strict";var opr=N6();D6.exports=opr});var B6=c((Jte,R6)=>{"use strict";var spr=require("buffer").Buffer;R6.exports=spr});var V6=c((Kte,z6)=>{"use strict";function npr(){throw new Error("not implemented")}z6.exports=npr});var so=c((Xte,P6)=>{"use strict";var vpr=k6(),upr=B6(),fpr=V6(),Ou;vpr()?Ou=upr:Ou=fpr;P6.exports=Ou});var L6=c((Hte,F6)=>{"use strict";var lpr=so(),cpr=rt(),dpr=tt(),ppr=ni(),ypr=si(),mpr=ui(),gpr=Vt(),hpr=oi(),bpr=Qe(),xpr=vi(),qpr=fi(),wpr=li(),Spr=ci(),Epr={binary:lpr,float64:cpr,float32:dpr,generic:Array,int16:ppr,int32:ypr,int8:mpr,uint16:gpr,uint32:hpr,uint8:bpr,uint8c:xpr,complex64:qpr,complex128:wpr,bool:Spr};F6.exports=Epr});var U6=c((Zte,C6)=>{"use strict";var Apr=L6();function _pr(r){return Apr[r]||null}C6.exports=_pr});var no=c((Qte,M6)=>{"use strict";var jpr=U6();M6.exports=jpr});var $6=c((rie,G6)=>{"use strict";var Tpr=Fe(),Opr=so(),Ipr=Tpr(Opr.allocUnsafe);G6.exports=Ipr});var W6=c((eie,Y6)=>{"use strict";var Npr=me(),Dpr=cr(),kpr=so();function Rpr(r){if(!Npr(r))throw new TypeError(Dpr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));return kpr.allocUnsafe(r)}Y6.exports=Rpr});var K6=c((aie,J6)=>{"use strict";var Bpr=me(),zpr=cr(),Vpr=so();function Ppr(r){if(!Bpr(r))throw new TypeError(zpr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));return new Vpr(r)}J6.exports=Ppr});var Ma=c((tie,X6)=>{"use strict";var Fpr=$6(),Lpr=W6(),Cpr=K6(),Iu;Fpr?Iu=Lpr:Iu=Cpr;X6.exports=Iu});var Z6=c((iie,H6)=>{"use strict";function Upr(r){var e;for(e=0;e<r.length;e++)r[e]=0;return r}H6.exports=Upr});var rS=c((oie,Q6)=>{"use strict";var Mpr=no(),Gpr=Ma(),$pr=Z6();function Ypr(r){var e,a;for(e=[],a=0;a<r;a++)e.push(0);return e}function Wpr(r){return $pr(Gpr(r))}function Jpr(r,e){var a=Mpr(r);return a?new a(e):null}function Kpr(r,e){return r==="generic"?Ypr(e):r==="binary"?Wpr(e):Jpr(r,e)}Q6.exports=Kpr});var Na=c((sie,eS)=>{"use strict";var Xpr=rS();eS.exports=Xpr});var tS=c((nie,aS)=>{"use strict";var Hpr={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"};aS.exports=Hpr});var oS=c((vie,iS)=>{"use strict";var Zpr=rt(),Qpr=tt(),ryr=oi(),eyr=si(),ayr=Vt(),tyr=ni(),iyr=Qe(),oyr=vi(),syr=ui(),nyr=fi(),vyr=li(),uyr=ci(),fyr=[Zpr,Qpr,eyr,ryr,tyr,ayr,syr,iyr,oyr,nyr,vyr,uyr];iS.exports=fyr});var nS=c((uie,sS)=>{"use strict";var lyr=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"];sS.exports=lyr});var fS=c((fie,uS)=>{"use strict";var cyr=Pi(),dyr=ha(),pyr=yt(),yyr=tS(),myr=oS(),vS=nS(),gyr=vS.length;function hyr(r){var e;if(dyr(r))return"generic";if(cyr(r))return"binary";for(e=0;e<gyr;e++)if(r instanceof myr[e])return vS[e];return yyr[pyr(r)]||null}uS.exports=hyr});var ws=c((lie,lS)=>{"use strict";var byr=fS();lS.exports=byr});var pS=c((cie,dS)=>{"use strict";var xyr=di(),cS=cr();function qyr(r){var e;if(typeof r!="object"||r===null)throw new TypeError(cS("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.dtype,xyr(e))return e;throw new TypeError(cS("invalid argument. Must provide an ndarray having a supported data type. Value: `%s`.",e))}dS.exports=qyr});var Da=c((die,yS)=>{"use strict";var wyr=pS();yS.exports=wyr});var gS=c((pie,mS)=>{"use strict";var Syr=me().isPrimitive,Eyr=De(),Nu=cr();function Ayr(r){var e,a,t,o;if(typeof r!="object"||r===null)throw new TypeError(Nu("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(a=r.shape,!Eyr(a))throw new TypeError(Nu("invalid argument. Must provide an ndarray. Value: `%s`.",r));for(e=[],o=0;o<a.length;o++){if(t=a[o],!Syr(t))throw new TypeError(Nu("invalid argument. Must provide an ndarray. Value: `%s`.",r));e.push(t)}return e}mS.exports=Ayr});var ie=c((yie,hS)=>{"use strict";var _yr=gS();hS.exports=_yr});var qS=c((mie,xS)=>{"use strict";var jyr=ue().isPrimitive,bS=De(),Tyr=Sa(),Oyr=Be(),Du=cr();function Iyr(r){var e,a,t,o,i,n;if(typeof r!="object"||r===null)throw new TypeError(Du("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(o=r.strides,!bS(o)){if(t=r.shape,!bS(t))throw new TypeError(Du("invalid argument. Must provide an ndarray. Value: `%s`.",r));return t.length===0?[0]:(a=r.order,Tyr(a)||(a="row-major"),Oyr(t,a))}for(e=[],n=0;n<o.length;n++){if(i=o[n],!jyr(i))throw new TypeError(Du("invalid argument. Must provide an ndarray. Value: `%s`.",r));e.push(i)}return e}xS.exports=Iyr});var Ga=c((gie,wS)=>{"use strict";var Nyr=qS();wS.exports=Nyr});var _S=c((hie,AS)=>{"use strict";var SS=me().isPrimitive,ES=De(),Dyr=Me(),ku=cr();function kyr(r){var e,a,t;if(typeof r!="object"||r===null)throw new TypeError(ku("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(t=r.offset,SS(t))return t;if(a=r.shape,!ES(a))throw new TypeError(ku("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.strides,a.length===0||!ES(e))return 0;if(t=Dyr(a,e),SS(t))return t;throw new TypeError(ku("invalid argument. Must provide an ndarray. Value: `%s`.",r))}AS.exports=kyr});var xt=c((bie,jS)=>{"use strict";var Ryr=_S();jS.exports=Ryr});var IS=c((xie,OS)=>{"use strict";var Byr=me().isPrimitive,zyr=De(),TS=cr();function Vyr(r){var e,a;if(typeof r!="object"||r===null)throw new TypeError(TS("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(a=r.ndims,Byr(a))return a;if(e=r.shape,!zyr(e))throw new TypeError(TS("invalid argument. Must provide an ndarray. Value: `%s`.",r));return e.length}OS.exports=Vyr});var Ss=c((qie,NS)=>{"use strict";var Pyr=IS();NS.exports=Pyr});var RS=c((wie,kS)=>{"use strict";var Fyr=Sa(),Lyr=Ga(),Cyr=Ss(),Uyr=Rt(),Myr=cr(),DS="row-major",Gyr="column-major";function $yr(r){var e,a;if(typeof r!="object"||r===null)throw new TypeError(Myr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return a=r.order,Fyr(a)?a:(e=Lyr(r),a=Uyr(e),a===1||a===3?DS:a===2?Gyr:Cyr(r)===0?DS:null)}kS.exports=$yr});var $a=c((Sie,BS)=>{"use strict";var Yyr=RS();BS.exports=Yyr});var PS=c((Eie,VS)=>{"use strict";var Wyr=De(),zS=cr();function Jyr(r){var e;if(typeof r!="object"||r===null)throw new TypeError(zS("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.data,Wyr(e))return e;throw new TypeError(zS("invalid argument. Must provide an ndarray. Value: `%s`.",r))}VS.exports=Jyr});var st=c((Aie,FS)=>{"use strict";var Kyr=PS();FS.exports=Kyr});var MS=c((_ie,US)=>{"use strict";var Ru=ze(),Xyr=cr();function LS(r,e){var a=e[0];return Ru(a)&&(r.push(a.length),LS(r,a)),r}function CS(r,e,a,t,o){var i,n,s;for(i=e[a],s=0;s<t.length;s++){if(n=t[s],!Ru(n)||n.length!==i)return a;if(o&&(n=CS(r,e,a+1,n,a+1<r-1),n<r))return n}return r}function Hyr(r){var e,a;if(!Ru(r))throw new TypeError(Xyr("invalid argument. Must provide an array-like object. Value: `%s`.",r));return e=[r.length],LS(e,r),a=e.length,a>1&&(e.length=CS(a,e,1,r,a>2)),e}US.exports=Hyr});var $S=c((jie,GS)=>{"use strict";var Zyr=MS();GS.exports=Zyr});var WS=c((Tie,YS)=>{"use strict";function Qyr(r,e){var a,t;for(a=[],t=0;t<e;t++)a.push(r);return a}YS.exports=Qyr});var vo=c((Oie,JS)=>{"use strict";var rmr=WS();JS.exports=rmr});var XS=c((Iie,KS)=>{"use strict";var emr=vo();function amr(r){return emr(0,r)}KS.exports=amr});var xe=c((Nie,HS)=>{"use strict";var tmr=XS();HS.exports=tmr});var QS=c((Die,ZS)=>{"use strict";var imr=cr();function omr(r,e,a,t,o,i){var n,s,v,u,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(imr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",s,o));if(v=a,t==="column-major"){for(f=0;f<n;f++)u=o%r[f],o-=u,o/=r[f],v+=u*e[f];return v}for(f=n-1;f>=0;f--)u=o%r[f],o-=u,o/=r[f],v+=u*e[f];return v}ZS.exports=omr});var ia=c((kie,rE)=>{"use strict";var smr=QS();rE.exports=smr});var tE=c((Rie,aE)=>{"use strict";var eE={float64:nmr,float32:vmr,int32:umr,int16:fmr,int8:lmr,uint32:cmr,uint16:dmr,uint8:pmr,uint8c:ymr,generic:mmr,default:gmr};function nmr(r,e,a){r[e]=a}function vmr(r,e,a){r[e]=a}function umr(r,e,a){r[e]=a}function fmr(r,e,a){r[e]=a}function lmr(r,e,a){r[e]=a}function cmr(r,e,a){r[e]=a}function dmr(r,e,a){r[e]=a}function pmr(r,e,a){r[e]=a}function ymr(r,e,a){r[e]=a}function mmr(r,e,a){r[e]=a}function gmr(r,e,a){r[e]=a}function hmr(r){var e=eE[r];return typeof e=="function"?e:eE.default}aE.exports=hmr});var mi=c((Bie,iE)=>{"use strict";var bmr=tE();iE.exports=bmr});var nE=c((zie,sE)=>{"use strict";var oE={complex128:xmr,complex64:qmr,default:wmr};function xmr(r,e,a){r.set(a,e)}function qmr(r,e,a){r.set(a,e)}function wmr(r,e,a){r.set(a,e)}function Smr(r){var e=oE[r];return typeof e=="function"?e:oE.default}sE.exports=Smr});var gi=c((Vie,vE)=>{"use strict";var Emr=nE();vE.exports=Emr});var fE=c((Pie,uE)=>{"use strict";var Amr=et(),_mr=bt(),jmr=mi(),Tmr=at(),Omr=gi(),Imr=to();function Nmr(r){var e=Imr(r);return Amr(r)?{data:r,dtype:e,accessorProtocol:!0,accessors:[Tmr(e),Omr(e)]}:{data:r,dtype:e,accessorProtocol:!1,accessors:[_mr(e),jmr(e)]}}uE.exports=Nmr});var nt=c((Fie,lE)=>{"use strict";var Dmr=fE();lE.exports=Dmr});var Bu=c((Lie,cE)=>{"use strict";var kmr=Ze();function Rmr(r,e,a,t){var o,i,n,s,v,u,f,l;for(o=e.data,n=e.accessors[0],i=e.accessors[1],f=kmr(r/2),v=t,u=v+(r-1)*a,l=0;l<f;l++)s=n(o,v),i(o,v,n(o,u)),i(o,u,s),v+=a,u-=a;return e}cE.exports=Rmr});var pE=c((Cie,dE)=>{"use strict";var Bmr=Ze(),zmr=nt(),Vmr=Bu(),Es=3;function Pmr(r,e,a){var t,o,i,n,s,v,u;if(r<=0)return e;if(n=zmr(e),n.accessorProtocol)return a<0?o=(1-r)*a:o=0,Vmr(r,n,a,o),n.data;if(v=Bmr(r/2),a===1){if(s=v%Es,i=r-1,s>0)for(o=0;o<s;o++)t=e[o],e[o]=e[i],e[i]=t,i-=1;if(v<Es)return e;for(o=s;o<v;o+=Es)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-=Es;return e}for(a<0?o=(1-r)*a:o=0,i=o+(r-1)*a,u=0;u<v;u++)t=e[o],e[o]=e[i],e[i]=t,o+=a,i-=a;return e}dE.exports=Pmr});var mE=c((Uie,yE)=>{"use strict";var Fmr=Ze(),Lmr=nt(),Cmr=Bu(),uo=3;function Umr(r,e,a,t){var o,i,n,s,v,u,f;if(r<=0)return e;if(s=Lmr(e),s.accessorProtocol)return Cmr(r,s,a,t),s.data;if(u=Fmr(r/2),i=t,a===1){if(v=u%uo,n=i+r-1,v>0)for(f=0;f<v;f++)o=e[i],e[i]=e[n],e[n]=o,i+=a,n-=a;if(u<uo)return e;for(f=v;f<u;f+=uo)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+=uo,n-=uo;return e}for(n=i+(r-1)*a,f=0;f<u;f++)o=e[i],e[i]=e[n],e[n]=o,i+=a,n-=a;return e}yE.exports=Umr});var bE=c((Mie,hE)=>{"use strict";var Mmr=Tr(),gE=pE(),Gmr=mE();Mmr(gE,"ndarray",Gmr);hE.exports=gE});var Vu=c((Gie,SE)=>{"use strict";var $mr=Be(),Ymr=ia(),Wmr=Wr(),xE=bE(),qE=xe(),Jmr="throw";function wE(r,e,a,t,o){var i;for(i=0;i<e;i++)a[o]=r[i],o+=t}function zu(r,e,a,t,o,i,n){var s,v,u,f;for(u=t+1,s=u===e,v=a[t],f=0;f<v;f++)s?(o[n]=r[f],n+=i):n=zu(r[f],e,a,u,o,i,n);return n}function Kmr(r,e,a,t,o,i){var n,s,v,u,f,l,d;for(n=Wmr(a),s=qE(n),zu(r,e,a,0,s,1,0),v="row-major",f=$mr(a,v),u=qE(e),wE(a,e,u,1,0),xE(e,u,1),xE(e,f,1),d=0;d<n;d++)l=Ymr(u,f,0,v,d,Jmr),t[i]=s[l],i+=o}function Xmr(r,e,a,t,o,i){var n=e.length;return n===0?t:n===1?(wE(r,e[0],t,o,i),t):a?(Kmr(r,n,e,t,o,i),t):(zu(r,n,e,0,t,o,i),t)}SE.exports=Xmr});var AE=c(($ie,EE)=>{"use strict";var Hmr=Wr(),Zmr=xe(),Qmr=Vu();function r1r(r,e,a){var t=Zmr(Hmr(e));return Qmr(r,e,a,t,1,0)}EE.exports=r1r});var TE=c((Yie,jE)=>{"use strict";var e1r=Tr(),_E=AE(),a1r=Vu();e1r(_E,"assign",a1r);jE.exports=_E});var IE=c((Wie,OE)=>{"use strict";var t1r=Fi(),i1r=ba();function o1r(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&i1r(r.length)&&r.length>=0&&r.length<t1r}OE.exports=o1r});var DE=c((Jie,NE)=>{"use strict";var As=Oa();function s1r(){return{casting:As.get("casting"),copy:!1,dtype:As.get("dtypes.default"),flatten:!0,mode:As.get("index_mode"),ndmin:0,order:As.get("order"),readonly:!1}}NE.exports=s1r});var RE=c((Kie,kE)=>{"use strict";var n1r=no(),v1r=Ma();function u1r(r,e,a){var t,o,i;if(t=n1r(a),a==="generic")for(o=[],i=0;i<e;i++)o.push(r[i]);else if(a==="binary")for(o=v1r(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}kE.exports=u1r});var VE=c((Xie,zE)=>{"use strict";var BE=Fe(),f1r=me().isPrimitive,Pu=cr(),Yt="number";function l1r(r,e,a){var t;if(!BE(r))throw new TypeError(Pu("invalid argument. First argument must be a function. Value: `%s`.",r));if(!f1r(e))throw new TypeError(Pu("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",e));if(!BE(a))throw new TypeError(Pu("invalid argument. Third argument must be a constructor function. Value: `%s`.",a));return t=[o,i,n,s,v,u],e<=5?t[e]:f;function o(){var l=r();return typeof l===Yt?new a(l,0):l}function i(l){var d=r(l);return typeof d===Yt?new a(d,0):d}function n(l,d){var m=r(l,d);return typeof m===Yt?new a(m,0):m}function s(l,d,m){var p=r(l,d,m);return typeof p===Yt?new a(p,0):p}function v(l,d,m,p){var y=r(l,d,m,p);return typeof y===Yt?new a(y,0):y}function u(l,d,m,p,y){var g=r(l,d,m,p,y);return typeof g===Yt?new a(g,0):g}function f(){var l,d,m;for(l=[],m=0;m<arguments.length;m++)l.push(arguments[m]);return d=r.apply(null,l),typeof d===Yt?new a(d,0):d}}zE.exports=l1r});var Fu=c((Hie,PE)=>{"use strict";var c1r=VE();PE.exports=c1r});var LE=c((Zie,FE)=>{"use strict";var d1r=rs(),p1r=Qo(),y1r={complex64:d1r,complex128:p1r};FE.exports=y1r});var UE=c((Qie,CE)=>{"use strict";var m1r=LE();function g1r(r){return m1r[r]||null}CE.exports=g1r});var _s=c((roe,ME)=>{"use strict";var h1r=UE();ME.exports=h1r});var $E=c((eoe,GE)=>{"use strict";var b1r=nt(),x1r=Fu(),q1r=_s(),w1r=no(),S1r=Ma(),E1r=ra(),A1r=Da(),_1r=ie(),j1r=Ga(),T1r=xt(),O1r=$a(),I1r=st();function N1r(r){var e,a,t;for(e=r.length,a=[],t=0;t<e;t++)a.push(r.iget(t));return a}function D1r(r){var e,a,t;for(e=r.length,a=S1r(e),t=0;t<e;t++)a[t]=r.iget(t);return a}function k1r(r,e){var a,t,o,i,n,s,v;if(a=w1r(e),t=r.length,o=new a(t),s=b1r(o),s.accessorProtocol)for(i=s.accessors[1],n=x1r(u,1,q1r(e)),v=0;v<t;v++)i(o,v,n(v));else for(v=0;v<t;v++)o[v]=r.iget(v);return o;function u(f){return r.iget(f)}}function R1r(r,e){var a;return a=new E1r(A1r(r),I1r(r),_1r(r),j1r(r),T1r(r),O1r(r)),e==="generic"?N1r(a):e==="binary"?D1r(a):k1r(a,e)}GE.exports=R1r});var WE=c((aoe,YE)=>{"use strict";function B1r(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}YE.exports=B1r});var KE=c((toe,JE)=>{"use strict";var z1r=ai();function V1r(r,e,a,t){var o,i,n,s,v;if(i=a.length,v=r-i,o=[],t==="row-major"){for(n=z1r(a[0])*e[v],s=0;s<v;s++)o.push(n);for(s=0;s<i;s++)o.push(a[s])}else{for(s=0;s<v;s++)o.push(1);for(s=0;s<i;s++)o.push(a[s])}return o}JE.exports=V1r});var aA=c((ioe,eA)=>{"use strict";var ka=Jr(),XE=oe(),HE=de().isPrimitive,P1r=ha(),F1r=me().isPrimitive,L1r=se(),C1r=Be(),U1r=Me(),M1r=Rt(),js=Wr(),G1r=da(),$1r=di(),Y1r=Sa(),W1r=wu(),J1r=Tu(),K1r=Na(),X1r=ws(),H1r=Da(),Z1r=ie(),ZE=Ga(),Q1r=xt(),QE=$a(),rgr=st(),rA=$S(),egr=TE(),pa=cr(),Ts=IE(),agr=DE(),tgr=RE(),igr=$E(),ogr=WE(),sgr=KE(),Ra=agr();function ngr(){var r,e,a,t,o,i,n,s,v,u,f,l,d,m,p;if(arguments.length===1)if(Ts(arguments[0]))a=arguments[0],r={};else{if(r=arguments[0],!XE(r))throw new TypeError(pa("invalid argument. Must provide either a valid data source, options argument, or both. Value: `%s`.",r));if(ka(r,"buffer")&&(a=r.buffer,!Ts(a)))throw new TypeError(pa("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],!Ts(a))throw new TypeError(pa("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],!XE(r))throw new TypeError(pa("invalid argument. Options argument must be an object. Value: `%s`.",r))}if(a&&(L1r(a)?(n=H1r(a),p=!0):(n=X1r(a),p=!1)),u={},f={},ka(r,"casting")){if(f.casting=r.casting,!W1r(f.casting))throw new TypeError(pa("invalid option. `%s` option must be a recognized casting mode. Option: `%s`.","casting",f.casting))}else f.casting=Ra.casting;if(ka(r,"flatten")){if(f.flatten=r.flatten,!HE(f.flatten))throw new TypeError(pa("invalid option. `%s` option must be a boolean. Option: `%s`.","flatten",f.flatten))}else f.flatten=Ra.flatten;if(ka(r,"ndmin")){if(f.ndmin=r.ndmin,!F1r(f.ndmin))throw new TypeError(pa("invalid option. `%s` option must be a nonnegative integer. Option: `%s`.","ndmin",f.ndmin))}else f.ndmin=Ra.ndmin;if(ka(r,"dtype")){if(i=r.dtype,!$1r(i))throw new TypeError(pa("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",i));if(n&&!J1r(n,i,f.casting))throw new Error(pa("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=Ra.dtype:i=n:i=Ra.dtype;if(ka(r,"order")){if(o=r.order,o==="any"||o==="same")p?o==="any"?(m=M1r(ZE(a)),m===3?o=Ra.order:o=QE(a)):o==="same"&&(o=QE(a)):o=Ra.order;else if(!Y1r(o))throw new TypeError(pa("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",o))}else o=Ra.order;if(ka(r,"mode")?u.mode=r.mode:u.mode=Ra.mode,ka(r,"submode")?u.submode=r.submode:u.submode=[u.mode],ka(r,"readonly")?u.readonly=r.readonly:u.readonly=Ra.readonly,ka(r,"copy")){if(f.copy=r.copy,!HE(f.copy))throw new TypeError(pa("invalid option. `%s` option must be a boolean. Option: `%s`.","copy",f.copy))}else f.copy=Ra.copy;if(ka(r,"shape")){if(s=r.shape,!Ts(s))throw new TypeError(pa("invalid option. `%s` option must be an array-like object containing nonnegative integers. Option: `%s`.","shape",s));v=s.length,d=js(s)}else if(a)p?(s=Z1r(a),v=s.length,d=js(s)):f.flatten&&P1r(a)?(s=rA(a),l=s,v=s.length,d=js(s)):(v=1,d=a.length,s=[d]);else throw new Error("invalid arguments. Must provide either a data source, array shape, or both.");if(v<f.ndmin&&(s=ogr(v,s,f.ndmin),v=f.ndmin),p){if(js(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=igr(a,i):(e=ZE(a),t=Q1r(a),a=rgr(a),e.length<v&&(e=sgr(v,s,e,o)))}else if(a){if(n==="generic"&&f.flatten&&(a=egr(a,l||rA(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=tgr(a,d,i))}else a=K1r(i,d);return e===void 0&&(e=C1r(s,o),t=U1r(s,e)),new G1r(i,a,s,e,t,o,u)}eA.exports=ngr});var iA=c((ooe,tA)=>{"use strict";var vgr=aA();tA.exports=vgr});var nA=c((soe,sA)=>{"use strict";var ugr=se(),fgr=ue().isPrimitive,lgr=ca(),cgr=ie(),oA=cr();function dgr(r){var e,a,t,o,i,n;if(!ugr(r))throw new TypeError(oA("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o=cgr(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],!fgr(t))throw new TypeError(oA("invalid argument. Index arguments must be integers. Value: `%s`.",t));if(t=lgr(t,o[n-1]-1),t===-1)return;a.push(t)}return r.get.apply(r,a)}sA.exports=dgr});var uA=c((noe,vA)=>{"use strict";var pgr=nA();vA.exports=pgr});var lA=c((voe,fA)=>{"use strict";function ygr(r){var e,a,t;for(a=r.length,e=[],t=0;t<a;t++)e.push(r[t]);return e}fA.exports=ygr});var qt=c((uoe,cA)=>{"use strict";var mgr=lA();cA.exports=mgr});var pA=c((foe,dA)=>{"use strict";var ggr=qt();function hgr(r,e){var a=r.shape;return e?ggr(a):a}dA.exports=hgr});var _e=c((loe,yA)=>{"use strict";var bgr=pA();yA.exports=bgr});var gA=c((coe,mA)=>{"use strict";function xgr(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}mA.exports=xgr});var bA=c((doe,hA)=>{"use strict";var qgr=gA();hA.exports=qgr});var wA=c((poe,qA)=>{"use strict";var xA=_e(),wgr=bA();function Sgr(r,e){return wgr(xA(r,!1),xA(e,!1))}qA.exports=Sgr});var EA=c((yoe,SA)=>{"use strict";var Egr=wA();SA.exports=Egr});var _A=c((moe,AA)=>{"use strict";var Agr=Ve().factory,_gr=ke(),jgr=Agr(_gr("boolean"));AA.exports=jgr});var TA=c((goe,jA)=>{"use strict";var Tgr=_A();jA.exports=Tgr});var IA=c((hoe,OA)=>{"use strict";var Ogr=Wr();function Igr(r,e){return r>=Ogr(e)}OA.exports=Igr});var DA=c((boe,NA)=>{"use strict";var Ngr=IA();NA.exports=Ngr});var BA=c((xoe,RA)=>{"use strict";var kA=ai();function Dgr(r){var e,a,t,o;if(e=r.length,e===0)return!1;for(a=kA(r[0]),o=1;o<e;o++){if(t=kA(r[o]),t<a)return!1;a=t}return!0}RA.exports=Dgr});var Lu=c((qoe,zA)=>{"use strict";var kgr=BA();zA.exports=kgr});var PA=c((woe,VA)=>{"use strict";var Rgr=Wr(),Bgr=Za();function zgr(r,e,a){var t,o;return t=Rgr(r),t===0?!1:(o=Bgr(r,e,a),t===o[1]-o[0]+1)}VA.exports=zgr});var fo=c((Soe,FA)=>{"use strict";var Vgr=PA();FA.exports=Vgr});var CA=c((Eoe,LA)=>{"use strict";var Pgr=fo(),Fgr=xa(),Lgr=Lu();function Cgr(r,e,a){return Fgr(e)!==0&&Lgr(e)&&Pgr(r,e,a)}LA.exports=Cgr});var MA=c((Aoe,UA)=>{"use strict";var Ugr=CA();UA.exports=Ugr});var $A=c((_oe,GA)=>{"use strict";var Mgr=Ve().factory,Ggr=ke(),$gr=Mgr(Ggr("complex_floating_point"));GA.exports=$gr});var lo=c((joe,YA)=>{"use strict";var Ygr=$A();YA.exports=Ygr});var JA=c((Toe,WA)=>{"use strict";var Wgr=fo(),Jgr=xa();function Kgr(r,e,a){return Jgr(e)!==0&&Wgr(r,e,a)}WA.exports=Kgr});var XA=c((Ooe,KA)=>{"use strict";var Xgr=JA();KA.exports=Xgr});var ZA=c((Ioe,HA)=>{"use strict";var Hgr=Ve().factory,Zgr=ke(),Qgr=Hgr(Zgr("floating_point"));HA.exports=Qgr});var Os=c((Noe,QA)=>{"use strict";var rhr=ZA();QA.exports=rhr});var e5=c((Doe,r5)=>{"use strict";var ehr=Ve().factory,ahr=ke(),thr=ehr(ahr("integer"));r5.exports=thr});var Cu=c((koe,a5)=>{"use strict";var ihr=e5();a5.exports=ihr});var i5=c((Roe,t5)=>{"use strict";var ohr=Ve().factory,shr=ke(),nhr=ohr(shr("numeric"));t5.exports=nhr});var Uu=c((Boe,o5)=>{"use strict";var vhr=i5();o5.exports=vhr});var n5=c((zoe,s5)=>{"use strict";var uhr=Fe(),fhr=uhr(Object.assign);s5.exports=fhr});var u5=c((Voe,v5)=>{"use strict";var lhr=Object.assign;v5.exports=lhr});var l5=c((Poe,f5)=>{"use strict";var chr=typeof Object.getOwnPropertySymbols<"u";f5.exports=chr});var p5=c((Foe,d5)=>{"use strict";var c5=Dt(),dhr=c5.getOwnPropertySymbols;function phr(r){return dhr(c5(r))}d5.exports=phr});var m5=c((Loe,y5)=>{"use strict";function yhr(){return[]}y5.exports=yhr});var Gu=c((Coe,g5)=>{"use strict";var mhr=l5(),ghr=p5(),hhr=m5(),Mu;mhr?Mu=ghr:Mu=hhr;g5.exports=Mu});var b5=c((Uoe,h5)=>{"use strict";var bhr=qa(),xhr=Gu(),qhr=Ci();function whr(r){var e,a,t;for(e=bhr(r),a=xhr(r),t=0;t<a.length;t++)qhr(r,a[t])&&e.push(a[t]);return e}h5.exports=whr});var q5=c((Moe,x5)=>{"use strict";var Shr=b5();x5.exports=Shr});var E5=c((Goe,S5)=>{"use strict";var Ehr=q5(),w5=Dt(),Ahr=cr();function _hr(r){var e,a,t,o,i,n,s;if(r==null)throw new TypeError(Ahr("invalid argument. First argument must be a non-null object. Value: `%s`.",r));for(i=w5(r),n=1;n<arguments.length;n++)if(e=arguments[n],e!=null)for(a=Ehr(w5(e)),o=a.length,s=0;s<o;s++)t=a[s],i[t]=e[t];return i}S5.exports=_hr});var _5=c(($oe,A5)=>{"use strict";var jhr=n5(),Thr=u5(),Ohr=E5(),$u;jhr?$u=Thr:$u=Ohr;A5.exports=$u});var T5=c((Yoe,j5)=>{"use strict";var Ihr=_5();function Nhr(r,e){var a=r.flags;return typeof a!="object"||a===null?{}:e?Ihr({},a):a}j5.exports=Nhr});var co=c((Woe,O5)=>{"use strict";var Dhr=T5();O5.exports=Dhr});var N5=c((Joe,I5)=>{"use strict";var khr=co();function Rhr(r,e){return khr(r,!1)[e]}I5.exports=Rhr});var Yu=c((Koe,D5)=>{"use strict";var Bhr=N5();D5.exports=Bhr});var R5=c((Xoe,k5)=>{"use strict";var zhr=Yu();function Vhr(r){return zhr(r,"READONLY")===!0}k5.exports=Vhr});var Le=c((Hoe,B5)=>{"use strict";var Phr=R5();B5.exports=Phr});var V5=c((Zoe,z5)=>{"use strict";var Fhr=Ve().factory,Lhr=ke(),Chr=Fhr(Lhr("real"));z5.exports=Chr});var Is=c((Qoe,P5)=>{"use strict";var Uhr=V5();P5.exports=Uhr});var L5=c((rse,F5)=>{"use strict";var Mhr=Ve().factory,Ghr=ke(),$hr=Mhr(Ghr("real_floating_point"));F5.exports=$hr});var Wu=c((ese,C5)=>{"use strict";var Yhr=L5();C5.exports=Yhr});var G5=c((ase,M5)=>{"use strict";var U5=ai();function Whr(r){var e,a,t,o;if(e=r.length,e===0)return!1;for(a=U5(r[0]),o=1;o<e;o++){if(t=U5(r[o]),t>a)return!1;a=t}return!0}M5.exports=Whr});var Ns=c((tse,$5)=>{"use strict";var Jhr=G5();$5.exports=Jhr});var W5=c((ise,Y5)=>{"use strict";var Khr=fo(),Xhr=xa(),Hhr=Ns();function Zhr(r,e,a){return Xhr(e)!==0&&Hhr(e)&&Khr(r,e,a)}Y5.exports=Zhr});var K5=c((ose,J5)=>{"use strict";var Qhr=W5();J5.exports=Qhr});var H5=c((sse,X5)=>{"use strict";var rbr=Ve().factory,ebr=ke(),abr=rbr(ebr("signed_integer"));X5.exports=abr});var Ds=c((nse,Z5)=>{"use strict";var tbr=H5();Z5.exports=tbr});var r_=c((vse,Q5)=>{"use strict";var ibr=Ve().factory,obr=ke(),sbr=ibr(obr("unsigned_integer"));Q5.exports=sbr});var ks=c((use,e_)=>{"use strict";var nbr=r_();e_.exports=nbr});var t_=c((fse,a_)=>{"use strict";var ce=It(),fe={};ce(fe,"hasEqualShape",EA());ce(fe,"isAllowedDataTypeCast",Tu());ce(fe,"isBooleanDataType",TA());ce(fe,"isBufferLengthCompatible",yu());ce(fe,"isBufferLengthCompatibleShape",DA());ce(fe,"isCastingMode",wu());ce(fe,"isColumnMajor",Lu());ce(fe,"isColumnMajorContiguous",MA());ce(fe,"isComplexFloatingPointDataType",lo());ce(fe,"isContiguous",XA());ce(fe,"isDataType",di());ce(fe,"isFloatingPointDataType",Os());ce(fe,"isIndexMode",pi());ce(fe,"isIntegerDataType",Cu());ce(fe,"isMostlySafeDataTypeCast",hs());ce(fe,"isNumericDataType",Uu());ce(fe,"isOrder",Sa());ce(fe,"isReadOnly",Le());ce(fe,"isRealDataType",Is());ce(fe,"isRealFloatingPointDataType",Wu());ce(fe,"isRowMajor",Ns());ce(fe,"isRowMajorContiguous",K5());ce(fe,"isSafeDataTypeCast",ys());ce(fe,"isSameKindDataTypeCast",ju());ce(fe,"isSignedIntegerDataType",Ds());ce(fe,"isSingleSegmentCompatible",fo());ce(fe,"isUnsignedIntegerDataType",ks());a_.exports=fe});var o_=c((lse,i_)=>{"use strict";function vbr(r){return r.dtype}i_.exports=vbr});var Ye=c((cse,s_)=>{"use strict";var ubr=o_();s_.exports=ubr});var v_=c((dse,n_)=>{"use strict";var fbr=Be(),lbr=qt(),cbr="row-major";function dbr(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=cbr),fbr(t,a))):e?lbr(o):o}n_.exports=dbr});var ya=c((pse,u_)=>{"use strict";var pbr=v_();u_.exports=pbr});var l_=c((yse,f_)=>{"use strict";var ybr=Me();function mbr(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:ybr(a,e))}f_.exports=mbr});var Ya=c((mse,c_)=>{"use strict";var gbr=l_();c_.exports=gbr});var p_=c((gse,d_)=>{"use strict";var hbr=Rt(),Ju="row-major",bbr="column-major";function xbr(r){var e,a;return a=r.order,typeof a=="string"?a:(e=r.strides,typeof e!="object"||e===null||(a=hbr(e),a===1||a===3)?Ju:a===2?bbr:r.shape.length===0?Ju:null)}d_.exports=xbr});var oa=c((hse,y_)=>{"use strict";var qbr=p_();y_.exports=qbr});var g_=c((bse,m_)=>{"use strict";function wbr(r){return r.data}m_.exports=wbr});var vt=c((xse,h_)=>{"use strict";var Sbr=g_();h_.exports=Sbr});var x_=c((qse,b_)=>{"use strict";var Ebr=et(),Abr=at(),_br=gi(),jbr=bt(),Tbr=mi(),Obr=Wr(),Ibr=Ye(),Nbr=_e(),Dbr=ya(),kbr=Ya(),Rbr=oa(),Bbr=vt();function zbr(r){var e,a,t,o;return e=Bbr(r),t=Nbr(r,!0),o=Ibr(r),a=Ebr(e),{ref:r,dtype:o,data:e,length:Obr(t),shape:t,strides:Dbr(r,!0),offset:kbr(r),order:Rbr(r),accessorProtocol:a,accessors:a?[Abr(o),_br(o)]:[jbr(o),Tbr(o)]}}b_.exports=zbr});var Wt=c((wse,q_)=>{"use strict";var Vbr=x_();q_.exports=Vbr});var S_=c((Sse,w_)=>{"use strict";function Pbr(r){var e,a;if(e=[],r<=0)return e;for(a=0;a<r;a++)e.push(a);return e}w_.exports=Pbr});var __=c((Ese,A_)=>{"use strict";var Fbr=nt(),Lbr=Zi(),Cbr=Hi();function Ubr(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 E_(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 Mbr(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 Gbr(r,e,a){var t=Fbr(r);return t.accessorProtocol?t.dtype==="complex128"?E_(r,Lbr(r,0),e,a):t.dtype==="complex64"?E_(r,Cbr(r,0),e,a):Mbr(t,e,a):Ubr(r,e,a)}A_.exports=Gbr});var qe=c((Ase,T_)=>{"use strict";var $br=Tr(),j_=S_(),Ybr=__();$br(j_,"assign",Ybr);T_.exports=j_});var I_=c((_se,O_)=>{"use strict";function Wbr(r,e){var a,t;for(a=[],t=0;t<e.length;t++)a.push(r[e[t]]);return a}O_.exports=Wbr});var Kr=c((jse,N_)=>{"use strict";var Jbr=I_();N_.exports=Jbr});var k_=c((Tse,D_)=>{"use strict";function Kbr(r,e){var a,t,o,i,n,s,v,u,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(v=r[o],a=v<0?-v:v,u=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]=v,e[s+1]=u,o+=1,i+=1}}D_.exports=Kbr});var z_=c((Ose,B_)=>{"use strict";var Xbr=qe(),Hbr=qt(),R_=Kr(),Zbr=k_();function Qbr(r,e,a){var t;return t=Xbr(r.length),e=Hbr(e),Zbr(e,t),r=R_(r,t),a=R_(a,t),{sh:r,sx:e,sy:a,idx:t}}B_.exports=Qbr});var zr=c((Ise,V_)=>{"use strict";var r2r=z_();V_.exports=r2r});var F_=c((Nse,P_)=>{"use strict";var e2r={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};P_.exports=e2r});var U_=c((Dse,C_)=>{"use strict";var L_=Ha(),Ku=F_();function a2r(r,e){var a,t;return a=L_(r),t=L_(e),a===null||t===null?Ku.BLOCK_SIZE_IN_ELEMENTS:a>t?Ku.BLOCK_SIZE_IN_BYTES/a|0:Ku.BLOCK_SIZE_IN_BYTES/t|0}C_.exports=a2r});var Br=c((kse,M_)=>{"use strict";var t2r=U_();M_.exports=t2r});var $_=c((Rse,G_)=>{"use strict";var i2r=zr(),o2r=Br();function s2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j;for(j=i2r(r.shape,r.strides,e.strides),m=j.sh,g=j.sx,h=j.sy,a=o2r(r.dtype,e.dtype),b=r.offset,S=e.offset,t=r.data,o=e.data,s=g[0],u=h[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=b+q*g[1],d=S+q*h[1],E=m[0];E>0;)for(E<a?(p=E,E=0):(p=a,E-=a),w=l+E*g[0],A=d+E*h[0],v=g[1]-p*g[0],f=h[1]-p*h[0],x=0;x<y;x++){for(_=0;_<p;_++)n(o,A,i(t,w)),w+=s,A+=u;w+=v,A+=f}}G_.exports=s2r});var W_=c((Bse,Y_)=>{"use strict";var n2r=zr(),v2r=Br();function u2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B;for(B=n2r(r.shape,r.strides,e.strides),h=B.sh,A=B.sx,_=B.sy,a=v2r(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=h[2];N>0;)for(N<a?(w=N,N=0):(w=a,N-=a),p=x+N*A[2],g=E+N*_[2],k=h[1];k>0;)for(k<a?(S=k,k=0):(S=a,k-=a),u=A[2]-S*A[1],d=_[2]-S*_[1],m=p+k*A[1],y=g+k*_[1],D=h[0];D>0;)for(D<a?(b=D,D=0):(b=a,D-=a),q=m+D*A[0],j=y+D*_[0],v=A[1]-b*A[0],l=_[1]-b*_[0],O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<b;T++)n(o,j,i(t,q)),q+=s,j+=f;q+=v,j+=l}q+=u,j+=d}}Y_.exports=u2r});var K_=c((zse,J_)=>{"use strict";var f2r=zr(),l2r=Br();function c2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C;for(C=f2r(r.shape,r.strides,e.strides),A=C.sh,j=C.sx,T=C.sy,a=l2r(r.dtype,e.dtype),I=r.offset,O=e.offset,t=r.data,o=e.data,s=j[0],l=T[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),h=I+L*j[3],w=O+L*T[3],F=A[2];F>0;)for(F<a?(E=F,F=0):(E=a,F-=a),f=j[3]-E*j[2],p=T[3]-E*T[2],g=h+F*j[2],S=w+F*T[2],P=A[1];P>0;)for(P<a?(x=P,P=0):(x=a,P-=a),u=j[2]-x*j[1],m=T[2]-x*T[1],y=g+P*j[1],b=S+P*T[1],V=A[0];V>0;)for(V<a?(_=V,V=0):(_=a,V-=a),D=y+V*j[0],k=b+V*T[0],v=j[1]-_*j[0],d=T[1]-_*T[0],R=0;R<q;R++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(N=0;N<_;N++)n(o,k,i(t,D)),D+=s,k+=l;D+=v,k+=d}D+=u,k+=m}D+=f,k+=p}}J_.exports=c2r});var H_=c((Vse,X_)=>{"use strict";var d2r=zr(),p2r=Br();function y2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J;for(J=d2r(r.shape,r.strides,e.strides),q=J.sh,k=J.sx,N=J.sy,a=p2r(r.dtype,e.dtype),B=r.offset,z=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=B+W*k[4],E=z+W*N[4],$=q[3];$>0;)for($<a?(O=$,$=0):(O=a,$-=a),l=k[4]-O*k[3],g=N[4]-O*N[3],S=w+$*k[3],x=E+$*N[3],Y=q[2];Y>0;)for(Y<a?(I=Y,Y=0):(I=a,Y-=a),f=k[3]-I*k[2],y=N[3]-I*N[2],b=S+Y*k[2],_=x+Y*N[2],G=q[1];G>0;)for(G<a?(T=G,G=0):(T=a,G-=a),u=k[2]-T*k[1],p=N[2]-T*N[1],h=b+G*k[1],A=_+G*N[1],M=q[0];M>0;)for(M<a?(j=M,M=0):(j=a,M-=a),R=h+M*k[0],V=A+M*N[0],v=k[1]-j*k[0],m=N[1]-j*N[0],U=0;U<D;U++){for(C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++)n(o,V,i(t,R)),R+=s,V+=d;R+=v,V+=m}R+=u,V+=p}R+=f,V+=y}R+=l,V+=g}}X_.exports=y2r});var Q_=c((Pse,Z_)=>{"use strict";var m2r=zr(),g2r=Br();function h2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar;for(ar=m2r(r.shape,r.strides,e.strides),O=ar.sh,V=ar.sx,P=ar.sy,a=g2r(r.dtype,e.dtype),F=r.offset,L=e.offset,t=r.data,o=e.data,s=V[0],m=P[0],i=r.accessors[0],n=e.accessors[1],rr=O[5];rr>0;)for(rr<a?(R=rr,rr=0):(R=a,rr-=a),x=F+rr*V[5],I=L+rr*P[5],Z=O[4];Z>0;)for(Z<a?(z=Z,Z=0):(z=a,Z-=a),d=V[5]-z*V[4],b=P[5]-z*P[4],_=x+Z*V[4],T=I+Z*P[4],Q=O[3];Q>0;)for(Q<a?(B=Q,Q=0):(B=a,Q-=a),l=V[4]-B*V[3],h=P[4]-B*P[3],A=_+Q*V[3],j=T+Q*P[3],H=O[2];H>0;)for(H<a?(N=H,H=0):(N=a,H-=a),f=V[3]-N*V[2],g=P[3]-N*P[2],w=A+H*V[2],q=j+H*P[2],X=O[1];X>0;)for(X<a?(k=X,X=0):(k=a,X-=a),u=V[2]-k*V[1],y=P[2]-k*P[1],S=w+X*V[1],E=q+X*P[1],K=O[0];K>0;)for(K<a?(D=K,K=0):(D=a,K-=a),C=S+K*V[0],U=E+K*P[0],v=V[1]-D*V[0],p=P[1]-D*P[0],J=0;J<R;J++){for(W=0;W<z;W++){for($=0;$<B;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++)n(o,U,i(t,C)),C+=s,U+=m;C+=v,U+=p}C+=u,U+=y}C+=f,U+=g}C+=l,U+=h}C+=d,U+=b}}Z_.exports=h2r});var e8=c((Fse,r8)=>{"use strict";var b2r=zr(),x2r=Br();function q2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr;for(vr=b2r(r.shape,r.strides,e.strides),B=vr.sh,U=vr.sx,M=vr.sy,a=x2r(r.dtype,e.dtype),G=r.offset,Y=e.offset,t=r.data,o=e.data,s=U[0],p=M[0],i=r.accessors[0],n=e.accessors[1],nr=B[6];nr>0;)for(nr<a?(C=nr,nr=0):(C=a,nr-=a),j=G+nr*U[6],N=Y+nr*M[6],sr=B[5];sr>0;)for(sr<a?(L=sr,sr=0):(L=a,sr-=a),m=U[6]-L*U[5],w=M[6]-L*M[5],q=j+sr*U[5],k=N+sr*M[5],or=B[4];or>0;)for(or<a?(F=or,or=0):(F=a,or-=a),d=U[5]-F*U[4],S=M[5]-F*M[4],E=q+or*U[4],D=k+or*M[4],tr=B[3];tr>0;)for(tr<a?(P=tr,tr=0):(P=a,tr-=a),l=U[4]-P*U[3],b=M[4]-P*M[3],x=E+tr*U[3],O=D+tr*M[3],ir=B[2];ir>0;)for(ir<a?(V=ir,ir=0):(V=a,ir-=a),f=U[3]-V*U[2],h=M[3]-V*M[2],_=x+ir*U[2],I=O+ir*M[2],er=B[1];er>0;)for(er<a?(R=er,er=0):(R=a,er-=a),u=U[2]-R*U[1],g=M[2]-R*M[1],A=_+er*U[1],T=I+er*M[1],ar=B[0];ar>0;)for(ar<a?(z=ar,ar=0):(z=a,ar-=a),$=A+ar*U[0],W=T+ar*M[0],v=U[1]-z*U[0],y=M[1]-z*M[0],rr=0;rr<C;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<F;Q++){for(H=0;H<P;H++){for(X=0;X<V;X++){for(K=0;K<R;K++){for(J=0;J<z;J++)n(o,W,i(t,$)),$+=s,W+=p;$+=v,W+=y}$+=u,W+=g}$+=f,W+=h}$+=l,W+=b}$+=d,W+=S}$+=m,W+=w}}r8.exports=q2r});var t8=c((Lse,a8)=>{"use strict";var w2r=zr(),S2r=Br();function E2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr;for(mr=w2r(r.shape,r.strides,e.strides),P=mr.sh,W=mr.sx,J=mr.sy,a=S2r(r.dtype,e.dtype),K=r.offset,X=e.offset,t=r.data,o=e.data,s=W[0],y=J[0],i=r.accessors[0],n=e.accessors[1],yr=P[7];yr>0;)for(yr<a?($=yr,yr=0):($=a,yr-=a),O=K+yr*W[7],V=X+yr*J[7],dr=P[6];dr>0;)for(dr<a?(Y=dr,dr=0):(Y=a,dr-=a),p=W[7]-Y*W[6],_=J[7]-Y*J[6],I=O+dr*W[6],R=V+dr*J[6],pr=P[5];pr>0;)for(pr<a?(G=pr,pr=0):(G=a,pr-=a),m=W[6]-G*W[5],A=J[6]-G*J[5],T=I+pr*W[5],z=R+pr*J[5],fr=P[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],j=T+fr*W[4],B=z+fr*J[4],lr=P[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=j+lr*W[3],N=B+lr*J[3],ur=P[2];ur>0;)for(ur<a?(C=ur,ur=0):(C=a,ur-=a),f=W[3]-C*W[2],b=J[3]-C*J[2],E=q+ur*W[2],k=N+ur*J[2],vr=P[1];vr>0;)for(vr<a?(L=vr,vr=0):(L=a,vr-=a),u=W[2]-L*W[1],h=J[2]-L*J[1],x=E+vr*W[1],D=k+vr*J[1],nr=P[0];nr>0;)for(nr<a?(F=nr,nr=0):(F=a,nr-=a),H=x+nr*W[0],Q=D+nr*J[0],v=W[1]-F*W[0],g=J[1]-F*J[0],sr=0;sr<$;sr++){for(or=0;or<Y;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<C;ar++){for(rr=0;rr<L;rr++){for(Z=0;Z<F;Z++)n(o,Q,i(t,H)),H+=s,Q+=y;H+=v,Q+=g}H+=u,Q+=h}H+=f,Q+=b}H+=l,Q+=S}H+=d,Q+=w}H+=m,Q+=A}H+=p,Q+=_}}a8.exports=E2r});var o8=c((Cse,i8)=>{"use strict";var A2r=zr(),_2r=Br();function j2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr,Er,Ar;for(Ar=A2r(r.shape,r.strides,e.strides),U=Ar.sh,Q=Ar.sx,Z=Ar.sy,a=_2r(r.dtype,e.dtype),rr=r.offset,ar=e.offset,t=r.data,o=e.data,s=Q[0],g=Z[0],i=r.accessors[0],n=e.accessors[1],Er=U[8];Er>0;)for(Er<a?(H=Er,Er=0):(H=a,Er-=a),N=rr+Er*Q[8],C=ar+Er*Z[8],gr=U[7];gr>0;)for(gr<a?(X=gr,gr=0):(X=a,gr-=a),y=Q[8]-X*Q[7],E=Z[8]-X*Z[7],k=N+gr*Q[7],L=C+gr*Z[7],xr=U[6];xr>0;)for(xr<a?(K=xr,xr=0):(K=a,xr-=a),p=Q[7]-K*Q[6],x=Z[7]-K*Z[6],D=k+xr*Q[6],F=L+xr*Z[6],br=U[5];br>0;)for(br<a?(J=br,br=0):(J=a,br-=a),m=Q[6]-J*Q[5],_=Z[6]-J*Z[5],O=D+br*Q[5],P=F+br*Z[5],qr=U[4];qr>0;)for(qr<a?(W=qr,qr=0):(W=a,qr-=a),d=Q[5]-W*Q[4],A=Z[5]-W*Z[4],I=O+qr*Q[4],V=P+qr*Z[4],hr=U[3];hr>0;)for(hr<a?($=hr,hr=0):($=a,hr-=a),l=Q[4]-$*Q[3],w=Z[4]-$*Z[3],T=I+hr*Q[3],R=V+hr*Z[3],mr=U[2];mr>0;)for(mr<a?(Y=mr,mr=0):(Y=a,mr-=a),f=Q[3]-Y*Q[2],S=Z[3]-Y*Z[2],j=T+mr*Q[2],z=R+mr*Z[2],yr=U[1];yr>0;)for(yr<a?(G=yr,yr=0):(G=a,yr-=a),u=Q[2]-G*Q[1],b=Z[2]-G*Z[1],q=j+yr*Q[1],B=z+yr*Z[1],dr=U[0];dr>0;)for(dr<a?(M=dr,dr=0):(M=a,dr-=a),er=q+dr*Q[0],ir=B+dr*Z[0],v=Q[1]-M*Q[0],h=Z[1]-M*Z[0],pr=0;pr<H;pr++){for(fr=0;fr<X;fr++){for(lr=0;lr<K;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++){for(sr=0;sr<Y;sr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++)n(o,ir,i(t,er)),er+=s,ir+=g;er+=v,ir+=h}er+=u,ir+=b}er+=f,ir+=S}er+=l,ir+=w}er+=d,ir+=A}er+=m,ir+=_}er+=p,ir+=x}er+=y,ir+=E}}i8.exports=j2r});var n8=c((Use,s8)=>{"use strict";var T2r=zr(),O2r=Br();function I2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr,Er,Ar,_r,jr,Or,Rr,Vr,Xr,te;for(te=T2r(r.shape,r.strides,e.strides),$=te.sh,ir=te.sx,tr=te.sy,a=O2r(r.dtype,e.dtype),or=r.offset,sr=e.offset,t=r.data,o=e.data,s=ir[0],h=tr[0],i=r.accessors[0],n=e.accessors[1],Xr=$[9];Xr>0;)for(Xr<a?(er=Xr,Xr=0):(er=a,Xr-=a),R=or+Xr*ir[9],Y=sr+Xr*tr[9],Vr=$[8];Vr>0;)for(Vr<a?(ar=Vr,Vr=0):(ar=a,Vr-=a),g=ir[9]-ar*ir[8],j=tr[9]-ar*tr[8],z=R+Vr*ir[8],G=Y+Vr*tr[8],Rr=$[7];Rr>0;)for(Rr<a?(rr=Rr,Rr=0):(rr=a,Rr-=a),y=ir[8]-rr*ir[7],q=tr[8]-rr*tr[7],B=z+Rr*ir[7],M=G+Rr*tr[7],Or=$[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=B+Or*ir[6],U=M+Or*tr[6],jr=$[5];jr>0;)for(jr<a?(Q=jr,jr=0):(Q=a,jr-=a),m=ir[6]-Q*ir[5],x=tr[6]-Q*tr[5],k=N+jr*ir[5],C=U+jr*tr[5],_r=$[4];_r>0;)for(_r<a?(H=_r,_r=0):(H=a,_r-=a),d=ir[5]-H*ir[4],_=tr[5]-H*tr[4],D=k+_r*ir[4],L=C+_r*tr[4],Ar=$[3];Ar>0;)for(Ar<a?(X=Ar,Ar=0):(X=a,Ar-=a),l=ir[4]-X*ir[3],A=tr[4]-X*tr[3],O=D+Ar*ir[3],F=L+Ar*tr[3],Er=$[2];Er>0;)for(Er<a?(K=Er,Er=0):(K=a,Er-=a),f=ir[3]-K*ir[2],w=tr[3]-K*tr[2],I=O+Er*ir[2],P=F+Er*tr[2],gr=$[1];gr>0;)for(gr<a?(J=gr,gr=0):(J=a,gr-=a),u=ir[2]-J*ir[1],S=tr[2]-J*tr[1],T=I+gr*ir[1],V=P+gr*tr[1],xr=$[0];xr>0;)for(xr<a?(W=xr,xr=0):(W=a,xr-=a),nr=T+xr*ir[0],vr=V+xr*tr[0],v=ir[1]-W*ir[0],b=tr[1]-W*tr[0],br=0;br<er;br++){for(qr=0;qr<ar;qr++){for(hr=0;hr<rr;hr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<X;pr++){for(fr=0;fr<K;fr++){for(lr=0;lr<J;lr++){for(ur=0;ur<W;ur++)n(o,vr,i(t,nr)),nr+=s,vr+=h;nr+=v,vr+=b}nr+=u,vr+=S}nr+=f,vr+=w}nr+=l,vr+=A}nr+=d,vr+=_}nr+=m,vr+=x}nr+=p,vr+=E}nr+=y,vr+=q}nr+=g,vr+=j}}s8.exports=I2r});var u8=c((Mse,v8)=>{"use strict";var N2r=zr(),D2r=Br();function k2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E;for(E=N2r(r.shape,r.strides,e.strides),l=E.sh,p=E.sx,y=E.sy,a=D2r(r.dtype,e.dtype),g=r.offset,h=e.offset,t=r.data,o=e.data,i=p[0],s=y[0],x=l[1];x>0;)for(x<a?(m=x,x=0):(m=a,x-=a),u=g+x*p[1],f=h+x*y[1],_=l[0];_>0;)for(_<a?(d=_,_=0):(d=a,_-=a),b=u+_*p[0],S=f+_*y[0],n=p[1]-d*p[0],v=y[1]-d*y[0],A=0;A<m;A++){for(w=0;w<d;w++)o[S]=t[b],b+=i,S+=s;b+=n,S+=v}}v8.exports=k2r});var l8=c((Gse,f8)=>{"use strict";var R2r=zr(),B2r=Br();function z2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k;for(k=R2r(r.shape,r.strides,e.strides),y=k.sh,S=k.sx,w=k.sy,a=B2r(r.dtype,e.dtype),A=r.offset,_=e.offset,t=r.data,o=e.data,i=S[0],v=w[0],D=y[2];D>0;)for(D<a?(b=D,D=0):(b=a,D-=a),d=A+D*S[2],p=_+D*w[2],O=y[1];O>0;)for(O<a?(h=O,O=0):(h=a,O-=a),s=S[2]-h*S[1],f=w[2]-h*w[1],l=d+O*S[1],m=p+O*w[1],I=y[0];I>0;)for(I<a?(g=I,I=0):(g=a,I-=a),x=l+I*S[0],E=m+I*w[0],n=S[1]-g*S[0],u=w[1]-g*w[0],T=0;T<b;T++){for(j=0;j<h;j++){for(q=0;q<g;q++)o[E]=t[x],x+=i,E+=v;x+=n,E+=u}x+=s,E+=f}}f8.exports=z2r});var d8=c(($se,c8)=>{"use strict";var V2r=zr(),P2r=Br();function F2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F;for(F=V2r(r.shape,r.strides,e.strides),S=F.sh,E=F.sx,q=F.sy,a=P2r(r.dtype,e.dtype),j=r.offset,T=e.offset,t=r.data,o=e.data,i=E[0],u=q[0],P=S[3];P>0;)for(P<a?(x=P,P=0):(x=a,P-=a),y=j+P*E[3],b=T+P*q[3],V=S[2];V>0;)for(V<a?(_=V,V=0):(_=a,V-=a),v=E[3]-_*E[2],d=q[3]-_*q[2],p=y+V*E[2],h=b+V*q[2],R=S[1];R>0;)for(R<a?(A=R,R=0):(A=a,R-=a),s=E[2]-A*E[1],l=q[2]-A*q[1],m=p+R*E[1],g=h+R*q[1],z=S[0];z>0;)for(z<a?(w=z,z=0):(w=a,z-=a),I=m+z*E[0],O=g+z*q[0],n=E[1]-w*E[0],f=q[1]-w*q[0],B=0;B<x;B++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)o[O]=t[I],I+=i,O+=u;I+=n,O+=f}I+=s,O+=l}I+=v,O+=d}}c8.exports=F2r});var y8=c((Yse,p8)=>{"use strict";var L2r=zr(),C2r=Br();function U2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$;for($=L2r(r.shape,r.strides,e.strides),x=$.sh,O=$.sx,D=$.sy,a=C2r(r.dtype,e.dtype),k=r.offset,N=e.offset,t=r.data,o=e.data,i=O[0],f=D[0],Y=x[4];Y>0;)for(Y<a?(I=Y,Y=0):(I=a,Y-=a),b=k+Y*O[4],_=N+Y*D[4],G=x[3];G>0;)for(G<a?(T=G,G=0):(T=a,G-=a),u=O[4]-T*O[3],p=D[4]-T*D[3],h=b+G*O[3],A=_+G*D[3],M=x[2];M>0;)for(M<a?(j=M,M=0):(j=a,M-=a),v=O[3]-j*O[2],m=D[3]-j*D[2],g=h+M*O[2],w=A+M*D[2],U=x[1];U>0;)for(U<a?(q=U,U=0):(q=a,U-=a),s=O[2]-q*O[1],d=D[2]-q*D[1],y=g+U*O[1],S=w+U*D[1],C=x[0];C>0;)for(C<a?(E=C,C=0):(E=a,C-=a),B=y+C*O[0],z=S+C*D[0],n=O[1]-E*O[0],l=D[1]-E*D[0],L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(V=0;V<q;V++){for(R=0;R<E;R++)o[z]=t[B],B+=i,z+=f;B+=n,z+=l}B+=s,z+=d}B+=v,z+=m}B+=u,z+=p}}p8.exports=U2r});var g8=c((Wse,m8)=>{"use strict";var M2r=zr(),G2r=Br();function $2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z;for(Z=M2r(r.shape,r.strides,e.strides),T=Z.sh,z=Z.sx,R=Z.sy,a=G2r(r.dtype,e.dtype),V=r.offset,P=e.offset,t=r.data,o=e.data,i=z[0],l=R[0],Q=T[5];Q>0;)for(Q<a?(B=Q,Q=0):(B=a,Q-=a),A=V+Q*z[5],j=P+Q*R[5],H=T[4];H>0;)for(H<a?(N=H,H=0):(N=a,H-=a),f=z[5]-N*z[4],g=R[5]-N*R[4],w=A+H*z[4],q=j+H*R[4],X=T[3];X>0;)for(X<a?(k=X,X=0):(k=a,X-=a),u=z[4]-k*z[3],y=R[4]-k*R[3],S=w+X*z[3],E=q+X*R[3],K=T[2];K>0;)for(K<a?(D=K,K=0):(D=a,K-=a),v=z[3]-D*z[2],p=R[3]-D*R[2],b=S+K*z[2],x=E+K*R[2],J=T[1];J>0;)for(J<a?(O=J,J=0):(O=a,J-=a),s=z[2]-O*z[1],m=R[2]-O*R[1],h=b+J*z[1],_=x+J*R[1],W=T[0];W>0;)for(W<a?(I=W,W=0):(I=a,W-=a),F=h+W*z[0],L=_+W*R[0],n=z[1]-I*z[0],d=R[1]-I*R[0],$=0;$<B;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++)o[L]=t[F],F+=i,L+=l;F+=n,L+=d}F+=s,L+=m}F+=v,L+=p}F+=u,L+=y}F+=f,L+=g}}m8.exports=$2r});var b8=c((Jse,h8)=>{"use strict";var Y2r=zr(),W2r=Br();function J2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr;for(sr=Y2r(r.shape,r.strides,e.strides),k=sr.sh,L=sr.sx,C=sr.sy,a=W2r(r.dtype,e.dtype),U=r.offset,M=e.offset,t=r.data,o=e.data,i=L[0],d=C[0],or=k[6];or>0;)for(or<a?(F=or,or=0):(F=a,or-=a),E=U+or*L[6],D=M+or*C[6],tr=k[5];tr>0;)for(tr<a?(P=tr,tr=0):(P=a,tr-=a),l=L[6]-P*L[5],b=C[6]-P*C[5],x=E+tr*L[5],O=D+tr*C[5],ir=k[4];ir>0;)for(ir<a?(V=ir,ir=0):(V=a,ir-=a),f=L[5]-V*L[4],h=C[5]-V*C[4],_=x+ir*L[4],I=O+ir*C[4],er=k[3];er>0;)for(er<a?(R=er,er=0):(R=a,er-=a),u=L[4]-R*L[3],g=C[4]-R*C[3],A=_+er*L[3],T=I+er*C[3],ar=k[2];ar>0;)for(ar<a?(z=ar,ar=0):(z=a,ar-=a),v=L[3]-z*L[2],y=C[3]-z*C[2],w=A+ar*L[2],j=T+ar*C[2],rr=k[1];rr>0;)for(rr<a?(B=rr,rr=0):(B=a,rr-=a),s=L[2]-B*L[1],p=C[2]-B*C[1],S=w+rr*L[1],q=j+rr*C[1],Z=k[0];Z>0;)for(Z<a?(N=Z,Z=0):(N=a,Z-=a),G=S+Z*L[0],Y=q+Z*C[0],n=L[1]-N*L[0],m=C[1]-N*C[0],Q=0;Q<F;Q++){for(H=0;H<P;H++){for(X=0;X<V;X++){for(K=0;K<R;K++){for(J=0;J<z;J++){for(W=0;W<B;W++){for($=0;$<N;$++)o[Y]=t[G],G+=i,Y+=d;G+=n,Y+=m}G+=s,Y+=p}G+=v,Y+=y}G+=u,Y+=g}G+=f,Y+=h}G+=l,Y+=b}}h8.exports=J2r});var q8=c((Kse,x8)=>{"use strict";var K2r=zr(),X2r=Br();function H2r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr;for(dr=K2r(r.shape,r.strides,e.strides),R=dr.sh,Y=dr.sx,$=dr.sy,a=X2r(r.dtype,e.dtype),W=r.offset,J=e.offset,t=r.data,o=e.data,i=Y[0],m=$[0],pr=R[7];pr>0;)for(pr<a?(G=pr,pr=0):(G=a,pr-=a),T=W+pr*Y[7],z=J+pr*$[7],fr=R[6];fr>0;)for(fr<a?(M=fr,fr=0):(M=a,fr-=a),d=Y[7]-M*Y[6],w=$[7]-M*$[6],j=T+fr*Y[6],B=z+fr*$[6],lr=R[5];lr>0;)for(lr<a?(U=lr,lr=0):(U=a,lr-=a),l=Y[6]-U*Y[5],S=$[6]-U*$[5],q=j+lr*Y[5],N=B+lr*$[5],ur=R[4];ur>0;)for(ur<a?(C=ur,ur=0):(C=a,ur-=a),f=Y[5]-C*Y[4],b=$[5]-C*$[4],E=q+ur*Y[4],k=N+ur*$[4],vr=R[3];vr>0;)for(vr<a?(L=vr,vr=0):(L=a,vr-=a),u=Y[4]-L*Y[3],h=$[4]-L*$[3],x=E+vr*Y[3],D=k+vr*$[3],nr=R[2];nr>0;)for(nr<a?(F=nr,nr=0):(F=a,nr-=a),v=Y[3]-F*Y[2],g=$[3]-F*$[2],_=x+nr*Y[2],O=D+nr*$[2],sr=R[1];sr>0;)for(sr<a?(P=sr,sr=0):(P=a,sr-=a),s=Y[2]-P*Y[1],y=$[2]-P*$[1],A=_+sr*Y[1],I=O+sr*$[1],or=R[0];or>0;)for(or<a?(V=or,or=0):(V=a,or-=a),K=A+or*Y[0],X=I+or*$[0],n=Y[1]-V*Y[0],p=$[1]-V*$[0],tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<C;ar++){for(rr=0;rr<L;rr++){for(Z=0;Z<F;Z++){for(Q=0;Q<P;Q++){for(H=0;H<V;H++)o[X]=t[K],K+=i,X+=m;K+=n,X+=p}K+=s,X+=y}K+=v,X+=g}K+=u,X+=h}K+=f,X+=b}K+=l,X+=S}K+=d,X+=w}}x8.exports=H2r});var S8=c((Xse,w8)=>{"use strict";var Z2r=zr(),Q2r=Br();function rxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr;for(gr=Z2r(r.shape,r.strides,e.strides),L=gr.sh,X=gr.sx,H=gr.sy,a=Q2r(r.dtype,e.dtype),Q=r.offset,Z=e.offset,t=r.data,o=e.data,i=X[0],p=H[0],xr=L[8];xr>0;)for(xr<a?(K=xr,xr=0):(K=a,xr-=a),D=Q+xr*X[8],F=Z+xr*H[8],br=L[7];br>0;)for(br<a?(J=br,br=0):(J=a,br-=a),m=X[8]-J*X[7],_=H[8]-J*H[7],O=D+br*X[7],P=F+br*H[7],qr=L[6];qr>0;)for(qr<a?(W=qr,qr=0):(W=a,qr-=a),d=X[7]-W*X[6],A=H[7]-W*H[6],I=O+qr*X[6],V=P+qr*H[6],hr=L[5];hr>0;)for(hr<a?($=hr,hr=0):($=a,hr-=a),l=X[6]-$*X[5],w=H[6]-$*H[5],T=I+hr*X[5],R=V+hr*H[5],mr=L[4];mr>0;)for(mr<a?(Y=mr,mr=0):(Y=a,mr-=a),f=X[5]-Y*X[4],S=H[5]-Y*H[4],j=T+mr*X[4],z=R+mr*H[4],yr=L[3];yr>0;)for(yr<a?(G=yr,yr=0):(G=a,yr-=a),u=X[4]-G*X[3],b=H[4]-G*H[3],q=j+yr*X[3],B=z+yr*H[3],dr=L[2];dr>0;)for(dr<a?(M=dr,dr=0):(M=a,dr-=a),v=X[3]-M*X[2],h=H[3]-M*H[2],E=q+dr*X[2],N=B+dr*H[2],pr=L[1];pr>0;)for(pr<a?(U=pr,pr=0):(U=a,pr-=a),s=X[2]-U*X[1],g=H[2]-U*H[1],x=E+pr*X[1],k=N+pr*H[1],fr=L[0];fr>0;)for(fr<a?(C=fr,fr=0):(C=a,fr-=a),rr=x+fr*X[0],ar=k+fr*H[0],n=X[1]-C*X[0],y=H[1]-C*H[0],lr=0;lr<K;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++){for(sr=0;sr<Y;sr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++){for(ir=0;ir<U;ir++){for(er=0;er<C;er++)o[ar]=t[rr],rr+=i,ar+=p;rr+=n,ar+=y}rr+=s,ar+=g}rr+=v,ar+=h}rr+=u,ar+=b}rr+=f,ar+=S}rr+=l,ar+=w}rr+=d,ar+=A}rr+=m,ar+=_}}w8.exports=rxr});var A8=c((Hse,E8)=>{"use strict";var exr=zr(),axr=Br();function txr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr,Er,Ar,_r,jr,Or,Rr,Vr;for(Vr=exr(r.shape,r.strides,e.strides),G=Vr.sh,ar=Vr.sx,er=Vr.sy,a=axr(r.dtype,e.dtype),ir=r.offset,tr=e.offset,t=r.data,o=e.data,i=ar[0],y=er[0],Rr=G[9];Rr>0;)for(Rr<a?(rr=Rr,Rr=0):(rr=a,Rr-=a),B=ir+Rr*ar[9],M=tr+Rr*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=B+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],x=er[8]-Q*er[7],k=N+jr*ar[7],C=U+jr*er[7],_r=G[6];_r>0;)for(_r<a?(H=_r,_r=0):(H=a,_r-=a),d=ar[7]-H*ar[6],_=er[7]-H*er[6],D=k+_r*ar[6],L=C+_r*er[6],Ar=G[5];Ar>0;)for(Ar<a?(X=Ar,Ar=0):(X=a,Ar-=a),l=ar[6]-X*ar[5],A=er[6]-X*er[5],O=D+Ar*ar[5],F=L+Ar*er[5],Er=G[4];Er>0;)for(Er<a?(K=Er,Er=0):(K=a,Er-=a),f=ar[5]-K*ar[4],w=er[5]-K*er[4],I=O+Er*ar[4],P=F+Er*er[4],gr=G[3];gr>0;)for(gr<a?(J=gr,gr=0):(J=a,gr-=a),u=ar[4]-J*ar[3],S=er[4]-J*er[3],T=I+gr*ar[3],V=P+gr*er[3],xr=G[2];xr>0;)for(xr<a?(W=xr,xr=0):(W=a,xr-=a),v=ar[3]-W*ar[2],b=er[3]-W*er[2],j=T+xr*ar[2],R=V+xr*er[2],br=G[1];br>0;)for(br<a?($=br,br=0):($=a,br-=a),s=ar[2]-$*ar[1],h=er[2]-$*er[1],q=j+br*ar[1],z=R+br*er[1],qr=G[0];qr>0;)for(qr<a?(Y=qr,qr=0):(Y=a,qr-=a),or=q+qr*ar[0],sr=z+qr*er[0],n=ar[1]-Y*ar[0],g=er[1]-Y*er[0],hr=0;hr<rr;hr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<X;pr++){for(fr=0;fr<K;fr++){for(lr=0;lr<J;lr++){for(ur=0;ur<W;ur++){for(vr=0;vr<$;vr++){for(nr=0;nr<Y;nr++)o[sr]=t[or],or+=i,sr+=y;or+=n,sr+=g}or+=s,sr+=h}or+=v,sr+=b}or+=u,sr+=S}or+=f,sr+=w}or+=l,sr+=A}or+=d,sr+=_}or+=m,sr+=x}or+=p,sr+=E}}E8.exports=txr});var j8=c((Zse,_8)=>{"use strict";function ixr(r,e){e.accessors[1](e.data,e.offset,r.accessors[0](r.data,r.offset))}_8.exports=ixr});var O8=c((Qse,T8)=>{"use strict";function oxr(r,e){var a,t,o,i,n,s,v,u,f,l;for(v=r.shape[0],n=r.strides[0],s=e.strides[0],u=r.offset,f=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],l=0;l<v;l++)i(t,f,o(a,u)),u+=n,f+=s}T8.exports=oxr});var N8=c((rne,I8)=>{"use strict";function sxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b;for(f=r.shape,m=r.strides,p=e.strides,r.order==="row-major"?(l=f[1],d=f[0],n=m[1],s=m[0]-l*m[1],v=p[1],u=p[0]-l*p[1]):(l=f[0],d=f[1],n=m[0],s=m[1]-l*m[0],v=p[0],u=p[1]-l*p[0]),y=r.offset,g=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],b=0;b<d;b++){for(h=0;h<l;h++)i(t,g,o(a,y)),y+=n,g+=v;y+=s,g+=u}}I8.exports=sxr});var k8=c((ene,D8)=>{"use strict";function nxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_;for(d=r.shape,g=r.strides,h=e.strides,r.order==="row-major"?(m=d[2],p=d[1],y=d[0],n=g[2],s=g[1]-m*g[2],v=g[0]-p*g[1],u=h[2],f=h[1]-m*h[2],l=h[0]-p*h[1]):(m=d[0],p=d[1],y=d[2],n=g[0],s=g[1]-m*g[0],v=g[2]-p*g[1],u=h[0],f=h[1]-m*h[0],l=h[2]-p*h[1]),b=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<p;A++){for(w=0;w<m;w++)i(t,S,o(a,b)),b+=n,S+=u;b+=s,S+=f}b+=v,S+=l}}D8.exports=nxr});var B8=c((ane,R8)=>{"use strict";function vxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j;for(p=r.shape,S=r.strides,w=e.strides,r.order==="row-major"?(y=p[3],g=p[2],h=p[1],b=p[0],n=S[3],s=S[2]-y*S[3],v=S[1]-g*S[2],u=S[0]-h*S[1],f=w[3],l=w[2]-y*w[3],d=w[1]-g*w[2],m=w[0]-h*w[1]):(y=p[0],g=p[1],h=p[2],b=p[3],n=S[0],s=S[1]-y*S[0],v=S[2]-g*S[1],u=S[3]-h*S[2],f=w[0],l=w[1]-y*w[0],d=w[2]-g*w[1],m=w[3]-h*w[2]),A=r.offset,_=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],j=0;j<b;j++){for(q=0;q<h;q++){for(E=0;E<g;E++){for(x=0;x<y;x++)i(t,_,o(a,A)),A+=n,_+=f;A+=s,_+=l}A+=v,_+=d}A+=u,_+=m}}R8.exports=vxr});var V8=c((tne,z8)=>{"use strict";function uxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D;for(g=r.shape,_=r.strides,x=e.strides,r.order==="row-major"?(h=g[4],b=g[3],S=g[2],w=g[1],A=g[0],n=_[4],s=_[3]-h*_[4],v=_[2]-b*_[3],u=_[1]-S*_[2],f=_[0]-w*_[1],l=x[4],d=x[3]-h*x[4],m=x[2]-b*x[3],p=x[1]-S*x[2],y=x[0]-w*x[1]):(h=g[0],b=g[1],S=g[2],w=g[3],A=g[4],n=_[0],s=_[1]-h*_[0],v=_[2]-b*_[1],u=_[3]-S*_[2],f=_[4]-w*_[3],l=x[0],d=x[1]-h*x[0],m=x[2]-b*x[1],p=x[3]-S*x[2],y=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(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<b;T++){for(j=0;j<h;j++)i(t,q,o(a,E)),E+=n,q+=l;E+=s,q+=d}E+=v,q+=m}E+=u,q+=p}E+=f,q+=y}}z8.exports=uxr});var F8=c((ine,P8)=>{"use strict";function fxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z;for(b=r.shape,q=r.strides,j=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],v=q[3]-w*q[4],u=q[2]-A*q[3],f=q[1]-_*q[2],l=q[0]-x*q[1],d=j[5],m=j[4]-S*j[5],p=j[3]-w*j[4],y=j[2]-A*j[3],g=j[1]-_*j[2],h=j[0]-x*j[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],v=q[2]-w*q[1],u=q[3]-A*q[2],f=q[4]-_*q[3],l=q[5]-x*q[4],d=j[0],m=j[1]-S*j[0],p=j[2]-w*j[1],y=j[3]-A*j[2],g=j[4]-_*j[3],h=j[5]-x*j[4]),T=r.offset,I=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],z=0;z<E;z++){for(B=0;B<x;B++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(O=0;O<S;O++)i(t,I,o(a,T)),T+=n,I+=d;T+=s,I+=m}T+=v,I+=p}T+=u,I+=y}T+=f,I+=g}T+=l,I+=h}}P8.exports=fxr});var C8=c((one,L8)=>{"use strict";function lxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F;for(w=r.shape,I=r.strides,O=e.strides,r.order==="row-major"?(A=w[6],_=w[5],x=w[4],E=w[3],q=w[2],j=w[1],T=w[0],n=I[6],s=I[5]-A*I[6],v=I[4]-_*I[5],u=I[3]-x*I[4],f=I[2]-E*I[3],l=I[1]-q*I[2],d=I[0]-j*I[1],m=O[6],p=O[5]-A*O[6],y=O[4]-_*O[5],g=O[3]-x*O[4],h=O[2]-E*O[3],b=O[1]-q*O[2],S=O[0]-j*O[1]):(A=w[0],_=w[1],x=w[2],E=w[3],q=w[4],j=w[5],T=w[6],n=I[0],s=I[1]-A*I[0],v=I[2]-_*I[1],u=I[3]-x*I[2],f=I[4]-E*I[3],l=I[5]-q*I[4],d=I[6]-j*I[5],m=O[0],p=O[1]-A*O[0],y=O[2]-_*O[1],g=O[3]-x*O[2],h=O[4]-E*O[3],b=O[5]-q*O[4],S=O[6]-j*O[5]),D=r.offset,k=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],F=0;F<T;F++){for(P=0;P<j;P++){for(V=0;V<q;V++){for(R=0;R<E;R++){for(z=0;z<x;z++){for(B=0;B<_;B++){for(N=0;N<A;N++)i(t,k,o(a,D)),D+=n,k+=m;D+=s,k+=p}D+=v,k+=y}D+=u,k+=g}D+=f,k+=h}D+=l,k+=b}D+=d,k+=S}}L8.exports=lxr});var M8=c((sne,U8)=>{"use strict";function cxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M;for(_=r.shape,k=r.strides,N=e.strides,r.order==="row-major"?(x=_[7],E=_[6],q=_[5],j=_[4],T=_[3],I=_[2],O=_[1],D=_[0],n=k[7],s=k[6]-x*k[7],v=k[5]-E*k[6],u=k[4]-q*k[5],f=k[3]-j*k[4],l=k[2]-T*k[3],d=k[1]-I*k[2],m=k[0]-O*k[1],p=N[7],y=N[6]-x*N[7],g=N[5]-E*N[6],h=N[4]-q*N[5],b=N[3]-j*N[4],S=N[2]-T*N[3],w=N[1]-I*N[2],A=N[0]-O*N[1]):(x=_[0],E=_[1],q=_[2],j=_[3],T=_[4],I=_[5],O=_[6],D=_[7],n=k[0],s=k[1]-x*k[0],v=k[2]-E*k[1],u=k[3]-q*k[2],f=k[4]-j*k[3],l=k[5]-T*k[4],d=k[6]-I*k[5],m=k[7]-O*k[6],p=N[0],y=N[1]-x*N[0],g=N[2]-E*N[1],h=N[3]-q*N[2],b=N[4]-j*N[3],S=N[5]-T*N[4],w=N[6]-I*N[5],A=N[7]-O*N[6]),B=r.offset,z=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<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(V=0;V<E;V++){for(R=0;R<x;R++)i(t,z,o(a,B)),B+=n,z+=p;B+=s,z+=y}B+=v,z+=g}B+=u,z+=h}B+=f,z+=b}B+=l,z+=S}B+=d,z+=w}B+=m,z+=A}}U8.exports=cxr});var $8=c((nne,G8)=>{"use strict";function dxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W;for(E=r.shape,z=r.strides,R=e.strides,r.order==="row-major"?(q=E[8],j=E[7],T=E[6],I=E[5],O=E[4],D=E[3],k=E[2],N=E[1],B=E[0],n=z[8],s=z[7]-q*z[8],v=z[6]-j*z[7],u=z[5]-T*z[6],f=z[4]-I*z[5],l=z[3]-O*z[4],d=z[2]-D*z[3],m=z[1]-k*z[2],p=z[0]-N*z[1],y=R[8],g=R[7]-q*R[8],h=R[6]-j*R[7],b=R[5]-T*R[6],S=R[4]-I*R[5],w=R[3]-O*R[4],A=R[2]-D*R[3],_=R[1]-k*R[2],x=R[0]-N*R[1]):(q=E[0],j=E[1],T=E[2],I=E[3],O=E[4],D=E[5],k=E[6],N=E[7],B=E[8],n=z[0],s=z[1]-q*z[0],v=z[2]-j*z[1],u=z[3]-T*z[2],f=z[4]-I*z[3],l=z[5]-O*z[4],d=z[6]-D*z[5],m=z[7]-k*z[6],p=z[8]-N*z[7],y=R[0],g=R[1]-q*R[0],h=R[2]-j*R[1],b=R[3]-T*R[2],S=R[4]-I*R[3],w=R[5]-O*R[4],A=R[6]-D*R[5],_=R[7]-k*R[6],x=R[8]-N*R[7]),V=r.offset,P=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],W=0;W<B;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++){for(F=0;F<q;F++)i(t,P,o(a,V)),V+=n,P+=y;V+=s,P+=g}V+=v,P+=h}V+=u,P+=b}V+=f,P+=S}V+=l,P+=w}V+=d,P+=A}V+=m,P+=_}V+=p,P+=x}}G8.exports=dxr});var W8=c((vne,Y8)=>{"use strict";function pxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H;for(j=r.shape,P=r.strides,F=e.strides,r.order==="row-major"?(T=j[9],I=j[8],O=j[7],D=j[6],k=j[5],N=j[4],B=j[3],z=j[2],R=j[1],V=j[0],n=P[9],s=P[8]-T*P[9],v=P[7]-I*P[8],u=P[6]-O*P[7],f=P[5]-D*P[6],l=P[4]-k*P[5],d=P[3]-N*P[4],m=P[2]-B*P[3],p=P[1]-z*P[2],y=P[0]-R*P[1],g=F[9],h=F[8]-T*F[9],b=F[7]-I*F[8],S=F[6]-O*F[7],w=F[5]-D*F[6],A=F[4]-k*F[5],_=F[3]-N*F[4],x=F[2]-B*F[3],E=F[1]-z*F[2],q=F[0]-R*F[1]):(T=j[0],I=j[1],O=j[2],D=j[3],k=j[4],N=j[5],B=j[6],z=j[7],R=j[8],V=j[9],n=P[0],s=P[1]-T*P[0],v=P[2]-I*P[1],u=P[3]-O*P[2],f=P[4]-D*P[3],l=P[5]-k*P[4],d=P[6]-N*P[5],m=P[7]-B*P[6],p=P[8]-z*P[7],y=P[9]-R*P[8],g=F[0],h=F[1]-T*F[0],b=F[2]-I*F[1],S=F[3]-O*F[2],w=F[4]-D*F[3],A=F[5]-k*F[4],_=F[6]-N*F[5],x=F[7]-B*F[6],E=F[8]-z*F[7],q=F[9]-R*F[8]),L=r.offset,C=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],H=0;H<V;H++){for(X=0;X<R;X++){for(K=0;K<z;K++){for(J=0;J<B;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++){for(G=0;G<O;G++){for(M=0;M<I;M++){for(U=0;U<T;U++)i(t,C,o(a,L)),L+=n,C+=g;L+=s,C+=h}L+=v,C+=b}L+=u,C+=S}L+=f,C+=w}L+=l,C+=A}L+=d,C+=_}L+=m,C+=x}L+=p,C+=E}L+=y,C+=q}}Y8.exports=pxr});var H8=c((une,X8)=>{"use strict";var yxr=Wr(),J8=ia(),K8="throw";function mxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g;for(u=r.shape,n=yxr(u),a=r.data,t=e.data,f=r.strides,l=e.strides,d=r.offset,m=e.offset,o=r.order,i=e.order,s=r.accessors[0],v=e.accessors[1],g=0;g<n;g++)p=J8(u,f,d,o,g,K8),y=J8(u,l,m,i,g,K8),v(t,y,s(a,p))}X8.exports=mxr});var Q8=c((fne,Z8)=>{"use strict";function gxr(r,e){e.data[e.offset]=r.data[r.offset]}Z8.exports=gxr});var ej=c((lne,rj)=>{"use strict";function hxr(r,e){var a,t,o,i,n,s,v,u;for(n=r.shape[0],o=r.strides[0],i=e.strides[0],s=r.offset,v=e.offset,a=r.data,t=e.data,u=0;u<n;u++)t[v]=a[s],s+=o,v+=i}rj.exports=hxr});var tj=c((cne,aj)=>{"use strict";function bxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g;for(v=r.shape,l=r.strides,d=e.strides,r.order==="row-major"?(u=v[1],f=v[0],o=l[1],i=l[0]-u*l[1],n=d[1],s=d[0]-u*d[1]):(u=v[0],f=v[1],o=l[0],i=l[1]-u*l[0],n=d[0],s=d[1]-u*d[0]),m=r.offset,p=e.offset,a=r.data,t=e.data,g=0;g<f;g++){for(y=0;y<u;y++)t[p]=a[m],m+=o,p+=n;m+=i,p+=s}}aj.exports=bxr});var oj=c((dne,ij)=>{"use strict";function xxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w;for(f=r.shape,p=r.strides,y=e.strides,r.order==="row-major"?(l=f[2],d=f[1],m=f[0],o=p[2],i=p[1]-l*p[2],n=p[0]-d*p[1],s=y[2],v=y[1]-l*y[2],u=y[0]-d*y[1]):(l=f[0],d=f[1],m=f[2],o=p[0],i=p[1]-l*p[0],n=p[2]-d*p[1],s=y[0],v=y[1]-l*y[0],u=y[2]-d*y[1]),g=r.offset,h=e.offset,a=r.data,t=e.data,w=0;w<m;w++){for(S=0;S<d;S++){for(b=0;b<l;b++)t[h]=a[g],g+=o,h+=s;g+=i,h+=v}g+=n,h+=u}}ij.exports=xxr});var nj=c((pne,sj)=>{"use strict";function qxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E;for(d=r.shape,h=r.strides,b=e.strides,r.order==="row-major"?(m=d[3],p=d[2],y=d[1],g=d[0],o=h[3],i=h[2]-m*h[3],n=h[1]-p*h[2],s=h[0]-y*h[1],v=b[3],u=b[2]-m*b[3],f=b[1]-p*b[2],l=b[0]-y*b[1]):(m=d[0],p=d[1],y=d[2],g=d[3],o=h[0],i=h[1]-m*h[0],n=h[2]-p*h[1],s=h[3]-y*h[2],v=b[0],u=b[1]-m*b[0],f=b[2]-p*b[1],l=b[3]-y*b[2]),S=r.offset,w=e.offset,a=r.data,t=e.data,E=0;E<g;E++){for(x=0;x<y;x++){for(_=0;_<p;_++){for(A=0;A<m;A++)t[w]=a[S],S+=o,w+=v;S+=i,w+=u}S+=n,w+=f}S+=s,w+=l}}sj.exports=qxr});var uj=c((yne,vj)=>{"use strict";function wxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I;for(p=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(y=p[4],g=p[3],h=p[2],b=p[1],S=p[0],o=w[4],i=w[3]-y*w[4],n=w[2]-g*w[3],s=w[1]-h*w[2],v=w[0]-b*w[1],u=A[4],f=A[3]-y*A[4],l=A[2]-g*A[3],d=A[1]-h*A[2],m=A[0]-b*A[1]):(y=p[0],g=p[1],h=p[2],b=p[3],S=p[4],o=w[0],i=w[1]-y*w[0],n=w[2]-g*w[1],s=w[3]-h*w[2],v=w[4]-b*w[3],u=A[0],f=A[1]-y*A[0],l=A[2]-g*A[1],d=A[3]-h*A[2],m=A[4]-b*A[3]),_=r.offset,x=e.offset,a=r.data,t=e.data,I=0;I<S;I++){for(T=0;T<b;T++){for(j=0;j<h;j++){for(q=0;q<g;q++){for(E=0;E<y;E++)t[x]=a[_],_+=o,x+=u;_+=i,x+=f}_+=n,x+=l}_+=s,x+=d}_+=v,x+=m}}vj.exports=wxr});var lj=c((mne,fj)=>{"use strict";function Sxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N;for(g=r.shape,x=r.strides,E=e.strides,r.order==="row-major"?(h=g[5],b=g[4],S=g[3],w=g[2],A=g[1],_=g[0],o=x[5],i=x[4]-h*x[5],n=x[3]-b*x[4],s=x[2]-S*x[3],v=x[1]-w*x[2],u=x[0]-A*x[1],f=E[5],l=E[4]-h*E[5],d=E[3]-b*E[4],m=E[2]-S*E[3],p=E[1]-w*E[2],y=E[0]-A*E[1]):(h=g[0],b=g[1],S=g[2],w=g[3],A=g[4],_=g[5],o=x[0],i=x[1]-h*x[0],n=x[2]-b*x[1],s=x[3]-S*x[2],v=x[4]-w*x[3],u=x[5]-A*x[4],f=E[0],l=E[1]-h*E[0],d=E[2]-b*E[1],m=E[3]-S*E[2],p=E[4]-w*E[3],y=E[5]-A*E[4]),q=r.offset,j=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(O=0;O<S;O++){for(I=0;I<b;I++){for(T=0;T<h;T++)t[j]=a[q],q+=o,j+=f;q+=i,j+=l}q+=n,j+=d}q+=s,j+=m}q+=v,j+=p}q+=u,j+=y}}fj.exports=Sxr});var dj=c((gne,cj)=>{"use strict";function Exr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V;for(b=r.shape,j=r.strides,T=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=j[6],i=j[5]-S*j[6],n=j[4]-w*j[5],s=j[3]-A*j[4],v=j[2]-_*j[3],u=j[1]-x*j[2],f=j[0]-E*j[1],l=T[6],d=T[5]-S*T[6],m=T[4]-w*T[5],p=T[3]-A*T[4],y=T[2]-_*T[3],g=T[1]-x*T[2],h=T[0]-E*T[1]):(S=b[0],w=b[1],A=b[2],_=b[3],x=b[4],E=b[5],q=b[6],o=j[0],i=j[1]-S*j[0],n=j[2]-w*j[1],s=j[3]-A*j[2],v=j[4]-_*j[3],u=j[5]-x*j[4],f=j[6]-E*j[5],l=T[0],d=T[1]-S*T[0],m=T[2]-w*T[1],p=T[3]-A*T[2],y=T[4]-_*T[3],g=T[5]-x*T[4],h=T[6]-E*T[5]),I=r.offset,O=e.offset,a=r.data,t=e.data,V=0;V<q;V++){for(R=0;R<E;R++){for(z=0;z<x;z++){for(B=0;B<_;B++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++)t[O]=a[I],I+=o,O+=l;I+=i,O+=d}I+=n,O+=m}I+=s,O+=p}I+=v,O+=y}I+=u,O+=g}I+=f,O+=h}}cj.exports=Exr});var yj=c((hne,pj)=>{"use strict";function Axr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C;for(w=r.shape,O=r.strides,D=e.strides,r.order==="row-major"?(A=w[7],_=w[6],x=w[5],E=w[4],q=w[3],j=w[2],T=w[1],I=w[0],o=O[7],i=O[6]-A*O[7],n=O[5]-_*O[6],s=O[4]-x*O[5],v=O[3]-E*O[4],u=O[2]-q*O[3],f=O[1]-j*O[2],l=O[0]-T*O[1],d=D[7],m=D[6]-A*D[7],p=D[5]-_*D[6],y=D[4]-x*D[5],g=D[3]-E*D[4],h=D[2]-q*D[3],b=D[1]-j*D[2],S=D[0]-T*D[1]):(A=w[0],_=w[1],x=w[2],E=w[3],q=w[4],j=w[5],T=w[6],I=w[7],o=O[0],i=O[1]-A*O[0],n=O[2]-_*O[1],s=O[3]-x*O[2],v=O[4]-E*O[3],u=O[5]-q*O[4],f=O[6]-j*O[5],l=O[7]-T*O[6],d=D[0],m=D[1]-A*D[0],p=D[2]-_*D[1],y=D[3]-x*D[2],g=D[4]-E*D[3],h=D[5]-q*D[4],b=D[6]-j*D[5],S=D[7]-T*D[6]),k=r.offset,N=e.offset,a=r.data,t=e.data,C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(V=0;V<E;V++){for(R=0;R<x;R++){for(z=0;z<_;z++){for(B=0;B<A;B++)t[N]=a[k],k+=o,N+=d;k+=i,N+=m}k+=n,N+=p}k+=s,N+=y}k+=v,N+=g}k+=u,N+=h}k+=f,N+=b}k+=l,N+=S}}pj.exports=Axr});var gj=c((bne,mj)=>{"use strict";function _xr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y;for(_=r.shape,N=r.strides,B=e.strides,r.order==="row-major"?(x=_[8],E=_[7],q=_[6],j=_[5],T=_[4],I=_[3],O=_[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],v=N[4]-j*N[5],u=N[3]-T*N[4],f=N[2]-I*N[3],l=N[1]-O*N[2],d=N[0]-D*N[1],m=B[8],p=B[7]-x*B[8],y=B[6]-E*B[7],g=B[5]-q*B[6],h=B[4]-j*B[5],b=B[3]-T*B[4],S=B[2]-I*B[3],w=B[1]-O*B[2],A=B[0]-D*B[1]):(x=_[0],E=_[1],q=_[2],j=_[3],T=_[4],I=_[5],O=_[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],v=N[4]-j*N[3],u=N[5]-T*N[4],f=N[6]-I*N[5],l=N[7]-O*N[6],d=N[8]-D*N[7],m=B[0],p=B[1]-x*B[0],y=B[2]-E*B[1],g=B[3]-q*B[2],h=B[4]-j*B[3],b=B[5]-T*B[4],S=B[6]-I*B[5],w=B[7]-O*B[6],A=B[8]-D*B[7]),z=r.offset,R=e.offset,a=r.data,t=e.data,Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++){for(F=0;F<q;F++){for(P=0;P<E;P++){for(V=0;V<x;V++)t[R]=a[z],z+=o,R+=m;z+=i,R+=p}z+=n,R+=y}z+=s,R+=g}z+=v,R+=h}z+=u,R+=b}z+=f,R+=S}z+=l,R+=w}z+=d,R+=A}}mj.exports=_xr});var bj=c((xne,hj)=>{"use strict";function jxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K;for(E=r.shape,R=r.strides,V=e.strides,r.order==="row-major"?(q=E[9],j=E[8],T=E[7],I=E[6],O=E[5],D=E[4],k=E[3],N=E[2],B=E[1],z=E[0],o=R[9],i=R[8]-q*R[9],n=R[7]-j*R[8],s=R[6]-T*R[7],v=R[5]-I*R[6],u=R[4]-O*R[5],f=R[3]-D*R[4],l=R[2]-k*R[3],d=R[1]-N*R[2],m=R[0]-B*R[1],p=V[9],y=V[8]-q*V[9],g=V[7]-j*V[8],h=V[6]-T*V[7],b=V[5]-I*V[6],S=V[4]-O*V[5],w=V[3]-D*V[4],A=V[2]-k*V[3],_=V[1]-N*V[2],x=V[0]-B*V[1]):(q=E[0],j=E[1],T=E[2],I=E[3],O=E[4],D=E[5],k=E[6],N=E[7],B=E[8],z=E[9],o=R[0],i=R[1]-q*R[0],n=R[2]-j*R[1],s=R[3]-T*R[2],v=R[4]-I*R[3],u=R[5]-O*R[4],f=R[6]-D*R[5],l=R[7]-k*R[6],d=R[8]-N*R[7],m=R[9]-B*R[8],p=V[0],y=V[1]-q*V[0],g=V[2]-j*V[1],h=V[3]-T*V[2],b=V[4]-I*V[3],S=V[5]-O*V[4],w=V[6]-D*V[5],A=V[7]-k*V[6],_=V[8]-N*V[7],x=V[9]-B*V[8]),P=r.offset,F=e.offset,a=r.data,t=e.data,K=0;K<z;K++){for(J=0;J<B;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++){for(G=0;G<O;G++){for(M=0;M<I;M++){for(U=0;U<T;U++){for(C=0;C<j;C++){for(L=0;L<q;L++)t[F]=a[P],P+=o,F+=p;P+=i,F+=y}P+=n,F+=g}P+=s,F+=h}P+=v,F+=b}P+=u,F+=S}P+=f,F+=w}P+=l,F+=A}P+=d,F+=_}P+=m,F+=x}}hj.exports=jxr});var Sj=c((qne,wj)=>{"use strict";var Txr=Wr(),xj=ia(),qj="throw";function Oxr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p;for(s=r.shape,n=Txr(s),a=r.data,t=e.data,v=r.strides,u=e.strides,f=r.offset,l=e.offset,o=r.order,i=e.order,p=0;p<n;p++)d=xj(s,v,f,o,p,qj),m=xj(s,u,l,i,p,qj),t[m]=a[d]}wj.exports=Oxr});var Oj=c((wne,Tj)=>{"use strict";var Ixr=lo(),Nxr=Is(),Ej=xa(),Dxr=Fu(),kxr=_s(),Aj=Za(),_j=Wt(),Rxr=$_(),Bxr=W_(),zxr=K_(),Vxr=H_(),Pxr=Q_(),Fxr=e8(),Lxr=t8(),Cxr=o8(),Uxr=n8(),Mxr=u8(),Gxr=l8(),$xr=d8(),Yxr=y8(),Wxr=g8(),Jxr=b8(),Kxr=q8(),Xxr=S8(),Hxr=A8(),Zxr=j8(),Qxr=O8(),rqr=N8(),eqr=k8(),aqr=B8(),tqr=V8(),iqr=F8(),oqr=C8(),sqr=M8(),nqr=$8(),vqr=W8(),uqr=H8(),fqr=Q8(),lqr=ej(),cqr=tj(),dqr=oj(),pqr=nj(),yqr=uj(),mqr=lj(),gqr=dj(),hqr=yj(),bqr=gj(),xqr=bj(),qqr=Sj(),hi=[fqr,lqr,cqr,dqr,pqr,yqr,mqr,gqr,hqr,bqr,xqr],po=[Zxr,Qxr,rqr,eqr,aqr,tqr,iqr,oqr,sqr,nqr,vqr],wqr=[Mxr,Gxr,$xr,Yxr,Wxr,Jxr,Kxr,Xxr,Hxr],Sqr=[Rxr,Bxr,zxr,Vxr,Pxr,Fxr,Lxr,Cxr,Uxr],jj=hi.length-1;function Eqr(r){var e,a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h;if(p=_j(r[0]),y=_j(r[1]),Nxr(p.dtype)&&Ixr(y.dtype)&&(p.accessorProtocol=!0,p.accessors[0]=Dxr(p.accessors[0],2,kxr(y.dtype))),o=p.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 p.accessorProtocol||y.accessorProtocol?po[e](p,y):hi[e](p,y);for(v=1,m=0,h=0;h<e;h++){if(g=o[h],g!==i[h])throw new Error("invalid arguments. Arrays must have the same shape.");v*=g,g===1&&(m+=1)}if(v!==0){if(e===1)return p.accessorProtocol||y.accessorProtocol?po[e](p,y):hi[e](p,y);if(u=p.strides,f=y.strides,m===e-1){for(h=0;h<e&&o[h]===1;h++);return p.shape=[o[h]],y.shape=p.shape,p.strides=[u[h]],y.strides=[f[h]],p.accessorProtocol||y.accessorProtocol?po[1](p,y):hi[1](p,y)}if(n=Ej(u),s=Ej(f),n!==0&&s!==0&&n===s){if(a=Aj(o,u,p.offset),t=Aj(i,f,y.offset),v===a[1]-a[0]+1&&v===t[1]-t[0]+1)return n===1?l=a[0]:l=a[1],s===1?d=t[0]:d=t[1],p.shape=[v],y.shape=p.shape,p.strides=[n],y.strides=[s],p.offset=l,y.offset=d,p.accessorProtocol||y.accessorProtocol?po[1](p,y):hi[1](p,y);if(e<=jj)return p.accessorProtocol||y.accessorProtocol?po[e](p,y):hi[e](p,y)}if(e<=jj)return p.accessorProtocol||y.accessorProtocol?Sqr[e-2](p,y):wqr[e-2](p,y);if(p.accessorProtocol||y.accessorProtocol)return uqr(p,y);qqr(p,y)}}Tj.exports=Eqr});var Xu=c((Sne,Ij)=>{"use strict";var Aqr=Oj();Ij.exports=Aqr});var Dj=c((Ene,Nj)=>{"use strict";function _qr(r,e){var a,t,o,i,n,s,v,u,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(v=r[o],a=v<0?-v:v,u=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]=v,e[s+1]=u,o+=1,i+=1}}Nj.exports=_qr});var Bj=c((Ane,Rj)=>{"use strict";var jqr=qe(),Tqr=qt(),Rs=Kr(),Oqr=vo(),Hu=Rt(),Iqr=Dj(),kj=3;function Nqr(r,e,a,t){var o,i,n,s,v,u,f,l,d,m;if(o=jqr(r.length),u=Hu(e),f=Hu(a),l=Hu(t),i=Oqr([],4),i[u].push(e),i[f].push(a),i[l].push(t),n=i[0].length,n===kj)v=e;else if(n===kj-1){for(d=1;d<4;d++)if(i[d].length){v=i[d][0];break}}else{for(m=0,d=1;d<4;d++)s=i[d].length,s>=n&&(n=s,m=d);v=i[m][0]}return v=Tqr(v),Iqr(v,o),r=Rs(r,o),e=e===v?v:Rs(e,o),a=a===v?v:Rs(a,o),t=t===v?v:Rs(t,o),{sh:r,sx:e,sy:a,sz:t}}Rj.exports=Nqr});var Vj=c((_ne,zj)=>{"use strict";var Dqr=Bj();zj.exports=Dqr});var Fj=c((jne,Pj)=>{"use strict";var kqr={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};Pj.exports=kqr});var Cj=c((Tne,Lj)=>{"use strict";var Zu=Ha(),Bs=Fj();function Rqr(r,e,a){var t,o,i;return t=Zu(r),o=Zu(e),i=Zu(a),t===null||o===null||i===null?Bs.BLOCK_SIZE_IN_ELEMENTS:t>o&&t>i?Bs.BLOCK_SIZE_IN_BYTES/t|0:o>i?Bs.BLOCK_SIZE_IN_BYTES/o|0:Bs.BLOCK_SIZE_IN_BYTES/i|0}Lj.exports=Rqr});var Mj=c((One,Uj)=>{"use strict";var Bqr=Cj();Uj.exports=Bqr});var $j=c((Ine,Gj)=>{"use strict";var zqr=Math.ceil;Gj.exports=zqr});var Qu=c((Nne,Yj)=>{"use strict";var Vqr=$j();Yj.exports=Vqr});var Jj=c((Dne,Wj)=>{"use strict";var Pqr=Ze(),Fqr=Qu();function Lqr(r){return r<0?Fqr(r):Pqr(r)}Wj.exports=Lqr});var rf=c((kne,Kj)=>{"use strict";var Cqr=Jj();Kj.exports=Cqr});var Zj=c((Rne,Hj)=>{"use strict";var Uqr=cr(),zs=rf(),Xj=ai();function Mqr(r,e,a,t,o,i){var n,s,v,u,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(Uqr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",s,o));if(v=0,t==="column-major"){for(l=n-1;l>=0;l--)f=e[l],f<0?(u=zs(o/f),o-=u*f,u+=r[l]-1):(u=zs(o/f),o-=u*f),v+=u*Xj(f);return v}for(l=0;l<n;l++)f=e[l],f<0?(u=zs(o/f),o-=u*f,u+=r[l]-1):(u=zs(o/f),o-=u*f),v+=u*Xj(f);return v}Hj.exports=Mqr});var rT=c((Bne,Qj)=>{"use strict";var Gqr=Zj();Qj.exports=Gqr});var tT=c((zne,aT)=>{"use strict";var yo=qt(),$qr=ra(),Yqr=_e(),Wqr=ya(),Jqr=Ya(),Kqr=oa(),Xqr=Ye(),Hqr=vt(),eT=cr();function Zqr(r,e){var a,t,o,i,n,s,v,u,f;if(n=e.length,o=Yqr(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=[],u=0;u<n;u++)a.push(0);for(i=Wqr(r,!1),u=n-1;u>=0;u--)if(f=s-n+u,!(f<0)){if(v=o[f],t=e[u],t!==0&&t<v)throw new Error(eT("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.",yo(o).join(", "),yo(e).join(", "),u));if(v===t)a[u]=i[f];else if(v===1)a[u]=0;else throw new Error(eT("invalid argument. Input array and the specified shape are broadcast incompatible. Array shape: (%s). Desired shape: (%s). Dimension: %u.",yo(o).join(", "),yo(e).join(", "),u))}return $qr(Xqr(r),Hqr(r),yo(e),a,Jqr(r),Kqr(r))}aT.exports=Zqr});var mo=c((Vne,iT)=>{"use strict";var Qqr=tT();iT.exports=Qqr});var sT=c((Pne,oT)=>{"use strict";function rwr(r){var e,a,t,o,i,n,s,v,u,f,l;if(v=r.length,a=[],v===0)return a;if(o=r[0],u=o.length,v===1){for(f=0;f<u;f++)a.push(o[f]);return a}for(e=[u],f=1;f<v;f++)e.push(r[f].length),e[f]>u&&(u=e[f]);for(f=0;f<u;f++)a.push(0);for(f=u-1;f>=0;){for(i=e[0]-u+f,i>=0?t=o[i]:t=1,l=1;l<v;l++){if(n=e[l]-u+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}oT.exports=rwr});var bi=c((Fne,nT)=>{"use strict";var ewr=sT();nT.exports=ewr});var uT=c((Lne,vT)=>{"use strict";var awr=bi(),twr=mo(),iwr=_e();function owr(r){var e,a,t,o,i;for(o=r.length,e=[],i=0;i<o;i++)e.push(iwr(r[i],!1));if(t=awr(e),t===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(a=[],i=0;i<o;i++)a.push(twr(r[i],t));return a}vT.exports=owr});var lT=c((Cne,fT)=>{"use strict";var swr=uT();fT.exports=swr});var dT=c((Une,cT)=>{"use strict";var nwr=et(),vwr=gi(),uwr=mi(),fwr=xe(),lwr=Na(),cwr=ra(),dwr=cr();function pwr(r,e,a,t){var o,i;if(o=lwr(e,1),o===null)throw new TypeError(dwr("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return/^complex/.test(e)&&typeof r=="number"&&(r=[r,0]),nwr(o)?i=vwr(e):i=uwr(e),i(o,0,r),new cwr(e,o,a,fwr(a.length),0,t)}cT.exports=pwr});var yT=c((Mne,pT)=>{"use strict";var ywr=dT();pT.exports=ywr});var gT=c((Gne,mT)=>{"use strict";var mwr=oo(),gwr=ws();function hwr(r){var e=gwr(r);return e?mwr(e):null}mT.exports=hwr});var bT=c(($ne,hT)=>{"use strict";var bwr=gT();hT.exports=bwr});var qT=c((Yne,xT)=>{"use strict";function xwr(){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"}}xT.exports=xwr});var ET=c((Wne,ST)=>{"use strict";var qwr=Ia(),wT=qT(),ef;function wwr(r){return arguments.length===0?wT():(ef===void 0&&(ef=wT()),ef[qwr(r)]||null)}ST.exports=wwr});var af=c((Jne,AT)=>{"use strict";var Swr=ET();AT.exports=Swr});var OT=c((Kne,TT)=>{"use strict";var _T=ls(),jT=af(),tf;function Ewr(r){return arguments.length===0?_T(jT()):(tf===void 0&&(tf=_T(jT())),tf[r]||null)}TT.exports=Ewr});var NT=c((Xne,IT)=>{"use strict";var Awr=OT();IT.exports=Awr});var kT=c((Hne,DT)=>{"use strict";function _wr(){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"}}DT.exports=_wr});var zT=c((Zne,BT)=>{"use strict";var jwr=Ia(),RT=kT(),of;function Twr(r){return arguments.length===0?RT():(of===void 0&&(of=RT()),of[jwr(r)]||null)}BT.exports=Twr});var PT=c((Qne,VT)=>{"use strict";var Owr=zT();VT.exports=Owr});var LT=c((rve,FT)=>{"use strict";var Iwr=cs(),Nwr=oo();function Dwr(r){var e=typeof r;return e==="number"?Iwr(r)?r:null:e==="string"?Nwr(r):null}FT.exports=Dwr});var sf=c((eve,CT)=>{"use strict";var kwr=LT();CT.exports=kwr});var UT=c((ave,Rwr)=>{Rwr.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 GT=c((tve,MT)=>{"use strict";var Bwr=Ia(),zwr=UT();function Vwr(r){return zwr[Bwr(r)]||null}MT.exports=Vwr});var YT=c((ive,$T)=>{"use strict";var Pwr=GT();$T.exports=Pwr});var KT=c((ove,JT)=>{"use strict";var Fwr=ze(),WT=me().isPrimitive,Lwr=Ia(),nf=cr();function Cwr(r,e,a){var t,o,i,n,s,v,u,f;if(!Fwr(r))throw new TypeError(nf("invalid argument. First argument must be an array-like object. Value: `%s`.",r));if(!WT(e))throw new TypeError(nf("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",e));if(!WT(a))throw new TypeError(nf("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=[],v=2*s,f=2*e,u=0;u<=v;u++)u===0?u===f?i.push("() => ("):i.push("("):u===v?u===f?i.push(") => ()"):i.push(")"):u===f?i.push(") => ("):u%2===1?i.push(""):i.push(", ");for(u=0;u<t;u++)n=Lwr(r[u]),n===null&&(n=r[u]),f=u%s,i[2*f+1]=n,f===s-1&&o.push(i.join(""));return o}JT.exports=Cwr});var vf=c((sve,XT)=>{"use strict";var Uwr=KT();XT.exports=Uwr});var ZT=c((nve,HT)=>{"use strict";var Mwr=Ma(),Gwr=uv();function $wr(){var r=Mwr(1);return Gwr(r)}HT.exports=$wr});var rO=c((vve,QT)=>{"use strict";var Ywr=rt(),Wwr=tt(),Jwr=ni(),Kwr=si(),Xwr=ui(),Hwr=Vt(),Zwr=oi(),Qwr=Qe(),r3r=vi(),e3r=fi(),a3r=li(),t3r=ci(),i3r={float64:Ywr,float32:Wwr,int16:Jwr,int32:Kwr,int8:Xwr,uint16:Hwr,uint32:Zwr,uint8:Qwr,uint8c:r3r,complex64:e3r,complex128:a3r,bool:t3r};QT.exports=i3r});var aO=c((uve,eO)=>{"use strict";var o3r=rO();function s3r(r){return o3r[r]||null}eO.exports=s3r});var iO=c((fve,tO)=>{"use strict";var n3r=aO();tO.exports=n3r});var uf=c((lve,oO)=>{"use strict";function v3r(){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"}}}oO.exports=v3r});var nO=c((cve,sO)=>{"use strict";var u3r=uf(),Wa=u3r(),f3r={"dtypes.default":Wa.dtypes.default,"dtypes.numeric":Wa.dtypes.numeric,"dtypes.real":Wa.dtypes.real,"dtypes.floating_point":Wa.dtypes.floating_point,"dtypes.real_floating_point":Wa.dtypes.real_floating_point,"dtypes.complex_floating_point":Wa.dtypes.complex_floating_point,"dtypes.boolean":Wa.dtypes.boolean,"dtypes.integer":Wa.dtypes.integer,"dtypes.signed_integer":Wa.dtypes.signed_integer,"dtypes.unsigned_integer":Wa.dtypes.unsigned_integer};function l3r(r){var e=f3r[r];return e===void 0?null:e}sO.exports=l3r});var ff=c((dve,uO)=>{"use strict";var c3r=Tr(),vO=uf(),d3r=nO();c3r(vO,"get",d3r);uO.exports=vO});var dO=c((pve,cO)=>{"use strict";var fO=me().isPrimitive,p3r=Ma(),y3r=iO(),m3r=xe(),g3r=Ha(),h3r=ff(),lO=cr(),b3r=h3r.get("dtypes.default");function x3r(r){var e,a,t,o,i,n,s;if(!fO(r))throw new TypeError(lO("invalid argument. First argument must be a nonnegative integer. Value: `%s`.",r));if(arguments.length>1?t=arguments[1]:t=b3r,t==="generic")return m3r(r);if(e=g3r(t),e===null)throw new TypeError(lO("invalid argument. Second argument must be a supported data type. Value: `%s`.",t));return o=y3r(t),s=e*r,t==="complex128"&&(s+=8),i=p3r(s),a=i.byteOffset,t==="complex128"&&(fO(a/e)||(a+=8)),n=new o(i.buffer,a,r),n}cO.exports=x3r});var yO=c((yve,pO)=>{"use strict";var q3r=rt(),w3r=tt(),S3r=ni(),E3r=si(),A3r=ui(),_3r=Vt(),j3r=oi(),T3r=Qe(),O3r=vi(),I3r=fi(),N3r=li(),D3r=ci(),k3r={float64:q3r,float32:w3r,generic:Array,int16:S3r,int32:E3r,int8:A3r,uint16:_3r,uint32:j3r,uint8:T3r,uint8c:O3r,complex64:I3r,complex128:N3r,bool:D3r};pO.exports=k3r});var gO=c((mve,mO)=>{"use strict";var R3r=yO();function B3r(r){return R3r[r]||null}mO.exports=B3r});var bO=c((gve,hO)=>{"use strict";var z3r=gO();hO.exports=z3r});var wO=c((hve,qO)=>{"use strict";var V3r=me().isPrimitive,P3r=bO(),F3r=xe(),L3r=ff(),xO=cr(),C3r=L3r.get("dtypes.default");function U3r(r){var e,a;if(!V3r(r))throw new TypeError(xO("invalid argument. First argument must be a nonnegative integer. Value: `%s`.",r));if(arguments.length>1?e=arguments[1]:e=C3r,e==="generic")return F3r(r);if(a=P3r(e),a===null)throw new TypeError(xO("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return new a(r)}qO.exports=U3r});var EO=c((bve,SO)=>{"use strict";var M3r=wO();SO.exports=M3r});var jO=c((xve,_O)=>{"use strict";var AO=EO();function G3r(r){return arguments.length>1?AO(r,arguments[1]):AO(r)}_O.exports=G3r});var go=c((qve,TO)=>{"use strict";var $3r=ZT(),Y3r=dO(),W3r=jO(),lf;$3r()?lf=Y3r:lf=W3r;TO.exports=lf});var IO=c((wve,OO)=>{"use strict";var J3r=Be(),K3r=Me(),X3r=ra(),H3r=Wr(),Z3r=go(),Q3r=Ma();function r4r(r,e,a){var t,o,i,n;return t=e.length,t>0?(i=H3r(e),n=J3r(e,a)):(i=1,n=[0]),r==="binary"?o=Q3r(i):o=Z3r(i,r),new X3r(r,o,e,n,K3r(e,n),a)}OO.exports=r4r});var DO=c((Sve,NO)=>{"use strict";var e4r=IO();NO.exports=e4r});var RO=c((Eve,kO)=>{"use strict";var a4r=Be(),t4r=Me(),i4r=Wr(),o4r=Ye(),s4r=_e(),n4r=oa(),v4r=go(),u4r=Ma();function f4r(r){var e,a,t,o,i,n,s;return s=o4r(r),i=s4r(r,!0),o=n4r(r),e=i.length,e>0?(a=i4r(i),n=a4r(i,o)):(a=1,n=[0]),s==="binary"?t=u4r(a):t=v4r(a,s),new r.constructor(s,t,i,n,t4r(i,n),o)}kO.exports=f4r});var zO=c((Ave,BO)=>{"use strict";var l4r=RO();BO.exports=l4r});var UO=c((_ve,CO)=>{"use strict";var c4r=Le(),VO=Ye(),d4r=_e(),p4r=ya(),PO=Ya(),y4r=oa(),FO=vt(),LO=cr();function m4r(r,e){var a,t,o,i,n,s,v;if(i=d4r(r,!1),n=p4r(r,!1),o=y4r(r),s=i.length,a=[],t=[],e<0){if(e<-s-1)throw new RangeError(LO("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(LO("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]),v=0;v<s;v++)t.push(i[v]),a.push(n[v]);else if(e===s){for(v=0;v<s;v++)t.push(i[v]),a.push(n[v]);t.push(1),a.push(n[s-1])}else for(v=0;v<s+1;v++)v===e?(t.push(1),o==="row-major"?a.push(n[v-1]):a.push(n[v])):v<e?(t.push(i[v]),a.push(n[v])):(t.push(i[v-1]),a.push(n[v-1]));return c4r(r)?new r.constructor(VO(r),FO(r),t,a,PO(r),o,{readonly:!0}):new r.constructor(VO(r),FO(r),t,a,PO(r),o)}CO.exports=m4r});var GO=c((jve,MO)=>{"use strict";var g4r=UO();MO.exports=g4r});var YO=c((Tve,$O)=>{"use strict";function h4r(r){return r===null}$O.exports=h4r});var xi=c((Ove,WO)=>{"use strict";var b4r=YO();WO.exports=b4r});var KO=c((Ive,JO)=>{"use strict";function x4r(r){return r===void 0}JO.exports=x4r});var qi=c((Nve,XO)=>{"use strict";var q4r=KO();XO.exports=q4r});var ZO=c((Dve,HO)=>{"use strict";var df=Tr(),pf=mt(),w4r=ue().isPrimitive,S4r=xi(),E4r=qi(),Vs=cr();function cf(r){return w4r(r)||S4r(r)||E4r(r)}function ut(){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 ut))return new ut(e,a,t);if(!cf(e))throw new TypeError(Vs("invalid argument. First argument must be an integer, null, or undefined. Value: `%s`.",e));if(!cf(a))throw new TypeError(Vs("invalid argument. Second argument must be an integer, null, or undefined. Value: `%s`.",a));if(cf(t)){if(t===0)throw new RangeError(Vs("invalid argument. Third argument cannot be zero. Value: `%s`.",t))}else throw new TypeError(Vs("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}df(ut,"name","Slice");pf(ut.prototype,"start",function(){return this._start});pf(ut.prototype,"stop",function(){return this._stop});pf(ut.prototype,"step",function(){return this._step});df(ut.prototype,"toString",function(){return"Slice("+this._start+","+this._stop+","+this.step+")"});df(ut.prototype,"toJSON",function(){return{type:"Slice",data:[this._start,this._stop,this._step]}});HO.exports=ut});var Pe=c((kve,QO)=>{"use strict";var A4r=ZO();QO.exports=A4r});var eI=c((Rve,rI)=>{"use strict";var _4r=Pe(),j4r=yt();function T4r(r){return r instanceof _4r||j4r(r)==="Slice"}rI.exports=T4r});var yf=c((Bve,aI)=>{"use strict";var O4r=eI();aI.exports=O4r});var oI=c((zve,iI)=>{"use strict";var mf=Tr(),tI=mt(),I4r=ue().isPrimitive,N4r=xi(),D4r=qi(),k4r=yf(),R4r=cr();function B4r(r){return I4r(r)||N4r(r)||D4r(r)||k4r(r)}function We(){var r,e,a,t,o;if(r=arguments.length,!(this instanceof We)){if(r===1)return new We(arguments[0]);if(r===2)return new We(arguments[0],arguments[1]);if(r===3)return new We(arguments[0],arguments[1],arguments[2]);if(r===4)return new We(arguments[0],arguments[1],arguments[2],arguments[3]);if(r===5)return new We(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(We.prototype),We.apply(e,a)}for(this._data=[],o=0;o<r;o++){if(t=arguments[o],!B4r(t))throw new TypeError(R4r("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}mf(We,"name","MultiSlice");tI(We.prototype,"ndims",function(){return this._data.length});tI(We.prototype,"data",function(){return this._data.slice()});mf(We.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(",")+")"});mf(We.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});iI.exports=We});var Ja=c((Vve,sI)=>{"use strict";var z4r=oI();sI.exports=z4r});var vI=c((Pve,nI)=>{"use strict";var ma=Ja();function V4r(r){switch(r.length){case 0:return new ma;case 1:return new ma(r[0]);case 2:return new ma(r[0],r[1]);case 3:return new ma(r[0],r[1],r[2]);case 4:return new ma(r[0],r[1],r[2],r[3]);case 5:return new ma(r[0],r[1],r[2],r[3],r[4]);case 6:return new ma(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new ma(r[0],r[1],r[2],r[3],r[4],r[5],r[6]);case 8:return new ma(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7]);case 9:return new ma(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8]);case 10:return new ma(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9]);default:return ma.apply(null,r)}}nI.exports=V4r});var ge=c((Fve,uI)=>{"use strict";var P4r=vI();uI.exports=P4r});var lI=c((Lve,fI)=>{"use strict";function F4r(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}fI.exports=F4r});var dI=c((Cve,cI)=>{"use strict";var L4r=Pe(),ho=lI();function C4r(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 ho();t=0}}else if(t>=e){if(a)return ho();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 ho();o=0}else{if(a&&o<-1)return ho();o=null}}else if(o>e){if(a)return ho();o=e}return new L4r(t,o,i)}cI.exports=C4r});var yI=c((Uve,pI)=>{"use strict";var U4r=dI();pI.exports=U4r});var gI=c((Mve,mI)=>{"use strict";function M4r(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}mI.exports=M4r});var xI=c((Gve,bI)=>{"use strict";var Ps=Pe(),hI=gI();function G4r(r,e,a){return r>=e?a?hI():new Ps(e,e,1):r<0?(r=e+r,r<0?a?hI():new Ps(0,0,1):new Ps(r,r+1,1)):new Ps(r,r+1,1)}bI.exports=G4r});var wI=c(($ve,qI)=>{"use strict";var $4r=xI();qI.exports=$4r});var EI=c((Yve,SI)=>{"use strict";var Y4r=ge(),W4r=Pe(),J4r=yI(),K4r=wI();function X4r(r,e,a){return r===null?new W4r(0,e,1):typeof r=="number"?K4r(r,e,a):J4r(r,e,a)}function H4r(r,e,a){var t,o,i,n;for(t=r.data,o=[],n=0;n<t.length;n++){if(i=X4r(t[n],e[n],a),i.code!==void 0)return i;o.push(i)}return Y4r(o)}SI.exports=H4r});var _I=c((Wve,AI)=>{"use strict";var Z4r=EI();AI.exports=Z4r});var TI=c((Jve,jI)=>{"use strict";function Q4r(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}jI.exports=Q4r});var II=c((Kve,OI)=>{"use strict";var r6r=TI();OI.exports=r6r});var DI=c((Xve,NI)=>{"use strict";var e6r=Qu();function a6r(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:e6r((t-a)/e)}NI.exports=a6r});var RI=c((Hve,kI)=>{"use strict";var t6r=DI();kI.exports=t6r});var zI=c((Zve,BI)=>{"use strict";var i6r=RI();function o6r(r){var e,a,t;for(e=r.data,a=[],t=0;t<e.length;t++)a.push(i6r(e[t]));return a}BI.exports=o6r});var PI=c((Qve,VI)=>{"use strict";var s6r=zI();VI.exports=s6r});var LI=c((rue,FI)=>{"use strict";function n6r(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}FI.exports=n6r});var UI=c((eue,CI)=>{"use strict";function v6r(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}CI.exports=v6r});var GI=c((aue,MI)=>{"use strict";var u6r=Na(),f6r=xe();function l6r(r,e,a,t,o){var i,n;return n=a.length,n===0?i=[0]:i=f6r(n),new r(e,u6r(e,0),a,i,0,t,{readonly:o})}MI.exports=l6r});var XI=c((tue,KI)=>{"use strict";var $I=_I(),c6r=II(),YI=PI(),gf=Kr(),d6r=xe(),WI=Wr(),p6r=Ye(),y6r=_e(),m6r=ya(),g6r=Ya(),h6r=oa(),hf=vt(),JI=cr(),b6r=LI(),x6r=UI(),q6r=GI();function w6r(r,e,a,t){var o,i,n,s,v,u,f,l,d,m;if(n=p6r(r),s=y6r(r,!0),o=m6r(r,!0),i=g6r(r),v=h6r(r),f=s.length,e.ndims!==f)throw new RangeError(JI("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,hf(r),s,o,i,v,{readonly:!t});if(u=c6r(e),m=$I(e,s,!0),m.code){if(a)throw new RangeError(JI("invalid argument. Slice exceeds array bounds. Array shape: (%s).",s.join(",")));m=$I(e,s,!1),d=YI(m),WI(gf(d,u))>0&&(d=d6r(d.length))}else d=YI(m);return WI(d)===0?q6r(l,n,gf(d,u),v,!t):(i=b6r(m,o,i),d=gf(d,u),d.length===0?new l(n,hf(r),[],[0],i,v,{readonly:!t}):(o=x6r(m,o,u),new l(n,hf(r),d,o,i,v,{readonly:!t})))}KI.exports=w6r});var pe=c((iue,HI)=>{"use strict";var S6r=XI();HI.exports=S6r});var QI=c((oue,ZI)=>{"use strict";var E6r=vo();function A6r(r){return E6r(null,r)}ZI.exports=A6r});var wi=c((sue,r7)=>{"use strict";var _6r=QI();r7.exports=_6r});var a7=c((nue,e7)=>{"use strict";function j6r(r){var e=r.ndims;return typeof e=="number"?e:r.shape.length}e7.exports=j6r});var Ba=c((vue,t7)=>{"use strict";var T6r=a7();t7.exports=T6r});var o7=c((uue,i7)=>{"use strict";var O6r=ge(),I6r=Pe(),N6r=pe(),D6r=wi(),k6r=Ba(),bf=cr();function R6r(r,e,a){var t,o,i;if(o=k6r(r),o===0)throw new TypeError(bf("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(bf("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e))}else if(i>=o)throw new RangeError(bf("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e));return t=D6r(o),t[i]=new I6r(null,null,-1),N6r(r,O6r(t),!0,a)}i7.exports=R6r});var Fs=c((fue,s7)=>{"use strict";var B6r=o7();s7.exports=B6r});var v7=c((lue,n7)=>{"use strict";var z6r=Ja(),V6r=Fs(),P6r=pe(),F6r=Ba();function L6r(r,e){return F6r(r)===0?P6r(r,new z6r,!0,e):V6r(r,-1,e)}n7.exports=L6r});var f7=c((cue,u7)=>{"use strict";var C6r=v7();u7.exports=C6r});var p7=c((due,d7)=>{"use strict";var l7=Ja(),U6r=Fs(),c7=pe(),M6r=Ba();function G6r(r,e){var a=M6r(r);return a===0?c7(r,new l7,!0,e):a===1?c7(r,new l7(null),!0,e):U6r(r,-2,e)}d7.exports=G6r});var m7=c((pue,y7)=>{"use strict";var $6r=p7();y7.exports=$6r});var h7=c((yue,g7)=>{"use strict";function Y6r(r,e){var a,t,o,i,n,s,v,u,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(v=r[o],a=v<0?-v:v,u=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]=v,e[s+1]=u,o+=1,i+=1}}g7.exports=Y6r});var x7=c((mue,b7)=>{"use strict";var W6r=qe(),J6r=qt(),K6r=Kr(),X6r=h7();function H6r(r,e){var a;return a=W6r(r.length),e=J6r(e),X6r(e,a),r=K6r(r,a),{sh:r,sx:e,idx:a}}b7.exports=H6r});var Hr=c((gue,q7)=>{"use strict";var Z6r=x7();q7.exports=Z6r});var S7=c((hue,w7)=>{"use strict";var Q6r={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};w7.exports=Q6r});var _7=c((bue,A7)=>{"use strict";var rSr=Ha(),E7=S7();function eSr(r){var e=rSr(r);return e===null?E7.BLOCK_SIZE_IN_ELEMENTS:E7.BLOCK_SIZE_IN_BYTES/e|0}A7.exports=eSr});var Zr=c((xue,j7)=>{"use strict";var aSr=_7();j7.exports=aSr});var I7=c((que,O7)=>{"use strict";var tSr=nt(),T7=Ze();function iSr(r,e){return typeof r[e]=="function"}function oSr(r){var e,a,t,o,i;for(a=T7(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 sSr(r){var e,a,t,o,i,n,s,v;for(e=r.data,a=r.accessors[0],t=r.accessors[1],i=T7(e.length/2),n=e.length-1,s=0;s<i;s++)v=n-s,o=a(e,s),t(e,s,a(e,v)),t(e,v,o);return e}function nSr(r){var e;return iSr(r,"reverse")?r.reverse():(e=tSr(r),e.accessorProtocol?sSr(e):oSr(r))}O7.exports=nSr});var Qr=c((wue,N7)=>{"use strict";var vSr=I7();N7.exports=vSr});var k7=c((Sue,D7)=>{"use strict";var uSr=Hr(),fSr=Zr(),lSr=Kr(),cSr=Qr();function dSr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w;for(w=uSr(r.shape,r.strides),f=w.sh,m=w.sx,u=cSr(w.idx),t=fSr(r.dtype),p=r.offset,o=r.data,n=m[0],i=r.accessors[0],S=f[1];S>0;)for(S<t?(d=S,S=0):(d=t,S-=t),v=p+S*m[1],b=f[0];b>0;)for(b<t?(l=b,b=0):(l=t,b-=t),y=v+b*m[0],s=m[1]-l*m[0],h=0;h<d;h++){for(g=0;g<l;g++)e.call(a,i(o,y),lSr([h,g],u),r.ref),y+=n;y+=s}}D7.exports=dSr});var B7=c((Eue,R7)=>{"use strict";var pSr=Hr(),ySr=Zr(),mSr=Kr(),gSr=Qr();function hSr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q;for(q=pSr(r.shape,r.strides),d=q.sh,g=q.sx,l=gSr(q.idx),t=ySr(r.dtype),h=r.offset,o=r.data,n=g[0],i=r.accessors[0],E=d[2];E>0;)for(E<t?(y=E,E=0):(y=t,E-=t),f=h+E*g[2],x=d[1];x>0;)for(x<t?(p=x,x=0):(p=t,x-=t),v=g[2]-p*g[1],u=f+x*g[1],_=d[0];_>0;)for(_<t?(m=_,_=0):(m=t,_-=t),b=u+_*g[0],s=g[1]-m*g[0],A=0;A<y;A++){for(w=0;w<p;w++){for(S=0;S<m;S++)e.call(a,i(o,b),mSr([A,w,S],l),r.ref),b+=n;b+=s}b+=v}}R7.exports=hSr});var V7=c((Aue,z7)=>{"use strict";var bSr=Hr(),xSr=Zr(),qSr=Kr(),wSr=Qr();function SSr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D;for(D=bSr(r.shape,r.strides),p=D.sh,S=D.sx,m=wSr(D.idx),t=xSr(r.dtype),w=r.offset,o=r.data,n=S[0],i=r.accessors[0],O=p[3];O>0;)for(O<t?(b=O,O=0):(b=t,O-=t),d=w+O*S[3],I=p[2];I>0;)for(I<t?(h=I,I=0):(h=t,I-=t),u=S[3]-h*S[2],l=d+I*S[2],T=p[1];T>0;)for(T<t?(g=T,T=0):(g=t,T-=t),v=S[2]-g*S[1],f=l+T*S[1],j=p[0];j>0;)for(j<t?(y=j,j=0):(y=t,j-=t),A=f+j*S[0],s=S[1]-y*S[0],q=0;q<b;q++){for(E=0;E<h;E++){for(x=0;x<g;x++){for(_=0;_<y;_++)e.call(a,i(o,A),qSr([q,E,x,_],m),r.ref),A+=n;A+=s}A+=v}A+=u}}z7.exports=SSr});var F7=c((_ue,P7)=>{"use strict";var ESr=Hr(),ASr=Zr(),_Sr=Kr(),jSr=Qr();function TSr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R;for(R=ESr(r.shape,r.strides),g=R.sh,_=R.sx,y=jSr(R.idx),t=ASr(r.dtype),x=r.offset,o=r.data,n=_[0],i=r.accessors[0],z=g[4];z>0;)for(z<t?(A=z,z=0):(A=t,z-=t),p=x+z*_[4],B=g[3];B>0;)for(B<t?(w=B,B=0):(w=t,B-=t),f=_[4]-w*_[3],m=p+B*_[3],N=g[2];N>0;)for(N<t?(S=N,N=0):(S=t,N-=t),u=_[3]-S*_[2],d=m+N*_[2],k=g[1];k>0;)for(k<t?(b=k,k=0):(b=t,k-=t),v=_[2]-b*_[1],l=d+k*_[1],D=g[0];D>0;)for(D<t?(h=D,D=0):(h=t,D-=t),E=l+D*_[0],s=_[1]-h*_[0],O=0;O<A;O++){for(I=0;I<w;I++){for(T=0;T<S;T++){for(j=0;j<b;j++){for(q=0;q<h;q++)e.call(a,i(o,E),_Sr([O,I,T,j,q],y),r.ref),E+=n;E+=s}E+=v}E+=u}E+=f}}P7.exports=TSr});var C7=c((jue,L7)=>{"use strict";var OSr=Hr(),ISr=Zr(),NSr=Kr(),DSr=Qr();function kSr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C;for(C=OSr(r.shape,r.strides),b=C.sh,q=C.sx,h=DSr(C.idx),t=ISr(r.dtype),j=r.offset,o=r.data,n=q[0],i=r.accessors[0],L=b[5];L>0;)for(L<t?(E=L,L=0):(E=t,L-=t),g=j+L*q[5],F=b[4];F>0;)for(F<t?(x=F,F=0):(x=t,F-=t),l=q[5]-x*q[4],y=g+F*q[4],P=b[3];P>0;)for(P<t?(_=P,P=0):(_=t,P-=t),f=q[4]-_*q[3],p=y+P*q[3],V=b[2];V>0;)for(V<t?(A=V,V=0):(A=t,V-=t),u=q[3]-A*q[2],m=p+V*q[2],R=b[1];R>0;)for(R<t?(w=R,R=0):(w=t,R-=t),v=q[2]-w*q[1],d=m+R*q[1],z=b[0];z>0;)for(z<t?(S=z,z=0):(S=t,z-=t),T=d+z*q[0],s=q[1]-S*q[0],B=0;B<E;B++){for(N=0;N<x;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++)e.call(a,i(o,T),NSr([B,N,k,D,O,I],h),r.ref),T+=n;T+=s}T+=v}T+=u}T+=f}T+=l}}L7.exports=kSr});var M7=c((Tue,U7)=>{"use strict";var RSr=Hr(),BSr=Zr(),zSr=Kr(),VSr=Qr();function PSr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$;for($=RSr(r.shape,r.strides),w=$.sh,I=$.sx,S=VSr($.idx),t=BSr(r.dtype),O=r.offset,o=r.data,n=I[0],i=r.accessors[0],Y=w[6];Y>0;)for(Y<t?(T=Y,Y=0):(T=t,Y-=t),b=O+Y*I[6],G=w[5];G>0;)for(G<t?(j=G,G=0):(j=t,G-=t),d=I[6]-j*I[5],h=b+G*I[5],M=w[4];M>0;)for(M<t?(q=M,M=0):(q=t,M-=t),l=I[5]-q*I[4],g=h+M*I[4],U=w[3];U>0;)for(U<t?(E=U,U=0):(E=t,U-=t),f=I[4]-E*I[3],y=g+U*I[3],C=w[2];C>0;)for(C<t?(x=C,C=0):(x=t,C-=t),u=I[3]-x*I[2],p=y+C*I[2],L=w[1];L>0;)for(L<t?(_=L,L=0):(_=t,L-=t),v=I[2]-_*I[1],m=p+L*I[1],F=w[0];F>0;)for(F<t?(A=F,F=0):(A=t,F-=t),D=m+F*I[0],s=I[1]-A*I[0],P=0;P<T;P++){for(V=0;V<j;V++){for(R=0;R<q;R++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(N=0;N<_;N++){for(k=0;k<A;k++)e.call(a,i(o,D),zSr([P,V,R,z,B,N,k],S),r.ref),D+=n;D+=s}D+=v}D+=u}D+=f}D+=l}D+=d}}U7.exports=PSr});var $7=c((Oue,G7)=>{"use strict";var FSr=Hr(),LSr=Zr(),CSr=Kr(),USr=Qr();function MSr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H;for(H=FSr(r.shape,r.strides),_=H.sh,k=H.sx,A=USr(H.idx),t=LSr(r.dtype),N=r.offset,o=r.data,n=k[0],i=r.accessors[0],X=_[7];X>0;)for(X<t?(D=X,X=0):(D=t,X-=t),w=N+X*k[7],K=_[6];K>0;)for(K<t?(O=K,K=0):(O=t,K-=t),m=k[7]-O*k[6],S=w+K*k[6],J=_[5];J>0;)for(J<t?(I=J,J=0):(I=t,J-=t),d=k[6]-I*k[5],b=S+J*k[5],W=_[4];W>0;)for(W<t?(T=W,W=0):(T=t,W-=t),l=k[5]-T*k[4],h=b+W*k[4],$=_[3];$>0;)for($<t?(j=$,$=0):(j=t,$-=t),f=k[4]-j*k[3],g=h+$*k[3],Y=_[2];Y>0;)for(Y<t?(q=Y,Y=0):(q=t,Y-=t),u=k[3]-q*k[2],y=g+Y*k[2],G=_[1];G>0;)for(G<t?(E=G,G=0):(E=t,G-=t),v=k[2]-E*k[1],p=y+G*k[1],M=_[0];M>0;)for(M<t?(x=M,M=0):(x=t,M-=t),B=p+M*k[0],s=k[1]-x*k[0],U=0;U<D;U++){for(C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(V=0;V<q;V++){for(R=0;R<E;R++){for(z=0;z<x;z++)e.call(a,i(o,B),CSr([U,C,L,F,P,V,R,z],A),r.ref),B+=n;B+=s}B+=v}B+=u}B+=f}B+=l}B+=d}B+=m}}G7.exports=MSr});var W7=c((Iue,Y7)=>{"use strict";var GSr=Hr(),$Sr=Zr(),YSr=Kr(),WSr=Qr();function JSr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er;for(er=GSr(r.shape,r.strides),E=er.sh,z=er.sx,x=WSr(er.idx),t=$Sr(r.dtype),R=r.offset,o=r.data,n=z[0],i=r.accessors[0],ar=E[8];ar>0;)for(ar<t?(B=ar,ar=0):(B=t,ar-=t),_=R+ar*z[8],rr=E[7];rr>0;)for(rr<t?(N=rr,rr=0):(N=t,rr-=t),p=z[8]-N*z[7],A=_+rr*z[7],Z=E[6];Z>0;)for(Z<t?(k=Z,Z=0):(k=t,Z-=t),m=z[7]-k*z[6],w=A+Z*z[6],Q=E[5];Q>0;)for(Q<t?(D=Q,Q=0):(D=t,Q-=t),d=z[6]-D*z[5],S=w+Q*z[5],H=E[4];H>0;)for(H<t?(O=H,H=0):(O=t,H-=t),l=z[5]-O*z[4],b=S+H*z[4],X=E[3];X>0;)for(X<t?(I=X,X=0):(I=t,X-=t),f=z[4]-I*z[3],h=b+X*z[3],K=E[2];K>0;)for(K<t?(T=K,K=0):(T=t,K-=t),u=z[3]-T*z[2],g=h+K*z[2],J=E[1];J>0;)for(J<t?(j=J,J=0):(j=t,J-=t),v=z[2]-j*z[1],y=g+J*z[1],W=E[0];W>0;)for(W<t?(q=W,W=0):(q=t,W-=t),V=y+W*z[0],s=z[1]-q*z[0],$=0;$<B;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++)e.call(a,i(o,V),YSr([$,Y,G,M,U,C,L,F,P],x),r.ref),V+=n;V+=s}V+=v}V+=u}V+=f}V+=l}V+=d}V+=m}V+=p}}Y7.exports=JSr});var K7=c((Nue,J7)=>{"use strict";var KSr=Hr(),XSr=Zr(),HSr=Kr(),ZSr=Qr();function QSr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr;for(nr=KSr(r.shape,r.strides),j=nr.sh,P=nr.sx,q=ZSr(nr.idx),t=XSr(r.dtype),F=r.offset,o=r.data,n=P[0],i=r.accessors[0],sr=j[9];sr>0;)for(sr<t?(V=sr,sr=0):(V=t,sr-=t),E=F+sr*P[9],or=j[8];or>0;)for(or<t?(R=or,or=0):(R=t,or-=t),y=P[9]-R*P[8],x=E+or*P[8],tr=j[7];tr>0;)for(tr<t?(z=tr,tr=0):(z=t,tr-=t),p=P[8]-z*P[7],_=x+tr*P[7],ir=j[6];ir>0;)for(ir<t?(B=ir,ir=0):(B=t,ir-=t),m=P[7]-B*P[6],A=_+ir*P[6],er=j[5];er>0;)for(er<t?(N=er,er=0):(N=t,er-=t),d=P[6]-N*P[5],w=A+er*P[5],ar=j[4];ar>0;)for(ar<t?(k=ar,ar=0):(k=t,ar-=t),l=P[5]-k*P[4],S=w+ar*P[4],rr=j[3];rr>0;)for(rr<t?(D=rr,rr=0):(D=t,rr-=t),f=P[4]-D*P[3],b=S+rr*P[3],Z=j[2];Z>0;)for(Z<t?(O=Z,Z=0):(O=t,Z-=t),u=P[3]-O*P[2],h=b+Z*P[2],Q=j[1];Q>0;)for(Q<t?(I=Q,Q=0):(I=t,Q-=t),v=P[2]-I*P[1],g=h+Q*P[1],H=j[0];H>0;)for(H<t?(T=H,H=0):(T=t,H-=t),L=g+H*P[0],s=P[1]-T*P[0],X=0;X<V;X++){for(K=0;K<R;K++){for(J=0;J<z;J++){for(W=0;W<B;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++)e.call(a,i(o,L),HSr([X,K,J,W,$,Y,G,M,U,C],q),r.ref),L+=n;L+=s}L+=v}L+=u}L+=f}L+=l}L+=d}L+=m}L+=p}L+=y}}J7.exports=QSr});var H7=c((Due,X7)=>{"use strict";var rEr=Hr(),eEr=Zr(),aEr=Kr(),tEr=Qr();function iEr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S;for(S=rEr(r.shape,r.strides),u=S.sh,d=S.sx,v=tEr(S.idx),t=eEr(r.dtype),m=r.offset,o=r.data,i=d[0],b=u[1];b>0;)for(b<t?(l=b,b=0):(l=t,b-=t),s=m+b*d[1],h=u[0];h>0;)for(h<t?(f=h,h=0):(f=t,h-=t),p=s+h*d[0],n=d[1]-f*d[0],g=0;g<l;g++){for(y=0;y<f;y++)e.call(a,o[p],aEr([g,y],v),r.ref),p+=i;p+=n}}X7.exports=iEr});var Q7=c((kue,Z7)=>{"use strict";var oEr=Hr(),sEr=Zr(),nEr=Kr(),vEr=Qr();function uEr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E;for(E=oEr(r.shape,r.strides),l=E.sh,y=E.sx,f=vEr(E.idx),t=sEr(r.dtype),g=r.offset,o=r.data,i=y[0],x=l[2];x>0;)for(x<t?(p=x,x=0):(p=t,x-=t),u=g+x*y[2],_=l[1];_>0;)for(_<t?(m=_,_=0):(m=t,_-=t),s=y[2]-m*y[1],v=u+_*y[1],A=l[0];A>0;)for(A<t?(d=A,A=0):(d=t,A-=t),h=v+A*y[0],n=y[1]-d*y[0],w=0;w<p;w++){for(S=0;S<m;S++){for(b=0;b<d;b++)e.call(a,o[h],nEr([w,S,b],f),r.ref),h+=i;h+=n}h+=s}}Z7.exports=uEr});var eN=c((Rue,rN)=>{"use strict";var fEr=Hr(),lEr=Zr(),cEr=Kr(),dEr=Qr();function pEr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O;for(O=fEr(r.shape,r.strides),m=O.sh,b=O.sx,d=dEr(O.idx),t=lEr(r.dtype),S=r.offset,o=r.data,i=b[0],I=m[3];I>0;)for(I<t?(h=I,I=0):(h=t,I-=t),l=S+I*b[3],T=m[2];T>0;)for(T<t?(g=T,T=0):(g=t,T-=t),v=b[3]-g*b[2],f=l+T*b[2],j=m[1];j>0;)for(j<t?(y=j,j=0):(y=t,j-=t),s=b[2]-y*b[1],u=f+j*b[1],q=m[0];q>0;)for(q<t?(p=q,q=0):(p=t,q-=t),w=u+q*b[0],n=b[1]-p*b[0],E=0;E<h;E++){for(x=0;x<g;x++){for(_=0;_<y;_++){for(A=0;A<p;A++)e.call(a,o[w],cEr([E,x,_,A],d),r.ref),w+=i;w+=n}w+=s}w+=v}}rN.exports=pEr});var tN=c((Bue,aN)=>{"use strict";var yEr=Hr(),mEr=Zr(),gEr=Kr(),hEr=Qr();function bEr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z;for(z=yEr(r.shape,r.strides),y=z.sh,A=z.sx,p=hEr(z.idx),t=mEr(r.dtype),_=r.offset,o=r.data,i=A[0],B=y[4];B>0;)for(B<t?(w=B,B=0):(w=t,B-=t),m=_+B*A[4],N=y[3];N>0;)for(N<t?(S=N,N=0):(S=t,N-=t),u=A[4]-S*A[3],d=m+N*A[3],k=y[2];k>0;)for(k<t?(b=k,k=0):(b=t,k-=t),v=A[3]-b*A[2],l=d+k*A[2],D=y[1];D>0;)for(D<t?(h=D,D=0):(h=t,D-=t),s=A[2]-h*A[1],f=l+D*A[1],O=y[0];O>0;)for(O<t?(g=O,O=0):(g=t,O-=t),x=f+O*A[0],n=A[1]-g*A[0],I=0;I<w;I++){for(T=0;T<S;T++){for(j=0;j<b;j++){for(q=0;q<h;q++){for(E=0;E<g;E++)e.call(a,o[x],gEr([I,T,j,q,E],p),r.ref),x+=i;x+=n}x+=s}x+=v}x+=u}}aN.exports=bEr});var oN=c((zue,iN)=>{"use strict";var xEr=Hr(),qEr=Zr(),wEr=Kr(),SEr=Qr();function EEr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L;for(L=xEr(r.shape,r.strides),h=L.sh,E=L.sx,g=SEr(L.idx),t=qEr(r.dtype),q=r.offset,o=r.data,i=E[0],F=h[5];F>0;)for(F<t?(x=F,F=0):(x=t,F-=t),y=q+F*E[5],P=h[4];P>0;)for(P<t?(_=P,P=0):(_=t,P-=t),f=E[5]-_*E[4],p=y+P*E[4],V=h[3];V>0;)for(V<t?(A=V,V=0):(A=t,V-=t),u=E[4]-A*E[3],m=p+V*E[3],R=h[2];R>0;)for(R<t?(w=R,R=0):(w=t,R-=t),v=E[3]-w*E[2],d=m+R*E[2],z=h[1];z>0;)for(z<t?(S=z,z=0):(S=t,z-=t),s=E[2]-S*E[1],l=d+z*E[1],B=h[0];B>0;)for(B<t?(b=B,B=0):(b=t,B-=t),j=l+B*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(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<b;T++)e.call(a,o[j],wEr([N,k,D,O,I,T],g),r.ref),j+=i;j+=n}j+=s}j+=v}j+=u}j+=f}}iN.exports=EEr});var nN=c((Vue,sN)=>{"use strict";var AEr=Hr(),_Er=Zr(),jEr=Kr(),TEr=Qr();function OEr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y;for(Y=AEr(r.shape,r.strides),S=Y.sh,T=Y.sx,b=TEr(Y.idx),t=_Er(r.dtype),I=r.offset,o=r.data,i=T[0],G=S[6];G>0;)for(G<t?(j=G,G=0):(j=t,G-=t),h=I+G*T[6],M=S[5];M>0;)for(M<t?(q=M,M=0):(q=t,M-=t),l=T[6]-q*T[5],g=h+M*T[5],U=S[4];U>0;)for(U<t?(E=U,U=0):(E=t,U-=t),f=T[5]-E*T[4],y=g+U*T[4],C=S[3];C>0;)for(C<t?(x=C,C=0):(x=t,C-=t),u=T[4]-x*T[3],p=y+C*T[3],L=S[2];L>0;)for(L<t?(_=L,L=0):(_=t,L-=t),v=T[3]-_*T[2],m=p+L*T[2],F=S[1];F>0;)for(F<t?(A=F,F=0):(A=t,F-=t),s=T[2]-A*T[1],d=m+F*T[1],P=S[0];P>0;)for(P<t?(w=P,P=0):(w=t,P-=t),O=d+P*T[0],n=T[1]-w*T[0],V=0;V<j;V++){for(R=0;R<q;R++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)e.call(a,o[O],jEr([V,R,z,B,N,k,D],b),r.ref),O+=i;O+=n}O+=s}O+=v}O+=u}O+=f}O+=l}}sN.exports=OEr});var uN=c((Pue,vN)=>{"use strict";var IEr=Hr(),NEr=Zr(),DEr=Kr(),kEr=Qr();function REr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X;for(X=IEr(r.shape,r.strides),A=X.sh,D=X.sx,w=kEr(X.idx),t=NEr(r.dtype),k=r.offset,o=r.data,i=D[0],K=A[7];K>0;)for(K<t?(O=K,K=0):(O=t,K-=t),S=k+K*D[7],J=A[6];J>0;)for(J<t?(I=J,J=0):(I=t,J-=t),d=D[7]-I*D[6],b=S+J*D[6],W=A[5];W>0;)for(W<t?(T=W,W=0):(T=t,W-=t),l=D[6]-T*D[5],h=b+W*D[5],$=A[4];$>0;)for($<t?(j=$,$=0):(j=t,$-=t),f=D[5]-j*D[4],g=h+$*D[4],Y=A[3];Y>0;)for(Y<t?(q=Y,Y=0):(q=t,Y-=t),u=D[4]-q*D[3],y=g+Y*D[3],G=A[2];G>0;)for(G<t?(E=G,G=0):(E=t,G-=t),v=D[3]-E*D[2],p=y+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],m=p+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],C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(V=0;V<q;V++){for(R=0;R<E;R++){for(z=0;z<x;z++){for(B=0;B<_;B++)e.call(a,o[N],DEr([C,L,F,P,V,R,z,B],w),r.ref),N+=i;N+=n}N+=s}N+=v}N+=u}N+=f}N+=l}N+=d}}vN.exports=REr});var lN=c((Fue,fN)=>{"use strict";var BEr=Hr(),zEr=Zr(),VEr=Kr(),PEr=Qr();function FEr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar;for(ar=BEr(r.shape,r.strides),x=ar.sh,B=ar.sx,_=PEr(ar.idx),t=zEr(r.dtype),z=r.offset,o=r.data,i=B[0],rr=x[8];rr>0;)for(rr<t?(N=rr,rr=0):(N=t,rr-=t),A=z+rr*B[8],Z=x[7];Z>0;)for(Z<t?(k=Z,Z=0):(k=t,Z-=t),m=B[8]-k*B[7],w=A+Z*B[7],Q=x[6];Q>0;)for(Q<t?(D=Q,Q=0):(D=t,Q-=t),d=B[7]-D*B[6],S=w+Q*B[6],H=x[5];H>0;)for(H<t?(O=H,H=0):(O=t,H-=t),l=B[6]-O*B[5],b=S+H*B[5],X=x[4];X>0;)for(X<t?(I=X,X=0):(I=t,X-=t),f=B[5]-I*B[4],h=b+X*B[4],K=x[3];K>0;)for(K<t?(T=K,K=0):(T=t,K-=t),u=B[4]-T*B[3],g=h+K*B[3],J=x[2];J>0;)for(J<t?(j=J,J=0):(j=t,J-=t),v=B[3]-j*B[2],y=g+J*B[2],W=x[1];W>0;)for(W<t?(q=W,W=0):(q=t,W-=t),s=B[2]-q*B[1],p=y+W*B[1],$=x[0];$>0;)for($<t?(E=$,$=0):(E=t,$-=t),R=p+$*B[0],n=B[1]-E*B[0],Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(V=0;V<E;V++)e.call(a,o[R],VEr([Y,G,M,U,C,L,F,P,V],_),r.ref),R+=i;R+=n}R+=s}R+=v}R+=u}R+=f}R+=l}R+=d}R+=m}}fN.exports=FEr});var dN=c((Lue,cN)=>{"use strict";var LEr=Hr(),CEr=Zr(),UEr=Kr(),MEr=Qr();function GEr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr;for(sr=LEr(r.shape,r.strides),q=sr.sh,V=sr.sx,E=MEr(sr.idx),t=CEr(r.dtype),P=r.offset,o=r.data,i=V[0],or=q[9];or>0;)for(or<t?(R=or,or=0):(R=t,or-=t),x=P+or*V[9],tr=q[8];tr>0;)for(tr<t?(z=tr,tr=0):(z=t,tr-=t),p=V[9]-z*V[8],_=x+tr*V[8],ir=q[7];ir>0;)for(ir<t?(B=ir,ir=0):(B=t,ir-=t),m=V[8]-B*V[7],A=_+ir*V[7],er=q[6];er>0;)for(er<t?(N=er,er=0):(N=t,er-=t),d=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],b=S+rr*V[4],Z=q[3];Z>0;)for(Z<t?(O=Z,Z=0):(O=t,Z-=t),u=V[4]-O*V[3],h=b+Z*V[3],Q=q[2];Q>0;)for(Q<t?(I=Q,Q=0):(I=t,Q-=t),v=V[3]-I*V[2],g=h+Q*V[2],H=q[1];H>0;)for(H<t?(T=H,H=0):(T=t,H-=t),s=V[2]-T*V[1],y=g+H*V[1],X=q[0];X>0;)for(X<t?(j=X,X=0):(j=t,X-=t),F=y+X*V[0],n=V[1]-j*V[0],K=0;K<R;K++){for(J=0;J<z;J++){for(W=0;W<B;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++)e.call(a,o[F],UEr([K,J,W,$,Y,G,M,U,C,L],E),r.ref),F+=i;F+=n}F+=s}F+=v}F+=u}F+=f}F+=l}F+=d}F+=m}F+=p}}cN.exports=GEr});var yN=c((Cue,pN)=>{"use strict";function $Er(r,e,a){e.call(a,r.accessors[0](r.data,r.offset),[],r.ref)}pN.exports=$Er});var gN=c((Uue,mN)=>{"use strict";function YEr(r,e,a){var t,o,i,n,s,v;for(n=r.shape[0],i=r.strides[0],s=r.offset,t=r.data,o=r.accessors[0],v=0;v<n;v++)e.call(a,o(t,s),[v],r.ref),s+=i}mN.exports=YEr});var bN=c((Mue,hN)=>{"use strict";var WEr=qe(),JEr=Qr(),KEr=Kr();function XEr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p;for(v=r.shape,l=r.strides,s=WEr(v.length),r.order==="row-major"?(u=v[1],f=v[0],i=l[1],n=l[0]-u*l[1]):(u=v[0],f=v[1],i=l[0],n=l[1]-u*l[0],s=JEr(s)),d=r.offset,t=r.data,o=r.accessors[0],p=0;p<f;p++){for(m=0;m<u;m++)e.call(a,o(t,d),KEr([p,m],s),r.ref),d+=i;d+=n}}hN.exports=XEr});var qN=c((Gue,xN)=>{"use strict";var HEr=qe(),ZEr=Qr(),QEr=Kr();function rAr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h;for(u=r.shape,m=r.strides,v=HEr(u.length),r.order==="row-major"?(f=u[2],l=u[1],d=u[0],i=m[2],n=m[1]-f*m[2],s=m[0]-l*m[1]):(f=u[0],l=u[1],d=u[2],i=m[0],n=m[1]-f*m[0],s=m[2]-l*m[1],v=ZEr(v)),p=r.offset,t=r.data,o=r.accessors[0],h=0;h<d;h++){for(g=0;g<l;g++){for(y=0;y<f;y++)e.call(a,o(t,p),QEr([h,g,y],v),r.ref),p+=i;p+=n}p+=s}}xN.exports=rAr});var SN=c(($ue,wN)=>{"use strict";var eAr=qe(),aAr=Qr(),tAr=Kr();function iAr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w;for(f=r.shape,y=r.strides,u=eAr(f.length),r.order==="row-major"?(l=f[3],d=f[2],m=f[1],p=f[0],i=y[3],n=y[2]-l*y[3],s=y[1]-d*y[2],v=y[0]-m*y[1]):(l=f[0],d=f[1],m=f[2],p=f[3],i=y[0],n=y[1]-l*y[0],s=y[2]-d*y[1],v=y[3]-m*y[2],u=aAr(u)),g=r.offset,t=r.data,o=r.accessors[0],w=0;w<p;w++){for(S=0;S<m;S++){for(b=0;b<d;b++){for(h=0;h<l;h++)e.call(a,o(t,g),tAr([w,S,b,h],u),r.ref),g+=i;g+=n}g+=s}g+=v}}wN.exports=iAr});var AN=c((Yue,EN)=>{"use strict";var oAr=qe(),sAr=Qr(),nAr=Kr();function vAr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x;for(l=r.shape,h=r.strides,f=oAr(l.length),r.order==="row-major"?(d=l[4],m=l[3],p=l[2],y=l[1],g=l[0],i=h[4],n=h[3]-d*h[4],s=h[2]-m*h[3],v=h[1]-p*h[2],u=h[0]-y*h[1]):(d=l[0],m=l[1],p=l[2],y=l[3],g=l[4],i=h[0],n=h[1]-d*h[0],s=h[2]-m*h[1],v=h[3]-p*h[2],u=h[4]-y*h[3],f=sAr(f)),b=r.offset,t=r.data,o=r.accessors[0],x=0;x<g;x++){for(_=0;_<y;_++){for(A=0;A<p;A++){for(w=0;w<m;w++){for(S=0;S<d;S++)e.call(a,o(t,b),nAr([x,_,A,w,S],f),r.ref),b+=i;b+=n}b+=s}b+=v}b+=u}}EN.exports=vAr});var jN=c((Wue,_N)=>{"use strict";var uAr=qe(),fAr=Qr(),lAr=Kr();function cAr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j;for(d=r.shape,S=r.strides,l=uAr(d.length),r.order==="row-major"?(m=d[5],p=d[4],y=d[3],g=d[2],h=d[1],b=d[0],i=S[5],n=S[4]-m*S[5],s=S[3]-p*S[4],v=S[2]-y*S[3],u=S[1]-g*S[2],f=S[0]-h*S[1]):(m=d[0],p=d[1],y=d[2],g=d[3],h=d[4],b=d[5],i=S[0],n=S[1]-m*S[0],s=S[2]-p*S[1],v=S[3]-y*S[2],u=S[4]-g*S[3],f=S[5]-h*S[4],l=fAr(l)),w=r.offset,t=r.data,o=r.accessors[0],j=0;j<b;j++){for(q=0;q<h;q++){for(E=0;E<g;E++){for(x=0;x<y;x++){for(_=0;_<p;_++){for(A=0;A<m;A++)e.call(a,o(t,w),lAr([j,q,E,x,_,A],l),r.ref),w+=i;w+=n}w+=s}w+=v}w+=u}w+=f}}_N.exports=cAr});var ON=c((Jue,TN)=>{"use strict";var dAr=qe(),pAr=Qr(),yAr=Kr();function mAr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O;for(m=r.shape,A=r.strides,d=dAr(m.length),r.order==="row-major"?(p=m[6],y=m[5],g=m[4],h=m[3],b=m[2],S=m[1],w=m[0],i=A[6],n=A[5]-p*A[6],s=A[4]-y*A[5],v=A[3]-g*A[4],u=A[2]-h*A[3],f=A[1]-b*A[2],l=A[0]-S*A[1]):(p=m[0],y=m[1],g=m[2],h=m[3],b=m[4],S=m[5],w=m[6],i=A[0],n=A[1]-p*A[0],s=A[2]-y*A[1],v=A[3]-g*A[2],u=A[4]-h*A[3],f=A[5]-b*A[4],l=A[6]-S*A[5],d=pAr(d)),_=r.offset,t=r.data,o=r.accessors[0],O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<b;T++){for(j=0;j<h;j++){for(q=0;q<g;q++){for(E=0;E<y;E++){for(x=0;x<p;x++)e.call(a,o(t,_),yAr([O,I,T,j,q,E,x],d),r.ref),_+=i;_+=n}_+=s}_+=v}_+=u}_+=f}_+=l}}TN.exports=mAr});var NN=c((Kue,IN)=>{"use strict";var gAr=qe(),hAr=Qr(),bAr=Kr();function xAr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N;for(p=r.shape,x=r.strides,m=gAr(p.length),r.order==="row-major"?(y=p[7],g=p[6],h=p[5],b=p[4],S=p[3],w=p[2],A=p[1],_=p[0],i=x[7],n=x[6]-y*x[7],s=x[5]-g*x[6],v=x[4]-h*x[5],u=x[3]-b*x[4],f=x[2]-S*x[3],l=x[1]-w*x[2],d=x[0]-A*x[1]):(y=p[0],g=p[1],h=p[2],b=p[3],S=p[4],w=p[5],A=p[6],_=p[7],i=x[0],n=x[1]-y*x[0],s=x[2]-g*x[1],v=x[3]-h*x[2],u=x[4]-b*x[3],f=x[5]-S*x[4],l=x[6]-w*x[5],d=x[7]-A*x[6],m=hAr(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(O=0;O<S;O++){for(I=0;I<b;I++){for(T=0;T<h;T++){for(j=0;j<g;j++){for(q=0;q<y;q++)e.call(a,o(t,E),bAr([N,k,D,O,I,T,j,q],m),r.ref),E+=i;E+=n}E+=s}E+=v}E+=u}E+=f}E+=l}E+=d}}IN.exports=xAr});var kN=c((Xue,DN)=>{"use strict";var qAr=qe(),wAr=Qr(),SAr=Kr();function EAr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R;for(y=r.shape,q=r.strides,p=qAr(y.length),r.order==="row-major"?(g=y[8],h=y[7],b=y[6],S=y[5],w=y[4],A=y[3],_=y[2],x=y[1],E=y[0],i=q[8],n=q[7]-g*q[8],s=q[6]-h*q[7],v=q[5]-b*q[6],u=q[4]-S*q[5],f=q[3]-w*q[4],l=q[2]-A*q[3],d=q[1]-_*q[2],m=q[0]-x*q[1]):(g=y[0],h=y[1],b=y[2],S=y[3],w=y[4],A=y[5],_=y[6],x=y[7],E=y[8],i=q[0],n=q[1]-g*q[0],s=q[2]-h*q[1],v=q[3]-b*q[2],u=q[4]-S*q[3],f=q[5]-w*q[4],l=q[6]-A*q[5],d=q[7]-_*q[6],m=q[8]-x*q[7],p=wAr(p)),j=r.offset,t=r.data,o=r.accessors[0],R=0;R<E;R++){for(z=0;z<x;z++){for(B=0;B<_;B++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(O=0;O<b;O++){for(I=0;I<h;I++){for(T=0;T<g;T++)e.call(a,o(t,j),SAr([R,z,B,N,k,D,O,I,T],p),r.ref),j+=i;j+=n}j+=s}j+=v}j+=u}j+=f}j+=l}j+=d}j+=m}}DN.exports=EAr});var BN=c((Hue,RN)=>{"use strict";var AAr=qe(),_Ar=Qr(),jAr=Kr();function TAr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F;for(g=r.shape,T=r.strides,y=AAr(g.length),r.order==="row-major"?(h=g[9],b=g[8],S=g[7],w=g[6],A=g[5],_=g[4],x=g[3],E=g[2],q=g[1],j=g[0],i=T[9],n=T[8]-h*T[9],s=T[7]-b*T[8],v=T[6]-S*T[7],u=T[5]-w*T[6],f=T[4]-A*T[5],l=T[3]-_*T[4],d=T[2]-x*T[3],m=T[1]-E*T[2],p=T[0]-q*T[1]):(h=g[0],b=g[1],S=g[2],w=g[3],A=g[4],_=g[5],x=g[6],E=g[7],q=g[8],j=g[9],i=T[0],n=T[1]-h*T[0],s=T[2]-b*T[1],v=T[3]-S*T[2],u=T[4]-w*T[3],f=T[5]-A*T[4],l=T[6]-_*T[5],d=T[7]-x*T[6],m=T[8]-E*T[7],p=T[9]-q*T[8],y=_Ar(y)),I=r.offset,t=r.data,o=r.accessors[0],F=0;F<j;F++){for(P=0;P<q;P++){for(V=0;V<E;V++){for(R=0;R<x;R++){for(z=0;z<_;z++){for(B=0;B<A;B++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(O=0;O<h;O++)e.call(a,o(t,I),jAr([F,P,V,R,z,B,N,k,D,O],y),r.ref),I+=i;I+=n}I+=s}I+=v}I+=u}I+=f}I+=l}I+=d}I+=m}I+=p}}RN.exports=TAr});var xf=c((Zue,zN)=>{"use strict";var OAr=cr(),Ls=rf();function IAr(r,e,a,t,o,i,n){var s,v,u,f,l;for(s=r.length,v=1,l=0;l<s;l++)v*=r[l];if(i==="clamp")o<0?o=0:o>=v&&(o=v-1);else if(i==="wrap")o<0?(o+=v,o<0&&(o%=v,o!==0&&(o+=v))):o>=v&&(o-=v,o>=v&&(o%=v));else if(i==="normalize"&&o<0&&(o+=v),o<0||o>=v)throw new RangeError(OAr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",v,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?(u=Ls(o/f),o-=u*f,n[l]=r[l]-1+u):(u=Ls(o/f),o-=u*f,n[l]=u);return n}for(l=0;l<s;l++)f=e[l],f<0?(u=Ls(o/f),o-=u*f,n[l]=r[l]-1+u):(u=Ls(o/f),o-=u*f,n[l]=u);return n}zN.exports=IAr});var PN=c((Que,VN)=>{"use strict";var NAr=xe(),DAr=xf();function kAr(r,e,a,t,o,i){return DAr(r,e,a,t,o,i,NAr(r.length))}VN.exports=kAr});var Si=c((rfe,LN)=>{"use strict";var RAr=Tr(),FN=PN(),BAr=xf();RAr(FN,"assign",BAr);LN.exports=FN});var MN=c((efe,UN)=>{"use strict";var zAr=Wr(),VAr=ia(),PAr=Si(),CN="throw";function FAr(r,e,a){var t,o,i,n,s,v,u,f,l,d;for(v=r.shape,i=zAr(v),t=r.data,u=r.strides,f=r.offset,o=r.order,n=r.accessors[0],d=0;d<i;d++)l=VAr(v,u,f,o,d,CN),s=PAr(v,u,0,o,d,CN),e.call(a,n(t,l),s,r.ref)}UN.exports=FAr});var $N=c((afe,GN)=>{"use strict";function LAr(r,e,a){e.call(a,r.data[r.offset],[],r.ref)}GN.exports=LAr});var WN=c((tfe,YN)=>{"use strict";function CAr(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}YN.exports=CAr});var KN=c((ife,JN)=>{"use strict";var UAr=qe(),MAr=Qr(),GAr=Kr();function $Ar(r,e,a){var t,o,i,n,s,v,u,f,l,d,m;for(s=r.shape,f=r.strides,n=UAr(s.length),r.order==="row-major"?(v=s[1],u=s[0],o=f[1],i=f[0]-v*f[1]):(v=s[0],u=s[1],o=f[0],i=f[1]-v*f[0],n=MAr(n)),l=r.offset,t=r.data,m=0;m<u;m++){for(d=0;d<v;d++)e.call(a,t[l],GAr([m,d],n),r.ref),l+=o;l+=i}}JN.exports=$Ar});var HN=c((ofe,XN)=>{"use strict";var YAr=qe(),WAr=Qr(),JAr=Kr();function KAr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g;for(v=r.shape,d=r.strides,s=YAr(v.length),r.order==="row-major"?(u=v[2],f=v[1],l=v[0],o=d[2],i=d[1]-u*d[2],n=d[0]-f*d[1]):(u=v[0],f=v[1],l=v[2],o=d[0],i=d[1]-u*d[0],n=d[2]-f*d[1],s=WAr(s)),m=r.offset,t=r.data,g=0;g<l;g++){for(y=0;y<f;y++){for(p=0;p<u;p++)e.call(a,t[m],JAr([g,y,p],s),r.ref),m+=o;m+=i}m+=n}}XN.exports=KAr});var QN=c((sfe,ZN)=>{"use strict";var XAr=qe(),HAr=Qr(),ZAr=Kr();function QAr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S;for(u=r.shape,p=r.strides,v=XAr(u.length),r.order==="row-major"?(f=u[3],l=u[2],d=u[1],m=u[0],o=p[3],i=p[2]-f*p[3],n=p[1]-l*p[2],s=p[0]-d*p[1]):(f=u[0],l=u[1],d=u[2],m=u[3],o=p[0],i=p[1]-f*p[0],n=p[2]-l*p[1],s=p[3]-d*p[2],v=HAr(v)),y=r.offset,t=r.data,S=0;S<m;S++){for(b=0;b<d;b++){for(h=0;h<l;h++){for(g=0;g<f;g++)e.call(a,t[y],ZAr([S,b,h,g],v),r.ref),y+=o;y+=i}y+=n}y+=s}}ZN.exports=QAr});var eD=c((nfe,rD)=>{"use strict";var r5r=qe(),e5r=Qr(),a5r=Kr();function t5r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_;for(f=r.shape,g=r.strides,u=r5r(f.length),r.order==="row-major"?(l=f[4],d=f[3],m=f[2],p=f[1],y=f[0],o=g[4],i=g[3]-l*g[4],n=g[2]-d*g[3],s=g[1]-m*g[2],v=g[0]-p*g[1]):(l=f[0],d=f[1],m=f[2],p=f[3],y=f[4],o=g[0],i=g[1]-l*g[0],n=g[2]-d*g[1],s=g[3]-m*g[2],v=g[4]-p*g[3],u=e5r(u)),h=r.offset,t=r.data,_=0;_<y;_++){for(A=0;A<p;A++){for(w=0;w<m;w++){for(S=0;S<d;S++){for(b=0;b<l;b++)e.call(a,t[h],a5r([_,A,w,S,b],u),r.ref),h+=o;h+=i}h+=n}h+=s}h+=v}}rD.exports=t5r});var tD=c((vfe,aD)=>{"use strict";var i5r=qe(),o5r=Qr(),s5r=Kr();function n5r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q;for(l=r.shape,b=r.strides,f=i5r(l.length),r.order==="row-major"?(d=l[5],m=l[4],p=l[3],y=l[2],g=l[1],h=l[0],o=b[5],i=b[4]-d*b[5],n=b[3]-m*b[4],s=b[2]-p*b[3],v=b[1]-y*b[2],u=b[0]-g*b[1]):(d=l[0],m=l[1],p=l[2],y=l[3],g=l[4],h=l[5],o=b[0],i=b[1]-d*b[0],n=b[2]-m*b[1],s=b[3]-p*b[2],v=b[4]-y*b[3],u=b[5]-g*b[4],f=o5r(f)),S=r.offset,t=r.data,q=0;q<h;q++){for(E=0;E<g;E++){for(x=0;x<y;x++){for(_=0;_<p;_++){for(A=0;A<m;A++){for(w=0;w<d;w++)e.call(a,t[S],s5r([q,E,x,_,A,w],f),r.ref),S+=o;S+=i}S+=n}S+=s}S+=v}S+=u}}aD.exports=n5r});var oD=c((ufe,iD)=>{"use strict";var v5r=qe(),u5r=Qr(),f5r=Kr();function l5r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I;for(d=r.shape,w=r.strides,l=v5r(d.length),r.order==="row-major"?(m=d[6],p=d[5],y=d[4],g=d[3],h=d[2],b=d[1],S=d[0],o=w[6],i=w[5]-m*w[6],n=w[4]-p*w[5],s=w[3]-y*w[4],v=w[2]-g*w[3],u=w[1]-h*w[2],f=w[0]-b*w[1]):(m=d[0],p=d[1],y=d[2],g=d[3],h=d[4],b=d[5],S=d[6],o=w[0],i=w[1]-m*w[0],n=w[2]-p*w[1],s=w[3]-y*w[2],v=w[4]-g*w[3],u=w[5]-h*w[4],f=w[6]-b*w[5],l=u5r(l)),A=r.offset,t=r.data,I=0;I<S;I++){for(T=0;T<b;T++){for(j=0;j<h;j++){for(q=0;q<g;q++){for(E=0;E<y;E++){for(x=0;x<p;x++){for(_=0;_<m;_++)e.call(a,t[A],f5r([I,T,j,q,E,x,_],l),r.ref),A+=o;A+=i}A+=n}A+=s}A+=v}A+=u}A+=f}}iD.exports=l5r});var nD=c((ffe,sD)=>{"use strict";var c5r=qe(),d5r=Qr(),p5r=Kr();function y5r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k;for(m=r.shape,_=r.strides,d=c5r(m.length),r.order==="row-major"?(p=m[7],y=m[6],g=m[5],h=m[4],b=m[3],S=m[2],w=m[1],A=m[0],o=_[7],i=_[6]-p*_[7],n=_[5]-y*_[6],s=_[4]-g*_[5],v=_[3]-h*_[4],u=_[2]-b*_[3],f=_[1]-S*_[2],l=_[0]-w*_[1]):(p=m[0],y=m[1],g=m[2],h=m[3],b=m[4],S=m[5],w=m[6],A=m[7],o=_[0],i=_[1]-p*_[0],n=_[2]-y*_[1],s=_[3]-g*_[2],v=_[4]-h*_[3],u=_[5]-b*_[4],f=_[6]-S*_[5],l=_[7]-w*_[6],d=d5r(d)),x=r.offset,t=r.data,k=0;k<A;k++){for(D=0;D<w;D++){for(O=0;O<S;O++){for(I=0;I<b;I++){for(T=0;T<h;T++){for(j=0;j<g;j++){for(q=0;q<y;q++){for(E=0;E<p;E++)e.call(a,t[x],p5r([k,D,O,I,T,j,q,E],d),r.ref),x+=o;x+=i}x+=n}x+=s}x+=v}x+=u}x+=f}x+=l}}sD.exports=y5r});var uD=c((lfe,vD)=>{"use strict";var m5r=qe(),g5r=Qr(),h5r=Kr();function b5r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z;for(p=r.shape,E=r.strides,m=m5r(p.length),r.order==="row-major"?(y=p[8],g=p[7],h=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]-y*E[8],n=E[6]-g*E[7],s=E[5]-h*E[6],v=E[4]-b*E[5],u=E[3]-S*E[4],f=E[2]-w*E[3],l=E[1]-A*E[2],d=E[0]-_*E[1]):(y=p[0],g=p[1],h=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]-y*E[0],n=E[2]-g*E[1],s=E[3]-h*E[2],v=E[4]-b*E[3],u=E[5]-S*E[4],f=E[6]-w*E[5],l=E[7]-A*E[6],d=E[8]-_*E[7],m=g5r(m)),q=r.offset,t=r.data,z=0;z<x;z++){for(B=0;B<_;B++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(O=0;O<b;O++){for(I=0;I<h;I++){for(T=0;T<g;T++){for(j=0;j<y;j++)e.call(a,t[q],h5r([z,B,N,k,D,O,I,T,j],m),r.ref),q+=o;q+=i}q+=n}q+=s}q+=v}q+=u}q+=f}q+=l}q+=d}}vD.exports=b5r});var lD=c((cfe,fD)=>{"use strict";var x5r=qe(),q5r=Qr(),w5r=Kr();function S5r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P;for(y=r.shape,j=r.strides,p=x5r(y.length),r.order==="row-major"?(g=y[9],h=y[8],b=y[7],S=y[6],w=y[5],A=y[4],_=y[3],x=y[2],E=y[1],q=y[0],o=j[9],i=j[8]-g*j[9],n=j[7]-h*j[8],s=j[6]-b*j[7],v=j[5]-S*j[6],u=j[4]-w*j[5],f=j[3]-A*j[4],l=j[2]-_*j[3],d=j[1]-x*j[2],m=j[0]-E*j[1]):(g=y[0],h=y[1],b=y[2],S=y[3],w=y[4],A=y[5],_=y[6],x=y[7],E=y[8],q=y[9],o=j[0],i=j[1]-g*j[0],n=j[2]-h*j[1],s=j[3]-b*j[2],v=j[4]-S*j[3],u=j[5]-w*j[4],f=j[6]-A*j[5],l=j[7]-_*j[6],d=j[8]-x*j[7],m=j[9]-E*j[8],p=q5r(p)),T=r.offset,t=r.data,P=0;P<q;P++){for(V=0;V<E;V++){for(R=0;R<x;R++){for(z=0;z<_;z++){for(B=0;B<A;B++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(O=0;O<h;O++){for(I=0;I<g;I++)e.call(a,t[T],w5r([P,V,R,z,B,N,k,D,O,I],p),r.ref),T+=o;T+=i}T+=n}T+=s}T+=v}T+=u}T+=f}T+=l}T+=d}T+=m}}fD.exports=S5r});var pD=c((dfe,dD)=>{"use strict";var E5r=Wr(),A5r=ia(),_5r=Si(),cD="throw";function j5r(r,e,a){var t,o,i,n,s,v,u,f,l;for(s=r.shape,i=E5r(s),t=r.data,v=r.strides,u=r.offset,o=r.order,l=0;l<i;l++)f=A5r(s,v,u,o,l,cD),n=_5r(s,v,0,o,l,cD),e.call(a,t[f],n,r.ref)}dD.exports=j5r});var hD=c((pfe,gD)=>{"use strict";var T5r=xa(),O5r=Wt(),I5r=Wr(),N5r=k7(),D5r=B7(),k5r=V7(),R5r=F7(),B5r=C7(),z5r=M7(),V5r=$7(),P5r=W7(),F5r=K7(),L5r=H7(),C5r=Q7(),U5r=eN(),M5r=tN(),G5r=oN(),$5r=nN(),Y5r=uN(),W5r=lN(),J5r=dN(),K5r=yN(),X5r=gN(),H5r=bN(),Z5r=qN(),Q5r=SN(),r_r=AN(),e_r=jN(),a_r=ON(),t_r=NN(),i_r=kN(),o_r=BN(),s_r=MN(),n_r=$N(),v_r=WN(),u_r=KN(),f_r=HN(),l_r=QN(),c_r=eD(),d_r=tD(),p_r=oD(),y_r=nD(),m_r=uD(),g_r=lD(),h_r=pD(),qf=[n_r,v_r,u_r,f_r,l_r,c_r,d_r,p_r,y_r,m_r,g_r],yD=[K5r,X5r,H5r,Z5r,Q5r,r_r,e_r,a_r,t_r,i_r,o_r],b_r=[L5r,C5r,U5r,M5r,G5r,$5r,Y5r,W5r,J5r],x_r=[N5r,D5r,k5r,R5r,B5r,z5r,V5r,P5r,F5r],mD=qf.length-1;function q_r(r,e,a){var t,o,i;if(i=O5r(r[0]),o=i.shape,t=o.length,t===0)return i.accessorProtocol?yD[t](i,e,a):qf[t](i,e,a);if(I5r(o)!==0){if(t<=mD&&T5r(i.strides)!==0)return i.accessorProtocol?yD[t](i,e,a):qf[t](i,e,a);if(t<=mD)return i.accessorProtocol?x_r[t-2](i,e,a):b_r[t-2](i,e,a);if(i.accessorProtocol)return s_r(i,e,a);h_r(i,e,a)}}gD.exports=q_r});var xD=c((yfe,bD)=>{"use strict";var w_r=hD();bD.exports=w_r});var wD=c((mfe,qD)=>{"use strict";var S_r=et(),E_r=gi(),A_r=mi(),__r=Na(),j_r=ra(),T_r=cr();function O_r(r,e,a){var t,o;if(t=__r(e,1),t===null)throw new TypeError(T_r("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return/^complex/.test(e)&&typeof r=="number"&&(r=[r,0]),S_r(t)?o=E_r(e):o=A_r(e),o(t,0,r),new j_r(e,t,[],[0],0,a)}qD.exports=O_r});var ED=c((gfe,SD)=>{"use strict";var I_r=wD();SD.exports=I_r});var _D=c((hfe,AD)=>{"use strict";function N_r(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}AD.exports=N_r});var TD=c((bfe,jD)=>{"use strict";var D_r=_D();jD.exports=D_r});var ND=c((xfe,ID)=>{"use strict";var OD=mo(),k_r=_e();function R_r(r,e){var a,t,o;if(t=e.length,a=k_r(r,!1),a.length===t){for(o=0;o<t;o++)if(a[o]!==e[o])return OD(r,e);return r}return OD(r,e)}ID.exports=R_r});var wf=c((qfe,DD)=>{"use strict";var B_r=ND();DD.exports=B_r});var RD=c((wfe,kD)=>{"use strict";var z_r=bi(),V_r=wf(),P_r=_e();function F_r(r){var e,a,t,o,i;for(o=r.length,e=[],i=0;i<o;i++)e.push(P_r(r[i],!1));if(t=z_r(e),t===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(a=[],i=0;i<o;i++)a.push(V_r(r[i],t));return a}kD.exports=F_r});var zD=c((Sfe,BD)=>{"use strict";var L_r=RD();BD.exports=L_r});var PD=c((Efe,VD)=>{"use strict";var Sf=Tr(),C_r=mt(),U_r=vf();function M_r(r,e,a){return Sf(a,"nargs",r.nargs),Sf(a,"nin",r.nin),Sf(a,"nout",r.nout),C_r(a,"types",t),a;function t(){return U_r(e,r.nin,r.nout)}}VD.exports=M_r});var LD=c((Afe,FD)=>{"use strict";var G_r=PD();FD.exports=G_r});var UD=c((_fe,CD)=>{"use strict";function $_r(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}CD.exports=$_r});var GD=c((jfe,MD)=>{"use strict";var Y_r=UD();MD.exports=Y_r});var YD=c((Tfe,$D)=>{"use strict";var W_r=Da(),J_r=ie(),K_r=Ga(),X_r=xt(),H_r=$a(),Z_r=st(),Q_r=ra(),r8r=Oa(),e8r=r8r("order");function a8r(r){return new Q_r(W_r(r),Z_r(r),J_r(r),K_r(r),X_r(r),H_r(r)||e8r)}$D.exports=a8r});var JD=c((Ofe,WD)=>{"use strict";var t8r=YD();WD.exports=t8r});var Ef=c((Ife,KD)=>{"use strict";var i8r="row-major";function o8r(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 s8r(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 n8r(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===i8r?o8r(i,r,a,t,o):s8r(i,r,a,t,o)}KD.exports=n8r});var HD=c((Nfe,XD)=>{"use strict";var v8r=xe(),u8r=Ef();function f8r(r,e,a,t){return u8r(r,e,a,t,v8r(r.length))}XD.exports=f8r});var Je=c((Dfe,QD)=>{"use strict";var l8r=Tr(),ZD=HD(),c8r=Ef();l8r(ZD,"assign",c8r);QD.exports=ZD});var ek=c((kfe,rk)=>{"use strict";function d8r(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]!==1&&(e+=1);return e}rk.exports=d8r});var tk=c((Rfe,ak)=>{"use strict";var p8r=ek();ak.exports=p8r});var ok=c((Bfe,ik)=>{"use strict";var y8r=Hr(),m8r=Zr();function g8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b;for(b=y8r(r.shape,r.strides),v=b.sh,l=b.sx,a=m8r(r.dtype),d=r.offset,t=r.data,i=l[0],o=r.accessors[1],h=v[1];h>0;)for(h<a?(f=h,h=0):(f=a,h-=a),s=d+h*l[1],g=v[0];g>0;)for(g<a?(u=g,g=0):(u=a,g-=a),m=s+g*l[0],n=l[1]-u*l[0],y=0;y<f;y++){for(p=0;p<u;p++)o(t,m,e()),m+=i;m+=n}}ik.exports=g8r});var nk=c((zfe,sk)=>{"use strict";var h8r=Hr(),b8r=Zr();function x8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x;for(x=h8r(r.shape,r.strides),f=x.sh,p=x.sx,a=b8r(r.dtype),y=r.offset,t=r.data,i=p[0],o=r.accessors[1],_=f[2];_>0;)for(_<a?(m=_,_=0):(m=a,_-=a),u=y+_*p[2],A=f[1];A>0;)for(A<a?(d=A,A=0):(d=a,A-=a),s=p[2]-d*p[1],v=u+A*p[1],w=f[0];w>0;)for(w<a?(l=w,w=0):(l=a,w-=a),g=v+w*p[0],n=p[1]-l*p[0],S=0;S<m;S++){for(b=0;b<d;b++){for(h=0;h<l;h++)o(t,g,e()),g+=i;g+=n}g+=s}}sk.exports=x8r});var uk=c((Vfe,vk)=>{"use strict";var q8r=Hr(),w8r=Zr();function S8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I;for(I=q8r(r.shape,r.strides),d=I.sh,h=I.sx,a=w8r(r.dtype),b=r.offset,t=r.data,i=h[0],o=r.accessors[1],T=d[3];T>0;)for(T<a?(g=T,T=0):(g=a,T-=a),l=b+T*h[3],j=d[2];j>0;)for(j<a?(y=j,j=0):(y=a,j-=a),v=h[3]-y*h[2],f=l+j*h[2],q=d[1];q>0;)for(q<a?(p=q,q=0):(p=a,q-=a),s=h[2]-p*h[1],u=f+q*h[1],E=d[0];E>0;)for(E<a?(m=E,E=0):(m=a,E-=a),S=u+E*h[0],n=h[1]-m*h[0],x=0;x<g;x++){for(_=0;_<y;_++){for(A=0;A<p;A++){for(w=0;w<m;w++)o(t,S,e()),S+=i;S+=n}S+=s}S+=v}}vk.exports=S8r});var lk=c((Pfe,fk)=>{"use strict";var E8r=Hr(),A8r=Zr();function _8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B;for(B=E8r(r.shape,r.strides),p=B.sh,w=B.sx,a=A8r(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),m=A+N*w[4],k=p[3];k>0;)for(k<a?(b=k,k=0):(b=a,k-=a),u=w[4]-b*w[3],d=m+k*w[3],D=p[2];D>0;)for(D<a?(h=D,D=0):(h=a,D-=a),v=w[3]-h*w[2],l=d+D*w[2],O=p[1];O>0;)for(O<a?(g=O,O=0):(g=a,O-=a),s=w[2]-g*w[1],f=l+O*w[1],I=p[0];I>0;)for(I<a?(y=I,I=0):(y=a,I-=a),_=f+I*w[0],n=w[1]-y*w[0],T=0;T<S;T++){for(j=0;j<b;j++){for(q=0;q<h;q++){for(E=0;E<g;E++){for(x=0;x<y;x++)o(t,_,e()),_+=i;_+=n}_+=s}_+=v}_+=u}}fk.exports=_8r});var dk=c((Ffe,ck)=>{"use strict";var j8r=Hr(),T8r=Zr();function O8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F;for(F=j8r(r.shape,r.strides),g=F.sh,x=F.sx,a=T8r(r.dtype),E=r.offset,t=r.data,i=x[0],o=r.accessors[1],P=g[5];P>0;)for(P<a?(_=P,P=0):(_=a,P-=a),y=E+P*x[5],V=g[4];V>0;)for(V<a?(A=V,V=0):(A=a,V-=a),f=x[5]-A*x[4],p=y+V*x[4],R=g[3];R>0;)for(R<a?(w=R,R=0):(w=a,R-=a),u=x[4]-w*x[3],m=p+R*x[3],z=g[2];z>0;)for(z<a?(S=z,z=0):(S=a,z-=a),v=x[3]-S*x[2],d=m+z*x[2],B=g[1];B>0;)for(B<a?(b=B,B=0):(b=a,B-=a),s=x[2]-b*x[1],l=d+B*x[1],N=g[0];N>0;)for(N<a?(h=N,N=0):(h=a,N-=a),q=l+N*x[0],n=x[1]-h*x[0],k=0;k<_;k++){for(D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<b;T++){for(j=0;j<h;j++)o(t,q,e()),q+=i;q+=n}q+=s}q+=v}q+=u}q+=f}}ck.exports=O8r});var yk=c((Lfe,pk)=>{"use strict";var I8r=Hr(),N8r=Zr();function D8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G;for(G=I8r(r.shape,r.strides),b=G.sh,j=G.sx,a=N8r(r.dtype),T=r.offset,t=r.data,i=j[0],o=r.accessors[1],M=b[6];M>0;)for(M<a?(q=M,M=0):(q=a,M-=a),h=T+M*j[6],U=b[5];U>0;)for(U<a?(E=U,U=0):(E=a,U-=a),l=j[6]-E*j[5],g=h+U*j[5],C=b[4];C>0;)for(C<a?(x=C,C=0):(x=a,C-=a),f=j[5]-x*j[4],y=g+C*j[4],L=b[3];L>0;)for(L<a?(_=L,L=0):(_=a,L-=a),u=j[4]-_*j[3],p=y+L*j[3],F=b[2];F>0;)for(F<a?(A=F,F=0):(A=a,F-=a),v=j[3]-A*j[2],m=p+F*j[2],P=b[1];P>0;)for(P<a?(w=P,P=0):(w=a,P-=a),s=j[2]-w*j[1],d=m+P*j[1],V=b[0];V>0;)for(V<a?(S=V,V=0):(S=a,V-=a),I=d+V*j[0],n=j[1]-S*j[0],R=0;R<q;R++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(O=0;O<S;O++)o(t,I,e()),I+=i;I+=n}I+=s}I+=v}I+=u}I+=f}I+=l}}pk.exports=D8r});var gk=c((Cfe,mk)=>{"use strict";var k8r=Hr(),R8r=Zr();function B8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K;for(K=k8r(r.shape,r.strides),w=K.sh,O=K.sx,a=R8r(r.dtype),D=r.offset,t=r.data,i=O[0],o=r.accessors[1],J=w[7];J>0;)for(J<a?(I=J,J=0):(I=a,J-=a),S=D+J*O[7],W=w[6];W>0;)for(W<a?(T=W,W=0):(T=a,W-=a),d=O[7]-T*O[6],b=S+W*O[6],$=w[5];$>0;)for($<a?(j=$,$=0):(j=a,$-=a),l=O[6]-j*O[5],h=b+$*O[5],Y=w[4];Y>0;)for(Y<a?(q=Y,Y=0):(q=a,Y-=a),f=O[5]-q*O[4],g=h+Y*O[4],G=w[3];G>0;)for(G<a?(E=G,G=0):(E=a,G-=a),u=O[4]-E*O[3],y=g+G*O[3],M=w[2];M>0;)for(M<a?(x=M,M=0):(x=a,M-=a),v=O[3]-x*O[2],p=y+M*O[2],U=w[1];U>0;)for(U<a?(_=U,U=0):(_=a,U-=a),s=O[2]-_*O[1],m=p+U*O[1],C=w[0];C>0;)for(C<a?(A=C,C=0):(A=a,C-=a),k=m+C*O[0],n=O[1]-A*O[0],L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(V=0;V<q;V++){for(R=0;R<E;R++){for(z=0;z<x;z++){for(B=0;B<_;B++){for(N=0;N<A;N++)o(t,k,e()),k+=i;k+=n}k+=s}k+=v}k+=u}k+=f}k+=l}k+=d}}mk.exports=B8r});var bk=c((Ufe,hk)=>{"use strict";var z8r=Hr(),V8r=Zr();function P8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr;for(rr=z8r(r.shape,r.strides),_=rr.sh,N=rr.sx,a=V8r(r.dtype),B=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=B+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?(O=H,H=0):(O=a,H-=a),d=N[7]-O*N[6],S=w+H*N[6],X=_[5];X>0;)for(X<a?(I=X,X=0):(I=a,X-=a),l=N[6]-I*N[5],b=S+X*N[5],K=_[4];K>0;)for(K<a?(T=K,K=0):(T=a,K-=a),f=N[5]-T*N[4],h=b+K*N[4],J=_[3];J>0;)for(J<a?(j=J,J=0):(j=a,J-=a),u=N[4]-j*N[3],g=h+J*N[3],W=_[2];W>0;)for(W<a?(q=W,W=0):(q=a,W-=a),v=N[3]-q*N[2],y=g+W*N[2],$=_[1];$>0;)for($<a?(E=$,$=0):(E=a,$-=a),s=N[2]-E*N[1],p=y+$*N[1],Y=_[0];Y>0;)for(Y<a?(x=Y,Y=0):(x=a,Y-=a),z=p+Y*N[0],n=N[1]-x*N[0],G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(V=0;V<E;V++){for(R=0;R<x;R++)o(t,z,e()),z+=i;z+=n}z+=s}z+=v}z+=u}z+=f}z+=l}z+=d}z+=m}}hk.exports=P8r});var qk=c((Mfe,xk)=>{"use strict";var F8r=Hr(),L8r=Zr();function C8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or;for(or=F8r(r.shape,r.strides),E=or.sh,R=or.sx,a=L8r(r.dtype),V=r.offset,t=r.data,i=R[0],o=r.accessors[1],tr=E[9];tr>0;)for(tr<a?(z=tr,tr=0):(z=a,tr-=a),x=V+tr*R[9],ir=E[8];ir>0;)for(ir<a?(B=ir,ir=0):(B=a,ir-=a),p=R[9]-B*R[8],_=x+ir*R[8],er=E[7];er>0;)for(er<a?(N=er,er=0):(N=a,er-=a),m=R[8]-N*R[7],A=_+er*R[7],ar=E[6];ar>0;)for(ar<a?(k=ar,ar=0):(k=a,ar-=a),d=R[7]-k*R[6],w=A+ar*R[6],rr=E[5];rr>0;)for(rr<a?(D=rr,rr=0):(D=a,rr-=a),l=R[6]-D*R[5],S=w+rr*R[5],Z=E[4];Z>0;)for(Z<a?(O=Z,Z=0):(O=a,Z-=a),f=R[5]-O*R[4],b=S+Z*R[4],Q=E[3];Q>0;)for(Q<a?(I=Q,Q=0):(I=a,Q-=a),u=R[4]-I*R[3],h=b+Q*R[3],H=E[2];H>0;)for(H<a?(T=H,H=0):(T=a,H-=a),v=R[3]-T*R[2],g=h+H*R[2],X=E[1];X>0;)for(X<a?(j=X,X=0):(j=a,X-=a),s=R[2]-j*R[1],y=g+X*R[1],K=E[0];K>0;)for(K<a?(q=K,K=0):(q=a,K-=a),P=y+K*R[0],n=R[1]-q*R[0],J=0;J<z;J++){for(W=0;W<B;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++){for(F=0;F<q;F++)o(t,P,e()),P+=i;P+=n}P+=s}P+=v}P+=u}P+=f}P+=l}P+=d}P+=m}P+=p}}xk.exports=C8r});var Sk=c((Gfe,wk)=>{"use strict";var U8r=Hr(),M8r=Zr();function G8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h;for(h=U8r(r.shape,r.strides),s=h.sh,f=h.sx,a=M8r(r.dtype),l=r.offset,t=r.data,o=f[0],g=s[1];g>0;)for(g<a?(u=g,g=0):(u=a,g-=a),n=l+g*f[1],y=s[0];y>0;)for(y<a?(v=y,y=0):(v=a,y-=a),d=n+y*f[0],i=f[1]-v*f[0],p=0;p<u;p++){for(m=0;m<v;m++)t[d]=e(),d+=o;d+=i}}wk.exports=G8r});var Ak=c(($fe,Ek)=>{"use strict";var $8r=Hr(),Y8r=Zr();function W8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_;for(_=$8r(r.shape,r.strides),u=_.sh,m=_.sx,a=Y8r(r.dtype),p=r.offset,t=r.data,o=m[0],A=u[2];A>0;)for(A<a?(d=A,A=0):(d=a,A-=a),v=p+A*m[2],w=u[1];w>0;)for(w<a?(l=w,w=0):(l=a,w-=a),n=m[2]-l*m[1],s=v+w*m[1],S=u[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],b=0;b<d;b++){for(h=0;h<l;h++){for(g=0;g<f;g++)t[y]=e(),y+=o;y+=i}y+=n}}Ek.exports=W8r});var jk=c((Yfe,_k)=>{"use strict";var J8r=Hr(),K8r=Zr();function X8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T;for(T=J8r(r.shape,r.strides),l=T.sh,g=T.sx,a=K8r(r.dtype),h=r.offset,t=r.data,o=g[0],j=l[3];j>0;)for(j<a?(y=j,j=0):(y=a,j-=a),f=h+j*g[3],q=l[2];q>0;)for(q<a?(p=q,q=0):(p=a,q-=a),s=g[3]-p*g[2],u=f+q*g[2],E=l[1];E>0;)for(E<a?(m=E,E=0):(m=a,E-=a),n=g[2]-m*g[1],v=u+E*g[1],x=l[0];x>0;)for(x<a?(d=x,x=0):(d=a,x-=a),b=v+x*g[0],i=g[1]-d*g[0],_=0;_<y;_++){for(A=0;A<p;A++){for(w=0;w<m;w++){for(S=0;S<d;S++)t[b]=e(),b+=o;b+=i}b+=n}b+=s}}_k.exports=X8r});var Ok=c((Wfe,Tk)=>{"use strict";var H8r=Hr(),Z8r=Zr();function Q8r(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N;for(N=H8r(r.shape,r.strides),m=N.sh,S=N.sx,a=Z8r(r.dtype),w=r.offset,t=r.data,o=S[0],k=m[4];k>0;)for(k<a?(b=k,k=0):(b=a,k-=a),d=w+k*S[4],D=m[3];D>0;)for(D<a?(h=D,D=0):(h=a,D-=a),v=S[4]-h*S[3],l=d+D*S[3],O=m[2];O>0;)for(O<a?(g=O,O=0):(g=a,O-=a),s=S[3]-g*S[2],f=l+O*S[2],I=m[1];I>0;)for(I<a?(y=I,I=0):(y=a,I-=a),n=S[2]-y*S[1],u=f+I*S[1],T=m[0];T>0;)for(T<a?(p=T,T=0):(p=a,T-=a),A=u+T*S[0],i=S[1]-p*S[0],j=0;j<b;j++){for(q=0;q<h;q++){for(E=0;E<g;E++){for(x=0;x<y;x++){for(_=0;_<p;_++)t[A]=e(),A+=o;A+=i}A+=n}A+=s}A+=v}}Tk.exports=Q8r});var Nk=c((Jfe,Ik)=>{"use strict";var rjr=Hr(),ejr=Zr();function ajr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P;for(P=rjr(r.shape,r.strides),y=P.sh,_=P.sx,a=ejr(r.dtype),x=r.offset,t=r.data,o=_[0],V=y[5];V>0;)for(V<a?(A=V,V=0):(A=a,V-=a),p=x+V*_[5],R=y[4];R>0;)for(R<a?(w=R,R=0):(w=a,R-=a),u=_[5]-w*_[4],m=p+R*_[4],z=y[3];z>0;)for(z<a?(S=z,z=0):(S=a,z-=a),v=_[4]-S*_[3],d=m+z*_[3],B=y[2];B>0;)for(B<a?(b=B,B=0):(b=a,B-=a),s=_[3]-b*_[2],l=d+B*_[2],N=y[1];N>0;)for(N<a?(h=N,N=0):(h=a,N-=a),n=_[2]-h*_[1],f=l+N*_[1],k=y[0];k>0;)for(k<a?(g=k,k=0):(g=a,k-=a),E=f+k*_[0],i=_[1]-g*_[0],D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<b;T++){for(j=0;j<h;j++){for(q=0;q<g;q++)t[E]=e(),E+=o;E+=i}E+=n}E+=s}E+=v}E+=u}}Ik.exports=ajr});var kk=c((Kfe,Dk)=>{"use strict";var tjr=Hr(),ijr=Zr();function ojr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M;for(M=tjr(r.shape,r.strides),h=M.sh,q=M.sx,a=ijr(r.dtype),j=r.offset,t=r.data,o=q[0],U=h[6];U>0;)for(U<a?(E=U,U=0):(E=a,U-=a),g=j+U*q[6],C=h[5];C>0;)for(C<a?(x=C,C=0):(x=a,C-=a),f=q[6]-x*q[5],y=g+C*q[5],L=h[4];L>0;)for(L<a?(_=L,L=0):(_=a,L-=a),u=q[5]-_*q[4],p=y+L*q[4],F=h[3];F>0;)for(F<a?(A=F,F=0):(A=a,F-=a),v=q[4]-A*q[3],m=p+F*q[3],P=h[2];P>0;)for(P<a?(w=P,P=0):(w=a,P-=a),s=q[3]-w*q[2],d=m+P*q[2],V=h[1];V>0;)for(V<a?(S=V,V=0):(S=a,V-=a),n=q[2]-S*q[1],l=d+V*q[1],R=h[0];R>0;)for(R<a?(b=R,R=0):(b=a,R-=a),T=l+R*q[0],i=q[1]-b*q[0],z=0;z<E;z++){for(B=0;B<x;B++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(O=0;O<S;O++){for(I=0;I<b;I++)t[T]=e(),T+=o;T+=i}T+=n}T+=s}T+=v}T+=u}T+=f}}Dk.exports=ojr});var Bk=c((Xfe,Rk)=>{"use strict";var sjr=Hr(),njr=Zr();function vjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J;for(J=sjr(r.shape,r.strides),S=J.sh,I=J.sx,a=njr(r.dtype),O=r.offset,t=r.data,o=I[0],W=S[7];W>0;)for(W<a?(T=W,W=0):(T=a,W-=a),b=O+W*I[7],$=S[6];$>0;)for($<a?(j=$,$=0):(j=a,$-=a),l=I[7]-j*I[6],h=b+$*I[6],Y=S[5];Y>0;)for(Y<a?(q=Y,Y=0):(q=a,Y-=a),f=I[6]-q*I[5],g=h+Y*I[5],G=S[4];G>0;)for(G<a?(E=G,G=0):(E=a,G-=a),u=I[5]-E*I[4],y=g+G*I[4],M=S[3];M>0;)for(M<a?(x=M,M=0):(x=a,M-=a),v=I[4]-x*I[3],p=y+M*I[3],U=S[2];U>0;)for(U<a?(_=U,U=0):(_=a,U-=a),s=I[3]-_*I[2],m=p+U*I[2],C=S[1];C>0;)for(C<a?(A=C,C=0):(A=a,C-=a),n=I[2]-A*I[1],d=m+C*I[1],L=S[0];L>0;)for(L<a?(w=L,L=0):(w=a,L-=a),D=d+L*I[0],i=I[1]-w*I[0],F=0;F<T;F++){for(P=0;P<j;P++){for(V=0;V<q;V++){for(R=0;R<E;R++){for(z=0;z<x;z++){for(B=0;B<_;B++){for(N=0;N<A;N++){for(k=0;k<w;k++)t[D]=e(),D+=o;D+=i}D+=n}D+=s}D+=v}D+=u}D+=f}D+=l}}Rk.exports=vjr});var Vk=c((Hfe,zk)=>{"use strict";var ujr=Hr(),fjr=Zr();function ljr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z;for(Z=ujr(r.shape,r.strides),A=Z.sh,k=Z.sx,a=fjr(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?(O=H,H=0):(O=a,H-=a),d=k[8]-O*k[7],S=w+H*k[7],X=A[6];X>0;)for(X<a?(I=X,X=0):(I=a,X-=a),l=k[7]-I*k[6],b=S+X*k[6],K=A[5];K>0;)for(K<a?(T=K,K=0):(T=a,K-=a),f=k[6]-T*k[5],h=b+K*k[5],J=A[4];J>0;)for(J<a?(j=J,J=0):(j=a,J-=a),u=k[5]-j*k[4],g=h+J*k[4],W=A[3];W>0;)for(W<a?(q=W,W=0):(q=a,W-=a),v=k[4]-q*k[3],y=g+W*k[3],$=A[2];$>0;)for($<a?(E=$,$=0):(E=a,$-=a),s=k[3]-E*k[2],p=y+$*k[2],Y=A[1];Y>0;)for(Y<a?(x=Y,Y=0):(x=a,Y-=a),n=k[2]-x*k[1],m=p+Y*k[1],G=A[0];G>0;)for(G<a?(_=G,G=0):(_=a,G-=a),B=m+G*k[0],i=k[1]-_*k[0],M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(V=0;V<E;V++){for(R=0;R<x;R++){for(z=0;z<_;z++)t[B]=e(),B+=o;B+=i}B+=n}B+=s}B+=v}B+=u}B+=f}B+=l}B+=d}}zk.exports=ljr});var Fk=c((Zfe,Pk)=>{"use strict";var cjr=Hr(),djr=Zr();function pjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr;for(tr=cjr(r.shape,r.strides),x=tr.sh,z=tr.sx,a=djr(r.dtype),R=r.offset,t=r.data,o=z[0],ir=x[9];ir>0;)for(ir<a?(B=ir,ir=0):(B=a,ir-=a),_=R+ir*z[9],er=x[8];er>0;)for(er<a?(N=er,er=0):(N=a,er-=a),m=z[9]-N*z[8],A=_+er*z[8],ar=x[7];ar>0;)for(ar<a?(k=ar,ar=0):(k=a,ar-=a),d=z[8]-k*z[7],w=A+ar*z[7],rr=x[6];rr>0;)for(rr<a?(D=rr,rr=0):(D=a,rr-=a),l=z[7]-D*z[6],S=w+rr*z[6],Z=x[5];Z>0;)for(Z<a?(O=Z,Z=0):(O=a,Z-=a),f=z[6]-O*z[5],b=S+Z*z[5],Q=x[4];Q>0;)for(Q<a?(I=Q,Q=0):(I=a,Q-=a),u=z[5]-I*z[4],h=b+Q*z[4],H=x[3];H>0;)for(H<a?(T=H,H=0):(T=a,H-=a),v=z[4]-T*z[3],g=h+H*z[3],X=x[2];X>0;)for(X<a?(j=X,X=0):(j=a,X-=a),s=z[3]-j*z[2],y=g+X*z[2],K=x[1];K>0;)for(K<a?(q=K,K=0):(q=a,K-=a),n=z[2]-q*z[1],p=y+K*z[1],J=x[0];J>0;)for(J<a?(E=J,J=0):(E=a,J-=a),V=p+J*z[0],i=z[1]-E*z[0],W=0;W<B;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++){for(F=0;F<q;F++){for(P=0;P<E;P++)t[V]=e(),V+=o;V+=i}V+=n}V+=s}V+=v}V+=u}V+=f}V+=l}V+=d}V+=m}}Pk.exports=pjr});var Ck=c((Qfe,Lk)=>{"use strict";function yjr(r,e){r.accessors[1](r.data,r.offset,e())}Lk.exports=yjr});var Mk=c((rle,Uk)=>{"use strict";function mjr(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}Uk.exports=mjr});var $k=c((ele,Gk)=>{"use strict";function gjr(r,e){var a,t,o,i,n,s,v,u,f,l,d;for(n=r.shape,u=r.strides,r.order==="row-major"?(s=n[1],v=n[0],o=u[1],i=u[0]-s*u[1]):(s=n[0],v=n[1],o=u[0],i=u[1]-s*u[0]),f=r.offset,a=r.data,t=r.accessors[1],d=0;d<v;d++){for(l=0;l<s;l++)t(a,f,e()),f+=o;f+=i}}Gk.exports=gjr});var Wk=c((ale,Yk)=>{"use strict";function hjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y;for(s=r.shape,l=r.strides,r.order==="row-major"?(v=s[2],u=s[1],f=s[0],o=l[2],i=l[1]-v*l[2],n=l[0]-u*l[1]):(v=s[0],u=s[1],f=s[2],o=l[0],i=l[1]-v*l[0],n=l[2]-u*l[1]),d=r.offset,a=r.data,t=r.accessors[1],y=0;y<f;y++){for(p=0;p<u;p++){for(m=0;m<v;m++)t(a,d,e()),d+=o;d+=i}d+=n}}Yk.exports=hjr});var Kk=c((tle,Jk)=>{"use strict";function bjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b;for(v=r.shape,m=r.strides,r.order==="row-major"?(u=v[3],f=v[2],l=v[1],d=v[0],o=m[3],i=m[2]-u*m[3],n=m[1]-f*m[2],s=m[0]-l*m[1]):(u=v[0],f=v[1],l=v[2],d=v[3],o=m[0],i=m[1]-u*m[0],n=m[2]-f*m[1],s=m[3]-l*m[2]),p=r.offset,a=r.data,t=r.accessors[1],b=0;b<d;b++){for(h=0;h<l;h++){for(g=0;g<f;g++){for(y=0;y<u;y++)t(a,p,e()),p+=o;p+=i}p+=n}p+=s}}Jk.exports=bjr});var Hk=c((ile,Xk)=>{"use strict";function xjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A;for(u=r.shape,y=r.strides,r.order==="row-major"?(f=u[4],l=u[3],d=u[2],m=u[1],p=u[0],o=y[4],i=y[3]-f*y[4],n=y[2]-l*y[3],s=y[1]-d*y[2],v=y[0]-m*y[1]):(f=u[0],l=u[1],d=u[2],m=u[3],p=u[4],o=y[0],i=y[1]-f*y[0],n=y[2]-l*y[1],s=y[3]-d*y[2],v=y[4]-m*y[3]),g=r.offset,a=r.data,t=r.accessors[1],A=0;A<p;A++){for(w=0;w<m;w++){for(S=0;S<d;S++){for(b=0;b<l;b++){for(h=0;h<f;h++)t(a,g,e()),g+=o;g+=i}g+=n}g+=s}g+=v}}Xk.exports=xjr});var Qk=c((ole,Zk)=>{"use strict";function qjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E;for(f=r.shape,h=r.strides,r.order==="row-major"?(l=f[5],d=f[4],m=f[3],p=f[2],y=f[1],g=f[0],o=h[5],i=h[4]-l*h[5],n=h[3]-d*h[4],s=h[2]-m*h[3],v=h[1]-p*h[2],u=h[0]-y*h[1]):(l=f[0],d=f[1],m=f[2],p=f[3],y=f[4],g=f[5],o=h[0],i=h[1]-l*h[0],n=h[2]-d*h[1],s=h[3]-m*h[2],v=h[4]-p*h[3],u=h[5]-y*h[4]),b=r.offset,a=r.data,t=r.accessors[1],E=0;E<g;E++){for(x=0;x<y;x++){for(_=0;_<p;_++){for(A=0;A<m;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+=v}b+=u}}Zk.exports=qjr});var eR=c((sle,rR)=>{"use strict";function wjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T;for(l=r.shape,S=r.strides,r.order==="row-major"?(d=l[6],m=l[5],p=l[4],y=l[3],g=l[2],h=l[1],b=l[0],o=S[6],i=S[5]-d*S[6],n=S[4]-m*S[5],s=S[3]-p*S[4],v=S[2]-y*S[3],u=S[1]-g*S[2],f=S[0]-h*S[1]):(d=l[0],m=l[1],p=l[2],y=l[3],g=l[4],h=l[5],b=l[6],o=S[0],i=S[1]-d*S[0],n=S[2]-m*S[1],s=S[3]-p*S[2],v=S[4]-y*S[3],u=S[5]-g*S[4],f=S[6]-h*S[5]),w=r.offset,a=r.data,t=r.accessors[1],T=0;T<b;T++){for(j=0;j<h;j++){for(q=0;q<g;q++){for(E=0;E<y;E++){for(x=0;x<p;x++){for(_=0;_<m;_++){for(A=0;A<d;A++)t(a,w,e()),w+=o;w+=i}w+=n}w+=s}w+=v}w+=u}w+=f}}rR.exports=wjr});var tR=c((nle,aR)=>{"use strict";function Sjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D;for(d=r.shape,A=r.strides,r.order==="row-major"?(m=d[7],p=d[6],y=d[5],g=d[4],h=d[3],b=d[2],S=d[1],w=d[0],o=A[7],i=A[6]-m*A[7],n=A[5]-p*A[6],s=A[4]-y*A[5],v=A[3]-g*A[4],u=A[2]-h*A[3],f=A[1]-b*A[2],l=A[0]-S*A[1]):(m=d[0],p=d[1],y=d[2],g=d[3],h=d[4],b=d[5],S=d[6],w=d[7],o=A[0],i=A[1]-m*A[0],n=A[2]-p*A[1],s=A[3]-y*A[2],v=A[4]-g*A[3],u=A[5]-h*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(O=0;O<S;O++){for(I=0;I<b;I++){for(T=0;T<h;T++){for(j=0;j<g;j++){for(q=0;q<y;q++){for(E=0;E<p;E++){for(x=0;x<m;x++)t(a,_,e()),_+=o;_+=i}_+=n}_+=s}_+=v}_+=u}_+=f}_+=l}}aR.exports=Sjr});var oR=c((vle,iR)=>{"use strict";function Ejr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B;for(m=r.shape,x=r.strides,r.order==="row-major"?(p=m[8],y=m[7],g=m[6],h=m[5],b=m[4],S=m[3],w=m[2],A=m[1],_=m[0],o=x[8],i=x[7]-p*x[8],n=x[6]-y*x[7],s=x[5]-g*x[6],v=x[4]-h*x[5],u=x[3]-b*x[4],f=x[2]-S*x[3],l=x[1]-w*x[2],d=x[0]-A*x[1]):(p=m[0],y=m[1],g=m[2],h=m[3],b=m[4],S=m[5],w=m[6],A=m[7],_=m[8],o=x[0],i=x[1]-p*x[0],n=x[2]-y*x[1],s=x[3]-g*x[2],v=x[4]-h*x[3],u=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],B=0;B<_;B++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(O=0;O<b;O++){for(I=0;I<h;I++){for(T=0;T<g;T++){for(j=0;j<y;j++){for(q=0;q<p;q++)t(a,E,e()),E+=o;E+=i}E+=n}E+=s}E+=v}E+=u}E+=f}E+=l}E+=d}}iR.exports=Ejr});var nR=c((ule,sR)=>{"use strict";function Ajr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V;for(p=r.shape,q=r.strides,r.order==="row-major"?(y=p[9],g=p[8],h=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]-y*q[9],n=q[7]-g*q[8],s=q[6]-h*q[7],v=q[5]-b*q[6],u=q[4]-S*q[5],f=q[3]-w*q[4],l=q[2]-A*q[3],d=q[1]-_*q[2],m=q[0]-x*q[1]):(y=p[0],g=p[1],h=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]-y*q[0],n=q[2]-g*q[1],s=q[3]-h*q[2],v=q[4]-b*q[3],u=q[5]-S*q[4],f=q[6]-w*q[5],l=q[7]-A*q[6],d=q[8]-_*q[7],m=q[9]-x*q[8]),j=r.offset,a=r.data,t=r.accessors[1],V=0;V<E;V++){for(R=0;R<x;R++){for(z=0;z<_;z++){for(B=0;B<A;B++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(O=0;O<h;O++){for(I=0;I<g;I++){for(T=0;T<y;T++)t(a,j,e()),j+=o;j+=i}j+=n}j+=s}j+=v}j+=u}j+=f}j+=l}j+=d}j+=m}}sR.exports=Ajr});var uR=c((fle,vR)=>{"use strict";var _jr=Wr(),jjr=ia(),Tjr="throw";function Ojr(r,e){var a,t,o,i,n,s,v,u,f;for(n=r.shape,o=_jr(n),a=r.data,s=r.strides,v=r.offset,t=r.order,i=r.accessors[1],f=0;f<o;f++)u=jjr(n,s,v,t,f,Tjr),i(a,u,e())}vR.exports=Ojr});var lR=c((lle,fR)=>{"use strict";function Ijr(r,e){r.data[r.offset]=e()}fR.exports=Ijr});var dR=c((cle,cR)=>{"use strict";function Njr(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}cR.exports=Njr});var yR=c((dle,pR)=>{"use strict";function Djr(r,e){var a,t,o,i,n,s,v,u,f,l;for(i=r.shape,v=r.strides,r.order==="row-major"?(n=i[1],s=i[0],t=v[1],o=v[0]-n*v[1]):(n=i[0],s=i[1],t=v[0],o=v[1]-n*v[0]),u=r.offset,a=r.data,l=0;l<s;l++){for(f=0;f<n;f++)a[u]=e(),u+=t;u+=o}}pR.exports=Djr});var gR=c((ple,mR)=>{"use strict";function kjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p;for(n=r.shape,f=r.strides,r.order==="row-major"?(s=n[2],v=n[1],u=n[0],t=f[2],o=f[1]-s*f[2],i=f[0]-v*f[1]):(s=n[0],v=n[1],u=n[2],t=f[0],o=f[1]-s*f[0],i=f[2]-v*f[1]),l=r.offset,a=r.data,p=0;p<u;p++){for(m=0;m<v;m++){for(d=0;d<s;d++)a[l]=e(),l+=t;l+=o}l+=i}}mR.exports=kjr});var bR=c((yle,hR)=>{"use strict";function Rjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h;for(s=r.shape,d=r.strides,r.order==="row-major"?(v=s[3],u=s[2],f=s[1],l=s[0],t=d[3],o=d[2]-v*d[3],i=d[1]-u*d[2],n=d[0]-f*d[1]):(v=s[0],u=s[1],f=s[2],l=s[3],t=d[0],o=d[1]-v*d[0],i=d[2]-u*d[1],n=d[3]-f*d[2]),m=r.offset,a=r.data,h=0;h<l;h++){for(g=0;g<f;g++){for(y=0;y<u;y++){for(p=0;p<v;p++)a[m]=e(),m+=t;m+=o}m+=i}m+=n}}hR.exports=Rjr});var qR=c((mle,xR)=>{"use strict";function Bjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w;for(v=r.shape,p=r.strides,r.order==="row-major"?(u=v[4],f=v[3],l=v[2],d=v[1],m=v[0],t=p[4],o=p[3]-u*p[4],i=p[2]-f*p[3],n=p[1]-l*p[2],s=p[0]-d*p[1]):(u=v[0],f=v[1],l=v[2],d=v[3],m=v[4],t=p[0],o=p[1]-u*p[0],i=p[2]-f*p[1],n=p[3]-l*p[2],s=p[4]-d*p[3]),y=r.offset,a=r.data,w=0;w<m;w++){for(S=0;S<d;S++){for(b=0;b<l;b++){for(h=0;h<f;h++){for(g=0;g<u;g++)a[y]=e(),y+=t;y+=o}y+=i}y+=n}y+=s}}xR.exports=Bjr});var SR=c((gle,wR)=>{"use strict";function zjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x;for(u=r.shape,g=r.strides,r.order==="row-major"?(f=u[5],l=u[4],d=u[3],m=u[2],p=u[1],y=u[0],t=g[5],o=g[4]-f*g[5],i=g[3]-l*g[4],n=g[2]-d*g[3],s=g[1]-m*g[2],v=g[0]-p*g[1]):(f=u[0],l=u[1],d=u[2],m=u[3],p=u[4],y=u[5],t=g[0],o=g[1]-f*g[0],i=g[2]-l*g[1],n=g[3]-d*g[2],s=g[4]-m*g[3],v=g[5]-p*g[4]),h=r.offset,a=r.data,x=0;x<y;x++){for(_=0;_<p;_++){for(A=0;A<m;A++){for(w=0;w<d;w++){for(S=0;S<l;S++){for(b=0;b<f;b++)a[h]=e(),h+=t;h+=o}h+=i}h+=n}h+=s}h+=v}}wR.exports=zjr});var AR=c((hle,ER)=>{"use strict";function Vjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j;for(f=r.shape,b=r.strides,r.order==="row-major"?(l=f[6],d=f[5],m=f[4],p=f[3],y=f[2],g=f[1],h=f[0],t=b[6],o=b[5]-l*b[6],i=b[4]-d*b[5],n=b[3]-m*b[4],s=b[2]-p*b[3],v=b[1]-y*b[2],u=b[0]-g*b[1]):(l=f[0],d=f[1],m=f[2],p=f[3],y=f[4],g=f[5],h=f[6],t=b[0],o=b[1]-l*b[0],i=b[2]-d*b[1],n=b[3]-m*b[2],s=b[4]-p*b[3],v=b[5]-y*b[4],u=b[6]-g*b[5]),S=r.offset,a=r.data,j=0;j<h;j++){for(q=0;q<g;q++){for(E=0;E<y;E++){for(x=0;x<p;x++){for(_=0;_<m;_++){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+=v}S+=u}}ER.exports=Vjr});var jR=c((ble,_R)=>{"use strict";function Pjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O;for(l=r.shape,w=r.strides,r.order==="row-major"?(d=l[7],m=l[6],p=l[5],y=l[4],g=l[3],h=l[2],b=l[1],S=l[0],t=w[7],o=w[6]-d*w[7],i=w[5]-m*w[6],n=w[4]-p*w[5],s=w[3]-y*w[4],v=w[2]-g*w[3],u=w[1]-h*w[2],f=w[0]-b*w[1]):(d=l[0],m=l[1],p=l[2],y=l[3],g=l[4],h=l[5],b=l[6],S=l[7],t=w[0],o=w[1]-d*w[0],i=w[2]-m*w[1],n=w[3]-p*w[2],s=w[4]-y*w[3],v=w[5]-g*w[4],u=w[6]-h*w[5],f=w[7]-b*w[6]),A=r.offset,a=r.data,O=0;O<S;O++){for(I=0;I<b;I++){for(T=0;T<h;T++){for(j=0;j<g;j++){for(q=0;q<y;q++){for(E=0;E<p;E++){for(x=0;x<m;x++){for(_=0;_<d;_++)a[A]=e(),A+=t;A+=o}A+=i}A+=n}A+=s}A+=v}A+=u}A+=f}}_R.exports=Pjr});var OR=c((xle,TR)=>{"use strict";function Fjr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N;for(d=r.shape,_=r.strides,r.order==="row-major"?(m=d[8],p=d[7],y=d[6],g=d[5],h=d[4],b=d[3],S=d[2],w=d[1],A=d[0],t=_[8],o=_[7]-m*_[8],i=_[6]-p*_[7],n=_[5]-y*_[6],s=_[4]-g*_[5],v=_[3]-h*_[4],u=_[2]-b*_[3],f=_[1]-S*_[2],l=_[0]-w*_[1]):(m=d[0],p=d[1],y=d[2],g=d[3],h=d[4],b=d[5],S=d[6],w=d[7],A=d[8],t=_[0],o=_[1]-m*_[0],i=_[2]-p*_[1],n=_[3]-y*_[2],s=_[4]-g*_[3],v=_[5]-h*_[4],u=_[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(O=0;O<b;O++){for(I=0;I<h;I++){for(T=0;T<g;T++){for(j=0;j<y;j++){for(q=0;q<p;q++){for(E=0;E<m;E++)a[x]=e(),x+=t;x+=o}x+=i}x+=n}x+=s}x+=v}x+=u}x+=f}x+=l}}TR.exports=Fjr});var NR=c((qle,IR)=>{"use strict";function Ljr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R;for(m=r.shape,E=r.strides,r.order==="row-major"?(p=m[9],y=m[8],g=m[7],h=m[6],b=m[5],S=m[4],w=m[3],A=m[2],_=m[1],x=m[0],t=E[9],o=E[8]-p*E[9],i=E[7]-y*E[8],n=E[6]-g*E[7],s=E[5]-h*E[6],v=E[4]-b*E[5],u=E[3]-S*E[4],f=E[2]-w*E[3],l=E[1]-A*E[2],d=E[0]-_*E[1]):(p=m[0],y=m[1],g=m[2],h=m[3],b=m[4],S=m[5],w=m[6],A=m[7],_=m[8],x=m[9],t=E[0],o=E[1]-p*E[0],i=E[2]-y*E[1],n=E[3]-g*E[2],s=E[4]-h*E[3],v=E[5]-b*E[4],u=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,R=0;R<x;R++){for(z=0;z<_;z++){for(B=0;B<A;B++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(O=0;O<h;O++){for(I=0;I<g;I++){for(T=0;T<y;T++){for(j=0;j<p;j++)a[q]=e(),q+=t;q+=o}q+=i}q+=n}q+=s}q+=v}q+=u}q+=f}q+=l}q+=d}}IR.exports=Ljr});var kR=c((wle,DR)=>{"use strict";var Cjr=Wr(),Ujr=ia(),Mjr="throw";function Gjr(r,e){var a,t,o,i,n,s,v,u;for(i=r.shape,o=Cjr(i),a=r.data,n=r.strides,s=r.offset,t=r.order,u=0;u<o;u++)v=Ujr(i,n,s,t,u,Mjr),a[v]=e()}DR.exports=Gjr});var zR=c((Sle,BR)=>{"use strict";var $jr=xa(),Yjr=Za(),Wjr=Wt(),Jjr=ok(),Kjr=nk(),Xjr=uk(),Hjr=lk(),Zjr=dk(),Qjr=yk(),rTr=gk(),eTr=bk(),aTr=qk(),tTr=Sk(),iTr=Ak(),oTr=jk(),sTr=Ok(),nTr=Nk(),vTr=kk(),uTr=Bk(),fTr=Vk(),lTr=Fk(),cTr=Ck(),dTr=Mk(),pTr=$k(),yTr=Wk(),mTr=Kk(),gTr=Hk(),hTr=Qk(),bTr=eR(),xTr=tR(),qTr=oR(),wTr=nR(),STr=uR(),ETr=lR(),ATr=dR(),_Tr=yR(),jTr=gR(),TTr=bR(),OTr=qR(),ITr=SR(),NTr=AR(),DTr=jR(),kTr=OR(),RTr=NR(),BTr=kR(),Ei=[ETr,ATr,_Tr,jTr,TTr,OTr,ITr,NTr,DTr,kTr,RTr],bo=[cTr,dTr,pTr,yTr,mTr,gTr,hTr,bTr,xTr,qTr,wTr],zTr=[tTr,iTr,oTr,sTr,nTr,vTr,uTr,fTr,lTr],VTr=[Jjr,Kjr,Xjr,Hjr,Zjr,Qjr,rTr,eTr,aTr],RR=Ei.length-1;function PTr(r,e){var a,t,o,i,n,s,v,u,f,l,d;if(f=Wjr(r[0]),o=f.shape,a=o.length,a===0)return f.accessorProtocol?bo[a](f,e):Ei[a](f,e);for(n=1,u=0,d=0;d<a;d++)l=o[d],n*=l,l===1&&(u+=1);if(n!==0){if(a===1)return f.accessorProtocol?bo[a](f,e):Ei[a](f,e);if(s=f.strides,u===a-1){for(d=0;d<a&&o[d]===1;d++);return f.shape=[o[d]],f.strides=[s[d]],f.accessorProtocol?bo[1](f,e):Ei[1](f,e)}if(i=$jr(s),i!==0){if(t=Yjr(o,s,f.offset),n===t[1]-t[0]+1)return i===1?v=t[0]:v=t[1],f.shape=[n],f.strides=[i],f.offset=v,f.accessorProtocol?bo[1](f,e):Ei[1](f,e);if(a<=RR)return f.accessorProtocol?bo[a](f,e):Ei[a](f,e)}if(a<=RR)return f.accessorProtocol?VTr[a-2](f,e):zTr[a-2](f,e);if(f.accessorProtocol)return STr(f,e);BTr(f,e)}}BR.exports=PTr});var PR=c((Ele,VR)=>{"use strict";var FTr=zR();VR.exports=FTr});var CR=c((Ale,LR)=>{"use strict";var LTr=ca(),CTr=Ba(),UTr=_e(),FR=cr();function MTr(r,e){var a,t;if(a=CTr(r),a===0)throw new TypeError(FR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",a));if(t=LTr(e,a-1),t===-1)throw new RangeError(FR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",a,e));return UTr(r,!1)[t]}LR.exports=MTr});var Af=c((_le,UR)=>{"use strict";var GTr=CR();UR.exports=GTr});var MR=c((jle,$Tr)=>{$Tr.exports=["same","promoted","bool","signed_integer","unsigned_integer","integer","floating_point","real_floating_point","complex_floating_point","real","numeric","default"]});var $R=c((Tle,GR)=>{"use strict";var YTr=MR();function WTr(){return YTr.slice()}GR.exports=WTr});var WR=c((Ole,YR)=>{"use strict";function JTr(){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}}YR.exports=JTr});var KR=c((Ile,JR)=>{"use strict";var KTr=It(),XTr=qa();function HTr(r,e){var a,t,o;for(a=XTr(e),o=0;o<a.length;o++)t=a[o],KTr(r,t,e[t]);return r}JR.exports=HTr});var Cs=c((Nle,HR)=>{"use strict";var ZTr=Tr(),_f=$R(),XR=WR(),QTr=KR();ZTr(_f,"enum",XR);QTr(_f,XR());HR.exports=_f});var QR=c((Dle,ZR)=>{"use strict";var rOr=ls(),eOr=Cs().enum,aOr=rOr(eOr(),{duplicates:!1});function tOr(r){var e=aOr[r];return typeof e=="string"?e:null}ZR.exports=tOr});var Us=c((kle,rB)=>{"use strict";var iOr=QR();rB.exports=iOr});var aB=c((Rle,eB)=>{"use strict";var oOr=Cs().enum,sOr=oOr();function nOr(r){var e=sOr[r];return typeof e=="number"?e:null}eB.exports=nOr});var Ms=c((Ble,tB)=>{"use strict";var vOr=aB();tB.exports=vOr});var oB=c((zle,iB)=>{"use strict";var uOr=Us(),fOr=Ms();function lOr(r){var e=typeof r;return e==="number"?uOr(r)?r:null:e==="string"?fOr(r):null}iB.exports=lOr});var nB=c((Vle,sB)=>{"use strict";var cOr=oB();sB.exports=cOr});var uB=c((Ple,vB)=>{"use strict";var dOr=Us(),pOr=Ms();function yOr(r){var e=typeof r;return e==="string"?pOr(r)===null?null:r:e==="number"?dOr(r):null}vB.exports=yOr});var lB=c((Fle,fB)=>{"use strict";var mOr=uB();fB.exports=mOr});var gB=c((Lle,mB)=>{"use strict";var gOr=Le(),cB=Ye(),hOr=_e(),bOr=ya(),dB=Ya(),pB=oa(),yB=vt();function xOr(r,e){var a,t,o,i,n,s;for(o=hOr(r,!1),i=bOr(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 gOr(r)?new r.constructor(cB(r),yB(r),t,a,dB(r),pB(r),{readonly:!0}):new r.constructor(cB(r),yB(r),t,a,dB(r),pB(r))}mB.exports=xOr});var bB=c((Cle,hB)=>{"use strict";var qOr=gB();hB.exports=qOr});var AB=c((Ule,EB)=>{"use strict";var wOr=Le(),xB=Ye(),SOr=_e(),EOr=ya(),qB=Ya(),wB=oa(),SB=vt();function AOr(r){var e,a,t,o,i,n;for(t=SOr(r,!1),o=EOr(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:wOr(r)?new r.constructor(xB(r),SB(r),a,e,qB(r),wB(r),{readonly:!0}):new r.constructor(xB(r),SB(r),a,e,qB(r),wB(r))}EB.exports=AOr});var jB=c((Mle,_B)=>{"use strict";var _Or=AB();_B.exports=_Or});var OB=c((Gle,TB)=>{"use strict";var jOr=ge(),TOr=Pe(),OOr=vo(),IOr=pe(),NOr=Ba();function DOr(r,e){var a=OOr(new TOr(null,null,-1),NOr(r));return IOr(r,jOr(a),!0,e)}TB.exports=DOr});var NB=c(($le,IB)=>{"use strict";var kOr=OB();IB.exports=kOr});var RB=c((Yle,kB)=>{"use strict";var wt=Pt(),ROr=ti(),BOr=Ft(),xo=bv(),zOr=Ha(),VOr=ke().enum,POr=Lt().enum,FOr=Ct().enum,LOr=Ye(),COr=_e(),UOr=ya(),MOr=Ya(),GOr=oa(),$Or=VOr(),YOr=POr(),DB=FOr();function WOr(r){var e,a,t,o,i,n,s,v,u,f,l,d,m,p;if(r.__array_meta_dataview__)return r.__array_meta_dataview__();for(o=LOr(r),i=COr(r,!1),n=UOr(r,!1),d=i.length,u=r.mode||"throw",s=r.submode||[u],m=s.length,e=zOr(o),t=33+d*16+m,v=new BOr(new ROr(t)),f=0,v.setInt8(f,wt?1:0),f+=1,v.setInt16(f,$Or[o],wt),f+=2,v.setBigInt64(f,xo(d),wt),l=d*8,f+=8,p=0;p<d;p++)v.setBigInt64(f,xo(i[p]),wt),v.setBigInt64(f+l,xo(n[p]*e),wt),f+=8;for(f+=l,v.setBigInt64(f,xo(MOr(r)*e),wt),f+=8,v.setInt8(f,YOr[GOr(r)]),f+=1,v.setInt8(f,DB[u]),f+=1,v.setBigInt64(f,xo(m),wt),f+=8,p=0;p<m;p++)v.setInt8(f,DB[s[p]]),f+=1;return a=0,r.flags&&(a|=r.flags.READONLY?4:0),v.setInt32(f,a,wt),v}kB.exports=WOr});var VB=c((Wle,zB)=>{"use strict";var jf=Pt(),qo=kv().assign,JOr=ti(),KOr=Qe(),XOr=Ft(),HOr=Ha(),ZOr=ke().enum,QOr=Lt().enum,rIr=Ct().enum,eIr=Ye(),aIr=_e(),tIr=ya(),iIr=Ya(),oIr=oa(),sIr=ZOr(),nIr=QOr(),BB=rIr();function vIr(r){var e,a,t,o,i,n,s,v,u,f,l,d,m,p,y;if(r.__array_meta_dataview__)return r.__array_meta_dataview__();for(i=eIr(r),n=aIr(r,!1),s=tIr(r,!1),m=n.length,f=r.mode||"throw",v=r.submode||[f],p=v.length,e=HOr(i),o=33+m*16+p,u=new XOr(new JOr(o)),a=new KOr(u.buffer),l=0,u.setInt8(l,jf?1:0),l+=1,u.setInt16(l,sIr[i],jf),l+=2,qo(m,a,1,l),d=m*8,l+=8,y=0;y<m;y++)qo(n[y],a,1,l),qo(s[y]*e,a,1,l+d),l+=8;for(l+=d,qo(iIr(r)*e,a,1,l),l+=8,u.setInt8(l,nIr[oIr(r)]),l+=1,u.setInt8(l,BB[f]),l+=1,qo(p,a,1,l),l+=8,y=0;y<p;y++)u.setInt8(l,BB[v[y]]),l+=1;return t=0,r.flags&&(t|=r.flags.READONLY?4:0),u.setInt32(l,t,jf),u}zB.exports=vIr});var FB=c((Jle,PB)=>{"use strict";var uIr=ev(),fIr=RB(),lIr=VB(),Tf;uIr()?Tf=fIr:Tf=lIr;PB.exports=Tf});var CB=c((Kle,LB)=>{"use strict";function cIr(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]===1&&(e+=1);return e}LB.exports=cIr});var MB=c((Xle,UB)=>{"use strict";var dIr=CB();UB.exports=dIr});var YB=c((Hle,$B)=>{"use strict";var pIr=hs(),yIr=mo(),mIr=Xu(),gIr=pe(),GB=Ye(),hIr=_e(),bIr=cr();function xIr(r,e,a,t){var o,i,n;if(i=GB(r),n=GB(e),!pIr(i,n))throw new TypeError(bIr("invalid argument. Input array values cannot be safely cast to the output array data type. Data types: [%s, %s].",i,n));return o=gIr(e,a,t,!0),r=yIr(r,hIr(o,!0)),mIr([r,o]),e}$B.exports=xIr});var Gs=c((Zle,WB)=>{"use strict";var qIr=YB();WB.exports=qIr});var XB=c((Qle,KB)=>{"use strict";var wIr=ge(),SIr=Ba(),EIr=pe(),AIr=ca(),_Ir=wi(),JB=cr();function jIr(r,e,a,t,o){var i,n,s;if(n=SIr(r),n===0)throw new TypeError(JB("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=AIr(e,n-1),s===-1)throw new RangeError(JB("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=_Ir(n),i[s]=a,EIr(r,wIr(i),t,o)}KB.exports=jIr});var Of=c((rce,HB)=>{"use strict";var TIr=XB();HB.exports=TIr});var rz=c((ece,QB)=>{"use strict";var OIr=ge(),IIr=Pe(),NIr=Ba(),DIr=pe(),kIr=ca(),RIr=wi(),ZB=cr();function BIr(r,e,a,t,o){var i,n,s;if(n=NIr(r),n===0)throw new TypeError(ZB("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=kIr(e,n-1),s===-1)throw new RangeError(ZB("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=RIr(n),i[s]=new IIr(a,null),DIr(r,OIr(i),t,o)}QB.exports=BIr});var If=c((ace,ez)=>{"use strict";var zIr=rz();ez.exports=zIr});var iz=c((tce,tz)=>{"use strict";var VIr=ge(),PIr=Pe(),FIr=Ba(),LIr=pe(),CIr=ca(),UIr=wi(),az=cr();function MIr(r,e,a,t,o){var i,n,s;if(n=FIr(r),n===0)throw new TypeError(az("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=CIr(e,n-1),s===-1)throw new RangeError(az("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=UIr(n),i[s]=new PIr(a),LIr(r,VIr(i),t,o)}tz.exports=MIr});var Nf=c((ice,oz)=>{"use strict";var GIr=iz();oz.exports=GIr});var vz=c((oce,nz)=>{"use strict";var $Ir=Ue().isPrimitive,YIr=ge(),sz=Pe(),WIr=_e(),JIr=pe();function KIr(r,e,a,t){var o,i,n,s;for(i=WIr(r),o=[],s=0;s<e.length;s++)n=e[s],$Ir(n)&&n!==0?n===i[s]?(n-=1,o.push(new sz(n,n))):o.push(new sz(n,null)):o.push(null);return JIr(r,YIr(o),a,t)}nz.exports=KIr});var Df=c((sce,uz)=>{"use strict";var XIr=vz();uz.exports=XIr});var lz=c((nce,fz)=>{"use strict";var HIr=Ue().isPrimitive,ZIr=ge(),QIr=Pe(),r7r=pe();function e7r(r,e,a,t){var o,i;for(o=[],i=0;i<e.length;i++)HIr(e[i])?o.push(new QIr(e[i])):o.push(null);return r7r(r,ZIr(o),a,t)}fz.exports=e7r});var kf=c((vce,cz)=>{"use strict";var a7r=lz();cz.exports=a7r});var yz=c((uce,pz)=>{"use strict";var t7r=ca(),i7r=Ba(),o7r=ya(),dz=cr();function s7r(r,e){var a,t;if(a=i7r(r),a===0)throw new TypeError(dz("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",a));if(t=t7r(e,a-1),t===-1)throw new RangeError(dz("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",a,e));return o7r(r,!1)[t]}pz.exports=s7r});var Rf=c((fce,mz)=>{"use strict";var n7r=yz();mz.exports=n7r});var hz=c((lce,gz)=>{"use strict";var v7r=cr();function u7r(){var r,e,a,t,o,i,n,s,v,u,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(v=t[l],f=arguments[l+3],n=i[l%a],n==="clamp")f<0?f=0:f>=v&&(f=v-1);else if(n==="wrap")f<0?(f+=v,f<0&&(f%=v,f!==0&&(f+=v))):f>=v&&(f-=v,f>=v&&(f%=v));else if(n==="normalize"&&f<0&&(f+=v),f<0||f>=v)throw new RangeError(v7r("invalid argument. Subscripts must not exceed array dimensions. Subscript: `%u`. Value: `%d`.",l,f));u=r[l],u<0&&e===0?s-=f*u:s+=f*u}return s}gz.exports=u7r});var Bf=c((cce,bz)=>{"use strict";var f7r=hz();bz.exports=f7r});var wz=c((dce,qz)=>{"use strict";function xz(r,e,a,t,o,i){var n,s,v,u,f;if(i>=e.length)return r.accessors[0](r.data,t);for(v=[],u=e[i],n=a[i],f=0;f<u;f++)s=xz(r,e,a,t,o,i+1),v.push(s),t+=n;return v}qz.exports=xz});var Ez=c((pce,Sz)=>{"use strict";var l7r=nt(),c7r=wz();function d7r(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 c7r(l7r(r),e,a,t,o,0)}Sz.exports=d7r});var zf=c((yce,Az)=>{"use strict";var p7r=Ez();Az.exports=p7r});var jz=c((mce,_z)=>{"use strict";var y7r=Me(),m7r=Ye(),g7r=_e(),h7r=ya(),b7r=oa(),x7r=vt();function q7r(r){var e,a,t,o;if(a=g7r(r,!0),o=a.length,o<2)throw new Error("invalid argument. Must provide an ndarray having two or more dimensions.");return t=h7r(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(m7r(r),x7r(r),a,t,y7r(a,t),b7r(r))}_z.exports=q7r});var Oz=c((gce,Tz)=>{"use strict";var w7r=jz();Tz.exports=w7r});var Nz=c((hce,Iz)=>{"use strict";var S7r=zr(),E7r=Br();function A7r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T;for(T=S7r(r.shape,r.strides,e.strides),p=T.sh,h=T.sx,b=T.sy,t=E7r(r.dtype,e.dtype),S=r.offset,w=e.offset,o=r.data,i=e.data,v=h[0],f=b[0],n=r.accessors[0],s=e.accessors[1],j=p[1];j>0;)for(j<t?(g=j,j=0):(g=t,j-=t),d=S+j*h[1],m=w+j*b[1],q=p[0];q>0;)for(q<t?(y=q,q=0):(y=t,q-=t),A=d+q*h[0],_=m+q*b[0],u=h[1]-y*h[0],l=b[1]-y*b[0],E=0;E<g;E++){for(x=0;x<y;x++)s(i,_,a(n(o,A))),A+=v,_+=f;A+=u,_+=l}}Iz.exports=A7r});var kz=c((bce,Dz)=>{"use strict";var _7r=zr(),j7r=Br();function T7r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z;for(z=_7r(r.shape,r.strides,e.strides),b=z.sh,_=z.sx,x=z.sy,t=j7r(r.dtype,e.dtype),E=r.offset,q=e.offset,o=r.data,i=e.data,v=_[0],l=x[0],n=r.accessors[0],s=e.accessors[1],B=b[2];B>0;)for(B<t?(A=B,B=0):(A=t,B-=t),y=E+B*_[2],h=q+B*x[2],N=b[1];N>0;)for(N<t?(w=N,N=0):(w=t,N-=t),f=_[2]-w*_[1],m=x[2]-w*x[1],p=y+N*_[1],g=h+N*x[1],k=b[0];k>0;)for(k<t?(S=k,k=0):(S=t,k-=t),j=p+k*_[0],T=g+k*x[0],u=_[1]-S*_[0],d=x[1]-S*x[0],D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++)s(i,T,a(n(o,j))),j+=v,T+=l;j+=u,T+=d}j+=f,T+=m}}Dz.exports=T7r});var Bz=c((xce,Rz)=>{"use strict";var O7r=zr(),I7r=Br();function N7r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U;for(U=O7r(r.shape,r.strides,e.strides),_=U.sh,T=U.sx,I=U.sy,t=I7r(r.dtype,e.dtype),O=r.offset,D=e.offset,o=r.data,i=e.data,v=T[0],d=I[0],n=r.accessors[0],s=e.accessors[1],C=_[3];C>0;)for(C<t?(j=C,C=0):(j=t,C-=t),b=O+C*T[3],A=D+C*I[3],L=_[2];L>0;)for(L<t?(q=L,L=0):(q=t,L-=t),l=T[3]-q*T[2],y=I[3]-q*I[2],h=b+L*T[2],w=A+L*I[2],F=_[1];F>0;)for(F<t?(E=F,F=0):(E=t,F-=t),f=T[2]-E*T[1],p=I[2]-E*I[1],g=h+F*T[1],S=w+F*I[1],P=_[0];P>0;)for(P<t?(x=P,P=0):(x=t,P-=t),k=g+P*T[0],N=S+P*I[0],u=T[1]-x*T[0],m=I[1]-x*I[0],V=0;V<j;V++){for(R=0;R<q;R++){for(z=0;z<E;z++){for(B=0;B<x;B++)s(i,N,a(n(o,k))),k+=v,N+=d;k+=u,N+=m}k+=f,N+=p}k+=l,N+=y}}Rz.exports=N7r});var Vz=c((qce,zz)=>{"use strict";var D7r=zr(),k7r=Br();function R7r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K;for(K=D7r(r.shape,r.strides,e.strides),j=K.sh,N=K.sx,B=K.sy,t=k7r(r.dtype,e.dtype),z=r.offset,R=e.offset,o=r.data,i=e.data,v=N[0],m=B[0],n=r.accessors[0],s=e.accessors[1],J=j[4];J>0;)for(J<t?(k=J,J=0):(k=t,J-=t),A=z+J*N[4],q=R+J*B[4],W=j[3];W>0;)for(W<t?(D=W,W=0):(D=t,W-=t),d=N[4]-D*N[3],h=B[4]-D*B[3],w=A+W*N[3],E=q+W*B[3],$=j[2];$>0;)for($<t?(O=$,$=0):(O=t,$-=t),l=N[3]-O*N[2],g=B[3]-O*B[2],S=w+$*N[2],x=E+$*B[2],Y=j[1];Y>0;)for(Y<t?(I=Y,Y=0):(I=t,Y-=t),f=N[2]-I*N[1],y=B[2]-I*B[1],b=S+Y*N[1],_=x+Y*B[1],G=j[0];G>0;)for(G<t?(T=G,G=0):(T=t,G-=t),V=b+G*N[0],P=_+G*B[0],u=N[1]-T*N[0],p=B[1]-T*B[0],M=0;M<k;M++){for(U=0;U<D;U++){for(C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++)s(i,P,a(n(o,V))),V+=v,P+=m;V+=u,P+=p}V+=f,P+=y}V+=l,P+=g}V+=d,P+=h}}zz.exports=R7r});var Fz=c((wce,Pz)=>{"use strict";var B7r=zr(),z7r=Br();function V7r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er;for(er=B7r(r.shape,r.strides,e.strides),D=er.sh,P=er.sx,F=er.sy,t=z7r(r.dtype,e.dtype),L=r.offset,C=e.offset,o=r.data,i=e.data,v=P[0],p=F[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*P[5],O=C+ar*F[5],rr=D[4];rr>0;)for(rr<t?(R=rr,rr=0):(R=t,rr-=t),m=P[5]-R*P[4],S=F[5]-R*F[4],x=E+rr*P[4],I=O+rr*F[4],Z=D[3];Z>0;)for(Z<t?(z=Z,Z=0):(z=t,Z-=t),d=P[4]-z*P[3],b=F[4]-z*F[3],_=x+Z*P[3],T=I+Z*F[3],Q=D[2];Q>0;)for(Q<t?(B=Q,Q=0):(B=t,Q-=t),l=P[3]-B*P[2],h=F[3]-B*F[2],A=_+Q*P[2],j=T+Q*F[2],H=D[1];H>0;)for(H<t?(N=H,H=0):(N=t,H-=t),f=P[2]-N*P[1],g=F[2]-N*F[1],w=A+H*P[1],q=j+H*F[1],X=D[0];X>0;)for(X<t?(k=X,X=0):(k=t,X-=t),U=w+X*P[0],M=q+X*F[0],u=P[1]-k*P[0],y=F[1]-k*F[0],K=0;K<V;K++){for(J=0;J<R;J++){for(W=0;W<z;W++){for($=0;$<B;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++)s(i,M,a(n(o,U))),U+=v,M+=p;U+=u,M+=y}U+=f,M+=g}U+=l,M+=h}U+=d,M+=b}U+=m,M+=S}}Pz.exports=V7r});var Cz=c((Sce,Lz)=>{"use strict";var P7r=zr(),F7r=Br();function L7r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur;for(ur=P7r(r.shape,r.strides,e.strides),z=ur.sh,M=ur.sx,G=ur.sy,t=F7r(r.dtype,e.dtype),Y=r.offset,$=e.offset,o=r.data,i=e.data,v=M[0],y=G[0],n=r.accessors[0],s=e.accessors[1],vr=z[6];vr>0;)for(vr<t?(U=vr,vr=0):(U=t,vr-=t),T=Y+vr*M[6],B=$+vr*G[6],nr=z[5];nr>0;)for(nr<t?(C=nr,nr=0):(C=t,nr-=t),p=M[6]-C*M[5],A=G[6]-C*G[5],j=T+nr*M[5],N=B+nr*G[5],sr=z[4];sr>0;)for(sr<t?(L=sr,sr=0):(L=t,sr-=t),m=M[5]-L*M[4],w=G[5]-L*G[4],q=j+sr*M[4],k=N+sr*G[4],or=z[3];or>0;)for(or<t?(F=or,or=0):(F=t,or-=t),d=M[4]-F*M[3],S=G[4]-F*G[3],E=q+or*M[3],D=k+or*G[3],tr=z[2];tr>0;)for(tr<t?(P=tr,tr=0):(P=t,tr-=t),l=M[3]-P*M[2],b=G[3]-P*G[2],x=E+tr*M[2],O=D+tr*G[2],ir=z[1];ir>0;)for(ir<t?(V=ir,ir=0):(V=t,ir-=t),f=M[2]-V*M[1],h=G[2]-V*G[1],_=x+ir*M[1],I=O+ir*G[1],er=z[0];er>0;)for(er<t?(R=er,er=0):(R=t,er-=t),W=_+er*M[0],J=I+er*G[0],u=M[1]-R*M[0],g=G[1]-R*G[0],ar=0;ar<U;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<F;Q++){for(H=0;H<P;H++){for(X=0;X<V;X++){for(K=0;K<R;K++)s(i,J,a(n(o,W))),W+=v,J+=y;W+=u,J+=g}W+=f,J+=h}W+=l,J+=b}W+=d,J+=S}W+=m,J+=w}W+=p,J+=A}}Lz.exports=L7r});var Mz=c((Ece,Uz)=>{"use strict";var C7r=zr(),U7r=Br();function M7r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr;for(hr=C7r(r.shape,r.strides,e.strides),F=hr.sh,J=hr.sx,K=hr.sy,t=U7r(r.dtype,e.dtype),X=r.offset,H=e.offset,o=r.data,i=e.data,v=J[0],g=K[0],n=r.accessors[0],s=e.accessors[1],mr=F[7];mr>0;)for(mr<t?(W=mr,mr=0):(W=t,mr-=t),D=X+mr*J[7],P=H+mr*K[7],yr=F[6];yr>0;)for(yr<t?($=yr,yr=0):($=t,yr-=t),y=J[7]-$*J[6],x=K[7]-$*K[6],O=D+yr*J[6],V=P+yr*K[6],dr=F[5];dr>0;)for(dr<t?(Y=dr,dr=0):(Y=t,dr-=t),p=J[6]-Y*J[5],_=K[6]-Y*K[5],I=O+dr*J[5],R=V+dr*K[5],pr=F[4];pr>0;)for(pr<t?(G=pr,pr=0):(G=t,pr-=t),m=J[5]-G*J[4],A=K[5]-G*K[4],T=I+pr*J[4],z=R+pr*K[4],fr=F[3];fr>0;)for(fr<t?(M=fr,fr=0):(M=t,fr-=t),d=J[4]-M*J[3],w=K[4]-M*K[3],j=T+fr*J[3],B=z+fr*K[3],lr=F[2];lr>0;)for(lr<t?(U=lr,lr=0):(U=t,lr-=t),l=J[3]-U*J[2],S=K[3]-U*K[2],q=j+lr*J[2],N=B+lr*K[2],ur=F[1];ur>0;)for(ur<t?(C=ur,ur=0):(C=t,ur-=t),f=J[2]-C*J[1],b=K[2]-C*K[1],E=q+ur*J[1],k=N+ur*K[1],vr=F[0];vr>0;)for(vr<t?(L=vr,vr=0):(L=t,vr-=t),Q=E+vr*J[0],Z=k+vr*K[0],u=J[1]-L*J[0],h=K[1]-L*K[0],nr=0;nr<W;nr++){for(sr=0;sr<$;sr++){for(or=0;or<Y;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<C;ar++){for(rr=0;rr<L;rr++)s(i,Z,a(n(o,Q))),Q+=v,Z+=g;Q+=u,Z+=h}Q+=f,Z+=b}Q+=l,Z+=S}Q+=d,Z+=w}Q+=m,Z+=A}Q+=p,Z+=_}Q+=y,Z+=x}}Uz.exports=M7r});var $z=c((Ace,Gz)=>{"use strict";var G7r=zr(),$7r=Br();function Y7r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr,Er,Ar,_r;for(_r=G7r(r.shape,r.strides,e.strides),M=_r.sh,Z=_r.sx,rr=_r.sy,t=$7r(r.dtype,e.dtype),ar=r.offset,er=e.offset,o=r.data,i=e.data,v=Z[0],h=rr[0],n=r.accessors[0],s=e.accessors[1],Ar=M[8];Ar>0;)for(Ar<t?(Q=Ar,Ar=0):(Q=t,Ar-=t),B=ar+Ar*Z[8],U=er+Ar*rr[8],Er=M[7];Er>0;)for(Er<t?(H=Er,Er=0):(H=t,Er-=t),g=Z[8]-H*Z[7],q=rr[8]-H*rr[7],N=B+Er*Z[7],C=U+Er*rr[7],gr=M[6];gr>0;)for(gr<t?(X=gr,gr=0):(X=t,gr-=t),y=Z[7]-X*Z[6],E=rr[7]-X*rr[6],k=N+gr*Z[6],L=C+gr*rr[6],xr=M[5];xr>0;)for(xr<t?(K=xr,xr=0):(K=t,xr-=t),p=Z[6]-K*Z[5],x=rr[6]-K*rr[5],D=k+xr*Z[5],F=L+xr*rr[5],br=M[4];br>0;)for(br<t?(J=br,br=0):(J=t,br-=t),m=Z[5]-J*Z[4],_=rr[5]-J*rr[4],O=D+br*Z[4],P=F+br*rr[4],qr=M[3];qr>0;)for(qr<t?(W=qr,qr=0):(W=t,qr-=t),d=Z[4]-W*Z[3],A=rr[4]-W*rr[3],I=O+qr*Z[3],V=P+qr*rr[3],hr=M[2];hr>0;)for(hr<t?($=hr,hr=0):($=t,hr-=t),l=Z[3]-$*Z[2],w=rr[3]-$*rr[2],T=I+hr*Z[2],R=V+hr*rr[2],mr=M[1];mr>0;)for(mr<t?(Y=mr,mr=0):(Y=t,mr-=t),f=Z[2]-Y*Z[1],S=rr[2]-Y*rr[1],j=T+mr*Z[1],z=R+mr*rr[1],yr=M[0];yr>0;)for(yr<t?(G=yr,yr=0):(G=t,yr-=t),ir=j+yr*Z[0],tr=z+yr*rr[0],u=Z[1]-G*Z[0],b=rr[1]-G*rr[0],dr=0;dr<Q;dr++){for(pr=0;pr<H;pr++){for(fr=0;fr<X;fr++){for(lr=0;lr<K;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++){for(sr=0;sr<Y;sr++){for(or=0;or<G;or++)s(i,tr,a(n(o,ir))),ir+=v,tr+=h;ir+=u,tr+=b}ir+=f,tr+=S}ir+=l,tr+=w}ir+=d,tr+=A}ir+=m,tr+=_}ir+=p,tr+=x}ir+=y,tr+=E}ir+=g,tr+=q}}Gz.exports=Y7r});var Wz=c((_ce,Yz)=>{"use strict";var W7r=zr(),J7r=Br();function K7r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr,Er,Ar,_r,jr,Or,Rr,Vr,Xr,te,Ne;for(Ne=W7r(r.shape,r.strides,e.strides),W=Ne.sh,tr=Ne.sx,or=Ne.sy,t=J7r(r.dtype,e.dtype),sr=r.offset,nr=e.offset,o=r.data,i=e.data,v=tr[0],b=or[0],n=r.accessors[0],s=e.accessors[1],te=W[9];te>0;)for(te<t?(ir=te,te=0):(ir=t,te-=t),V=sr+te*tr[9],$=nr+te*or[9],Xr=W[8];Xr>0;)for(Xr<t?(er=Xr,Xr=0):(er=t,Xr-=t),h=tr[9]-er*tr[8],T=or[9]-er*or[8],R=V+Xr*tr[8],Y=$+Xr*or[8],Vr=W[7];Vr>0;)for(Vr<t?(ar=Vr,Vr=0):(ar=t,Vr-=t),g=tr[8]-ar*tr[7],j=or[8]-ar*or[7],z=R+Vr*tr[7],G=Y+Vr*or[7],Rr=W[6];Rr>0;)for(Rr<t?(rr=Rr,Rr=0):(rr=t,Rr-=t),y=tr[7]-rr*tr[6],q=or[7]-rr*or[6],B=z+Rr*tr[6],M=G+Rr*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=B+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],x=or[5]-Q*or[4],k=N+jr*tr[4],C=U+jr*or[4],_r=W[3];_r>0;)for(_r<t?(H=_r,_r=0):(H=t,_r-=t),d=tr[4]-H*tr[3],_=or[4]-H*or[3],D=k+_r*tr[3],L=C+_r*or[3],Ar=W[2];Ar>0;)for(Ar<t?(X=Ar,Ar=0):(X=t,Ar-=t),l=tr[3]-X*tr[2],A=or[3]-X*or[2],O=D+Ar*tr[2],F=L+Ar*or[2],Er=W[1];Er>0;)for(Er<t?(K=Er,Er=0):(K=t,Er-=t),f=tr[2]-K*tr[1],w=or[2]-K*or[1],I=O+Er*tr[1],P=F+Er*or[1],gr=W[0];gr>0;)for(gr<t?(J=gr,gr=0):(J=t,gr-=t),vr=I+gr*tr[0],ur=P+gr*or[0],u=tr[1]-J*tr[0],S=or[1]-J*or[0],xr=0;xr<ir;xr++){for(br=0;br<er;br++){for(qr=0;qr<ar;qr++){for(hr=0;hr<rr;hr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<X;pr++){for(fr=0;fr<K;fr++){for(lr=0;lr<J;lr++)s(i,ur,a(n(o,vr))),vr+=v,ur+=b;vr+=u,ur+=S}vr+=f,ur+=w}vr+=l,ur+=A}vr+=d,ur+=_}vr+=m,ur+=x}vr+=p,ur+=E}vr+=y,ur+=q}vr+=g,ur+=j}vr+=h,ur+=T}}Yz.exports=K7r});var Kz=c((jce,Jz)=>{"use strict";var X7r=zr(),H7r=Br();function Z7r(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q;for(q=X7r(r.shape,r.strides,e.strides),d=q.sh,y=q.sx,g=q.sy,t=H7r(r.dtype,e.dtype),h=r.offset,b=e.offset,o=r.data,i=e.data,n=y[0],v=g[0],E=d[1];E>0;)for(E<t?(p=E,E=0):(p=t,E-=t),f=h+E*y[1],l=b+E*g[1],x=d[0];x>0;)for(x<t?(m=x,x=0):(m=t,x-=t),S=f+x*y[0],w=l+x*g[0],s=y[1]-m*y[0],u=g[1]-m*g[0],_=0;_<p;_++){for(A=0;A<m;A++)i[w]=a(o[S]),S+=n,w+=v;S+=s,w+=u}}Jz.exports=Z7r});var Hz=c((Tce,Xz)=>{"use strict";var Q7r=zr(),rNr=Br();function eNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N;for(N=Q7r(r.shape,r.strides,e.strides),g=N.sh,w=N.sx,A=N.sy,t=rNr(r.dtype,e.dtype),_=r.offset,x=e.offset,o=r.data,i=e.data,n=w[0],u=A[0],k=g[2];k>0;)for(k<t?(S=k,k=0):(S=t,k-=t),m=_+k*w[2],y=x+k*A[2],D=g[1];D>0;)for(D<t?(b=D,D=0):(b=t,D-=t),v=w[2]-b*w[1],l=A[2]-b*A[1],d=m+D*w[1],p=y+D*A[1],O=g[0];O>0;)for(O<t?(h=O,O=0):(h=t,O-=t),E=d+O*w[0],q=p+O*A[0],s=w[1]-h*w[0],f=A[1]-h*A[0],I=0;I<S;I++){for(T=0;T<b;T++){for(j=0;j<h;j++)i[q]=a(o[E]),E+=n,q+=u;E+=s,q+=f}E+=v,q+=l}}Xz.exports=eNr});var Qz=c((Oce,Zz)=>{"use strict";var aNr=zr(),tNr=Br();function iNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L;for(L=aNr(r.shape,r.strides,e.strides),w=L.sh,q=L.sx,j=L.sy,t=tNr(r.dtype,e.dtype),T=r.offset,I=e.offset,o=r.data,i=e.data,n=q[0],f=j[0],F=w[3];F>0;)for(F<t?(E=F,F=0):(E=t,F-=t),g=T+F*q[3],S=I+F*j[3],P=w[2];P>0;)for(P<t?(x=P,P=0):(x=t,P-=t),u=q[3]-x*q[2],m=j[3]-x*j[2],y=g+P*q[2],b=S+P*j[2],V=w[1];V>0;)for(V<t?(_=V,V=0):(_=t,V-=t),v=q[2]-_*q[1],d=j[2]-_*j[1],p=y+V*q[1],h=b+V*j[1],R=w[0];R>0;)for(R<t?(A=R,R=0):(A=t,R-=t),O=p+R*q[0],D=h+R*j[0],s=q[1]-A*q[0],l=j[1]-A*j[0],z=0;z<E;z++){for(B=0;B<x;B++){for(N=0;N<_;N++){for(k=0;k<A;k++)i[D]=a(o[O]),O+=n,D+=f;O+=s,D+=l}O+=v,D+=d}O+=u,D+=m}}Zz.exports=iNr});var eV=c((Ice,rV)=>{"use strict";var oNr=zr(),sNr=Br();function nNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W;for(W=oNr(r.shape,r.strides,e.strides),E=W.sh,D=W.sx,k=W.sy,t=sNr(r.dtype,e.dtype),N=r.offset,B=e.offset,o=r.data,i=e.data,n=D[0],l=k[0],$=E[4];$>0;)for($<t?(O=$,$=0):(O=t,$-=t),S=N+$*D[4],x=B+$*k[4],Y=E[3];Y>0;)for(Y<t?(I=Y,Y=0):(I=t,Y-=t),f=D[4]-I*D[3],y=k[4]-I*k[3],b=S+Y*D[3],_=x+Y*k[3],G=E[2];G>0;)for(G<t?(T=G,G=0):(T=t,G-=t),u=D[3]-T*D[2],p=k[3]-T*k[2],h=b+G*D[2],A=_+G*k[2],M=E[1];M>0;)for(M<t?(j=M,M=0):(j=t,M-=t),v=D[2]-j*D[1],m=k[2]-j*k[1],g=h+M*D[1],w=A+M*k[1],U=E[0];U>0;)for(U<t?(q=U,U=0):(q=t,U-=t),z=g+U*D[0],R=w+U*k[0],s=D[1]-q*D[0],d=k[1]-q*k[0],C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(V=0;V<q;V++)i[R]=a(o[z]),z+=n,R+=l;z+=s,R+=d}z+=v,R+=m}z+=u,R+=p}z+=f,R+=y}}rV.exports=nNr});var tV=c((Nce,aV)=>{"use strict";var vNr=zr(),uNr=Br();function fNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr;for(rr=vNr(r.shape,r.strides,e.strides),I=rr.sh,R=rr.sx,V=rr.sy,t=uNr(r.dtype,e.dtype),P=r.offset,F=e.offset,o=r.data,i=e.data,n=R[0],d=V[0],Z=I[5];Z>0;)for(Z<t?(z=Z,Z=0):(z=t,Z-=t),_=P+Z*R[5],T=F+Z*V[5],Q=I[4];Q>0;)for(Q<t?(B=Q,Q=0):(B=t,Q-=t),l=R[5]-B*R[4],h=V[5]-B*V[4],A=_+Q*R[4],j=T+Q*V[4],H=I[3];H>0;)for(H<t?(N=H,H=0):(N=t,H-=t),f=R[4]-N*R[3],g=V[4]-N*V[3],w=A+H*R[3],q=j+H*V[3],X=I[2];X>0;)for(X<t?(k=X,X=0):(k=t,X-=t),u=R[3]-k*R[2],y=V[3]-k*V[2],S=w+X*R[2],E=q+X*V[2],K=I[1];K>0;)for(K<t?(D=K,K=0):(D=t,K-=t),v=R[2]-D*R[1],p=V[2]-D*V[1],b=S+K*R[1],x=E+K*V[1],J=I[0];J>0;)for(J<t?(O=J,J=0):(O=t,J-=t),L=b+J*R[0],C=x+J*V[0],s=R[1]-O*R[0],m=V[1]-O*V[0],W=0;W<z;W++){for($=0;$<B;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++)i[C]=a(o[L]),L+=n,C+=d;L+=s,C+=m}L+=v,C+=p}L+=u,C+=y}L+=f,C+=g}L+=l,C+=h}}aV.exports=fNr});var oV=c((Dce,iV)=>{"use strict";var lNr=zr(),cNr=Br();function dNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr;for(nr=lNr(r.shape,r.strides,e.strides),N=nr.sh,C=nr.sx,U=nr.sy,t=cNr(r.dtype,e.dtype),M=r.offset,G=e.offset,o=r.data,i=e.data,n=C[0],m=U[0],sr=N[6];sr>0;)for(sr<t?(L=sr,sr=0):(L=t,sr-=t),q=M+sr*C[6],k=G+sr*U[6],or=N[5];or>0;)for(or<t?(F=or,or=0):(F=t,or-=t),d=C[6]-F*C[5],S=U[6]-F*U[5],E=q+or*C[5],D=k+or*U[5],tr=N[4];tr>0;)for(tr<t?(P=tr,tr=0):(P=t,tr-=t),l=C[5]-P*C[4],b=U[5]-P*U[4],x=E+tr*C[4],O=D+tr*U[4],ir=N[3];ir>0;)for(ir<t?(V=ir,ir=0):(V=t,ir-=t),f=C[4]-V*C[3],h=U[4]-V*U[3],_=x+ir*C[3],I=O+ir*U[3],er=N[2];er>0;)for(er<t?(R=er,er=0):(R=t,er-=t),u=C[3]-R*C[2],g=U[3]-R*U[2],A=_+er*C[2],T=I+er*U[2],ar=N[1];ar>0;)for(ar<t?(z=ar,ar=0):(z=t,ar-=t),v=C[2]-z*C[1],y=U[2]-z*U[1],w=A+ar*C[1],j=T+ar*U[1],rr=N[0];rr>0;)for(rr<t?(B=rr,rr=0):(B=t,rr-=t),Y=w+rr*C[0],$=j+rr*U[0],s=C[1]-B*C[0],p=U[1]-B*U[0],Z=0;Z<L;Z++){for(Q=0;Q<F;Q++){for(H=0;H<P;H++){for(X=0;X<V;X++){for(K=0;K<R;K++){for(J=0;J<z;J++){for(W=0;W<B;W++)i[$]=a(o[Y]),Y+=n,$+=m;Y+=s,$+=p}Y+=v,$+=y}Y+=u,$+=g}Y+=f,$+=h}Y+=l,$+=b}Y+=d,$+=S}}iV.exports=dNr});var nV=c((kce,sV)=>{"use strict";var pNr=zr(),yNr=Br();function mNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr;for(yr=pNr(r.shape,r.strides,e.strides),V=yr.sh,$=yr.sx,W=yr.sy,t=yNr(r.dtype,e.dtype),J=r.offset,K=e.offset,o=r.data,i=e.data,n=$[0],p=W[0],dr=V[7];dr>0;)for(dr<t?(Y=dr,dr=0):(Y=t,dr-=t),I=J+dr*$[7],R=K+dr*W[7],pr=V[6];pr>0;)for(pr<t?(G=pr,pr=0):(G=t,pr-=t),m=$[7]-G*$[6],A=W[7]-G*W[6],T=I+pr*$[6],z=R+pr*W[6],fr=V[5];fr>0;)for(fr<t?(M=fr,fr=0):(M=t,fr-=t),d=$[6]-M*$[5],w=W[6]-M*W[5],j=T+fr*$[5],B=z+fr*W[5],lr=V[4];lr>0;)for(lr<t?(U=lr,lr=0):(U=t,lr-=t),l=$[5]-U*$[4],S=W[5]-U*W[4],q=j+lr*$[4],N=B+lr*W[4],ur=V[3];ur>0;)for(ur<t?(C=ur,ur=0):(C=t,ur-=t),f=$[4]-C*$[3],b=W[4]-C*W[3],E=q+ur*$[3],k=N+ur*W[3],vr=V[2];vr>0;)for(vr<t?(L=vr,vr=0):(L=t,vr-=t),u=$[3]-L*$[2],h=W[3]-L*W[2],x=E+vr*$[2],D=k+vr*W[2],nr=V[1];nr>0;)for(nr<t?(F=nr,nr=0):(F=t,nr-=t),v=$[2]-F*$[1],g=W[2]-F*W[1],_=x+nr*$[1],O=D+nr*W[1],sr=V[0];sr>0;)for(sr<t?(P=sr,sr=0):(P=t,sr-=t),X=_+sr*$[0],H=O+sr*W[0],s=$[1]-P*$[0],y=W[1]-P*W[0],or=0;or<Y;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<C;ar++){for(rr=0;rr<L;rr++){for(Z=0;Z<F;Z++){for(Q=0;Q<P;Q++)i[H]=a(o[X]),X+=n,H+=p;X+=s,H+=y}X+=v,H+=g}X+=u,H+=h}X+=f,H+=b}X+=l,H+=S}X+=d,H+=w}X+=m,H+=A}}sV.exports=mNr});var uV=c((Rce,vV)=>{"use strict";var gNr=zr(),hNr=Br();function bNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr,Er;for(Er=gNr(r.shape,r.strides,e.strides),C=Er.sh,H=Er.sx,Q=Er.sy,t=hNr(r.dtype,e.dtype),Z=r.offset,rr=e.offset,o=r.data,i=e.data,n=H[0],y=Q[0],gr=C[8];gr>0;)for(gr<t?(X=gr,gr=0):(X=t,gr-=t),k=Z+gr*H[8],L=rr+gr*Q[8],xr=C[7];xr>0;)for(xr<t?(K=xr,xr=0):(K=t,xr-=t),p=H[8]-K*H[7],x=Q[8]-K*Q[7],D=k+xr*H[7],F=L+xr*Q[7],br=C[6];br>0;)for(br<t?(J=br,br=0):(J=t,br-=t),m=H[7]-J*H[6],_=Q[7]-J*Q[6],O=D+br*H[6],P=F+br*Q[6],qr=C[5];qr>0;)for(qr<t?(W=qr,qr=0):(W=t,qr-=t),d=H[6]-W*H[5],A=Q[6]-W*Q[5],I=O+qr*H[5],V=P+qr*Q[5],hr=C[4];hr>0;)for(hr<t?($=hr,hr=0):($=t,hr-=t),l=H[5]-$*H[4],w=Q[5]-$*Q[4],T=I+hr*H[4],R=V+hr*Q[4],mr=C[3];mr>0;)for(mr<t?(Y=mr,mr=0):(Y=t,mr-=t),f=H[4]-Y*H[3],S=Q[4]-Y*Q[3],j=T+mr*H[3],z=R+mr*Q[3],yr=C[2];yr>0;)for(yr<t?(G=yr,yr=0):(G=t,yr-=t),u=H[3]-G*H[2],b=Q[3]-G*Q[2],q=j+yr*H[2],B=z+yr*Q[2],dr=C[1];dr>0;)for(dr<t?(M=dr,dr=0):(M=t,dr-=t),v=H[2]-M*H[1],h=Q[2]-M*Q[1],E=q+dr*H[1],N=B+dr*Q[1],pr=C[0];pr>0;)for(pr<t?(U=pr,pr=0):(U=t,pr-=t),ar=E+pr*H[0],er=N+pr*Q[0],s=H[1]-U*H[0],g=Q[1]-U*Q[0],fr=0;fr<X;fr++){for(lr=0;lr<K;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++){for(sr=0;sr<Y;sr++){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+=g}ar+=v,er+=h}ar+=u,er+=b}ar+=f,er+=S}ar+=l,er+=w}ar+=d,er+=A}ar+=m,er+=_}ar+=p,er+=x}}vV.exports=bNr});var lV=c((Bce,fV)=>{"use strict";var xNr=zr(),qNr=Br();function wNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr,Er,Ar,_r,jr,Or,Rr,Vr,Xr;for(Xr=xNr(r.shape,r.strides,e.strides),Y=Xr.sh,er=Xr.sx,ir=Xr.sy,t=qNr(r.dtype,e.dtype),tr=r.offset,or=e.offset,o=r.data,i=e.data,n=er[0],g=ir[0],Vr=Y[9];Vr>0;)for(Vr<t?(ar=Vr,Vr=0):(ar=t,Vr-=t),z=tr+Vr*er[9],G=or+Vr*ir[9],Rr=Y[8];Rr>0;)for(Rr<t?(rr=Rr,Rr=0):(rr=t,Rr-=t),y=er[9]-rr*er[8],q=ir[9]-rr*ir[8],B=z+Rr*er[8],M=G+Rr*ir[8],Or=Y[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=B+Or*er[7],U=M+Or*ir[7],jr=Y[6];jr>0;)for(jr<t?(Q=jr,jr=0):(Q=t,jr-=t),m=er[7]-Q*er[6],x=ir[7]-Q*ir[6],k=N+jr*er[6],C=U+jr*ir[6],_r=Y[5];_r>0;)for(_r<t?(H=_r,_r=0):(H=t,_r-=t),d=er[6]-H*er[5],_=ir[6]-H*ir[5],D=k+_r*er[5],L=C+_r*ir[5],Ar=Y[4];Ar>0;)for(Ar<t?(X=Ar,Ar=0):(X=t,Ar-=t),l=er[5]-X*er[4],A=ir[5]-X*ir[4],O=D+Ar*er[4],F=L+Ar*ir[4],Er=Y[3];Er>0;)for(Er<t?(K=Er,Er=0):(K=t,Er-=t),f=er[4]-K*er[3],w=ir[4]-K*ir[3],I=O+Er*er[3],P=F+Er*ir[3],gr=Y[2];gr>0;)for(gr<t?(J=gr,gr=0):(J=t,gr-=t),u=er[3]-J*er[2],S=ir[3]-J*ir[2],T=I+gr*er[2],V=P+gr*ir[2],xr=Y[1];xr>0;)for(xr<t?(W=xr,xr=0):(W=t,xr-=t),v=er[2]-W*er[1],b=ir[2]-W*ir[1],j=T+xr*er[1],R=V+xr*ir[1],br=Y[0];br>0;)for(br<t?($=br,br=0):($=t,br-=t),sr=j+br*er[0],nr=R+br*ir[0],s=er[1]-$*er[0],h=ir[1]-$*ir[0],qr=0;qr<ar;qr++){for(hr=0;hr<rr;hr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<X;pr++){for(fr=0;fr<K;fr++){for(lr=0;lr<J;lr++){for(ur=0;ur<W;ur++){for(vr=0;vr<$;vr++)i[nr]=a(o[sr]),sr+=n,nr+=g;sr+=s,nr+=h}sr+=v,nr+=b}sr+=u,nr+=S}sr+=f,nr+=w}sr+=l,nr+=A}sr+=d,nr+=_}sr+=m,nr+=x}sr+=p,nr+=E}sr+=y,nr+=q}}fV.exports=wNr});var dV=c((zce,cV)=>{"use strict";function SNr(r,e,a){e.accessors[1](e.data,e.offset,a(r.accessors[0](r.data,r.offset)))}cV.exports=SNr});var yV=c((Vce,pV)=>{"use strict";function ENr(r,e,a){var t,o,i,n,s,v,u,f,l,d;for(u=r.shape[0],s=r.strides[0],v=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<u;d++)n(o,l,a(i(t,f))),f+=s,l+=v}pV.exports=ENr});var gV=c((Pce,mV)=>{"use strict";function ANr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S;for(l=r.shape,p=r.strides,y=e.strides,r.order==="row-major"?(d=l[1],m=l[0],s=p[1],v=p[0]-d*p[1],u=y[1],f=y[0]-d*y[1]):(d=l[0],m=l[1],s=p[0],v=p[1]-d*p[0],u=y[0],f=y[1]-d*y[0]),g=r.offset,h=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],S=0;S<m;S++){for(b=0;b<d;b++)n(o,h,a(i(t,g))),g+=s,h+=u;g+=v,h+=f}}mV.exports=ANr});var bV=c((Fce,hV)=>{"use strict";function _Nr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x;for(m=r.shape,h=r.strides,b=e.strides,r.order==="row-major"?(p=m[2],y=m[1],g=m[0],s=h[2],v=h[1]-p*h[2],u=h[0]-y*h[1],f=b[2],l=b[1]-p*b[2],d=b[0]-y*b[1]):(p=m[0],y=m[1],g=m[2],s=h[0],v=h[1]-p*h[0],u=h[2]-y*h[1],f=b[0],l=b[1]-p*b[0],d=b[2]-y*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<g;x++){for(_=0;_<y;_++){for(A=0;A<p;A++)n(o,w,a(i(t,S))),S+=s,w+=f;S+=v,w+=l}S+=u,w+=d}}hV.exports=_Nr});var qV=c((Lce,xV)=>{"use strict";function jNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T;for(y=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(g=y[3],h=y[2],b=y[1],S=y[0],s=w[3],v=w[2]-g*w[3],u=w[1]-h*w[2],f=w[0]-b*w[1],l=A[3],d=A[2]-g*A[3],m=A[1]-h*A[2],p=A[0]-b*A[1]):(g=y[0],h=y[1],b=y[2],S=y[3],s=w[0],v=w[1]-g*w[0],u=w[2]-h*w[1],f=w[3]-b*w[2],l=A[0],d=A[1]-g*A[0],m=A[2]-h*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],T=0;T<S;T++){for(j=0;j<b;j++){for(q=0;q<h;q++){for(E=0;E<g;E++)n(o,x,a(i(t,_))),_+=s,x+=l;_+=v,x+=d}_+=u,x+=m}_+=f,x+=p}}xV.exports=jNr});var SV=c((Cce,wV)=>{"use strict";function TNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k;for(h=r.shape,x=r.strides,E=e.strides,r.order==="row-major"?(b=h[4],S=h[3],w=h[2],A=h[1],_=h[0],s=x[4],v=x[3]-b*x[4],u=x[2]-S*x[3],f=x[1]-w*x[2],l=x[0]-A*x[1],d=E[4],m=E[3]-b*E[4],p=E[2]-S*E[3],y=E[1]-w*E[2],g=E[0]-A*E[1]):(b=h[0],S=h[1],w=h[2],A=h[3],_=h[4],s=x[0],v=x[1]-b*x[0],u=x[2]-S*x[1],f=x[3]-w*x[2],l=x[4]-A*x[3],d=E[0],m=E[1]-b*E[0],p=E[2]-S*E[1],y=E[3]-w*E[2],g=E[4]-A*E[3]),q=r.offset,j=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(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<b;T++)n(o,j,a(i(t,q))),q+=s,j+=d;q+=v,j+=m}q+=u,j+=p}q+=f,j+=y}q+=l,j+=g}}wV.exports=TNr});var AV=c((Uce,EV)=>{"use strict";function ONr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R;for(S=r.shape,j=r.strides,T=e.strides,r.order==="row-major"?(w=S[5],A=S[4],_=S[3],x=S[2],E=S[1],q=S[0],s=j[5],v=j[4]-w*j[5],u=j[3]-A*j[4],f=j[2]-_*j[3],l=j[1]-x*j[2],d=j[0]-E*j[1],m=T[5],p=T[4]-w*T[5],y=T[3]-A*T[4],g=T[2]-_*T[3],h=T[1]-x*T[2],b=T[0]-E*T[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],q=S[5],s=j[0],v=j[1]-w*j[0],u=j[2]-A*j[1],f=j[3]-_*j[2],l=j[4]-x*j[3],d=j[5]-E*j[4],m=T[0],p=T[1]-w*T[0],y=T[2]-A*T[1],g=T[3]-_*T[2],h=T[4]-x*T[3],b=T[5]-E*T[4]),I=r.offset,O=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],R=0;R<q;R++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)n(o,O,a(i(t,I))),I+=s,O+=m;I+=v,O+=p}I+=u,O+=y}I+=f,O+=g}I+=l,O+=h}I+=d,O+=b}}EV.exports=ONr});var jV=c((Mce,_V)=>{"use strict";function INr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L;for(A=r.shape,O=r.strides,D=e.strides,r.order==="row-major"?(_=A[6],x=A[5],E=A[4],q=A[3],j=A[2],T=A[1],I=A[0],s=O[6],v=O[5]-_*O[6],u=O[4]-x*O[5],f=O[3]-E*O[4],l=O[2]-q*O[3],d=O[1]-j*O[2],m=O[0]-T*O[1],p=D[6],y=D[5]-_*D[6],g=D[4]-x*D[5],h=D[3]-E*D[4],b=D[2]-q*D[3],S=D[1]-j*D[2],w=D[0]-T*D[1]):(_=A[0],x=A[1],E=A[2],q=A[3],j=A[4],T=A[5],I=A[6],s=O[0],v=O[1]-_*O[0],u=O[2]-x*O[1],f=O[3]-E*O[2],l=O[4]-q*O[3],d=O[5]-j*O[4],m=O[6]-T*O[5],p=D[0],y=D[1]-_*D[0],g=D[2]-x*D[1],h=D[3]-E*D[2],b=D[4]-q*D[3],S=D[5]-j*D[4],w=D[6]-T*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<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(V=0;V<q;V++){for(R=0;R<E;R++){for(z=0;z<x;z++){for(B=0;B<_;B++)n(o,N,a(i(t,k))),k+=s,N+=p;k+=v,N+=y}k+=u,N+=g}k+=f,N+=h}k+=l,N+=b}k+=d,N+=S}k+=m,N+=w}}_V.exports=INr});var OV=c((Gce,TV)=>{"use strict";function NNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G;for(x=r.shape,N=r.strides,B=e.strides,r.order==="row-major"?(E=x[7],q=x[6],j=x[5],T=x[4],I=x[3],O=x[2],D=x[1],k=x[0],s=N[7],v=N[6]-E*N[7],u=N[5]-q*N[6],f=N[4]-j*N[5],l=N[3]-T*N[4],d=N[2]-I*N[3],m=N[1]-O*N[2],p=N[0]-D*N[1],y=B[7],g=B[6]-E*B[7],h=B[5]-q*B[6],b=B[4]-j*B[5],S=B[3]-T*B[4],w=B[2]-I*B[3],A=B[1]-O*B[2],_=B[0]-D*B[1]):(E=x[0],q=x[1],j=x[2],T=x[3],I=x[4],O=x[5],D=x[6],k=x[7],s=N[0],v=N[1]-E*N[0],u=N[2]-q*N[1],f=N[3]-j*N[2],l=N[4]-T*N[3],d=N[5]-I*N[4],m=N[6]-O*N[5],p=N[7]-D*N[6],y=B[0],g=B[1]-E*B[0],h=B[2]-q*B[1],b=B[3]-j*B[2],S=B[4]-T*B[3],w=B[5]-I*B[4],A=B[6]-O*B[5],_=B[7]-D*B[6]),z=r.offset,R=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<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(V=0;V<E;V++)n(o,R,a(i(t,z))),z+=s,R+=y;z+=v,R+=g}z+=u,R+=h}z+=f,R+=b}z+=l,R+=S}z+=d,R+=w}z+=m,R+=A}z+=p,R+=_}}TV.exports=NNr});var NV=c(($ce,IV)=>{"use strict";function DNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J;for(q=r.shape,R=r.strides,V=e.strides,r.order==="row-major"?(j=q[8],T=q[7],I=q[6],O=q[5],D=q[4],k=q[3],N=q[2],B=q[1],z=q[0],s=R[8],v=R[7]-j*R[8],u=R[6]-T*R[7],f=R[5]-I*R[6],l=R[4]-O*R[5],d=R[3]-D*R[4],m=R[2]-k*R[3],p=R[1]-N*R[2],y=R[0]-B*R[1],g=V[8],h=V[7]-j*V[8],b=V[6]-T*V[7],S=V[5]-I*V[6],w=V[4]-O*V[5],A=V[3]-D*V[4],_=V[2]-k*V[3],x=V[1]-N*V[2],E=V[0]-B*V[1]):(j=q[0],T=q[1],I=q[2],O=q[3],D=q[4],k=q[5],N=q[6],B=q[7],z=q[8],s=R[0],v=R[1]-j*R[0],u=R[2]-T*R[1],f=R[3]-I*R[2],l=R[4]-O*R[3],d=R[5]-D*R[4],m=R[6]-k*R[5],p=R[7]-N*R[6],y=R[8]-B*R[7],g=V[0],h=V[1]-j*V[0],b=V[2]-T*V[1],S=V[3]-I*V[2],w=V[4]-O*V[3],A=V[5]-D*V[4],_=V[6]-k*V[5],x=V[7]-N*V[6],E=V[8]-B*V[7]),P=r.offset,F=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],J=0;J<z;J++){for(W=0;W<B;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++)n(o,F,a(i(t,P))),P+=s,F+=g;P+=v,F+=h}P+=u,F+=b}P+=f,F+=S}P+=l,F+=w}P+=d,F+=A}P+=m,F+=_}P+=p,F+=x}P+=y,F+=E}}IV.exports=DNr});var kV=c((Yce,DV)=>{"use strict";function kNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q;for(T=r.shape,F=r.strides,L=e.strides,r.order==="row-major"?(I=T[9],O=T[8],D=T[7],k=T[6],N=T[5],B=T[4],z=T[3],R=T[2],V=T[1],P=T[0],s=F[9],v=F[8]-I*F[9],u=F[7]-O*F[8],f=F[6]-D*F[7],l=F[5]-k*F[6],d=F[4]-N*F[5],m=F[3]-B*F[4],p=F[2]-z*F[3],y=F[1]-R*F[2],g=F[0]-V*F[1],h=L[9],b=L[8]-I*L[9],S=L[7]-O*L[8],w=L[6]-D*L[7],A=L[5]-k*L[6],_=L[4]-N*L[5],x=L[3]-B*L[4],E=L[2]-z*L[3],q=L[1]-R*L[2],j=L[0]-V*L[1]):(I=T[0],O=T[1],D=T[2],k=T[3],N=T[4],B=T[5],z=T[6],R=T[7],V=T[8],P=T[9],s=F[0],v=F[1]-I*F[0],u=F[2]-O*F[1],f=F[3]-D*F[2],l=F[4]-k*F[3],d=F[5]-N*F[4],m=F[6]-B*F[5],p=F[7]-z*F[6],y=F[8]-R*F[7],g=F[9]-V*F[8],h=L[0],b=L[1]-I*L[0],S=L[2]-O*L[1],w=L[3]-D*L[2],A=L[4]-k*L[3],_=L[5]-N*L[4],x=L[6]-B*L[5],E=L[7]-z*L[6],q=L[8]-R*L[7],j=L[9]-V*L[8]),C=r.offset,U=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],Q=0;Q<P;Q++){for(H=0;H<V;H++){for(X=0;X<R;X++){for(K=0;K<z;K++){for(J=0;J<B;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++){for(G=0;G<O;G++){for(M=0;M<I;M++)n(o,U,a(i(t,C))),C+=s,U+=h;C+=v,U+=b}C+=u,U+=S}C+=f,U+=w}C+=l,U+=A}C+=d,U+=_}C+=m,U+=x}C+=p,U+=E}C+=y,U+=q}C+=g,U+=j}}DV.exports=kNr});var VV=c((Wce,zV)=>{"use strict";var RNr=Wr(),RV=ia(),BV="throw";function BNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h;for(f=r.shape,s=RNr(f),t=r.data,o=e.data,l=r.strides,d=e.strides,m=r.offset,p=e.offset,i=r.order,n=e.order,v=r.accessors[0],u=e.accessors[1],h=0;h<s;h++)y=RV(f,l,m,i,h,BV),g=RV(f,d,p,n,h,BV),u(o,g,a(v(t,y)))}zV.exports=BNr});var FV=c((Jce,PV)=>{"use strict";function zNr(r,e,a){e.data[e.offset]=a(r.data[r.offset])}PV.exports=zNr});var CV=c((Kce,LV)=>{"use strict";function VNr(r,e,a){var t,o,i,n,s,v,u,f;for(s=r.shape[0],i=r.strides[0],n=e.strides[0],v=r.offset,u=e.offset,t=r.data,o=e.data,f=0;f<s;f++)o[u]=a(t[v]),v+=i,u+=n}LV.exports=VNr});var MV=c((Xce,UV)=>{"use strict";function PNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h;for(u=r.shape,d=r.strides,m=e.strides,r.order==="row-major"?(f=u[1],l=u[0],i=d[1],n=d[0]-f*d[1],s=m[1],v=m[0]-f*m[1]):(f=u[0],l=u[1],i=d[0],n=d[1]-f*d[0],s=m[0],v=m[1]-f*m[0]),p=r.offset,y=e.offset,t=r.data,o=e.data,h=0;h<l;h++){for(g=0;g<f;g++)o[y]=a(t[p]),p+=i,y+=s;p+=n,y+=v}}UV.exports=PNr});var $V=c((Hce,GV)=>{"use strict";function FNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A;for(l=r.shape,y=r.strides,g=e.strides,r.order==="row-major"?(d=l[2],m=l[1],p=l[0],i=y[2],n=y[1]-d*y[2],s=y[0]-m*y[1],v=g[2],u=g[1]-d*g[2],f=g[0]-m*g[1]):(d=l[0],m=l[1],p=l[2],i=y[0],n=y[1]-d*y[0],s=y[2]-m*y[1],v=g[0],u=g[1]-d*g[0],f=g[2]-m*g[1]),h=r.offset,b=e.offset,t=r.data,o=e.data,A=0;A<p;A++){for(w=0;w<m;w++){for(S=0;S<d;S++)o[b]=a(t[h]),h+=i,b+=v;h+=n,b+=u}h+=s,b+=f}}GV.exports=FNr});var WV=c((Zce,YV)=>{"use strict";function LNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q;for(m=r.shape,b=r.strides,S=e.strides,r.order==="row-major"?(p=m[3],y=m[2],g=m[1],h=m[0],i=b[3],n=b[2]-p*b[3],s=b[1]-y*b[2],v=b[0]-g*b[1],u=S[3],f=S[2]-p*S[3],l=S[1]-y*S[2],d=S[0]-g*S[1]):(p=m[0],y=m[1],g=m[2],h=m[3],i=b[0],n=b[1]-p*b[0],s=b[2]-y*b[1],v=b[3]-g*b[2],u=S[0],f=S[1]-p*S[0],l=S[2]-y*S[1],d=S[3]-g*S[2]),w=r.offset,A=e.offset,t=r.data,o=e.data,q=0;q<h;q++){for(E=0;E<g;E++){for(x=0;x<y;x++){for(_=0;_<p;_++)o[A]=a(t[w]),w+=i,A+=u;w+=n,A+=f}w+=s,A+=l}w+=v,A+=d}}YV.exports=LNr});var KV=c((Qce,JV)=>{"use strict";function CNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O;for(y=r.shape,A=r.strides,_=e.strides,r.order==="row-major"?(g=y[4],h=y[3],b=y[2],S=y[1],w=y[0],i=A[4],n=A[3]-g*A[4],s=A[2]-h*A[3],v=A[1]-b*A[2],u=A[0]-S*A[1],f=_[4],l=_[3]-g*_[4],d=_[2]-h*_[3],m=_[1]-b*_[2],p=_[0]-S*_[1]):(g=y[0],h=y[1],b=y[2],S=y[3],w=y[4],i=A[0],n=A[1]-g*A[0],s=A[2]-h*A[1],v=A[3]-b*A[2],u=A[4]-S*A[3],f=_[0],l=_[1]-g*_[0],d=_[2]-h*_[1],m=_[3]-b*_[2],p=_[4]-S*_[3]),x=r.offset,E=e.offset,t=r.data,o=e.data,O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<b;T++){for(j=0;j<h;j++){for(q=0;q<g;q++)o[E]=a(t[x]),x+=i,E+=f;x+=n,E+=l}x+=s,E+=d}x+=v,E+=m}x+=u,E+=p}}JV.exports=CNr});var HV=c((rde,XV)=>{"use strict";function UNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B;for(h=r.shape,E=r.strides,q=e.strides,r.order==="row-major"?(b=h[5],S=h[4],w=h[3],A=h[2],_=h[1],x=h[0],i=E[5],n=E[4]-b*E[5],s=E[3]-S*E[4],v=E[2]-w*E[3],u=E[1]-A*E[2],f=E[0]-_*E[1],l=q[5],d=q[4]-b*q[5],m=q[3]-S*q[4],p=q[2]-w*q[3],y=q[1]-A*q[2],g=q[0]-_*q[1]):(b=h[0],S=h[1],w=h[2],A=h[3],_=h[4],x=h[5],i=E[0],n=E[1]-b*E[0],s=E[2]-S*E[1],v=E[3]-w*E[2],u=E[4]-A*E[3],f=E[5]-_*E[4],l=q[0],d=q[1]-b*q[0],m=q[2]-S*q[1],p=q[3]-w*q[2],y=q[4]-A*q[3],g=q[5]-_*q[4]),j=r.offset,T=e.offset,t=r.data,o=e.data,B=0;B<x;B++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(O=0;O<S;O++){for(I=0;I<b;I++)o[T]=a(t[j]),j+=i,T+=l;j+=n,T+=d}j+=s,T+=m}j+=v,T+=p}j+=u,T+=y}j+=f,T+=g}}XV.exports=UNr});var QV=c((ede,ZV)=>{"use strict";function MNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P;for(S=r.shape,T=r.strides,I=e.strides,r.order==="row-major"?(w=S[6],A=S[5],_=S[4],x=S[3],E=S[2],q=S[1],j=S[0],i=T[6],n=T[5]-w*T[6],s=T[4]-A*T[5],v=T[3]-_*T[4],u=T[2]-x*T[3],f=T[1]-E*T[2],l=T[0]-q*T[1],d=I[6],m=I[5]-w*I[6],p=I[4]-A*I[5],y=I[3]-_*I[4],g=I[2]-x*I[3],h=I[1]-E*I[2],b=I[0]-q*I[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],q=S[5],j=S[6],i=T[0],n=T[1]-w*T[0],s=T[2]-A*T[1],v=T[3]-_*T[2],u=T[4]-x*T[3],f=T[5]-E*T[4],l=T[6]-q*T[5],d=I[0],m=I[1]-w*I[0],p=I[2]-A*I[1],y=I[3]-_*I[2],g=I[4]-x*I[3],h=I[5]-E*I[4],b=I[6]-q*I[5]),O=r.offset,D=e.offset,t=r.data,o=e.data,P=0;P<j;P++){for(V=0;V<q;V++){for(R=0;R<E;R++){for(z=0;z<x;z++){for(B=0;B<_;B++){for(N=0;N<A;N++){for(k=0;k<w;k++)o[D]=a(t[O]),O+=i,D+=d;O+=n,D+=m}O+=s,D+=p}O+=v,D+=y}O+=u,D+=g}O+=f,D+=h}O+=l,D+=b}}ZV.exports=MNr});var eP=c((ade,rP)=>{"use strict";function GNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U;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],j=A[3],T=A[2],I=A[1],O=A[0],i=D[7],n=D[6]-_*D[7],s=D[5]-x*D[6],v=D[4]-E*D[5],u=D[3]-q*D[4],f=D[2]-j*D[3],l=D[1]-T*D[2],d=D[0]-I*D[1],m=k[7],p=k[6]-_*k[7],y=k[5]-x*k[6],g=k[4]-E*k[5],h=k[3]-q*k[4],b=k[2]-j*k[3],S=k[1]-T*k[2],w=k[0]-I*k[1]):(_=A[0],x=A[1],E=A[2],q=A[3],j=A[4],T=A[5],I=A[6],O=A[7],i=D[0],n=D[1]-_*D[0],s=D[2]-x*D[1],v=D[3]-E*D[2],u=D[4]-q*D[3],f=D[5]-j*D[4],l=D[6]-T*D[5],d=D[7]-I*D[6],m=k[0],p=k[1]-_*k[0],y=k[2]-x*k[1],g=k[3]-E*k[2],h=k[4]-q*k[3],b=k[5]-j*k[4],S=k[6]-T*k[5],w=k[7]-I*k[6]),N=r.offset,B=e.offset,t=r.data,o=e.data,U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(V=0;V<E;V++){for(R=0;R<x;R++){for(z=0;z<_;z++)o[B]=a(t[N]),N+=i,B+=m;N+=n,B+=p}N+=s,B+=y}N+=v,B+=g}N+=u,B+=h}N+=f,B+=b}N+=l,B+=S}N+=d,B+=w}}rP.exports=GNr});var tP=c((tde,aP)=>{"use strict";function $Nr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$;for(x=r.shape,B=r.strides,z=e.strides,r.order==="row-major"?(E=x[8],q=x[7],j=x[6],T=x[5],I=x[4],O=x[3],D=x[2],k=x[1],N=x[0],i=B[8],n=B[7]-E*B[8],s=B[6]-q*B[7],v=B[5]-j*B[6],u=B[4]-T*B[5],f=B[3]-I*B[4],l=B[2]-O*B[3],d=B[1]-D*B[2],m=B[0]-k*B[1],p=z[8],y=z[7]-E*z[8],g=z[6]-q*z[7],h=z[5]-j*z[6],b=z[4]-T*z[5],S=z[3]-I*z[4],w=z[2]-O*z[3],A=z[1]-D*z[2],_=z[0]-k*z[1]):(E=x[0],q=x[1],j=x[2],T=x[3],I=x[4],O=x[5],D=x[6],k=x[7],N=x[8],i=B[0],n=B[1]-E*B[0],s=B[2]-q*B[1],v=B[3]-j*B[2],u=B[4]-T*B[3],f=B[5]-I*B[4],l=B[6]-O*B[5],d=B[7]-D*B[6],m=B[8]-k*B[7],p=z[0],y=z[1]-E*z[0],g=z[2]-q*z[1],h=z[3]-j*z[2],b=z[4]-T*z[3],S=z[5]-I*z[4],w=z[6]-O*z[5],A=z[7]-D*z[6],_=z[8]-k*z[7]),R=r.offset,V=e.offset,t=r.data,o=e.data,$=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++){for(F=0;F<q;F++){for(P=0;P<E;P++)o[V]=a(t[R]),R+=i,V+=p;R+=n,V+=y}R+=s,V+=g}R+=v,V+=h}R+=u,V+=b}R+=f,V+=S}R+=l,V+=w}R+=d,V+=A}R+=m,V+=_}}aP.exports=$Nr});var oP=c((ide,iP)=>{"use strict";function YNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X;for(q=r.shape,V=r.strides,P=e.strides,r.order==="row-major"?(j=q[9],T=q[8],I=q[7],O=q[6],D=q[5],k=q[4],N=q[3],B=q[2],z=q[1],R=q[0],i=V[9],n=V[8]-j*V[9],s=V[7]-T*V[8],v=V[6]-I*V[7],u=V[5]-O*V[6],f=V[4]-D*V[5],l=V[3]-k*V[4],d=V[2]-N*V[3],m=V[1]-B*V[2],p=V[0]-z*V[1],y=P[9],g=P[8]-j*P[9],h=P[7]-T*P[8],b=P[6]-I*P[7],S=P[5]-O*P[6],w=P[4]-D*P[5],A=P[3]-k*P[4],_=P[2]-N*P[3],x=P[1]-B*P[2],E=P[0]-z*P[1]):(j=q[0],T=q[1],I=q[2],O=q[3],D=q[4],k=q[5],N=q[6],B=q[7],z=q[8],R=q[9],i=V[0],n=V[1]-j*V[0],s=V[2]-T*V[1],v=V[3]-I*V[2],u=V[4]-O*V[3],f=V[5]-D*V[4],l=V[6]-k*V[5],d=V[7]-N*V[6],m=V[8]-B*V[7],p=V[9]-z*V[8],y=P[0],g=P[1]-j*P[0],h=P[2]-T*P[1],b=P[3]-I*P[2],S=P[4]-O*P[3],w=P[5]-D*P[4],A=P[6]-k*P[5],_=P[7]-N*P[6],x=P[8]-B*P[7],E=P[9]-z*P[8]),F=r.offset,L=e.offset,t=r.data,o=e.data,X=0;X<R;X++){for(K=0;K<z;K++){for(J=0;J<B;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++){for(G=0;G<O;G++){for(M=0;M<I;M++){for(U=0;U<T;U++){for(C=0;C<j;C++)o[L]=a(t[F]),F+=i,L+=y;F+=n,L+=g}F+=s,L+=h}F+=v,L+=b}F+=u,L+=S}F+=f,L+=w}F+=l,L+=A}F+=d,L+=_}F+=m,L+=x}F+=p,L+=E}}iP.exports=YNr});var uP=c((ode,vP)=>{"use strict";var WNr=Wr(),sP=ia(),nP="throw";function JNr(r,e,a){var t,o,i,n,s,v,u,f,l,d,m,p,y;for(v=r.shape,s=WNr(v),t=r.data,o=e.data,u=r.strides,f=e.strides,l=r.offset,d=e.offset,i=r.order,n=e.order,y=0;y<s;y++)m=sP(v,u,l,i,y,nP),p=sP(v,f,d,n,y,nP),o[p]=a(t[m])}vP.exports=JNr});var yP=c((sde,pP)=>{"use strict";var fP=xa(),lP=Za(),cP=Wt(),KNr=Nz(),XNr=kz(),HNr=Bz(),ZNr=Vz(),QNr=Fz(),rDr=Cz(),eDr=Mz(),aDr=$z(),tDr=Wz(),iDr=Kz(),oDr=Hz(),sDr=Qz(),nDr=eV(),vDr=tV(),uDr=oV(),fDr=nV(),lDr=uV(),cDr=lV(),dDr=dV(),pDr=yV(),yDr=gV(),mDr=bV(),gDr=qV(),hDr=SV(),bDr=AV(),xDr=jV(),qDr=OV(),wDr=NV(),SDr=kV(),EDr=VV(),ADr=FV(),_Dr=CV(),jDr=MV(),TDr=$V(),ODr=WV(),IDr=KV(),NDr=HV(),DDr=QV(),kDr=eP(),RDr=tP(),BDr=oP(),zDr=uP(),Ai=[ADr,_Dr,jDr,TDr,ODr,IDr,NDr,DDr,kDr,RDr,BDr],wo=[dDr,pDr,yDr,mDr,gDr,hDr,bDr,xDr,qDr,wDr,SDr],VDr=[iDr,oDr,sDr,nDr,vDr,uDr,fDr,lDr,cDr],PDr=[KNr,XNr,HNr,ZNr,QNr,rDr,eDr,aDr,tDr],dP=Ai.length-1;function FDr(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b;if(y=cP(r[0]),g=cP(r[1]),i=y.shape,n=g.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||g.accessorProtocol?wo[a](y,g,e):Ai[a](y,g,e);for(u=1,p=0,b=0;b<a;b++){if(h=i[b],h!==n[b])throw new Error("invalid arguments. Arrays must have the same shape.");u*=h,h===1&&(p+=1)}if(u!==0){if(a===1)return y.accessorProtocol||g.accessorProtocol?wo[a](y,g,e):Ai[a](y,g,e);if(f=y.strides,l=g.strides,p===a-1){for(b=0;b<a&&i[b]===1;b++);return y.shape=[i[b]],g.shape=y.shape,y.strides=[f[b]],g.strides=[l[b]],y.accessorProtocol||g.accessorProtocol?wo[1](y,g,e):Ai[1](y,g,e)}if(s=fP(f),v=fP(l),s!==0&&v!==0&&s===v){if(t=lP(i,f,y.offset),o=lP(n,l,g.offset),u===t[1]-t[0]+1&&u===o[1]-o[0]+1)return s===1?d=t[0]:d=t[1],v===1?m=o[0]:m=o[1],y.shape=[u],g.shape=y.shape,y.strides=[s],g.strides=[v],y.offset=d,g.offset=m,y.accessorProtocol||g.accessorProtocol?wo[1](y,g,e):Ai[1](y,g,e);if(a<=dP)return y.accessorProtocol||g.accessorProtocol?wo[a](y,g,e):Ai[a](y,g,e)}if(a<=dP)return y.accessorProtocol||g.accessorProtocol?PDr[a-2](y,g,e):VDr[a-2](y,g,e);if(y.accessorProtocol||g.accessorProtocol)return EDr(y,g,e);zDr(y,g,e)}}pP.exports=FDr});var gP=c((nde,mP)=>{"use strict";var LDr=yP();mP.exports=LDr});var bP=c((vde,hP)=>{"use strict";var CDr=zr(),UDr=Br();function MDr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k;for(O=CDr(r.shape,r.strides,e.strides),g=O.sh,S=O.sx,w=O.sy,i=UDr(r.dtype,e.dtype),A=r.offset,_=e.offset,n=r.data,s=e.data,f=S[0],d=w[0],v=r.accessors[0],u=e.accessors[1],k=0,I=g[1];I>0;)for(I<i?(b=I,I=0):(b=i,I-=i),p=A+I*S[1],y=_+I*w[1],T=g[0];T>0;)for(T<i?(h=T,T=0):(h=i,T-=i),x=p+T*S[0],E=y+T*w[0],l=S[1]-h*S[0],m=w[1]-h*w[0],j=0;j<b;j++){for(q=0;q<h;q++)D=t.call(o,v(n,x),k,[x,E],[r,e]),D!==void 0&&u(s,E,a(D)),x+=f,E+=d,k+=1;x+=l,E+=m}}hP.exports=MDr});var qP=c((ude,xP)=>{"use strict";var GDr=zr(),$Dr=Br();function YDr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F;for(V=GDr(r.shape,r.strides,e.strides),w=V.sh,E=V.sx,q=V.sy,i=$Dr(r.dtype,e.dtype),j=r.offset,T=e.offset,n=r.data,s=e.data,f=E[0],m=q[0],v=r.accessors[0],u=e.accessors[1],F=0,R=w[2];R>0;)for(R<i?(x=R,R=0):(x=i,R-=i),h=j+R*E[2],S=T+R*q[2],z=w[1];z>0;)for(z<i?(_=z,z=0):(_=i,z-=i),d=E[2]-_*E[1],y=q[2]-_*q[1],g=h+z*E[1],b=S+z*q[1],B=w[0];B>0;)for(B<i?(A=B,B=0):(A=i,B-=i),I=g+B*E[0],O=b+B*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++)P=t.call(o,v(n,I),F,[I,O],[r,e]),P!==void 0&&u(s,O,a(P)),I+=f,O+=m,F+=1;I+=l,O+=p}I+=d,O+=y}}xP.exports=YDr});var SP=c((fde,wP)=>{"use strict";var WDr=zr(),JDr=Br();function KDr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$;for(G=WDr(r.shape,r.strides,e.strides),E=G.sh,O=G.sx,D=G.sy,i=JDr(r.dtype,e.dtype),k=r.offset,N=e.offset,n=r.data,s=e.data,f=O[0],p=D[0],v=r.accessors[0],u=e.accessors[1],$=0,M=E[3];M>0;)for(M<i?(I=M,M=0):(I=i,M-=i),w=k+M*O[3],x=N+M*D[3],U=E[2];U>0;)for(U<i?(T=U,U=0):(T=i,U-=i),m=O[3]-T*O[2],h=D[3]-T*D[2],S=w+U*O[2],_=x+U*D[2],C=E[1];C>0;)for(C<i?(j=C,C=0):(j=i,C-=i),d=O[2]-j*O[1],g=D[2]-j*D[1],b=S+C*O[1],A=_+C*D[1],L=E[0];L>0;)for(L<i?(q=L,L=0):(q=i,L-=i),B=b+L*O[0],z=A+L*D[0],l=O[1]-q*O[0],y=D[1]-q*D[0],F=0;F<I;F++){for(P=0;P<T;P++){for(V=0;V<j;V++){for(R=0;R<q;R++)Y=t.call(o,v(n,B),$,[B,z],[r,e]),Y!==void 0&&u(s,z,a(Y)),B+=f,z+=p,$+=1;B+=l,z+=y}B+=d,z+=g}B+=m,z+=h}}wP.exports=KDr});var AP=c((lde,EP)=>{"use strict";var XDr=zr(),HDr=Br();function ZDr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z;for(H=XDr(r.shape,r.strides,e.strides),I=H.sh,z=H.sx,R=H.sy,i=HDr(r.dtype,e.dtype),V=r.offset,P=e.offset,n=r.data,s=e.data,f=z[0],y=R[0],v=r.accessors[0],u=e.accessors[1],Z=0,X=I[4];X>0;)for(X<i?(B=X,X=0):(B=i,X-=i),x=V+X*z[4],T=P+X*R[4],K=I[3];K>0;)for(K<i?(N=K,K=0):(N=i,K-=i),p=z[4]-N*z[3],S=R[4]-N*R[3],_=x+K*z[3],j=T+K*R[3],J=I[2];J>0;)for(J<i?(k=J,J=0):(k=i,J-=i),m=z[3]-k*z[2],b=R[3]-k*R[2],A=_+J*z[2],q=j+J*R[2],W=I[1];W>0;)for(W<i?(D=W,W=0):(D=i,W-=i),d=z[2]-D*z[1],h=R[2]-D*R[1],w=A+W*z[1],E=q+W*R[1],$=I[0];$>0;)for($<i?(O=$,$=0):(O=i,$-=i),F=w+$*z[0],L=E+$*R[0],l=z[1]-O*z[0],g=R[1]-O*R[0],Y=0;Y<B;Y++){for(G=0;G<N;G++){for(M=0;M<k;M++){for(U=0;U<D;U++){for(C=0;C<O;C++)Q=t.call(o,v(n,F),Z,[F,L],[r,e]),Q!==void 0&&u(s,L,a(Q)),F+=f,L+=y,Z+=1;F+=l,L+=g}F+=d,L+=h}F+=m,L+=b}F+=p,L+=S}}EP.exports=ZDr});var jP=c((cde,_P)=>{"use strict";var QDr=zr(),rkr=Br();function ekr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr;for(tr=QDr(r.shape,r.strides,e.strides),N=tr.sh,L=tr.sx,C=tr.sy,i=rkr(r.dtype,e.dtype),U=r.offset,M=e.offset,n=r.data,s=e.data,f=L[0],g=C[0],v=r.accessors[0],u=e.accessors[1],sr=0,ir=N[5];ir>0;)for(ir<i?(F=ir,ir=0):(F=i,ir-=i),j=U+ir*L[5],k=M+ir*C[5],er=N[4];er>0;)for(er<i?(P=er,er=0):(P=i,er-=i),y=L[5]-P*L[4],A=C[5]-P*C[4],q=j+er*L[4],D=k+er*C[4],ar=N[3];ar>0;)for(ar<i?(V=ar,ar=0):(V=i,ar-=i),p=L[4]-V*L[3],w=C[4]-V*C[3],E=q+ar*L[3],O=D+ar*C[3],rr=N[2];rr>0;)for(rr<i?(R=rr,rr=0):(R=i,rr-=i),m=L[3]-R*L[2],S=C[3]-R*C[2],x=E+rr*L[2],I=O+rr*C[2],Z=N[1];Z>0;)for(Z<i?(z=Z,Z=0):(z=i,Z-=i),d=L[2]-z*L[1],b=C[2]-z*C[1],_=x+Z*L[1],T=I+Z*C[1],Q=N[0];Q>0;)for(Q<i?(B=Q,Q=0):(B=i,Q-=i),G=_+Q*L[0],Y=T+Q*C[0],l=L[1]-B*L[0],h=C[1]-B*C[0],H=0;H<F;H++){for(X=0;X<P;X++){for(K=0;K<V;K++){for(J=0;J<R;J++){for(W=0;W<z;W++){for($=0;$<B;$++)or=t.call(o,v(n,G),sr,[G,Y],[r,e]),or!==void 0&&u(s,Y,a(or)),G+=f,Y+=g,sr+=1;G+=l,Y+=h}G+=d,Y+=b}G+=m,Y+=S}G+=p,Y+=w}G+=y,Y+=A}}_P.exports=ekr});var OP=c((dde,TP)=>{"use strict";var akr=zr(),tkr=Br();function ikr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr;for(fr=akr(r.shape,r.strides,e.strides),V=fr.sh,Y=fr.sx,$=fr.sy,i=tkr(r.dtype,e.dtype),W=r.offset,J=e.offset,n=r.data,s=e.data,f=Y[0],h=$[0],v=r.accessors[0],u=e.accessors[1],dr=0,lr=V[6];lr>0;)for(lr<i?(G=lr,lr=0):(G=i,lr-=i),O=W+lr*Y[6],R=J+lr*$[6],ur=V[5];ur>0;)for(ur<i?(M=ur,ur=0):(M=i,ur-=i),g=Y[6]-M*Y[5],x=$[6]-M*$[5],I=O+ur*Y[5],z=R+ur*$[5],vr=V[4];vr>0;)for(vr<i?(U=vr,vr=0):(U=i,vr-=i),y=Y[5]-U*Y[4],_=$[5]-U*$[4],T=I+vr*Y[4],B=z+vr*$[4],nr=V[3];nr>0;)for(nr<i?(C=nr,nr=0):(C=i,nr-=i),p=Y[4]-C*Y[3],A=$[4]-C*$[3],j=T+nr*Y[3],N=B+nr*$[3],sr=V[2];sr>0;)for(sr<i?(L=sr,sr=0):(L=i,sr-=i),m=Y[3]-L*Y[2],w=$[3]-L*$[2],q=j+sr*Y[2],k=N+sr*$[2],or=V[1];or>0;)for(or<i?(F=or,or=0):(F=i,or-=i),d=Y[2]-F*Y[1],S=$[2]-F*$[1],E=q+or*Y[1],D=k+or*$[1],tr=V[0];tr>0;)for(tr<i?(P=tr,tr=0):(P=i,tr-=i),K=E+tr*Y[0],X=D+tr*$[0],l=Y[1]-P*Y[0],b=$[1]-P*$[0],ir=0;ir<G;ir++){for(er=0;er<M;er++){for(ar=0;ar<U;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<F;Q++){for(H=0;H<P;H++)pr=t.call(o,v(n,K),dr,[K,X],[r,e]),pr!==void 0&&u(s,X,a(pr)),K+=f,X+=h,dr+=1;K+=l,X+=b}K+=d,X+=S}K+=m,X+=w}K+=p,X+=A}K+=y,X+=_}K+=g,X+=x}}TP.exports=ikr});var NP=c((pde,IP)=>{"use strict";var okr=zr(),skr=Br();function nkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr;for(br=okr(r.shape,r.strides,e.strides),C=br.sh,X=br.sx,H=br.sy,i=skr(r.dtype,e.dtype),Q=r.offset,Z=e.offset,n=r.data,s=e.data,f=X[0],b=H[0],v=r.accessors[0],u=e.accessors[1],gr=0,qr=C[7];qr>0;)for(qr<i?(K=qr,qr=0):(K=i,qr-=i),N=Q+qr*X[7],L=Z+qr*H[7],hr=C[6];hr>0;)for(hr<i?(J=hr,hr=0):(J=i,hr-=i),h=X[7]-J*X[6],q=H[7]-J*H[6],k=N+hr*X[6],F=L+hr*H[6],mr=C[5];mr>0;)for(mr<i?(W=mr,mr=0):(W=i,mr-=i),g=X[6]-W*X[5],E=H[6]-W*H[5],D=k+mr*X[5],P=F+mr*H[5],yr=C[4];yr>0;)for(yr<i?($=yr,yr=0):($=i,yr-=i),y=X[5]-$*X[4],x=H[5]-$*H[4],O=D+yr*X[4],V=P+yr*H[4],dr=C[3];dr>0;)for(dr<i?(Y=dr,dr=0):(Y=i,dr-=i),p=X[4]-Y*X[3],_=H[4]-Y*H[3],I=O+dr*X[3],R=V+dr*H[3],pr=C[2];pr>0;)for(pr<i?(G=pr,pr=0):(G=i,pr-=i),m=X[3]-G*X[2],A=H[3]-G*H[2],T=I+pr*X[2],z=R+pr*H[2],fr=C[1];fr>0;)for(fr<i?(M=fr,fr=0):(M=i,fr-=i),d=X[2]-M*X[1],w=H[2]-M*H[1],j=T+fr*X[1],B=z+fr*H[1],lr=C[0];lr>0;)for(lr<i?(U=lr,lr=0):(U=i,lr-=i),rr=j+lr*X[0],ar=B+lr*H[0],l=X[1]-U*X[0],S=H[1]-U*H[0],ur=0;ur<K;ur++){for(vr=0;vr<J;vr++){for(nr=0;nr<W;nr++){for(sr=0;sr<$;sr++){for(or=0;or<Y;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++)xr=t.call(o,v(n,rr),gr,[rr,ar],[r,e]),xr!==void 0&&u(s,ar,a(xr)),rr+=f,ar+=b,gr+=1;rr+=l,ar+=S}rr+=d,ar+=w}rr+=m,ar+=A}rr+=p,ar+=_}rr+=y,ar+=x}rr+=g,ar+=E}rr+=h,ar+=q}}IP.exports=nkr});var kP=c((yde,DP)=>{"use strict";var vkr=zr(),ukr=Br();function fkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr,Er,Ar,_r,jr,Or,Rr,Vr;for(Or=vkr(r.shape,r.strides,e.strides),Y=Or.sh,ar=Or.sx,er=Or.sy,i=ukr(r.dtype,e.dtype),ir=r.offset,tr=e.offset,n=r.data,s=e.data,f=ar[0],S=er[0],v=r.accessors[0],u=e.accessors[1],Vr=0,jr=Y[8];jr>0;)for(jr<i?(rr=jr,jr=0):(rr=i,jr-=i),R=ir+jr*ar[8],G=tr+jr*er[8],_r=Y[7];_r>0;)for(_r<i?(Z=_r,_r=0):(Z=i,_r-=i),b=ar[8]-Z*ar[7],T=er[8]-Z*er[7],z=R+_r*ar[7],M=G+_r*er[7],Ar=Y[6];Ar>0;)for(Ar<i?(Q=Ar,Ar=0):(Q=i,Ar-=i),h=ar[7]-Q*ar[6],j=er[7]-Q*er[6],B=z+Ar*ar[6],U=M+Ar*er[6],Er=Y[5];Er>0;)for(Er<i?(H=Er,Er=0):(H=i,Er-=i),g=ar[6]-H*ar[5],q=er[6]-H*er[5],N=B+Er*ar[5],C=U+Er*er[5],gr=Y[4];gr>0;)for(gr<i?(X=gr,gr=0):(X=i,gr-=i),y=ar[5]-X*ar[4],E=er[5]-X*er[4],k=N+gr*ar[4],L=C+gr*er[4],xr=Y[3];xr>0;)for(xr<i?(K=xr,xr=0):(K=i,xr-=i),p=ar[4]-K*ar[3],x=er[4]-K*er[3],D=k+xr*ar[3],F=L+xr*er[3],br=Y[2];br>0;)for(br<i?(J=br,br=0):(J=i,br-=i),m=ar[3]-J*ar[2],_=er[3]-J*er[2],O=D+br*ar[2],P=F+br*er[2],qr=Y[1];qr>0;)for(qr<i?(W=qr,qr=0):(W=i,qr-=i),d=ar[2]-W*ar[1],A=er[2]-W*er[1],I=O+qr*ar[1],V=P+qr*er[1],hr=Y[0];hr>0;)for(hr<i?($=hr,hr=0):($=i,hr-=i),or=I+hr*ar[0],sr=V+hr*er[0],l=ar[1]-$*ar[0],w=er[1]-$*er[0],mr=0;mr<rr;mr++){for(yr=0;yr<Z;yr++){for(dr=0;dr<Q;dr++){for(pr=0;pr<H;pr++){for(fr=0;fr<X;fr++){for(lr=0;lr<K;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++)Rr=t.call(o,v(n,or),Vr,[or,sr],[r,e]),Rr!==void 0&&u(s,sr,a(Rr)),or+=f,sr+=S,Vr+=1;or+=l,sr+=w}or+=d,sr+=A}or+=m,sr+=_}or+=p,sr+=x}or+=y,sr+=E}or+=g,sr+=q}or+=h,sr+=j}or+=b,sr+=T}}DP.exports=fkr});var BP=c((mde,RP)=>{"use strict";var lkr=zr(),ckr=Br();function dkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr,Er,Ar,_r,jr,Or,Rr,Vr,Xr,te,Ne,sa,pt,_n,jn;for(pt=lkr(r.shape,r.strides,e.strides),K=pt.sh,sr=pt.sx,nr=pt.sy,i=ckr(r.dtype,e.dtype),vr=r.offset,ur=e.offset,n=r.data,s=e.data,f=sr[0],w=nr[0],v=r.accessors[0],u=e.accessors[1],jn=0,sa=K[9];sa>0;)for(sa<i?(or=sa,sa=0):(or=i,sa-=i),F=vr+sa*sr[9],J=ur+sa*nr[9],Ne=K[8];Ne>0;)for(Ne<i?(tr=Ne,Ne=0):(tr=i,Ne-=i),S=sr[9]-tr*sr[8],O=nr[9]-tr*nr[8],P=F+Ne*sr[8],W=J+Ne*nr[8],te=K[7];te>0;)for(te<i?(ir=te,te=0):(ir=i,te-=i),b=sr[8]-ir*sr[7],I=nr[8]-ir*nr[7],V=P+te*sr[7],$=W+te*nr[7],Xr=K[6];Xr>0;)for(Xr<i?(er=Xr,Xr=0):(er=i,Xr-=i),h=sr[7]-er*sr[6],T=nr[7]-er*nr[6],R=V+Xr*sr[6],Y=$+Xr*nr[6],Vr=K[5];Vr>0;)for(Vr<i?(ar=Vr,Vr=0):(ar=i,Vr-=i),g=sr[6]-ar*sr[5],j=nr[6]-ar*nr[5],z=R+Vr*sr[5],G=Y+Vr*nr[5],Rr=K[4];Rr>0;)for(Rr<i?(rr=Rr,Rr=0):(rr=i,Rr-=i),y=sr[5]-rr*sr[4],q=nr[5]-rr*nr[4],B=z+Rr*sr[4],M=G+Rr*nr[4],Or=K[3];Or>0;)for(Or<i?(Z=Or,Or=0):(Z=i,Or-=i),p=sr[4]-Z*sr[3],E=nr[4]-Z*nr[3],N=B+Or*sr[3],U=M+Or*nr[3],jr=K[2];jr>0;)for(jr<i?(Q=jr,jr=0):(Q=i,jr-=i),m=sr[3]-Q*sr[2],x=nr[3]-Q*nr[2],k=N+jr*sr[2],C=U+jr*nr[2],_r=K[1];_r>0;)for(_r<i?(H=_r,_r=0):(H=i,_r-=i),d=sr[2]-H*sr[1],_=nr[2]-H*nr[1],D=k+_r*sr[1],L=C+_r*nr[1],Ar=K[0];Ar>0;)for(Ar<i?(X=Ar,Ar=0):(X=i,Ar-=i),lr=D+Ar*sr[0],fr=L+Ar*nr[0],l=sr[1]-X*sr[0],A=nr[1]-X*nr[0],Er=0;Er<or;Er++){for(gr=0;gr<tr;gr++){for(xr=0;xr<ir;xr++){for(br=0;br<er;br++){for(qr=0;qr<ar;qr++){for(hr=0;hr<rr;hr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<X;pr++)_n=t.call(o,v(n,lr),jn,[lr,fr],[r,e]),_n!==void 0&&u(s,fr,a(_n)),lr+=f,fr+=w,jn+=1;lr+=l,fr+=A}lr+=d,fr+=_}lr+=m,fr+=x}lr+=p,fr+=E}lr+=y,fr+=q}lr+=g,fr+=j}lr+=h,fr+=T}lr+=b,fr+=I}lr+=S,fr+=O}}RP.exports=dkr});var VP=c((gde,zP)=>{"use strict";var pkr=zr(),ykr=Br();function mkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O;for(T=pkr(r.shape,r.strides,e.strides),p=T.sh,h=T.sx,b=T.sy,i=ykr(r.dtype,e.dtype),S=r.offset,w=e.offset,n=r.data,s=e.data,v=h[0],f=b[0],O=0,j=p[1];j>0;)for(j<i?(g=j,j=0):(g=i,j-=i),d=S+j*h[1],m=w+j*b[1],q=p[0];q>0;)for(q<i?(y=q,q=0):(y=i,q-=i),A=d+q*h[0],_=m+q*b[0],u=h[1]-y*h[0],l=b[1]-y*b[0],E=0;E<g;E++){for(x=0;x<y;x++)I=t.call(o,n[A],O,[A,_],[r,e]),I!==void 0&&(s[_]=a(I)),A+=v,_+=f,O+=1;A+=u,_+=l}}zP.exports=mkr});var FP=c((hde,PP)=>{"use strict";var gkr=zr(),hkr=Br();function bkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V;for(z=gkr(r.shape,r.strides,e.strides),b=z.sh,_=z.sx,x=z.sy,i=hkr(r.dtype,e.dtype),E=r.offset,q=e.offset,n=r.data,s=e.data,v=_[0],l=x[0],V=0,B=b[2];B>0;)for(B<i?(A=B,B=0):(A=i,B-=i),y=E+B*_[2],h=q+B*x[2],N=b[1];N>0;)for(N<i?(w=N,N=0):(w=i,N-=i),f=_[2]-w*_[1],m=x[2]-w*x[1],p=y+N*_[1],g=h+N*x[1],k=b[0];k>0;)for(k<i?(S=k,k=0):(S=i,k-=i),j=p+k*_[0],T=g+k*x[0],u=_[1]-S*_[0],d=x[1]-S*x[0],D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++)R=t.call(o,n[j],V,[j,T],[r,e]),R!==void 0&&(s[T]=a(R)),j+=v,T+=l,V+=1;j+=u,T+=d}j+=f,T+=m}}PP.exports=bkr});var CP=c((bde,LP)=>{"use strict";var xkr=zr(),qkr=Br();function wkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G;for(U=xkr(r.shape,r.strides,e.strides),_=U.sh,T=U.sx,I=U.sy,i=qkr(r.dtype,e.dtype),O=r.offset,D=e.offset,n=r.data,s=e.data,v=T[0],d=I[0],G=0,C=_[3];C>0;)for(C<i?(j=C,C=0):(j=i,C-=i),b=O+C*T[3],A=D+C*I[3],L=_[2];L>0;)for(L<i?(q=L,L=0):(q=i,L-=i),l=T[3]-q*T[2],y=I[3]-q*I[2],h=b+L*T[2],w=A+L*I[2],F=_[1];F>0;)for(F<i?(E=F,F=0):(E=i,F-=i),f=T[2]-E*T[1],p=I[2]-E*I[1],g=h+F*T[1],S=w+F*I[1],P=_[0];P>0;)for(P<i?(x=P,P=0):(x=i,P-=i),k=g+P*T[0],N=S+P*I[0],u=T[1]-x*T[0],m=I[1]-x*I[0],V=0;V<j;V++){for(R=0;R<q;R++){for(z=0;z<E;z++){for(B=0;B<x;B++)M=t.call(o,n[k],G,[k,N],[r,e]),M!==void 0&&(s[N]=a(M)),k+=v,N+=d,G+=1;k+=u,N+=m}k+=f,N+=p}k+=l,N+=y}}LP.exports=wkr});var MP=c((xde,UP)=>{"use strict";var Skr=zr(),Ekr=Br();function Akr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H;for(K=Skr(r.shape,r.strides,e.strides),j=K.sh,N=K.sx,B=K.sy,i=Ekr(r.dtype,e.dtype),z=r.offset,R=e.offset,n=r.data,s=e.data,v=N[0],m=B[0],H=0,J=j[4];J>0;)for(J<i?(k=J,J=0):(k=i,J-=i),A=z+J*N[4],q=R+J*B[4],W=j[3];W>0;)for(W<i?(D=W,W=0):(D=i,W-=i),d=N[4]-D*N[3],h=B[4]-D*B[3],w=A+W*N[3],E=q+W*B[3],$=j[2];$>0;)for($<i?(O=$,$=0):(O=i,$-=i),l=N[3]-O*N[2],g=B[3]-O*B[2],S=w+$*N[2],x=E+$*B[2],Y=j[1];Y>0;)for(Y<i?(I=Y,Y=0):(I=i,Y-=i),f=N[2]-I*N[1],y=B[2]-I*B[1],b=S+Y*N[1],_=x+Y*B[1],G=j[0];G>0;)for(G<i?(T=G,G=0):(T=i,G-=i),V=b+G*N[0],P=_+G*B[0],u=N[1]-T*N[0],p=B[1]-T*B[0],M=0;M<k;M++){for(U=0;U<D;U++){for(C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++)X=t.call(o,n[V],H,[V,P],[r,e]),X!==void 0&&(s[P]=a(X)),V+=v,P+=m,H+=1;V+=u,P+=p}V+=f,P+=y}V+=l,P+=g}V+=d,P+=h}}UP.exports=Akr});var $P=c((qde,GP)=>{"use strict";var _kr=zr(),jkr=Br();function Tkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr;for(er=_kr(r.shape,r.strides,e.strides),D=er.sh,P=er.sx,F=er.sy,i=jkr(r.dtype,e.dtype),L=r.offset,C=e.offset,n=r.data,s=e.data,v=P[0],p=F[0],tr=0,ar=D[5];ar>0;)for(ar<i?(V=ar,ar=0):(V=i,ar-=i),E=L+ar*P[5],O=C+ar*F[5],rr=D[4];rr>0;)for(rr<i?(R=rr,rr=0):(R=i,rr-=i),m=P[5]-R*P[4],S=F[5]-R*F[4],x=E+rr*P[4],I=O+rr*F[4],Z=D[3];Z>0;)for(Z<i?(z=Z,Z=0):(z=i,Z-=i),d=P[4]-z*P[3],b=F[4]-z*F[3],_=x+Z*P[3],T=I+Z*F[3],Q=D[2];Q>0;)for(Q<i?(B=Q,Q=0):(B=i,Q-=i),l=P[3]-B*P[2],h=F[3]-B*F[2],A=_+Q*P[2],j=T+Q*F[2],H=D[1];H>0;)for(H<i?(N=H,H=0):(N=i,H-=i),f=P[2]-N*P[1],g=F[2]-N*F[1],w=A+H*P[1],q=j+H*F[1],X=D[0];X>0;)for(X<i?(k=X,X=0):(k=i,X-=i),U=w+X*P[0],M=q+X*F[0],u=P[1]-k*P[0],y=F[1]-k*F[0],K=0;K<V;K++){for(J=0;J<R;J++){for(W=0;W<z;W++){for($=0;$<B;$++){for(Y=0;Y<N;Y++){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+=v,M+=p,tr+=1;U+=u,M+=y}U+=f,M+=g}U+=l,M+=h}U+=d,M+=b}U+=m,M+=S}}GP.exports=Tkr});var WP=c((wde,YP)=>{"use strict";var Okr=zr(),Ikr=Br();function Nkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr;for(ur=Okr(r.shape,r.strides,e.strides),z=ur.sh,M=ur.sx,G=ur.sy,i=Ikr(r.dtype,e.dtype),Y=r.offset,$=e.offset,n=r.data,s=e.data,v=M[0],y=G[0],fr=0,vr=z[6];vr>0;)for(vr<i?(U=vr,vr=0):(U=i,vr-=i),T=Y+vr*M[6],B=$+vr*G[6],nr=z[5];nr>0;)for(nr<i?(C=nr,nr=0):(C=i,nr-=i),p=M[6]-C*M[5],A=G[6]-C*G[5],j=T+nr*M[5],N=B+nr*G[5],sr=z[4];sr>0;)for(sr<i?(L=sr,sr=0):(L=i,sr-=i),m=M[5]-L*M[4],w=G[5]-L*G[4],q=j+sr*M[4],k=N+sr*G[4],or=z[3];or>0;)for(or<i?(F=or,or=0):(F=i,or-=i),d=M[4]-F*M[3],S=G[4]-F*G[3],E=q+or*M[3],D=k+or*G[3],tr=z[2];tr>0;)for(tr<i?(P=tr,tr=0):(P=i,tr-=i),l=M[3]-P*M[2],b=G[3]-P*G[2],x=E+tr*M[2],O=D+tr*G[2],ir=z[1];ir>0;)for(ir<i?(V=ir,ir=0):(V=i,ir-=i),f=M[2]-V*M[1],h=G[2]-V*G[1],_=x+ir*M[1],I=O+ir*G[1],er=z[0];er>0;)for(er<i?(R=er,er=0):(R=i,er-=i),W=_+er*M[0],J=I+er*G[0],u=M[1]-R*M[0],g=G[1]-R*G[0],ar=0;ar<U;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<L;Z++){for(Q=0;Q<F;Q++){for(H=0;H<P;H++){for(X=0;X<V;X++){for(K=0;K<R;K++)lr=t.call(o,n[W],fr,[W,J],[r,e]),lr!==void 0&&(s[J]=a(lr)),W+=v,J+=y,fr+=1;W+=u,J+=g}W+=f,J+=h}W+=l,J+=b}W+=d,J+=S}W+=m,J+=w}W+=p,J+=A}}YP.exports=Nkr});var KP=c((Sde,JP)=>{"use strict";var Dkr=zr(),kkr=Br();function Rkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br;for(hr=Dkr(r.shape,r.strides,e.strides),F=hr.sh,J=hr.sx,K=hr.sy,i=kkr(r.dtype,e.dtype),X=r.offset,H=e.offset,n=r.data,s=e.data,v=J[0],g=K[0],br=0,mr=F[7];mr>0;)for(mr<i?(W=mr,mr=0):(W=i,mr-=i),D=X+mr*J[7],P=H+mr*K[7],yr=F[6];yr>0;)for(yr<i?($=yr,yr=0):($=i,yr-=i),y=J[7]-$*J[6],x=K[7]-$*K[6],O=D+yr*J[6],V=P+yr*K[6],dr=F[5];dr>0;)for(dr<i?(Y=dr,dr=0):(Y=i,dr-=i),p=J[6]-Y*J[5],_=K[6]-Y*K[5],I=O+dr*J[5],R=V+dr*K[5],pr=F[4];pr>0;)for(pr<i?(G=pr,pr=0):(G=i,pr-=i),m=J[5]-G*J[4],A=K[5]-G*K[4],T=I+pr*J[4],z=R+pr*K[4],fr=F[3];fr>0;)for(fr<i?(M=fr,fr=0):(M=i,fr-=i),d=J[4]-M*J[3],w=K[4]-M*K[3],j=T+fr*J[3],B=z+fr*K[3],lr=F[2];lr>0;)for(lr<i?(U=lr,lr=0):(U=i,lr-=i),l=J[3]-U*J[2],S=K[3]-U*K[2],q=j+lr*J[2],N=B+lr*K[2],ur=F[1];ur>0;)for(ur<i?(C=ur,ur=0):(C=i,ur-=i),f=J[2]-C*J[1],b=K[2]-C*K[1],E=q+ur*J[1],k=N+ur*K[1],vr=F[0];vr>0;)for(vr<i?(L=vr,vr=0):(L=i,vr-=i),Q=E+vr*J[0],Z=k+vr*K[0],u=J[1]-L*J[0],h=K[1]-L*K[0],nr=0;nr<W;nr++){for(sr=0;sr<$;sr++){for(or=0;or<Y;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<U;er++){for(ar=0;ar<C;ar++){for(rr=0;rr<L;rr++)qr=t.call(o,n[Q],br,[Q,Z],[r,e]),qr!==void 0&&(s[Z]=a(qr)),Q+=v,Z+=g,br+=1;Q+=u,Z+=h}Q+=f,Z+=b}Q+=l,Z+=S}Q+=d,Z+=w}Q+=m,Z+=A}Q+=p,Z+=_}Q+=y,Z+=x}}JP.exports=Rkr});var HP=c((Ede,XP)=>{"use strict";var Bkr=zr(),zkr=Br();function Vkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr,Er,Ar,_r,jr,Or;for(_r=Bkr(r.shape,r.strides,e.strides),M=_r.sh,Z=_r.sx,rr=_r.sy,i=zkr(r.dtype,e.dtype),ar=r.offset,er=e.offset,n=r.data,s=e.data,v=Z[0],h=rr[0],Or=0,Ar=M[8];Ar>0;)for(Ar<i?(Q=Ar,Ar=0):(Q=i,Ar-=i),B=ar+Ar*Z[8],U=er+Ar*rr[8],Er=M[7];Er>0;)for(Er<i?(H=Er,Er=0):(H=i,Er-=i),g=Z[8]-H*Z[7],q=rr[8]-H*rr[7],N=B+Er*Z[7],C=U+Er*rr[7],gr=M[6];gr>0;)for(gr<i?(X=gr,gr=0):(X=i,gr-=i),y=Z[7]-X*Z[6],E=rr[7]-X*rr[6],k=N+gr*Z[6],L=C+gr*rr[6],xr=M[5];xr>0;)for(xr<i?(K=xr,xr=0):(K=i,xr-=i),p=Z[6]-K*Z[5],x=rr[6]-K*rr[5],D=k+xr*Z[5],F=L+xr*rr[5],br=M[4];br>0;)for(br<i?(J=br,br=0):(J=i,br-=i),m=Z[5]-J*Z[4],_=rr[5]-J*rr[4],O=D+br*Z[4],P=F+br*rr[4],qr=M[3];qr>0;)for(qr<i?(W=qr,qr=0):(W=i,qr-=i),d=Z[4]-W*Z[3],A=rr[4]-W*rr[3],I=O+qr*Z[3],V=P+qr*rr[3],hr=M[2];hr>0;)for(hr<i?($=hr,hr=0):($=i,hr-=i),l=Z[3]-$*Z[2],w=rr[3]-$*rr[2],T=I+hr*Z[2],R=V+hr*rr[2],mr=M[1];mr>0;)for(mr<i?(Y=mr,mr=0):(Y=i,mr-=i),f=Z[2]-Y*Z[1],S=rr[2]-Y*rr[1],j=T+mr*Z[1],z=R+mr*rr[1],yr=M[0];yr>0;)for(yr<i?(G=yr,yr=0):(G=i,yr-=i),ir=j+yr*Z[0],tr=z+yr*rr[0],u=Z[1]-G*Z[0],b=rr[1]-G*rr[0],dr=0;dr<Q;dr++){for(pr=0;pr<H;pr++){for(fr=0;fr<X;fr++){for(lr=0;lr<K;lr++){for(ur=0;ur<J;ur++){for(vr=0;vr<W;vr++){for(nr=0;nr<$;nr++){for(sr=0;sr<Y;sr++){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+=v,tr+=h,Or+=1;ir+=u,tr+=b}ir+=f,tr+=S}ir+=l,tr+=w}ir+=d,tr+=A}ir+=m,tr+=_}ir+=p,tr+=x}ir+=y,tr+=E}ir+=g,tr+=q}}XP.exports=Vkr});var QP=c((Ade,ZP)=>{"use strict";var Pkr=zr(),Fkr=Br();function Lkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er,ir,tr,or,sr,nr,vr,ur,lr,fr,pr,dr,yr,mr,hr,qr,br,xr,gr,Er,Ar,_r,jr,Or,Rr,Vr,Xr,te,Ne,sa,pt;for(Ne=Pkr(r.shape,r.strides,e.strides),W=Ne.sh,tr=Ne.sx,or=Ne.sy,i=Fkr(r.dtype,e.dtype),sr=r.offset,nr=e.offset,n=r.data,s=e.data,v=tr[0],b=or[0],pt=0,te=W[9];te>0;)for(te<i?(ir=te,te=0):(ir=i,te-=i),V=sr+te*tr[9],$=nr+te*or[9],Xr=W[8];Xr>0;)for(Xr<i?(er=Xr,Xr=0):(er=i,Xr-=i),h=tr[9]-er*tr[8],T=or[9]-er*or[8],R=V+Xr*tr[8],Y=$+Xr*or[8],Vr=W[7];Vr>0;)for(Vr<i?(ar=Vr,Vr=0):(ar=i,Vr-=i),g=tr[8]-ar*tr[7],j=or[8]-ar*or[7],z=R+Vr*tr[7],G=Y+Vr*or[7],Rr=W[6];Rr>0;)for(Rr<i?(rr=Rr,Rr=0):(rr=i,Rr-=i),y=tr[7]-rr*tr[6],q=or[7]-rr*or[6],B=z+Rr*tr[6],M=G+Rr*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=B+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],x=or[5]-Q*or[4],k=N+jr*tr[4],C=U+jr*or[4],_r=W[3];_r>0;)for(_r<i?(H=_r,_r=0):(H=i,_r-=i),d=tr[4]-H*tr[3],_=or[4]-H*or[3],D=k+_r*tr[3],L=C+_r*or[3],Ar=W[2];Ar>0;)for(Ar<i?(X=Ar,Ar=0):(X=i,Ar-=i),l=tr[3]-X*tr[2],A=or[3]-X*or[2],O=D+Ar*tr[2],F=L+Ar*or[2],Er=W[1];Er>0;)for(Er<i?(K=Er,Er=0):(K=i,Er-=i),f=tr[2]-K*tr[1],w=or[2]-K*or[1],I=O+Er*tr[1],P=F+Er*or[1],gr=W[0];gr>0;)for(gr<i?(J=gr,gr=0):(J=i,gr-=i),vr=I+gr*tr[0],ur=P+gr*or[0],u=tr[1]-J*tr[0],S=or[1]-J*or[0],xr=0;xr<ir;xr++){for(br=0;br<er;br++){for(qr=0;qr<ar;qr++){for(hr=0;hr<rr;hr++){for(mr=0;mr<Z;mr++){for(yr=0;yr<Q;yr++){for(dr=0;dr<H;dr++){for(pr=0;pr<X;pr++){for(fr=0;fr<K;fr++){for(lr=0;lr<J;lr++)sa=t.call(o,n[vr],pt,[vr,ur],[r,e]),sa!==void 0&&(s[ur]=a(sa)),vr+=v,ur+=b,pt+=1;vr+=u,ur+=S}vr+=f,ur+=w}vr+=l,ur+=A}vr+=d,ur+=_}vr+=m,ur+=x}vr+=p,ur+=E}vr+=y,ur+=q}vr+=g,ur+=j}vr+=h,ur+=T}}ZP.exports=Lkr});var eF=c((_de,rF)=>{"use strict";function Ckr(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))}rF.exports=Ckr});var tF=c((jde,aF)=>{"use strict";function Ukr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g;for(l=r.shape[0],u=r.strides[0],f=e.strides[0],d=r.offset,m=e.offset,i=r.data,n=e.data,s=r.accessors[0],v=e.accessors[1],g=0,p=0;p<l;p++)y=t.call(o,s(i,d),g,[d,m],[r,e]),y!==void 0&&v(n,m,a(y)),d+=u,m+=f,g+=1}aF.exports=Ukr});var oF=c((Tde,iF)=>{"use strict";function Mkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x;for(m=r.shape,g=r.strides,h=e.strides,r.order==="row-major"?(p=m[1],y=m[0],u=g[1],f=g[0]-p*g[1],l=h[1],d=h[0]-p*h[1]):(p=m[0],y=m[1],u=g[0],f=g[1]-p*g[0],l=h[0],d=h[1]-p*h[0]),b=r.offset,S=e.offset,i=r.data,n=e.data,s=r.accessors[0],v=e.accessors[1],x=0,A=0;A<y;A++){for(w=0;w<p;w++)_=t.call(o,s(i,b),x,[b,S],[r,e]),_!==void 0&&v(n,S,a(_)),b+=u,S+=l,x+=1;b+=f,S+=d}}iF.exports=Mkr});var nF=c((Ode,sF)=>{"use strict";function Gkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T;for(y=r.shape,S=r.strides,w=e.strides,r.order==="row-major"?(g=y[2],h=y[1],b=y[0],u=S[2],f=S[1]-g*S[2],l=S[0]-h*S[1],d=w[2],m=w[1]-g*w[2],p=w[0]-h*w[1]):(g=y[0],h=y[1],b=y[2],u=S[0],f=S[1]-g*S[0],l=S[2]-h*S[1],d=w[0],m=w[1]-g*w[0],p=w[2]-h*w[1]),A=r.offset,_=e.offset,i=r.data,n=e.data,s=r.accessors[0],v=e.accessors[1],T=0,q=0;q<b;q++){for(E=0;E<h;E++){for(x=0;x<g;x++)j=t.call(o,s(i,A),T,[A,_],[r,e]),j!==void 0&&v(n,_,a(j)),A+=u,_+=d,T+=1;A+=f,_+=m}A+=l,_+=p}}sF.exports=Gkr});var uF=c((Ide,vF)=>{"use strict";function $kr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k;for(h=r.shape,_=r.strides,x=e.strides,r.order==="row-major"?(b=h[3],S=h[2],w=h[1],A=h[0],u=_[3],f=_[2]-b*_[3],l=_[1]-S*_[2],d=_[0]-w*_[1],m=x[3],p=x[2]-b*x[3],y=x[1]-S*x[2],g=x[0]-w*x[1]):(b=h[0],S=h[1],w=h[2],A=h[3],u=_[0],f=_[1]-b*_[0],l=_[2]-S*_[1],d=_[3]-w*_[2],m=x[0],p=x[1]-b*x[0],y=x[2]-S*x[1],g=x[3]-w*x[2]),E=r.offset,q=e.offset,i=r.data,n=e.data,s=r.accessors[0],v=e.accessors[1],k=0,O=0;O<A;O++){for(I=0;I<w;I++){for(T=0;T<S;T++){for(j=0;j<b;j++)D=t.call(o,s(i,E),k,[E,q],[r,e]),D!==void 0&&v(n,q,a(D)),E+=u,q+=m,k+=1;E+=f,q+=p}E+=l,q+=y}E+=d,q+=g}}vF.exports=$kr});var lF=c((Nde,fF)=>{"use strict";function Ykr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R;for(S=r.shape,q=r.strides,j=e.strides,r.order==="row-major"?(w=S[4],A=S[3],_=S[2],x=S[1],E=S[0],u=q[4],f=q[3]-w*q[4],l=q[2]-A*q[3],d=q[1]-_*q[2],m=q[0]-x*q[1],p=j[4],y=j[3]-w*j[4],g=j[2]-A*j[3],h=j[1]-_*j[2],b=j[0]-x*j[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],u=q[0],f=q[1]-w*q[0],l=q[2]-A*q[1],d=q[3]-_*q[2],m=q[4]-x*q[3],p=j[0],y=j[1]-w*j[0],g=j[2]-A*j[1],h=j[3]-_*j[2],b=j[4]-x*j[3]),T=r.offset,I=e.offset,i=r.data,n=e.data,s=r.accessors[0],v=e.accessors[1],R=0,B=0;B<E;B++){for(N=0;N<x;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(O=0;O<w;O++)z=t.call(o,s(i,T),R,[T,I],[r,e]),z!==void 0&&v(n,I,a(z)),T+=u,I+=p,R+=1;T+=f,I+=y}T+=l,I+=g}T+=d,I+=h}T+=m,I+=b}}fF.exports=Ykr});var dF=c((Dde,cF)=>{"use strict";function Wkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L;for(A=r.shape,I=r.strides,O=e.strides,r.order==="row-major"?(_=A[5],x=A[4],E=A[3],q=A[2],j=A[1],T=A[0],u=I[5],f=I[4]-_*I[5],l=I[3]-x*I[4],d=I[2]-E*I[3],m=I[1]-q*I[2],p=I[0]-j*I[1],y=O[5],g=O[4]-_*O[5],h=O[3]-x*O[4],b=O[2]-E*O[3],S=O[1]-q*O[2],w=O[0]-j*O[1]):(_=A[0],x=A[1],E=A[2],q=A[3],j=A[4],T=A[5],u=I[0],f=I[1]-_*I[0],l=I[2]-x*I[1],d=I[3]-E*I[2],m=I[4]-q*I[3],p=I[5]-j*I[4],y=O[0],g=O[1]-_*O[0],h=O[2]-x*O[1],b=O[3]-E*O[2],S=O[4]-q*O[3],w=O[5]-j*O[4]),D=r.offset,k=e.offset,i=r.data,n=e.data,s=r.accessors[0],v=e.accessors[1],L=0,P=0;P<T;P++){for(V=0;V<j;V++){for(R=0;R<q;R++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(N=0;N<_;N++)F=t.call(o,s(i,D),L,[D,k],[r,e]),F!==void 0&&v(n,k,a(F)),D+=u,k+=y,L+=1;D+=f,k+=g}D+=l,k+=h}D+=d,k+=b}D+=m,k+=S}D+=p,k+=w}}cF.exports=Wkr});var yF=c((kde,pF)=>{"use strict";function Jkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G;for(x=r.shape,k=r.strides,N=e.strides,r.order==="row-major"?(E=x[6],q=x[5],j=x[4],T=x[3],I=x[2],O=x[1],D=x[0],u=k[6],f=k[5]-E*k[6],l=k[4]-q*k[5],d=k[3]-j*k[4],m=k[2]-T*k[3],p=k[1]-I*k[2],y=k[0]-O*k[1],g=N[6],h=N[5]-E*N[6],b=N[4]-q*N[5],S=N[3]-j*N[4],w=N[2]-T*N[3],A=N[1]-I*N[2],_=N[0]-O*N[1]):(E=x[0],q=x[1],j=x[2],T=x[3],I=x[4],O=x[5],D=x[6],u=k[0],f=k[1]-E*k[0],l=k[2]-q*k[1],d=k[3]-j*k[2],m=k[4]-T*k[3],p=k[5]-I*k[4],y=k[6]-O*k[5],g=N[0],h=N[1]-E*N[0],b=N[2]-q*N[1],S=N[3]-j*N[2],w=N[4]-T*N[3],A=N[5]-I*N[4],_=N[6]-O*N[5]),B=r.offset,z=e.offset,i=r.data,n=e.data,s=r.accessors[0],v=e.accessors[1],G=0,U=0;U<D;U++){for(C=0;C<O;C++){for(L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(V=0;V<q;V++){for(R=0;R<E;R++)M=t.call(o,s(i,B),G,[B,z],[r,e]),M!==void 0&&v(n,z,a(M)),B+=u,z+=g,G+=1;B+=f,z+=h}B+=l,z+=b}B+=d,z+=S}B+=m,z+=w}B+=p,z+=A}B+=y,z+=_}}pF.exports=Jkr});var gF=c((Rde,mF)=>{"use strict";function Kkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J;for(q=r.shape,z=r.strides,R=e.strides,r.order==="row-major"?(j=q[7],T=q[6],I=q[5],O=q[4],D=q[3],k=q[2],N=q[1],B=q[0],u=z[7],f=z[6]-j*z[7],l=z[5]-T*z[6],d=z[4]-I*z[5],m=z[3]-O*z[4],p=z[2]-D*z[3],y=z[1]-k*z[2],g=z[0]-N*z[1],h=R[7],b=R[6]-j*R[7],S=R[5]-T*R[6],w=R[4]-I*R[5],A=R[3]-O*R[4],_=R[2]-D*R[3],x=R[1]-k*R[2],E=R[0]-N*R[1]):(j=q[0],T=q[1],I=q[2],O=q[3],D=q[4],k=q[5],N=q[6],B=q[7],u=z[0],f=z[1]-j*z[0],l=z[2]-T*z[1],d=z[3]-I*z[2],m=z[4]-O*z[3],p=z[5]-D*z[4],y=z[6]-k*z[5],g=z[7]-N*z[6],h=R[0],b=R[1]-j*R[0],S=R[2]-T*R[1],w=R[3]-I*R[2],A=R[4]-O*R[3],_=R[5]-D*R[4],x=R[6]-k*R[5],E=R[7]-N*R[6]),V=r.offset,P=e.offset,i=r.data,n=e.data,s=r.accessors[0],v=e.accessors[1],J=0,$=0;$<B;$++){for(Y=0;Y<N;Y++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++)W=t.call(o,s(i,V),J,[V,P],[r,e]),W!==void 0&&v(n,P,a(W)),V+=u,P+=h,J+=1;V+=f,P+=b}V+=l,P+=S}V+=d,P+=w}V+=m,P+=A}V+=p,P+=_}V+=y,P+=x}V+=g,P+=E}}mF.exports=Kkr});var bF=c((Bde,hF)=>{"use strict";function Xkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q;for(T=r.shape,P=r.strides,F=e.strides,r.order==="row-major"?(I=T[8],O=T[7],D=T[6],k=T[5],N=T[4],B=T[3],z=T[2],R=T[1],V=T[0],u=P[8],f=P[7]-I*P[8],l=P[6]-O*P[7],d=P[5]-D*P[6],m=P[4]-k*P[5],p=P[3]-N*P[4],y=P[2]-B*P[3],g=P[1]-z*P[2],h=P[0]-R*P[1],b=F[8],S=F[7]-I*F[8],w=F[6]-O*F[7],A=F[5]-D*F[6],_=F[4]-k*F[5],x=F[3]-N*F[4],E=F[2]-B*F[3],q=F[1]-z*F[2],j=F[0]-R*F[1]):(I=T[0],O=T[1],D=T[2],k=T[3],N=T[4],B=T[5],z=T[6],R=T[7],V=T[8],u=P[0],f=P[1]-I*P[0],l=P[2]-O*P[1],d=P[3]-D*P[2],m=P[4]-k*P[3],p=P[5]-N*P[4],y=P[6]-B*P[5],g=P[7]-z*P[6],h=P[8]-R*P[7],b=F[0],S=F[1]-I*F[0],w=F[2]-O*F[1],A=F[3]-D*F[2],_=F[4]-k*F[3],x=F[5]-N*F[4],E=F[6]-B*F[5],q=F[7]-z*F[6],j=F[8]-R*F[7]),L=r.offset,C=e.offset,i=r.data,n=e.data,s=r.accessors[0],v=e.accessors[1],Q=0,X=0;X<V;X++){for(K=0;K<R;K++){for(J=0;J<z;J++){for(W=0;W<B;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++)H=t.call(o,s(i,L),Q,[L,C],[r,e]),H!==void 0&&v(n,C,a(H)),L+=u,C+=b,Q+=1;L+=f,C+=S}L+=l,C+=w}L+=d,C+=A}L+=m,C+=_}L+=p,C+=x}L+=y,C+=E}L+=g,C+=q}L+=h,C+=j}}hF.exports=Xkr});var qF=c((zde,xF)=>{"use strict";function Hkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr,ar,er;for(O=r.shape,C=r.strides,U=e.strides,r.order==="row-major"?(D=O[9],k=O[8],N=O[7],B=O[6],z=O[5],R=O[4],V=O[3],P=O[2],F=O[1],L=O[0],u=C[9],f=C[8]-D*C[9],l=C[7]-k*C[8],d=C[6]-N*C[7],m=C[5]-B*C[6],p=C[4]-z*C[5],y=C[3]-R*C[4],g=C[2]-V*C[3],h=C[1]-P*C[2],b=C[0]-F*C[1],S=U[9],w=U[8]-D*U[9],A=U[7]-k*U[8],_=U[6]-N*U[7],x=U[5]-B*U[6],E=U[4]-z*U[5],q=U[3]-R*U[4],j=U[2]-V*U[3],T=U[1]-P*U[2],I=U[0]-F*U[1]):(D=O[0],k=O[1],N=O[2],B=O[3],z=O[4],R=O[5],V=O[6],P=O[7],F=O[8],L=O[9],u=C[0],f=C[1]-D*C[0],l=C[2]-k*C[1],d=C[3]-N*C[2],m=C[4]-B*C[3],p=C[5]-z*C[4],y=C[6]-R*C[5],g=C[7]-V*C[6],h=C[8]-P*C[7],b=C[9]-F*C[8],S=U[0],w=U[1]-D*U[0],A=U[2]-k*U[1],_=U[3]-N*U[2],x=U[4]-B*U[3],E=U[5]-z*U[4],q=U[6]-R*U[5],j=U[7]-V*U[6],T=U[8]-P*U[7],I=U[9]-F*U[8]),M=r.offset,G=e.offset,i=r.data,n=e.data,s=r.accessors[0],v=e.accessors[1],er=0,rr=0;rr<L;rr++){for(Z=0;Z<F;Z++){for(Q=0;Q<P;Q++){for(H=0;H<V;H++){for(X=0;X<R;X++){for(K=0;K<z;K++){for(J=0;J<B;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++)ar=t.call(o,s(i,M),er,[M,G],[r,e]),ar!==void 0&&v(n,G,a(ar)),M+=u,G+=S,er+=1;M+=f,G+=w}M+=l,G+=A}M+=d,G+=_}M+=m,G+=x}M+=p,G+=E}M+=y,G+=q}M+=g,G+=j}M+=h,G+=T}M+=b,G+=I}}xF.exports=Hkr});var AF=c((Vde,EF)=>{"use strict";var Zkr=Wr(),wF=ia(),SF="throw";function Qkr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w;for(d=r.shape,u=Zkr(d),i=r.data,n=e.data,m=r.strides,p=e.strides,y=r.offset,g=e.offset,s=r.order,v=e.order,f=r.accessors[0],l=e.accessors[1],w=0;w<u;w++)h=wF(d,m,y,s,w,SF),b=wF(d,p,g,v,w,SF),S=t.call(o,f(i,h),w,[h,b],[r,e]),S!==void 0&&l(n,b,a(S))}EF.exports=Qkr});var jF=c((Pde,_F)=>{"use strict";function rRr(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))}_F.exports=rRr});var OF=c((Fde,TF)=>{"use strict";function eRr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p;for(u=r.shape[0],s=r.strides[0],v=e.strides[0],f=r.offset,l=e.offset,i=r.data,n=e.data,p=0,d=0;d<u;d++)m=t.call(o,i[f],p,[f,l],[r,e]),m!==void 0&&(n[l]=a(m)),f+=s,l+=v,p+=1}TF.exports=eRr});var NF=c((Lde,IF)=>{"use strict";function aRr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A;for(l=r.shape,p=r.strides,y=e.strides,r.order==="row-major"?(d=l[1],m=l[0],s=p[1],v=p[0]-d*p[1],u=y[1],f=y[0]-d*y[1]):(d=l[0],m=l[1],s=p[0],v=p[1]-d*p[0],u=y[0],f=y[1]-d*y[0]),g=r.offset,h=e.offset,i=r.data,n=e.data,A=0,S=0;S<m;S++){for(b=0;b<d;b++)w=t.call(o,i[g],A,[g,h],[r,e]),w!==void 0&&(n[h]=a(w)),g+=s,h+=u,A+=1;g+=v,h+=f}}IF.exports=aRr});var kF=c((Cde,DF)=>{"use strict";function tRr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q;for(m=r.shape,h=r.strides,b=e.strides,r.order==="row-major"?(p=m[2],y=m[1],g=m[0],s=h[2],v=h[1]-p*h[2],u=h[0]-y*h[1],f=b[2],l=b[1]-p*b[2],d=b[0]-y*b[1]):(p=m[0],y=m[1],g=m[2],s=h[0],v=h[1]-p*h[0],u=h[2]-y*h[1],f=b[0],l=b[1]-p*b[0],d=b[2]-y*b[1]),S=r.offset,w=e.offset,i=r.data,n=e.data,q=0,x=0;x<g;x++){for(_=0;_<y;_++){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+=v,w+=l}S+=u,w+=d}}DF.exports=tRr});var BF=c((Ude,RF)=>{"use strict";function iRr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O;for(y=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(g=y[3],h=y[2],b=y[1],S=y[0],s=w[3],v=w[2]-g*w[3],u=w[1]-h*w[2],f=w[0]-b*w[1],l=A[3],d=A[2]-g*A[3],m=A[1]-h*A[2],p=A[0]-b*A[1]):(g=y[0],h=y[1],b=y[2],S=y[3],s=w[0],v=w[1]-g*w[0],u=w[2]-h*w[1],f=w[3]-b*w[2],l=A[0],d=A[1]-g*A[0],m=A[2]-h*A[1],p=A[3]-b*A[2]),_=r.offset,x=e.offset,i=r.data,n=e.data,O=0,T=0;T<S;T++){for(j=0;j<b;j++){for(q=0;q<h;q++){for(E=0;E<g;E++)I=t.call(o,i[_],O,[_,x],[r,e]),I!==void 0&&(n[x]=a(I)),_+=s,x+=l,O+=1;_+=v,x+=d}_+=u,x+=m}_+=f,x+=p}}RF.exports=iRr});var VF=c((Mde,zF)=>{"use strict";function oRr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B;for(h=r.shape,x=r.strides,E=e.strides,r.order==="row-major"?(b=h[4],S=h[3],w=h[2],A=h[1],_=h[0],s=x[4],v=x[3]-b*x[4],u=x[2]-S*x[3],f=x[1]-w*x[2],l=x[0]-A*x[1],d=E[4],m=E[3]-b*E[4],p=E[2]-S*E[3],y=E[1]-w*E[2],g=E[0]-A*E[1]):(b=h[0],S=h[1],w=h[2],A=h[3],_=h[4],s=x[0],v=x[1]-b*x[0],u=x[2]-S*x[1],f=x[3]-w*x[2],l=x[4]-A*x[3],d=E[0],m=E[1]-b*E[0],p=E[2]-S*E[1],y=E[3]-w*E[2],g=E[4]-A*E[3]),q=r.offset,j=e.offset,i=r.data,n=e.data,B=0,k=0;k<_;k++){for(D=0;D<A;D++){for(O=0;O<w;O++){for(I=0;I<S;I++){for(T=0;T<b;T++)N=t.call(o,i[q],B,[q,j],[r,e]),N!==void 0&&(n[j]=a(N)),q+=s,j+=d,B+=1;q+=v,j+=m}q+=u,j+=p}q+=f,j+=y}q+=l,j+=g}}zF.exports=oRr});var FF=c((Gde,PF)=>{"use strict";function sRr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P;for(S=r.shape,j=r.strides,T=e.strides,r.order==="row-major"?(w=S[5],A=S[4],_=S[3],x=S[2],E=S[1],q=S[0],s=j[5],v=j[4]-w*j[5],u=j[3]-A*j[4],f=j[2]-_*j[3],l=j[1]-x*j[2],d=j[0]-E*j[1],m=T[5],p=T[4]-w*T[5],y=T[3]-A*T[4],g=T[2]-_*T[3],h=T[1]-x*T[2],b=T[0]-E*T[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],q=S[5],s=j[0],v=j[1]-w*j[0],u=j[2]-A*j[1],f=j[3]-_*j[2],l=j[4]-x*j[3],d=j[5]-E*j[4],m=T[0],p=T[1]-w*T[0],y=T[2]-A*T[1],g=T[3]-_*T[2],h=T[4]-x*T[3],b=T[5]-E*T[4]),I=r.offset,O=e.offset,i=r.data,n=e.data,P=0,R=0;R<q;R++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)V=t.call(o,i[I],P,[I,O],[r,e]),V!==void 0&&(n[O]=a(V)),I+=s,O+=m,P+=1;I+=v,O+=p}I+=u,O+=y}I+=f,O+=g}I+=l,O+=h}I+=d,O+=b}}PF.exports=sRr});var CF=c(($de,LF)=>{"use strict";function nRr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U;for(A=r.shape,O=r.strides,D=e.strides,r.order==="row-major"?(_=A[6],x=A[5],E=A[4],q=A[3],j=A[2],T=A[1],I=A[0],s=O[6],v=O[5]-_*O[6],u=O[4]-x*O[5],f=O[3]-E*O[4],l=O[2]-q*O[3],d=O[1]-j*O[2],m=O[0]-T*O[1],p=D[6],y=D[5]-_*D[6],g=D[4]-x*D[5],h=D[3]-E*D[4],b=D[2]-q*D[3],S=D[1]-j*D[2],w=D[0]-T*D[1]):(_=A[0],x=A[1],E=A[2],q=A[3],j=A[4],T=A[5],I=A[6],s=O[0],v=O[1]-_*O[0],u=O[2]-x*O[1],f=O[3]-E*O[2],l=O[4]-q*O[3],d=O[5]-j*O[4],m=O[6]-T*O[5],p=D[0],y=D[1]-_*D[0],g=D[2]-x*D[1],h=D[3]-E*D[2],b=D[4]-q*D[3],S=D[5]-j*D[4],w=D[6]-T*D[5]),k=r.offset,N=e.offset,i=r.data,n=e.data,U=0,L=0;L<I;L++){for(F=0;F<T;F++){for(P=0;P<j;P++){for(V=0;V<q;V++){for(R=0;R<E;R++){for(z=0;z<x;z++){for(B=0;B<_;B++)C=t.call(o,i[k],U,[k,N],[r,e]),C!==void 0&&(n[N]=a(C)),k+=s,N+=p,U+=1;k+=v,N+=y}k+=u,N+=g}k+=f,N+=h}k+=l,N+=b}k+=d,N+=S}k+=m,N+=w}}LF.exports=nRr});var MF=c((Yde,UF)=>{"use strict";function vRr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$;for(x=r.shape,N=r.strides,B=e.strides,r.order==="row-major"?(E=x[7],q=x[6],j=x[5],T=x[4],I=x[3],O=x[2],D=x[1],k=x[0],s=N[7],v=N[6]-E*N[7],u=N[5]-q*N[6],f=N[4]-j*N[5],l=N[3]-T*N[4],d=N[2]-I*N[3],m=N[1]-O*N[2],p=N[0]-D*N[1],y=B[7],g=B[6]-E*B[7],h=B[5]-q*B[6],b=B[4]-j*B[5],S=B[3]-T*B[4],w=B[2]-I*B[3],A=B[1]-O*B[2],_=B[0]-D*B[1]):(E=x[0],q=x[1],j=x[2],T=x[3],I=x[4],O=x[5],D=x[6],k=x[7],s=N[0],v=N[1]-E*N[0],u=N[2]-q*N[1],f=N[3]-j*N[2],l=N[4]-T*N[3],d=N[5]-I*N[4],m=N[6]-O*N[5],p=N[7]-D*N[6],y=B[0],g=B[1]-E*B[0],h=B[2]-q*B[1],b=B[3]-j*B[2],S=B[4]-T*B[3],w=B[5]-I*B[4],A=B[6]-O*B[5],_=B[7]-D*B[6]),z=r.offset,R=e.offset,i=r.data,n=e.data,$=0,G=0;G<k;G++){for(M=0;M<D;M++){for(U=0;U<O;U++){for(C=0;C<I;C++){for(L=0;L<T;L++){for(F=0;F<j;F++){for(P=0;P<q;P++){for(V=0;V<E;V++)Y=t.call(o,i[z],$,[z,R],[r,e]),Y!==void 0&&(n[R]=a(Y)),z+=s,R+=y,$+=1;z+=v,R+=g}z+=u,R+=h}z+=f,R+=b}z+=l,R+=S}z+=d,R+=w}z+=m,R+=A}z+=p,R+=_}}UF.exports=vRr});var $F=c((Wde,GF)=>{"use strict";function uRr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X;for(q=r.shape,R=r.strides,V=e.strides,r.order==="row-major"?(j=q[8],T=q[7],I=q[6],O=q[5],D=q[4],k=q[3],N=q[2],B=q[1],z=q[0],s=R[8],v=R[7]-j*R[8],u=R[6]-T*R[7],f=R[5]-I*R[6],l=R[4]-O*R[5],d=R[3]-D*R[4],m=R[2]-k*R[3],p=R[1]-N*R[2],y=R[0]-B*R[1],g=V[8],h=V[7]-j*V[8],b=V[6]-T*V[7],S=V[5]-I*V[6],w=V[4]-O*V[5],A=V[3]-D*V[4],_=V[2]-k*V[3],x=V[1]-N*V[2],E=V[0]-B*V[1]):(j=q[0],T=q[1],I=q[2],O=q[3],D=q[4],k=q[5],N=q[6],B=q[7],z=q[8],s=R[0],v=R[1]-j*R[0],u=R[2]-T*R[1],f=R[3]-I*R[2],l=R[4]-O*R[3],d=R[5]-D*R[4],m=R[6]-k*R[5],p=R[7]-N*R[6],y=R[8]-B*R[7],g=V[0],h=V[1]-j*V[0],b=V[2]-T*V[1],S=V[3]-I*V[2],w=V[4]-O*V[3],A=V[5]-D*V[4],_=V[6]-k*V[5],x=V[7]-N*V[6],E=V[8]-B*V[7]),P=r.offset,F=e.offset,i=r.data,n=e.data,X=0,J=0;J<z;J++){for(W=0;W<B;W++){for($=0;$<N;$++){for(Y=0;Y<k;Y++){for(G=0;G<D;G++){for(M=0;M<O;M++){for(U=0;U<I;U++){for(C=0;C<T;C++){for(L=0;L<j;L++)K=t.call(o,i[P],X,[P,F],[r,e]),K!==void 0&&(n[F]=a(K)),P+=s,F+=g,X+=1;P+=v,F+=h}P+=u,F+=b}P+=f,F+=S}P+=l,F+=w}P+=d,F+=A}P+=m,F+=_}P+=p,F+=x}P+=y,F+=E}}GF.exports=uRr});var WF=c((Jde,YF)=>{"use strict";function fRr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F,L,C,U,M,G,Y,$,W,J,K,X,H,Q,Z,rr;for(T=r.shape,F=r.strides,L=e.strides,r.order==="row-major"?(I=T[9],O=T[8],D=T[7],k=T[6],N=T[5],B=T[4],z=T[3],R=T[2],V=T[1],P=T[0],s=F[9],v=F[8]-I*F[9],u=F[7]-O*F[8],f=F[6]-D*F[7],l=F[5]-k*F[6],d=F[4]-N*F[5],m=F[3]-B*F[4],p=F[2]-z*F[3],y=F[1]-R*F[2],g=F[0]-V*F[1],h=L[9],b=L[8]-I*L[9],S=L[7]-O*L[8],w=L[6]-D*L[7],A=L[5]-k*L[6],_=L[4]-N*L[5],x=L[3]-B*L[4],E=L[2]-z*L[3],q=L[1]-R*L[2],j=L[0]-V*L[1]):(I=T[0],O=T[1],D=T[2],k=T[3],N=T[4],B=T[5],z=T[6],R=T[7],V=T[8],P=T[9],s=F[0],v=F[1]-I*F[0],u=F[2]-O*F[1],f=F[3]-D*F[2],l=F[4]-k*F[3],d=F[5]-N*F[4],m=F[6]-B*F[5],p=F[7]-z*F[6],y=F[8]-R*F[7],g=F[9]-V*F[8],h=L[0],b=L[1]-I*L[0],S=L[2]-O*L[1],w=L[3]-D*L[2],A=L[4]-k*L[3],_=L[5]-N*L[4],x=L[6]-B*L[5],E=L[7]-z*L[6],q=L[8]-R*L[7],j=L[9]-V*L[8]),C=r.offset,U=e.offset,i=r.data,n=e.data,rr=0,Q=0;Q<P;Q++){for(H=0;H<V;H++){for(X=0;X<R;X++){for(K=0;K<z;K++){for(J=0;J<B;J++){for(W=0;W<N;W++){for($=0;$<k;$++){for(Y=0;Y<D;Y++){for(G=0;G<O;G++){for(M=0;M<I;M++)Z=t.call(o,i[C],rr,[C,U],[r,e]),Z!==void 0&&(n[U]=a(Z)),C+=s,U+=h,rr+=1;C+=v,U+=b}C+=u,U+=S}C+=f,U+=w}C+=l,U+=A}C+=d,U+=_}C+=m,U+=x}C+=p,U+=E}C+=y,U+=q}C+=g,U+=j}}YF.exports=fRr});var HF=c((Kde,XF)=>{"use strict";var lRr=Wr(),JF=ia(),KF="throw";function cRr(r,e,a,t,o){var i,n,s,v,u,f,l,d,m,p,y,g,h,b;for(f=r.shape,u=lRr(f),i=r.data,n=e.data,l=r.strides,d=e.strides,m=r.offset,p=e.offset,s=r.order,v=e.order,b=0;b<u;b++)y=JF(f,l,m,s,b,KF),g=JF(f,d,p,v,b,KF),h=t.call(o,i[y],b,[y,g],[r,e]),h!==void 0&&(n[g]=a(h))}XF.exports=cRr});var tL=c((Xde,aL)=>{"use strict";var ZF=xa(),QF=Za(),rL=Wt(),dRr=bP(),pRr=qP(),yRr=SP(),mRr=AP(),gRr=jP(),hRr=OP(),bRr=NP(),xRr=kP(),qRr=BP(),wRr=VP(),SRr=FP(),ERr=CP(),ARr=MP(),_Rr=$P(),jRr=WP(),TRr=KP(),ORr=HP(),IRr=QP(),NRr=eF(),DRr=tF(),kRr=oF(),RRr=nF(),BRr=uF(),zRr=lF(),VRr=dF(),PRr=yF(),FRr=gF(),LRr=bF(),CRr=qF(),URr=AF(),MRr=jF(),GRr=OF(),$Rr=NF(),YRr=kF(),WRr=BF(),JRr=VF(),KRr=FF(),XRr=CF(),HRr=MF(),ZRr=$F(),QRr=WF(),rBr=HF(),_i=[MRr,GRr,$Rr,YRr,WRr,JRr,KRr,XRr,HRr,ZRr,QRr],So=[NRr,DRr,kRr,RRr,BRr,zRr,VRr,PRr,FRr,LRr,CRr],eBr=[wRr,SRr,ERr,ARr,_Rr,jRr,TRr,ORr,IRr],aBr=[dRr,pRr,yRr,mRr,gRr,hRr,bRr,xRr,qRr],eL=_i.length-1;function tBr(r,e,a,t){var o,i,n,s,v,u,f,l,d,m,p,y,g,h,b,S,w;if(h=rL(r[0]),b=rL(r[1]),s=h.shape,v=b.shape,o=s.length,o!==v.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+o+". ndims(y) == "+v.length+".");if(o===0)return h.accessorProtocol||b.accessorProtocol?So[o](h,b,e,a,t):_i[o](h,b,e,a,t);for(l=1,g=0,w=0;w<o;w++){if(S=s[w],S!==v[w])throw new Error("invalid arguments. Arrays must have the same shape.");l*=S,S===1&&(g+=1)}if(l!==0){if(o===1)return h.accessorProtocol||b.accessorProtocol?So[o](h,b,e,a,t):_i[o](h,b,e,a,t);if(d=h.strides,m=b.strides,g===o-1){for(w=0;w<o&&s[w]===1;w++);return h.shape=[s[w]],b.shape=h.shape,h.strides=[d[w]],b.strides=[m[w]],h.accessorProtocol||b.accessorProtocol?So[1](h,b,e,a,t):_i[1](h,b,e,a,t)}if(u=ZF(d),f=ZF(m),u!==0&&f!==0&&u===f){if(i=QF(s,d,h.offset),n=QF(v,m,b.offset),l===i[1]-i[0]+1&&l===n[1]-n[0]+1)return u===1?p=i[0]:p=i[1],f===1?y=n[0]:y=n[1],h.shape=[l],b.shape=h.shape,h.strides=[u],b.strides=[f],h.offset=p,b.offset=y,h.accessorProtocol||b.accessorProtocol?So[1](h,b,e,a,t):_i[1](h,b,e,a,t);if(o<=eL)return h.accessorProtocol||b.accessorProtocol?So[o](h,b,e,a,t):_i[o](h,b,e,a,t)}if(o<=eL)return h.accessorProtocol||b.accessorProtocol?aBr[o-2](h,b,e,a,t):eBr[o-2](h,b,e,a,t);if(h.accessorProtocol||b.accessorProtocol)return URr(h,b,e,a,t);rBr(h,b,e,a,t)}}aL.exports=tBr});var oL=c((Hde,iL)=>{"use strict";var iBr=tL();iL.exports=iBr});var nL=c((Zde,sL)=>{"use strict";var oBr=Os(),sBr=Wu(),nBr=lo(),vBr=Cu(),uBr=Ds(),fBr=ks(),lBr=Is(),cBr=Uu(),dBr=di(),ft=Oa(),pBr=cr(),yBr={floating_point:[oBr,ft.get("dtypes.floating_point")],real_floating_point:[sBr,ft.get("dtypes.real_floating_point")],complex_floating_point:[nBr,ft.get("dtypes.complex_floating_point")],integer:[vBr,ft.get("dtypes.integer")],signed_integer:[uBr,ft.get("dtypes.signed_integer")],unsigned_integer:[fBr,ft.get("dtypes.unsigned_integer")],real:[lBr,ft.get("dtypes.real")],numeric:[cBr,ft.get("dtypes.numeric")]},mBr=ft.get("dtypes.default");function gBr(r,e){var a;if(e==="default")return mBr;if(e==="same"||e==="promoted")return r;if(e==="bool")throw new Error("not implemented");if(a=yBr[e],a===void 0){if(dBr(e))return e;throw new TypeError(pBr("invalid argument. Second argument must be a supported data type policy. Value: `%s`.",e))}return a[0](r)?r:a[1]}sL.exports=gBr});var uL=c((Qde,vL)=>{"use strict";var hBr=nL();vL.exports=hBr});var lL=c((r0e,fL)=>{"use strict";var bBr=Be(),xBr=Me(),qBr=Na(),wBr=cr(),SBr=ra(),EBr=Wr();function ABr(r,e,a){var t,o,i,n;if(t=e.length,t>0?(i=EBr(e),n=bBr(e,a)):(i=1,n=[0]),o=qBr(r,i),o===null)throw new TypeError(wBr("invalid argument. First argument must be a recognized data type. Value: `%s`.",r));return new SBr(r,o,e,n,xBr(e,n),a)}fL.exports=ABr});var dL=c((e0e,cL)=>{"use strict";var _Br=lL();cL.exports=_Br});var yL=c((a0e,pL)=>{"use strict";var jBr=Be(),TBr=Me(),OBr=Na(),IBr=Wr(),NBr=Ye(),DBr=_e(),kBr=oa(),RBr=cr();function BBr(r){var e,a,t,o,i,n,s;if(s=NBr(r),i=DBr(r,!0),o=kBr(r),e=i.length,e>0?(a=IBr(i),n=jBr(i,o)):(a=1,n=[0]),t=OBr(s,a),t===null)throw new TypeError(RBr("invalid argument. First argument must have a recognized data type. Value: `%s`.",s));return new r.constructor(s,t,i,n,TBr(i,n),o)}pL.exports=BBr});var gL=c((t0e,mL)=>{"use strict";var zBr=yL();mL.exports=zBr});var bL=c((i0e,hL)=>{"use strict";var Sr=It(),wr={};Sr(wr,"assert",t_());Sr(wr,"assign",Xu());Sr(wr,"binaryLoopOrder",Vj());Sr(wr,"binaryBlockSize",Mj());Sr(wr,"bind2vind",rT());Sr(wr,"broadcastArray",mo());Sr(wr,"broadcastArrays",lT());Sr(wr,"broadcastScalar",yT());Sr(wr,"broadcastShapes",bi());Sr(wr,"buffer",Na());Sr(wr,"bufferCtors",no());Sr(wr,"bufferDataType",ws());Sr(wr,"bufferDataTypeEnum",bT());Sr(wr,"bytesPerElement",Ha());Sr(wr,"char2dtype",NT());Sr(wr,"clampIndex",us());Sr(wr,"ndarray",ra());Sr(wr,"data",vt());Sr(wr,"dtype",Ye());Sr(wr,"dtypeChar",af());Sr(wr,"dtypeDesc",PT());Sr(wr,"dtypeEnum2Str",cs());Sr(wr,"dtypeResolveEnum",sf());Sr(wr,"dtypeResolveStr",Ia());Sr(wr,"dtypeStr2Enum",oo());Sr(wr,"dtype2c",YT());Sr(wr,"dtypes2signatures",vf());Sr(wr,"empty",DO());Sr(wr,"emptyLike",zO());Sr(wr,"expandDimensions",GO());Sr(wr,"flag",Yu());Sr(wr,"flags",co());Sr(wr,"fliplr",f7());Sr(wr,"flipud",m7());Sr(wr,"forEach",xD());Sr(wr,"scalar2ndarray",ED());Sr(wr,"ind",ot());Sr(wr,"ind2sub",Si());Sr(wr,"iterationOrder",xa());Sr(wr,"maxViewBufferIndex",TD());Sr(wr,"maybeBroadcastArray",wf());Sr(wr,"maybeBroadcastArrays",zD());Sr(wr,"metaDataProps",LD());Sr(wr,"minViewBufferIndex",GD());Sr(wr,"minmaxViewBufferIndex",Za());Sr(wr,"ndarraylike2ndarray",JD());Sr(wr,"ndarraylike2object",Wt());Sr(wr,"ndims",Ba());Sr(wr,"nextCartesianIndex",Je());Sr(wr,"nonsingletonDimensions",tk());Sr(wr,"normalizeIndex",ca());Sr(wr,"nullary",PR());Sr(wr,"nullaryLoopOrder",Hr());Sr(wr,"nullaryBlockSize",Zr());Sr(wr,"numel",Wr());Sr(wr,"numelDimension",Af());Sr(wr,"offset",Ya());Sr(wr,"order",oa());Sr(wr,"outputPolicyEnum2Str",Us());Sr(wr,"outputPolicyResolveEnum",nB());Sr(wr,"outputPolicyResolveStr",lB());Sr(wr,"outputPolicyStr2Enum",Ms());Sr(wr,"prependSingletonDimensions",bB());Sr(wr,"removeSingletonDimensions",jB());Sr(wr,"reverse",NB());Sr(wr,"reverseDimension",Fs());Sr(wr,"serializeMetaData",FB());Sr(wr,"shape",_e());Sr(wr,"shape2strides",Be());Sr(wr,"singletonDimensions",MB());Sr(wr,"slice",pe());Sr(wr,"sliceAssign",Gs());Sr(wr,"sliceDimension",Of());Sr(wr,"sliceDimensionFrom",If());Sr(wr,"sliceDimensionTo",Nf());Sr(wr,"sliceFrom",Df());Sr(wr,"sliceTo",kf());Sr(wr,"stride",Rf());Sr(wr,"strides",ya());Sr(wr,"strides2offset",Me());Sr(wr,"strides2order",Rt());Sr(wr,"sub2ind",Bf());Sr(wr,"ndarray2array",zf());Sr(wr,"transpose",Oz());Sr(wr,"unary",gP());Sr(wr,"unaryBy",oL());Sr(wr,"unaryLoopOrder",zr());Sr(wr,"unaryOutputDataType",uL());Sr(wr,"unaryBlockSize",Br());Sr(wr,"vind2bind",ia());Sr(wr,"wrapIndex",fs());Sr(wr,"zeros",dL());Sr(wr,"zerosLike",gL());hL.exports=wr});var qL=c((o0e,xL)=>{"use strict";var VBr=se(),PBr=De(),FBr=me().isPrimitive,Eo=qt(),LBr=Da(),CBr=ie(),UBr=Ga(),MBr=xt(),GBr=$a(),$Br=st(),Ao=cr();function YBr(r,e){var a,t,o,i,n,s,v,u,f;if(!VBr(r))throw new TypeError(Ao("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!PBr(e))throw new TypeError(Ao("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.",e));if(n=e.length,o=CBr(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=[],u=0;u<n;u++)a.push(0);for(i=UBr(r),u=n-1;u>=0;u--)if(f=s-n+u,!(f<0)){if(v=o[f],t=e[u],!FBr(t))throw new TypeError(Ao("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.","["+e.join(",")+"]"));if(t!==0&&t<v)throw new Error(Ao("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.",Eo(o).join(", "),Eo(e).join(", "),u));if(v===t)a[u]=i[f];else if(v===1)a[u]=0;else throw new Error(Ao("invalid argument. Input array and the specified shape are broadcast incompatible. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Eo(o).join(", "),Eo(e).join(", "),u))}return new r.constructor(LBr(r),$Br(r),Eo(e),a,MBr(r),GBr(r),{readonly:!0})}xL.exports=YBr});var $s=c((s0e,wL)=>{"use strict";var WBr=qL();wL.exports=WBr});var AL=c((n0e,EL)=>{"use strict";var JBr=se(),KBr=ze(),XBr=bi(),HBr=$s(),ZBr=ie(),SL=cr();function QBr(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(JBr(r))t=[r];else if(KBr(r))t=r;else throw new TypeError(SL("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(ZBr(t[s]))}catch{throw new TypeError(SL("invalid argument. An ndarray argument must be an ndarray. Value: `%s`.",t[s]))}if(i=XBr(e),i===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(o=[],s=0;s<n;s++)o.push(HBr(t[s],i));return o}EL.exports=QBr});var Vf=c((v0e,_L)=>{"use strict";var rzr=AL();_L.exports=rzr});var Pf=c((u0e,jL)=>{"use strict";var ezr=ue().isPrimitive;function azr(r){return ezr(r)&&r>0}jL.exports=azr});var Ff=c((f0e,TL)=>{"use strict";var tzr=ue().isObject;function izr(r){return tzr(r)&&r.valueOf()>0}TL.exports=izr});var IL=c((l0e,OL)=>{"use strict";var ozr=Pf(),szr=Ff();function nzr(r){return ozr(r)||szr(r)}OL.exports=nzr});var Ys=c((c0e,DL)=>{"use strict";var NL=Tr(),Lf=IL(),vzr=Pf(),uzr=Ff();NL(Lf,"isPrimitive",vzr);NL(Lf,"isObject",uzr);DL.exports=Lf});var RL=c((d0e,kL)=>{"use strict";var fzr=Ho(),lzr=Fe(),czr=fzr(lzr);kL.exports=czr});var zL=c((p0e,BL)=>{"use strict";function dzr(r,e,a,t,o,i,n,s,v){var u,f,l,d;for(u=i,l=0;l<r;l++){for(f=v,d=0;d<e&&a[u+d*o]===n[f];d++)f+=s;if(d===e)return l;u+=t}return-1}BL.exports=dzr});var CL=c((y0e,LL)=>{"use strict";var VL=me().isPrimitive,pzr=Ys(),yzr=ue().isPrimitive,mzr=RL(),gzr=Fe(),PL=De(),hzr=se(),St=cr(),bzr=Da(),FL=sf(),xzr=zL();function qzr(r){var e,a;for(e=[],a=0;a<r.length;a++)e.push(FL(r[a]));return e}function wzr(r,e,a,t,o,i){var n,s,v;if(gzr(r))v=r;else if(!mzr(r))throw new TypeError(St("invalid argument. First argument must be either a function or an array of functions. Value: `%s`.",r));if(!PL(e))throw new TypeError(St("invalid argument. Second argument must be an array-like object. Value: `%s`.",e));if(!PL(a)&&a!==null)throw new TypeError(St("invalid argument. Third argument must be an array-like object or null. Value: `%s`.",a));if(!pzr(t))throw new TypeError(St("invalid argument. Fourth argument must be a positive integer. Value: `%s`.",t));if(!VL(o))throw new TypeError(St("invalid argument. Fifth argument must be a nonnegative integer. Value: `%s`.",o));if(!VL(i))throw new TypeError(St("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(v){if(s=e.length/n,!yzr(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=qzr(e),u;function u(){var f,l,d,m,p,y,g;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=[],g=0;g<t;g++){if(p=arguments[g],!hzr(p))throw g<o?new TypeError(St("invalid argument. Input array must be an ndarray-like object. Value: `%s`.",p)):new TypeError(St("invalid argument. Output array must be an ndarray-like object. Value: `%s`.",p));f.push(p),l.push(FL(bzr(p)))}if(m=xzr(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(v?y=v:y=r[m],a?y(f,a[m]):y(f),i===1)return f[n-1];if(i!==0)return f.slice(o)}}LL.exports=wzr});var ML=c((m0e,UL)=>{"use strict";var Szr=CL();UL.exports=Szr});var JL=c((g0e,WL)=>{"use strict";var Ezr=oe(),Ws=Jr(),Azr=Xo(),_zr=Be(),jzr=Me(),Tzr=go(),Ozr=Ma(),Izr=Wr(),Nzr=da(),YL=Oa(),Cf=cr(),GL=YL.get("dtypes.default"),$L=YL.get("order");function Dzr(r){var e,a,t,o,i,n,s,v,u;if(i={},arguments.length>1){if(e=arguments[1],!Ezr(e))throw new TypeError(Cf("invalid argument. Options argument must be an object. Value: `%s`.",e));Ws(e,"dtype")?a=e.dtype:a=GL,Ws(e,"order")?t=e.order:t=$L,Ws(e,"mode")&&(i.mode=e.mode),Ws(e,"submode")&&(i.submode=e.submode)}else a=GL,t=$L;if(typeof r=="number")u=[r];else if(Azr(r))u=r;else throw new TypeError(Cf("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));if(o=u.length,o>0){if(s=Izr(u),s!==s||s<0)throw new TypeError(Cf("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));v=_zr(u,t)}else s=1,v=[0];return a==="binary"?n=Ozr(s):n=Tzr(s,a),new Nzr(a,n,u,v,jzr(u,v),t,i)}WL.exports=Dzr});var XL=c((h0e,KL)=>{"use strict";var kzr=JL();KL.exports=kzr});var eC=c((b0e,rC)=>{"use strict";var Rzr=se(),Bzr=oe(),zzr=Ut().primitives,_o=Jr(),Vzr=Be(),Pzr=Me(),Fzr=Wr(),HL=Da(),ZL=ie(),QL=$a(),Lzr=da(),Czr=go(),Uzr=Ma(),Uf=cr();function Mzr(r){var e,a,t,o,i,n,s,v,u;if(!Rzr(r))throw new TypeError(Uf("invalid argument. First argument must be an ndarray-like object. Value: `%s`.",r));if(i={},arguments.length>1){if(e=arguments[1],!Bzr(e))throw new TypeError(Uf("invalid argument. Options argument must be an object. Value: `%s`.",e));if(_o(e,"dtype")?a=e.dtype:a=HL(r),_o(e,"shape")){if(u=e.shape,typeof u=="number"&&(u=[u]),!zzr(u))throw new TypeError(Uf("invalid option. `%s` option must be a nonnegative integer or an array of nonnegative integers. Option: `%s`.","shape",u))}else u=ZL(r);_o(e,"order")?t=e.order:t=QL(r),_o(e,"mode")&&(i.mode=e.mode),_o(e,"submode")&&(i.submode=e.submode)}else a=HL(r),u=ZL(r),t=QL(r);return o=u.length,o>0?(s=Fzr(u),v=Vzr(u,t)):(s=1,v=[0]),a==="binary"?n=Uzr(s):n=Czr(s,a),new Lzr(a,n,u,v,Pzr(u,v),t,i)}rC.exports=Mzr});var tC=c((x0e,aC)=>{"use strict";var Gzr=eC();aC.exports=Gzr});var oC=c((q0e,iC)=>{"use strict";var $zr=eval;iC.exports=$zr});var nC=c((w0e,sC)=>{"use strict";var Yzr=oC();function Wzr(){var r;try{Yzr('"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}sC.exports=Wzr});var uC=c((S0e,vC)=>{"use strict";var Jzr=nC();vC.exports=Jzr});var lC=c((E0e,fC)=>{"use strict";var Kzr=typeof Proxy>"u"?null:Proxy;fC.exports=Kzr});var dC=c((A0e,cC)=>{"use strict";function Xzr(r){return r}cC.exports=Xzr});var yC=c((_0e,pC)=>{"use strict";var Hzr=uC(),Zzr=lC(),Qzr=dC(),Mf;Hzr()?Mf=Zzr:Mf=Qzr;pC.exports=Mf});var gC=c((j0e,mC)=>{"use strict";var rVr=typeof String.prototype.trim<"u";mC.exports=rVr});var Gf=c((T0e,hC)=>{"use strict";var eVr=String.prototype.trim;hC.exports=eVr});var wC=c((O0e,qC)=>{"use strict";var bC=Gf(),aVr=`
|
|
2
2
|
\r
|
|
3
|
-
\f\v\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,xC="\u180E";function Bzr(){return bC.call(zzr)===""&&bC.call(xC)===xC}qC.exports=Bzr});var EC=l((i0e,SC)=>{"use strict";var Pzr=Za(),Fzr=/^[\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 Lzr(r){return Pzr(r,Fzr,"$1")}SC.exports=Lzr});var _C=l((o0e,AC)=>{"use strict";var Czr=Gf();function Uzr(r){return Czr.call(r)}AC.exports=Uzr});var St=l((s0e,jC)=>{"use strict";var Mzr=hC(),Gzr=wC(),$zr=EC(),Yzr=_C(),$f;Mzr&&Gzr()?$f=Yzr:$f=$zr;jC.exports=$f});var IC=l((n0e,OC)=>{"use strict";var Wzr=St(),Jzr=Pe(),Yf="Slice(",TC=3,Xzr=/\s*,\s*/,Kzr=/^-?[0-9]+$/;function Hzr(r){var e,a,t,o,i;if(r.substring(0,Yf.length)!==Yf||(t=r.length-1,r[t]!==")")||(r=Wzr(r.substring(Yf.length,t)),r=r.split(Xzr),r.length!==TC))return null;for(e=[],i=0;i<TC;i++){if(o=r[i],o==="null")a=null;else if(Kzr.test(o))a=parseInt(o,10);else return null;e.push(a)}return new Jzr(e[0],e[1],e[2])}OC.exports=Hzr});var Js=l((v0e,NC)=>{"use strict";var Zzr=IC();NC.exports=Zzr});var kC=l((u0e,DC)=>{"use strict";var Qzr=St(),rBr=Js(),eBr=Wa(),aBr=he(),Wf="MultiSlice(",tBr=/\s*,\s*/,iBr=/^-?[0-9]+$/;function oBr(r){var e,a,t,o,i;if(r.substring(0,Wf.length)!==Wf||(t=r.length-1,r[t]!==")"))return null;if(r=Qzr(r.substring(Wf.length,t)),r=r.split(tBr),t=r.length,t===1&&r[0]==="")return new eBr;for(e=[],i=0;i<t;i++){if(o=r[i],o[0]==="S"){if(o=r.slice(i,i+3).join(","),a=rBr(o),a===null)return null;i+=2}else if(o==="null")a=null;else if(iBr.test(o))a=parseInt(o,10);else return null;e.push(a)}return aBr(e)}DC.exports=oBr});var jo=l((f0e,RC)=>{"use strict";var sBr=kC();RC.exports=sBr});var zC=l((l0e,VC)=>{"use strict";var nBr=/(?:\s*-\s*)(?=\d+)(\d+)$/;VC.exports=nBr});var PC=l((c0e,BC)=>{"use strict";var vBr=/(?:\s*\/\s*)(?=\d*\.?\d+)(\d*\.?\d+)$/;BC.exports=vBr});var CC=l((d0e,LC)=>{"use strict";var FC=Ze(),uBr=zC(),fBr=PC();function lBr(r,e,a,t){var o;if(r==="end")return e;if(o=r.match(uBr),o){if(r=e-parseInt(o[1],10),r<0){if(t)return-2;r=0}return r}return o=r.match(fBr),o?(r=parseFloat(o[1]),r<1?t?-2:-1:a&&e>0&&r!==1?FC((e-1)/r):FC(e/r)):-1}LC.exports=lBr});var MC=l((p0e,UC)=>{"use strict";var cBr=/\s*:\s*/;UC.exports=cBr});var $C=l((y0e,GC)=>{"use strict";var dBr=/^[-+]?[0-9]+$/;GC.exports=dBr});var WC=l((m0e,YC)=>{"use strict";var pBr=/^end/;YC.exports=pBr});var XC=l((h0e,JC)=>{"use strict";function yBr(){return{code:"ERR_SLICE_INVALID_SUBSEQUENCE"}}JC.exports=yBr});var HC=l((g0e,KC)=>{"use strict";function mBr(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}KC.exports=mBr});var QC=l((b0e,ZC)=>{"use strict";function hBr(){return{code:"ERR_SLICE_INVALID_INCREMENT"}}ZC.exports=hBr});var iU=l((x0e,tU)=>{"use strict";var rU=Pe(),gBr=St(),eU=CC(),bBr=MC(),Jf=$C(),aU=WC(),ji=XC(),Wt=HC(),xBr=QC();function qBr(r,e,a){var t,o,i;if(t=gBr(r).split(bBr),o=t.length,o<2||o>3)return ji();if(o===3)if(i=t[2],i.length===0)t[2]=1;else{if(Jf.test(i)===!1)return ji();if(i=parseInt(i,10),i===0)return xBr();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(aU.test(i)){if(i=eU(i,e,t[2]<0,a),i<0)return i===-2?Wt():ji();t[2]<0&&i>=e&&(i-=1),t[0]=i}else if(Jf.test(i)){if(i=parseInt(i,10),i<0){if(i=e+i,i<0){if(a)return Wt();i=0}}else if(i>=e){if(a)return Wt();t[2]<0?i=e-1:i=e}t[0]=i}else return ji();if(i=t[1],i.length===0)t[2]<0?t[1]=null:t[1]=e;else if(aU.test(i)){if(i=eU(i,e,t[2]<0,a),i<0)return i===-2?Wt():ji();t[1]=i}else if(Jf.test(i)){if(i=parseInt(i,10),i<0){if(i=e+i,i<0)if(t[2]>0){if(a)return Wt();i=0}else{if(a&&i<-1)return Wt();i=null}}else if(i>e){if(a)return Wt();i=e}t[1]=i}else return ji();return e===0?new rU(0,0,t[2]):new rU(t[0],t[1],t[2])}tU.exports=qBr});var sU=l((q0e,oU)=>{"use strict";var wBr=iU();oU.exports=wBr});var vU=l((w0e,nU)=>{"use strict";function SBr(){return{code:"ERR_SLICE_INVALID_ELLIPSIS"}}nU.exports=SBr});var fU=l((S0e,uU)=>{"use strict";function EBr(){return{code:"ERR_SLICE_INSUFFICIENT_DIMENSIONS"}}uU.exports=EBr});var cU=l((E0e,lU)=>{"use strict";function ABr(){return{code:"ERR_SLICE_TOO_MANY_DIMENSIONS"}}lU.exports=ABr});var pU=l((A0e,dU)=>{"use strict";function _Br(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}dU.exports=_Br});var mU=l((_0e,yU)=>{"use strict";var jBr=/\s*,\s*/;yU.exports=jBr});var gU=l((j0e,hU)=>{"use strict";var TBr=/^[-+]?[0-9]+$/;hU.exports=TBr});var qU=l((T0e,xU)=>{"use strict";var OBr=St(),IBr=Pe(),NBr=he(),DBr=sU(),kBr=vU(),RBr=fU(),VBr=cU(),bU=pU(),zBr=mU(),BBr=gU();function PBr(r,e,a){var t,o,i,s,n,v,u,f,c,p;for(n=e.length,t=OBr(r).split(zBr),v=t.length,i=!1,o=[],c=0,f=0;f<v;f++){if(u=t[f],u==="..."){if(i)return kBr();for(i=!0,p=0;p<n-v+1;p++)o.push(new IBr(0,e[c],1)),c+=1;continue}if(s=e[c],BBr.test(u)){if(u=parseInt(u,10),a){if(u<0){if(s+u<0)return bU()}else if(u>=s)return bU()}c+=1}else{if(u=DBr(u,s,a),u.code)return u;c+=1}o.push(u)}return o.length!==n?o.length<n?RBr():VBr():NBr(o)}xU.exports=PBr});var Xs=l((O0e,wU)=>{"use strict";var FBr=qU();wU.exports=FBr});var Xf=l((I0e,SU)=>{"use strict";var LBr=/^-?[0-9]+$/;SU.exports=LBr});var Kf=l((N0e,EU)=>{"use strict";var CBr=/:/;EU.exports=CBr});var _U=l((D0e,AU)=>{"use strict";var UBr=St(),MBr=Za(),Hf=Wa(),GBr=jo(),$Br=Xs(),YBr=Js(),Jt=cr(),WBr=Xf(),JBr=Kf();function XBr(r,e){var a,t,o,i;if(t=UBr(e),o=t[0],o==="S"){if(i=YBr(e),i===null)throw new Error(Jt("invalid operation. Unsupported slice operation. Value: `%s`.",e));i=new Hf(i)}else if(o==="M"){if(i=GBr(t),i===null)throw new Error(Jt("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(WBr.test(t))i=parseInt(t,10),i=new Hf(i);else if(JBr.test(t)){if(a=r.shape,i=$Br(t,a,!0),i.code)throw i.code==="ERR_SLICE_INVALID_INCREMENT"?new Error(Jt("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e)):i.code==="ERR_SLICE_INVALID_ELLIPSIS"?new Error(Jt("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e)):i.code==="ERR_SLICE_INVALID_SUBSEQUENCE"?new Error(Jt("invalid operation. Unsupported slice operation. Value: `%s`.",e)):new RangeError(Jt("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",a.join(","),MBr(t,/\.\.\.,/,"").split(",").length))}else if(t.length===0||t==="...")i=new Hf;else throw new Error(Jt("invalid operation. Unsupported slice operation. Value: `%s`.",e));return i}AU.exports=XBr});var IU=l((k0e,OU)=>{"use strict";var KBr=St(),HBr=Za(),jU=Wa(),ZBr=jo(),TU=Xs(),QBr=Js(),Et=cr(),rPr=Xf();function ePr(r,e,a){var t,o,i,s;if(o=KBr(e),i=o[0],i==="S"){if(s=QBr(e),s===null)throw new Error(Et("invalid operation. Unsupported slice operation. Value: `%s`.",e));s=new jU(s)}else if(i==="M"){if(s=ZBr(o),s===null)throw new Error(Et("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(rPr.test(o))s=parseInt(o,10),s=new jU(s);else if(o.length>0){if(t=r.shape,s=TU(o,t,!0),s.code){if(s.code==="ERR_SLICE_INVALID_INCREMENT")throw new Error(Et("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e));if(s.code==="ERR_SLICE_INVALID_ELLIPSIS")throw new Error(Et("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e));if(s.code==="ERR_SLICE_INVALID_SUBSEQUENCE")throw new Error(Et("invalid operation. Unsupported slice operation. Value: `%s`.",e));if(s.code==="ERR_SLICE_TOO_MANY_DIMENSIONS")throw new RangeError(Et("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",r.shape.join(","),HBr(o,/\.\.\.,/,"").split(",").length));if(s.code==="ERR_SLICE_OUT_OF_BOUNDS"){if(a)throw new RangeError(Et("invalid operation. Slice exceeds array bounds. Array shape: (%s).",t.join(",")));s=TU(o,t,!1)}}}else throw new RangeError(Et("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 s}OU.exports=ePr});var DU=l((R0e,NU)=>{"use strict";var Ks=Za(),aPr=jo();function tPr(r){return r=Ks(r,/^,/,"null,"),r=Ks(r,/,$/,",null"),r=Ks(r,/,(?=,)/g,",null"),r=Ks(r,/undefined/g,"null"),aPr("MultiSlice("+r+")")}NU.exports=tPr});var RU=l((V0e,kU)=>{"use strict";var iPr=DU();kU.exports=iPr});var BU=l((z0e,zU)=>{"use strict";var oPr=St(),sPr=jo(),VU=Xs(),nPr=RU(),Ti=cr(),vPr=Kf();function uPr(r,e,a){var t,o,i,s;if(o=oPr(e),i=o[0],i==="M"){if(s=sPr(o),s===null)throw new Error(Ti("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(vPr.test(o)||o==="..."){if(t=r.shape,s=VU(o,t,!0),s.code){if(s.code==="ERR_SLICE_INVALID_INCREMENT")throw new Error(Ti("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e));if(s.code==="ERR_SLICE_INVALID_ELLIPSIS")throw new Error(Ti("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e));if(s.code==="ERR_SLICE_INVALID_SUBSEQUENCE")throw new Error(Ti("invalid operation. Unsupported slice operation. Value: `%s`.",e));if(s.code==="ERR_SLICE_OUT_OF_BOUNDS"){if(a)throw new RangeError(Ti("invalid operation. Slice exceeds array bounds. Array shape: (%s).",t.join(",")));s=VU(o,t,!1)}}}else if(s=nPr(o),s===null)throw new Error(Ti("invalid operation. Unsupported slice operation. Value: `%s`.",e));return s}zU.exports=uPr});var FU=l((B0e,PU)=>{"use strict";var fPr=typeof Object.getOwnPropertyNames<"u";PU.exports=fPr});var UU=l((P0e,CU)=>{"use strict";var LU=Nt(),lPr=LU.getOwnPropertyNames;function cPr(r){return lPr(LU(r))}CU.exports=cPr});var GU=l((F0e,MU)=>{"use strict";var dPr=Nt(),pPr=xa();function yPr(r){return pPr(dPr(r))}MU.exports=yPr});var YU=l((L0e,$U)=>{"use strict";var mPr=FU(),hPr=UU(),gPr=GU(),Zf;mPr?Zf=hPr:Zf=gPr;$U.exports=Zf});var XU=l((C0e,JU)=>{"use strict";var bPr=Gu(),xPr=YU(),qPr=Dt(),wPr=Nt();function WU(r,e){var a;for(a=0;a<r.length;a++)if(r[a]===e)return!0;return!1}function SPr(r){var e,a,t,o;if(r==null)return[];a=wPr(r),e=[];do{for(t=xPr(a),o=0;o<t.length;o++)WU(e,t[o])===!1&&e.push(t[o]);for(t=bPr(a),o=0;o<t.length;o++)WU(e,t[o])===!1&&e.push(t[o]);a=qPr(a)}while(a);return e}JU.exports=SPr});var HU=l((U0e,KU)=>{"use strict";var EPr=XU();KU.exports=EPr});var Qf=l((M0e,ZU)=>{"use strict";var APr=HU(),_Pr=Be().factory,jPr=da(),TPr=Ta(),OPr=_Pr(APr(new jPr("generic",[0],[],[0],0,TPr.get("order"))));ZU.exports=OPr});var rM=l((G0e,QU)=>{"use strict";var IPr=Fe();function NPr(r,e,a){var t=r[e];if(IPr(t))return o;return t;function o(){var i,s;for(i=[],s=0;s<arguments.length;s++)i.push(arguments[s]);return t.apply(this===a?r:this,i)}}QU.exports=NPr});var rl=l(($0e,eM)=>{"use strict";var DPr=Za();function kPr(r){return DPr(r,/^invalid argument/,"invalid operation")}eM.exports=kPr});var tM=l((Y0e,aM)=>{"use strict";var RPr=Dt(),VPr=ye();function zPr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof Error)return!0;for(;r;){if(VPr(r)==="[object Error]")return!0;r=RPr(r)}return!1}aM.exports=zPr});var Xt=l((W0e,iM)=>{"use strict";var BPr=tM();iM.exports=BPr});var sM=l((J0e,oM)=>{"use strict";var PPr=Dt(),FPr=ei(),LPr=Xt();function CPr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof RangeError)return!0;if(LPr(r))for(;r;){if(FPr(r)==="rangeerror")return!0;r=PPr(r)}return!1}oM.exports=CPr});var vM=l((X0e,nM)=>{"use strict";var UPr=sM();nM.exports=UPr});var fM=l((K0e,uM)=>{"use strict";var MPr=Dt(),GPr=ei(),$Pr=Xt();function YPr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof TypeError)return!0;if($Pr(r))for(;r;){if(GPr(r)==="typeerror")return!0;r=MPr(r)}return!1}uM.exports=YPr});var cM=l((H0e,lM)=>{"use strict";var WPr=fM();lM.exports=WPr});var pM=l((Z0e,dM)=>{"use strict";var JPr=Dt(),XPr=ei(),KPr=Xt();function HPr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof SyntaxError)return!0;if(KPr(r))for(;r;){if(XPr(r)==="syntaxerror")return!0;r=JPr(r)}return!1}dM.exports=HPr});var mM=l((Q0e,yM)=>{"use strict";var ZPr=pM();yM.exports=ZPr});var el=l((rpe,hM)=>{"use strict";var QPr=vM(),rFr=cM(),eFr=mM();function aFr(r){return QPr(r)?RangeError:rFr(r)?TypeError:eFr(r)?SyntaxError:Error}hM.exports=aFr});var bM=l((epe,gM)=>{"use strict";var tFr=pe(),iFr=rl(),oFr=el();function sFr(r,e,a,t){var o,i,s;o=!1,s=t(r,e,o);try{return tFr(a,s,o,!1)}catch(n){throw i=oFr(n),new i(iFr(n.message))}}gM.exports=sFr});var qM=l((ape,xM)=>{"use strict";var nFr=Qf(),vFr=rM(),uFr=bM();function fFr(r){return e;function e(a,t,o){return nFr(t)?vFr(a,t,o):uFr(a,t,o,r)}}xM.exports=fFr});var SM=l((tpe,wM)=>{"use strict";function lFr(r,e,a){return r[e]=a,!0}wM.exports=lFr});var AM=l((ipe,EM)=>{"use strict";var cFr=Mo();function dFr(r){return r===0&&1/r===cFr}EM.exports=dFr});var jM=l((ope,_M)=>{"use strict";var pFr=AM();_M.exports=pFr});var OM=l((spe,TM)=>{"use strict";var yFr=1401298464324817e-60;TM.exports=yFr});var NM=l((npe,IM)=>{"use strict";var mFr=16777215;IM.exports=mFr});var kM=l((vpe,DM)=>{"use strict";var hFr=-16777215;DM.exports=hFr});var FM=l((upe,PM)=>{"use strict";var gFr=Ue().isPrimitive,bFr=de().isPrimitive,VM=ga(),xFr=jM(),qFr=na(),zM=Fi(),BM=Mo(),Hs=OM(),wFr=NM(),SFr=kM(),EFr=ru(),AFr=Kv(),_Fr=Wv(),jFr=fv(),TFr=dv(),OFr=Yo();function RM(r){return r!==r||r===zM||r===BM?"float32":VM(r)?r>=SFr&&r<=wFr?"float32":"float64":r>-Hs&&r<Hs?"float64":"float32"}function IFr(r){return gFr(r)?r!==r||r===zM||r===BM?"float32":VM(r)?r===0&&xFr(r)?"float32":r<0?r>=EFr?"int8":r>=AFr?"int16":r>=_Fr?"int32":"float64":r<=jFr?"uint8":r<=TFr?"uint16":r<=OFr?"uint32":"float64":r>-Hs&&r<Hs?"float64":"float32":bFr(r)?"bool":qFr(r)?RM(r.re)==="float64"||RM(r.im)==="float64"?"complex128":"complex64":"generic"}PM.exports=IFr});var al=l((fpe,LM)=>{"use strict";var NFr=FM();LM.exports=NFr});var UM=l((lpe,CM)=>{"use strict";var DFr={Complex64:"complex64",Complex128:"complex128"};CM.exports=DFr});var MM=l((cpe,kFr)=>{kFr.exports=["complex64","complex128"]});var $M=l((dpe,GM)=>{"use strict";var RFr=MM();function VFr(){return RFr.slice()}GM.exports=VFr});var WM=l((ppe,YM)=>{"use strict";var zFr=$M();YM.exports=zFr});var tl=l((ype,JM)=>{"use strict";var BFr=WM(),PFr=BFr();JM.exports=PFr});var ZM=l((mpe,HM)=>{"use strict";var FFr=_s(),XM=tl(),KM=[],Zs;for(Zs=0;Zs<XM.length;Zs++)KM.push(FFr(XM[Zs]));HM.exports=KM});var e9=l((hpe,r9)=>{"use strict";var LFr=pt(),CFr=UM(),UFr=ZM(),QM=tl(),MFr=QM.length;function GFr(r){var e;for(e=0;e<MFr;e++)if(r instanceof UFr[e])return QM[e];return CFr[LFr(r)]||null}r9.exports=GFr});var il=l((gpe,a9)=>{"use strict";var $Fr=e9();a9.exports=$Fr});var t9=l((bpe,YFr)=>{YFr.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 n9=l((xpe,s9)=>{"use strict";var WFr=Za(),i9=t9(),o9=/_and_generic$/;function JFr(){var r,e,a;return arguments.length===0?i9.all.slice():(a=!1,r=arguments[0],o9.test(r)&&(r=WFr(r,o9,""),r!=="all"&&(a=!0)),e=i9[r],e=e?e.slice():[],a&&e.length>0&&e.push("generic"),e)}s9.exports=JFr});var ol=l((qpe,v9)=>{"use strict";var XFr=n9();v9.exports=XFr});var f9=l((wpe,u9)=>{"use strict";var KFr=Be().factory,HFr=ol(),ZFr=KFr(HFr("complex_floating_point"));u9.exports=ZFr});var Qs=l((Spe,l9)=>{"use strict";var QFr=f9();l9.exports=QFr});var p9=l((Epe,d9)=>{"use strict";var sl=Jr(),rLr=oe(),eLr=Ue().isPrimitive,aLr=Qs(),tLr=na(),iLr=de().isPrimitive,oLr=rt(),sLr=hi(),nLr=mi(),vLr=Ia(),uLr=da(),rn=Ta(),fLr=il(),c9=cr(),lLr=rn.get("order"),cLr=rn.get("dtypes.real_floating_point"),dLr=rn.get("dtypes.complex_floating_point"),pLr=rn.get("dtypes.boolean");function yLr(r){var e,a,t,o,i,s,n;if(a={dtype:"",order:lLr,readonly:!1},arguments.length>1){if(e=arguments[1],!rLr(e))throw new TypeError(c9("invalid argument. Options argument must be an object. Value: `%s`.",e));sl(e,"dtype")&&(a.dtype=e.dtype),sl(e,"order")&&(a.order=e.order),sl(e,"readonly")&&(a.readonly=e.readonly)}if(o=eLr(r),a.dtype===""?o?s=cLr:iLr(r)?s=pLr:tLr(r)?(s=fLr(r),s===null&&(s=dLr)):s="generic":s=a.dtype,t=vLr(s,1),t===null)throw new TypeError(c9("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",s));return aLr(s)&&o?n=[r,0]:n=r,oLr(t)?i=sLr(s):i=nLr(s),i(t,0,n),new uLr(s,t,[],[0],0,a.order,a)}d9.exports=yLr});var nl=l((Ape,y9)=>{"use strict";var mLr=p9();y9.exports=mLr});var g9=l((_pe,h9)=>{"use strict";var hLr=Gs(),gLr=se(),bLr=Ue().isPrimitive,xLr=ve().isPrimitive,qLr=na(),wLr=lo(),SLr=Os(),ELr=ks(),ALr=Ds(),m9=ys(),_Lr=Qv(),jLr=Xv(),TLr=Yv(),en=al(),OLr=il(),Oi=nl(),Kt=cr(),ILr=rl(),NLr=el();function Ii(r){return{dtype:r}}function DLr(r,e,a,t,o){var i,s,n,v,u;if(!gLr(a))if(n=r.dtype,n==="generic")a=Oi(a,Ii(n));else if(bLr(a))if(SLr(n))a=Oi(a,Ii(n));else if(ELr(n))if(s=en(a),m9(s,n))a=Oi(a,Ii(n));else throw new TypeError(Kt("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",s,n));else if(ALr(n)){if(!xLr(a))throw new TypeError(Kt("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",en(a),n));if(a<0?s=en(a):a<=_Lr?s="int8":a<=jLr?s="int16":a<=TLr?s="int32":s="float64",m9(s,n))a=Oi(a,Ii(n));else throw new TypeError(Kt("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",s,n))}else if(n==="binary")if(s=en(a),s==="uint8")a=Oi(a,Ii(n));else throw new TypeError(Kt("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",s,n));else throw new TypeError(Kt("invalid operation. Unsupported target array data type. Data type: `%s`.",n));else if(qLr(a)){if(!wLr(n))throw new TypeError(Kt("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",OLr(a),n));a=Oi(a,Ii(n))}else throw new TypeError(Kt("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",typeof a,n));i=!1,u=o(r,e,i);try{return hLr(a,t,u,i),!0}catch(f){throw v=NLr(f),new v(ILr(f.message))}}h9.exports=DLr});var x9=l((jpe,b9)=>{"use strict";var kLr=Qf(),RLr=SM(),VLr=g9();function zLr(r){return e;function e(a,t,o,i){return kLr(t)?RLr(a,t,o):VLr(a,t,o,i,r)}}b9.exports=zLr});var j9=l((Tpe,_9)=>{"use strict";var BLr=Tr(),w9=da(),PLr=gu(),q9=yC(),S9=_U(),E9=IU(),A9=BU(),vl=qM(),ul=x9(),FLr=vl(S9),LLr=ul(S9),CLr=vl(E9),ULr=ul(E9),MLr=vl(A9),GLr=ul(A9);function Ni(r,e,a,t,o,i,s){var n,v,u;return v=arguments.length,this instanceof Ni?(w9.call(this,r,e,a,t,o,i,v<7?{}:s),q9?(u=a.length,n={},u===0?(n.get=FLr,n.set=LLr):u===1?(n.get=CLr,n.set=ULr):(n.get=MLr,n.set=GLr),new q9(this,n)):(console.warn("WARNING: Proxy objects are not supported in the current environment. Some `FancyArray` functionality may not be available."),this)):v<7?new Ni(r,e,a,t,o,i):new Ni(r,e,a,t,o,i,s)}PLr(Ni,w9);BLr(Ni,"name","ndarray");_9.exports=Ni});var O9=l((Ope,T9)=>{"use strict";var $Lr=j9();T9.exports=$Lr});var fl=l((Ipe,I9)=>{"use strict";function YLr(r){return typeof r=="symbol"}I9.exports=YLr});var D9=l((Npe,N9)=>{"use strict";function WLr(r){return Symbol.prototype.toString.call(r)}N9.exports=WLr});var R9=l((Dpe,k9)=>{"use strict";var JLr=D9(),XLr=/^Symbol\(.*\)$/;function KLr(r){try{return typeof r.valueOf()=="symbol"&&XLr.test(JLr(r))}catch{return!1}}k9.exports=KLr});var ll=l((kpe,V9)=>{"use strict";var HLr=ye(),ZLr=R9();function QLr(r){return typeof r=="object"&&HLr(r)==="[object Symbol]"&&ZLr(r)}V9.exports=QLr});var B9=l((Rpe,z9)=>{"use strict";var rCr=fl(),eCr=ll();function aCr(r){return rCr(r)||eCr(r)}z9.exports=aCr});var L9=l((Vpe,F9)=>{"use strict";var P9=Tr(),cl=B9(),tCr=fl(),iCr=ll();P9(cl,"isPrimitive",tCr);P9(cl,"isObject",iCr);F9.exports=cl});var U9=l((zpe,C9)=>{"use strict";function oCr(r){return e;function e(){return r}}C9.exports=oCr});var G9=l((Bpe,M9)=>{"use strict";var sCr=U9();M9.exports=sCr});var W9=l((Ppe,Y9)=>{"use strict";var $9=Tr(),dl=G9(),pl=dl(!1),nCr=dl(!1),vCr=dl(!1);$9(pl,"isPrimitive",nCr);$9(pl,"isObject",vCr);Y9.exports=pl});var X9=l((Fpe,J9)=>{"use strict";var uCr=Nn(),fCr=L9(),lCr=W9(),yl;uCr()?yl=fCr:yl=lCr;J9.exports=yl});var H9=l((Lpe,K9)=>{"use strict";var cCr=za().isPrimitive,dCr=X9().isPrimitive,pCr=me().isPrimitive;function yCr(r){return cCr(r)||dCr(r)||pCr(r)}K9.exports=yCr});var Q9=l((Cpe,Z9)=>{"use strict";var mCr=H9();Z9.exports=mCr});var aG=l((Upe,eG)=>{"use strict";var hCr=Q9(),gCr=co(),rG=cr();function bCr(r,e){if(typeof r!="object"||r===null)throw new TypeError(rG("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!hCr(e))throw new TypeError(rG("invalid argument. Second argument must be a valid property name. Value: `%s`.",e));return gCr(r,!1)[e]}eG.exports=bCr});var iG=l((Mpe,tG)=>{"use strict";var xCr=aG();tG.exports=xCr});var sG=l((Gpe,oG)=>{"use strict";var qCr=co(),wCr=cr();function SCr(r){if(typeof r!="object"||r===null)throw new TypeError(wCr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return qCr(r,!0)}oG.exports=SCr});var vG=l(($pe,nG)=>{"use strict";var ECr=sG();nG.exports=ECr});var ml=l((Ype,ACr)=>{ACr.exports={mode:"throw",order:"row-major"}});var gl=l((Wpe,fG)=>{"use strict";var _Cr=oe(),uG=Jr(),jCr=wa(),TCr=pi(),hl=cr();function OCr(r,e){return _Cr(e)?uG(e,"mode")&&(r.mode=e.mode,!TCr(r.mode))?new TypeError(hl("invalid option. `%s` option must be a supported/recognized mode. Option: `%s`.","mode",r.mode)):uG(e,"order")&&(r.order=e.order,!jCr(r.order))?new TypeError(hl("invalid option. `%s` option must be a supported/recognized order. Option: `%s`.","order",r.order)):null:new TypeError(hl("invalid argument. Options argument must be an object. Value: `%s`.",e))}fG.exports=OCr});var pG=l((Jpe,dG)=>{"use strict";var ICr=Ct().primitives,NCr=ve().isPrimitive,DCr=Ve(),kCr=Si(),lG=cr(),cG=ml(),RCr=gl();function VCr(r,e,a){var t,o;if(t={},t.mode=cG.mode,t.order=cG.order,arguments.length>2&&(o=RCr(t,a),o))throw o;if(!ICr(r))throw new TypeError(lG("invalid argument. Shape argument must be an array-like object containing nonnegative integers. Value: `%s`.",r));if(!NCr(e))throw new TypeError(lG("invalid argument. Linear index must be integer valued. Value: `%s`.",e));return kCr(r,DCr(r,t.order),0,t.order,e,t.mode)}dG.exports=VCr});var hG=l((Xpe,mG)=>{"use strict";var zCr=Ct().primitives,BCr=ve().isPrimitive,PCr=Ve(),FCr=Si().assign,an=cr(),yG=ml(),LCr=gl();function CCr(r,e,a,t){var o,i,s;if(o={},o.mode=yG.mode,o.order=yG.order,arguments.length===4){if(s=LCr(o,arguments[2]),s)throw s;if(typeof t!="object"||t===null)throw new TypeError(an("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(an("invalid argument. Output argument must be either an array, typed array, or object. Value: `%s`.",i));if(!zCr(r))throw new TypeError(an("invalid argument. Shape argument must be an array-like object containing nonnegative integers. Value: `%s`.",r));if(!BCr(e))throw new TypeError(an("invalid argument. Linear index must be integer valued. Value: `%s`.",e));return FCr(r,PCr(r,o.order),0,o.order,e,o.mode,i)}mG.exports=CCr});var xG=l((Kpe,bG)=>{"use strict";var UCr=Tr(),gG=pG(),MCr=hG();UCr(gG,"assign",MCr);bG.exports=gG});var EG=l((Hpe,SG)=>{"use strict";var bl=Tr(),GCr=oe(),$Cr=de().isPrimitive,YCr=se(),WCr=Le(),JCr=Jr(),qG=ke(),XCr=xe(),KCr=ie(),HCr=Wr(),ZCr=pe(),QCr=Je().assign,rUr=he(),tn=cr();function wG(r){var e,a,t,o,i,s,n,v,u,f,c;if(!YCr(r))throw new TypeError(tn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!GCr(e))throw new TypeError(tn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(JCr(e,"readonly")){if(!$Cr(e.readonly))throw new TypeError(tn("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&WCr(r))throw new Error(tn("invalid option. Cannot write to read-only array."))}}if(a=KCr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=HCr(a),f===0&&(s=!0),f/=a[t-2],v=t-1,u=a[v],c=-1,n=XCr(t),n[t-2]=null,i={},bl(i,"next",p),bl(i,"return",m),qG&&bl(i,qG,d),i;function p(){var y,h,g;return c+=1,s||c>=f?{done:!0}:(y=n.slice(),h=rUr(n),g=(n[v]+1)%u,n[v]=g,g===0&&(n=QCr(a,"row-major",n,v-2,n)),{value:[y,ZCr(r,h,!0,o.writable)],done:!1})}function m(y){return s=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return wG(r,o)}}SG.exports=wG});var _G=l((Zpe,AG)=>{"use strict";var eUr=EG();AG.exports=eUr});var IG=l((Qpe,OG)=>{"use strict";var xl=Tr(),aUr=oe(),tUr=de().isPrimitive,iUr=se(),oUr=Le(),sUr=Jr(),jG=ke(),nUr=xe(),vUr=ie(),uUr=Wr(),fUr=pe(),lUr=Je().assign,cUr=he(),on=cr();function TG(r){var e,a,t,o,i,s,n,v,u,f,c;if(!iUr(r))throw new TypeError(on("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!aUr(e))throw new TypeError(on("invalid argument. Options argument must be an object. Value: `%s`.",e));if(sUr(e,"readonly")){if(!tUr(e.readonly))throw new TypeError(on("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&oUr(r))throw new Error(on("invalid option. Cannot write to read-only array."))}}if(a=vUr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=uUr(a),f===0&&(s=!0),f/=a[t-2],v=t-1,u=a[v],c=-1,n=nUr(t),n[t-2]=null,i={},xl(i,"next",p),xl(i,"return",m),jG&&xl(i,jG,d),i;function p(){var y,h;return c+=1,s||c>=f?{done:!0}:(y=cUr(n),h=(n[v]+1)%u,n[v]=h,h===0&&(n=lUr(a,"row-major",n,v-2,n)),{value:fUr(r,y,!0,o.writable),done:!1})}function m(y){return s=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return TG(r,o)}}OG.exports=TG});var DG=l((rye,NG)=>{"use strict";var dUr=IG();NG.exports=dUr});var zG=l((eye,VG)=>{"use strict";var ql=Tr(),pUr=oe(),yUr=wa(),mUr=se(),hUr=Jr(),kG=ke(),gUr=xe(),bUr=ie(),xUr=Wr(),qUr=Je().assign,wl=cr();function RG(r){var e,a,t,o,i,s,n,v,u,f;if(!mUr(r))throw new TypeError(wl("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={order:r.order},arguments.length>1){if(e=arguments[1],!pUr(e))throw new TypeError(wl("invalid argument. Options argument must be an object. Value: `%s`.",e));if(hUr(e,"order")){if(!yUr(e.order))throw new TypeError(wl("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));o.order=e.order}}return a=bUr(r),t=a.length,u=xUr(a),u===0&&(s=!0),o.order==="row-major"?v=t-1:v=0,f=-1,n=gUr(t),i={},ql(i,"next",c),ql(i,"return",p),kG&&ql(i,kG,m),i;function c(){return f+=1,s||f>=u?{done:!0}:(f>0&&(n=qUr(a,o.order,n,v,n)),{value:[n.slice(),r.get.apply(r,n)],done:!1})}function p(d){return s=!0,arguments.length?{value:d,done:!0}:{done:!0}}function m(){return RG(r,o)}}VG.exports=RG});var PG=l((aye,BG)=>{"use strict";var wUr=zG();BG.exports=wUr});var UG=l((tye,CG)=>{"use strict";var Sl=Tr(),SUr=oe(),EUr=wa(),AUr=Ne(),_Ur=me().isPrimitive,jUr=Jr(),FG=ke(),TUr=xe(),OUr=Wr(),IUr=Je().assign,sn=cr();function LG(r){var e,a,t,o,i,s,n,v,u,f;if(!AUr(r))throw new TypeError(sn("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],!SUr(e))throw new TypeError(sn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(jUr(e,"order")){if(!EUr(e.order))throw new TypeError(sn("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));t.order=e.order}}for(a=r.length,v=[],f=0;f<a;f++){if(!_Ur(r[f]))throw new TypeError(sn("invalid argument. First argument must be an array of nonnegative integers. Value: `%s`.",r));v.push(r[f])}return u=OUr(v),u===0&&(i=!0),t.order==="row-major"?n=a-1:n=0,f=-1,s=TUr(a),o={},Sl(o,"next",c),Sl(o,"return",p),FG&&Sl(o,FG,m),o;function c(){return f+=1,i||f>=u?{done:!0}:(f>0&&(s=IUr(r,t.order,s,n,s)),{value:s.slice(),done:!1})}function p(d){return i=!0,arguments.length?{value:d,done:!0}:{done:!0}}function m(){return LG(v,t)}}CG.exports=LG});var GG=l((iye,MG)=>{"use strict";var NUr=UG();MG.exports=NUr});var WG=l((oye,YG)=>{"use strict";var DUr=se(),kUr=Ne(),RUr=me().isPrimitive,$G=$s(),VUr=ie(),El=cr();function zUr(r,e){var a,t,o,i;if(!DUr(r))throw new TypeError(El("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!kUr(e))throw new TypeError(El("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.",e));if(t=e.length,a=VUr(r),a.length===t){for(i=0;i<t;i++){if(o=e[i],!RUr(o))throw new TypeError(El("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.","["+e.join(",")+"]"));if(a[i]!==o)return $G(r,e)}return r}return $G(r,e)}YG.exports=zUr});var Al=l((sye,JG)=>{"use strict";var BUr=WG();JG.exports=BUr});var HG=l((nye,KG)=>{"use strict";var PUr=se(),FUr=ze(),LUr=bi(),CUr=Al(),UUr=ie(),XG=cr();function MUr(r){var e,a,t,o,i,s,n;if(a=arguments.length,a===0)t=[];else if(a>1)for(t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);else if(PUr(r))t=[r];else if(FUr(r))t=r;else throw new TypeError(XG("invalid argument. First argument must be either an ndarray or an array of ndarrays. Value: `%s`.",r));for(s=t.length,e=[],n=0;n<s;n++)try{e.push(UUr(t[n]))}catch{throw new TypeError(XG("invalid argument. An ndarray argument must be an ndarray. Value: `%s`.",t[n]))}if(i=LUr(e),i===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(o=[],n=0;n<s;n++)o.push(CUr(t[n],i));return o}KG.exports=MUr});var _l=l((vye,ZG)=>{"use strict";var GUr=HG();ZG.exports=GUr});var a$=l((uye,e$)=>{"use strict";var jl=Tr(),$Ur=ze(),YUr=Ys().isPrimitive,QG=ke(),WUr=xe(),JUr=ie(),XUr=Wr(),KUr=pe(),HUr=_l(),ZUr=Je().assign,QUr=he(),nn=cr();function r$(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y;if(!$Ur(r))throw new TypeError(nn("invalid argument. First argument must be an array of ndarrays. Value: `%s`.",r));if(!YUr(e))throw new TypeError(nn("invalid argument. Second argument must be a positive integer. Value: `%s`.",e));try{o=HUr(r)}catch{throw new TypeError(nn("invalid argument. First argument must be an array of ndarrays which are broadcast-compatible. Value: `%s`.",r))}if(p=o.length,a=JUr(o[0]),f=a.length,f<=e)throw new TypeError(nn("invalid argument. First argument must be an array of ndarrays having at least %d dimensions after broadcasting.",e+1));for(c=XUr(a),c===0&&(i=!0),n=f-e-1,m=n+1;m<f;m++)c/=a[m];for(c*=p,u=a[n],s=[],m=0;m<p;m++){for(v=WUr(f),d=n+1;d<f;d++)v[d]=null;s.push(v)}return m=-1,y=-1,t={},jl(t,"next",h),jl(t,"return",g),QG&&jl(t,QG,x),t;function h(){var S,w,A;return m+=1,i||m>=c?{done:!0}:(y=(y+1)%p,S=s[y],w=QUr(S),A=(S[n]+1)%u,S[n]=A,A===0&&(S=ZUr(a,"row-major",S,n-1,S)),{value:KUr(o[y],w,!0,!1),done:!1})}function g(S){return i=!0,arguments.length?{value:S,done:!0}:{done:!0}}function x(){return r$(r,e)}}e$.exports=r$});var i$=l((fye,t$)=>{"use strict";var rMr=a$();t$.exports=rMr});var v$=l((lye,n$)=>{"use strict";var Tl=Tr(),eMr=oe(),aMr=de().isPrimitive,tMr=se(),iMr=Le(),oMr=Jr(),o$=ke(),sMr=xe(),nMr=ie(),vMr=Wr(),uMr=pe(),fMr=Je().assign,lMr=he(),vn=cr();function s$(r){var e,a,t,o,i,s,n,v,u,f,c;if(!tMr(r))throw new TypeError(vn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!eMr(e))throw new TypeError(vn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(oMr(e,"readonly")){if(!aMr(e.readonly))throw new TypeError(vn("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&iMr(r))throw new Error(vn("invalid option. Cannot write to read-only array."))}}if(a=nMr(r),t=a.length,t<3)throw new TypeError("invalid argument. First argument must be an ndarray having at least three dimensions.");return f=vMr(a),f===0&&(s=!0),f/=a[t-1]*a[t-2],v=t-3,u=a[v],c=-1,n=sMr(t),n[t-1]=null,n[t-2]=null,i={},Tl(i,"next",p),Tl(i,"return",m),o$&&Tl(i,o$,d),i;function p(){var y,h;return c+=1,s||c>=f?{done:!0}:(y=lMr(n),h=(n[v]+1)%u,n[v]=h,h===0&&(n=fMr(a,"row-major",n,v-1,n)),{value:uMr(r,y,!0,o.writable),done:!1})}function m(y){return s=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return s$(r,o)}}n$.exports=s$});var f$=l((cye,u$)=>{"use strict";var cMr=v$();u$.exports=cMr});var p$=l((dye,d$)=>{"use strict";var Ol=Tr(),dMr=oe(),pMr=de().isPrimitive,yMr=se(),mMr=Le(),hMr=Jr(),l$=ke(),gMr=xe(),bMr=ie(),xMr=Wr(),qMr=pe(),wMr=Je().assign,SMr=he(),un=cr();function c$(r){var e,a,t,o,i,s,n,v,u,f,c;if(!yMr(r))throw new TypeError(un("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(un("invalid argument. Options argument must be an object. Value: `%s`.",e));if(hMr(e,"readonly")){if(!pMr(e.readonly))throw new TypeError(un("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(un("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=xMr(a),f===0&&(s=!0),f/=a[t-1]*a[t-2],v=t-3,u=a[v],c=-1,n=gMr(t),n[t-1]=null,n[t-2]=null,i={},Ol(i,"next",p),Ol(i,"return",m),l$&&Ol(i,l$,d),i;function p(){var y,h,g;return c+=1,s||c>=f?{done:!0}:(y=n.slice(),h=SMr(n),g=(n[v]+1)%u,n[v]=g,g===0&&(n=wMr(a,"row-major",n,v-1,n)),{value:[y,qMr(r,h,!0,o.writable)],done:!1})}function m(y){return s=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return c$(r,o)}}d$.exports=c$});var m$=l((pye,y$)=>{"use strict";var EMr=p$();y$.exports=EMr});var x$=l((yye,b$)=>{"use strict";var Il=Tr(),AMr=oe(),_Mr=de().isPrimitive,jMr=se(),TMr=Le(),OMr=Jr(),h$=ke(),IMr=xe(),NMr=ie(),DMr=Wr(),kMr=pe(),RMr=Je().assign,VMr=he(),fn=cr();function g$(r){var e,a,t,o,i,s,n,v,u,f,c;if(!jMr(r))throw new TypeError(fn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!AMr(e))throw new TypeError(fn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(OMr(e,"readonly")){if(!_Mr(e.readonly))throw new TypeError(fn("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&TMr(r))throw new Error(fn("invalid option. Cannot write to read-only array."))}}if(a=NMr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=DMr(a),f===0&&(s=!0),f/=a[t-1],v=t-2,u=a[v],c=-1,n=IMr(t),n[t-1]=null,i={},Il(i,"next",p),Il(i,"return",m),h$&&Il(i,h$,d),i;function p(){var y,h,g;return c+=1,s||c>=f?{done:!0}:(y=n.slice(),h=VMr(n),g=(n[v]+1)%u,n[v]=g,g===0&&(n=RMr(a,"row-major",n,v-1,n)),{value:[y,kMr(r,h,!0,o.writable)],done:!1})}function m(y){return s=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return g$(r,o)}}b$.exports=g$});var w$=l((mye,q$)=>{"use strict";var zMr=x$();q$.exports=zMr});var _$=l((hye,A$)=>{"use strict";var Nl=Tr(),BMr=oe(),PMr=de().isPrimitive,FMr=se(),LMr=Le(),CMr=Jr(),S$=ke(),UMr=xe(),MMr=ie(),GMr=Wr(),$Mr=pe(),YMr=Je().assign,WMr=he(),ln=cr();function E$(r){var e,a,t,o,i,s,n,v,u,f,c;if(!FMr(r))throw new TypeError(ln("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!BMr(e))throw new TypeError(ln("invalid argument. Options argument must be an object. Value: `%s`.",e));if(CMr(e,"readonly")){if(!PMr(e.readonly))throw new TypeError(ln("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(ln("invalid option. Cannot write to read-only array."))}}if(a=MMr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=GMr(a),f===0&&(s=!0),f/=a[t-1],v=t-2,u=a[v],c=-1,n=UMr(t),n[t-1]=null,i={},Nl(i,"next",p),Nl(i,"return",m),S$&&Nl(i,S$,d),i;function p(){var y,h;return c+=1,s||c>=f?{done:!0}:(y=WMr(n),h=(n[v]+1)%u,n[v]=h,h===0&&(n=YMr(a,"row-major",n,v-1,n)),{value:$Mr(r,y,!0,o.writable),done:!1})}function m(y){return s=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return E$(r,o)}}A$.exports=E$});var T$=l((gye,j$)=>{"use strict";var JMr=_$();j$.exports=JMr});var R$=l((bye,k$)=>{"use strict";var Dl=Tr(),XMr=oe(),O$=de().isPrimitive,KMr=ve().isPrimitive,HMr=se(),ZMr=Le(),I$=Jr(),N$=ke(),QMr=wi(),r9r=ie(),e9r=ca(),a9r=Wr(),t9r=pe(),i9r=Pe(),o9r=he(),Ht=cr();function D$(r,e){var a,t,o,i,s,n,v,u,f,c;if(!HMr(r))throw new TypeError(Ht("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!KMr(e))throw new TypeError(Ht("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(i={writable:!1,keepdim:!1},arguments.length>2){if(a=arguments[2],!XMr(a))throw new TypeError(Ht("invalid argument. Options argument must be an object. Value: `%s`.",a));if(I$(a,"readonly")){if(!O$(a.readonly))throw new TypeError(Ht("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",a.readonly));if(i.writable=!a.readonly,i.writable&&ZMr(r))throw new Error(Ht("invalid option. Cannot write to read-only array."))}if(I$(a,"keepdim")){if(!O$(a.keepdim))throw new TypeError(Ht("invalid option. `%s` option must be a boolean. Option: `%s`.","keepdim",a.keepdim));i.keepdim=a.keepdim}}if(t=r9r(r),o=t.length,f=e9r(e,o-1),f===-1)throw new RangeError(Ht("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e));return u=a9r(t),u===0&&(n=!0),u=t[f],c=-1,v=QMr(o),s={},Dl(s,"next",p),Dl(s,"return",m),N$&&Dl(s,N$,d),s;function p(){var y;return c+=1,n||c>=u?{done:!0}:(i.keepdim?v[f]=new i9r(c,c+1,1):v[f]=c,y=o9r(v),{value:t9r(r,y,!0,i.writable),done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function d(){return D$(r,e,i)}}k$.exports=D$});var z$=l((xye,V$)=>{"use strict";var s9r=R$();V$.exports=s9r});var P$=l((qye,B$)=>{"use strict";var n9r=rt(),v9r=et(),u9r=gt(),f9r=to();function l9r(r){var e=f9r(r);return n9r(r)?v9r(e):u9r(e)}B$.exports=l9r});var kl=l((wye,F$)=>{"use strict";var c9r=P$();F$.exports=c9r});var C$=l((Sye,L$)=>{"use strict";var d9r=kl();function p9r(r){var e,a,t,o;for(t=d9r(r),a=r.length,e=[],o=0;o<a;o++)e.push(t(r,o));return e}L$.exports=p9r});var M$=l((Eye,U$)=>{"use strict";var y9r=C$();U$.exports=y9r});var Y$=l((Aye,$$)=>{"use strict";var G$=kl(),m9r=it().factory;function h9r(r,e,a){var t,o,i,s,n,v,u;for(o=G$(r),i=G$(e),t=m9r(a),n=r.length-1,s=[],v=0;v<e.length;v++)u=t(i(e,v),n),s.push(o(r,u));return s}$$.exports=h9r});var J$=l((_ye,W$)=>{"use strict";var g9r=Be().factory,b9r=ol(),x9r=g9r(b9r("boolean"));W$.exports=x9r});var Rl=l((jye,X$)=>{"use strict";var q9r=J$();X$.exports=q9r});var H$=l((Tye,K$)=>{"use strict";var w9r=as(),S9r=es(),E9r=Zi(),A9r=Hi(),_9r=cr();function j9r(r,e){if(w9r(r))return E9r(r,e);if(S9r(r))return A9r(r,e);throw new TypeError(_9r("invalid argument. First argument must be a complex-valued floating-point array. Value: `%s`.",r))}K$.exports=j9r});var Vl=l((Oye,Z$)=>{"use strict";var T9r=H$();Z$.exports=T9r});var rY=l((Iye,Q$)=>{"use strict";var O9r=Qe();function I9r(r,e){return new O9r(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,r.length-e)}Q$.exports=I9r});var zl=l((Nye,eY)=>{"use strict";var N9r=rY();eY.exports=N9r});var nY=l((Dye,sY)=>{"use strict";var aY=Qs(),tY=Rl(),Bl=st(),iY=Vl(),oY=zl(),cn=it().factory;function D9r(r,e,a,t,o,i){var s,n,v,u,f;for(s=cn(a),n=r.length-1,v=i,u=0;u<e.length;u++)f=s(e[u],n),t[v]=r[f],v+=o;return t}function k9r(r,e,a,t,o,i){var s,n,v,u,f,c,p,m,d,y,h;for(n=r.data,v=e.data,u=t.data,f=r.accessors[0],c=e.accessors[0],p=t.accessors[1],s=cn(a),m=n.length-1,d=i,y=0;y<v.length;y++)h=s(c(v,y),m),p(u,d,f(n,h)),d+=o;return u}function R9r(r,e,a,t,o,i){var s,n,v,u,f,c,p,m,d;for(n=e.data,v=e.accessors[0],s=cn(a),u=r.length/2-1,c=o*2,f=i*2,p=0;p<n.length;p++)m=s(v(n,p),u),d=m*2,t[f]=r[d],t[f+1]=r[d+1],f+=c;return t}function V9r(r,e,a,t,o,i){var s,n,v,u,f,c,p;for(n=e.data,v=e.accessors[0],s=cn(a),u=r.length-1,f=i,c=0;c<n.length;c++)p=s(v(n,c),u),t[f]=r[p],f+=o;return t}function z9r(r,e,a,t,o,i){var s,n,v;return s=Bl(r),n=Bl(e),v=Bl(t),s.accessorProtocol||n.accessorProtocol||v.accessorProtocol?aY(s.dtype)&&aY(v.dtype)?(R9r(iY(r,0),n,a,iY(t,0),o,i),t):tY(s.dtype)&&tY(v.dtype)?(V9r(oY(r,0),n,a,oY(t,0),o,i),t):(k9r(s,n,a,v,o,i),t):(D9r(r,e,a,t,o,i),t)}sY.exports=z9r});var fY=l((kye,uY)=>{"use strict";var B9r=Tr(),vY=Y$(),P9r=nY();B9r(vY,"assign",P9r);uY.exports=vY});var mY=l((Rye,yY)=>{"use strict";var lY=Qs(),cY=Rl(),Pl=st(),dY=Vl(),pY=zl(),F9r=it().factory,L9r=cr();function C9r(r,e,a,t,o,i){var s,n,v;for(s=0,n=0;n<e.length;n++)v=o(e[n],i),r[v]=a[s],s+=t;return r}function U9r(r,e,a,t,o,i){var s,n,v,u,f,c,p,m,d;for(s=r.data,n=e.data,v=a.data,u=r.accessors[1],f=e.accessors[0],c=a.accessors[0],p=0,m=0;m<n.length;m++)d=o(f(n,m),i),u(s,d,c(v,p)),p+=t;return s}function M9r(r,e,a,t,o,i){var s,n,v,u,f,c,p;for(s=e.data,n=e.accessors[0],u=t*2,v=0,f=0;f<s.length;f++)c=o(n(s,f),i),p=c*2,r[p]=a[v],r[p+1]=a[v+1],v+=u;return r}function G9r(r,e,a,t,o,i){var s,n,v,u,f;for(s=e.data,n=e.accessors[0],v=0,u=0;u<s.length;u++)f=o(n(s,u),i),r[f]=a[v],v+=t;return r}function $9r(r,e,a,t){var o,i,s,n,v,u;if(e.length>0)if(a.length===e.length)i=1;else if(a.length===1)i=0;else throw new Error(L9r("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=F9r(t),s=r.length-1,n=Pl(r),v=Pl(e),u=Pl(a),n.accessorProtocol||v.accessorProtocol||u.accessorProtocol?lY(n.dtype)&&lY(u.dtype)?(M9r(dY(r,0),v,dY(a,0),i,o,s),r):cY(n.dtype)&&cY(u.dtype)?(G9r(pY(r,0),v,pY(a,0),i,o,s),r):(U9r(n,v,u,i,o,s),r):(C9r(r,e,a,i,o,s),r)}yY.exports=$9r});var gY=l((Vye,hY)=>{"use strict";var Y9r=mY();hY.exports=Y9r});var SY=l((zye,wY)=>{"use strict";var Fl=Tr(),W9r=oe(),J9r=de().isPrimitive,X9r=Uv().primitives,K9r=se(),H9r=Le(),Z9r=Jr(),bY=ke(),Q9r=xe(),rGr=M$(),xY=fY(),eGr=gY(),aGr=ie(),tGr=ca(),iGr=Wr(),oGr=pe(),sGr=Je().assign,nGr=he(),ft=cr();function qY(r,e){var a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g;if(!K9r(r))throw new TypeError(ft("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!X9r(e))throw new TypeError(ft("invalid argument. Second argument must be an array of integers. Value: `%s`.",e));if(n={writable:!1},arguments.length>2){if(t=arguments[2],!W9r(t))throw new TypeError(ft("invalid argument. Options argument must be an object. Value: `%s`.",t));if(Z9r(t,"readonly")){if(!J9r(t.readonly))throw new TypeError(ft("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",t.readonly));if(n.writable=!t.readonly,n.writable&&H9r(r))throw new Error(ft("invalid option. Cannot write to read-only array."))}}if(s=e,e=rGr(e),m=e.length,o=aGr(r),i=o.length,i<=m)throw new TypeError(ft("invalid argument. First argument must be an ndarray having at least %d dimensions.",m+1));for(h=0;h<m;h++){if(y=tGr(e[h],i-1),y===-1)throw new RangeError(ft("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",i,e[h]));e[h]=y}for(d=iGr(o),d===0&&(f=!0),h=0;h<m-1;h++)if(e[h]>e[h+1])throw new Error(ft("invalid argument. Dimension indices must be sorted in ascending order. Value: `%s`.",s));for(g=1,h=1;h<m;h++){if(e[h]===e[h-1])throw new Error(ft("invalid argument. Dimension indices must be unique. Value: `%s`.",s));e[g]=e[h],g+=1}for(h=0;h<m;h++)d/=o[e[h]];for(c=Q9r(i),h=0;h<m;h++)c[e[h]]=null;for(a=[],g=0,h=0;h<i;h++){if(h===e[g]){g+=1;continue}a.push(h)}return p=xY(o,a,"throw"),u=xY(c,a,"throw"),h=-1,v={},Fl(v,"next",x),Fl(v,"return",S),bY&&Fl(v,bY,w),v;function x(){var A;return h+=1,f||h>=d?{done:!0}:(A=nGr(c),u=sGr(p,"row-major",u,-1,u),c=eGr(c,a,u,"throw"),{value:oGr(r,A,!0,n.writable),done:!1})}function S(A){return f=!0,arguments.length?{value:A,done:!0}:{done:!0}}function w(){return qY(r,e,n)}}wY.exports=qY});var AY=l((Bye,EY)=>{"use strict";var vGr=SY();EY.exports=vGr});var OY=l((Pye,TY)=>{"use strict";var Ll=Tr(),uGr=oe(),fGr=de().isPrimitive,lGr=Ys().isPrimitive,cGr=se(),dGr=Le(),pGr=Jr(),_Y=ke(),yGr=xe(),mGr=ie(),hGr=Wr(),gGr=pe(),bGr=Je().assign,xGr=he(),Di=cr();function jY(r,e){var a,t,o,i,s,n,v,u,f,c,p;if(!cGr(r))throw new TypeError(Di("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!lGr(e))throw new TypeError(Di("invalid argument. Second argument must be a positive integer. Value: `%s`.",e));if(o={writable:!1},arguments.length>2){if(a=arguments[2],!uGr(a))throw new TypeError(Di("invalid argument. Options argument must be an object. Value: `%s`.",a));if(pGr(a,"readonly")){if(!fGr(a.readonly))throw new TypeError(Di("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",a.readonly));if(o.writable=!a.readonly,o.writable&&dGr(r))throw new Error(Di("invalid option. Cannot write to read-only array."))}}if(t=mGr(r),f=t.length,f<=e)throw new TypeError(Di("invalid argument. First argument must be an ndarray having at least %d dimensions.",e+1));for(c=hGr(t),c===0&&(s=!0),v=f-e-1,p=v+1;p<f;p++)c/=t[p];for(u=t[v],n=yGr(f),p=v+1;p<f;p++)n[p]=null;return p=-1,i={},Ll(i,"next",m),Ll(i,"return",d),_Y&&Ll(i,_Y,y),i;function m(){var h,g;return p+=1,s||p>=c?{done:!0}:(h=xGr(n),g=(n[v]+1)%u,n[v]=g,g===0&&(n=bGr(t,"row-major",n,v-1,n)),{value:gGr(r,h,!0,o.writable),done:!1})}function d(h){return s=!0,arguments.length?{value:h,done:!0}:{done:!0}}function y(){return jY(r,e,o)}}TY.exports=jY});var NY=l((Fye,IY)=>{"use strict";var qGr=OY();IY.exports=qGr});var kY=l((Lye,DY)=>{"use strict";var wGr=Fe();function SGr(r){var e=typeof r;return r!==null&&(e==="object"||e==="function")&&wGr(r.next)}DY.exports=SGr});var VY=l((Cye,RY)=>{"use strict";var EGr=kY();RY.exports=EGr});var BY=l((Uye,zY)=>{"use strict";var AGr=se(),_Gr=zf(),jGr=Ma(),TGr=bt(),OGr=ie(),IGr=Ga(),NGr=ot(),DGr=cr();function kGr(r){if(!AGr(r))throw new TypeError(DGr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return _Gr(NGr(r),OGr(r),jGr(r),TGr(r),IGr(r))}zY.exports=kGr});var Cl=l((Mye,PY)=>{"use strict";var RGr=BY();PY.exports=RGr});var CY=l((Gye,LY)=>{"use strict";var Ul=Tr(),VGr=Fe(),zGr=VY(),dn=ke(),BGr=Cl(),PGr=cr();function FY(r){var e,a;if(!zGr(r))throw new TypeError(PGr("invalid argument. First argument must be an iterator protocol-compliant object. Value: `%s`.",r));return e={},Ul(e,"next",t),Ul(e,"return",o),dn&&VGr(r[dn])&&Ul(e,dn,i),e;function t(){var s;return a?{done:!0}:(s=r.next(),s.done?(a=!0,s):{value:BGr(s.value),done:!1})}function o(s){return a=!0,arguments.length?{value:s,done:!0}:{done:!0}}function i(){return FY(r[dn]())}}LY.exports=FY});var MY=l(($ye,UY)=>{"use strict";var FGr=CY();UY.exports=FGr});var WY=l((Yye,YY)=>{"use strict";var Ml=Tr(),LGr=oe(),CGr=wa(),UGr=se(),MGr=Jr(),GY=ke(),GGr=xe(),$Gr=ie(),YGr=Wr(),WGr=Je().assign,Gl=cr();function $Y(r){var e,a,t,o,i,s,n,v,u,f;if(!UGr(r))throw new TypeError(Gl("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={order:r.order},arguments.length>1){if(e=arguments[1],!LGr(e))throw new TypeError(Gl("invalid argument. Options argument must be an object. Value: `%s`.",e));if(MGr(e,"order")){if(!CGr(e.order))throw new TypeError(Gl("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));o.order=e.order}}return a=$Gr(r),t=a.length,u=YGr(a),u===0&&(s=!0),o.order==="row-major"?v=t-1:v=0,f=-1,n=GGr(t),i={},Ml(i,"next",c),Ml(i,"return",p),GY&&Ml(i,GY,m),i;function c(){return f+=1,s||f>=u?{done:!0}:(f>0&&(n=WGr(a,o.order,n,v,n)),{value:r.get.apply(r,n),done:!1})}function p(d){return s=!0,arguments.length?{value:d,done:!0}:{done:!0}}function m(){return $Y(r,o)}}YY.exports=$Y});var XY=l((Wye,JY)=>{"use strict";var JGr=WY();JY.exports=JGr});var HY=l((Jye,KY)=>{"use strict";var Xe=Ot(),Ce={};Xe(Ce,"nditerColumnEntries",_G());Xe(Ce,"nditerColumns",DG());Xe(Ce,"nditerEntries",PG());Xe(Ce,"nditerIndices",GG());Xe(Ce,"nditerInterleaveSubarrays",i$());Xe(Ce,"nditerMatrices",f$());Xe(Ce,"nditerMatrixEntries",m$());Xe(Ce,"nditerRowEntries",w$());Xe(Ce,"nditerRows",T$());Xe(Ce,"nditerSelectDimension",z$());Xe(Ce,"nditerStacks",AY());Xe(Ce,"nditerSubarrays",NY());Xe(Ce,"nditer2arrayEach",MY());Xe(Ce,"nditerValues",XY());KY.exports=Ce});var QY=l((Xye,ZY)=>{"use strict";var XGr=Le(),KGr=Na(),HGr=ie(),ZGr=Ma(),QGr=bt(),r$r=Ga(),e$r=ot(),a$r=da(),t$r=Ta(),i$r=t$r("order");function o$r(r){var e,a,t,o,i,s,n;if(n=KGr(r),i=e$r(r),o=HGr(r),e=ZGr(r),a=QGr(r),t=r$r(r)||i$r,arguments.length>1?s=arguments[1]:s={},XGr(r)){if(s.readonly===void 0)s.readonly=!0;else if(s.readonly===!1)throw new Error("invalid argument. Cannot write to a read-only array.")}return new a$r(n,i,o,e,a,t,s)}ZY.exports=o$r});var eW=l((Kye,rW)=>{"use strict";var s$r=QY();rW.exports=s$r});var aW=l((Hye,n$r)=>{n$r.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 iW=l((Zye,tW)=>{"use strict";var v$r=xa(),u$r=Jr(),f$r=Oa(),pn=aW();function l$r(){var r,e,a,t;for(a={},r=v$r(pn),e=r.length,t=0;t<e;t++)a[r[t]]=pn[r[t]];return a}function c$r(r){return arguments.length===0?l$r():(r=f$r(r),u$r(pn,r)?pn[r]:null)}tW.exports=c$r});var sW=l((Qye,oW)=>{"use strict";var d$r=iW();oW.exports=d$r});var uW=l((rme,vW)=>{"use strict";var nW=me().isPrimitive,p$r=Ne(),$l=cr();function y$r(r){var e,a,t,o,i;if(typeof r!="object"||r===null)throw new TypeError($l("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(t=r.length,nW(t))return t;if(a=r.shape,!p$r(a))throw new TypeError($l("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],!nW(o))throw new TypeError($l("invalid argument. Must provide an ndarray. Value: `%s`.",r));t*=o}return t}vW.exports=y$r});var Yl=l((eme,fW)=>{"use strict";var m$r=uW();fW.exports=m$r});var cW=l((ame,lW)=>{"use strict";var h$r=me().isPrimitive,g$r=ve().isPrimitive,b$r=Af(),Wl=cr();function x$r(r,e){var a;if(typeof r!="object"||r===null)throw new TypeError(Wl("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!g$r(e))throw new TypeError(Wl("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(a=b$r(r,e),h$r(a))return a;throw new TypeError(Wl("invalid argument. First argument must be an ndarray. Value: `%s`.",r))}lW.exports=x$r});var pW=l((tme,dW)=>{"use strict";var q$r=cW();dW.exports=q$r});var yW=l((ime,w$r)=>{w$r.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 bW=l((ome,gW)=>{"use strict";var S$r=xa(),mW=Jr(),hW=Oa(),yn=yW();function E$r(){var r,e,a,t,o,i,s,n,v;for(a={},r=S$r(yn),e=r.length,v=0;v<e;v++){for(o=r[v],s=yn[o],t={},n=0;n<e;n++)i=r[n],t[i]=s[i];a[o]=t}return a}function A$r(r,e){var a;return arguments.length===0?E$r():(r=hW(r),mW(yn,r)&&(a=yn[r],e=hW(e),mW(a,e))?a[e]:null)}gW.exports=A$r});var qW=l((sme,xW)=>{"use strict";var _$r=bW();xW.exports=_$r});var SW=l((nme,wW)=>{"use strict";var j$r=Wa(),T$r=pt();function O$r(r){return r instanceof j$r||T$r(r)==="MultiSlice"}wW.exports=O$r});var Jl=l((vme,EW)=>{"use strict";var I$r=SW();EW.exports=I$r});var _W=l((ume,AW)=>{"use strict";var N$r=se(),D$r=Jl(),k$r=ze(),R$r=oe(),V$r=de().isPrimitive,z$r=Jr(),B$r=Wa(),P$r=he(),F$r=pe(),L$r=ie(),mn=cr();function C$r(r,e){var a,t,o,i,s,n,v;if(o={strict:!0},t=arguments.length,!N$r(r))throw new TypeError(mn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(R$r(arguments[t-1])){if(t-=1,a=arguments[t],z$r(a,"strict")){if(!V$r(a.strict))throw new TypeError(mn("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(s=L$r(r),t===1&&s.length>0)throw new RangeError(mn("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",s.join(","),0))}if(D$r(e)){if(n=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else{if(k$r(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],v=1;v<t;v++)i.push(arguments[v]);try{n=P$r(i)}catch{for(v=0;v<i.length;v++)try{new B$r(i[v])}catch{throw new TypeError(mn("invalid argument. Slice arguments must be either a Slice, integer, null, or undefined. Value: `%s`.",String(i[v])))}}}return F$r(r,n,o.strict,!1)}AW.exports=C$r});var Xl=l((fme,jW)=>{"use strict";var U$r=_W();jW.exports=U$r});var IW=l((lme,OW)=>{"use strict";var TW=se(),M$r=Jl(),G$r=ze(),$$r=oe(),Y$r=de().isPrimitive,W$r=Le(),J$r=Jr(),X$r=Wa(),K$r=he(),H$r=Gs(),Z$r=ie(),To=cr();function Q$r(r,e,a){var t,o,i,s,n,v,u;if(i={strict:!0},o=arguments.length,!TW(r))throw new TypeError(To("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!TW(e))throw new TypeError(To("invalid argument. Second argument must be an ndarray. Value: `%s`.",e));if(W$r(e))throw new Error("invalid argument. Cannot write to a read-only array.");if($$r(arguments[o-1])){if(o-=1,t=arguments[o],J$r(t,"strict")){if(!Y$r(t.strict))throw new TypeError(To("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));i.strict=t.strict}if(n=Z$r(e),o===2&&n.length>0)throw new RangeError(To("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",n.join(","),0))}if(M$r(a)){if(v=a,o>3)throw new Error("invalid invocation. Too many arguments.")}else{if(G$r(a)){if(s=a,o>3)throw new Error("invalid invocation. Too many arguments.")}else for(s=[],u=2;u<o;u++)s.push(arguments[u]);try{v=K$r(s)}catch{for(u=0;u<s.length;u++)try{new X$r(s[u])}catch{throw new TypeError(To("invalid argument. Slice arguments must be either a Slice, integer, null, or undefined. Value: `%s`.",String(s[u])))}}}return H$r(r,e,v,i.strict)}OW.exports=Q$r});var DW=l((cme,NW)=>{"use strict";var rYr=IW();NW.exports=rYr});var VW=l((dme,RW)=>{"use strict";var eYr=oe(),aYr=de().isPrimitive,kW=ve().isPrimitive,tYr=se(),iYr=qi(),oYr=yf(),sYr=xi(),nYr=Jr(),vYr=Pe(),uYr=Of(),Oo=cr();function fYr(r,e,a){var t,o,i;if(i={strict:!0},!tYr(r))throw new TypeError(Oo("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!kW(e))throw new TypeError(Oo("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(kW(a)||oYr(a))o=a;else if(sYr(a)||iYr(a))o=new vYr;else throw new TypeError(Oo("invalid argument. Third argument must be either a Slice, integer, null, or undefined. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!eYr(t))throw new TypeError(Oo("invalid argument. Options argument must be an object. Value: `%s`.",t));if(nYr(t,"strict")){if(!aYr(t.strict))throw new TypeError(Oo("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));i.strict=t.strict}}return uYr(r,e,o,i.strict,!1)}RW.exports=fYr});var BW=l((pme,zW)=>{"use strict";var lYr=VW();zW.exports=lYr});var LW=l((yme,FW)=>{"use strict";var cYr=oe(),dYr=de().isPrimitive,PW=ve().isPrimitive,pYr=se(),yYr=Jr(),mYr=If(),Io=cr();function hYr(r,e,a){var t,o;if(o={strict:!0},!pYr(r))throw new TypeError(Io("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!PW(e))throw new TypeError(Io("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(!PW(a))throw new TypeError(Io("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!cYr(t))throw new TypeError(Io("invalid argument. Options argument must be an object. Value: `%s`.",t));if(yYr(t,"strict")){if(!dYr(t.strict))throw new TypeError(Io("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));o.strict=t.strict}}return mYr(r,e,a,o.strict,!1)}FW.exports=hYr});var UW=l((mme,CW)=>{"use strict";var gYr=LW();CW.exports=gYr});var $W=l((hme,GW)=>{"use strict";var bYr=oe(),xYr=de().isPrimitive,MW=ve().isPrimitive,qYr=se(),wYr=Jr(),SYr=Nf(),No=cr();function EYr(r,e,a){var t,o;if(o={strict:!0},!qYr(r))throw new TypeError(No("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!MW(e))throw new TypeError(No("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(!MW(a))throw new TypeError(No("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!bYr(t))throw new TypeError(No("invalid argument. Options argument must be an object. Value: `%s`.",t));if(wYr(t,"strict")){if(!xYr(t.strict))throw new TypeError(No("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));o.strict=t.strict}}return SYr(r,e,a,o.strict,!1)}GW.exports=EYr});var WW=l((gme,YW)=>{"use strict";var AYr=$W();YW.exports=AYr});var XW=l((bme,JW)=>{"use strict";var _Yr=se(),jYr=ze(),TYr=oe(),OYr=Ue().isPrimitive,IYr=de().isPrimitive,NYr=xi(),DYr=qi(),kYr=Jr(),RYr=ie(),VYr=Df(),hn=cr();function zYr(r){return!(OYr(r)||NYr(r)||DYr(r))}function BYr(r,e){var a,t,o,i,s,n;if(o={strict:!0},t=arguments.length,!_Yr(r))throw new TypeError(hn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(TYr(arguments[t-1])){if(t-=1,a=arguments[t],kYr(a,"strict")){if(!IYr(a.strict))throw new TypeError(hn("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(s=RYr(r),t===1&&s.length>0)throw new RangeError(hn("invalid argument. Number of indices does not match the number of array dimensions. Array shape: (%s). Number of indices: %u.",s.join(","),0))}if(jYr(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],n=1;n<t;n++)i.push(arguments[n]);for(n=0;n<i.length;n++)if(zYr(i[n]))throw new TypeError(hn("invalid argument. Each index argument must be either an integer, null, or undefined. Value: `%s`.",String(i[n])));return VYr(r,i,o.strict,!1)}JW.exports=BYr});var HW=l((xme,KW)=>{"use strict";var PYr=XW();KW.exports=PYr});var QW=l((qme,ZW)=>{"use strict";var FYr=se(),LYr=ze(),CYr=oe(),UYr=Ue().isPrimitive,MYr=de().isPrimitive,GYr=xi(),$Yr=qi(),YYr=Jr(),WYr=ie(),JYr=kf(),gn=cr();function XYr(r){return!(UYr(r)||GYr(r)||$Yr(r))}function KYr(r,e){var a,t,o,i,s,n;if(o={strict:!0},t=arguments.length,!FYr(r))throw new TypeError(gn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(CYr(arguments[t-1])){if(t-=1,a=arguments[t],YYr(a,"strict")){if(!MYr(a.strict))throw new TypeError(gn("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(s=WYr(r),t===1&&s.length>0)throw new RangeError(gn("invalid argument. Number of indices does not match the number of array dimensions. Array shape: (%s). Number of indices: %u.",s.join(","),0))}if(LYr(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],n=1;n<t;n++)i.push(arguments[n]);for(n=0;n<i.length;n++)if(XYr(i[n]))throw new TypeError(gn("invalid argument. Each index argument must be either an integer, null, or undefined. Value: `%s`.",String(i[n])));return JYr(r,i,o.strict,!1)}ZW.exports=KYr});var eJ=l((wme,rJ)=>{"use strict";var HYr=QW();rJ.exports=HYr});var iJ=l((Sme,tJ)=>{"use strict";var aJ=ve().isPrimitive,ZYr=Ne(),QYr=Rf(),Kl=cr();function rWr(r,e){var a;if(typeof r!="object"||r===null||!ZYr(r.shape))throw new TypeError(Kl("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!aJ(e))throw new TypeError(Kl("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(a=QYr(r,e),aJ(a))return a;throw new TypeError(Kl("invalid argument. First argument must be an ndarray. Value: `%s`.",r))}tJ.exports=rWr});var sJ=l((Eme,oJ)=>{"use strict";var eWr=iJ();oJ.exports=eWr});var nJ=l((Ame,aWr)=>{aWr.exports={mode:["throw"],order:"row-major"}});var fJ=l((_me,uJ)=>{"use strict";var tWr=oe(),vJ=Jr(),iWr=ha(),oWr=wa(),sWr=pi(),bn=cr();function nWr(r,e){var a;if(!tWr(e))return new TypeError(bn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(vJ(e,"mode")){if(r.mode=e.mode,!iWr(r.mode))r.mode=[r.mode];else if(r.mode.length===0)return new TypeError(bn("invalid option. `%s` option cannot be an empty array.","mode"));for(a=0;a<r.mode.length;a++)if(!sWr(r.mode[a]))return new TypeError(bn("invalid option. `%s` option must be a supported/recognized mode. Option: `%s`.","mode",r.mode[a]))}return vJ(e,"order")&&(r.order=e.order,!oWr(r.order))?new TypeError(bn("invalid option. `%s` option must be a supported/recognized order. Option: `%s`.","order",r.order)):null}uJ.exports=nWr});var dJ=l((jme,cJ)=>{"use strict";var vWr=Ct().primitives,uWr=ve().isPrimitive,fWr=Ve(),lWr=Vf(),Hl=cr(),lJ=nJ(),cWr=fJ();function dWr(){var r,e,a,t,o,i,s,n,v;if(e=arguments[0],!vWr(e))throw new TypeError(Hl("invalid argument. First argument must be an array-like object containing nonnegative integers. Value: `%s`.",e));if(s=arguments.length,a=e.length,o={},o.mode=lJ.mode.slice(),o.order=lJ.order,s>a+1){if(v=s-1,r=arguments[v],i=cWr(o,r),i)throw i}else v=s;if(n=1,v-n!==a)throw new RangeError(Hl("invalid argument. Number of provided subscripts must match the number of dimensions. ndims: `%u`. Number of subscripts: `%u`.",a,v-n));for(t=new Array(a+4),t[0]=e,t[1]=fWr(e,o.order),t[2]=0;n<v;n++){if(!uWr(arguments[n]))throw new TypeError(Hl("invalid argument. Subscripts must be integer valued. Argument: `%u`. Value: `%s`.",n,arguments[n]));t[n+2]=arguments[n]}return t[n+2]=o.mode,lWr.apply(null,t)}cJ.exports=dWr});var yJ=l((Tme,pJ)=>{"use strict";var pWr=dJ();pJ.exports=pWr});var xJ=l((Ome,bJ)=>{"use strict";var yWr=oe(),Do=Jr(),mWr=Ko(),hWr=Ve(),gWr=Me(),bWr=Ia(),xWr=Wr(),qWr=da(),gJ=Ta(),xn=cr(),mJ=gJ.get("dtypes.default"),hJ=gJ.get("order");function wWr(r){var e,a,t,o,i,s,n,v,u;if(i={},arguments.length>1){if(e=arguments[1],!yWr(e))throw new TypeError(xn("invalid argument. Options argument must be an object. Value: `%s`.",e));Do(e,"dtype")?a=e.dtype:a=mJ,Do(e,"order")?t=e.order:t=hJ,Do(e,"mode")&&(i.mode=e.mode),Do(e,"submode")&&(i.submode=e.submode),Do(e,"readonly")&&(i.readonly=e.readonly)}else a=mJ,t=hJ;if(typeof r=="number")u=[r];else if(mWr(r))u=r;else throw new TypeError(xn("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));if(o=u.length,o>0){if(n=xWr(u),n!==n||n<0)throw new TypeError(xn("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));v=hWr(u,t)}else n=1,v=[0];if(s=bWr(a,n),s===null)throw new TypeError(xn("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",a));return new qWr(a,s,u,v,gWr(u,v),t,i)}bJ.exports=wWr});var wJ=l((Ime,qJ)=>{"use strict";var SWr=xJ();qJ.exports=SWr});var jJ=l((Nme,_J)=>{"use strict";var EWr=se(),AWr=oe(),_Wr=Ct().primitives,ki=Jr(),jWr=Ve(),TWr=Me(),OWr=Ia(),IWr=Wr(),SJ=Na(),EJ=ie(),AJ=Ga(),NWr=da(),qn=cr();function DWr(r){var e,a,t,o,i,s,n,v,u;if(!EWr(r))throw new TypeError(qn("invalid argument. First argument must be an ndarray-like object. Value: `%s`.",r));if(i={},arguments.length>1){if(e=arguments[1],!AWr(e))throw new TypeError(qn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(ki(e,"dtype")?a=e.dtype:a=SJ(r),ki(e,"shape")){if(u=e.shape,typeof u=="number"&&(u=[u]),!_Wr(u))throw new TypeError(qn("invalid option. `%s` option must be a nonnegative integer or an array of nonnegative integers. Option: `%s`.","shape",u))}else u=EJ(r);ki(e,"order")?t=e.order:t=AJ(r),ki(e,"mode")&&(i.mode=e.mode),ki(e,"submode")&&(i.submode=e.submode),ki(e,"readonly")&&(i.readonly=e.readonly)}else a=SJ(r),u=EJ(r),t=AJ(r);if(o=u.length,o>0?(n=IWr(u),v=jWr(u,t)):(n=1,v=[0]),s=OWr(a,n),s===null)throw new TypeError(qn("invalid argument. First argument must have a recognized data type. Value: `%s`.",a));return new NWr(a,s,u,v,TWr(u,v),t,i)}_J.exports=DWr});var OJ=l((Dme,TJ)=>{"use strict";var kWr=jJ();TJ.exports=kWr});var Zl=l((kme,IJ)=>{"use strict";var Fr=Ot(),zr={};Fr(zr,"array",i5());Fr(zr,"at",u5());Fr(zr,"base",bL());Fr(zr,"broadcastArray",$s());Fr(zr,"broadcastArrays",Bf());Fr(zr,"castingModes",qu());Fr(zr,"ndarray",da());Fr(zr,"dataBuffer",ot());Fr(zr,"defaults",Ta());Fr(zr,"dispatch",ML());Fr(zr,"dtype",Na());Fr(zr,"dtypes",De());Fr(zr,"empty",KL());Fr(zr,"emptyLike",tC());Fr(zr,"FancyArray",O9());Fr(zr,"flag",iG());Fr(zr,"flags",vG());Fr(zr,"scalar2ndarray",nl());Fr(zr,"ind2sub",xG());Fr(zr,"indexModes",Lt());Fr(zr,"iter",HY());Fr(zr,"maybeBroadcastArray",Al());Fr(zr,"maybeBroadcastArrays",_l());Fr(zr,"minDataType",al());Fr(zr,"mostlySafeCasts",Au());Fr(zr,"ndarraylike2ndarray",eW());Fr(zr,"ndims",Ss());Fr(zr,"nextDataType",sW());Fr(zr,"numel",Yl());Fr(zr,"numelDimension",pW());Fr(zr,"offset",bt());Fr(zr,"order",Ga());Fr(zr,"orders",Ft());Fr(zr,"outputDataTypePolicies",Cs());Fr(zr,"promotionRules",qW());Fr(zr,"safeCasts",Eu());Fr(zr,"sameKindCasts",_u());Fr(zr,"shape",ie());Fr(zr,"slice",Xl());Fr(zr,"ndsliceAssign",DW());Fr(zr,"sliceDimension",BW());Fr(zr,"sliceDimensionFrom",UW());Fr(zr,"sliceDimensionTo",WW());Fr(zr,"sliceFrom",HW());Fr(zr,"sliceTo",eJ());Fr(zr,"stride",sJ());Fr(zr,"strides",Ma());Fr(zr,"sub2ind",yJ());Fr(zr,"ndarray2array",Cl());Fr(zr,"zeros",wJ());Fr(zr,"zerosLike",OJ());IJ.exports=zr});var iX=l((r1e,tX)=>{"use strict";var XWr=Xt();function KWr(r){try{return require(r)}catch(e){return XWr(e)?e:typeof e=="object"?new Error(JSON.stringify(e)):new Error(e.toString())}}tX.exports=KWr});var lc=l((e1e,oX)=>{"use strict";var HWr=iX();oX.exports=HWr});var nX=l((a1e,sX)=>{"use strict";function ZWr(r,e){return r>e?r:e}sX.exports=ZWr});var uX=l((t1e,vX)=>{"use strict";var QWr=nX();vX.exports=QWr});var lX=l((i1e,fX)=>{"use strict";var rJr=Be().factory,eJr=Dv(),aJr=rJr(eJr());fX.exports=aJr});var dX=l((o1e,cX)=>{"use strict";var tJr=lX();cX.exports=tJr});var pX=l((s1e,iJr)=>{iJr.exports=["no-transpose","transpose","conjugate-transpose"]});var mX=l((n1e,yX)=>{"use strict";var oJr=pX();function sJr(){return oJr.slice()}yX.exports=sJr});var gX=l((v1e,hX)=>{"use strict";function nJr(){return{"no-transpose":111,transpose:112,"conjugate-transpose":113}}hX.exports=nJr});var qX=l((u1e,xX)=>{"use strict";var vJr=Tr(),bX=mX(),uJr=gX();vJr(bX,"enum",uJr);xX.exports=bX});var SX=l((f1e,wX)=>{"use strict";var fJr=Be().factory,lJr=qX(),cJr=fJr(lJr());wX.exports=cJr});var cc=l((l1e,EX)=>{"use strict";var dJr=SX();EX.exports=dJr});var _X=l((c1e,AX)=>{"use strict";function pJr(r,e){return e>0?0:(1-r)*e}AX.exports=pJr});var TX=l((d1e,jX)=>{"use strict";var yJr=_X();jX.exports=yJr});var dc=l((p1e,OX)=>{"use strict";var Vo=5;function mJr(r,e,a,t,o,i,s){var n,v,u,f,c;if(n=0,r<=0)return n;if(v=t,u=s,a===1&&i===1){if(f=r%Vo,f>0)for(c=0;c<f;c++)n+=e[v]*o[u],v+=1,u+=1;if(r<Vo)return n;for(c=f;c<r;c+=Vo)n+=e[v]*o[u]+e[v+1]*o[u+1]+e[v+2]*o[u+2]+e[v+3]*o[u+3]+e[v+4]*o[u+4],v+=Vo,u+=Vo;return n}for(c=0;c<r;c++)n+=e[v]*o[u],v+=a,u+=i;return n}OX.exports=mJr});var DX=l((y1e,NX)=>{"use strict";var IX=TX(),hJr=dc();function gJr(r,e,a,t,o){var i,s;return r<=0?0:(i=IX(r,a),s=IX(r,o),hJr(r,e,a,i,t,o,s))}NX.exports=gJr});var VX=l((m1e,RX)=>{"use strict";var bJr=Tr(),kX=DX(),xJr=dc();bJr(kX,"ndarray",xJr);RX.exports=kX});var PX=l((h1e,BX)=>{"use strict";var qJr=require("path").join,wJr=lc(),SJr=Xt(),EJr=VX(),pc,zX=wJr(qJr(__dirname,"./native.js"));SJr(zX)?pc=EJr:pc=zX;BX.exports=pc});var yc=l((g1e,LX)=>{"use strict";var En=Ns(),FX=PX().ndarray,AJr=kr(),lt=AJr("float64");function _t(r){return r!=="no-transpose"}function _Jr(r,e,a,t,o,i){var s,n,v,u,f,c,p;for(En([t,o])?(v=e,u=r,s=o,n=t-v*o):(v=r,u=e,s=t,n=o-v*t),p=i,c=0;c<u;c++){for(f=0;f<v;f++)a[p]=0,p+=s;p+=n}return a}function jJr(r,e,a,t,o,i,s){var n,v,u,f,c,p,m;for(En([o,i])?(u=e,f=r,n=i,v=o-u*i):(u=r,f=e,n=o,v=i-u*o),m=s,p=0;p<f;p++){for(c=0;c<u;c++)t[m]*=a,m+=n;m+=v}return t}function Sn(r,e,a,t,o,i,s,n,v,u,f,c,p,m,d,y){var h,g,x,S,w,A,_,b,E,q,j;for(w=e,A=r,h=s,g=u,x=d,S=m-w*d,j=y,b=0;b<A;b++){for(E=n+b*i,_=0;_<w;_++)q=c+_*f,p[j]+=t*FX(a,o,h,E,v,g,q),j+=x;j+=S}return p}function TJr(r,e,a,t,o,i,s,n,v,u,f,c,p,m,d,y){var h,g,x,S,w,A,_,b,E,q,j,T,I,O,D,k,N,V,z,R,B,P,F;for(E=e,q=r,h=s,g=u,x=d,N=q;N>0;)for(N<lt?(T=N,N=0):(T=lt,N-=lt),w=n+N*i,b=y+N*m,k=E;k>0;)for(k<lt?(j=k,k=0):(j=lt,k-=lt),A=c+k*f,_=b+k*d,S=m-j*d,F=a;F>0;)for(F<lt?(I=F,F=0):(I=lt,F-=lt),B=w+F*s,P=A+F*u,R=_,D=0;D<T;D++){for(V=B+D*i,O=0;O<j;O++)z=P+O*f,p[R]+=t*FX(I,o,h,V,v,g,z),R+=x;R+=S}return p}function OJr(r,e,a,t,o,i,s,n,v,u,f,c,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=jJr(a,t,d,y,h,g,x)),i===0))return y;if(S=En([n,v]),w=En([c,p]),S){if(!_t(r)){if(!w&&!_t(e))return Sn(a,t,o,i,s,n,v,u,f,c,p,m,y,h,g,x);if(w&&_t(e))return Sn(a,t,o,i,s,n,v,u,f,p,c,m,y,h,g,x)}}else if(_t(r)){if(w&&_t(e))return Sn(a,t,o,i,s,v,n,u,f,p,c,m,y,h,g,x);if(!w&&!_t(e))return Sn(a,t,o,i,s,v,n,u,f,c,p,m,y,h,g,x)}return _t(r)?(A=v,_=n):(A=n,_=v),_t(e)?(b=p,E=c):(b=c,E=p),TJr(a,t,o,i,s,A,_,u,f,b,E,m,y,h,g,x)}LX.exports=OJr});var MX=l((b1e,UX)=>{"use strict";var mc=uX(),IJr=dX(),CX=cc(),ct=cr(),NJr=yc();function DJr(r,e,a,t,o,i,s,n,v,u,f,c,p,m){var d,y,h,g,x,S,w,A,_;if(!IJr(r))throw new TypeError(ct("invalid argument. First argument must be a valid order. Value: `%s`.",r));if(!CX(e))throw new TypeError(ct("invalid argument. Second argument must be a valid transpose operation. Value: `%s`.",e));if(!CX(a))throw new TypeError(ct("invalid argument. Third argument must be a valid transpose operation. Value: `%s`.",a));if(t<0)throw new RangeError(ct("invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.",t));if(o<0)throw new RangeError(ct("invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.",t));if(i<0)throw new RangeError(ct("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,v<mc(1,d))throw new RangeError(ct("invalid argument. Ninth argument must be greater than or equal to max(1,%d). Value: `%d`.",d,v));if(f<mc(1,y))throw new RangeError(ct("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<mc(1,h))throw new RangeError(ct("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=v,S=1,w=f,A=1,_=m):(g=v,x=1,S=f,w=1,A=m,_=1),NJr(e,a,t,o,i,s,n,g,x,0,u,S,w,0,c,p,A,_,0)}UX.exports=DJr});var YX=l((x1e,$X)=>{"use strict";var GX=cc(),zo=cr(),kJr=yc();function RJr(r,e,a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x){if(!GX(r))throw new TypeError(zo("invalid argument. First argument must be a valid transpose operation. Value: `%s`.",r));if(!GX(e))throw new TypeError(zo("invalid argument. Second argument must be a valid transpose operation. Value: `%s`.",e));if(a<0)throw new RangeError(zo("invalid argument. Third argument must be a nonnegative integer. Value: `%d`.",a));if(t<0)throw new RangeError(zo("invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.",a));if(o<0)throw new RangeError(zo("invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.",o));return kJr(r,e,a,t,o,i,s,n,v,u,f,c,p,m,d,y,h,g,x)}$X.exports=RJr});var XX=l((q1e,JX)=>{"use strict";var VJr=Tr(),WX=MX(),zJr=YX();VJr(WX,"ndarray",zJr);JX.exports=WX});var ZX=l((w1e,HX)=>{"use strict";var BJr=require("path").join,PJr=lc(),FJr=Xt(),LJr=XX(),hc,KX=PJr(BJr(__dirname,"./native.js"));FJr(KX)?hc=LJr:hc=KX;HX.exports=hc});var MJr={};bK(MJr,{NDArray:()=>Re,__version__:()=>UJr,arange:()=>tK,array:()=>Xa,asarray:()=>vK,copy:()=>uK,empty:()=>xc,empty_like:()=>cK,eye:()=>bc,full:()=>qc,full_like:()=>dK,geomspace:()=>sK,identity:()=>nK,linspace:()=>iK,logspace:()=>oK,ones:()=>gc,ones_like:()=>lK,zeros:()=>An,zeros_like:()=>fK});module.exports=xK(MJr);var ce=He(Zl(),1),eK=He(Xl(),1),aK=He(Pe(),1);function NJ(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 DJ(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 s=a<0?e+a:a;if(s<0||s>=e)throw new Error(`Index ${a} is out of bounds for size ${e}`);return{start:s,stop:s+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 Ke="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 Lr(r){return r==="int64"||r==="uint64"}function wn(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 u=e;return u==="int32"||u==="int64"||u==="uint32"||u==="uint64"?"float64":"float32"}if(e==="float32"){let u=r;return u==="int32"||u==="int64"||u==="uint32"||u==="uint64"?"float64":"float32"}return"float32"}let a=r.startsWith("int"),t=e.startsWith("int"),o=r.startsWith("uint"),i=e.startsWith("uint"),s=u=>u.includes("64")?64:u.includes("32")?32:u.includes("16")?16:u.includes("8")?8:0,n=s(r),v=s(e);if(r==="int64"&&e==="uint64"||r==="uint64"&&e==="int64")return"float64";if(a&&i&&n===v){if(n===8)return"int16";if(n===16)return"int32";if(n===32)return"int64"}if(o&&t&&n===v){if(v===8)return"int16";if(v===16)return"int32";if(v===32)return"int64"}if(a&&t||o&&i){let u=Math.max(n,v);return a?u===64?"int64":u===32?"int32":u===16?"int16":"int8":u===64?"uint64":u===32?"uint32":u===16?"uint16":"uint8"}return a&&i?n>v?r:v===8?"int16":v===16?"int32":v===32?"int64":"float64":o&&t?v>n?e:n===8?"int16":n===16?"int32":n===32?"int64":"float64":"float64"}function ne(r){return r==="int64"||r==="uint64"?"generic":r}var ko=He(da(),1),RJ=He(Na(),1),VJ=He(ie(),1),zJ=He(Ma(),1),BJ=He(Ss(),1),PJ=He(Yl(),1),FJ=He(ot(),1);var Cr=class r{constructor(e,a){this._stdlib=e,this._dtype=a||(0,RJ.default)(e)}get shape(){return Array.from((0,VJ.default)(this._stdlib))}get ndim(){return(0,BJ.default)(this._stdlib)}get size(){return(0,PJ.default)(this._stdlib)}get dtype(){return this._dtype}get data(){return(0,FJ.default)(this._stdlib)}get strides(){return Array.from((0,zJ.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(Lr(t)){let i=new o(this.size),s=a;for(let v=0;v<this.size;v++)i[v]=s[v];let n=(0,ko.default)(ne(t),i,e,this._computeStrides(e),0,"row-major");return new r(n,t)}else{let i=new o(this.size),s=a;i.set(s);let n=(0,ko.default)(ne(t),i,e,this._computeStrides(e),0,"row-major");return new r(n,t)}}static fromStdlib(e,a){return new r(e,a)}static fromData(e,a,t){let o=r._computeStrides(a),i=(0,ko.default)(ne(t),e,a,o,0,"row-major");return new r(i,t)}static zeros(e,a=Ke){let t=e.reduce((n,v)=>n*v,1),o=Oe(a);if(!o)throw new Error(`Cannot create array with dtype ${a}`);let i=new o(t),s=(0,ko.default)(ne(a),i,e,r._computeStrides(e),0,"row-major");return new r(s,a)}static ones(e,a=Ke){let t=r.zeros(e,a),o=t.data;if(Lr(a)){let i=o;for(let s=0;s<t.size;s++)i[s]=BigInt(1)}else{let i=o;for(let s=0;s<t.size;s++)i[s]=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 Ql=He(Bf(),1);function Zt(r,e,a,t){let o,i;try{[o,i]=(0,Ql.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 s=wn(r.dtype,e.dtype),n=Array.from(o.shape),v=Cr.zeros(n,s),u=v.data,f=v.size;if(Lr(s)){let c=u;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"?c[p]=y+h:t==="subtract"?c[p]=y-h:t==="multiply"?c[p]=y*h:t==="divide"?c[p]=y/h:c[p]=BigInt(Math.round(a(Number(y),Number(h))))}}else{let c=Lr(r.dtype)||Lr(e.dtype);for(let p=0;p<f;p++){let m=o.iget(p),d=i.iget(p),y=Number(m),h=Number(d);u[p]=a(y,h)}}return v}function At(r,e,a){let t,o;try{[t,o]=(0,Ql.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),s=i.reduce((u,f)=>u*f,1),n=new Uint8Array(s),v=Lr(r.dtype)||Lr(e.dtype);for(let u=0;u<s;u++){let f=t.iget(u),c=o.iget(u),p=Number(f),m=Number(c);n[u]=a(p,m)?1:0}return Cr.fromData(n,i,"bool")}function LJ(r,e){return typeof e=="number"?RWr(r,e):Zt(r,e,(a,t)=>a+t,"add")}function CJ(r,e){return typeof e=="number"?VWr(r,e):Zt(r,e,(a,t)=>a-t,"subtract")}function UJ(r,e){return typeof e=="number"?zWr(r,e):Zt(r,e,(a,t)=>a*t,"multiply")}function MJ(r,e){if(typeof e=="number")return BWr(r,e);let a=r.dtype==="float64",t=e.dtype==="float64",o=r.dtype==="float32",i=e.dtype==="float32";if(a||t){let v=a?r:Ri(r,"float64"),u=t?e:Ri(e,"float64");return Zt(v,u,(f,c)=>f/c,"divide")}if(o||i){let v=o?r:Ri(r,"float32"),u=i?e:Ri(e,"float32");return Zt(v,u,(f,c)=>f/c,"divide")}let s=Ri(r,"float64"),n=Ri(e,"float64");return Zt(s,n,(v,u)=>v/u,"divide")}function Ri(r,e){let a=Cr.zeros(Array.from(r.shape),e),t=r.size,o=r.data,i=a.data;for(let s=0;s<t;s++)i[s]=Number(o[s]);return a}function RWr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,s=Cr.zeros(t,a),n=s.data;if(Lr(a)){let v=o,u=n,f=BigInt(Math.round(e));for(let c=0;c<i;c++)u[c]=v[c]+f}else for(let v=0;v<i;v++)n[v]=Number(o[v])+e;return s}function VWr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,s=Cr.zeros(t,a),n=s.data;if(Lr(a)){let v=o,u=n,f=BigInt(Math.round(e));for(let c=0;c<i;c++)u[c]=v[c]-f}else for(let v=0;v<i;v++)n[v]=Number(o[v])-e;return s}function zWr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,s=Cr.zeros(t,a),n=s.data;if(Lr(a)){let v=o,u=n,f=BigInt(Math.round(e));for(let c=0;c<i;c++)u[c]=v[c]*f}else for(let v=0;v<i;v++)n[v]=Number(o[v])*e;return s}function BWr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=a!=="float32"&&a!=="float64"?"float64":a,v=Cr.zeros(t,n),u=v.data;if(Lr(a))for(let f=0;f<i;f++)u[f]=Number(o[f])/e;else for(let f=0;f<i;f++)u[f]=Number(o[f])/e;return v}function GJ(r,e){return typeof e=="number"?FWr(r,e):At(r,e,(a,t)=>a>t)}function $J(r,e){return typeof e=="number"?LWr(r,e):At(r,e,(a,t)=>a>=t)}function YJ(r,e){return typeof e=="number"?CWr(r,e):At(r,e,(a,t)=>a<t)}function WJ(r,e){return typeof e=="number"?UWr(r,e):At(r,e,(a,t)=>a<=t)}function JJ(r,e){return typeof e=="number"?MWr(r,e):At(r,e,(a,t)=>a===t)}function XJ(r,e){return typeof e=="number"?GWr(r,e):At(r,e,(a,t)=>a!==t)}function rc(r,e,a=1e-5,t=1e-8){return typeof e=="number"?$Wr(r,e,a,t):At(r,e,(o,i)=>{let s=Math.abs(o-i),n=t+a*Math.abs(i);return s<=n})}function KJ(r,e,a=1e-5,t=1e-8){let o=rc(r,e,a,t),i=o.data;for(let s=0;s<o.size;s++)if(i[s]===0)return!1;return!0}function FWr(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 Cr.fromData(a,Array.from(r.shape),"bool")}function LWr(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 Cr.fromData(a,Array.from(r.shape),"bool")}function CWr(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 Cr.fromData(a,Array.from(r.shape),"bool")}function UWr(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 Cr.fromData(a,Array.from(r.shape),"bool")}function MWr(r,e){let a=new Uint8Array(r.size),t=r.data,o=r.dtype;if(Lr(o)){let i=BigInt(Math.round(e)),s=t;for(let n=0;n<r.size;n++)a[n]=s[n]===i?1:0}else for(let i=0;i<r.size;i++)a[i]=t[i]===e?1:0;return Cr.fromData(a,Array.from(r.shape),"bool")}function GWr(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 Cr.fromData(a,Array.from(r.shape),"bool")}function $Wr(r,e,a,t){let o=new Uint8Array(r.size),i=r.data,s=r.dtype;if(Lr(s)){let n=i;for(let v=0;v<r.size;v++){let u=Number(n[v]),f=Math.abs(u-e),c=t+a*Math.abs(e);o[v]=f<=c?1:0}}else for(let n=0;n<r.size;n++){let v=Number(i[n]),u=Math.abs(v-e),f=t+a*Math.abs(e);o[n]=u<=f?1:0}return Cr.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 Te(r,e,a,t){let o=t.length,i=new Array(o),s=Array.from(t).filter((v,u)=>u!==e),n=r;for(let v=s.length-1;v>=0;v--)i[v>=e?v+1:v]=n%s[v],n=Math.floor(n/s[v]);return i[e]=a,i}function Ro(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,s=r.size,n=r.data;if(e===void 0)if(Lr(t)){let d=n,y=BigInt(0);for(let h=0;h<s;h++)y+=d[h];return Number(y)}else{let d=0;for(let y=0;y<s;y++)d+=Number(n[y]);return d}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 u=Array.from(o).filter((d,y)=>y!==v);if(u.length===0)return Ro(r);let f=Cr.zeros(u,t),c=f.data,p=o[v],m=u.reduce((d,y)=>d*y,1);if(Lr(t)){let d=n,y=c;for(let h=0;h<m;h++){let g=BigInt(0);for(let x=0;x<p;x++){let S=Te(h,v,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=Te(d,v,h,o),x=je(g,o);y+=Number(n[x])}c[d]=y}if(a){let d=[...o];return d[v]=1,Cr.fromData(c,d,t)}return f}function ec(r,e,a=!1){let t=r.dtype,o=r.shape;if(e===void 0)return Ro(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 s=Ro(r,e,a);if(typeof s=="number")return s/o[i];let n=o[i],v=t;(Lr(t)||t.startsWith("int")||t.startsWith("uint"))&&(v="float64");let u=Cr.zeros(Array.from(s.shape),v),f=u.data,c=s.data;if(Lr(t)){let p=c;for(let m=0;m<f.length;m++)f[m]=Number(p[m])/n}else for(let p=0;p<f.length;p++)f[p]=Number(c[p])/n;return u}function ac(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,s=r.size,n=r.data;if(e===void 0){if(s===0)throw new Error("max of empty array");let d=n[0];for(let y=1;y<s;y++)n[y]>d&&(d=n[y]);return Number(d)}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 u=Array.from(o).filter((d,y)=>y!==v);if(u.length===0)return ac(r);let f=Cr.zeros(u,t),c=f.data,p=o[v],m=u.reduce((d,y)=>d*y,1);if(Lr(t)){let d=n,y=c;for(let h=0;h<m;h++){let g=Te(h,v,0,o),x=je(g,o),S=d[x];for(let w=1;w<p;w++){let A=Te(h,v,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=Te(d,v,h,o),x=je(g,o),S=Number(n[x]);S>y&&(y=S)}c[d]=y}if(a){let d=[...o];return d[v]=1,Cr.fromData(c,d,t)}return f}function tc(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,s=r.size,n=r.data;if(e===void 0)if(Lr(t)){let d=n,y=BigInt(1);for(let h=0;h<s;h++)y*=d[h];return Number(y)}else{let d=1;for(let y=0;y<s;y++)d*=Number(n[y]);return d}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 u=Array.from(o).filter((d,y)=>y!==v);if(u.length===0)return tc(r);let f=Cr.zeros(u,t),c=f.data,p=o[v],m=u.reduce((d,y)=>d*y,1);if(Lr(t)){let d=n,y=c;for(let h=0;h<m;h++){let g=BigInt(1);for(let x=0;x<p;x++){let S=Te(h,v,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=Te(d,v,h,o),x=je(g,o);y*=Number(n[x])}c[d]=y}if(a){let d=[...o];return d[v]=1,Cr.fromData(c,d,t)}return f}function ic(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,s=r.size,n=r.data;if(e===void 0){if(s===0)throw new Error("min of empty array");let d=n[0];for(let y=1;y<s;y++)n[y]<d&&(d=n[y]);return Number(d)}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 u=Array.from(o).filter((d,y)=>y!==v);if(u.length===0)return ic(r);let f=Cr.zeros(u,t),c=f.data,p=o[v],m=u.reduce((d,y)=>d*y,1);if(Lr(t)){let d=n,y=c;for(let h=0;h<m;h++){let g=Te(h,v,0,o),x=je(g,o),S=d[x];for(let w=1;w<p;w++){let A=Te(h,v,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=Te(d,v,h,o),x=je(g,o),S=Number(n[x]);S<y&&(y=S)}c[d]=y}if(a){let d=[...o];return d[v]=1,Cr.fromData(c,d,t)}return f}function oc(r,e){let a=r.dtype,t=r.shape,o=t.length,i=r.size,s=r.data;if(e===void 0){if(i===0)throw new Error("argmin of empty array");let m=s[0],d=0;for(let y=1;y<i;y++)s[y]<m&&(m=s[y],d=y);return d}let n=e;if(n<0&&(n=o+n),n<0||n>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let v=Array.from(t).filter((m,d)=>d!==n);if(v.length===0)return oc(r);let u=Cr.zeros(v,"int32"),f=u.data,c=t[n],p=v.reduce((m,d)=>m*d,1);if(Lr(a)){let m=s;for(let d=0;d<p;d++){let y=Te(d,n,0,t),h=je(y,t),g=m[h],x=0;for(let S=1;S<c;S++){let w=Te(d,n,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<c;h++){let g=Te(m,n,h,t),x=je(g,t),S=Number(s[x]);S<d&&(d=S,y=h)}f[m]=y}return u}function sc(r,e){let a=r.dtype,t=r.shape,o=t.length,i=r.size,s=r.data;if(e===void 0){if(i===0)throw new Error("argmax of empty array");let m=s[0],d=0;for(let y=1;y<i;y++)s[y]>m&&(m=s[y],d=y);return d}let n=e;if(n<0&&(n=o+n),n<0||n>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let v=Array.from(t).filter((m,d)=>d!==n);if(v.length===0)return sc(r);let u=Cr.zeros(v,"int32"),f=u.data,c=t[n],p=v.reduce((m,d)=>m*d,1);if(Lr(a)){let m=s;for(let d=0;d<p;d++){let y=Te(d,n,0,t),h=je(y,t),g=m[h],x=0;for(let S=1;S<c;S++){let w=Te(d,n,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<c;h++){let g=Te(m,n,h,t),x=je(g,t),S=Number(s[x]);S>d&&(d=S,y=h)}f[m]=y}return u}function nc(r,e,a=0,t=!1){let o=r.shape,i=o.length,s=r.size,n=r.data,v=ec(r,e,t);if(e===void 0){let g=v,x=0;for(let S=0;S<s;S++){let w=Number(n[S])-g;x+=w*w}return x/(s-a)}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 f=o[u],c=v,p=c.data,m=t?c.shape:Array.from(o).filter((g,x)=>x!==u),d=Cr.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=Te(g,u,w,o),_=je(A,o),b=Number(n[_])-S;x+=b*b}y[g]=x/(f-a)}return d}function HJ(r,e,a=0,t=!1){let o=nc(r,e,a,t);if(typeof o=="number")return Math.sqrt(o);let i=Cr.zeros(Array.from(o.shape),"float64"),s=o.data,n=i.data;for(let v=0;v<s.length;v++)n[v]=Math.sqrt(Number(s[v]));return i}function vc(r,e,a=!1){let t=r.shape,o=t.length,i=r.size,s=r.data;if(e===void 0){for(let m=0;m<i;m++)if(!s[m])return!1;return!0}let n=e;if(n<0&&(n=o+n),n<0||n>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let v=Array.from(t).filter((m,d)=>d!==n);if(v.length===0)return vc(r);let u=Cr.zeros(v,"bool"),f=u.data,c=t[n],p=v.reduce((m,d)=>m*d,1);for(let m=0;m<p;m++){let d=!0;for(let y=0;y<c;y++){let h=Te(m,n,y,t),g=je(h,t);if(!s[g]){d=!1;break}}f[m]=d?1:0}if(a){let m=[...t];return m[n]=1,Cr.fromData(f,m,"bool")}return u}function uc(r,e,a=!1){let t=r.shape,o=t.length,i=r.size,s=r.data;if(e===void 0){for(let m=0;m<i;m++)if(s[m])return!0;return!1}let n=e;if(n<0&&(n=o+n),n<0||n>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let v=Array.from(t).filter((m,d)=>d!==n);if(v.length===0)return uc(r);let u=Cr.zeros(v,"bool"),f=u.data,c=t[n],p=v.reduce((m,d)=>m*d,1);for(let m=0;m<p;m++){let d=!1;for(let y=0;y<c;y++){let h=Te(m,n,y,t),g=je(h,t);if(s[g]){d=!0;break}}f[m]=d?1:0}if(a){let m=[...t];return m[n]=1,Cr.fromData(f,m,"bool")}return u}var Ja=He(Zl(),1);function ZJ(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),c=a/f;if(!Number.isInteger(c))throw new Error(`cannot reshape array of size ${a} into shape ${JSON.stringify(e)}`);i=e.map((p,m)=>m===o?c:p)}else i=e;if(i.reduce((f,c)=>f*c,1)!==a)throw new Error(`cannot reshape array of size ${a} into shape ${JSON.stringify(i)}`);if(r.isCContiguous){let f=r.data,c=Ja.default.ndarray(ne(t),f,i,Vi(i),0,"row-major");return Cr.fromStdlib(c,t)}let v=r.copy().data,u=Ja.default.ndarray(ne(t),v,i,Vi(i),0,"row-major");return Cr.fromStdlib(u,t)}function fc(r){let e=r.stdlib,a=r.shape,t=a.length,o=r.size,i=r.dtype,s=Oe(i);if(!s)throw new Error(`Cannot flatten array with dtype ${i}`);let n=new s(o),v=0,u=(c,p)=>{if(p===t){let m=e.get(...c);n[v++]=m;return}for(let m=0;m<a[p];m++)c[p]=m,u(c,p+1)};u(new Array(t),0);let f=Ja.default.ndarray(ne(i),n,[o],[1],0,"row-major");return Cr.fromStdlib(f,i)}function QJ(r){let e=r.size,a=r.dtype;if(r.isCContiguous){let t=r.data,o=Ja.default.ndarray(ne(a),t,[e],[1],0,"row-major");return Cr.fromStdlib(o,a)}return fc(r)}function rX(r,e){let a=r.shape,t=a.length,o=r.strides,i=r.data,s=r.dtype,n=r.stdlib,v;if(e===void 0)v=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)}v=e.map(d=>d<0?t+d:d)}let u=v.map(m=>a[m]),f=Array.from(o),c=v.map(m=>f[m]),p=Ja.default.ndarray(ne(s),i,u,c,Ja.default.offset(n),"row-major");return Cr.fromStdlib(p,s)}function eX(r,e){let a=r.shape,t=a.length,o=r.data,i=r.dtype;if(e===void 0){let s=Array.from(a).filter(u=>u!==1);s.length===0&&s.push(1);let n=Vi(s),v=Ja.default.ndarray(ne(i),o,s,n,0,"row-major");return Cr.fromStdlib(v,i)}else{let s=e<0?t+e:e;if(s<0||s>=t)throw new Error(`axis ${e} is out of bounds for array of dimension ${t}`);if(a[s]!==1)throw new Error(`cannot select an axis which has size not equal to one (axis ${e} has size ${a[s]})`);let n=Array.from(a).filter((f,c)=>c!==s),v=Vi(n),u=Ja.default.ndarray(ne(i),o,n,v,0,"row-major");return Cr.fromStdlib(u,i)}}function aX(r,e){let a=r.shape,t=a.length,o=r.data,i=r.dtype,s=e;if(s<0&&(s=t+e+1),s<0||s>t)throw new Error(`axis ${e} is out of bounds for array of dimension ${t+1}`);let n=[...Array.from(a)];n.splice(s,0,1);let v=Vi(n),u=Ja.default.ndarray(ne(i),o,n,v,0,"row-major");return Cr.fromStdlib(u,i)}var QX=He(ZX(),1);function rK(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 s=wn(r.dtype,e.dtype),n=s.startsWith("int")||s.startsWith("uint")||s==="bool"?"float64":s;if(n!=="float64")throw new Error(`matmul currently only supports float64, got ${n}`);let v=r.dtype==="float64"?r.data:Float64Array.from(Array.from(r.data).map(Number)),u=e.dtype==="float64"?e.data:Float64Array.from(Array.from(e.data).map(Number)),f=Cr.zeros([a,i],"float64");return(0,QX.default)("row-major","no-transpose","no-transpose",a,i,t,1,v,t,u,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 Cr(this._data,this._dtype)}static _fromStorage(e,a){return new r(e.stdlib,e.dtype,a)}get shape(){return Array.from(ce.default.shape(this._data))}get ndim(){return ce.default.ndims(this._data)}get size(){return ce.default.numel(this._data)}get dtype(){return this._dtype||ce.default.dtype(this._data)}get data(){return ce.default.dataBuffer(this._data)}get strides(){return Array.from(ce.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,s)=>{let n=i;if(n<0&&(n=this.shape[s]+n),n<0||n>=this.shape[s])throw new Error(`Index ${i} is out of bounds for axis ${s} with size ${this.shape[s]}`);return n}),t=this._data.get(...a),o=this.dtype;return Lr(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((s,n)=>{let v=s;if(v<0&&(v=this.shape[n]+v),v<0||v>=this.shape[n])throw new Error(`Index ${s} is out of bounds for axis ${n} with size ${this.shape[n]}`);return v}),o=this.dtype,i;Lr(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(Lr(e)){let i=new o(this.size),s=t;for(let v=0;v<this.size;v++)i[v]=s[v];let n=ce.default.ndarray(ne(e),i,a,Va(a),0,"row-major");return new r(n,e)}else{let i=new o(this.size),s=t;i.set(s);let n=ce.default.ndarray(ne(e),i,a,Va(a),0,"row-major");return new r(n,e)}}astype(e,a=!0){let t=this.dtype;if(t===e&&!a)return this;if(t===e&&a)return Xa(this.toArray(),e);let o=Array.from(this.shape),i=this.size,s=Oe(e);if(!s)throw new Error(`Cannot convert to dtype ${e}`);let n=new s(i),v=this.data;if(Lr(t)&&!Lr(e)){let f=v;if(e==="bool")for(let c=0;c<i;c++)n[c]=f[c]!==BigInt(0)?1:0;else for(let c=0;c<i;c++)n[c]=Number(f[c])}else if(!Lr(t)&&Lr(e)){let f=v;for(let c=0;c<i;c++)n[c]=BigInt(Math.round(Number(f[c])))}else if(e==="bool"){let f=v;for(let c=0;c<i;c++)n[c]=f[c]!==0?1:0}else if(t==="bool"&&!Lr(e)){let f=v;for(let c=0;c<i;c++)n[c]=f[c]}else if(!Lr(t)&&!Lr(e)){let f=v;for(let c=0;c<i;c++)n[c]=f[c]}else{let f=v;for(let c=0;c<i;c++)n[c]=f[c]}let u=ce.default.ndarray(ne(e),n,o,Va(o),0,"row-major");return new r(u,e)}add(e){let a=typeof e=="number"?e:e._storage,t=LJ(this._storage,a);return r._fromStorage(t)}subtract(e){let a=typeof e=="number"?e:e._storage,t=CJ(this._storage,a);return r._fromStorage(t)}multiply(e){let a=typeof e=="number"?e:e._storage,t=UJ(this._storage,a);return r._fromStorage(t)}divide(e){let a=typeof e=="number"?e:e._storage,t=MJ(this._storage,a);return r._fromStorage(t)}greater(e){let a=typeof e=="number"?e:e._storage,t=GJ(this._storage,a);return r._fromStorage(t)}greater_equal(e){let a=typeof e=="number"?e:e._storage,t=$J(this._storage,a);return r._fromStorage(t)}less(e){let a=typeof e=="number"?e:e._storage,t=YJ(this._storage,a);return r._fromStorage(t)}less_equal(e){let a=typeof e=="number"?e:e._storage,t=WJ(this._storage,a);return r._fromStorage(t)}equal(e){let a=typeof e=="number"?e:e._storage,t=JJ(this._storage,a);return r._fromStorage(t)}not_equal(e){let a=typeof e=="number"?e:e._storage,t=XJ(this._storage,a);return r._fromStorage(t)}isclose(e,a=1e-5,t=1e-8){let o=typeof e=="number"?e:e._storage,i=rc(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 KJ(this._storage,o,a,t)}sum(e,a=!1){let t=Ro(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}mean(e,a=!1){let t=ec(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}max(e,a=!1){let t=ac(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}min(e,a=!1){let t=ic(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}prod(e,a=!1){let t=tc(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}argmin(e){let a=oc(this._storage,e);return typeof a=="number"?a:r._fromStorage(a)}argmax(e){let a=sc(this._storage,e);return typeof a=="number"?a:r._fromStorage(a)}var(e,a=0,t=!1){let o=nc(this._storage,e,a,t);return typeof o=="number"?o:r._fromStorage(o)}std(e,a=0,t=!1){let o=HJ(this._storage,e,a,t);return typeof o=="number"?o:r._fromStorage(o)}all(e,a=!1){let t=vc(this._storage,e,a);return typeof t=="boolean"?t:r._fromStorage(t)}any(e,a=!1){let t=uc(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=ZJ(this._storage,a),i=t.data===this.data?this._base??this:void 0;return r._fromStorage(t,i)}flatten(){let e=fc(this._storage);return r._fromStorage(e)}ravel(){let e=QJ(this._storage),t=e.data===this.data?this._base??this:void 0;return r._fromStorage(e,t)}transpose(e){let a=rX(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}squeeze(e){let a=eX(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}expand_dims(e){let a=aX(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}matmul(e){let a=rK(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((s,n)=>{let v=NJ(s);return DJ(v,this.shape[n])});for(;a.length<this.ndim;)a.push({start:0,stop:this.shape[a.length],step:1,isIndex:!1});let t=a.map((s,n)=>{if(s.isIndex)return s.start;{let v=s.start,u=s.stop;return s.step>0?(v===0&&(v=null),u===this.shape[n]&&(u=null)):(v===this.shape[n]-1&&(v=null),u===-1&&(u=null)),new aK.default(v,u,s.step)}}),o=(0,eK.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():ce.default.ndarray2array(this._data)}};function An(r,e=Ke){let a=Oe(e);if(!a)throw new Error(`Cannot create zeros array with dtype ${e}`);let t=r.reduce((s,n)=>s*n,1),o=new a(t),i=ce.default.ndarray(ne(e),o,r,Va(r),0,"row-major");return new Re(i,e)}function Va(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 gc(r,e=Ke){let a=Oe(e);if(!a)throw new Error(`Cannot create ones array with dtype ${e}`);let t=r.reduce((s,n)=>s*n,1),o=new a(t);Lr(e)?o.fill(BigInt(1)):o.fill(1);let i=ce.default.ndarray(ne(e),o,r,Va(r),0,"row-major");return new Re(i,e)}function Xa(r,e){if(e===void 0){let f=ce.default.array(r);return new Re(f)}let a=ce.default.array(r);if(ce.default.dtype(a)===e)return new Re(a);let o=Array.from(ce.default.shape(a)),i=o.reduce((f,c)=>f*c,1),s=Oe(e);if(!s)throw new Error(`Cannot create array with dtype ${e}`);let n=new s(i),v=ce.default.dataBuffer(a);if(Lr(e))for(let f=0;f<i;f++)n[f]=BigInt(Math.round(Number(v[f])));else if(e==="bool")for(let f=0;f<i;f++)n[f]=v[f]?1:0;else for(let f=0;f<i;f++)n[f]=Number(v[f]);let u=ce.default.ndarray(ne(e),n,o,Va(o),0,"row-major");return new Re(u,e)}function tK(r,e,a=1,t=Ke){let o=r,i=e;if(e===void 0&&(o=0,i=r),i===void 0)throw new Error("stop is required");let s=Math.max(0,Math.ceil((i-o)/a)),n=Oe(t);if(!n)throw new Error(`Cannot create arange array with dtype ${t}`);let v=new n(s);if(Lr(t))for(let f=0;f<s;f++)v[f]=BigInt(Math.round(o+f*a));else if(t==="bool")for(let f=0;f<s;f++)v[f]=o+f*a!==0?1:0;else for(let f=0;f<s;f++)v[f]=o+f*a;let u=ce.default.ndarray(ne(t),v,[s],[1],0,"row-major");return new Re(u,t)}function iK(r,e,a=50,t=Ke){if(a<0)throw new Error("num must be non-negative");if(a===0)return Xa([],t);if(a===1)return Xa([r],t);let o=Oe(t);if(!o)throw new Error(`Cannot create linspace array with dtype ${t}`);let i=new o(a),s=(e-r)/(a-1);if(Lr(t))for(let v=0;v<a;v++)i[v]=BigInt(Math.round(r+v*s));else if(t==="bool")for(let v=0;v<a;v++)i[v]=r+v*s!==0?1:0;else for(let v=0;v<a;v++)i[v]=r+v*s;let n=ce.default.ndarray(ne(t),i,[a],[1],0,"row-major");return new Re(n,t)}function oK(r,e,a=50,t=10,o=Ke){if(a<0)throw new Error("num must be non-negative");if(a===0)return Xa([],o);if(a===1)return Xa([Math.pow(t,r)],o);let i=Oe(o);if(!i)throw new Error(`Cannot create logspace array with dtype ${o}`);let s=new i(a),n=(e-r)/(a-1);if(Lr(o))for(let u=0;u<a;u++){let f=r+u*n;s[u]=BigInt(Math.round(Math.pow(t,f)))}else if(o==="bool")for(let u=0;u<a;u++){let f=r+u*n;s[u]=Math.pow(t,f)!==0?1:0}else for(let u=0;u<a;u++){let f=r+u*n;s[u]=Math.pow(t,f)}let v=ce.default.ndarray(ne(o),s,[a],[1],0,"row-major");return new Re(v,o)}function sK(r,e,a=50,t=Ke){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 Xa([],t);if(a===1)return Xa([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 s=Oe(t);if(!s)throw new Error(`Cannot create geomspace array with dtype ${t}`);let n=new s(a),v=Math.log(Math.abs(r)),f=(Math.log(Math.abs(e))-v)/(a-1);if(Lr(t))for(let p=0;p<a;p++){let m=o*Math.exp(v+p*f);n[p]=BigInt(Math.round(m))}else if(t==="bool")for(let p=0;p<a;p++){let m=o*Math.exp(v+p*f);n[p]=m!==0?1:0}else for(let p=0;p<a;p++){let m=o*Math.exp(v+p*f);n[p]=m}let c=ce.default.ndarray(ne(t),n,[a],[1],0,"row-major");return new Re(c,t)}function bc(r,e,a=0,t=Ke){let o=e??r,i=An([r,o],t),s=i.data;if(Lr(t)){let n=s;for(let v=0;v<r;v++){let u=v+a;u>=0&&u<o&&(n[v*o+u]=BigInt(1))}}else{let n=s;for(let v=0;v<r;v++){let u=v+a;u>=0&&u<o&&(n[v*o+u]=1)}}return i}function xc(r,e=Ke){let a=Oe(e);if(!a)throw new Error(`Cannot create empty array with dtype ${e}`);let t=r.reduce((s,n)=>s*n,1),o=new a(t),i=ce.default.ndarray(ne(e),o,r,Va(r),0,"row-major");return new Re(i,e)}function qc(r,e,a){let t=a;t||(typeof e=="bigint"?t="int64":typeof e=="boolean"?t="bool":Number.isInteger(e)?t="int32":t=Ke);let o=Oe(t);if(!o)throw new Error(`Cannot create full array with dtype ${t}`);let i=r.reduce((v,u)=>v*u,1),s=new o(i);if(Lr(t)){let v=typeof e=="bigint"?e:BigInt(Math.round(Number(e)));s.fill(v)}else t==="bool"?s.fill(e?1:0):s.fill(Number(e));let n=ce.default.ndarray(ne(t),s,r,Va(r),0,"row-major");return new Re(n,t)}function nK(r,e=Ke){return bc(r,r,0,e)}function vK(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),s=r.data;if(Lr(e))for(let v=0;v<t;v++)i[v]=BigInt(Math.round(Number(s[v])));else if(e==="bool")for(let v=0;v<t;v++)i[v]=s[v]?1:0;else for(let v=0;v<t;v++)i[v]=Number(s[v]);let n=ce.default.ndarray(ne(e),i,a,Va(a),0,"row-major");return new Re(n,e)}return Xa(r,e)}function uK(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,s=new t(o);if(r.flags.C_CONTIGUOUS)Lr(a),s.set(i);else{let v=Array.from(e),u=Va(v);for(let f=0;f<o;f++){let c=[],p=f;for(let d=0;d<v.length;d++){let y=u[d],h=Math.floor(p/y);c.push(h),p-=h*y}let m=r.get(c);Lr(a),s[f]=m}}let n=ce.default.ndarray(ne(a),s,e,Va(e),0,"row-major");return new Re(n,a)}function fK(r,e){return An(Array.from(r.shape),e??r.dtype)}function lK(r,e){return gc(Array.from(r.shape),e??r.dtype)}function cK(r,e){return xc(Array.from(r.shape),e??r.dtype)}function dK(r,e,a){return qc(Array.from(r.shape),e,a??r.dtype)}var UJr="0.1.0";0&&(module.exports={NDArray,__version__,arange,array,asarray,copy,empty,empty_like,eye,full,full_like,geomspace,identity,linspace,logspace,ones,ones_like,zeros,zeros_like});
|
|
3
|
+
\f\v\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,xC="\u180E";function tVr(){return bC.call(aVr)===""&&bC.call(xC)===xC}qC.exports=tVr});var EC=c((I0e,SC)=>{"use strict";var iVr=Qa(),oVr=/^[\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 sVr(r){return iVr(r,oVr,"$1")}SC.exports=sVr});var _C=c((N0e,AC)=>{"use strict";var nVr=Gf();function vVr(r){return nVr.call(r)}AC.exports=vVr});var Et=c((D0e,jC)=>{"use strict";var uVr=gC(),fVr=wC(),lVr=EC(),cVr=_C(),$f;uVr&&fVr()?$f=cVr:$f=lVr;jC.exports=$f});var IC=c((k0e,OC)=>{"use strict";var dVr=Et(),pVr=Pe(),Yf="Slice(",TC=3,yVr=/\s*,\s*/,mVr=/^-?[0-9]+$/;function gVr(r){var e,a,t,o,i;if(r.substring(0,Yf.length)!==Yf||(t=r.length-1,r[t]!==")")||(r=dVr(r.substring(Yf.length,t)),r=r.split(yVr),r.length!==TC))return null;for(e=[],i=0;i<TC;i++){if(o=r[i],o==="null")a=null;else if(mVr.test(o))a=parseInt(o,10);else return null;e.push(a)}return new pVr(e[0],e[1],e[2])}OC.exports=gVr});var Js=c((R0e,NC)=>{"use strict";var hVr=IC();NC.exports=hVr});var kC=c((B0e,DC)=>{"use strict";var bVr=Et(),xVr=Js(),qVr=Ja(),wVr=ge(),Wf="MultiSlice(",SVr=/\s*,\s*/,EVr=/^-?[0-9]+$/;function AVr(r){var e,a,t,o,i;if(r.substring(0,Wf.length)!==Wf||(t=r.length-1,r[t]!==")"))return null;if(r=bVr(r.substring(Wf.length,t)),r=r.split(SVr),t=r.length,t===1&&r[0]==="")return new qVr;for(e=[],i=0;i<t;i++){if(o=r[i],o[0]==="S"){if(o=r.slice(i,i+3).join(","),a=xVr(o),a===null)return null;i+=2}else if(o==="null")a=null;else if(EVr.test(o))a=parseInt(o,10);else return null;e.push(a)}return wVr(e)}DC.exports=AVr});var jo=c((z0e,RC)=>{"use strict";var _Vr=kC();RC.exports=_Vr});var zC=c((V0e,BC)=>{"use strict";var jVr=/(?:\s*-\s*)(?=\d+)(\d+)$/;BC.exports=jVr});var PC=c((P0e,VC)=>{"use strict";var TVr=/(?:\s*\/\s*)(?=\d*\.?\d+)(\d*\.?\d+)$/;VC.exports=TVr});var CC=c((F0e,LC)=>{"use strict";var FC=Ze(),OVr=zC(),IVr=PC();function NVr(r,e,a,t){var o;if(r==="end")return e;if(o=r.match(OVr),o){if(r=e-parseInt(o[1],10),r<0){if(t)return-2;r=0}return r}return o=r.match(IVr),o?(r=parseFloat(o[1]),r<1?t?-2:-1:a&&e>0&&r!==1?FC((e-1)/r):FC(e/r)):-1}LC.exports=NVr});var MC=c((L0e,UC)=>{"use strict";var DVr=/\s*:\s*/;UC.exports=DVr});var $C=c((C0e,GC)=>{"use strict";var kVr=/^[-+]?[0-9]+$/;GC.exports=kVr});var WC=c((U0e,YC)=>{"use strict";var RVr=/^end/;YC.exports=RVr});var KC=c((M0e,JC)=>{"use strict";function BVr(){return{code:"ERR_SLICE_INVALID_SUBSEQUENCE"}}JC.exports=BVr});var HC=c((G0e,XC)=>{"use strict";function zVr(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}XC.exports=zVr});var QC=c(($0e,ZC)=>{"use strict";function VVr(){return{code:"ERR_SLICE_INVALID_INCREMENT"}}ZC.exports=VVr});var iU=c((Y0e,tU)=>{"use strict";var rU=Pe(),PVr=Et(),eU=CC(),FVr=MC(),Jf=$C(),aU=WC(),ji=KC(),Jt=HC(),LVr=QC();function CVr(r,e,a){var t,o,i;if(t=PVr(r).split(FVr),o=t.length,o<2||o>3)return ji();if(o===3)if(i=t[2],i.length===0)t[2]=1;else{if(Jf.test(i)===!1)return ji();if(i=parseInt(i,10),i===0)return LVr();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(aU.test(i)){if(i=eU(i,e,t[2]<0,a),i<0)return i===-2?Jt():ji();t[2]<0&&i>=e&&(i-=1),t[0]=i}else if(Jf.test(i)){if(i=parseInt(i,10),i<0){if(i=e+i,i<0){if(a)return Jt();i=0}}else if(i>=e){if(a)return Jt();t[2]<0?i=e-1:i=e}t[0]=i}else return ji();if(i=t[1],i.length===0)t[2]<0?t[1]=null:t[1]=e;else if(aU.test(i)){if(i=eU(i,e,t[2]<0,a),i<0)return i===-2?Jt():ji();t[1]=i}else if(Jf.test(i)){if(i=parseInt(i,10),i<0){if(i=e+i,i<0)if(t[2]>0){if(a)return Jt();i=0}else{if(a&&i<-1)return Jt();i=null}}else if(i>e){if(a)return Jt();i=e}t[1]=i}else return ji();return e===0?new rU(0,0,t[2]):new rU(t[0],t[1],t[2])}tU.exports=CVr});var sU=c((W0e,oU)=>{"use strict";var UVr=iU();oU.exports=UVr});var vU=c((J0e,nU)=>{"use strict";function MVr(){return{code:"ERR_SLICE_INVALID_ELLIPSIS"}}nU.exports=MVr});var fU=c((K0e,uU)=>{"use strict";function GVr(){return{code:"ERR_SLICE_INSUFFICIENT_DIMENSIONS"}}uU.exports=GVr});var cU=c((X0e,lU)=>{"use strict";function $Vr(){return{code:"ERR_SLICE_TOO_MANY_DIMENSIONS"}}lU.exports=$Vr});var pU=c((H0e,dU)=>{"use strict";function YVr(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}dU.exports=YVr});var mU=c((Z0e,yU)=>{"use strict";var WVr=/\s*,\s*/;yU.exports=WVr});var hU=c((Q0e,gU)=>{"use strict";var JVr=/^[-+]?[0-9]+$/;gU.exports=JVr});var qU=c((rpe,xU)=>{"use strict";var KVr=Et(),XVr=Pe(),HVr=ge(),ZVr=sU(),QVr=vU(),rPr=fU(),ePr=cU(),bU=pU(),aPr=mU(),tPr=hU();function iPr(r,e,a){var t,o,i,n,s,v,u,f,l,d;for(s=e.length,t=KVr(r).split(aPr),v=t.length,i=!1,o=[],l=0,f=0;f<v;f++){if(u=t[f],u==="..."){if(i)return QVr();for(i=!0,d=0;d<s-v+1;d++)o.push(new XVr(0,e[l],1)),l+=1;continue}if(n=e[l],tPr.test(u)){if(u=parseInt(u,10),a){if(u<0){if(n+u<0)return bU()}else if(u>=n)return bU()}l+=1}else{if(u=ZVr(u,n,a),u.code)return u;l+=1}o.push(u)}return o.length!==s?o.length<s?rPr():ePr():HVr(o)}xU.exports=iPr});var Ks=c((epe,wU)=>{"use strict";var oPr=qU();wU.exports=oPr});var Kf=c((ape,SU)=>{"use strict";var sPr=/^-?[0-9]+$/;SU.exports=sPr});var Xf=c((tpe,EU)=>{"use strict";var nPr=/:/;EU.exports=nPr});var _U=c((ipe,AU)=>{"use strict";var vPr=Et(),uPr=Qa(),Hf=Ja(),fPr=jo(),lPr=Ks(),cPr=Js(),Kt=cr(),dPr=Kf(),pPr=Xf();function yPr(r,e){var a,t,o,i;if(t=vPr(e),o=t[0],o==="S"){if(i=cPr(e),i===null)throw new Error(Kt("invalid operation. Unsupported slice operation. Value: `%s`.",e));i=new Hf(i)}else if(o==="M"){if(i=fPr(t),i===null)throw new Error(Kt("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(dPr.test(t))i=parseInt(t,10),i=new Hf(i);else if(pPr.test(t)){if(a=r.shape,i=lPr(t,a,!0),i.code)throw i.code==="ERR_SLICE_INVALID_INCREMENT"?new Error(Kt("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e)):i.code==="ERR_SLICE_INVALID_ELLIPSIS"?new Error(Kt("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e)):i.code==="ERR_SLICE_INVALID_SUBSEQUENCE"?new Error(Kt("invalid operation. Unsupported slice operation. Value: `%s`.",e)):new RangeError(Kt("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",a.join(","),uPr(t,/\.\.\.,/,"").split(",").length))}else if(t.length===0||t==="...")i=new Hf;else throw new Error(Kt("invalid operation. Unsupported slice operation. Value: `%s`.",e));return i}AU.exports=yPr});var IU=c((ope,OU)=>{"use strict";var mPr=Et(),gPr=Qa(),jU=Ja(),hPr=jo(),TU=Ks(),bPr=Js(),At=cr(),xPr=Kf();function qPr(r,e,a){var t,o,i,n;if(o=mPr(e),i=o[0],i==="S"){if(n=bPr(e),n===null)throw new Error(At("invalid operation. Unsupported slice operation. Value: `%s`.",e));n=new jU(n)}else if(i==="M"){if(n=hPr(o),n===null)throw new Error(At("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(xPr.test(o))n=parseInt(o,10),n=new jU(n);else if(o.length>0){if(t=r.shape,n=TU(o,t,!0),n.code){if(n.code==="ERR_SLICE_INVALID_INCREMENT")throw new Error(At("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_ELLIPSIS")throw new Error(At("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_SUBSEQUENCE")throw new Error(At("invalid operation. Unsupported slice operation. Value: `%s`.",e));if(n.code==="ERR_SLICE_TOO_MANY_DIMENSIONS")throw new RangeError(At("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",r.shape.join(","),gPr(o,/\.\.\.,/,"").split(",").length));if(n.code==="ERR_SLICE_OUT_OF_BOUNDS"){if(a)throw new RangeError(At("invalid operation. Slice exceeds array bounds. Array shape: (%s).",t.join(",")));n=TU(o,t,!1)}}}else throw new RangeError(At("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}OU.exports=qPr});var DU=c((spe,NU)=>{"use strict";var Xs=Qa(),wPr=jo();function SPr(r){return r=Xs(r,/^,/,"null,"),r=Xs(r,/,$/,",null"),r=Xs(r,/,(?=,)/g,",null"),r=Xs(r,/undefined/g,"null"),wPr("MultiSlice("+r+")")}NU.exports=SPr});var RU=c((npe,kU)=>{"use strict";var EPr=DU();kU.exports=EPr});var VU=c((vpe,zU)=>{"use strict";var APr=Et(),_Pr=jo(),BU=Ks(),jPr=RU(),Ti=cr(),TPr=Xf();function OPr(r,e,a){var t,o,i,n;if(o=APr(e),i=o[0],i==="M"){if(n=_Pr(o),n===null)throw new Error(Ti("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(TPr.test(o)||o==="..."){if(t=r.shape,n=BU(o,t,!0),n.code){if(n.code==="ERR_SLICE_INVALID_INCREMENT")throw new Error(Ti("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_ELLIPSIS")throw new Error(Ti("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_SUBSEQUENCE")throw new Error(Ti("invalid operation. Unsupported slice operation. Value: `%s`.",e));if(n.code==="ERR_SLICE_OUT_OF_BOUNDS"){if(a)throw new RangeError(Ti("invalid operation. Slice exceeds array bounds. Array shape: (%s).",t.join(",")));n=BU(o,t,!1)}}}else if(n=jPr(o),n===null)throw new Error(Ti("invalid operation. Unsupported slice operation. Value: `%s`.",e));return n}zU.exports=OPr});var FU=c((upe,PU)=>{"use strict";var IPr=typeof Object.getOwnPropertyNames<"u";PU.exports=IPr});var UU=c((fpe,CU)=>{"use strict";var LU=Dt(),NPr=LU.getOwnPropertyNames;function DPr(r){return NPr(LU(r))}CU.exports=DPr});var GU=c((lpe,MU)=>{"use strict";var kPr=Dt(),RPr=qa();function BPr(r){return RPr(kPr(r))}MU.exports=BPr});var YU=c((cpe,$U)=>{"use strict";var zPr=FU(),VPr=UU(),PPr=GU(),Zf;zPr?Zf=VPr:Zf=PPr;$U.exports=Zf});var KU=c((dpe,JU)=>{"use strict";var FPr=Gu(),LPr=YU(),CPr=kt(),UPr=Dt();function WU(r,e){var a;for(a=0;a<r.length;a++)if(r[a]===e)return!0;return!1}function MPr(r){var e,a,t,o;if(r==null)return[];a=UPr(r),e=[];do{for(t=LPr(a),o=0;o<t.length;o++)WU(e,t[o])===!1&&e.push(t[o]);for(t=FPr(a),o=0;o<t.length;o++)WU(e,t[o])===!1&&e.push(t[o]);a=CPr(a)}while(a);return e}JU.exports=MPr});var HU=c((ppe,XU)=>{"use strict";var GPr=KU();XU.exports=GPr});var Qf=c((ype,ZU)=>{"use strict";var $Pr=HU(),YPr=Ve().factory,WPr=da(),JPr=Oa(),KPr=YPr($Pr(new WPr("generic",[0],[],[0],0,JPr.get("order"))));ZU.exports=KPr});var rM=c((mpe,QU)=>{"use strict";var XPr=Fe();function HPr(r,e,a){var t=r[e];if(XPr(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)}}QU.exports=HPr});var rl=c((gpe,eM)=>{"use strict";var ZPr=Qa();function QPr(r){return ZPr(r,/^invalid argument/,"invalid operation")}eM.exports=QPr});var tM=c((hpe,aM)=>{"use strict";var rFr=kt(),eFr=ye();function aFr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof Error)return!0;for(;r;){if(eFr(r)==="[object Error]")return!0;r=rFr(r)}return!1}aM.exports=aFr});var Xt=c((bpe,iM)=>{"use strict";var tFr=tM();iM.exports=tFr});var sM=c((xpe,oM)=>{"use strict";var iFr=kt(),oFr=ei(),sFr=Xt();function nFr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof RangeError)return!0;if(sFr(r))for(;r;){if(oFr(r)==="rangeerror")return!0;r=iFr(r)}return!1}oM.exports=nFr});var vM=c((qpe,nM)=>{"use strict";var vFr=sM();nM.exports=vFr});var fM=c((wpe,uM)=>{"use strict";var uFr=kt(),fFr=ei(),lFr=Xt();function cFr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof TypeError)return!0;if(lFr(r))for(;r;){if(fFr(r)==="typeerror")return!0;r=uFr(r)}return!1}uM.exports=cFr});var cM=c((Spe,lM)=>{"use strict";var dFr=fM();lM.exports=dFr});var pM=c((Epe,dM)=>{"use strict";var pFr=kt(),yFr=ei(),mFr=Xt();function gFr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof SyntaxError)return!0;if(mFr(r))for(;r;){if(yFr(r)==="syntaxerror")return!0;r=pFr(r)}return!1}dM.exports=gFr});var mM=c((Ape,yM)=>{"use strict";var hFr=pM();yM.exports=hFr});var el=c((_pe,gM)=>{"use strict";var bFr=vM(),xFr=cM(),qFr=mM();function wFr(r){return bFr(r)?RangeError:xFr(r)?TypeError:qFr(r)?SyntaxError:Error}gM.exports=wFr});var bM=c((jpe,hM)=>{"use strict";var SFr=pe(),EFr=rl(),AFr=el();function _Fr(r,e,a,t){var o,i,n;o=!1,n=t(r,e,o);try{return SFr(a,n,o,!1)}catch(s){throw i=AFr(s),new i(EFr(s.message))}}hM.exports=_Fr});var qM=c((Tpe,xM)=>{"use strict";var jFr=Qf(),TFr=rM(),OFr=bM();function IFr(r){return e;function e(a,t,o){return jFr(t)?TFr(a,t,o):OFr(a,t,o,r)}}xM.exports=IFr});var SM=c((Ope,wM)=>{"use strict";function NFr(r,e,a){return r[e]=a,!0}wM.exports=NFr});var AM=c((Ipe,EM)=>{"use strict";var DFr=Mo();function kFr(r){return r===0&&1/r===DFr}EM.exports=kFr});var jM=c((Npe,_M)=>{"use strict";var RFr=AM();_M.exports=RFr});var OM=c((Dpe,TM)=>{"use strict";var BFr=1401298464324817e-60;TM.exports=BFr});var NM=c((kpe,IM)=>{"use strict";var zFr=16777215;IM.exports=zFr});var kM=c((Rpe,DM)=>{"use strict";var VFr=-16777215;DM.exports=VFr});var FM=c((Bpe,PM)=>{"use strict";var PFr=Ue().isPrimitive,FFr=de().isPrimitive,BM=ba(),LFr=jM(),CFr=na(),zM=Fi(),VM=Mo(),Hs=OM(),UFr=NM(),MFr=kM(),GFr=ru(),$Fr=Xv(),YFr=Wv(),WFr=fv(),JFr=dv(),KFr=Yo();function RM(r){return r!==r||r===zM||r===VM?"float32":BM(r)?r>=MFr&&r<=UFr?"float32":"float64":r>-Hs&&r<Hs?"float64":"float32"}function XFr(r){return PFr(r)?r!==r||r===zM||r===VM?"float32":BM(r)?r===0&&LFr(r)?"float32":r<0?r>=GFr?"int8":r>=$Fr?"int16":r>=YFr?"int32":"float64":r<=WFr?"uint8":r<=JFr?"uint16":r<=KFr?"uint32":"float64":r>-Hs&&r<Hs?"float64":"float32":FFr(r)?"bool":CFr(r)?RM(r.re)==="float64"||RM(r.im)==="float64"?"complex128":"complex64":"generic"}PM.exports=XFr});var al=c((zpe,LM)=>{"use strict";var HFr=FM();LM.exports=HFr});var UM=c((Vpe,CM)=>{"use strict";var ZFr={Complex64:"complex64",Complex128:"complex128"};CM.exports=ZFr});var MM=c((Ppe,QFr)=>{QFr.exports=["complex64","complex128"]});var $M=c((Fpe,GM)=>{"use strict";var rLr=MM();function eLr(){return rLr.slice()}GM.exports=eLr});var WM=c((Lpe,YM)=>{"use strict";var aLr=$M();YM.exports=aLr});var tl=c((Cpe,JM)=>{"use strict";var tLr=WM(),iLr=tLr();JM.exports=iLr});var ZM=c((Upe,HM)=>{"use strict";var oLr=_s(),KM=tl(),XM=[],Zs;for(Zs=0;Zs<KM.length;Zs++)XM.push(oLr(KM[Zs]));HM.exports=XM});var e9=c((Mpe,r9)=>{"use strict";var sLr=yt(),nLr=UM(),vLr=ZM(),QM=tl(),uLr=QM.length;function fLr(r){var e;for(e=0;e<uLr;e++)if(r instanceof vLr[e])return QM[e];return nLr[sLr(r)]||null}r9.exports=fLr});var il=c((Gpe,a9)=>{"use strict";var lLr=e9();a9.exports=lLr});var t9=c(($pe,cLr)=>{cLr.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 n9=c((Ype,s9)=>{"use strict";var dLr=Qa(),i9=t9(),o9=/_and_generic$/;function pLr(){var r,e,a;return arguments.length===0?i9.all.slice():(a=!1,r=arguments[0],o9.test(r)&&(r=dLr(r,o9,""),r!=="all"&&(a=!0)),e=i9[r],e=e?e.slice():[],a&&e.length>0&&e.push("generic"),e)}s9.exports=pLr});var ol=c((Wpe,v9)=>{"use strict";var yLr=n9();v9.exports=yLr});var f9=c((Jpe,u9)=>{"use strict";var mLr=Ve().factory,gLr=ol(),hLr=mLr(gLr("complex_floating_point"));u9.exports=hLr});var Qs=c((Kpe,l9)=>{"use strict";var bLr=f9();l9.exports=bLr});var p9=c((Xpe,d9)=>{"use strict";var sl=Jr(),xLr=oe(),qLr=Ue().isPrimitive,wLr=Qs(),SLr=na(),ELr=de().isPrimitive,ALr=et(),_Lr=gi(),jLr=mi(),TLr=Na(),OLr=da(),rn=Oa(),ILr=il(),c9=cr(),NLr=rn.get("order"),DLr=rn.get("dtypes.real_floating_point"),kLr=rn.get("dtypes.complex_floating_point"),RLr=rn.get("dtypes.boolean");function BLr(r){var e,a,t,o,i,n,s;if(a={dtype:"",order:NLr,readonly:!1},arguments.length>1){if(e=arguments[1],!xLr(e))throw new TypeError(c9("invalid argument. Options argument must be an object. Value: `%s`.",e));sl(e,"dtype")&&(a.dtype=e.dtype),sl(e,"order")&&(a.order=e.order),sl(e,"readonly")&&(a.readonly=e.readonly)}if(o=qLr(r),a.dtype===""?o?n=DLr:ELr(r)?n=RLr:SLr(r)?(n=ILr(r),n===null&&(n=kLr)):n="generic":n=a.dtype,t=TLr(n,1),t===null)throw new TypeError(c9("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",n));return wLr(n)&&o?s=[r,0]:s=r,ALr(t)?i=_Lr(n):i=jLr(n),i(t,0,s),new OLr(n,t,[],[0],0,a.order,a)}d9.exports=BLr});var nl=c((Hpe,y9)=>{"use strict";var zLr=p9();y9.exports=zLr});var h9=c((Zpe,g9)=>{"use strict";var VLr=Gs(),PLr=se(),FLr=Ue().isPrimitive,LLr=ue().isPrimitive,CLr=na(),ULr=lo(),MLr=Os(),GLr=ks(),$Lr=Ds(),m9=ys(),YLr=Qv(),WLr=Kv(),JLr=Yv(),en=al(),KLr=il(),Oi=nl(),Ht=cr(),XLr=rl(),HLr=el();function Ii(r){return{dtype:r}}function ZLr(r,e,a,t,o){var i,n,s,v,u;if(!PLr(a))if(s=r.dtype,s==="generic")a=Oi(a,Ii(s));else if(FLr(a))if(MLr(s))a=Oi(a,Ii(s));else if(GLr(s))if(n=en(a),m9(n,s))a=Oi(a,Ii(s));else throw new TypeError(Ht("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",n,s));else if($Lr(s)){if(!LLr(a))throw new TypeError(Ht("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",en(a),s));if(a<0?n=en(a):a<=YLr?n="int8":a<=WLr?n="int16":a<=JLr?n="int32":n="float64",m9(n,s))a=Oi(a,Ii(s));else throw new TypeError(Ht("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=en(a),n==="uint8")a=Oi(a,Ii(s));else throw new TypeError(Ht("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",n,s));else throw new TypeError(Ht("invalid operation. Unsupported target array data type. Data type: `%s`.",s));else if(CLr(a)){if(!ULr(s))throw new TypeError(Ht("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",KLr(a),s));a=Oi(a,Ii(s))}else throw new TypeError(Ht("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",typeof a,s));i=!1,u=o(r,e,i);try{return VLr(a,t,u,i),!0}catch(f){throw v=HLr(f),new v(XLr(f.message))}}g9.exports=ZLr});var x9=c((Qpe,b9)=>{"use strict";var QLr=Qf(),rCr=SM(),eCr=h9();function aCr(r){return e;function e(a,t,o,i){return QLr(t)?rCr(a,t,o):eCr(a,t,o,i,r)}}b9.exports=aCr});var j9=c((rye,_9)=>{"use strict";var tCr=Tr(),w9=da(),iCr=hu(),q9=yC(),S9=_U(),E9=IU(),A9=VU(),vl=qM(),ul=x9(),oCr=vl(S9),sCr=ul(S9),nCr=vl(E9),vCr=ul(E9),uCr=vl(A9),fCr=ul(A9);function Ni(r,e,a,t,o,i,n){var s,v,u;return v=arguments.length,this instanceof Ni?(w9.call(this,r,e,a,t,o,i,v<7?{}:n),q9?(u=a.length,s={},u===0?(s.get=oCr,s.set=sCr):u===1?(s.get=nCr,s.set=vCr):(s.get=uCr,s.set=fCr),new q9(this,s)):(console.warn("WARNING: Proxy objects are not supported in the current environment. Some `FancyArray` functionality may not be available."),this)):v<7?new Ni(r,e,a,t,o,i):new Ni(r,e,a,t,o,i,n)}iCr(Ni,w9);tCr(Ni,"name","ndarray");_9.exports=Ni});var O9=c((eye,T9)=>{"use strict";var lCr=j9();T9.exports=lCr});var fl=c((aye,I9)=>{"use strict";function cCr(r){return typeof r=="symbol"}I9.exports=cCr});var D9=c((tye,N9)=>{"use strict";function dCr(r){return Symbol.prototype.toString.call(r)}N9.exports=dCr});var R9=c((iye,k9)=>{"use strict";var pCr=D9(),yCr=/^Symbol\(.*\)$/;function mCr(r){try{return typeof r.valueOf()=="symbol"&&yCr.test(pCr(r))}catch{return!1}}k9.exports=mCr});var ll=c((oye,B9)=>{"use strict";var gCr=ye(),hCr=R9();function bCr(r){return typeof r=="object"&&gCr(r)==="[object Symbol]"&&hCr(r)}B9.exports=bCr});var V9=c((sye,z9)=>{"use strict";var xCr=fl(),qCr=ll();function wCr(r){return xCr(r)||qCr(r)}z9.exports=wCr});var L9=c((nye,F9)=>{"use strict";var P9=Tr(),cl=V9(),SCr=fl(),ECr=ll();P9(cl,"isPrimitive",SCr);P9(cl,"isObject",ECr);F9.exports=cl});var U9=c((vye,C9)=>{"use strict";function ACr(r){return e;function e(){return r}}C9.exports=ACr});var G9=c((uye,M9)=>{"use strict";var _Cr=U9();M9.exports=_Cr});var W9=c((fye,Y9)=>{"use strict";var $9=Tr(),dl=G9(),pl=dl(!1),jCr=dl(!1),TCr=dl(!1);$9(pl,"isPrimitive",jCr);$9(pl,"isObject",TCr);Y9.exports=pl});var K9=c((lye,J9)=>{"use strict";var OCr=Nn(),ICr=L9(),NCr=W9(),yl;OCr()?yl=ICr:yl=NCr;J9.exports=yl});var H9=c((cye,X9)=>{"use strict";var DCr=Va().isPrimitive,kCr=K9().isPrimitive,RCr=me().isPrimitive;function BCr(r){return DCr(r)||kCr(r)||RCr(r)}X9.exports=BCr});var Q9=c((dye,Z9)=>{"use strict";var zCr=H9();Z9.exports=zCr});var aG=c((pye,eG)=>{"use strict";var VCr=Q9(),PCr=co(),rG=cr();function FCr(r,e){if(typeof r!="object"||r===null)throw new TypeError(rG("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!VCr(e))throw new TypeError(rG("invalid argument. Second argument must be a valid property name. Value: `%s`.",e));return PCr(r,!1)[e]}eG.exports=FCr});var iG=c((yye,tG)=>{"use strict";var LCr=aG();tG.exports=LCr});var sG=c((mye,oG)=>{"use strict";var CCr=co(),UCr=cr();function MCr(r){if(typeof r!="object"||r===null)throw new TypeError(UCr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return CCr(r,!0)}oG.exports=MCr});var vG=c((gye,nG)=>{"use strict";var GCr=sG();nG.exports=GCr});var ml=c((hye,$Cr)=>{$Cr.exports={mode:"throw",order:"row-major"}});var hl=c((bye,fG)=>{"use strict";var YCr=oe(),uG=Jr(),WCr=Sa(),JCr=pi(),gl=cr();function KCr(r,e){return YCr(e)?uG(e,"mode")&&(r.mode=e.mode,!JCr(r.mode))?new TypeError(gl("invalid option. `%s` option must be a supported/recognized mode. Option: `%s`.","mode",r.mode)):uG(e,"order")&&(r.order=e.order,!WCr(r.order))?new TypeError(gl("invalid option. `%s` option must be a supported/recognized order. Option: `%s`.","order",r.order)):null:new TypeError(gl("invalid argument. Options argument must be an object. Value: `%s`.",e))}fG.exports=KCr});var pG=c((xye,dG)=>{"use strict";var XCr=Ut().primitives,HCr=ue().isPrimitive,ZCr=Be(),QCr=Si(),lG=cr(),cG=ml(),rUr=hl();function eUr(r,e,a){var t,o;if(t={},t.mode=cG.mode,t.order=cG.order,arguments.length>2&&(o=rUr(t,a),o))throw o;if(!XCr(r))throw new TypeError(lG("invalid argument. Shape argument must be an array-like object containing nonnegative integers. Value: `%s`.",r));if(!HCr(e))throw new TypeError(lG("invalid argument. Linear index must be integer valued. Value: `%s`.",e));return QCr(r,ZCr(r,t.order),0,t.order,e,t.mode)}dG.exports=eUr});var gG=c((qye,mG)=>{"use strict";var aUr=Ut().primitives,tUr=ue().isPrimitive,iUr=Be(),oUr=Si().assign,an=cr(),yG=ml(),sUr=hl();function nUr(r,e,a,t){var o,i,n;if(o={},o.mode=yG.mode,o.order=yG.order,arguments.length===4){if(n=sUr(o,arguments[2]),n)throw n;if(typeof t!="object"||t===null)throw new TypeError(an("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(an("invalid argument. Output argument must be either an array, typed array, or object. Value: `%s`.",i));if(!aUr(r))throw new TypeError(an("invalid argument. Shape argument must be an array-like object containing nonnegative integers. Value: `%s`.",r));if(!tUr(e))throw new TypeError(an("invalid argument. Linear index must be integer valued. Value: `%s`.",e));return oUr(r,iUr(r,o.order),0,o.order,e,o.mode,i)}mG.exports=nUr});var xG=c((wye,bG)=>{"use strict";var vUr=Tr(),hG=pG(),uUr=gG();vUr(hG,"assign",uUr);bG.exports=hG});var EG=c((Sye,SG)=>{"use strict";var bl=Tr(),fUr=oe(),lUr=de().isPrimitive,cUr=se(),dUr=Le(),pUr=Jr(),qG=Re(),yUr=xe(),mUr=ie(),gUr=Wr(),hUr=pe(),bUr=Je().assign,xUr=ge(),tn=cr();function wG(r){var e,a,t,o,i,n,s,v,u,f,l;if(!cUr(r))throw new TypeError(tn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!fUr(e))throw new TypeError(tn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(pUr(e,"readonly")){if(!lUr(e.readonly))throw new TypeError(tn("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&dUr(r))throw new Error(tn("invalid option. Cannot write to read-only array."))}}if(a=mUr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=gUr(a),f===0&&(n=!0),f/=a[t-2],v=t-1,u=a[v],l=-1,s=yUr(t),s[t-2]=null,i={},bl(i,"next",d),bl(i,"return",m),qG&&bl(i,qG,p),i;function d(){var y,g,h;return l+=1,n||l>=f?{done:!0}:(y=s.slice(),g=xUr(s),h=(s[v]+1)%u,s[v]=h,h===0&&(s=bUr(a,"row-major",s,v-2,s)),{value:[y,hUr(r,g,!0,o.writable)],done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function p(){return wG(r,o)}}SG.exports=wG});var _G=c((Eye,AG)=>{"use strict";var qUr=EG();AG.exports=qUr});var IG=c((Aye,OG)=>{"use strict";var xl=Tr(),wUr=oe(),SUr=de().isPrimitive,EUr=se(),AUr=Le(),_Ur=Jr(),jG=Re(),jUr=xe(),TUr=ie(),OUr=Wr(),IUr=pe(),NUr=Je().assign,DUr=ge(),on=cr();function TG(r){var e,a,t,o,i,n,s,v,u,f,l;if(!EUr(r))throw new TypeError(on("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!wUr(e))throw new TypeError(on("invalid argument. Options argument must be an object. Value: `%s`.",e));if(_Ur(e,"readonly")){if(!SUr(e.readonly))throw new TypeError(on("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&AUr(r))throw new Error(on("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=OUr(a),f===0&&(n=!0),f/=a[t-2],v=t-1,u=a[v],l=-1,s=jUr(t),s[t-2]=null,i={},xl(i,"next",d),xl(i,"return",m),jG&&xl(i,jG,p),i;function d(){var y,g;return l+=1,n||l>=f?{done:!0}:(y=DUr(s),g=(s[v]+1)%u,s[v]=g,g===0&&(s=NUr(a,"row-major",s,v-2,s)),{value:IUr(r,y,!0,o.writable),done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function p(){return TG(r,o)}}OG.exports=TG});var DG=c((_ye,NG)=>{"use strict";var kUr=IG();NG.exports=kUr});var zG=c((jye,BG)=>{"use strict";var ql=Tr(),RUr=oe(),BUr=Sa(),zUr=se(),VUr=Jr(),kG=Re(),PUr=xe(),FUr=ie(),LUr=Wr(),CUr=Je().assign,wl=cr();function RG(r){var e,a,t,o,i,n,s,v,u,f;if(!zUr(r))throw new TypeError(wl("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={order:r.order},arguments.length>1){if(e=arguments[1],!RUr(e))throw new TypeError(wl("invalid argument. Options argument must be an object. Value: `%s`.",e));if(VUr(e,"order")){if(!BUr(e.order))throw new TypeError(wl("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));o.order=e.order}}return a=FUr(r),t=a.length,u=LUr(a),u===0&&(n=!0),o.order==="row-major"?v=t-1:v=0,f=-1,s=PUr(t),i={},ql(i,"next",l),ql(i,"return",d),kG&&ql(i,kG,m),i;function l(){return f+=1,n||f>=u?{done:!0}:(f>0&&(s=CUr(a,o.order,s,v,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 m(){return RG(r,o)}}BG.exports=RG});var PG=c((Tye,VG)=>{"use strict";var UUr=zG();VG.exports=UUr});var UG=c((Oye,CG)=>{"use strict";var Sl=Tr(),MUr=oe(),GUr=Sa(),$Ur=De(),YUr=me().isPrimitive,WUr=Jr(),FG=Re(),JUr=xe(),KUr=Wr(),XUr=Je().assign,sn=cr();function LG(r){var e,a,t,o,i,n,s,v,u,f;if(!$Ur(r))throw new TypeError(sn("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],!MUr(e))throw new TypeError(sn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(WUr(e,"order")){if(!GUr(e.order))throw new TypeError(sn("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));t.order=e.order}}for(a=r.length,v=[],f=0;f<a;f++){if(!YUr(r[f]))throw new TypeError(sn("invalid argument. First argument must be an array of nonnegative integers. Value: `%s`.",r));v.push(r[f])}return u=KUr(v),u===0&&(i=!0),t.order==="row-major"?s=a-1:s=0,f=-1,n=JUr(a),o={},Sl(o,"next",l),Sl(o,"return",d),FG&&Sl(o,FG,m),o;function l(){return f+=1,i||f>=u?{done:!0}:(f>0&&(n=XUr(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 m(){return LG(v,t)}}CG.exports=LG});var GG=c((Iye,MG)=>{"use strict";var HUr=UG();MG.exports=HUr});var WG=c((Nye,YG)=>{"use strict";var ZUr=se(),QUr=De(),rMr=me().isPrimitive,$G=$s(),eMr=ie(),El=cr();function aMr(r,e){var a,t,o,i;if(!ZUr(r))throw new TypeError(El("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!QUr(e))throw new TypeError(El("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.",e));if(t=e.length,a=eMr(r),a.length===t){for(i=0;i<t;i++){if(o=e[i],!rMr(o))throw new TypeError(El("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.","["+e.join(",")+"]"));if(a[i]!==o)return $G(r,e)}return r}return $G(r,e)}YG.exports=aMr});var Al=c((Dye,JG)=>{"use strict";var tMr=WG();JG.exports=tMr});var HG=c((kye,XG)=>{"use strict";var iMr=se(),oMr=ze(),sMr=bi(),nMr=Al(),vMr=ie(),KG=cr();function uMr(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(iMr(r))t=[r];else if(oMr(r))t=r;else throw new TypeError(KG("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(vMr(t[s]))}catch{throw new TypeError(KG("invalid argument. An ndarray argument must be an ndarray. Value: `%s`.",t[s]))}if(i=sMr(e),i===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(o=[],s=0;s<n;s++)o.push(nMr(t[s],i));return o}XG.exports=uMr});var _l=c((Rye,ZG)=>{"use strict";var fMr=HG();ZG.exports=fMr});var a$=c((Bye,e$)=>{"use strict";var jl=Tr(),lMr=ze(),cMr=Ys().isPrimitive,QG=Re(),dMr=xe(),pMr=ie(),yMr=Wr(),mMr=pe(),gMr=_l(),hMr=Je().assign,bMr=ge(),nn=cr();function r$(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y;if(!lMr(r))throw new TypeError(nn("invalid argument. First argument must be an array of ndarrays. Value: `%s`.",r));if(!cMr(e))throw new TypeError(nn("invalid argument. Second argument must be a positive integer. Value: `%s`.",e));try{o=gMr(r)}catch{throw new TypeError(nn("invalid argument. First argument must be an array of ndarrays which are broadcast-compatible. Value: `%s`.",r))}if(d=o.length,a=pMr(o[0]),f=a.length,f<=e)throw new TypeError(nn("invalid argument. First argument must be an array of ndarrays having at least %d dimensions after broadcasting.",e+1));for(l=yMr(a),l===0&&(i=!0),s=f-e-1,m=s+1;m<f;m++)l/=a[m];for(l*=d,u=a[s],n=[],m=0;m<d;m++){for(v=dMr(f),p=s+1;p<f;p++)v[p]=null;n.push(v)}return m=-1,y=-1,t={},jl(t,"next",g),jl(t,"return",h),QG&&jl(t,QG,b),t;function g(){var S,w,A;return m+=1,i||m>=l?{done:!0}:(y=(y+1)%d,S=n[y],w=bMr(S),A=(S[s]+1)%u,S[s]=A,A===0&&(S=hMr(a,"row-major",S,s-1,S)),{value:mMr(o[y],w,!0,!1),done:!1})}function h(S){return i=!0,arguments.length?{value:S,done:!0}:{done:!0}}function b(){return r$(r,e)}}e$.exports=r$});var i$=c((zye,t$)=>{"use strict";var xMr=a$();t$.exports=xMr});var v$=c((Vye,n$)=>{"use strict";var Tl=Tr(),qMr=oe(),wMr=de().isPrimitive,SMr=se(),EMr=Le(),AMr=Jr(),o$=Re(),_Mr=xe(),jMr=ie(),TMr=Wr(),OMr=pe(),IMr=Je().assign,NMr=ge(),vn=cr();function s$(r){var e,a,t,o,i,n,s,v,u,f,l;if(!SMr(r))throw new TypeError(vn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!qMr(e))throw new TypeError(vn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(AMr(e,"readonly")){if(!wMr(e.readonly))throw new TypeError(vn("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&EMr(r))throw new Error(vn("invalid option. Cannot write to read-only array."))}}if(a=jMr(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],v=t-3,u=a[v],l=-1,s=_Mr(t),s[t-1]=null,s[t-2]=null,i={},Tl(i,"next",d),Tl(i,"return",m),o$&&Tl(i,o$,p),i;function d(){var y,g;return l+=1,n||l>=f?{done:!0}:(y=NMr(s),g=(s[v]+1)%u,s[v]=g,g===0&&(s=IMr(a,"row-major",s,v-1,s)),{value:OMr(r,y,!0,o.writable),done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function p(){return s$(r,o)}}n$.exports=s$});var f$=c((Pye,u$)=>{"use strict";var DMr=v$();u$.exports=DMr});var p$=c((Fye,d$)=>{"use strict";var Ol=Tr(),kMr=oe(),RMr=de().isPrimitive,BMr=se(),zMr=Le(),VMr=Jr(),l$=Re(),PMr=xe(),FMr=ie(),LMr=Wr(),CMr=pe(),UMr=Je().assign,MMr=ge(),un=cr();function c$(r){var e,a,t,o,i,n,s,v,u,f,l;if(!BMr(r))throw new TypeError(un("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!kMr(e))throw new TypeError(un("invalid argument. Options argument must be an object. Value: `%s`.",e));if(VMr(e,"readonly")){if(!RMr(e.readonly))throw new TypeError(un("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&zMr(r))throw new Error(un("invalid option. Cannot write to read-only array."))}}if(a=FMr(r),t=a.length,t<3)throw new TypeError("invalid argument. First argument must be an ndarray having at least three dimensions.");return f=LMr(a),f===0&&(n=!0),f/=a[t-1]*a[t-2],v=t-3,u=a[v],l=-1,s=PMr(t),s[t-1]=null,s[t-2]=null,i={},Ol(i,"next",d),Ol(i,"return",m),l$&&Ol(i,l$,p),i;function d(){var y,g,h;return l+=1,n||l>=f?{done:!0}:(y=s.slice(),g=MMr(s),h=(s[v]+1)%u,s[v]=h,h===0&&(s=UMr(a,"row-major",s,v-1,s)),{value:[y,CMr(r,g,!0,o.writable)],done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function p(){return c$(r,o)}}d$.exports=c$});var m$=c((Lye,y$)=>{"use strict";var GMr=p$();y$.exports=GMr});var x$=c((Cye,b$)=>{"use strict";var Il=Tr(),$Mr=oe(),YMr=de().isPrimitive,WMr=se(),JMr=Le(),KMr=Jr(),g$=Re(),XMr=xe(),HMr=ie(),ZMr=Wr(),QMr=pe(),r9r=Je().assign,e9r=ge(),fn=cr();function h$(r){var e,a,t,o,i,n,s,v,u,f,l;if(!WMr(r))throw new TypeError(fn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!$Mr(e))throw new TypeError(fn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(KMr(e,"readonly")){if(!YMr(e.readonly))throw new TypeError(fn("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&JMr(r))throw new Error(fn("invalid option. Cannot write to read-only array."))}}if(a=HMr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=ZMr(a),f===0&&(n=!0),f/=a[t-1],v=t-2,u=a[v],l=-1,s=XMr(t),s[t-1]=null,i={},Il(i,"next",d),Il(i,"return",m),g$&&Il(i,g$,p),i;function d(){var y,g,h;return l+=1,n||l>=f?{done:!0}:(y=s.slice(),g=e9r(s),h=(s[v]+1)%u,s[v]=h,h===0&&(s=r9r(a,"row-major",s,v-1,s)),{value:[y,QMr(r,g,!0,o.writable)],done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function p(){return h$(r,o)}}b$.exports=h$});var w$=c((Uye,q$)=>{"use strict";var a9r=x$();q$.exports=a9r});var _$=c((Mye,A$)=>{"use strict";var Nl=Tr(),t9r=oe(),i9r=de().isPrimitive,o9r=se(),s9r=Le(),n9r=Jr(),S$=Re(),v9r=xe(),u9r=ie(),f9r=Wr(),l9r=pe(),c9r=Je().assign,d9r=ge(),ln=cr();function E$(r){var e,a,t,o,i,n,s,v,u,f,l;if(!o9r(r))throw new TypeError(ln("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!t9r(e))throw new TypeError(ln("invalid argument. Options argument must be an object. Value: `%s`.",e));if(n9r(e,"readonly")){if(!i9r(e.readonly))throw new TypeError(ln("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&s9r(r))throw new Error(ln("invalid option. Cannot write to read-only array."))}}if(a=u9r(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=f9r(a),f===0&&(n=!0),f/=a[t-1],v=t-2,u=a[v],l=-1,s=v9r(t),s[t-1]=null,i={},Nl(i,"next",d),Nl(i,"return",m),S$&&Nl(i,S$,p),i;function d(){var y,g;return l+=1,n||l>=f?{done:!0}:(y=d9r(s),g=(s[v]+1)%u,s[v]=g,g===0&&(s=c9r(a,"row-major",s,v-1,s)),{value:l9r(r,y,!0,o.writable),done:!1})}function m(y){return n=!0,arguments.length?{value:y,done:!0}:{done:!0}}function p(){return E$(r,o)}}A$.exports=E$});var T$=c((Gye,j$)=>{"use strict";var p9r=_$();j$.exports=p9r});var R$=c(($ye,k$)=>{"use strict";var Dl=Tr(),y9r=oe(),O$=de().isPrimitive,m9r=ue().isPrimitive,g9r=se(),h9r=Le(),I$=Jr(),N$=Re(),b9r=wi(),x9r=ie(),q9r=ca(),w9r=Wr(),S9r=pe(),E9r=Pe(),A9r=ge(),Zt=cr();function D$(r,e){var a,t,o,i,n,s,v,u,f,l;if(!g9r(r))throw new TypeError(Zt("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!m9r(e))throw new TypeError(Zt("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(i={writable:!1,keepdim:!1},arguments.length>2){if(a=arguments[2],!y9r(a))throw new TypeError(Zt("invalid argument. Options argument must be an object. Value: `%s`.",a));if(I$(a,"readonly")){if(!O$(a.readonly))throw new TypeError(Zt("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",a.readonly));if(i.writable=!a.readonly,i.writable&&h9r(r))throw new Error(Zt("invalid option. Cannot write to read-only array."))}if(I$(a,"keepdim")){if(!O$(a.keepdim))throw new TypeError(Zt("invalid option. `%s` option must be a boolean. Option: `%s`.","keepdim",a.keepdim));i.keepdim=a.keepdim}}if(t=x9r(r),o=t.length,f=q9r(e,o-1),f===-1)throw new RangeError(Zt("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e));return u=w9r(t),u===0&&(s=!0),u=t[f],l=-1,v=b9r(o),n={},Dl(n,"next",d),Dl(n,"return",m),N$&&Dl(n,N$,p),n;function d(){var y;return l+=1,s||l>=u?{done:!0}:(i.keepdim?v[f]=new E9r(l,l+1,1):v[f]=l,y=A9r(v),{value:S9r(r,y,!0,i.writable),done:!1})}function m(y){return s=!0,arguments.length?{value:y,done:!0}:{done:!0}}function p(){return D$(r,e,i)}}k$.exports=D$});var z$=c((Yye,B$)=>{"use strict";var _9r=R$();B$.exports=_9r});var P$=c((Wye,V$)=>{"use strict";var j9r=et(),T9r=at(),O9r=bt(),I9r=to();function N9r(r){var e=I9r(r);return j9r(r)?T9r(e):O9r(e)}V$.exports=N9r});var kl=c((Jye,F$)=>{"use strict";var D9r=P$();F$.exports=D9r});var C$=c((Kye,L$)=>{"use strict";var k9r=kl();function R9r(r){var e,a,t,o;for(t=k9r(r),a=r.length,e=[],o=0;o<a;o++)e.push(t(r,o));return e}L$.exports=R9r});var M$=c((Xye,U$)=>{"use strict";var B9r=C$();U$.exports=B9r});var Y$=c((Hye,$$)=>{"use strict";var G$=kl(),z9r=ot().factory;function V9r(r,e,a){var t,o,i,n,s,v,u;for(o=G$(r),i=G$(e),t=z9r(a),s=r.length-1,n=[],v=0;v<e.length;v++)u=t(i(e,v),s),n.push(o(r,u));return n}$$.exports=V9r});var J$=c((Zye,W$)=>{"use strict";var P9r=Ve().factory,F9r=ol(),L9r=P9r(F9r("boolean"));W$.exports=L9r});var Rl=c((Qye,K$)=>{"use strict";var C9r=J$();K$.exports=C9r});var H$=c((rme,X$)=>{"use strict";var U9r=as(),M9r=es(),G9r=Zi(),$9r=Hi(),Y9r=cr();function W9r(r,e){if(U9r(r))return G9r(r,e);if(M9r(r))return $9r(r,e);throw new TypeError(Y9r("invalid argument. First argument must be a complex-valued floating-point array. Value: `%s`.",r))}X$.exports=W9r});var Bl=c((eme,Z$)=>{"use strict";var J9r=H$();Z$.exports=J9r});var rY=c((ame,Q$)=>{"use strict";var K9r=Qe();function X9r(r,e){return new K9r(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,r.length-e)}Q$.exports=X9r});var zl=c((tme,eY)=>{"use strict";var H9r=rY();eY.exports=H9r});var nY=c((ime,sY)=>{"use strict";var aY=Qs(),tY=Rl(),Vl=nt(),iY=Bl(),oY=zl(),cn=ot().factory;function Z9r(r,e,a,t,o,i){var n,s,v,u,f;for(n=cn(a),s=r.length-1,v=i,u=0;u<e.length;u++)f=n(e[u],s),t[v]=r[f],v+=o;return t}function Q9r(r,e,a,t,o,i){var n,s,v,u,f,l,d,m,p,y,g;for(s=r.data,v=e.data,u=t.data,f=r.accessors[0],l=e.accessors[0],d=t.accessors[1],n=cn(a),m=s.length-1,p=i,y=0;y<v.length;y++)g=n(l(v,y),m),d(u,p,f(s,g)),p+=o;return u}function rGr(r,e,a,t,o,i){var n,s,v,u,f,l,d,m,p;for(s=e.data,v=e.accessors[0],n=cn(a),u=r.length/2-1,l=o*2,f=i*2,d=0;d<s.length;d++)m=n(v(s,d),u),p=m*2,t[f]=r[p],t[f+1]=r[p+1],f+=l;return t}function eGr(r,e,a,t,o,i){var n,s,v,u,f,l,d;for(s=e.data,v=e.accessors[0],n=cn(a),u=r.length-1,f=i,l=0;l<s.length;l++)d=n(v(s,l),u),t[f]=r[d],f+=o;return t}function aGr(r,e,a,t,o,i){var n,s,v;return n=Vl(r),s=Vl(e),v=Vl(t),n.accessorProtocol||s.accessorProtocol||v.accessorProtocol?aY(n.dtype)&&aY(v.dtype)?(rGr(iY(r,0),s,a,iY(t,0),o,i),t):tY(n.dtype)&&tY(v.dtype)?(eGr(oY(r,0),s,a,oY(t,0),o,i),t):(Q9r(n,s,a,v,o,i),t):(Z9r(r,e,a,t,o,i),t)}sY.exports=aGr});var fY=c((ome,uY)=>{"use strict";var tGr=Tr(),vY=Y$(),iGr=nY();tGr(vY,"assign",iGr);uY.exports=vY});var mY=c((sme,yY)=>{"use strict";var lY=Qs(),cY=Rl(),Pl=nt(),dY=Bl(),pY=zl(),oGr=ot().factory,sGr=cr();function nGr(r,e,a,t,o,i){var n,s,v;for(n=0,s=0;s<e.length;s++)v=o(e[s],i),r[v]=a[n],n+=t;return r}function vGr(r,e,a,t,o,i){var n,s,v,u,f,l,d,m,p;for(n=r.data,s=e.data,v=a.data,u=r.accessors[1],f=e.accessors[0],l=a.accessors[0],d=0,m=0;m<s.length;m++)p=o(f(s,m),i),u(n,p,l(v,d)),d+=t;return n}function uGr(r,e,a,t,o,i){var n,s,v,u,f,l,d;for(n=e.data,s=e.accessors[0],u=t*2,v=0,f=0;f<n.length;f++)l=o(s(n,f),i),d=l*2,r[d]=a[v],r[d+1]=a[v+1],v+=u;return r}function fGr(r,e,a,t,o,i){var n,s,v,u,f;for(n=e.data,s=e.accessors[0],v=0,u=0;u<n.length;u++)f=o(s(n,u),i),r[f]=a[v],v+=t;return r}function lGr(r,e,a,t){var o,i,n,s,v,u;if(e.length>0)if(a.length===e.length)i=1;else if(a.length===1)i=0;else throw new Error(sGr("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=oGr(t),n=r.length-1,s=Pl(r),v=Pl(e),u=Pl(a),s.accessorProtocol||v.accessorProtocol||u.accessorProtocol?lY(s.dtype)&&lY(u.dtype)?(uGr(dY(r,0),v,dY(a,0),i,o,n),r):cY(s.dtype)&&cY(u.dtype)?(fGr(pY(r,0),v,pY(a,0),i,o,n),r):(vGr(s,v,u,i,o,n),r):(nGr(r,e,a,i,o,n),r)}yY.exports=lGr});var hY=c((nme,gY)=>{"use strict";var cGr=mY();gY.exports=cGr});var SY=c((vme,wY)=>{"use strict";var Fl=Tr(),dGr=oe(),pGr=de().isPrimitive,yGr=Uv().primitives,mGr=se(),gGr=Le(),hGr=Jr(),bY=Re(),bGr=xe(),xGr=M$(),xY=fY(),qGr=hY(),wGr=ie(),SGr=ca(),EGr=Wr(),AGr=pe(),_Gr=Je().assign,jGr=ge(),lt=cr();function qY(r,e){var a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h;if(!mGr(r))throw new TypeError(lt("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!yGr(e))throw new TypeError(lt("invalid argument. Second argument must be an array of integers. Value: `%s`.",e));if(s={writable:!1},arguments.length>2){if(t=arguments[2],!dGr(t))throw new TypeError(lt("invalid argument. Options argument must be an object. Value: `%s`.",t));if(hGr(t,"readonly")){if(!pGr(t.readonly))throw new TypeError(lt("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",t.readonly));if(s.writable=!t.readonly,s.writable&&gGr(r))throw new Error(lt("invalid option. Cannot write to read-only array."))}}if(n=e,e=xGr(e),m=e.length,o=wGr(r),i=o.length,i<=m)throw new TypeError(lt("invalid argument. First argument must be an ndarray having at least %d dimensions.",m+1));for(g=0;g<m;g++){if(y=SGr(e[g],i-1),y===-1)throw new RangeError(lt("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",i,e[g]));e[g]=y}for(p=EGr(o),p===0&&(f=!0),g=0;g<m-1;g++)if(e[g]>e[g+1])throw new Error(lt("invalid argument. Dimension indices must be sorted in ascending order. Value: `%s`.",n));for(h=1,g=1;g<m;g++){if(e[g]===e[g-1])throw new Error(lt("invalid argument. Dimension indices must be unique. Value: `%s`.",n));e[h]=e[g],h+=1}for(g=0;g<m;g++)p/=o[e[g]];for(l=bGr(i),g=0;g<m;g++)l[e[g]]=null;for(a=[],h=0,g=0;g<i;g++){if(g===e[h]){h+=1;continue}a.push(g)}return d=xY(o,a,"throw"),u=xY(l,a,"throw"),g=-1,v={},Fl(v,"next",b),Fl(v,"return",S),bY&&Fl(v,bY,w),v;function b(){var A;return g+=1,f||g>=p?{done:!0}:(A=jGr(l),u=_Gr(d,"row-major",u,-1,u),l=qGr(l,a,u,"throw"),{value:AGr(r,A,!0,s.writable),done:!1})}function S(A){return f=!0,arguments.length?{value:A,done:!0}:{done:!0}}function w(){return qY(r,e,s)}}wY.exports=qY});var AY=c((ume,EY)=>{"use strict";var TGr=SY();EY.exports=TGr});var OY=c((fme,TY)=>{"use strict";var Ll=Tr(),OGr=oe(),IGr=de().isPrimitive,NGr=Ys().isPrimitive,DGr=se(),kGr=Le(),RGr=Jr(),_Y=Re(),BGr=xe(),zGr=ie(),VGr=Wr(),PGr=pe(),FGr=Je().assign,LGr=ge(),Di=cr();function jY(r,e){var a,t,o,i,n,s,v,u,f,l,d;if(!DGr(r))throw new TypeError(Di("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!NGr(e))throw new TypeError(Di("invalid argument. Second argument must be a positive integer. Value: `%s`.",e));if(o={writable:!1},arguments.length>2){if(a=arguments[2],!OGr(a))throw new TypeError(Di("invalid argument. Options argument must be an object. Value: `%s`.",a));if(RGr(a,"readonly")){if(!IGr(a.readonly))throw new TypeError(Di("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",a.readonly));if(o.writable=!a.readonly,o.writable&&kGr(r))throw new Error(Di("invalid option. Cannot write to read-only array."))}}if(t=zGr(r),f=t.length,f<=e)throw new TypeError(Di("invalid argument. First argument must be an ndarray having at least %d dimensions.",e+1));for(l=VGr(t),l===0&&(n=!0),v=f-e-1,d=v+1;d<f;d++)l/=t[d];for(u=t[v],s=BGr(f),d=v+1;d<f;d++)s[d]=null;return d=-1,i={},Ll(i,"next",m),Ll(i,"return",p),_Y&&Ll(i,_Y,y),i;function m(){var g,h;return d+=1,n||d>=l?{done:!0}:(g=LGr(s),h=(s[v]+1)%u,s[v]=h,h===0&&(s=FGr(t,"row-major",s,v-1,s)),{value:PGr(r,g,!0,o.writable),done:!1})}function p(g){return n=!0,arguments.length?{value:g,done:!0}:{done:!0}}function y(){return jY(r,e,o)}}TY.exports=jY});var NY=c((lme,IY)=>{"use strict";var CGr=OY();IY.exports=CGr});var kY=c((cme,DY)=>{"use strict";var UGr=Fe();function MGr(r){var e=typeof r;return r!==null&&(e==="object"||e==="function")&&UGr(r.next)}DY.exports=MGr});var BY=c((dme,RY)=>{"use strict";var GGr=kY();RY.exports=GGr});var VY=c((pme,zY)=>{"use strict";var $Gr=se(),YGr=zf(),WGr=Ga(),JGr=xt(),KGr=ie(),XGr=$a(),HGr=st(),ZGr=cr();function QGr(r){if(!$Gr(r))throw new TypeError(ZGr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return YGr(HGr(r),KGr(r),WGr(r),JGr(r),XGr(r))}zY.exports=QGr});var Cl=c((yme,PY)=>{"use strict";var r$r=VY();PY.exports=r$r});var CY=c((mme,LY)=>{"use strict";var Ul=Tr(),e$r=Fe(),a$r=BY(),dn=Re(),t$r=Cl(),i$r=cr();function FY(r){var e,a;if(!a$r(r))throw new TypeError(i$r("invalid argument. First argument must be an iterator protocol-compliant object. Value: `%s`.",r));return e={},Ul(e,"next",t),Ul(e,"return",o),dn&&e$r(r[dn])&&Ul(e,dn,i),e;function t(){var n;return a?{done:!0}:(n=r.next(),n.done?(a=!0,n):{value:t$r(n.value),done:!1})}function o(n){return a=!0,arguments.length?{value:n,done:!0}:{done:!0}}function i(){return FY(r[dn]())}}LY.exports=FY});var MY=c((gme,UY)=>{"use strict";var o$r=CY();UY.exports=o$r});var WY=c((hme,YY)=>{"use strict";var Ml=Tr(),s$r=oe(),n$r=Sa(),v$r=se(),u$r=Jr(),GY=Re(),f$r=xe(),l$r=ie(),c$r=Wr(),d$r=Je().assign,Gl=cr();function $Y(r){var e,a,t,o,i,n,s,v,u,f;if(!v$r(r))throw new TypeError(Gl("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={order:r.order},arguments.length>1){if(e=arguments[1],!s$r(e))throw new TypeError(Gl("invalid argument. Options argument must be an object. Value: `%s`.",e));if(u$r(e,"order")){if(!n$r(e.order))throw new TypeError(Gl("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));o.order=e.order}}return a=l$r(r),t=a.length,u=c$r(a),u===0&&(n=!0),o.order==="row-major"?v=t-1:v=0,f=-1,s=f$r(t),i={},Ml(i,"next",l),Ml(i,"return",d),GY&&Ml(i,GY,m),i;function l(){return f+=1,n||f>=u?{done:!0}:(f>0&&(s=d$r(a,o.order,s,v,s)),{value:r.get.apply(r,s),done:!1})}function d(p){return n=!0,arguments.length?{value:p,done:!0}:{done:!0}}function m(){return $Y(r,o)}}YY.exports=$Y});var KY=c((bme,JY)=>{"use strict";var p$r=WY();JY.exports=p$r});var HY=c((xme,XY)=>{"use strict";var Ke=It(),Ce={};Ke(Ce,"nditerColumnEntries",_G());Ke(Ce,"nditerColumns",DG());Ke(Ce,"nditerEntries",PG());Ke(Ce,"nditerIndices",GG());Ke(Ce,"nditerInterleaveSubarrays",i$());Ke(Ce,"nditerMatrices",f$());Ke(Ce,"nditerMatrixEntries",m$());Ke(Ce,"nditerRowEntries",w$());Ke(Ce,"nditerRows",T$());Ke(Ce,"nditerSelectDimension",z$());Ke(Ce,"nditerStacks",AY());Ke(Ce,"nditerSubarrays",NY());Ke(Ce,"nditer2arrayEach",MY());Ke(Ce,"nditerValues",KY());XY.exports=Ce});var QY=c((qme,ZY)=>{"use strict";var y$r=Le(),m$r=Da(),g$r=ie(),h$r=Ga(),b$r=xt(),x$r=$a(),q$r=st(),w$r=da(),S$r=Oa(),E$r=S$r("order");function A$r(r){var e,a,t,o,i,n,s;if(s=m$r(r),i=q$r(r),o=g$r(r),e=h$r(r),a=b$r(r),t=x$r(r)||E$r,arguments.length>1?n=arguments[1]:n={},y$r(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 w$r(s,i,o,e,a,t,n)}ZY.exports=A$r});var eW=c((wme,rW)=>{"use strict";var _$r=QY();rW.exports=_$r});var aW=c((Sme,j$r)=>{j$r.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 iW=c((Eme,tW)=>{"use strict";var T$r=qa(),O$r=Jr(),I$r=Ia(),pn=aW();function N$r(){var r,e,a,t;for(a={},r=T$r(pn),e=r.length,t=0;t<e;t++)a[r[t]]=pn[r[t]];return a}function D$r(r){return arguments.length===0?N$r():(r=I$r(r),O$r(pn,r)?pn[r]:null)}tW.exports=D$r});var sW=c((Ame,oW)=>{"use strict";var k$r=iW();oW.exports=k$r});var uW=c((_me,vW)=>{"use strict";var nW=me().isPrimitive,R$r=De(),$l=cr();function B$r(r){var e,a,t,o,i;if(typeof r!="object"||r===null)throw new TypeError($l("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(t=r.length,nW(t))return t;if(a=r.shape,!R$r(a))throw new TypeError($l("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],!nW(o))throw new TypeError($l("invalid argument. Must provide an ndarray. Value: `%s`.",r));t*=o}return t}vW.exports=B$r});var Yl=c((jme,fW)=>{"use strict";var z$r=uW();fW.exports=z$r});var cW=c((Tme,lW)=>{"use strict";var V$r=me().isPrimitive,P$r=ue().isPrimitive,F$r=Af(),Wl=cr();function L$r(r,e){var a;if(typeof r!="object"||r===null)throw new TypeError(Wl("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!P$r(e))throw new TypeError(Wl("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(a=F$r(r,e),V$r(a))return a;throw new TypeError(Wl("invalid argument. First argument must be an ndarray. Value: `%s`.",r))}lW.exports=L$r});var pW=c((Ome,dW)=>{"use strict";var C$r=cW();dW.exports=C$r});var yW=c((Ime,U$r)=>{U$r.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 bW=c((Nme,hW)=>{"use strict";var M$r=qa(),mW=Jr(),gW=Ia(),yn=yW();function G$r(){var r,e,a,t,o,i,n,s,v;for(a={},r=M$r(yn),e=r.length,v=0;v<e;v++){for(o=r[v],n=yn[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function $$r(r,e){var a;return arguments.length===0?G$r():(r=gW(r),mW(yn,r)&&(a=yn[r],e=gW(e),mW(a,e))?a[e]:null)}hW.exports=$$r});var qW=c((Dme,xW)=>{"use strict";var Y$r=bW();xW.exports=Y$r});var SW=c((kme,wW)=>{"use strict";var W$r=Ja(),J$r=yt();function K$r(r){return r instanceof W$r||J$r(r)==="MultiSlice"}wW.exports=K$r});var Jl=c((Rme,EW)=>{"use strict";var X$r=SW();EW.exports=X$r});var _W=c((Bme,AW)=>{"use strict";var H$r=se(),Z$r=Jl(),Q$r=ze(),rYr=oe(),eYr=de().isPrimitive,aYr=Jr(),tYr=Ja(),iYr=ge(),oYr=pe(),sYr=ie(),mn=cr();function nYr(r,e){var a,t,o,i,n,s,v;if(o={strict:!0},t=arguments.length,!H$r(r))throw new TypeError(mn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(rYr(arguments[t-1])){if(t-=1,a=arguments[t],aYr(a,"strict")){if(!eYr(a.strict))throw new TypeError(mn("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(n=sYr(r),t===1&&n.length>0)throw new RangeError(mn("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",n.join(","),0))}if(Z$r(e)){if(s=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else{if(Q$r(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],v=1;v<t;v++)i.push(arguments[v]);try{s=iYr(i)}catch{for(v=0;v<i.length;v++)try{new tYr(i[v])}catch{throw new TypeError(mn("invalid argument. Slice arguments must be either a Slice, integer, null, or undefined. Value: `%s`.",String(i[v])))}}}return oYr(r,s,o.strict,!1)}AW.exports=nYr});var Kl=c((zme,jW)=>{"use strict";var vYr=_W();jW.exports=vYr});var IW=c((Vme,OW)=>{"use strict";var TW=se(),uYr=Jl(),fYr=ze(),lYr=oe(),cYr=de().isPrimitive,dYr=Le(),pYr=Jr(),yYr=Ja(),mYr=ge(),gYr=Gs(),hYr=ie(),To=cr();function bYr(r,e,a){var t,o,i,n,s,v,u;if(i={strict:!0},o=arguments.length,!TW(r))throw new TypeError(To("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!TW(e))throw new TypeError(To("invalid argument. Second argument must be an ndarray. Value: `%s`.",e));if(dYr(e))throw new Error("invalid argument. Cannot write to a read-only array.");if(lYr(arguments[o-1])){if(o-=1,t=arguments[o],pYr(t,"strict")){if(!cYr(t.strict))throw new TypeError(To("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));i.strict=t.strict}if(s=hYr(e),o===2&&s.length>0)throw new RangeError(To("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",s.join(","),0))}if(uYr(a)){if(v=a,o>3)throw new Error("invalid invocation. Too many arguments.")}else{if(fYr(a)){if(n=a,o>3)throw new Error("invalid invocation. Too many arguments.")}else for(n=[],u=2;u<o;u++)n.push(arguments[u]);try{v=mYr(n)}catch{for(u=0;u<n.length;u++)try{new yYr(n[u])}catch{throw new TypeError(To("invalid argument. Slice arguments must be either a Slice, integer, null, or undefined. Value: `%s`.",String(n[u])))}}}return gYr(r,e,v,i.strict)}OW.exports=bYr});var DW=c((Pme,NW)=>{"use strict";var xYr=IW();NW.exports=xYr});var BW=c((Fme,RW)=>{"use strict";var qYr=oe(),wYr=de().isPrimitive,kW=ue().isPrimitive,SYr=se(),EYr=qi(),AYr=yf(),_Yr=xi(),jYr=Jr(),TYr=Pe(),OYr=Of(),Oo=cr();function IYr(r,e,a){var t,o,i;if(i={strict:!0},!SYr(r))throw new TypeError(Oo("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!kW(e))throw new TypeError(Oo("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(kW(a)||AYr(a))o=a;else if(_Yr(a)||EYr(a))o=new TYr;else throw new TypeError(Oo("invalid argument. Third argument must be either a Slice, integer, null, or undefined. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!qYr(t))throw new TypeError(Oo("invalid argument. Options argument must be an object. Value: `%s`.",t));if(jYr(t,"strict")){if(!wYr(t.strict))throw new TypeError(Oo("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));i.strict=t.strict}}return OYr(r,e,o,i.strict,!1)}RW.exports=IYr});var VW=c((Lme,zW)=>{"use strict";var NYr=BW();zW.exports=NYr});var LW=c((Cme,FW)=>{"use strict";var DYr=oe(),kYr=de().isPrimitive,PW=ue().isPrimitive,RYr=se(),BYr=Jr(),zYr=If(),Io=cr();function VYr(r,e,a){var t,o;if(o={strict:!0},!RYr(r))throw new TypeError(Io("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!PW(e))throw new TypeError(Io("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(!PW(a))throw new TypeError(Io("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!DYr(t))throw new TypeError(Io("invalid argument. Options argument must be an object. Value: `%s`.",t));if(BYr(t,"strict")){if(!kYr(t.strict))throw new TypeError(Io("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));o.strict=t.strict}}return zYr(r,e,a,o.strict,!1)}FW.exports=VYr});var UW=c((Ume,CW)=>{"use strict";var PYr=LW();CW.exports=PYr});var $W=c((Mme,GW)=>{"use strict";var FYr=oe(),LYr=de().isPrimitive,MW=ue().isPrimitive,CYr=se(),UYr=Jr(),MYr=Nf(),No=cr();function GYr(r,e,a){var t,o;if(o={strict:!0},!CYr(r))throw new TypeError(No("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!MW(e))throw new TypeError(No("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(!MW(a))throw new TypeError(No("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!FYr(t))throw new TypeError(No("invalid argument. Options argument must be an object. Value: `%s`.",t));if(UYr(t,"strict")){if(!LYr(t.strict))throw new TypeError(No("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));o.strict=t.strict}}return MYr(r,e,a,o.strict,!1)}GW.exports=GYr});var WW=c((Gme,YW)=>{"use strict";var $Yr=$W();YW.exports=$Yr});var KW=c(($me,JW)=>{"use strict";var YYr=se(),WYr=ze(),JYr=oe(),KYr=Ue().isPrimitive,XYr=de().isPrimitive,HYr=xi(),ZYr=qi(),QYr=Jr(),rWr=ie(),eWr=Df(),gn=cr();function aWr(r){return!(KYr(r)||HYr(r)||ZYr(r))}function tWr(r,e){var a,t,o,i,n,s;if(o={strict:!0},t=arguments.length,!YYr(r))throw new TypeError(gn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(JYr(arguments[t-1])){if(t-=1,a=arguments[t],QYr(a,"strict")){if(!XYr(a.strict))throw new TypeError(gn("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(gn("invalid argument. Number of indices does not match the number of array dimensions. Array shape: (%s). Number of indices: %u.",n.join(","),0))}if(WYr(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(gn("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)}JW.exports=tWr});var HW=c((Yme,XW)=>{"use strict";var iWr=KW();XW.exports=iWr});var QW=c((Wme,ZW)=>{"use strict";var oWr=se(),sWr=ze(),nWr=oe(),vWr=Ue().isPrimitive,uWr=de().isPrimitive,fWr=xi(),lWr=qi(),cWr=Jr(),dWr=ie(),pWr=kf(),hn=cr();function yWr(r){return!(vWr(r)||fWr(r)||lWr(r))}function mWr(r,e){var a,t,o,i,n,s;if(o={strict:!0},t=arguments.length,!oWr(r))throw new TypeError(hn("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(nWr(arguments[t-1])){if(t-=1,a=arguments[t],cWr(a,"strict")){if(!uWr(a.strict))throw new TypeError(hn("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(n=dWr(r),t===1&&n.length>0)throw new RangeError(hn("invalid argument. Number of indices does not match the number of array dimensions. Array shape: (%s). Number of indices: %u.",n.join(","),0))}if(sWr(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(yWr(i[s]))throw new TypeError(hn("invalid argument. Each index argument must be either an integer, null, or undefined. Value: `%s`.",String(i[s])));return pWr(r,i,o.strict,!1)}ZW.exports=mWr});var eJ=c((Jme,rJ)=>{"use strict";var gWr=QW();rJ.exports=gWr});var iJ=c((Kme,tJ)=>{"use strict";var aJ=ue().isPrimitive,hWr=De(),bWr=Rf(),Xl=cr();function xWr(r,e){var a;if(typeof r!="object"||r===null||!hWr(r.shape))throw new TypeError(Xl("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!aJ(e))throw new TypeError(Xl("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(a=bWr(r,e),aJ(a))return a;throw new TypeError(Xl("invalid argument. First argument must be an ndarray. Value: `%s`.",r))}tJ.exports=xWr});var sJ=c((Xme,oJ)=>{"use strict";var qWr=iJ();oJ.exports=qWr});var nJ=c((Hme,wWr)=>{wWr.exports={mode:["throw"],order:"row-major"}});var fJ=c((Zme,uJ)=>{"use strict";var SWr=oe(),vJ=Jr(),EWr=ha(),AWr=Sa(),_Wr=pi(),bn=cr();function jWr(r,e){var a;if(!SWr(e))return new TypeError(bn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(vJ(e,"mode")){if(r.mode=e.mode,!EWr(r.mode))r.mode=[r.mode];else if(r.mode.length===0)return new TypeError(bn("invalid option. `%s` option cannot be an empty array.","mode"));for(a=0;a<r.mode.length;a++)if(!_Wr(r.mode[a]))return new TypeError(bn("invalid option. `%s` option must be a supported/recognized mode. Option: `%s`.","mode",r.mode[a]))}return vJ(e,"order")&&(r.order=e.order,!AWr(r.order))?new TypeError(bn("invalid option. `%s` option must be a supported/recognized order. Option: `%s`.","order",r.order)):null}uJ.exports=jWr});var dJ=c((Qme,cJ)=>{"use strict";var TWr=Ut().primitives,OWr=ue().isPrimitive,IWr=Be(),NWr=Bf(),Hl=cr(),lJ=nJ(),DWr=fJ();function kWr(){var r,e,a,t,o,i,n,s,v;if(e=arguments[0],!TWr(e))throw new TypeError(Hl("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=lJ.mode.slice(),o.order=lJ.order,n>a+1){if(v=n-1,r=arguments[v],i=DWr(o,r),i)throw i}else v=n;if(s=1,v-s!==a)throw new RangeError(Hl("invalid argument. Number of provided subscripts must match the number of dimensions. ndims: `%u`. Number of subscripts: `%u`.",a,v-s));for(t=new Array(a+4),t[0]=e,t[1]=IWr(e,o.order),t[2]=0;s<v;s++){if(!OWr(arguments[s]))throw new TypeError(Hl("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,NWr.apply(null,t)}cJ.exports=kWr});var yJ=c((r1e,pJ)=>{"use strict";var RWr=dJ();pJ.exports=RWr});var xJ=c((e1e,bJ)=>{"use strict";var BWr=oe(),Do=Jr(),zWr=Xo(),VWr=Be(),PWr=Me(),FWr=Na(),LWr=Wr(),CWr=da(),hJ=Oa(),xn=cr(),mJ=hJ.get("dtypes.default"),gJ=hJ.get("order");function UWr(r){var e,a,t,o,i,n,s,v,u;if(i={},arguments.length>1){if(e=arguments[1],!BWr(e))throw new TypeError(xn("invalid argument. Options argument must be an object. Value: `%s`.",e));Do(e,"dtype")?a=e.dtype:a=mJ,Do(e,"order")?t=e.order:t=gJ,Do(e,"mode")&&(i.mode=e.mode),Do(e,"submode")&&(i.submode=e.submode),Do(e,"readonly")&&(i.readonly=e.readonly)}else a=mJ,t=gJ;if(typeof r=="number")u=[r];else if(zWr(r))u=r;else throw new TypeError(xn("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));if(o=u.length,o>0){if(s=LWr(u),s!==s||s<0)throw new TypeError(xn("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));v=VWr(u,t)}else s=1,v=[0];if(n=FWr(a,s),n===null)throw new TypeError(xn("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",a));return new CWr(a,n,u,v,PWr(u,v),t,i)}bJ.exports=UWr});var wJ=c((a1e,qJ)=>{"use strict";var MWr=xJ();qJ.exports=MWr});var jJ=c((t1e,_J)=>{"use strict";var GWr=se(),$Wr=oe(),YWr=Ut().primitives,ki=Jr(),WWr=Be(),JWr=Me(),KWr=Na(),XWr=Wr(),SJ=Da(),EJ=ie(),AJ=$a(),HWr=da(),qn=cr();function ZWr(r){var e,a,t,o,i,n,s,v,u;if(!GWr(r))throw new TypeError(qn("invalid argument. First argument must be an ndarray-like object. Value: `%s`.",r));if(i={},arguments.length>1){if(e=arguments[1],!$Wr(e))throw new TypeError(qn("invalid argument. Options argument must be an object. Value: `%s`.",e));if(ki(e,"dtype")?a=e.dtype:a=SJ(r),ki(e,"shape")){if(u=e.shape,typeof u=="number"&&(u=[u]),!YWr(u))throw new TypeError(qn("invalid option. `%s` option must be a nonnegative integer or an array of nonnegative integers. Option: `%s`.","shape",u))}else u=EJ(r);ki(e,"order")?t=e.order:t=AJ(r),ki(e,"mode")&&(i.mode=e.mode),ki(e,"submode")&&(i.submode=e.submode),ki(e,"readonly")&&(i.readonly=e.readonly)}else a=SJ(r),u=EJ(r),t=AJ(r);if(o=u.length,o>0?(s=XWr(u),v=WWr(u,t)):(s=1,v=[0]),n=KWr(a,s),n===null)throw new TypeError(qn("invalid argument. First argument must have a recognized data type. Value: `%s`.",a));return new HWr(a,n,u,v,JWr(u,v),t,i)}_J.exports=ZWr});var OJ=c((i1e,TJ)=>{"use strict";var QWr=jJ();TJ.exports=QWr});var Zl=c((o1e,IJ)=>{"use strict";var Cr=It(),Pr={};Cr(Pr,"array",iA());Cr(Pr,"at",uA());Cr(Pr,"base",bL());Cr(Pr,"broadcastArray",$s());Cr(Pr,"broadcastArrays",Vf());Cr(Pr,"castingModes",qu());Cr(Pr,"ndarray",da());Cr(Pr,"dataBuffer",st());Cr(Pr,"defaults",Oa());Cr(Pr,"dispatch",ML());Cr(Pr,"dtype",Da());Cr(Pr,"dtypes",ke());Cr(Pr,"empty",XL());Cr(Pr,"emptyLike",tC());Cr(Pr,"FancyArray",O9());Cr(Pr,"flag",iG());Cr(Pr,"flags",vG());Cr(Pr,"scalar2ndarray",nl());Cr(Pr,"ind2sub",xG());Cr(Pr,"indexModes",Ct());Cr(Pr,"iter",HY());Cr(Pr,"maybeBroadcastArray",Al());Cr(Pr,"maybeBroadcastArrays",_l());Cr(Pr,"minDataType",al());Cr(Pr,"mostlySafeCasts",Au());Cr(Pr,"ndarraylike2ndarray",eW());Cr(Pr,"ndims",Ss());Cr(Pr,"nextDataType",sW());Cr(Pr,"numel",Yl());Cr(Pr,"numelDimension",pW());Cr(Pr,"offset",xt());Cr(Pr,"order",$a());Cr(Pr,"orders",Lt());Cr(Pr,"outputDataTypePolicies",Cs());Cr(Pr,"promotionRules",qW());Cr(Pr,"safeCasts",Eu());Cr(Pr,"sameKindCasts",_u());Cr(Pr,"shape",ie());Cr(Pr,"slice",Kl());Cr(Pr,"ndsliceAssign",DW());Cr(Pr,"sliceDimension",VW());Cr(Pr,"sliceDimensionFrom",UW());Cr(Pr,"sliceDimensionTo",WW());Cr(Pr,"sliceFrom",HW());Cr(Pr,"sliceTo",eJ());Cr(Pr,"stride",sJ());Cr(Pr,"strides",Ga());Cr(Pr,"sub2ind",yJ());Cr(Pr,"ndarray2array",Cl());Cr(Pr,"zeros",wJ());Cr(Pr,"zerosLike",OJ());IJ.exports=Pr});var cK=c((_1e,lK)=>{"use strict";var gJr=Xt();function hJr(r){try{return require(r)}catch(e){return gJr(e)?e:typeof e=="object"?new Error(JSON.stringify(e)):new Error(e.toString())}}lK.exports=hJr});var lc=c((j1e,dK)=>{"use strict";var bJr=cK();dK.exports=bJr});var yK=c((T1e,pK)=>{"use strict";function xJr(r,e){return r>e?r:e}pK.exports=xJr});var gK=c((O1e,mK)=>{"use strict";var qJr=yK();mK.exports=qJr});var bK=c((I1e,hK)=>{"use strict";var wJr=Ve().factory,SJr=Dv(),EJr=wJr(SJr());hK.exports=EJr});var qK=c((N1e,xK)=>{"use strict";var AJr=bK();xK.exports=AJr});var wK=c((D1e,_Jr)=>{_Jr.exports=["no-transpose","transpose","conjugate-transpose"]});var EK=c((k1e,SK)=>{"use strict";var jJr=wK();function TJr(){return jJr.slice()}SK.exports=TJr});var _K=c((R1e,AK)=>{"use strict";function OJr(){return{"no-transpose":111,transpose:112,"conjugate-transpose":113}}AK.exports=OJr});var OK=c((B1e,TK)=>{"use strict";var IJr=Tr(),jK=EK(),NJr=_K();IJr(jK,"enum",NJr);TK.exports=jK});var NK=c((z1e,IK)=>{"use strict";var DJr=Ve().factory,kJr=OK(),RJr=DJr(kJr());IK.exports=RJr});var cc=c((V1e,DK)=>{"use strict";var BJr=NK();DK.exports=BJr});var RK=c((P1e,kK)=>{"use strict";function zJr(r,e){return e>0?0:(1-r)*e}kK.exports=zJr});var zK=c((F1e,BK)=>{"use strict";var VJr=RK();BK.exports=VJr});var dc=c((L1e,VK)=>{"use strict";var Bo=5;function PJr(r,e,a,t,o,i,n){var s,v,u,f,l;if(s=0,r<=0)return s;if(v=t,u=n,a===1&&i===1){if(f=r%Bo,f>0)for(l=0;l<f;l++)s+=e[v]*o[u],v+=1,u+=1;if(r<Bo)return s;for(l=f;l<r;l+=Bo)s+=e[v]*o[u]+e[v+1]*o[u+1]+e[v+2]*o[u+2]+e[v+3]*o[u+3]+e[v+4]*o[u+4],v+=Bo,u+=Bo;return s}for(l=0;l<r;l++)s+=e[v]*o[u],v+=a,u+=i;return s}VK.exports=PJr});var LK=c((C1e,FK)=>{"use strict";var PK=zK(),FJr=dc();function LJr(r,e,a,t,o){var i,n;return r<=0?0:(i=PK(r,a),n=PK(r,o),FJr(r,e,a,i,t,o,n))}FK.exports=LJr});var MK=c((U1e,UK)=>{"use strict";var CJr=Tr(),CK=LK(),UJr=dc();CJr(CK,"ndarray",UJr);UK.exports=CK});var YK=c((M1e,$K)=>{"use strict";var MJr=require("path").join,GJr=lc(),$Jr=Xt(),YJr=MK(),pc,GK=GJr(MJr(__dirname,"./native.js"));$Jr(GK)?pc=YJr:pc=GK;$K.exports=pc});var yc=c((G1e,JK)=>{"use strict";var En=Ns(),WK=YK().ndarray,WJr=Br(),ct=WJr("float64");function jt(r){return r!=="no-transpose"}function JJr(r,e,a,t,o,i){var n,s,v,u,f,l,d;for(En([t,o])?(v=e,u=r,n=o,s=t-v*o):(v=r,u=e,n=t,s=o-v*t),d=i,l=0;l<u;l++){for(f=0;f<v;f++)a[d]=0,d+=n;d+=s}return a}function KJr(r,e,a,t,o,i,n){var s,v,u,f,l,d,m;for(En([o,i])?(u=e,f=r,s=i,v=o-u*i):(u=r,f=e,s=o,v=i-u*o),m=n,d=0;d<f;d++){for(l=0;l<u;l++)t[m]*=a,m+=s;m+=v}return t}function Sn(r,e,a,t,o,i,n,s,v,u,f,l,d,m,p,y){var g,h,b,S,w,A,_,x,E,q,j;for(w=e,A=r,g=n,h=u,b=p,S=m-w*p,j=y,x=0;x<A;x++){for(E=s+x*i,_=0;_<w;_++)q=l+_*f,d[j]+=t*WK(a,o,g,E,v,h,q),j+=b;j+=S}return d}function XJr(r,e,a,t,o,i,n,s,v,u,f,l,d,m,p,y){var g,h,b,S,w,A,_,x,E,q,j,T,I,O,D,k,N,B,z,R,V,P,F;for(E=e,q=r,g=n,h=u,b=p,N=q;N>0;)for(N<ct?(T=N,N=0):(T=ct,N-=ct),w=s+N*i,x=y+N*m,k=E;k>0;)for(k<ct?(j=k,k=0):(j=ct,k-=ct),A=l+k*f,_=x+k*p,S=m-j*p,F=a;F>0;)for(F<ct?(I=F,F=0):(I=ct,F-=ct),V=w+F*n,P=A+F*u,R=_,D=0;D<T;D++){for(B=V+D*i,O=0;O<j;O++)z=P+O*f,d[R]+=t*WK(I,o,g,B,v,h,z),R+=b;R+=S}return d}function HJr(r,e,a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b){var S,w,A,_,x,E;if(a===0||t===0||p===1&&(i===0||o===0)||(p===0?y=JJr(a,t,y,g,h,b):p!==1&&(y=KJr(a,t,p,y,g,h,b)),i===0))return y;if(S=En([s,v]),w=En([l,d]),S){if(!jt(r)){if(!w&&!jt(e))return Sn(a,t,o,i,n,s,v,u,f,l,d,m,y,g,h,b);if(w&&jt(e))return Sn(a,t,o,i,n,s,v,u,f,d,l,m,y,g,h,b)}}else if(jt(r)){if(w&&jt(e))return Sn(a,t,o,i,n,v,s,u,f,d,l,m,y,g,h,b);if(!w&&!jt(e))return Sn(a,t,o,i,n,v,s,u,f,l,d,m,y,g,h,b)}return jt(r)?(A=v,_=s):(A=s,_=v),jt(e)?(x=d,E=l):(x=l,E=d),XJr(a,t,o,i,n,A,_,u,f,x,E,m,y,g,h,b)}JK.exports=HJr});var HK=c(($1e,XK)=>{"use strict";var mc=gK(),ZJr=qK(),KK=cc(),dt=cr(),QJr=yc();function rKr(r,e,a,t,o,i,n,s,v,u,f,l,d,m){var p,y,g,h,b,S,w,A,_;if(!ZJr(r))throw new TypeError(dt("invalid argument. First argument must be a valid order. Value: `%s`.",r));if(!KK(e))throw new TypeError(dt("invalid argument. Second argument must be a valid transpose operation. Value: `%s`.",e));if(!KK(a))throw new TypeError(dt("invalid argument. Third argument must be a valid transpose operation. Value: `%s`.",a));if(t<0)throw new RangeError(dt("invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.",t));if(o<0)throw new RangeError(dt("invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.",t));if(i<0)throw new RangeError(dt("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"?y=o:y=i,v<mc(1,p))throw new RangeError(dt("invalid argument. Ninth argument must be greater than or equal to max(1,%d). Value: `%d`.",p,v));if(f<mc(1,y))throw new RangeError(dt("invalid argument. Eleventh argument must be greater than or equal to max(1,%d). Value: `%d`.",y,f));if(r==="row-major"?g=o:g=t,m<mc(1,g))throw new RangeError(dt("invalid argument. Fourteenth argument must be greater than or equal to max(1,%d). Value: `%d`.",g,m));return r==="column-major"?(h=1,b=v,S=1,w=f,A=1,_=m):(h=v,b=1,S=f,w=1,A=m,_=1),QJr(e,a,t,o,i,n,s,h,b,0,u,S,w,0,l,d,A,_,0)}XK.exports=rKr});var rX=c((Y1e,QK)=>{"use strict";var ZK=cc(),zo=cr(),eKr=yc();function aKr(r,e,a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b){if(!ZK(r))throw new TypeError(zo("invalid argument. First argument must be a valid transpose operation. Value: `%s`.",r));if(!ZK(e))throw new TypeError(zo("invalid argument. Second argument must be a valid transpose operation. Value: `%s`.",e));if(a<0)throw new RangeError(zo("invalid argument. Third argument must be a nonnegative integer. Value: `%d`.",a));if(t<0)throw new RangeError(zo("invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.",a));if(o<0)throw new RangeError(zo("invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.",o));return eKr(r,e,a,t,o,i,n,s,v,u,f,l,d,m,p,y,g,h,b)}QK.exports=aKr});var tX=c((W1e,aX)=>{"use strict";var tKr=Tr(),eX=HK(),iKr=rX();tKr(eX,"ndarray",iKr);aX.exports=eX});var sX=c((J1e,oX)=>{"use strict";var oKr=require("path").join,sKr=lc(),nKr=Xt(),vKr=tX(),gc,iX=sKr(oKr(__dirname,"./native.js"));nKr(iX)?gc=vKr:gc=iX;oX.exports=gc});var yKr={};FX(yKr,{NDArray:()=>Ie,__version__:()=>pKr,absolute:()=>jX,arange:()=>pX,array:()=>Xa,asarray:()=>bX,copy:()=>xX,empty:()=>xc,empty_like:()=>SX,eye:()=>bc,floor_divide:()=>NX,full:()=>qc,full_like:()=>EX,geomspace:()=>gX,identity:()=>hX,linspace:()=>yX,logspace:()=>mX,mod:()=>IX,negative:()=>TX,ones:()=>hc,ones_like:()=>wX,positive:()=>DX,power:()=>_X,reciprocal:()=>kX,sign:()=>OX,sqrt:()=>AX,zeros:()=>An,zeros_like:()=>qX});module.exports=LX(yKr);var ve=He(Zl(),1),lX=He(Kl(),1),cX=He(Pe(),1);function NJ(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 DJ(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 Xe="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 Ir(r){return r==="int64"||r==="uint64"}function wn(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 u=e;return u==="int32"||u==="int64"||u==="uint32"||u==="uint64"?"float64":"float32"}if(e==="float32"){let u=r;return u==="int32"||u==="int64"||u==="uint32"||u==="uint64"?"float64":"float32"}return"float32"}let a=r.startsWith("int"),t=e.startsWith("int"),o=r.startsWith("uint"),i=e.startsWith("uint"),n=u=>u.includes("64")?64:u.includes("32")?32:u.includes("16")?16:u.includes("8")?8:0,s=n(r),v=n(e);if(r==="int64"&&e==="uint64"||r==="uint64"&&e==="int64")return"float64";if(a&&i&&s===v){if(s===8)return"int16";if(s===16)return"int32";if(s===32)return"int64"}if(o&&t&&s===v){if(v===8)return"int16";if(v===16)return"int32";if(v===32)return"int64"}if(a&&t||o&&i){let u=Math.max(s,v);return a?u===64?"int64":u===32?"int32":u===16?"int16":"int8":u===64?"uint64":u===32?"uint32":u===16?"uint16":"uint8"}return a&&i?s>v?r:v===8?"int16":v===16?"int32":v===32?"int64":"float64":o&&t?v>s?e:s===8?"int16":s===16?"int32":s===32?"int64":"float64":"float64"}function ne(r){return r==="int64"||r==="uint64"?"generic":r}var ko=He(da(),1),RJ=He(Da(),1),BJ=He(ie(),1),zJ=He(Ga(),1),VJ=He(Ss(),1),PJ=He(Yl(),1),FJ=He(st(),1);var Nr=class r{constructor(e,a){this._stdlib=e,this._dtype=a||(0,RJ.default)(e)}get shape(){return Array.from((0,BJ.default)(this._stdlib))}get ndim(){return(0,VJ.default)(this._stdlib)}get size(){return(0,PJ.default)(this._stdlib)}get dtype(){return this._dtype}get data(){return(0,FJ.default)(this._stdlib)}get strides(){return Array.from((0,zJ.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(Ir(t)){let i=new o(this.size),n=a;for(let v=0;v<this.size;v++)i[v]=n[v];let s=(0,ko.default)(ne(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,ko.default)(ne(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,ko.default)(ne(t),e,a,o,0,"row-major");return new r(i,t)}static zeros(e,a=Xe){let t=e.reduce((s,v)=>s*v,1),o=je(a);if(!o)throw new Error(`Cannot create array with dtype ${a}`);let i=new o(t),n=(0,ko.default)(ne(a),i,e,r._computeStrides(e),0,"row-major");return new r(n,a)}static ones(e,a=Xe){let t=r.zeros(e,a),o=t.data;if(Ir(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 Ql=He(Vf(),1);function za(r,e,a,t){let o,i;try{[o,i]=(0,Ql.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=wn(r.dtype,e.dtype),s=Array.from(o.shape),v=Nr.zeros(s,n),u=v.data,f=v.size;if(Ir(n)){let l=u;for(let d=0;d<f;d++){let m=o.iget(d),p=i.iget(d),y=typeof m=="bigint"?m:BigInt(Math.round(m)),g=typeof p=="bigint"?p:BigInt(Math.round(p));t==="add"?l[d]=y+g:t==="subtract"?l[d]=y-g:t==="multiply"?l[d]=y*g:t==="divide"?l[d]=y/g:l[d]=BigInt(Math.round(a(Number(y),Number(g))))}}else{let l=Ir(r.dtype)||Ir(e.dtype);for(let d=0;d<f;d++){let m=o.iget(d),p=i.iget(d),y=Number(m),g=Number(p);u[d]=a(y,g)}}return v}function _t(r,e,a){let t,o;try{[t,o]=(0,Ql.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((u,f)=>u*f,1),s=new Uint8Array(n),v=Ir(r.dtype)||Ir(e.dtype);for(let u=0;u<n;u++){let f=t.iget(u),l=o.iget(u),d=Number(f),m=Number(l);s[u]=a(d,m)?1:0}return Nr.fromData(s,i,"bool")}function LJ(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,v=Nr.zeros(o,s),u=v.data,f=r.data;if(Ir(t))if(Ir(s)){let l=u;for(let d=0;d<i;d++){let m=Number(f[d]);l[d]=BigInt(Math.round(e(m)))}}else for(let l=0;l<i;l++)u[l]=e(Number(f[l]));else for(let l=0;l<i;l++)u[l]=e(Number(f[l]));return v}function CJ(r,e){return typeof e=="number"?rJr(r,e):za(r,e,(a,t)=>a+t,"add")}function UJ(r,e){return typeof e=="number"?eJr(r,e):za(r,e,(a,t)=>a-t,"subtract")}function MJ(r,e){return typeof e=="number"?aJr(r,e):za(r,e,(a,t)=>a*t,"multiply")}function GJ(r,e){if(typeof e=="number")return tJr(r,e);let a=r.dtype==="float64",t=e.dtype==="float64",o=r.dtype==="float32",i=e.dtype==="float32";if(a||t){let v=a?r:Ri(r,"float64"),u=t?e:Ri(e,"float64");return za(v,u,(f,l)=>f/l,"divide")}if(o||i){let v=o?r:Ri(r,"float32"),u=i?e:Ri(e,"float32");return za(v,u,(f,l)=>f/l,"divide")}let n=Ri(r,"float64"),s=Ri(e,"float64");return za(n,s,(v,u)=>v/u,"divide")}function Ri(r,e){let a=Nr.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 rJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Nr.zeros(t,a),s=n.data;if(Ir(a)){let v=o,u=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)u[l]=v[l]+f}else for(let v=0;v<i;v++)s[v]=Number(o[v])+e;return n}function eJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Nr.zeros(t,a),s=n.data;if(Ir(a)){let v=o,u=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)u[l]=v[l]-f}else for(let v=0;v<i;v++)s[v]=Number(o[v])-e;return n}function aJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Nr.zeros(t,a),s=n.data;if(Ir(a)){let v=o,u=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)u[l]=v[l]*f}else for(let v=0;v<i;v++)s[v]=Number(o[v])*e;return n}function tJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,s=a!=="float32"&&a!=="float64"?"float64":a,v=Nr.zeros(t,s),u=v.data;if(Ir(a))for(let f=0;f<i;f++)u[f]=Number(o[f])/e;else for(let f=0;f<i;f++)u[f]=Number(o[f])/e;return v}function $J(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Nr.zeros(a,e),n=i.data;if(Ir(e)){let s=t,v=n;for(let u=0;u<o;u++){let f=s[u];v[u]=f<0n?-f:f}}else for(let s=0;s<o;s++)n[s]=Math.abs(Number(t[s]));return i}function YJ(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Nr.zeros(a,e),n=i.data;if(Ir(e)){let s=t,v=n;for(let u=0;u<o;u++)v[u]=-s[u]}else for(let s=0;s<o;s++)n[s]=-Number(t[s]);return i}function WJ(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Nr.zeros(a,e),n=i.data;if(Ir(e)){let s=t,v=n;for(let u=0;u<o;u++){let f=s[u];v[u]=f>0n?1n:f<0n?-1n:0n}}else for(let s=0;s<o;s++){let v=Number(t[s]);n[s]=v>0?1:v<0?-1:0}return i}function JJ(r,e){return typeof e=="number"?iJr(r,e):za(r,e,(a,t)=>(a%t+t)%t,"mod")}function iJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Nr.zeros(t,a),s=n.data;if(Ir(a)){let v=o,u=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++){let d=v[l];u[l]=(d%f+f)%f}}else for(let v=0;v<i;v++){let u=Number(o[v]);s[v]=(u%e+e)%e}return n}function KJ(r,e){return typeof e=="number"?oJr(r,e):za(r,e,(a,t)=>Math.floor(a/t),"floor_divide")}function oJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Nr.zeros(t,a),s=n.data;if(Ir(a)){let v=o,u=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)u[l]=v[l]/f}else for(let v=0;v<i;v++)s[v]=Math.floor(Number(o[v])/e);return n}function XJ(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Nr.zeros(a,e),n=i.data;for(let s=0;s<o;s++)n[s]=t[s];return i}function HJ(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,n=e!=="float32"&&e!=="float64"?"float64":e,s=Nr.zeros(a,n),v=s.data;if(Ir(e))for(let u=0;u<o;u++)v[u]=1/Number(t[u]);else for(let u=0;u<o;u++)v[u]=1/Number(t[u]);return s}function ZJ(r,e){return typeof e=="number"?nJr(r,e):_t(r,e,(a,t)=>a>t)}function QJ(r,e){return typeof e=="number"?vJr(r,e):_t(r,e,(a,t)=>a>=t)}function rK(r,e){return typeof e=="number"?uJr(r,e):_t(r,e,(a,t)=>a<t)}function eK(r,e){return typeof e=="number"?fJr(r,e):_t(r,e,(a,t)=>a<=t)}function aK(r,e){return typeof e=="number"?lJr(r,e):_t(r,e,(a,t)=>a===t)}function tK(r,e){return typeof e=="number"?cJr(r,e):_t(r,e,(a,t)=>a!==t)}function rc(r,e,a=1e-5,t=1e-8){return typeof e=="number"?dJr(r,e,a,t):_t(r,e,(o,i)=>{let n=Math.abs(o-i),s=t+a*Math.abs(i);return n<=s})}function iK(r,e,a=1e-5,t=1e-8){let o=rc(r,e,a,t),i=o.data;for(let n=0;n<o.size;n++)if(i[n]===0)return!1;return!0}function nJr(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 Nr.fromData(a,Array.from(r.shape),"bool")}function vJr(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 Nr.fromData(a,Array.from(r.shape),"bool")}function uJr(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 Nr.fromData(a,Array.from(r.shape),"bool")}function fJr(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 Nr.fromData(a,Array.from(r.shape),"bool")}function lJr(r,e){let a=new Uint8Array(r.size),t=r.data,o=r.dtype;if(Ir(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 Nr.fromData(a,Array.from(r.shape),"bool")}function cJr(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 Nr.fromData(a,Array.from(r.shape),"bool")}function dJr(r,e,a,t){let o=new Uint8Array(r.size),i=r.data,n=r.dtype;if(Ir(n)){let s=i;for(let v=0;v<r.size;v++){let u=Number(s[v]),f=Math.abs(u-e),l=t+a*Math.abs(e);o[v]=f<=l?1:0}}else for(let s=0;s<r.size;s++){let v=Number(i[s]),u=Math.abs(v-e),f=t+a*Math.abs(e);o[s]=u<=f?1:0}return Nr.fromData(o,Array.from(r.shape),"bool")}function Bi(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 Te(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((v,u)=>u!==e),s=r;for(let v=n.length-1;v>=0;v--)i[v>=e?v+1:v]=s%n[v],s=Math.floor(s/n[v]);return i[e]=a,i}function Ro(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(Ir(t)){let p=s,y=BigInt(0);for(let g=0;g<n;g++)y+=p[g];return Number(y)}else{let p=0;for(let y=0;y<n;y++)p+=Number(s[y]);return p}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 u=Array.from(o).filter((p,y)=>y!==v);if(u.length===0)return Ro(r);let f=Nr.zeros(u,t),l=f.data,d=o[v],m=u.reduce((p,y)=>p*y,1);if(Ir(t)){let p=s,y=l;for(let g=0;g<m;g++){let h=BigInt(0);for(let b=0;b<d;b++){let S=Oe(g,v,b,o),w=Te(S,o);h+=p[w]}y[g]=h}}else for(let p=0;p<m;p++){let y=0;for(let g=0;g<d;g++){let h=Oe(p,v,g,o),b=Te(h,o);y+=Number(s[b])}l[p]=y}if(a){let p=[...o];return p[v]=1,Nr.fromData(l,p,t)}return f}function ec(r,e,a=!1){let t=r.dtype,o=r.shape;if(e===void 0)return Ro(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=Ro(r,e,a);if(typeof n=="number")return n/o[i];let s=o[i],v=t;(Ir(t)||t.startsWith("int")||t.startsWith("uint"))&&(v="float64");let u=Nr.zeros(Array.from(n.shape),v),f=u.data,l=n.data;if(Ir(t)){let d=l;for(let m=0;m<f.length;m++)f[m]=Number(d[m])/s}else for(let d=0;d<f.length;d++)f[d]=Number(l[d])/s;return u}function ac(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 y=1;y<n;y++)s[y]>p&&(p=s[y]);return Number(p)}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 u=Array.from(o).filter((p,y)=>y!==v);if(u.length===0)return ac(r);let f=Nr.zeros(u,t),l=f.data,d=o[v],m=u.reduce((p,y)=>p*y,1);if(Ir(t)){let p=s,y=l;for(let g=0;g<m;g++){let h=Oe(g,v,0,o),b=Te(h,o),S=p[b];for(let w=1;w<d;w++){let A=Oe(g,v,w,o),_=Te(A,o),x=p[_];x>S&&(S=x)}y[g]=S}}else for(let p=0;p<m;p++){let y=-1/0;for(let g=0;g<d;g++){let h=Oe(p,v,g,o),b=Te(h,o),S=Number(s[b]);S>y&&(y=S)}l[p]=y}if(a){let p=[...o];return p[v]=1,Nr.fromData(l,p,t)}return f}function tc(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(Ir(t)){let p=s,y=BigInt(1);for(let g=0;g<n;g++)y*=p[g];return Number(y)}else{let p=1;for(let y=0;y<n;y++)p*=Number(s[y]);return p}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 u=Array.from(o).filter((p,y)=>y!==v);if(u.length===0)return tc(r);let f=Nr.zeros(u,t),l=f.data,d=o[v],m=u.reduce((p,y)=>p*y,1);if(Ir(t)){let p=s,y=l;for(let g=0;g<m;g++){let h=BigInt(1);for(let b=0;b<d;b++){let S=Oe(g,v,b,o),w=Te(S,o);h*=p[w]}y[g]=h}}else for(let p=0;p<m;p++){let y=1;for(let g=0;g<d;g++){let h=Oe(p,v,g,o),b=Te(h,o);y*=Number(s[b])}l[p]=y}if(a){let p=[...o];return p[v]=1,Nr.fromData(l,p,t)}return f}function ic(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 y=1;y<n;y++)s[y]<p&&(p=s[y]);return Number(p)}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 u=Array.from(o).filter((p,y)=>y!==v);if(u.length===0)return ic(r);let f=Nr.zeros(u,t),l=f.data,d=o[v],m=u.reduce((p,y)=>p*y,1);if(Ir(t)){let p=s,y=l;for(let g=0;g<m;g++){let h=Oe(g,v,0,o),b=Te(h,o),S=p[b];for(let w=1;w<d;w++){let A=Oe(g,v,w,o),_=Te(A,o),x=p[_];x<S&&(S=x)}y[g]=S}}else for(let p=0;p<m;p++){let y=1/0;for(let g=0;g<d;g++){let h=Oe(p,v,g,o),b=Te(h,o),S=Number(s[b]);S<y&&(y=S)}l[p]=y}if(a){let p=[...o];return p[v]=1,Nr.fromData(l,p,t)}return f}function oc(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],p=0;for(let y=1;y<i;y++)n[y]<m&&(m=n[y],p=y);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 v=Array.from(t).filter((m,p)=>p!==s);if(v.length===0)return oc(r);let u=Nr.zeros(v,"int32"),f=u.data,l=t[s],d=v.reduce((m,p)=>m*p,1);if(Ir(a)){let m=n;for(let p=0;p<d;p++){let y=Oe(p,s,0,t),g=Te(y,t),h=m[g],b=0;for(let S=1;S<l;S++){let w=Oe(p,s,S,t),A=Te(w,t),_=m[A];_<h&&(h=_,b=S)}f[p]=b}}else for(let m=0;m<d;m++){let p=1/0,y=0;for(let g=0;g<l;g++){let h=Oe(m,s,g,t),b=Te(h,t),S=Number(n[b]);S<p&&(p=S,y=g)}f[m]=y}return u}function sc(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],p=0;for(let y=1;y<i;y++)n[y]>m&&(m=n[y],p=y);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 v=Array.from(t).filter((m,p)=>p!==s);if(v.length===0)return sc(r);let u=Nr.zeros(v,"int32"),f=u.data,l=t[s],d=v.reduce((m,p)=>m*p,1);if(Ir(a)){let m=n;for(let p=0;p<d;p++){let y=Oe(p,s,0,t),g=Te(y,t),h=m[g],b=0;for(let S=1;S<l;S++){let w=Oe(p,s,S,t),A=Te(w,t),_=m[A];_>h&&(h=_,b=S)}f[p]=b}}else for(let m=0;m<d;m++){let p=-1/0,y=0;for(let g=0;g<l;g++){let h=Oe(m,s,g,t),b=Te(h,t),S=Number(n[b]);S>p&&(p=S,y=g)}f[m]=y}return u}function nc(r,e,a=0,t=!1){let o=r.shape,i=o.length,n=r.size,s=r.data,v=ec(r,e,t);if(e===void 0){let h=v,b=0;for(let S=0;S<n;S++){let w=Number(s[S])-h;b+=w*w}return b/(n-a)}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 f=o[u],l=v,d=l.data,m=t?l.shape:Array.from(o).filter((h,b)=>b!==u),p=Nr.zeros(Array.from(m),"float64"),y=p.data,g=m.reduce((h,b)=>h*b,1);for(let h=0;h<g;h++){let b=0,S=Number(d[h]);for(let w=0;w<f;w++){let A=Oe(h,u,w,o),_=Te(A,o),x=Number(s[_])-S;b+=x*x}y[h]=b/(f-a)}return p}function oK(r,e,a=0,t=!1){let o=nc(r,e,a,t);if(typeof o=="number")return Math.sqrt(o);let i=Nr.zeros(Array.from(o.shape),"float64"),n=o.data,s=i.data;for(let v=0;v<n.length;v++)s[v]=Math.sqrt(Number(n[v]));return i}function vc(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 v=Array.from(t).filter((m,p)=>p!==s);if(v.length===0)return vc(r);let u=Nr.zeros(v,"bool"),f=u.data,l=t[s],d=v.reduce((m,p)=>m*p,1);for(let m=0;m<d;m++){let p=!0;for(let y=0;y<l;y++){let g=Oe(m,s,y,t),h=Te(g,t);if(!n[h]){p=!1;break}}f[m]=p?1:0}if(a){let m=[...t];return m[s]=1,Nr.fromData(f,m,"bool")}return u}function uc(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 v=Array.from(t).filter((m,p)=>p!==s);if(v.length===0)return uc(r);let u=Nr.zeros(v,"bool"),f=u.data,l=t[s],d=v.reduce((m,p)=>m*p,1);for(let m=0;m<d;m++){let p=!1;for(let y=0;y<l;y++){let g=Oe(m,s,y,t),h=Te(g,t);if(n[h]){p=!0;break}}f[m]=p?1:0}if(a){let m=[...t];return m[s]=1,Nr.fromData(f,m,"bool")}return u}var Ka=He(Zl(),1);function sK(r,e){let a=r.size,t=r.dtype,o=e.indexOf(-1),i;if(o!==-1){let f=e.reduce((d,m,p)=>p===o?d:d*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((d,m)=>m===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=Ka.default.ndarray(ne(t),f,i,Bi(i),0,"row-major");return Nr.fromStdlib(l,t)}let v=r.copy().data,u=Ka.default.ndarray(ne(t),v,i,Bi(i),0,"row-major");return Nr.fromStdlib(u,t)}function fc(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),v=0,u=(l,d)=>{if(d===t){let m=e.get(...l);s[v++]=m;return}for(let m=0;m<a[d];m++)l[d]=m,u(l,d+1)};u(new Array(t),0);let f=Ka.default.ndarray(ne(i),s,[o],[1],0,"row-major");return Nr.fromStdlib(f,i)}function nK(r){let e=r.size,a=r.dtype;if(r.isCContiguous){let t=r.data,o=Ka.default.ndarray(ne(a),t,[e],[1],0,"row-major");return Nr.fromStdlib(o,a)}return fc(r)}function vK(r,e){let a=r.shape,t=a.length,o=r.strides,i=r.data,n=r.dtype,s=r.stdlib,v;if(e===void 0)v=Array.from({length:t},(m,p)=>t-1-p);else{if(e.length!==t)throw new Error(`axes must have length ${t}, got ${e.length}`);let m=new Set;for(let p of e){let y=p<0?t+p:p;if(y<0||y>=t)throw new Error(`axis ${p} is out of bounds for array of dimension ${t}`);if(m.has(y))throw new Error("repeated axis in transpose");m.add(y)}v=e.map(p=>p<0?t+p:p)}let u=v.map(m=>a[m]),f=Array.from(o),l=v.map(m=>f[m]),d=Ka.default.ndarray(ne(n),i,u,l,Ka.default.offset(s),"row-major");return Nr.fromStdlib(d,n)}function uK(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(u=>u!==1);n.length===0&&n.push(1);let s=Bi(n),v=Ka.default.ndarray(ne(i),o,n,s,0,"row-major");return Nr.fromStdlib(v,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),v=Bi(s),u=Ka.default.ndarray(ne(i),o,s,v,0,"row-major");return Nr.fromStdlib(u,i)}}function fK(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 v=Bi(s),u=Ka.default.ndarray(ne(i),o,s,v,0,"row-major");return Nr.fromStdlib(u,i)}var nX=He(sX(),1);function vX(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=wn(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 v=r.dtype==="float64"?r.data:Float64Array.from(Array.from(r.data).map(Number)),u=e.dtype==="float64"?e.data:Float64Array.from(Array.from(e.data).map(Number)),f=Nr.zeros([a,i],"float64");return(0,nX.default)("row-major","no-transpose","no-transpose",a,i,t,1,v,t,u,i,0,f.data,i),f}function uX(r){return LJ(r,Math.sqrt,!1)}function fX(r,e){return typeof e=="number"?fKr(r,e):za(r,e,Math.pow,"power")}function fKr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,v=a!=="float32"&&a!=="float64"&&(e<0||!Number.isInteger(e))?"float64":a,u=Nr.zeros(t,v),f=u.data;if(Ir(a))if(Ir(v)&&Number.isInteger(e)&&e>=0){let l=o,d=f;for(let m=0;m<i;m++)d[m]=l[m]**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 u}var Ie=class r{constructor(e,a,t){this._data=e,this._dtype=a,this._base=t}get _storage(){return new Nr(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 Ir(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 v=n;if(v<0&&(v=this.shape[s]+v),v<0||v>=this.shape[s])throw new Error(`Index ${n} is out of bounds for axis ${s} with size ${this.shape[s]}`);return v}),o=this.dtype,i;Ir(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(Ir(e)){let i=new o(this.size),n=t;for(let v=0;v<this.size;v++)i[v]=n[v];let s=ve.default.ndarray(ne(e),i,a,ga(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(ne(e),i,a,ga(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 Xa(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),v=this.data;if(Ir(t)&&!Ir(e)){let f=v;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(!Ir(t)&&Ir(e)){let f=v;for(let l=0;l<i;l++)s[l]=BigInt(Math.round(Number(f[l])))}else if(e==="bool"){let f=v;for(let l=0;l<i;l++)s[l]=f[l]!==0?1:0}else if(t==="bool"&&!Ir(e)){let f=v;for(let l=0;l<i;l++)s[l]=f[l]}else if(!Ir(t)&&!Ir(e)){let f=v;for(let l=0;l<i;l++)s[l]=f[l]}else{let f=v;for(let l=0;l<i;l++)s[l]=f[l]}let u=ve.default.ndarray(ne(e),s,o,ga(o),0,"row-major");return new r(u,e)}add(e){let a=typeof e=="number"?e:e._storage,t=CJ(this._storage,a);return r._fromStorage(t)}subtract(e){let a=typeof e=="number"?e:e._storage,t=UJ(this._storage,a);return r._fromStorage(t)}multiply(e){let a=typeof e=="number"?e:e._storage,t=MJ(this._storage,a);return r._fromStorage(t)}divide(e){let a=typeof e=="number"?e:e._storage,t=GJ(this._storage,a);return r._fromStorage(t)}mod(e){let a=typeof e=="number"?e:e._storage,t=JJ(this._storage,a);return r._fromStorage(t)}floor_divide(e){let a=typeof e=="number"?e:e._storage,t=KJ(this._storage,a);return r._fromStorage(t)}positive(){let e=XJ(this._storage);return r._fromStorage(e)}reciprocal(){let e=HJ(this._storage);return r._fromStorage(e)}sqrt(){let e=uX(this._storage);return r._fromStorage(e)}power(e){let a=typeof e=="number"?e:e._storage,t=fX(this._storage,a);return r._fromStorage(t)}absolute(){let e=$J(this._storage);return r._fromStorage(e)}negative(){let e=YJ(this._storage);return r._fromStorage(e)}sign(){let e=WJ(this._storage);return r._fromStorage(e)}greater(e){let a=typeof e=="number"?e:e._storage,t=ZJ(this._storage,a);return r._fromStorage(t)}greater_equal(e){let a=typeof e=="number"?e:e._storage,t=QJ(this._storage,a);return r._fromStorage(t)}less(e){let a=typeof e=="number"?e:e._storage,t=rK(this._storage,a);return r._fromStorage(t)}less_equal(e){let a=typeof e=="number"?e:e._storage,t=eK(this._storage,a);return r._fromStorage(t)}equal(e){let a=typeof e=="number"?e:e._storage,t=aK(this._storage,a);return r._fromStorage(t)}not_equal(e){let a=typeof e=="number"?e:e._storage,t=tK(this._storage,a);return r._fromStorage(t)}isclose(e,a=1e-5,t=1e-8){let o=typeof e=="number"?e:e._storage,i=rc(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 iK(this._storage,o,a,t)}sum(e,a=!1){let t=Ro(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}mean(e,a=!1){let t=ec(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}max(e,a=!1){let t=ac(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}min(e,a=!1){let t=ic(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}prod(e,a=!1){let t=tc(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}argmin(e){let a=oc(this._storage,e);return typeof a=="number"?a:r._fromStorage(a)}argmax(e){let a=sc(this._storage,e);return typeof a=="number"?a:r._fromStorage(a)}var(e,a=0,t=!1){let o=nc(this._storage,e,a,t);return typeof o=="number"?o:r._fromStorage(o)}std(e,a=0,t=!1){let o=oK(this._storage,e,a,t);return typeof o=="number"?o:r._fromStorage(o)}all(e,a=!1){let t=vc(this._storage,e,a);return typeof t=="boolean"?t:r._fromStorage(t)}any(e,a=!1){let t=uc(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=sK(this._storage,a),i=t.data===this.data?this._base??this:void 0;return r._fromStorage(t,i)}flatten(){let e=fc(this._storage);return r._fromStorage(e)}ravel(){let e=nK(this._storage),t=e.data===this.data?this._base??this:void 0;return r._fromStorage(e,t)}transpose(e){let a=vK(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}squeeze(e){let a=uK(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}expand_dims(e){let a=fK(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}matmul(e){let a=vX(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 v=NJ(n);return DJ(v,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 v=n.start,u=n.stop;return n.step>0?(v===0&&(v=null),u===this.shape[s]&&(u=null)):(v===this.shape[s]-1&&(v=null),u===-1&&(u=null)),new cX.default(v,u,n.step)}}),o=(0,lX.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 An(r,e=Xe){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(ne(e),o,r,ga(r),0,"row-major");return new Ie(i,e)}function ga(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 hc(r,e=Xe){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);Ir(e)?o.fill(BigInt(1)):o.fill(1);let i=ve.default.ndarray(ne(e),o,r,ga(r),0,"row-major");return new Ie(i,e)}function cKr(r){let e=[],a=r;for(;Array.isArray(a);)e.push(a.length),a=a[0];return e}function dX(r){return typeof r=="bigint"?!0:Array.isArray(r)?r.some(e=>dX(e)):!1}function dKr(r){let e=[];function a(t){Array.isArray(t)?t.forEach(o=>a(o)):e.push(t)}return a(r),e}function Xa(r,e){let a=dX(r);if(a&&e&&Ir(e)){let l=cKr(r),d=l.reduce((h,b)=>h*b,1),m=je(e);if(!m)throw new Error(`Cannot create array with dtype ${e}`);let p=new m(d),y=dKr(r);for(let h=0;h<d;h++){let b=y[h];p[h]=typeof b=="bigint"?b:BigInt(Math.round(Number(b)))}let g=ve.default.ndarray(ne(e),p,l,ga(l),0,"row-major");return new Ie(g,e)}if(a&&e===void 0){let l=JSON.parse(JSON.stringify(r,(m,p)=>typeof p=="bigint"?Number(p):p)),d=ve.default.array(l);return new Ie(d)}if(e===void 0){let l=ve.default.array(r);return new Ie(l)}let t=ve.default.array(r);if(ve.default.dtype(t)===e)return new Ie(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 v=new s(n),u=ve.default.dataBuffer(t);if(Ir(e))for(let l=0;l<n;l++)v[l]=BigInt(Math.round(Number(u[l])));else if(e==="bool")for(let l=0;l<n;l++)v[l]=u[l]?1:0;else for(let l=0;l<n;l++)v[l]=Number(u[l]);let f=ve.default.ndarray(ne(e),v,i,ga(i),0,"row-major");return new Ie(f,e)}function pX(r,e,a=1,t=Xe){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 v=new s(n);if(Ir(t))for(let f=0;f<n;f++)v[f]=BigInt(Math.round(o+f*a));else if(t==="bool")for(let f=0;f<n;f++)v[f]=o+f*a!==0?1:0;else for(let f=0;f<n;f++)v[f]=o+f*a;let u=ve.default.ndarray(ne(t),v,[n],[1],0,"row-major");return new Ie(u,t)}function yX(r,e,a=50,t=Xe){if(a<0)throw new Error("num must be non-negative");if(a===0)return Xa([],t);if(a===1)return Xa([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(Ir(t))for(let v=0;v<a;v++)i[v]=BigInt(Math.round(r+v*n));else if(t==="bool")for(let v=0;v<a;v++)i[v]=r+v*n!==0?1:0;else for(let v=0;v<a;v++)i[v]=r+v*n;let s=ve.default.ndarray(ne(t),i,[a],[1],0,"row-major");return new Ie(s,t)}function mX(r,e,a=50,t=10,o=Xe){if(a<0)throw new Error("num must be non-negative");if(a===0)return Xa([],o);if(a===1)return Xa([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(Ir(o))for(let u=0;u<a;u++){let f=r+u*s;n[u]=BigInt(Math.round(Math.pow(t,f)))}else if(o==="bool")for(let u=0;u<a;u++){let f=r+u*s;n[u]=Math.pow(t,f)!==0?1:0}else for(let u=0;u<a;u++){let f=r+u*s;n[u]=Math.pow(t,f)}let v=ve.default.ndarray(ne(o),n,[a],[1],0,"row-major");return new Ie(v,o)}function gX(r,e,a=50,t=Xe){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 Xa([],t);if(a===1)return Xa([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),v=Math.log(Math.abs(r)),f=(Math.log(Math.abs(e))-v)/(a-1);if(Ir(t))for(let d=0;d<a;d++){let m=o*Math.exp(v+d*f);s[d]=BigInt(Math.round(m))}else if(t==="bool")for(let d=0;d<a;d++){let m=o*Math.exp(v+d*f);s[d]=m!==0?1:0}else for(let d=0;d<a;d++){let m=o*Math.exp(v+d*f);s[d]=m}let l=ve.default.ndarray(ne(t),s,[a],[1],0,"row-major");return new Ie(l,t)}function bc(r,e,a=0,t=Xe){let o=e??r,i=An([r,o],t),n=i.data;if(Ir(t)){let s=n;for(let v=0;v<r;v++){let u=v+a;u>=0&&u<o&&(s[v*o+u]=BigInt(1))}}else{let s=n;for(let v=0;v<r;v++){let u=v+a;u>=0&&u<o&&(s[v*o+u]=1)}}return i}function xc(r,e=Xe){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(ne(e),o,r,ga(r),0,"row-major");return new Ie(i,e)}function qc(r,e,a){let t=a;t||(typeof e=="bigint"?t="int64":typeof e=="boolean"?t="bool":Number.isInteger(e)?t="int32":t=Xe);let o=je(t);if(!o)throw new Error(`Cannot create full array with dtype ${t}`);let i=r.reduce((v,u)=>v*u,1),n=new o(i);if(Ir(t)){let v=typeof e=="bigint"?e:BigInt(Math.round(Number(e)));n.fill(v)}else t==="bool"?n.fill(e?1:0):n.fill(Number(e));let s=ve.default.ndarray(ne(t),n,r,ga(r),0,"row-major");return new Ie(s,t)}function hX(r,e=Xe){return bc(r,r,0,e)}function bX(r,e){if(r instanceof Ie){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(Ir(e))for(let v=0;v<t;v++)i[v]=BigInt(Math.round(Number(n[v])));else if(e==="bool")for(let v=0;v<t;v++)i[v]=n[v]?1:0;else for(let v=0;v<t;v++)i[v]=Number(n[v]);let s=ve.default.ndarray(ne(e),i,a,ga(a),0,"row-major");return new Ie(s,e)}return Xa(r,e)}function xX(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)Ir(a),n.set(i);else{let v=Array.from(e),u=ga(v);for(let f=0;f<o;f++){let l=[],d=f;for(let p=0;p<v.length;p++){let y=u[p],g=Math.floor(d/y);l.push(g),d-=g*y}let m=r.get(l);Ir(a),n[f]=m}}let s=ve.default.ndarray(ne(a),n,e,ga(e),0,"row-major");return new Ie(s,a)}function qX(r,e){return An(Array.from(r.shape),e??r.dtype)}function wX(r,e){return hc(Array.from(r.shape),e??r.dtype)}function SX(r,e){return xc(Array.from(r.shape),e??r.dtype)}function EX(r,e,a){return qc(Array.from(r.shape),e,a??r.dtype)}function AX(r){return r.sqrt()}function _X(r,e){return r.power(e)}function jX(r){return r.absolute()}function TX(r){return r.negative()}function OX(r){return r.sign()}function IX(r,e){return r.mod(e)}function NX(r,e){return r.floor_divide(e)}function DX(r){return r.positive()}function kX(r){return r.reciprocal()}var pKr="0.2.0";0&&(module.exports={NDArray,__version__,absolute,arange,array,asarray,copy,empty,empty_like,eye,floor_divide,full,full_like,geomspace,identity,linspace,logspace,mod,negative,ones,ones_like,positive,power,reciprocal,sign,sqrt,zeros,zeros_like});
|
|
4
4
|
/*! Bundled license information:
|
|
5
5
|
|
|
6
6
|
@stdlib/utils/define-property/lib/define_property.js:
|