@xcpcio/core 0.54.0 → 0.55.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -49,12 +49,6 @@ const XLSX__namespace = /*#__PURE__*/_interopNamespaceCompat(XLSX);
49
49
  const ordinal__default = /*#__PURE__*/_interopDefaultCompat(ordinal);
50
50
  const Papa__default = /*#__PURE__*/_interopDefaultCompat(Papa);
51
51
 
52
- var __defProp$j = Object.defineProperty;
53
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
54
- var __publicField$j = (obj, key, value) => {
55
- __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
56
- return value;
57
- };
58
52
  var MedalType = /* @__PURE__ */ ((MedalType2) => {
59
53
  MedalType2["UNKNOWN"] = "Unknown";
60
54
  MedalType2["GOLD"] = "Gold";
@@ -64,10 +58,10 @@ var MedalType = /* @__PURE__ */ ((MedalType2) => {
64
58
  return MedalType2;
65
59
  })(MedalType || {});
66
60
  class Award {
61
+ medalType;
62
+ minRank;
63
+ maxRank;
67
64
  constructor() {
68
- __publicField$j(this, "medalType");
69
- __publicField$j(this, "minRank");
70
- __publicField$j(this, "maxRank");
71
65
  this.medalType = "Unknown" /* UNKNOWN */;
72
66
  this.minRank = 0;
73
67
  this.maxRank = 0;
@@ -147,23 +141,17 @@ function getTimeDiff(seconds) {
147
141
  return [two(h), two(m), two(s)].join(":");
148
142
  }
149
143
 
150
- var __defProp$i = Object.defineProperty;
151
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
152
- var __publicField$i = (obj, key, value) => {
153
- __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
154
- return value;
155
- };
156
144
  class ProblemStatistics {
145
+ acceptedNum;
146
+ rejectedNum;
147
+ pendingNum;
148
+ submittedNum;
149
+ attemptedNum;
150
+ ignoreNum;
151
+ firstSolveSubmissions;
152
+ lastSolveSubmissions;
153
+ se;
157
154
  constructor() {
158
- __publicField$i(this, "acceptedNum");
159
- __publicField$i(this, "rejectedNum");
160
- __publicField$i(this, "pendingNum");
161
- __publicField$i(this, "submittedNum");
162
- __publicField$i(this, "attemptedNum");
163
- __publicField$i(this, "ignoreNum");
164
- __publicField$i(this, "firstSolveSubmissions");
165
- __publicField$i(this, "lastSolveSubmissions");
166
- __publicField$i(this, "se");
167
155
  this.acceptedNum = 0;
168
156
  this.rejectedNum = 0;
169
157
  this.pendingNum = 0;
@@ -198,14 +186,14 @@ class ProblemStatistics {
198
186
  }
199
187
  }
200
188
  class Problem {
189
+ id;
190
+ label;
191
+ name;
192
+ timeLimit;
193
+ memoryLimit;
194
+ balloonColor;
195
+ statistics;
201
196
  constructor() {
202
- __publicField$i(this, "id");
203
- __publicField$i(this, "label");
204
- __publicField$i(this, "name");
205
- __publicField$i(this, "timeLimit");
206
- __publicField$i(this, "memoryLimit");
207
- __publicField$i(this, "balloonColor");
208
- __publicField$i(this, "statistics");
209
197
  this.id = "";
210
198
  this.label = "";
211
199
  this.name = "";
@@ -250,19 +238,19 @@ function createProblemsByProblemIds(problemIds, balloonColors) {
250
238
  return problems;
251
239
  }
252
240
  class TeamProblemStatistics {
241
+ isFirstSolved;
242
+ isSolved;
243
+ solvedTimestamp;
244
+ isSubmitted;
245
+ lastSubmitTimestamp;
246
+ failedCount;
247
+ pendingCount;
248
+ ignoreCount;
249
+ totalCount;
250
+ submissions;
251
+ problem;
252
+ contestPenalty;
253
253
  constructor(options) {
254
- __publicField$i(this, "isFirstSolved");
255
- __publicField$i(this, "isSolved");
256
- __publicField$i(this, "solvedTimestamp");
257
- __publicField$i(this, "isSubmitted");
258
- __publicField$i(this, "lastSubmitTimestamp");
259
- __publicField$i(this, "failedCount");
260
- __publicField$i(this, "pendingCount");
261
- __publicField$i(this, "ignoreCount");
262
- __publicField$i(this, "totalCount");
263
- __publicField$i(this, "submissions");
264
- __publicField$i(this, "problem");
265
- __publicField$i(this, "contestPenalty");
266
254
  this.isFirstSolved = options?.teamProblemStatistics?.isFirstSolved ?? false;
267
255
  this.isSolved = options?.teamProblemStatistics?.isSolved ?? false;
268
256
  this.solvedTimestamp = options?.teamProblemStatistics?.solvedTimestamp ?? 0;
@@ -430,26 +418,20 @@ function isNotCalculatedPenaltyStatus(status) {
430
418
  return isNotCalculatedPenaltyArray.includes(status);
431
419
  }
432
420
 
433
- var __defProp$h = Object.defineProperty;
434
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
435
- var __publicField$h = (obj, key, value) => {
436
- __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
437
- return value;
438
- };
439
421
  class Submission {
422
+ id;
423
+ teamId;
424
+ problemId;
425
+ timestamp;
426
+ timestampUnit;
427
+ time;
428
+ language;
429
+ reaction;
430
+ status = types.SubmissionStatus.UNKNOWN;
431
+ isIgnore = false;
432
+ isSolved = false;
433
+ isFirstSolved = false;
440
434
  constructor() {
441
- __publicField$h(this, "id");
442
- __publicField$h(this, "teamId");
443
- __publicField$h(this, "problemId");
444
- __publicField$h(this, "timestamp");
445
- __publicField$h(this, "timestampUnit");
446
- __publicField$h(this, "time");
447
- __publicField$h(this, "language");
448
- __publicField$h(this, "reaction");
449
- __publicField$h(this, "status", types.SubmissionStatus.UNKNOWN);
450
- __publicField$h(this, "isIgnore", false);
451
- __publicField$h(this, "isSolved", false);
452
- __publicField$h(this, "isFirstSolved", false);
453
435
  this.id = "";
454
436
  this.teamId = "";
455
437
  this.problemId = "";
@@ -560,48 +542,42 @@ function createSubmissions(submissionsJSON) {
560
542
  }
561
543
  }
562
544
 
563
- var __defProp$g = Object.defineProperty;
564
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
565
- var __publicField$g = (obj, key, value) => {
566
- __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
567
- return value;
568
- };
569
545
  class PlaceChartPointData {
546
+ timePoint;
547
+ rank;
548
+ lastSolvedProblem;
570
549
  constructor() {
571
- __publicField$g(this, "timePoint");
572
- __publicField$g(this, "rank");
573
- __publicField$g(this, "lastSolvedProblem");
574
550
  this.timePoint = 0;
575
551
  this.rank = 0;
576
552
  this.lastSolvedProblem = null;
577
553
  }
578
554
  }
579
555
  class Team {
556
+ id;
557
+ name;
558
+ organization;
559
+ badge;
560
+ group;
561
+ tag;
562
+ coach;
563
+ members;
564
+ rank;
565
+ originalRank;
566
+ organizationRank;
567
+ solvedProblemNum;
568
+ attemptedProblemNum;
569
+ lastSolvedProblem;
570
+ lastSolvedProblemStatistics;
571
+ penalty;
572
+ problemStatistics;
573
+ problemStatisticsMap;
574
+ submissions;
575
+ placeChartPoints;
576
+ awards;
577
+ location;
578
+ icpcID;
579
+ se;
580
580
  constructor() {
581
- __publicField$g(this, "id");
582
- __publicField$g(this, "name");
583
- __publicField$g(this, "organization");
584
- __publicField$g(this, "badge");
585
- __publicField$g(this, "group");
586
- __publicField$g(this, "tag");
587
- __publicField$g(this, "coach");
588
- __publicField$g(this, "members");
589
- __publicField$g(this, "rank");
590
- __publicField$g(this, "originalRank");
591
- __publicField$g(this, "organizationRank");
592
- __publicField$g(this, "solvedProblemNum");
593
- __publicField$g(this, "attemptedProblemNum");
594
- __publicField$g(this, "lastSolvedProblem");
595
- __publicField$g(this, "lastSolvedProblemStatistics");
596
- __publicField$g(this, "penalty");
597
- __publicField$g(this, "problemStatistics");
598
- __publicField$g(this, "problemStatisticsMap");
599
- __publicField$g(this, "submissions");
600
- __publicField$g(this, "placeChartPoints");
601
- __publicField$g(this, "awards");
602
- __publicField$g(this, "location");
603
- __publicField$g(this, "icpcID");
604
- __publicField$g(this, "se");
605
581
  this.id = "";
606
582
  this.name = "";
607
583
  this.organization = "";
@@ -807,17 +783,11 @@ function createTeams(teamsJSON) {
807
783
  }
808
784
  }
809
785
 
810
- var __defProp$f = Object.defineProperty;
811
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
812
- var __publicField$f = (obj, key, value) => {
813
- __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
814
- return value;
815
- };
816
786
  class Balloon {
787
+ problem;
788
+ team;
789
+ submission;
817
790
  constructor() {
818
- __publicField$f(this, "problem");
819
- __publicField$f(this, "team");
820
- __publicField$f(this, "submission");
821
791
  this.problem = new Problem();
822
792
  this.team = new Team();
823
793
  this.submission = new Submission();
@@ -830,26 +800,20 @@ class Balloon {
830
800
  }
831
801
  }
832
802
 
833
- var __defProp$e = Object.defineProperty;
834
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
835
- var __publicField$e = (obj, key, value) => {
836
- __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
837
- return value;
838
- };
839
803
  var GiantsType = /* @__PURE__ */ ((GiantsType2) => {
840
804
  GiantsType2[GiantsType2["BLUE"] = 0] = "BLUE";
841
805
  GiantsType2[GiantsType2["RED"] = 1] = "RED";
842
806
  return GiantsType2;
843
807
  })(GiantsType || {});
844
808
  class Giants {
809
+ type;
810
+ name;
811
+ filterOrganizations;
812
+ filterOrganizationMap;
813
+ filterTeams;
814
+ filterTeamMap;
815
+ teams;
845
816
  constructor(type = 0 /* BLUE */) {
846
- __publicField$e(this, "type");
847
- __publicField$e(this, "name");
848
- __publicField$e(this, "filterOrganizations");
849
- __publicField$e(this, "filterOrganizationMap");
850
- __publicField$e(this, "filterTeams");
851
- __publicField$e(this, "filterTeamMap");
852
- __publicField$e(this, "teams");
853
817
  this.type = type;
854
818
  this.name = `${type === 0 /* BLUE */ ? "Blue" : "Red"} Team`;
855
819
  this.teams = [];
@@ -918,13 +882,13 @@ class Giants {
918
882
  }
919
883
  }
920
884
  class BattleOfGiants {
885
+ enable;
886
+ topX;
887
+ equalTeams;
888
+ persist;
889
+ blueTeam;
890
+ redTeam;
921
891
  constructor() {
922
- __publicField$e(this, "enable");
923
- __publicField$e(this, "topX");
924
- __publicField$e(this, "equalTeams");
925
- __publicField$e(this, "persist");
926
- __publicField$e(this, "blueTeam");
927
- __publicField$e(this, "redTeam");
928
892
  this.enable = false;
929
893
  this.topX = 5;
930
894
  this.equalTeams = true;
@@ -958,19 +922,13 @@ class BattleOfGiants {
958
922
  }
959
923
  }
960
924
 
961
- var __defProp$d = Object.defineProperty;
962
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
963
- var __publicField$d = (obj, key, value) => {
964
- __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
965
- return value;
966
- };
967
925
  class ContestOptions {
926
+ calculationOfPenalty;
927
+ submissionTimestampUnit;
928
+ submissionHasTimeField;
929
+ submissionHasLanguageField;
930
+ submissionEnableActionField;
968
931
  constructor() {
969
- __publicField$d(this, "calculationOfPenalty");
970
- __publicField$d(this, "submissionTimestampUnit");
971
- __publicField$d(this, "submissionHasTimeField");
972
- __publicField$d(this, "submissionHasLanguageField");
973
- __publicField$d(this, "submissionEnableActionField");
974
932
  this.calculationOfPenalty = "in_minutes";
975
933
  this.submissionTimestampUnit = "second";
976
934
  this.submissionHasTimeField = false;
@@ -993,59 +951,47 @@ function createContestOptions(contestOptionsJSON = {}) {
993
951
  return o;
994
952
  }
995
953
 
996
- var __defProp$c = Object.defineProperty;
997
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
998
- var __publicField$c = (obj, key, value) => {
999
- __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
1000
- return value;
1001
- };
1002
954
  class Group {
955
+ names;
956
+ defaultLang;
957
+ isDefault;
1003
958
  constructor() {
1004
- __publicField$c(this, "names");
1005
- __publicField$c(this, "defaultLang");
1006
- __publicField$c(this, "isDefault");
1007
959
  this.names = /* @__PURE__ */ new Map();
1008
960
  this.defaultLang = "zh-CN";
1009
961
  this.isDefault = false;
1010
962
  }
1011
963
  }
1012
964
 
1013
- var __defProp$b = Object.defineProperty;
1014
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1015
- var __publicField$b = (obj, key, value) => {
1016
- __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
1017
- return value;
1018
- };
1019
965
  class Contest {
966
+ id = "";
967
+ name = "";
968
+ startTime;
969
+ endTime;
970
+ freezeTime;
971
+ replayStartTime;
972
+ replayEndTime;
973
+ replayFreezeTime;
974
+ replayNowTime;
975
+ replayContestStartTimestamp;
976
+ totalDurationTimestamp;
977
+ freezeDurationTimestamp;
978
+ unFreezeDurationTimestamp;
979
+ penalty;
980
+ problems;
981
+ problemsMap;
982
+ statusTimeDisplay;
983
+ badge;
984
+ medal;
985
+ awards;
986
+ organization;
987
+ group;
988
+ tag;
989
+ logo;
990
+ banner;
991
+ bannerMode;
992
+ boardLink;
993
+ options;
1020
994
  constructor() {
1021
- __publicField$b(this, "id", "");
1022
- __publicField$b(this, "name", "");
1023
- __publicField$b(this, "startTime");
1024
- __publicField$b(this, "endTime");
1025
- __publicField$b(this, "freezeTime");
1026
- __publicField$b(this, "replayStartTime");
1027
- __publicField$b(this, "replayEndTime");
1028
- __publicField$b(this, "replayFreezeTime");
1029
- __publicField$b(this, "replayNowTime");
1030
- __publicField$b(this, "replayContestStartTimestamp");
1031
- __publicField$b(this, "totalDurationTimestamp");
1032
- __publicField$b(this, "freezeDurationTimestamp");
1033
- __publicField$b(this, "unFreezeDurationTimestamp");
1034
- __publicField$b(this, "penalty");
1035
- __publicField$b(this, "problems");
1036
- __publicField$b(this, "problemsMap");
1037
- __publicField$b(this, "statusTimeDisplay");
1038
- __publicField$b(this, "badge");
1039
- __publicField$b(this, "medal");
1040
- __publicField$b(this, "awards");
1041
- __publicField$b(this, "organization");
1042
- __publicField$b(this, "group");
1043
- __publicField$b(this, "tag");
1044
- __publicField$b(this, "logo");
1045
- __publicField$b(this, "banner");
1046
- __publicField$b(this, "bannerMode");
1047
- __publicField$b(this, "boardLink");
1048
- __publicField$b(this, "options");
1049
995
  this.startTime = createDayJS();
1050
996
  this.endTime = createDayJS();
1051
997
  this.freezeTime = createDayJS();
@@ -1269,22 +1215,16 @@ function createContest(contestJSON) {
1269
1215
  return c;
1270
1216
  }
1271
1217
 
1272
- var __defProp$a = Object.defineProperty;
1273
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1274
- var __publicField$a = (obj, key, value) => {
1275
- __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
1276
- return value;
1277
- };
1278
1218
  class ContestIndexConfig {
1219
+ contestName;
1220
+ startTime;
1221
+ endTime;
1222
+ freezeTime;
1223
+ totalDurationTimestamp;
1224
+ freezeDurationTimestamp;
1225
+ unFreezeDurationTimestamp;
1226
+ logo;
1279
1227
  constructor() {
1280
- __publicField$a(this, "contestName");
1281
- __publicField$a(this, "startTime");
1282
- __publicField$a(this, "endTime");
1283
- __publicField$a(this, "freezeTime");
1284
- __publicField$a(this, "totalDurationTimestamp");
1285
- __publicField$a(this, "freezeDurationTimestamp");
1286
- __publicField$a(this, "unFreezeDurationTimestamp");
1287
- __publicField$a(this, "logo");
1288
1228
  this.contestName = "";
1289
1229
  this.startTime = createDayJS();
1290
1230
  this.endTime = createDayJS();
@@ -1295,9 +1235,9 @@ class ContestIndexConfig {
1295
1235
  }
1296
1236
  }
1297
1237
  class ContestIndex {
1238
+ contest;
1239
+ boardLink;
1298
1240
  constructor() {
1299
- __publicField$a(this, "contest");
1300
- __publicField$a(this, "boardLink");
1301
1241
  this.contest = new Contest();
1302
1242
  this.boardLink = "";
1303
1243
  }
@@ -1675,15 +1615,9 @@ function getImageSource(image, asset_host) {
1675
1615
  return "";
1676
1616
  }
1677
1617
 
1678
- var __defProp$9 = Object.defineProperty;
1679
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1680
- var __publicField$9 = (obj, key, value) => {
1681
- __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
1682
- return value;
1683
- };
1684
1618
  class Person {
1619
+ name;
1685
1620
  constructor(name = "") {
1686
- __publicField$9(this, "name");
1687
1621
  this.name = name;
1688
1622
  }
1689
1623
  toJSON() {
@@ -1712,19 +1646,13 @@ function createPersons(iPersons) {
1712
1646
  return iPersons.map((name) => new Person(name));
1713
1647
  }
1714
1648
 
1715
- var __defProp$8 = Object.defineProperty;
1716
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1717
- var __publicField$8 = (obj, key, value) => {
1718
- __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
1719
- return value;
1720
- };
1721
1649
  class RankStatistics {
1650
+ teamSolvedNum;
1651
+ teamSolvedNumIndex;
1652
+ maxSolvedProblems;
1653
+ effectiveTeamNum;
1654
+ totalTeamNum;
1722
1655
  constructor() {
1723
- __publicField$8(this, "teamSolvedNum");
1724
- __publicField$8(this, "teamSolvedNumIndex");
1725
- __publicField$8(this, "maxSolvedProblems");
1726
- __publicField$8(this, "effectiveTeamNum");
1727
- __publicField$8(this, "totalTeamNum");
1728
1656
  this.teamSolvedNum = [];
1729
1657
  this.teamSolvedNumIndex = [];
1730
1658
  this.maxSolvedProblems = 0;
@@ -1743,25 +1671,19 @@ class RankStatistics {
1743
1671
  }
1744
1672
  }
1745
1673
 
1746
- var __defProp$7 = Object.defineProperty;
1747
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1748
- var __publicField$7 = (obj, key, value) => {
1749
- __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
1750
- return value;
1751
- };
1752
1674
  class RankOptions {
1675
+ enableFilterSubmissionsByTimestamp;
1676
+ width;
1677
+ timestamp;
1678
+ enableFilterTeamsByGroup;
1679
+ group;
1680
+ filterOrganizations;
1681
+ filterOrganizationMap;
1682
+ filterTeams;
1683
+ filterTeamMap;
1684
+ enableAnimatedSubmissions;
1685
+ battleOfGiants;
1753
1686
  constructor() {
1754
- __publicField$7(this, "enableFilterSubmissionsByTimestamp");
1755
- __publicField$7(this, "width");
1756
- __publicField$7(this, "timestamp");
1757
- __publicField$7(this, "enableFilterTeamsByGroup");
1758
- __publicField$7(this, "group");
1759
- __publicField$7(this, "filterOrganizations");
1760
- __publicField$7(this, "filterOrganizationMap");
1761
- __publicField$7(this, "filterTeams");
1762
- __publicField$7(this, "filterTeamMap");
1763
- __publicField$7(this, "enableAnimatedSubmissions");
1764
- __publicField$7(this, "battleOfGiants");
1765
1687
  this.enableFilterSubmissionsByTimestamp = false;
1766
1688
  this.width = 0;
1767
1689
  this.timestamp = 0;
@@ -1842,19 +1764,19 @@ class RankOptions {
1842
1764
  }
1843
1765
  }
1844
1766
  class Rank {
1767
+ contest;
1768
+ teams;
1769
+ teamsMap;
1770
+ submissions;
1771
+ submissionsMap;
1772
+ organizations;
1773
+ originTeams;
1774
+ rankStatistics;
1775
+ options;
1776
+ balloons;
1777
+ languages;
1778
+ statuses;
1845
1779
  constructor(contest, teams, submissions) {
1846
- __publicField$7(this, "contest");
1847
- __publicField$7(this, "teams");
1848
- __publicField$7(this, "teamsMap");
1849
- __publicField$7(this, "submissions");
1850
- __publicField$7(this, "submissionsMap");
1851
- __publicField$7(this, "organizations");
1852
- __publicField$7(this, "originTeams");
1853
- __publicField$7(this, "rankStatistics");
1854
- __publicField$7(this, "options");
1855
- __publicField$7(this, "balloons");
1856
- __publicField$7(this, "languages");
1857
- __publicField$7(this, "statuses");
1858
1780
  this.contest = contest;
1859
1781
  this.teams = ___default.cloneDeep(teams);
1860
1782
  this.teamsMap = new Map(this.teams.map((t) => [t.id, t]));
@@ -2203,24 +2125,18 @@ class Rank {
2203
2125
  }
2204
2126
  }
2205
2127
 
2206
- var __defProp$6 = Object.defineProperty;
2207
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2208
- var __publicField$6 = (obj, key, value) => {
2209
- __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
2210
- return value;
2211
- };
2212
2128
  class RatingHistory {
2129
+ rank;
2130
+ rating;
2131
+ teamName;
2132
+ organization;
2133
+ members;
2134
+ coaches;
2135
+ contestID;
2136
+ contestName;
2137
+ contestLink;
2138
+ contestTime;
2213
2139
  constructor() {
2214
- __publicField$6(this, "rank");
2215
- __publicField$6(this, "rating");
2216
- __publicField$6(this, "teamName");
2217
- __publicField$6(this, "organization");
2218
- __publicField$6(this, "members");
2219
- __publicField$6(this, "coaches");
2220
- __publicField$6(this, "contestID");
2221
- __publicField$6(this, "contestName");
2222
- __publicField$6(this, "contestLink");
2223
- __publicField$6(this, "contestTime");
2224
2140
  this.rank = 0;
2225
2141
  this.rating = 0;
2226
2142
  this.teamName = "";
@@ -2265,27 +2181,21 @@ class RatingHistory {
2265
2181
  }
2266
2182
  }
2267
2183
 
2268
- var __defProp$5 = Object.defineProperty;
2269
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2270
- var __publicField$5 = (obj, key, value) => {
2271
- __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
2272
- return value;
2273
- };
2274
2184
  class RatingUser {
2185
+ id;
2186
+ name;
2187
+ organization;
2188
+ members;
2189
+ coaches;
2190
+ rating;
2191
+ minRating;
2192
+ maxRating;
2193
+ rank;
2194
+ oldRating;
2195
+ seed;
2196
+ delta;
2197
+ ratingHistories;
2275
2198
  constructor() {
2276
- __publicField$5(this, "id");
2277
- __publicField$5(this, "name");
2278
- __publicField$5(this, "organization");
2279
- __publicField$5(this, "members");
2280
- __publicField$5(this, "coaches");
2281
- __publicField$5(this, "rating");
2282
- __publicField$5(this, "minRating");
2283
- __publicField$5(this, "maxRating");
2284
- __publicField$5(this, "rank");
2285
- __publicField$5(this, "oldRating");
2286
- __publicField$5(this, "seed");
2287
- __publicField$5(this, "delta");
2288
- __publicField$5(this, "ratingHistories");
2289
2199
  this.id = "";
2290
2200
  this.name = "";
2291
2201
  this.organization = "";
@@ -2338,15 +2248,9 @@ class RatingUser {
2338
2248
  }
2339
2249
  }
2340
2250
 
2341
- var __defProp$4 = Object.defineProperty;
2342
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2343
- var __publicField$4 = (obj, key, value) => {
2344
- __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
2345
- return value;
2346
- };
2347
2251
  class RatingCalculator {
2252
+ users;
2348
2253
  constructor() {
2349
- __publicField$4(this, "users");
2350
2254
  this.users = [];
2351
2255
  }
2352
2256
  calculate() {
@@ -2418,21 +2322,15 @@ class RatingCalculator {
2418
2322
  }
2419
2323
  }
2420
2324
 
2421
- var __defProp$3 = Object.defineProperty;
2422
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2423
- var __publicField$3 = (obj, key, value) => {
2424
- __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
2425
- return value;
2426
- };
2427
2325
  class Rating {
2326
+ id;
2327
+ name;
2328
+ baseRating;
2329
+ contestIDs;
2330
+ users;
2331
+ ranks;
2332
+ userMap;
2428
2333
  constructor() {
2429
- __publicField$3(this, "id");
2430
- __publicField$3(this, "name");
2431
- __publicField$3(this, "baseRating");
2432
- __publicField$3(this, "contestIDs");
2433
- __publicField$3(this, "users");
2434
- __publicField$3(this, "ranks");
2435
- __publicField$3(this, "userMap");
2436
2334
  this.id = "";
2437
2335
  this.name = "";
2438
2336
  this.baseRating = 1500;
@@ -2597,19 +2495,13 @@ class RatingUtility {
2597
2495
  }
2598
2496
  }
2599
2497
 
2600
- var __defProp$2 = Object.defineProperty;
2601
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2602
- var __publicField$2 = (obj, key, value) => {
2603
- __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
2604
- return value;
2605
- };
2606
2498
  class ResolverOperation {
2499
+ id;
2500
+ team;
2501
+ problemIx;
2502
+ beforeTeamProblemStatistics;
2503
+ afterTeamProblemStatistics;
2607
2504
  constructor() {
2608
- __publicField$2(this, "id");
2609
- __publicField$2(this, "team");
2610
- __publicField$2(this, "problemIx");
2611
- __publicField$2(this, "beforeTeamProblemStatistics");
2612
- __publicField$2(this, "afterTeamProblemStatistics");
2613
2505
  this.id = 0;
2614
2506
  this.team = new Team();
2615
2507
  this.problemIx = 0;
@@ -2618,13 +2510,11 @@ class ResolverOperation {
2618
2510
  }
2619
2511
  }
2620
2512
 
2621
- var __defProp$1 = Object.defineProperty;
2622
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2623
- var __publicField$1 = (obj, key, value) => {
2624
- __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
2625
- return value;
2626
- };
2627
2513
  class Resolver extends Rank {
2514
+ finalRank;
2515
+ operations;
2516
+ beforeFreezeSubmissions;
2517
+ afterFreezeSubmissions;
2628
2518
  constructor(contest, teams, submissions) {
2629
2519
  submissions.sort(Submission.compare);
2630
2520
  let beforeFreezeSubmissions = submissions;
@@ -2648,10 +2538,6 @@ class Resolver extends Rank {
2648
2538
  afterFreezeSubmissions = submissions.slice(ix, -1);
2649
2539
  }
2650
2540
  super(contest, teams, beforeFreezeSubmissions);
2651
- __publicField$1(this, "finalRank");
2652
- __publicField$1(this, "operations");
2653
- __publicField$1(this, "beforeFreezeSubmissions");
2654
- __publicField$1(this, "afterFreezeSubmissions");
2655
2541
  this.finalRank = new Rank(contest, teams, submissions);
2656
2542
  this.operations = [];
2657
2543
  this.beforeFreezeSubmissions = beforeFreezeSubmissions;
@@ -2718,29 +2604,23 @@ class Resolver extends Rank {
2718
2604
  }
2719
2605
  }
2720
2606
 
2721
- var __defProp = Object.defineProperty;
2722
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2723
- var __publicField = (obj, key, value) => {
2724
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
2725
- return value;
2726
- };
2727
2607
  class ResolverVue extends Resolver {
2608
+ FLASHING_TIME_MS = 100;
2609
+ ROLLING_TIME_MS = 600;
2610
+ maxIndex;
2611
+ currentIndex;
2612
+ maxOpIndex;
2613
+ currentOpIndex;
2614
+ oldRank;
2615
+ newRank;
2616
+ currentTeamId;
2617
+ currentProblemIndex;
2618
+ problemFlashingEnded;
2619
+ duringAnimation;
2620
+ startScrollUp;
2621
+ startScrollDown;
2728
2622
  constructor(contest, teams, submissions) {
2729
2623
  super(contest, teams, submissions);
2730
- __publicField(this, "FLASHING_TIME_MS", 100);
2731
- __publicField(this, "ROLLING_TIME_MS", 600);
2732
- __publicField(this, "maxIndex");
2733
- __publicField(this, "currentIndex");
2734
- __publicField(this, "maxOpIndex");
2735
- __publicField(this, "currentOpIndex");
2736
- __publicField(this, "oldRank");
2737
- __publicField(this, "newRank");
2738
- __publicField(this, "currentTeamId");
2739
- __publicField(this, "currentProblemIndex");
2740
- __publicField(this, "problemFlashingEnded");
2741
- __publicField(this, "duringAnimation");
2742
- __publicField(this, "startScrollUp");
2743
- __publicField(this, "startScrollDown");
2744
2624
  this.maxIndex = 0;
2745
2625
  this.currentIndex = 0;
2746
2626
  this.maxOpIndex = 0;