alit-layout 1.1.33 → 1.1.35

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/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as ne, computed as W, openBlock as r, createElementBlock as u, Fragment as N, renderList as le, createElementVNode as k, normalizeStyle as Z, unref as L, toDisplayString as te, createCommentVNode as D, ref as V, watch as De, normalizeClass as oe, createBlock as ee, createTextVNode as Ze, createVNode as ae, pushScopeId as qe, popScopeId as Ye, renderSlot as mt, onMounted as Ke, nextTick as lt, withModifiers as Ee, resolveComponent as Qt, resolveDynamicComponent as wt, normalizeProps as kt, guardReactiveProps as xt, withCtx as Et, inject as qt, withDirectives as Ct, provide as Yt } from "vue";
2
- const He = {
1
+ import { defineComponent as ne, computed as W, openBlock as r, createElementBlock as h, Fragment as O, renderList as le, createElementVNode as k, normalizeStyle as X, unref as L, toDisplayString as te, createCommentVNode as B, ref as V, watch as De, normalizeClass as oe, createBlock as ee, createTextVNode as Ze, createVNode as ae, pushScopeId as qe, popScopeId as Ye, renderSlot as mt, onMounted as Ke, nextTick as lt, withModifiers as Ee, resolveComponent as Qt, resolveDynamicComponent as wt, normalizeProps as kt, guardReactiveProps as xt, withCtx as Et, inject as qt, withDirectives as Ct, provide as Yt } from "vue";
2
+ const Re = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
5
5
  // 多选题
@@ -9,7 +9,7 @@ const He = {
9
9
  // 完形填空
10
10
  cloze: "CLOZE_TEST"
11
11
  }, Pt = {
12
- ...He,
12
+ ...Re,
13
13
  // 判断题
14
14
  decide: "TRUE_OR_FALSE"
15
15
  }, We = {
@@ -45,7 +45,7 @@ const He = {
45
45
  __notarea: "NO_ANSWER_AREA",
46
46
  // 非作答区(试题)
47
47
  __notareaproblem: "QUES_NO_ANSWER_AREA"
48
- }, m = {
48
+ }, u = {
49
49
  ...Pt,
50
50
  ...We
51
51
  }, Ge = [
@@ -531,7 +531,7 @@ const He = {
531
531
  2: 1,
532
532
  3: 1
533
533
  }
534
- }, O = {
534
+ }, M = {
535
535
  page: "page",
536
536
  headline: "headline",
537
537
  text: "text",
@@ -773,6 +773,12 @@ const He = {
773
773
  // 简答题
774
774
  easy_slove_a: "cardQuesContentFlag",
775
775
  easy_slove_b: "scoreShowType",
776
+ easy_slove_c: "cardEmptySize",
777
+ // 自身每行空数
778
+ easy_slove_d: "cardEmptyHeight",
779
+ // 每空高度
780
+ easy_slove_e: "cardEmptyNum",
781
+ // 每行空数
776
782
  // 作文题
777
783
  art_a: "fill",
778
784
  // 是否铺满
@@ -800,8 +806,8 @@ const He = {
800
806
  type: "radio",
801
807
  label: "横向分栏",
802
808
  key: d.article.col_a,
803
- target: [O.headline],
804
- show: (e) => ![m.art].includes(e.problemType) && e.layoutMode === "column",
809
+ target: [M.headline],
810
+ show: (e) => ![u.art].includes(e.problemType) && e.layoutMode === "column",
805
811
  option: [
806
812
  { name: "1栏", code: f.col_1 },
807
813
  { name: "横向2栏", code: f.col_2 }
@@ -813,8 +819,8 @@ const He = {
813
819
  type: "radio",
814
820
  label: "横向分栏",
815
821
  key: d.article.col_a,
816
- target: [O.headline],
817
- show: (e) => ![m.art].includes(e.problemType) && e.layoutMode === "column",
822
+ target: [M.headline],
823
+ show: (e) => ![u.art].includes(e.problemType) && e.layoutMode === "column",
818
824
  option: [
819
825
  { name: "1栏", code: f.col_1 },
820
826
  { name: "横向2栏", code: f.col_2 }
@@ -824,13 +830,13 @@ const He = {
824
830
  }, po = {
825
831
  base: {
826
832
  // 解答题
827
- [m.slove]: [
833
+ [u.slove]: [
828
834
  {
829
835
  type: "radio",
830
836
  label: "插入题号样式控制",
831
837
  key: d.article.slove_d,
832
838
  code: "slove_insert_sub",
833
- target: [O.problem],
839
+ target: [M.problem],
834
840
  option: [
835
841
  { name: "无", code: f.slove_5 },
836
842
  { name: "下划线", code: f.slove_6 }
@@ -840,7 +846,7 @@ const He = {
840
846
  },
841
847
  article: {
842
848
  // 选择题
843
- [m.choice]: [
849
+ [u.choice]: [
844
850
  {
845
851
  type: "radio",
846
852
  label: "展示样式",
@@ -852,7 +858,7 @@ const He = {
852
858
  }
853
859
  ],
854
860
  // 判断题
855
- [m.decide]: [
861
+ [u.decide]: [
856
862
  {
857
863
  type: "radio",
858
864
  label: "展示样式",
@@ -864,7 +870,7 @@ const He = {
864
870
  }
865
871
  ],
866
872
  // 填空题
867
- [m.fill]: [
873
+ [u.fill]: [
868
874
  {
869
875
  type: "radio",
870
876
  label: "打分框位置",
@@ -877,9 +883,9 @@ const He = {
877
883
  }
878
884
  ],
879
885
  // 选填题
880
- [m.mix]: [],
886
+ [u.mix]: [],
881
887
  // 解答题
882
- [m.slove]: [
888
+ [u.slove]: [
883
889
  {
884
890
  type: "radio",
885
891
  label: "边框控制",
@@ -913,7 +919,7 @@ const He = {
913
919
  label: "插入题号样式控制",
914
920
  key: d.article.slove_d,
915
921
  code: "slove_insert_sub",
916
- target: [O.problem],
922
+ target: [M.problem],
917
923
  option: [
918
924
  { name: "无", code: f.slove_5 },
919
925
  { name: "下划线", code: f.slove_6 }
@@ -921,7 +927,7 @@ const He = {
921
927
  }
922
928
  ],
923
929
  // 作文题
924
- [m.art]: [
930
+ [u.art]: [
925
931
  {
926
932
  type: "slider",
927
933
  label: "格子尺寸",
@@ -936,7 +942,7 @@ const He = {
936
942
  key: d.article.art_c,
937
943
  detail: !0,
938
944
  unit: "字",
939
- target: [O.problem]
945
+ target: [M.problem]
940
946
  },
941
947
  {
942
948
  type: "slider",
@@ -945,7 +951,7 @@ const He = {
945
951
  detail: !0,
946
952
  min: () => 1,
947
953
  max: (e) => Math.floor(e.style[d.article.art_c] / e.style[d.article.art_e]),
948
- target: [O.problem]
954
+ target: [M.problem]
949
955
  },
950
956
  {
951
957
  type: "radio",
@@ -956,13 +962,13 @@ const He = {
956
962
  { name: "100", code: 100 }
957
963
  ],
958
964
  detail: !0,
959
- target: [O.problem]
965
+ target: [M.problem]
960
966
  }
961
967
  ]
962
968
  },
963
969
  sheet: {
964
970
  // 选择题
965
- [m.choice]: [
971
+ [u.choice]: [
966
972
  {
967
973
  type: "radio",
968
974
  label: "排列样式",
@@ -997,7 +1003,7 @@ const He = {
997
1003
  {
998
1004
  type: "slider",
999
1005
  label: "每组个数",
1000
- target: [O.page, O.headline],
1006
+ target: [M.page, M.headline],
1001
1007
  key: d.sheet.choice_e,
1002
1008
  show: (e) => e.style[d.sheet.choice_a] !== f.choice_2,
1003
1009
  min: () => 1,
@@ -1006,7 +1012,7 @@ const He = {
1006
1012
  {
1007
1013
  type: "slider",
1008
1014
  label: "列数",
1009
- target: [O.page, O.headline],
1015
+ target: [M.page, M.headline],
1010
1016
  key: d.sheet.choice_d,
1011
1017
  show: (e) => e.style[d.sheet.choice_a] === f.choice_1,
1012
1018
  min: () => 1,
@@ -1014,7 +1020,7 @@ const He = {
1014
1020
  }
1015
1021
  ],
1016
1022
  // 判断题
1017
- [m.decide]: [
1023
+ [u.decide]: [
1018
1024
  {
1019
1025
  type: "radio",
1020
1026
  label: "展示样式",
@@ -1027,7 +1033,7 @@ const He = {
1027
1033
  }
1028
1034
  ],
1029
1035
  // 填空题
1030
- [m.fill]: [
1036
+ [u.fill]: [
1031
1037
  {
1032
1038
  type: "radio",
1033
1039
  label: "题干显示控制",
@@ -1052,7 +1058,7 @@ const He = {
1052
1058
  type: "radio",
1053
1059
  label: "分题换行",
1054
1060
  key: d.sheet.fill_c,
1055
- target: [O.page, O.headline],
1061
+ target: [M.page, M.headline],
1056
1062
  show: (e) => !e.style[d.sheet.fill_b],
1057
1063
  option: [
1058
1064
  { name: "开启", code: f.fill_1 },
@@ -1095,13 +1101,13 @@ const He = {
1095
1101
  type: "slider",
1096
1102
  label: "每空高度",
1097
1103
  key: d.sheet.fill_e,
1098
- target: [O.page, O.headline],
1104
+ target: [M.page, M.headline],
1099
1105
  show: (e) => !e.style[d.sheet.fill_b],
1100
1106
  max: () => 20
1101
1107
  }
1102
1108
  ],
1103
1109
  // 选填题
1104
- [m.mix]: [
1110
+ [u.mix]: [
1105
1111
  {
1106
1112
  type: "radio",
1107
1113
  label: "题干显示控制",
@@ -1116,9 +1122,9 @@ const He = {
1116
1122
  type: "radio",
1117
1123
  label: "每空宽度",
1118
1124
  key: d.sheet.fill_d,
1119
- filter: (e, t) => e.mixType[t].problemType === m.fill,
1120
- target: [O.problem],
1121
- show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === m.fill),
1125
+ filter: (e, t) => e.mixType[t].problemType === u.fill,
1126
+ target: [M.problem],
1127
+ show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === u.fill),
1122
1128
  option: [
1123
1129
  { name: "1", code: 1 },
1124
1130
  { name: "1/2", code: 2 },
@@ -1133,14 +1139,14 @@ const He = {
1133
1139
  type: "slider",
1134
1140
  label: "每空高度",
1135
1141
  key: d.sheet.fill_e,
1136
- show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(m).includes(t.problemType) && !t.style[d.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === m.fill),
1142
+ show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(u).includes(t.problemType) && !t.style[d.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === u.fill),
1137
1143
  max: () => 20
1138
1144
  },
1139
1145
  {
1140
1146
  type: "radio",
1141
1147
  label: "展示样式",
1142
1148
  key: d.sheet.decide_a,
1143
- show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(m).includes(t.problemType) && !t.style[d.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === m.decide),
1149
+ show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(u).includes(t.problemType) && !t.style[d.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === u.decide),
1144
1150
  option: [
1145
1151
  { name: "对错", code: f.decide_1 },
1146
1152
  { name: "TF", code: f.decide_2 }
@@ -1150,8 +1156,8 @@ const He = {
1150
1156
  type: "radio",
1151
1157
  label: "排列方向",
1152
1158
  key: d.sheet.choice_b,
1153
- target: [O.problem],
1154
- show: (e) => !e.style[d.sheet.mix_a] && !(e.mixType || []).find((t) => ![m.choice, m.choice_multiple].includes(t.problemType)),
1159
+ target: [M.problem],
1160
+ show: (e) => !e.style[d.sheet.mix_a] && !(e.mixType || []).find((t) => ![u.choice, u.choice_multiple].includes(t.problemType)),
1155
1161
  option: [
1156
1162
  { name: "横向", code: f.landscape },
1157
1163
  { name: "竖向", code: f.portrait }
@@ -1170,7 +1176,7 @@ const He = {
1170
1176
  }
1171
1177
  ],
1172
1178
  // 解答题
1173
- [m.slove]: [
1179
+ [u.slove]: [
1174
1180
  {
1175
1181
  type: "radio",
1176
1182
  label: "题目计分提示",
@@ -1184,7 +1190,7 @@ const He = {
1184
1190
  }
1185
1191
  ],
1186
1192
  // 简答题
1187
- [m.easy_slove]: [
1193
+ [u.easy_slove]: [
1188
1194
  {
1189
1195
  type: "radio",
1190
1196
  label: "题目计分提示",
@@ -1198,7 +1204,7 @@ const He = {
1198
1204
  }
1199
1205
  ],
1200
1206
  // 作文题
1201
- [m.art]: [
1207
+ [u.art]: [
1202
1208
  {
1203
1209
  type: "slider",
1204
1210
  label: "格子尺寸",
@@ -1213,7 +1219,7 @@ const He = {
1213
1219
  key: d.sheet.art_c,
1214
1220
  detail: !0,
1215
1221
  unit: "字",
1216
- target: [O.problem]
1222
+ target: [M.problem]
1217
1223
  },
1218
1224
  {
1219
1225
  type: "slider",
@@ -1222,7 +1228,7 @@ const He = {
1222
1228
  detail: !0,
1223
1229
  min: () => 1,
1224
1230
  max: (e) => Math.floor(e.style[d.sheet.art_c] / e.style[d.sheet.art_e]),
1225
- target: [O.problem]
1231
+ target: [M.problem]
1226
1232
  },
1227
1233
  {
1228
1234
  type: "radio",
@@ -1233,7 +1239,7 @@ const He = {
1233
1239
  { name: "100", code: 100 }
1234
1240
  ],
1235
1241
  detail: !0,
1236
- target: [O.problem]
1242
+ target: [M.problem]
1237
1243
  },
1238
1244
  {
1239
1245
  type: "radio",
@@ -1247,7 +1253,7 @@ const He = {
1247
1253
  }
1248
1254
  ],
1249
1255
  // 综合题
1250
- [m.synthesis]: [
1256
+ [u.synthesis]: [
1251
1257
  {
1252
1258
  type: "radio",
1253
1259
  label: "主客分离",
@@ -1271,7 +1277,7 @@ const He = {
1271
1277
  },
1272
1278
  sheetCard: {
1273
1279
  // 选择题
1274
- [m.choice]: [
1280
+ [u.choice]: [
1275
1281
  {
1276
1282
  type: "radio",
1277
1283
  label: "排列样式",
@@ -1306,7 +1312,7 @@ const He = {
1306
1312
  {
1307
1313
  type: "slider",
1308
1314
  label: "每组个数",
1309
- target: (e, t) => [m.synthesis].includes(e.problemType) ? [O.problem] : [O.page, O.headline],
1315
+ target: (e, t) => [u.synthesis].includes(e.problemType) ? [M.problem] : [M.page, M.headline],
1310
1316
  key: d.sheetCard.choice_e,
1311
1317
  show: (e) => e.style[d.sheetCard.choice_a] === f.choice_1 || e.style[d.sheetCard.choice_a] === f.choice_3 && e.style[d.sheetCard.choice_b] === f.portrait,
1312
1318
  min: () => 1,
@@ -1315,7 +1321,7 @@ const He = {
1315
1321
  {
1316
1322
  type: "slider",
1317
1323
  label: "列数",
1318
- target: (e, t) => [m.synthesis].includes(e.problemType) ? [O.problem] : [O.page, O.headline],
1324
+ target: (e, t) => [u.synthesis].includes(e.problemType) ? [M.problem] : [M.page, M.headline],
1319
1325
  key: d.sheetCard.choice_d,
1320
1326
  show: (e) => e.style[d.sheetCard.choice_a] !== f.choice_2,
1321
1327
  min: () => 1,
@@ -1324,7 +1330,7 @@ const He = {
1324
1330
  {
1325
1331
  type: "radio",
1326
1332
  label: "排列偏好",
1327
- target: (e, t) => [m.synthesis].includes(e.problemType) ? [O.problem] : [O.page, O.headline],
1333
+ target: (e, t) => [u.synthesis].includes(e.problemType) ? [M.problem] : [M.page, M.headline],
1328
1334
  key: d.sheetCard.choice_f,
1329
1335
  show: (e) => e.style[d.sheetCard.choice_a] !== f.choice_2,
1330
1336
  option: [
@@ -1334,7 +1340,7 @@ const He = {
1334
1340
  }
1335
1341
  ],
1336
1342
  // 判断题
1337
- [m.decide]: [
1343
+ [u.decide]: [
1338
1344
  {
1339
1345
  type: "radio",
1340
1346
  label: "展示样式",
@@ -1346,7 +1352,7 @@ const He = {
1346
1352
  }
1347
1353
  ],
1348
1354
  // 填空题
1349
- [m.fill]: [
1355
+ [u.fill]: [
1350
1356
  {
1351
1357
  type: "radio",
1352
1358
  label: "打分框位置",
@@ -1362,7 +1368,7 @@ const He = {
1362
1368
  type: "radio",
1363
1369
  label: "分题换行",
1364
1370
  key: d.sheetCard.fill_c,
1365
- target: (e, t) => [m.synthesis].includes(e.problemType) ? [O.problem] : [m.mix].includes(e.problemType) ? [] : [O.page, O.headline],
1371
+ target: (e, t) => [u.synthesis].includes(e.problemType) ? [M.problem] : [u.mix].includes(e.problemType) ? [] : [M.page, M.headline],
1366
1372
  show: (e) => !e.style[d.sheetCard.fill_b],
1367
1373
  option: [
1368
1374
  { name: "开启", code: f.fill_1 },
@@ -1373,8 +1379,8 @@ const He = {
1373
1379
  type: "radio",
1374
1380
  label: "排列方向",
1375
1381
  key: d.sheetCard.fill_g,
1376
- target: [O.page, O.headline],
1377
- show: (e) => e.style[d.sheetCard.fill_c] === f.fill_2 && [m.fill, m.fill_english].includes(e.problemType),
1382
+ target: [M.page, M.headline],
1383
+ show: (e) => e.style[d.sheetCard.fill_c] === f.fill_2 && [u.fill, u.fill_english].includes(e.problemType),
1378
1384
  option: [
1379
1385
  { name: "横向", code: f.landscape },
1380
1386
  { name: "纵向", code: f.portrait }
@@ -1384,7 +1390,7 @@ const He = {
1384
1390
  type: "slider",
1385
1391
  label: "每组个数",
1386
1392
  key: d.sheetCard.fill_h,
1387
- target: [O.page, O.headline],
1393
+ target: [M.page, M.headline],
1388
1394
  show: (e) => e.style[d.sheetCard.fill_g] === f.portrait,
1389
1395
  min: () => 1,
1390
1396
  max: () => 10
@@ -1394,9 +1400,9 @@ const He = {
1394
1400
  type: "radio",
1395
1401
  label: "每空宽度",
1396
1402
  key: d.sheetCard.fill_d,
1397
- target: [O.problem],
1403
+ target: [M.problem],
1398
1404
  detail: !0,
1399
- problemCode: [m.fill, m.fill_english],
1405
+ problemCode: [u.fill, u.fill_english],
1400
1406
  show: (e) => !e.style[d.sheetCard.fill_b] && e.style[d.sheetCard.fill_g] !== f.portrait,
1401
1407
  option: [
1402
1408
  { name: "1", code: 1 },
@@ -1413,8 +1419,8 @@ const He = {
1413
1419
  type: "radio",
1414
1420
  label: "每行空数",
1415
1421
  key: d.sheetCard.fill_f,
1416
- target: [O.page, O.headline],
1417
- show: (e) => !e.style[d.sheetCard.fill_b] && e.children.length,
1422
+ target: [M.page, M.headline],
1423
+ show: (e) => !e.notSelf && !e.style[d.sheetCard.fill_b] && e.children.length,
1418
1424
  option: [
1419
1425
  { name: "1", code: 1 },
1420
1426
  { name: "1/2", code: 2 },
@@ -1429,13 +1435,13 @@ const He = {
1429
1435
  type: "slider",
1430
1436
  label: "每空高度",
1431
1437
  key: d.sheetCard.fill_e,
1432
- target: (e, t) => [m.synthesis, m.mix].includes(e.problemType) ? [O.problem] : [O.page, O.headline],
1433
- show: (e) => !e.style[d.sheetCard.fill_b],
1438
+ target: (e, t) => [u.synthesis, u.mix].includes(e.problemType) ? [M.problem] : [M.page, M.headline],
1439
+ show: (e) => !e.notSelf && !e.style[d.sheetCard.fill_b],
1434
1440
  max: () => 20
1435
1441
  }
1436
1442
  ],
1437
1443
  // 选填题
1438
- [m.mix]: [
1444
+ [u.mix]: [
1439
1445
  // { // 试题自身
1440
1446
  // type: 'radio',
1441
1447
  // label: '每空宽度',
@@ -1495,16 +1501,39 @@ const He = {
1495
1501
  type: "radio",
1496
1502
  label: "题目计分提示",
1497
1503
  key: d.public.scoreShowFlag,
1498
- show: (e) => !e.style[d.sheetCard.mix_a] && ((e.mixType || []).find((t) => [m.easy_slove].includes(t.problemType)) || (e.children || []).filter((t) => Object.values(m).includes(t.problemType)).map((t) => t.mixType || []).flat(2).find((t) => [m.easy_slove].includes(t.problemType))),
1504
+ show: (e) => !e.style[d.sheetCard.mix_a] && ((e.mixType || []).find((t) => [u.easy_slove].includes(t.problemType)) || (e.children || []).filter((t) => Object.values(u).includes(t.problemType)).map((t) => t.mixType || []).flat(2).find((t) => [u.easy_slove].includes(t.problemType))),
1499
1505
  option: [
1500
1506
  { name: "隐藏", code: f.bracket_none },
1501
1507
  { name: "显示(英文括号)", code: f.bracket_en },
1502
1508
  { name: "显示(中文括号)", code: f.bracket_cn }
1503
1509
  ]
1510
+ },
1511
+ // { // 其它
1512
+ // type: 'radio',
1513
+ // label: '每行空数',
1514
+ // key: problemLayoutKey.sheetCard.fill_f,
1515
+ // target: [toolGroup.page, toolGroup.headline],
1516
+ // show: (item: Strany) => !item.style[problemLayoutKey.sheetCard.mix_a] && ((item.mixType || []).find((v: Strany) => [problemCode.easy_slove, problemCode.fill, problemCode.fill_english].includes(v.problemType)) || (item.children || []).filter((v: Strany) => Object.values(problemCode).includes(v.problemType)).map((v: Strany) => v.mixType || []).flat(2).find((v: Strany) => [problemCode.easy_slove, problemCode.fill, problemCode.fill_english].includes(v.problemType))),
1517
+ // option: [
1518
+ // { name: '1', code: 1 },
1519
+ // { name: '1/2', code: 2 },
1520
+ // { name: '1/3', code: 3 },
1521
+ // { name: '1/4', code: 4 },
1522
+ // { name: '1/5', code: 5 },
1523
+ // { name: '2/3', code: 1.5 },
1524
+ // { name: '3/4', code: 1.34 }
1525
+ // ]
1526
+ // },
1527
+ {
1528
+ type: "slider",
1529
+ label: "每空高度",
1530
+ key: d.sheetCard.fill_e,
1531
+ show: (e) => !e.style[d.sheetCard.mix_a] && ((e.mixType || []).find((t) => [u.easy_slove, u.fill, u.fill_english].includes(t.problemType)) || (e.children || []).filter((t) => Object.values(u).includes(t.problemType)).map((t) => t.mixType || []).flat(2).find((t) => [u.easy_slove, u.fill, u.fill_english].includes(t.problemType))),
1532
+ max: () => 20
1504
1533
  }
1505
1534
  ],
1506
1535
  // 解答题
1507
- [m.slove]: [
1536
+ [u.slove]: [
1508
1537
  {
1509
1538
  type: "radio",
1510
1539
  label: "题目计分提示",
@@ -1530,7 +1559,7 @@ const He = {
1530
1559
  // }
1531
1560
  ],
1532
1561
  // 简答题
1533
- [m.easy_slove]: [
1562
+ [u.easy_slove]: [
1534
1563
  {
1535
1564
  type: "radio",
1536
1565
  label: "题目计分提示",
@@ -1541,16 +1570,59 @@ const He = {
1541
1570
  { name: "显示(英文括号)", code: f.bracket_en },
1542
1571
  { name: "显示(中文括号)", code: f.bracket_cn }
1543
1572
  ]
1573
+ },
1574
+ {
1575
+ // 试题自身
1576
+ type: "radio",
1577
+ label: "宽度",
1578
+ key: d.sheetCard.easy_slove_c,
1579
+ detail: !0,
1580
+ target: [M.problem],
1581
+ problemCode: [u.easy_slove],
1582
+ option: [
1583
+ { name: "1", code: 1 },
1584
+ { name: "1/2", code: 2 },
1585
+ { name: "1/3", code: 3 },
1586
+ { name: "1/4", code: 4 },
1587
+ { name: "1/5", code: 5 },
1588
+ { name: "2/3", code: 1.5 },
1589
+ { name: "3/4", code: 1.34 }
1590
+ ]
1591
+ },
1592
+ {
1593
+ // 其它
1594
+ type: "radio",
1595
+ label: "每行空数",
1596
+ key: d.sheetCard.easy_slove_e,
1597
+ target: [M.page, M.headline],
1598
+ show: (e) => !e.notSelf,
1599
+ option: [
1600
+ { name: "1", code: 1 },
1601
+ { name: "1/2", code: 2 },
1602
+ { name: "1/3", code: 3 },
1603
+ { name: "1/4", code: 4 },
1604
+ { name: "1/5", code: 5 },
1605
+ { name: "2/3", code: 1.5 },
1606
+ { name: "3/4", code: 1.34 }
1607
+ ]
1608
+ },
1609
+ {
1610
+ type: "slider",
1611
+ label: "每空高度",
1612
+ key: d.sheetCard.easy_slove_d,
1613
+ show: (e) => !e.notSelf,
1614
+ target: (e, t) => [u.mix].includes(e.problemType) ? [M.problem] : [M.page, M.headline, M.problem],
1615
+ max: () => 20
1544
1616
  }
1545
1617
  ],
1546
1618
  // 作文题
1547
- [m.art]: [
1619
+ [u.art]: [
1548
1620
  {
1549
1621
  type: "slider",
1550
1622
  label: "格子尺寸",
1551
1623
  key: d.article.art_b,
1552
1624
  detail: !0,
1553
- target: [O.problem],
1625
+ target: [M.problem],
1554
1626
  show: (e) => e.artBlock,
1555
1627
  min: () => 27,
1556
1628
  max: () => 40,
@@ -1565,7 +1637,7 @@ const He = {
1565
1637
  key: d.sheetCard.art_c,
1566
1638
  detail: !0,
1567
1639
  unit: "字",
1568
- target: [O.problem],
1640
+ target: [M.problem],
1569
1641
  show: (e) => e.artBlock
1570
1642
  },
1571
1643
  {
@@ -1575,7 +1647,7 @@ const He = {
1575
1647
  detail: !0,
1576
1648
  min: () => 1,
1577
1649
  max: (e) => Math.floor(e.style[d.sheetCard.art_c] / e.style[d.sheetCard.art_e]),
1578
- target: [O.problem],
1650
+ target: [M.problem],
1579
1651
  show: (e) => e.artBlock
1580
1652
  },
1581
1653
  {
@@ -1587,7 +1659,7 @@ const He = {
1587
1659
  { name: "100", code: 100 }
1588
1660
  ],
1589
1661
  detail: !0,
1590
- target: [O.problem],
1662
+ target: [M.problem],
1591
1663
  show: (e) => e.artBlock
1592
1664
  },
1593
1665
  {
@@ -1596,7 +1668,7 @@ const He = {
1596
1668
  key: d.sheetCard.art_c,
1597
1669
  detail: !0,
1598
1670
  unit: "行",
1599
- target: [O.problem],
1671
+ target: [M.problem],
1600
1672
  show: (e) => !e.artBlock
1601
1673
  },
1602
1674
  {
@@ -1623,7 +1695,7 @@ const He = {
1623
1695
  // }
1624
1696
  ],
1625
1697
  // 综合题
1626
- [m.synthesis]: [
1698
+ [u.synthesis]: [
1627
1699
  {
1628
1700
  type: "radio",
1629
1701
  label: "主客分离",
@@ -1638,7 +1710,7 @@ const He = {
1638
1710
  type: "radio",
1639
1711
  label: "题目计分提示",
1640
1712
  key: d.public.scoreShowFlag,
1641
- show: (e) => (e.children || []).filter((t) => Object.values(m).includes(t.problemType)).map((t) => (t.children || []).length ? t.children : t).flat(2).find((t) => [m.easy_slove, m.slove].includes(t.problemType)),
1713
+ show: (e) => (e.children || []).filter((t) => Object.values(u).includes(t.problemType)).map((t) => (t.children || []).length ? t.children : t).flat(2).find((t) => [u.easy_slove, u.slove].includes(t.problemType)),
1642
1714
  option: [
1643
1715
  { name: "隐藏", code: f.bracket_none },
1644
1716
  { name: "显示(英文括号)", code: f.bracket_en },
@@ -1701,6 +1773,11 @@ const He = {
1701
1773
  height: 16
1702
1774
  }
1703
1775
  }, ot = {
1776
+ small: {
1777
+ name: "小",
1778
+ code: "small",
1779
+ value: 19
1780
+ },
1704
1781
  stand: {
1705
1782
  name: "标准",
1706
1783
  code: "stand",
@@ -1749,7 +1826,7 @@ const He = {
1749
1826
  sloveScoreHalfErr: "简易打分条含小数分值",
1750
1827
  absImgOverErr: "浮层图片超出纸张",
1751
1828
  absTxtOverErr: "浮层文本超出纸张"
1752
- }, ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1829
+ }, li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1753
1830
  __proto__: null,
1754
1831
  ErrLayoutCode: go,
1755
1832
  MixNodeTag: Bt,
@@ -1796,7 +1873,7 @@ const He = {
1796
1873
  subRangeOption: lo,
1797
1874
  subRule: je,
1798
1875
  subRuleOption: no,
1799
- toolGroup: O
1876
+ toolGroup: M
1800
1877
  }, Symbol.toStringTag, { value: "Module" })), _t = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), bo = "TF".split(""), vo = {
1801
1878
  a4: "TYPE_A4",
1802
1879
  a4x: "TYPE_A4",
@@ -1852,30 +1929,30 @@ const He = {
1852
1929
  // 密封线
1853
1930
  bind_line: `__${fe}bindline`
1854
1931
  }, rt = {
1855
- [m.choice]: "TYPE_SINGLECHOICE",
1932
+ [u.choice]: "TYPE_SINGLECHOICE",
1856
1933
  // 单项选择
1857
- [m.choice_english]: "TYPE_SINGLECHOICE",
1858
- [m.cloze]: "TYPE_CLOZE_TEST",
1859
- [m.choice_multiple]: "TYPE_MULTICHOICE",
1934
+ [u.choice_english]: "TYPE_SINGLECHOICE",
1935
+ [u.cloze]: "TYPE_CLOZE_TEST",
1936
+ [u.choice_multiple]: "TYPE_MULTICHOICE",
1860
1937
  // 多项选择
1861
- [m.decide]: "TYPE_JUDGE",
1938
+ [u.decide]: "TYPE_JUDGE",
1862
1939
  // 判断
1863
- [m.fill]: "TYPE_FILLBLANK",
1940
+ [u.fill]: "TYPE_FILLBLANK",
1864
1941
  // 填空
1865
- [m.fill_english]: "TYPE_FILLBLANK",
1866
- [m.mix]: "TYPE_CHOICE_FILL",
1867
- [m.slove]: "TYPE_SIMPLEQUESTION",
1942
+ [u.fill_english]: "TYPE_FILLBLANK",
1943
+ [u.mix]: "TYPE_CHOICE_FILL",
1944
+ [u.slove]: "TYPE_SIMPLEQUESTION",
1868
1945
  // 简(问)答
1869
- [m.easy_slove]: "TYPE_SIMPLE_ANSWER",
1870
- [m.art]: "TYPE_COMPOSITION",
1946
+ [u.easy_slove]: "TYPE_SIMPLE_ANSWER",
1947
+ [u.art]: "TYPE_COMPOSITION",
1871
1948
  // 作文
1872
- [m.synthesis]: "TYPE_MULTI",
1949
+ [u.synthesis]: "TYPE_MULTI",
1873
1950
  // 综合题
1874
1951
  [Ce.one_choice]: "TYPE_SINGLECHOICE",
1875
1952
  // 选做题
1876
1953
  [Ce.another_choice]: "TYPE_SINGLECHOICE"
1877
1954
  // 附加选做题
1878
- }, wo = ["data-xine"], ko = ["data-xine"], xo = ["data-xine"], Co = ["data-xine"], So = ["data-xine"], xe = 20, $o = /* @__PURE__ */ ne({
1955
+ }, wo = ["data-xine"], ko = ["data-xine"], xo = ["data-xine"], Co = ["data-xine"], So = ["data-xine"], xe = 20, To = /* @__PURE__ */ ne({
1879
1956
  __name: "point",
1880
1957
  props: {
1881
1958
  layout: {},
@@ -1909,54 +1986,54 @@ const He = {
1909
1986
  b: {
1910
1987
  bottom: `${t.padding.bottom - xe}px`
1911
1988
  }
1912
- }, p = (x[t.layout.paper].width - t.padding.left - t.padding.right + xe) / (et.includes(t.layout.paper) ? 3 : t.currentPage % 2 ? t.layout.column : t.layout.backColumn);
1913
- return { left: `${c * p + t.padding.left - xe}px`, width: `${xe}px`, ...n[y] };
1989
+ }, m = (x[t.layout.paper].width - t.padding.left - t.padding.right + xe) / (et.includes(t.layout.paper) ? 3 : t.currentPage % 2 ? t.layout.column : t.layout.backColumn);
1990
+ return { left: `${c * m + t.padding.left - xe}px`, width: `${xe}px`, ...n[y] };
1914
1991
  }, s = (c) => {
1915
- const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, n = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, p = ["", "l", "r"].findIndex((M) => M === c);
1916
- return { top: `${y * p + t.padding.top - 10}px`, width: "11px", ...n };
1992
+ const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, n = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((A) => A === c);
1993
+ return { top: `${y * m + t.padding.top - 10}px`, width: "11px", ...n };
1917
1994
  };
1918
1995
  return (c, y) => {
1919
1996
  var n;
1920
- return r(), u(N, null, [
1921
- (r(), u(N, null, le(["lt", "rt", "lb", "rb"], (p) => k("span", {
1922
- key: p,
1997
+ return r(), h(O, null, [
1998
+ (r(), h(O, null, le(["lt", "rt", "lb", "rb"], (m) => k("span", {
1999
+ key: m,
1923
2000
  class: "absolute w-8 bg-black point_item",
1924
- style: Z(l(p)),
1925
- "data-xine": L(I).point + p
2001
+ style: X(l(m)),
2002
+ "data-xine": L(I).point + m
1926
2003
  }, null, 12, wo)), 64)),
1927
- (r(!0), u(N, null, le(o.value, (p) => (r(), u(N, { key: p }, [
1928
- (r(), u(N, null, le(["t", "b"], (M) => k("span", {
1929
- key: M,
2004
+ (r(!0), h(O, null, le(o.value, (m) => (r(), h(O, { key: m }, [
2005
+ (r(), h(O, null, le(["t", "b"], (A) => k("span", {
2006
+ key: A,
1930
2007
  class: "absolute bg-black w-8 point_item",
1931
- style: Z(a(p, M)),
1932
- "data-xine": L(I).point + M
2008
+ style: X(a(m, A)),
2009
+ "data-xine": L(I).point + A
1933
2010
  }, null, 12, ko)), 64))
1934
2011
  ], 64))), 128)),
1935
- (r(), u(N, null, le(["l", "r"], (p) => k("span", {
1936
- key: p,
2012
+ (r(), h(O, null, le(["l", "r"], (m) => k("span", {
2013
+ key: m,
1937
2014
  class: "absolute bg-black h-8",
1938
- style: Z(s(p)),
1939
- "data-xine": L(I).point + p
2015
+ style: X(s(m)),
2016
+ "data-xine": L(I).point + m
1940
2017
  }, null, 12, xo)), 64)),
1941
2018
  k("p", {
1942
2019
  class: "absolute leading-none text-0",
1943
- style: Z(i()),
2020
+ style: X(i()),
1944
2021
  "data-xine": L(I).page
1945
2022
  }, [
1946
- (r(!0), u(N, null, le(c.currentPage + 1, (p, M) => (r(), u("span", {
1947
- key: p,
2023
+ (r(!0), h(O, null, le(c.currentPage + 1, (m, A) => (r(), h("span", {
2024
+ key: m,
1948
2025
  class: "inline-block bg-black mx-2 page_item",
1949
- "data-xine": L(I).page_item + M
2026
+ "data-xine": L(I).page_item + A
1950
2027
  }, null, 8, So))), 128))
1951
2028
  ], 12, Co),
1952
- c.currentPage % 2 ? D("", !0) : (r(), u("span", {
2029
+ c.currentPage % 2 ? B("", !0) : (r(), h("span", {
1953
2030
  key: 0,
1954
2031
  class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
1955
- style: Z({ right: `${c.padding.right - 12}px` })
1956
- }, "提示:本卷" + te((n = L(Ge).find((p) => p.code === c.layout.paper)) == null ? void 0 : n.name) + "纸张", 5)),
2032
+ style: X({ right: `${c.padding.right - 12}px` })
2033
+ }, "提示:本卷" + te((n = L(Ge).find((m) => m.code === c.layout.paper)) == null ? void 0 : n.name) + "纸张", 5)),
1957
2034
  k("span", {
1958
2035
  class: "absolute text-sm red_sheet",
1959
- style: Z({ right: `${c.padding.bottom - 20 + 75}px`, bottom: `${c.padding.bottom - 20 - 3}px` })
2036
+ style: X({ right: `${c.padding.bottom - 20 + 75}px`, bottom: `${c.padding.bottom - 20 - 3}px` })
1960
2037
  }, te(c.currentPage + 1) + "/" + te(c.totalPage), 5)
1961
2038
  ], 64);
1962
2039
  };
@@ -1967,7 +2044,7 @@ const me = (e, t) => {
1967
2044
  for (const [l, i] of t)
1968
2045
  o[l] = i;
1969
2046
  return o;
1970
- }, To = /* @__PURE__ */ me($o, [["__scopeId", "data-v-2c1c50bb"]]), Io = { class: "flex-1" }, Lo = ["type", "placeholder", "maxlength", "value"], Fo = {
2047
+ }, $o = /* @__PURE__ */ me(To, [["__scopeId", "data-v-2c1c50bb"]]), Io = { class: "flex-1" }, Lo = ["type", "placeholder", "maxlength", "value"], Fo = {
1971
2048
  key: 0,
1972
2049
  class: "flex-shrink-0 ml-2 text-text3"
1973
2050
  }, st = /* @__PURE__ */ ne({
@@ -2000,7 +2077,7 @@ const me = (e, t) => {
2000
2077
  }, y = () => {
2001
2078
  t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value), i.value = !1;
2002
2079
  };
2003
- return (n, p) => (r(), u("div", {
2080
+ return (n, m) => (r(), h("div", {
2004
2081
  class: oe(["flex-1 flex items-center border rounded-lg", n.autoLine ? i.value ? "border-gray4" : "border-transparent" : "border-gray4", n.size === "small" && "p-1", n.size === "stand" && "p-2", n.size === "large" && "p-2"])
2005
2082
  }, [
2006
2083
  k("div", Io, [
@@ -2016,7 +2093,7 @@ const me = (e, t) => {
2016
2093
  onBlur: y
2017
2094
  }, null, 42, Lo)
2018
2095
  ]),
2019
- n.unit ? (r(), u("span", Fo, te(n.unit), 1)) : D("", !0)
2096
+ n.unit ? (r(), h("span", Fo, te(n.unit), 1)) : B("", !0)
2020
2097
  ], 2));
2021
2098
  }
2022
2099
  }), Eo = /* @__PURE__ */ ne({
@@ -2039,7 +2116,7 @@ const me = (e, t) => {
2039
2116
  size: "small",
2040
2117
  autoLine: "",
2041
2118
  dir: "right",
2042
- style: Z(i.value),
2119
+ style: X(i.value),
2043
2120
  onChange: s[0] || (s[0] = (c) => t("change", { slogin: c }))
2044
2121
  }, null, 8, ["value", "style"]));
2045
2122
  }
@@ -2053,11 +2130,11 @@ const me = (e, t) => {
2053
2130
  emits: ["click"],
2054
2131
  setup(e, { emit: t }) {
2055
2132
  const o = e, l = W(() => `#icon-${o.name}`);
2056
- return (i, a) => (r(), u("span", {
2133
+ return (i, a) => (r(), h("span", {
2057
2134
  class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
2058
2135
  onClick: a[0] || (a[0] = (s) => t("click"))
2059
2136
  }, [
2060
- (r(), u("svg", {
2137
+ (r(), h("svg", {
2061
2138
  width: i.width + "rem",
2062
2139
  height: (i.height || i.width) + "rem"
2063
2140
  }, [
@@ -2076,8 +2153,8 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2076
2153
  code: {}
2077
2154
  },
2078
2155
  setup(e) {
2079
- return (t, o) => (r(), u("div", Do, [
2080
- t.layout.secrecyFlag ? (r(), u("p", Bo, [
2156
+ return (t, o) => (r(), h("div", Do, [
2157
+ t.layout.secrecyFlag ? (r(), h("p", Bo, [
2081
2158
  Ze("绝密"),
2082
2159
  ae(ve, {
2083
2160
  name: "fiveArrow",
@@ -2085,11 +2162,11 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2085
2162
  class: "px-0 py-0"
2086
2163
  }),
2087
2164
  Ze("启用前")
2088
- ])) : D("", !0),
2165
+ ])) : B("", !0),
2089
2166
  k("p", No, "ID:" + te(t.code), 1)
2090
2167
  ]));
2091
2168
  }
2092
- }), zo = ["innerHTML"], Re = /* @__PURE__ */ ne({
2169
+ }), zo = ["innerHTML"], He = /* @__PURE__ */ ne({
2093
2170
  __name: "index",
2094
2171
  props: {
2095
2172
  value: {},
@@ -2101,13 +2178,13 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2101
2178
  const o = e, l = (i) => {
2102
2179
  t("change", i.target.innerHTML, o.name);
2103
2180
  };
2104
- return (i, a) => (r(), u("div", {
2181
+ return (i, a) => (r(), h("div", {
2105
2182
  innerHTML: i.value,
2106
2183
  contenteditable: "",
2107
2184
  onBlur: l
2108
2185
  }, null, 40, zo));
2109
2186
  }
2110
- }), Ro = { class: "flex w-full" }, Ho = ["src", "data-xine"], Wo = { class: "flex-1 mx-4" }, Go = { class: "flex items-center justify-center flex-wrap" }, Qo = {
2187
+ }), Ho = { class: "flex w-full" }, Ro = ["src", "data-xine"], Wo = { class: "flex-1 mx-4" }, Go = { class: "flex items-center justify-center flex-wrap" }, Qo = {
2111
2188
  key: 0,
2112
2189
  class: "flex mx-4 min-w-[70px]"
2113
2190
  }, qo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "范围:", -1), Yo = {
@@ -2133,37 +2210,37 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2133
2210
  emits: ["change"],
2134
2211
  setup(e, { emit: t }) {
2135
2212
  const o = e, l = W(() => o.data.filter((s) => ![Ce.another, Ce.another_choice, Ce.one_choice].includes(s.problemType)).map((s) => s.totalScore || 0).reduce((s, c) => s + c, 0)), i = W(() => o.data.filter((s) => [Ce.another].includes(s.problemType)).map((s) => s.totalScore || 0).reduce((s, c) => s + c, 0)), a = W(() => o.layout.scoreAddStars === nt.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
2136
- return (s, c) => (r(), u("div", Ro, [
2213
+ return (s, c) => (r(), h("div", Ho, [
2137
2214
  k("img", {
2138
2215
  src: s.info.qrCode,
2139
2216
  alt: "QRCode",
2140
2217
  class: "flex-shrink-0 w-28 h-28",
2141
2218
  "data-xine": L(I).art_code
2142
- }, null, 8, Ho),
2219
+ }, null, 8, Ro),
2143
2220
  k("div", Wo, [
2144
- ae(Re, {
2221
+ ae(He, {
2145
2222
  class: "w-full text-center border-2 border-transparent focus:border-current",
2146
2223
  value: s.info.title,
2147
- style: Z(s.fontConfig.titleStyle),
2224
+ style: X(s.fontConfig.titleStyle),
2148
2225
  onChange: c[0] || (c[0] = (y) => t("change", { title: y }))
2149
2226
  }, null, 8, ["value", "style"]),
2150
- s.layout.secTitleFlag ? (r(), ee(Re, {
2227
+ s.layout.secTitleFlag ? (r(), ee(He, {
2151
2228
  key: 0,
2152
2229
  class: "w-full text-center border-2 border-transparent focus:border-current",
2153
2230
  value: s.info.secTitle,
2154
- style: Z(s.fontConfig.halfTitleStyle),
2231
+ style: X(s.fontConfig.halfTitleStyle),
2155
2232
  onChange: c[1] || (c[1] = (y) => t("change", { secTitle: y }))
2156
- }, null, 8, ["value", "style"])) : D("", !0),
2233
+ }, null, 8, ["value", "style"])) : B("", !0),
2157
2234
  k("div", Go, [
2158
- s.layout.examExtentFlag ? (r(), u("p", Qo, [
2235
+ s.layout.examExtentFlag ? (r(), h("p", Qo, [
2159
2236
  qo,
2160
- ae(Re, {
2237
+ ae(He, {
2161
2238
  class: "flex-1",
2162
2239
  value: s.info.extent,
2163
2240
  onChange: c[2] || (c[2] = (y) => t("change", { extent: y }))
2164
2241
  }, null, 8, ["value"])
2165
- ])) : D("", !0),
2166
- s.layout.examTimeFlag ? (r(), u("p", Yo, [
2242
+ ])) : B("", !0),
2243
+ s.layout.examTimeFlag ? (r(), h("p", Yo, [
2167
2244
  Ko,
2168
2245
  ae(st, {
2169
2246
  value: s.info.time,
@@ -2175,60 +2252,60 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2175
2252
  onChange: c[3] || (c[3] = (y) => t("change", { time: y }))
2176
2253
  }, null, 8, ["value"]),
2177
2254
  Uo
2178
- ])) : D("", !0),
2179
- s.layout.authorFlag ? (r(), u("p", Vo, [
2255
+ ])) : B("", !0),
2256
+ s.layout.authorFlag ? (r(), h("p", Vo, [
2180
2257
  jo,
2181
- ae(Re, {
2258
+ ae(He, {
2182
2259
  class: "flex-1",
2183
2260
  value: s.info.author,
2184
2261
  onChange: c[4] || (c[4] = (y) => t("change", { author: y }))
2185
2262
  }, null, 8, ["value"])
2186
- ])) : D("", !0),
2187
- s.layout.reviewerFlag ? (r(), u("p", Xo, [
2263
+ ])) : B("", !0),
2264
+ s.layout.reviewerFlag ? (r(), h("p", Xo, [
2188
2265
  Jo,
2189
- ae(Re, {
2266
+ ae(He, {
2190
2267
  class: "flex-1",
2191
2268
  value: s.info.reviewer,
2192
2269
  onChange: c[5] || (c[5] = (y) => t("change", { reviewer: y }))
2193
2270
  }, null, 8, ["value"])
2194
- ])) : D("", !0),
2195
- s.layout.totalScoreFlag ? (r(), u("p", Zo, [
2271
+ ])) : B("", !0),
2272
+ s.layout.totalScoreFlag ? (r(), h("p", Zo, [
2196
2273
  ea,
2197
2274
  a.value ? (r(), ee(ve, {
2198
2275
  key: 0,
2199
2276
  name: a.value,
2200
2277
  class: "p-0 -translate-y-[1px]"
2201
- }, null, 8, ["name"])) : (r(), u("span", ta, "分")),
2278
+ }, null, 8, ["name"])) : (r(), h("span", ta, "分")),
2202
2279
  k("span", null, ":" + te(l.value + (s.layout.writeScoreFlag ? s.info.writeScore : 0)), 1),
2203
2280
  a.value ? (r(), ee(ve, {
2204
2281
  key: 2,
2205
2282
  name: a.value,
2206
2283
  class: "p-0 -translate-y-[1px]"
2207
- }, null, 8, ["name"])) : (r(), u("span", oa, "分")),
2208
- s.layout.writeScoreFlag ? (r(), u(N, { key: 4 }, [
2284
+ }, null, 8, ["name"])) : (r(), h("span", oa, "分")),
2285
+ s.layout.writeScoreFlag ? (r(), h(O, { key: 4 }, [
2209
2286
  k("span", null, "(试题" + te(l.value), 1),
2210
2287
  a.value ? (r(), ee(ve, {
2211
2288
  key: 0,
2212
2289
  name: a.value,
2213
2290
  class: "p-0 -translate-y-[1px]"
2214
- }, null, 8, ["name"])) : (r(), u("span", aa, "分")),
2291
+ }, null, 8, ["name"])) : (r(), h("span", aa, "分")),
2215
2292
  k("span", null, "+卷面" + te(s.info.writeScore || 0), 1),
2216
2293
  a.value ? (r(), ee(ve, {
2217
2294
  key: 2,
2218
2295
  name: a.value,
2219
2296
  class: "p-0 -translate-y-[1px]"
2220
- }, null, 8, ["name"])) : (r(), u("span", la, "分")),
2297
+ }, null, 8, ["name"])) : (r(), h("span", la, "分")),
2221
2298
  na
2222
- ], 64)) : D("", !0),
2223
- i.value ? (r(), u(N, { key: 5 }, [
2299
+ ], 64)) : B("", !0),
2300
+ i.value ? (r(), h(O, { key: 5 }, [
2224
2301
  k("span", null, ";附加题:" + te(i.value), 1),
2225
2302
  a.value ? (r(), ee(ve, {
2226
2303
  key: 0,
2227
2304
  name: a.value,
2228
2305
  class: "p-0 -translate-y-[1px]"
2229
- }, null, 8, ["name"])) : (r(), u("span", sa, "分"))
2230
- ], 64)) : D("", !0)
2231
- ])) : D("", !0)
2306
+ }, null, 8, ["name"])) : (r(), h("span", sa, "分"))
2307
+ ], 64)) : B("", !0)
2308
+ ])) : B("", !0)
2232
2309
  ])
2233
2310
  ])
2234
2311
  ]));
@@ -2242,10 +2319,10 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2242
2319
  emits: ["change"],
2243
2320
  setup(e, { emit: t }) {
2244
2321
  const o = ["examNumField", "examRoomField", "scoreField"];
2245
- return (l, i) => (r(), u("ul", {
2322
+ return (l, i) => (r(), h("ul", {
2246
2323
  class: oe(["flex", l.isRow ? "w-full" : "flex-1 flex-col mr-2"])
2247
2324
  }, [
2248
- (r(), u(N, null, le(o, (a, s) => k("li", {
2325
+ (r(), h(O, null, le(o, (a, s) => k("li", {
2249
2326
  key: a,
2250
2327
  class: oe(["flex flex-1 min-w-[12rem]", l.isRow && s && "ml-2"])
2251
2328
  }, [
@@ -2263,7 +2340,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2263
2340
  }), ra = ["data-xine"], ca = { class: "flex items-center" }, da = ["data-xine"], ua = ["data-xine"], ha = ["data-xine"], pa = /* @__PURE__ */ ne({
2264
2341
  __name: "examInfoSeat",
2265
2342
  setup(e) {
2266
- return (t, o) => (r(), u("div", {
2343
+ return (t, o) => (r(), h("div", {
2267
2344
  class: "flex-shrink-0 border flex flex-col",
2268
2345
  "data-xine": L(I).en_num_view
2269
2346
  }, [
@@ -2278,12 +2355,12 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2278
2355
  class: "flex-1 flex flex-col",
2279
2356
  "data-xine": L(I).en_num
2280
2357
  }, [
2281
- (r(), u(N, null, le(3, (l, i) => k("p", {
2358
+ (r(), h(O, null, le(3, (l, i) => k("p", {
2282
2359
  key: l,
2283
2360
  class: "flex-1 flex items-center text-0 px-1 border-t",
2284
2361
  "data-xine": L(I).en_num_group
2285
2362
  }, [
2286
- (r(), u(N, null, le(10, (a) => k("span", {
2363
+ (r(), h(O, null, le(10, (a) => k("span", {
2287
2364
  key: a,
2288
2365
  class: "flex items-center justify-between flex-nowrap item",
2289
2366
  "data-xine": L(I).en_num_item
@@ -2296,7 +2373,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2296
2373
  const ma = /* @__PURE__ */ me(pa, [["__scopeId", "data-v-91b25fab"]]), ya = ["data-xine"], _a = { class: "flex items-center border-r tracking-[5px] text_dir" }, fa = ["data-xine"], ga = ["data-xine"], ba = ["data-xine"], va = /* @__PURE__ */ ne({
2297
2374
  __name: "examInfoShort",
2298
2375
  setup(e) {
2299
- return (t, o) => (r(), u("div", {
2376
+ return (t, o) => (r(), h("div", {
2300
2377
  class: "flex-shrink-0 border ml-4 flex min-h-[9.5rem]",
2301
2378
  "data-xine": L(I).en_num_view
2302
2379
  }, [
@@ -2311,12 +2388,12 @@ const ma = /* @__PURE__ */ me(pa, [["__scopeId", "data-v-91b25fab"]]), ya = ["da
2311
2388
  class: "flex-1 flex flex-col",
2312
2389
  "data-xine": L(I).en_num
2313
2390
  }, [
2314
- (r(), u(N, null, le(4, (l, i) => k("p", {
2391
+ (r(), h(O, null, le(4, (l, i) => k("p", {
2315
2392
  key: l,
2316
2393
  class: oe(["flex-1 flex items-center text-0 px-1", i && "border-t"]),
2317
2394
  "data-xine": L(I).en_num_group
2318
2395
  }, [
2319
- (r(), u(N, null, le(10, (a) => k("span", {
2396
+ (r(), h(O, null, le(10, (a) => k("span", {
2320
2397
  key: a,
2321
2398
  class: "flex items-center justify-between flex-nowrap item",
2322
2399
  "data-xine": L(I).en_num_item
@@ -2335,10 +2412,10 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
2335
2412
  emits: ["change"],
2336
2413
  setup(e, { emit: t }) {
2337
2414
  const o = ["nameField", "classField", "seatField"];
2338
- return (l, i) => (r(), u("ul", {
2415
+ return (l, i) => (r(), h("ul", {
2339
2416
  class: oe(["flex", l.isRow ? "w-full items-center" : "flex-1 flex-col mr-2 max-w-[33%]"])
2340
2417
  }, [
2341
- (r(), u(N, null, le(o, (a, s) => k("li", {
2418
+ (r(), h(O, null, le(o, (a, s) => k("li", {
2342
2419
  key: a,
2343
2420
  class: oe(["flex flex-1", l.isRow && s && "ml-2"])
2344
2421
  }, [
@@ -2355,7 +2432,7 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
2355
2432
  }
2356
2433
  }), ka = (e) => (qe("data-v-4d37cd56"), e = e(), Ye(), e), xa = ["data-xine"], Ca = /* @__PURE__ */ ka(() => /* @__PURE__ */ k("span", { class: "font-bold tips" }, "贴条码区域", -1)), Sa = [
2357
2434
  Ca
2358
- ], $a = /* @__PURE__ */ ne({
2435
+ ], Ta = /* @__PURE__ */ ne({
2359
2436
  __name: "examInfo",
2360
2437
  props: {
2361
2438
  layout: {},
@@ -2365,7 +2442,7 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
2365
2442
  emits: ["change"],
2366
2443
  setup(e, { emit: t }) {
2367
2444
  const o = e, l = W(() => o.layout.seatType === Se.none || !o.layout.seatBar), i = W(() => o.layout.column >= 3 && l.value), a = W(() => o.layout.column >= 3 && o.layout.seatType !== Se.none && o.layout.seatBar);
2368
- return (s, c) => s.isBindFlag ? D("", !0) : (r(), u("div", {
2445
+ return (s, c) => s.isBindFlag ? B("", !0) : (r(), h("div", {
2369
2446
  key: 0,
2370
2447
  class: oe(["flex justify-between", (a.value || i.value) && "flex-wrap"])
2371
2448
  }, [
@@ -2374,7 +2451,7 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
2374
2451
  isRow: "",
2375
2452
  extent: s.info.extentInfo,
2376
2453
  onChange: c[0] || (c[0] = (y) => t("change", y))
2377
- }, null, 8, ["extent"])) : D("", !0),
2454
+ }, null, 8, ["extent"])) : B("", !0),
2378
2455
  ae(wa, {
2379
2456
  isRow: a.value,
2380
2457
  extent: s.info.extentInfo,
@@ -2384,17 +2461,17 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
2384
2461
  key: 1,
2385
2462
  extent: s.info.extentInfo,
2386
2463
  onChange: c[2] || (c[2] = (y) => t("change", y))
2387
- }, null, 8, ["extent"])) : D("", !0),
2388
- s.layout.seatType === L(Se).seat ? (r(), ee(ma, { key: 2 })) : s.layout.seatType === L(Se).shortId ? (r(), ee(Nt, { key: 3 })) : D("", !0),
2389
- s.layout.seatBar ? (r(), u("div", {
2464
+ }, null, 8, ["extent"])) : B("", !0),
2465
+ s.layout.seatType === L(Se).seat ? (r(), ee(ma, { key: 2 })) : s.layout.seatType === L(Se).shortId ? (r(), ee(Nt, { key: 3 })) : B("", !0),
2466
+ s.layout.seatBar ? (r(), h("div", {
2390
2467
  key: 4,
2391
2468
  class: "flex items-center justify-center flex-col flex-1 min-h-[9rem] ml-4 border border-dashed",
2392
2469
  "data-xine": L(I).en_code
2393
- }, Sa, 8, xa)) : D("", !0)
2470
+ }, Sa, 8, xa)) : B("", !0)
2394
2471
  ], 2));
2395
2472
  }
2396
2473
  });
2397
- const Ta = /* @__PURE__ */ me($a, [["__scopeId", "data-v-4d37cd56"]]), ze = (e) => (qe("data-v-936c144e"), e = e(), Ye(), e), Ia = {
2474
+ const $a = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e) => (qe("data-v-936c144e"), e = e(), Ye(), e), Ia = {
2398
2475
  key: 0,
2399
2476
  class: "flex border mt-2 red_sheet"
2400
2477
  }, La = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Fa = { class: "flex-1 overflow-hidden" }, Ea = { class: "flex items-center flex-1 pl-2" }, Pa = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), Ma = { class: "flex items-center justify-center text-black" }, Aa = ["data-xine"], Da = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", null, "[", -1)), Ba = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", { class: "ml-4" }, "]", -1)), Na = [
@@ -2403,7 +2480,7 @@ const Ta = /* @__PURE__ */ me($a, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
2403
2480
  ], Oa = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("p", { class: "flex items-center border-l px-2 py-1" }, [
2404
2481
  /* @__PURE__ */ k("span", null, "正确填涂示例"),
2405
2482
  /* @__PURE__ */ k("span", { class: "w-8 bg-black ml-2 block_tips" })
2406
- ], -1)), za = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("div", { class: "h-2" }, null, -1)), Ra = /* @__PURE__ */ ne({
2483
+ ], -1)), za = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("div", { class: "h-2" }, null, -1)), Ha = /* @__PURE__ */ ne({
2407
2484
  __name: "notice",
2408
2485
  props: {
2409
2486
  layout: {},
@@ -2423,17 +2500,17 @@ const Ta = /* @__PURE__ */ me($a, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
2423
2500
  "4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
2424
2501
  ];
2425
2502
  });
2426
- return (l, i) => (r(), u(N, null, [
2427
- l.layout.noteFlag ? (r(), u("div", Ia, [
2503
+ return (l, i) => (r(), h(O, null, [
2504
+ l.layout.noteFlag ? (r(), h("div", Ia, [
2428
2505
  La,
2429
2506
  k("div", Fa, [
2430
- (r(!0), u(N, null, le(o.value, (a) => (r(), u("p", {
2507
+ (r(!0), h(O, null, le(o.value, (a) => (r(), h("p", {
2431
2508
  key: a,
2432
2509
  class: "px-2 origin-left scale-75 tip_item"
2433
2510
  }, te(a), 1))), 128))
2434
2511
  ])
2435
- ])) : D("", !0),
2436
- l.layout.lackFlag ? (r(), u("div", {
2512
+ ])) : B("", !0),
2513
+ l.layout.lackFlag ? (r(), h("div", {
2437
2514
  key: 1,
2438
2515
  class: oe(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
2439
2516
  }, [
@@ -2448,12 +2525,12 @@ const Ta = /* @__PURE__ */ me($a, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
2448
2525
  ])
2449
2526
  ]),
2450
2527
  Oa
2451
- ], 2)) : D("", !0),
2528
+ ], 2)) : B("", !0),
2452
2529
  za
2453
2530
  ], 64));
2454
2531
  }
2455
2532
  });
2456
- const Ha = /* @__PURE__ */ me(Ra, [["__scopeId", "data-v-936c144e"]]), ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Wa = (e, t = "", o = !0, l = "children") => {
2533
+ const Ra = /* @__PURE__ */ me(Ha, [["__scopeId", "data-v-936c144e"]]), ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Wa = (e, t = "", o = !0, l = "children") => {
2457
2534
  let i = [];
2458
2535
  const a = (s) => {
2459
2536
  (s[l] || []).length ? (o && i.push(t ? s[t] : s[l]), s[l].forEach((c) => a(c))) : i.push(t ? s[t] : s);
@@ -2469,7 +2546,7 @@ function Ot(e) {
2469
2546
  return a ? `${a > 1 ? t[a] : ""}十${s ? t[s] : ""}` : t[s];
2470
2547
  })[e + 1];
2471
2548
  }
2472
- function $t(e) {
2549
+ function Tt(e) {
2473
2550
  return window.btoa(`${e || ""}${Math.random().toString(32).substr(2)}${Date.now()}`);
2474
2551
  }
2475
2552
  const Ga = {
@@ -2489,9 +2566,9 @@ const Ga = {
2489
2566
  },
2490
2567
  setup(e) {
2491
2568
  const t = e, o = W(() => t.data.filter((l) => l.problemType));
2492
- return (l, i) => l.layout.scoreFlag ? (r(), u("ul", Ga, [
2569
+ return (l, i) => l.layout.scoreFlag ? (r(), h("ul", Ga, [
2493
2570
  Qa,
2494
- (r(!0), u(N, null, le(o.value, (a, s) => (r(), u("li", {
2571
+ (r(!0), h(O, null, le(o.value, (a, s) => (r(), h("li", {
2495
2572
  key: a.id,
2496
2573
  class: "flex-1 flex flex-col border-l"
2497
2574
  }, [
@@ -2499,7 +2576,7 @@ const Ga = {
2499
2576
  Ya
2500
2577
  ]))), 128)),
2501
2578
  Ka
2502
- ])) : D("", !0);
2579
+ ])) : B("", !0);
2503
2580
  }
2504
2581
  }), Va = /* @__PURE__ */ ne({
2505
2582
  __name: "columnDom",
@@ -2513,12 +2590,12 @@ const Ga = {
2513
2590
  const o = e, l = V(), i = V();
2514
2591
  t({ col: l, colView: i });
2515
2592
  const a = W(() => {
2516
- const { top: y, width: n, height: p, left: M } = o.styleInfo;
2593
+ const { top: y, width: n, height: m, left: A } = o.styleInfo;
2517
2594
  return {
2518
2595
  top: `${parseFloat(y) - (o.currentColumn ? Le.top : 1)}px`,
2519
- left: `${parseFloat(M) - Le.left}px`,
2596
+ left: `${parseFloat(A) - Le.left}px`,
2520
2597
  width: `${parseFloat(n) + Le.left + Le.right}px`,
2521
- height: `${parseFloat(p) + (o.currentColumn ? Le.top : 0) + Le.bottom}px`
2598
+ height: `${parseFloat(m) + (o.currentColumn ? Le.top : 0) + Le.bottom}px`
2522
2599
  };
2523
2600
  }), s = W(() => ({
2524
2601
  left: `${Le.left - 1}px`,
@@ -2526,28 +2603,28 @@ const Ga = {
2526
2603
  bottom: `${Le.bottom - 1}px`,
2527
2604
  right: `${Le.right - 1}px`
2528
2605
  })), c = W(() => o.column < 3 || o.currentColumn % 3 === 1);
2529
- return (y, n) => (r(), u(N, null, [
2530
- y.showColBorder ? (r(), u("div", {
2606
+ return (y, n) => (r(), h(O, null, [
2607
+ y.showColBorder ? (r(), h("div", {
2531
2608
  key: 0,
2532
2609
  class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", c.value && "tips"]),
2533
- style: Z(a.value)
2610
+ style: X(a.value)
2534
2611
  }, [
2535
2612
  k("span", {
2536
2613
  class: "absolute border border-black",
2537
- style: Z(s.value)
2614
+ style: X(s.value)
2538
2615
  }, null, 4)
2539
- ], 6)) : D("", !0),
2616
+ ], 6)) : B("", !0),
2540
2617
  k("div", {
2541
2618
  class: "absolute overflow-hidden",
2542
2619
  ref_key: "colView",
2543
2620
  ref: i,
2544
- style: Z(y.styleInfo)
2621
+ style: X(y.styleInfo)
2545
2622
  }, [
2546
2623
  k("div", {
2547
2624
  ref_key: "col",
2548
2625
  ref: l,
2549
2626
  class: "overflow-hidden __col__",
2550
- style: Z({ height: y.styleInfo.contentHeight })
2627
+ style: X({ height: y.styleInfo.contentHeight })
2551
2628
  }, [
2552
2629
  mt(y.$slots, "default", {}, void 0, !0)
2553
2630
  ], 4)
@@ -2572,47 +2649,47 @@ const ja = /* @__PURE__ */ me(Va, [["__scopeId", "data-v-e102e805"]]), Xa = (e)
2572
2649
  },
2573
2650
  setup(e) {
2574
2651
  const t = V();
2575
- return (o, l) => o.isBindFlag ? (r(), u("div", {
2652
+ return (o, l) => o.isBindFlag ? (r(), h("div", {
2576
2653
  key: 0,
2577
- style: Z({ width: `${o.currentPage % 2 ? 0 : o.width}px`, height: `${o.height - 20}px` }),
2654
+ style: X({ width: `${o.currentPage % 2 ? 0 : o.width}px`, height: `${o.height - 20}px` }),
2578
2655
  class: oe([o.currentPage % 2 && "right_view"]),
2579
2656
  ref_key: "view",
2580
2657
  ref: t
2581
2658
  }, [
2582
- o.currentPage % 2 ? (r(), u("div", {
2659
+ o.currentPage % 2 ? (r(), h("div", {
2583
2660
  key: 0,
2584
2661
  class: "flex items-center justify-center origin-top-left border-b end_view",
2585
- style: Z({ width: `${o.height - 20}px`, height: `${o.width}px` })
2586
- }, "当前位置为密封线位置,请勿在此处作答", 4)) : (r(), u("div", {
2662
+ style: X({ width: `${o.height - 20}px`, height: `${o.width}px` })
2663
+ }, "当前位置为密封线位置,请勿在此处作答", 4)) : (r(), h("div", {
2587
2664
  key: 1,
2588
2665
  class: "relative flex items-end px-20 pb-6 border-b origin-top-right front_view",
2589
- style: Z({ width: `${o.height - 20}px` })
2666
+ style: X({ width: `${o.height - 20}px` })
2590
2667
  }, [
2591
2668
  k("div", Ja, [
2592
- (r(!0), u(N, null, le(o.bindInfo, (i, a) => (r(), u(N, { key: i }, [
2593
- a === 2 && o.bindInfo.length === 5 ? (r(), u("span", Za)) : D("", !0),
2669
+ (r(!0), h(O, null, le(o.bindInfo, (i, a) => (r(), h(O, { key: i }, [
2670
+ a === 2 && o.bindInfo.length === 5 ? (r(), h("span", Za)) : B("", !0),
2594
2671
  k("span", {
2595
2672
  class: oe(["flex-1 whitespace-nowrap w-20 mr-4 mt-8 overflow-hidden", o.bindInfo.length === 4 && "min-w-[40%] max-w-[50%]", o.bindInfo.length === 5 && "min-w-[30%] max-w-[35%]"])
2596
2673
  }, te(i), 3)
2597
2674
  ], 64))), 128))
2598
2675
  ]),
2599
- o.bindSeatType === L(Se).none ? (r(), u("div", {
2676
+ o.bindSeatType === L(Se).none ? (r(), h("div", {
2600
2677
  key: 0,
2601
2678
  class: "flex flex-shrink-0 items-center justify-center border border-dashed font-bold w-80 h-40",
2602
2679
  "data-xine": L(I).en_code
2603
2680
  }, ol, 8, el)) : o.bindSeatType === L(Se).shortId ? (r(), ee(Nt, {
2604
2681
  key: 1,
2605
2682
  class: "h-40"
2606
- })) : D("", !0),
2683
+ })) : B("", !0),
2607
2684
  k("span", {
2608
2685
  class: "absolute right-0 bottom-0",
2609
2686
  "data-xine": L(I).bind_line
2610
2687
  }, null, 8, al)
2611
2688
  ], 4))
2612
- ], 6)) : D("", !0);
2689
+ ], 6)) : B("", !0);
2613
2690
  }
2614
2691
  });
2615
- const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5jdmxyN28zYWRl", sl = "YWNhdnN2cmIydmcZm", Be = "MC4wYWx1ZXJvcWhm", Tt = "MC5sZGN2NzJ0ZXE0bw", ft = "MC5yYjk3NGY2OTcyOA", gt = "MC42cWRzbGM0c21jbw", il = "MC45amVuM25vajRk", rl = "MC44YjJkb212djRu", cl = ["img", "table", "svg"], dl = ["data-block", "data-xine"], ul = ["data-xine"], hl = ["data-xine"], pl = { class: "absolute opacity-0 pointer-events-none" }, ml = /* @__PURE__ */ ne({
2692
+ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), $e = "MC5jdmxyN28zYWRl", sl = "YWNhdnN2cmIydmcZm", Be = "MC4wYWx1ZXJvcWhm", $t = "MC5sZGN2NzJ0ZXE0bw", ft = "MC5yYjk3NGY2OTcyOA", gt = "MC42cWRzbGM0c21jbw", il = "MC45amVuM25vajRk", rl = "MC44YjJkb212djRu", cl = ["img", "table", "svg"], dl = ["data-block", "data-xine"], ul = ["data-xine"], hl = ["data-xine"], pl = { class: "absolute opacity-0 pointer-events-none" }, ml = /* @__PURE__ */ ne({
2616
2693
  __name: "simple",
2617
2694
  props: {
2618
2695
  item: {},
@@ -2623,18 +2700,18 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
2623
2700
  const i = t.item.score;
2624
2701
  return [i, Math.round(i / 2 * 100) / 100, 0];
2625
2702
  });
2626
- return (i, a) => (r(), u("div", {
2703
+ return (i, a) => (r(), h("div", {
2627
2704
  class: "flex border-x-2 border-y divide-x divide-solid",
2628
- "data-block": L(Te),
2705
+ "data-block": L($e),
2629
2706
  "data-xine": L(I).score
2630
2707
  }, [
2631
2708
  k("ul", {
2632
2709
  class: "flex h-full divide-x divide-solid",
2633
2710
  "data-xine": L(I).score_base
2634
2711
  }, [
2635
- (r(!0), u(N, null, le(l.value, (s, c) => (r(), u("li", {
2712
+ (r(!0), h(O, null, le(l.value, (s, c) => (r(), h("li", {
2636
2713
  class: "flex items-center justify-center relative score_line",
2637
- style: Z({ width: `${L(ot)[i.layout.scoreLineSize].value}px` }),
2714
+ style: X({ width: `${L(ot)[i.layout.scoreLineSize].value}px` }),
2638
2715
  "data-xine": L(I).score_item
2639
2716
  }, [
2640
2717
  k("span", pl, te(s), 1),
@@ -2660,53 +2737,53 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
2660
2737
  });
2661
2738
  const y = () => {
2662
2739
  !t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || lt(() => {
2663
- let p = [];
2740
+ let m = [];
2664
2741
  if (t.item.scoreLineType === tt.custom)
2665
- p = [[...t.item.customScore, 0]];
2742
+ m = [[...t.item.customScore, 0]];
2666
2743
  else if (t.item.scoreStep)
2667
- p.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((M) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * M)).reverse());
2744
+ m.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((A) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * A)).reverse());
2668
2745
  else {
2669
- const M = o.value.offsetWidth, h = ot[t.layout.scoreLineSize].value + 1;
2670
- l.value = M - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((P) => P && P * 10).reverse()), p.push([...Array(10).keys()].reverse()), a.value = !0) : p.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2746
+ const A = o.value.offsetWidth, p = ot[t.layout.scoreLineSize].value + 1;
2747
+ l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * p && t.item.score >= 10, l.value ? (m.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((P) => P && P * 10).reverse()), m.push([...Array(10).keys()].reverse()), a.value = !0) : m.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2671
2748
  }
2672
- t.item.hasHalfScore && p.push([0.5]), s.value = p, i.value = !!p.flat().find((M) => `${M}`.length > 3);
2749
+ t.item.hasHalfScore && m.push([0.5]), s.value = m, i.value = !!m.flat().find((A) => `${A}`.length > 3);
2673
2750
  });
2674
- }, n = (p) => t.item.hasHalfScore ? [I.score_half, I.score_base, I.score_tenbit][s.value.length - p - 1] : [I.score_base, I.score_tenbit][s.value.length - p - 1];
2675
- return (p, M) => p.layout.handReadFlag ? (r(), u(N, { key: 0 }, [
2676
- p.layout.simpleScoreBarFlag && !p.static ? (r(), ee(ml, {
2751
+ }, n = (m) => t.item.hasHalfScore ? [I.score_half, I.score_base, I.score_tenbit][s.value.length - m - 1] : [I.score_base, I.score_tenbit][s.value.length - m - 1];
2752
+ return (m, A) => m.layout.handReadFlag ? (r(), h(O, { key: 0 }, [
2753
+ m.layout.simpleScoreBarFlag && !m.static ? (r(), ee(ml, {
2677
2754
  key: 0,
2678
- item: p.item,
2679
- layout: p.layout
2680
- }, null, 8, ["item", "layout"])) : (r(), u("div", {
2755
+ item: m.item,
2756
+ layout: m.layout
2757
+ }, null, 8, ["item", "layout"])) : (r(), h("div", {
2681
2758
  key: 1,
2682
2759
  ref_key: "view",
2683
2760
  ref: o,
2684
- class: oe([s.value.length ? "inline-flex" : "flex-1", "max-w-full border border-l-2 border-r-2 divide-x divide-solid"]),
2685
- "data-block": L(Te),
2761
+ class: oe([s.value.length ? "inline-flex" : "flex-1", "max-w-full overflow-hidden border border-l-2 border-r-2 divide-x divide-solid"]),
2762
+ "data-block": L($e),
2686
2763
  "data-xine": L(I).score
2687
2764
  }, [
2688
- (r(!0), u(N, null, le(s.value, (h, P) => (r(), u("ul", {
2765
+ (r(!0), h(O, null, le(s.value, (p, P) => (r(), h("ul", {
2689
2766
  class: "flex divide-x divide-solid",
2690
2767
  "data-xine": n(P)
2691
2768
  }, [
2692
- (r(!0), u(N, null, le(h, (z) => (r(), u("li", {
2769
+ (r(!0), h(O, null, le(p, (z) => (r(), h("li", {
2693
2770
  class: "flex items-center justify-center flex-shrink-0 score_line",
2694
- style: Z({ width: `${L(ot)[p.layout.scoreLineSize].value}px` }),
2771
+ style: X({ width: `${L(ot)[m.layout.scoreLineSize].value}px` }),
2695
2772
  "data-xine": z.toString() ? L(I).score_item : ""
2696
2773
  }, [
2697
2774
  k("span", {
2698
2775
  class: oe(["whitespace-nowrap", c.value && "origin-right", i.value && "scale-75"])
2699
- }, te(p.layout.minusFlag && z.toString().length && !c.value ? "-" : "") + te(z), 3),
2776
+ }, te(m.layout.minusFlag && z.toString().length && !c.value ? "-" : "") + te(z), 3),
2700
2777
  c.value && z.toString().length ? (r(), ee(ve, {
2701
2778
  key: 0,
2702
2779
  class: "px-0 py-0 -translate-y-[1px]",
2703
- name: p.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
2780
+ name: m.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
2704
2781
  width: i.value ? 0.9 : 1.2
2705
- }, null, 8, ["name", "width"])) : D("", !0)
2782
+ }, null, 8, ["name", "width"])) : B("", !0)
2706
2783
  ], 12, fl))), 256))
2707
2784
  ], 8, _l))), 256))
2708
2785
  ], 10, yl))
2709
- ], 64)) : D("", !0);
2786
+ ], 64)) : B("", !0);
2710
2787
  }
2711
2788
  }), zt = (e) => (qe("data-v-a8dbd3b0"), e = e(), Ye(), e), gl = ["data-xine"], bl = /* @__PURE__ */ zt(() => /* @__PURE__ */ k("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), vl = /* @__PURE__ */ zt(() => /* @__PURE__ */ k("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), wl = /* @__PURE__ */ ne({
2712
2789
  __name: "writeScore",
@@ -2715,7 +2792,7 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
2715
2792
  layout: {}
2716
2793
  },
2717
2794
  setup(e) {
2718
- return (t, o) => (r(), u("div", {
2795
+ return (t, o) => (r(), h("div", {
2719
2796
  class: "flex items-center mb-2",
2720
2797
  "data-xine": L(I).write_view
2721
2798
  }, [
@@ -2736,19 +2813,19 @@ const kl = /* @__PURE__ */ me(wl, [["__scopeId", "data-v-a8dbd3b0"]]), xl = ["in
2736
2813
  },
2737
2814
  setup(e) {
2738
2815
  const t = e;
2739
- return (o, l) => (r(), u("div", {
2816
+ return (o, l) => (r(), h("div", {
2740
2817
  innerHTML: t.data,
2741
2818
  class: "base-problem-font problem-base"
2742
2819
  }, null, 8, xl));
2743
2820
  }
2744
2821
  });
2745
- const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["data-tag", "data-block"], $l = /* @__PURE__ */ ne({
2822
+ const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["data-tag", "data-block"], Tl = /* @__PURE__ */ ne({
2746
2823
  __name: "notArea",
2747
2824
  props: {
2748
2825
  item: {}
2749
2826
  },
2750
2827
  setup(e) {
2751
- return (t, o) => (r(), u("div", {
2828
+ return (t, o) => (r(), h("div", {
2752
2829
  class: "py-2 border border-dashed rounded-lg mx-1 my-2",
2753
2830
  "data-tag": t.item.__tag__,
2754
2831
  "data-block": L(ft)
@@ -2759,13 +2836,13 @@ const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["da
2759
2836
  }, null, 8, ["data-content", "data"])
2760
2837
  ], 8, Sl));
2761
2838
  }
2762
- }), Tl = (e) => (qe("data-v-8b8ee819"), e = e(), Ye(), e), Il = ["data-tag", "data-block"], Ll = {
2839
+ }), $l = (e) => (qe("data-v-8b8ee819"), e = e(), Ye(), e), Il = ["data-tag", "data-block"], Ll = {
2763
2840
  key: 0,
2764
2841
  class: "flex-shrink-0"
2765
2842
  }, Fl = { key: 0 }, El = {
2766
2843
  key: 1,
2767
2844
  class: "indent-2"
2768
- }, Pl = { key: 0 }, Ml = { key: 0 }, Al = { key: 1 }, Dl = ["data-block", "data-xine"], Bl = /* @__PURE__ */ Tl(() => /* @__PURE__ */ k("span", null, "我选答的题目是:", -1)), Nl = { class: "flex items-center" }, Ol = ["data-xine"], zl = /* @__PURE__ */ ne({
2845
+ }, Pl = { key: 0 }, Ml = { key: 0 }, Al = { key: 1 }, Dl = ["data-block", "data-xine"], Bl = /* @__PURE__ */ $l(() => /* @__PURE__ */ k("span", null, "我选答的题目是:", -1)), Nl = { class: "flex items-center" }, Ol = ["data-xine"], zl = /* @__PURE__ */ ne({
2769
2846
  __name: "index",
2770
2847
  props: {
2771
2848
  item: {},
@@ -2776,71 +2853,71 @@ const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["da
2776
2853
  },
2777
2854
  emits: ["click", "dbclick"],
2778
2855
  setup(e, { emit: t }) {
2779
- const o = e, l = V(!1), i = V(), a = W(() => [Ce.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), s = W(() => [Ce.another_choice].includes(o.item.problemType)), c = W(() => [Ce.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(Wa(o.item.rawChildren.filter((n) => n.problemType), "sub").flat().map((n) => (n || "").split(".")[0]))].length), y = W(() => [...new Set(o.item.rawChildren.map((n) => [...new Set(n.sub.map((p) => p.split(".")[0]))]).map((n) => n.length > 1 ? `${n[0]}-${n[n.length - 1]}` : n[0]))]);
2856
+ const o = e, l = V(!1), i = V(), a = W(() => [Ce.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), s = W(() => [Ce.another_choice].includes(o.item.problemType)), c = W(() => [Ce.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(Wa(o.item.rawChildren.filter((n) => n.problemType), "sub").flat().map((n) => (n || "").split(".")[0]))].length), y = W(() => [...new Set(o.item.rawChildren.map((n) => [...new Set(n.sub.map((m) => m.split(".")[0]))]).map((n) => n.length > 1 ? `${n[0]}-${n[n.length - 1]}` : n[0]))]);
2780
2857
  return Ke(() => {
2781
2858
  o.isFirst && o.item.problemType && (i.value.offsetHeight / parseFloat(window.getComputedStyle(i.value).lineHeight) > 1.5 ? l.value = !0 : l.value = !1);
2782
- }), (n, p) => n.item.problemType ? (r(), u("div", {
2859
+ }), (n, m) => n.item.problemType ? (r(), h("div", {
2783
2860
  key: 1,
2784
2861
  class: oe(["flex items-baseline relative headline_item", n.showColBorder && "pl-2 mx-1 z-2", !n.isFirst && "headline_view", l.value && "first_headline_view"]),
2785
- onClick: p[2] || (p[2] = Ee((M) => t("click", n.item), ["stop"])),
2862
+ onClick: m[2] || (m[2] = Ee((A) => t("click", n.item), ["stop"])),
2786
2863
  ref_key: "view",
2787
2864
  ref: i,
2788
2865
  "data-tag": n.item.__tag__,
2789
- "data-block": L(Te),
2790
- onDblclick: p[3] || (p[3] = Ee((M) => t("dbclick", n.item), ["stop"]))
2866
+ "data-block": L($e),
2867
+ onDblclick: m[3] || (m[3] = Ee((A) => t("dbclick", n.item), ["stop"]))
2791
2868
  }, [
2792
- !n.layout.listIndexFlag && n.item.sub ? (r(), u("span", Ll, te(L(Ot)(n.item.sub - 1)) + "、", 1)) : D("", !0),
2869
+ !n.layout.listIndexFlag && n.item.sub ? (r(), h("span", Ll, te(L(Ot)(n.item.sub - 1)) + "、", 1)) : B("", !0),
2793
2870
  k("div", null, [
2794
2871
  k("div", null, [
2795
2872
  k("span", null, te(n.item.name), 1),
2796
- n.item.desc ? (r(), u("span", Fl, "(" + te(n.item.desc) + ")", 1)) : D("", !0),
2797
- n.layout.scoreTipFlag ? (r(), u("span", El, "(共" + te(c.value) + "题,共" + te(n.item.totalScore) + "分)", 1)) : D("", !0)
2873
+ n.item.desc ? (r(), h("span", Fl, "(" + te(n.item.desc) + ")", 1)) : B("", !0),
2874
+ n.layout.scoreTipFlag ? (r(), h("span", El, "(共" + te(c.value) + "题,共" + te(n.item.totalScore) + "分)", 1)) : B("", !0)
2798
2875
  ]),
2799
- a.value || s.value ? (r(), u("div", Pl, [
2800
- a.value ? (r(), u("p", Ml, "请在以下" + te(y.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), u("p", Al, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
2876
+ a.value || s.value ? (r(), h("div", Pl, [
2877
+ a.value ? (r(), h("p", Ml, "请在以下" + te(y.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), h("p", Al, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
2801
2878
  k("p", {
2802
2879
  class: "flex flex-wrap",
2803
- "data-block": L(Te),
2880
+ "data-block": L($e),
2804
2881
  "data-xine": L(I).choice + n.item.id
2805
2882
  }, [
2806
2883
  Bl,
2807
- (r(!0), u(N, null, le(y.value, (M, h) => (r(), u("span", Nl, [
2808
- k("span", null, te(M), 1),
2884
+ (r(!0), h(O, null, le(y.value, (A, p) => (r(), h("span", Nl, [
2885
+ k("span", null, te(A), 1),
2809
2886
  k("span", {
2810
2887
  class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
2811
2888
  "data-xine": L(I).fill
2812
2889
  }, null, 8, Ol)
2813
2890
  ]))), 256))
2814
2891
  ], 8, Dl)
2815
- ])) : D("", !0)
2892
+ ])) : B("", !0)
2816
2893
  ])
2817
- ], 42, Il)) : (r(), ee($l, {
2894
+ ], 42, Il)) : (r(), ee(Tl, {
2818
2895
  key: 0,
2819
2896
  class: oe([n.isActive && "border-current", n.isFirst && "mt-9"]),
2820
2897
  item: n.item,
2821
- onClick: p[0] || (p[0] = Ee((M) => t("click", n.item), ["stop"])),
2822
- onDblclick: p[1] || (p[1] = Ee((M) => t("dbclick", n.item), ["stop"]))
2898
+ onClick: m[0] || (m[0] = Ee((A) => t("click", n.item), ["stop"])),
2899
+ onDblclick: m[1] || (m[1] = Ee((A) => t("dbclick", n.item), ["stop"]))
2823
2900
  }, null, 8, ["class", "item"]));
2824
2901
  }
2825
2902
  });
2826
- const It = /* @__PURE__ */ me(zl, [["__scopeId", "data-v-8b8ee819"]]), Rl = {};
2827
- function Hl(e, t) {
2903
+ const It = /* @__PURE__ */ me(zl, [["__scopeId", "data-v-8b8ee819"]]), Hl = {};
2904
+ function Rl(e, t) {
2828
2905
  return null;
2829
2906
  }
2830
- const Wl = /* @__PURE__ */ me(Rl, [["render", Hl]]), Gl = ["data-block"], Ql = ["data-xine"], ql = /* @__PURE__ */ ne({
2907
+ const Wl = /* @__PURE__ */ me(Hl, [["render", Rl]]), Gl = ["data-block"], Ql = ["data-xine"], ql = /* @__PURE__ */ ne({
2831
2908
  __name: "sheet",
2832
2909
  props: {
2833
2910
  item: {},
2834
2911
  layout: {}
2835
2912
  },
2836
2913
  setup(e) {
2837
- return (t, o) => (r(), u("div", {
2914
+ return (t, o) => (r(), h("div", {
2838
2915
  class: "flex items-center red_sheet",
2839
- "data-block": L(Te)
2916
+ "data-block": L($e)
2840
2917
  }, [
2841
- (r(!0), u(N, null, le(t.item.optList, (l, i) => (r(), u("span", {
2918
+ (r(!0), h(O, null, le(t.item.optList, (l, i) => (r(), h("span", {
2842
2919
  class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(L(ut)[i]) && "bg-success border-success"]),
2843
- style: Z({ width: `${L(Fe)[t.layout.fillSize].value + 1}px`, height: `${L(Fe)[t.layout.fillSize].height + 1}px` }),
2920
+ style: X({ width: `${L(Fe)[t.layout.fillSize].value + 1}px`, height: `${L(Fe)[t.layout.fillSize].height + 1}px` }),
2844
2921
  "data-xine": L(I).fill + i
2845
2922
  }, [
2846
2923
  ae(ve, {
@@ -2869,14 +2946,14 @@ const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"], jl = [
2869
2946
  width: `${Fe[t.layout.fillSize].value + 1}px`,
2870
2947
  height: `${Fe[t.layout.fillSize].height + 1}px`
2871
2948
  }));
2872
- return (l, i) => (r(), u("div", {
2949
+ return (l, i) => (r(), h("div", {
2873
2950
  class: "flex red_sheet",
2874
- "data-block": L(Te)
2951
+ "data-block": L($e)
2875
2952
  }, [
2876
- l.item.style[L(d)[l.layout.mode].decide_a] === L(f).decide_1 ? (r(), u(N, { key: 0 }, [
2953
+ l.item.style[L(d)[l.layout.mode].decide_a] === L(f).decide_1 ? (r(), h(O, { key: 0 }, [
2877
2954
  k("span", {
2878
2955
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
2879
- style: Z(o.value),
2956
+ style: X(o.value),
2880
2957
  "data-xine": L(I).fill + "0"
2881
2958
  }, [
2882
2959
  ae(ve, {
@@ -2886,7 +2963,7 @@ const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"], jl = [
2886
2963
  ], 14, jl),
2887
2964
  k("span", {
2888
2965
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
2889
- style: Z(o.value),
2966
+ style: X(o.value),
2890
2967
  "data-xine": L(I).fill + "1"
2891
2968
  }, [
2892
2969
  ae(ve, {
@@ -2894,15 +2971,15 @@ const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"], jl = [
2894
2971
  width: 1
2895
2972
  })
2896
2973
  ], 14, Xl)
2897
- ], 64)) : (r(), u(N, { key: 1 }, [
2974
+ ], 64)) : (r(), h(O, { key: 1 }, [
2898
2975
  k("span", {
2899
2976
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
2900
- style: Z(o.value),
2977
+ style: X(o.value),
2901
2978
  "data-xine": L(I).fill + "0"
2902
2979
  }, en, 14, Jl),
2903
2980
  k("span", {
2904
2981
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
2905
- style: Z(o.value),
2982
+ style: X(o.value),
2906
2983
  "data-xine": L(I).fill + "1"
2907
2984
  }, an, 14, tn)
2908
2985
  ], 64))
@@ -2924,22 +3001,22 @@ const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-x
2924
3001
  },
2925
3002
  setup(e) {
2926
3003
  const t = e, o = W(() => t.layout.scoreAddStars === nt.star.code);
2927
- return (l, i) => l.layout.handReadFlag ? (r(), u("div", {
3004
+ return (l, i) => l.layout.handReadFlag ? (r(), h("div", {
2928
3005
  key: 0,
2929
3006
  class: "score_fill flex items-center",
2930
- "data-block": L(Te),
3007
+ "data-block": L($e),
2931
3008
  "data-xine": L(I).fill
2932
3009
  }, [
2933
- l.showScoreCn ? (r(), u("span", dn, [
3010
+ l.showScoreCn ? (r(), h("span", dn, [
2934
3011
  k("span", null, te(o.value ? "" : "-") + te(l.item.score), 1),
2935
3012
  o.value ? (r(), ee(ve, {
2936
3013
  key: 0,
2937
3014
  class: "px-0 py-0 -translate-y-[1px]",
2938
3015
  name: "fiveArrowLine",
2939
3016
  width: 1.2
2940
- })) : (r(), u("span", un, "分"))
2941
- ])) : D("", !0)
2942
- ], 8, cn)) : D("", !0);
3017
+ })) : (r(), h("span", un, "分"))
3018
+ ])) : B("", !0)
3019
+ ], 8, cn)) : B("", !0);
2943
3020
  }
2944
3021
  }), pn = ["data-xine"], mn = /* @__PURE__ */ ne({
2945
3022
  __name: "sheet",
@@ -2949,10 +3026,10 @@ const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-x
2949
3026
  },
2950
3027
  setup(e) {
2951
3028
  const t = e;
2952
- return (o, l) => (r(), u(N, null, [
3029
+ return (o, l) => (r(), h(O, null, [
2953
3030
  k("div", {
2954
3031
  class: "flex-1 border-b self-stretch red_sheet",
2955
- style: Z({ height: `${20 + o.item.style[L(d)[t.layout.mode].fill_e]}px` }),
3032
+ style: X({ height: `${20 + o.item.style[L(d)[t.layout.mode].fill_e]}px` }),
2956
3033
  "data-xine": L(I).fill_line
2957
3034
  }, null, 12, pn),
2958
3035
  o.layout.handReadFlag ? (r(), ee(hn, {
@@ -2960,7 +3037,7 @@ const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-x
2960
3037
  item: o.item,
2961
3038
  layout: o.layout,
2962
3039
  showScoreCn: o.layout.fillScoreFlag
2963
- }, null, 8, ["item", "layout", "showScoreCn"])) : D("", !0)
3040
+ }, null, 8, ["item", "layout", "showScoreCn"])) : B("", !0)
2964
3041
  ], 64));
2965
3042
  }
2966
3043
  }), yn = {};
@@ -2975,13 +3052,13 @@ const fn = /* @__PURE__ */ me(yn, [["render", _n]]), gn = ["data-block"], bn = {
2975
3052
  isFirst: { type: Boolean }
2976
3053
  },
2977
3054
  setup(e) {
2978
- return (t, o) => (r(), u("div", {
3055
+ return (t, o) => (r(), h("div", {
2979
3056
  class: oe(["w-full min-h-[5rem] pt-2 relative", !t.isFirst && "border-t"])
2980
3057
  }, [
2981
- t.item.chunk ? D("", !0) : (r(), u("div", {
3058
+ t.item.chunk ? B("", !0) : (r(), h("div", {
2982
3059
  key: 0,
2983
3060
  class: "absolute left-0 top-2 w-full flex items-center",
2984
- "data-block": L(Te)
3061
+ "data-block": L($e)
2985
3062
  }, [
2986
3063
  mt(t.$slots, "default"),
2987
3064
  k("div", bn, [
@@ -3001,42 +3078,46 @@ const fn = /* @__PURE__ */ me(yn, [["render", _n]]), gn = ["data-block"], bn = {
3001
3078
  function kn(e, t) {
3002
3079
  return null;
3003
3080
  }
3004
- const xn = /* @__PURE__ */ me(wn, [["render", kn]]), Cn = /* @__PURE__ */ k("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), Sn = /* @__PURE__ */ ne({
3081
+ const xn = /* @__PURE__ */ me(wn, [["render", kn]]), Cn = /* @__PURE__ */ ne({
3005
3082
  __name: "sheet",
3006
3083
  props: {
3007
3084
  item: {},
3008
3085
  layout: {}
3009
3086
  },
3010
3087
  setup(e) {
3011
- return (t, o) => (r(), u(N, null, [
3012
- Cn,
3088
+ const t = e;
3089
+ return (o, l) => (r(), h(O, null, [
3090
+ k("div", {
3091
+ class: "flex-1 border-b self-end mr-2",
3092
+ style: X({ height: `${20 + o.item.style[L(d)[t.layout.mode].easy_slove_d]}px` })
3093
+ }, null, 4),
3013
3094
  ae(it, {
3014
- item: t.item,
3015
- layout: t.layout
3095
+ item: o.item,
3096
+ layout: o.layout
3016
3097
  }, null, 8, ["item", "layout"])
3017
3098
  ], 64));
3018
3099
  }
3019
- }), $n = {};
3100
+ }), Sn = {};
3020
3101
  function Tn(e, t) {
3021
3102
  return null;
3022
3103
  }
3023
- const In = /* @__PURE__ */ me($n, [["render", Tn]]), Ln = {};
3024
- function Fn(e, t) {
3104
+ const $n = /* @__PURE__ */ me(Sn, [["render", Tn]]), In = {};
3105
+ function Ln(e, t) {
3025
3106
  return null;
3026
3107
  }
3027
- const En = /* @__PURE__ */ me(Ln, [["render", Fn]]), Pn = {};
3028
- function Mn(e, t) {
3108
+ const Fn = /* @__PURE__ */ me(In, [["render", Ln]]), En = {};
3109
+ function Pn(e, t) {
3029
3110
  return null;
3030
3111
  }
3031
- const An = /* @__PURE__ */ me(Pn, [["render", Mn]]), Dn = {};
3032
- function Bn(e, t) {
3112
+ const Mn = /* @__PURE__ */ me(En, [["render", Pn]]), An = {};
3113
+ function Dn(e, t) {
3033
3114
  return null;
3034
3115
  }
3035
- const Nn = /* @__PURE__ */ me(Dn, [["render", Bn]]), On = {};
3036
- function zn(e, t) {
3116
+ const Bn = /* @__PURE__ */ me(An, [["render", Dn]]), Nn = {};
3117
+ function On(e, t) {
3037
3118
  return null;
3038
3119
  }
3039
- const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn = ["data-block"], Gn = { class: "flex-1 flex justify-end overflow-hidden" }, Qn = ["data-block", "data-size"], qn = ["data-block"], Yn = /* @__PURE__ */ ne({
3120
+ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn = ["data-block"], Wn = { class: "flex-1 flex justify-end overflow-hidden" }, Gn = ["data-block", "data-size"], Qn = ["data-block"], qn = /* @__PURE__ */ ne({
3040
3121
  __name: "sheet",
3041
3122
  props: {
3042
3123
  item: {},
@@ -3044,14 +3125,14 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3044
3125
  },
3045
3126
  setup(e) {
3046
3127
  const t = e, o = V(0), l = V({}), i = V(), a = V(), s = V([]), c = W(() => {
3047
- const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[d[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, M.value.length, 0);
3048
- return h ? Math.ceil(h / (o.value || h)) : 0;
3128
+ const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[d[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, A.value.length, 0);
3129
+ return p ? Math.ceil(p / (o.value || p)) : 0;
3049
3130
  }), y = W(() => parseInt(t.item.style[d[t.layout.mode].art_b])), n = W(() => ({
3050
3131
  width: `${o.value * y.value}px`,
3051
3132
  height: `${y.value}px`
3052
- })), p = W(() => ({
3133
+ })), m = W(() => ({
3053
3134
  width: `${y.value}px`
3054
- })), M = W(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
3135
+ })), A = W(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
3055
3136
  return Ke(() => {
3056
3137
  if (!t.item.artBlock)
3057
3138
  return;
@@ -3059,77 +3140,77 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3059
3140
  o.value = Math.floor(i.value.offsetWidth / y.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
3060
3141
  if (!i.value)
3061
3142
  return;
3062
- const X = i.value.getBoundingClientRect(), A = a.value[0].getBoundingClientRect();
3143
+ const J = i.value.getBoundingClientRect(), D = a.value[0].getBoundingClientRect();
3063
3144
  l.value = {
3064
- left: `${A.left - X.left}px`,
3065
- top: `${A.top - X.top}px`
3145
+ left: `${D.left - J.left}px`,
3146
+ top: `${D.top - J.top}px`
3066
3147
  };
3067
3148
  }, 20);
3068
3149
  });
3069
- const h = parseInt(t.item.style[d[t.layout.mode].art_c]), P = t.item.style[d[t.layout.mode].art_e], z = Math.floor(h / P), j = Math.round(z / (t.item.style[d[t.layout.mode].art_d] || 1) - 0.01) * P;
3070
- s.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1, z) - 1 || 0).keys()].map((X) => (X + 1) * j).concat(h / P < 2 ? P : h).filter((X) => X);
3071
- }), (h, P) => (r(), u("div", {
3150
+ const p = parseInt(t.item.style[d[t.layout.mode].art_c]), P = t.item.style[d[t.layout.mode].art_e], z = Math.floor(p / P), j = Math.round(z / (t.item.style[d[t.layout.mode].art_d] || 1) - 0.01) * P;
3151
+ s.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1, z) - 1 || 0).keys()].map((J) => (J + 1) * j).concat(p / P < 2 ? P : p).filter((J) => J);
3152
+ }), (p, P) => (r(), h("div", {
3072
3153
  class: "w-full relative min-h-[10rem]",
3073
3154
  ref_key: "view",
3074
3155
  ref: i,
3075
- "data-viewid": h.item.id
3156
+ "data-viewid": p.item.id
3076
3157
  }, [
3077
- h.item.chunk ? D("", !0) : (r(), u("div", {
3158
+ p.item.chunk ? B("", !0) : (r(), h("div", {
3078
3159
  key: 0,
3079
3160
  class: "flex items-center mt-1 mb-4",
3080
- "data-block": L(Te)
3161
+ "data-block": L($e)
3081
3162
  }, [
3082
- mt(h.$slots, "default"),
3083
- k("div", Gn, [
3163
+ mt(p.$slots, "default"),
3164
+ k("div", Wn, [
3084
3165
  ae(it, {
3085
- item: h.item,
3086
- layout: h.layout
3166
+ item: p.item,
3167
+ layout: p.layout
3087
3168
  }, null, 8, ["item", "layout"])
3088
3169
  ])
3089
- ], 8, Wn)),
3090
- h.item.artBlock ? (r(), u(N, { key: 1 }, [
3091
- h.item.beforeArt && !h.item.startAnswerLen ? (r(), ee(Oe, {
3170
+ ], 8, Rn)),
3171
+ p.item.artBlock ? (r(), h(O, { key: 1 }, [
3172
+ p.item.beforeArt && !p.item.startAnswerLen ? (r(), ee(Oe, {
3092
3173
  key: 0,
3093
- data: h.item.beforeArt,
3094
- "data-bart": h.item.id,
3174
+ data: p.item.beforeArt,
3175
+ "data-bart": p.item.id,
3095
3176
  class: "indent-[2em]"
3096
- }, null, 8, ["data", "data-bart"])) : D("", !0),
3097
- (r(!0), u(N, null, le(c.value, (z, j) => (r(), u("p", {
3177
+ }, null, 8, ["data", "data-bart"])) : B("", !0),
3178
+ (r(!0), h(O, null, le(c.value, (z, j) => (r(), h("p", {
3098
3179
  ref_for: !0,
3099
3180
  ref_key: "line",
3100
3181
  ref: a,
3101
3182
  class: "flex mx-auto mt-3 mb-1 relative red_sheet border divide-x divide-solid",
3102
- "data-block": L(Te),
3103
- "data-size": h.item.startAnswerLen + (j + 1) * o.value,
3104
- style: Z(n.value)
3183
+ "data-block": L($e),
3184
+ "data-size": p.item.startAnswerLen + (j + 1) * o.value,
3185
+ style: X(n.value)
3105
3186
  }, [
3106
- (r(!0), u(N, null, le(o.value, (X, A) => (r(), u("span", {
3107
- class: oe([M.value[j * o.value + A] && "flex items-center justify-center"]),
3108
- style: Z(p.value)
3109
- }, te(M.value[j * o.value + A] || ""), 7))), 256)),
3110
- (r(!0), u(N, null, le(s.value, (X) => (r(), u(N, null, [
3111
- h.item.startAnswerLen + j * o.value < X && h.item.startAnswerLen + (j + 1) * o.value >= X ? (r(), u("span", {
3187
+ (r(!0), h(O, null, le(o.value, (J, D) => (r(), h("span", {
3188
+ class: oe([A.value[j * o.value + D] && "flex items-center justify-center"]),
3189
+ style: X(m.value)
3190
+ }, te(A.value[j * o.value + D] || ""), 7))), 256)),
3191
+ (r(!0), h(O, null, le(s.value, (J) => (r(), h(O, null, [
3192
+ p.item.startAnswerLen + j * o.value < J && p.item.startAnswerLen + (j + 1) * o.value >= J ? (r(), h("span", {
3112
3193
  key: 0,
3113
3194
  class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
3114
- style: Z({ left: `${(X - h.item.startAnswerLen) % o.value * y.value}px` }),
3195
+ style: X({ left: `${(J - p.item.startAnswerLen) % o.value * y.value}px` }),
3115
3196
  "data-block": L(Be)
3116
- }, te(X), 13, qn)) : D("", !0)
3197
+ }, te(J), 13, Qn)) : B("", !0)
3117
3198
  ], 64))), 256))
3118
- ], 12, Qn))), 256)),
3119
- h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (r(), ee(Oe, {
3199
+ ], 12, Gn))), 256)),
3200
+ p.item.afterArt && [-1, 0].includes(p.item.endAnswerLen) ? (r(), ee(Oe, {
3120
3201
  key: 1,
3121
- data: h.item.afterArt,
3122
- "data-aart": h.item.id,
3202
+ data: p.item.afterArt,
3203
+ "data-aart": p.item.id,
3123
3204
  class: "mt-2 indent-[2em]"
3124
- }, null, 8, ["data", "data-aart"])) : D("", !0)
3205
+ }, null, 8, ["data", "data-aart"])) : B("", !0)
3125
3206
  ], 64)) : (r(), ee(Oe, {
3126
3207
  key: 2,
3127
- "data-area": h.item.id,
3128
- data: h.item.answerArea
3208
+ "data-area": p.item.id,
3209
+ data: p.item.answerArea
3129
3210
  }, null, 8, ["data-area", "data"]))
3130
3211
  ], 8, Hn));
3131
3212
  }
3132
- }), Kn = ["data-block"], Un = /* @__PURE__ */ ne({
3213
+ }), Yn = ["data-block"], Kn = /* @__PURE__ */ ne({
3133
3214
  __name: "index",
3134
3215
  props: {
3135
3216
  item: {},
@@ -3137,7 +3218,7 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3137
3218
  },
3138
3219
  emits: ["change"],
3139
3220
  setup(e, { emit: t }) {
3140
- return (o, l) => (r(), u("div", {
3221
+ return (o, l) => (r(), h("div", {
3141
3222
  class: "px-2 py-3 w-full border border-dashed rounded-lg",
3142
3223
  "data-block": L(ft)
3143
3224
  }, [
@@ -3145,12 +3226,12 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3145
3226
  "data-content": o.item.id,
3146
3227
  data: o.item.content
3147
3228
  }, null, 8, ["data-content", "data"])
3148
- ], 8, Kn));
3229
+ ], 8, Yn));
3149
3230
  }
3150
- }), Vn = ["data-block"], jn = { key: 0 }, Xn = { key: 1 }, Jn = { key: 2 }, Zn = {
3231
+ }), Un = ["data-block"], Vn = { key: 0 }, jn = { key: 1 }, Xn = { key: 2 }, Jn = {
3151
3232
  key: 3,
3152
3233
  class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
3153
- }, es = { key: 0 }, ts = /* @__PURE__ */ ne({
3234
+ }, Zn = { key: 0 }, es = /* @__PURE__ */ ne({
3154
3235
  __name: "index",
3155
3236
  props: {
3156
3237
  sub: {},
@@ -3168,21 +3249,21 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3168
3249
  if (a === "after")
3169
3250
  return t.bracketType === f.bracket_cn ? ")" : ")";
3170
3251
  };
3171
- return (a, s) => (r(), u("span", {
3252
+ return (a, s) => (r(), h("span", {
3172
3253
  class: oe(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]", a.isFull && "justify-end"]),
3173
- style: Z({ width: l.value }),
3254
+ style: X({ width: l.value }),
3174
3255
  "data-block": L(Be)
3175
3256
  }, [
3176
- (r(!0), u(N, null, le(o.value, (c, y) => (r(), u(N, null, [
3177
- y ? (r(), u("span", jn, " - ")) : D("", !0),
3178
- c[0] ? (r(), u("span", Xn, te(c[0]), 1)) : D("", !0),
3179
- c[1] ? (r(), u("span", Jn, "(" + te(c[1]) + ")", 1)) : D("", !0),
3180
- c[2] ? (r(), u("span", Zn, te(c[2]), 1)) : D("", !0)
3257
+ (r(!0), h(O, null, le(o.value, (c, y) => (r(), h(O, null, [
3258
+ y ? (r(), h("span", Vn, " - ")) : B("", !0),
3259
+ c[0] ? (r(), h("span", jn, te(c[0]), 1)) : B("", !0),
3260
+ c[1] ? (r(), h("span", Xn, "(" + te(c[1]) + ")", 1)) : B("", !0),
3261
+ c[2] ? (r(), h("span", Jn, te(c[2]), 1)) : B("", !0)
3181
3262
  ], 64))), 256)),
3182
- a.score ? (r(), u("span", es, te(i("prev")) + te(a.score) + "分" + te(i("after")), 1)) : D("", !0)
3183
- ], 14, Vn));
3263
+ a.score ? (r(), h("span", Zn, te(i("prev")) + te(a.score) + "分" + te(i("after")), 1)) : B("", !0)
3264
+ ], 14, Un));
3184
3265
  }
3185
- }), os = {
3266
+ }), ts = {
3186
3267
  components: {
3187
3268
  choice: Wl,
3188
3269
  choiceSheet: ql,
@@ -3193,15 +3274,15 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3193
3274
  slove: fn,
3194
3275
  sloveSheet: vn,
3195
3276
  easy_slove: xn,
3196
- easy_sloveSheet: Sn,
3197
- mix: In,
3198
- mixSheet: En,
3199
- synthesis: An,
3200
- synthesisSheet: Nn,
3201
- art: Rn,
3202
- artSheet: Yn,
3203
- notArea: Un,
3204
- Sub: ts
3277
+ easy_sloveSheet: Cn,
3278
+ mix: $n,
3279
+ mixSheet: Fn,
3280
+ synthesis: Mn,
3281
+ synthesisSheet: Bn,
3282
+ art: zn,
3283
+ artSheet: qn,
3284
+ notArea: Kn,
3285
+ Sub: es
3205
3286
  },
3206
3287
  props: {
3207
3288
  data: {
@@ -3232,84 +3313,84 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3232
3313
  setup(e, { emit: t }) {
3233
3314
  const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Pt), i = V(""), a = W(() => {
3234
3315
  const g = o ? {
3235
- choiceSheet: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
3236
- fillSheet: [m.fill, m.fill_english]
3316
+ choiceSheet: [u.choice, u.choice_english, u.choice_multiple, u.cloze],
3317
+ fillSheet: [u.fill, u.fill_english]
3237
3318
  } : {
3238
- choice: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
3239
- fill: [m.fill, m.fill_english]
3319
+ choice: [u.choice, u.choice_english, u.choice_multiple, u.cloze],
3320
+ fill: [u.fill, u.fill_english]
3240
3321
  };
3241
- return Object.keys(m).reduce((S, T) => ({ ...S, [m[T]]: Object.keys(g).find((B) => g[B].includes(m[T])) || `${T}${o}` }), {});
3322
+ return Object.keys(u).reduce((S, $) => ({ ...S, [u[$]]: Object.keys(g).find((N) => g[N].includes(u[$])) || `${$}${o}` }), {});
3242
3323
  }), s = W(() => [Ce.one_choice, Ce.another_choice].includes(e.data.problemType)), c = W(() => {
3243
3324
  let g = [];
3244
- e.data.children.forEach((T) => {
3245
- let B = g[g.length - 1];
3246
- ((T.polymerId || l.includes(e.data.problemType)) && l.includes(T.problemType) || [We.fill, We.fill_english].includes(e.data.problemType) && e.data.style[d[e.layout.mode].fill_g] === f.portrait) && T.style ? (!B || B.type !== "polymer" || B.polymerId !== T.polymerId) && (g.push({
3325
+ e.data.children.forEach(($) => {
3326
+ let N = g[g.length - 1];
3327
+ (($.polymerId || l.includes(e.data.problemType)) && l.includes($.problemType) || [We.fill, We.fill_english].includes(e.data.problemType) && e.data.style[d[e.layout.mode].fill_g] === f.portrait) && $.style ? (!N || N.type !== "polymer" || N.polymerId !== $.polymerId) && (g.push({
3247
3328
  type: "polymer",
3248
- problemType: T.problemType,
3249
- polymerId: T.polymerId,
3250
- styleInfo: T.polymerId ? T.style : e.data.style,
3329
+ problemType: $.problemType,
3330
+ polymerId: $.polymerId,
3331
+ styleInfo: $.polymerId ? $.style : e.data.style,
3251
3332
  children: [],
3252
3333
  rawChildren: e.data.rawChildren || []
3253
- }), B = g[g.length - 1]) : (!B || B.type !== "base") && (g.push({
3334
+ }), N = g[g.length - 1]) : (!N || N.type !== "base") && (g.push({
3254
3335
  type: "base",
3255
3336
  children: []
3256
- }), B = g[g.length - 1]), B.children.push({ ...T, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
3337
+ }), N = g[g.length - 1]), N.children.push({ ...$, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
3257
3338
  });
3258
- const S = (T, B, ue, Y, $, v) => {
3259
- let _ = Math.min(Math.floor(e.width / B), ue), R = [], Q = [], E = !0;
3260
- const H = (K = _) => {
3261
- R = (v ? [...Array(K).keys()].map((se, $e) => T.children.filter((ge, we) => we < (v ? Y : Y * _) && we % K === $e)).filter((se) => se.length) : [...Array(K).keys()].map((se) => T.children.slice(se * Y, (se + 1) * Y))).filter((se) => se.length).map((se) => Math.max(...se.map(($e) => {
3339
+ const S = ($, N, ue, Y, T, v) => {
3340
+ let _ = Math.min(Math.floor(e.width / N), ue), H = [], Q = [], E = !0;
3341
+ const R = (K = _) => {
3342
+ H = (v ? [...Array(K).keys()].map((se, Te) => $.children.filter((ge, we) => we < (v ? Y : Y * _) && we % K === Te)).filter((se) => se.length) : [...Array(K).keys()].map((se) => $.children.slice(se * Y, (se + 1) * Y))).filter((se) => se.length).map((se) => Math.max(...se.map((Te) => {
3262
3343
  var ge;
3263
- return ((ge = $e.optList) == null ? void 0 : ge.length) || 0;
3344
+ return ((ge = Te.optList) == null ? void 0 : ge.length) || 0;
3264
3345
  })));
3265
3346
  };
3266
- for (H(_), Q = [...R]; E && _ < ue; )
3267
- H(_ + 1), E = _ + 1 <= ue && R.reduce((K, se) => K + se, 0) * (Fe[e.layout.fillSize].value + 9) + (_ + 1) * $ < e.width, E && (_ += 1, Q = [...R]);
3268
- return { children: T.children.slice(0, v ? Y : Y * _), col: _, colList: [...Q] };
3347
+ for (R(_), Q = [...H]; E && _ < ue; )
3348
+ R(_ + 1), E = _ + 1 <= ue && H.reduce((K, se) => K + se, 0) * (Fe[e.layout.fillSize].value + 9) + (_ + 1) * T < e.width, E && (_ += 1, Q = [...H]);
3349
+ return { children: $.children.slice(0, v ? Y : Y * _), col: _, colList: [...Q] };
3269
3350
  };
3270
- return g = g.map((T) => {
3271
- var B;
3272
- if (T.type === "polymer") {
3273
- const ue = T.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = T.styleInfo[d[e.layout.mode].choice_e] || 20, $ = e.data.style[d[e.layout.mode].choice_d] || 10, v = (n.value[`h${e.data.id}`] || n.value[T.polymerId] || n.value[((B = e.data.children[0]) == null ? void 0 : B.polymerId) || ""] || 0) * 10 + 10;
3274
- if (T.styleInfo[d[e.layout.mode].choice_a] === f.choice_1) {
3275
- let _ = [], R = 0;
3276
- for (; R < T.children.length; ) {
3277
- const Q = T.children.slice(R), E = Math.max(...Q.map((K) => {
3351
+ return g = g.map(($) => {
3352
+ var N;
3353
+ if ($.type === "polymer") {
3354
+ const ue = $.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = $.styleInfo[d[e.layout.mode].choice_e] || 20, T = e.data.style[d[e.layout.mode].choice_d] || 10, v = (n.value[`h${e.data.id}`] || n.value[$.polymerId] || n.value[((N = e.data.children[0]) == null ? void 0 : N.polymerId) || ""] || 0) * 10 + 10;
3355
+ if ($.styleInfo[d[e.layout.mode].choice_a] === f.choice_1) {
3356
+ let _ = [], H = 0;
3357
+ for (; H < $.children.length; ) {
3358
+ const Q = $.children.slice(H), E = Math.max(...Q.map((K) => {
3278
3359
  var se;
3279
3360
  return ((se = K.optList) == null ? void 0 : se.length) || 0;
3280
- })) * (Fe[e.layout.fillSize].value + 9) + v, H = S({ ...T, children: Q }, E, $, Y, v, ue);
3281
- _.push({ ...T, groupIndex: _.length, children: H.children, col: H.col, colList: H.colList }), R = _.map((K) => K.children.length).reduce((K, se) => K + se, 0);
3361
+ })) * (Fe[e.layout.fillSize].value + 9) + v, R = S({ ...$, children: Q }, E, T, Y, v, ue);
3362
+ _.push({ ...$, groupIndex: _.length, children: R.children, col: R.col, colList: R.colList }), H = _.map((K) => K.children.length).reduce((K, se) => K + se, 0);
3282
3363
  }
3283
3364
  return _;
3284
- } else if (T.styleInfo[d[e.layout.mode].choice_a] === f.choice_2) {
3285
- const _ = Math.max(Fe[e.layout.fillSize].value + 9, v), R = Math.floor(e.width / (_ * T.styleInfo[d[e.layout.mode].choice_c] + 10)), Q = R * T.styleInfo[d[e.layout.mode].choice_c];
3286
- let E = [{ children: [], col: R }];
3287
- return T.children.forEach((H, K) => {
3288
- K >= Q * E.length && E.push({ children: [], col: R }), E[E.length - 1].children.push(H);
3289
- }), E.map((H, K) => ({ ...T, groupIndex: K, children: H.children, col: H.col, colList: [] }));
3290
- } else if (T.styleInfo[d[e.layout.mode].choice_a] === f.choice_3) {
3291
- let _ = [], R = 0, Q = 0, E = 0, H = 0;
3292
- return T.children.forEach((K) => {
3293
- K.optList.length !== R && (Q = K.optList.length * (Fe[e.layout.fillSize].value + 9) + v, E = Math.min(Math.floor(e.width / Q), $), H = ue ? E * 20 : E * T.styleInfo[d[e.layout.mode].choice_e], R = K.optList.length, _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) })), (!Object.values(He).includes(K.problemType) && !_.length || _[_.length - 1].children.length >= H) && _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) }), _[_.length - 1].children.push(K);
3294
- }), _.map((K, se) => ({ ...T, groupIndex: se, children: K.children, col: K.col, colList: K.colList }));
3295
- } else if ([m.fill, m.fill_english].includes(T.problemType) && T.styleInfo[d[e.layout.mode].fill_g] === f.portrait) {
3296
- const _ = Math.floor(T.styleInfo[d[e.layout.mode].fill_f]) * (T.styleInfo[d[e.layout.mode].fill_h] || 10);
3297
- return [...Array(Math.ceil(T.children.length / _)).keys()].map((R, Q) => ({
3298
- ...T,
3365
+ } else if ($.styleInfo[d[e.layout.mode].choice_a] === f.choice_2) {
3366
+ const _ = Math.max(Fe[e.layout.fillSize].value + 9, v), H = Math.floor(e.width / (_ * $.styleInfo[d[e.layout.mode].choice_c] + 10)), Q = H * $.styleInfo[d[e.layout.mode].choice_c];
3367
+ let E = [{ children: [], col: H }];
3368
+ return $.children.forEach((R, K) => {
3369
+ K >= Q * E.length && E.push({ children: [], col: H }), E[E.length - 1].children.push(R);
3370
+ }), E.map((R, K) => ({ ...$, groupIndex: K, children: R.children, col: R.col, colList: [] }));
3371
+ } else if ($.styleInfo[d[e.layout.mode].choice_a] === f.choice_3) {
3372
+ let _ = [], H = 0, Q = 0, E = 0, R = 0;
3373
+ return $.children.forEach((K) => {
3374
+ K.optList.length !== H && (Q = K.optList.length * (Fe[e.layout.fillSize].value + 9) + v, E = Math.min(Math.floor(e.width / Q), T), R = ue ? E * 20 : E * $.styleInfo[d[e.layout.mode].choice_e], H = K.optList.length, _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) })), (!Object.values(Re).includes(K.problemType) && !_.length || _[_.length - 1].children.length >= R) && _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) }), _[_.length - 1].children.push(K);
3375
+ }), _.map((K, se) => ({ ...$, groupIndex: se, children: K.children, col: K.col, colList: K.colList }));
3376
+ } else if ([u.fill, u.fill_english].includes($.problemType) && $.styleInfo[d[e.layout.mode].fill_g] === f.portrait) {
3377
+ const _ = Math.floor($.styleInfo[d[e.layout.mode].fill_f]) * ($.styleInfo[d[e.layout.mode].fill_h] || 10);
3378
+ return [...Array(Math.ceil($.children.length / _)).keys()].map((H, Q) => ({
3379
+ ...$,
3299
3380
  groupIndex: Q,
3300
- children: T.children.slice(Q * _, (Q + 1) * _).map((E) => ({
3381
+ children: $.children.slice(Q * _, (Q + 1) * _).map((E) => ({
3301
3382
  ...E,
3302
3383
  style: {
3303
3384
  ...E.style,
3304
3385
  [d[e.layout.mode].fill_b]: !1,
3305
- [d[e.layout.mode].fill_d]: T.styleInfo[d[e.layout.mode].fill_d]
3386
+ [d[e.layout.mode].fill_d]: $.styleInfo[d[e.layout.mode].fill_d]
3306
3387
  }
3307
3388
  }))
3308
3389
  }));
3309
3390
  } else
3310
- return T;
3391
+ return $;
3311
3392
  } else
3312
- return T;
3393
+ return $;
3313
3394
  }).flat(), g;
3314
3395
  }), y = W(() => {
3315
3396
  let g = {};
@@ -3322,7 +3403,7 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3322
3403
  return { [`h${e.data.id}`]: Math.max(...g) };
3323
3404
  } else
3324
3405
  return Object.keys(y.value).map((g) => {
3325
- const S = (e.data.rawChildren || e.data.children).filter((T) => T.polymerId === g).map((T) => T.subStr.length);
3406
+ const S = (e.data.rawChildren || e.data.children).filter(($) => $.polymerId === g).map(($) => $.subStr.length);
3326
3407
  return {
3327
3408
  [g]: Math.max(...S)
3328
3409
  };
@@ -3339,12 +3420,12 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3339
3420
  PolymerData: y,
3340
3421
  SubWidthInfo: n,
3341
3422
  ComputName: (g) => !g.problemType || g.notAreaFlag ? "notArea" : a.value[g.problemType],
3342
- ComputAbs: (g) => o && [m.slove, m.art].includes(g.problemType),
3343
- ComputPolymerCls: (g) => [m.decide].includes(g.problemType) ? [] : g.styleInfo[d[e.layout.mode].choice_a] === f.choice_2 ? ["port_view"] : ["grid", g.groupIndex && "mt-6"],
3423
+ ComputAbs: (g) => o && [u.slove, u.art].includes(g.problemType),
3424
+ ComputPolymerCls: (g) => [u.decide].includes(g.problemType) ? [] : g.styleInfo[d[e.layout.mode].choice_a] === f.choice_2 ? ["port_view"] : ["grid", g.groupIndex && "mt-6"],
3344
3425
  ComputPolymerStyle: (g) => {
3345
- var T;
3426
+ var $;
3346
3427
  let S = {};
3347
- if ([m.fill, m.fill_english].includes(g.problemType))
3428
+ if ([u.fill, u.fill_english].includes(g.problemType))
3348
3429
  switch (g.styleInfo[d[e.layout.mode].fill_g]) {
3349
3430
  case f.portrait:
3350
3431
  S = {
@@ -3354,30 +3435,30 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3354
3435
  };
3355
3436
  break;
3356
3437
  }
3357
- else if (Object.values(He).includes(g.problemType)) {
3438
+ else if (Object.values(Re).includes(g.problemType)) {
3358
3439
  if (g.styleInfo[d[e.layout.mode].choice_a] === f.choice_2)
3359
3440
  return S;
3360
- let B = [];
3361
- const ue = g.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = g.styleInfo[d[e.layout.mode].choice_e] || 20, $ = (n.value[`h${e.data.id}`] || n.value[g.polymerId] || n.value[((T = e.data.children[0]) == null ? void 0 : T.polymerId) || ""] || 0) * 10 + 10, v = g.colList.map((_) => _ * (Fe[e.layout.fillSize].value + 9) + $);
3441
+ let N = [];
3442
+ const ue = g.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = g.styleInfo[d[e.layout.mode].choice_e] || 20, T = (n.value[`h${e.data.id}`] || n.value[g.polymerId] || n.value[(($ = e.data.children[0]) == null ? void 0 : $.polymerId) || ""] || 0) * 10 + 10, v = g.colList.map((_) => _ * (Fe[e.layout.fillSize].value + 9) + T);
3362
3443
  switch (g.styleInfo[d[e.layout.mode].choice_f]) {
3363
3444
  case f.choice_6:
3364
- B = v.map((_) => `${_}px`);
3445
+ N = v.map((_) => `${_}px`);
3365
3446
  break;
3366
3447
  case f.choice_7:
3367
3448
  default:
3368
- B = v.map((_) => `${_ / Math.max(...v)}fr`);
3449
+ N = v.map((_) => `${_ / Math.max(...v)}fr`);
3369
3450
  }
3370
3451
  switch (g.styleInfo[d[e.layout.mode].choice_a]) {
3371
3452
  case f.choice_1:
3372
3453
  case f.choice_3:
3373
- ue && !e.noPortrait && [...Array(Math.ceil(g.children.length / Y)).keys()].map((R) => g.children.filter((Q, E) => E >= R * Y && E < (R + 1) * Y)).map((R, Q) => R.map((E, H) => ({ ...E, _grid_area_: ue ? null : ut[H] + Q }))).flat(2).forEach((R) => {
3374
- const Q = g.children.find((E) => E.id === R.id);
3375
- Q._grid_area_ = R._grid_area_;
3454
+ ue && !e.noPortrait && [...Array(Math.ceil(g.children.length / Y)).keys()].map((H) => g.children.filter((Q, E) => E >= H * Y && E < (H + 1) * Y)).map((H, Q) => H.map((E, R) => ({ ...E, _grid_area_: ue ? null : ut[R] + Q }))).flat(2).forEach((H) => {
3455
+ const Q = g.children.find((E) => E.id === H.id);
3456
+ Q._grid_area_ = H._grid_area_;
3376
3457
  }), S = ue ? {
3377
- "grid-template": `repeat(${Math.ceil(g.children.length / g.col)}, 1fr) / ${B.join(" ")}`
3458
+ "grid-template": `repeat(${Math.ceil(g.children.length / g.col)}, 1fr) / ${N.join(" ")}`
3378
3459
  } : {
3379
3460
  "grid-auto-flow": "column",
3380
- "grid-template": `repeat(${Math.min(Y, g.children.length)}, 1fr) / ${B.join(" ")}`
3461
+ "grid-template": `repeat(${Math.min(Y, g.children.length)}, 1fr) / ${N.join(" ")}`
3381
3462
  };
3382
3463
  break;
3383
3464
  }
@@ -3385,58 +3466,58 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3385
3466
  return S;
3386
3467
  },
3387
3468
  ComputPolymerItemStyle: (g, S) => {
3388
- var T;
3469
+ var $;
3389
3470
  if (g._grid_area_)
3390
3471
  return {
3391
3472
  "grid-area": g._grid_area_
3392
3473
  };
3393
- if (Object.values(He).includes(g.problemType) && g.style[d[e.layout.mode].choice_a] === f.choice_2) {
3394
- const B = Math.max(Fe[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[g.polymerId] || n.value[(T = g.children[0]) == null ? void 0 : T.polymerId] || 0) * 10 + 10), ue = Math.floor(e.width / (B * g.style[d[e.layout.mode].choice_c] + 10)), Y = (e.width - B * ue * g.style[d[e.layout.mode].choice_c]) / (ue - 1 || 1) - 1;
3474
+ if (Object.values(Re).includes(g.problemType) && g.style[d[e.layout.mode].choice_a] === f.choice_2) {
3475
+ const N = Math.max(Fe[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[g.polymerId] || n.value[($ = g.children[0]) == null ? void 0 : $.polymerId] || 0) * 10 + 10), ue = Math.floor(e.width / (N * g.style[d[e.layout.mode].choice_c] + 10)), Y = (e.width - N * ue * g.style[d[e.layout.mode].choice_c]) / (ue - 1 || 1) - 1;
3395
3476
  return !((S + 1) % g.style[d[e.layout.mode].choice_c]) && ((S + 1) % (g.style[d[e.layout.mode].choice_c] * ue) || ue < 2) ? {
3396
- "min-width": `${B - 5}px`,
3477
+ "min-width": `${N - 5}px`,
3397
3478
  "margin-right": `${Y}px`
3398
3479
  } : {
3399
- "min-width": `${B - 5}px`
3480
+ "min-width": `${N - 5}px`
3400
3481
  };
3401
3482
  }
3402
3483
  return {};
3403
3484
  },
3404
3485
  ComputStyle: (g, S) => {
3405
- var B;
3406
- let T = {};
3486
+ var N;
3487
+ let $ = {};
3407
3488
  if (!o)
3408
- return T;
3489
+ return $;
3409
3490
  if (l.includes(g.problemType)) {
3410
3491
  let ue = {};
3411
- if (Object.values(He).includes(e.data.problemType)) {
3492
+ if (Object.values(Re).includes(e.data.problemType)) {
3412
3493
  const Y = Math.max(.../*props.data.rawChildren || */
3413
- e.data.children.map((v) => v.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[g.polymerId || ""] || n.value[((B = e.data.children[0]) == null ? void 0 : B.polymerId) || ""] || 0) * 10 + 10, $ = Math.min(Math.floor(e.width / Y), e.data.style[d[e.layout.mode].choice_d] || 10);
3414
- ue = S % $ ? { minWidth: `${Y}px`, marginLeft: `${(e.width - Y * $) / ($ - 1) - 5}px` } : { minWidth: `${Y}px` };
3494
+ e.data.children.map((v) => v.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[g.polymerId || ""] || n.value[((N = e.data.children[0]) == null ? void 0 : N.polymerId) || ""] || 0) * 10 + 10, T = Math.min(Math.floor(e.width / Y), e.data.style[d[e.layout.mode].choice_d] || 10);
3495
+ ue = S % T ? { minWidth: `${Y}px`, marginLeft: `${(e.width - Y * T) / (T - 1) - 5}px` } : { minWidth: `${Y}px` };
3415
3496
  }
3416
- T = {
3417
- ...T,
3497
+ $ = {
3498
+ ...$,
3418
3499
  display: "inline-flex",
3419
3500
  ...ue
3420
3501
  };
3421
3502
  } else
3422
- [m.fill, m.fill_english].includes(g.problemType) && (T = {
3503
+ [u.fill, u.fill_english, u.easy_slove].includes(g.problemType) && ($ = {
3423
3504
  // display: (item.style[problemLayoutKey[props.layout.mode].fill_c] === problemLayoutVal.fill_1 && item.answerLen === 1) ? 'flex' : 'inline-flex',
3424
3505
  display: "inline-flex",
3425
3506
  alignItems: "flex-end",
3426
- width: `calc(${100 / g.style[d[e.layout.mode].fill_d][g.order || 0]}% - 6px)`
3507
+ width: `calc(${100 / ([u.easy_slove].includes(g.problemType) ? g.style[d[e.layout.mode].easy_slove_c] : g.style[d[e.layout.mode].fill_d][g.order || 0])}% - 6px)`
3427
3508
  // paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
3428
3509
  });
3429
- return T;
3510
+ return $;
3430
3511
  },
3431
3512
  ComputBlock: (g) => {
3432
- const S = [...l, m.fill, m.fill_english];
3513
+ const S = [...l, u.fill, u.fill_english];
3433
3514
  if (o && (S.includes(g.problemType) || typeof g.groupIndex == "number"))
3434
- return Te;
3515
+ return $e;
3435
3516
  },
3436
- ComputItemScore: (g) => [m.slove, m.easy_slove, m.art].includes(g.problemType) && g.style[d.public.scoreShowFlag] !== f.bracket_none ? [g.score].flat(2).reduce((T, B) => T + B, 0) : null,
3517
+ ComputItemScore: (g) => [u.slove, u.easy_slove, u.art].includes(g.problemType) && g.style[d.public.scoreShowFlag] !== f.bracket_none ? [g.score].flat(2).reduce(($, N) => $ + N, 0) : null,
3437
3518
  ComputPayload: (g, S) => {
3438
3519
  switch (g.problemType) {
3439
- case m.slove:
3520
+ case u.slove:
3440
3521
  return { isFirst: !S };
3441
3522
  default:
3442
3523
  return {};
@@ -3452,36 +3533,36 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
3452
3533
  e.data.isPolymer || (g.stopPropagation(), t("click", S));
3453
3534
  },
3454
3535
  handleGroupClick: (g, S) => {
3455
- (Object.values(Ce).includes(S.__rootProblemType__) || !e.layout.polymerFlag || [m.mix, m.synthesis].includes(S.problemType)) && (g.stopPropagation(), t("click", S));
3536
+ (Object.values(Ce).includes(S.__rootProblemType__) || !e.layout.polymerFlag || [u.mix, u.synthesis].includes(S.problemType)) && (g.stopPropagation(), t("click", S));
3456
3537
  },
3457
3538
  handleDblClick: (g, S) => {
3458
3539
  e.data.isPolymer || (g.stopPropagation(), t("dbclick", S));
3459
3540
  }
3460
3541
  };
3461
3542
  }
3462
- }, as = ["data-block", "data-polymer"], ls = ["data-tag", "data-polymer", "data-block", "data-xine", "onClick", "onMouseenter", "onMouseleave"], ns = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ss = { key: 0 };
3463
- function is(e, t, o, l, i, a) {
3543
+ }, os = ["data-block", "data-polymer"], as = ["data-tag", "data-polymer", "data-block", "data-xine", "onClick", "onMouseenter", "onMouseleave"], ls = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ns = { key: 0 };
3544
+ function ss(e, t, o, l, i, a) {
3464
3545
  const s = Qt("Sub");
3465
- return r(!0), u(N, null, le(l.GroupData, (c, y) => (r(), u(N, null, [
3466
- c.type === "polymer" ? (r(), u("div", {
3546
+ return r(!0), h(O, null, le(l.GroupData, (c, y) => (r(), h(O, null, [
3547
+ c.type === "polymer" ? (r(), h("div", {
3467
3548
  key: 0,
3468
3549
  "data-block": l.ComputBlock(c),
3469
3550
  "data-polymer": y,
3470
3551
  class: oe([...l.ComputPolymerCls(c)]),
3471
- style: Z(l.ComputPolymerStyle(c))
3552
+ style: X(l.ComputPolymerStyle(c))
3472
3553
  }, [
3473
- (r(!0), u(N, null, le(c.children, (n, p) => {
3474
- var M;
3475
- return r(), u("div", {
3476
- class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((M = o.target.value) == null ? void 0 : M.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
3477
- style: Z(l.ComputPolymerItemStyle(n, p)),
3554
+ (r(!0), h(O, null, le(c.children, (n, m) => {
3555
+ var A;
3556
+ return r(), h("div", {
3557
+ class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
3558
+ style: X(l.ComputPolymerItemStyle(n, m)),
3478
3559
  "data-tag": n.__tag__,
3479
3560
  "data-polymer": y,
3480
3561
  "data-block": l.ComputBlock(n),
3481
3562
  "data-xine": l.Gps_cls.item + n._sub,
3482
- onClick: (h) => l.handleGroupClick(h, n),
3483
- onMouseenter: (h) => l.handleHoverIn(n),
3484
- onMouseleave: (h) => l.handleHoverOut(n)
3563
+ onClick: (p) => l.handleGroupClick(p, n),
3564
+ onMouseenter: (p) => l.handleHoverIn(n),
3565
+ onMouseleave: (p) => l.handleHoverOut(n)
3485
3566
  }, [
3486
3567
  n.problemType ? (r(), ee(s, {
3487
3568
  key: 0,
@@ -3489,23 +3570,23 @@ function is(e, t, o, l, i, a) {
3489
3570
  isFull: !!l.ModuleTag,
3490
3571
  width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
3491
3572
  class: oe(["sub_item", l.ComputAbs(n) && "absolute left-0 top-3 left_sub"])
3492
- }, null, 8, ["sub", "isFull", "width", "class"])) : D("", !0),
3493
- (r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n, p) })), null, 16))
3494
- ], 46, ls);
3573
+ }, null, 8, ["sub", "isFull", "width", "class"])) : B("", !0),
3574
+ (r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n, m) })), null, 16))
3575
+ ], 46, as);
3495
3576
  }), 256))
3496
- ], 14, as)) : (r(!0), u(N, { key: 1 }, le(c.children, (n, p) => {
3497
- var M;
3498
- return r(), u(N, null, [
3577
+ ], 14, os)) : (r(!0), h(O, { key: 1 }, le(c.children, (n, m) => {
3578
+ var A;
3579
+ return r(), h(O, null, [
3499
3580
  k("div", {
3500
- class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((M = o.target.value) == null ? void 0 : M.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
3501
- style: Z(l.ComputStyle(n, p)),
3581
+ class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
3582
+ style: X(l.ComputStyle(n, m)),
3502
3583
  "data-tag": n.__tag__,
3503
3584
  "data-block": l.ComputBlock(n),
3504
3585
  "data-xine": l.Gps_cls.item + n._sub,
3505
- onClick: (h) => l.handleClick(h, n),
3506
- onDblclick: (h) => l.handleDblClick(h, n),
3507
- onMouseenter: (h) => l.handleHoverIn(n),
3508
- onMouseleave: (h) => l.handleHoverOut(n)
3586
+ onClick: (p) => l.handleClick(p, n),
3587
+ onDblclick: (p) => l.handleDblClick(p, n),
3588
+ onMouseenter: (p) => l.handleHoverIn(n),
3589
+ onMouseleave: (p) => l.handleHoverOut(n)
3509
3590
  }, [
3510
3591
  n.problemType && !l.ComputAbs(n) ? (r(), ee(s, {
3511
3592
  key: 0,
@@ -3514,10 +3595,10 @@ function is(e, t, o, l, i, a) {
3514
3595
  width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
3515
3596
  score: l.ComputItemScore(n),
3516
3597
  bracketType: n.style[l.problemLayoutKey.public.scoreShowFlag]
3517
- }, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) : D("", !0),
3518
- (r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n, p) })), {
3598
+ }, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) : B("", !0),
3599
+ (r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n, m) })), {
3519
3600
  default: Et(() => [
3520
- n.customSub ? D("", !0) : (r(), ee(s, {
3601
+ n.customSub ? B("", !0) : (r(), ee(s, {
3521
3602
  key: 0,
3522
3603
  sub: n.sub,
3523
3604
  isFull: !!l.ModuleTag,
@@ -3528,13 +3609,13 @@ function is(e, t, o, l, i, a) {
3528
3609
  ]),
3529
3610
  _: 2
3530
3611
  }, 1040))
3531
- ], 46, ns),
3532
- n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style && n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (r(), u("div", ss)) : D("", !0)
3612
+ ], 46, ls),
3613
+ n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style && n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (r(), h("div", ns)) : B("", !0)
3533
3614
  ], 64);
3534
3615
  }), 256))
3535
3616
  ], 64))), 256);
3536
3617
  }
3537
- const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3618
+ const Ve = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3538
3619
  const i = (e.length > 1 ? [e[0], e[e.length - 1]] : e).map((c) => c.split(".")).map((c) => `${c[0] ? `<span>${c[0]}</span>` : ""}${c[1] ? `<span> - </span><span>${c[1]}</span>` : ""}${c[2] ? `<span> - </span><span class="flex items-center justify-center w-8 h-8 border rounded-full scale-75">${c[2]}</span>` : ""}`).filter((c) => c).join(""), a = (c) => {
3539
3620
  if (!o)
3540
3621
  return "";
@@ -3544,7 +3625,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3544
3625
  return o === f.bracket_cn ? ")" : ")";
3545
3626
  }, s = t ? `<span>${a("prev")}${t}分${a("after")}</span>` : "";
3546
3627
  return i ? `<span class="inline-flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]" data-block=${Be}>${i}${s}</span>` : "";
3547
- }, Pe = 200 / 96, Rt = 4, cs = 10, q = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, he = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Me = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), ds = (e, t, o) => {
3628
+ }, Pe = 200 / 96, Ht = 4, rs = 10, q = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, he = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Me = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), cs = (e, t, o) => {
3548
3629
  const l = q(he(`${I.item}${e._sub}`, t));
3549
3630
  return !(l.top >= o.top + o.height || l.top + l.height < o.top);
3550
3631
  }, pe = (e, t, o = !1) => !e || !t ? null : {
@@ -3570,14 +3651,14 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3570
3651
  }, ce = (e, t = !1) => {
3571
3652
  if (!e)
3572
3653
  return null;
3573
- const o = t ? Rt : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
3654
+ const o = t ? Ht : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
3574
3655
  return {
3575
3656
  x: Math.round(l.x * Pe - o),
3576
3657
  y: Math.round(l.y * Pe - o),
3577
3658
  width: Math.round(l.width * Pe + o * 2),
3578
3659
  height: Math.round(l.height * Pe + o * 2)
3579
3660
  };
3580
- }, Ht = (e, t = I.en_num) => {
3661
+ }, Rt = (e, t = I.en_num) => {
3581
3662
  const o = he(t);
3582
3663
  if (!o)
3583
3664
  return null;
@@ -3605,14 +3686,14 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3605
3686
  xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Pe),
3606
3687
  questionNOList: [...Array(l.list.length).keys()].map((i, a) => a + 1)
3607
3688
  };
3608
- }, us = (e) => ({
3689
+ }, ds = (e) => ({
3609
3690
  cardSizeType: vo[e.layout.paper],
3610
3691
  cardColumnCount: e.layout.column,
3611
3692
  cardColumnCount2: e.layout.backColumn,
3612
3693
  doubleCard: !0,
3613
3694
  paperWidth: Math.round(x[e.layout.paper].width * Pe),
3614
3695
  paperHeight: Math.round(x[e.layout.paper].height * Pe)
3615
- }), hs = (e) => {
3696
+ }), us = (e) => {
3616
3697
  const t = q(e.pageDom[0]), o = q(e.pageDom[1]), l = (i, a) => {
3617
3698
  var c;
3618
3699
  const s = a > 2 || et.includes(e.layout.paper) ? {
@@ -3643,7 +3724,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3643
3724
  auxAnchorInfo: l(0, e.layout.column),
3644
3725
  auxAnchorInfo2: e.pageDom[1] ? l(1, e.layout.backColumn) : null
3645
3726
  };
3646
- }, ps = (e) => {
3727
+ }, hs = (e) => {
3647
3728
  let t = 10;
3648
3729
  if (e.pageDom[1]) {
3649
3730
  const l = he(`${I.page_item}0`, e.pageDom[1]).getBoundingClientRect();
@@ -3670,7 +3751,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3670
3751
  xColOffset: Math.round(t * Pe)
3671
3752
  }
3672
3753
  ];
3673
- }, ms = (e) => {
3754
+ }, ps = (e) => {
3674
3755
  const t = he(I.lack, e.pageDom[0]);
3675
3756
  return t ? {
3676
3757
  // 固定值
@@ -3690,17 +3771,17 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3690
3771
  yRowOffset: 0,
3691
3772
  xColOffset: 0
3692
3773
  } : null;
3693
- }, ys = (e) => {
3774
+ }, ms = (e) => {
3694
3775
  let t = pe(q(he(I.en_code, e.pageDom[0])), q(e.pageDom[0]));
3695
3776
  return ce(t);
3696
- }, _s = (e) => {
3777
+ }, ys = (e) => {
3697
3778
  const t = he(I.write_view, e.pageDom[0]);
3698
3779
  if (!t)
3699
3780
  return null;
3700
3781
  const o = Me(I.score_item, t);
3701
3782
  return {
3702
3783
  id: "0",
3703
- problemType: m.slove,
3784
+ problemType: u.slove,
3704
3785
  position: pe(q(t), q(e.pageDom[0])),
3705
3786
  scoreList: o.map((l, i) => ({
3706
3787
  position: pe(q(o[i]), q(e.pageDom[0])),
@@ -3710,12 +3791,12 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3710
3791
  score: Math.abs(parseFloat(o[i].innerText))
3711
3792
  }))
3712
3793
  };
3713
- }, fs = (e, t) => {
3714
- const o = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = cs + Rt, i = (a) => parseFloat(a.toFixed(2));
3794
+ }, _s = (e, t) => {
3795
+ const o = [u.slove, u.art, u.synthesis, u.fill, u.fill_english, u.mix], l = rs + Ht, i = (a) => parseFloat(a.toFixed(2));
3715
3796
  return t.flat().filter((a) => o.includes(a.problemType) && a.colIndex < 2).map((a) => {
3716
3797
  switch (a.problemType) {
3717
- case m.fill:
3718
- case m.fill_english:
3798
+ case u.fill:
3799
+ case u.fill_english:
3719
3800
  return !e.layout.handReadFlag && a.isHiddenContent ? [] : a.children.map((s) => {
3720
3801
  const c = s.scorePosition;
3721
3802
  return {
@@ -3728,8 +3809,8 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3728
3809
  }
3729
3810
  };
3730
3811
  });
3731
- case m.slove:
3732
- case m.art:
3812
+ case u.slove:
3813
+ case u.art:
3733
3814
  return e.layout.handReadFlag ? [{
3734
3815
  sub: a.id,
3735
3816
  position: {
@@ -3739,8 +3820,8 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3739
3820
  height: a.scoreList[0].position.height
3740
3821
  }
3741
3822
  }] : [];
3742
- case m.mix:
3743
- return !e.layout.handReadFlag && a.isHiddenContent ? [] : (a.children || []).filter((s) => [m.fill, m.fill_english, m.easy_slove].includes(s.problemType)).map((s) => [m.easy_slove].includes(s.problemType) ? {
3823
+ case u.mix:
3824
+ return !e.layout.handReadFlag && a.isHiddenContent ? [] : (a.children || []).filter((s) => [u.fill, u.fill_english, u.easy_slove].includes(s.problemType)).map((s) => [u.easy_slove].includes(s.problemType) ? {
3744
3825
  sub: s.id,
3745
3826
  position: {
3746
3827
  x: i(s.scoreList[0].position.x - (s.isHiddenContent ? s.position.x : a.position.x)),
@@ -3759,13 +3840,13 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3759
3840
  });
3760
3841
  }
3761
3842
  }).flat();
3762
- }, gs = (e, t) => {
3843
+ }, fs = (e, t) => {
3763
3844
  let o = 0, l = {};
3764
3845
  return [...Array(e.pageDom.length).keys()].map((i) => {
3765
- var c, y, n, p;
3766
- const a = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0), s = (p = (n = t[t.length - 1]) == null ? void 0 : n.data[((y = (c = t[t.length - 1]) == null ? void 0 : c.data) == null ? void 0 : y.length) - 1]) == null ? void 0 : p.children;
3767
- return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((M, h) => a + h < t.length).map((M, h) => {
3768
- const P = e.pageDom[i], z = q(P), j = e.colDom[a + h], X = q(j), A = e.colViewDom[a + h], w = q(A), G = t[a + h].data.map((C) => C.children).flat(), ie = t[a + h].data.filter((C) => [Ce.one_choice, Ce.another_choice].includes(C.problemType) && C.rawChildren.length).map((C) => {
3846
+ var c, y, n, m;
3847
+ const a = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0), s = (m = (n = t[t.length - 1]) == null ? void 0 : n.data[((y = (c = t[t.length - 1]) == null ? void 0 : c.data) == null ? void 0 : y.length) - 1]) == null ? void 0 : m.children;
3848
+ return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((A, p) => a + p < t.length).map((A, p) => {
3849
+ const P = e.pageDom[i], z = q(P), j = e.colDom[a + p], J = q(j), D = e.colViewDom[a + p], w = q(D), G = t[a + p].data.map((C) => C.children).flat(), ie = t[a + p].data.filter((C) => [Ce.one_choice, Ce.another_choice].includes(C.problemType) && C.rawChildren.length).map((C) => {
3769
3850
  const U = he(`${I.choice}${C.id}`, j);
3770
3851
  return U ? {
3771
3852
  id: `${++o}`,
@@ -3779,63 +3860,63 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3779
3860
  })).filter((de) => de.position)
3780
3861
  } : {};
3781
3862
  }).filter((C) => C.position);
3782
- return G.filter((C) => C.problemType && ds(C, j, X)).map((C, U) => {
3863
+ return G.filter((C) => C.problemType && cs(C, j, J)).map((C, U) => {
3783
3864
  var S;
3784
3865
  let de = {};
3785
3866
  l[C._sub] ? l[C._sub] += 1 : l[C._sub] = 1;
3786
3867
  const g = he(`${I.item}${C._sub}`, j);
3787
3868
  switch (C.problemType) {
3788
- case m.choice:
3789
- case m.choice_english:
3790
- case m.choice_multiple:
3791
- case m.cloze:
3869
+ case u.choice:
3870
+ case u.choice_english:
3871
+ case u.choice_multiple:
3872
+ case u.cloze:
3792
3873
  de = {
3793
3874
  score: C.score,
3794
3875
  isColumn: C.style[d[e.layout.mode].choice_a] !== f.choice_2,
3795
- optList: C.optList.map((Y, $) => ({
3796
- id: `${C._sub}.${$ + 1}`,
3797
- position: Ne(he(`${I.fill}${$}`, g), w, z)
3876
+ optList: C.optList.map((Y, T) => ({
3877
+ id: `${C._sub}.${T + 1}`,
3878
+ position: Ne(he(`${I.fill}${T}`, g), w, z)
3798
3879
  })).filter((Y) => Y.position)
3799
3880
  };
3800
3881
  break;
3801
- case m.decide:
3882
+ case u.decide:
3802
3883
  de = {
3803
- optList: [0, 1].map((Y, $) => ({
3804
- id: `${C._sub}.${$ + 1}`,
3805
- position: Ne(he(`${I.fill}${$}`, g), w, z)
3884
+ optList: [0, 1].map((Y, T) => ({
3885
+ id: `${C._sub}.${T + 1}`,
3886
+ position: Ne(he(`${I.fill}${T}`, g), w, z)
3806
3887
  })).filter((Y) => Y.position)
3807
3888
  };
3808
3889
  break;
3809
- case m.fill:
3810
- case m.fill_english:
3811
- const T = Me(I.fill, g), B = Me(I.fill_line, g);
3890
+ case u.fill:
3891
+ case u.fill_english:
3892
+ const $ = Me(I.fill, g), N = Me(I.fill_line, g);
3812
3893
  de = {
3813
- children: [C.score].flat().map((Y, $, v) => ({
3814
- id: v.length > 1 ? `${C._sub}.${$ + 1}` : C._sub,
3894
+ children: [C.score].flat().map((Y, T, v) => ({
3895
+ id: v.length > 1 ? `${C._sub}.${T + 1}` : C._sub,
3815
3896
  score: Y,
3816
3897
  problemType: C.problemType,
3817
3898
  isHiddenContent: !C.style[d[e.layout.mode].fill_b],
3818
3899
  position: Ne(g, w, z),
3819
- scorePosition: Ne(T[$], w, z),
3820
- answerPosition: Ne(B[$], w, z)
3900
+ scorePosition: Ne($[T], w, z),
3901
+ answerPosition: Ne(N[T], w, z)
3821
3902
  })).filter((Y) => Y.position)
3822
3903
  };
3823
3904
  break;
3824
- case m.slove:
3825
- case m.easy_slove:
3826
- case m.art:
3905
+ case u.slove:
3906
+ case u.easy_slove:
3907
+ case u.art:
3827
3908
  const ue = he(I.score, g);
3828
3909
  de = {
3829
3910
  scoreList: ue ? [he(I.score_tenbit, ue), he(I.score_base, ue), he(I.score_half, ue)].map((Y) => {
3830
3911
  if (!Y)
3831
3912
  return {};
3832
- const $ = Me(I.score_item, Y);
3913
+ const T = Me(I.score_item, Y);
3833
3914
  return {
3834
3915
  position: Ne(Y, w, z, !0),
3835
3916
  itemPosition: {
3836
- width: $[0].offsetWidth
3917
+ width: T[0].offsetWidth
3837
3918
  },
3838
- score: $.map((v) => Math.abs(parseFloat(v.innerText)))
3919
+ score: T.map((v) => Math.abs(parseFloat(v.innerText)))
3839
3920
  };
3840
3921
  }).filter((Y) => Y.position) : null
3841
3922
  };
@@ -3847,13 +3928,13 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3847
3928
  problemType: C.problemType,
3848
3929
  _rootProblemType: C._rootProblemType,
3849
3930
  _parentProblemType: C._parentProblemType,
3850
- position: Ne(g, w, z, !1, C.id === G[G.length - 1].id && C.id !== ((S = s[s.length - 1]) == null ? void 0 : S.id) && [m.slove].includes(C.problemType)),
3931
+ position: Ne(g, w, z, !1, C.id === G[G.length - 1].id && C.id !== ((S = s[s.length - 1]) == null ? void 0 : S.id) && [u.slove].includes(C.problemType)),
3851
3932
  ...de
3852
3933
  };
3853
3934
  }).concat(ie).filter((C) => C.position);
3854
3935
  });
3855
3936
  }).map((i) => i.flat());
3856
- }, bs = (e) => {
3937
+ }, gs = (e) => {
3857
3938
  let t = {};
3858
3939
  const o = (a = e, s = !1) => (t[a.id] = {
3859
3940
  _rootProblemType: rt[e._rootProblemType],
@@ -3866,17 +3947,17 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3866
3947
  // 块内序号ID,按切块自增
3867
3948
  secitonSeqID: a.colIndex || 1,
3868
3949
  // 需要保存文件,固定值
3869
- needSavedFile: !!s || [m.mix].includes(e.problemType),
3950
+ needSavedFile: !!s || [u.mix].includes(e.problemType),
3870
3951
  // 题型
3871
3952
  cuttingSectionQuestionType: rt[a.problemType || e.problemType]
3872
3953
  });
3873
3954
  let l = {};
3874
3955
  switch (e.problemType) {
3875
- case m.choice:
3876
- case m.choice_english:
3877
- case m.choice_multiple:
3878
- case m.cloze:
3879
- case m.decide:
3956
+ case u.choice:
3957
+ case u.choice_english:
3958
+ case u.choice_multiple:
3959
+ case u.cloze:
3960
+ case u.decide:
3880
3961
  l = {
3881
3962
  choiceQuestionPartialSectionList: [{
3882
3963
  ...o(e, !0),
@@ -3888,13 +3969,13 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3888
3969
  choiceUnitSectionList: e.optList.map((a, s) => ({
3889
3970
  ...o(a, !0),
3890
3971
  choicePosition: ce(a.position),
3891
- choiceResult: [m.decide].includes(e.problemType) ? bo[s] : _t[s]
3972
+ choiceResult: [u.decide].includes(e.problemType) ? bo[s] : _t[s]
3892
3973
  }))
3893
3974
  }]
3894
3975
  };
3895
3976
  break;
3896
- case m.fill:
3897
- case m.fill_english:
3977
+ case u.fill:
3978
+ case u.fill_english:
3898
3979
  l = {
3899
3980
  subjectiveQuestionSectionList: [{
3900
3981
  ...o(e, !0),
@@ -3915,9 +3996,9 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3915
3996
  }]
3916
3997
  };
3917
3998
  break;
3918
- case m.slove:
3919
- case m.easy_slove:
3920
- case m.art:
3999
+ case u.slove:
4000
+ case u.easy_slove:
4001
+ case u.art:
3921
4002
  l = {
3922
4003
  subjectiveQuestionSectionList: [{
3923
4004
  ...o(e, !0),
@@ -3938,8 +4019,8 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3938
4019
  }]
3939
4020
  };
3940
4021
  break;
3941
- case m.synthesis:
3942
- case m.mix:
4022
+ case u.synthesis:
4023
+ case u.mix:
3943
4024
  break;
3944
4025
  case Ce.one_choice:
3945
4026
  case Ce.another_choice:
@@ -3966,7 +4047,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3966
4047
  ...o(e, !e.isOneChoice),
3967
4048
  ...l
3968
4049
  }, typeData: t };
3969
- }, vs = (e, t) => {
4050
+ }, bs = (e, t) => {
3970
4051
  let o = {};
3971
4052
  const l = [...Array(e.pageTotal).keys()].map((s) => ({
3972
4053
  // 当前页数
@@ -3986,22 +4067,22 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
3986
4067
  }],
3987
4068
  // 按题切块信息
3988
4069
  cardCuttingSectionList: t[s].map((c) => {
3989
- const y = bs(c);
4070
+ const y = gs(c);
3990
4071
  return o = { ...o, ...y.typeData }, y.data;
3991
4072
  }).flat()
3992
4073
  })), i = (s, c) => ([s.sectionID].flat(2)[0] || "").split(".").filter((y, n) => n < c).join("."), a = l.map((s) => {
3993
4074
  let c = [], y = [], n = [];
3994
- return s.cardCuttingSectionList.forEach((p, M, h) => {
3995
- const P = i(p, 1);
4075
+ return s.cardCuttingSectionList.forEach((m, A, p) => {
4076
+ const P = i(m, 1);
3996
4077
  let z = !1, j = !1;
3997
- if (n.find((A) => i(A, 1) === P && A.secitonSeqID === p.secitonSeqID) && !(p.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(p), z = M < h.length - 1, j = !0), z)
4078
+ if (n.find((D) => i(D, 1) === P && D.secitonSeqID === m.secitonSeqID) && !(m.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(m), z = A < p.length - 1, j = !0), z)
3998
4079
  return;
3999
- let X = !1;
4000
- if ((p.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(p), X = !0), n.length) {
4080
+ let J = !1;
4081
+ if ((m.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(m), J = !0), n.length) {
4001
4082
  if (n.length === 1)
4002
4083
  c.push(n[0]);
4003
4084
  else {
4004
- const A = n.map((C) => C.subjectiveQuestionSectionList || []).flat(), w = n.map((C) => C.choiceQuestionPartialSectionList || []).flat(), G = w.length ? { choiceQuestionPartialSectionList: w } : {}, ie = A.length ? { subjectiveQuestionSectionList: A } : {};
4085
+ const D = n.map((C) => C.subjectiveQuestionSectionList || []).flat(), w = n.map((C) => C.choiceQuestionPartialSectionList || []).flat(), G = w.length ? { choiceQuestionPartialSectionList: w } : {}, ie = D.length ? { subjectiveQuestionSectionList: D } : {};
4005
4086
  c.push({
4006
4087
  ...n[0],
4007
4088
  // cuttingSectionQuestionType: typeResult[tmp[0].sectionID]._rootProblemType || tmp[0].cuttingSectionQuestionType,
@@ -4011,35 +4092,35 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
4011
4092
  }
4012
4093
  n = [];
4013
4094
  }
4014
- X || j || n.push(p);
4015
- }), c = [...c, ...n].map((p) => ({ ...p, cuttingSectionQuestionType: o[p.sectionID]._rootProblemType || p.cuttingSectionQuestionType, sectionID: i(p, 1) })), { ...s, cardCuttingSectionList: [...c, ...y] };
4095
+ J || j || n.push(m);
4096
+ }), c = [...c, ...n].map((m) => ({ ...m, cuttingSectionQuestionType: o[m.sectionID]._rootProblemType || m.cuttingSectionQuestionType, sectionID: i(m, 1) })), { ...s, cardCuttingSectionList: [...c, ...y] };
4016
4097
  }).map((s) => {
4017
4098
  const c = s.cardCuttingSectionList.map((y) => {
4018
4099
  var P;
4019
- let n = [], p = [];
4020
- const M = Math.max(...(y.subjectiveQuestionSectionList || []).map((z) => z.sectionID.split(".").length - 1), 1);
4021
- (P = y.subjectiveQuestionSectionList) == null || P.forEach((z, j, X) => {
4022
- const A = i(z, M);
4100
+ let n = [], m = [];
4101
+ const A = Math.max(...(y.subjectiveQuestionSectionList || []).map((z) => z.sectionID.split(".").length - 1), 1);
4102
+ (P = y.subjectiveQuestionSectionList) == null || P.forEach((z, j, J) => {
4103
+ const D = i(z, A);
4023
4104
  let w = !1, G = !1;
4024
- if (p.find((ie) => i(ie, M) === A && ie.secitonSeqID === z.secitonSeqID) && (p.push(z), w = j < X.length - 1, G = !0), !w) {
4025
- if (p.length) {
4026
- if (p.length === 1)
4027
- n.push(p[0]);
4105
+ if (m.find((ie) => i(ie, A) === D && ie.secitonSeqID === z.secitonSeqID) && (m.push(z), w = j < J.length - 1, G = !0), !w) {
4106
+ if (m.length) {
4107
+ if (m.length === 1)
4108
+ n.push(m[0]);
4028
4109
  else {
4029
- const ie = p.map((U) => U.singleBlankSectionList || []).flat(), C = ie.length ? { singleBlankSectionList: ie, unitCount: ie.length } : {};
4110
+ const ie = m.map((U) => U.singleBlankSectionList || []).flat(), C = ie.length ? { singleBlankSectionList: ie, unitCount: ie.length } : {};
4030
4111
  n.push({
4031
- ...p[0],
4112
+ ...m[0],
4032
4113
  // cuttingSectionQuestionType: typeResult[subjectTmp[0].sectionID]._parentProblemType || subjectTmp[0].cuttingSectionQuestionType,
4033
4114
  ...C
4034
4115
  });
4035
4116
  }
4036
- p = [];
4117
+ m = [];
4037
4118
  }
4038
- G || p.push(z);
4119
+ G || m.push(z);
4039
4120
  }
4040
4121
  });
4041
- const h = Math.max(...[...n, ...p].map((z) => z.sectionID.split(".").length));
4042
- return n = [...n, ...p].map((z) => ({ ...z, cuttingSectionQuestionType: o[z.sectionID]._parentProblemType || z.cuttingSectionQuestionType, sectionID: i(z, Math.max(h - 1, 1)) })), n.length ? {
4122
+ const p = Math.max(...[...n, ...m].map((z) => z.sectionID.split(".").length));
4123
+ return n = [...n, ...m].map((z) => ({ ...z, cuttingSectionQuestionType: o[z.sectionID]._parentProblemType || z.cuttingSectionQuestionType, sectionID: i(z, Math.max(p - 1, 1)) })), n.length ? {
4043
4124
  ...y,
4044
4125
  subjectiveQuestionSectionList: n
4045
4126
  } : y;
@@ -4047,7 +4128,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
4047
4128
  return { ...s, cardCuttingSectionList: c };
4048
4129
  });
4049
4130
  return o = {}, a;
4050
- }, ws = (e, t) => {
4131
+ }, vs = (e, t) => {
4051
4132
  var l;
4052
4133
  const o = q(e.pageDom[0]);
4053
4134
  return {
@@ -4062,7 +4143,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
4062
4143
  // true:表示每个页面都要自带页面号确定信息 false:表示可以根据双面扫描下解析出来的另一面来推定
4063
4144
  sideAllSelfIntp: !1,
4064
4145
  // 填涂式考号,与条码式考号互斥
4065
- adminssionTicketID: Ht(e),
4146
+ adminssionTicketID: Rt(e),
4066
4147
  // 试卷二维码
4067
4148
  cardSerialNumber: {
4068
4149
  // 条形码虚线框位置, x, y, width, height
@@ -4075,7 +4156,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
4075
4156
  studentID: {
4076
4157
  // 条形码虚线框位置, x, y, width, height
4077
4158
  // encodePictureArea: ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
4078
- encodePictureArea: ys(e),
4159
+ encodePictureArea: ms(e),
4079
4160
  // ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
4080
4161
  // 固定值
4081
4162
  qrCodePosition: null,
@@ -4095,21 +4176,21 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
4095
4176
  // 哪些面有选做老师布置题的信息,固定值
4096
4177
  onlyAssignInfoList: [],
4097
4178
  // 页面布局信息
4098
- layerType: us(e),
4179
+ layerType: ds(e),
4099
4180
  // 定位点信息
4100
- ...hs(e),
4181
+ ...us(e),
4101
4182
  pottedLineXPos: e.bindWidth ? (l = ce(pe(q(he(I.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
4102
4183
  // 页码点信息
4103
- pageSideAnchorsList: ps(e),
4184
+ pageSideAnchorsList: hs(e),
4104
4185
  // 缺考标记
4105
- absenceMark: ms(e),
4186
+ absenceMark: ps(e),
4106
4187
  // 业务数据
4107
4188
  oneFullPageCardList: t
4108
4189
  };
4109
- }, ks = (e) => {
4110
- const { config: t, data: o } = e, l = _s(t), i = gs(t, o);
4190
+ }, ws = (e) => {
4191
+ const { config: t, data: o } = e, l = ys(t), i = fs(t, o);
4111
4192
  l && i[0].unshift(l);
4112
- const a = fs(t, i), s = vs(t, i), c = ws(t, s), y = Ht(t, I.en_num_view) || {};
4193
+ const a = _s(t, i), s = bs(t, i), c = vs(t, s), y = Rt(t, I.en_num_view) || {};
4113
4194
  return {
4114
4195
  engineData: c,
4115
4196
  pageTotal: t.pageTotal,
@@ -4117,10 +4198,10 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
4117
4198
  localData: a,
4118
4199
  extendInfo: { shortCoordinate: y }
4119
4200
  };
4120
- }, xs = { class: "layt-moni_view" }, Cs = { class: "layt-moni_content" }, Ss = { class: "layt-moni_icon" }, $s = { class: "layt-moni_msg" }, Ts = {
4201
+ }, ks = { class: "layt-moni_view" }, xs = { class: "layt-moni_content" }, Cs = { class: "layt-moni_icon" }, Ss = { class: "layt-moni_msg" }, Ts = {
4121
4202
  key: 0,
4122
4203
  class: "layt-moni_err_view"
4123
- }, Is = { class: "layt-moni_err_item_msg" }, Ls = ["onClick"], Fs = /* @__PURE__ */ ne({
4204
+ }, $s = { class: "layt-moni_err_item_msg" }, Is = ["onClick"], Ls = /* @__PURE__ */ ne({
4124
4205
  __name: "index",
4125
4206
  props: {
4126
4207
  ColList: {},
@@ -4134,25 +4215,25 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
4134
4215
  De(() => [o.ColList, o.ImgData, o.TxtData], () => {
4135
4216
  l.value = [], setTimeout(() => {
4136
4217
  var n;
4137
- o.ColList.forEach((p, M) => {
4138
- p.data.map((h) => h.children).flat().filter((h) => [m.slove, m.art].includes(h.problemType) && !h.chunk).forEach((h) => {
4139
- var X;
4140
- const P = (X = o.ColDom[M].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : X.querySelector(`*[data-xine="${I.score}"]`);
4218
+ o.ColList.forEach((m, A) => {
4219
+ m.data.map((p) => p.children).flat().filter((p) => [u.slove, u.art, u.easy_slove].includes(p.problemType) && !p.chunk).forEach((p) => {
4220
+ var J;
4221
+ const P = (J = o.ColDom[A].querySelector(`*[data-tag="${p.__tag__}"]`)) == null ? void 0 : J.querySelector(`*[data-xine="${I.score}"]`);
4141
4222
  if (!P)
4142
4223
  return;
4143
4224
  P.classList.remove("err_lack");
4144
- const z = window.getComputedStyle(P), j = [...Array.from(P.children)].map((A) => A.offsetWidth).reduce((A, w) => A + w, 0);
4145
- P.offsetWidth - parseFloat(z.borderLeft) - parseFloat(z.borderRight) < j && (l.value.push({ msg: `${h.subStr}题打分条超长` }), P.classList.add("err_lack"), P.title = "打分条超长,请调整排版或使用自编打分条");
4225
+ const z = window.getComputedStyle(P), j = [...Array.from(P.children)].map((D) => D.offsetWidth).reduce((D, w) => D + w, 0);
4226
+ P.offsetWidth - parseFloat(z.borderLeft) - parseFloat(z.borderRight) < j && (l.value.push({ msg: `${p.subStr}题打分条超长` }), P.classList.add("err_lack"), P.title = "打分条超长,请调整排版或使用自编打分条");
4146
4227
  });
4147
4228
  });
4148
4229
  const s = (n = document.querySelector(".__layout__")) == null ? void 0 : n.getBoundingClientRect();
4149
4230
  if (!s)
4150
4231
  return;
4151
4232
  let c = [], y = [];
4152
- o.ImgData.forEach((p) => {
4153
- (p.left + p.width > s.width || p.top + p.height > s.height) && c.push(p);
4154
- }), o.TxtData.forEach((p) => {
4155
- (p.left + p.width > s.width || p.top + p.height > s.height) && y.push(p);
4233
+ o.ImgData.forEach((m) => {
4234
+ (m.left + m.width > s.width || m.top + m.height > s.height) && c.push(m);
4235
+ }), o.TxtData.forEach((m) => {
4236
+ (m.left + m.width > s.width || m.top + m.height > s.height) && y.push(m);
4156
4237
  }), c.length && l.value.push({ type: "absImg", value: c, msg: `${c.length}张插入图片溢出`, fn: i }), y.length && l.value.push({ type: "absTxt", value: y, msg: `${y.length}条插入文本溢出`, fn: a }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
4157
4238
  }, 500);
4158
4239
  });
@@ -4163,49 +4244,49 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
4163
4244
  var c;
4164
4245
  (((c = l.value.find((y) => y.type === "absTxt")) == null ? void 0 : c.value) || []).forEach((y) => t("delAbsTxtItem", y));
4165
4246
  };
4166
- return (s, c) => (r(), u("div", xs, [
4167
- k("div", Cs, [
4247
+ return (s, c) => (r(), h("div", ks, [
4248
+ k("div", xs, [
4168
4249
  k("div", {
4169
4250
  class: oe(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
4170
4251
  }, null, 2),
4171
4252
  k("div", {
4172
4253
  class: oe(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
4173
4254
  }, [
4174
- k("span", Ss, [
4255
+ k("span", Cs, [
4175
4256
  ae(ve, {
4176
4257
  width: 1.6,
4177
4258
  name: l.value.length ? "wrong" : "right"
4178
4259
  }, null, 8, ["name"])
4179
4260
  ]),
4180
- k("span", $s, "排版" + te(l.value.length ? "异常" : "良好"), 1)
4261
+ k("span", Ss, "排版" + te(l.value.length ? "异常" : "良好"), 1)
4181
4262
  ], 2),
4182
- l.value.length ? (r(), u("ul", Ts, [
4183
- (r(!0), u(N, null, le(l.value, (y, n) => (r(), u("li", {
4263
+ l.value.length ? (r(), h("ul", Ts, [
4264
+ (r(!0), h(O, null, le(l.value, (y, n) => (r(), h("li", {
4184
4265
  key: n,
4185
4266
  class: "layt-moni_err_item"
4186
4267
  }, [
4187
- k("span", Is, te(y.msg), 1),
4188
- y.fn ? (r(), u("span", {
4268
+ k("span", $s, te(y.msg), 1),
4269
+ y.fn ? (r(), h("span", {
4189
4270
  key: 0,
4190
4271
  class: "layt-moni_err_item_fn",
4191
4272
  onClick: y.fn
4192
- }, te(y.btnTxt || "删除"), 9, Ls)) : D("", !0)
4273
+ }, te(y.btnTxt || "删除"), 9, Is)) : B("", !0)
4193
4274
  ]))), 128))
4194
- ])) : D("", !0)
4275
+ ])) : B("", !0)
4195
4276
  ])
4196
4277
  ]));
4197
4278
  }
4198
4279
  });
4199
- const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e) => e == null ? void 0 : e.getBoundingClientRect(), ct = (e, t) => t.querySelector(`*[data-tag="${e}"]`), ht = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Be, gt].includes(t.dataset.block || "")), at = (e) => e.previousElementSibling ? [Be, gt].includes(e.previousElementSibling.dataset.block || "") ? at(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? at(e.parentElement) : document.body, Ps = (e) => {
4280
+ const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e) => e == null ? void 0 : e.getBoundingClientRect(), ct = (e, t) => t.querySelector(`*[data-tag="${e}"]`), ht = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Be, gt].includes(t.dataset.block || "")), at = (e) => e.previousElementSibling ? [Be, gt].includes(e.previousElementSibling.dataset.block || "") ? at(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? at(e.parentElement) : document.body, Es = (e) => {
4200
4281
  const t = e.parentElement, o = document.createElement("span");
4201
4282
  return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = gt, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
4202
- }, Ms = (e, t, o, l) => {
4283
+ }, Ps = (e, t, o, l) => {
4203
4284
  let i = null;
4204
4285
  if (e.dataset.block === ft && !e.dataset.used) {
4205
4286
  const a = window.getComputedStyle(e);
4206
4287
  t - parseFloat(a.paddingTop) - parseFloat(a.borderTop) - 1 < 50 && (i = e.parentElement && e.parentElement.dataset.block === sl ? e.parentElement : e), e.dataset.used = "1";
4207
4288
  } else
4208
- e.dataset.block === Tt ? i = e.parentElement : e.dataset.block === il && !e.dataset.used ? e.offsetHeight < o - 20 ? i = e.parentElement : e.dataset.used = "1" : e.dataset.block === Te && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${Tt}]`) ? e.dataset.used = "1" : i = e : (e.dataset.block === rl && l || cl.includes(e.tagName.toLowerCase())) && (i = e);
4289
+ e.dataset.block === $t ? i = e.parentElement : e.dataset.block === il && !e.dataset.used ? e.offsetHeight < o - 20 ? i = e.parentElement : e.dataset.used = "1" : e.dataset.block === $e && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${$t}]`) ? e.dataset.used = "1" : i = e : (e.dataset.block === rl && l || cl.includes(e.tagName.toLowerCase())) && (i = e);
4209
4290
  return i;
4210
4291
  }, Lt = (e, t, o) => {
4211
4292
  const l = e.textContent || "", i = l.split("").map((y) => `<span>${y}</span>`).join("");
@@ -4223,7 +4304,7 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
4223
4304
  return a || (a = at(e), ye(a).top + a.offsetHeight - t > o && (a = pt(a, t, o))), a;
4224
4305
  }, Ft = (e, t, o, l) => {
4225
4306
  const i = (s, c = o) => {
4226
- var j, X, A;
4307
+ var j, J, D;
4227
4308
  const y = s.map((w) => {
4228
4309
  const G = ye(w);
4229
4310
  return {
@@ -4231,38 +4312,38 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
4231
4312
  top: G.top - t,
4232
4313
  left: G.left
4233
4314
  };
4234
- }), n = y.filter((w) => w.el.offsetHeight + w.top > c).sort((w, G) => w.top - G.top), p = (j = n.shift()) == null ? void 0 : j.el;
4235
- if (!p) {
4315
+ }), n = y.filter((w) => w.el.offsetHeight + w.top > c).sort((w, G) => w.top - G.top), m = (j = n.shift()) == null ? void 0 : j.el;
4316
+ if (!m) {
4236
4317
  const w = ye(s[0].parentElement);
4237
4318
  if (w.top + w.height - t - 10 < c)
4238
4319
  return s[0].parentElement;
4239
4320
  const G = document.createElement("div");
4240
- return (X = s[0].parentElement) == null || X.appendChild(G), G.style.height = c - (ye(G).top - t) + "px", G;
4321
+ return (J = s[0].parentElement) == null || J.appendChild(G), G.style.height = c - (ye(G).top - t) + "px", G;
4241
4322
  }
4242
- const M = ye(p), h = M.top - t, P = M.left;
4243
- if (n.filter((w) => w.top < h + p.offsetHeight && w.top + w.el.offsetHeight - 1 > h && (w.left + w.el.offsetWidth - 1 < P || w.left + 1 > P + p.offsetWidth)).length) {
4244
- const w = (A = y.filter((G) => G.top < h).pop()) == null ? void 0 : A.el;
4323
+ const A = ye(m), p = A.top - t, P = A.left;
4324
+ if (n.filter((w) => w.top < p + m.offsetHeight && w.top + w.el.offsetHeight - 1 > p && (w.left + w.el.offsetWidth - 1 < P || w.left + 1 > P + m.offsetWidth)).length) {
4325
+ const w = (D = y.filter((G) => G.top < p).pop()) == null ? void 0 : D.el;
4245
4326
  if (w != null && w.children.length) {
4246
4327
  const G = ht(w);
4247
- return i(G, h) || w;
4328
+ return i(G, p) || w;
4248
4329
  } else
4249
- return w ? ye(w).top - t + w.offsetHeight > h ? Lt(w, t, h) : w : pt(p.parentElement, t, h);
4330
+ return w ? ye(w).top - t + w.offsetHeight > p ? Lt(w, t, p) : w : pt(m.parentElement, t, p);
4250
4331
  } else {
4251
- const w = getComputedStyle(p);
4252
- if (h + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > c)
4253
- return pt(p, t, h);
4254
- const G = Ms(p, c - h, c, l);
4332
+ const w = getComputedStyle(m);
4333
+ if (p + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > c)
4334
+ return pt(m, t, p);
4335
+ const G = Ps(m, c - p, c, l);
4255
4336
  if (G)
4256
4337
  return at(G);
4257
- if (p.children.length) {
4258
- const ie = ht(p);
4338
+ if (m.children.length) {
4339
+ const ie = ht(m);
4259
4340
  return i(ie, c);
4260
4341
  } else
4261
- return Lt(p, t, c);
4342
+ return Lt(m, t, c);
4262
4343
  }
4263
4344
  }, a = i([e]);
4264
- return { cut: Ps(a), targetEl: a };
4265
- }, As = (e) => {
4345
+ return { cut: Es(a), targetEl: a };
4346
+ }, Ms = (e) => {
4266
4347
  const { el: t, data: o, column: l, backColumn: i, getColSize: a, change: s } = e;
4267
4348
  if (!t || !o.length) {
4268
4349
  s([], !0);
@@ -4270,8 +4351,8 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
4270
4351
  }
4271
4352
  console.time("layout");
4272
4353
  const c = ye(t).top;
4273
- let y = {}, n = 0, p = 0;
4274
- const M = (w) => {
4354
+ let y = {}, n = 0, m = 0;
4355
+ const A = (w) => {
4275
4356
  const G = w % (l + i), ie = Math.floor(w / (l + i)) * 2 + (G >= l ? 1 : 0), C = a(w, ie);
4276
4357
  y = {
4277
4358
  top: c,
@@ -4279,95 +4360,95 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
4279
4360
  height: parseFloat(C.height)
4280
4361
  };
4281
4362
  };
4282
- let h = [], P = 0;
4363
+ let p = [], P = 0;
4283
4364
  const z = () => {
4284
- M(h.length), t.style.width = `${y.width}px`, h.push({
4365
+ A(p.length), t.style.width = `${y.width}px`, p.push({
4285
4366
  top: 0,
4286
4367
  data: [],
4287
4368
  width: y.width,
4288
4369
  height: y.height
4289
- }), s([...h]);
4370
+ }), s([...p]);
4290
4371
  };
4291
4372
  z();
4292
4373
  const j = (w) => {
4293
4374
  const G = getComputedStyle(w);
4294
- return ye(w).top - y.top + parseFloat(G.borderTop) + parseFloat(G.paddingTop) + parseFloat(G.lineHeight) > h[h.length - 1].height;
4295
- }, X = (w) => {
4375
+ return ye(w).top - y.top + parseFloat(G.borderTop) + parseFloat(G.paddingTop) + parseFloat(G.lineHeight) > p[p.length - 1].height;
4376
+ }, J = (w) => {
4296
4377
  const G = getComputedStyle(w);
4297
- return ye(w).top + w.offsetHeight - y.top - (w.dataset.block === Te ? 0 : parseFloat(G.paddingBottom) - parseFloat(G.borderBottom)) <= h[h.length - 1].height;
4298
- }, A = (w = JSON.parse(JSON.stringify(o[P] || {}))) => {
4378
+ return ye(w).top + w.offsetHeight - y.top - (w.dataset.block === $e ? 0 : parseFloat(G.paddingBottom) - parseFloat(G.borderBottom)) <= p[p.length - 1].height;
4379
+ }, D = (w = JSON.parse(JSON.stringify(o[P] || {}))) => {
4299
4380
  if (P >= o.length || !Object.keys(w).length) {
4300
- s([...h], !0), console.timeEnd("layout"), h = [], n = 0;
4381
+ s([...p], !0), console.timeEnd("layout"), p = [], n = 0;
4301
4382
  return;
4302
4383
  }
4303
- h[h.length - 1].data.push({ ...w }), s([...h]), window.requestAnimationFrame(() => {
4384
+ p[p.length - 1].data.push({ ...w }), s([...p]), window.requestAnimationFrame(() => {
4304
4385
  const G = ct(w.__tag__, t), ie = !w.isHidden && ye(G);
4305
4386
  let C = null;
4306
- if (p) {
4307
- const U = G.querySelector(`*[data-hutkey="${p}"]`), de = ye(U);
4308
- h[h.length - 1].top = y.top - de.top, h[h.length - 1].height = y.height - h[h.length - 1].top, p = 0;
4387
+ if (m) {
4388
+ const U = G.querySelector(`*[data-hutkey="${m}"]`), de = ye(U);
4389
+ p[p.length - 1].top = y.top - de.top, p[p.length - 1].height = y.height - p[p.length - 1].top, m = 0;
4309
4390
  }
4310
- if (ie && ie.height + ie.top - y.top > h[h.length - 1].height)
4391
+ if (ie && ie.height + ie.top - y.top > p[p.length - 1].height)
4311
4392
  if (w.problemType)
4312
- h[h.length - 1].data.pop(), z(), A({ ...w });
4313
- else if (X(G))
4314
- z(), P++, A();
4393
+ p[p.length - 1].data.pop(), z(), D({ ...w });
4394
+ else if (J(G))
4395
+ z(), P++, D();
4315
4396
  else if (j(G))
4316
- h[h.length - 1].data.pop(), z(), A({ ...w });
4397
+ p[p.length - 1].data.pop(), z(), D({ ...w });
4317
4398
  else {
4318
- C = Ft(G, y.top, h[h.length - 1].height, h.length % (l + i) >= l), console.log(C);
4399
+ C = Ft(G, y.top, p[p.length - 1].height, p.length % (l + i) >= l), console.log(C);
4319
4400
  const U = G.querySelector(`*[data-content="${w.id}"]`);
4320
- h[h.length - 1].height = ye(C.cut).top - y.top, z(), U != null && U.contains(C.cut) ? (p = Date.now(), C.cut.dataset.hutkey = p, A({ ...w, content: U.innerHTML })) : (h[h.length - 1].data.pop(), A({ ...w }));
4401
+ p[p.length - 1].height = ye(C.cut).top - y.top, z(), U != null && U.contains(C.cut) ? (m = Date.now(), C.cut.dataset.hutkey = m, D({ ...w, content: U.innerHTML })) : (p[p.length - 1].data.pop(), D({ ...w }));
4321
4402
  }
4322
4403
  else {
4323
4404
  let U = [], de = [], g = !1;
4324
- if (w.children.some((S, T) => {
4325
- var Y, $;
4326
- const B = ct(S.__tag__, t), ue = ye(B);
4405
+ if (w.children.some((S, $) => {
4406
+ var Y, T;
4407
+ const N = ct(S.__tag__, t), ue = ye(N);
4327
4408
  if (n) {
4328
- const v = B.querySelector(`*[data-cutkey="${n}"]`), _ = ye(v);
4329
- h[h.length - 1].top = y.top - _.top, h[h.length - 1].height = y.height - h[h.length - 1].top, n = 0;
4409
+ const v = N.querySelector(`*[data-cutkey="${n}"]`), _ = ye(v);
4410
+ p[p.length - 1].top = y.top - _.top, p[p.length - 1].height = y.height - p[p.length - 1].top, n = 0;
4330
4411
  }
4331
- if (ue.height + ue.top - y.top > h[h.length - 1].height) {
4332
- if ((Y = B.parentElement) != null && Y.dataset.polymer)
4333
- parseInt(($ = B.parentElement) == null ? void 0 : $.dataset.polymer) ? (U = U.filter((v) => {
4412
+ if (ue.height + ue.top - y.top > p[p.length - 1].height) {
4413
+ if ((Y = N.parentElement) != null && Y.dataset.polymer)
4414
+ parseInt((T = N.parentElement) == null ? void 0 : T.dataset.polymer) ? (U = U.filter((v) => {
4334
4415
  var _;
4335
- return ct(v.__tag__, t).dataset.polymer !== ((_ = B.parentElement) == null ? void 0 : _.dataset.polymer);
4336
- }), de = w.children.slice(U.length)) : (h[h.length - 1].data.pop(), U = [], g = !0, z(), A({ ...w }));
4337
- else if (X(B))
4338
- U.push(S), de = T < w.children.length - 1 ? w.children.slice(T + 1) : [];
4339
- else if (j(B))
4340
- de = w.children.slice(T);
4416
+ return ct(v.__tag__, t).dataset.polymer !== ((_ = N.parentElement) == null ? void 0 : _.dataset.polymer);
4417
+ }), de = w.children.slice(U.length)) : (p[p.length - 1].data.pop(), U = [], g = !0, z(), D({ ...w }));
4418
+ else if (J(N))
4419
+ U.push(S), de = $ < w.children.length - 1 ? w.children.slice($ + 1) : [];
4420
+ else if (j(N))
4421
+ de = w.children.slice($);
4341
4422
  else {
4342
- C = Ft(B, y.top, h[h.length - 1].height, h.length % (l + i) >= l);
4343
- const v = B.querySelector(`*[data-content="${S.id}"]`);
4344
- if (B === C.targetEl)
4345
- U.push(S), de = T < w.children.length - 1 ? w.children.slice(T + 1) : [];
4423
+ C = Ft(N, y.top, p[p.length - 1].height, p.length % (l + i) >= l);
4424
+ const v = N.querySelector(`*[data-content="${S.id}"]`);
4425
+ if (N === C.targetEl)
4426
+ U.push(S), de = $ < w.children.length - 1 ? w.children.slice($ + 1) : [];
4346
4427
  else if (v && v.contains(C.cut))
4347
- n = Date.now(), C.cut.dataset.cutkey = n, S.content = v.innerHTML, U.push(S), de = [{ ...S, content: v.innerHTML }, ...T < w.children.length - 1 ? w.children.slice(T + 1) : []], h[h.length - 1].height = ye(C.cut).top - y.top;
4428
+ n = Date.now(), C.cut.dataset.cutkey = n, S.content = v.innerHTML, U.push(S), de = [{ ...S, content: v.innerHTML }, ...$ < w.children.length - 1 ? w.children.slice($ + 1) : []], p[p.length - 1].height = ye(C.cut).top - y.top;
4348
4429
  else {
4349
4430
  if (!de.length) {
4350
4431
  let _ = { ...S };
4351
4432
  switch (S.problemType) {
4352
4433
  case We.slove:
4353
- const R = B.querySelector(`*[data-area="${S.id}"]`);
4354
- R != null && R.contains(C.cut) && (n = Date.now(), C.cut.dataset.cutkey = n, S.answerArea = R.innerHTML), B.contains(C.targetEl) && (S.chunk += 1);
4434
+ const H = N.querySelector(`*[data-area="${S.id}"]`);
4435
+ H != null && H.contains(C.cut) && (n = Date.now(), C.cut.dataset.cutkey = n, S.answerArea = H.innerHTML), N.contains(C.targetEl) && (S.chunk += 1);
4355
4436
  break;
4356
4437
  case We.art:
4357
4438
  if (S.artEditor) {
4358
- const Q = B.querySelector(`*[data-area="${S.id}"]`);
4359
- Q != null && Q.contains(C.cut) && (n = Date.now(), C.cut.dataset.cutkey = n, S.answerArea = Q.innerHTML), B.contains(C.targetEl) && (S.chunk += 1);
4439
+ const Q = N.querySelector(`*[data-area="${S.id}"]`);
4440
+ Q != null && Q.contains(C.cut) && (n = Date.now(), C.cut.dataset.cutkey = n, S.answerArea = Q.innerHTML), N.contains(C.targetEl) && (S.chunk += 1);
4360
4441
  break;
4361
4442
  } else {
4362
- const Q = B.querySelector(`*[data-bart="${S.id}"]`), E = C.targetEl.dataset.block === Te && C.targetEl.dataset.size ? C.targetEl : null, H = B.querySelector(`*[data-aart="${S.id}"]`);
4443
+ const Q = N.querySelector(`*[data-bart="${S.id}"]`), E = C.targetEl.dataset.block === $e && C.targetEl.dataset.size ? C.targetEl : null, R = N.querySelector(`*[data-aart="${S.id}"]`);
4363
4444
  if (Q != null && Q.contains(C.cut))
4364
4445
  n = Date.now(), C.cut.dataset.cutkey = n, S.beforeArt = Q == null ? void 0 : Q.innerHTML, _.beforeGuide = "", _.afterArt = "", _.endAnswerLen = -1;
4365
4446
  else if (E) {
4366
4447
  const K = parseInt(E.dataset.size);
4367
4448
  if (!S.artBlock)
4368
4449
  if (S.beforeGuide && S.beforeGuide.length + (S.startAnswerLen ? 0 : 2) - S.startAnswerLen > K) {
4369
- const se = B.querySelector(`*[data-guide="${S.id}"]`), $e = ye(se);
4370
- if ($e.height + $e.top - y.top > y.height) {
4450
+ const se = N.querySelector(`*[data-guide="${S.id}"]`), Te = ye(se);
4451
+ if (Te.height + Te.top - y.top > y.height) {
4371
4452
  se.innerHTML = S.beforeGuide.split("").map((b) => `<span>${b}</span>`).join("");
4372
4453
  const ge = ye(E).top + E.offsetHeight, we = [...Array.from(se.children)].findIndex((b) => ye(b).top > ge);
4373
4454
  _.beforeGuide = S.beforeGuide.substring(0, we), S.beforeGuide = S.beforeGuide.substring(we);
@@ -4377,14 +4458,14 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
4377
4458
  S.beforeGuide = "";
4378
4459
  _.endAnswerLen = K, S.startAnswerLen = K;
4379
4460
  } else
4380
- H != null && H.contains(C.cut) ? (n = Date.now(), C.cut.dataset.cutkey = n, S.beforeArt = "", S.beforeGuide = "", S.startAnswerLen = 1, S.endAnswerLen = -1, S.afterArt = H.innerHTML) : C.targetEl === Q ? (_.endAnswerLen = -1, _.beforeGuide = "", _.afterArt = "", S.beforeArt = "") : (Q == null ? void 0 : Q.previousElementSibling) === C.cut && (_.endAnswerLen = -1, _.beforeArt = "", _.beforeGuide = "", _.afterArt = "");
4381
- B.contains(C.targetEl) && (S.chunk += 1);
4461
+ R != null && R.contains(C.cut) ? (n = Date.now(), C.cut.dataset.cutkey = n, S.beforeArt = "", S.beforeGuide = "", S.startAnswerLen = 1, S.endAnswerLen = -1, S.afterArt = R.innerHTML) : C.targetEl === Q ? (_.endAnswerLen = -1, _.beforeGuide = "", _.afterArt = "", S.beforeArt = "") : (Q == null ? void 0 : Q.previousElementSibling) === C.cut && (_.endAnswerLen = -1, _.beforeArt = "", _.beforeGuide = "", _.afterArt = "");
4462
+ N.contains(C.targetEl) && (S.chunk += 1);
4382
4463
  break;
4383
4464
  }
4384
4465
  }
4385
- B.contains(C.targetEl) && U.push(_), n && (h[h.length - 1].height = ye(C.cut).top - y.top);
4466
+ N.contains(C.targetEl) && U.push(_), n && (p[p.length - 1].height = ye(C.cut).top - y.top);
4386
4467
  }
4387
- de = [S, ...T < w.children.length - 1 ? w.children.slice(T + 1) : []];
4468
+ de = [S, ...$ < w.children.length - 1 ? w.children.slice($ + 1) : []];
4388
4469
  }
4389
4470
  }
4390
4471
  return !0;
@@ -4392,21 +4473,21 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
4392
4473
  U.push(S);
4393
4474
  }), g)
4394
4475
  return;
4395
- h[h.length - 1].data[h[h.length - 1].data.length - 1].children = U, de.length ? (z(), A({ ...w, isHidden: !0, children: de })) : (s([...h]), P++, A());
4476
+ p[p.length - 1].data[p[p.length - 1].data.length - 1].children = U, de.length ? (z(), D({ ...w, isHidden: !0, children: de })) : (s([...p]), P++, D());
4396
4477
  }
4397
4478
  });
4398
4479
  };
4399
- A();
4480
+ D();
4400
4481
  }, Wt = window.CKEDITOR;
4401
4482
  Wt.disableAutoInline = !0;
4402
4483
  const bt = `dx${Math.random().toString(32).substring(2)}`;
4403
- function Ds(e, t) {
4484
+ function As(e, t) {
4404
4485
  return Wt[e](bt, {
4405
4486
  filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
4406
4487
  uploadUrl: `${t}ckeditor/uploadImg`
4407
4488
  });
4408
4489
  }
4409
- const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Ns = ["disabled", "contentEditable", "id"], Os = /* @__PURE__ */ ne({
4490
+ const Ds = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Bs = ["disabled", "contentEditable", "id"], Ns = /* @__PURE__ */ ne({
4410
4491
  __name: "index",
4411
4492
  props: {
4412
4493
  value: {},
@@ -4424,7 +4505,7 @@ const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
4424
4505
  return;
4425
4506
  }
4426
4507
  lt(() => {
4427
- i.value = Ds("inline", l), i.value && i.value.on("instanceReady", (n) => {
4508
+ i.value = As("inline", l), i.value && i.value.on("instanceReady", (n) => {
4428
4509
  i.value.setData(o.value);
4429
4510
  });
4430
4511
  });
@@ -4441,30 +4522,30 @@ const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
4441
4522
  }, c = () => {
4442
4523
  t("focus");
4443
4524
  }, y = (n) => {
4444
- const p = document.createElement("div");
4445
- p.innerHTML = n, [...Array.from(p.querySelectorAll("*"))].forEach((h) => {
4446
- const P = window.getComputedStyle(h);
4447
- (P.display === "none" || P.width === "0px" && P.height === "0px" || P.opacity === "0" || P.visibility === "hidden") && h.remove();
4525
+ const m = document.createElement("div");
4526
+ m.innerHTML = n, [...Array.from(m.querySelectorAll("*"))].forEach((p) => {
4527
+ const P = window.getComputedStyle(p);
4528
+ (P.display === "none" || P.width === "0px" && P.height === "0px" || P.opacity === "0" || P.visibility === "hidden") && p.remove();
4448
4529
  });
4449
- const M = (h = p) => {
4450
- [...Array.from(h.childNodes)].forEach((P) => {
4530
+ const A = (p = m) => {
4531
+ [...Array.from(p.childNodes)].forEach((P) => {
4451
4532
  var z;
4452
4533
  if (P.nodeType === Node.ELEMENT_NODE && P.children.length)
4453
- M(P);
4534
+ A(P);
4454
4535
  else if (P.nodeType === Node.TEXT_NODE) {
4455
4536
  const j = document.createElement("span");
4456
- j.textContent = P.textContent, window.REGULAR.underscore.test(P.textContent || "") && (window.getComputedStyle(P.parentNode).wordBreak !== "break-all" || !(P.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (P.textContent || "").length > 5 && (j.innerHTML = (P.textContent || "").replace(window.REGULAR.underscore, (A) => A.length > 5 ? `<span style="word-break: break-all">${A}</span>` : A)), (z = P.parentElement) == null || z.replaceChild(j, P);
4537
+ j.textContent = P.textContent, window.REGULAR.underscore.test(P.textContent || "") && (window.getComputedStyle(P.parentNode).wordBreak !== "break-all" || !(P.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (P.textContent || "").length > 5 && (j.innerHTML = (P.textContent || "").replace(window.REGULAR.underscore, (D) => D.length > 5 ? `<span style="word-break: break-all">${D}</span>` : D)), (z = P.parentElement) == null || z.replaceChild(j, P);
4457
4538
  }
4458
4539
  });
4459
4540
  };
4460
- return M(), p.innerHTML;
4541
+ return A(), m.innerHTML;
4461
4542
  };
4462
- return (n, p) => (r(), u("div", Bs, [
4543
+ return (n, m) => (r(), h("div", Ds, [
4463
4544
  o.readonly ? (r(), ee(Oe, {
4464
4545
  key: 1,
4465
4546
  data: o.value,
4466
4547
  class: "raw_view"
4467
- }, null, 8, ["data"])) : (r(), u("div", {
4548
+ }, null, 8, ["data"])) : (r(), h("div", {
4468
4549
  key: 0,
4469
4550
  class: "overflow-auto outline-none whitespace-normal editor_view",
4470
4551
  disabled: o.readonly,
@@ -4472,29 +4553,29 @@ const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
4472
4553
  id: L(bt),
4473
4554
  onFocus: c,
4474
4555
  onBlur: s
4475
- }, null, 40, Ns))
4556
+ }, null, 40, Bs))
4476
4557
  ]));
4477
4558
  }
4478
4559
  });
4479
- const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4560
+ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4480
4561
  mounted: (e, t) => {
4481
4562
  let o = null, l = null, i = {}, a = !1, s = e.offsetParent, c = {}, y = {}, n = {};
4482
- const p = e.querySelector(".move-target") || e;
4483
- p.style.cursor = "move", p.addEventListener("mousedown", (M) => {
4563
+ const m = e.querySelector(".move-target") || e;
4564
+ m.style.cursor = "move", m.addEventListener("mousedown", (A) => {
4484
4565
  a = !!e.dataset.safe, s = e.offsetParent;
4485
- const h = window.getComputedStyle(e);
4486
- i = { x: M.clientX, y: M.clientY }, c = { x: parseInt(h.left), y: parseInt(h.top) }, document.addEventListener("mousemove", o), document.addEventListener("mouseup", l), document.addEventListener("mouseleave", l);
4566
+ const p = window.getComputedStyle(e);
4567
+ i = { x: A.clientX, y: A.clientY }, c = { x: parseInt(p.left), y: parseInt(p.top) }, document.addEventListener("mousemove", o), document.addEventListener("mouseup", l), document.addEventListener("mouseleave", l);
4487
4568
  }), l = () => {
4488
4569
  t.value && typeof t.value == "function" && t.value(n), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", l), document.removeEventListener("mouseleave", l);
4489
- }, o = (M) => {
4570
+ }, o = (A) => {
4490
4571
  if (e.getAttribute("disabled") === "true")
4491
4572
  return;
4492
- M.stopPropagation(), M.preventDefault(), y = { x: M.clientX, y: M.clientY };
4493
- const h = a ? Math.min(Math.max(y.x - i.x + c.x, 0), s.offsetWidth - e.offsetWidth) : y.x - i.x + c.x, P = a ? Math.min(Math.max(y.y - i.y + c.y, 0), s.offsetHeight - e.offsetHeight) : y.y - i.y + c.y;
4494
- e.style.left = `${h}px`, e.style.top = `${P}px`, n = { x: h, y: P };
4573
+ A.stopPropagation(), A.preventDefault(), y = { x: A.clientX, y: A.clientY };
4574
+ const p = a ? Math.min(Math.max(y.x - i.x + c.x, 0), s.offsetWidth - e.offsetWidth) : y.x - i.x + c.x, P = a ? Math.min(Math.max(y.y - i.y + c.y, 0), s.offsetHeight - e.offsetHeight) : y.y - i.y + c.y;
4575
+ e.style.left = `${p}px`, e.style.top = `${P}px`, n = { x: p, y: P };
4495
4576
  };
4496
4577
  }
4497
- }, Hs = ["onMousedown", "data-block"], Ws = ["src"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Qs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, qs = ["onMousedown"], Ys = ["onMousedown"], Ks = ["disabled", "onMousedown", "data-block"], Us = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Vs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, js = ["onMousedown"], Xs = /* @__PURE__ */ ne({
4578
+ }, Hs = ["onMousedown", "data-block"], Rs = ["src"], Ws = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Gs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Qs = ["onMousedown"], qs = ["onMousedown"], Ys = ["disabled", "onMousedown", "data-block"], Ks = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Us = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Vs = ["onMousedown"], js = /* @__PURE__ */ ne({
4498
4579
  __name: "absItem",
4499
4580
  props: {
4500
4581
  imgData: {},
@@ -4506,7 +4587,7 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4506
4587
  },
4507
4588
  emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
4508
4589
  setup(e, { emit: t }) {
4509
- const o = e, l = Rs, i = [
4590
+ const o = e, l = zs, i = [
4510
4591
  { left: "0", top: "0", cursor: "nwse-resize" },
4511
4592
  { left: "50%", top: "0", cursor: "ns-resize" },
4512
4593
  { left: "100%", top: "0", cursor: "nesw-resize" },
@@ -4517,13 +4598,13 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4517
4598
  { left: "100%", top: "100%", cursor: "nwse-resize" }
4518
4599
  ], a = V({}), s = V(), c = V(0), y = V(0), n = V();
4519
4600
  V();
4520
- const p = V({}), M = V(!1), h = V(), P = V(), z = V(), j = W(() => o.imgData.map(($) => ({
4521
- ...$,
4522
- top: $.top - Math.floor($.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
4523
- }))), X = W(() => o.txtData.map(($) => ({
4524
- ...$,
4525
- top: $.top - Math.floor($.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
4526
- }))), A = W(() => h.value ? h.value.split("-")[0] === "img" ? j.value.find((v) => v.key === h.value) : X.value.find((v) => v.key === h.value) : null), w = W(() => A.value ? { [A.value.key]: { ...s.value } } : {});
4601
+ const m = V({}), A = V(!1), p = V(), P = V(), z = V(), j = W(() => o.imgData.map((T) => ({
4602
+ ...T,
4603
+ top: T.top - Math.floor(T.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
4604
+ }))), J = W(() => o.txtData.map((T) => ({
4605
+ ...T,
4606
+ top: T.top - Math.floor(T.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
4607
+ }))), D = W(() => p.value ? p.value.split("-")[0] === "img" ? j.value.find((v) => v.key === p.value) : J.value.find((v) => v.key === p.value) : null), w = W(() => D.value ? { [D.value.key]: { ...s.value } } : {});
4527
4608
  De(() => o.activeAbsItem, () => {
4528
4609
  o.activeAbsItem && Y({ ...o.activeAbsItem });
4529
4610
  }), De(() => o.target, () => {
@@ -4531,52 +4612,52 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4531
4612
  }), Ke(() => {
4532
4613
  n.value = document.body.querySelector(".__layout__");
4533
4614
  });
4534
- const G = ($) => {
4615
+ const G = (T) => {
4535
4616
  var v;
4536
- console.log($), s.value = { ...A.value, left: Math.max($.x, 0), top: Math.max($.y, 0) }, (v = A.value) != null && v.key && (A.value.key.split("-")[0] === "img" ? t("changeAbsImgItem", { ...A.value, left: Math.max($.x, 0), top: Math.max($.y, 0) }) : t("changeAbsTxtItem", { ...A.value, left: Math.max($.x, 0), top: Math.max($.y, 0) }));
4537
- }, ie = ($) => {
4538
- M.value = $;
4617
+ s.value = { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }, (v = D.value) != null && v.key && (D.value.key.split("-")[0] === "img" ? t("changeAbsImgItem", { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }) : t("changeAbsTxtItem", { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }));
4618
+ }, ie = (T) => {
4619
+ A.value = T;
4539
4620
  }, C = () => {
4540
- const $ = A.value, v = $.left + $.width / 2, _ = $.top + $.height / 2, R = n.value.getBoundingClientRect() || {};
4541
- p.value = { x: v + R.left, y: _ + R.top }, n.value.addEventListener("mousemove", U), n.value.addEventListener("mouseleave", de), n.value.addEventListener("mouseup", de);
4542
- }, U = ($) => {
4543
- $.stopPropagation(), $.preventDefault();
4544
- const v = $.clientX - p.value.x, _ = p.value.y - $.clientY, R = Math.atan2(_, v) / (Math.PI / 180);
4545
- s.value = { ...A.value, rotate: -parseInt(R.toString()) };
4546
- }, de = ($) => {
4547
- $.stopPropagation(), $.preventDefault(), t("changeAbsImgItem", s.value), n.value.removeEventListener("mousemove", U), n.value.removeEventListener("mouseleave", de), n.value.removeEventListener("mouseup", de);
4548
- }, g = ($, v) => {
4621
+ const T = D.value, v = T.left + T.width / 2, _ = T.top + T.height / 2, H = n.value.getBoundingClientRect() || {};
4622
+ m.value = { x: v + H.left, y: _ + H.top }, n.value.addEventListener("mousemove", U), n.value.addEventListener("mouseleave", de), n.value.addEventListener("mouseup", de);
4623
+ }, U = (T) => {
4624
+ T.stopPropagation(), T.preventDefault();
4625
+ const v = T.clientX - m.value.x, _ = m.value.y - T.clientY, H = Math.atan2(_, v) / (Math.PI / 180);
4626
+ s.value = { ...D.value, rotate: -parseInt(H.toString()) };
4627
+ }, de = (T) => {
4628
+ T.stopPropagation(), T.preventDefault(), t("changeAbsImgItem", s.value), n.value.removeEventListener("mousemove", U), n.value.removeEventListener("mouseleave", de), n.value.removeEventListener("mouseup", de);
4629
+ }, g = (T, v) => {
4549
4630
  var _;
4550
- $.stopPropagation(), c.value = v, a.value = { x: $.clientX, y: $.clientY, ...A.value }, ((_ = A.value) == null ? void 0 : _.key.split("-")[0]) === "img" ? n.value.addEventListener("mousemove", S) : n.value.addEventListener("mousemove", T), n.value.addEventListener("mouseleave", B), n.value.addEventListener("mouseup", B);
4551
- }, S = ($) => {
4552
- const v = { x: $.clientX - a.value.x, y: $.clientY - a.value.y }, _ = { ...A.value }, R = v.x > v.y ? "width" : "height";
4631
+ T.stopPropagation(), c.value = v, a.value = { x: T.clientX, y: T.clientY, ...D.value }, ((_ = D.value) == null ? void 0 : _.key.split("-")[0]) === "img" ? n.value.addEventListener("mousemove", S) : n.value.addEventListener("mousemove", $), n.value.addEventListener("mouseleave", N), n.value.addEventListener("mouseup", N);
4632
+ }, S = (T) => {
4633
+ const v = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, _ = { ...D.value }, H = v.x > v.y ? "width" : "height";
4553
4634
  [
4554
4635
  // 0
4555
4636
  () => {
4556
4637
  const E = {
4557
4638
  width: a.value.width - v.x,
4558
4639
  height: a.value.width * (1 - v.y / a.value.height)
4559
- }[R], H = {
4640
+ }[H], R = {
4560
4641
  width: a.value.height * (1 - v.x / a.value.width),
4561
4642
  height: a.value.height - v.y
4562
- }[R];
4643
+ }[H];
4563
4644
  s.value = {
4564
4645
  ..._,
4565
4646
  width: E,
4566
- height: H,
4647
+ height: R,
4567
4648
  left: a.value.left - (E - a.value.width),
4568
- top: a.value.top - (H - a.value.height)
4649
+ top: a.value.top - (R - a.value.height)
4569
4650
  };
4570
4651
  },
4571
4652
  // 1
4572
4653
  () => {
4573
- const E = a.value.width * (1 - v.y / a.value.height), H = a.value.height - v.y;
4654
+ const E = a.value.width * (1 - v.y / a.value.height), R = a.value.height - v.y;
4574
4655
  s.value = {
4575
4656
  ..._,
4576
4657
  width: E,
4577
- height: H,
4658
+ height: R,
4578
4659
  left: a.value.left - (E - a.value.width) / 2,
4579
- top: a.value.top - (H - a.value.height)
4660
+ top: a.value.top - (R - a.value.height)
4580
4661
  };
4581
4662
  },
4582
4663
  // 2
@@ -4584,36 +4665,36 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4584
4665
  const E = {
4585
4666
  width: a.value.height * (1 + v.x / a.value.width),
4586
4667
  height: a.value.height - v.y
4587
- }[R];
4668
+ }[H];
4588
4669
  s.value = {
4589
4670
  ..._,
4590
4671
  width: {
4591
4672
  width: a.value.width + v.x,
4592
4673
  height: a.value.width * (1 - v.y / a.value.height)
4593
- }[R],
4674
+ }[H],
4594
4675
  height: E,
4595
4676
  top: a.value.top - (E - a.value.height)
4596
4677
  };
4597
4678
  },
4598
4679
  // 3
4599
4680
  () => {
4600
- const E = a.value.width - v.x, H = a.value.height * (1 - v.x / a.value.width);
4681
+ const E = a.value.width - v.x, R = a.value.height * (1 - v.x / a.value.width);
4601
4682
  s.value = {
4602
4683
  ..._,
4603
4684
  width: E,
4604
- height: H,
4685
+ height: R,
4605
4686
  left: a.value.left - (E - a.value.width),
4606
- top: a.value.top - (H - a.value.height) / 2
4687
+ top: a.value.top - (R - a.value.height) / 2
4607
4688
  };
4608
4689
  },
4609
4690
  // 4
4610
4691
  () => {
4611
- const E = a.value.width + v.x, H = a.value.height * (1 + v.x / a.value.width);
4692
+ const E = a.value.width + v.x, R = a.value.height * (1 + v.x / a.value.width);
4612
4693
  s.value = {
4613
4694
  ..._,
4614
4695
  width: E,
4615
- height: H,
4616
- top: a.value.top - (H - a.value.height) / 2
4696
+ height: R,
4697
+ top: a.value.top - (R - a.value.height) / 2
4617
4698
  };
4618
4699
  },
4619
4700
  // 5
@@ -4621,24 +4702,24 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4621
4702
  const E = {
4622
4703
  width: a.value.width - v.x,
4623
4704
  height: a.value.width * (1 + v.y / a.value.height)
4624
- }[R], H = {
4705
+ }[H], R = {
4625
4706
  width: a.value.height * (1 - v.x / a.value.width),
4626
4707
  height: a.value.height + v.y
4627
- }[R];
4708
+ }[H];
4628
4709
  s.value = {
4629
4710
  ..._,
4630
4711
  width: E,
4631
- height: H,
4712
+ height: R,
4632
4713
  left: a.value.left - (E - a.value.width)
4633
4714
  };
4634
4715
  },
4635
4716
  // 6
4636
4717
  () => {
4637
- const E = a.value.width * (1 + v.y / a.value.height), H = a.value.height + v.y;
4718
+ const E = a.value.width * (1 + v.y / a.value.height), R = a.value.height + v.y;
4638
4719
  s.value = {
4639
4720
  ..._,
4640
4721
  width: E,
4641
- height: H,
4722
+ height: R,
4642
4723
  left: a.value.left - (E - a.value.width) / 2
4643
4724
  };
4644
4725
  },
@@ -4647,19 +4728,19 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4647
4728
  const E = {
4648
4729
  width: a.value.width + v.x,
4649
4730
  height: a.value.width * (1 + v.y / a.value.height)
4650
- }[R], H = {
4731
+ }[H], R = {
4651
4732
  width: a.value.height * (1 + v.x / a.value.width),
4652
4733
  height: a.value.height + v.y
4653
- }[R];
4734
+ }[H];
4654
4735
  s.value = {
4655
4736
  ..._,
4656
4737
  width: E,
4657
- height: H
4738
+ height: R
4658
4739
  };
4659
4740
  }
4660
4741
  ][c.value]();
4661
- }, T = ($) => {
4662
- const v = { x: $.clientX - a.value.x, y: $.clientY - a.value.y }, _ = { ...A.value }, R = [
4742
+ }, $ = (T) => {
4743
+ const v = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, _ = { ...D.value }, H = [
4663
4744
  {
4664
4745
  ..._,
4665
4746
  width: a.value.width - v.x,
@@ -4703,41 +4784,41 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4703
4784
  height: a.value.height + v.y
4704
4785
  }
4705
4786
  ];
4706
- s.value = R[c.value];
4707
- }, B = () => {
4708
- var $;
4709
- n.value.removeEventListener("mousemove", S), n.value.removeEventListener("mousemove", T), n.value.removeEventListener("mouseleave", B), n.value.removeEventListener("mouseup", B), (($ = A.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4710
- }, ue = ($) => {
4711
- if (!$ || $ === A.value.content) {
4787
+ s.value = H[c.value];
4788
+ }, N = () => {
4789
+ var T;
4790
+ n.value.removeEventListener("mousemove", S), n.value.removeEventListener("mousemove", $), n.value.removeEventListener("mouseleave", N), n.value.removeEventListener("mouseup", N), ((T = D.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4791
+ }, ue = (T) => {
4792
+ if (!T || T === D.value.content) {
4712
4793
  y.value++;
4713
4794
  return;
4714
4795
  }
4715
- t("changeAbsTxtItem", { ...A.value, content: $ });
4716
- }, Y = ($, v) => {
4717
- var R, Q;
4796
+ t("changeAbsTxtItem", { ...D.value, content: T });
4797
+ }, Y = (T, v) => {
4798
+ var H, Q;
4718
4799
  const _ = document.body.querySelector(`.cke_editor_${bt}`);
4719
- !$ && ((Q = (R = v == null ? void 0 : v.target) == null ? void 0 : R.dataset) != null && Q.safe || [...P.value || [], ...z.value || []].find((E) => E.contains(v == null ? void 0 : v.target)) || _ && window.getComputedStyle(_).display !== "none") || (h.value = $ == null ? void 0 : $.key, $ && (s.value = { ...$ }));
4800
+ !T && ((Q = (H = v == null ? void 0 : v.target) == null ? void 0 : H.dataset) != null && Q.safe || [...P.value || [], ...z.value || []].find((E) => E.contains(v == null ? void 0 : v.target)) || _ && window.getComputedStyle(_).display !== "none") || (p.value = T == null ? void 0 : T.key, T && (s.value = { ...T }));
4720
4801
  };
4721
- return ($, v) => (r(), u(N, null, [
4722
- (r(!0), u(N, null, le(j.value, (_) => {
4723
- var R, Q, E, H, K, se, $e;
4724
- return Ct((r(), u("div", {
4802
+ return (T, v) => (r(), h(O, null, [
4803
+ (r(!0), h(O, null, le(j.value, (_) => {
4804
+ var H, Q, E, R, K, se, Te;
4805
+ return Ct((r(), h("div", {
4725
4806
  key: _.id,
4726
4807
  ref_for: !0,
4727
4808
  ref_key: "imgViewList",
4728
4809
  ref: P,
4729
4810
  "data-safe": "true",
4730
- class: oe(["absolute", ((R = A.value) == null ? void 0 : R.key) === _.key ? "z-8" : "z-7"]),
4731
- style: Z({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((H = w.value[_.key]) == null ? void 0 : H.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px", transform: `rotate(${((se = w.value[_.key]) == null ? void 0 : se.rotate) || _.rotate}deg)` }),
4732
- onClick: v[0] || (v[0] = Ee((ge) => $.void, ["stop"])),
4811
+ class: oe(["absolute", ((H = D.value) == null ? void 0 : H.key) === _.key ? "z-8" : "z-7"]),
4812
+ style: X({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((R = w.value[_.key]) == null ? void 0 : R.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px", transform: `rotate(${((se = w.value[_.key]) == null ? void 0 : se.rotate) || _.rotate}deg)` }),
4813
+ onClick: v[0] || (v[0] = Ee((ge) => T.void, ["stop"])),
4733
4814
  onMousedown: Ee((ge) => Y(_), ["stop"]),
4734
4815
  "data-block": L(Be)
4735
4816
  }, [
4736
4817
  k("img", {
4737
4818
  src: _.url
4738
- }, null, 8, Ws),
4739
- (($e = A.value) == null ? void 0 : $e.key) === _.key ? (r(), u(N, { key: 0 }, [
4740
- k("span", Gs, [
4819
+ }, null, 8, Rs),
4820
+ ((Te = D.value) == null ? void 0 : Te.key) === _.key ? (r(), h(O, { key: 0 }, [
4821
+ k("span", Ws, [
4741
4822
  ae(ve, {
4742
4823
  name: "close",
4743
4824
  width: 2,
@@ -4745,13 +4826,13 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4745
4826
  onClick: (ge) => t("delAbsImgItem", _)
4746
4827
  }, null, 8, ["onClick"])
4747
4828
  ]),
4748
- k("div", Qs, [
4749
- (r(), u(N, null, le(8, (ge, we) => k("div", {
4829
+ k("div", Gs, [
4830
+ (r(), h(O, null, le(8, (ge, we) => k("div", {
4750
4831
  key: ge,
4751
4832
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4752
- style: Z({ ...i[we], transform: "translate(-50%, -50%)" }),
4833
+ style: X({ ...i[we], transform: "translate(-50%, -50%)" }),
4753
4834
  onMousedown: Ee((b) => g(b, we), ["stop"])
4754
- }, null, 44, qs)), 64))
4835
+ }, null, 44, Qs)), 64))
4755
4836
  ]),
4756
4837
  k("span", {
4757
4838
  class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
@@ -4761,39 +4842,39 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4761
4842
  name: "reset",
4762
4843
  width: 2
4763
4844
  })
4764
- ], 40, Ys)
4765
- ], 64)) : D("", !0)
4845
+ ], 40, qs)
4846
+ ], 64)) : B("", !0)
4766
4847
  ], 46, Hs)), [
4767
4848
  [L(l), G]
4768
4849
  ]);
4769
4850
  }), 128)),
4770
- (r(!0), u(N, null, le(X.value, (_) => {
4771
- var R, Q, E, H, K, se, $e;
4772
- return Ct((r(), u("div", {
4851
+ (r(!0), h(O, null, le(J.value, (_) => {
4852
+ var H, Q, E, R, K, se, Te;
4853
+ return Ct((r(), h("div", {
4773
4854
  key: _.id,
4774
4855
  ref_for: !0,
4775
4856
  ref_key: "txtViewList",
4776
4857
  ref: z,
4777
- disabled: M.value,
4858
+ disabled: A.value,
4778
4859
  "data-safe": "true",
4779
- class: oe(["absolute", ((R = A.value) == null ? void 0 : R.key) === _.key ? "z-8 bg-white" : "z-7"]),
4780
- style: Z({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((H = w.value[_.key]) == null ? void 0 : H.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px" }),
4781
- onClick: v[3] || (v[3] = Ee((ge) => $.void, ["stop"])),
4860
+ class: oe(["absolute", ((H = D.value) == null ? void 0 : H.key) === _.key ? "z-8 bg-white" : "z-7"]),
4861
+ style: X({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((R = w.value[_.key]) == null ? void 0 : R.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px" }),
4862
+ onClick: v[3] || (v[3] = Ee((ge) => T.void, ["stop"])),
4782
4863
  onMousedown: Ee((ge) => Y(_), ["stop"]),
4783
4864
  "data-block": L(Be)
4784
4865
  }, [
4785
- (r(), ee(zs, {
4866
+ (r(), ee(Os, {
4786
4867
  key: y.value,
4787
4868
  class: "border-0 relative z-4",
4788
- readonly: ((se = A.value) == null ? void 0 : se.key) !== _.key,
4869
+ readonly: ((se = D.value) == null ? void 0 : se.key) !== _.key,
4789
4870
  value: _.content,
4790
4871
  name: _.id.toString(),
4791
4872
  onChange: ue,
4792
4873
  onFocus: v[1] || (v[1] = (ge) => ie(!0)),
4793
4874
  onBlur: v[2] || (v[2] = (ge) => ie(!1))
4794
4875
  }, null, 8, ["readonly", "value", "name"])),
4795
- (($e = A.value) == null ? void 0 : $e.key) === _.key ? (r(), u(N, { key: 0 }, [
4796
- k("span", Us, [
4876
+ ((Te = D.value) == null ? void 0 : Te.key) === _.key ? (r(), h(O, { key: 0 }, [
4877
+ k("span", Ks, [
4797
4878
  ae(ve, {
4798
4879
  name: "close",
4799
4880
  width: 2,
@@ -4801,28 +4882,28 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4801
4882
  onClick: (ge) => t("delAbsTxtItem", _)
4802
4883
  }, null, 8, ["onClick"])
4803
4884
  ]),
4804
- k("div", Vs, [
4805
- (r(), u(N, null, le(8, (ge, we) => k("div", {
4885
+ k("div", Us, [
4886
+ (r(), h(O, null, le(8, (ge, we) => k("div", {
4806
4887
  key: ge,
4807
4888
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4808
- style: Z({ ...i[we], transform: "translate(-50%, -50%)" }),
4889
+ style: X({ ...i[we], transform: "translate(-50%, -50%)" }),
4809
4890
  onMousedown: (b) => g(b, we)
4810
- }, null, 44, js)), 64))
4891
+ }, null, 44, Vs)), 64))
4811
4892
  ])
4812
- ], 64)) : D("", !0)
4813
- ], 46, Ks)), [
4893
+ ], 64)) : B("", !0)
4894
+ ], 46, Ys)), [
4814
4895
  [L(l), G]
4815
4896
  ]);
4816
4897
  }), 128))
4817
4898
  ], 64));
4818
4899
  }
4819
4900
  });
4820
- const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["viewBox"], ei = {
4901
+ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["viewBox"], Zs = {
4821
4902
  x: "0",
4822
4903
  y: "0",
4823
4904
  width: "100%",
4824
4905
  height: "100%"
4825
- }, ti = ["onClick", "onDblclick"], oi = ["data-block"], ai = /* @__PURE__ */ ne({
4906
+ }, ei = ["onClick", "onDblclick"], ti = ["data-block"], oi = /* @__PURE__ */ ne({
4826
4907
  __name: "index",
4827
4908
  props: {
4828
4909
  layout: {},
@@ -4841,32 +4922,32 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
4841
4922
  setup(e, { emit: t }) {
4842
4923
  const o = e;
4843
4924
  Yt("ckeditorOrigin", o.ckeditorOrigin);
4844
- const l = V([]), i = V([]), a = V(2), s = V(0), c = V(0), y = V(), n = V([]), p = V([]), M = V([]), h = V([]), P = W(() => o.data.map((b) => ({
4925
+ const l = V([]), i = V([]), a = V(2), s = V(0), c = V(0), y = V(), n = V([]), m = V([]), A = V([]), p = V([]), P = W(() => o.data.map((b) => ({
4845
4926
  ...b,
4846
- __tag__: $t(),
4927
+ __tag__: Tt(),
4847
4928
  rawChildren: b.children,
4848
- children: b.children.map((F) => ({ ...F, ...$(F), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: $t() }))
4929
+ children: b.children.map((F) => ({ ...F, ...T(F), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Tt() }))
4849
4930
  }))), z = W(() => {
4850
4931
  if (!P.value.length)
4851
4932
  return;
4852
4933
  const b = P.value[P.value.length - 1], F = b.rawChildren[b.rawChildren.length - 1];
4853
- return ie.value && [m.slove].includes(F == null ? void 0 : F.problemType) && F.id;
4934
+ return ie.value && [u.slove].includes(F == null ? void 0 : F.problemType) && F.id;
4854
4935
  }), j = W(() => {
4855
4936
  var b;
4856
4937
  return o.layout.bindFlag && !!((b = Ge.find((F) => F.code === o.layout.paper)) != null && b.isMultCol);
4857
- }), X = W(() => o.isFinal ? 0 : 10), A = W(() => o.isFinal ? 10 : 0), w = W(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || a.value || 1), G = W(() => Math.ceil(w.value / 2) * 2), ie = W(() => ["sheet", "sheetCard"].includes(o.layout.mode)), C = W(() => ie.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), U = W(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || yt[o.layout.mode][o.layout.paper]), de = W(() => x[o.layout.paper].width - U.value.left - U.value.right), g = W(() => x[o.layout.paper].height - U.value.top - U.value.bottom), S = W(() => (de.value - (c.value ? c.value + H(0) : 0) + H(0)) / o.layout.column - H(0)), T = W(() => ({
4938
+ }), J = W(() => o.isFinal ? 0 : 10), D = W(() => o.isFinal ? 10 : 0), w = W(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || a.value || 1), G = W(() => Math.ceil(w.value / 2) * 2), ie = W(() => ["sheet", "sheetCard"].includes(o.layout.mode)), C = W(() => ie.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), U = W(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || yt[o.layout.mode][o.layout.paper]), de = W(() => x[o.layout.paper].width - U.value.left - U.value.right), g = W(() => x[o.layout.paper].height - U.value.top - U.value.bottom), S = W(() => (de.value - (c.value ? c.value + R(0) : 0) + R(0)) / o.layout.column - R(0)), $ = W(() => ({
4858
4939
  width: `${x[o.layout.paper].width}px`,
4859
- height: `${(x[o.layout.paper].height + X.value) * G.value - X.value}px`
4860
- })), B = W(() => ({
4940
+ height: `${(x[o.layout.paper].height + J.value) * G.value - J.value}px`
4941
+ })), N = W(() => ({
4861
4942
  width: `${x[o.layout.paper].width}px`,
4862
4943
  height: `${x[o.layout.paper].height}px`,
4863
4944
  padding: `${U.value.top}px ${U.value.right}px ${U.value.bottom}px ${U.value.left}px`,
4864
- marginBottom: `${X.value}px`
4945
+ marginBottom: `${J.value}px`
4865
4946
  })), ue = W(() => {
4866
4947
  var F;
4867
4948
  const b = (F = Ge.find((_e) => _e.code === o.layout.paper)) == null ? void 0 : F.isFullTitle;
4868
4949
  return {
4869
- left: `${U.value.left + (c.value ? c.value + H(0) : 0)}px`,
4950
+ left: `${U.value.left + (c.value ? c.value + R(0) : 0)}px`,
4870
4951
  top: `${U.value.top}px`,
4871
4952
  width: b ? `${de.value}px` : `${S.value}px`
4872
4953
  };
@@ -4878,51 +4959,51 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
4878
4959
  }, { immediate: !0 }), De(() => j.value, () => {
4879
4960
  c.value = j.value ? 100 : 0;
4880
4961
  }, { immediate: !0 });
4881
- const $ = (b) => {
4962
+ const T = (b) => {
4882
4963
  let F = { ...b };
4883
- if ([m.slove].includes(F.problemType) && ie.value) {
4964
+ if ([u.slove].includes(F.problemType) && ie.value) {
4884
4965
  const _e = document.createElement("div");
4885
4966
  _e.innerHTML = F.answerArea;
4886
- const J = _e.querySelector(Bt.sub);
4887
- if (J) {
4967
+ const Z = _e.querySelector(Bt.sub);
4968
+ if (Z) {
4888
4969
  const re = document.createElement("div");
4889
- re.innerHTML = rs(F.sub, F.style[d.public.scoreShowFlag] === f.bracket_none ? void 0 : [F.score].flat(2).reduce((Ie, Ae) => Ie + Ae, 0), F.style[d.public.scoreShowFlag]), J.replaceWith(re.children[0]), F.answerArea = _e.innerHTML, F.customSub = !0, _e.remove(), re.remove();
4970
+ re.innerHTML = is(F.sub, F.style[d.public.scoreShowFlag] === f.bracket_none ? void 0 : [F.score].flat(2).reduce((Ie, Ae) => Ie + Ae, 0), F.style[d.public.scoreShowFlag]), Z.replaceWith(re.children[0]), F.answerArea = _e.innerHTML, F.customSub = !0, _e.remove(), re.remove();
4890
4971
  }
4891
4972
  }
4892
4973
  return F;
4893
- }, v = (b) => b % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, _ = (b, F) => Math.floor(F / 2) * (o.layout.column + o.layout.backColumn) + F % 2 * o.layout.column + b, R = (b) => {
4974
+ }, v = (b) => b % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, _ = (b, F) => Math.floor(F / 2) * (o.layout.column + o.layout.backColumn) + F % 2 * o.layout.column + b, H = (b) => {
4894
4975
  const F = b % (o.layout.column + o.layout.backColumn);
4895
4976
  return F >= o.layout.column ? F - o.layout.column : F;
4896
4977
  }, Q = (b, F) => {
4897
4978
  b ? n.value[F] = b : n.value.splice(F, 1);
4898
4979
  }, E = (b, F) => {
4899
- b ? p.value[F] = b : p.value.splice(F, 1);
4900
- }, H = (b) => Mt[o.layout.mode][o.layout.paper][v(b)] || 0, K = (b, F = !1) => (de.value - (c.value ? c.value + H(b) : 0) + H(b)) / v(b) - H(b) - C.value.left - C.value.right + (F ? C.value.left + C.value.right : 0), se = (b, F) => {
4901
- var J, re;
4902
- const _e = b % (o.layout.column + o.layout.backColumn) ? 0 : ((J = M.value[Math.min(F, 1)]) == null ? void 0 : J.offsetHeight) || 0;
4980
+ b ? m.value[F] = b : m.value.splice(F, 1);
4981
+ }, R = (b) => Mt[o.layout.mode][o.layout.paper][v(b)] || 0, K = (b, F = !1) => (de.value - (c.value ? c.value + R(b) : 0) + R(b)) / v(b) - R(b) - C.value.left - C.value.right + (F ? C.value.left + C.value.right : 0), se = (b, F) => {
4982
+ var Z, re;
4983
+ const _e = b % (o.layout.column + o.layout.backColumn) ? 0 : ((Z = A.value[Math.min(F, 1)]) == null ? void 0 : Z.offsetHeight) || 0;
4903
4984
  return {
4904
- left: `${U.value.left + (F % 2 ? 0 : c.value ? c.value + H(b) : 0) + C.value.left + R(b) * (K(b) + H(b) + C.value.left + C.value.right)}px`,
4985
+ left: `${U.value.left + (F % 2 ? 0 : c.value ? c.value + R(b) : 0) + C.value.left + H(b) * (K(b) + R(b) + C.value.left + C.value.right)}px`,
4905
4986
  top: `${_e + U.value.top + (!F && !b ? 0 : C.value.top)}px`,
4906
4987
  width: `${K(b)}px`,
4907
4988
  height: `${g.value - _e - (!F && !b ? 0 : C.value.top) - C.value.bottom}px`,
4908
4989
  contentHeight: `${(re = l.value[b]) == null ? void 0 : re.height}px`
4909
4990
  };
4910
- }, $e = (b, F = !1) => {
4991
+ }, Te = (b, F = !1) => {
4911
4992
  i.value = b.map((_e) => ({ ..._e })), F && (l.value = [...b], s.value += 1, lt(() => {
4912
- a.value = Math.ceil(l.value.length / o.layout.column), i.value = [], p.value.forEach((_e, J) => {
4993
+ a.value = Math.ceil(l.value.length / o.layout.column), i.value = [], m.value.forEach((_e, Z) => {
4913
4994
  var re, Ie;
4914
- !_e || !_e.col || ((re = l.value[J]) != null && re.top ? _e.col.style.marginTop = `${(Ie = l.value[J]) == null ? void 0 : Ie.top}px` : _e.col.style.marginTop = "");
4995
+ !_e || !_e.col || ((re = l.value[Z]) != null && re.top ? _e.col.style.marginTop = `${(Ie = l.value[Z]) == null ? void 0 : Ie.top}px` : _e.col.style.marginTop = "");
4915
4996
  }), o.isFinal && setTimeout(() => {
4916
- const _e = ks({
4997
+ const _e = ws({
4917
4998
  config: {
4918
4999
  ...o.info,
4919
5000
  layout: o.layout,
4920
5001
  pageTotal: w.value,
4921
5002
  bindWidth: c.value,
4922
- pageMargin: X.value,
5003
+ pageMargin: J.value,
4923
5004
  pageDom: n.value.slice(0, w.value),
4924
- colDom: p.value.map((J) => J.col),
4925
- colViewDom: p.value.map((J) => J.colView)
5005
+ colDom: m.value.map((Z) => Z.col),
5006
+ colViewDom: m.value.map((Z) => Z.colView)
4926
5007
  },
4927
5008
  data: l.value
4928
5009
  });
@@ -4930,54 +5011,54 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
4930
5011
  }, 500);
4931
5012
  }));
4932
5013
  }, ge = () => {
4933
- As({
5014
+ Ms({
4934
5015
  el: y.value,
4935
5016
  data: P.value,
4936
5017
  column: o.layout.column,
4937
5018
  backColumn: o.layout.backColumn || o.layout.column,
4938
5019
  getColSize: se,
4939
- change: $e
5020
+ change: Te
4940
5021
  });
4941
- }, we = (b = { type: O.page, value: {} }) => {
5022
+ }, we = (b = { type: M.page, value: {} }) => {
4942
5023
  t("toggleActive", b);
4943
5024
  };
4944
5025
  return (b, F) => {
4945
5026
  var _e;
4946
- return r(), u(N, null, [
4947
- b.readonly ? D("", !0) : (r(), ee(Es, {
5027
+ return r(), h(O, null, [
5028
+ b.readonly ? B("", !0) : (r(), ee(Fs, {
4948
5029
  key: 0,
4949
5030
  ColList: l.value,
4950
- ColDom: p.value.map((J) => J.col),
5031
+ ColDom: m.value.map((Z) => Z.col),
4951
5032
  ImgData: b.imgData,
4952
5033
  TxtData: b.txtData,
4953
- onDelAbsImgItem: F[0] || (F[0] = (J) => t("delAbsImgItem", J)),
4954
- onDelAbsTxtItem: F[1] || (F[1] = (J) => t("delAbsTxtItem", J)),
4955
- onChangeLayoutStatus: F[2] || (F[2] = (J) => t("changeLayoutStatus", J))
5034
+ onDelAbsImgItem: F[0] || (F[0] = (Z) => t("delAbsImgItem", Z)),
5035
+ onDelAbsTxtItem: F[1] || (F[1] = (Z) => t("delAbsTxtItem", Z)),
5036
+ onChangeLayoutStatus: F[2] || (F[2] = (Z) => t("changeLayoutStatus", Z))
4956
5037
  }, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
4957
5038
  k("div", {
4958
5039
  class: "flex-1 overflow-auto relative z-1",
4959
5040
  id: "alit-layout",
4960
- onClick: F[14] || (F[14] = (J) => we())
5041
+ onClick: F[14] || (F[14] = (Z) => we())
4961
5042
  }, [
4962
5043
  k("div", {
4963
5044
  class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
4964
5045
  ref_key: "rawDom",
4965
5046
  ref: y
4966
5047
  }, [
4967
- i.value.length ? (r(!0), u(N, { key: 0 }, le((_e = i.value[i.value.length - 1]) == null ? void 0 : _e.data, (J, re) => (r(), u(N, null, [
4968
- J.isHidden ? D("", !0) : (r(), ee(It, {
5048
+ i.value.length ? (r(!0), h(O, { key: 0 }, le((_e = i.value[i.value.length - 1]) == null ? void 0 : _e.data, (Z, re) => (r(), h(O, null, [
5049
+ Z.isHidden ? B("", !0) : (r(), ee(It, {
4969
5050
  key: 0,
4970
- item: J,
5051
+ item: Z,
4971
5052
  showColBorder: ie.value,
4972
5053
  isFirst: !re && i.value.length === 1,
4973
5054
  layout: b.layout
4974
5055
  }, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
4975
- ie.value ? (r(), u("div", {
5056
+ ie.value ? (r(), h("div", {
4976
5057
  key: 1,
4977
- class: oe([!J.children.length && J.problemType && "p-1 min-h-[2rem]"])
5058
+ class: oe([!Z.children.length && Z.problemType && "p-1 min-h-[2rem]"])
4978
5059
  }, [
4979
5060
  (r(), ee(Ve, {
4980
- data: J,
5061
+ data: Z,
4981
5062
  key: i.value.length,
4982
5063
  layout: b.layout,
4983
5064
  target: b.target,
@@ -4985,51 +5066,51 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
4985
5066
  width: K(i.value.length - 1)
4986
5067
  }, null, 8, ["data", "layout", "target", "width"]))
4987
5068
  ], 2)) : (r(), ee(Ve, {
4988
- data: J,
5069
+ data: Z,
4989
5070
  key: i.value.length,
4990
5071
  layout: b.layout,
4991
5072
  target: b.target,
4992
5073
  width: K(i.value.length - 1)
4993
5074
  }, null, 8, ["data", "layout", "target", "width"]))
4994
- ], 64))), 256)) : D("", !0)
5075
+ ], 64))), 256)) : B("", !0)
4995
5076
  ], 512),
4996
5077
  k("div", {
4997
5078
  class: oe(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", b.layout.redFlag && "red_mode", b.readonly && "pointer-events-none"]),
4998
- style: Z(T.value)
5079
+ style: X($.value)
4999
5080
  }, [
5000
- ae(Js, {
5081
+ ae(Xs, {
5001
5082
  imgData: b.imgData,
5002
5083
  txtData: b.txtData,
5003
5084
  activeAbsItem: b.activeAbsItem,
5004
5085
  target: b.target,
5005
5086
  layout: b.layout,
5006
- pageMargin: A.value,
5007
- onChangeAbsImgItem: F[3] || (F[3] = (J) => t("changeAbsImgItem", J)),
5008
- onDelAbsImgItem: F[4] || (F[4] = (J) => t("delAbsImgItem", J)),
5009
- onChangeAbsTxtItem: F[5] || (F[5] = (J) => t("changeAbsTxtItem", J)),
5010
- onDelAbsTxtItem: F[6] || (F[6] = (J) => t("delAbsTxtItem", J))
5087
+ pageMargin: D.value,
5088
+ onChangeAbsImgItem: F[3] || (F[3] = (Z) => t("changeAbsImgItem", Z)),
5089
+ onDelAbsImgItem: F[4] || (F[4] = (Z) => t("delAbsImgItem", Z)),
5090
+ onChangeAbsTxtItem: F[5] || (F[5] = (Z) => t("changeAbsTxtItem", Z)),
5091
+ onDelAbsTxtItem: F[6] || (F[6] = (Z) => t("delAbsTxtItem", Z))
5011
5092
  }, null, 8, ["imgData", "txtData", "activeAbsItem", "target", "layout", "pageMargin"]),
5012
- (r(), u("svg", {
5013
- viewBox: `0 0 ${parseFloat(T.value.width)} ${parseFloat(T.value.height)}`,
5093
+ (r(), h("svg", {
5094
+ viewBox: `0 0 ${parseFloat($.value.width)} ${parseFloat($.value.height)}`,
5014
5095
  version: "1.1",
5015
5096
  xmlns: "http://www.w3.org/2000/svg",
5016
5097
  key: s.value
5017
5098
  }, [
5018
- (r(), u("foreignObject", ei, [
5019
- (r(!0), u(N, null, le(G.value, (J, re) => (r(), u("div", {
5020
- key: J,
5099
+ (r(), h("foreignObject", Zs, [
5100
+ (r(!0), h(O, null, le(G.value, (Z, re) => (r(), h("div", {
5101
+ key: Z,
5021
5102
  class: "bg-white relative flex justify-between overflow-hidden box-border",
5022
5103
  ref_for: !0,
5023
5104
  ref: (Ie) => Q(Ie, re),
5024
- style: Z(B.value)
5105
+ style: X(N.value)
5025
5106
  }, [
5026
- re < w.value ? (r(), u(N, { key: 0 }, [
5027
- ae(To, {
5107
+ re < w.value ? (r(), h(O, { key: 0 }, [
5108
+ ae($o, {
5028
5109
  layout: b.layout,
5029
5110
  currentPage: re,
5030
5111
  totalPage: w.value,
5031
5112
  columnContentWidth: K(re % 2 ? b.layout.column : 0, !0),
5032
- columnMargin: H(re % 2 ? b.layout.column : 0),
5113
+ columnMargin: R(re % 2 ? b.layout.column : 0),
5033
5114
  bindWidth: c.value,
5034
5115
  padding: U.value
5035
5116
  }, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
@@ -5038,11 +5119,11 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
5038
5119
  info: b.info,
5039
5120
  layout: b.layout,
5040
5121
  onChange: F[7] || (F[7] = (Ie) => t("changeInfo", Ie))
5041
- }, null, 8, ["info", "layout"])) : D("", !0),
5122
+ }, null, 8, ["info", "layout"])) : B("", !0),
5042
5123
  ae(nl, {
5043
5124
  ref_for: !0,
5044
5125
  ref_key: "bindDom",
5045
- ref: h,
5126
+ ref: p,
5046
5127
  currentPage: re,
5047
5128
  width: c.value,
5048
5129
  height: g.value,
@@ -5050,13 +5131,13 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
5050
5131
  bindSeatType: b.layout.bindSeatType,
5051
5132
  bindInfo: Y.value
5052
5133
  }, null, 8, ["currentPage", "width", "height", "isBindFlag", "bindSeatType", "bindInfo"]),
5053
- !(re % 2) || re === 1 && w.value < 3 ? (r(), u("div", {
5134
+ !(re % 2) || re === 1 && w.value < 3 ? (r(), h("div", {
5054
5135
  key: 1,
5055
5136
  ref_for: !0,
5056
5137
  ref_key: "titleDom",
5057
- ref: M,
5138
+ ref: A,
5058
5139
  class: oe(["absolute text-black", re === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
5059
- style: Z(ue.value)
5140
+ style: X(ue.value)
5060
5141
  }, [
5061
5142
  ae(Oo, {
5062
5143
  layout: b.layout,
@@ -5069,17 +5150,17 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
5069
5150
  data: b.data,
5070
5151
  onChange: F[8] || (F[8] = (Ie) => t("changeInfo", Ie))
5071
5152
  }, null, 8, ["info", "layout", "fontConfig", "data"]),
5072
- ae(Ta, {
5153
+ ae($a, {
5073
5154
  layout: b.layout,
5074
5155
  info: b.info,
5075
5156
  isBindFlag: j.value,
5076
5157
  onChange: F[9] || (F[9] = (Ie) => t("changeExtentInfo", Ie))
5077
5158
  }, null, 8, ["layout", "info", "isBindFlag"]),
5078
- ae(Ha, {
5159
+ ae(Ra, {
5079
5160
  layout: b.layout,
5080
5161
  isBindFlag: j.value
5081
5162
  }, null, 8, ["layout", "isBindFlag"]),
5082
- re ? D("", !0) : (r(), ee(Ua, {
5163
+ re ? B("", !0) : (r(), ee(Ua, {
5083
5164
  key: 0,
5084
5165
  layout: b.layout,
5085
5166
  data: b.data
@@ -5088,9 +5169,9 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
5088
5169
  key: 1,
5089
5170
  info: b.info,
5090
5171
  layout: b.layout
5091
- }, null, 8, ["info", "layout"])) : D("", !0)
5092
- ], 6)) : D("", !0),
5093
- (r(!0), u(N, null, le(re % 2 ? b.layout.backColumn : b.layout.column, (Ie, Ae) => (r(), ee(ja, {
5172
+ }, null, 8, ["info", "layout"])) : B("", !0)
5173
+ ], 6)) : B("", !0),
5174
+ (r(!0), h(O, null, le(re % 2 ? b.layout.backColumn : b.layout.column, (Ie, Ae) => (r(), ee(ja, {
5094
5175
  ref_for: !0,
5095
5176
  ref: (Ue) => E(Ue, _(Ae, re)),
5096
5177
  styleInfo: se(_(Ae, re), re),
@@ -5101,23 +5182,23 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
5101
5182
  default: Et(() => {
5102
5183
  var Ue;
5103
5184
  return [
5104
- (r(!0), u(N, null, le(((Ue = l.value[_(Ae, re)]) == null ? void 0 : Ue.data) || [], (ke, Gt) => {
5185
+ (r(!0), h(O, null, le(((Ue = l.value[_(Ae, re)]) == null ? void 0 : Ue.data) || [], (ke, Gt) => {
5105
5186
  var vt;
5106
- return r(), u(N, null, [
5107
- ke.isHidden ? D("", !0) : (r(), ee(It, {
5187
+ return r(), h(O, null, [
5188
+ ke.isHidden ? B("", !0) : (r(), ee(It, {
5108
5189
  key: 0,
5109
5190
  item: ke,
5110
5191
  showColBorder: ie.value,
5111
5192
  isFirst: !re && !Ae && !Gt,
5112
5193
  layout: b.layout,
5113
5194
  isActive: ((vt = b.target.value) == null ? void 0 : vt.id) === ke.id,
5114
- onClick: (be) => we({ type: ke.problemType ? L(O).headline : L(O).headlineNotarea, value: ke }),
5195
+ onClick: (be) => we({ type: ke.problemType ? L(M).headline : L(M).headlineNotarea, value: ke }),
5115
5196
  onDbclick: (be) => t("dbHeadLineClick", ke)
5116
5197
  }, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
5117
- ie.value ? (r(), u("div", {
5198
+ ie.value ? (r(), h("div", {
5118
5199
  key: 1,
5119
- class: oe([!ke.children.length && ke.problemType && "p-1 min-h-[2rem]", b.target.type === L(O).headline && b.target.value.id === ke.id && "active_headline"]),
5120
- onClick: Ee((be) => we({ type: ke.problemType ? L(O).headline : L(O).headlineNotarea, value: ke }), ["stop"]),
5200
+ class: oe([!ke.children.length && ke.problemType && "p-1 min-h-[2rem]", b.target.type === L(M).headline && b.target.value.id === ke.id && "active_headline"]),
5201
+ onClick: Ee((be) => we({ type: ke.problemType ? L(M).headline : L(M).headlineNotarea, value: ke }), ["stop"]),
5121
5202
  onDblclick: (be) => t("dbHeadLineClick", ke)
5122
5203
  }, [
5123
5204
  ae(Ve, {
@@ -5125,21 +5206,21 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
5125
5206
  layout: b.layout,
5126
5207
  target: b.target,
5127
5208
  width: K(_(Ae, re)),
5128
- onClick: F[10] || (F[10] = (be) => we({ type: be.problemType || be.notAreaFlag ? L(O).problem : L(O).problemNotarea, value: { ...be, problemType: be.problemType || be.sourceProblemType } })),
5209
+ onClick: F[10] || (F[10] = (be) => we({ type: be.problemType || be.notAreaFlag ? L(M).problem : L(M).problemNotarea, value: { ...be, problemType: be.problemType || be.sourceProblemType } })),
5129
5210
  onDbclick: F[11] || (F[11] = (be) => t("dbProblemClick", be))
5130
5211
  }, null, 8, ["data", "layout", "target", "width"]),
5131
- ke.children.length && ke.children[ke.children.length - 1].id === z.value ? (r(), u("div", {
5212
+ ke.children.length && ke.children[ke.children.length - 1].id === z.value ? (r(), h("div", {
5132
5213
  key: 0,
5133
5214
  class: "border-t",
5134
5215
  "data-block": L(Be)
5135
- }, null, 8, oi)) : D("", !0)
5136
- ], 42, ti)) : (r(), ee(Ve, {
5216
+ }, null, 8, ti)) : B("", !0)
5217
+ ], 42, ei)) : (r(), ee(Ve, {
5137
5218
  key: 2,
5138
5219
  data: ke,
5139
5220
  layout: b.layout,
5140
5221
  target: b.target,
5141
5222
  width: K(_(Ae, re)),
5142
- onClick: F[12] || (F[12] = (be) => we({ type: be.problemType || be.notAreaFlag ? L(O).problem : L(O).problemNotarea, value: { ...be, problemType: be.problemType || be.sourceProblemType } })),
5223
+ onClick: F[12] || (F[12] = (be) => we({ type: be.problemType || be.notAreaFlag ? L(M).problem : L(M).problemNotarea, value: { ...be, problemType: be.problemType || be.sourceProblemType } })),
5143
5224
  onDbclick: F[13] || (F[13] = (be) => t("dbProblemClick", be))
5144
5225
  }, null, 8, ["data", "layout", "target", "width"]))
5145
5226
  ], 64);
@@ -5148,18 +5229,18 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
5148
5229
  }),
5149
5230
  _: 2
5150
5231
  }, 1032, ["styleInfo", "column", "currentColumn", "showColBorder"]))), 256))
5151
- ], 64)) : D("", !0)
5232
+ ], 64)) : B("", !0)
5152
5233
  ], 4))), 128))
5153
5234
  ]))
5154
- ], 8, Zs))
5235
+ ], 8, Js))
5155
5236
  ], 6)
5156
5237
  ])
5157
5238
  ], 64);
5158
5239
  };
5159
5240
  }
5160
5241
  });
5161
- const si = /* @__PURE__ */ me(ai, [["__scopeId", "data-v-3cc4ec73"]]);
5242
+ const ni = /* @__PURE__ */ me(oi, [["__scopeId", "data-v-3cc4ec73"]]);
5162
5243
  export {
5163
- ni as Config,
5164
- si as default
5244
+ li as Config,
5245
+ ni as default
5165
5246
  };