quantum-component-library 1.4.47-dev.10 → 1.4.47-dev.2

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 (37) hide show
  1. package/dist/components/activity-list/index.d.ts +2 -28
  2. package/dist/components/parameter-edit-list/index.d.ts +1 -2
  3. package/dist/components/test-filter-panel/index.d.ts +3 -5
  4. package/dist/components/upsert-activity-form/index.d.ts +1 -3
  5. package/dist/components.cjs +1 -1
  6. package/dist/components.js +1281 -1338
  7. package/dist/generated/gql.d.ts +2 -2
  8. package/dist/generated/graphql.d.ts +1 -38
  9. package/dist/generated-B5QGMyhw.cjs +1 -0
  10. package/dist/generated-esGwfMXj.js +66 -0
  11. package/dist/{graphql-CvUc6Vdv.js → graphql-CZIf58Fd.js} +22 -30
  12. package/dist/{graphql-C6M9oyU0.cjs → graphql-KvyVlavd.cjs} +9 -16
  13. package/dist/{graphql-vendor-B0NjgbDB.js → graphql-vendor-BWnD0b-j.js} +3 -2
  14. package/dist/{graphql-vendor-B-QTAQSb.cjs → graphql-vendor-CL0XsjHb.cjs} +9 -9
  15. package/dist/hooks.cjs +1 -1
  16. package/dist/hooks.js +1 -1
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.js +115 -118
  19. package/dist/lib/services/index.d.ts +0 -1
  20. package/dist/providers.cjs +1 -1
  21. package/dist/providers.js +3 -3
  22. package/dist/quantum-component-library.css +1 -1
  23. package/dist/{react-select-vendor-D_Q2fL5j.cjs → react-select-vendor-BPaBUHFp.cjs} +1 -1
  24. package/dist/{react-select-vendor-BlY9Il4Q.js → react-select-vendor-C_DuqfB7.js} +5 -4
  25. package/dist/services.cjs +1 -1
  26. package/dist/services.js +212 -249
  27. package/dist/types.cjs +1 -1
  28. package/dist/types.js +1 -1
  29. package/dist/utils.cjs +1 -1
  30. package/dist/utils.js +1 -1
  31. package/package.json +1 -11
  32. package/dist/components/activity-list/index.stories.d.ts +0 -6
  33. package/dist/generated-graphql.cjs +0 -1
  34. package/dist/generated-graphql.js +0 -68
  35. package/dist/generated.cjs +0 -1
  36. package/dist/generated.js +0 -73
  37. package/dist/lib/services/action.d.ts +0 -4
package/dist/services.js CHANGED
@@ -1,54 +1,20 @@
1
- import { ActivityType as l, SessionType as L, ActionActivityKind as h } from "./generated-graphql.js";
2
- import { axes as E, planes as T, AngleDataSource as c, limbAngle as v, jointAngle as w } from "./types.js";
1
+ import { axes as k, planes as A, AngleDataSource as c, limbAngle as S, jointAngle as E } from "./types.js";
3
2
  import "./moment-vendor-DMLRxgRE.js";
4
- import { memo as m, capitalizeAll as x } from "./utils.js";
5
- const ue = (e) => {
6
- switch (e) {
7
- case l.IsolatedMovement:
8
- return "Isolated Movement";
9
- case l.FunctionalMovement:
10
- return "Functional Movement";
11
- case l.ActionPrecursor:
12
- return "Action Precursor";
13
- case l.IsolatedAction:
14
- return "Isolated Action";
15
- }
16
- }, Re = (e) => {
17
- switch (e) {
18
- case L.BiofeedbackTraining:
19
- return "Biofeedback (Training)";
20
- case L.BiofeedbackTesting:
21
- return "Biofeedback (Testing)";
22
- case L.RecordedTesting:
23
- return "Recorded (Testing)";
24
- }
25
- }, Le = (e) => {
26
- switch (e) {
27
- case l.IsolatedMovement:
28
- return h.Movement;
29
- case l.FunctionalMovement:
30
- return h.Movement;
31
- case l.ActionPrecursor:
32
- return h.Action;
33
- case l.IsolatedAction:
34
- return h.Action;
35
- default:
36
- return h.Action;
37
- }
38
- }, b = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, N = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, F = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, M = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, C = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, P = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, B = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -75, max: 60 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -45, max: 45 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -80, max: 80 } }, H = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -25, max: 50 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -25, max: 25 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -30, max: 30 } }, U = { __COMMENT__: "This is the sum of the ChestSpine and NavalSpine", sagittal: { __COMMENT__: "-Extension, +Flexion", min: -100, max: 110 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -70, max: 70 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -110, max: 110 } }, O = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, K = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, y = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, j = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, _ = {
39
- LeftAnkle: b,
40
- RightAnkle: N,
41
- LeftKnee: F,
42
- RightKnee: M,
43
- LeftHip: C,
44
- RightHip: P,
45
- NavalSpine: B,
46
- ChestSpine: H,
47
- TotalSpine: U,
48
- LeftShoulder: O,
49
- RightShoulder: K,
50
- LeftElbow: y,
51
- RightElbow: j
3
+ import { memo as l, capitalizeAll as R } from "./utils.js";
4
+ const w = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, T = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, v = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, N = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, b = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, F = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, M = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -75, max: 60 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -45, max: 45 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -80, max: 80 } }, C = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -25, max: 50 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -25, max: 25 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -30, max: 30 } }, P = { __COMMENT__: "This is the sum of the ChestSpine and NavalSpine", sagittal: { __COMMENT__: "-Extension, +Flexion", min: -100, max: 110 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -70, max: 70 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -110, max: 110 } }, B = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, H = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, U = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, O = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, x = {
5
+ LeftAnkle: w,
6
+ RightAnkle: T,
7
+ LeftKnee: v,
8
+ RightKnee: N,
9
+ LeftHip: b,
10
+ RightHip: F,
11
+ NavalSpine: M,
12
+ ChestSpine: C,
13
+ TotalSpine: P,
14
+ LeftShoulder: B,
15
+ RightShoulder: H,
16
+ LeftElbow: U,
17
+ RightElbow: O
52
18
  }, i = {
53
19
  LeftFoot: "Left Foot",
54
20
  RightFoot: "Right Foot",
@@ -83,7 +49,7 @@ const ue = (e) => {
83
49
  LeftElbow: "Left Elbow",
84
50
  RightElbow: "Right Elbow",
85
51
  Neck: "Neck"
86
- }, de = {
52
+ }, me = {
87
53
  LeftFoot: ["LeftAnkle"],
88
54
  RightFoot: ["RightAnkle"],
89
55
  LeftShank: ["LeftKnee", "LeftAnkle"],
@@ -102,7 +68,7 @@ const ue = (e) => {
102
68
  RightUpperArm: ["RightShoulder", "RightElbow"],
103
69
  LeftForearm: ["LeftElbow"],
104
70
  RightForearm: ["RightElbow"]
105
- }, A = {
71
+ }, d = {
106
72
  LeftAnkle: ["LeftFoot", "LeftShank"],
107
73
  RightAnkle: ["RightFoot", "RightShank"],
108
74
  LeftKnee: ["LeftShank", "LeftThigh"],
@@ -117,7 +83,7 @@ const ue = (e) => {
117
83
  LeftElbow: ["LeftUpperArm", "LeftForearm"],
118
84
  RightElbow: ["RightUpperArm", "RightForearm"],
119
85
  Neck: ["Head", "UpperBack"]
120
- }, k = () => [
86
+ }, _ = () => [
121
87
  { id: "LeftFoot", name: i.LeftFoot },
122
88
  { id: "RightFoot", name: i.RightFoot },
123
89
  { id: "LeftShank", name: i.LeftShank },
@@ -136,7 +102,7 @@ const ue = (e) => {
136
102
  { id: "RightUpperArm", name: i.RightUpperArm },
137
103
  { id: "LeftForearm", name: i.LeftForearm },
138
104
  { id: "RightForearm", name: i.RightForearm }
139
- ], xe = (e) => k().filter((t) => e.find((n) => n == t.id)), J = () => [
105
+ ], he = (t) => _().filter((e) => t.find((n) => n == e.id)), K = () => [
140
106
  { id: "LeftAnkle", name: a.LeftAnkle },
141
107
  { id: "RightAnkle", name: a.RightAnkle },
142
108
  { id: "LeftKnee", name: a.LeftKnee },
@@ -151,7 +117,7 @@ const ue = (e) => {
151
117
  { id: "LeftElbow", name: a.LeftElbow },
152
118
  { id: "RightElbow", name: a.RightElbow },
153
119
  { id: "Neck", name: a.Neck }
154
- ], $ = () => [
120
+ ], j = () => [
155
121
  { id: "LeftAnkle", name: a.LeftAnkle },
156
122
  { id: "RightAnkle", name: a.RightAnkle },
157
123
  { id: "LeftKnee", name: a.LeftKnee },
@@ -167,7 +133,7 @@ const ue = (e) => {
167
133
  // { id: 'LeftElbow', name: jointNames.LeftElbow },
168
134
  // { id: 'RightElbow', name: jointNames.RightElbow },
169
135
  { id: "Neck", name: a.Neck }
170
- ], D = () => [
136
+ ], J = () => [
171
137
  { id: "LeftAnkle", name: a.LeftAnkle },
172
138
  { id: "RightAnkle", name: a.RightAnkle },
173
139
  { id: "LeftKnee", name: a.LeftKnee },
@@ -180,7 +146,7 @@ const ue = (e) => {
180
146
  { id: "LeftElbow", name: a.LeftElbow },
181
147
  { id: "RightElbow", name: a.RightElbow },
182
148
  { id: "Neck", name: a.Neck }
183
- ], pe = () => [
149
+ ], ge = () => [
184
150
  { id: "Head", name: i.Head },
185
151
  { id: "LeftThigh", name: i.LeftThigh },
186
152
  { id: "RightThigh", name: i.RightThigh },
@@ -194,27 +160,27 @@ const ue = (e) => {
194
160
  { id: "RightUpperArm", name: i.RightUpperArm },
195
161
  { id: "LeftForearm", name: i.LeftForearm },
196
162
  { id: "RightForearm", name: i.RightForearm }
197
- ], _e = (e) => $().filter((n) => A[n.id].every((r) => e.includes(r))), Ae = (e) => D().filter((n) => A[n.id].every((r) => e.includes(r))), I = (e, t, n) => {
163
+ ], fe = (t) => j().filter((n) => d[n.id].every((s) => t.includes(s))), ue = (t) => J().filter((n) => d[n.id].every((s) => t.includes(s))), y = (t, e, n) => {
198
164
  if (n)
199
165
  return ["frontal", "sagittal", "transverse"];
200
- switch (e) {
166
+ switch (t) {
201
167
  case "LeftKnee":
202
168
  case "RightKnee":
203
169
  return ["sagittal"];
204
170
  case "LeftAnkle":
205
171
  case "RightAnkle":
206
- return t && t == c.Pose ? ["sagittal"] : ["frontal", "sagittal"];
172
+ return e && e == c.Pose ? ["sagittal"] : ["frontal", "sagittal"];
207
173
  case "TotalSpine":
208
- return t && t == c.Pose ? ["frontal"] : ["frontal", "sagittal", "transverse"];
174
+ return e && e == c.Pose ? ["frontal"] : ["frontal", "sagittal", "transverse"];
209
175
  case "LeftElbow":
210
176
  case "RightElbow":
211
- return t && t == c.Pose ? ["sagittal"] : ["frontal", "sagittal", "transverse"];
177
+ return e && e == c.Pose ? ["sagittal"] : ["frontal", "sagittal", "transverse"];
212
178
  }
213
- return t && t == c.Pose ? ["frontal", "sagittal"] : ["frontal", "sagittal", "transverse"];
214
- }, z = (e, t) => {
215
- if (t === c.Sensor)
179
+ return e && e == c.Pose ? ["frontal", "sagittal"] : ["frontal", "sagittal", "transverse"];
180
+ }, $ = (t, e) => {
181
+ if (e === c.Sensor)
216
182
  return ["frontal", "sagittal", "transverse"];
217
- switch (e) {
183
+ switch (t) {
218
184
  case "Head":
219
185
  case "LeftThigh":
220
186
  case "RightThigh":
@@ -234,12 +200,12 @@ const ue = (e) => {
234
200
  return ["frontal", "sagittal"];
235
201
  }
236
202
  return [];
237
- }, W = m(
238
- (e, t, n) => {
239
- switch (e) {
203
+ }, D = l(
204
+ (t, e, n) => {
205
+ switch (t) {
240
206
  case "LeftAnkle":
241
207
  case "RightAnkle":
242
- switch (t) {
208
+ switch (e) {
243
209
  case "frontal":
244
210
  return n < 0 ? "inversion" : "eversion";
245
211
  case "sagittal":
@@ -249,7 +215,7 @@ const ue = (e) => {
249
215
  }
250
216
  case "LeftKnee":
251
217
  case "RightKnee":
252
- switch (t) {
218
+ switch (e) {
253
219
  case "frontal":
254
220
  return n < 0 ? "adduction" : "abduction";
255
221
  case "sagittal":
@@ -261,7 +227,7 @@ const ue = (e) => {
261
227
  case "RightHip":
262
228
  case "LeftShoulder":
263
229
  case "RightShoulder":
264
- switch (t) {
230
+ switch (e) {
265
231
  case "frontal":
266
232
  return n < 0 ? "adduction" : "abduction";
267
233
  case "sagittal":
@@ -273,7 +239,7 @@ const ue = (e) => {
273
239
  case "ChestSpine":
274
240
  case "TotalSpine":
275
241
  case "Neck":
276
- switch (t) {
242
+ switch (e) {
277
243
  case "frontal":
278
244
  return n < 0 ? "right lateral flexion" : "left lateral flexion";
279
245
  case "sagittal":
@@ -283,7 +249,7 @@ const ue = (e) => {
283
249
  }
284
250
  case "LeftElbow":
285
251
  case "RightElbow":
286
- switch (t) {
252
+ switch (e) {
287
253
  case "frontal":
288
254
  return null;
289
255
  case "sagittal":
@@ -294,12 +260,12 @@ const ue = (e) => {
294
260
  }
295
261
  return null;
296
262
  }
297
- ), V = m(
298
- (e, t, n) => {
299
- switch (e) {
263
+ ), I = l(
264
+ (t, e, n) => {
265
+ switch (t) {
300
266
  case "LeftAnkle":
301
267
  case "RightAnkle":
302
- switch (t) {
268
+ switch (e) {
303
269
  case "frontal":
304
270
  return n < 0 ? "Inv." : "Ev.";
305
271
  case "sagittal":
@@ -309,7 +275,7 @@ const ue = (e) => {
309
275
  }
310
276
  case "LeftKnee":
311
277
  case "RightKnee":
312
- switch (t) {
278
+ switch (e) {
313
279
  case "frontal":
314
280
  return n < 0 ? "Add." : "Abd.";
315
281
  case "sagittal":
@@ -321,7 +287,7 @@ const ue = (e) => {
321
287
  case "RightHip":
322
288
  case "LeftShoulder":
323
289
  case "RightShoulder":
324
- switch (t) {
290
+ switch (e) {
325
291
  case "frontal":
326
292
  return n < 0 ? "Add." : "Abd.";
327
293
  case "sagittal":
@@ -333,7 +299,7 @@ const ue = (e) => {
333
299
  case "ChestSpine":
334
300
  case "TotalSpine":
335
301
  case "Neck":
336
- switch (t) {
302
+ switch (e) {
337
303
  case "frontal":
338
304
  return n < 0 ? "R. Bend" : "L. Bend";
339
305
  case "sagittal":
@@ -343,7 +309,7 @@ const ue = (e) => {
343
309
  }
344
310
  case "LeftElbow":
345
311
  case "RightElbow":
346
- switch (t) {
312
+ switch (e) {
347
313
  case "frontal":
348
314
  return null;
349
315
  case "sagittal":
@@ -354,13 +320,13 @@ const ue = (e) => {
354
320
  }
355
321
  return null;
356
322
  }
357
- ), d = m(
358
- (e, t, n) => {
359
- switch (e) {
323
+ ), u = l(
324
+ (t, e, n) => {
325
+ switch (t) {
360
326
  case "LowerBack":
361
327
  case "LeftPelvis":
362
328
  case "RightPelvis":
363
- switch (t) {
329
+ switch (e) {
364
330
  case "frontal":
365
331
  return n < 0 ? "right drop" : "left drop";
366
332
  case "sagittal":
@@ -381,7 +347,7 @@ const ue = (e) => {
381
347
  case "RightUpperArm":
382
348
  case "LeftForearm":
383
349
  case "RightForearm":
384
- switch (t) {
350
+ switch (e) {
385
351
  case "frontal":
386
352
  return n < 0 ? "right tilt" : "left tilt";
387
353
  case "sagittal":
@@ -393,13 +359,13 @@ const ue = (e) => {
393
359
  return null;
394
360
  }
395
361
  }
396
- ), q = m(
397
- (e, t, n) => {
398
- switch (e) {
362
+ ), z = l(
363
+ (t, e, n) => {
364
+ switch (t) {
399
365
  case "LowerBack":
400
366
  case "LeftPelvis":
401
367
  case "RightPelvis":
402
- switch (t) {
368
+ switch (e) {
403
369
  case "frontal":
404
370
  return n < 0 ? "R. Drop" : "L. Drop";
405
371
  case "sagittal":
@@ -420,7 +386,7 @@ const ue = (e) => {
420
386
  case "RightUpperArm":
421
387
  case "LeftForearm":
422
388
  case "RightForearm":
423
- switch (t) {
389
+ switch (e) {
424
390
  case "frontal":
425
391
  return n < 0 ? "R. Tilt" : "L. Tilt";
426
392
  case "sagittal":
@@ -432,12 +398,12 @@ const ue = (e) => {
432
398
  return null;
433
399
  }
434
400
  }
435
- ), ke = m(
436
- (e, t) => {
437
- switch (e) {
401
+ ), Re = l(
402
+ (t, e) => {
403
+ switch (t) {
438
404
  case "LeftAnkle":
439
405
  case "RightAnkle":
440
- switch (t) {
406
+ switch (e) {
441
407
  case "frontal":
442
408
  return { min: -20, max: 20 };
443
409
  case "sagittal":
@@ -447,7 +413,7 @@ const ue = (e) => {
447
413
  }
448
414
  case "LeftKnee":
449
415
  case "RightKnee":
450
- switch (t) {
416
+ switch (e) {
451
417
  case "frontal":
452
418
  return { min: -5, max: 5 };
453
419
  case "sagittal":
@@ -465,7 +431,7 @@ const ue = (e) => {
465
431
  case "ChestSpine":
466
432
  case "TotalSpine":
467
433
  case "Neck":
468
- switch (t) {
434
+ switch (e) {
469
435
  case "frontal":
470
436
  return { min: -5, max: 5 };
471
437
  case "sagittal":
@@ -475,7 +441,7 @@ const ue = (e) => {
475
441
  }
476
442
  case "LeftElbow":
477
443
  case "RightElbow":
478
- switch (t) {
444
+ switch (e) {
479
445
  case "frontal":
480
446
  return { min: -5, max: 5 };
481
447
  case "sagittal":
@@ -486,12 +452,12 @@ const ue = (e) => {
486
452
  }
487
453
  return { min: -10, max: 10 };
488
454
  }
489
- ), Se = m(
490
- (e, t) => {
491
- switch (e) {
455
+ ), Le = l(
456
+ (t, e) => {
457
+ switch (t) {
492
458
  case "LeftFoot":
493
459
  case "RightFoot":
494
- switch (t) {
460
+ switch (e) {
495
461
  case "frontal":
496
462
  return { min: -20, max: 20 };
497
463
  case "sagittal":
@@ -501,7 +467,7 @@ const ue = (e) => {
501
467
  }
502
468
  case "LeftShank":
503
469
  case "RightShank":
504
- switch (t) {
470
+ switch (e) {
505
471
  case "frontal":
506
472
  return { min: -35, max: 35 };
507
473
  case "sagittal":
@@ -511,7 +477,7 @@ const ue = (e) => {
511
477
  }
512
478
  case "LeftThigh":
513
479
  case "RightThigh":
514
- switch (t) {
480
+ switch (e) {
515
481
  case "frontal":
516
482
  return { min: -35, max: 35 };
517
483
  case "sagittal":
@@ -521,7 +487,7 @@ const ue = (e) => {
521
487
  }
522
488
  case "LeftPelvis":
523
489
  case "RightPelvis":
524
- switch (t) {
490
+ switch (e) {
525
491
  case "frontal":
526
492
  return { min: -15, max: 15 };
527
493
  case "sagittal":
@@ -536,7 +502,7 @@ const ue = (e) => {
536
502
  return { min: -5, max: 5 };
537
503
  case "LeftClavicle":
538
504
  case "RightClavicle":
539
- switch (t) {
505
+ switch (e) {
540
506
  case "frontal":
541
507
  return { min: -15, max: 15 };
542
508
  case "sagittal":
@@ -548,7 +514,7 @@ const ue = (e) => {
548
514
  case "RightUpperArm":
549
515
  case "LeftForearm":
550
516
  case "RightForearm":
551
- switch (t) {
517
+ switch (e) {
552
518
  case "frontal":
553
519
  return { min: -45, max: 45 };
554
520
  case "sagittal":
@@ -559,12 +525,12 @@ const ue = (e) => {
559
525
  }
560
526
  return { min: -10, max: 10 };
561
527
  }
562
- ), Ee = m(
563
- (e, t) => {
564
- switch (e) {
528
+ ), xe = l(
529
+ (t, e) => {
530
+ switch (t) {
565
531
  case "LeftAnkle":
566
532
  case "RightAnkle":
567
- switch (t) {
533
+ switch (e) {
568
534
  case "frontal":
569
535
  return { min: -40, max: 30 };
570
536
  case "sagittal":
@@ -574,7 +540,7 @@ const ue = (e) => {
574
540
  }
575
541
  case "LeftKnee":
576
542
  case "RightKnee":
577
- switch (t) {
543
+ switch (e) {
578
544
  case "frontal":
579
545
  return { min: -15, max: 5 };
580
546
  case "sagittal":
@@ -584,7 +550,7 @@ const ue = (e) => {
584
550
  }
585
551
  case "LeftHip":
586
552
  case "RightHip":
587
- switch (t) {
553
+ switch (e) {
588
554
  case "frontal":
589
555
  return { min: -50, max: 60 };
590
556
  case "sagittal":
@@ -593,7 +559,7 @@ const ue = (e) => {
593
559
  return { min: -60, max: 70 };
594
560
  }
595
561
  case "TotalSpine":
596
- switch (t) {
562
+ switch (e) {
597
563
  case "frontal":
598
564
  return { min: -60, max: 60 };
599
565
  case "sagittal":
@@ -602,7 +568,7 @@ const ue = (e) => {
602
568
  return { min: -50, max: 50 };
603
569
  }
604
570
  case "ChestSpine":
605
- switch (t) {
571
+ switch (e) {
606
572
  case "frontal":
607
573
  return { min: -25, max: 25 };
608
574
  case "sagittal":
@@ -611,7 +577,7 @@ const ue = (e) => {
611
577
  return { min: -35, max: 35 };
612
578
  }
613
579
  case "NavalSpine":
614
- switch (t) {
580
+ switch (e) {
615
581
  case "frontal":
616
582
  return { min: -25, max: 25 };
617
583
  case "sagittal":
@@ -623,95 +589,95 @@ const ue = (e) => {
623
589
  return { min: -180, max: 180 };
624
590
  }
625
591
  }
626
- ), X = (e, t) => ({
592
+ ), W = (t, e) => ({
627
593
  kind: "joint",
628
- value: e,
629
- plane: t
630
- }), G = (e, t) => ({
594
+ value: t,
595
+ plane: e
596
+ }), V = (t, e) => ({
631
597
  kind: "limb",
632
- value: e,
633
- plane: t
634
- }), Q = (e, t) => ({
598
+ value: t,
599
+ plane: e
600
+ }), q = (t, e) => ({
635
601
  kind: "acceleration",
636
- value: e,
637
- axis: t
638
- }), Y = (e, t) => ({
602
+ value: t,
603
+ axis: e
604
+ }), X = (t, e) => ({
639
605
  kind: "angular_velocity",
640
- value: e,
641
- plane: t
642
- }), Z = (e) => E.includes(e), Te = (e) => T.includes(e), ee = (e) => typeof e == "object" && e !== null && "id" in e && "name" in e && !!k().find((t) => t.id === e.id), te = (e) => typeof e == "object" && e !== null && "id" in e && "name" in e && !!J().find((t) => t.id === e.id), ve = (e, t, n = !1) => Z(t) ? ee(e) ? Q(e, t) : ne(
643
- `Can't make acceleration part from joint: ${e} ${t}`
644
- ) : te(e) ? n ? Y(e, t) : X(e, t) : G(e, t), we = (e) => e.kind === "acceleration" ? e.axis : e.plane, be = (e) => e?.kind === "acceleration" ? e.axis : null, Ne = (e) => e?.kind === "acceleration" ? null : e?.plane ?? null, ne = (e) => {
645
- throw new Error(e);
646
- }, R = (e) => e in a ? a[e] : e in i ? i[e] : "Unknown", Fe = (e) => R(e).replace(/Left|Right/g, ""), ae = (e) => e in _, ie = (e, t) => {
647
- if (!ae(e))
606
+ value: t,
607
+ plane: e
608
+ }), G = (t) => k.includes(t), de = (t) => A.includes(t), Q = (t) => typeof t == "object" && t !== null && "id" in t && "name" in t && !!_().find((e) => e.id === t.id), Y = (t) => typeof t == "object" && t !== null && "id" in t && "name" in t && !!K().find((e) => e.id === t.id), _e = (t, e, n = !1) => G(e) ? Q(t) ? q(t, e) : Z(
609
+ `Can't make acceleration part from joint: ${t} ${e}`
610
+ ) : Y(t) ? n ? X(t, e) : W(t, e) : V(t, e), pe = (t) => t.kind === "acceleration" ? t.axis : t.plane, ke = (t) => t?.kind === "acceleration" ? t.axis : null, Ae = (t) => t?.kind === "acceleration" ? null : t?.plane ?? null, Z = (t) => {
611
+ throw new Error(t);
612
+ }, f = (t) => t in a ? a[t] : t in i ? i[t] : "Unknown", Se = (t) => f(t).replace(/Left|Right/g, ""), ee = (t) => t in x, te = (t, e) => {
613
+ if (!ee(t))
648
614
  return null;
649
- const n = _[e];
650
- if (t in n) {
651
- const { min: s, max: r } = n[t];
615
+ const n = x[t];
616
+ if (e in n) {
617
+ const { min: r, max: s } = n[e];
652
618
  return {
653
- min: s ?? 0,
654
- max: r ?? 0
619
+ min: r ?? 0,
620
+ max: s ?? 0
655
621
  };
656
622
  }
657
623
  return null;
658
- }, Me = (...e) => {
659
- const t = ie(...e);
660
- return t ? Math.abs(t.max - t.min) : 0;
661
- }, re = (e, t) => {
662
- const n = Object.keys(i).find((r) => r === t), s = Object.keys(a).find((r) => r === t);
663
- return !n && !s ? null : n ? e.limbs[t].sensor_angle ? c.Sensor : c.Pose : e.joints[t].sensor_angle ? c.Sensor : c.Pose;
664
- }, Ce = (e, t, n) => {
665
- const s = Object.keys(a).find((o) => o === t), r = re(e, t);
666
- return r ? s ? I(t, r).includes(n) : z(t, r).includes(n) : !1;
667
- }, Pe = (e, t, n) => {
668
- const s = Object.keys(i).find((o) => o === t), r = Object.keys(a).find((o) => o === t);
669
- if (!s && !r)
624
+ }, Ee = (...t) => {
625
+ const e = te(...t);
626
+ return e ? Math.abs(e.max - e.min) : 0;
627
+ }, ne = (t, e) => {
628
+ const n = Object.keys(i).find((s) => s === e), r = Object.keys(a).find((s) => s === e);
629
+ return !n && !r ? null : n ? t.limbs[e].sensor_angle ? c.Sensor : c.Pose : t.joints[e].sensor_angle ? c.Sensor : c.Pose;
630
+ }, we = (t, e, n) => {
631
+ const r = Object.keys(a).find((o) => o === e), s = ne(t, e);
632
+ return s ? r ? y(e, s).includes(n) : $(e, s).includes(n) : !1;
633
+ }, Te = (t, e, n) => {
634
+ const r = Object.keys(i).find((o) => o === e), s = Object.keys(a).find((o) => o === e);
635
+ if (!r && !s)
670
636
  throw new Error(
671
- `Unknown partId: ${t} - this invariant should've been enforced by typescript`
637
+ `Unknown partId: ${e} - this invariant should've been enforced by typescript`
672
638
  );
673
- return s ? v(e.limbs[t])?.[n] ?? null : w(
674
- e.joints[t],
639
+ return r ? S(t.limbs[e])?.[n] ?? null : E(
640
+ t.joints[e],
675
641
  void 0,
676
- e.direction
642
+ t.direction
677
643
  )?.[n] ?? null;
678
- }, u = (e = !1) => e ? "Internal/External Rotation" : "External/Internal Rotation", se = (e, t, n = !1) => {
679
- switch (e) {
644
+ }, g = (t = !1) => t ? "Internal/External Rotation" : "External/Internal Rotation", ae = (t, e, n = !1) => {
645
+ switch (t) {
680
646
  case "LeftAnkle":
681
647
  case "RightAnkle":
682
- switch (t) {
648
+ switch (e) {
683
649
  case "frontal":
684
650
  return n ? "Inversion/Eversion" : "Eversion/Inversion";
685
651
  case "sagittal":
686
652
  return n ? "Plantar/Dorsi Flexion" : "Dorsi/Plantar Flexion";
687
653
  case "transverse":
688
- return u(n);
654
+ return g(n);
689
655
  }
690
656
  case "LeftKnee":
691
657
  case "RightKnee":
692
- switch (t) {
658
+ switch (e) {
693
659
  case "frontal":
694
660
  return n ? "Adduction/Abduction" : "Abduction/Adduction";
695
661
  case "sagittal":
696
662
  return n ? "Extension/Flexion" : "Flexion/Extension";
697
663
  case "transverse":
698
- return u(n);
664
+ return g(n);
699
665
  }
700
666
  case "LeftHip":
701
667
  case "RightHip":
702
- switch (t) {
668
+ switch (e) {
703
669
  case "frontal":
704
670
  return n ? "Adduction/Abduction" : "Abduction/Adduction";
705
671
  case "sagittal":
706
672
  return n ? "Extension/Flexion" : "Flexion/Extension";
707
673
  case "transverse":
708
- return u(n);
674
+ return g(n);
709
675
  }
710
676
  case "NavalSpine":
711
677
  case "ChestSpine":
712
678
  case "TotalSpine":
713
679
  case "Neck":
714
- switch (t) {
680
+ switch (e) {
715
681
  case "frontal":
716
682
  return "Lateral Bend";
717
683
  case "sagittal":
@@ -721,17 +687,17 @@ const ue = (e) => {
721
687
  }
722
688
  case "LeftShoulder":
723
689
  case "RightShoulder":
724
- switch (t) {
690
+ switch (e) {
725
691
  case "frontal":
726
692
  return n ? "Adduction/Abduction" : "Abduction/Adduction";
727
693
  case "sagittal":
728
694
  return n ? "Extension/Flexion" : "Flexion/Extension";
729
695
  case "transverse":
730
- return u(n);
696
+ return g(n);
731
697
  }
732
698
  case "LeftElbow":
733
699
  case "RightElbow":
734
- switch (t) {
700
+ switch (e) {
735
701
  case "frontal":
736
702
  return n ? "Adduction/Abduction" : "Abduction/Adduction";
737
703
  case "sagittal":
@@ -740,16 +706,16 @@ const ue = (e) => {
740
706
  return n ? "Pronation/Supination" : "Supination/Pronation";
741
707
  }
742
708
  }
743
- }, oe = (e, t, n = !1) => {
744
- const s = R(e), r = d(e, t, 1), o = d(e, t, -1);
745
- if (r && o) {
746
- const g = x(r), f = x(o), S = n ? `${f}/${g}` : `${g}/${f}`;
747
- return `${s} (${S})`;
709
+ }, ie = (t, e, n = !1) => {
710
+ const r = f(t), s = u(t, e, 1), o = u(t, e, -1);
711
+ if (s && o) {
712
+ const m = R(s), h = R(o), p = n ? `${h}/${m}` : `${m}/${h}`;
713
+ return `${r} (${p})`;
748
714
  }
749
- return `${s} (${t})`;
750
- }, Be = (e, t) => {
715
+ return `${r} (${e})`;
716
+ }, ve = (t, e) => {
751
717
  let n;
752
- switch (t) {
718
+ switch (e) {
753
719
  case "x":
754
720
  n = "Med./Lat.";
755
721
  break;
@@ -759,89 +725,86 @@ const ue = (e) => {
759
725
  case "z":
760
726
  n = "Ant./Post.";
761
727
  }
762
- return `${R(e)} ${n}`;
763
- }, ce = (e, t, n = !1) => {
764
- const s = R(e), r = se(e, t, n);
765
- return r ? `${s} (${r})` : null;
766
- }, He = (e, t) => ce(e, t) || oe(e, t), p = (e, t, n, s = !1) => {
767
- const r = s ? V : W, o = s ? q : d, [g, f] = e === "joint" ? [
768
- r(t, n, 1),
769
- r(t, n, -1)
728
+ return `${f(t)} ${n}`;
729
+ }, se = (t, e, n = !1) => {
730
+ const r = f(t), s = ae(t, e, n);
731
+ return s ? `${r} (${s})` : null;
732
+ }, Ne = (t, e) => se(t, e) || ie(t, e), L = (t, e, n, r = !1) => {
733
+ const s = r ? I : D, o = r ? z : u, [m, h] = t === "joint" ? [
734
+ s(e, n, 1),
735
+ s(e, n, -1)
770
736
  ] : [
771
- o(t, n, 1),
772
- o(t, n, -1)
737
+ o(e, n, 1),
738
+ o(e, n, -1)
773
739
  ];
774
740
  return {
775
- positive: g,
776
- negative: f
741
+ positive: m,
742
+ negative: h
777
743
  };
778
- }, le = (e, t = !1) => e.partKind === "joint" ? p(
744
+ }, re = (t, e = !1) => t.partKind === "joint" ? L(
779
745
  "joint",
780
- e.partId,
781
- e.partDimension,
782
- t
783
- ) : p(
746
+ t.partId,
747
+ t.partDimension,
748
+ e
749
+ ) : L(
784
750
  "segment",
785
- e.partId,
786
- e.partDimension,
787
- t
788
- ), Ue = (e, t, n = !1) => {
789
- const { positive: s, negative: r } = le(
790
- t,
751
+ t.partId,
752
+ t.partDimension,
753
+ e
754
+ ), be = (t, e, n = !1) => {
755
+ const { positive: r, negative: s } = re(
756
+ e,
791
757
  n
792
758
  );
793
- return e >= 0 ? s : r;
759
+ return t >= 0 ? r : s;
794
760
  };
795
761
  export {
796
- Le as getActivityKindFromActivityType,
797
- J as getAllAvailableJoints,
798
- k as getAllAvailableLimbs,
799
- D as getAllAvailablePoseJoints,
800
- pe as getAllAvailablePoseLimbs,
801
- $ as getAllAvailableSensorJoints,
802
- p as getAngleDirectionNames,
803
- xe as getAvailableLimbsForLimbIds,
804
- Ae as getAvailablePoseJointsForLimbIds,
805
- _e as getAvailableSensorJointsForLimbIds,
806
- be as getAxis,
807
- re as getDefaultAngleSource,
808
- ke as getDefaultJointRange,
809
- Se as getDefaultLimbRange,
810
- I as getEnabledJointPlanes,
811
- z as getEnabledSegmentPlanes,
812
- Pe as getHumanBodyAngle,
813
- Ce as getIsDefaultAngleAllowed,
814
- V as getJointAngleDirectionAbbr,
815
- W as getJointAngleDirectionName,
816
- ce as getJointNameWithPlane,
817
- He as getJointOrSegmentNameWithPlane,
818
- se as getJointPlaneName,
819
- Ee as getNormativeJointRange,
820
- Ue as getParameterAngleDirectionName,
821
- le as getParameterDirectionNames,
822
- R as getPartName,
823
- Fe as getPartNameNoSide,
824
- Ne as getPlane,
825
- q as getSegmentAngleDirectionAbbr,
826
- d as getSegmentAngleDirectionName,
827
- oe as getSegmentNameWithPlane,
828
- Be as getSegmentXyzName,
829
- ie as getTypicalRom,
830
- Me as getTypicalRomSize,
831
- Z as isAxis,
832
- te as isJoint,
833
- ee as isLimb,
834
- Te as isPlane,
762
+ K as getAllAvailableJoints,
763
+ _ as getAllAvailableLimbs,
764
+ J as getAllAvailablePoseJoints,
765
+ ge as getAllAvailablePoseLimbs,
766
+ j as getAllAvailableSensorJoints,
767
+ L as getAngleDirectionNames,
768
+ he as getAvailableLimbsForLimbIds,
769
+ ue as getAvailablePoseJointsForLimbIds,
770
+ fe as getAvailableSensorJointsForLimbIds,
771
+ ke as getAxis,
772
+ ne as getDefaultAngleSource,
773
+ Re as getDefaultJointRange,
774
+ Le as getDefaultLimbRange,
775
+ y as getEnabledJointPlanes,
776
+ $ as getEnabledSegmentPlanes,
777
+ Te as getHumanBodyAngle,
778
+ we as getIsDefaultAngleAllowed,
779
+ I as getJointAngleDirectionAbbr,
780
+ D as getJointAngleDirectionName,
781
+ se as getJointNameWithPlane,
782
+ Ne as getJointOrSegmentNameWithPlane,
783
+ ae as getJointPlaneName,
784
+ xe as getNormativeJointRange,
785
+ be as getParameterAngleDirectionName,
786
+ re as getParameterDirectionNames,
787
+ f as getPartName,
788
+ Se as getPartNameNoSide,
789
+ Ae as getPlane,
790
+ z as getSegmentAngleDirectionAbbr,
791
+ u as getSegmentAngleDirectionName,
792
+ ie as getSegmentNameWithPlane,
793
+ ve as getSegmentXyzName,
794
+ te as getTypicalRom,
795
+ Ee as getTypicalRomSize,
796
+ G as isAxis,
797
+ Y as isJoint,
798
+ Q as isLimb,
799
+ de as isPlane,
835
800
  a as jointNames,
836
- de as jointsUsedByLimbs,
801
+ me as jointsUsedByLimbs,
837
802
  i as limbNames,
838
- A as limbsRequiredForJoints,
839
- ue as mapActivityTypeEnumToLabel,
840
- Re as mapSessionTypeEnumToLabel,
841
- Q as mkAccelerationPart,
842
- Y as mkAngularVelocityPart,
843
- ve as mkHumanPart,
844
- X as mkJointPart,
845
- G as mkLimbPart,
846
- we as planeOrAxis
803
+ d as limbsRequiredForJoints,
804
+ q as mkAccelerationPart,
805
+ X as mkAngularVelocityPart,
806
+ _e as mkHumanPart,
807
+ W as mkJointPart,
808
+ V as mkLimbPart,
809
+ pe as planeOrAxis
847
810
  };