@vived/component-abb-6700 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/.todo.md +13 -0
  2. package/README.md +122 -0
  3. package/dist/.gitkeep +0 -0
  4. package/dist/Adapters/aBB6700PMAdapter.d.ts +10 -0
  5. package/dist/Adapters/aBB6700PMAdapter.d.ts.map +1 -0
  6. package/dist/Controllers/createABB6700.d.ts +12 -0
  7. package/dist/Controllers/createABB6700.d.ts.map +1 -0
  8. package/dist/Controllers/getPose.d.ts +11 -0
  9. package/dist/Controllers/getPose.d.ts.map +1 -0
  10. package/dist/Controllers/setJointAngle.d.ts +12 -0
  11. package/dist/Controllers/setJointAngle.d.ts.map +1 -0
  12. package/dist/Controllers/setPose.d.ts +11 -0
  13. package/dist/Controllers/setPose.d.ts.map +1 -0
  14. package/dist/Entities/ABB6700Entity.d.ts +35 -0
  15. package/dist/Entities/ABB6700Entity.d.ts.map +1 -0
  16. package/dist/Entities/ABB6700Repo.d.ts +32 -0
  17. package/dist/Entities/ABB6700Repo.d.ts.map +1 -0
  18. package/dist/Factory/ABB6700FeatureFactory.d.ts +26 -0
  19. package/dist/Factory/ABB6700FeatureFactory.d.ts.map +1 -0
  20. package/dist/Mocks/MockABB6700PM.d.ts +11 -0
  21. package/dist/Mocks/MockABB6700PM.d.ts.map +1 -0
  22. package/dist/Mocks/MockSetJointAngleUC.d.ts +7 -0
  23. package/dist/Mocks/MockSetJointAngleUC.d.ts.map +1 -0
  24. package/dist/Mocks/MockSetPoseUC.d.ts +7 -0
  25. package/dist/Mocks/MockSetPoseUC.d.ts.map +1 -0
  26. package/dist/PMs/ABB6700PM.d.ts +32 -0
  27. package/dist/PMs/ABB6700PM.d.ts.map +1 -0
  28. package/dist/UCs/CalcStabilizerUC.d.ts +7 -0
  29. package/dist/UCs/CalcStabilizerUC.d.ts.map +1 -0
  30. package/dist/UCs/SetJointAngleUC.d.ts +15 -0
  31. package/dist/UCs/SetJointAngleUC.d.ts.map +1 -0
  32. package/dist/UCs/SetPoseUC.d.ts +22 -0
  33. package/dist/UCs/SetPoseUC.d.ts.map +1 -0
  34. package/dist/Views/ABB6700BabylonView.d.ts +27 -0
  35. package/dist/Views/ABB6700BabylonView.d.ts.map +1 -0
  36. package/dist/abb_6700.glb +0 -0
  37. package/dist/abstractAudioBus-CyBWsmuN.js +14 -0
  38. package/dist/animationGroup-BhNThqQe.js +1454 -0
  39. package/dist/basisTextureLoader-BT391BsV.js +310 -0
  40. package/dist/brdfTextureTools-DUyKBAXf.js +79 -0
  41. package/dist/bumpFragment-Dd-ojPA1.js +134 -0
  42. package/dist/bumpFragment-KE1_PuMl.js +287 -0
  43. package/dist/bumpVertex-BcdvVFVx.js +8 -0
  44. package/dist/bumpVertexDeclaration-B5Uvs-RS.js +8 -0
  45. package/dist/bumpVertexDeclaration-ixSg-yGI.js +8 -0
  46. package/dist/clipPlaneFragment-DJwQynjA.js +136 -0
  47. package/dist/clipPlaneVertex-D4Wk50XG.js +376 -0
  48. package/dist/clipPlaneVertex-eQ147Tn2.js +350 -0
  49. package/dist/component.config.d.ts +17 -0
  50. package/dist/component.config.d.ts.map +1 -0
  51. package/dist/ddsTextureLoader-DeoF3iGO.js +331 -0
  52. package/dist/default.fragment-DKnTR9nY.js +548 -0
  53. package/dist/default.fragment-rIGWrUS5.js +486 -0
  54. package/dist/default.vertex-Bt5y1VyA.js +212 -0
  55. package/dist/default.vertex-Dext1liJ.js +224 -0
  56. package/dist/defaultUboDeclaration-BwslQZX8.js +11 -0
  57. package/dist/defaultUboDeclaration-DSXACgip.js +9 -0
  58. package/dist/easing-BAt0SO-B.js +163 -0
  59. package/dist/envTextureLoader-CBiW_Q-U.js +40 -0
  60. package/dist/exrTextureLoader-5SC6PKIA.js +740 -0
  61. package/dist/flowGraphApplyForceBlock-6e8-wcaw.js +32 -0
  62. package/dist/flowGraphApplyImpulseBlock-B27EZQow.js +32 -0
  63. package/dist/flowGraphArrayIndexBlock-DIUn5e4i.js +31 -0
  64. package/dist/flowGraphBezierCurveEasingBlock-BJmiHk40.js +25 -0
  65. package/dist/flowGraphBinaryOperationBlock-Bj7TANCc.js +25 -0
  66. package/dist/flowGraphBranchBlock-7CRvIKWc.js +19 -0
  67. package/dist/flowGraphCachedOperationBlock-CP1ZiuIB.js +26 -0
  68. package/dist/flowGraphCancelDelayBlock-DqtgzBGm.js +20 -0
  69. package/dist/flowGraphCodeExecutionBlock-CaYXCGqo.js +23 -0
  70. package/dist/flowGraphConditionalDataBlock-DJ7evX8_.js +28 -0
  71. package/dist/flowGraphConsoleLogBlock-cMkpqLzO.js +68 -0
  72. package/dist/flowGraphConstantBlock-JWybwT0A.js +28 -0
  73. package/dist/flowGraphContextBlock-CFDXHcbn.js +19 -0
  74. package/dist/flowGraphCounterBlock-B0uPkgw9.js +24 -0
  75. package/dist/flowGraphDataSwitchBlock-B0GSifvJ.js +27 -0
  76. package/dist/flowGraphDebounceBlock-CSw8zKym.js +24 -0
  77. package/dist/flowGraphDebugBlock-DiSR6Ahn.js +65 -0
  78. package/dist/flowGraphDoNBlock-C-48oQ2H.js +24 -0
  79. package/dist/flowGraphEasingBlock-DKUaE7Rp.js +50 -0
  80. package/dist/flowGraphFlipFlopBlock-DX5BGhMV.js +20 -0
  81. package/dist/flowGraphForLoopBlock-Di-Qwg23.js +27 -0
  82. package/dist/flowGraphFunctionReferenceBlock-D8X5TFsO.js +20 -0
  83. package/dist/flowGraphGLTFDataProvider-C4j7nPQv.js +16 -0
  84. package/dist/flowGraphGetAngularVelocityBlock-Cq-yTQ4D.js +31 -0
  85. package/dist/flowGraphGetAssetBlock-B36eioor.js +21 -0
  86. package/dist/flowGraphGetLinearVelocityBlock-MdrV0eUD.js +31 -0
  87. package/dist/flowGraphGetPhysicsMassPropertiesBlock-wXDZP1wM.js +30 -0
  88. package/dist/flowGraphGetPropertyBlock-eP0badwf.js +46 -0
  89. package/dist/flowGraphGetSoundVolumeBlock-D3gXGHXa.js +29 -0
  90. package/dist/flowGraphGetVariableBlock-C7-qZAec.js +31 -0
  91. package/dist/flowGraphIndexOfBlock-CC5l9n9P.js +31 -0
  92. package/dist/flowGraphInterpolationBlock-B6922jzt.js +50 -0
  93. package/dist/flowGraphIsKeyPressedBlock-X_iuiUOX.js +31 -0
  94. package/dist/flowGraphIsSoundPlayingBlock-DONQX8N8.js +29 -0
  95. package/dist/flowGraphJsonPointerParserBlock-DBH_gN8I.js +95 -0
  96. package/dist/flowGraphKeyDownEventBlock-D5T1Uyfv.js +26 -0
  97. package/dist/flowGraphKeyUpEventBlock-BPY_Kgkm.js +21 -0
  98. package/dist/flowGraphKeyboardEventBlock-C49fx3TC.js +20 -0
  99. package/dist/flowGraphMathBlocks-CkvrN3VJ.js +864 -0
  100. package/dist/flowGraphMathCombineExtractBlocks-QSjGlnoz.js +248 -0
  101. package/dist/flowGraphMatrixMathBlocks-B3D7Cz9p.js +117 -0
  102. package/dist/flowGraphMeshPickEventBlock-BBTz-taa.js +35 -0
  103. package/dist/flowGraphMultiGateBlock-BhY1y5BG.js +50 -0
  104. package/dist/flowGraphPauseAnimationBlock-CHZZXMbg.js +19 -0
  105. package/dist/flowGraphPauseSoundBlock-B7hMmJ0c.js +31 -0
  106. package/dist/flowGraphPhysicsCollisionEventBlock-CxoPpT-q.js +56 -0
  107. package/dist/flowGraphPlayAnimationBlock-DVAvIFux.js +99 -0
  108. package/dist/flowGraphPlaySoundBlock-DjHGrqbC.js +32 -0
  109. package/dist/flowGraphPointerDownEventBlock-qI-H0JST.js +31 -0
  110. package/dist/flowGraphPointerMoveEventBlock-DAi4VUyy.js +31 -0
  111. package/dist/flowGraphPointerOutEventBlock-CFtj68aC.js +21 -0
  112. package/dist/flowGraphPointerOverEventBlock-VxdHhFuu.js +23 -0
  113. package/dist/flowGraphPointerUpEventBlock-DRR1f07q.js +31 -0
  114. package/dist/flowGraphReceiveCustomEventBlock-B3bwdB66.js +52 -0
  115. package/dist/flowGraphSceneReadyEventBlock-Dy6lDT3j.js +23 -0
  116. package/dist/flowGraphSceneTickEventBlock-Bl9BF_Xw.js +32 -0
  117. package/dist/flowGraphSendCustomEventBlock-BAR4PGFq.js +35 -0
  118. package/dist/flowGraphSequenceBlock-veqU32ZZ.js +32 -0
  119. package/dist/flowGraphSetAngularVelocityBlock-Dj9b-zu6.js +31 -0
  120. package/dist/flowGraphSetDelayBlock-CMjudtvk.js +131 -0
  121. package/dist/flowGraphSetLinearVelocityBlock-DVDhhJBd.js +31 -0
  122. package/dist/flowGraphSetPhysicsMotionTypeBlock-CL3cxNCO.js +36 -0
  123. package/dist/flowGraphSetPropertyBlock-D3sWL3Ss.js +47 -0
  124. package/dist/flowGraphSetSoundVolumeBlock-CxVk45yR.js +32 -0
  125. package/dist/flowGraphSetVariableBlock-D1oJiwLj.js +47 -0
  126. package/dist/flowGraphSoundEndedEventBlock-CubEwii0.js +47 -0
  127. package/dist/flowGraphStopAnimationBlock-B9inwIQx.js +48 -0
  128. package/dist/flowGraphStopSoundBlock-BijIX2jC.js +31 -0
  129. package/dist/flowGraphSwitchBlock-BMhPb4OX.js +54 -0
  130. package/dist/flowGraphThrottleBlock-C7vrnkb1.js +37 -0
  131. package/dist/flowGraphTransformCoordinatesSystemBlock-DoISqaUG.js +29 -0
  132. package/dist/flowGraphTypeToTypeBlocks-CSML6QWx.js +57 -0
  133. package/dist/flowGraphUnaryOperationBlock-B0Shf-lJ.js +24 -0
  134. package/dist/flowGraphVectorMathBlocks-DoTRR_E0.js +178 -0
  135. package/dist/flowGraphWaitAllBlock-BvmDMc24.js +54 -0
  136. package/dist/flowGraphWhileLoopBlock-BaIq4-K2.js +27 -0
  137. package/dist/geometry.fragment-Bsis3UG2.js +275 -0
  138. package/dist/geometry.vertex-DskQ5b8j.js +222 -0
  139. package/dist/harmonicsFunctions-CtNrRfir.js +193 -0
  140. package/dist/harmonicsFunctions-PEz6APC7.js +18 -0
  141. package/dist/hdrTextureLoader-D9rYxJ9q.js +112 -0
  142. package/dist/helperFunctions-Bt7Zfkrp.js +89 -0
  143. package/dist/helperFunctions-CPmRxd37.js +121 -0
  144. package/dist/iesTextureLoader-BGUFjVhI.js +93 -0
  145. package/dist/index-CS3Icp_r.js +67657 -0
  146. package/dist/index.d.ts +23 -0
  147. package/dist/index.d.ts.map +1 -0
  148. package/dist/index.js +27 -0
  149. package/dist/ktxTextureLoader-cUaGg9_L.js +459 -0
  150. package/dist/lightFragment-BRDibDKG.js +404 -0
  151. package/dist/lightFragment-DCqtGMp_.js +402 -0
  152. package/dist/logDepthDeclaration-Bwm-3KyB.js +16 -0
  153. package/dist/logDepthDeclaration-gUfeSnXX.js +20 -0
  154. package/dist/logDepthVertex-CKeuJ6ae.js +213 -0
  155. package/dist/logDepthVertex-CXkmZels.js +459 -0
  156. package/dist/mesh.vertexData.functions-Bc9lJlrU.js +74 -0
  157. package/dist/oitFragment-B8zuQigp.js +792 -0
  158. package/dist/oitFragment-DH3h3T6x.js +657 -0
  159. package/dist/openpbr.fragment-BglYS6LA.js +1405 -0
  160. package/dist/openpbr.fragment-DrOTZs4m.js +1553 -0
  161. package/dist/openpbr.vertex-B-PaLFOR.js +384 -0
  162. package/dist/openpbr.vertex-DMdFRTnX.js +268 -0
  163. package/dist/openpbrMaterial-HCU0aOca.js +2880 -0
  164. package/dist/openpbrMaterialLoadingAdapter-CWRAa-7S.js +1122 -0
  165. package/dist/openpbrTransmissionLayerData-CfDVObj5.js +352 -0
  166. package/dist/openpbrUboDeclaration-CA2pvSbt.js +9 -0
  167. package/dist/openpbrUboDeclaration-xU8VOaib.js +10 -0
  168. package/dist/pass.fragment-1mMP54bb.js +10 -0
  169. package/dist/pass.fragment-DzaUp_jk.js +10 -0
  170. package/dist/passCube.fragment-CQaXS7g3.js +29 -0
  171. package/dist/passCube.fragment-QJGPwAXI.js +29 -0
  172. package/dist/pbr.fragment-BnaAAGxb.js +2775 -0
  173. package/dist/pbr.fragment-CYZk_EGU.js +2619 -0
  174. package/dist/pbr.vertex-CyvdCw91.js +372 -0
  175. package/dist/pbr.vertex-DJMAkDxs.js +270 -0
  176. package/dist/pbrBRDFFunctions-EugoWm6O.js +175 -0
  177. package/dist/pbrDebug-Bk3sPoEG.js +719 -0
  178. package/dist/pbrDebug-Cdalzb1I.js +614 -0
  179. package/dist/pbrIBLFunctions-B0bVAXCF.js +47 -0
  180. package/dist/pbrIBLFunctions-C06z-ouZ.js +51 -0
  181. package/dist/pbrMaterial-C4FCKBZQ.js +1660 -0
  182. package/dist/pbrMaterialLoadingAdapter-BGHlS_ZN.js +1032 -0
  183. package/dist/pbrUboDeclaration-1lN5_-Bw.js +9 -0
  184. package/dist/pbrUboDeclaration-BJOUUOZ2.js +10 -0
  185. package/dist/procedural.vertex-CFPKczKj.js +14 -0
  186. package/dist/procedural.vertex-DUW7bYZt.js +13 -0
  187. package/dist/rgbdDecode.fragment-CEGgE4tL.js +8 -0
  188. package/dist/rgbdDecode.fragment-FT0wkgah.js +8 -0
  189. package/dist/rgbdEncode.fragment-CLnJJf6E.js +8 -0
  190. package/dist/rgbdEncode.fragment-CaAcMsY9.js +8 -0
  191. package/dist/sceneUboDeclaration-B6oxsfcj.js +8 -0
  192. package/dist/sceneUboDeclaration-JByfVKik.js +13 -0
  193. package/dist/setupABB6700InstanceFactory.d.ts +7 -0
  194. package/dist/setupABB6700InstanceFactory.d.ts.map +1 -0
  195. package/dist/studio.env +0 -0
  196. package/dist/textureProcessor.fragment-BYPw6SMQ.js +152 -0
  197. package/dist/textureProcessor.fragment-Ciw9-F3w.js +157 -0
  198. package/dist/textureTools-Cct_bGgp.js +40 -0
  199. package/dist/tgaTextureLoader-BJOIdnFr.js +198 -0
  200. package/dist/thinEngine-Bt9FW4dD.js +2425 -0
  201. package/dist/webAudioBus-BUzRHSxr.js +88 -0
  202. package/dist/webAudioMainBus-Dds1TgJG.js +49 -0
  203. package/package.json +49 -0
@@ -0,0 +1,864 @@
1
+ import { aO as G, T as y, bW as i, aM as l, aS as a, aN as B, bZ as I, bT as m, bm as F, bk as d, bj as x, bi as _, bg as k, U as f, V as M, ad as T, aJ as N, bf as S, be as v, aK as s } from "./index-CS3Icp_r.js";
2
+ import { F as w } from "./flowGraphBinaryOperationBlock-Bj7TANCc.js";
3
+ import { F as R } from "./flowGraphCachedOperationBlock-CP1ZiuIB.js";
4
+ import { F as c } from "./flowGraphUnaryOperationBlock-B0Shf-lJ.js";
5
+ class g extends R {
6
+ constructor(r, o, t, n) {
7
+ super(r, n), this._operation = o, this._className = t;
8
+ }
9
+ /**
10
+ * the operation performed by this block
11
+ * @param context the graph context
12
+ * @returns the result of the operation
13
+ */
14
+ _doOperation(r) {
15
+ return this._operation(r);
16
+ }
17
+ /**
18
+ * Gets the class name of this block
19
+ * @returns the class name
20
+ */
21
+ getClassName() {
22
+ return this._className;
23
+ }
24
+ }
25
+ class D extends R {
26
+ constructor(r, o, t, n, p, u, O) {
27
+ super(n, O), this._operation = p, this._className = u, this.a = this.registerDataInput("a", r), this.b = this.registerDataInput("b", o), this.c = this.registerDataInput("c", t);
28
+ }
29
+ /**
30
+ * the operation performed by this block
31
+ * @param context the graph context
32
+ * @returns the result of the operation
33
+ */
34
+ _doOperation(r) {
35
+ return this._operation(this.a.getValue(r), this.b.getValue(r), this.c.getValue(r));
36
+ }
37
+ /**
38
+ * Gets the class name of this block
39
+ * @returns the class name
40
+ */
41
+ getClassName() {
42
+ return this._className;
43
+ }
44
+ }
45
+ class L extends w {
46
+ /**
47
+ * Construct a new add block.
48
+ * @param config optional configuration
49
+ */
50
+ constructor(r) {
51
+ super(i(r?.type), i(r?.type), i(r?.type), (o, t) => this._polymorphicAdd(o, t), "FlowGraphAddBlock", r);
52
+ }
53
+ _polymorphicAdd(r, o) {
54
+ const t = F(r), n = F(o);
55
+ if (d(t, n) || x(t, n) || _(t, n))
56
+ return r.add(o);
57
+ if (t === "Quaternion" || n === "Vector4")
58
+ return new k(r.x, r.y, r.z, r.w).addInPlace(o);
59
+ if (t === "Vector4" || n === "Quaternion")
60
+ return r.add(o);
61
+ if (this.config?.preventIntegerFloatArithmetic && typeof r != typeof o)
62
+ throw new Error("Cannot add different types of numbers.");
63
+ return m(r) + m(o);
64
+ }
65
+ }
66
+ s("FlowGraphAddBlock", L);
67
+ class V extends w {
68
+ /**
69
+ * Construct a new subtract block.
70
+ * @param config optional configuration
71
+ */
72
+ constructor(r) {
73
+ super(i(r?.type), i(r?.type), i(r?.type), (o, t) => this._polymorphicSubtract(o, t), "FlowGraphSubtractBlock", r);
74
+ }
75
+ _polymorphicSubtract(r, o) {
76
+ const t = F(r), n = F(o);
77
+ if (d(t, n) || _(t, n) || x(t, n))
78
+ return r.subtract(o);
79
+ if (t === "Quaternion" || n === "Vector4")
80
+ return new k(r.x, r.y, r.z, r.w).subtractInPlace(o);
81
+ if (t === "Vector4" || n === "Quaternion")
82
+ return r.subtract(o);
83
+ if (this.config?.preventIntegerFloatArithmetic && typeof r != typeof o)
84
+ throw new Error("Cannot add different types of numbers.");
85
+ return m(r) - m(o);
86
+ }
87
+ }
88
+ s("FlowGraphSubtractBlock", V);
89
+ class z extends w {
90
+ constructor(r) {
91
+ super(i(r?.type), i(r?.type), i(r?.type), (o, t) => this._polymorphicMultiply(o, t), "FlowGraphMultiplyBlock", r);
92
+ }
93
+ _polymorphicMultiply(r, o) {
94
+ const t = F(r), n = F(o);
95
+ if (d(t, n) || _(t, n))
96
+ return r.multiply(o);
97
+ if (t === "Quaternion" || n === "Vector4")
98
+ return new k(r.x, r.y, r.z, r.w).multiplyInPlace(o);
99
+ if (t === "Vector4" || n === "Quaternion")
100
+ return r.multiply(o);
101
+ if (x(t, n))
102
+ if (this.config?.useMatrixPerComponent) {
103
+ const p = r.m;
104
+ for (let u = 0; u < p.length; u++)
105
+ p[u] *= o.m[u];
106
+ return t === "Matrix2D" ? new f(p) : t === "Matrix3D" ? new M(p) : T.FromArray(p);
107
+ } else
108
+ return r = r, o = o, o.multiply(r);
109
+ else {
110
+ if (this.config?.preventIntegerFloatArithmetic && typeof r != typeof o)
111
+ throw new Error("Cannot add different types of numbers.");
112
+ return m(r) * m(o);
113
+ }
114
+ }
115
+ }
116
+ s("FlowGraphMultiplyBlock", z);
117
+ class q extends w {
118
+ /**
119
+ * Construct a new divide block.
120
+ * @param config - Optional configuration
121
+ */
122
+ constructor(r) {
123
+ super(i(r?.type), i(r?.type), i(r?.type), (o, t) => this._polymorphicDivide(o, t), "FlowGraphDivideBlock", r);
124
+ }
125
+ _polymorphicDivide(r, o) {
126
+ const t = F(r), n = F(o);
127
+ if (d(t, n) || _(t, n))
128
+ return r.divide(o);
129
+ if (t === "Quaternion" || n === "Quaternion") {
130
+ const p = r.clone();
131
+ return p.x /= o.x, p.y /= o.y, p.z /= o.z, p.w /= o.w, p;
132
+ } else {
133
+ if (t === "Quaternion" || n === "Vector4")
134
+ return new k(r.x, r.y, r.z, r.w).divideInPlace(o);
135
+ if (t === "Vector4" || n === "Quaternion")
136
+ return r.divide(o);
137
+ if (x(t, n))
138
+ if (this.config?.useMatrixPerComponent) {
139
+ const p = r.m;
140
+ for (let u = 0; u < p.length; u++)
141
+ p[u] /= o.m[u];
142
+ return t === "Matrix2D" ? new f(p) : t === "Matrix3D" ? new M(p) : T.FromArray(p);
143
+ } else
144
+ return r = r, o = o, r.divide(o);
145
+ else {
146
+ if (this.config?.preventIntegerFloatArithmetic && typeof r != typeof o)
147
+ throw new Error("Cannot add different types of numbers.");
148
+ return m(r) / m(o);
149
+ }
150
+ }
151
+ }
152
+ }
153
+ s("FlowGraphDivideBlock", q);
154
+ class P extends g {
155
+ /**
156
+ * Construct a new random block.
157
+ * @param config optional configuration
158
+ */
159
+ constructor(r) {
160
+ super(a, (o) => this._random(o), "FlowGraphRandomBlock", r), this.min = this.registerDataInput("min", a, r?.min ?? 0), this.max = this.registerDataInput("max", a, r?.max ?? 1), r?.seed && (this._seed = r.seed);
161
+ }
162
+ _isSeed(r = this._seed) {
163
+ return r !== void 0;
164
+ }
165
+ _getRandomValue() {
166
+ if (this._isSeed(this._seed)) {
167
+ const r = Math.sin(this._seed++) * 1e4;
168
+ return r - Math.floor(r);
169
+ }
170
+ return Math.random();
171
+ }
172
+ _random(r) {
173
+ const o = this.min.getValue(r), t = this.max.getValue(r);
174
+ return this._getRandomValue() * (t - o) + o;
175
+ }
176
+ }
177
+ s("FlowGraphRandomBlock", P);
178
+ class Q extends g {
179
+ constructor(r) {
180
+ super(a, () => Math.E, "FlowGraphEBlock", r);
181
+ }
182
+ }
183
+ s("FlowGraphEBlock", Q);
184
+ class $ extends g {
185
+ constructor(r) {
186
+ super(a, () => Math.PI, "FlowGraphPIBlock", r);
187
+ }
188
+ }
189
+ s("FlowGraphPIBlock", $);
190
+ class Z extends g {
191
+ constructor(r) {
192
+ super(a, () => Number.POSITIVE_INFINITY, "FlowGraphInfBlock", r);
193
+ }
194
+ }
195
+ s("FlowGraphInfBlock", Z);
196
+ class j extends g {
197
+ constructor(r) {
198
+ super(a, () => Number.NaN, "FlowGraphNaNBlock", r);
199
+ }
200
+ }
201
+ s("FlowGraphNaNBlock", j);
202
+ function h(e, r) {
203
+ switch (F(e)) {
204
+ case "FlowGraphInteger":
205
+ return e = e, new y(r(e.value));
206
+ case "Vector2":
207
+ return e = e, new v(r(e.x), r(e.y));
208
+ case "Vector3":
209
+ return e = e, new S(r(e.x), r(e.y), r(e.z));
210
+ case "Vector4":
211
+ return e = e, new k(r(e.x), r(e.y), r(e.z), r(e.w));
212
+ case "Quaternion":
213
+ return e = e, new N(r(e.x), r(e.y), r(e.z), r(e.w));
214
+ case "Matrix":
215
+ return e = e, T.FromArray(e.m.map(r));
216
+ case "Matrix2D":
217
+ return e = e, new f(e.m.map(r));
218
+ case "Matrix3D":
219
+ return e = e, new M(e.m.map(r));
220
+ default:
221
+ return e = e, r(e);
222
+ }
223
+ }
224
+ class W extends c {
225
+ constructor(r) {
226
+ super(a, a, (o) => this._polymorphicAbs(o), "FlowGraphAbsBlock", r);
227
+ }
228
+ _polymorphicAbs(r) {
229
+ return h(r, Math.abs);
230
+ }
231
+ }
232
+ s("FlowGraphAbsBlock", W);
233
+ class X extends c {
234
+ constructor(r) {
235
+ super(a, a, (o) => this._polymorphicSign(o), "FlowGraphSignBlock", r);
236
+ }
237
+ _polymorphicSign(r) {
238
+ return h(r, Math.sign);
239
+ }
240
+ }
241
+ s("FlowGraphSignBlock", X);
242
+ class U extends c {
243
+ constructor(r) {
244
+ super(a, a, (o) => this._polymorphicTrunc(o), "FlowGraphTruncBlock", r);
245
+ }
246
+ _polymorphicTrunc(r) {
247
+ return h(r, Math.trunc);
248
+ }
249
+ }
250
+ s("FlowGraphTruncBlock", U);
251
+ class H extends c {
252
+ constructor(r) {
253
+ super(a, a, (o) => this._polymorphicFloor(o), "FlowGraphFloorBlock", r);
254
+ }
255
+ _polymorphicFloor(r) {
256
+ return h(r, Math.floor);
257
+ }
258
+ }
259
+ s("FlowGraphFloorBlock", H);
260
+ class J extends c {
261
+ constructor(r) {
262
+ super(l, l, (o) => this._polymorphicCeiling(o), "FlowGraphCeilBlock", r);
263
+ }
264
+ _polymorphicCeiling(r) {
265
+ return h(r, Math.ceil);
266
+ }
267
+ }
268
+ s("FlowGraphCeilBlock", J);
269
+ class K extends c {
270
+ constructor(r) {
271
+ super(l, l, (o) => this._polymorphicRound(o), "FlowGraphRoundBlock", r);
272
+ }
273
+ _polymorphicRound(r) {
274
+ return h(r, (o) => o < 0 && this.config?.roundHalfAwayFromZero ? -Math.round(-o) : Math.round(o));
275
+ }
276
+ }
277
+ s("FlowGraphRoundBlock", K);
278
+ class Y extends c {
279
+ constructor(r) {
280
+ super(l, l, (o) => this._polymorphicFraction(o), "FlowGraphFractBlock", r);
281
+ }
282
+ _polymorphicFraction(r) {
283
+ return h(r, (o) => o - Math.floor(o));
284
+ }
285
+ }
286
+ s("FlowGraphFractBlock", Y);
287
+ class b extends c {
288
+ /**
289
+ * construct a new negation block.
290
+ * @param config optional configuration
291
+ */
292
+ constructor(r) {
293
+ super(l, l, (o) => this._polymorphicNeg(o), "FlowGraphNegationBlock", r);
294
+ }
295
+ _polymorphicNeg(r) {
296
+ return h(r, (o) => -o);
297
+ }
298
+ }
299
+ s("FlowGraphNegationBlock", b);
300
+ function C(e, r, o) {
301
+ switch (F(e)) {
302
+ case "FlowGraphInteger":
303
+ return e = e, r = r, new y(o(e.value, r.value));
304
+ case "Vector2":
305
+ return e = e, r = r, new v(o(e.x, r.x), o(e.y, r.y));
306
+ case "Vector3":
307
+ return e = e, r = r, new S(o(e.x, r.x), o(e.y, r.y), o(e.z, r.z));
308
+ case "Vector4":
309
+ return e = e, r = r, new k(o(e.x, r.x), o(e.y, r.y), o(e.z, r.z), o(e.w, r.w));
310
+ case "Quaternion":
311
+ return e = e, r = r, new N(o(e.x, r.x), o(e.y, r.y), o(e.z, r.z), o(e.w, r.w));
312
+ case "Matrix":
313
+ return e = e, T.FromArray(e.m.map((n, p) => o(n, r.m[p])));
314
+ case "Matrix2D":
315
+ return e = e, new f(e.m.map((n, p) => o(n, r.m[p])));
316
+ case "Matrix3D":
317
+ return e = e, new M(e.m.map((n, p) => o(n, r.m[p])));
318
+ default:
319
+ return o(m(e), m(r));
320
+ }
321
+ }
322
+ class rr extends w {
323
+ constructor(r) {
324
+ super(l, l, l, (o, t) => this._polymorphicRemainder(o, t), "FlowGraphModuloBlock", r);
325
+ }
326
+ _polymorphicRemainder(r, o) {
327
+ return C(r, o, (t, n) => t % n);
328
+ }
329
+ }
330
+ s("FlowGraphModuloBlock", rr);
331
+ class or extends w {
332
+ constructor(r) {
333
+ super(l, l, l, (o, t) => this._polymorphicMin(o, t), "FlowGraphMinBlock", r);
334
+ }
335
+ _polymorphicMin(r, o) {
336
+ return C(r, o, Math.min);
337
+ }
338
+ }
339
+ s("FlowGraphMinBlock", or);
340
+ class er extends w {
341
+ constructor(r) {
342
+ super(l, l, l, (o, t) => this._polymorphicMax(o, t), "FlowGraphMaxBlock", r);
343
+ }
344
+ _polymorphicMax(r, o) {
345
+ return C(r, o, Math.max);
346
+ }
347
+ }
348
+ s("FlowGraphMaxBlock", er);
349
+ function tr(e, r, o) {
350
+ return Math.min(Math.max(e, Math.min(r, o)), Math.max(r, o));
351
+ }
352
+ function E(e, r, o, t) {
353
+ switch (F(e)) {
354
+ case "FlowGraphInteger":
355
+ return e = e, r = r, o = o, new y(t(e.value, r.value, o.value));
356
+ case "Vector2":
357
+ return e = e, r = r, o = o, new v(t(e.x, r.x, o.x), t(e.y, r.y, o.y));
358
+ case "Vector3":
359
+ return e = e, r = r, o = o, new S(t(e.x, r.x, o.x), t(e.y, r.y, o.y), t(e.z, r.z, o.z));
360
+ case "Vector4":
361
+ return e = e, r = r, o = o, new k(t(e.x, r.x, o.x), t(e.y, r.y, o.y), t(e.z, r.z, o.z), t(e.w, r.w, o.w));
362
+ case "Quaternion":
363
+ return e = e, r = r, o = o, new N(t(e.x, r.x, o.x), t(e.y, r.y, o.y), t(e.z, r.z, o.z), t(e.w, r.w, o.w));
364
+ case "Matrix":
365
+ return T.FromArray(e.m.map((p, u) => t(p, r.m[u], o.m[u])));
366
+ case "Matrix2D":
367
+ return new f(e.m.map((p, u) => t(p, r.m[u], o.m[u])));
368
+ case "Matrix3D":
369
+ return new M(e.m.map((p, u) => t(p, r.m[u], o.m[u])));
370
+ default:
371
+ return t(m(e), m(r), m(o));
372
+ }
373
+ }
374
+ class lr extends D {
375
+ constructor(r) {
376
+ super(l, l, l, l, (o, t, n) => this._polymorphicClamp(o, t, n), "FlowGraphClampBlock", r);
377
+ }
378
+ _polymorphicClamp(r, o, t) {
379
+ return E(r, o, t, tr);
380
+ }
381
+ }
382
+ s("FlowGraphClampBlock", lr);
383
+ function sr(e) {
384
+ return Math.min(Math.max(e, 0), 1);
385
+ }
386
+ class nr extends c {
387
+ constructor(r) {
388
+ super(l, l, (o) => this._polymorphicSaturate(o), "FlowGraphSaturateBlock", r);
389
+ }
390
+ _polymorphicSaturate(r) {
391
+ return h(r, sr);
392
+ }
393
+ }
394
+ s("FlowGraphSaturateBlock", nr);
395
+ function ar(e, r, o) {
396
+ return (1 - o) * e + o * r;
397
+ }
398
+ class cr extends D {
399
+ constructor(r) {
400
+ super(l, l, l, l, (o, t, n) => this._polymorphicInterpolate(o, t, n), "FlowGraphMathInterpolationBlock", r);
401
+ }
402
+ _polymorphicInterpolate(r, o, t) {
403
+ return E(r, o, t, ar);
404
+ }
405
+ }
406
+ s("FlowGraphMathInterpolationBlock", cr);
407
+ class pr extends w {
408
+ constructor(r) {
409
+ super(l, l, B, (o, t) => this._polymorphicEq(o, t), "FlowGraphEqualityBlock", r);
410
+ }
411
+ _polymorphicEq(r, o) {
412
+ const t = F(r), n = F(o);
413
+ return typeof r != typeof o ? !1 : d(t, n) || x(t, n) || _(t, n) ? r.equals(o) : r === o;
414
+ }
415
+ }
416
+ s("FlowGraphEqualityBlock", pr);
417
+ function A(e, r, o) {
418
+ if (I(e) && I(r))
419
+ return o(m(e), m(r));
420
+ throw new Error(`Cannot compare ${e} and ${r}`);
421
+ }
422
+ class hr extends w {
423
+ constructor(r) {
424
+ super(l, l, B, (o, t) => this._polymorphicLessThan(o, t), "FlowGraphLessThanBlock", r);
425
+ }
426
+ _polymorphicLessThan(r, o) {
427
+ return A(r, o, (t, n) => t < n);
428
+ }
429
+ }
430
+ s("FlowGraphLessThanBlock", hr);
431
+ class ir extends w {
432
+ constructor(r) {
433
+ super(l, l, B, (o, t) => this._polymorphicLessThanOrEqual(o, t), "FlowGraphLessThanOrEqualBlock", r);
434
+ }
435
+ _polymorphicLessThanOrEqual(r, o) {
436
+ return A(r, o, (t, n) => t <= n);
437
+ }
438
+ }
439
+ s("FlowGraphLessThanOrEqualBlock", ir);
440
+ class ur extends w {
441
+ constructor(r) {
442
+ super(l, l, B, (o, t) => this._polymorphicGreaterThan(o, t), "FlowGraphGreaterThanBlock", r);
443
+ }
444
+ _polymorphicGreaterThan(r, o) {
445
+ return A(r, o, (t, n) => t > n);
446
+ }
447
+ }
448
+ s("FlowGraphGreaterThanBlock", ur);
449
+ class wr extends w {
450
+ constructor(r) {
451
+ super(l, l, B, (o, t) => this._polymorphicGreaterThanOrEqual(o, t), "FlowGraphGreaterThanOrEqualBlock", r);
452
+ }
453
+ _polymorphicGreaterThanOrEqual(r, o) {
454
+ return A(r, o, (t, n) => t >= n);
455
+ }
456
+ }
457
+ s("FlowGraphGreaterThanOrEqualBlock", wr);
458
+ class mr extends c {
459
+ constructor(r) {
460
+ super(l, B, (o) => this._polymorphicIsNan(o), "FlowGraphIsNaNBlock", r);
461
+ }
462
+ _polymorphicIsNan(r) {
463
+ if (I(r, !0))
464
+ return isNaN(m(r));
465
+ throw new Error(`Cannot get NaN of ${r}`);
466
+ }
467
+ }
468
+ s("FlowGraphIsNaNBlock", mr);
469
+ class Fr extends c {
470
+ constructor(r) {
471
+ super(l, B, (o) => this._polymorphicIsInf(o), "FlowGraphIsInfBlock", r);
472
+ }
473
+ _polymorphicIsInf(r) {
474
+ if (I(r))
475
+ return !isFinite(m(r));
476
+ throw new Error(`Cannot get isInf of ${r}`);
477
+ }
478
+ }
479
+ s("FlowGraphIsInfBlock", Fr);
480
+ class Gr extends c {
481
+ /**
482
+ * Constructs a new instance of the flow graph math block.
483
+ * @param config - Optional configuration for the flow graph block.
484
+ */
485
+ constructor(r) {
486
+ super(l, l, (o) => this._polymorphicDegToRad(o), "FlowGraphDegToRadBlock", r);
487
+ }
488
+ _degToRad(r) {
489
+ return r * Math.PI / 180;
490
+ }
491
+ _polymorphicDegToRad(r) {
492
+ return h(r, this._degToRad);
493
+ }
494
+ }
495
+ s("FlowGraphDegToRadBlock", Gr);
496
+ class yr extends c {
497
+ constructor(r) {
498
+ super(l, l, (o) => this._polymorphicRadToDeg(o), "FlowGraphRadToDegBlock", r);
499
+ }
500
+ _radToDeg(r) {
501
+ return r * 180 / Math.PI;
502
+ }
503
+ _polymorphicRadToDeg(r) {
504
+ return h(r, this._radToDeg);
505
+ }
506
+ }
507
+ s("FlowGraphRadToDegBlock", yr);
508
+ class Hr extends c {
509
+ constructor(r) {
510
+ super(a, a, (o) => this._polymorphicSin(o), "FlowGraphSinBlock", r);
511
+ }
512
+ _polymorphicSin(r) {
513
+ return h(r, Math.sin);
514
+ }
515
+ }
516
+ class Jr extends c {
517
+ constructor(r) {
518
+ super(a, a, (o) => this._polymorphicCos(o), "FlowGraphCosBlock", r);
519
+ }
520
+ _polymorphicCos(r) {
521
+ return h(r, Math.cos);
522
+ }
523
+ }
524
+ class Kr extends c {
525
+ constructor(r) {
526
+ super(a, a, (o) => this._polymorphicTan(o), "FlowGraphTanBlock", r);
527
+ }
528
+ _polymorphicTan(r) {
529
+ return h(r, Math.tan);
530
+ }
531
+ }
532
+ class Br extends c {
533
+ constructor(r) {
534
+ super(a, a, (o) => this._polymorphicAsin(o), "FlowGraphASinBlock", r);
535
+ }
536
+ _polymorphicAsin(r) {
537
+ return h(r, Math.asin);
538
+ }
539
+ }
540
+ s("FlowGraphASinBlock", Br);
541
+ class kr extends c {
542
+ constructor(r) {
543
+ super(a, a, (o) => this._polymorphicAcos(o), "FlowGraphACosBlock", r);
544
+ }
545
+ _polymorphicAcos(r) {
546
+ return h(r, Math.acos);
547
+ }
548
+ }
549
+ s("FlowGraphACosBlock", kr);
550
+ class dr extends c {
551
+ constructor(r) {
552
+ super(a, a, (o) => this._polymorphicAtan(o), "FlowGraphATanBlock", r);
553
+ }
554
+ _polymorphicAtan(r) {
555
+ return h(r, Math.atan);
556
+ }
557
+ }
558
+ s("FlowGraphATanBlock", dr);
559
+ class xr extends w {
560
+ constructor(r) {
561
+ super(l, l, l, (o, t) => this._polymorphicAtan2(o, t), "FlowGraphATan2Block", r);
562
+ }
563
+ _polymorphicAtan2(r, o) {
564
+ return C(r, o, Math.atan2);
565
+ }
566
+ }
567
+ s("FlowGraphATan2Block", xr);
568
+ class _r extends c {
569
+ constructor(r) {
570
+ super(l, l, (o) => this._polymorphicSinh(o), "FlowGraphSinhBlock", r);
571
+ }
572
+ _polymorphicSinh(r) {
573
+ return h(r, Math.sinh);
574
+ }
575
+ }
576
+ s("FlowGraphSinhBlock", _r);
577
+ class fr extends c {
578
+ constructor(r) {
579
+ super(l, l, (o) => this._polymorphicCosh(o), "FlowGraphCoshBlock", r);
580
+ }
581
+ _polymorphicCosh(r) {
582
+ return h(r, Math.cosh);
583
+ }
584
+ }
585
+ s("FlowGraphCoshBlock", fr);
586
+ class Mr extends c {
587
+ constructor(r) {
588
+ super(l, l, (o) => this._polymorphicTanh(o), "FlowGraphTanhBlock", r);
589
+ }
590
+ _polymorphicTanh(r) {
591
+ return h(r, Math.tanh);
592
+ }
593
+ }
594
+ s("FlowGraphTanhBlock", Mr);
595
+ class Tr extends c {
596
+ constructor(r) {
597
+ super(l, a, (o) => this._polymorphicAsinh(o), "FlowGraphASinhBlock", r);
598
+ }
599
+ _polymorphicAsinh(r) {
600
+ return h(r, Math.asinh);
601
+ }
602
+ }
603
+ s("FlowGraphASinhBlock", Tr);
604
+ class gr extends c {
605
+ constructor(r) {
606
+ super(l, a, (o) => this._polymorphicAcosh(o), "FlowGraphACoshBlock", r);
607
+ }
608
+ _polymorphicAcosh(r) {
609
+ return h(r, Math.acosh);
610
+ }
611
+ }
612
+ s("FlowGraphACoshBlock", gr);
613
+ class Cr extends c {
614
+ constructor(r) {
615
+ super(l, a, (o) => this._polymorphicAtanh(o), "FlowGraphATanhBlock", r);
616
+ }
617
+ _polymorphicAtanh(r) {
618
+ return h(r, Math.atanh);
619
+ }
620
+ }
621
+ s("FlowGraphATanhBlock", Cr);
622
+ class Ir extends c {
623
+ constructor(r) {
624
+ super(l, a, (o) => this._polymorphicExp(o), "FlowGraphExponentialBlock", r);
625
+ }
626
+ _polymorphicExp(r) {
627
+ return h(r, Math.exp);
628
+ }
629
+ }
630
+ s("FlowGraphExponentialBlock", Ir);
631
+ class Ar extends c {
632
+ constructor(r) {
633
+ super(l, a, (o) => this._polymorphicLog(o), "FlowGraphLogBlock", r);
634
+ }
635
+ _polymorphicLog(r) {
636
+ return h(r, Math.log);
637
+ }
638
+ }
639
+ s("FlowGraphLogBlock", Ar);
640
+ class Nr extends c {
641
+ constructor(r) {
642
+ super(l, a, (o) => this._polymorphicLog2(o), "FlowGraphLog2Block", r);
643
+ }
644
+ _polymorphicLog2(r) {
645
+ return h(r, Math.log2);
646
+ }
647
+ }
648
+ s("FlowGraphLog2Block", Nr);
649
+ class Sr extends c {
650
+ constructor(r) {
651
+ super(l, a, (o) => this._polymorphicLog10(o), "FlowGraphLog10Block", r);
652
+ }
653
+ _polymorphicLog10(r) {
654
+ return h(r, Math.log10);
655
+ }
656
+ }
657
+ s("FlowGraphLog10Block", Sr);
658
+ class vr extends c {
659
+ constructor(r) {
660
+ super(l, a, (o) => this._polymorphicSqrt(o), "FlowGraphSquareRootBlock", r);
661
+ }
662
+ _polymorphicSqrt(r) {
663
+ return h(r, Math.sqrt);
664
+ }
665
+ }
666
+ s("FlowGraphSquareRootBlock", vr);
667
+ class Rr extends c {
668
+ constructor(r) {
669
+ super(l, a, (o) => this._polymorphicCubeRoot(o), "FlowGraphCubeRootBlock", r);
670
+ }
671
+ _polymorphicCubeRoot(r) {
672
+ return h(r, Math.cbrt);
673
+ }
674
+ }
675
+ s("FlowGraphCubeRootBlock", Rr);
676
+ class Dr extends w {
677
+ constructor(r) {
678
+ super(l, a, a, (o, t) => this._polymorphicPow(o, t), "FlowGraphPowerBlock", r);
679
+ }
680
+ _polymorphicPow(r, o) {
681
+ return C(r, o, Math.pow);
682
+ }
683
+ }
684
+ s("FlowGraphPowerBlock", Dr);
685
+ class Er extends c {
686
+ constructor(r) {
687
+ super(i(
688
+ r?.valueType || "FlowGraphInteger"
689
+ /* FlowGraphTypes.Integer */
690
+ ), i(
691
+ r?.valueType || "FlowGraphInteger"
692
+ /* FlowGraphTypes.Integer */
693
+ ), (o) => typeof o == "boolean" ? !o : typeof o == "number" ? ~o : new y(~o.value), "FlowGraphBitwiseNotBlock", r);
694
+ }
695
+ }
696
+ s("FlowGraphBitwiseNotBlock", Er);
697
+ class Or extends w {
698
+ constructor(r) {
699
+ super(i(
700
+ r?.valueType || "FlowGraphInteger"
701
+ /* FlowGraphTypes.Integer */
702
+ ), i(
703
+ r?.valueType || "FlowGraphInteger"
704
+ /* FlowGraphTypes.Integer */
705
+ ), i(
706
+ r?.valueType || "FlowGraphInteger"
707
+ /* FlowGraphTypes.Integer */
708
+ ), (o, t) => {
709
+ if (typeof o == "boolean" && typeof t == "boolean")
710
+ return o && t;
711
+ if (typeof o == "number" && typeof t == "number")
712
+ return o & t;
713
+ if (typeof o == "object" && typeof t == "object")
714
+ return new y(o.value & t.value);
715
+ throw new Error(`Cannot perform bitwise AND on ${o} and ${t}`);
716
+ }, "FlowGraphBitwiseAndBlock", r);
717
+ }
718
+ }
719
+ s("FlowGraphBitwiseAndBlock", Or);
720
+ class Lr extends w {
721
+ constructor(r) {
722
+ super(i(
723
+ r?.valueType || "FlowGraphInteger"
724
+ /* FlowGraphTypes.Integer */
725
+ ), i(
726
+ r?.valueType || "FlowGraphInteger"
727
+ /* FlowGraphTypes.Integer */
728
+ ), i(
729
+ r?.valueType || "FlowGraphInteger"
730
+ /* FlowGraphTypes.Integer */
731
+ ), (o, t) => {
732
+ if (typeof o == "boolean" && typeof t == "boolean")
733
+ return o || t;
734
+ if (typeof o == "number" && typeof t == "number")
735
+ return o | t;
736
+ if (typeof o == "object" && typeof t == "object")
737
+ return new y(o.value | t.value);
738
+ throw new Error(`Cannot perform bitwise OR on ${o} and ${t}`);
739
+ }, "FlowGraphBitwiseOrBlock", r);
740
+ }
741
+ }
742
+ s("FlowGraphBitwiseOrBlock", Lr);
743
+ class Vr extends w {
744
+ constructor(r) {
745
+ super(i(
746
+ r?.valueType || "FlowGraphInteger"
747
+ /* FlowGraphTypes.Integer */
748
+ ), i(
749
+ r?.valueType || "FlowGraphInteger"
750
+ /* FlowGraphTypes.Integer */
751
+ ), i(
752
+ r?.valueType || "FlowGraphInteger"
753
+ /* FlowGraphTypes.Integer */
754
+ ), (o, t) => {
755
+ if (typeof o == "boolean" && typeof t == "boolean")
756
+ return o !== t;
757
+ if (typeof o == "number" && typeof t == "number")
758
+ return o ^ t;
759
+ if (typeof o == "object" && typeof t == "object")
760
+ return new y(o.value ^ t.value);
761
+ throw new Error(`Cannot perform bitwise XOR on ${o} and ${t}`);
762
+ }, "FlowGraphBitwiseXorBlock", r);
763
+ }
764
+ }
765
+ s("FlowGraphBitwiseXorBlock", Vr);
766
+ class zr extends w {
767
+ constructor(r) {
768
+ super(G, G, G, (o, t) => new y(o.value << t.value), "FlowGraphBitwiseLeftShiftBlock", r);
769
+ }
770
+ }
771
+ s("FlowGraphBitwiseLeftShiftBlock", zr);
772
+ class qr extends w {
773
+ constructor(r) {
774
+ super(G, G, G, (o, t) => new y(o.value >> t.value), "FlowGraphBitwiseRightShiftBlock", r);
775
+ }
776
+ }
777
+ s("FlowGraphBitwiseRightShiftBlock", qr);
778
+ class Pr extends c {
779
+ constructor(r) {
780
+ super(G, G, (o) => new y(Math.clz32(o.value)), "FlowGraphLeadingZerosBlock", r);
781
+ }
782
+ }
783
+ s("FlowGraphLeadingZerosBlock", Pr);
784
+ class Qr extends c {
785
+ constructor(r) {
786
+ super(G, G, (o) => new y(o.value ? 31 - Math.clz32(o.value & -o.value) : 32), "FlowGraphTrailingZerosBlock", r);
787
+ }
788
+ }
789
+ s("FlowGraphTrailingZerosBlock", Qr);
790
+ function $r(e) {
791
+ let r = 0;
792
+ for (; e; )
793
+ r += e & 1, e >>= 1;
794
+ return r;
795
+ }
796
+ class Zr extends c {
797
+ constructor(r) {
798
+ super(G, G, (o) => new y($r(o.value)), "FlowGraphOneBitsCounterBlock", r);
799
+ }
800
+ }
801
+ s("FlowGraphOneBitsCounterBlock", Zr);
802
+ export {
803
+ W as FlowGraphAbsBlock,
804
+ kr as FlowGraphAcosBlock,
805
+ gr as FlowGraphAcoshBlock,
806
+ L as FlowGraphAddBlock,
807
+ Br as FlowGraphAsinBlock,
808
+ Tr as FlowGraphAsinhBlock,
809
+ xr as FlowGraphAtan2Block,
810
+ dr as FlowGraphAtanBlock,
811
+ Cr as FlowGraphAtanhBlock,
812
+ Or as FlowGraphBitwiseAndBlock,
813
+ zr as FlowGraphBitwiseLeftShiftBlock,
814
+ Er as FlowGraphBitwiseNotBlock,
815
+ Lr as FlowGraphBitwiseOrBlock,
816
+ qr as FlowGraphBitwiseRightShiftBlock,
817
+ Vr as FlowGraphBitwiseXorBlock,
818
+ J as FlowGraphCeilBlock,
819
+ lr as FlowGraphClampBlock,
820
+ Jr as FlowGraphCosBlock,
821
+ fr as FlowGraphCoshBlock,
822
+ Rr as FlowGraphCubeRootBlock,
823
+ Gr as FlowGraphDegToRadBlock,
824
+ q as FlowGraphDivideBlock,
825
+ Q as FlowGraphEBlock,
826
+ pr as FlowGraphEqualityBlock,
827
+ Ir as FlowGraphExpBlock,
828
+ H as FlowGraphFloorBlock,
829
+ Y as FlowGraphFractionBlock,
830
+ ur as FlowGraphGreaterThanBlock,
831
+ wr as FlowGraphGreaterThanOrEqualBlock,
832
+ Z as FlowGraphInfBlock,
833
+ Fr as FlowGraphIsInfinityBlock,
834
+ mr as FlowGraphIsNanBlock,
835
+ Pr as FlowGraphLeadingZerosBlock,
836
+ hr as FlowGraphLessThanBlock,
837
+ ir as FlowGraphLessThanOrEqualBlock,
838
+ Sr as FlowGraphLog10Block,
839
+ Nr as FlowGraphLog2Block,
840
+ Ar as FlowGraphLogBlock,
841
+ cr as FlowGraphMathInterpolationBlock,
842
+ er as FlowGraphMaxBlock,
843
+ or as FlowGraphMinBlock,
844
+ rr as FlowGraphModuloBlock,
845
+ z as FlowGraphMultiplyBlock,
846
+ j as FlowGraphNaNBlock,
847
+ b as FlowGraphNegationBlock,
848
+ Zr as FlowGraphOneBitsCounterBlock,
849
+ $ as FlowGraphPiBlock,
850
+ Dr as FlowGraphPowerBlock,
851
+ yr as FlowGraphRadToDegBlock,
852
+ P as FlowGraphRandomBlock,
853
+ K as FlowGraphRoundBlock,
854
+ nr as FlowGraphSaturateBlock,
855
+ X as FlowGraphSignBlock,
856
+ Hr as FlowGraphSinBlock,
857
+ _r as FlowGraphSinhBlock,
858
+ vr as FlowGraphSquareRootBlock,
859
+ V as FlowGraphSubtractBlock,
860
+ Kr as FlowGraphTanBlock,
861
+ Mr as FlowGraphTanhBlock,
862
+ Qr as FlowGraphTrailingZerosBlock,
863
+ U as FlowGraphTruncBlock
864
+ };