@liascript/exporter 2.6.41--0.17.2 → 2.6.43--0.17.3

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 (47) hide show
  1. package/dist/assets/indexeddb/index.0eda0514.js +1 -0
  2. package/dist/assets/indexeddb/index.587fe4b2.js +1 -0
  3. package/dist/assets/indexeddb/index.html +1 -1
  4. package/dist/assets/pdf/index.a14e9258.js +1 -0
  5. package/dist/assets/pdf/index.e5bf2095.js +1 -0
  6. package/dist/assets/pdf/index.html +1 -1
  7. package/dist/assets/pdf/{jszip.min.19c66d77.js → jszip.min.eaecf580.js} +1 -1
  8. package/dist/assets/scorm1.2/SCORM1.2.27c5f7f8.js +1 -0
  9. package/dist/assets/scorm1.2/SCORM1.2.de9d97b1.js +1 -0
  10. package/dist/assets/scorm1.2/index.a5fa0863.js +1 -0
  11. package/dist/assets/scorm1.2/index.ff33ff1c.js +1 -0
  12. package/dist/assets/scorm1.2/index.html +1 -1
  13. package/dist/assets/scorm1.2/{jszip.min.19c66d77.js → jszip.min.eaecf580.js} +1 -1
  14. package/dist/assets/scorm2004/SCORM2004.5ccbe265.js +1 -0
  15. package/dist/assets/scorm2004/SCORM2004.aa25a014.js +1 -0
  16. package/dist/assets/scorm2004/index.2d9eb8d1.js +1 -0
  17. package/dist/assets/scorm2004/index.dce80f34.js +1 -0
  18. package/dist/assets/scorm2004/index.html +1 -1
  19. package/dist/assets/scorm2004/{jszip.min.19c66d77.js → jszip.min.eaecf580.js} +1 -1
  20. package/dist/assets/web/index.344524d2.js +1 -0
  21. package/dist/assets/web/index.4a1a1af5.js +1 -0
  22. package/dist/assets/web/index.html +1 -1
  23. package/dist/assets/xapi/index.6f62ce64.js +1 -0
  24. package/dist/assets/xapi/index.b1562de7.js +1 -0
  25. package/dist/assets/xapi/index.html +1 -1
  26. package/dist/index.js +1 -1
  27. package/package.json +1 -1
  28. package/dist/assets/indexeddb/index.57fae40d.js +0 -1
  29. package/dist/assets/indexeddb/index.c00f6c31.js +0 -1
  30. package/dist/assets/pdf/index.87cd0e1f.js +0 -1
  31. package/dist/assets/pdf/index.b568f8ce.js +0 -1
  32. package/dist/assets/scorm1.2/SCORM1.2.67efdb83.js +0 -1
  33. package/dist/assets/scorm1.2/SCORM1.2.6aeaad7b.js +0 -1
  34. package/dist/assets/scorm1.2/index.2c8361f8.js +0 -1
  35. package/dist/assets/scorm1.2/index.e41eeaf5.js +0 -1
  36. package/dist/assets/scorm2004/SCORM2004.b05ecf91.js +0 -1
  37. package/dist/assets/scorm2004/SCORM2004.dc46cb61.js +0 -1
  38. package/dist/assets/scorm2004/index.81e0d7d5.js +0 -1
  39. package/dist/assets/scorm2004/index.92824222.js +0 -1
  40. package/dist/assets/web/index.3731b339.js +0 -1
  41. package/dist/assets/web/index.60ae0439.js +0 -1
  42. package/dist/assets/xapi/index.a011f589.js +0 -1
  43. package/dist/assets/xapi/index.cbea2dcb.js +0 -1
  44. /package/dist/assets/{scorm1.2 → pdf}/jszip.min.4fbcc13f.js +0 -0
  45. /package/dist/assets/{pdf → scorm1.2}/jszip.min.63142cc8.js +0 -0
  46. /package/dist/assets/{xapi → scorm2004}/jszip.min.4fbcc13f.js +0 -0
  47. /package/dist/assets/{scorm2004 → xapi}/jszip.min.63142cc8.js +0 -0
@@ -1 +0,0 @@
1
- function t(t,e,i,s){Object.defineProperty(t,e,{get:i,set:s,enumerable:!0,configurable:!0})}var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire55a5;e.register("1FNwj",(function(i,s){t(i.exports,"Connector",(function(){return a}));var n=e("jXXgq"),o=e("ayIBF"),r=e("5aa3i"),c=e("fVQ47");class a extends n.Connector{init(){if(this.scorm){let t=this.scorm.LMSGetValue("cmi.core.lesson_mode")||"unknown";this.active="normal"===t||"unknown"===t,u('Running in "'+t+'" mode, results will'+(this.active?" ":" NOT ")+"be stored!"),l("open location ..."),this.location=r.jsonParse(this.scorm.LMSGetValue("cmi.core.lesson_location")),l("... ",this.location||0),null===this.location&&this.slide(0);let e=0;0===this.countObjectives()&&this.active?(l("seeding values ..."),e=this.initFirst("quiz",e),e=this.initFirst("survey",e),e=this.initFirst("task",e),l("... done")):(l("restoring values ..."),e=this.initSecond("quiz",e),e=this.initSecond("survey",e),e=this.initSecond("task",e),l("... done")),window.SCORE=0,this.score()}}initFirst(t,e){for(let i=0;i<this.db[t].length;i++){this.id[t].push([]);for(let s=0;s<this.db[t][i].length;s++)this.setObjective(e,this.db[t][i][s]),this.id[t][i].push(e),e++}return e}initSecond(t,e){for(let i=0;i<this.db[t].length;i++){this.id[t].push([]);for(let s=0;s<this.db[t][i].length;s++){let n=this.getObjective(e);n&&(this.db[t][i][s]=n),this.id[t][i].push(e),e++}}return e}score(){var t;if(!this.active||!this.score)return;let e=0,i=0,s=0,n=0;for(let t=0;t<this.db.quiz.length;t++)for(let o=0;o<this.db.quiz[t].length;o++)switch(n=this.db.quiz[t][o].score,e+=n,this.db.quiz[t][o].solved){case 1:i+=n;case-1:s+=n}const o=0===i?0:i/e;this.write("cmi.core.score.min","0"),this.write("cmi.core.score.max","100"),this.write("cmi.core.score.raw",function(t){const e=t.toFixed(4),[i,s]=e.toString().split(".");return`${i}.${s.padEnd(10,"0")}`}(100*o));let c=r.jsonParse((null===(t=this.scorm)||void 0===t?void 0:t.LMSGetValue("cmi.student_data.mastery_score"))||"null");null==c?this.write("cmi.core.lesson_status","not attempted"):o>=c/100?this.write("cmi.core.lesson_status","passed"):s+i===e?this.write("cmi.core.lesson_status","failed"):this.write("cmi.core.lesson_status","incomplete"),window.SCORE=o}open(t,e,i){if(null!==this.location){const t=this.location;setTimeout((function(){window.LIA.goto(t)}),500)}}slide(t){this.location=t,this.scorm&&this.active&&(this.scorm.LMSSetValue("cmi.core.lesson_location",JSON.stringify(t)),this.scorm.LMSCommit(""))}countObjectives(){return this.scorm?parseInt(this.scorm.LMSGetValue("cmi.objectives._count"))||0:null}initSettings(t,e=!1){return o.Settings.init(t,!1,this.setSettings)}setSettings(t){this.write("cmi.suspend_data",JSON.stringify(t))}getSettings(){let t="";try{var e;t=(null===(e=this.scorm)||void 0===e?void 0:e.LMSGetValue("cmi.suspend_data"))||null}catch(t){u("cannot read settings from cmi.suspend_data")}let i=null;if("string"==typeof t){try{i=JSON.parse(t)}catch(t){u("getSettings =>",t)}i||(i=o.Settings.data),window.innerWidth<=768&&(i.table_of_contents=!1)}return i}write(t,e){if(this.scorm){this.escape&&(e=e.replace(/"/g,'\\"'));try{this.scorm.LMSSetValue(t,e),this.scorm.LMSCommit("")}catch(i){if(u("Failed to write =>",t,e),u("Message:",i.message),void 0===this.escape){e=e.replace(/"/g,'\\"');try{this.scorm.LMSSetValue(t,e),this.scorm.LMSCommit(""),this.escape=!0}catch(t){this.escape=!1}}}}else u("could not write",t,e)}getObjective(t){let e;try{if(this.scorm&&(e=this.scorm.LMSGetValue(`cmi.objectives.${t}.id`),e))return r.decodeJSON(e)}catch(i){u("getObjective =>",i,`cmi.objectives.${t}.id`,e)}return null}setObjective(t,e){const i=r.encodeJSON(e);i.length>255&&u(`cmi.objectives.${t}.id`,"Content exceeds 256Bytes!"),this.write(`cmi.objectives.${t}.id`,i)}load(t){switch(t.table){case"quiz":case"survey":case"task":return l("loading ",t.table,t.id,this.db[t.table][t.id]),this.db[t.table][t.id]}}store(t){if(this.active)switch(u("store",t),t.table){case"quiz":this.storeHelper(t),this.score();break;case"survey":case"task":this.storeHelper(t)}}storeHelper(t){for(let e=0;e<this.db[t.table][t.id].length;e++)r.neq(t.data[e],this.db[t.table][t.id][e])&&(this.setObjective(this.id[t.table][t.id][e],t.data[e]),this.db[t.table][t.id][e]=t.data[e],"quiz"==t.table&&this.updateQuiz(this.id[t.table][t.id][e],t.data[e]))}updateQuiz(t,e){if(this.active)switch(e.solved){case 0:e.trial>0&&this.write(`cmi.objectives.${t}.status`,"failed");break;case 1:this.write(`cmi.objectives.${t}.status`,"completed");break;case-1:this.write(`cmi.objectives.${t}.status`,"incomplete")}}constructor(){var t;if(super(),this.active=!1,this.db={quiz:[],survey:[],task:[]},this.id={quiz:[],survey:[],task:[]},console.warn("Hello, this is LiaScript from within a SCORM 1.2 package. You should definitely try out the SCORM 2004 exporter, since this one cannot be used to store states or any kind of progress. The only thing that is stores, is currently the user location...\n\nIF YOU ARE AN ELABORATE AND EXPERIENCED SCORM DEVELOPER?\n========================================================\n\nAnd you want to help us, to extend this service, please contact us via LiaScript@web.de\n\nHave fun ;-)"),window.API||window.top&&window.top.API?this.scorm=window.API||(null===(t=window.top)||void 0===t?void 0:t.API):this.scorm=(0,c.getAPI)(),this.scorm){l("successfully opened API"),l("LMSInitialize",this.scorm.LMSInitialize("")),l("loading quizzes ...");try{this.db.quiz=window.config_.quiz||[[]],l(" ... done")}catch(t){u("... failed",t)}l("loading surveys ...");try{this.db.survey=window.config_.survey||[[]],l(" ... done")}catch(t){u("... failed",t)}l("loading tasks ...");try{this.db.task=window.config_.task||[[]],l(" ... done")}catch(t){u("... failed",t)}this.init()}}}function l(...t){console.log("SCORM1.2: ",...t)}function u(...t){console.log("SCORM1.2: ",...t)}})),e.register("jXXgq",(function(i,s){t(i.exports,"Connector",(function(){return r}));var n=e("3MPaZ"),o=e("ayIBF");class r{hasIndex(){return!1}storage(){return new n.LiaStorage}initSettings(t,e=!1){return o.Settings.init(t,e,this.setSettings)}setSettings(t){o.Settings.update(t)}getSettings(){let t="";try{t=localStorage.getItem(o.Settings.PORT)}catch(t){console.warn("cannot write to localStorage")}let e=null;if("string"==typeof t){try{e=JSON.parse(t)}catch(t){console.warn("getSettings =>",t)}e||(e=o.Settings.data),window.innerWidth<=768&&(e.table_of_contents=!1)}return e}open(t,e,i){}load(t){}store(t){}update(t,e){}slide(t){}getIndex(){}deleteFromIndex(t){}async storeToIndex(t){}restoreFromIndex(t,e){}reset(t,e){this.initSettings(null,!0)}async getFromIndex(t){return null}async addMisc(t,e,i,s){console.log("addMisc not implemented")}async getMisc(t,e,i){console.log("getMisc not implemented")}constructor(){}}})),e.register("3MPaZ",(function(e,i){t(e.exports,"LiaStorage",(function(){return s}));class s{getItems(t=[]){"string"==typeof t&&(t=[t]);let e={};for(let i=0;i<t.length;i++){let s=localStorage.getItem(t[i]);e[t[i]]=s?JSON.parse(s):s}return e}setItems(t){this._setLocal(t)}_setLocal(t){if("object"==typeof t)for(const[e,i]of Object.entries(t))localStorage.setItem(e,JSON.stringify(i))}constructor(){}}})),e.register("5aa3i",(function(e,i){t(e.exports,"encodeJSON",(function(){return r})),t(e.exports,"decodeJSON",(function(){return c})),t(e.exports,"jsonParse",(function(){return a})),t(e.exports,"neq",(function(){return l}));const s={SingleChoice:"sc",MultipleChoice:"mc",Text:"tx",Select:"st",Matrix:"mx",Generic:"gn",error_msg:"err"},n=Object.entries(s).reduce(((t,[e,i])=>(t[i]=e,t)),{});function o(t,e){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return t.map((t=>o(t,e)));const i={};for(const[s,n]of Object.entries(t))i[e[s]||s]=o(n,e);return i}function r(t){return JSON.stringify(o(t,s))}function c(t){return o(JSON.parse(t),n)}function a(t){try{return JSON.parse(t)}catch(t){}return null}function l(t,e){return JSON.stringify(t)!=JSON.stringify(e)}})),e.register("fVQ47",(function(e,i){t(e.exports,"getAPI",(function(){return o}));var s=0;function n(t){for(;null==t.API&&null!=t.parent&&t.parent!=t;){if(++s>7)return alert("Error finding API -- too deeply nested."),null;t=t.parent}return t.API}function o(){var t=n(window);return null==t&&null!=window.opener&&void 0!==window.opener&&(t=n(window.opener)),null==t&&alert("Unable to find the SCORM1.2 API adapter"),t}}));
@@ -1 +0,0 @@
1
- !function(){function t(t,e,n,i){Object.defineProperty(t,e,{get:n,set:i,enumerable:!0,configurable:!0})}var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire55a5;e.register("58dpJ",(function(n,i){t(n.exports,"Connector",(function(){return v}));var r=e("9Klpk"),o=e("3bWnf"),s=e("kb0qF"),a=e("5ENmm"),c=e("6Wo7Q"),u=e("bWNdT"),l=e("knzCS"),d=e("cRTHJ"),f=e("jxbaN"),h=e("jjBAR"),v=function(t){"use strict";(0,s.default)(n,t);var e=(0,u.default)(n);function n(){var t,i;if((0,r.default)(this,n),(t=e.call(this)).active=!1,t.db={quiz:[],survey:[],task:[]},t.id={quiz:[],survey:[],task:[]},console.warn("Hello, this is LiaScript from within a SCORM 1.2 package. You should definitely try out the SCORM 2004 exporter, since this one cannot be used to store states or any kind of progress. The only thing that is stores, is currently the user location...\n\nIF YOU ARE AN ELABORATE AND EXPERIENCED SCORM DEVELOPER?\n========================================================\n\nAnd you want to help us, to extend this service, please contact us via LiaScript@web.de\n\nHave fun ;-)"),window.API||window.top&&window.top.API?t.scorm=window.API||(null===(i=window.top)||void 0===i?void 0:i.API):t.scorm=(0,h.getAPI)(),t.scorm){g("successfully opened API"),g("LMSInitialize",t.scorm.LMSInitialize("")),g("loading quizzes ...");try{t.db.quiz=window.config_.quiz||[[]],g(" ... done")}catch(t){y("... failed",t)}g("loading surveys ...");try{t.db.survey=window.config_.survey||[[]],g(" ... done")}catch(t){y("... failed",t)}g("loading tasks ...");try{t.db.task=window.config_.task||[[]],g(" ... done")}catch(t){y("... failed",t)}t.init()}return t}return(0,o.default)(n,[{key:"init",value:function(){if(this.scorm){var t=this.scorm.LMSGetValue("cmi.core.lesson_mode")||"unknown";this.active="normal"===t||"unknown"===t,y('Running in "'+t+'" mode, results will'+(this.active?" ":" NOT ")+"be stored!"),g("open location ..."),this.location=f.jsonParse(this.scorm.LMSGetValue("cmi.core.lesson_location")),g("... ",this.location||0),null===this.location&&this.slide(0);var e=0;0===this.countObjectives()&&this.active?(g("seeding values ..."),e=this.initFirst("quiz",e),e=this.initFirst("survey",e),e=this.initFirst("task",e),g("... done")):(g("restoring values ..."),e=this.initSecond("quiz",e),e=this.initSecond("survey",e),e=this.initSecond("task",e),g("... done")),window.SCORE=0,this.score()}}},{key:"initFirst",value:function(t,e){for(var n=0;n<this.db[t].length;n++){this.id[t].push([]);for(var i=0;i<this.db[t][n].length;i++)this.setObjective(e,this.db[t][n][i]),this.id[t][n].push(e),e++}return e}},{key:"initSecond",value:function(t,e){for(var n=0;n<this.db[t].length;n++){this.id[t].push([]);for(var i=0;i<this.db[t][n].length;i++){var r=this.getObjective(e);r&&(this.db[t][n][i]=r),this.id[t][n].push(e),e++}}return e}},{key:"score",value:function(){var t;if(this.active&&this.score){for(var e=0,n=0,i=0,r=0,o=0;o<this.db.quiz.length;o++)for(var s=0;s<this.db.quiz[o].length;s++)switch(e+=r=this.db.quiz[o][s].score,this.db.quiz[o][s].solved){case 1:n+=r;case-1:i+=r}var c,u,l,d,h=0===n?0:n/e;this.write("cmi.core.score.min","0"),this.write("cmi.core.score.max","100"),this.write("cmi.core.score.raw",(c=(100*h).toFixed(4),u=(0,a.default)(c.toString().split("."),2),l=u[0],d=u[1],"".concat(l,".").concat(d.padEnd(10,"0"))));var v=f.jsonParse((null===(t=this.scorm)||void 0===t?void 0:t.LMSGetValue("cmi.student_data.mastery_score"))||"null");null==v?this.write("cmi.core.lesson_status","not attempted"):h>=v/100?this.write("cmi.core.lesson_status","passed"):i+n===e?this.write("cmi.core.lesson_status","failed"):this.write("cmi.core.lesson_status","incomplete"),window.SCORE=h}}},{key:"open",value:function(t,e,n){if(null!==this.location){var i=this.location;setTimeout((function(){window.LIA.goto(i)}),500)}}},{key:"slide",value:function(t){this.location=t,this.scorm&&this.active&&(this.scorm.LMSSetValue("cmi.core.lesson_location",JSON.stringify(t)),this.scorm.LMSCommit(""))}},{key:"countObjectives",value:function(){return this.scorm?parseInt(this.scorm.LMSGetValue("cmi.objectives._count"))||0:null}},{key:"initSettings",value:function(t){return d.Settings.init(t,!1,this.setSettings)}},{key:"setSettings",value:function(t){this.write("cmi.suspend_data",JSON.stringify(t))}},{key:"getSettings",value:function(){var t="";try{var e;t=(null===(e=this.scorm)||void 0===e?void 0:e.LMSGetValue("cmi.suspend_data"))||null}catch(t){y("cannot read settings from cmi.suspend_data")}var n=null;if("string"==typeof t){try{n=JSON.parse(t)}catch(t){y("getSettings =>",t)}n||(n=d.Settings.data),window.innerWidth<=768&&(n.table_of_contents=!1)}return n}},{key:"write",value:function(t,e){if(this.scorm){this.escape&&(e=e.replace(/"/g,'\\"'));try{this.scorm.LMSSetValue(t,e),this.scorm.LMSCommit("")}catch(n){if(y("Failed to write =>",t,e),y("Message:",n.message),void 0===this.escape){e=e.replace(/"/g,'\\"');try{this.scorm.LMSSetValue(t,e),this.scorm.LMSCommit(""),this.escape=!0}catch(t){this.escape=!1}}}}else y("could not write",t,e)}},{key:"getObjective",value:function(t){var e;try{if(this.scorm&&(e=this.scorm.LMSGetValue("cmi.objectives.".concat(t,".id"))))return f.decodeJSON(e)}catch(n){y("getObjective =>",n,"cmi.objectives.".concat(t,".id"),e)}return null}},{key:"setObjective",value:function(t,e){var n=f.encodeJSON(e);n.length>255&&y("cmi.objectives.".concat(t,".id"),"Content exceeds 256Bytes!"),this.write("cmi.objectives.".concat(t,".id"),n)}},{key:"load",value:function(t){switch(t.table){case"quiz":case"survey":case"task":return g("loading ",t.table,t.id,this.db[t.table][t.id]),this.db[t.table][t.id]}}},{key:"store",value:function(t){if(this.active)switch(y("store",t),t.table){case"quiz":this.storeHelper(t),this.score();break;case"survey":case"task":this.storeHelper(t)}}},{key:"storeHelper",value:function(t){for(var e=0;e<this.db[t.table][t.id].length;e++)f.neq(t.data[e],this.db[t.table][t.id][e])&&(this.setObjective(this.id[t.table][t.id][e],t.data[e]),this.db[t.table][t.id][e]=t.data[e],"quiz"==t.table&&this.updateQuiz(this.id[t.table][t.id][e],t.data[e]))}},{key:"updateQuiz",value:function(t,e){if(this.active)switch(e.solved){case 0:e.trial>0&&this.write("cmi.objectives.".concat(t,".status"),"failed");break;case 1:this.write("cmi.objectives.".concat(t,".status"),"completed");break;case-1:this.write("cmi.objectives.".concat(t,".status"),"incomplete")}}}]),n}(l.Connector);function g(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i;(i=console).log.apply(i,["SCORM1.2: "].concat((0,c.default)(e)))}function y(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i;(i=console).log.apply(i,["SCORM1.2: "].concat((0,c.default)(e)))}})),e.register("knzCS",(function(n,i){t(n.exports,"Connector",(function(){return l}));var r=e("hnmIs"),o=e("9Klpk"),s=e("3bWnf"),a=e("32Euv"),c=e("87lFe"),u=e("cRTHJ"),l=function(){"use strict";function t(){(0,o.default)(this,t)}return(0,s.default)(t,[{key:"hasIndex",value:function(){return!1}},{key:"storage",value:function(){return new c.LiaStorage}},{key:"initSettings",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.Settings.init(t,e,this.setSettings)}},{key:"setSettings",value:function(t){u.Settings.update(t)}},{key:"getSettings",value:function(){var t="";try{t=localStorage.getItem(u.Settings.PORT)}catch(t){console.warn("cannot write to localStorage")}var e=null;if("string"==typeof t){try{e=JSON.parse(t)}catch(t){console.warn("getSettings =>",t)}e||(e=u.Settings.data),window.innerWidth<=768&&(e.table_of_contents=!1)}return e}},{key:"open",value:function(t,e,n){}},{key:"load",value:function(t){}},{key:"store",value:function(t){}},{key:"update",value:function(t,e){}},{key:"slide",value:function(t){}},{key:"getIndex",value:function(){}},{key:"deleteFromIndex",value:function(t){}},{key:"storeToIndex",value:function(t){return(0,r.default)((function(){return(0,a.__generator)(this,(function(t){return[2]}))}))()}},{key:"restoreFromIndex",value:function(t,e){}},{key:"reset",value:function(t,e){this.initSettings(null,!0)}},{key:"getFromIndex",value:function(t){return(0,r.default)((function(){return(0,a.__generator)(this,(function(t){return[2,null]}))}))()}},{key:"addMisc",value:function(t,e,n,i){return(0,r.default)((function(){return(0,a.__generator)(this,(function(t){return console.log("addMisc not implemented"),[2]}))}))()}},{key:"getMisc",value:function(t,e,n){return(0,r.default)((function(){return(0,a.__generator)(this,(function(t){return console.log("getMisc not implemented"),[2]}))}))()}}]),t}()})),e.register("87lFe",(function(n,i){t(n.exports,"LiaStorage",(function(){return a}));var r=e("9Klpk"),o=e("3bWnf"),s=e("5ENmm"),a=function(){"use strict";function t(){(0,r.default)(this,t)}return(0,o.default)(t,[{key:"getItems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];"string"==typeof t&&(t=[t]);for(var e={},n=0;n<t.length;n++){var i=localStorage.getItem(t[n]);e[t[n]]=i?JSON.parse(i):i}return e}},{key:"setItems",value:function(t){this._setLocal(t)}},{key:"_setLocal",value:function(t){var e=!0,n=!1,i=void 0;if("object"==typeof t)try{for(var r,o=Object.entries(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var a=(0,s.default)(r.value,2),c=a[0],u=a[1];localStorage.setItem(c,JSON.stringify(u))}}catch(t){n=!0,i=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}}}]),t}()})),e.register("jxbaN",(function(n,i){t(n.exports,"encodeJSON",(function(){return c})),t(n.exports,"decodeJSON",(function(){return u})),t(n.exports,"jsonParse",(function(){return l})),t(n.exports,"neq",(function(){return d}));var r=e("5ENmm"),o={SingleChoice:"sc",MultipleChoice:"mc",Text:"tx",Select:"st",Matrix:"mx",Generic:"gn",error_msg:"err"},s=Object.entries(o).reduce((function(t,e){var n=(0,r.default)(e,2),i=n[0];return t[n[1]]=i,t}),{});function a(t,e){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return t.map((function(t){return a(t,e)}));var n={},i=!0,o=!1,s=void 0;try{for(var c,u=Object.entries(t)[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var l=(0,r.default)(c.value,2),d=l[0],f=l[1];n[e[d]||d]=a(f,e)}}catch(t){o=!0,s=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return n}function c(t){return JSON.stringify(a(t,o))}function u(t){return a(JSON.parse(t),s)}function l(t){try{return JSON.parse(t)}catch(t){}return null}function d(t,e){return JSON.stringify(t)!=JSON.stringify(e)}})),e.register("jjBAR",(function(e,n){t(e.exports,"getAPI",(function(){return o}));var i=0;function r(t){for(;null==t.API&&null!=t.parent&&t.parent!=t;){if(++i>7)return alert("Error finding API -- too deeply nested."),null;t=t.parent}return t.API}function o(){var t=r(window);return null==t&&null!=window.opener&&void 0!==window.opener&&(t=r(window.opener)),null==t&&alert("Unable to find the SCORM1.2 API adapter"),t}}))}();