/* Metro module 1652; source: unknown; dependencies: [57, 1621] */ import Module00057 from './module-00057.js'; /* Metro dependency 57 */ function _fun18085(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:6, offset: 0x00e7f4c4, size: 695 bytes, params: 8, frame: 25 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {code: "function isAffineMatrixFlat_Pnpm_matrixUtilsTsx1(x){return Array.isArray(x)&&x.length===16&&x.every(function(element){return typeof element==='number'&&!isNaN(element);});}"}; const value = _fun18086(); object = {code: "function isAffineMatrix_Pnpm_matrixUtilsTsx2(x){return Array.isArray(x)&&x.length===4&&x.every(function(row){return Array.isArray(row)&&row.length===4&&row.every(function(element){return typeof element==='number'&&!isNaN(element);});});}"}; const value2 = _fun18089(); object = {code: 'function flatten_Pnpm_matrixUtilsTsx3(matrix){return matrix.flat();}'}; const value3 = _fun18093(); object = {code: 'function unflatten_Pnpm_matrixUtilsTsx4(m){return[[m[0],m[1],m[2],m[3]],[m[4],m[5],m[6],m[7]],[m[8],m[9],m[10],m[11]],[m[12],m[13],m[14],m[15]]];}'}; const value4 = _fun18095(); object = {code: 'function maybeFlattenMatrix_Pnpm_matrixUtilsTsx5(matrix){const{isAffineMatrix,flatten}=this.__closure;return isAffineMatrix(matrix)?flatten(matrix):matrix;}'}; const env0_12 = _fun18097(); object = {code: 'function multiplyMatrices_Pnpm_matrixUtilsTsx6(a,b){return[[a[0][0]*b[0][0]+a[0][1]*b[1][0]+a[0][2]*b[2][0]+a[0][3]*b[3][0],a[0][0]*b[0][1]+a[0][1]*b[1][1]+a[0][2]*b[2][1]+a[0][3]*b[3][1],a[0][0]*b[0][2]+a[0][1]*b[1][2]+a[0][2]*b[2][2]+a[0][3]*b[3][2],a[0][0]*b[0][3]+a[0][1]*b[1][3]+a[0][2]*b[2][3]+a[0][3]*b[3][3]],[a[1][0]*b[0][0]+a[1][1]*b[1][0]+a[1][2]*b[2][0]+a[1][3]*b[3][0],a[1][0]*b[0][1]+a[1][1]*b[1][1]+a[1][2]*b[2][1]+a[1][3]*b[3][1],a[1][0]*b[0][2]+a[1][1]*b[1][2]+a[1][2]*b[2][2]+a[1][3]*b[3][2],a[1][0]*b[0][3]+a[1][1]*b[1][3]+a[1][2]*b[2][3]+a[1][3]*b[3][3]],[a[2][0]*b[0][0]+a[2][1]*b[1][0]+a[2][2]*b[2][0]+a[2][3]*b[3][0],a[2][0]*b[0][1]+a[2][1]*b[1][1]+a[2][2]*b[2][1]+a[2][3]*b[3][1],a[2][0]*b[0][2]+a[2][1]*b[1][2]+a[2][2]*b[2][2]+a[2][3]*b[3][2],a[2][0]*b[0][3]+a[2][1]*b[1][3]+a[2][2]*b[2][3]+a[2][3]*b[3][3]],[a[3][0]*b[0][0]+a[3][1]*b[1][0]+a[3][2]*b[2][0]+a[3][3]*b[3][0],a[3][0]*b[0][1]+a[3][1]*b[1][1]+a[3][2]*b[2][1]+a[3][3]*b[3][1],a[3][0]*b[0][2]+a[3][1]*b[1][2]+a[3][2]*b[2][2]+a[3][3]*b[3][2],a[3][0]*b[0][3]+a[3][1]*b[1][3]+a[3][2]*b[2][3]+a[3][3]*b[3][3]]];}'}; const value5 = _fun18099(); object = {code: 'function subtractMatrices_Pnpm_matrixUtilsTsx7(maybeFlatA,maybeFlatB){const{isAffineMatrixFlat,maybeFlattenMatrix,unflatten}=this.__closure;const isFlatOnStart=isAffineMatrixFlat(maybeFlatA);const a=maybeFlattenMatrix(maybeFlatA);const b=maybeFlattenMatrix(maybeFlatB);const c=a.map(function(_,i){return a[i]-b[i];});return isFlatOnStart?c:unflatten(c);}'}; const value6 = _fun18101(); object = {code: 'function addMatrices_Pnpm_matrixUtilsTsx8(maybeFlatA,maybeFlatB){const{isAffineMatrixFlat,maybeFlattenMatrix,unflatten}=this.__closure;const isFlatOnStart=isAffineMatrixFlat(maybeFlatA);const a=maybeFlattenMatrix(maybeFlatA);const b=maybeFlattenMatrix(maybeFlatB);const c=a.map(function(_,i){return a[i]+b[i];});return isFlatOnStart?c:unflatten(c);}'}; const value7 = _fun18104(); object = {code: 'function scaleMatrix_Pnpm_matrixUtilsTsx9(maybeFlatA,scalar){const{isAffineMatrixFlat,maybeFlattenMatrix,unflatten}=this.__closure;const isFlatOnStart=isAffineMatrixFlat(maybeFlatA);const a=maybeFlattenMatrix(maybeFlatA);const b=a.map(function(x){return x*scalar;});return isFlatOnStart?b:unflatten(b);}'}; const value8 = _fun18107(); object = {code: "function getRotationMatrix_Pnpm_matrixUtilsTsx10(angle,axis='z'){const cos=Math.cos(angle);const sin=Math.sin(angle);switch(axis){case'z':return[[cos,sin,0,0],[-sin,cos,0,0],[0,0,1,0],[0,0,0,1]];case'y':return[[cos,0,-sin,0],[0,1,0,0],[sin,0,cos,0],[0,0,0,1]];case'x':return[[1,0,0,0],[0,cos,sin,0],[0,-sin,cos,0],[0,0,0,1]];}}"}; const value9 = _fun18110(); object = {code: 'function norm3d_Pnpm_matrixUtilsTsx11(x,y,z){return Math.sqrt(x*x+y*y+z*z);}'}; const env0_19 = _fun18112(); object = {code: 'function transposeMatrix_Pnpm_matrixUtilsTsx12(matrix){const{flatten}=this.__closure;const m=flatten(matrix);return[[m[0],m[4],m[8],m[12]],[m[1],m[5],m[9],m[13]],[m[2],m[6],m[10],m[14]],[m[3],m[7],m[11],m[15]]];}'}; const env0_21 = _fun18114(); object = {code: 'function assertVectorsHaveEqualLengths_Pnpm_matrixUtilsTsx13(a,b){const{__DEV__}=this.__closure;if(__DEV__&&a.length!==b.length){throw new ReanimatedError("Cannot calculate inner product of two vectors of different lengths. Length of "+a.toString()+" is "+a.length+" and length of "+b.toString()+" is "+b.length+".");}}'}; const env0_23 = _fun18116(); object = {code: 'function innerProduct_Pnpm_matrixUtilsTsx14(a,b){const{assertVectorsHaveEqualLengths}=this.__closure;assertVectorsHaveEqualLengths(a,b);return a.reduce(function(acc,_,i){return acc+a[i]*b[i];},0);}'}; const env0_25 = _fun18118(); object = {code: 'function projection_Pnpm_matrixUtilsTsx15(u,a){const{assertVectorsHaveEqualLengths,innerProduct}=this.__closure;assertVectorsHaveEqualLengths(u,a);const s=innerProduct(u,a)/innerProduct(u,u);return u.map(function(e){return e*s;});}'}; const env0_27 = _fun18121(); object = {code: 'function subtractVectors_Pnpm_matrixUtilsTsx16(a,b){const{assertVectorsHaveEqualLengths}=this.__closure;assertVectorsHaveEqualLengths(a,b);return a.map(function(_,i){return a[i]-b[i];});}'}; const env0_29 = _fun18124(); object = {code: 'function scaleVector_Pnpm_matrixUtilsTsx17(u,a){return u.map(function(e){return e*a;});}'}; const env0_31 = _fun18127(); object = {code: 'function gramSchmidtAlgorithm_Pnpm_matrixUtilsTsx18(matrix){const{subtractVectors,projection,scaleVector,innerProduct,transposeMatrix}=this.__closure;const[a0,a1,a2,a3]=matrix;const u0=a0;const u1=subtractVectors(a1,projection(u0,a1));const u2=subtractVectors(subtractVectors(a2,projection(u0,a2)),projection(u1,a2));const u3=subtractVectors(subtractVectors(subtractVectors(a3,projection(u0,a3)),projection(u1,a3)),projection(u2,a3));const[e0,e1,e2,e3]=[u0,u1,u2,u3].map(function(u){return scaleVector(u,1/Math.sqrt(innerProduct(u,u)));});const rotationMatrix=[[e0[0],e1[0],e2[0],e3[0]],[e0[1],e1[1],e2[1],e3[1]],[e0[2],e1[2],e2[2],e3[2]],[e0[3],e1[3],e2[3],e3[3]]];const skewMatrix=[[innerProduct(e0,a0),innerProduct(e0,a1),innerProduct(e0,a2),innerProduct(e0,a3)],[0,innerProduct(e1,a1),innerProduct(e1,a2),innerProduct(e1,a3)],[0,0,innerProduct(e2,a2),innerProduct(e2,a3)],[0,0,0,innerProduct(e3,a3)]];return{rotationMatrix:transposeMatrix(rotationMatrix),skewMatrix:transposeMatrix(skewMatrix)};}'}; const env0_33 = _fun18130(); object = {code: "function decomposeMatrix_Pnpm_matrixUtilsTsx19(unknownTypeMatrix){const{maybeFlattenMatrix,norm3d,gramSchmidtAlgorithm}=this.__closure;const matrix=maybeFlattenMatrix(unknownTypeMatrix);if(matrix[15]===0){throw new ReanimatedError('Invalid transform matrix.');}matrix.forEach(function(_,i){return matrix[i]/=matrix[15];});const translationMatrix=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[matrix[12],matrix[13],matrix[14],1]];const sx=matrix[15]*norm3d(matrix[0],matrix[4],matrix[8]);const sy=matrix[15]*norm3d(matrix[1],matrix[5],matrix[9]);const sz=matrix[15]*norm3d(matrix[2],matrix[6],matrix[10]);const scaleMatrix=[[sx,0,0,0],[0,sy,0,0],[0,0,sz,0],[0,0,0,1]];const rotationAndSkewMatrix=[[matrix[0]/sx,matrix[1]/sx,matrix[2]/sx,0],[matrix[4]/sy,matrix[5]/sy,matrix[6]/sy,0],[matrix[8]/sz,matrix[9]/sz,matrix[10]/sz,0],[0,0,0,1]];const{rotationMatrix:rotationMatrix,skewMatrix:skewMatrix}=gramSchmidtAlgorithm(rotationAndSkewMatrix);return{translationMatrix:translationMatrix,scaleMatrix:scaleMatrix,rotationMatrix:rotationMatrix,skewMatrix:skewMatrix};}"}; const value10 = _fun18133(); object = {code: 'function decomposeMatrixIntoMatricesAndAngles_Pnpm_matrixUtilsTsx20(matrix){const{decomposeMatrix}=this.__closure;const{scaleMatrix:scaleMatrix,rotationMatrix:rotationMatrix,translationMatrix:translationMatrix,skewMatrix:skewMatrix}=decomposeMatrix(matrix);const sinRy=-rotationMatrix[0][2];const ry=Math.asin(sinRy);let rx;let rz;if(sinRy===1||sinRy===-1){rz=0;rx=Math.atan2(sinRy*rotationMatrix[0][1],sinRy*rotationMatrix[0][2]);}else{rz=Math.atan2(rotationMatrix[0][1],rotationMatrix[0][0]);rx=Math.atan2(rotationMatrix[1][2],rotationMatrix[2][2]);}return{scaleMatrix:scaleMatrix,rotationMatrix:rotationMatrix,translationMatrix:translationMatrix,skewMatrix:skewMatrix,rx:rx||0,ry:ry||0,rz:rz||0};}'}; const value11 = _fun18136(); exports.isAffineMatrixFlat = value; exports.isAffineMatrix = value2; exports.flatten = value3; exports.unflatten = value4; exports.multiplyMatrices = value5; exports.subtractMatrices = value6; exports.addMatrices = value7; exports.scaleMatrix = value8; exports.getRotationMatrix = value9; exports.decomposeMatrix = value10; exports.decomposeMatrixIntoMatricesAndAngles = value11; function _fun18086() { // fn#18086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:298, offset: 0x00e7f77b, size: 46 bytes, params: 1, frame: 2 const closure = function(a0) { var Array = global.Array; return Array.isArray(a0) && a0.length === 16 && a0.every(_fun18088); }; closure.__closure = {}; closure.__workletHash = 7766400476414; closure.__initData = env0_3; return closure; function isAffineMatrixFlat(a0) { // fn#18087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:315, offset: 0x00e7f7a9, size: 59 bytes, params: 2, frame: 12 const Array = global.Array; return Array.isArray(a0) && a0.length === 16 && a0.every(function(a0) { return typeof a0 === 'number' && !(0, global.isNaN)(a0); }); } } function _fun18089() { // fn#18089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:770, offset: 0x00e7f809, size: 46 bytes, params: 1, frame: 2 const closure = function(a0) { var Array = global.Array; return Array.isArray(a0) && a0.length === 4 && a0.every(_fun18091); }; closure.__closure = {}; closure.__workletHash = 3452211777657; closure.__initData = env0_5; return closure; function isAffineMatrix(a0) { // fn#18090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:787, offset: 0x00e7f837, size: 59 bytes, params: 2, frame: 12 let Array = global.Array; return Array.isArray(a0) && a0.length === 4 && a0.every(function(a0) { var Array = global.Array; return Array.isArray(a0) && a0.length === 4 && a0.every(_fun18092); }); function _fun18091(a0) { // fn#18091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:862, offset: 0x00e7f872, size: 59 bytes, params: 2, frame: 12 const Array = global.Array; return Array.isArray(a0) && a0.length === 4 && a0.every(function(a0) { return typeof a0 === 'number' && !(0, global.isNaN)(a0); }); } } } function _fun18093() { // fn#18093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:1131, offset: 0x00e7f8ad, size: 46 bytes, params: 1, frame: 2 const closure = function(a0) { return a0.flat(); }; closure.__closure = {}; closure.__workletHash = 9900628528512; closure.__initData = env0_7; return closure; } function _fun18095() { // fn#18095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:1417, offset: 0x00e7f8ea, size: 46 bytes, params: 1, frame: 2 const unflatten2 = unflatten; unflatten2.__closure = {}; unflatten2.__workletHash = 17503333305803; unflatten2.__initData = env0_9; return unflatten2; } function _fun18097() { // fn#18097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:1801, offset: 0x00e7f9f0, size: 64 bytes, params: 1, frame: 4 const maybeFlattenMatrix2 = maybeFlattenMatrix; maybeFlattenMatrix2.__closure = {isAffineMatrix: env0_6, flatten: env0_8}; maybeFlattenMatrix2.__workletHash = 13544286880330; maybeFlattenMatrix2.__initData = env0_11; return maybeFlattenMatrix2; function maybeFlattenMatrix(a0) { // fn#18098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:1818, offset: 0x00e7fa30, size: 34 bytes, params: 2, frame: 13 var r0; let value = a0; if (env1_6(value)) { value = env1_8(value); r0 = value; } else { r0 = value; } return r0; } } function _fun18099() { // fn#18099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:3074, offset: 0x00e7fa52, size: 46 bytes, params: 1, frame: 2 const multiplyMatrices2 = multiplyMatrices; multiplyMatrices2.__closure = {}; multiplyMatrices2.__workletHash = 4575994159882; multiplyMatrices2.__initData = env0_13; return multiplyMatrices2; } function _fun18101() { // fn#18101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:4603, offset: 0x00e800b7, size: 73 bytes, params: 1, frame: 4 const subtractMatrices2 = subtractMatrices; subtractMatrices2.__closure = {isAffineMatrixFlat: env0_4, maybeFlattenMatrix: env0_12, unflatten: env0_10}; subtractMatrices2.__workletHash = 12538691088788; subtractMatrices2.__initData = env0_14; return subtractMatrices2; function subtractMatrices(a0, a1) { // fn#18102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:4620, offset: 0x00e80100, size: 76 bytes, params: 3, frame: 15 var environment; const value = environment.__proto__; const value2 = env1_4(a0); const binding = env1_12; const value3 = binding(a0); const env0_1 = binding(a1); const value4 = value3.map(_fun18103); return value2 ? value4 : env1_10(value4); function _fun18103(a0, a1) { // fn#18103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:4685, offset: 0x00e8014c, size: 28 bytes, params: 3, frame: 3 return env0_0[a1] - env0_1[a1]; } } } function _fun18104() { // fn#18104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:5224, offset: 0x00e80168, size: 73 bytes, params: 1, frame: 4 const addMatrices2 = addMatrices; addMatrices2.__closure = {isAffineMatrixFlat: env0_4, maybeFlattenMatrix: env0_12, unflatten: env0_10}; addMatrices2.__workletHash = 17429737879880; addMatrices2.__initData = env0_15; return addMatrices2; function addMatrices(a0, a1) { // fn#18105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:5241, offset: 0x00e801b1, size: 76 bytes, params: 3, frame: 15 var environment; const value = environment.__proto__; const value2 = env1_4(a0); const binding = env1_12; const value3 = binding(a0); const env0_1 = binding(a1); const value4 = value3.map(_fun18106); return value2 ? value4 : env1_10(value4); function _fun18106(a0, a1) { // fn#18106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:5301, offset: 0x00e801fd, size: 28 bytes, params: 3, frame: 3 return env0_0[a1] + env0_1[a1]; } } } function _fun18107() { // fn#18107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:5794, offset: 0x00e80219, size: 73 bytes, params: 1, frame: 4 const scaleMatrix2 = scaleMatrix; scaleMatrix2.__closure = {isAffineMatrixFlat: env0_4, maybeFlattenMatrix: env0_12, unflatten: env0_10}; scaleMatrix2.__workletHash = 11907224908685; scaleMatrix2.__initData = env0_16; return scaleMatrix2; function scaleMatrix(a0, a1) { // fn#18108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:5811, offset: 0x00e80262, size: 67 bytes, params: 3, frame: 14 var environment; const env0_0 = a1; const value = environment.__proto__; const value2 = env1_4(a0); const value4 = env1_12(a0).map(function(a0) { return a0 * require; }); return value2 ? value4 : env1_10(value4); } } function _fun18110() { // fn#18110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:6369, offset: 0x00e802b5, size: 46 bytes, params: 1, frame: 2 const getRotationMatrix2 = getRotationMatrix; getRotationMatrix2.__closure = {}; getRotationMatrix2.__workletHash = 14367317296086; getRotationMatrix2.__initData = env0_17; return getRotationMatrix2; } function _fun18112() { // fn#18112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:6854, offset: 0x00e80451, size: 46 bytes, params: 1, frame: 2 const closure = function(a0, a1, a2) { var Math = global.Math; var value = a0 * a0; value += a1 * a1; return Math.sqrt(value + a2 * a2); }; closure.__closure = {}; closure.__workletHash = 3613705554848; closure.__initData = env0_18; return closure; } function _fun18114() { // fn#18114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:7223, offset: 0x00e804b1, size: 55 bytes, params: 1, frame: 4 const transposeMatrix2 = transposeMatrix; transposeMatrix2.__closure = {flatten: env0_8}; transposeMatrix2.__workletHash = 17306716053169; transposeMatrix2.__initData = env0_20; return transposeMatrix2; function transposeMatrix(a0) { // fn#18115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:7240, offset: 0x00e804e8, size: 230 bytes, params: 2, frame: 12 let value = environment.__proto__; value = env1_8(a0); return [[value[0], value[4], value[8], value[12]], [value[1], value[5], value[9], value[13]], [value[2], value[6], value[10], value[14]], [value[3], value[7], value[11], value[15]]]; } } function _fun18116() { // fn#18116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:7796, offset: 0x00e805ce, size: 53 bytes, params: 1, frame: 3 const closure = function(a0, a1) { }; closure.__closure = {__DEV__: false}; closure.__workletHash = 14349158134583; closure.__initData = env0_22; return closure; } function _fun18118() { // fn#18118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:8152, offset: 0x00e80603, size: 55 bytes, params: 1, frame: 4 const innerProduct2 = innerProduct; innerProduct2.__closure = {assertVectorsHaveEqualLengths: env0_23}; innerProduct2.__workletHash = 6022428100775; innerProduct2.__initData = env0_24; return innerProduct2; function innerProduct(a0, a1) { // fn#18119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:8169, offset: 0x00e8063a, size: 52 bytes, params: 3, frame: 14 const env0_0 = a0; const env0_1 = a1; env1_23(a0, a1); return a0.reduce(_fun18120, 0); function _fun18120(a0, a1, a2) { // fn#18120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:8220, offset: 0x00e8066e, size: 35 bytes, params: 4, frame: 3 return a0 + env0_0[a2] * require[a2]; } } } function _fun18121() { // fn#18121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:8609, offset: 0x00e80691, size: 64 bytes, params: 1, frame: 4 const projection2 = projection; projection2.__closure = {assertVectorsHaveEqualLengths: env0_23, innerProduct: env0_25}; projection2.__workletHash = 12191208971941; projection2.__initData = env0_26; return projection2; function projection(a0, a1) { // fn#18122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:8626, offset: 0x00e806d1, size: 64 bytes, params: 3, frame: 15 var environment; const value = environment.__proto__; env1_23(a0, a1); const binding = env1_25; const env0_0 = binding(a0, a1) / binding(a0, a0); return a0.map(_fun18123); function _fun18123(a0) { // fn#18123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:8692, offset: 0x00e802a5, size: 16 bytes, params: 2, frame: 2 return a0 * env0_0; } } } function _fun18124() { // fn#18124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:9038, offset: 0x00e80711, size: 55 bytes, params: 1, frame: 4 const subtractVectors2 = subtractVectors; subtractVectors2.__closure = {assertVectorsHaveEqualLengths: env0_23}; subtractVectors2.__workletHash = 9047017498478; subtractVectors2.__initData = env0_28; return subtractVectors2; function subtractVectors(a0, a1) { // fn#18125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:9055, offset: 0x00e80748, size: 48 bytes, params: 3, frame: 14 const env0_0 = a0; const env0_1 = a1; env1_23(a0, a1); return a0.map(_fun18126); function _fun18126(a0, a1) { // fn#18126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:9106, offset: 0x00e8014c, size: 28 bytes, params: 3, frame: 3 return env0_0[a1] - require[a1]; } } } function _fun18127() { // fn#18127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:9346, offset: 0x00e80778, size: 46 bytes, params: 1, frame: 2 const closure = function(a0, a1) { var env0_0 = a1; return a0.map(_fun18129); }; closure.__closure = {}; closure.__workletHash = 11236256734309; closure.__initData = env0_30; return closure; function scaleVector(a0, a1) { // fn#18128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:9363, offset: 0x00e807a6, size: 29 bytes, params: 3, frame: 11 const env0_0 = a1; return a0.map(function(a0) { return a0 * require; }); function _fun18129(a0) { // fn#18129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:9403, offset: 0x00e802a5, size: 16 bytes, params: 2, frame: 2 return a0 * require; } } } function _fun18130() { // fn#18130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:10516, offset: 0x00e807c3, size: 99 bytes, params: 1, frame: 4 const gramSchmidtAlgorithm2 = gramSchmidtAlgorithm; gramSchmidtAlgorithm2.__closure = {subtractVectors: env0_29, projection: env0_27, scaleVector: env0_31, innerProduct: env0_25, transposeMatrix: env0_21}; gramSchmidtAlgorithm2.__workletHash = 1839555089531; gramSchmidtAlgorithm2.__initData = env0_32; return gramSchmidtAlgorithm2; function gramSchmidtAlgorithm(a0) { // fn#18131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:10533, offset: 0x00e80826, size: 537 bytes, params: 2, frame: 27 let binding = env1_2; const value2 = binding(a0, 4); const property = value2[0]; const property2 = value2[1]; const property3 = value2[2]; const property4 = value2[3]; const binding2 = env1_29; const binding3 = env1_27; const value3 = binding2(property2, binding3(property, property2)); const value5 = binding2(binding2(property3, binding3(property, property3)), binding3(value3, property3)); let object = [property, value3, value5]; object[3] = binding2(binding2(binding2(property4, binding3(property, property4)), binding3(value3, property4)), binding3(value5, property4)); const value8 = binding(object.map(_fun18132), 4); const property5 = value8[0]; const property6 = value8[1]; const property7 = value8[2]; const property8 = value8[3]; const items3 = [[property5[0], property6[0], property7[0], property8[0]]]; items3[1] = [property5[1], property6[1], property7[1], property8[1]]; items3[2] = [property5[2], property6[2], property7[2], property8[2]]; items3[3] = [property5[3], property6[3], property7[3], property8[3]]; binding = env1_25; const items2 = [[binding(property5, property), binding(property5, property2), binding(property5, property3), binding(property5, property4)]]; const value10 = binding(property6, property2); object = [0]; object[1] = value10; object[2] = binding(property6, property3); object[3] = binding(property6, property4); items2[1] = object; const value11 = binding(property7, property3); object = [0, 0]; object[2] = value11; object[3] = binding(property7, property4); items2[2] = object; items2[3] = [0, 0, 0, binding(property8, property4)]; object = {}; binding = env1_21; object.rotationMatrix = binding(items3); object.skewMatrix = binding(items2); return object; function _fun18132(a0) { // fn#18132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:10696, offset: 0x00e80a3f, size: 56 bytes, params: 2, frame: 15 const value = environment.__proto__.__proto__; const binding = env2_31; const Math = global.Math; return binding(a0, 1 / Math.sqrt(env2_25(a0, a0))); } } } function _fun18133() { // fn#18133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:12221, offset: 0x00e80a77, size: 77 bytes, params: 1, frame: 4 const decomposeMatrix2 = decomposeMatrix; decomposeMatrix2.__closure = {maybeFlattenMatrix: env0_12, norm3d: env0_19, gramSchmidtAlgorithm: env0_33}; decomposeMatrix2.__workletHash = 244684068165; decomposeMatrix2.__initData = env0_34; return decomposeMatrix2; function decomposeMatrix(a0) { // fn#18134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:12238, offset: 0x00e80ac4, size: 603 bytes, params: 2, frame: 30 var environment; let value = environment.__proto__; const value2 = env1_12(a0); if (value2[15] === 0) { throw new (require(1621) /* metro dependency 1621 */).ReanimatedError('Invalid transform matrix.'); } value2.forEach(_fun18135); const items2 = [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0]]; let property = value2[12]; items2[3] = [property, value2[13], value2[14], 1]; property = value2[15]; const binding = env1_19; const value3 = property * binding(value2[0], value2[4], value2[8]); const value4 = value2[15] * binding(value2[1], value2[5], value2[9]); const value5 = value2[15] * binding(value2[2], value2[6], value2[10]); const items4 = [[value3, 0, 0, 0]]; items4[1] = [0, value4, 0, 0]; items4[2] = [0, 0, value5, 0]; items4[3] = [0, 0, 0, 1]; value = env1_33([[value2[0] / value3, value2[1] / value3, value2[2] / value3, 0], [value2[4] / value4, value2[5] / value4, value2[6] / value4, 0], [value2[8] / value5, value2[9] / value5, value2[10] / value5, 0], [0, 0, 0, 1]]); return {translationMatrix: items2, scaleMatrix: items4, rotationMatrix: value.rotationMatrix, skewMatrix: value.skewMatrix}; function _fun18135(a0, a1) { // fn#18135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:12365, offset: 0x00e80d1f, size: 31 bytes, params: 3, frame: 4 const binding = env0_0; const value = binding[a1] / binding[15]; binding[a1] = value; return value; } } } function _fun18136() { // fn#18136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:13617, offset: 0x00e80d3e, size: 55 bytes, params: 1, frame: 4 const decomposeMatrixIntoMatricesAndAngles2 = decomposeMatrixIntoMatricesAndAngles; decomposeMatrixIntoMatricesAndAngles2.__closure = {decomposeMatrix: env0_35}; decomposeMatrixIntoMatricesAndAngles2.__workletHash = 633682731757; decomposeMatrixIntoMatricesAndAngles2.__initData = env0_36; return decomposeMatrixIntoMatricesAndAngles2; function decomposeMatrixIntoMatricesAndAngles(a0) { // fn#18137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:13634, offset: 0x00e80d75, size: 265 bytes, params: 2, frame: 24 var r1; var r4; var atan2; var property; var value4; var value5; var value7; let value = environment.__proto__; value = env1_35(a0); const scaleMatrix = value.scaleMatrix; const rotationMatrix = value.rotationMatrix; const translationMatrix = value.translationMatrix; const skewMatrix = value.skewMatrix; value = 0; const value2 = -rotationMatrix[value][2]; let Math = global.Math; const value3 = Math.asin(value2); if (value2 === 1) { Math = global.Math; value7 = Math.atan2(value2 * rotationMatrix[value][1], value2 * rotationMatrix[value][2]); r1 = value; r4 = value7; } else if (value2 === -1) { Math = global.Math; value7 = Math.atan2(value2 * rotationMatrix[value][1], value2 * rotationMatrix[value][2]); r1 = value; r4 = value7; } else { Math = global.Math; atan2 = Math.atan2; property = rotationMatrix[value][1]; value4 = Reflect.apply(atan2, Math, [property, rotationMatrix[value][value]]); Math = global.Math; atan2 = Math.atan2; property = rotationMatrix[1][2]; value5 = Reflect.apply(atan2, Math, [property, rotationMatrix[2][2]]); r1 = value4; r4 = value5; } r4 = !r4 ? value : r4; r1 = !r1 ? value : r1; return {scaleMatrix: scaleMatrix, rotationMatrix: rotationMatrix, translationMatrix: translationMatrix, skewMatrix: skewMatrix, rx: r4, ry: value3 || value, rz: r1}; } } } function _fun18088(a0) { // fn#18088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:395, offset: 0x00e7f7e4, size: 37 bytes, params: 2, frame: 12 return typeof a0 === 'number' && !global.isNaN(a0); } function _fun18092(a0) { // fn#18092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:922, offset: 0x00e7f7e4, size: 37 bytes, params: 2, frame: 12 return typeof a0 === 'number' && !global.isNaN(a0); } function unflatten(a0) { // fn#18096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:1434, offset: 0x00e7f918, size: 216 bytes, params: 2, frame: 4 return [[a0[0], a0[1], a0[2], a0[3]], [a0[4], a0[5], a0[6], a0[7]], [a0[8], a0[9], a0[10], a0[11]], [a0[12], a0[13], a0[14], a0[15]]]; } function multiplyMatrices(a0, a1) { // fn#18100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:3091, offset: 0x00e7fa80, size: 1591 bytes, params: 3, frame: 11 let value = a0[0][0] * a1[0][0]; value += a0[0][1] * a1[1][0]; value += a0[0][2] * a1[2][0]; value += a0[0][3] * a1[3][0]; let items3 = [value]; value = a0[0][0] * a1[0][1]; value += a0[0][1] * a1[1][1]; value += a0[0][2] * a1[2][1]; items3[1] = value + a0[0][3] * a1[3][1]; value = a0[0][0] * a1[0][2]; value += a0[0][1] * a1[1][2]; value += a0[0][2] * a1[2][2]; items3[2] = value + a0[0][3] * a1[3][2]; value = a0[0][0] * a1[0][3]; value += a0[0][1] * a1[1][3]; value += a0[0][2] * a1[2][3]; items3[3] = value + a0[0][3] * a1[3][3]; const items2 = [items3]; value = a0[1][0] * a1[0][0]; value += a0[1][1] * a1[1][0]; value += a0[1][2] * a1[2][0]; value += a0[1][3] * a1[3][0]; items3 = [value]; value = a0[1][0] * a1[0][1]; value += a0[1][1] * a1[1][1]; value += a0[1][2] * a1[2][1]; items3[1] = value + a0[1][3] * a1[3][1]; value = a0[1][0] * a1[0][2]; value += a0[1][1] * a1[1][2]; value += a0[1][2] * a1[2][2]; items3[2] = value + a0[1][3] * a1[3][2]; value = a0[1][0] * a1[0][3]; value += a0[1][1] * a1[1][3]; value += a0[1][2] * a1[2][3]; items3[3] = value + a0[1][3] * a1[3][3]; items2[1] = items3; value = a0[2][0] * a1[0][0]; value += a0[2][1] * a1[1][0]; value += a0[2][2] * a1[2][0]; value += a0[2][3] * a1[3][0]; items3 = [value]; value = a0[2][0] * a1[0][1]; value += a0[2][1] * a1[1][1]; value += a0[2][2] * a1[2][1]; items3[1] = value + a0[2][3] * a1[3][1]; value = a0[2][0] * a1[0][2]; value += a0[2][1] * a1[1][2]; value += a0[2][2] * a1[2][2]; items3[2] = value + a0[2][3] * a1[3][2]; value = a0[2][0] * a1[0][3]; value += a0[2][1] * a1[1][3]; value += a0[2][2] * a1[2][3]; items3[3] = value + a0[2][3] * a1[3][3]; items2[2] = items3; value = a0[3][0] * a1[0][0]; value += a0[3][1] * a1[1][0]; value += a0[3][2] * a1[2][0]; value += a0[3][3] * a1[3][0]; items3 = [value]; value = a0[3][0] * a1[0][1]; value += a0[3][1] * a1[1][1]; value += a0[3][2] * a1[2][1]; items3[1] = value + a0[3][3] * a1[3][1]; value = a0[3][0] * a1[0][2]; value += a0[3][1] * a1[1][2]; value += a0[3][2] * a1[2][2]; items3[2] = value + a0[3][3] * a1[3][2]; value = a0[3][0] * a1[0][3]; value += a0[3][1] * a1[1][3]; value += a0[3][2] * a1[2][3]; items3[3] = value + a0[3][3] * a1[3][3]; items2[3] = items3; return items2; } function getRotationMatrix(a0) { // fn#18111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1779:6386, offset: 0x00e802e3, size: 366 bytes, params: 2, frame: 15 const value = 'z'; const r4 = arguments.length > 1 ? arguments[1] === undefined ? value : arguments[1] : value; let Math = global.Math; const value3 = Math.cos(a0); Math = global.Math; const value4 = Math.sin(a0); if (value === r4) { return [[value3, value4, 0, 0], [-value4, value3, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]; } if (r4 === 'y') { return [[value3, 0, -value4, 0], [0, 1, 0, 0], [value4, 0, value3, 0], [0, 0, 0, 1]]; } if (r4 === 'x') { return [[1, 0, 0, 0], [0, value3, value4, 0], [0, -value4, value3, 0], [0, 0, 0, 1]]; } } global.__d(_fun18085, 1652, [57, 1621]) /* metro module 1652, dependencies: [57, 1621] */;