@alfadocs/ui-kit-debug 1.112.0 → 1.112.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{muscle-scheme-C2B6v14o.js → muscle-scheme-1BZd1-RE.js} +232 -228
- package/dist/_chunks/{muscle-scheme-C2B6v14o.js.map → muscle-scheme-1BZd1-RE.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/muscle-scheme/muscle-scheme-data.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { forwardRef as k2, useId as g2, useRef as d1, useMemo as z1, useState as l1, useCallback as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsx as i, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as k2, useId as g2, useRef as d1, useMemo as z1, useState as l1, useCallback as f, useEffect as b2, useImperativeHandle as v2 } from "react";
|
|
3
|
+
import * as $ from "@radix-ui/react-tooltip";
|
|
4
4
|
import { c as Q1 } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as G1 } from "react-i18next";
|
|
6
6
|
import { u as z2 } from "./registry-DvAUVLHh.js";
|
|
@@ -8,7 +8,7 @@ import { m as W1, A as x2 } from "./annotation-marker-D-M7y4R1.js";
|
|
|
8
8
|
import { T as n1 } from "./tabs-DYHgRVSJ.js";
|
|
9
9
|
import { B as K2 } from "./button-DohK_Ak_.js";
|
|
10
10
|
import { C as _2 } from "./check-DrFSN__t.js";
|
|
11
|
-
const
|
|
11
|
+
const I = {
|
|
12
12
|
type: "string",
|
|
13
13
|
description: "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
|
|
14
14
|
}, M1 = {
|
|
@@ -35,7 +35,7 @@ const $ = {
|
|
|
35
35
|
read: (C) => Object.fromEntries(
|
|
36
36
|
Object.entries(C.getChart()).map(([a, t]) => [
|
|
37
37
|
a,
|
|
38
|
-
t.map((
|
|
38
|
+
t.map((r) => r.type)
|
|
39
39
|
])
|
|
40
40
|
)
|
|
41
41
|
},
|
|
@@ -52,7 +52,7 @@ const $ = {
|
|
|
52
52
|
argsType: "{ regionId: string }",
|
|
53
53
|
argsSchema: {
|
|
54
54
|
type: "object",
|
|
55
|
-
properties: { regionId:
|
|
55
|
+
properties: { regionId: I },
|
|
56
56
|
required: ["regionId"]
|
|
57
57
|
},
|
|
58
58
|
idempotent: !0,
|
|
@@ -70,7 +70,7 @@ const $ = {
|
|
|
70
70
|
argsType: "{ regionId: string }",
|
|
71
71
|
argsSchema: {
|
|
72
72
|
type: "object",
|
|
73
|
-
properties: { regionId:
|
|
73
|
+
properties: { regionId: I },
|
|
74
74
|
required: ["regionId"]
|
|
75
75
|
},
|
|
76
76
|
returns: "MuscleFinding[]",
|
|
@@ -96,7 +96,7 @@ const $ = {
|
|
|
96
96
|
required: ["type"]
|
|
97
97
|
},
|
|
98
98
|
returns: "string[]",
|
|
99
|
-
returnsSchema: { type: "array", items:
|
|
99
|
+
returnsSchema: { type: "array", items: I },
|
|
100
100
|
idempotent: !0,
|
|
101
101
|
descriptionKey: "ui.agent.muscleScheme.actions.regionsWith",
|
|
102
102
|
description: "List the region ids carrying a given finding type.",
|
|
@@ -108,7 +108,7 @@ const $ = {
|
|
|
108
108
|
argsSchema: {
|
|
109
109
|
type: "object",
|
|
110
110
|
properties: {
|
|
111
|
-
regionId:
|
|
111
|
+
regionId: I,
|
|
112
112
|
type: M1,
|
|
113
113
|
note: { type: "string" }
|
|
114
114
|
},
|
|
@@ -126,7 +126,7 @@ const $ = {
|
|
|
126
126
|
argsType: "{ regionId: string; type: FindingType }",
|
|
127
127
|
argsSchema: {
|
|
128
128
|
type: "object",
|
|
129
|
-
properties: { regionId:
|
|
129
|
+
properties: { regionId: I, type: M1 },
|
|
130
130
|
required: ["regionId", "type"]
|
|
131
131
|
},
|
|
132
132
|
idempotent: !0,
|
|
@@ -141,7 +141,7 @@ const $ = {
|
|
|
141
141
|
argsType: "{ regionId: string }",
|
|
142
142
|
argsSchema: {
|
|
143
143
|
type: "object",
|
|
144
|
-
properties: { regionId:
|
|
144
|
+
properties: { regionId: I },
|
|
145
145
|
required: ["regionId"]
|
|
146
146
|
},
|
|
147
147
|
idempotent: !0,
|
|
@@ -2145,7 +2145,7 @@ const $ = {
|
|
|
2145
2145
|
"female-back": "M 1193 208 C 1197 208 1192 213 1189 217 C 1186 222 1178 231 1176 237 C 1175 242 1177 244 1179 248 C 1181 251 1183 255 1186 257 C 1189 260 1191 262 1194 264 C 1198 265 1197 266 1207 269 C 1216 271 1241 274 1251 276 C 1262 278 1263 279 1268 281 C 1274 283 1278 286 1282 290 C 1286 294 1290 299 1292 303 C 1295 307 1296 312 1298 317 C 1300 322 1301 328 1301 334 C 1302 341 1303 347 1304 355 C 1304 364 1303 376 1304 385 C 1306 394 1311 402 1313 410 C 1316 419 1317 421 1319 434 C 1321 446 1319 473 1324 486 C 1328 499 1338 504 1343 512 C 1349 520 1352 527 1356 534 C 1359 541 1360 543 1364 554 C 1367 564 1373 586 1377 598 C 1382 610 1386 618 1391 626 C 1396 634 1402 643 1407 648 C 1412 652 1415 649 1420 654 C 1426 658 1436 667 1442 672 C 1448 676 1454 678 1458 680 C 1461 683 1461 684 1462 686 C 1463 688 1463 690 1463 692 C 1462 693 1461 695 1460 695 C 1458 696 1458 697 1454 696 C 1450 694 1436 685 1435 687 C 1434 690 1444 702 1447 710 C 1450 719 1453 731 1454 738 C 1455 744 1455 747 1454 750 C 1454 752 1453 752 1452 753 C 1451 754 1448 754 1447 756 C 1447 758 1448 763 1448 765 C 1448 767 1447 768 1446 768 C 1445 769 1443 770 1441 770 C 1439 770 1437 767 1435 767 C 1433 767 1431 769 1429 770 C 1428 770 1427 770 1425 770 C 1424 769 1423 768 1421 766 C 1420 764 1418 759 1416 758 C 1415 757 1412 760 1410 760 C 1409 759 1408 759 1406 757 C 1404 754 1400 749 1397 744 C 1395 739 1394 741 1389 727 C 1385 713 1383 686 1369 661 C 1355 636 1317 593 1304 576 C 1292 560 1296 565 1293 559 C 1289 554 1287 548 1284 543 C 1282 538 1280 534 1278 528 C 1277 522 1277 513 1274 506 C 1272 498 1266 490 1263 483 C 1260 475 1258 471 1256 460 C 1253 450 1249 427 1247 420 C 1245 413 1247 418 1246 420 C 1245 422 1243 428 1240 431 C 1238 435 1234 439 1232 442 C 1230 445 1231 431 1230 449 C 1230 467 1229 532 1229 551 C 1229 569 1229 555 1232 559 C 1234 564 1241 572 1245 577 C 1248 583 1250 586 1254 594 C 1258 603 1263 614 1267 626 C 1270 639 1274 653 1276 667 C 1278 682 1279 699 1279 715 C 1279 732 1279 749 1277 768 C 1275 786 1273 806 1269 826 C 1265 846 1261 865 1255 889 C 1249 913 1238 947 1233 970 C 1228 992 1226 1012 1225 1023 C 1224 1034 1224 1028 1225 1038 C 1227 1048 1233 1071 1236 1085 C 1238 1098 1240 1109 1241 1119 C 1242 1128 1243 1134 1243 1141 C 1243 1149 1243 1155 1242 1162 C 1241 1169 1242 1167 1237 1183 C 1233 1198 1221 1233 1216 1255 C 1210 1276 1207 1296 1206 1309 C 1204 1322 1204 1323 1205 1330 C 1206 1337 1209 1343 1210 1349 C 1211 1354 1210 1360 1210 1364 C 1210 1367 1208 1363 1211 1369 C 1214 1376 1223 1394 1228 1402 C 1234 1410 1241 1414 1244 1418 C 1247 1422 1246 1424 1245 1426 C 1245 1428 1244 1430 1242 1430 C 1241 1431 1246 1432 1235 1432 C 1225 1432 1190 1433 1178 1432 C 1167 1432 1168 1431 1166 1430 C 1163 1429 1163 1427 1162 1426 C 1161 1424 1161 1424 1160 1420 C 1160 1416 1160 1410 1161 1401 C 1162 1391 1165 1375 1166 1364 C 1168 1352 1167 1346 1167 1332 C 1167 1318 1167 1295 1166 1280 C 1165 1265 1166 1257 1163 1241 C 1161 1225 1155 1200 1152 1185 C 1150 1170 1150 1161 1150 1151 C 1150 1140 1150 1140 1152 1124 C 1154 1108 1160 1076 1162 1054 C 1163 1031 1162 1012 1161 989 C 1160 967 1156 944 1154 918 C 1152 891 1149 854 1148 829 C 1147 805 1147 788 1147 772 C 1148 757 1150 745 1151 739 C 1151 733 1151 737 1149 737 C 1147 737 1140 737 1138 737 C 1135 737 1135 737 1135 738 C 1134 738 1134 734 1134 740 C 1135 745 1137 754 1138 770 C 1138 787 1137 812 1136 838 C 1135 863 1133 898 1131 923 C 1129 948 1126 967 1124 987 C 1123 1007 1123 1031 1123 1044 C 1123 1057 1123 1051 1125 1065 C 1126 1079 1132 1110 1134 1126 C 1135 1142 1135 1149 1135 1160 C 1134 1172 1134 1180 1131 1195 C 1129 1209 1123 1228 1121 1248 C 1119 1268 1118 1296 1118 1315 C 1118 1334 1118 1350 1119 1364 C 1120 1379 1123 1391 1124 1400 C 1126 1409 1125 1415 1125 1419 C 1124 1424 1123 1427 1121 1429 C 1120 1431 1120 1431 1115 1432 C 1110 1432 1102 1433 1091 1433 C 1080 1433 1055 1432 1048 1432 C 1040 1431 1044 1431 1043 1431 C 1042 1430 1041 1430 1040 1428 C 1040 1426 1040 1422 1040 1420 C 1041 1418 1041 1418 1043 1416 C 1044 1414 1049 1411 1052 1409 C 1054 1406 1053 1409 1057 1402 C 1061 1395 1072 1376 1075 1367 C 1078 1358 1074 1354 1075 1348 C 1076 1342 1079 1336 1080 1329 C 1081 1323 1081 1320 1079 1307 C 1078 1294 1074 1273 1069 1253 C 1064 1232 1052 1197 1048 1182 C 1043 1167 1044 1170 1044 1163 C 1043 1157 1042 1151 1042 1144 C 1042 1137 1043 1131 1044 1121 C 1045 1112 1047 1100 1049 1086 C 1052 1072 1058 1048 1060 1037 C 1061 1026 1061 1032 1060 1021 C 1059 1010 1057 992 1053 970 C 1048 949 1036 915 1030 891 C 1024 867 1020 847 1016 827 C 1013 806 1010 787 1008 769 C 1007 750 1006 734 1006 718 C 1006 701 1007 685 1009 670 C 1011 655 1014 640 1018 627 C 1022 615 1027 602 1031 594 C 1035 586 1036 584 1040 578 C 1044 572 1050 564 1053 560 C 1056 555 1056 571 1056 552 C 1056 532 1056 464 1054 444 C 1052 424 1047 435 1044 431 C 1042 427 1041 415 1038 420 C 1036 425 1032 450 1030 461 C 1027 471 1024 477 1021 485 C 1018 492 1013 499 1011 506 C 1009 513 1009 521 1007 527 C 1006 533 1004 537 1001 542 C 999 548 996 554 992 559 C 989 565 993 560 981 577 C 968 594 928 645 916 660 C 905 675 916 659 912 670 C 909 681 900 713 896 726 C 892 738 890 740 887 745 C 885 750 882 754 880 756 C 878 758 876 759 874 760 C 872 760 871 757 869 758 C 867 759 865 764 864 766 C 862 768 862 770 859 770 C 857 770 853 767 850 767 C 847 767 845 770 843 770 C 841 770 839 769 839 768 C 838 767 837 766 837 764 C 837 762 839 758 838 756 C 837 755 834 754 833 753 C 832 752 831 753 831 750 C 831 747 830 744 831 737 C 832 730 835 717 838 709 C 842 701 852 689 850 687 C 849 685 834 695 830 696 C 825 697 825 695 824 694 C 822 693 822 691 822 689 C 823 687 823 685 824 684 C 825 682 825 681 828 679 C 831 677 837 676 843 672 C 849 667 859 657 865 653 C 870 649 873 652 878 648 C 882 643 888 634 892 629 C 896 623 898 619 901 614 C 903 610 904 610 908 599 C 911 589 918 564 921 553 C 925 543 926 541 929 534 C 933 527 936 521 941 513 C 947 505 957 499 962 486 C 966 472 965 443 967 431 C 968 418 969 418 972 410 C 974 402 979 393 981 384 C 983 374 981 363 982 354 C 982 344 984 333 985 325 C 987 318 988 313 990 308 C 992 303 995 299 998 295 C 1001 292 1004 289 1008 286 C 1011 283 1015 282 1020 280 C 1024 278 1026 277 1035 276 C 1045 274 1065 271 1074 270 C 1082 268 1082 267 1086 265 C 1091 262 1096 259 1099 257 C 1102 254 1104 252 1106 249 C 1107 245 1109 240 1109 238 C 1109 235 1109 236 1108 234 C 1107 232 1102 227 1101 224 C 1100 222 1100 219 1100 217 C 1101 216 1098 213 1102 214 C 1106 214 1115 219 1122 221 C 1129 222 1138 223 1145 222 C 1151 222 1153 221 1161 219 C 1169 217 1188 208 1193 208 Z",
|
|
2146
2146
|
"child-front": "M 354 265 C 338 265 320 265 312 265 C 304 266 306 266 305 267 C 303 268 303 267 303 269 C 303 271 302 275 303 278 C 303 281 304 284 305 288 C 307 292 311 300 313 303 C 314 306 314 305 315 305 C 316 306 318 304 319 307 C 320 309 319 317 320 322 C 322 326 326 329 327 335 C 327 341 326 353 325 359 C 324 364 324 364 321 368 C 317 372 308 379 302 383 C 296 387 289 391 284 393 C 279 395 278 396 271 396 C 264 396 251 395 244 396 C 237 396 234 397 228 400 C 223 404 215 410 210 415 C 204 421 198 429 195 434 C 192 440 191 443 190 447 C 189 451 189 454 189 460 C 188 466 188 473 189 483 C 189 492 192 506 191 517 C 189 528 182 537 179 548 C 177 559 180 571 176 582 C 172 593 160 606 155 616 C 150 626 147 636 144 643 C 142 649 143 644 141 657 C 138 671 133 704 129 724 C 125 743 119 766 116 776 C 113 786 114 781 113 783 C 111 785 112 786 108 788 C 104 791 93 796 88 799 C 83 802 81 802 77 807 C 73 811 68 821 64 826 C 60 831 54 834 52 837 C 49 840 50 841 50 842 C 50 844 51 845 53 846 C 54 847 57 847 59 847 C 62 846 65 845 68 843 C 71 841 75 836 78 835 C 80 833 80 834 81 834 C 81 835 82 835 82 836 C 82 837 82 840 82 842 C 82 844 84 841 81 847 C 77 854 66 875 62 882 C 59 889 60 887 60 889 C 60 890 60 892 61 893 C 61 893 62 894 63 894 C 63 894 64 895 65 895 C 66 894 65 897 69 893 C 72 888 82 873 86 868 C 89 863 91 860 92 862 C 92 864 90 871 88 878 C 86 884 80 898 78 903 C 77 908 78 907 78 908 C 78 910 79 911 80 912 C 80 912 81 912 82 912 C 83 912 84 912 86 911 C 87 910 88 912 91 904 C 95 897 107 868 109 867 C 111 867 105 894 104 902 C 104 909 105 911 106 913 C 107 915 108 915 110 914 C 111 914 111 917 114 909 C 117 901 123 873 125 865 C 128 858 127 865 127 866 C 128 867 128 865 128 870 C 129 875 130 892 131 897 C 133 902 134 900 135 900 C 136 900 137 900 138 898 C 139 897 139 896 140 890 C 141 884 141 873 143 860 C 146 847 153 825 155 812 C 157 800 155 792 156 785 C 156 779 156 779 158 772 C 161 765 164 758 173 741 C 181 723 201 686 208 669 C 215 653 214 653 216 642 C 219 631 219 614 222 604 C 226 593 232 588 236 579 C 240 570 244 555 246 549 C 248 544 248 547 248 547 C 249 547 249 542 251 548 C 252 553 254 571 257 581 C 259 591 264 597 266 606 C 268 615 267 623 267 636 C 267 648 265 667 264 681 C 263 694 263 703 260 717 C 257 730 250 748 247 764 C 243 780 240 799 239 811 C 237 823 237 827 236 837 C 236 846 236 855 236 868 C 236 880 237 901 238 913 C 239 924 240 930 241 937 C 242 945 244 952 246 959 C 248 966 254 974 256 980 C 257 986 257 986 256 994 C 255 1002 252 1017 252 1026 C 251 1035 254 1039 253 1049 C 253 1059 249 1073 247 1085 C 246 1097 245 1106 246 1120 C 247 1133 248 1147 251 1165 C 254 1182 262 1213 265 1227 C 267 1240 266 1236 266 1243 C 265 1251 263 1263 263 1270 C 263 1278 265 1285 266 1289 C 266 1293 265 1293 265 1294 C 264 1296 266 1295 262 1299 C 258 1303 246 1314 242 1318 C 238 1322 240 1323 239 1325 C 239 1327 237 1328 239 1330 C 240 1332 243 1337 247 1339 C 250 1341 255 1342 260 1344 C 265 1345 272 1347 276 1347 C 280 1348 281 1346 284 1346 C 287 1347 292 1349 294 1349 C 297 1350 297 1349 298 1349 C 300 1348 301 1347 303 1345 C 304 1344 307 1341 308 1339 C 309 1337 310 1338 310 1334 C 311 1331 310 1323 310 1317 C 311 1310 314 1305 314 1298 C 315 1290 316 1282 315 1273 C 314 1264 311 1254 310 1244 C 309 1233 310 1221 311 1210 C 311 1200 312 1193 314 1182 C 317 1172 323 1158 326 1149 C 328 1140 327 1138 328 1130 C 328 1121 328 1113 327 1100 C 325 1087 320 1062 320 1051 C 320 1041 325 1040 326 1035 C 327 1031 328 1032 328 1024 C 329 1016 324 1010 329 987 C 333 963 352 903 356 882 C 361 862 358 874 358 866 C 358 858 357 839 357 834 C 357 828 357 833 359 833 C 361 832 368 832 370 833 C 372 833 371 831 371 835 C 371 839 370 850 370 858 C 371 866 367 863 372 885 C 377 907 395 965 400 988 C 405 1011 400 1016 400 1024 C 400 1032 401 1031 402 1035 C 404 1040 408 1041 408 1051 C 408 1062 403 1086 402 1099 C 401 1112 401 1121 401 1130 C 401 1138 401 1140 403 1149 C 405 1158 411 1172 414 1182 C 417 1193 417 1201 418 1212 C 419 1222 419 1235 418 1245 C 418 1255 414 1264 413 1273 C 413 1282 414 1292 414 1299 C 415 1306 418 1311 418 1317 C 419 1322 417 1328 418 1332 C 418 1336 418 1336 420 1338 C 421 1340 423 1343 425 1344 C 426 1346 428 1348 430 1349 C 432 1349 433 1350 435 1349 C 438 1349 441 1347 444 1346 C 448 1346 449 1348 455 1347 C 461 1346 474 1342 480 1340 C 485 1337 487 1334 489 1333 C 490 1331 490 1332 490 1329 C 489 1327 490 1322 486 1317 C 482 1312 469 1303 465 1298 C 462 1294 463 1293 463 1289 C 463 1284 465 1277 465 1269 C 465 1262 463 1250 462 1244 C 462 1237 460 1243 463 1230 C 465 1216 474 1183 477 1165 C 481 1147 482 1133 482 1120 C 483 1107 482 1097 481 1085 C 480 1074 476 1060 475 1050 C 474 1039 477 1033 477 1024 C 476 1015 473 1003 473 996 C 472 988 471 985 473 979 C 474 973 479 967 482 960 C 484 954 485 950 487 941 C 488 933 489 923 490 912 C 491 901 492 888 492 876 C 492 864 492 849 492 838 C 492 828 491 825 490 813 C 488 801 486 783 482 767 C 479 750 472 736 468 714 C 465 692 462 654 461 636 C 460 619 460 616 462 607 C 464 597 470 588 472 579 C 475 569 477 553 478 548 C 479 543 479 547 480 547 C 481 547 480 543 482 549 C 484 555 489 573 493 582 C 497 591 503 593 506 604 C 509 614 510 633 512 643 C 514 654 512 651 519 668 C 527 685 550 728 558 746 C 567 763 567 764 569 770 C 572 777 572 778 572 785 C 573 792 572 801 574 813 C 576 826 582 847 585 860 C 587 872 587 882 588 888 C 589 895 589 896 591 898 C 592 900 593 900 594 900 C 595 899 596 901 597 896 C 598 890 599 874 600 869 C 601 864 600 859 603 865 C 605 872 612 901 614 909 C 617 917 617 913 618 914 C 620 915 622 914 622 913 C 623 913 624 911 624 910 C 624 908 625 909 624 902 C 623 895 617 867 619 868 C 621 868 633 898 638 906 C 642 913 642 911 644 912 C 645 913 647 912 648 912 C 650 911 650 910 651 909 C 651 907 652 908 650 903 C 649 898 643 886 641 879 C 639 872 636 863 636 861 C 637 860 641 865 645 871 C 649 876 657 889 660 893 C 663 897 662 894 663 895 C 664 895 665 895 666 894 C 666 894 667 893 668 893 C 668 892 672 896 668 889 C 665 881 652 855 648 848 C 644 840 646 844 646 842 C 646 840 646 838 646 836 C 647 835 647 835 648 834 C 648 834 648 833 651 835 C 653 836 657 841 661 843 C 664 845 667 846 670 847 C 673 847 675 846 677 845 C 678 844 679 842 679 841 C 678 839 679 839 676 836 C 674 833 668 830 664 825 C 660 821 655 811 651 807 C 648 802 646 802 641 799 C 635 796 625 791 621 789 C 617 786 617 785 616 783 C 614 781 615 785 613 776 C 610 767 605 751 600 728 C 596 706 589 662 584 643 C 580 624 579 627 573 617 C 568 607 557 594 553 582 C 548 571 551 559 549 548 C 546 537 539 528 538 517 C 536 506 540 491 540 482 C 540 472 540 464 539 458 C 539 451 538 449 537 444 C 536 440 535 437 532 432 C 529 427 523 419 518 414 C 513 409 506 404 500 401 C 495 398 492 396 485 396 C 477 395 463 396 456 396 C 449 395 450 396 444 393 C 439 391 431 387 425 382 C 419 378 410 370 406 366 C 402 361 403 359 403 354 C 402 349 401 340 402 335 C 403 330 407 327 408 322 C 409 317 408 310 409 307 C 410 304 413 307 416 303 C 418 300 422 292 423 287 C 425 283 426 279 426 276 C 426 273 426 270 425 269 C 423 267 421 267 418 266 C 415 266 420 266 409 266 C 398 266 371 265 354 265 Z",
|
|
2147
2147
|
"child-back": "M 1073 265 C 1057 265 1038 266 1030 266 C 1023 266 1027 266 1026 267 C 1024 268 1023 268 1023 269 C 1022 271 1022 275 1022 278 C 1023 282 1024 286 1025 290 C 1027 294 1031 300 1032 303 C 1034 306 1034 305 1035 305 C 1036 306 1038 304 1039 306 C 1039 309 1039 317 1040 322 C 1041 326 1045 329 1046 335 C 1047 341 1046 352 1045 357 C 1045 362 1044 361 1044 363 C 1043 364 1044 364 1040 368 C 1037 371 1028 379 1022 383 C 1016 387 1009 391 1004 393 C 999 395 998 395 991 396 C 984 396 969 395 962 396 C 955 397 954 397 948 401 C 943 404 935 410 929 415 C 924 421 918 429 915 434 C 912 439 911 441 910 445 C 909 450 908 448 908 460 C 908 472 912 502 910 517 C 908 532 901 538 899 549 C 896 560 900 571 896 582 C 892 593 880 606 875 616 C 869 626 866 636 864 643 C 861 649 863 643 860 657 C 858 671 852 707 848 727 C 844 746 838 766 835 776 C 833 785 833 782 832 784 C 830 786 832 786 828 788 C 824 791 813 796 808 799 C 803 802 801 802 797 807 C 793 811 789 820 785 825 C 780 830 774 834 771 837 C 769 840 769 841 769 842 C 770 844 770 845 772 846 C 774 847 777 847 779 847 C 782 846 784 845 787 843 C 790 841 795 836 797 835 C 799 833 800 834 800 834 C 801 835 801 835 802 836 C 802 837 802 840 802 842 C 802 844 804 839 800 847 C 797 855 783 881 780 889 C 776 896 780 892 780 892 C 781 893 781 894 782 894 C 783 894 784 895 785 894 C 786 894 785 897 788 893 C 792 888 801 873 805 868 C 809 863 811 860 811 862 C 812 864 810 871 807 878 C 805 884 799 898 798 903 C 796 908 797 907 797 908 C 798 910 799 911 799 912 C 800 912 801 913 802 913 C 803 912 804 913 805 911 C 807 910 807 912 811 905 C 815 897 827 868 829 868 C 831 867 825 895 824 902 C 823 909 824 908 824 910 C 824 912 825 913 826 913 C 827 914 829 915 830 914 C 831 913 832 916 834 908 C 836 901 841 878 843 871 C 845 863 845 865 845 865 C 846 865 847 864 848 869 C 849 874 850 890 851 896 C 852 901 852 899 854 900 C 855 900 856 900 857 898 C 859 896 859 895 860 889 C 861 882 861 871 863 859 C 866 846 872 827 874 815 C 876 803 875 793 876 785 C 876 778 876 778 879 770 C 881 763 884 758 892 740 C 900 723 921 685 928 668 C 936 651 934 651 937 641 C 939 630 939 614 942 604 C 945 593 952 588 956 579 C 960 570 964 555 966 549 C 968 544 967 547 968 547 C 969 547 968 542 970 547 C 971 552 973 569 976 578 C 978 588 984 596 985 605 C 987 614 988 614 987 632 C 986 650 984 691 980 714 C 977 737 969 751 965 768 C 962 785 959 806 958 818 C 956 829 956 828 956 838 C 956 848 955 865 956 877 C 956 889 957 901 958 912 C 959 923 960 934 962 942 C 963 951 964 954 966 960 C 969 966 974 974 976 980 C 977 986 976 987 975 994 C 975 1002 972 1015 972 1024 C 971 1033 974 1039 973 1049 C 972 1060 968 1073 967 1085 C 966 1097 965 1107 966 1121 C 966 1135 968 1150 971 1167 C 974 1185 983 1215 985 1228 C 987 1241 986 1236 985 1243 C 985 1251 983 1263 983 1270 C 983 1278 985 1286 985 1290 C 986 1294 985 1293 985 1295 C 984 1296 986 1295 982 1299 C 978 1303 966 1314 962 1318 C 958 1323 959 1323 959 1325 C 958 1327 957 1328 958 1330 C 960 1333 964 1337 967 1339 C 971 1341 976 1343 980 1344 C 985 1345 991 1347 995 1347 C 999 1348 1001 1346 1004 1346 C 1007 1347 1011 1349 1013 1349 C 1015 1350 1016 1349 1017 1349 C 1019 1348 1020 1348 1022 1346 C 1024 1344 1028 1340 1030 1335 C 1031 1330 1029 1322 1030 1316 C 1031 1310 1033 1303 1034 1298 C 1034 1293 1033 1289 1033 1285 C 1034 1281 1036 1280 1035 1274 C 1034 1267 1030 1257 1030 1246 C 1029 1235 1030 1219 1030 1209 C 1031 1198 1032 1192 1034 1182 C 1036 1172 1043 1158 1045 1150 C 1047 1141 1047 1137 1047 1129 C 1048 1121 1048 1115 1046 1102 C 1045 1089 1040 1062 1040 1051 C 1040 1040 1044 1041 1046 1036 C 1047 1032 1047 1033 1048 1025 C 1048 1016 1044 1010 1048 986 C 1053 962 1071 904 1076 882 C 1081 860 1078 864 1078 856 C 1078 848 1075 838 1077 834 C 1079 830 1087 832 1090 833 C 1092 833 1091 829 1091 834 C 1091 839 1090 854 1090 862 C 1090 871 1087 864 1092 885 C 1097 906 1115 969 1119 987 C 1124 1005 1120 991 1120 995 C 1120 998 1119 1005 1119 1010 C 1119 1015 1120 1021 1120 1025 C 1120 1030 1121 1031 1122 1036 C 1123 1040 1128 1041 1128 1052 C 1128 1062 1123 1087 1122 1100 C 1120 1113 1120 1123 1121 1131 C 1121 1139 1120 1141 1122 1149 C 1125 1158 1131 1172 1134 1182 C 1136 1192 1137 1199 1137 1209 C 1138 1220 1139 1233 1138 1244 C 1137 1255 1133 1264 1133 1273 C 1132 1282 1133 1292 1134 1299 C 1135 1306 1137 1311 1138 1317 C 1138 1322 1137 1329 1137 1332 C 1138 1336 1138 1336 1139 1338 C 1141 1340 1144 1344 1145 1345 C 1147 1347 1148 1348 1150 1349 C 1151 1349 1153 1350 1155 1349 C 1158 1349 1161 1347 1164 1346 C 1167 1346 1168 1348 1172 1347 C 1176 1347 1183 1345 1188 1344 C 1193 1342 1198 1341 1201 1339 C 1204 1337 1206 1334 1208 1333 C 1209 1332 1209 1332 1209 1330 C 1209 1328 1209 1326 1208 1324 C 1208 1322 1209 1322 1205 1318 C 1202 1314 1189 1303 1186 1299 C 1182 1295 1184 1296 1183 1294 C 1183 1293 1182 1293 1182 1289 C 1183 1285 1185 1276 1185 1269 C 1185 1261 1183 1251 1182 1244 C 1182 1238 1180 1242 1183 1229 C 1185 1216 1194 1183 1197 1164 C 1200 1146 1201 1133 1202 1119 C 1202 1106 1202 1096 1201 1085 C 1199 1073 1195 1059 1195 1049 C 1194 1039 1197 1034 1196 1024 C 1196 1015 1193 1001 1192 994 C 1191 986 1191 985 1192 980 C 1194 974 1199 966 1202 960 C 1204 954 1204 951 1206 943 C 1207 936 1209 924 1210 913 C 1211 902 1212 890 1212 878 C 1212 866 1212 849 1212 839 C 1212 829 1211 828 1210 816 C 1208 804 1206 786 1203 769 C 1199 752 1191 735 1187 714 C 1184 692 1182 655 1181 637 C 1180 619 1180 615 1182 606 C 1184 597 1188 592 1191 582 C 1194 573 1196 554 1198 548 C 1199 542 1199 547 1200 547 C 1201 547 1200 545 1202 550 C 1204 555 1207 569 1211 578 C 1215 587 1222 593 1226 604 C 1229 615 1229 632 1231 643 C 1234 653 1231 650 1239 668 C 1248 687 1274 737 1282 754 C 1290 771 1287 766 1289 771 C 1291 776 1291 778 1292 786 C 1293 793 1291 802 1293 814 C 1295 826 1302 847 1304 859 C 1307 871 1306 881 1307 887 C 1308 894 1309 895 1310 897 C 1311 899 1312 900 1314 900 C 1315 900 1316 901 1317 896 C 1318 891 1319 875 1320 870 C 1320 864 1321 865 1322 865 C 1323 865 1322 862 1324 869 C 1326 876 1331 901 1333 908 C 1336 916 1336 913 1338 914 C 1339 915 1341 914 1342 914 C 1343 913 1343 912 1343 910 C 1344 908 1344 910 1344 903 C 1343 896 1337 867 1339 868 C 1341 868 1352 897 1356 904 C 1360 911 1360 909 1362 911 C 1363 912 1364 912 1365 912 C 1366 913 1367 913 1368 912 C 1369 911 1370 910 1370 909 C 1370 908 1371 909 1370 903 C 1368 898 1363 885 1360 878 C 1358 871 1356 863 1356 862 C 1357 860 1360 865 1364 870 C 1368 875 1377 889 1380 893 C 1383 897 1382 894 1383 895 C 1384 895 1385 895 1386 894 C 1387 893 1388 892 1388 890 C 1388 888 1390 890 1386 883 C 1383 876 1371 854 1367 847 C 1364 840 1366 843 1366 841 C 1366 840 1366 837 1366 836 C 1367 835 1367 835 1368 834 C 1368 834 1369 833 1371 835 C 1373 836 1378 841 1381 843 C 1384 845 1386 846 1389 847 C 1392 847 1394 847 1396 846 C 1397 845 1398 843 1398 842 C 1398 840 1399 839 1396 837 C 1394 834 1388 831 1384 826 C 1380 821 1375 811 1370 806 C 1366 802 1365 801 1360 798 C 1354 795 1344 791 1340 788 C 1336 786 1337 786 1336 784 C 1335 782 1335 785 1332 776 C 1329 766 1323 744 1319 725 C 1315 705 1311 673 1308 660 C 1305 646 1306 650 1304 642 C 1301 635 1298 626 1293 616 C 1287 606 1276 594 1272 583 C 1268 572 1271 559 1268 547 C 1266 536 1259 531 1257 517 C 1256 502 1259 470 1259 458 C 1259 446 1258 449 1257 445 C 1256 441 1255 438 1252 433 C 1249 427 1244 420 1238 415 C 1233 409 1225 403 1219 400 C 1214 397 1212 396 1205 396 C 1198 395 1183 396 1176 396 C 1170 395 1169 396 1163 393 C 1158 391 1149 386 1143 381 C 1136 376 1129 370 1125 365 C 1122 360 1123 357 1122 352 C 1121 347 1121 339 1122 334 C 1122 329 1126 327 1127 323 C 1129 318 1128 309 1129 306 C 1130 303 1132 306 1133 306 C 1134 305 1134 306 1136 303 C 1137 300 1142 290 1144 285 C 1145 280 1146 277 1146 274 C 1146 271 1147 269 1144 268 C 1141 267 1140 266 1128 265 C 1116 265 1089 264 1073 265 Z"
|
|
2148
|
-
},
|
|
2148
|
+
}, $2 = [
|
|
2149
2149
|
"observation",
|
|
2150
2150
|
"lesion",
|
|
2151
2151
|
"pain",
|
|
@@ -2158,17 +2158,17 @@ const $ = {
|
|
|
2158
2158
|
treatment: { shape: "square", tone: "success" },
|
|
2159
2159
|
note: { shape: "diamond", tone: "neutral" }
|
|
2160
2160
|
};
|
|
2161
|
-
function
|
|
2161
|
+
function I2(C) {
|
|
2162
2162
|
if (C.marker) return C.marker;
|
|
2163
2163
|
const a = C.shape;
|
|
2164
2164
|
if (a.kind === "ellipse") return { x: a.cx, y: a.cy };
|
|
2165
2165
|
if (a.kind === "rect") return { x: a.x + a.w / 2, y: a.y + a.h / 2 };
|
|
2166
2166
|
if (a.kind === "path") return { x: 0, y: 0 };
|
|
2167
|
-
const t = a.points.length,
|
|
2168
|
-
(d, [
|
|
2167
|
+
const t = a.points.length, r = a.points.reduce(
|
|
2168
|
+
(d, [L, D]) => ({ x: d.x + L, y: d.y + D }),
|
|
2169
2169
|
{ x: 0, y: 0 }
|
|
2170
2170
|
);
|
|
2171
|
-
return { x:
|
|
2171
|
+
return { x: r.x / t, y: r.y / t };
|
|
2172
2172
|
}
|
|
2173
2173
|
const E2 = {
|
|
2174
2174
|
"male-front": ["face", "hair"],
|
|
@@ -2177,32 +2177,36 @@ const E2 = {
|
|
|
2177
2177
|
"female-back": ["hair", "tie"]
|
|
2178
2178
|
};
|
|
2179
2179
|
function T(C, a) {
|
|
2180
|
-
return C.silhouette.split(/(?=M)/).filter((t) => t.trim().length > 0).map((t,
|
|
2180
|
+
return C.silhouette.split(/(?=M)/).filter((t) => t.trim().length > 0).map((t, r) => ({ part: E2[a][r] ?? "hair", d: t }));
|
|
2181
2181
|
}
|
|
2182
2182
|
const R2 = /* @__PURE__ */ new Set(["knees", "ankles", "hands", "feet"]);
|
|
2183
|
+
function F2(C) {
|
|
2184
|
+
return C === "midline" ? C : C === "left" ? "right" : "left";
|
|
2185
|
+
}
|
|
2183
2186
|
function A(C, a) {
|
|
2184
|
-
|
|
2185
|
-
|
|
2187
|
+
const t = a.endsWith("-back");
|
|
2188
|
+
return C.muscles.map((r) => {
|
|
2189
|
+
const d = N2[a][r.id], L = t ? F2(r.side) : r.side;
|
|
2186
2190
|
return {
|
|
2187
|
-
id: t.id,
|
|
2188
|
-
labelKey:
|
|
2189
|
-
side:
|
|
2190
|
-
tissue: R2.has(
|
|
2191
|
+
id: t ? r.id.replace(/-[lr]$/, L === "left" ? "-l" : "-r") : r.id,
|
|
2192
|
+
labelKey: r.labelKey,
|
|
2193
|
+
side: L,
|
|
2194
|
+
tissue: R2.has(r.id.replace(/-[lr]$/, "")) ? "tendon" : "skeletal",
|
|
2191
2195
|
shape: {
|
|
2192
2196
|
kind: "path",
|
|
2193
|
-
d:
|
|
2194
|
-
...
|
|
2197
|
+
d: r.d,
|
|
2198
|
+
...r.fillRule ? { fillRule: r.fillRule } : {}
|
|
2195
2199
|
},
|
|
2196
|
-
...
|
|
2197
|
-
marker: { x:
|
|
2200
|
+
...d ? { details: [{ kind: "path", d, paint: "fibre" }] } : {},
|
|
2201
|
+
marker: { x: r.cx, y: r.cy }
|
|
2198
2202
|
};
|
|
2199
2203
|
});
|
|
2200
2204
|
}
|
|
2201
2205
|
const X = {
|
|
2202
2206
|
d: "M 224 376 C 240 383.5 270 386 290 391 C 304 395 312.5 405 312.5 418.5 C 312.5 436.5 296 450.5 268.5 450.5 C 242.5 450.5 221.5 438 215.5 418.5 C 211.5 402.5 213.5 386.5 224 376 Z",
|
|
2203
2207
|
areola: { cx: 262, cy: 419 }
|
|
2204
|
-
},
|
|
2205
|
-
function
|
|
2208
|
+
}, T2 = 320.5, X1 = (C) => 2 * T2 - C;
|
|
2209
|
+
function A2(C) {
|
|
2206
2210
|
let a = 0;
|
|
2207
2211
|
return C.replace(
|
|
2208
2212
|
/-?\d+(?:\.\d+)?/g,
|
|
@@ -2212,22 +2216,22 @@ function T2(C) {
|
|
|
2212
2216
|
);
|
|
2213
2217
|
}
|
|
2214
2218
|
function O1(C) {
|
|
2215
|
-
const a = C === "left", t = a ? X1(X.areola.cx) : X.areola.cx,
|
|
2219
|
+
const a = C === "left", t = a ? X1(X.areola.cx) : X.areola.cx, r = X.areola.cy;
|
|
2216
2220
|
return {
|
|
2217
2221
|
id: `breast-${a ? "l" : "r"}`,
|
|
2218
2222
|
labelKey: "breast",
|
|
2219
2223
|
side: C,
|
|
2220
2224
|
group: "reproductive",
|
|
2221
2225
|
tissue: "gland",
|
|
2222
|
-
shape: { kind: "path", d: a ?
|
|
2226
|
+
shape: { kind: "path", d: a ? A2(X.d) : X.d },
|
|
2223
2227
|
details: [
|
|
2224
|
-
{ kind: "ellipse", cx: t, cy:
|
|
2225
|
-
{ kind: "ellipse", cx: t, cy:
|
|
2228
|
+
{ kind: "ellipse", cx: t, cy: r, rx: 9.5, ry: 9, paint: "mucosa" },
|
|
2229
|
+
{ kind: "ellipse", cx: t, cy: r, rx: 3.2, ry: 3.2, paint: "erectile" }
|
|
2226
2230
|
],
|
|
2227
|
-
marker: { x: t, y:
|
|
2231
|
+
marker: { x: t, y: r }
|
|
2228
2232
|
};
|
|
2229
2233
|
}
|
|
2230
|
-
const
|
|
2234
|
+
const B2 = [O1("right"), O1("left")], B = "0 0 724 1448", j = {
|
|
2231
2235
|
"male-front": "translate(-26.91 -49.02) scale(1.0678)",
|
|
2232
2236
|
"male-back": "translate(-795.24 -49.05) scale(1.0678)",
|
|
2233
2237
|
"female-front": "translate(62.31 54) scale(0.9351)",
|
|
@@ -2244,7 +2248,7 @@ const A2 = [O1("right"), O1("left")], B = "0 0 724 1448", j = {
|
|
|
2244
2248
|
}, V1 = {
|
|
2245
2249
|
front: `translate(58.65 268.45) scale(0.8328) translate(0 ${_1.drop}) translate(-65.54 -45.66) scale(1.18)`,
|
|
2246
2250
|
back: `translate(-540.65 268.42) scale(0.8329) translate(0 ${_1.drop}) translate(-195.10 -42.99) scale(1.18)`
|
|
2247
|
-
},
|
|
2251
|
+
}, j2 = /* @__PURE__ */ new Set([
|
|
2248
2252
|
"adductors",
|
|
2249
2253
|
"quadriceps",
|
|
2250
2254
|
"hamstring",
|
|
@@ -2256,13 +2260,13 @@ const A2 = [O1("right"), O1("left")], B = "0 0 724 1448", j = {
|
|
|
2256
2260
|
"gluteal"
|
|
2257
2261
|
]);
|
|
2258
2262
|
function H1(C) {
|
|
2259
|
-
const { legScale: a, sole: t, drop:
|
|
2263
|
+
const { legScale: a, sole: t, drop: r } = _1;
|
|
2260
2264
|
return C.map((d) => {
|
|
2261
2265
|
var O;
|
|
2262
|
-
const
|
|
2263
|
-
x:
|
|
2264
|
-
y:
|
|
2265
|
-
}), e1 = (
|
|
2266
|
+
const L = j2.has(d.id.replace(/-[lr]$/, "")), D = L ? `matrix(1 0 0 ${a} 0 ${Math.round(t * (1 - a) * 100) / 100})` : `translate(0 ${r})`, J = (m) => ({
|
|
2267
|
+
x: m.x,
|
|
2268
|
+
y: L ? t - (t - m.y) * a : m.y + r
|
|
2269
|
+
}), e1 = (m) => m.kind === "path" ? { ...m, transform: D } : m;
|
|
2266
2270
|
return {
|
|
2267
2271
|
...d,
|
|
2268
2272
|
shape: e1(d.shape),
|
|
@@ -2322,7 +2326,7 @@ const Y = {
|
|
|
2322
2326
|
bodyDetail: F["female-front"],
|
|
2323
2327
|
regions: [
|
|
2324
2328
|
...A(x1, "female-front"),
|
|
2325
|
-
...
|
|
2329
|
+
...B2
|
|
2326
2330
|
]
|
|
2327
2331
|
},
|
|
2328
2332
|
"muscular-back-female": {
|
|
@@ -2377,32 +2381,32 @@ const Y = {
|
|
|
2377
2381
|
regions: H1(A(R, "male-back"))
|
|
2378
2382
|
}
|
|
2379
2383
|
};
|
|
2380
|
-
function
|
|
2384
|
+
function m3(C) {
|
|
2381
2385
|
return Y[C];
|
|
2382
2386
|
}
|
|
2383
|
-
function
|
|
2387
|
+
function D2(C) {
|
|
2384
2388
|
return Object.values(Y).filter((a) => a.figure === C);
|
|
2385
2389
|
}
|
|
2386
|
-
function
|
|
2390
|
+
function h3(C, a) {
|
|
2387
2391
|
var t;
|
|
2388
|
-
return (t = Y[C]) == null ? void 0 : t.regions.find((
|
|
2392
|
+
return (t = Y[C]) == null ? void 0 : t.regions.find((r) => r.id === a);
|
|
2389
2393
|
}
|
|
2390
|
-
function
|
|
2391
|
-
const t = Object.values(Y),
|
|
2394
|
+
function O2(C, a) {
|
|
2395
|
+
const t = Object.values(Y), r = (d) => d.regions.some((L) => L.id === C);
|
|
2392
2396
|
return t.find(
|
|
2393
|
-
(d) => d.figure === (a ?? "adult-male") &&
|
|
2394
|
-
) ?? t.find(
|
|
2397
|
+
(d) => d.figure === (a ?? "adult-male") && r(d)
|
|
2398
|
+
) ?? t.find(r);
|
|
2395
2399
|
}
|
|
2396
2400
|
const P1 = "muscular-front";
|
|
2397
|
-
function
|
|
2401
|
+
function f3(C, a) {
|
|
2398
2402
|
return a != null && a < 12 ? "child" : C === "f" ? "adult-female" : "adult-male";
|
|
2399
2403
|
}
|
|
2400
|
-
function
|
|
2404
|
+
function y3() {
|
|
2401
2405
|
return {};
|
|
2402
2406
|
}
|
|
2403
2407
|
function Y1() {
|
|
2404
2408
|
const { t: C } = G1("ui");
|
|
2405
|
-
return
|
|
2409
|
+
return f(
|
|
2406
2410
|
(a) => {
|
|
2407
2411
|
const t = C(`muscleScheme.region.${a.labelKey}`);
|
|
2408
2412
|
return a.side !== "left" && a.side !== "right" ? t : C(`muscleScheme.sided.${a.labelKey}.${a.side}`, {
|
|
@@ -2412,39 +2416,39 @@ function Y1() {
|
|
|
2412
2416
|
[C]
|
|
2413
2417
|
);
|
|
2414
2418
|
}
|
|
2415
|
-
function
|
|
2419
|
+
function k3() {
|
|
2416
2420
|
const C = Y1();
|
|
2417
|
-
return
|
|
2421
|
+
return f(
|
|
2418
2422
|
(a, t) => {
|
|
2419
2423
|
var d;
|
|
2420
|
-
const
|
|
2421
|
-
(
|
|
2424
|
+
const r = (d = O2(a, t)) == null ? void 0 : d.regions.find(
|
|
2425
|
+
(L) => L.id === a
|
|
2422
2426
|
);
|
|
2423
|
-
return
|
|
2427
|
+
return r ? C(r) : a;
|
|
2424
2428
|
},
|
|
2425
2429
|
[C]
|
|
2426
2430
|
);
|
|
2427
2431
|
}
|
|
2428
|
-
const
|
|
2432
|
+
const V2 = "ds:[stroke:var(--background)] ds:[stroke-width:3] ds:[paint-order:stroke] ds:[stroke-linejoin:round] ds:[vector-effect:non-scaling-stroke]", H2 = {
|
|
2429
2433
|
neutral: "ds:[fill:var(--muted-foreground)]",
|
|
2430
2434
|
info: "ds:[fill:var(--info)]",
|
|
2431
2435
|
success: "ds:[fill:var(--success)]",
|
|
2432
2436
|
warning: "ds:[fill:var(--warning-readable)]",
|
|
2433
2437
|
error: "ds:[fill:var(--destructive)]",
|
|
2434
2438
|
accent: "ds:[fill:var(--accent)]"
|
|
2435
|
-
},
|
|
2436
|
-
function
|
|
2439
|
+
}, P2 = "ds:[fill:var(--muscle-finding-color)]";
|
|
2440
|
+
function U2(C) {
|
|
2437
2441
|
if (C && !(typeof CSS < "u" && !CSS.supports("color", C)))
|
|
2438
2442
|
return { "--muscle-finding-color": C };
|
|
2439
2443
|
}
|
|
2440
2444
|
function J1(C) {
|
|
2441
|
-
const a =
|
|
2445
|
+
const a = U2(C.color);
|
|
2442
2446
|
return {
|
|
2443
|
-
className: a ?
|
|
2447
|
+
className: a ? P2 : H2[o1[C.type].tone],
|
|
2444
2448
|
style: a
|
|
2445
2449
|
};
|
|
2446
2450
|
}
|
|
2447
|
-
function
|
|
2451
|
+
function G2({ finding: C }) {
|
|
2448
2452
|
const a = o1[C.type], t = J1(C);
|
|
2449
2453
|
return /* @__PURE__ */ i(
|
|
2450
2454
|
"svg",
|
|
@@ -2465,7 +2469,7 @@ function U2({ finding: C }) {
|
|
|
2465
2469
|
}
|
|
2466
2470
|
);
|
|
2467
2471
|
}
|
|
2468
|
-
const
|
|
2472
|
+
const W2 = [
|
|
2469
2473
|
"ds:[--am-ink:var(--anatomy-ink,color-mix(in_oklab,var(--color-red-900)_62%,var(--color-grey-900)))]",
|
|
2470
2474
|
"ds:[--am-skeletal:var(--anatomy-skeletal,color-mix(in_oklab,var(--color-red-400)_60%,color-mix(in_oklab,var(--color-grey-800)_70%,var(--color-red-700))))]",
|
|
2471
2475
|
"ds:[--am-tendon:var(--anatomy-tendon,color-mix(in_oklab,var(--color-yellow-50)_60%,var(--color-grey-600)))]",
|
|
@@ -2481,22 +2485,22 @@ const G2 = [
|
|
|
2481
2485
|
"ds:[--am-membrane:var(--anatomy-membrane,color-mix(in_oklab,var(--color-red-100)_40%,var(--color-grey-500)))]",
|
|
2482
2486
|
"ds:[--am-fascia:var(--anatomy-fascia,color-mix(in_oklab,var(--color-orange-100)_55%,var(--color-red-100)))]",
|
|
2483
2487
|
"ds:[--am-highlight:var(--anatomy-highlight,var(--color-grey-50))]"
|
|
2484
|
-
].join(" "),
|
|
2485
|
-
skeletal: `ds:[fill:var(--am-skeletal)] ds:[stroke:color-mix(in_oklab,var(--am-skeletal)_45%,var(--am-ink))] ${
|
|
2486
|
-
tendon: `ds:[fill:var(--am-tendon)] ds:[stroke:color-mix(in_oklab,var(--am-tendon)_40%,var(--am-ink))] ${
|
|
2488
|
+
].join(" "), u = "ds:[stroke-width:1.1] ds:[stroke-linejoin:round] ds:[vector-effect:non-scaling-stroke]", y = {
|
|
2489
|
+
skeletal: `ds:[fill:var(--am-skeletal)] ds:[stroke:color-mix(in_oklab,var(--am-skeletal)_45%,var(--am-ink))] ${u}`,
|
|
2490
|
+
tendon: `ds:[fill:var(--am-tendon)] ds:[stroke:color-mix(in_oklab,var(--am-tendon)_40%,var(--am-ink))] ${u}`,
|
|
2487
2491
|
fibre: "ds:[fill:none] ds:[stroke:var(--am-ink)] ds:[stroke-opacity:0.3] ds:[stroke-width:0.75] ds:[stroke-linecap:round] ds:[stroke-linejoin:round] ds:[vector-effect:non-scaling-stroke]",
|
|
2488
|
-
muscle: `ds:[fill:var(--am-muscle)] ds:[stroke:color-mix(in_oklab,var(--am-muscle)_32%,var(--am-ink))] ${
|
|
2489
|
-
mucosa: `ds:[fill:var(--am-mucosa)] ds:[stroke:color-mix(in_oklab,var(--am-mucosa)_32%,var(--am-ink))] ${
|
|
2490
|
-
gland: `ds:[fill:var(--am-gland)] ds:[stroke:color-mix(in_oklab,var(--am-gland)_32%,var(--am-ink))] ${
|
|
2491
|
-
gonad: `ds:[fill:var(--am-gonad)] ds:[stroke:color-mix(in_oklab,var(--am-gonad)_32%,var(--am-ink))] ${
|
|
2492
|
-
duct: `ds:[fill:var(--am-duct)] ds:[stroke:color-mix(in_oklab,var(--am-duct)_32%,var(--am-ink))] ${
|
|
2493
|
-
urinary: `ds:[fill:var(--am-urinary)] ds:[stroke:color-mix(in_oklab,var(--am-urinary)_32%,var(--am-ink))] ${
|
|
2494
|
-
erectile: `ds:[fill:var(--am-erectile)] ds:[stroke:color-mix(in_oklab,var(--am-erectile)_32%,var(--am-ink))] ${
|
|
2495
|
-
skin: `ds:[fill:var(--am-skin)] ds:[stroke:color-mix(in_oklab,var(--am-skin)_32%,var(--am-ink))] ${
|
|
2496
|
-
cavity: `ds:[fill:var(--am-cavity)] ds:[stroke:color-mix(in_oklab,var(--am-cavity)_32%,var(--am-ink))] ${
|
|
2497
|
-
opening: `ds:[fill:color-mix(in_oklab,var(--am-cavity)_72%,var(--am-mucosa))] ds:[stroke:color-mix(in_oklab,var(--am-cavity)_50%,var(--am-ink))] ${
|
|
2498
|
-
fascia: `ds:[fill:var(--am-fascia)] ds:[stroke:color-mix(in_oklab,var(--am-fascia)_32%,var(--am-ink))] ${
|
|
2499
|
-
membrane: `ds:[fill:var(--am-membrane)] ds:[fill-opacity:0.55] ds:[stroke:color-mix(in_oklab,var(--am-membrane)_40%,var(--am-ink))] ds:[stroke-opacity:0.45] ${
|
|
2492
|
+
muscle: `ds:[fill:var(--am-muscle)] ds:[stroke:color-mix(in_oklab,var(--am-muscle)_32%,var(--am-ink))] ${u}`,
|
|
2493
|
+
mucosa: `ds:[fill:var(--am-mucosa)] ds:[stroke:color-mix(in_oklab,var(--am-mucosa)_32%,var(--am-ink))] ${u}`,
|
|
2494
|
+
gland: `ds:[fill:var(--am-gland)] ds:[stroke:color-mix(in_oklab,var(--am-gland)_32%,var(--am-ink))] ${u}`,
|
|
2495
|
+
gonad: `ds:[fill:var(--am-gonad)] ds:[stroke:color-mix(in_oklab,var(--am-gonad)_32%,var(--am-ink))] ${u}`,
|
|
2496
|
+
duct: `ds:[fill:var(--am-duct)] ds:[stroke:color-mix(in_oklab,var(--am-duct)_32%,var(--am-ink))] ${u}`,
|
|
2497
|
+
urinary: `ds:[fill:var(--am-urinary)] ds:[stroke:color-mix(in_oklab,var(--am-urinary)_32%,var(--am-ink))] ${u}`,
|
|
2498
|
+
erectile: `ds:[fill:var(--am-erectile)] ds:[stroke:color-mix(in_oklab,var(--am-erectile)_32%,var(--am-ink))] ${u}`,
|
|
2499
|
+
skin: `ds:[fill:var(--am-skin)] ds:[stroke:color-mix(in_oklab,var(--am-skin)_32%,var(--am-ink))] ${u}`,
|
|
2500
|
+
cavity: `ds:[fill:var(--am-cavity)] ds:[stroke:color-mix(in_oklab,var(--am-cavity)_32%,var(--am-ink))] ${u}`,
|
|
2501
|
+
opening: `ds:[fill:color-mix(in_oklab,var(--am-cavity)_72%,var(--am-mucosa))] ds:[stroke:color-mix(in_oklab,var(--am-cavity)_50%,var(--am-ink))] ${u}`,
|
|
2502
|
+
fascia: `ds:[fill:var(--am-fascia)] ds:[stroke:color-mix(in_oklab,var(--am-fascia)_32%,var(--am-ink))] ${u}`,
|
|
2503
|
+
membrane: `ds:[fill:var(--am-membrane)] ds:[fill-opacity:0.55] ds:[stroke:color-mix(in_oklab,var(--am-membrane)_40%,var(--am-ink))] ds:[stroke-opacity:0.45] ${u}`,
|
|
2500
2504
|
ligament: "ds:[fill:var(--am-membrane)] ds:[stroke:color-mix(in_oklab,var(--am-membrane)_40%,var(--am-ink))] ds:[stroke-width:0.8] ds:[vector-effect:non-scaling-stroke]",
|
|
2501
2505
|
follicle: "ds:[fill:var(--am-highlight)] ds:[fill-opacity:0.6] ds:[stroke:color-mix(in_oklab,var(--am-gonad)_45%,var(--am-ink))] ds:[stroke-opacity:0.65] ds:[stroke-width:0.7] ds:[vector-effect:non-scaling-stroke]",
|
|
2502
2506
|
trigone: "ds:[fill:var(--am-muscle)] ds:[fill-opacity:0.55] ds:[stroke:none]",
|
|
@@ -2509,18 +2513,18 @@ const G2 = [
|
|
|
2509
2513
|
// Body context drawn on the panel, not on tissue: the page's muted ink, so
|
|
2510
2514
|
// it holds up on a dark panel too.
|
|
2511
2515
|
context: "ds:[fill:none] ds:[stroke:var(--muted-foreground)] ds:[stroke-opacity:0.55] ds:[stroke-width:1] ds:[stroke-linecap:round] ds:[vector-effect:non-scaling-stroke]"
|
|
2512
|
-
},
|
|
2513
|
-
skeletal:
|
|
2514
|
-
tendon:
|
|
2515
|
-
muscle:
|
|
2516
|
-
mucosa:
|
|
2517
|
-
gland:
|
|
2518
|
-
gonad:
|
|
2519
|
-
duct:
|
|
2520
|
-
urinary:
|
|
2521
|
-
erectile:
|
|
2522
|
-
skin:
|
|
2523
|
-
},
|
|
2516
|
+
}, X2 = {
|
|
2517
|
+
skeletal: y.skeletal,
|
|
2518
|
+
tendon: y.tendon,
|
|
2519
|
+
muscle: y.muscle,
|
|
2520
|
+
mucosa: y.mucosa,
|
|
2521
|
+
gland: y.gland,
|
|
2522
|
+
gonad: y.gonad,
|
|
2523
|
+
duct: y.duct,
|
|
2524
|
+
urinary: y.urinary,
|
|
2525
|
+
erectile: y.erectile,
|
|
2526
|
+
skin: y.skin
|
|
2527
|
+
}, Y2 = Q1(
|
|
2524
2528
|
[
|
|
2525
2529
|
"ds:transition-[fill-opacity] ds:[transition-duration:var(--animation-duration)]",
|
|
2526
2530
|
// Stroke width is authored in view coordinates; keep it constant px so the
|
|
@@ -2568,7 +2572,7 @@ const G2 = [
|
|
|
2568
2572
|
marked: !1
|
|
2569
2573
|
}
|
|
2570
2574
|
}
|
|
2571
|
-
),
|
|
2575
|
+
), J2 = Q1(
|
|
2572
2576
|
"ds:pointer-events-none ds:[fill:var(--accent)] ds:[fill-opacity:0] ds:[stroke:none] ds:transition-[fill-opacity] ds:[transition-duration:var(--animation-duration)] ds:[vector-effect:non-scaling-stroke]",
|
|
2573
2577
|
{
|
|
2574
2578
|
variants: {
|
|
@@ -2584,11 +2588,11 @@ const G2 = [
|
|
|
2584
2588
|
},
|
|
2585
2589
|
defaultVariants: { hoverable: !1, marked: !1, selected: !1 }
|
|
2586
2590
|
}
|
|
2587
|
-
), U1 = "ds:[stroke:var(--muted-foreground)] ds:[stroke-width:1.25] ds:[stroke-linejoin:round] ds:[vector-effect:non-scaling-stroke]",
|
|
2591
|
+
), U1 = "ds:[stroke:var(--muted-foreground)] ds:[stroke-width:1.25] ds:[stroke-linejoin:round] ds:[vector-effect:non-scaling-stroke]", e3 = {
|
|
2588
2592
|
face: `ds:[fill:var(--muted)] ${U1}`,
|
|
2589
2593
|
hair: `ds:[fill:color-mix(in_oklab,var(--muted-foreground)_38%,var(--muted))] ${U1}`,
|
|
2590
2594
|
tie: "ds:[fill:color-mix(in_oklab,var(--muted-foreground)_70%,var(--muted))] ds:[stroke:none]"
|
|
2591
|
-
}, e2 = "ds:[fill:none] ds:[stroke:var(--background)] ds:[stroke-linejoin:round] ds:[vector-effect:non-scaling-stroke]",
|
|
2595
|
+
}, e2 = "ds:[fill:none] ds:[stroke:var(--background)] ds:[stroke-linejoin:round] ds:[vector-effect:non-scaling-stroke]", C3 = `${e2} ds:[stroke-width:6]`, a3 = "ds:[fill:none] ds:[stroke:var(--foreground)] ds:[stroke-width:2.5] ds:[stroke-linejoin:round] ds:[vector-effect:non-scaling-stroke] ds:forced-colors:[stroke:Highlight]", c3 = `${e2} ds:[stroke-width:calc(var(--focus-ring-width)_+_4px)]`, i3 = Q1("ds:mx-auto ds:block ds:h-auto ds:w-full", {
|
|
2592
2596
|
variants: {
|
|
2593
2597
|
presentation: {
|
|
2594
2598
|
body: "ds:max-w-[20rem]",
|
|
@@ -2635,28 +2639,28 @@ function b({
|
|
|
2635
2639
|
) : /* @__PURE__ */ i(
|
|
2636
2640
|
"polygon",
|
|
2637
2641
|
{
|
|
2638
|
-
points: C.points.map(([
|
|
2642
|
+
points: C.points.map(([r, d]) => `${r},${d}`).join(" "),
|
|
2639
2643
|
fill: t,
|
|
2640
2644
|
className: a
|
|
2641
2645
|
}
|
|
2642
2646
|
);
|
|
2643
2647
|
}
|
|
2644
|
-
function
|
|
2645
|
-
return a && a.length > 0 ? a.map((t) => Y[t]).filter(Boolean) :
|
|
2648
|
+
function t3(C, a) {
|
|
2649
|
+
return a && a.length > 0 ? a.map((t) => Y[t]).filter(Boolean) : D2(C ?? "adult-male");
|
|
2646
2650
|
}
|
|
2647
|
-
const
|
|
2651
|
+
const r3 = k2(
|
|
2648
2652
|
({
|
|
2649
2653
|
id: C,
|
|
2650
2654
|
figure: a,
|
|
2651
2655
|
views: t,
|
|
2652
|
-
view:
|
|
2656
|
+
view: r,
|
|
2653
2657
|
defaultView: d,
|
|
2654
|
-
onViewChange:
|
|
2658
|
+
onViewChange: L,
|
|
2655
2659
|
mode: D = "interactive",
|
|
2656
2660
|
value: J,
|
|
2657
2661
|
defaultValue: e1,
|
|
2658
2662
|
onChange: O,
|
|
2659
|
-
onSelectRegion:
|
|
2663
|
+
onSelectRegion: m,
|
|
2660
2664
|
selectedRegions: L1,
|
|
2661
2665
|
activeFinding: Q,
|
|
2662
2666
|
legend: C2 = !1,
|
|
@@ -2665,105 +2669,105 @@ const t3 = k2(
|
|
|
2665
2669
|
ariaLabel: a2,
|
|
2666
2670
|
className: c2
|
|
2667
2671
|
}, i2) => {
|
|
2668
|
-
const { t:
|
|
2669
|
-
() =>
|
|
2672
|
+
const { t: p } = G1("ui"), Z1 = g2(), S1 = C ?? Z1, w = `muscle-scheme-shade-${Z1.replace(/[^a-zA-Z0-9_-]/g, "")}`, N1 = d1(null), x = z1(
|
|
2673
|
+
() => t3(a, t),
|
|
2670
2674
|
[a, t]
|
|
2671
|
-
), V = D === "interactive", g = V || !!
|
|
2675
|
+
), V = D === "interactive", g = V || !!m, $1 = L1 !== void 0, Z = z1(
|
|
2672
2676
|
() => new Set(L1 ?? []),
|
|
2673
2677
|
[L1]
|
|
2674
|
-
), [t2, C1] = l1(), [r2,
|
|
2678
|
+
), [t2, C1] = l1(), [r2, I1] = l1(), q1 = t2 ?? r2, [s2, d2] = l1(
|
|
2675
2679
|
() => {
|
|
2676
2680
|
var e;
|
|
2677
2681
|
return d ?? ((e = x[0]) == null ? void 0 : e.id) ?? P1;
|
|
2678
2682
|
}
|
|
2679
|
-
), l2 =
|
|
2683
|
+
), l2 = r ?? s2, n = x.find((e) => e.id === l2) ?? x[0], u1 = d1(n == null ? void 0 : n.id);
|
|
2680
2684
|
u1.current = n == null ? void 0 : n.id;
|
|
2681
2685
|
const a1 = d1({
|
|
2682
2686
|
onChange: O,
|
|
2683
|
-
onViewChange:
|
|
2684
|
-
controlledView:
|
|
2687
|
+
onViewChange: L,
|
|
2688
|
+
controlledView: r,
|
|
2685
2689
|
resolvedViews: x
|
|
2686
2690
|
});
|
|
2687
|
-
a1.current = { onChange: O, onViewChange:
|
|
2688
|
-
const m1 =
|
|
2691
|
+
a1.current = { onChange: O, onViewChange: L, controlledView: r, resolvedViews: x };
|
|
2692
|
+
const m1 = f((e) => {
|
|
2689
2693
|
const {
|
|
2690
|
-
onViewChange:
|
|
2694
|
+
onViewChange: s,
|
|
2691
2695
|
controlledView: l,
|
|
2692
2696
|
resolvedViews: M
|
|
2693
2697
|
} = a1.current;
|
|
2694
|
-
M.some((z) => z.id === e) && (l === void 0 && d2(e), e !== u1.current && (
|
|
2698
|
+
M.some((z) => z.id === e) && (l === void 0 && d2(e), e !== u1.current && (s == null || s(e)));
|
|
2695
2699
|
}, []), c1 = n == null ? void 0 : n.id;
|
|
2696
2700
|
b2(() => {
|
|
2697
|
-
var e,
|
|
2698
|
-
|
|
2699
|
-
}, [
|
|
2700
|
-
const h1 = J !== void 0, [n2, M2] = l1(e1 ?? {}), S = h1 ? J : n2,
|
|
2701
|
-
|
|
2702
|
-
const N =
|
|
2701
|
+
var e, s;
|
|
2702
|
+
r !== void 0 && c1 !== void 0 && r !== c1 && ((s = (e = a1.current).onViewChange) == null || s.call(e, c1));
|
|
2703
|
+
}, [r, c1]);
|
|
2704
|
+
const h1 = J !== void 0, [n2, M2] = l1(e1 ?? {}), S = h1 ? J : n2, k = d1(S);
|
|
2705
|
+
k.current = S;
|
|
2706
|
+
const N = f(
|
|
2703
2707
|
(e) => {
|
|
2704
|
-
var
|
|
2705
|
-
h1 || M2(e), (l = (
|
|
2708
|
+
var s, l;
|
|
2709
|
+
h1 || M2(e), (l = (s = a1.current).onChange) == null || l.call(s, e);
|
|
2706
2710
|
},
|
|
2707
2711
|
[h1]
|
|
2708
|
-
), i1 =
|
|
2709
|
-
(e,
|
|
2710
|
-
const M =
|
|
2711
|
-
M.some((z) => z.type ===
|
|
2712
|
-
...
|
|
2713
|
-
[e]: [...M, { type:
|
|
2712
|
+
), i1 = f(
|
|
2713
|
+
(e, s, l) => {
|
|
2714
|
+
const M = k.current[e] ?? [];
|
|
2715
|
+
M.some((z) => z.type === s) || N({
|
|
2716
|
+
...k.current,
|
|
2717
|
+
[e]: [...M, { type: s, note: l }]
|
|
2714
2718
|
});
|
|
2715
2719
|
},
|
|
2716
2720
|
[N]
|
|
2717
|
-
), t1 =
|
|
2718
|
-
(e,
|
|
2719
|
-
const M = (
|
|
2721
|
+
), t1 = f(
|
|
2722
|
+
(e, s) => {
|
|
2723
|
+
const M = (k.current[e] ?? []).filter((k1) => k1.type !== s), z = { ...k.current };
|
|
2720
2724
|
M.length > 0 ? z[e] = M : delete z[e], N(z);
|
|
2721
2725
|
},
|
|
2722
2726
|
[N]
|
|
2723
|
-
), E1 =
|
|
2724
|
-
(e,
|
|
2725
|
-
(
|
|
2726
|
-
(M) => M.type ===
|
|
2727
|
-
) ? t1(e,
|
|
2727
|
+
), E1 = f(
|
|
2728
|
+
(e, s) => {
|
|
2729
|
+
(k.current[e] ?? []).some(
|
|
2730
|
+
(M) => M.type === s
|
|
2731
|
+
) ? t1(e, s) : i1(e, s);
|
|
2728
2732
|
},
|
|
2729
2733
|
[i1, t1]
|
|
2730
|
-
), R1 =
|
|
2731
|
-
var
|
|
2734
|
+
), R1 = f((e) => {
|
|
2735
|
+
var s, l;
|
|
2732
2736
|
(l = [
|
|
2733
|
-
...((
|
|
2737
|
+
...((s = N1.current) == null ? void 0 : s.querySelectorAll("[data-region]")) ?? []
|
|
2734
2738
|
].find((M) => M.dataset.region === e)) == null || l.focus();
|
|
2735
|
-
}, []), r1 =
|
|
2739
|
+
}, []), r1 = f(
|
|
2736
2740
|
(e) => {
|
|
2737
|
-
|
|
2741
|
+
m == null || m(e.id, n.id), V && Q && E1(e.id, Q);
|
|
2738
2742
|
},
|
|
2739
2743
|
[
|
|
2740
2744
|
V,
|
|
2741
2745
|
Q,
|
|
2742
2746
|
E1,
|
|
2743
|
-
|
|
2747
|
+
m,
|
|
2744
2748
|
n.id
|
|
2745
2749
|
]
|
|
2746
|
-
), f1 =
|
|
2747
|
-
(e,
|
|
2750
|
+
), f1 = f(
|
|
2751
|
+
(e, s) => {
|
|
2748
2752
|
if (g) {
|
|
2749
|
-
if (
|
|
2753
|
+
if ($1) return Z.has(e);
|
|
2750
2754
|
if (V && Q)
|
|
2751
|
-
return
|
|
2755
|
+
return s.some((l) => l.type === Q);
|
|
2752
2756
|
}
|
|
2753
2757
|
},
|
|
2754
|
-
[g,
|
|
2758
|
+
[g, $1, Z, V, Q]
|
|
2755
2759
|
), y1 = z1(
|
|
2756
2760
|
() => ({
|
|
2757
2761
|
focusRegion: R1,
|
|
2758
|
-
getChart: () =>
|
|
2759
|
-
getRegion: (e) =>
|
|
2760
|
-
regionsWith: (e) => Object.entries(
|
|
2762
|
+
getChart: () => k.current,
|
|
2763
|
+
getRegion: (e) => k.current[e] ?? [],
|
|
2764
|
+
regionsWith: (e) => Object.entries(k.current).filter(([, s]) => s.some((l) => l.type === e)).map(([s]) => s),
|
|
2761
2765
|
setFinding: i1,
|
|
2762
2766
|
removeFinding: t1,
|
|
2763
2767
|
clearRegion: (e) => {
|
|
2764
|
-
if (!
|
|
2765
|
-
const
|
|
2766
|
-
delete
|
|
2768
|
+
if (!k.current[e]) return;
|
|
2769
|
+
const s = { ...k.current };
|
|
2770
|
+
delete s[e], N(s);
|
|
2767
2771
|
},
|
|
2768
2772
|
setView: m1,
|
|
2769
2773
|
getView: () => u1.current ?? P1
|
|
@@ -2771,39 +2775,39 @@ const t3 = k2(
|
|
|
2771
2775
|
[R1, i1, t1, N, m1]
|
|
2772
2776
|
);
|
|
2773
2777
|
v2(i2, () => y1, [y1]), z2(w2, y1, S1);
|
|
2774
|
-
const F1 =
|
|
2775
|
-
(e) => e.label ??
|
|
2776
|
-
[
|
|
2777
|
-
), T1 = Y1(), H =
|
|
2778
|
-
(e,
|
|
2779
|
-
const l = T1(e), M =
|
|
2780
|
-
return M.length === 0 ? l :
|
|
2778
|
+
const F1 = f(
|
|
2779
|
+
(e) => e.label ?? p(`muscleScheme.finding.${e.type}`),
|
|
2780
|
+
[p]
|
|
2781
|
+
), T1 = Y1(), H = f(
|
|
2782
|
+
(e, s = !0) => {
|
|
2783
|
+
const l = T1(e), M = s ? k.current[e.id] ?? [] : [];
|
|
2784
|
+
return M.length === 0 ? l : p("muscleScheme.regionWithFindings", {
|
|
2781
2785
|
region: l,
|
|
2782
2786
|
findings: M.map(F1).join(", ")
|
|
2783
2787
|
});
|
|
2784
2788
|
},
|
|
2785
|
-
[
|
|
2786
|
-
), A1 =
|
|
2789
|
+
[p, T1, F1]
|
|
2790
|
+
), A1 = f(
|
|
2787
2791
|
(e) => {
|
|
2788
2792
|
var j1;
|
|
2789
|
-
const
|
|
2793
|
+
const s = p1 ? `${p1}/${e.id}.svg` : void 0, l = s || e.hotspotZones ? "hotspot" : "schematic", M = e.presentation === "organs", [z, k1, g1, L2] = e.viewBox.split(" ").map(Number), B1 = e.regions.filter((c) => c.group === "reproductive").sort(
|
|
2790
2794
|
(c, o) => +(c.side === "midline") - +(o.side === "midline")
|
|
2791
|
-
), p2 = e.kind === "pelvis" ?
|
|
2792
|
-
return /* @__PURE__ */ i(
|
|
2793
|
-
/* @__PURE__ */
|
|
2795
|
+
), p2 = e.kind === "pelvis" ? p("muscleScheme.pelvicOrgans") : p("muscleScheme.breasts");
|
|
2796
|
+
return /* @__PURE__ */ i($.Provider, { delayDuration: 200, children: /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2797
|
+
/* @__PURE__ */ h(
|
|
2794
2798
|
"svg",
|
|
2795
2799
|
{
|
|
2796
2800
|
viewBox: e.viewBox,
|
|
2797
2801
|
role: "group",
|
|
2798
|
-
"aria-label":
|
|
2802
|
+
"aria-label": p(`muscleScheme.view.${e.labelKey}`),
|
|
2799
2803
|
className: [
|
|
2800
|
-
|
|
2801
|
-
|
|
2804
|
+
i3({ presentation: e.presentation }),
|
|
2805
|
+
W2
|
|
2802
2806
|
].join(" "),
|
|
2803
2807
|
"data-view": e.id,
|
|
2804
2808
|
"data-view-kind": e.kind,
|
|
2805
2809
|
children: [
|
|
2806
|
-
/* @__PURE__ */ i("defs", { children: /* @__PURE__ */
|
|
2810
|
+
/* @__PURE__ */ i("defs", { children: /* @__PURE__ */ h("radialGradient", { id: w, cx: "36%", cy: "30%", r: "78%", children: [
|
|
2807
2811
|
/* @__PURE__ */ i(
|
|
2808
2812
|
"stop",
|
|
2809
2813
|
{
|
|
@@ -2853,10 +2857,10 @@ const t3 = k2(
|
|
|
2853
2857
|
))
|
|
2854
2858
|
}
|
|
2855
2859
|
),
|
|
2856
|
-
|
|
2860
|
+
s && /* @__PURE__ */ i(
|
|
2857
2861
|
"image",
|
|
2858
2862
|
{
|
|
2859
|
-
href:
|
|
2863
|
+
href: s,
|
|
2860
2864
|
x: z,
|
|
2861
2865
|
y: k1,
|
|
2862
2866
|
width: g1,
|
|
@@ -2876,7 +2880,7 @@ const t3 = k2(
|
|
|
2876
2880
|
b,
|
|
2877
2881
|
{
|
|
2878
2882
|
shape: c,
|
|
2879
|
-
className:
|
|
2883
|
+
className: y[c.paint ?? "line"]
|
|
2880
2884
|
},
|
|
2881
2885
|
o
|
|
2882
2886
|
))
|
|
@@ -2884,7 +2888,7 @@ const t3 = k2(
|
|
|
2884
2888
|
),
|
|
2885
2889
|
e.bodyDetail && // Body contour, scaled with the body (not the head), so the
|
|
2886
2890
|
// child's enlarged head stays joined to a body-scaled outline.
|
|
2887
|
-
/* @__PURE__ */ i("g", { transform: e.transform, children:
|
|
2891
|
+
/* @__PURE__ */ i("g", { transform: e.transform, children: s ? /* @__PURE__ */ i(
|
|
2888
2892
|
"path",
|
|
2889
2893
|
{
|
|
2890
2894
|
d: e.bodyDetail,
|
|
@@ -2896,7 +2900,7 @@ const t3 = k2(
|
|
|
2896
2900
|
// muscles (race-neutral by construction, no skin tone),
|
|
2897
2901
|
// with the same soft volume as the tissue and a crisp
|
|
2898
2902
|
// contour, so the gaps between muscles read as body.
|
|
2899
|
-
/* @__PURE__ */
|
|
2903
|
+
/* @__PURE__ */ h("g", { "data-body": "", "aria-hidden": "true", children: [
|
|
2900
2904
|
/* @__PURE__ */ i(
|
|
2901
2905
|
"path",
|
|
2902
2906
|
{
|
|
@@ -2921,7 +2925,7 @@ const t3 = k2(
|
|
|
2921
2925
|
)
|
|
2922
2926
|
] })
|
|
2923
2927
|
) }),
|
|
2924
|
-
!
|
|
2928
|
+
!s && (e.head || e.silhouette) && // The head, over the body and under the muscles: the face
|
|
2925
2929
|
// and ears in the body's neutral, the hair a mid-tone, so
|
|
2926
2930
|
// the hairline is drawn, never cut.
|
|
2927
2931
|
/* @__PURE__ */ i(
|
|
@@ -2937,27 +2941,27 @@ const t3 = k2(
|
|
|
2937
2941
|
{
|
|
2938
2942
|
d: c.d,
|
|
2939
2943
|
"data-head-part": c.part,
|
|
2940
|
-
className:
|
|
2944
|
+
className: e3[c.part]
|
|
2941
2945
|
},
|
|
2942
2946
|
o
|
|
2943
2947
|
))
|
|
2944
2948
|
}
|
|
2945
2949
|
),
|
|
2946
2950
|
/* @__PURE__ */ i("g", { transform: e.transform, children: e.regions.map((c) => {
|
|
2947
|
-
const o = S[c.id] ?? [], K = o.length > 0,
|
|
2951
|
+
const o = S[c.id] ?? [], K = o.length > 0, q = g && Z.has(c.id), v = c.group === "reproductive" || l !== "hotspot" ? c.tissue : void 0, b1 = v ? `${X2[v]} ${g ? "ds:cursor-pointer" : ""}` : Y2({
|
|
2948
2952
|
appearance: l,
|
|
2949
2953
|
interactive: g,
|
|
2950
2954
|
marked: K
|
|
2951
2955
|
});
|
|
2952
|
-
return /* @__PURE__ */
|
|
2953
|
-
/* @__PURE__ */ i(
|
|
2956
|
+
return /* @__PURE__ */ h($.Root, { children: [
|
|
2957
|
+
/* @__PURE__ */ i($.Trigger, { asChild: !0, children: /* @__PURE__ */ h(
|
|
2954
2958
|
"g",
|
|
2955
2959
|
{
|
|
2956
2960
|
"data-region": c.id,
|
|
2957
2961
|
"data-side": c.side,
|
|
2958
2962
|
"data-group": c.group,
|
|
2959
2963
|
"data-tissue": v,
|
|
2960
|
-
"data-selected":
|
|
2964
|
+
"data-selected": q || void 0,
|
|
2961
2965
|
"data-highlighted": q1 === c.id || void 0,
|
|
2962
2966
|
role: g ? "button" : "img",
|
|
2963
2967
|
"aria-label": H(c),
|
|
@@ -2988,7 +2992,7 @@ const t3 = k2(
|
|
|
2988
2992
|
b,
|
|
2989
2993
|
{
|
|
2990
2994
|
shape: _,
|
|
2991
|
-
className:
|
|
2995
|
+
className: y[_.paint ?? "line"]
|
|
2992
2996
|
},
|
|
2993
2997
|
U
|
|
2994
2998
|
))
|
|
@@ -3002,14 +3006,14 @@ const t3 = k2(
|
|
|
3002
3006
|
className: "ds:pointer-events-none"
|
|
3003
3007
|
}
|
|
3004
3008
|
),
|
|
3005
|
-
(v ||
|
|
3009
|
+
(v || q) && /* @__PURE__ */ i(
|
|
3006
3010
|
b,
|
|
3007
3011
|
{
|
|
3008
3012
|
shape: c.shape,
|
|
3009
|
-
className:
|
|
3013
|
+
className: J2({
|
|
3010
3014
|
hoverable: !!v && g,
|
|
3011
3015
|
marked: !!v && K,
|
|
3012
|
-
selected:
|
|
3016
|
+
selected: q
|
|
3013
3017
|
})
|
|
3014
3018
|
}
|
|
3015
3019
|
),
|
|
@@ -3023,14 +3027,14 @@ const t3 = k2(
|
|
|
3023
3027
|
]
|
|
3024
3028
|
}
|
|
3025
3029
|
) }),
|
|
3026
|
-
/* @__PURE__ */ i(
|
|
3027
|
-
|
|
3030
|
+
/* @__PURE__ */ i($.Portal, { children: /* @__PURE__ */ h(
|
|
3031
|
+
$.Content,
|
|
3028
3032
|
{
|
|
3029
3033
|
sideOffset: 4,
|
|
3030
3034
|
className: "ds:z-[var(--z-tooltip)] ds:rounded-[var(--radius-sm)] ds:bg-[var(--popover)] ds:px-2 ds:py-1 ds:text-[length:var(--font-size-xs)] ds:text-[var(--popover-foreground)] ds:shadow-[var(--shadow-md)]",
|
|
3031
3035
|
children: [
|
|
3032
3036
|
H(c),
|
|
3033
|
-
/* @__PURE__ */ i(
|
|
3037
|
+
/* @__PURE__ */ i($.Arrow, { className: "ds:[fill:var(--popover)]" })
|
|
3034
3038
|
]
|
|
3035
3039
|
}
|
|
3036
3040
|
) })
|
|
@@ -3047,7 +3051,7 @@ const t3 = k2(
|
|
|
3047
3051
|
b,
|
|
3048
3052
|
{
|
|
3049
3053
|
shape: c,
|
|
3050
|
-
className:
|
|
3054
|
+
className: y[c.paint ?? "line"]
|
|
3051
3055
|
},
|
|
3052
3056
|
o
|
|
3053
3057
|
))
|
|
@@ -3060,19 +3064,19 @@ const t3 = k2(
|
|
|
3060
3064
|
"aria-hidden": "true",
|
|
3061
3065
|
"data-selection-layer": "",
|
|
3062
3066
|
className: "ds:pointer-events-none",
|
|
3063
|
-
children: e.regions.filter((c) => Z.has(c.id)).map((c) => /* @__PURE__ */
|
|
3067
|
+
children: e.regions.filter((c) => Z.has(c.id)).map((c) => /* @__PURE__ */ h("g", { "data-region-selected": c.id, children: [
|
|
3064
3068
|
/* @__PURE__ */ i(
|
|
3065
3069
|
b,
|
|
3066
3070
|
{
|
|
3067
3071
|
shape: c.shape,
|
|
3068
|
-
className:
|
|
3072
|
+
className: C3
|
|
3069
3073
|
}
|
|
3070
3074
|
),
|
|
3071
3075
|
/* @__PURE__ */ i(
|
|
3072
3076
|
b,
|
|
3073
3077
|
{
|
|
3074
3078
|
shape: c.shape,
|
|
3075
|
-
className:
|
|
3079
|
+
className: a3
|
|
3076
3080
|
}
|
|
3077
3081
|
)
|
|
3078
3082
|
] }, c.id))
|
|
@@ -3085,9 +3089,9 @@ const t3 = k2(
|
|
|
3085
3089
|
"aria-hidden": "true",
|
|
3086
3090
|
className: "ds:pointer-events-none",
|
|
3087
3091
|
children: e.regions.flatMap((c) => {
|
|
3088
|
-
const o = S[c.id] ?? [], K =
|
|
3092
|
+
const o = S[c.id] ?? [], K = I2(c), q = c.group === "reproductive", P = c.shape.kind === "path", v = M ? 6 : g1 / 60, b1 = M ? 14 : g1 / 24, _ = q ? v : P ? 20 : 4.5, U = q ? b1 : P ? 44 : 11, G = M ? 2 : 3, q2 = q ? Math.ceil(o.length / G) : 1;
|
|
3089
3093
|
return o.map((W, s1) => {
|
|
3090
|
-
const u2 = o1[W.type], m2 = W.shape ?? u2.shape, v1 =
|
|
3094
|
+
const u2 = o1[W.type], m2 = W.shape ?? u2.shape, v1 = q ? Math.floor(s1 / G) : 0, h2 = q ? Math.min(G, o.length - v1 * G) : o.length, f2 = ((q ? s1 % G : s1) - (h2 - 1) / 2) * U, y2 = q && !M ? v1 * U : (v1 - (q2 - 1) / 2) * U, D1 = J1(W);
|
|
3091
3095
|
return /* @__PURE__ */ i(
|
|
3092
3096
|
"path",
|
|
3093
3097
|
{
|
|
@@ -3099,7 +3103,7 @@ const t3 = k2(
|
|
|
3099
3103
|
K.y + y2,
|
|
3100
3104
|
_
|
|
3101
3105
|
),
|
|
3102
|
-
className: `${D1.className} ${
|
|
3106
|
+
className: `${D1.className} ${V2}`,
|
|
3103
3107
|
style: D1.style
|
|
3104
3108
|
},
|
|
3105
3109
|
`${c.id}-${W.type}-${s1}`
|
|
@@ -3114,12 +3118,12 @@ const t3 = k2(
|
|
|
3114
3118
|
transform: e.transform,
|
|
3115
3119
|
"aria-hidden": "true",
|
|
3116
3120
|
className: "ds:pointer-events-none",
|
|
3117
|
-
children: e.regions.filter((c) => c.id === q1).map((c) => /* @__PURE__ */
|
|
3121
|
+
children: e.regions.filter((c) => c.id === q1).map((c) => /* @__PURE__ */ h("g", { "data-region-focus": c.id, children: [
|
|
3118
3122
|
/* @__PURE__ */ i(
|
|
3119
3123
|
b,
|
|
3120
3124
|
{
|
|
3121
3125
|
shape: c.shape,
|
|
3122
|
-
className:
|
|
3126
|
+
className: c3
|
|
3123
3127
|
}
|
|
3124
3128
|
),
|
|
3125
3129
|
/* @__PURE__ */ i(
|
|
@@ -3139,14 +3143,14 @@ const t3 = k2(
|
|
|
3139
3143
|
y: c.y,
|
|
3140
3144
|
textAnchor: "middle",
|
|
3141
3145
|
className: "ds:pointer-events-none ds:font-sans ds:font-medium ds:text-[length:var(--font-size-sm)] ds:[fill:var(--muted-foreground)]",
|
|
3142
|
-
children:
|
|
3146
|
+
children: p(`muscleScheme.section.${c.labelKey}`)
|
|
3143
3147
|
},
|
|
3144
3148
|
c.labelKey
|
|
3145
3149
|
))
|
|
3146
3150
|
]
|
|
3147
3151
|
}
|
|
3148
3152
|
),
|
|
3149
|
-
g && w1 && B1.length > 0 && /* @__PURE__ */
|
|
3153
|
+
g && w1 && B1.length > 0 && /* @__PURE__ */ h(
|
|
3150
3154
|
"div",
|
|
3151
3155
|
{
|
|
3152
3156
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
@@ -3174,9 +3178,9 @@ const t3 = k2(
|
|
|
3174
3178
|
onClick: () => r1(c),
|
|
3175
3179
|
onFocus: () => C1(c.id),
|
|
3176
3180
|
onBlur: () => C1(void 0),
|
|
3177
|
-
onPointerEnter: () =>
|
|
3178
|
-
onPointerLeave: () =>
|
|
3179
|
-
children: /* @__PURE__ */
|
|
3181
|
+
onPointerEnter: () => I1(c.id),
|
|
3182
|
+
onPointerLeave: () => I1(void 0),
|
|
3183
|
+
children: /* @__PURE__ */ h("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]", children: [
|
|
3180
3184
|
K && /* @__PURE__ */ i(
|
|
3181
3185
|
_2,
|
|
3182
3186
|
{
|
|
@@ -3185,12 +3189,12 @@ const t3 = k2(
|
|
|
3185
3189
|
}
|
|
3186
3190
|
),
|
|
3187
3191
|
/* @__PURE__ */ i("span", { children: H(c, !1) }),
|
|
3188
|
-
o.map((
|
|
3189
|
-
|
|
3192
|
+
o.map((q, P) => /* @__PURE__ */ i(
|
|
3193
|
+
G2,
|
|
3190
3194
|
{
|
|
3191
|
-
finding:
|
|
3195
|
+
finding: q
|
|
3192
3196
|
},
|
|
3193
|
-
`${
|
|
3197
|
+
`${q.type}-${P}`
|
|
3194
3198
|
))
|
|
3195
3199
|
] })
|
|
3196
3200
|
},
|
|
@@ -3211,12 +3215,12 @@ const t3 = k2(
|
|
|
3211
3215
|
w1,
|
|
3212
3216
|
p1,
|
|
3213
3217
|
w,
|
|
3214
|
-
|
|
3218
|
+
p,
|
|
3215
3219
|
H,
|
|
3216
3220
|
r1
|
|
3217
3221
|
]
|
|
3218
3222
|
), o2 = x.length > 1;
|
|
3219
|
-
return /* @__PURE__ */
|
|
3223
|
+
return /* @__PURE__ */ h(
|
|
3220
3224
|
"div",
|
|
3221
3225
|
{
|
|
3222
3226
|
ref: N1,
|
|
@@ -3226,26 +3230,26 @@ const t3 = k2(
|
|
|
3226
3230
|
"data-view-kind": n == null ? void 0 : n.kind,
|
|
3227
3231
|
className: ["ds:flex ds:flex-col ds:gap-3", c2].filter(Boolean).join(" "),
|
|
3228
3232
|
role: "group",
|
|
3229
|
-
"aria-label": a2 ??
|
|
3233
|
+
"aria-label": a2 ?? p("muscleScheme.ariaLabel"),
|
|
3230
3234
|
children: [
|
|
3231
|
-
o2 ? /* @__PURE__ */
|
|
3232
|
-
/* @__PURE__ */ i(n1.List, { "aria-label":
|
|
3235
|
+
o2 ? /* @__PURE__ */ h(n1, { value: n.id, onValueChange: m1, children: [
|
|
3236
|
+
/* @__PURE__ */ i(n1.List, { "aria-label": p("muscleScheme.viewListLabel"), children: x.map((e) => /* @__PURE__ */ i(n1.Trigger, { value: e.id, children: p(`muscleScheme.view.${e.labelKey}`) }, e.id)) }),
|
|
3233
3237
|
x.map((e) => /* @__PURE__ */ i(n1.Content, { value: e.id, children: A1(e) }, e.id))
|
|
3234
3238
|
] }) : n && A1(n),
|
|
3235
3239
|
C2 && /* @__PURE__ */ i(
|
|
3236
3240
|
"ul",
|
|
3237
3241
|
{
|
|
3238
|
-
"aria-label":
|
|
3242
|
+
"aria-label": p("muscleScheme.legendLabel"),
|
|
3239
3243
|
className: "ds:flex ds:flex-wrap ds:gap-x-4 ds:gap-y-1 ds:p-0 ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)]",
|
|
3240
|
-
children:
|
|
3241
|
-
const
|
|
3244
|
+
children: $2.map((e) => {
|
|
3245
|
+
const s = o1[e];
|
|
3242
3246
|
return /* @__PURE__ */ i("li", { className: "ds:flex ds:list-none ds:items-center", children: /* @__PURE__ */ i(
|
|
3243
3247
|
x2,
|
|
3244
3248
|
{
|
|
3245
|
-
shape:
|
|
3246
|
-
tone:
|
|
3249
|
+
shape: s.shape,
|
|
3250
|
+
tone: s.tone,
|
|
3247
3251
|
size: "sm",
|
|
3248
|
-
label:
|
|
3252
|
+
label: p(`muscleScheme.finding.${e}`)
|
|
3249
3253
|
}
|
|
3250
3254
|
) }, e);
|
|
3251
3255
|
})
|
|
@@ -3256,21 +3260,21 @@ const t3 = k2(
|
|
|
3256
3260
|
);
|
|
3257
3261
|
}
|
|
3258
3262
|
);
|
|
3259
|
-
|
|
3263
|
+
r3.displayName = "MuscleScheme";
|
|
3260
3264
|
export {
|
|
3261
3265
|
P1 as D,
|
|
3262
3266
|
o1 as F,
|
|
3263
3267
|
Y as M,
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3268
|
+
$2 as a,
|
|
3269
|
+
r3 as b,
|
|
3270
|
+
O2 as c,
|
|
3271
|
+
m3 as d,
|
|
3272
|
+
y3 as e,
|
|
3273
|
+
f3 as f,
|
|
3274
|
+
h3 as g,
|
|
3271
3275
|
w2 as m,
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3276
|
+
I2 as r,
|
|
3277
|
+
k3 as u,
|
|
3278
|
+
D2 as v
|
|
3275
3279
|
};
|
|
3276
|
-
//# sourceMappingURL=muscle-scheme-
|
|
3280
|
+
//# sourceMappingURL=muscle-scheme-1BZd1-RE.js.map
|