(()=>{"use strict";const e=new Map;const r=window,n={encodeCourseProgress:e=>r.scormdriver_content.Rise.encodeCourseProgress(e),decodeCourseProgress:(e,n)=>r.scormdriver_content.Rise.decodeCourseProgress(e,n),encodeLessonProgress:e=>r.scormdriver_content.Rise.encodeLessonProgress(e)};let t=0;Object.defineProperties(window,{LoadContent:{value:function t(){const o=function(r){const n=e.get(r);if(void 0!==n)return n;const t=document.getElementById(r);!function(e,r="Assertion Error"){if(!e)throw new Error(r)}(!0===(null==t?void 0:t.matches('script[type="application/json"]')),`Could not find script element #${r}`);const o=JSON.parse(t.textContent);return e.set(r,o),o}("__DRIVER_CONFIG__");!function(e){const{coursePackageVersion:t,resetLearnerData:o,quizId:s,storylineId:i,completionPercentage:c,reporting:a}=e;r.RiseLMSInterface.initialize({coursePackageVersion:t,resetLearnerData:o,quizId:s,storylineId:i,completionPercentage:c,reporting:a,encoders:n})}(o),r.RiseLMSInterface.verifySuspendDataVersion(3),"cmi5"!==o.lmsTarget&&r.RiseLMSInterface.verifyForcedCommitTime(r.FORCED_COMMIT_TIME);const s=""!==r.RiseLMSInterface.getQueryStringValue("AICC_URL",document.location.search);if(r.RiseLMSInterface.isLoaded()||!s){const e=r.RiseLMSInterface.getBookmark(),n=""===e?"../scormcontent/index.html#/preview":`../scormcontent/${e}`;r.scormdriver_content.document.location.href=n}else setTimeout(t,500)},writable:!1,enumerable:!1,configurable:!1},updateIframesLoadedCount:{value:function(){t+=1,t===window.frames.length&&r.RiseLMSInterface.start()},writable:!1,enumerable:!1,configurable:!1}})})();