scorm-again 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/aicc.js.map +1 -0
  2. package/dist/aicc.min.js.map +1 -0
  3. package/dist/cross-frame-api.js +26 -11
  4. package/dist/cross-frame-api.js.map +1 -0
  5. package/dist/cross-frame-api.min.js +1 -1
  6. package/dist/cross-frame-api.min.js.map +1 -0
  7. package/dist/cross-frame-lms.js +16 -4
  8. package/dist/cross-frame-lms.js.map +1 -0
  9. package/dist/cross-frame-lms.min.js +1 -1
  10. package/dist/cross-frame-lms.min.js.map +1 -0
  11. package/dist/esm/aicc.js.map +1 -0
  12. package/dist/esm/aicc.min.js.map +1 -0
  13. package/dist/esm/cross-frame-api.js +115 -108
  14. package/dist/esm/cross-frame-api.js.map +1 -0
  15. package/dist/esm/cross-frame-api.min.js +1 -1
  16. package/dist/esm/cross-frame-api.min.js.map +1 -0
  17. package/dist/esm/cross-frame-lms.js +32 -30
  18. package/dist/esm/cross-frame-lms.js.map +1 -0
  19. package/dist/esm/cross-frame-lms.min.js +1 -1
  20. package/dist/esm/cross-frame-lms.min.js.map +1 -0
  21. package/dist/esm/scorm-again.js +761 -500
  22. package/dist/esm/scorm-again.js.map +1 -0
  23. package/dist/esm/scorm-again.min.js +1 -1
  24. package/dist/esm/scorm-again.min.js.map +1 -0
  25. package/dist/esm/scorm12.js +152 -373
  26. package/dist/esm/scorm12.js.map +1 -0
  27. package/dist/esm/scorm12.min.js +1 -1
  28. package/dist/esm/scorm12.min.js.map +1 -0
  29. package/dist/esm/scorm2004.js +539 -306
  30. package/dist/esm/scorm2004.js.map +1 -0
  31. package/dist/esm/scorm2004.min.js +1 -1
  32. package/dist/esm/scorm2004.min.js.map +1 -0
  33. package/dist/scorm-again.js +1162 -328
  34. package/dist/scorm-again.js.map +1 -0
  35. package/dist/scorm-again.min.js +1 -1
  36. package/dist/scorm-again.min.js.map +1 -0
  37. package/dist/scorm12.js +832 -71
  38. package/dist/scorm12.js.map +1 -0
  39. package/dist/scorm12.min.js +1 -1
  40. package/dist/scorm12.min.js.map +1 -0
  41. package/dist/scorm2004.js +1035 -286
  42. package/dist/scorm2004.js.map +1 -0
  43. package/dist/scorm2004.min.js +1 -1
  44. package/dist/scorm2004.min.js.map +1 -0
  45. package/dist/types/BaseAPI.d.ts +3 -3
  46. package/dist/types/interfaces/services.d.ts +3 -2
  47. package/dist/types/services/EventService.d.ts +3 -3
  48. package/package.json +30 -37
package/dist/scorm2004.js CHANGED
@@ -11,7 +11,7 @@ this.Scorm2004API = (function () {
11
11
  M: SECONDS_PER_MINUTE,
12
12
  S: SECONDS_PER_SECOND
13
13
  };
14
- const getSecondsAsISODuration = memoize(seconds => {
14
+ const getSecondsAsISODuration = seconds => {
15
15
  if (!seconds || seconds <= 0) {
16
16
  return "PT0S";
17
17
  }
@@ -37,7 +37,7 @@ this.Scorm2004API = (function () {
37
37
  }
38
38
  });
39
39
  return duration;
40
- });
40
+ };
41
41
  const getDurationAsSeconds = memoize((duration, durationRegex) => {
42
42
  if (typeof durationRegex === "string") {
43
43
  durationRegex = new RegExp(durationRegex);
@@ -198,6 +198,14 @@ this.Scorm2004API = (function () {
198
198
  };
199
199
  }
200
200
 
201
+ var __defProp$_ = Object.defineProperty;
202
+ var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, {
203
+ enumerable: true,
204
+ configurable: true,
205
+ writable: true,
206
+ value
207
+ }) : obj[key] = value;
208
+ var __publicField$_ = (obj, key, value) => __defNormalProp$_(obj, typeof key !== "symbol" ? key + "" : key, value);
201
209
  class BaseCMI {
202
210
  /**
203
211
  * Constructor for BaseCMI
@@ -209,8 +217,9 @@ this.Scorm2004API = (function () {
209
217
  * When true, getters can be accessed before the API is initialized, which is necessary
210
218
  * for serializing the CMI data structure to JSON format.
211
219
  */
212
- this.jsonString = false;
213
- this._initialized = false;
220
+ __publicField$_(this, "jsonString", false);
221
+ __publicField$_(this, "_cmi_element");
222
+ __publicField$_(this, "_initialized", false);
214
223
  this._cmi_element = cmi_element;
215
224
  }
216
225
  /**
@@ -228,6 +237,10 @@ this.Scorm2004API = (function () {
228
237
  }
229
238
  }
230
239
  class BaseRootCMI extends BaseCMI {
240
+ constructor() {
241
+ super(...arguments);
242
+ __publicField$_(this, "_start_time");
243
+ }
231
244
  /**
232
245
  * Start time of the session
233
246
  * @type {number | undefined}
@@ -248,9 +261,18 @@ this.Scorm2004API = (function () {
248
261
  }
249
262
  }
250
263
 
264
+ var __defProp$Z = Object.defineProperty;
265
+ var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, {
266
+ enumerable: true,
267
+ configurable: true,
268
+ writable: true,
269
+ value
270
+ }) : obj[key] = value;
271
+ var __publicField$Z = (obj, key, value) => __defNormalProp$Z(obj, typeof key !== "symbol" ? key + "" : key, value);
251
272
  class BaseScormValidationError extends Error {
252
273
  constructor(CMIElement, errorCode) {
253
274
  super(`${CMIElement} : ${errorCode.toString()}`);
275
+ __publicField$Z(this, "_errorCode");
254
276
  this._errorCode = errorCode;
255
277
  Object.setPrototypeOf(this, BaseScormValidationError.prototype);
256
278
  }
@@ -272,7 +294,8 @@ this.Scorm2004API = (function () {
272
294
  */
273
295
  constructor(CMIElement, errorCode, errorMessage, detailedMessage) {
274
296
  super(CMIElement, errorCode);
275
- this._detailedMessage = "";
297
+ __publicField$Z(this, "_errorMessage");
298
+ __publicField$Z(this, "_detailedMessage", "");
276
299
  this.message = `${CMIElement} : ${errorMessage}`;
277
300
  this._errorMessage = errorMessage;
278
301
  if (detailedMessage) {
@@ -577,6 +600,14 @@ this.Scorm2004API = (function () {
577
600
  DEPENDENCY_NOT_ESTABLISHED: 408
578
601
  };
579
602
 
603
+ var __defProp$Y = Object.defineProperty;
604
+ var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, {
605
+ enumerable: true,
606
+ configurable: true,
607
+ writable: true,
608
+ value
609
+ }) : obj[key] = value;
610
+ var __publicField$Y = (obj, key, value) => __defNormalProp$Y(obj, typeof key !== "symbol" ? key + "" : key, value);
580
611
  class CMIArray extends BaseCMI {
581
612
  /**
582
613
  * Constructor cmi *.n arrays
@@ -584,6 +615,10 @@ this.Scorm2004API = (function () {
584
615
  */
585
616
  constructor(params) {
586
617
  super(params.CMIElement);
618
+ __publicField$Y(this, "_errorCode");
619
+ __publicField$Y(this, "_errorClass");
620
+ __publicField$Y(this, "__children");
621
+ __publicField$Y(this, "childArray");
587
622
  this.__children = params.children;
588
623
  this._errorCode = params.errorCode ?? scorm12_errors.GENERAL;
589
624
  this._errorClass = params.errorClass || BaseScormValidationError;
@@ -1059,6 +1094,14 @@ this.Scorm2004API = (function () {
1059
1094
 
1060
1095
  const ValidLanguages = ["aa", "ab", "ae", "af", "ak", "am", "an", "ar", "as", "av", "ay", "az", "ba", "be", "bg", "bh", "bi", "bm", "bn", "bo", "br", "bs", "ca", "ce", "ch", "co", "cr", "cs", "cu", "cv", "cy", "da", "de", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fj", "fo", "fr", "fy", "ga", "gd", "gl", "gn", "gu", "gv", "ha", "he", "hi", "ho", "hr", "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik", "io", "is", "it", "iu", "ja", "jv", "ka", "kg", "ki", "kj", "kk", "kl", "km", "kn", "ko", "kr", "ks", "ku", "kv", "kw", "ky", "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv", "mg", "mh", "mi", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "na", "nb", "nd", "ne", "ng", "nl", "nn", "no", "nr", "nv", "ny", "oc", "oj", "om", "or", "os", "pa", "pi", "pl", "ps", "pt", "qu", "rm", "rn", "ro", "ru", "rw", "sa", "sc", "sd", "se", "sg", "sh", "si", "sk", "sl", "sm", "sn", "so", "sq", "sr", "ss", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "ti", "tk", "tl", "tn", "to", "tr", "ts", "tt", "tw", "ty", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "wo", "xh", "yi", "yo", "za", "zh", "zu", "aar", "abk", "ave", "afr", "aka", "amh", "arg", "ara", "asm", "ava", "aym", "aze", "bak", "bel", "bul", "bih", "bis", "bam", "ben", "tib", "bod", "bre", "bos", "cat", "che", "cha", "cos", "cre", "cze", "ces", "chu", "chv", "wel", "cym", "dan", "ger", "deu", "div", "dzo", "ewe", "gre", "ell", "eng", "epo", "spa", "est", "baq", "eus", "per", "fas", "ful", "fin", "fij", "fao", "fre", "fra", "fry", "gle", "gla", "glg", "grn", "guj", "glv", "hau", "heb", "hin", "hmo", "hrv", "hat", "hun", "arm", "hye", "her", "ina", "ind", "ile", "ibo", "iii", "ipk", "ido", "ice", "isl", "ita", "iku", "jpn", "jav", "geo", "kat", "kon", "kik", "kua", "kaz", "kal", "khm", "kan", "kor", "kau", "kas", "kur", "kom", "cor", "kir", "lat", "ltz", "lug", "lim", "lin", "lao", "lit", "lub", "lav", "mlg", "mah", "mao", "mri", "mac", "mkd", "mal", "mon", "mol", "mar", "may", "msa", "mlt", "bur", "mya", "nau", "nob", "nde", "nep", "ndo", "dut", "nld", "nno", "nor", "nbl", "nav", "nya", "oci", "oji", "orm", "ori", "oss", "pan", "pli", "pol", "pus", "por", "que", "roh", "run", "rum", "ron", "rus", "kin", "san", "srd", "snd", "sme", "sag", "slo", "sin", "slk", "slv", "smo", "sna", "som", "alb", "sqi", "srp", "ssw", "sot", "sun", "swe", "swa", "tam", "tel", "tgk", "tha", "tir", "tuk", "tgl", "tsn", "ton", "tur", "tso", "tat", "twi", "tah", "uig", "ukr", "urd", "uzb", "ven", "vie", "vol", "wln", "wol", "xho", "yid", "yor", "zha", "chi", "zho", "zul"];
1061
1096
 
1097
+ var __defProp$X = Object.defineProperty;
1098
+ var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, {
1099
+ enumerable: true,
1100
+ configurable: true,
1101
+ writable: true,
1102
+ value
1103
+ }) : obj[key] = value;
1104
+ var __publicField$X = (obj, key, value) => __defNormalProp$X(obj, typeof key !== "symbol" ? key + "" : key, value);
1062
1105
  class ScheduledCommit {
1063
1106
  /**
1064
1107
  * Constructor for ScheduledCommit
@@ -1067,7 +1110,10 @@ this.Scorm2004API = (function () {
1067
1110
  * @param {string} callback
1068
1111
  */
1069
1112
  constructor(API, when, callback) {
1070
- this._cancelled = false;
1113
+ __publicField$X(this, "_API");
1114
+ __publicField$X(this, "_cancelled", false);
1115
+ __publicField$X(this, "_timeout");
1116
+ __publicField$X(this, "_callback");
1071
1117
  this._API = API;
1072
1118
  this._timeout = setTimeout(this.wrapper.bind(this), when);
1073
1119
  this._callback = callback;
@@ -1095,6 +1141,14 @@ this.Scorm2004API = (function () {
1095
1141
 
1096
1142
  const HIDE_LMS_UI_TOKENS = ["continue", "previous", "exit", "exitAll", "abandon", "abandonAll", "suspendAll"];
1097
1143
 
1144
+ var __defProp$W = Object.defineProperty;
1145
+ var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, {
1146
+ enumerable: true,
1147
+ configurable: true,
1148
+ writable: true,
1149
+ value
1150
+ }) : obj[key] = value;
1151
+ var __publicField$W = (obj, key, value) => __defNormalProp$W(obj, typeof key !== "symbol" ? key + "" : key, value);
1098
1152
  var RuleConditionOperator = /* @__PURE__ */(RuleConditionOperator2 => {
1099
1153
  RuleConditionOperator2["NOT"] = "not";
1100
1154
  RuleConditionOperator2["AND"] = "and";
@@ -1127,10 +1181,10 @@ this.Scorm2004API = (function () {
1127
1181
  let operator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
1128
1182
  let parameters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : /* @__PURE__ */new Map();
1129
1183
  super("ruleCondition");
1130
- this._condition = "always" /* ALWAYS */;
1131
- this._operator = null;
1132
- this._parameters = /* @__PURE__ */new Map();
1133
- this._referencedObjective = null;
1184
+ __publicField$W(this, "_condition", "always" /* ALWAYS */);
1185
+ __publicField$W(this, "_operator", null);
1186
+ __publicField$W(this, "_parameters", /* @__PURE__ */new Map());
1187
+ __publicField$W(this, "_referencedObjective", null);
1134
1188
  this._condition = condition;
1135
1189
  this._operator = operator;
1136
1190
  this._parameters = parameters;
@@ -1401,9 +1455,9 @@ this.Scorm2004API = (function () {
1401
1455
  }
1402
1456
  };
1403
1457
  // Optional, overridable provider for current time (LMS may set via SequencingService)
1404
- _RuleCondition._now = () => /* @__PURE__ */new Date();
1458
+ __publicField$W(_RuleCondition, "_now", () => /* @__PURE__ */new Date());
1405
1459
  // Optional, overridable hook for getting elapsed seconds
1406
- _RuleCondition._getElapsedSecondsHook = void 0;
1460
+ __publicField$W(_RuleCondition, "_getElapsedSecondsHook");
1407
1461
  let RuleCondition = _RuleCondition;
1408
1462
  class SequencingRule extends BaseCMI {
1409
1463
  /**
@@ -1415,9 +1469,9 @@ this.Scorm2004API = (function () {
1415
1469
  let action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "skip";
1416
1470
  let conditionCombination = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "and";
1417
1471
  super("sequencingRule");
1418
- this._conditions = [];
1419
- this._action = "skip" /* SKIP */;
1420
- this._conditionCombination = "and" /* AND */;
1472
+ __publicField$W(this, "_conditions", []);
1473
+ __publicField$W(this, "_action", "skip" /* SKIP */);
1474
+ __publicField$W(this, "_conditionCombination", "and" /* AND */);
1421
1475
  this._action = action;
1422
1476
  this._conditionCombination = conditionCombination;
1423
1477
  }
@@ -1530,9 +1584,9 @@ this.Scorm2004API = (function () {
1530
1584
  */
1531
1585
  constructor() {
1532
1586
  super("sequencingRules");
1533
- this._preConditionRules = [];
1534
- this._exitConditionRules = [];
1535
- this._postConditionRules = [];
1587
+ __publicField$W(this, "_preConditionRules", []);
1588
+ __publicField$W(this, "_exitConditionRules", []);
1589
+ __publicField$W(this, "_postConditionRules", []);
1536
1590
  }
1537
1591
  /**
1538
1592
  * Called when the API needs to be reset
@@ -2302,6 +2356,14 @@ this.Scorm2004API = (function () {
2302
2356
  }
2303
2357
  }
2304
2358
 
2359
+ var __defProp$V = Object.defineProperty;
2360
+ var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, {
2361
+ enumerable: true,
2362
+ configurable: true,
2363
+ writable: true,
2364
+ value
2365
+ }) : obj[key] = value;
2366
+ var __publicField$V = (obj, key, value) => __defNormalProp$V(obj, typeof key !== "symbol" ? key + "" : key, value);
2305
2367
  var SequencingRequestType = /* @__PURE__ */(SequencingRequestType2 => {
2306
2368
  SequencingRequestType2["START"] = "start";
2307
2369
  SequencingRequestType2["RESUME_ALL"] = "resumeAll";
@@ -2330,6 +2392,10 @@ this.Scorm2004API = (function () {
2330
2392
  let targetActivity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2331
2393
  let exception = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
2332
2394
  let endSequencingSession = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
2395
+ __publicField$V(this, "deliveryRequest");
2396
+ __publicField$V(this, "targetActivity");
2397
+ __publicField$V(this, "exception");
2398
+ __publicField$V(this, "endSequencingSession");
2333
2399
  this.deliveryRequest = deliveryRequest;
2334
2400
  this.targetActivity = targetActivity;
2335
2401
  this.exception = exception;
@@ -2340,6 +2406,10 @@ this.Scorm2004API = (function () {
2340
2406
  constructor(identifiedActivity, deliverable) {
2341
2407
  let exception = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
2342
2408
  let endSequencingSession = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
2409
+ __publicField$V(this, "identifiedActivity");
2410
+ __publicField$V(this, "deliverable");
2411
+ __publicField$V(this, "exception");
2412
+ __publicField$V(this, "endSequencingSession");
2343
2413
  this.identifiedActivity = identifiedActivity;
2344
2414
  this.deliverable = deliverable;
2345
2415
  this.exception = exception;
@@ -2349,6 +2419,8 @@ this.Scorm2004API = (function () {
2349
2419
  class ChoiceTraversalResult {
2350
2420
  constructor(activity) {
2351
2421
  let exception = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2422
+ __publicField$V(this, "activity");
2423
+ __publicField$V(this, "exception");
2352
2424
  this.activity = activity;
2353
2425
  this.exception = exception;
2354
2426
  }
@@ -2359,9 +2431,19 @@ this.Scorm2004API = (function () {
2359
2431
  return FlowSubprocessMode2;
2360
2432
  })(FlowSubprocessMode || {});
2361
2433
 
2434
+ var __defProp$U = Object.defineProperty;
2435
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, {
2436
+ enumerable: true,
2437
+ configurable: true,
2438
+ writable: true,
2439
+ value
2440
+ }) : obj[key] = value;
2441
+ var __publicField$U = (obj, key, value) => __defNormalProp$U(obj, typeof key !== "symbol" ? key + "" : key, value);
2362
2442
  class RuleEvaluationEngine {
2363
2443
  constructor() {
2364
2444
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2445
+ __publicField$U(this, "now");
2446
+ __publicField$U(this, "getAttemptElapsedSecondsHook");
2365
2447
  this.now = options.now || (() => /* @__PURE__ */new Date());
2366
2448
  this.getAttemptElapsedSecondsHook = options.getAttemptElapsedSecondsHook || null;
2367
2449
  }
@@ -2632,6 +2714,14 @@ this.Scorm2004API = (function () {
2632
2714
  }
2633
2715
  }
2634
2716
 
2717
+ var __defProp$T = Object.defineProperty;
2718
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, {
2719
+ enumerable: true,
2720
+ configurable: true,
2721
+ writable: true,
2722
+ value
2723
+ }) : obj[key] = value;
2724
+ var __publicField$T = (obj, key, value) => __defNormalProp$T(obj, typeof key !== "symbol" ? key + "" : key, value);
2635
2725
  var SelectionTiming = /* @__PURE__ */(SelectionTiming2 => {
2636
2726
  SelectionTiming2["NEVER"] = "never";
2637
2727
  SelectionTiming2["ONCE"] = "once";
@@ -2651,36 +2741,36 @@ this.Scorm2004API = (function () {
2651
2741
  constructor() {
2652
2742
  super("sequencingControls");
2653
2743
  // Sequencing Control Modes
2654
- this._enabled = true;
2655
- this._choice = true;
2656
- this._choiceExit = true;
2744
+ __publicField$T(this, "_enabled", true);
2745
+ __publicField$T(this, "_choice", true);
2746
+ __publicField$T(this, "_choiceExit", true);
2657
2747
  // Per SCORM 2004 Sequencing & Navigation, flow defaults to true
2658
- this._flow = true;
2659
- this._forwardOnly = false;
2660
- this._useCurrentAttemptObjectiveInfo = true;
2661
- this._useCurrentAttemptProgressInfo = true;
2748
+ __publicField$T(this, "_flow", true);
2749
+ __publicField$T(this, "_forwardOnly", false);
2750
+ __publicField$T(this, "_useCurrentAttemptObjectiveInfo", true);
2751
+ __publicField$T(this, "_useCurrentAttemptProgressInfo", true);
2662
2752
  // Constrain Choice Controls
2663
- this._preventActivation = false;
2664
- this._constrainChoice = false;
2753
+ __publicField$T(this, "_preventActivation", false);
2754
+ __publicField$T(this, "_constrainChoice", false);
2665
2755
  // Rule-driven traversal limiter (e.g., post-condition stopForwardTraversal)
2666
- this._stopForwardTraversal = false;
2756
+ __publicField$T(this, "_stopForwardTraversal", false);
2667
2757
  // Rollup Controls
2668
- this._rollupObjectiveSatisfied = true;
2669
- this._rollupProgressCompletion = true;
2670
- this._objectiveMeasureWeight = 1;
2758
+ __publicField$T(this, "_rollupObjectiveSatisfied", true);
2759
+ __publicField$T(this, "_rollupProgressCompletion", true);
2760
+ __publicField$T(this, "_objectiveMeasureWeight", 1);
2671
2761
  // Selection Controls
2672
- this._selectionTiming = "never" /* NEVER */;
2673
- this._selectCount = null;
2674
- this._selectionCountStatus = false;
2675
- this._randomizeChildren = false;
2762
+ __publicField$T(this, "_selectionTiming", "never" /* NEVER */);
2763
+ __publicField$T(this, "_selectCount", null);
2764
+ __publicField$T(this, "_selectionCountStatus", false);
2765
+ __publicField$T(this, "_randomizeChildren", false);
2676
2766
  // Randomization Controls
2677
- this._randomizationTiming = "never" /* NEVER */;
2678
- this._reorderChildren = false;
2767
+ __publicField$T(this, "_randomizationTiming", "never" /* NEVER */);
2768
+ __publicField$T(this, "_reorderChildren", false);
2679
2769
  // Auto-completion/satisfaction controls
2680
- this._completionSetByContent = false;
2681
- this._objectiveSetByContent = false;
2770
+ __publicField$T(this, "_completionSetByContent", false);
2771
+ __publicField$T(this, "_objectiveSetByContent", false);
2682
2772
  // Delivery Controls
2683
- this._tracked = true;
2773
+ __publicField$T(this, "_tracked", true);
2684
2774
  }
2685
2775
  /**
2686
2776
  * Reset the sequencing controls to their default values
@@ -4051,7 +4141,46 @@ this.Scorm2004API = (function () {
4051
4141
  }
4052
4142
  }
4053
4143
 
4144
+ var __defProp$S = Object.defineProperty;
4145
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, {
4146
+ enumerable: true,
4147
+ configurable: true,
4148
+ writable: true,
4149
+ value
4150
+ }) : obj[key] = value;
4151
+ var __publicField$S = (obj, key, value) => __defNormalProp$S(obj, typeof key !== "symbol" ? key + "" : key, value);
4054
4152
  class SequencingProcess {
4153
+ constructor(activityTree, _sequencingRules, _sequencingControls) {
4154
+ let options = arguments.length > 4 ? arguments[4] : undefined;
4155
+ __publicField$S(this, "activityTree");
4156
+ // Extracted services
4157
+ __publicField$S(this, "treeQueries");
4158
+ __publicField$S(this, "constraintValidator");
4159
+ __publicField$S(this, "ruleEngine");
4160
+ __publicField$S(this, "traversalService");
4161
+ // Request handlers
4162
+ __publicField$S(this, "flowHandler");
4163
+ __publicField$S(this, "choiceHandler");
4164
+ __publicField$S(this, "exitHandler");
4165
+ __publicField$S(this, "retryHandler");
4166
+ // Time function (exposed for testing)
4167
+ __publicField$S(this, "_now");
4168
+ __publicField$S(this, "_getAttemptElapsedSecondsHook");
4169
+ this.activityTree = activityTree;
4170
+ this._now = options?.now || (() => /* @__PURE__ */new Date());
4171
+ this._getAttemptElapsedSecondsHook = options?.getAttemptElapsedSeconds;
4172
+ this.treeQueries = new ActivityTreeQueries(activityTree);
4173
+ this.ruleEngine = new RuleEvaluationEngine({
4174
+ now: this._now,
4175
+ getAttemptElapsedSecondsHook: this._getAttemptElapsedSecondsHook
4176
+ });
4177
+ this.constraintValidator = new ChoiceConstraintValidator(activityTree, this.treeQueries);
4178
+ this.traversalService = new FlowTraversalService(activityTree, this.ruleEngine);
4179
+ this.flowHandler = new FlowRequestHandler(activityTree, this.traversalService);
4180
+ this.choiceHandler = new ChoiceRequestHandler(activityTree, this.constraintValidator, this.traversalService, this.treeQueries);
4181
+ this.exitHandler = new ExitRequestHandler(activityTree, this.ruleEngine);
4182
+ this.retryHandler = new RetryRequestHandler(activityTree, this.traversalService);
4183
+ }
4055
4184
  /**
4056
4185
  * Get/set the current time function (used for testing time-dependent logic)
4057
4186
  */
@@ -4088,23 +4217,6 @@ this.Scorm2004API = (function () {
4088
4217
  this.choiceHandler = new ChoiceRequestHandler(this.activityTree, this.constraintValidator, this.traversalService, this.treeQueries);
4089
4218
  this.retryHandler = new RetryRequestHandler(this.activityTree, this.traversalService);
4090
4219
  }
4091
- constructor(activityTree, _sequencingRules, _sequencingControls) {
4092
- let options = arguments.length > 4 ? arguments[4] : undefined;
4093
- this.activityTree = activityTree;
4094
- this._now = options?.now || (() => /* @__PURE__ */new Date());
4095
- this._getAttemptElapsedSecondsHook = options?.getAttemptElapsedSeconds;
4096
- this.treeQueries = new ActivityTreeQueries(activityTree);
4097
- this.ruleEngine = new RuleEvaluationEngine({
4098
- now: this._now,
4099
- getAttemptElapsedSecondsHook: this._getAttemptElapsedSecondsHook
4100
- });
4101
- this.constraintValidator = new ChoiceConstraintValidator(activityTree, this.treeQueries);
4102
- this.traversalService = new FlowTraversalService(activityTree, this.ruleEngine);
4103
- this.flowHandler = new FlowRequestHandler(activityTree, this.traversalService);
4104
- this.choiceHandler = new ChoiceRequestHandler(activityTree, this.constraintValidator, this.traversalService, this.treeQueries);
4105
- this.exitHandler = new ExitRequestHandler(activityTree, this.ruleEngine);
4106
- this.retryHandler = new RetryRequestHandler(activityTree, this.traversalService);
4107
- }
4108
4220
  /**
4109
4221
  * Main Sequencing Request Process (SB.2.12)
4110
4222
  * This is the main entry point for all navigation requests
@@ -4320,11 +4432,22 @@ this.Scorm2004API = (function () {
4320
4432
  }
4321
4433
  }
4322
4434
 
4435
+ var __defProp$R = Object.defineProperty;
4436
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, {
4437
+ enumerable: true,
4438
+ configurable: true,
4439
+ writable: true,
4440
+ value
4441
+ }) : obj[key] = value;
4442
+ var __publicField$R = (obj, key, value) => __defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
4323
4443
  class ActivityDeliveryService {
4324
4444
  constructor(eventService, loggingService) {
4325
4445
  let callbacks = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
4326
- this.currentDeliveredActivity = null;
4327
- this.pendingDelivery = null;
4446
+ __publicField$R(this, "eventService");
4447
+ __publicField$R(this, "loggingService");
4448
+ __publicField$R(this, "callbacks");
4449
+ __publicField$R(this, "currentDeliveredActivity", null);
4450
+ __publicField$R(this, "pendingDelivery", null);
4328
4451
  this.eventService = eventService;
4329
4452
  this.loggingService = loggingService;
4330
4453
  this.callbacks = callbacks;
@@ -4412,6 +4535,14 @@ this.Scorm2004API = (function () {
4412
4535
  }
4413
4536
  }
4414
4537
 
4538
+ var __defProp$Q = Object.defineProperty;
4539
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, {
4540
+ enumerable: true,
4541
+ configurable: true,
4542
+ writable: true,
4543
+ value
4544
+ }) : obj[key] = value;
4545
+ var __publicField$Q = (obj, key, value) => __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
4415
4546
  class AsynchronousHttpService {
4416
4547
  /**
4417
4548
  * Constructor for AsynchronousHttpService
@@ -4419,6 +4550,8 @@ this.Scorm2004API = (function () {
4419
4550
  * @param {ErrorCode} error_codes - The error codes object
4420
4551
  */
4421
4552
  constructor(settings, error_codes) {
4553
+ __publicField$Q(this, "settings");
4554
+ __publicField$Q(this, "error_codes");
4422
4555
  this.settings = settings;
4423
4556
  this.error_codes = error_codes;
4424
4557
  }
@@ -4610,6 +4743,14 @@ this.Scorm2004API = (function () {
4610
4743
  }
4611
4744
  }
4612
4745
 
4746
+ var __defProp$P = Object.defineProperty;
4747
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, {
4748
+ enumerable: true,
4749
+ configurable: true,
4750
+ writable: true,
4751
+ value
4752
+ }) : obj[key] = value;
4753
+ var __publicField$P = (obj, key, value) => __defNormalProp$P(obj, key + "" , value);
4613
4754
  const TARGET_ATTRIBUTE_PREFIX = "{target=";
4614
4755
  function getErrorCode(errorCodes, key) {
4615
4756
  const code = errorCodes[key];
@@ -4623,6 +4764,7 @@ this.Scorm2004API = (function () {
4623
4764
  }
4624
4765
  class CMIValueAccessService {
4625
4766
  constructor(context) {
4767
+ __publicField$P(this, "context");
4626
4768
  this.context = context;
4627
4769
  }
4628
4770
  /**
@@ -4950,12 +5092,21 @@ this.Scorm2004API = (function () {
4950
5092
  }
4951
5093
  }
4952
5094
 
4953
- class LoggingService {
5095
+ var __defProp$O = Object.defineProperty;
5096
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, {
5097
+ enumerable: true,
5098
+ configurable: true,
5099
+ writable: true,
5100
+ value
5101
+ }) : obj[key] = value;
5102
+ var __publicField$O = (obj, key, value) => __defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
5103
+ const _LoggingService = class _LoggingService {
4954
5104
  /**
4955
5105
  * Private constructor to prevent direct instantiation
4956
5106
  */
4957
5107
  constructor() {
4958
- this._logLevel = LogLevelEnum.ERROR;
5108
+ __publicField$O(this, "_logLevel", LogLevelEnum.ERROR);
5109
+ __publicField$O(this, "_logHandler");
4959
5110
  this._logHandler = defaultLogHandler;
4960
5111
  }
4961
5112
  /**
@@ -4964,10 +5115,10 @@ this.Scorm2004API = (function () {
4964
5115
  * @returns {LoggingService} The singleton instance
4965
5116
  */
4966
5117
  static getInstance() {
4967
- if (!LoggingService._instance) {
4968
- LoggingService._instance = new LoggingService();
5118
+ if (!_LoggingService._instance) {
5119
+ _LoggingService._instance = new _LoggingService();
4969
5120
  }
4970
- return LoggingService._instance;
5121
+ return _LoggingService._instance;
4971
5122
  }
4972
5123
  /**
4973
5124
  * Set the log level
@@ -5103,11 +5254,21 @@ this.Scorm2004API = (function () {
5103
5254
  return LogLevelEnum.ERROR;
5104
5255
  }
5105
5256
  }
5106
- }
5257
+ };
5258
+ __publicField$O(_LoggingService, "_instance");
5259
+ let LoggingService = _LoggingService;
5107
5260
  function getLoggingService() {
5108
5261
  return LoggingService.getInstance();
5109
5262
  }
5110
5263
 
5264
+ var __defProp$N = Object.defineProperty;
5265
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, {
5266
+ enumerable: true,
5267
+ configurable: true,
5268
+ writable: true,
5269
+ value
5270
+ }) : obj[key] = value;
5271
+ var __publicField$N = (obj, key, value) => __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
5111
5272
  class ErrorHandlingService {
5112
5273
  /**
5113
5274
  * Constructor for ErrorHandlingService
@@ -5118,8 +5279,12 @@ this.Scorm2004API = (function () {
5118
5279
  * @param {ILoggingService} loggingService - Optional logging service instance
5119
5280
  */
5120
5281
  constructor(errorCodes, apiLog, getLmsErrorMessageDetails, loggingService) {
5121
- this._lastErrorCode = "0";
5122
- this._lastDiagnostic = "";
5282
+ __publicField$N(this, "_lastErrorCode", "0");
5283
+ __publicField$N(this, "_lastDiagnostic", "");
5284
+ __publicField$N(this, "_errorCodes");
5285
+ __publicField$N(this, "_apiLog");
5286
+ __publicField$N(this, "_getLmsErrorMessageDetails");
5287
+ __publicField$N(this, "_loggingService");
5123
5288
  this._errorCodes = errorCodes;
5124
5289
  this._apiLog = apiLog;
5125
5290
  this._getLmsErrorMessageDetails = getLmsErrorMessageDetails;
@@ -5261,6 +5426,14 @@ ${stackTrace}`);
5261
5426
  return new ErrorHandlingService(errorCodes, apiLog, getLmsErrorMessageDetails, loggingService);
5262
5427
  }
5263
5428
 
5429
+ var __defProp$M = Object.defineProperty;
5430
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, {
5431
+ enumerable: true,
5432
+ configurable: true,
5433
+ writable: true,
5434
+ value
5435
+ }) : obj[key] = value;
5436
+ var __publicField$M = (obj, key, value) => __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
5264
5437
  class EventService {
5265
5438
  /**
5266
5439
  * Constructor for EventService
@@ -5268,9 +5441,11 @@ ${stackTrace}`);
5268
5441
  */
5269
5442
  constructor(apiLog) {
5270
5443
  // Map of function names to listeners for faster lookups
5271
- this.listenerMap = /* @__PURE__ */new Map();
5444
+ __publicField$M(this, "listenerMap", /* @__PURE__ */new Map());
5272
5445
  // Total count of listeners for logging
5273
- this.listenerCount = 0;
5446
+ __publicField$M(this, "listenerCount", 0);
5447
+ // Function to log API messages
5448
+ __publicField$M(this, "apiLog");
5274
5449
  this.apiLog = apiLog;
5275
5450
  }
5276
5451
  /**
@@ -5424,6 +5599,14 @@ ${stackTrace}`);
5424
5599
  }
5425
5600
  }
5426
5601
 
5602
+ var __defProp$L = Object.defineProperty;
5603
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, {
5604
+ enumerable: true,
5605
+ configurable: true,
5606
+ writable: true,
5607
+ value
5608
+ }) : obj[key] = value;
5609
+ var __publicField$L = (obj, key, value) => __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
5427
5610
  class OfflineStorageService {
5428
5611
  /**
5429
5612
  * Constructor for OfflineStorageService
@@ -5433,10 +5616,14 @@ ${stackTrace}`);
5433
5616
  */
5434
5617
  constructor(settings, error_codes, apiLog) {
5435
5618
  this.apiLog = apiLog;
5436
- this.storeName = "scorm_again_offline_data";
5437
- this.syncQueue = "scorm_again_sync_queue";
5438
- this.isOnline = navigator.onLine;
5439
- this.syncInProgress = false;
5619
+ __publicField$L(this, "settings");
5620
+ __publicField$L(this, "error_codes");
5621
+ __publicField$L(this, "storeName", "scorm_again_offline_data");
5622
+ __publicField$L(this, "syncQueue", "scorm_again_sync_queue");
5623
+ __publicField$L(this, "isOnline", navigator.onLine);
5624
+ __publicField$L(this, "syncInProgress", false);
5625
+ __publicField$L(this, "boundOnlineStatusChangeHandler");
5626
+ __publicField$L(this, "boundCustomNetworkStatusHandler");
5440
5627
  this.settings = settings;
5441
5628
  this.error_codes = error_codes;
5442
5629
  this.boundOnlineStatusChangeHandler = this.handleOnlineStatusChange.bind(this);
@@ -5680,7 +5867,9 @@ ${stackTrace}`);
5680
5867
  localStorage.setItem(key, JSON.stringify(data));
5681
5868
  } catch (error) {
5682
5869
  if (error instanceof DOMException && error.name === "QuotaExceededError") {
5683
- throw new Error("storage quota exceeded - localStorage is full");
5870
+ throw new Error("storage quota exceeded - localStorage is full", {
5871
+ cause: error
5872
+ });
5684
5873
  }
5685
5874
  throw error;
5686
5875
  }
@@ -5761,6 +5950,14 @@ ${stackTrace}`);
5761
5950
  return checkValidRange(CMIElement, value, rangePattern, scorm2004_errors.VALUE_OUT_OF_RANGE, Scorm2004ValidationError);
5762
5951
  }
5763
5952
 
5953
+ var __defProp$K = Object.defineProperty;
5954
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, {
5955
+ enumerable: true,
5956
+ configurable: true,
5957
+ writable: true,
5958
+ value
5959
+ }) : obj[key] = value;
5960
+ var __publicField$K = (obj, key, value) => __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
5764
5961
  var RollupActionType = /* @__PURE__ */(RollupActionType2 => {
5765
5962
  RollupActionType2["SATISFIED"] = "satisfied";
5766
5963
  RollupActionType2["NOT_SATISFIED"] = "notSatisfied";
@@ -5786,8 +5983,8 @@ ${stackTrace}`);
5786
5983
  let condition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "always";
5787
5984
  let parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : /* @__PURE__ */new Map();
5788
5985
  super("rollupCondition");
5789
- this._condition = "always" /* ALWAYS */;
5790
- this._parameters = /* @__PURE__ */new Map();
5986
+ __publicField$K(this, "_condition", "always" /* ALWAYS */);
5987
+ __publicField$K(this, "_parameters", /* @__PURE__ */new Map());
5791
5988
  this._condition = condition;
5792
5989
  this._parameters = parameters;
5793
5990
  }
@@ -5890,11 +6087,11 @@ ${stackTrace}`);
5890
6087
  let minimumCount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
5891
6088
  let minimumPercent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
5892
6089
  super("rollupRule");
5893
- this._conditions = [];
5894
- this._action = "satisfied" /* SATISFIED */;
5895
- this._consideration = "all" /* ALL */;
5896
- this._minimumCount = 0;
5897
- this._minimumPercent = 0;
6090
+ __publicField$K(this, "_conditions", []);
6091
+ __publicField$K(this, "_action", "satisfied" /* SATISFIED */);
6092
+ __publicField$K(this, "_consideration", "all" /* ALL */);
6093
+ __publicField$K(this, "_minimumCount", 0);
6094
+ __publicField$K(this, "_minimumPercent", 0);
5898
6095
  this._action = action;
5899
6096
  this._consideration = consideration;
5900
6097
  this._minimumCount = minimumCount;
@@ -6050,7 +6247,7 @@ ${stackTrace}`);
6050
6247
  */
6051
6248
  constructor() {
6052
6249
  super("rollupRules");
6053
- this._rules = [];
6250
+ __publicField$K(this, "_rules", []);
6054
6251
  }
6055
6252
  /**
6056
6253
  * Called when the API needs to be reset
@@ -6233,24 +6430,38 @@ ${stackTrace}`);
6233
6430
  }
6234
6431
  }
6235
6432
 
6433
+ var __defProp$J = Object.defineProperty;
6434
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, {
6435
+ enumerable: true,
6436
+ configurable: true,
6437
+ writable: true,
6438
+ value
6439
+ }) : obj[key] = value;
6440
+ var __publicField$J = (obj, key, value) => __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
6236
6441
  class ActivityObjective {
6237
6442
  constructor(id) {
6238
6443
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6239
- this._satisfiedStatus = false;
6240
- this._satisfiedStatusKnown = false;
6444
+ __publicField$J(this, "_id");
6445
+ __publicField$J(this, "_description");
6446
+ __publicField$J(this, "_satisfiedByMeasure");
6447
+ __publicField$J(this, "_minNormalizedMeasure");
6448
+ __publicField$J(this, "_mapInfo");
6449
+ __publicField$J(this, "_isPrimary");
6450
+ __publicField$J(this, "_satisfiedStatus", false);
6451
+ __publicField$J(this, "_satisfiedStatusKnown", false);
6241
6452
  // Note: measureStatus has no dirty flag because it is not synchronized to global
6242
6453
  // objectives. It serves as a validity gate for other synced properties.
6243
- this._measureStatus = false;
6244
- this._normalizedMeasure = 0;
6245
- this._progressMeasure = 0;
6246
- this._progressMeasureStatus = false;
6247
- this._completionStatus = CompletionStatus.UNKNOWN;
6248
- this._progressStatus = false;
6454
+ __publicField$J(this, "_measureStatus", false);
6455
+ __publicField$J(this, "_normalizedMeasure", 0);
6456
+ __publicField$J(this, "_progressMeasure", 0);
6457
+ __publicField$J(this, "_progressMeasureStatus", false);
6458
+ __publicField$J(this, "_completionStatus", CompletionStatus.UNKNOWN);
6459
+ __publicField$J(this, "_progressStatus", false);
6249
6460
  // Dirty flags for tracking which properties have been modified locally
6250
- this._satisfiedStatusDirty = false;
6251
- this._normalizedMeasureDirty = false;
6252
- this._completionStatusDirty = false;
6253
- this._progressMeasureDirty = false;
6461
+ __publicField$J(this, "_satisfiedStatusDirty", false);
6462
+ __publicField$J(this, "_normalizedMeasureDirty", false);
6463
+ __publicField$J(this, "_completionStatusDirty", false);
6464
+ __publicField$J(this, "_progressMeasureDirty", false);
6254
6465
  this._id = id;
6255
6466
  this._description = options.description ?? null;
6256
6467
  this._satisfiedByMeasure = options.satisfiedByMeasure ?? false;
@@ -6447,87 +6658,90 @@ ${stackTrace}`);
6447
6658
  let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
6448
6659
  let title = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
6449
6660
  super("activity");
6450
- this._id = "";
6451
- this._title = "";
6452
- this._children = [];
6453
- this._parent = null;
6454
- this._isVisible = true;
6455
- this._isActive = false;
6456
- this._isSuspended = false;
6457
- this._isCompleted = false;
6458
- this._completionStatus = CompletionStatus.UNKNOWN;
6459
- this._successStatus = SuccessStatus.UNKNOWN;
6460
- this._attemptCount = 0;
6461
- this._attemptCompletionAmount = 0;
6462
- this._attemptAbsoluteDuration = "PT0H0M0S";
6463
- this._attemptExperiencedDuration = "PT0H0M0S";
6464
- this._activityAbsoluteDuration = "PT0H0M0S";
6465
- this._activityExperiencedDuration = "PT0H0M0S";
6661
+ __publicField$J(this, "_id", "");
6662
+ __publicField$J(this, "_title", "");
6663
+ __publicField$J(this, "_children", []);
6664
+ __publicField$J(this, "_parent", null);
6665
+ __publicField$J(this, "_isVisible", true);
6666
+ __publicField$J(this, "_isActive", false);
6667
+ __publicField$J(this, "_isSuspended", false);
6668
+ __publicField$J(this, "_isCompleted", false);
6669
+ __publicField$J(this, "_completionStatus", CompletionStatus.UNKNOWN);
6670
+ __publicField$J(this, "_successStatus", SuccessStatus.UNKNOWN);
6671
+ __publicField$J(this, "_attemptCount", 0);
6672
+ __publicField$J(this, "_attemptCompletionAmount", 0);
6673
+ __publicField$J(this, "_attemptAbsoluteDuration", "PT0H0M0S");
6674
+ __publicField$J(this, "_attemptExperiencedDuration", "PT0H0M0S");
6675
+ __publicField$J(this, "_activityAbsoluteDuration", "PT0H0M0S");
6676
+ __publicField$J(this, "_activityExperiencedDuration", "PT0H0M0S");
6466
6677
  // Duration tracking fields (separate from limits) - actual calculated values
6467
- this._attemptAbsoluteDurationValue = "PT0H0M0S";
6468
- this._attemptExperiencedDurationValue = "PT0H0M0S";
6469
- this._activityAbsoluteDurationValue = "PT0H0M0S";
6470
- this._activityExperiencedDurationValue = "PT0H0M0S";
6678
+ __publicField$J(this, "_attemptAbsoluteDurationValue", "PT0H0M0S");
6679
+ __publicField$J(this, "_attemptExperiencedDurationValue", "PT0H0M0S");
6680
+ __publicField$J(this, "_activityAbsoluteDurationValue", "PT0H0M0S");
6681
+ __publicField$J(this, "_activityExperiencedDurationValue", "PT0H0M0S");
6471
6682
  // Timestamp tracking for duration calculation
6472
- this._activityStartTimestampUtc = null;
6473
- this._attemptStartTimestampUtc = null;
6474
- this._activityEndedDate = null;
6475
- this._objectiveSatisfiedStatus = false;
6476
- this._objectiveSatisfiedStatusKnown = false;
6477
- this._objectiveMeasureStatus = false;
6478
- this._objectiveNormalizedMeasure = 0;
6479
- this._scaledPassingScore = 0.7;
6683
+ __publicField$J(this, "_activityStartTimestampUtc", null);
6684
+ __publicField$J(this, "_attemptStartTimestampUtc", null);
6685
+ __publicField$J(this, "_activityEndedDate", null);
6686
+ __publicField$J(this, "_objectiveSatisfiedStatus", false);
6687
+ __publicField$J(this, "_objectiveSatisfiedStatusKnown", false);
6688
+ __publicField$J(this, "_objectiveMeasureStatus", false);
6689
+ __publicField$J(this, "_objectiveNormalizedMeasure", 0);
6690
+ __publicField$J(this, "_scaledPassingScore", 0.7);
6480
6691
  // Default passing score
6481
6692
  // Dirty flags for tracking which activity-level objective properties have been modified locally
6482
- this._objectiveSatisfiedStatusDirty = false;
6483
- this._objectiveNormalizedMeasureDirty = false;
6484
- this._objectiveMeasureStatusDirty = false;
6485
- this._progressMeasure = 0;
6486
- this._progressMeasureStatus = false;
6487
- this._location = "";
6488
- this._attemptAbsoluteStartTime = "";
6489
- this._learnerPrefs = null;
6490
- this._activityAttemptActive = false;
6491
- this._isHiddenFromChoice = false;
6492
- this._isAvailable = true;
6493
- this._hideLmsUi = [];
6494
- this._auxiliaryResources = [];
6495
- this._attemptLimit = null;
6496
- this._attemptAbsoluteDurationLimit = null;
6497
- this._activityAbsoluteDurationLimit = null;
6498
- this._timeLimitAction = null;
6499
- this._timeLimitDuration = null;
6500
- this._beginTimeLimit = null;
6501
- this._endTimeLimit = null;
6502
- this._launchData = "";
6503
- this._credit = "credit";
6504
- this._maxTimeAllowed = "";
6505
- this._completionThreshold = "";
6506
- this._processedChildren = null;
6507
- this._isNewAttempt = false;
6508
- this._primaryObjective = null;
6509
- this._objectives = [];
6510
- this._rollupConsiderations = {
6693
+ __publicField$J(this, "_objectiveSatisfiedStatusDirty", false);
6694
+ __publicField$J(this, "_objectiveNormalizedMeasureDirty", false);
6695
+ __publicField$J(this, "_objectiveMeasureStatusDirty", false);
6696
+ __publicField$J(this, "_progressMeasure", 0);
6697
+ __publicField$J(this, "_progressMeasureStatus", false);
6698
+ __publicField$J(this, "_location", "");
6699
+ __publicField$J(this, "_attemptAbsoluteStartTime", "");
6700
+ __publicField$J(this, "_learnerPrefs", null);
6701
+ __publicField$J(this, "_activityAttemptActive", false);
6702
+ __publicField$J(this, "_isHiddenFromChoice", false);
6703
+ __publicField$J(this, "_isAvailable", true);
6704
+ __publicField$J(this, "_hideLmsUi", []);
6705
+ __publicField$J(this, "_auxiliaryResources", []);
6706
+ __publicField$J(this, "_attemptLimit", null);
6707
+ __publicField$J(this, "_attemptAbsoluteDurationLimit", null);
6708
+ __publicField$J(this, "_activityAbsoluteDurationLimit", null);
6709
+ __publicField$J(this, "_timeLimitAction", null);
6710
+ __publicField$J(this, "_timeLimitDuration", null);
6711
+ __publicField$J(this, "_beginTimeLimit", null);
6712
+ __publicField$J(this, "_endTimeLimit", null);
6713
+ __publicField$J(this, "_launchData", "");
6714
+ __publicField$J(this, "_credit", "credit");
6715
+ __publicField$J(this, "_maxTimeAllowed", "");
6716
+ __publicField$J(this, "_completionThreshold", "");
6717
+ __publicField$J(this, "_sequencingControls");
6718
+ __publicField$J(this, "_sequencingRules");
6719
+ __publicField$J(this, "_rollupRules");
6720
+ __publicField$J(this, "_processedChildren", null);
6721
+ __publicField$J(this, "_isNewAttempt", false);
6722
+ __publicField$J(this, "_primaryObjective", null);
6723
+ __publicField$J(this, "_objectives", []);
6724
+ __publicField$J(this, "_rollupConsiderations", {
6511
6725
  requiredForSatisfied: "always",
6512
6726
  requiredForNotSatisfied: "always",
6513
6727
  requiredForCompleted: "always",
6514
6728
  requiredForIncomplete: "always",
6515
6729
  measureSatisfactionIfActive: true
6516
- };
6730
+ });
6517
6731
  // Individual rollup consideration properties for this activity (RB.1.4.2)
6518
6732
  // These determine when THIS activity is included in parent rollup calculations
6519
- this._requiredForSatisfied = "always";
6520
- this._requiredForNotSatisfied = "always";
6521
- this._requiredForCompleted = "always";
6522
- this._requiredForIncomplete = "always";
6523
- this._wasSkipped = false;
6524
- this._attemptProgressStatus = false;
6525
- this._wasAutoCompleted = false;
6526
- this._wasAutoSatisfied = false;
6527
- this._completedByMeasure = false;
6528
- this._minProgressMeasure = 1;
6529
- this._progressWeight = 1;
6530
- this._attemptCompletionAmountStatus = false;
6733
+ __publicField$J(this, "_requiredForSatisfied", "always");
6734
+ __publicField$J(this, "_requiredForNotSatisfied", "always");
6735
+ __publicField$J(this, "_requiredForCompleted", "always");
6736
+ __publicField$J(this, "_requiredForIncomplete", "always");
6737
+ __publicField$J(this, "_wasSkipped", false);
6738
+ __publicField$J(this, "_attemptProgressStatus", false);
6739
+ __publicField$J(this, "_wasAutoCompleted", false);
6740
+ __publicField$J(this, "_wasAutoSatisfied", false);
6741
+ __publicField$J(this, "_completedByMeasure", false);
6742
+ __publicField$J(this, "_minProgressMeasure", 1);
6743
+ __publicField$J(this, "_progressWeight", 1);
6744
+ __publicField$J(this, "_attemptCompletionAmountStatus", false);
6531
6745
  this._id = id;
6532
6746
  this._title = title;
6533
6747
  this._sequencingControls = new SequencingControls();
@@ -8209,6 +8423,14 @@ ${stackTrace}`);
8209
8423
  }
8210
8424
  }
8211
8425
 
8426
+ var __defProp$I = Object.defineProperty;
8427
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, {
8428
+ enumerable: true,
8429
+ configurable: true,
8430
+ writable: true,
8431
+ value
8432
+ }) : obj[key] = value;
8433
+ var __publicField$I = (obj, key, value) => __defNormalProp$I(obj, key + "" , value);
8212
8434
  class RollupRuleEvaluator {
8213
8435
  /**
8214
8436
  * Create a new RollupRuleEvaluator
@@ -8216,6 +8438,7 @@ ${stackTrace}`);
8216
8438
  * @param childFilter - RollupChildFilter instance for filtering children
8217
8439
  */
8218
8440
  constructor(childFilter) {
8441
+ __publicField$I(this, "childFilter");
8219
8442
  this.childFilter = childFilter;
8220
8443
  }
8221
8444
  /**
@@ -8314,6 +8537,14 @@ ${stackTrace}`);
8314
8537
  }
8315
8538
  }
8316
8539
 
8540
+ var __defProp$H = Object.defineProperty;
8541
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, {
8542
+ enumerable: true,
8543
+ configurable: true,
8544
+ writable: true,
8545
+ value
8546
+ }) : obj[key] = value;
8547
+ var __publicField$H = (obj, key, value) => __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
8317
8548
  class MeasureRollupProcessor {
8318
8549
  /**
8319
8550
  * Create a new MeasureRollupProcessor
@@ -8322,6 +8553,8 @@ ${stackTrace}`);
8322
8553
  * @param eventCallback - Optional callback for firing events
8323
8554
  */
8324
8555
  constructor(childFilter, eventCallback) {
8556
+ __publicField$H(this, "childFilter");
8557
+ __publicField$H(this, "eventCallback");
8325
8558
  this.childFilter = childFilter;
8326
8559
  this.eventCallback = eventCallback || null;
8327
8560
  }
@@ -8489,6 +8722,14 @@ ${stackTrace}`);
8489
8722
  }
8490
8723
  }
8491
8724
 
8725
+ var __defProp$G = Object.defineProperty;
8726
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, {
8727
+ enumerable: true,
8728
+ configurable: true,
8729
+ writable: true,
8730
+ value
8731
+ }) : obj[key] = value;
8732
+ var __publicField$G = (obj, key, value) => __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
8492
8733
  class ObjectiveRollupProcessor {
8493
8734
  /**
8494
8735
  * Create a new ObjectiveRollupProcessor
@@ -8498,6 +8739,9 @@ ${stackTrace}`);
8498
8739
  * @param eventCallback - Optional callback for firing events
8499
8740
  */
8500
8741
  constructor(childFilter, ruleEvaluator, eventCallback) {
8742
+ __publicField$G(this, "childFilter");
8743
+ __publicField$G(this, "ruleEvaluator");
8744
+ __publicField$G(this, "eventCallback");
8501
8745
  this.childFilter = childFilter;
8502
8746
  this.ruleEvaluator = ruleEvaluator;
8503
8747
  this.eventCallback = eventCallback || null;
@@ -8621,6 +8865,14 @@ ${stackTrace}`);
8621
8865
  }
8622
8866
  }
8623
8867
 
8868
+ var __defProp$F = Object.defineProperty;
8869
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, {
8870
+ enumerable: true,
8871
+ configurable: true,
8872
+ writable: true,
8873
+ value
8874
+ }) : obj[key] = value;
8875
+ var __publicField$F = (obj, key, value) => __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
8624
8876
  class ProgressRollupProcessor {
8625
8877
  /**
8626
8878
  * Create a new ProgressRollupProcessor
@@ -8631,6 +8883,10 @@ ${stackTrace}`);
8631
8883
  * @param eventCallback - Optional callback for firing events
8632
8884
  */
8633
8885
  constructor(childFilter, ruleEvaluator, objectiveProcessor, eventCallback) {
8886
+ __publicField$F(this, "childFilter");
8887
+ __publicField$F(this, "ruleEvaluator");
8888
+ __publicField$F(this, "objectiveProcessor");
8889
+ __publicField$F(this, "eventCallback");
8634
8890
  this.childFilter = childFilter;
8635
8891
  this.ruleEvaluator = ruleEvaluator;
8636
8892
  this.objectiveProcessor = objectiveProcessor;
@@ -8708,6 +8964,14 @@ ${stackTrace}`);
8708
8964
  }
8709
8965
  }
8710
8966
 
8967
+ var __defProp$E = Object.defineProperty;
8968
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, {
8969
+ enumerable: true,
8970
+ configurable: true,
8971
+ writable: true,
8972
+ value
8973
+ }) : obj[key] = value;
8974
+ var __publicField$E = (obj, key, value) => __defNormalProp$E(obj, key + "" , value);
8711
8975
  class DurationRollupProcessor {
8712
8976
  /**
8713
8977
  * Create a new DurationRollupProcessor
@@ -8715,6 +8979,7 @@ ${stackTrace}`);
8715
8979
  * @param eventCallback - Optional callback for firing events
8716
8980
  */
8717
8981
  constructor(eventCallback) {
8982
+ __publicField$E(this, "eventCallback");
8718
8983
  this.eventCallback = eventCallback || null;
8719
8984
  }
8720
8985
  /**
@@ -8805,6 +9070,14 @@ ${stackTrace}`);
8805
9070
  }
8806
9071
  }
8807
9072
 
9073
+ var __defProp$D = Object.defineProperty;
9074
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, {
9075
+ enumerable: true,
9076
+ configurable: true,
9077
+ writable: true,
9078
+ value
9079
+ }) : obj[key] = value;
9080
+ var __publicField$D = (obj, key, value) => __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
8808
9081
  const MAX_CLUSTER_DEPTH = 10;
8809
9082
  class CrossClusterProcessor {
8810
9083
  /**
@@ -8816,7 +9089,11 @@ ${stackTrace}`);
8816
9089
  * @param eventCallback - Optional callback for firing events
8817
9090
  */
8818
9091
  constructor(measureProcessor, objectiveProcessor, progressProcessor, eventCallback) {
8819
- this.processingClusters = /* @__PURE__ */new Set();
9092
+ __publicField$D(this, "measureProcessor");
9093
+ __publicField$D(this, "objectiveProcessor");
9094
+ __publicField$D(this, "progressProcessor");
9095
+ __publicField$D(this, "eventCallback");
9096
+ __publicField$D(this, "processingClusters", /* @__PURE__ */new Set());
8820
9097
  this.measureProcessor = measureProcessor;
8821
9098
  this.objectiveProcessor = objectiveProcessor;
8822
9099
  this.progressProcessor = progressProcessor;
@@ -8960,6 +9237,14 @@ ${stackTrace}`);
8960
9237
  }
8961
9238
  }
8962
9239
 
9240
+ var __defProp$C = Object.defineProperty;
9241
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, {
9242
+ enumerable: true,
9243
+ configurable: true,
9244
+ writable: true,
9245
+ value
9246
+ }) : obj[key] = value;
9247
+ var __publicField$C = (obj, key, value) => __defNormalProp$C(obj, key + "" , value);
8963
9248
  class GlobalObjectiveSynchronizer {
8964
9249
  /**
8965
9250
  * Create a new GlobalObjectiveSynchronizer
@@ -8967,6 +9252,7 @@ ${stackTrace}`);
8967
9252
  * @param eventCallback - Optional callback for firing events
8968
9253
  */
8969
9254
  constructor(eventCallback) {
9255
+ __publicField$C(this, "eventCallback");
8970
9256
  this.eventCallback = eventCallback || null;
8971
9257
  }
8972
9258
  /**
@@ -9340,6 +9626,14 @@ ${stackTrace}`);
9340
9626
  }
9341
9627
  }
9342
9628
 
9629
+ var __defProp$B = Object.defineProperty;
9630
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, {
9631
+ enumerable: true,
9632
+ configurable: true,
9633
+ writable: true,
9634
+ value
9635
+ }) : obj[key] = value;
9636
+ var __publicField$B = (obj, key, value) => __defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
9343
9637
  class RollupStateValidator {
9344
9638
  /**
9345
9639
  * Create a new RollupStateValidator
@@ -9348,7 +9642,9 @@ ${stackTrace}`);
9348
9642
  * @param eventCallback - Optional callback for firing events
9349
9643
  */
9350
9644
  constructor(childFilter, eventCallback) {
9351
- this.rollupStateLog = [];
9645
+ __publicField$B(this, "rollupStateLog", []);
9646
+ __publicField$B(this, "childFilter");
9647
+ __publicField$B(this, "eventCallback");
9352
9648
  this.childFilter = childFilter;
9353
9649
  this.eventCallback = eventCallback || null;
9354
9650
  }
@@ -9455,6 +9751,14 @@ ${stackTrace}`);
9455
9751
  }
9456
9752
  }
9457
9753
 
9754
+ var __defProp$A = Object.defineProperty;
9755
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, {
9756
+ enumerable: true,
9757
+ configurable: true,
9758
+ writable: true,
9759
+ value
9760
+ }) : obj[key] = value;
9761
+ var __publicField$A = (obj, key, value) => __defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
9458
9762
  class RollupProcess {
9459
9763
  /**
9460
9764
  * Create a new RollupProcess orchestrator
@@ -9462,6 +9766,16 @@ ${stackTrace}`);
9462
9766
  * @param eventCallback - Optional callback for firing events
9463
9767
  */
9464
9768
  constructor(eventCallback) {
9769
+ __publicField$A(this, "childFilter");
9770
+ __publicField$A(this, "ruleEvaluator");
9771
+ __publicField$A(this, "measureProcessor");
9772
+ __publicField$A(this, "objectiveProcessor");
9773
+ __publicField$A(this, "progressProcessor");
9774
+ __publicField$A(this, "durationProcessor");
9775
+ __publicField$A(this, "globalObjectiveSynchronizer");
9776
+ __publicField$A(this, "stateValidator");
9777
+ __publicField$A(this, "crossClusterProcessor");
9778
+ __publicField$A(this, "eventCallback");
9465
9779
  this.eventCallback = eventCallback || null;
9466
9780
  this.childFilter = new RollupChildFilter();
9467
9781
  this.ruleEvaluator = new RollupRuleEvaluator(this.childFilter);
@@ -9628,6 +9942,14 @@ ${stackTrace}`);
9628
9942
  }
9629
9943
  }
9630
9944
 
9945
+ var __defProp$z = Object.defineProperty;
9946
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, {
9947
+ enumerable: true,
9948
+ configurable: true,
9949
+ writable: true,
9950
+ value
9951
+ }) : obj[key] = value;
9952
+ var __publicField$z = (obj, key, value) => __defNormalProp$z(obj, key + "" , value);
9631
9953
  const VALID_COMPLETION_STATUSES = [CompletionStatus.COMPLETED, CompletionStatus.INCOMPLETE, CompletionStatus.UNKNOWN];
9632
9954
  const VALID_SUCCESS_STATUSES = [SuccessStatus.PASSED, SuccessStatus.FAILED, SuccessStatus.UNKNOWN];
9633
9955
  function validateCompletionStatus(value) {
@@ -9644,6 +9966,7 @@ ${stackTrace}`);
9644
9966
  }
9645
9967
  class RteDataTransferService {
9646
9968
  constructor(context) {
9969
+ __publicField$z(this, "context");
9647
9970
  this.context = context;
9648
9971
  }
9649
9972
  /**
@@ -9803,11 +10126,27 @@ ${stackTrace}`);
9803
10126
  }
9804
10127
  }
9805
10128
 
10129
+ var __defProp$y = Object.defineProperty;
10130
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, {
10131
+ enumerable: true,
10132
+ configurable: true,
10133
+ writable: true,
10134
+ value
10135
+ }) : obj[key] = value;
10136
+ var __publicField$y = (obj, key, value) => __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
9806
10137
  class TerminationHandler {
9807
10138
  constructor(activityTree, sequencingProcess, rollupProcess, globalObjectiveMap) {
9808
10139
  let eventCallback = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
9809
10140
  let options = arguments.length > 5 ? arguments[5] : undefined;
9810
- this.invalidateCacheCallback = null;
10141
+ __publicField$y(this, "activityTree");
10142
+ __publicField$y(this, "sequencingProcess");
10143
+ __publicField$y(this, "rollupProcess");
10144
+ __publicField$y(this, "globalObjectiveMap");
10145
+ __publicField$y(this, "eventCallback");
10146
+ __publicField$y(this, "getCMIData");
10147
+ __publicField$y(this, "is4thEdition");
10148
+ __publicField$y(this, "invalidateCacheCallback", null);
10149
+ __publicField$y(this, "_rteDataTransferService");
9811
10150
  this.activityTree = activityTree;
9812
10151
  this.sequencingProcess = sequencingProcess;
9813
10152
  this.rollupProcess = rollupProcess;
@@ -9921,7 +10260,7 @@ ${stackTrace}`);
9921
10260
  this.endAttempt(this.activityTree.currentActivity);
9922
10261
  }
9923
10262
  }
9924
- let processedExit = false;
10263
+ let processedExit;
9925
10264
  let postConditionResult;
9926
10265
  do {
9927
10266
  processedExit = false;
@@ -10393,11 +10732,22 @@ ${stackTrace}`);
10393
10732
  }
10394
10733
  }
10395
10734
 
10735
+ var __defProp$x = Object.defineProperty;
10736
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, {
10737
+ enumerable: true,
10738
+ configurable: true,
10739
+ writable: true,
10740
+ value
10741
+ }) : obj[key] = value;
10742
+ var __publicField$x = (obj, key, value) => __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
10396
10743
  class DeliveryRequest {
10397
10744
  constructor() {
10398
10745
  let valid = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
10399
10746
  let targetActivity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
10400
10747
  let exception = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
10748
+ __publicField$x(this, "valid");
10749
+ __publicField$x(this, "targetActivity");
10750
+ __publicField$x(this, "exception");
10401
10751
  this.valid = valid;
10402
10752
  this.targetActivity = targetActivity;
10403
10753
  this.exception = exception;
@@ -10408,12 +10758,20 @@ ${stackTrace}`);
10408
10758
  let adlNav = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
10409
10759
  let eventCallback = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
10410
10760
  let options = arguments.length > 5 ? arguments[5] : undefined;
10411
- this._deliveryInProgress = false;
10412
- this.contentDelivered = false;
10413
- this.checkActivityCallback = null;
10414
- this.invalidateCacheCallback = null;
10415
- this.updateNavigationValidityCallback = null;
10416
- this.clearSuspendedActivityCallback = null;
10761
+ __publicField$x(this, "activityTree");
10762
+ __publicField$x(this, "rollupProcess");
10763
+ __publicField$x(this, "globalObjectiveMap");
10764
+ __publicField$x(this, "adlNav");
10765
+ __publicField$x(this, "eventCallback");
10766
+ __publicField$x(this, "now");
10767
+ __publicField$x(this, "defaultHideLmsUi");
10768
+ __publicField$x(this, "defaultAuxiliaryResources");
10769
+ __publicField$x(this, "_deliveryInProgress", false);
10770
+ __publicField$x(this, "contentDelivered", false);
10771
+ __publicField$x(this, "checkActivityCallback", null);
10772
+ __publicField$x(this, "invalidateCacheCallback", null);
10773
+ __publicField$x(this, "updateNavigationValidityCallback", null);
10774
+ __publicField$x(this, "clearSuspendedActivityCallback", null);
10417
10775
  this.activityTree = activityTree;
10418
10776
  this.rollupProcess = rollupProcess;
10419
10777
  this.globalObjectiveMap = globalObjectiveMap;
@@ -10707,13 +11065,23 @@ ${stackTrace}`);
10707
11065
  }
10708
11066
  }
10709
11067
  };
10710
- _DeliveryHandler.HIDE_LMS_UI_ORDER = [...HIDE_LMS_UI_TOKENS];
11068
+ __publicField$x(_DeliveryHandler, "HIDE_LMS_UI_ORDER", [...HIDE_LMS_UI_TOKENS]);
10711
11069
  let DeliveryHandler = _DeliveryHandler;
10712
11070
 
11071
+ var __defProp$w = Object.defineProperty;
11072
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, {
11073
+ enumerable: true,
11074
+ configurable: true,
11075
+ writable: true,
11076
+ value
11077
+ }) : obj[key] = value;
11078
+ var __publicField$w = (obj, key, value) => __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
10713
11079
  class NavigationLookAhead {
10714
11080
  constructor(activityTree, sequencingProcess) {
10715
- this.cache = null;
10716
- this.isDirty = true;
11081
+ __publicField$w(this, "activityTree");
11082
+ __publicField$w(this, "sequencingProcess");
11083
+ __publicField$w(this, "cache", null);
11084
+ __publicField$w(this, "isDirty", true);
10717
11085
  this.activityTree = activityTree;
10718
11086
  this.sequencingProcess = sequencingProcess;
10719
11087
  }
@@ -11033,6 +11401,14 @@ ${stackTrace}`);
11033
11401
  }
11034
11402
  }
11035
11403
 
11404
+ var __defProp$v = Object.defineProperty;
11405
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, {
11406
+ enumerable: true,
11407
+ configurable: true,
11408
+ writable: true,
11409
+ value
11410
+ }) : obj[key] = value;
11411
+ var __publicField$v = (obj, key, value) => __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
11036
11412
  var NavigationRequestType = /* @__PURE__ */(NavigationRequestType2 => {
11037
11413
  NavigationRequestType2["START"] = "start";
11038
11414
  NavigationRequestType2["RESUME_ALL"] = "resumeAll";
@@ -11055,6 +11431,11 @@ ${stackTrace}`);
11055
11431
  let sequencingRequest = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
11056
11432
  let targetActivityId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
11057
11433
  let exception = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
11434
+ __publicField$v(this, "valid");
11435
+ __publicField$v(this, "terminationRequest");
11436
+ __publicField$v(this, "sequencingRequest");
11437
+ __publicField$v(this, "targetActivityId");
11438
+ __publicField$v(this, "exception");
11058
11439
  this.valid = valid;
11059
11440
  this.terminationRequest = terminationRequest;
11060
11441
  this.sequencingRequest = sequencingRequest;
@@ -11066,7 +11447,12 @@ ${stackTrace}`);
11066
11447
  constructor(activityTree, sequencingProcess) {
11067
11448
  let adlNav = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
11068
11449
  let eventCallback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
11069
- this.getEffectiveHideLmsUiCallback = null;
11450
+ __publicField$v(this, "activityTree");
11451
+ __publicField$v(this, "sequencingProcess");
11452
+ __publicField$v(this, "adlNav");
11453
+ __publicField$v(this, "eventCallback");
11454
+ __publicField$v(this, "navigationLookAhead");
11455
+ __publicField$v(this, "getEffectiveHideLmsUiCallback", null);
11070
11456
  this.activityTree = activityTree;
11071
11457
  this.sequencingProcess = sequencingProcess;
11072
11458
  this.adlNav = adlNav;
@@ -11734,10 +12120,18 @@ ${stackTrace}`);
11734
12120
  }
11735
12121
  }
11736
12122
 
12123
+ var __defProp$u = Object.defineProperty;
12124
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, {
12125
+ enumerable: true,
12126
+ configurable: true,
12127
+ writable: true,
12128
+ value
12129
+ }) : obj[key] = value;
12130
+ var __publicField$u = (obj, key, value) => __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
11737
12131
  class GlobalObjectiveService {
11738
12132
  constructor(eventCallback) {
11739
- this.globalObjectiveMap = /* @__PURE__ */new Map();
11740
- this.eventCallback = null;
12133
+ __publicField$u(this, "globalObjectiveMap", /* @__PURE__ */new Map());
12134
+ __publicField$u(this, "eventCallback", null);
11741
12135
  this.eventCallback = eventCallback || null;
11742
12136
  }
11743
12137
  /**
@@ -11997,14 +12391,27 @@ ${stackTrace}`);
11997
12391
  }
11998
12392
  }
11999
12393
 
12394
+ var __defProp$t = Object.defineProperty;
12395
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, {
12396
+ enumerable: true,
12397
+ configurable: true,
12398
+ writable: true,
12399
+ value
12400
+ }) : obj[key] = value;
12401
+ var __publicField$t = (obj, key, value) => __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
12000
12402
  class SequencingStateManager {
12001
12403
  constructor(activityTree, globalObjectiveService, rollupProcess) {
12002
12404
  let adlNav = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
12003
12405
  let eventCallback = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
12004
- this.getEffectiveHideLmsUiCallback = null;
12005
- this.getEffectiveAuxiliaryResourcesCallback = null;
12006
- this.contentDeliveredGetter = null;
12007
- this.contentDeliveredSetter = null;
12406
+ __publicField$t(this, "activityTree");
12407
+ __publicField$t(this, "globalObjectiveService");
12408
+ __publicField$t(this, "rollupProcess");
12409
+ __publicField$t(this, "adlNav");
12410
+ __publicField$t(this, "eventCallback");
12411
+ __publicField$t(this, "getEffectiveHideLmsUiCallback", null);
12412
+ __publicField$t(this, "getEffectiveAuxiliaryResourcesCallback", null);
12413
+ __publicField$t(this, "contentDeliveredGetter", null);
12414
+ __publicField$t(this, "contentDeliveredSetter", null);
12008
12415
  this.activityTree = activityTree;
12009
12416
  this.globalObjectiveService = globalObjectiveService;
12010
12417
  this.rollupProcess = rollupProcess;
@@ -12359,11 +12766,22 @@ ${stackTrace}`);
12359
12766
  }
12360
12767
  }
12361
12768
 
12769
+ var __defProp$s = Object.defineProperty;
12770
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, {
12771
+ enumerable: true,
12772
+ configurable: true,
12773
+ writable: true,
12774
+ value
12775
+ }) : obj[key] = value;
12776
+ var __publicField$s = (obj, key, value) => __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
12362
12777
  class DeliveryValidator {
12363
12778
  constructor(activityTree) {
12364
12779
  let eventCallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
12365
12780
  let options = arguments.length > 2 ? arguments[2] : undefined;
12366
- this.contentDeliveredGetter = null;
12781
+ __publicField$s(this, "activityTree");
12782
+ __publicField$s(this, "eventCallback");
12783
+ __publicField$s(this, "now");
12784
+ __publicField$s(this, "contentDeliveredGetter", null);
12367
12785
  this.activityTree = activityTree;
12368
12786
  this.eventCallback = eventCallback;
12369
12787
  this.now = options?.now || (() => /* @__PURE__ */new Date());
@@ -12947,12 +13365,36 @@ ${stackTrace}`);
12947
13365
  }
12948
13366
  }
12949
13367
 
13368
+ var __defProp$r = Object.defineProperty;
13369
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, {
13370
+ enumerable: true,
13371
+ configurable: true,
13372
+ writable: true,
13373
+ value
13374
+ }) : obj[key] = value;
13375
+ var __publicField$r = (obj, key, value) => __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
12950
13376
  class OverallSequencingProcess {
12951
13377
  constructor(activityTree, sequencingProcess, rollupProcess) {
12952
13378
  let adlNav = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
12953
13379
  let eventCallback = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
12954
13380
  let options = arguments.length > 5 ? arguments[5] : undefined;
12955
- this.eventCallback = null;
13381
+ // Core dependencies
13382
+ __publicField$r(this, "activityTree");
13383
+ __publicField$r(this, "sequencingProcess");
13384
+ __publicField$r(this, "rollupProcess");
13385
+ __publicField$r(this, "adlNav");
13386
+ __publicField$r(this, "eventCallback", null);
13387
+ // Extracted services
13388
+ __publicField$r(this, "terminationHandler");
13389
+ __publicField$r(this, "deliveryHandler");
13390
+ __publicField$r(this, "navigationValidityService");
13391
+ __publicField$r(this, "globalObjectiveService");
13392
+ __publicField$r(this, "stateManager");
13393
+ __publicField$r(this, "deliveryValidator");
13394
+ __publicField$r(this, "navigationLookAhead");
13395
+ // Configuration
13396
+ __publicField$r(this, "enhancedDeliveryValidation");
13397
+ __publicField$r(this, "is4thEdition");
12956
13398
  this.activityTree = activityTree;
12957
13399
  this.sequencingProcess = sequencingProcess;
12958
13400
  this.rollupProcess = rollupProcess;
@@ -13352,16 +13794,32 @@ ${stackTrace}`);
13352
13794
  }
13353
13795
  }
13354
13796
 
13797
+ var __defProp$q = Object.defineProperty;
13798
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, {
13799
+ enumerable: true,
13800
+ configurable: true,
13801
+ writable: true,
13802
+ value
13803
+ }) : obj[key] = value;
13804
+ var __publicField$q = (obj, key, value) => __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
13355
13805
  class SequencingService {
13356
13806
  constructor(sequencing, cmi, adl, eventService, loggingService) {
13357
13807
  let configuration = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
13358
- this.overallSequencingProcess = null;
13359
- this.sequencingProcess = null;
13360
- this.eventListeners = {};
13361
- this.isInitialized = false;
13362
- this.isSequencingActive = false;
13363
- this.lastCMIValues = /* @__PURE__ */new Map();
13364
- this.lastSequencingResult = null;
13808
+ __publicField$q(this, "sequencing");
13809
+ __publicField$q(this, "cmi");
13810
+ __publicField$q(this, "adl");
13811
+ __publicField$q(this, "eventService");
13812
+ __publicField$q(this, "loggingService");
13813
+ __publicField$q(this, "activityDeliveryService");
13814
+ __publicField$q(this, "rollupProcess");
13815
+ __publicField$q(this, "overallSequencingProcess", null);
13816
+ __publicField$q(this, "sequencingProcess", null);
13817
+ __publicField$q(this, "eventListeners", {});
13818
+ __publicField$q(this, "configuration");
13819
+ __publicField$q(this, "isInitialized", false);
13820
+ __publicField$q(this, "isSequencingActive", false);
13821
+ __publicField$q(this, "lastCMIValues", /* @__PURE__ */new Map());
13822
+ __publicField$q(this, "lastSequencingResult", null);
13365
13823
  this.sequencing = sequencing;
13366
13824
  this.cmi = cmi;
13367
13825
  this.adl = adl;
@@ -14222,6 +14680,14 @@ ${stackTrace}`);
14222
14680
  }
14223
14681
  }
14224
14682
 
14683
+ var __defProp$p = Object.defineProperty;
14684
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, {
14685
+ enumerable: true,
14686
+ configurable: true,
14687
+ writable: true,
14688
+ value
14689
+ }) : obj[key] = value;
14690
+ var __publicField$p = (obj, key, value) => __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
14225
14691
  class SynchronousHttpService {
14226
14692
  /**
14227
14693
  * Constructor for SynchronousHttpService
@@ -14229,6 +14695,8 @@ ${stackTrace}`);
14229
14695
  * @param {ErrorCode} error_codes - The error codes object
14230
14696
  */
14231
14697
  constructor(settings, error_codes) {
14698
+ __publicField$p(this, "settings");
14699
+ __publicField$p(this, "error_codes");
14232
14700
  this.settings = settings;
14233
14701
  this.error_codes = error_codes;
14234
14702
  }
@@ -14420,6 +14888,14 @@ ${stackTrace}`);
14420
14888
  }
14421
14889
  const validationService = new ValidationService();
14422
14890
 
14891
+ var __defProp$o = Object.defineProperty;
14892
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, {
14893
+ enumerable: true,
14894
+ configurable: true,
14895
+ writable: true,
14896
+ value
14897
+ }) : obj[key] = value;
14898
+ var __publicField$o = (obj, key, value) => __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
14423
14899
  class BaseAPI {
14424
14900
  /**
14425
14901
  * Constructor for Base API class. Sets some shared API fields, as well as
@@ -14435,8 +14911,19 @@ ${stackTrace}`);
14435
14911
  * @param {IOfflineStorageService} offlineStorageService - Optional Offline Storage service instance
14436
14912
  */
14437
14913
  constructor(error_codes, settings, httpService, eventService, serializationService, cmiDataService, errorHandlingService, loggingService, offlineStorageService) {
14438
- this._settings = DefaultSettings;
14439
- this._courseId = "";
14914
+ __publicField$o(this, "_timeout");
14915
+ __publicField$o(this, "_error_codes");
14916
+ __publicField$o(this, "_settings", DefaultSettings);
14917
+ __publicField$o(this, "_httpService");
14918
+ __publicField$o(this, "_eventService");
14919
+ __publicField$o(this, "_serializationService");
14920
+ __publicField$o(this, "_errorHandlingService");
14921
+ __publicField$o(this, "_loggingService");
14922
+ __publicField$o(this, "_offlineStorageService");
14923
+ __publicField$o(this, "_cmiValueAccessService");
14924
+ __publicField$o(this, "_courseId", "");
14925
+ __publicField$o(this, "startingData");
14926
+ __publicField$o(this, "currentState");
14440
14927
  if (new.target === BaseAPI) {
14441
14928
  throw new TypeError("Cannot construct BaseAPI instances directly");
14442
14929
  }
@@ -15387,17 +15874,25 @@ ${stackTrace}`);
15387
15874
  }
15388
15875
  }
15389
15876
 
15877
+ var __defProp$n = Object.defineProperty;
15878
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, {
15879
+ enumerable: true,
15880
+ configurable: true,
15881
+ writable: true,
15882
+ value
15883
+ }) : obj[key] = value;
15884
+ var __publicField$n = (obj, key, value) => __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
15390
15885
  class CMILearnerPreference extends BaseCMI {
15391
15886
  /**
15392
15887
  * Constructor for cmi.learner_preference
15393
15888
  */
15394
15889
  constructor() {
15395
15890
  super("cmi.learner_preference");
15396
- this.__children = scorm2004_constants.student_preference_children;
15397
- this._audio_level = "1";
15398
- this._language = "";
15399
- this._delivery_speed = "1";
15400
- this._audio_captioning = "0";
15891
+ __publicField$n(this, "__children", scorm2004_constants.student_preference_children);
15892
+ __publicField$n(this, "_audio_level", "1");
15893
+ __publicField$n(this, "_language", "");
15894
+ __publicField$n(this, "_delivery_speed", "1");
15895
+ __publicField$n(this, "_audio_captioning", "0");
15401
15896
  }
15402
15897
  /**
15403
15898
  * Called when the API has been reset
@@ -15513,6 +16008,14 @@ ${stackTrace}`);
15513
16008
  }
15514
16009
  }
15515
16010
 
16011
+ var __defProp$m = Object.defineProperty;
16012
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, {
16013
+ enumerable: true,
16014
+ configurable: true,
16015
+ writable: true,
16016
+ value
16017
+ }) : obj[key] = value;
16018
+ var __publicField$m = (obj, key, value) => __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
15516
16019
  class CMIInteractions extends CMIArray {
15517
16020
  /**
15518
16021
  * Constructor for `cmi.interactions` Array
@@ -15536,15 +16039,17 @@ ${stackTrace}`);
15536
16039
  */
15537
16040
  constructor() {
15538
16041
  super("cmi.interactions.n");
15539
- this._id = "";
15540
- this._idIsSet = false;
15541
- this._type = "";
15542
- this._timestamp = "";
15543
- this._weighting = "";
15544
- this._learner_response = "";
15545
- this._result = "";
15546
- this._latency = "";
15547
- this._description = "";
16042
+ __publicField$m(this, "_id", "");
16043
+ __publicField$m(this, "_idIsSet", false);
16044
+ __publicField$m(this, "_type", "");
16045
+ __publicField$m(this, "_timestamp", "");
16046
+ __publicField$m(this, "_weighting", "");
16047
+ __publicField$m(this, "_learner_response", "");
16048
+ __publicField$m(this, "_result", "");
16049
+ __publicField$m(this, "_latency", "");
16050
+ __publicField$m(this, "_description", "");
16051
+ __publicField$m(this, "objectives");
16052
+ __publicField$m(this, "correct_responses");
15548
16053
  this.objectives = new CMIArray({
15549
16054
  CMIElement: "cmi.interactions.n.objectives",
15550
16055
  errorCode: scorm2004_errors.READ_ONLY_ELEMENT,
@@ -15845,7 +16350,7 @@ ${stackTrace}`);
15845
16350
  */
15846
16351
  constructor() {
15847
16352
  super("cmi.interactions.n.objectives.n");
15848
- this._id = "";
16353
+ __publicField$m(this, "_id", "");
15849
16354
  }
15850
16355
  /**
15851
16356
  * Called when the API has been reset
@@ -16020,7 +16525,8 @@ ${stackTrace}`);
16020
16525
  */
16021
16526
  constructor(interactionType) {
16022
16527
  super("cmi.interactions.n.correct_responses.n");
16023
- this._pattern = "";
16528
+ __publicField$m(this, "_pattern", "");
16529
+ __publicField$m(this, "_interactionType");
16024
16530
  this._interactionType = interactionType;
16025
16531
  }
16026
16532
  reset() {
@@ -16058,6 +16564,14 @@ ${stackTrace}`);
16058
16564
  }
16059
16565
  }
16060
16566
 
16567
+ var __defProp$l = Object.defineProperty;
16568
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, {
16569
+ enumerable: true,
16570
+ configurable: true,
16571
+ writable: true,
16572
+ value
16573
+ }) : obj[key] = value;
16574
+ var __publicField$l = (obj, key, value) => __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
16061
16575
  class CMIScore extends BaseCMI {
16062
16576
  /**
16063
16577
  * Constructor for *.score
@@ -16082,8 +16596,21 @@ ${stackTrace}`);
16082
16596
  */
16083
16597
  constructor(params) {
16084
16598
  super(params.CMIElement);
16085
- this._raw = "";
16086
- this._min = "";
16599
+ __publicField$l(this, "__children");
16600
+ /**
16601
+ * Score range validation pattern (e.g., "0#100" for SCORM 1.2).
16602
+ * Set to `false` to disable range validation (e.g., for SCORM 2004 where scores have no upper bound).
16603
+ * This property is intentionally unused in the base class but provides subclass flexibility.
16604
+ */
16605
+ __publicField$l(this, "__score_range");
16606
+ __publicField$l(this, "__invalid_error_code");
16607
+ __publicField$l(this, "__invalid_type_code");
16608
+ __publicField$l(this, "__invalid_range_code");
16609
+ __publicField$l(this, "__decimal_regex");
16610
+ __publicField$l(this, "__error_class");
16611
+ __publicField$l(this, "_raw", "");
16612
+ __publicField$l(this, "_min", "");
16613
+ __publicField$l(this, "_max");
16087
16614
  this.__children = params.score_children || scorm12_constants.score_children;
16088
16615
  this.__score_range = !params.score_range ? false : scorm12_regex.score_range;
16089
16616
  this._max = params.max || params.max === "" ? params.max : "100";
@@ -16206,6 +16733,14 @@ ${stackTrace}`);
16206
16733
  }
16207
16734
  }
16208
16735
 
16736
+ var __defProp$k = Object.defineProperty;
16737
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, {
16738
+ enumerable: true,
16739
+ configurable: true,
16740
+ writable: true,
16741
+ value
16742
+ }) : obj[key] = value;
16743
+ var __publicField$k = (obj, key, value) => __defNormalProp$k(obj, key + "" , value);
16209
16744
  class Scorm2004CMIScore extends CMIScore {
16210
16745
  /**
16211
16746
  * Constructor for cmi *.score
@@ -16221,7 +16756,7 @@ ${stackTrace}`);
16221
16756
  decimalRegex: scorm2004_regex.CMIDecimal,
16222
16757
  errorClass: Scorm2004ValidationError
16223
16758
  });
16224
- this._scaled = "";
16759
+ __publicField$k(this, "_scaled", "");
16225
16760
  }
16226
16761
  /**
16227
16762
  * Called when the API has been reset
@@ -16281,6 +16816,14 @@ ${stackTrace}`);
16281
16816
  }
16282
16817
  }
16283
16818
 
16819
+ var __defProp$j = Object.defineProperty;
16820
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, {
16821
+ enumerable: true,
16822
+ configurable: true,
16823
+ writable: true,
16824
+ value
16825
+ }) : obj[key] = value;
16826
+ var __publicField$j = (obj, key, value) => __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
16284
16827
  class CMICommentsFromLMS extends CMIArray {
16285
16828
  /**
16286
16829
  * Constructor for cmi.comments_from_lms Array
@@ -16315,9 +16858,10 @@ ${stackTrace}`);
16315
16858
  constructor() {
16316
16859
  let readOnlyAfterInit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
16317
16860
  super("cmi.comments_from_learner.n");
16318
- this._comment = "";
16319
- this._location = "";
16320
- this._timestamp = "";
16861
+ __publicField$j(this, "_comment", "");
16862
+ __publicField$j(this, "_location", "");
16863
+ __publicField$j(this, "_timestamp", "");
16864
+ __publicField$j(this, "_readOnlyAfterInit");
16321
16865
  this._comment = "";
16322
16866
  this._location = "";
16323
16867
  this._timestamp = "";
@@ -16411,6 +16955,14 @@ ${stackTrace}`);
16411
16955
  }
16412
16956
  }
16413
16957
 
16958
+ var __defProp$i = Object.defineProperty;
16959
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, {
16960
+ enumerable: true,
16961
+ configurable: true,
16962
+ writable: true,
16963
+ value
16964
+ }) : obj[key] = value;
16965
+ var __publicField$i = (obj, key, value) => __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
16414
16966
  class CMIObjectives extends CMIArray {
16415
16967
  /**
16416
16968
  * Constructor for `cmi.objectives` Array
@@ -16448,12 +17000,13 @@ ${stackTrace}`);
16448
17000
  */
16449
17001
  constructor() {
16450
17002
  super("cmi.objectives.n");
16451
- this._id = "";
16452
- this._idIsSet = false;
16453
- this._success_status = "unknown";
16454
- this._completion_status = "unknown";
16455
- this._progress_measure = "";
16456
- this._description = "";
17003
+ __publicField$i(this, "_id", "");
17004
+ __publicField$i(this, "_idIsSet", false);
17005
+ __publicField$i(this, "_success_status", "unknown");
17006
+ __publicField$i(this, "_completion_status", "unknown");
17007
+ __publicField$i(this, "_progress_measure", "");
17008
+ __publicField$i(this, "_description", "");
17009
+ __publicField$i(this, "score");
16457
17010
  this.score = new Scorm2004CMIScore();
16458
17011
  }
16459
17012
  reset() {
@@ -16625,14 +17178,22 @@ ${stackTrace}`);
16625
17178
  }
16626
17179
  }
16627
17180
 
17181
+ var __defProp$h = Object.defineProperty;
17182
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, {
17183
+ enumerable: true,
17184
+ configurable: true,
17185
+ writable: true,
17186
+ value
17187
+ }) : obj[key] = value;
17188
+ var __publicField$h = (obj, key, value) => __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
16628
17189
  class CMIMetadata extends BaseCMI {
16629
17190
  /**
16630
17191
  * Constructor for CMIMetadata
16631
17192
  */
16632
17193
  constructor() {
16633
17194
  super("cmi");
16634
- this.__version = "1.0";
16635
- this.__children = scorm2004_constants.cmi_children;
17195
+ __publicField$h(this, "__version", "1.0");
17196
+ __publicField$h(this, "__children", scorm2004_constants.cmi_children);
16636
17197
  }
16637
17198
  /**
16638
17199
  * Getter for __version
@@ -16670,14 +17231,22 @@ ${stackTrace}`);
16670
17231
  }
16671
17232
  }
16672
17233
 
17234
+ var __defProp$g = Object.defineProperty;
17235
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, {
17236
+ enumerable: true,
17237
+ configurable: true,
17238
+ writable: true,
17239
+ value
17240
+ }) : obj[key] = value;
17241
+ var __publicField$g = (obj, key, value) => __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
16673
17242
  class CMILearner extends BaseCMI {
16674
17243
  /**
16675
17244
  * Constructor for CMILearner
16676
17245
  */
16677
17246
  constructor() {
16678
17247
  super("cmi");
16679
- this._learner_id = "";
16680
- this._learner_name = "";
17248
+ __publicField$g(this, "_learner_id", "");
17249
+ __publicField$g(this, "_learner_name", "");
16681
17250
  }
16682
17251
  /**
16683
17252
  * Getter for _learner_id
@@ -16723,15 +17292,23 @@ ${stackTrace}`);
16723
17292
  }
16724
17293
  }
16725
17294
 
17295
+ var __defProp$f = Object.defineProperty;
17296
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
17297
+ enumerable: true,
17298
+ configurable: true,
17299
+ writable: true,
17300
+ value
17301
+ }) : obj[key] = value;
17302
+ var __publicField$f = (obj, key, value) => __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
16726
17303
  class CMIStatus extends BaseCMI {
16727
17304
  /**
16728
17305
  * Constructor for CMIStatus
16729
17306
  */
16730
17307
  constructor() {
16731
17308
  super("cmi");
16732
- this._completion_status = "unknown";
16733
- this._success_status = "unknown";
16734
- this._progress_measure = "";
17309
+ __publicField$f(this, "_completion_status", "unknown");
17310
+ __publicField$f(this, "_success_status", "unknown");
17311
+ __publicField$f(this, "_progress_measure", "");
16735
17312
  }
16736
17313
  /**
16737
17314
  * Getter for _completion_status
@@ -16792,16 +17369,24 @@ ${stackTrace}`);
16792
17369
  }
16793
17370
  }
16794
17371
 
17372
+ var __defProp$e = Object.defineProperty;
17373
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, {
17374
+ enumerable: true,
17375
+ configurable: true,
17376
+ writable: true,
17377
+ value
17378
+ }) : obj[key] = value;
17379
+ var __publicField$e = (obj, key, value) => __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
16795
17380
  class CMISession extends BaseCMI {
16796
17381
  /**
16797
17382
  * Constructor for CMISession
16798
17383
  */
16799
17384
  constructor() {
16800
17385
  super("cmi");
16801
- this._entry = "";
16802
- this._exit = "";
16803
- this._session_time = "PT0H0M0S";
16804
- this._total_time = "PT0S";
17386
+ __publicField$e(this, "_entry", "");
17387
+ __publicField$e(this, "_exit", "");
17388
+ __publicField$e(this, "_session_time", "PT0H0M0S");
17389
+ __publicField$e(this, "_total_time", "PT0S");
16805
17390
  }
16806
17391
  /**
16807
17392
  * Getter for _entry
@@ -16920,15 +17505,23 @@ ${stackTrace}`);
16920
17505
  }
16921
17506
  }
16922
17507
 
17508
+ var __defProp$d = Object.defineProperty;
17509
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
17510
+ enumerable: true,
17511
+ configurable: true,
17512
+ writable: true,
17513
+ value
17514
+ }) : obj[key] = value;
17515
+ var __publicField$d = (obj, key, value) => __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
16923
17516
  class CMIContent extends BaseCMI {
16924
17517
  /**
16925
17518
  * Constructor for CMIContent
16926
17519
  */
16927
17520
  constructor() {
16928
17521
  super("cmi");
16929
- this._location = "";
16930
- this._launch_data = "";
16931
- this._suspend_data = "";
17522
+ __publicField$d(this, "_location", "");
17523
+ __publicField$d(this, "_launch_data", "");
17524
+ __publicField$d(this, "_suspend_data", "");
16932
17525
  }
16933
17526
  /**
16934
17527
  * Getter for _location
@@ -16990,16 +17583,24 @@ ${stackTrace}`);
16990
17583
  }
16991
17584
  }
16992
17585
 
17586
+ var __defProp$c = Object.defineProperty;
17587
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
17588
+ enumerable: true,
17589
+ configurable: true,
17590
+ writable: true,
17591
+ value
17592
+ }) : obj[key] = value;
17593
+ var __publicField$c = (obj, key, value) => __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
16993
17594
  class CMISettings extends BaseCMI {
16994
17595
  /**
16995
17596
  * Constructor for CMISettings
16996
17597
  */
16997
17598
  constructor() {
16998
17599
  super("cmi");
16999
- this._credit = "credit";
17000
- this._mode = "normal";
17001
- this._time_limit_action = "continue,no message";
17002
- this._max_time_allowed = "";
17600
+ __publicField$c(this, "_credit", "credit");
17601
+ __publicField$c(this, "_mode", "normal");
17602
+ __publicField$c(this, "_time_limit_action", "continue,no message");
17603
+ __publicField$c(this, "_max_time_allowed", "");
17003
17604
  }
17004
17605
  /**
17005
17606
  * Getter for _credit
@@ -17094,14 +17695,22 @@ ${stackTrace}`);
17094
17695
  }
17095
17696
  }
17096
17697
 
17698
+ var __defProp$b = Object.defineProperty;
17699
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
17700
+ enumerable: true,
17701
+ configurable: true,
17702
+ writable: true,
17703
+ value
17704
+ }) : obj[key] = value;
17705
+ var __publicField$b = (obj, key, value) => __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
17097
17706
  class CMIThresholds extends BaseCMI {
17098
17707
  /**
17099
17708
  * Constructor for CMIThresholds
17100
17709
  */
17101
17710
  constructor() {
17102
17711
  super("cmi");
17103
- this._scaled_passing_score = "";
17104
- this._completion_threshold = "";
17712
+ __publicField$b(this, "_scaled_passing_score", "");
17713
+ __publicField$b(this, "_completion_threshold", "");
17105
17714
  }
17106
17715
  /**
17107
17716
  * Getter for _scaled_passing_score
@@ -17169,6 +17778,14 @@ ${stackTrace}`);
17169
17778
  }
17170
17779
  }
17171
17780
 
17781
+ var __defProp$a = Object.defineProperty;
17782
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, {
17783
+ enumerable: true,
17784
+ configurable: true,
17785
+ writable: true,
17786
+ value
17787
+ }) : obj[key] = value;
17788
+ var __publicField$a = (obj, key, value) => __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
17172
17789
  class CMI extends BaseRootCMI {
17173
17790
  /**
17174
17791
  * Constructor for the SCORM 2004 cmi object
@@ -17177,6 +17794,21 @@ ${stackTrace}`);
17177
17794
  constructor() {
17178
17795
  let initialized = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
17179
17796
  super("cmi");
17797
+ // New component classes
17798
+ __publicField$a(this, "metadata");
17799
+ __publicField$a(this, "learner");
17800
+ __publicField$a(this, "status");
17801
+ __publicField$a(this, "session");
17802
+ __publicField$a(this, "content");
17803
+ __publicField$a(this, "settings");
17804
+ __publicField$a(this, "thresholds");
17805
+ // Original complex objects
17806
+ __publicField$a(this, "learner_preference");
17807
+ __publicField$a(this, "score");
17808
+ __publicField$a(this, "comments_from_learner");
17809
+ __publicField$a(this, "comments_from_lms");
17810
+ __publicField$a(this, "interactions");
17811
+ __publicField$a(this, "objectives");
17180
17812
  this.metadata = new CMIMetadata();
17181
17813
  this.learner = new CMILearner();
17182
17814
  this.status = new CMIStatus();
@@ -17630,14 +18262,23 @@ ${stackTrace}`);
17630
18262
  }
17631
18263
  }
17632
18264
 
18265
+ var __defProp$9 = Object.defineProperty;
18266
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, {
18267
+ enumerable: true,
18268
+ configurable: true,
18269
+ writable: true,
18270
+ value
18271
+ }) : obj[key] = value;
18272
+ var __publicField$9 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
17633
18273
  class ADL extends BaseCMI {
17634
18274
  /**
17635
18275
  * Constructor for adl
17636
18276
  */
17637
18277
  constructor() {
17638
18278
  super("adl");
17639
- this.data = new ADLData();
17640
- this._sequencing = null;
18279
+ __publicField$9(this, "nav");
18280
+ __publicField$9(this, "data", new ADLData());
18281
+ __publicField$9(this, "_sequencing", null);
17641
18282
  this.nav = new ADLNav();
17642
18283
  this.data = new ADLData();
17643
18284
  }
@@ -17698,8 +18339,9 @@ ${stackTrace}`);
17698
18339
  */
17699
18340
  constructor() {
17700
18341
  super("adl.nav");
17701
- this._request = "_none_";
17702
- this._sequencing = null;
18342
+ __publicField$9(this, "_request", "_none_");
18343
+ __publicField$9(this, "_sequencing", null);
18344
+ __publicField$9(this, "request_valid");
17703
18345
  this.request_valid = new ADLNavRequestValid();
17704
18346
  this.request_valid.setParentNav(this);
17705
18347
  }
@@ -17783,10 +18425,10 @@ ${stackTrace}`);
17783
18425
  class ADLDataObject extends BaseCMI {
17784
18426
  constructor() {
17785
18427
  super("adl.data.n");
17786
- this._id = "";
17787
- this._store = "";
17788
- this._idIsSet = false;
17789
- this._storeIsSet = false;
18428
+ __publicField$9(this, "_id", "");
18429
+ __publicField$9(this, "_store", "");
18430
+ __publicField$9(this, "_idIsSet", false);
18431
+ __publicField$9(this, "_storeIsSet", false);
17790
18432
  }
17791
18433
  /**
17792
18434
  * Called when the API has been reset
@@ -17865,8 +18507,8 @@ ${stackTrace}`);
17865
18507
  }
17866
18508
  class ADLNavRequestValidChoice {
17867
18509
  constructor() {
17868
- this._parentNav = null;
17869
- this._staticValues = {};
18510
+ __publicField$9(this, "_parentNav", null);
18511
+ __publicField$9(this, "_staticValues", {});
17870
18512
  }
17871
18513
  setParentNav(nav) {
17872
18514
  this._parentNav = nav;
@@ -17911,8 +18553,8 @@ ${stackTrace}`);
17911
18553
  }
17912
18554
  class ADLNavRequestValidJump {
17913
18555
  constructor() {
17914
- this._parentNav = null;
17915
- this._staticValues = {};
18556
+ __publicField$9(this, "_parentNav", null);
18557
+ __publicField$9(this, "_staticValues", {});
17916
18558
  }
17917
18559
  setParentNav(nav) {
17918
18560
  this._parentNav = nav;
@@ -17954,14 +18596,16 @@ ${stackTrace}`);
17954
18596
  */
17955
18597
  constructor() {
17956
18598
  super("adl.nav.request_valid");
17957
- this._continue = "unknown";
17958
- this._previous = "unknown";
17959
- this._exit = "unknown";
17960
- this._exitAll = "unknown";
17961
- this._abandon = "unknown";
17962
- this._abandonAll = "unknown";
17963
- this._suspendAll = "unknown";
17964
- this._parentNav = null;
18599
+ __publicField$9(this, "_continue", "unknown");
18600
+ __publicField$9(this, "_previous", "unknown");
18601
+ __publicField$9(this, "_choice");
18602
+ __publicField$9(this, "_jump");
18603
+ __publicField$9(this, "_exit", "unknown");
18604
+ __publicField$9(this, "_exitAll", "unknown");
18605
+ __publicField$9(this, "_abandon", "unknown");
18606
+ __publicField$9(this, "_abandonAll", "unknown");
18607
+ __publicField$9(this, "_suspendAll", "unknown");
18608
+ __publicField$9(this, "_parentNav", null);
17965
18609
  this._choice = new ADLNavRequestValidChoice();
17966
18610
  this._jump = new ADLNavRequestValidJump();
17967
18611
  }
@@ -18241,16 +18885,24 @@ ${stackTrace}`);
18241
18885
  }
18242
18886
  }
18243
18887
 
18888
+ var __defProp$8 = Object.defineProperty;
18889
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, {
18890
+ enumerable: true,
18891
+ configurable: true,
18892
+ writable: true,
18893
+ value
18894
+ }) : obj[key] = value;
18895
+ var __publicField$8 = (obj, key, value) => __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
18244
18896
  class ActivityTree extends BaseCMI {
18245
18897
  /**
18246
18898
  * Constructor for ActivityTree
18247
18899
  */
18248
18900
  constructor(root) {
18249
18901
  super("activityTree");
18250
- this._root = null;
18251
- this._currentActivity = null;
18252
- this._suspendedActivity = null;
18253
- this._activities = /* @__PURE__ */new Map();
18902
+ __publicField$8(this, "_root", null);
18903
+ __publicField$8(this, "_currentActivity", null);
18904
+ __publicField$8(this, "_suspendedActivity", null);
18905
+ __publicField$8(this, "_activities", /* @__PURE__ */new Map());
18254
18906
  if (root) {
18255
18907
  this.root = root;
18256
18908
  }
@@ -18564,16 +19216,28 @@ ${stackTrace}`);
18564
19216
  }
18565
19217
  }
18566
19218
 
19219
+ var __defProp$7 = Object.defineProperty;
19220
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, {
19221
+ enumerable: true,
19222
+ configurable: true,
19223
+ writable: true,
19224
+ value
19225
+ }) : obj[key] = value;
19226
+ var __publicField$7 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
18567
19227
  class Sequencing extends BaseCMI {
18568
19228
  /**
18569
19229
  * Constructor for Sequencing
18570
19230
  */
18571
19231
  constructor() {
18572
19232
  super("sequencing");
18573
- this._adlNav = null;
18574
- this._hideLmsUi = [];
18575
- this._auxiliaryResources = [];
18576
- this._overallSequencingProcess = null;
19233
+ __publicField$7(this, "_activityTree");
19234
+ __publicField$7(this, "_sequencingRules");
19235
+ __publicField$7(this, "_sequencingControls");
19236
+ __publicField$7(this, "_rollupRules");
19237
+ __publicField$7(this, "_adlNav", null);
19238
+ __publicField$7(this, "_hideLmsUi", []);
19239
+ __publicField$7(this, "_auxiliaryResources", []);
19240
+ __publicField$7(this, "_overallSequencingProcess", null);
18577
19241
  this._activityTree = new ActivityTree();
18578
19242
  this._sequencingRules = new SequencingRules();
18579
19243
  this._sequencingControls = new SequencingControls();
@@ -18766,8 +19430,17 @@ ${stackTrace}`);
18766
19430
  }
18767
19431
  }
18768
19432
 
19433
+ var __defProp$6 = Object.defineProperty;
19434
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, {
19435
+ enumerable: true,
19436
+ configurable: true,
19437
+ writable: true,
19438
+ value
19439
+ }) : obj[key] = value;
19440
+ var __publicField$6 = (obj, key, value) => __defNormalProp$6(obj, key + "" , value);
18769
19441
  class Scorm2004ResponseValidator {
18770
19442
  constructor(context) {
19443
+ __publicField$6(this, "context");
18771
19444
  this.context = context;
18772
19445
  }
18773
19446
  /**
@@ -18925,7 +19598,7 @@ ${stackTrace}`);
18925
19598
  let seenLang = false;
18926
19599
  const prefixRegex = new RegExp("^({(lang|case_matters|order_matters)=([^}]+)})");
18927
19600
  let matches = node.match(prefixRegex);
18928
- let langMatches = null;
19601
+ let langMatches;
18929
19602
  while (matches) {
18930
19603
  switch (matches[2]) {
18931
19604
  case "lang":
@@ -18964,8 +19637,18 @@ ${stackTrace}`);
18964
19637
  }
18965
19638
  }
18966
19639
 
19640
+ var __defProp$5 = Object.defineProperty;
19641
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
19642
+ enumerable: true,
19643
+ configurable: true,
19644
+ writable: true,
19645
+ value
19646
+ }) : obj[key] = value;
19647
+ var __publicField$5 = (obj, key, value) => __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
18967
19648
  class Scorm2004CMIHandler {
18968
19649
  constructor(context, responseValidator) {
19650
+ __publicField$5(this, "context");
19651
+ __publicField$5(this, "responseValidator");
18969
19652
  this.context = context;
18970
19653
  this.responseValidator = responseValidator;
18971
19654
  }
@@ -19600,8 +20283,18 @@ ${stackTrace}`);
19600
20283
  }
19601
20284
  }
19602
20285
 
20286
+ var __defProp$4 = Object.defineProperty;
20287
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, {
20288
+ enumerable: true,
20289
+ configurable: true,
20290
+ writable: true,
20291
+ value
20292
+ }) : obj[key] = value;
20293
+ var __publicField$4 = (obj, key, value) => __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
19603
20294
  class ActivityTreeBuilder {
19604
20295
  constructor(collections, sequencingConfigBuilder) {
20296
+ __publicField$4(this, "sequencingCollections");
20297
+ __publicField$4(this, "sequencingConfigBuilder");
19605
20298
  this.sequencingCollections = collections || {};
19606
20299
  this.sequencingConfigBuilder = sequencingConfigBuilder || new SequencingConfigurationBuilder();
19607
20300
  }
@@ -19769,9 +20462,18 @@ ${stackTrace}`);
19769
20462
  }
19770
20463
  }
19771
20464
 
20465
+ var __defProp$3 = Object.defineProperty;
20466
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
20467
+ enumerable: true,
20468
+ configurable: true,
20469
+ writable: true,
20470
+ value
20471
+ }) : obj[key] = value;
20472
+ var __publicField$3 = (obj, key, value) => __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
19772
20473
  class GlobalObjectiveManager {
19773
20474
  constructor(context) {
19774
- this._globalObjectives = [];
20475
+ __publicField$3(this, "_globalObjectives", []);
20476
+ __publicField$3(this, "context");
19775
20477
  this.context = context;
19776
20478
  }
19777
20479
  /**
@@ -20158,8 +20860,18 @@ ${stackTrace}`);
20158
20860
  }
20159
20861
  }
20160
20862
 
20863
+ var __defProp$2 = Object.defineProperty;
20864
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, {
20865
+ enumerable: true,
20866
+ configurable: true,
20867
+ writable: true,
20868
+ value
20869
+ }) : obj[key] = value;
20870
+ var __publicField$2 = (obj, key, value) => __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
20161
20871
  class SequencingStatePersistence {
20162
20872
  constructor(context, globalObjectiveManager) {
20873
+ __publicField$2(this, "context");
20874
+ __publicField$2(this, "globalObjectiveManager");
20163
20875
  this.context = context;
20164
20876
  this.globalObjectiveManager = globalObjectiveManager;
20165
20877
  }
@@ -20371,8 +21083,18 @@ ${stackTrace}`);
20371
21083
  }
20372
21084
  }
20373
21085
 
21086
+ var __defProp$1 = Object.defineProperty;
21087
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
21088
+ enumerable: true,
21089
+ configurable: true,
21090
+ writable: true,
21091
+ value
21092
+ }) : obj[key] = value;
21093
+ var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
20374
21094
  class Scorm2004DataSerializer {
20375
21095
  constructor(context, globalObjectiveManager) {
21096
+ __publicField$1(this, "context");
21097
+ __publicField$1(this, "globalObjectiveManager");
20376
21098
  this.context = context;
20377
21099
  this.globalObjectiveManager = globalObjectiveManager || null;
20378
21100
  }
@@ -20519,6 +21241,14 @@ ${stackTrace}`);
20519
21241
  }
20520
21242
  }
20521
21243
 
21244
+ var __defProp = Object.defineProperty;
21245
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
21246
+ enumerable: true,
21247
+ configurable: true,
21248
+ writable: true,
21249
+ value
21250
+ }) : obj[key] = value;
21251
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
20522
21252
  class Scorm2004API extends BaseAPI {
20523
21253
  /**
20524
21254
  * Constructor for SCORM 2004 API
@@ -20535,11 +21265,29 @@ ${stackTrace}`);
20535
21265
  }
20536
21266
  }
20537
21267
  super(scorm2004_errors, settingsCopy, httpService);
20538
- this._version = "1.0";
20539
- this._sequencingService = null;
20540
- this._extractedScoItemIds = [];
20541
- this._sequencingCollections = {};
20542
- this._statePersistence = null;
21268
+ __publicField(this, "_version", "1.0");
21269
+ __publicField(this, "_sequencing");
21270
+ __publicField(this, "_sequencingService", null);
21271
+ __publicField(this, "_extractedScoItemIds", []);
21272
+ __publicField(this, "_sequencingCollections", {});
21273
+ // Extracted class instances
21274
+ __publicField(this, "_responseValidator");
21275
+ __publicField(this, "_cmiHandler");
21276
+ __publicField(this, "_activityTreeBuilder");
21277
+ __publicField(this, "_sequencingConfigBuilder");
21278
+ __publicField(this, "_globalObjectiveManager");
21279
+ __publicField(this, "_statePersistence", null);
21280
+ __publicField(this, "_dataSerializer");
21281
+ __publicField(this, "cmi");
21282
+ __publicField(this, "adl");
21283
+ __publicField(this, "Initialize");
21284
+ __publicField(this, "Terminate");
21285
+ __publicField(this, "GetValue");
21286
+ __publicField(this, "SetValue");
21287
+ __publicField(this, "Commit");
21288
+ __publicField(this, "GetLastError");
21289
+ __publicField(this, "GetErrorString");
21290
+ __publicField(this, "GetDiagnostic");
20543
21291
  this.cmi = new CMI();
20544
21292
  this.adl = new ADL();
20545
21293
  this._sequencing = new Sequencing();
@@ -20734,6 +21482,7 @@ ${stackTrace}`);
20734
21482
  processedSequencingRequest = requestToProcess;
20735
21483
  }
20736
21484
  } catch (error) {
21485
+ this.apiLog("lmsFinish", `Sequencing navigation failed, falling back to event-based navigation: ${error}`, LogLevelEnum.WARN);
20737
21486
  navigationHandled = false;
20738
21487
  }
20739
21488
  }
@@ -20771,6 +21520,14 @@ ${stackTrace}`);
20771
21520
  * @return {string} The value of the element, or empty string
20772
21521
  */
20773
21522
  lmsGetValue(CMIElement) {
21523
+ if (this.isTerminated()) {
21524
+ this.lastErrorCode = String(scorm2004_errors.RETRIEVE_AFTER_TERM);
21525
+ return "";
21526
+ }
21527
+ if (!this.isInitialized()) {
21528
+ this.lastErrorCode = String(scorm2004_errors.RETRIEVE_BEFORE_INIT);
21529
+ return "";
21530
+ }
20774
21531
  if (CMIElement === "adl.nav.request") {
20775
21532
  this.throwSCORMError(CMIElement, scorm2004_errors.WRITE_ONLY_ELEMENT, "adl.nav.request is write-only");
20776
21533
  return "";
@@ -20799,14 +21556,6 @@ ${stackTrace}`);
20799
21556
  }
20800
21557
  }
20801
21558
  }
20802
- if (this.isTerminated()) {
20803
- this.lastErrorCode = String(scorm2004_errors.RETRIEVE_AFTER_TERM);
20804
- return "";
20805
- }
20806
- if (!this.isInitialized()) {
20807
- this.lastErrorCode = String(scorm2004_errors.RETRIEVE_BEFORE_INIT);
20808
- return "";
20809
- }
20810
21559
  if (CMIElement === "cmi.completion_status") {
20811
21560
  return this._cmiHandler.evaluateCompletionStatus();
20812
21561
  }