diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 1330a72..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "env": { - "browser": true, - "es2021": true, - "node": true - }, - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module" - }, - "plugins": [ - "@typescript-eslint" - ], - "rules": { - } -} diff --git a/.gitignore b/.gitignore index d05d7e5..06104d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ /node_modules/ /.idea/ /dist/ +/outdocs/ +package-lock.json diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..0113d51 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,22 @@ +import js from '@eslint/js'; +import tseslint from 'typescript-eslint'; + +export default tseslint.config( + js.configs.recommended, + ...tseslint.configs.recommended, + ...tseslint.configs.stylistic, + { + files: ["src/**/*.ts"], + // these are overriding good style for now to reduce the error count - the intention is to reintroduce gradually + rules : { + "prefer-const": "off", + "@typescript-eslint/consistent-type-assertions": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-inferrable-types": "off", + "no-array-constructor": "off", // see https://typescript-eslint.io/rules/no-array-constructor/ + "@typescript-eslint/no-array-constructor": "off" + } + } + + +); \ No newline at end of file diff --git a/package.json b/package.json index 26f8343..85258f6 100644 --- a/package.json +++ b/package.json @@ -33,17 +33,20 @@ }, "homepage": "https://github.com/tsastro/tsofa#readme", "devDependencies": { + "@eslint/js": "^9.9.1", "@types/node": "^20.7.1", "@typescript-eslint/eslint-plugin": "^6.17.0", "@typescript-eslint/parser": "^6.17.0", - "eslint": "^8.49.0", + "eslint": "^9.9.1", "eslint-plugin-import": "^2.28.1", "eslint-plugin-jsdoc": "^46.8.1", "eslint-plugin-prefer-arrow": "^1.2.3", + "globals": "^15.9.0", "testyts": "^1.5.0", "ts-node": "^10.9.1", "typedoc": "^0.25.6", - "typescript": "^5.2.2" + "typescript": "^5.2.2", + "typescript-eslint": "^8.3.0" }, "dependencies": {} } diff --git a/src/main/ts/TSOFA.ts b/src/main/ts/TSOFA.ts index 33d4255..3aca497 100644 --- a/src/main/ts/TSOFA.ts +++ b/src/main/ts/TSOFA.ts @@ -179,7 +179,7 @@ static TANGENT_TINY: number = 1.0E-6; - static DBL_EPSILON: number; public static DBL_EPSILON_$LI$(): number { TSOFA.__static_initialize(); if (TSOFA.DBL_EPSILON == null) { TSOFA.DBL_EPSILON = /* ulp */((x) => { const buffer = new ArrayBuffer(8); const dataView = new DataView(buffer); dataView.setFloat64(0, x); let first = dataView.getUint32(0); let second = dataView.getUint32(4); let rawExponent = first & 0x7ff00000; if (rawExponent == 0x7ff00000) { dataView.setUint32(0,first & 0x7fffffff); } else if (rawExponent == 0) { dataView.setUint32(4,1); dataView.setUint32(0,0); } else if (rawExponent >= (52 << 20) + 0x00100000) { dataView.setUint32(0,rawExponent - (52 << 20)); dataView.setUint32(4,0); } else if (rawExponent >= (33 << 20)) { dataView.setUint32(0,1 << ((rawExponent - (33 << 20)) >>> 20 )); dataView.setUint32(4,0); } else { dataView.setUint32(4,1 << ((rawExponent - 0x00100000) >>> 20)); dataView.setUint32(0,0); } return dataView.getFloat64(0); })(1.0); } return TSOFA.DBL_EPSILON; } + static DBL_EPSILON: number; public static DBL_EPSILON_$LI$(): number { TSOFA.__static_initialize(); if (TSOFA.DBL_EPSILON == null) { TSOFA.DBL_EPSILON = /* ulp */((x) => { const buffer = new ArrayBuffer(8); const dataView = new DataView(buffer); dataView.setFloat64(0, x); const first = dataView.getUint32(0); const second = dataView.getUint32(4); const rawExponent = first & 0x7ff00000; if (rawExponent == 0x7ff00000) { dataView.setUint32(0,first & 0x7fffffff); } else if (rawExponent == 0) { dataView.setUint32(4,1); dataView.setUint32(0,0); } else if (rawExponent >= (52 << 20) + 0x00100000) { dataView.setUint32(0,rawExponent - (52 << 20)); dataView.setUint32(4,0); } else if (rawExponent >= (33 << 20)) { dataView.setUint32(0,1 << ((rawExponent - (33 << 20)) >>> 20 )); dataView.setUint32(4,0); } else { dataView.setUint32(4,1 << ((rawExponent - 0x00100000) >>> 20)); dataView.setUint32(0,0); } return dataView.getFloat64(0); })(1.0); } return TSOFA.DBL_EPSILON; } /** * dint(A) - truncate to nearest whole number towards zero (double) @@ -212,6 +212,18 @@ return ((B) < 0.0 ? -Math.abs(A) : Math.abs(A)); } + /** + * Create a 2D array based on input + * note the number array should be + * @param dimensions + * @returns + */ + public static CreateDimensionalArray (dimensions: number[]): number[][]{ + return function(dims: number[]){ + return Array.from({length: dims[0]}, () => new Array(dims[1]).fill(0)); + }(dimensions); + } + /** * Decompose radians into degrees, arcminutes, arcseconds, fraction. * @@ -542,7 +554,7 @@ let depspr: number; let psia: number; let oma: number; - const rbw: number[][] = (function(dims: number[]) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rbw: number[][] = TSOFA.CreateDimensionalArray([3, 3]); t = ((date1 - TSOFA.DJ00_$LI$()) + date2) / TSOFA.DJC_$LI$(); const fb: TSOFA.FrameBias = TSOFA.jauBi00(); dpsibi = fb.dpsibi; @@ -1164,7 +1176,7 @@ let r2: number; let e: number; let d: number; - const rc2i: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rc2i: number[][] = TSOFA.CreateDimensionalArray([3, 3]); r2 = x * x + y * y; e = (r2 > 0.0) ? Math.atan2(y, x) : 0.0; d = Math.atan(Math.sqrt(r2 / (1.0 - r2))); @@ -1303,7 +1315,7 @@ * */ public static jauC2t00a(tta: number, ttb: number, uta: number, utb: number, xp: number, yp: number): number[][] { - let rc2i: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let rc2i: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let era: number; let sp: number; let rpom: number[][]; @@ -1563,7 +1575,7 @@ * */ public static jauC2tcio(rc2i: number[][], era: number, rpom: number[][]): number[][] { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); TSOFA.jauCr(rc2i, r); TSOFA.jauRz(era, r); const rc2t: number[][] = TSOFA.jauRxr(rpom, r); @@ -1629,7 +1641,7 @@ * */ public static jauC2teqx(rbpn: number[][], gst: number, rpom: number[][]): number[][] { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let rc2t: number[][]; TSOFA.jauCr(rbpn, r); TSOFA.jauRz(gst, r); @@ -1829,10 +1841,10 @@ * */ public static jauC2txy(tta: number, ttb: number, uta: number, utb: number, x: number, y: number, xp: number, yp: number): number[][] { - let rc2i: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let rc2i: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let era: number; let sp: number; - let rpom: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let rpom: number[][] = TSOFA.CreateDimensionalArray([3, 3]); rc2i = TSOFA.jauC2ixy(tta, ttb, x, y); era = TSOFA.jauEra00(uta, utb); sp = TSOFA.jauSp00(tta, ttb); @@ -1905,7 +1917,7 @@ if (im < 1 || im > 12)throw new TSOFAIllegalParameter("bad month", -2); ly = ((im === 2) && (iy % 4 === 0) && (iy % 100 !== 0 || (iy % 400 === 0))) ? 1 : 0; if ((id < 1) || (id > (mtab[im - 1] + ly))){ - } + } //TODO compare to original my = ((im - 14) / 12|0); iypmy = (n => n<0?Math.ceil(n):Math.floor(n))((iy + my)); djm0 = TSOFA.DJM0_$LI$(); @@ -2543,7 +2555,7 @@ djm = jd.djm1; if (iy < TSOFA.leapSeconds_$LI$()[0].iyear)throw new TSOFAInternalError("year before UTC start", 1); if (iy > TSOFA.IYV + 5){ - } + }//TODO compare to original m = 12 * iy + im; for(i = NDAT - 1; i >= 0; i--) {{ if (m >= (12 * TSOFA.leapSeconds_$LI$()[i].iyear + TSOFA.leapSeconds_$LI$()[i].month))break; @@ -3177,7 +3189,7 @@ let a: number; let s0: number; let s1: number; - const fa: number[] = (s => { let a=[]; while(s-->0) a.push(0); return a; })(14); + const fa: number[] = (s => { let a=[]; while(s-->0) a.push(0); return a; })(14); let eect: number; const e0: TSOFA.TERM[] = [new TSOFA.TERM([0, 0, 0, 0, 1, 0, 0, 0], 0.00264096, -3.9E-7), new TSOFA.TERM([0, 0, 0, 0, 2, 0, 0, 0], 6.352E-5, -2.0E-8), new TSOFA.TERM([0, 0, 2, -2, 3, 0, 0, 0], 1.175E-5, 1.0E-8), new TSOFA.TERM([0, 0, 2, -2, 1, 0, 0, 0], 1.121E-5, 1.0E-8), new TSOFA.TERM([0, 0, 2, -2, 2, 0, 0, 0], -4.55E-6, 0.0), new TSOFA.TERM([0, 0, 2, 0, 3, 0, 0, 0], 2.02E-6, 0.0), new TSOFA.TERM([0, 0, 2, 0, 1, 0, 0, 0], 1.98E-6, 0.0), new TSOFA.TERM([0, 0, 0, 0, 3, 0, 0, 0], -1.72E-6, 0.0), new TSOFA.TERM([0, 1, 0, 0, 1, 0, 0, 0], -1.41E-6, -1.0E-8), new TSOFA.TERM([0, 1, 0, 0, -1, 0, 0, 0], -1.26E-6, -1.0E-8), new TSOFA.TERM([1, 0, 0, 0, -1, 0, 0, 0], -6.3E-7, 0.0), new TSOFA.TERM([1, 0, 0, 0, 1, 0, 0, 0], -6.3E-7, 0.0), new TSOFA.TERM([0, 1, 2, -2, 3, 0, 0, 0], 4.6E-7, 0.0), new TSOFA.TERM([0, 1, 2, -2, 1, 0, 0, 0], 4.5E-7, 0.0), new TSOFA.TERM([0, 0, 4, -4, 4, 0, 0, 0], 3.6E-7, 0.0), new TSOFA.TERM([0, 0, 1, -1, 1, -8, 12, 0], -2.4E-7, -1.2E-7), new TSOFA.TERM([0, 0, 2, 0, 0, 0, 0, 0], 3.2E-7, 0.0), new TSOFA.TERM([0, 0, 2, 0, 2, 0, 0, 0], 2.8E-7, 0.0), new TSOFA.TERM([1, 0, 2, 0, 3, 0, 0, 0], 2.7E-7, 0.0), new TSOFA.TERM([1, 0, 2, 0, 1, 0, 0, 0], 2.6E-7, 0.0), new TSOFA.TERM([0, 0, 2, -2, 0, 0, 0, 0], -2.1E-7, 0.0), new TSOFA.TERM([0, 1, -2, 2, -3, 0, 0, 0], 1.9E-7, 0.0), new TSOFA.TERM([0, 1, -2, 2, -1, 0, 0, 0], 1.8E-7, 0.0), new TSOFA.TERM([0, 0, 0, 0, 0, 8, -13, -1], -1.0E-7, 5.0E-8), new TSOFA.TERM([0, 0, 0, 2, 0, 0, 0, 0], 1.5E-7, 0.0), new TSOFA.TERM([2, 0, -2, 0, -1, 0, 0, 0], -1.4E-7, 0.0), new TSOFA.TERM([1, 0, 0, -2, 1, 0, 0, 0], 1.4E-7, 0.0), new TSOFA.TERM([0, 1, 2, -2, 2, 0, 0, 0], -1.4E-7, 0.0), new TSOFA.TERM([1, 0, 0, -2, -1, 0, 0, 0], 1.4E-7, 0.0), new TSOFA.TERM([0, 0, 4, -2, 4, 0, 0, 0], 1.3E-7, 0.0), new TSOFA.TERM([0, 0, 2, -2, 4, 0, 0, 0], -1.1E-7, 0.0), new TSOFA.TERM([1, 0, -2, 0, -3, 0, 0, 0], 1.1E-7, 0.0), new TSOFA.TERM([1, 0, -2, 0, -1, 0, 0, 0], 1.1E-7, 0.0)]; const e1: TSOFA.TERM[] = [new TSOFA.TERM([0, 0, 0, 0, 1, 0, 0, 0], -8.7E-7, 0.0)]; @@ -4670,22 +4682,22 @@ * * */ - public static jauFk52h(r5: number, d5: number, dr5: number, dd5: number, px5: number, rv5: number): TSOFA.CatalogCoords { + public static jauFk52h(r5: number, d5: number, dr5: number, dd5: number, px5: number, rv5: number): TSOFA.CatalogCoords | null { let i: number; - const pv5: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const r5h: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const pv5: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const r5h: number[][] = TSOFA.CreateDimensionalArray([3, 3]); const s5h: number[] = [0, 0, 0]; let wxp: number[] = [0, 0, 0]; let vv: number[] = [0, 0, 0]; - const pvh: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pvh: number[][] = TSOFA.CreateDimensionalArray([2, 3]); TSOFA.jauStarpv(r5, d5, dr5, dd5, px5, rv5, pv5); TSOFA.jauFk5hip(r5h, s5h); - for(i = 0; i < 3; s5h[i++] /= 365.25) {;} + for(i = 0; i < 3; s5h[i++] /= 365.25) {;} //TODO: check original pvh[0] = TSOFA.jauRxp(r5h, pv5[0]); wxp = TSOFA.jauPxp(pv5[0], s5h); vv = TSOFA.jauPpp(wxp, pv5[1]); pvh[1] = TSOFA.jauRxp(r5h, vv); - let cat: TSOFA.CatalogCoords = null; + let cat: TSOFA.CatalogCoords | null = null; try { cat = TSOFA.jauPvstar(pvh); } catch(e) { @@ -4841,10 +4853,10 @@ public static jauFk5hz(r5: number, d5: number, date1: number, date2: number): TSOFA.SphericalCoordinate { let t: number; let p5e: number[] = [0, 0, 0]; - const r5h: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r5h: number[][] = TSOFA.CreateDimensionalArray([3, 3]); const s5h: number[] = [0, 0, 0]; let vst: number[] = [0, 0, 0]; - let rst: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let rst: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let p5: number[] = [0, 0, 0]; let ph: number[] = [0, 0, 0]; t = -((date1 - TSOFA.DJ00_$LI$()) + date2) / TSOFA.DJY_$LI$(); @@ -4935,7 +4947,7 @@ * */ public static jauFw2m(gamb: number, phib: number, psi: number, eps: number): number[][] { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); TSOFA.jauIr$double_A_A(r); TSOFA.jauRz(gamb, r); TSOFA.jauRx(phib, r); @@ -5003,7 +5015,7 @@ * */ public static jauFw2xy(gamb: number, phib: number, psi: number, eps: number): TSOFA.CelestialIntermediatePole { - let r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); r = TSOFA.jauFw2m(gamb, phib, psi, eps); return TSOFA.jauBpn2xy(r); } @@ -6088,24 +6100,24 @@ * * */ - public static jauH2fk5(rh: number, dh: number, drh: number, ddh: number, pxh: number, rvh: number): TSOFA.CatalogCoords { + public static jauH2fk5(rh: number, dh: number, drh: number, ddh: number, pxh: number, rvh: number): TSOFA.CatalogCoords | null { let i: number; - const pvh: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const r5h: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const pvh: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const r5h: number[][] = TSOFA.CreateDimensionalArray([3, 3]); const s5h: number[] = [0, 0, 0]; let sh: number[] = [0, 0, 0]; let wxp: number[] = [0, 0, 0]; let vv: number[] = [0, 0, 0]; - const pv5: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv5: number[][] = TSOFA.CreateDimensionalArray([2, 3]); TSOFA.jauStarpv(rh, dh, drh, ddh, pxh, rvh, pvh); TSOFA.jauFk5hip(r5h, s5h); - for(i = 0; i < 3; s5h[i++] /= 365.25) {;} + for(i = 0; i < 3; s5h[i++] /= 365.25) {;} // TODO check original sh = TSOFA.jauRxp(r5h, s5h); pv5[0] = TSOFA.jauTrxp(r5h, pvh[0]); wxp = TSOFA.jauPxp(pvh[0], sh); vv = TSOFA.jauPmp(pvh[1], wxp); pv5[1] = TSOFA.jauTrxp(r5h, vv); - let cat: TSOFA.CatalogCoords = null; + let cat: TSOFA.CatalogCoords | null = null; try { cat = TSOFA.jauPvstar(pv5); } catch(e) { @@ -6196,13 +6208,13 @@ public static jauHfk5z(rh: number, dh: number, date1: number, date2: number): TSOFA.CatalogCoords { let t: number; let ph: number[] = [0, 0, 0]; - const r5h: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r5h: number[][] = TSOFA.CreateDimensionalArray([3, 3]); const s5h: number[] = [0, 0, 0]; let sh: number[] = [0, 0, 0]; let vst: number[] = [0, 0, 0]; - let rst: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - let r5ht: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const pv5e: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + let rst: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + let r5ht: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const pv5e: number[][] = TSOFA.CreateDimensionalArray([2, 3]); let vv: number[] = [0, 0, 0]; t = ((date1 - TSOFA.DJ00_$LI$()) + date2) / TSOFA.DJY_$LI$(); ph = TSOFA.jauS2c(rh, dh); @@ -6257,7 +6269,7 @@ } public static jauIr$(): number[][] { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); TSOFA.jauZr$double_A_A(r); return r; } @@ -6773,7 +6785,7 @@ * */ public static jauNumat(epsa: number, dpsi: number, deps: number): number[][] { - const rmatn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rmatn: number[][] = TSOFA.CreateDimensionalArray([3, 3]); TSOFA.jauIr$double_A_A(rmatn); TSOFA.jauRx(epsa, rmatn); TSOFA.jauRz(-dpsi, rmatn); @@ -7732,7 +7744,7 @@ * */ public static jauP2pv(p: number[]): number[][] { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([3, 3]); TSOFA.jauCp(p, pv[0]); TSOFA.jauZp$double_A(pv[1]); return pv; @@ -7974,7 +7986,7 @@ * */ public static jauPb06(date1: number, date2: number): TSOFA.EulerAngles { - let r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let y: number; let x: number; r = TSOFA.jauPmat06(date1, date2); @@ -8275,7 +8287,7 @@ * */ public static jauPlan94(date1: number, date2: number, np: number): number[][] { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); const GK: number = 0.01720209895; const SINEPS: number = 0.3977771559319137; const COSEPS: number = 0.9174820620691818; @@ -8480,9 +8492,9 @@ * */ public static jauPmat00(date1: number, date2: number): number[][] { - const rb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rbp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rb: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rbp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); TSOFA.jauBp00(date1, date2, rb, rp, rbp); return rbp; } @@ -8629,8 +8641,8 @@ * */ public static jauPmat76(date1: number, date2: number): number[][] { - const wmat: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rmatp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const wmat: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rmatp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); const euler: TSOFA.EulerAngles = TSOFA.jauPrec76(TSOFA.DJ00_$LI$(), 0.0, date1, date2); TSOFA.jauIr$double_A_A(wmat); TSOFA.jauRz(-euler.zeta, wmat); @@ -8822,13 +8834,13 @@ * */ public static jauPn00(date1: number, date2: number, dpsi: number, deps: number): TSOFA.PrecessionNutation { - const rbpw: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - let rnw: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rbp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - let rbpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rbpw: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + let rnw: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rb: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rbp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rn: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + let rbpn: number[][] = TSOFA.CreateDimensionalArray([3, 3]); const nut: TSOFA.PrecessionDeltaTerms = TSOFA.jauPr00(date1, date2); const epsa: number = TSOFA.jauObl80(date1, date2) + nut.depspr; TSOFA.jauBp00(date1, date2, rb, rp, rbpw); @@ -9149,9 +9161,9 @@ * */ public static jauPn06(date1: number, date2: number, dpsi: number, deps: number): TSOFA.PrecessionNutation { - const rb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rbp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rbpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rb: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rbp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rbpn: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let fw: TSOFA.FWPrecessionAngles = TSOFA.jauPfw06(TSOFA.DJM0_$LI$(), TSOFA.DJM00_$LI$()); let r1: number[][] = TSOFA.jauFw2m(fw.gamb, fw.phib, fw.psib, fw.epsa); TSOFA.jauCr(r1, rb); @@ -9520,8 +9532,8 @@ * */ public static jauPnm80(date1: number, date2: number): number[][] { - let rmatp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - let rmatn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let rmatp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + let rmatn: number[][] = TSOFA.CreateDimensionalArray([3, 3]); rmatp = TSOFA.jauPmat76(date1, date2); rmatn = TSOFA.jauNutm80(date1, date2); const rmatpn: number[][] = TSOFA.jauRxr(rmatn, rmatp); @@ -9583,7 +9595,7 @@ * */ public static jauPom00(xp: number, yp: number, sp: number): number[][] { - const rpom: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rpom: number[][] = TSOFA.CreateDimensionalArray([3, 3]); TSOFA.jauIr$double_A_A(rpom); TSOFA.jauRz(sp, rpom); TSOFA.jauRy(-xp, rpom); @@ -10061,7 +10073,7 @@ * */ public static jauPvmpv(a: number[][], b: number[][]): number[][] { - const amb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const amb: number[][] = TSOFA.CreateDimensionalArray([2, 3]); amb[0] = TSOFA.jauPmp(a[0], b[0]); amb[1] = TSOFA.jauPmp(a[1], b[1]); return amb; @@ -10096,7 +10108,7 @@ * */ public static jauPvppv(a: number[][], b: number[][]): number[][] { - const apb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const apb: number[][] = TSOFA.CreateDimensionalArray([2, 3]); apb[0] = TSOFA.jauPpp(a[0], b[0]); apb[1] = TSOFA.jauPpp(a[1], b[1]); return apb; @@ -10269,7 +10281,7 @@ * */ public static jauPvu(dt: number, pv: number[][]): number[][] { - const upv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const upv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); upv[0] = TSOFA.jauPpsp(pv[0], dt, pv[1]); TSOFA.jauCp(pv[1], upv[1]); return upv; @@ -10350,11 +10362,11 @@ * */ public static jauPvxpv(a: number[][], b: number[][]): number[][] { - const wa: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const wb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const wa: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const wb: number[][] = TSOFA.CreateDimensionalArray([2, 3]); let axbd: number[] = [0, 0, 0]; let adxb: number[] = [0, 0, 0]; - const axb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const axb: number[][] = TSOFA.CreateDimensionalArray([2, 3]); TSOFA.jauCpv(a, wa); TSOFA.jauCpv(b, wb); axb[0] = TSOFA.jauPxp(wa[0], wb[0]); @@ -10514,7 +10526,7 @@ let s: number; let c: number; let f: number; - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); x = w[0]; y = w[1]; z = w[2]; @@ -10572,7 +10584,7 @@ public static jauRx(phi: number, r: number[][]) { let s: number; let c: number; - const a: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const a: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let w: number[][]; s = Math.sin(phi); c = Math.cos(phi); @@ -10663,7 +10675,7 @@ * */ public static jauRxpv(r: number[][], pv: number[][]): number[][] { - const rpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 0]); + const rpv: number[][] = TSOFA.CreateDimensionalArray([2, 0]); rpv[0] = TSOFA.jauRxp(r, pv[0]); rpv[1] = TSOFA.jauRxp(r, pv[1]); return rpv; @@ -10702,7 +10714,7 @@ let j: number; let k: number; let w: number; - const wm: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const wm: number[][] = TSOFA.CreateDimensionalArray([3, 3]); for(i = 0; i < 3; i++) {{ for(j = 0; j < 3; j++) {{ w = 0.0; @@ -10748,7 +10760,7 @@ public static jauRy(theta: number, r: number[][]) { let s: number; let c: number; - const a: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const a: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let w: number[][]; s = Math.sin(theta); c = Math.cos(theta); @@ -10795,7 +10807,7 @@ public static jauRz(psi: number, r: number[][]) { let s: number; let c: number; - const a: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const a: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let w: number[][]; s = Math.sin(psi); c = Math.cos(psi); @@ -11135,7 +11147,7 @@ * */ public static jauS00b(date1: number, date2: number): number { - let rbpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let rbpn: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let s: number; rbpn = TSOFA.jauPnm00b(date1, date2); const cip: TSOFA.CelestialIntermediatePole = TSOFA.jauBpn2xy(rbpn); @@ -11383,7 +11395,7 @@ * */ public static jauS06a(date1: number, date2: number): number { - let rnpb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let rnpb: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let s: number; rnpb = TSOFA.jauPnm06a(date1, date2); const cip: TSOFA.CelestialIntermediatePole = TSOFA.jauBpn2xy(rnpb); @@ -11482,7 +11494,7 @@ * */ public static jauS2pv(theta: number, phi: number, r: number, td: number, pd: number, rd: number): number[][] { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); let st: number; let ct: number; let sp: number; @@ -11539,7 +11551,7 @@ * */ public static jauS2xpv(s1: number, s2: number, pv: number[][]): number[][] { - const spv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const spv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); spv[0] = TSOFA.jauSxp(s1, pv[0]); spv[1] = TSOFA.jauSxp(s2, pv[1]); return spv; @@ -11804,16 +11816,16 @@ * */ public static jauStarpm(ra1: number, dec1: number, pmr1: number, pmd1: number, px1: number, rv1: number, ep1a: number, ep1b: number, ep2a: number, ep2b: number): TSOFA.CatalogCoords { - const pv1: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv1: number[][] = TSOFA.CreateDimensionalArray([2, 3]); let tl1: number; let dt: number; - let pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + let pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); let r2: number; let rdv: number; let v2: number; let c2mv2: number; let tl2: number; - let pv2: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + let pv2: number[][] = TSOFA.CreateDimensionalArray([2, 3]); TSOFA.jauStarpv(ra1, dec1, pmr1, pmd1, px1, rv1, pv1); tl1 = TSOFA.jauPm(pv1[0]) / TSOFA.DC_$LI$(); dt = (ep2a - ep1a) + (ep2b - ep1b); @@ -12712,7 +12724,7 @@ * */ public static jauTr(r: number[][]): number[][] { - const wm: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const wm: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let i: number; let j: number; for(i = 0; i < 3; i++) {{ @@ -13493,8 +13505,8 @@ const japt: number[] = [0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4]; let t: number; let w: number; - const pt: number[] = (s => { let a=[]; while(s-->0) a.push(0); return a; })(MAXPT + 1); - const fa: number[] = (s => { let a=[]; while(s-->0) a.push(0); return a; })(14); + const pt: number[] = (s => { let a=new Array(); while(s-->0) a.push(0); return a; })(MAXPT + 1); + const fa: number[] = (s => { let a=new Array(); while(s-->0) a.push(0); return a; })(14); const xypr: number[] = [0, 0]; const xypl: number[] = [0, 0]; const xyls: number[] = [0, 0]; @@ -13723,7 +13735,7 @@ * */ public static jauXys00b(date1: number, date2: number): TSOFA.ICRFrame { - let rbpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let rbpn: number[][] = TSOFA.CreateDimensionalArray([3, 3]); rbpn = TSOFA.jauPnm00b(date1, date2); const cip: TSOFA.CelestialIntermediatePole = TSOFA.jauBpn2xy(rbpn); const s: number = TSOFA.jauS00(date1, date2, cip.x, cip.y); @@ -13798,7 +13810,7 @@ * */ public static jauXys06a(date1: number, date2: number): TSOFA.ICRFrame { - let rbpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let rbpn: number[][] = TSOFA.CreateDimensionalArray([3, 3]); rbpn = TSOFA.jauPnm06a(date1, date2); const cip: TSOFA.CelestialIntermediatePole = TSOFA.jauBpn2xy(rbpn); const s: number = TSOFA.jauS06(date1, date2, cip.x, cip.y); @@ -13878,7 +13890,7 @@ } public static jauZpv$(): number[][] { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); TSOFA.jauZpv$double_A_A(pv); return pv; } @@ -13920,7 +13932,7 @@ } public static jauZr$(): number[][] { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([2, 3]); TSOFA.jauZr$double_A_A(r); return r; } @@ -14226,8 +14238,8 @@ * */ public static jauApcg13(date1: number, date2: number, astrom: TSOFA.Astrom) { - const ehpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const ebpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const ehpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const ebpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); TSOFA.jauEpv00(date1, date2, ehpv, ebpv); TSOFA.jauApcg(date1, date2, ebpv, ehpv[0], astrom); } @@ -14461,8 +14473,8 @@ * */ public static jauApci13(date1: number, date2: number, astrom: TSOFA.Astrom): number { - const ehpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const ebpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const ehpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const ebpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); let r: number[][]; let s: number; TSOFA.jauEpv00(date1, date2, ehpv, ebpv); @@ -14626,7 +14638,7 @@ let b: number; let eral: number; let c: number; - let r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let pvc: number[][]; let pv: number[][]; TSOFA.jauIr$double_A_A(r); @@ -14827,8 +14839,8 @@ * @throws TSOFAIllegalParameter unacceptable date. */ public static jauApco13(utc1: number, utc2: number, dut1: number, elong: number, phi: number, hm: number, xp: number, yp: number, phpa: number, tc: number, rh: number, wl: number, astrom: TSOFA.Astrom): number { - const ehpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const ebpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const ehpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const ebpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); let r: number[][]; let s: number; let theta: number; @@ -15102,8 +15114,8 @@ * */ public static jauApcs13(date1: number, date2: number, pv: number[][], astrom: TSOFA.Astrom) { - const ehpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const ebpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const ehpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const ebpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); TSOFA.jauEpv00(date1, date2, ehpv, ebpv); TSOFA.jauApcs(date1, date2, pv, ebpv, ehpv[0], astrom); } @@ -15407,7 +15419,7 @@ * @throws TSOFAIllegalParameter unacceptable date. */ public static jauApio(sp: number, theta: number, elong: number, phi: number, hm: number, xp: number, yp: number, refa: number, refb: number, astrom: TSOFA.Astrom) { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let a: number; let b: number; let eral: number; @@ -17767,7 +17779,7 @@ let z: number; let s: number; let c: number; - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); rpm = TSOFA.jauPom00(xp, yp, sp); xyz = TSOFA.jauTrxp(rpm, xyzm); x = xyz[0]; @@ -18260,7 +18272,7 @@ */ public static jauEcm06(date1: number, date2: number): number[][] { let ob: number; - const e: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const e: number[][] = TSOFA.CreateDimensionalArray([3, 3]); ob = TSOFA.jauObl06(date1, date2); const bp: number[][] = TSOFA.jauPmat06(date1, date2); TSOFA.jauIr$double_A_A(e); @@ -18472,7 +18484,7 @@ * */ public static jauLtecm(epj: number): number[][] { - const rm: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rm: number[][] = TSOFA.CreateDimensionalArray([3, 3]); const dx: number = -0.016617 * TSOFA.DAS2R_$LI$(); const de: number = -0.0068192 * TSOFA.DAS2R_$LI$(); const dr: number = -0.0146 * TSOFA.DAS2R_$LI$(); @@ -18618,7 +18630,7 @@ * */ public static jauLtp(epj: number): number[][] { - const rp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let i: number; const peqr: number[] = TSOFA.jauLtpequ(epj); const pecl: number[] = TSOFA.jauLtpecl(epj); @@ -18686,7 +18698,7 @@ * */ public static jauLtpb(epj: number): number[][] { - const rpb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rpb: number[][] = TSOFA.CreateDimensionalArray([3, 3]); const dx: number = -0.016617 * TSOFA.DAS2R_$LI$(); const de: number = -0.0068192 * TSOFA.DAS2R_$LI$(); const dr: number = -0.0146 * TSOFA.DAS2R_$LI$(); @@ -19811,7 +19823,7 @@ let l: number; let r0: number[][]; let pv1: number[][]; - const pv2: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv2: number[][] = TSOFA.CreateDimensionalArray([2, 3]); const VF: number = 21.095; const a: number[][] = [[-1.62557E-6, -3.1919E-7, -1.3843E-7], [+0.001245, -0.00158, -6.59E-4]]; const em: number[][][][] = [[[[+0.9999256782, -0.0111820611, -0.0048579477], [+2.42395018E-6, -2.710663E-8, -1.177656E-8]], [[+0.011182061, +0.9999374784, -2.71765E-5], [+2.710663E-8, +2.42397878E-6, -6.587E-11]], [[+0.0048579479, -2.71474E-5, +0.9999881997], [+1.177656E-8, -6.582E-11, +2.42410173E-6]]], [[[-5.51E-4, -0.238565, +0.435739], [+0.99994704, -0.01118251, -0.00485767]], [[+0.238514, -0.002667, -0.008541], [+0.01118251, +0.99995883, -2.718E-5]], [[-0.435623, +0.012254, +0.002117], [+0.00485767, -2.714E-5, +1.00000956]]]]; @@ -19921,7 +19933,7 @@ const PMF: number = 100.0 * TSOFA.DR2AS_$LI$(); let r0: number[]; let p: number[]; - let pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + let pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); let w: number; let i: number; let j: number; @@ -20048,10 +20060,10 @@ let k: number; let l: number; let r0: number[][]; - const r1: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const r1: number[][] = TSOFA.CreateDimensionalArray([2, 3]); let p1: number[]; let p2: number[]; - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); const VF: number = 21.095; const a: number[][] = [[-1.62557E-6, -3.1919E-7, -1.3843E-7], [+0.001245, -0.00158, -6.59E-4]]; const em: number[][][][] = [[[[+0.9999256795, +0.0111814828, +0.0048590039], [-2.4238984E-6, -2.710544E-8, -1.177742E-8]], [[-0.0111814828, +0.9999374849, -2.71771E-5], [+2.710544E-8, -2.42392702E-6, +6.585E-11]], [[-0.004859004, -2.71557E-5, +0.9999881946], [+1.177742E-8, +6.585E-11, -2.42404995E-6]]], [[[-5.51E-4, +0.238509, -0.435614], [+0.99990432, +0.01118145, +0.00485852]], [[-0.23856, -0.002667, +0.012254], [-0.01118145, +0.99991613, -2.717E-5]], [[+0.43573, -0.008541, +0.002117], [-0.00485852, -2.716E-5, +0.99996684]]]]; @@ -20361,7 +20373,7 @@ let dr: number; let b: number; let db: number; - const rm: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rm: number[][] = TSOFA.CreateDimensionalArray([3, 3]); t = ((date1 - TSOFA.DJ00_$LI$()) + date2) / TSOFA.DJC_$LI$(); elp = TSOFA.DD2R_$LI$() * TSOFA.fmod(elp0 + (elp1 + (elp2 + (elp3 + elp4 * t) * t) * t) * t, 360.0); delp = TSOFA.DD2R_$LI$() * (elp1 + (elp2 * 2.0 + (elp3 * 3.0 + elp4 * 4.0 * t) * t) * t); @@ -20813,7 +20825,7 @@ if (this.iy === undefined) { this.iy = 0; } if (this.im === undefined) { this.im = 0; } if (this.id === undefined) { this.id = 0; } - if (this.ihmsf === undefined) { this.ihmsf = null; } + if (this.ihmsf === undefined) { this.ihmsf = null as any; } this.iy = iy; this.im = im; this.id = id; @@ -20830,8 +20842,8 @@ c: number; - public constructor(nfa: number[], s: number, c: number) { - if (this.nfa === undefined) { this.nfa = null; } + public constructor(nfa: number[] , s: number, c: number) { + if (this.nfa === undefined) { this.nfa = null as any; } if (this.s === undefined) { this.s = 0; } if (this.c === undefined) { this.c = 0; } this.nfa = nfa; @@ -20938,7 +20950,7 @@ public eo: number; public constructor(pos: TSOFA.SphericalCoordinate, eo: number) { - if (this.pos === undefined) { this.pos = null; } + if (this.pos === undefined) { this.pos = null as any; } if (this.eo === undefined) { this.eo = 0; } this.pos = pos; this.eo = eo; @@ -21478,7 +21490,7 @@ public constructor(r: number, u: number[]) { if (this.r === undefined) { this.r = 0; } - if (this.u === undefined) { this.u = null; } + if (this.u === undefined) { this.u = null as any; } this.r = r; this.u = u; } @@ -21535,13 +21547,13 @@ public rbpn: number[][]; public constructor(dpsi: number, deps: number, epsa: number, rb: number[][], rp: number[][], rbp: number[][], rn: number[][], rbpn: number[][]) { - if (this.nut === undefined) { this.nut = null; } + if (this.nut === undefined) { this.nut = null as any; } if (this.epsa === undefined) { this.epsa = 0; } - if (this.rb === undefined) { this.rb = null; } - if (this.rp === undefined) { this.rp = null; } - if (this.rbp === undefined) { this.rbp = null; } - if (this.rn === undefined) { this.rn = null; } - if (this.rbpn === undefined) { this.rbpn = null; } + if (this.rb === undefined) { this.rb = null as any; } + if (this.rp === undefined) { this.rp = null as any; } + if (this.rbp === undefined) { this.rbp = null as any; } + if (this.rn === undefined) { this.rn = null as any; } + if (this.rbpn === undefined) { this.rbpn = null as any; } this.nut = new TSOFA.NutationTerms(dpsi, deps); this.epsa = epsa; this.rb = rb; @@ -21641,8 +21653,8 @@ public vel: TSOFA.SphericalPosition; public constructor(theta: number, phi: number, r: number, td: number, pd: number, rd: number) { - if (this.pos === undefined) { this.pos = null; } - if (this.vel === undefined) { this.vel = null; } + if (this.pos === undefined) { this.pos = null as any; } + if (this.vel === undefined) { this.vel = null as any; } this.pos = new TSOFA.SphericalPosition(theta, phi, r); this.vel = new TSOFA.SphericalPosition(td, pd, rd); } @@ -21709,8 +21721,8 @@ public rv: number; public constructor(ra: number, dec: number, pmr: number, pmd: number, px: number, rv: number) { - if (this.pos === undefined) { this.pos = null; } - if (this.pm === undefined) { this.pm = null; } + if (this.pos === undefined) { this.pos = null as any; } + if (this.pm === undefined) { this.pm = null as any; } if (this.px === undefined) { this.px = 0; } if (this.rv === undefined) { this.rv = 0; } this.pos = new TSOFA.SphericalCoordinate(ra, dec); @@ -21743,7 +21755,7 @@ public s: number; public constructor(cip: TSOFA.CelestialIntermediatePole, s: number) { - if (this.cip === undefined) { this.cip = null; } + if (this.cip === undefined) { this.cip = null as any; } if (this.s === undefined) { this.s = 0; } this.cip = cip; this.s = s; @@ -21850,7 +21862,7 @@ if (this.em === undefined) { this.em = 0; } this.v = [0, 0, 0]; if (this.bm1 === undefined) { this.bm1 = 0; } - this.bpn = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + this.bpn = TSOFA.CreateDimensionalArray([3, 3]); if (this.along === undefined) { this.along = 0; } if (this.phi === undefined) { this.phi = 0; } if (this.xpl === undefined) { this.xpl = 0; } @@ -21891,7 +21903,7 @@ constructor() { if (this.bm === undefined) { this.bm = 0; } if (this.dl === undefined) { this.dl = 0; } - this.pv = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + this.pv = TSOFA.CreateDimensionalArray([2, 3]); } } Ldbody["__class"] = "TSOFA.Ldbody"; @@ -21983,7 +21995,7 @@ public eo: number; public constructor(op: TSOFA.ObservedPosition, eo: number) { - if (this.op === undefined) { this.op = null; } + if (this.op === undefined) { this.op = null as any; } if (this.eo === undefined) { this.eo = 0; } this.op = op; this.eo = eo; @@ -22091,19 +22103,19 @@ public constructor(sol1?: any, sol2?: any, flag?: any) { if (((sol1 != null && sol1 instanceof TSOFA.SphericalCoordinate) || sol1 === null) && ((sol2 != null && sol2 instanceof TSOFA.SphericalCoordinate) || sol2 === null) && ((typeof flag === 'number') || flag === null)) { let __args = arguments; - if (this.sol1 === undefined) { this.sol1 = null; } - if (this.sol2 === undefined) { this.sol2 = null; } + if (this.sol1 === undefined) { this.sol1 = null as any; } + if (this.sol2 === undefined) { this.sol2 = null as any; } if (this.nsolutions === undefined) { this.nsolutions = 0; } this.sol1 = sol1; this.sol2 = sol2; this.nsolutions = flag; } else if (sol1 === undefined && sol2 === undefined && flag === undefined) { let __args = arguments; - if (this.sol1 === undefined) { this.sol1 = null; } - if (this.sol2 === undefined) { this.sol2 = null; } + if (this.sol1 === undefined) { this.sol1 = null as any; } + if (this.sol2 === undefined) { this.sol2 = null as any; } if (this.nsolutions === undefined) { this.nsolutions = 0; } - this.sol1 = null; - this.sol2 = null; + this.sol1 = null as any; + this.sol2 = null as any; this.nsolutions = 0; } else throw new Error('invalid overload'); } @@ -22131,16 +22143,16 @@ public constructor(dc1?: any, dc2?: any, nsolution?: any) { if (((dc1 != null && dc1 instanceof Array && (dc1.length == 0 || dc1[0] == null ||(typeof dc1[0] === 'number'))) || dc1 === null) && ((dc2 != null && dc2 instanceof Array && (dc2.length == 0 || dc2[0] == null ||(typeof dc2[0] === 'number'))) || dc2 === null) && ((typeof nsolution === 'number') || nsolution === null)) { let __args = arguments; - if (this.dc1 === undefined) { this.dc1 = null; } - if (this.dc2 === undefined) { this.dc2 = null; } + if (this.dc1 === undefined) { this.dc1 = null as any; } + if (this.dc2 === undefined) { this.dc2 = null as any; } if (this.nsolution === undefined) { this.nsolution = 0; } this.dc1 = dc1; this.dc2 = dc2; this.nsolution = nsolution; } else if (dc1 === undefined && dc2 === undefined && nsolution === undefined) { let __args = arguments; - if (this.dc1 === undefined) { this.dc1 = null; } - if (this.dc2 === undefined) { this.dc2 = null; } + if (this.dc1 === undefined) { this.dc1 = null as any; } + if (this.dc2 === undefined) { this.dc2 = null as any; } if (this.nsolution === undefined) { this.nsolution = 0; } this.nsolution = 0; } else throw new Error('invalid overload'); diff --git a/src/test/ts/TSOFATest.spec.ts b/src/test/ts/TSOFATest.spec.ts index ef45931..6695337 100644 --- a/src/test/ts/TSOFATest.spec.ts +++ b/src/test/ts/TSOFATest.spec.ts @@ -75,9 +75,6 @@ export class TSOFATest { { expect.toBeEqual(val,valok); } - - - } @Test() public t_a2af() { @@ -118,11 +115,11 @@ export class TSOFATest { } - @Test() +@Test() public t_bp00() { - const rb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rbp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rb: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rbp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); TSOFA.jauBp00(2400000.5, 50123.9999, rb, rp, rbp); this.vvd(rb[0][0], 0.9999999999999942, 1.0E-12, "jauBp00", "rb11"); this.vvd(rb[0][1], -7.078279744199197E-8, 1.0E-16, "jauBp00", "rb12"); @@ -154,9 +151,9 @@ export class TSOFATest { } @Test() public t_bp06() { - const rb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const rbp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rb: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const rbp: number[][] = TSOFA.CreateDimensionalArray([3, 3]); TSOFA.jauBp06(2400000.5, 50123.9999, rb, rp, rbp); this.vvd(rb[0][0], 0.9999999999999942, 1.0E-12, "jauBp06", "rb11"); this.vvd(rb[0][1], -7.078368960971557E-8, 1.0E-14, "jauBp06", "rb12"); @@ -188,7 +185,7 @@ export class TSOFATest { } @Test() public t_bpn2xy() { - const rbpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rbpn: number[][] = TSOFA.CreateDimensionalArray([3, 3]); rbpn[0][0] = 0.9999962358680738; rbpn[0][1] = -0.002516417057665452; rbpn[0][2] = -0.00109356978534237; @@ -218,7 +215,7 @@ export class TSOFATest { } @Test() public t_c2i00b() { - let rc2i: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let rc2i: number[][] = TSOFA.CreateDimensionalArray([3, 3]); rc2i = TSOFA.jauC2i00b(2400000.5, 53736.0); this.vvd(rc2i[0][0], 0.9999998323040954, 1.0E-12, "jauC2i00b", "11"); this.vvd(rc2i[0][1], 5.581526349131824E-10, 1.0E-12, "jauC2i00b", "12"); @@ -232,7 +229,7 @@ export class TSOFATest { } @Test() public t_c2i06a() { - let rc2i: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let rc2i: number[][] = TSOFA.CreateDimensionalArray([3, 3]); rc2i = TSOFA.jauC2i06a(2400000.5, 53736.0); this.vvd(rc2i[0][0], 0.9999998323037159, 1.0E-12, "jauC2i06a", "11"); this.vvd(rc2i[0][1], 5.581121329587614E-10, 1.0E-12, "jauC2i06a", "12"); @@ -246,8 +243,8 @@ export class TSOFATest { } @Test() public t_c2ibpn() { - const rbpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - let rc2i: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rbpn: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + let rc2i: number[][] = TSOFA.CreateDimensionalArray([3, 3]); rbpn[0][0] = 0.9999962358680738; rbpn[0][1] = -0.002516417057665452; rbpn[0][2] = -0.00109356978534237; @@ -272,10 +269,9 @@ export class TSOFATest { public t_c2ixy() { let x: number; let y: number; - let rc2i: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); x = 5.791308486706011E-4; y = 4.020579816732961E-5; - rc2i = TSOFA.jauC2ixy(2400000.5, 53736, x, y); + const rc2i = TSOFA.jauC2ixy(2400000.5, 53736, x, y); this.vvd(rc2i[0][0], 0.9999998323037157, 1.0E-12, "jauC2ixy", "11"); this.vvd(rc2i[0][1], 5.581526349032241E-10, 1.0E-12, "jauC2ixy", "12"); this.vvd(rc2i[0][2], -5.791308491611264E-4, 1.0E-12, "jauC2ixy", "13"); @@ -291,11 +287,11 @@ export class TSOFATest { let x: number; let y: number; let s: number; - let rc2i: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + x = 5.791308486706011E-4; y = 4.020579816732961E-5; s = -1.220040848472272E-8; - rc2i = TSOFA.jauC2ixys(x, y, s); + const rc2i = TSOFA.jauC2ixys(x, y, s); this.vvd(rc2i[0][0], 0.9999998323037157, 1.0E-12, "jauC2ixys", "11"); this.vvd(rc2i[0][1], 5.581984869168499E-10, 1.0E-12, "jauC2ixys", "12"); this.vvd(rc2i[0][2], -5.791308491611282E-4, 1.0E-12, "jauC2ixys", "13"); @@ -324,14 +320,14 @@ export class TSOFATest { let utb: number; let xp: number; let yp: number; - let rc2t: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + tta = 2400000.5; uta = 2400000.5; ttb = 53736.0; utb = 53736.0; xp = 2.55060238E-7; yp = 1.860359247E-6; - rc2t = TSOFA.jauC2t00a(tta, ttb, uta, utb, xp, yp); + const rc2t = TSOFA.jauC2t00a(tta, ttb, uta, utb, xp, yp); this.vvd(rc2t[0][0], -0.18103321283071827, 1.0E-12, "jauC2t00a", "11"); this.vvd(rc2t[0][1], 0.9834769806938458, 1.0E-12, "jauC2t00a", "12"); this.vvd(rc2t[0][2], 6.555535638688342E-5, 1.0E-12, "jauC2t00a", "13"); @@ -350,14 +346,13 @@ export class TSOFATest { let utb: number; let xp: number; let yp: number; - let rc2t: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); tta = 2400000.5; uta = 2400000.5; ttb = 53736.0; utb = 53736.0; xp = 2.55060238E-7; yp = 1.860359247E-6; - rc2t = TSOFA.jauC2t00b(tta, ttb, uta, utb, xp, yp); + const rc2t = TSOFA.jauC2t00b(tta, ttb, uta, utb, xp, yp); this.vvd(rc2t[0][0], -0.1810332128439679, 1.0E-12, "jauC2t00b", "11"); this.vvd(rc2t[0][1], 0.9834769806913872, 1.0E-12, "jauC2t00b", "12"); this.vvd(rc2t[0][2], 6.555565082458416E-5, 1.0E-12, "jauC2t00b", "13"); @@ -376,14 +371,13 @@ export class TSOFATest { let utb: number; let xp: number; let yp: number; - let rc2t: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); tta = 2400000.5; uta = 2400000.5; ttb = 53736.0; utb = 53736.0; xp = 2.55060238E-7; yp = 1.860359247E-6; - rc2t = TSOFA.jauC2t06a(tta, ttb, uta, utb, xp, yp); + const rc2t = TSOFA.jauC2t06a(tta, ttb, uta, utb, xp, yp); this.vvd(rc2t[0][0], -0.18103321283058973, 1.0E-12, "jauC2t06a", "11"); this.vvd(rc2t[0][1], 0.9834769806938592, 1.0E-12, "jauC2t06a", "12"); this.vvd(rc2t[0][2], 6.555550962998436E-5, 1.0E-12, "jauC2t06a", "13"); @@ -396,10 +390,10 @@ export class TSOFATest { } @Test() public t_c2tcio() { - const rc2i: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rc2i: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let era: number; - const rpom: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - let rc2t: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rpom: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + let rc2t: number[][] = TSOFA.CreateDimensionalArray([3, 3]); rc2i[0][0] = 0.9999998323037165; rc2i[0][1] = 5.581526271714304E-10; rc2i[0][2] = -5.791308477073444E-4; @@ -432,10 +426,10 @@ export class TSOFATest { } @Test() public t_c2teqx() { - const rbpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rbpn: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let gst: number; - const rpom: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - let rc2t: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rpom: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + let rc2t: number[][] = TSOFA.CreateDimensionalArray([3, 3]); rbpn[0][0] = 0.9999989440476104; rbpn[0][1] = -0.0013328817612400115; rbpn[0][2] = -5.790767434730085E-4; @@ -476,7 +470,6 @@ export class TSOFATest { let deps: number; let xp: number; let yp: number; - let rc2t: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); tta = 2400000.5; uta = 2400000.5; ttb = 53736.0; @@ -485,7 +478,7 @@ export class TSOFATest { dpsi = -9.630909107115582E-6; xp = 2.55060238E-7; yp = 1.860359247E-6; - rc2t = TSOFA.jauC2tpe(tta, ttb, uta, utb, dpsi, deps, xp, yp); + const rc2t = TSOFA.jauC2tpe(tta, ttb, uta, utb, dpsi, deps, xp, yp); this.vvd(rc2t[0][0], -0.18136779957630295, 1.0E-12, "jauC2tpe", "11"); this.vvd(rc2t[0][1], 0.9023482206891683, 1.0E-12, "jauC2tpe", "12"); this.vvd(rc2t[0][2], -0.39099029386410855, 1.0E-12, "jauC2tpe", "13"); @@ -506,7 +499,6 @@ export class TSOFATest { let y: number; let xp: number; let yp: number; - let rc2t: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); tta = 2400000.5; uta = 2400000.5; ttb = 53736.0; @@ -515,7 +507,7 @@ export class TSOFATest { y = 4.020579816732961E-5; xp = 2.55060238E-7; yp = 1.860359247E-6; - rc2t = TSOFA.jauC2txy(tta, ttb, uta, utb, x, y, xp, yp); + const rc2t = TSOFA.jauC2txy(tta, ttb, uta, utb, x, y, xp, yp); this.vvd(rc2t[0][0], -0.18103321283062793, 1.0E-12, "jauC2txy", "11"); this.vvd(rc2t[0][1], 0.983476980693852, 1.0E-12, "jauC2txy", "12"); this.vvd(rc2t[0][2], 6.555551248057666E-5, 1.0E-12, "jauC2txy", "13"); @@ -549,8 +541,8 @@ export class TSOFATest { } @Test() public t_cpv() { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const c: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const c: number[][] = TSOFA.CreateDimensionalArray([2, 3]); pv[0][0] = 0.3; pv[0][1] = 1.2; pv[0][2] = -2.5; @@ -567,8 +559,8 @@ export class TSOFATest { } @Test() public t_cr() { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const c: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const c: number[][] = TSOFA.CreateDimensionalArray([3, 3]); r[0][0] = 2.0; r[0][1] = 3.0; r[0][2] = 2.0; @@ -695,7 +687,7 @@ export class TSOFATest { } @Test() public t_eors() { - const rnpb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rnpb: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let s: number; let eo: number; rnpb[0][0] = 0.9999989440476104; @@ -741,8 +733,8 @@ export class TSOFATest { } @Test() public t_epv00() { - const pvh: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const pvb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pvh: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const pvb: number[][] = TSOFA.CreateDimensionalArray([2, 3]); const j: number = TSOFA.jauEpv00(2400000.5, 53411.52501161, pvh, pvb); this.vvd(pvh[0][0], -0.7757238809297706, 1.0E-14, "jauEpv00", "ph(x)"); this.vvd(pvh[0][1], 0.559805224136334, 1.0E-14, "jauEpv00", "ph(y)"); @@ -840,7 +832,7 @@ export class TSOFATest { dd5 = -5.8468475E-6; px5 = 0.37921; rv5 = -7.6; - const cat: TSOFA.CatalogCoords = TSOFA.jauFk52h(r5, d5, dr5, dd5, px5, rv5); + const cat: TSOFA.CatalogCoords | any = TSOFA.jauFk52h(r5, d5, dr5, dd5, px5, rv5); this.vvd(cat.pos.alpha, 1.7677942262999475, 1.0E-14, "jauFk52h", "ra"); this.vvd(cat.pos.delta, -0.29175160705303915, 1.0E-14, "jauFk52h", "dec"); this.vvd(cat.pm.alpha, -1.9618741256057212E-7, 1.0E-19, "jauFk52h", "dr5"); @@ -850,7 +842,7 @@ export class TSOFATest { } @Test() public t_fk5hip() { - const r5h: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r5h: number[][] = TSOFA.CreateDimensionalArray([3, 3]); const s5h: number[] = [0, 0, 0]; TSOFA.jauFk5hip(r5h, s5h); this.vvd(r5h[0][0], 0.9999999999999929, 1.0E-14, "jauFk5hip", "11"); @@ -882,7 +874,7 @@ export class TSOFATest { let phib: number; let psi: number; let eps: number; - let r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + let r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); gamb = -2.2433876709979924E-6; phib = 0.4091014602391313; psi = -9.501954178013015E-4; @@ -1044,7 +1036,7 @@ export class TSOFATest { } @Test() public t_gst06() { - const rnpb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const rnpb: number[][] = TSOFA.CreateDimensionalArray([3, 3]); let theta: number; rnpb[0][0] = 0.9999989440476104; rnpb[0][1] = -0.0013328817612400115; @@ -1084,7 +1076,7 @@ export class TSOFATest { ddh = -5.92994449E-6; pxh = 0.37921; rvh = -7.6; - const cat: TSOFA.CatalogCoords = TSOFA.jauH2fk5(rh, dh, drh, ddh, pxh, rvh); + const cat: TSOFA.CatalogCoords | any = TSOFA.jauH2fk5(rh, dh, drh, ddh, pxh, rvh); this.vvd(cat.pos.alpha, 1.7677944557000655, 1.0E-13, "jauH2fk5", "ra"); this.vvd(cat.pos.delta, -0.2917513626469639, 1.0E-13, "jauH2fk5", "dec"); this.vvd(cat.pm.alpha, -2.7597945024511204E-6, 1.0E-18, "jauH2fk5", "dr5"); @@ -1106,7 +1098,7 @@ export class TSOFATest { } @Test() public t_ir() { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); r[0][0] = 2.0; r[0][1] = 3.0; r[0][2] = 2.0; @@ -1156,8 +1148,7 @@ export class TSOFATest { } @Test() public t_num00a() { - let rmatn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - rmatn = TSOFA.jauNum00a(2400000.5, 53736.0); + const rmatn = TSOFA.jauNum00a(2400000.5, 53736.0); this.vvd(rmatn[0][0], 0.9999999999536228, 1.0E-12, "jauNum00a", "11"); this.vvd(rmatn[0][1], 8.836238544090872E-6, 1.0E-12, "jauNum00a", "12"); this.vvd(rmatn[0][2], 3.830835237722401E-6, 1.0E-12, "jauNum00a", "13"); @@ -1170,8 +1161,7 @@ export class TSOFATest { } @Test() public t_num00b() { - let rmatn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - rmatn = TSOFA.jauNum00b(2400000.5, 53736); + const rmatn = TSOFA.jauNum00b(2400000.5, 53736); this.vvd(rmatn[0][0], 0.999999999953607, 1.0E-12, "jauNum00b", "11"); this.vvd(rmatn[0][1], 8.837746144871248E-6, 1.0E-12, "jauNum00b", "12"); this.vvd(rmatn[0][2], 3.831488838252203E-6, 1.0E-12, "jauNum00b", "13"); @@ -1184,8 +1174,7 @@ export class TSOFATest { } @Test() public t_num06a() { - let rmatn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - rmatn = TSOFA.jauNum06a(2400000.5, 53736); + const rmatn = TSOFA.jauNum06a(2400000.5, 53736); this.vvd(rmatn[0][0], 0.9999999999536228, 1.0E-12, "jauNum06a", "11"); this.vvd(rmatn[0][1], 8.836241998111535E-6, 1.0E-12, "jauNum06a", "12"); this.vvd(rmatn[0][2], 3.8308346084152875E-6, 1.0E-12, "jauNum06a", "13"); @@ -1201,11 +1190,10 @@ export class TSOFATest { let epsa: number; let dpsi: number; let deps: number; - let rmatn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); epsa = 0.409078976335651; dpsi = -9.630909107115582E-6; deps = 4.063239174001679E-5; - rmatn = TSOFA.jauNumat(epsa, dpsi, deps); + const rmatn = TSOFA.jauNumat(epsa, dpsi, deps); this.vvd(rmatn[0][0], 0.9999999999536228, 1.0E-12, "jauNumat", "11"); this.vvd(rmatn[0][1], 8.83623932023625E-6, 1.0E-12, "jauNumat", "12"); this.vvd(rmatn[0][2], 3.830833447458252E-6, 1.0E-12, "jauNumat", "13"); @@ -1242,8 +1230,7 @@ export class TSOFATest { } @Test() public t_nutm80() { - let rmatn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - rmatn = TSOFA.jauNutm80(2400000.5, 53736.0); + const rmatn = TSOFA.jauNutm80(2400000.5, 53736.0); this.vvd(rmatn[0][0], 0.9999999999535, 1.0E-12, "jauNutm80", "11"); this.vvd(rmatn[0][1], 8.847935789636432E-6, 1.0E-12, "jauNutm80", "12"); this.vvd(rmatn[0][2], 3.8359065021640195E-6, 1.0E-12, "jauNutm80", "13"); @@ -1287,7 +1274,7 @@ export class TSOFATest { @Test() public t_p2pv() { const p: number[] = [0, 0, 0]; - let pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + let pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); p[0] = 0.25; p[1] = 1.2; p[2] = 3.0; @@ -1404,8 +1391,7 @@ export class TSOFATest { } @Test() public t_pmat00() { - let rbp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - rbp = TSOFA.jauPmat00(2400000.5, 50123.9999); + const rbp = TSOFA.jauPmat00(2400000.5, 50123.9999); this.vvd(rbp[0][0], 0.9999995505175088, 1.0E-12, "jauPmat00", "11"); this.vvd(rbp[0][1], 8.695405883617885E-4, 1.0E-14, "jauPmat00", "12"); this.vvd(rbp[0][2], 3.779734722239007E-4, 1.0E-14, "jauPmat00", "13"); @@ -1418,8 +1404,7 @@ export class TSOFATest { } @Test() public t_pmat06() { - let rbp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - rbp = TSOFA.jauPmat06(2400000.5, 50123.9999); + const rbp = TSOFA.jauPmat06(2400000.5, 50123.9999); this.vvd(rbp[0][0], 0.9999995505176007, 1.0E-12, "jauPmat06", "11"); this.vvd(rbp[0][1], 8.695404617348209E-4, 1.0E-14, "jauPmat06", "12"); this.vvd(rbp[0][2], 3.779735201865589E-4, 1.0E-14, "jauPmat06", "13"); @@ -1432,8 +1417,7 @@ export class TSOFATest { } @Test() public t_pmat76() { - let rmatp: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - rmatp = TSOFA.jauPmat76(2400000.5, 50123.9999); + const rmatp = TSOFA.jauPmat76(2400000.5, 50123.9999); this.vvd(rmatp[0][0], 0.9999995504328351, 1.0E-12, "jauPmat76", "11"); this.vvd(rmatp[0][1], 8.696632209480961E-4, 1.0E-14, "jauPmat76", "12"); this.vvd(rmatp[0][2], 3.7791534749598884E-4, 1.0E-14, "jauPmat76", "13"); @@ -1748,8 +1732,7 @@ export class TSOFATest { } @Test() public t_pnm00a() { - let rbpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - rbpn = TSOFA.jauPnm00a(2400000.5, 50123.9999); + const rbpn = TSOFA.jauPnm00a(2400000.5, 50123.9999); this.vvd(rbpn[0][0], 0.9999995832793134, 1.0E-12, "jauPnm00a", "11"); this.vvd(rbpn[0][1], 8.372384254137809E-4, 1.0E-14, "jauPnm00a", "12"); this.vvd(rbpn[0][2], 3.639684306407151E-4, 1.0E-14, "jauPnm00a", "13"); @@ -1762,8 +1745,7 @@ export class TSOFATest { } @Test() public t_pnm00b() { - let rbpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - rbpn = TSOFA.jauPnm00b(2400000.5, 50123.9999); + const rbpn = TSOFA.jauPnm00b(2400000.5, 50123.9999); this.vvd(rbpn[0][0], 0.9999995832776208, 1.0E-12, "jauPnm00b", "11"); this.vvd(rbpn[0][1], 8.372401264429655E-4, 1.0E-14, "jauPnm00b", "12"); this.vvd(rbpn[0][2], 3.6396916814502716E-4, 1.0E-14, "jauPnm00b", "13"); @@ -1776,8 +1758,7 @@ export class TSOFATest { } @Test() public t_pnm06a() { - let rbpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - rbpn = TSOFA.jauPnm06a(2400000.5, 50123.9999); + const rbpn = TSOFA.jauPnm06a(2400000.5, 50123.9999); this.vvd(rbpn[0][0], 0.9999995832794205, 1.0E-12, "jauPnm06a", "11"); this.vvd(rbpn[0][1], 8.372382772630962E-4, 1.0E-14, "jauPnm06a", "12"); this.vvd(rbpn[0][2], 3.639684771140623E-4, 1.0E-14, "jauPnm06a", "13"); @@ -1790,8 +1771,7 @@ export class TSOFATest { } @Test() public t_pnm80() { - let rmatpn: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - rmatpn = TSOFA.jauPnm80(2400000.5, 50123.9999); + const rmatpn = TSOFA.jauPnm80(2400000.5, 50123.9999); this.vvd(rmatpn[0][0], 0.9999995831934612, 1.0E-12, "jauPnm80", "11"); this.vvd(rmatpn[0][1], 8.373654045728124E-4, 1.0E-14, "jauPnm80", "12"); this.vvd(rmatpn[0][2], 3.639121916933106E-4, 1.0E-14, "jauPnm80", "13"); @@ -1807,11 +1787,10 @@ export class TSOFATest { let xp: number; let yp: number; let sp: number; - let rpom: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); xp = 2.55060238E-7; yp = 1.860359247E-6; sp = -1.3671745807288915E-11; - rpom = TSOFA.jauPom00(xp, yp, sp); + const rpom = TSOFA.jauPom00(xp, yp, sp); this.vvd(rpom[0][0], 0.9999999999999675, 1.0E-12, "jauPom00", "11"); this.vvd(rpom[0][1], -1.367174580728847E-11, 1.0E-16, "jauPom00", "12"); this.vvd(rpom[0][2], 2.550602379999972E-7, 1.0E-16, "jauPom00", "13"); @@ -1887,7 +1866,7 @@ export class TSOFATest { } @Test() public t_pv2p() { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); let p: number[] = [0, 0, 0]; pv[0][0] = 0.3; pv[0][1] = 1.2; @@ -1902,7 +1881,7 @@ export class TSOFATest { } @Test() public t_pv2s() { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); pv[0][0] = -0.4514964673880165; pv[0][1] = 0.03093394277342585; pv[0][2] = 0.05594668105108779; @@ -1919,8 +1898,8 @@ export class TSOFATest { } @Test() public t_pvdpv() { - const a: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const b: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const a: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const b: number[][] = TSOFA.CreateDimensionalArray([2, 3]); let adb: number[] = [0, 0]; a[0][0] = 2.0; a[0][1] = 2.0; @@ -1940,7 +1919,7 @@ export class TSOFATest { } @Test() public t_pvm() { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); pv[0][0] = 0.3; pv[0][1] = 1.2; pv[0][2] = -2.5; @@ -1953,9 +1932,8 @@ export class TSOFATest { } @Test() public t_pvmpv() { - const a: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const b: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - let amb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const a: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const b: number[][] = TSOFA.CreateDimensionalArray([2, 3]); a[0][0] = 2.0; a[0][1] = 2.0; a[0][2] = 3.0; @@ -1968,7 +1946,7 @@ export class TSOFATest { b[1][0] = 3.0; b[1][1] = 2.0; b[1][2] = 1.0; - amb = TSOFA.jauPvmpv(a, b); + const amb = TSOFA.jauPvmpv(a, b); this.vvd(amb[0][0], 1.0, 1.0E-12, "jauPvmpv", "11"); this.vvd(amb[0][1], -1.0, 1.0E-12, "jauPvmpv", "21"); this.vvd(amb[0][2], -1.0, 1.0E-12, "jauPvmpv", "31"); @@ -1978,9 +1956,8 @@ export class TSOFATest { } @Test() public t_pvppv() { - const a: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const b: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - let apb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const a: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const b: number[][] = TSOFA.CreateDimensionalArray([2, 3]); a[0][0] = 2.0; a[0][1] = 2.0; a[0][2] = 3.0; @@ -1993,7 +1970,7 @@ export class TSOFATest { b[1][0] = 3.0; b[1][1] = 2.0; b[1][2] = 1.0; - apb = TSOFA.jauPvppv(a, b); + const apb = TSOFA.jauPvppv(a, b); this.vvd(apb[0][0], 3.0, 1.0E-12, "jauPvppv", "p1"); this.vvd(apb[0][1], 5.0, 1.0E-12, "jauPvppv", "p2"); this.vvd(apb[0][2], 7.0, 1.0E-12, "jauPvppv", "p3"); @@ -2003,7 +1980,7 @@ export class TSOFATest { } @Test() public t_pvstar() { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); pv[0][0] = 126668.59127431606; pv[0][1] = 2136.792716839935; pv[0][2] = -245251.23398768302; @@ -2023,15 +2000,14 @@ export class TSOFATest { } @Test() public t_pvu() { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - let upv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); pv[0][0] = 126668.59127431607; pv[0][1] = 2136.7927168399356; pv[0][2] = -245251.23398768302; pv[1][0] = -0.004051854035740713; pv[1][1] = -0.006253919754866176; pv[1][2] = 0.011893537197741076; - upv = TSOFA.jauPvu(2920.0, pv); + const upv = TSOFA.jauPvu(2920.0, pv); this.vvd(upv[0][0], 126656.7598605317, 1.0E-6, "jauPvu", "p1"); this.vvd(upv[0][1], 2118.5312711557262, 1.0E-8, "jauPvu", "p2"); this.vvd(upv[0][2], -245216.5048590656, 1.0E-6, "jauPvu", "p3"); @@ -2041,24 +2017,22 @@ export class TSOFATest { } @Test() public t_pvup() { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - let p: number[] = [0, 0, 0]; + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); pv[0][0] = 126668.59127431607; pv[0][1] = 2136.7927168399356; pv[0][2] = -245251.23398768302; pv[1][0] = -0.004051854035740713; pv[1][1] = -0.006253919754866176; pv[1][2] = 0.011893537197741076; - p = TSOFA.jauPvup(2920.0, pv); + const p = TSOFA.jauPvup(2920.0, pv); this.vvd(p[0], 126656.7598605317, 1.0E-12, "jauPvup", "1"); this.vvd(p[1], 2118.5312711557262, 1.0E-12, "jauPvup", "2"); this.vvd(p[2], -245216.5048590656, 1.0E-12, "jauPvup", "3"); } @Test() public t_pvxpv() { - const a: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const b: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - let axb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const a: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const b: number[][] = TSOFA.CreateDimensionalArray([2, 3]); a[0][0] = 2.0; a[0][1] = 2.0; a[0][2] = 3.0; @@ -2071,7 +2045,7 @@ export class TSOFATest { b[1][0] = 0.0; b[1][1] = 2.0; b[1][2] = 8.0; - axb = TSOFA.jauPvxpv(a, b); + const axb = TSOFA.jauPvxpv(a, b); this.vvd(axb[0][0], -1.0, 1.0E-12, "jauPvxpv", "p1"); this.vvd(axb[0][1], -5.0, 1.0E-12, "jauPvxpv", "p2"); this.vvd(axb[0][2], 4.0, 1.0E-12, "jauPvxpv", "p3"); @@ -2097,8 +2071,7 @@ export class TSOFATest { } @Test() public t_rm2v() { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - let w: number[] = [0, 0, 0]; + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); r[0][0] = 0.0; r[0][1] = -0.8; r[0][2] = -0.6; @@ -2108,7 +2081,7 @@ export class TSOFATest { r[2][0] = 0.6; r[2][1] = 0.48; r[2][2] = -0.64; - w = TSOFA.jauRm2v(r); + const w = TSOFA.jauRm2v(r); this.vvd(w[0], 0.0, 1.0E-12, "jauRm2v", "1"); this.vvd(w[1], 1.413716694115407, 1.0E-12, "jauRm2v", "2"); this.vvd(w[2], -1.8849555921538759, 1.0E-12, "jauRm2v", "3"); @@ -2116,11 +2089,10 @@ export class TSOFATest { @Test() public t_rv2m() { const w: number[] = [0, 0, 0]; - let r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); w[0] = 0.0; w[1] = 1.41371669; w[2] = -1.88495559; - r = TSOFA.jauRv2m(w); + const r = TSOFA.jauRv2m(w); this.vvd(r[0][0], -0.707106778222112, 1.0E-14, "jauRv2m", "11"); this.vvd(r[0][1], -0.565685427680913, 1.0E-14, "jauRv2m", "12"); this.vvd(r[0][2], -0.4242640700104211, 1.0E-14, "jauRv2m", "13"); @@ -2134,7 +2106,7 @@ export class TSOFATest { @Test() public t_rx() { let phi: number; - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); phi = 0.3456789; r[0][0] = 2.0; r[0][1] = 3.0; @@ -2158,9 +2130,8 @@ export class TSOFATest { } @Test() public t_rxp() { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); const p: number[] = [0, 0, 0]; - let rp: number[] = [0, 0, 0]; r[0][0] = 2.0; r[0][1] = 3.0; r[0][2] = 2.0; @@ -2173,16 +2144,15 @@ export class TSOFATest { p[0] = 0.2; p[1] = 1.5; p[2] = 0.1; - rp = TSOFA.jauRxp(r, p); + const rp = TSOFA.jauRxp(r, p); this.vvd(rp[0], 5.1, 1.0E-12, "jauRxp", "1"); this.vvd(rp[1], 3.9, 1.0E-12, "jauRxp", "2"); this.vvd(rp[2], 7.1, 1.0E-12, "jauRxp", "3"); } @Test() public t_rxpv() { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - let rpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); r[0][0] = 2.0; r[0][1] = 3.0; r[0][2] = 2.0; @@ -2198,7 +2168,7 @@ export class TSOFATest { pv[1][0] = 1.5; pv[1][1] = 0.2; pv[1][2] = 0.1; - rpv = TSOFA.jauRxpv(r, pv); + const rpv = TSOFA.jauRxpv(r, pv); this.vvd(rpv[0][0], 5.1, 1.0E-12, "jauRxpv", "11"); this.vvd(rpv[1][0], 3.8, 1.0E-12, "jauRxpv", "12"); this.vvd(rpv[0][1], 3.9, 1.0E-12, "jauRxpv", "21"); @@ -2208,9 +2178,8 @@ export class TSOFATest { } @Test() public t_rxr() { - const a: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const b: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - let atb: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const a: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const b: number[][] = TSOFA.CreateDimensionalArray([3, 3]); a[0][0] = 2.0; a[0][1] = 3.0; a[0][2] = 2.0; @@ -2229,7 +2198,7 @@ export class TSOFATest { b[2][0] = 3.0; b[2][1] = 0.0; b[2][2] = 1.0; - atb = TSOFA.jauRxr(a, b); + const atb = TSOFA.jauRxr(a, b); this.vvd(atb[0][0], 20.0, 1.0E-12, "jauRxr", "11"); this.vvd(atb[0][1], 7.0, 1.0E-12, "jauRxr", "12"); this.vvd(atb[0][2], 9.0, 1.0E-12, "jauRxr", "13"); @@ -2243,7 +2212,7 @@ export class TSOFATest { @Test() public t_ry() { let theta: number; - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); theta = 0.3456789; r[0][0] = 2.0; r[0][1] = 3.0; @@ -2268,7 +2237,7 @@ export class TSOFATest { @Test() public t_rz() { let psi: number; - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); psi = 0.3456789; r[0][0] = 2.0; r[0][1] = 3.0; @@ -2346,8 +2315,7 @@ export class TSOFATest { } @Test() public t_s2pv() { - let pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - pv = TSOFA.jauS2pv(-3.21, 0.123, 0.456, -7.8E-6, 9.01E-6, -1.23E-5); + const pv = TSOFA.jauS2pv(-3.21, 0.123, 0.456, -7.8E-6, 9.01E-6, -1.23E-5); this.vvd(pv[0][0], -0.4514964673880165, 1.0E-12, "jauS2pv", "x"); this.vvd(pv[0][1], 0.030933942773425867, 1.0E-12, "jauS2pv", "y"); this.vvd(pv[0][2], 0.05594668105108779, 1.0E-12, "jauS2pv", "z"); @@ -2359,8 +2327,7 @@ export class TSOFATest { public t_s2xpv() { let s1: number; let s2: number; - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - let spv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); s1 = 2.0; s2 = 3.0; pv[0][0] = 0.3; @@ -2369,7 +2336,7 @@ export class TSOFATest { pv[1][0] = 0.5; pv[1][1] = 2.3; pv[1][2] = -0.4; - spv = TSOFA.jauS2xpv(s1, s2, pv); + const spv = TSOFA.jauS2xpv(s1, s2, pv); this.vvd(spv[0][0], 0.6, 1.0E-12, "jauS2xpv", "p1"); this.vvd(spv[0][1], 2.4, 1.0E-12, "jauS2xpv", "p2"); this.vvd(spv[0][2], -5.0, 1.0E-12, "jauS2xpv", "p3"); @@ -2443,7 +2410,7 @@ export class TSOFATest { let pmd: number; let px: number; let rv: number; - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); ra = 0.01686756; dec = -1.093989828; pmr = -1.78323516E-5; @@ -2476,8 +2443,7 @@ export class TSOFATest { @Test() public t_sxpv() { let s: number; - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - let spv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); s = 2.0; pv[0][0] = 0.3; pv[0][1] = 1.2; @@ -2485,7 +2451,7 @@ export class TSOFATest { pv[1][0] = 0.5; pv[1][1] = 3.2; pv[1][2] = -0.7; - spv = TSOFA.jauSxpv(s, pv); + const spv = TSOFA.jauSxpv(s, pv); this.vvd(spv[0][0], 0.6, 0.0, "jauSxpv", "p1"); this.vvd(spv[0][1], 2.4, 0.0, "jauSxpv", "p2"); this.vvd(spv[0][2], -5.0, 0.0, "jauSxpv", "p3"); @@ -2537,8 +2503,7 @@ export class TSOFATest { } @Test() public t_tr() { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - let rt: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); r[0][0] = 2.0; r[0][1] = 3.0; r[0][2] = 2.0; @@ -2548,7 +2513,7 @@ export class TSOFATest { r[2][0] = 3.0; r[2][1] = 4.0; r[2][2] = 5.0; - rt = TSOFA.jauTr(r); + const rt = TSOFA.jauTr(r); this.vvd(rt[0][0], 2.0, 0.0, "jauTr", "11"); this.vvd(rt[0][1], 3.0, 0.0, "jauTr", "12"); this.vvd(rt[0][2], 3.0, 0.0, "jauTr", "13"); @@ -2561,9 +2526,8 @@ export class TSOFATest { } @Test() public t_trxp() { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); const p: number[] = [0, 0, 0]; - let trp: number[] = [0, 0, 0]; r[0][0] = 2.0; r[0][1] = 3.0; r[0][2] = 2.0; @@ -2576,16 +2540,15 @@ export class TSOFATest { p[0] = 0.2; p[1] = 1.5; p[2] = 0.1; - trp = TSOFA.jauTrxp(r, p); + const trp = TSOFA.jauTrxp(r, p); this.vvd(trp[0], 5.2, 1.0E-12, "jauTrxp", "1"); this.vvd(trp[1], 4.0, 1.0E-12, "jauTrxp", "2"); this.vvd(trp[2], 5.4, 1.0E-12, "jauTrxp", "3"); } @Test() public t_trxpv() { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - let trpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); r[0][0] = 2.0; r[0][1] = 3.0; r[0][2] = 2.0; @@ -2601,7 +2564,7 @@ export class TSOFATest { pv[1][0] = 1.5; pv[1][1] = 0.2; pv[1][2] = 0.1; - trpv = TSOFA.jauTrxpv(r, pv); + const trpv = TSOFA.jauTrxpv(r, pv); this.vvd(trpv[0][0], 5.2, 1.0E-12, "jauTrxpv", "p1"); this.vvd(trpv[0][1], 4.0, 1.0E-12, "jauTrxpv", "p1"); this.vvd(trpv[0][2], 5.4, 1.0E-12, "jauTrxpv", "p1"); @@ -2703,7 +2666,7 @@ export class TSOFATest { } @Test() public t_zpv() { - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); pv[0][0] = 0.3; pv[0][1] = 1.2; pv[0][2] = -2.5; @@ -2720,7 +2683,7 @@ export class TSOFATest { } @Test() public t_zr() { - const r: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([3, 3]); + const r: number[][] = TSOFA.CreateDimensionalArray([3, 3]); r[0][0] = 2.0; r[1][0] = 3.0; r[2][0] = 2.0; @@ -2745,7 +2708,7 @@ export class TSOFATest { public t_apcg() { let date1: number; let date2: number; - const ebpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const ebpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); const ehp: number[] = [0, 0, 0]; const astrom: TSOFA.Astrom = new TSOFA.Astrom(); date1 = 2456165.5; @@ -2836,7 +2799,7 @@ export class TSOFATest { public t_apci() { let date1: number; let date2: number; - const ebpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const ebpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); const ehp: number[] = [0, 0, 0]; let x: number; let y: number; @@ -2915,7 +2878,7 @@ export class TSOFATest { public t_apco() { let date1: number; let date2: number; - const ebpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const ebpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); const ehp: number[] = [0, 0, 0]; let x: number; let y: number; @@ -3050,8 +3013,8 @@ export class TSOFATest { public t_apcs() { let date1: number; let date2: number; - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); - const ebpv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); + const ebpv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); const ehp: number[] = [0, 0, 0]; const astrom: TSOFA.Astrom = new TSOFA.Astrom(); date1 = 2456384.5; @@ -3098,7 +3061,7 @@ export class TSOFATest { public t_apcs13() { let date1: number; let date2: number; - const pv: number[][] = (function(dims) { let allocate = function(dims) { if (dims.length === 0) { return 0; } else { let array = []; for(let i = 0; i < dims[0]; i++) { array.push(allocate(dims.slice(1))); } return array; }}; return allocate(dims);})([2, 3]); + const pv: number[][] = TSOFA.CreateDimensionalArray([2, 3]); const astrom: TSOFA.Astrom = new TSOFA.Astrom(); date1 = 2456165.5; date2 = 0.401182685; @@ -3845,7 +3808,9 @@ export class TSOFATest { } @Test() public t_d2dtf() { + const c: TSOFA.CalendarHMS = TSOFA.jauD2dtf("UTC", 5, 2400000.5, 49533.99999); + this.viv(c.iy, 1994, "jauD2dtf", "y"); this.viv(c.im, 6, "jauD2dtf", "mo"); this.viv(c.id, 30, "jauD2dtf", "d"); diff --git a/yarn.lock b/yarn.lock index 4331ba7..28ed18e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -30,49 +30,59 @@ dependencies: eslint-visitor-keys "^3.3.0" -"@eslint-community/regexpp@^4.5.1", "@eslint-community/regexpp@^4.6.1": +"@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.11.0": + version "4.11.0" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.11.0.tgz#b0ffd0312b4a3fd2d6f77237e7248a5ad3a680ae" + integrity sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A== + +"@eslint-community/regexpp@^4.5.1": version "4.9.0" resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.9.0.tgz" integrity sha512-zJmuCWj2VLBt4c25CfBIbMZLGLyhkvs7LznyVX5HfpzeocThgIj5XQK4L+g3U36mMcx8bPMhGyPpwCATamC4jQ== -"@eslint/eslintrc@^2.1.2": - version "2.1.2" - resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz" - integrity sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g== +"@eslint/config-array@^0.18.0": + version "0.18.0" + resolved "https://registry.yarnpkg.com/@eslint/config-array/-/config-array-0.18.0.tgz#37d8fe656e0d5e3dbaea7758ea56540867fd074d" + integrity sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw== + dependencies: + "@eslint/object-schema" "^2.1.4" + debug "^4.3.1" + minimatch "^3.1.2" + +"@eslint/eslintrc@^3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-3.1.0.tgz#dbd3482bfd91efa663cbe7aa1f506839868207b6" + integrity sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ== dependencies: ajv "^6.12.4" debug "^4.3.2" - espree "^9.6.0" - globals "^13.19.0" + espree "^10.0.1" + globals "^14.0.0" ignore "^5.2.0" import-fresh "^3.2.1" js-yaml "^4.1.0" minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@eslint/js@8.50.0": - version "8.50.0" - resolved "https://registry.npmjs.org/@eslint/js/-/js-8.50.0.tgz" - integrity sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ== +"@eslint/js@9.9.1", "@eslint/js@^9.9.1": + version "9.9.1" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.9.1.tgz#4a97e85e982099d6c7ee8410aacb55adaa576f06" + integrity sha512-xIDQRsfg5hNBqHz04H1R3scSVwmI+KUbqjsQKHKQ1DAUSaUjYPReZZmS/5PNiKu1fUvzDd6H7DEDKACSEhu+TQ== -"@humanwhocodes/config-array@^0.11.11": - version "0.11.11" - resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz" - integrity sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA== - dependencies: - "@humanwhocodes/object-schema" "^1.2.1" - debug "^4.1.1" - minimatch "^3.0.5" +"@eslint/object-schema@^2.1.4": + version "2.1.4" + resolved "https://registry.yarnpkg.com/@eslint/object-schema/-/object-schema-2.1.4.tgz#9e69f8bb4031e11df79e03db09f9dbbae1740843" + integrity sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ== "@humanwhocodes/module-importer@^1.0.1": version "1.0.1" resolved "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz" integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== -"@humanwhocodes/object-schema@^1.2.1": - version "1.2.1" - resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== +"@humanwhocodes/retry@^0.3.0": + version "0.3.0" + resolved "https://registry.yarnpkg.com/@humanwhocodes/retry/-/retry-0.3.0.tgz#6d86b8cb322660f03d3f0aa94b99bdd8e172d570" + integrity sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew== "@jridgewell/resolve-uri@^3.0.3": version "3.1.1" @@ -100,7 +110,7 @@ "@nodelib/fs.stat" "2.0.5" run-parallel "^1.1.9" -"@nodelib/fs.stat@^2.0.2", "@nodelib/fs.stat@2.0.5": +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": version "2.0.5" resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== @@ -143,7 +153,7 @@ resolved "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz" integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== -"@types/node@*", "@types/node@^20.7.1": +"@types/node@^20.7.1": version "20.7.1" resolved "https://registry.npmjs.org/@types/node/-/node-20.7.1.tgz" integrity sha512-LT+OIXpp2kj4E2S/p91BMe+VgGX2+lfO+XTpfXhh+bCk2LkQtHZSub8ewFBMGP5ClysPjTDFa4sMI8Q3n4T0wg== @@ -153,6 +163,21 @@ resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.3.tgz" integrity sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw== +"@typescript-eslint/eslint-plugin@8.3.0": + version "8.3.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.3.0.tgz#726627fad16d41d20539637efee8c2329fe6be32" + integrity sha512-FLAIn63G5KH+adZosDYiutqkOkYEx0nvcwNNfJAf+c7Ae/H35qWwTYvPZUKFj5AS+WfHG/WJJfWnDnyNUlp8UA== + dependencies: + "@eslint-community/regexpp" "^4.10.0" + "@typescript-eslint/scope-manager" "8.3.0" + "@typescript-eslint/type-utils" "8.3.0" + "@typescript-eslint/utils" "8.3.0" + "@typescript-eslint/visitor-keys" "8.3.0" + graphemer "^1.4.0" + ignore "^5.3.1" + natural-compare "^1.4.0" + ts-api-utils "^1.3.0" + "@typescript-eslint/eslint-plugin@^6.17.0": version "6.17.0" resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.17.0.tgz" @@ -170,7 +195,18 @@ semver "^7.5.4" ts-api-utils "^1.0.1" -"@typescript-eslint/parser@^6.0.0 || ^6.0.0-alpha", "@typescript-eslint/parser@^6.17.0": +"@typescript-eslint/parser@8.3.0": + version "8.3.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.3.0.tgz#3c72c32bc909cb91ce3569e7d11d729ad84deafa" + integrity sha512-h53RhVyLu6AtpUzVCYLPhZGL5jzTD9fZL+SYf/+hYOx2bDkyQXztXSc4tbvKYHzfMXExMLiL9CWqJmVz6+78IQ== + dependencies: + "@typescript-eslint/scope-manager" "8.3.0" + "@typescript-eslint/types" "8.3.0" + "@typescript-eslint/typescript-estree" "8.3.0" + "@typescript-eslint/visitor-keys" "8.3.0" + debug "^4.3.4" + +"@typescript-eslint/parser@^6.17.0": version "6.17.0" resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.17.0.tgz" integrity sha512-C4bBaX2orvhK+LlwrY8oWGmSl4WolCfYm513gEccdWZj0CwGadbIADb0FtVEcI+WzUyjyoBj2JRP8g25E6IB8A== @@ -189,6 +225,14 @@ "@typescript-eslint/types" "6.17.0" "@typescript-eslint/visitor-keys" "6.17.0" +"@typescript-eslint/scope-manager@8.3.0": + version "8.3.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.3.0.tgz#834301d2e70baf924c26818b911bdc40086f7468" + integrity sha512-mz2X8WcN2nVu5Hodku+IR8GgCOl4C0G/Z1ruaWN4dgec64kDBabuXyPAr+/RgJtumv8EEkqIzf3X2U5DUKB2eg== + dependencies: + "@typescript-eslint/types" "8.3.0" + "@typescript-eslint/visitor-keys" "8.3.0" + "@typescript-eslint/type-utils@6.17.0": version "6.17.0" resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.17.0.tgz" @@ -199,11 +243,26 @@ debug "^4.3.4" ts-api-utils "^1.0.1" +"@typescript-eslint/type-utils@8.3.0": + version "8.3.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.3.0.tgz#c1ae6af8c21a27254321016b052af67ddb44a9ac" + integrity sha512-wrV6qh//nLbfXZQoj32EXKmwHf4b7L+xXLrP3FZ0GOUU72gSvLjeWUl5J5Ue5IwRxIV1TfF73j/eaBapxx99Lg== + dependencies: + "@typescript-eslint/typescript-estree" "8.3.0" + "@typescript-eslint/utils" "8.3.0" + debug "^4.3.4" + ts-api-utils "^1.3.0" + "@typescript-eslint/types@6.17.0": version "6.17.0" resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.17.0.tgz" integrity sha512-qRKs9tvc3a4RBcL/9PXtKSehI/q8wuU9xYJxe97WFxnzH8NWWtcW3ffNS+EWg8uPvIerhjsEZ+rHtDqOCiH57A== +"@typescript-eslint/types@8.3.0": + version "8.3.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.3.0.tgz#378e62447c2d7028236e55a81d3391026600563b" + integrity sha512-y6sSEeK+facMaAyixM36dQ5NVXTnKWunfD1Ft4xraYqxP0lC0POJmIaL/mw72CUMqjY9qfyVfXafMeaUj0noWw== + "@typescript-eslint/typescript-estree@6.17.0": version "6.17.0" resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.17.0.tgz" @@ -218,6 +277,20 @@ semver "^7.5.4" ts-api-utils "^1.0.1" +"@typescript-eslint/typescript-estree@8.3.0": + version "8.3.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.3.0.tgz#3e3d38af101ba61a8568f034733b72bfc9f176b9" + integrity sha512-Mq7FTHl0R36EmWlCJWojIC1qn/ZWo2YiWYc1XVtasJ7FIgjo0MVv9rZWXEE7IK2CGrtwe1dVOxWwqXUdNgfRCA== + dependencies: + "@typescript-eslint/types" "8.3.0" + "@typescript-eslint/visitor-keys" "8.3.0" + debug "^4.3.4" + fast-glob "^3.3.2" + is-glob "^4.0.3" + minimatch "^9.0.4" + semver "^7.6.0" + ts-api-utils "^1.3.0" + "@typescript-eslint/utils@6.17.0": version "6.17.0" resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.17.0.tgz" @@ -231,6 +304,16 @@ "@typescript-eslint/typescript-estree" "6.17.0" semver "^7.5.4" +"@typescript-eslint/utils@8.3.0": + version "8.3.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.3.0.tgz#b10972319deac5959c7a7075d0cf2b5e1de7ec08" + integrity sha512-F77WwqxIi/qGkIGOGXNBLV7nykwfjLsdauRB/DOFPdv6LTF3BHHkBpq81/b5iMPSF055oO2BiivDJV4ChvNtXA== + dependencies: + "@eslint-community/eslint-utils" "^4.4.0" + "@typescript-eslint/scope-manager" "8.3.0" + "@typescript-eslint/types" "8.3.0" + "@typescript-eslint/typescript-estree" "8.3.0" + "@typescript-eslint/visitor-keys@6.17.0": version "6.17.0" resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.17.0.tgz" @@ -239,6 +322,14 @@ "@typescript-eslint/types" "6.17.0" eslint-visitor-keys "^3.4.1" +"@typescript-eslint/visitor-keys@8.3.0": + version "8.3.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.3.0.tgz#320d747d107af1eef1eb43fbc4ccdbddda13068b" + integrity sha512-RmZwrTbQ9QveF15m/Cl28n0LXD6ea2CjkhH5rQ55ewz3H24w+AMCJHPVYaZ8/0HoG8Z3cLLFFycRXxeO2tz9FA== + dependencies: + "@typescript-eslint/types" "8.3.0" + eslint-visitor-keys "^3.4.3" + acorn-jsx@^5.3.2: version "5.3.2" resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" @@ -249,7 +340,12 @@ acorn-walk@^8.1.1: resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== -"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.4.1, acorn@^8.9.0: +acorn@^8.12.0: + version "8.12.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" + integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== + +acorn@^8.4.1: version "8.10.0" resolved "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz" integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== @@ -480,7 +576,14 @@ debug@^3.2.7: dependencies: ms "^2.1.1" -debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: +debug@^4.3.1: + version "4.3.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.6.tgz#2ab2c38fbaffebf8aa95fdfe6d88438c7a13c52b" + integrity sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg== + dependencies: + ms "2.1.2" + +debug@^4.3.2, debug@^4.3.4: version "4.3.4" resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -534,13 +637,6 @@ doctrine@^2.1.0: dependencies: esutils "^2.0.2" -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - es-abstract@^1.22.1: version "1.22.2" resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.2.tgz" @@ -675,10 +771,10 @@ eslint-plugin-prefer-arrow@^1.2.3: resolved "https://registry.npmjs.org/eslint-plugin-prefer-arrow/-/eslint-plugin-prefer-arrow-1.2.3.tgz" integrity sha512-J9I5PKCOJretVuiZRGvPQxCbllxGAV/viI20JO3LYblAodofBxyMnZAJ+WGeClHgANnSJberTNoFWWjrWKBuXQ== -eslint-scope@^7.2.2: - version "7.2.2" - resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz" - integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== +eslint-scope@^8.0.2: + version "8.0.2" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-8.0.2.tgz#5cbb33d4384c9136083a71190d548158fe128f94" + integrity sha512-6E4xmrTw5wtxnLA5wYL3WDfhZ/1bUBGOXV0zQvVRDOtrR8D0p6W7fs3JweNYhwRYeGvd/1CKX2se0/2s7Q/nJA== dependencies: esrecurse "^4.3.0" estraverse "^5.2.0" @@ -688,40 +784,42 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== -"eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8", "eslint@^6.0.0 || ^7.0.0 || >=8.0.0", "eslint@^7.0.0 || ^8.0.0", eslint@^8.49.0, eslint@>=2.0.0: - version "8.50.0" - resolved "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz" - integrity sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg== +eslint-visitor-keys@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz#e3adc021aa038a2a8e0b2f8b0ce8f66b9483b1fb" + integrity sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw== + +eslint@^9.9.1: + version "9.9.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.9.1.tgz#147ac9305d56696fb84cf5bdecafd6517ddc77ec" + integrity sha512-dHvhrbfr4xFQ9/dq+jcVneZMyRYLjggWjk6RVsIiHsP8Rz6yZ8LvZ//iU4TrZF+SXWG+JkNF2OyiZRvzgRDqMg== dependencies: "@eslint-community/eslint-utils" "^4.2.0" - "@eslint-community/regexpp" "^4.6.1" - "@eslint/eslintrc" "^2.1.2" - "@eslint/js" "8.50.0" - "@humanwhocodes/config-array" "^0.11.11" + "@eslint-community/regexpp" "^4.11.0" + "@eslint/config-array" "^0.18.0" + "@eslint/eslintrc" "^3.1.0" + "@eslint/js" "9.9.1" "@humanwhocodes/module-importer" "^1.0.1" + "@humanwhocodes/retry" "^0.3.0" "@nodelib/fs.walk" "^1.2.8" ajv "^6.12.4" chalk "^4.0.0" cross-spawn "^7.0.2" debug "^4.3.2" - doctrine "^3.0.0" escape-string-regexp "^4.0.0" - eslint-scope "^7.2.2" - eslint-visitor-keys "^3.4.3" - espree "^9.6.1" - esquery "^1.4.2" + eslint-scope "^8.0.2" + eslint-visitor-keys "^4.0.0" + espree "^10.1.0" + esquery "^1.5.0" esutils "^2.0.2" fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" + file-entry-cache "^8.0.0" find-up "^5.0.0" glob-parent "^6.0.2" - globals "^13.19.0" - graphemer "^1.4.0" ignore "^5.2.0" imurmurhash "^0.1.4" is-glob "^4.0.0" is-path-inside "^3.0.3" - js-yaml "^4.1.0" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" lodash.merge "^4.6.2" @@ -731,16 +829,16 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 strip-ansi "^6.0.1" text-table "^0.2.0" -espree@^9.6.0, espree@^9.6.1: - version "9.6.1" - resolved "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz" - integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== +espree@^10.0.1, espree@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/espree/-/espree-10.1.0.tgz#8788dae611574c0f070691f522e4116c5a11fc56" + integrity sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA== dependencies: - acorn "^8.9.0" + acorn "^8.12.0" acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.4.1" + eslint-visitor-keys "^4.0.0" -esquery@^1.4.2, esquery@^1.5.0: +esquery@^1.5.0: version "1.5.0" resolved "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz" integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== @@ -780,6 +878,17 @@ fast-glob@^3.2.9: merge2 "^1.3.0" micromatch "^4.0.4" +fast-glob@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" + integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" @@ -797,12 +906,12 @@ fastq@^1.6.0: dependencies: reusify "^1.0.4" -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== +file-entry-cache@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-8.0.0.tgz#7787bddcf1131bffb92636c69457bbc0edd6d81f" + integrity sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ== dependencies: - flat-cache "^3.0.4" + flat-cache "^4.0.0" fill-range@^7.0.1: version "7.0.1" @@ -819,19 +928,18 @@ find-up@^5.0.0: locate-path "^6.0.0" path-exists "^4.0.0" -flat-cache@^3.0.4: - version "3.1.0" - resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz" - integrity sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew== +flat-cache@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-4.0.1.tgz#0ece39fcb14ee012f4b0410bd33dd9c1f011127c" + integrity sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw== dependencies: - flatted "^3.2.7" - keyv "^4.5.3" - rimraf "^3.0.2" + flatted "^3.2.9" + keyv "^4.5.4" -flatted@^3.2.7: - version "3.2.9" - resolved "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz" - integrity sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ== +flatted@^3.2.9: + version "3.3.1" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a" + integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw== for-each@^0.3.3: version "0.3.3" @@ -897,7 +1005,7 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob@^7.1.3, glob@^7.1.6: +glob@^7.1.6: version "7.2.3" resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -909,12 +1017,15 @@ glob@^7.1.3, glob@^7.1.6: once "^1.3.0" path-is-absolute "^1.0.0" -globals@^13.19.0: - version "13.22.0" - resolved "https://registry.npmjs.org/globals/-/globals-13.22.0.tgz" - integrity sha512-H1Ddc/PbZHTDVJSnj8kWptIRSD6AM3pK+mKytuIVF4uoBV7rshFlhhvA58ceJ5wp3Er58w6zj7bykMpYXt3ETw== - dependencies: - type-fest "^0.20.2" +globals@^14.0.0: + version "14.0.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-14.0.0.tgz#898d7413c29babcf6bafe56fcadded858ada724e" + integrity sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ== + +globals@^15.9.0: + version "15.9.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-15.9.0.tgz#e9de01771091ffbc37db5714dab484f9f69ff399" + integrity sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA== globalthis@^1.0.3: version "1.0.3" @@ -993,6 +1104,11 @@ ignore@^5.2.0, ignore@^5.2.4: resolved "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz" integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== +ignore@^5.3.1: + version "5.3.2" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" + integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== + import-fresh@^3.2.1: version "3.3.0" resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" @@ -1204,10 +1320,10 @@ jsonc-parser@^3.2.0: resolved "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz" integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== -keyv@^4.5.3: - version "4.5.3" - resolved "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz" - integrity sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug== +keyv@^4.5.4: + version "4.5.4" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" + integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== dependencies: json-buffer "3.0.1" @@ -1266,24 +1382,24 @@ micromatch@^4.0.4: braces "^3.0.2" picomatch "^2.3.1" -minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -minimatch@^9.0.3: +minimatch@9.0.3, minimatch@^9.0.3: version "9.0.3" resolved "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz" integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== dependencies: brace-expansion "^2.0.1" -minimatch@9.0.3: - version "9.0.3" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz" - integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== +minimatch@^3.1.1, minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimatch@^9.0.4: + version "9.0.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" + integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== dependencies: brace-expansion "^2.0.1" @@ -1299,16 +1415,16 @@ mkdirp@^0.5.1: dependencies: minimist "^1.2.6" -ms@^2.1.1: - version "2.1.3" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - ms@2.1.2: version "2.1.2" resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +ms@^2.1.1: + version "2.1.3" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" @@ -1480,13 +1596,6 @@ reusify@^1.0.4: resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rimraf@^3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - run-parallel@^1.1.9: version "1.2.0" resolved "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" @@ -1525,6 +1634,11 @@ semver@^7.5.4: dependencies: lru-cache "^6.0.0" +semver@^7.6.0: + version "7.6.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== + set-function-name@^2.0.0: version "2.0.1" resolved "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz" @@ -1686,6 +1800,11 @@ ts-api-utils@^1.0.1: resolved "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz" integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg== +ts-api-utils@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.3.0.tgz#4b490e27129f1e8e686b45cc4ab63714dc60eea1" + integrity sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ== + ts-node@^10.9.1: version "10.9.1" resolved "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz" @@ -1746,11 +1865,6 @@ type-check@^0.4.0, type-check@~0.4.0: dependencies: prelude-ls "^1.2.1" -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - typed-array-buffer@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz" @@ -1800,12 +1914,21 @@ typedoc@^0.25.6: minimatch "^9.0.3" shiki "^0.14.7" +typescript-eslint@^8.3.0: + version "8.3.0" + resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-8.3.0.tgz#f4d9c5ba71f6bead03ec41ecb2bece1de511e49f" + integrity sha512-EvWjwWLwwKDIJuBjk2I6UkV8KEQcwZ0VM10nR1rIunRDIP67QJTZAHBXTX0HW/oI1H10YESF8yWie8fRQxjvFA== + dependencies: + "@typescript-eslint/eslint-plugin" "8.3.0" + "@typescript-eslint/parser" "8.3.0" + "@typescript-eslint/utils" "8.3.0" + typescript@^3.8.3: version "3.9.10" resolved "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz" integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== -typescript@^5.2.2, typescript@>=2.7, typescript@>=4.2.0, "typescript@4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x": +typescript@^5.2.2: version "5.2.2" resolved "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz" integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== @@ -1881,16 +2004,16 @@ yallist@^4.0.0: resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz" - integrity sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ== - yn@3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz" integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== +yn@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz" + integrity sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ== + yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz"