(function(){var h,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},l="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ba(){ba=function(){};l.Symbol||(l.Symbol=ca)}var ca=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}();
function da(){ba();var a=l.Symbol.iterator;a||(a=l.Symbol.iterator=l.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(this)}});da=function(){}}function ea(a){var b=0;return fa(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function fa(a){da();a={next:a};a[l.Symbol.iterator]=function(){return this};return a}function m(a){da();var b=a[Symbol.iterator];return b?b.call(a):ea(a)}
var ha="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ia;if("function"==typeof Object.setPrototypeOf)ia=Object.setPrototypeOf;else{var ja;a:{var ka={Dc:!0},la={};try{la.__proto__=ka;ja=la.Dc;break a}catch(a){}ja=!1}ia=ja?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ma=ia;
function p(a,b){a.prototype=ha(b.prototype);a.prototype.constructor=a;if(ma)ma(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Eb=b.prototype}function na(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}
function oa(a,b){if(b){var c=l;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}}oa("Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}});function q(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
oa("WeakMap",function(a){function b(a){this.za=(f+=Math.random()+1).toString();if(a){ba();da();a=m(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}}function c(a){q(a,e)||aa(a,e,{value:{}})}function d(a){var b=Object[a];b&&(Object[a]=function(a){c(a);return b(a)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d.delete(b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(C){return!1}}())return a;
var e="$jscomp_hidden_"+Math.random().toString().substring(2);d("freeze");d("preventExtensions");d("seal");var f=0;b.prototype.set=function(a,b){c(a);if(!q(a,e))throw Error("WeakMap key fail: "+a);a[e][this.za]=b;return this};b.prototype.get=function(a){return q(a,e)?a[e][this.za]:void 0};b.prototype.has=function(a){return q(a,e)&&q(a[e],this.za)};b.prototype.delete=function(a){return q(a,e)&&q(a[e],this.za)?delete a[e][this.za]:!1};return b});var r=this;function t(a){return void 0!==a}
function u(a){return"string"==typeof a}function pa(a){return"number"==typeof a}function v(a,b,c){a=a.split(".");c=c||r;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&t(b)?c[d]=b:c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}}function qa(){}
function w(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ra(a){var b=w(a);return"array"==b||"object"==b&&"number"==typeof a.length}function sa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var ta="closure_uid_"+(1E9*Math.random()>>>0),ua=0;function va(a,b,c){return a.call.apply(a.bind,arguments)}
function wa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function x(a,b,c){x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?va:wa;return x.apply(null,arguments)}var y=Date.now||function(){return+new Date};
function xa(a,b){function c(){}c.prototype=b.prototype;a.Eb=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Ad=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};function ya(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ya);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}xa(ya,Error);ya.prototype.name="CustomError";function za(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}var z=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
function Aa(a){if(!Ba.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ca,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Da,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ea,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Fa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ga,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ha,"&#0;"));return a}
var Ca=/&/g,Da=/</g,Ea=/>/g,Fa=/"/g,Ga=/'/g,Ha=/\x00/g,Ba=/[\x00&<>"']/,Ia={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},Ja={"'":"\\'"};
function Ka(a){a=String(a);for(var b=['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0),f=c+1,g;if(!(g=Ia[d])){if(!(31<e&&127>e))if(d in Ja)d=Ja[d];else if(d in Ia)d=Ja[d]=Ia[d];else{g=d.charCodeAt(0);if(31<g&&127>g)e=d;else{if(256>g){if(e="\\x",16>g||256<g)e+="0"}else e="\\u",4096>g&&(e+="0");e+=g.toString(16).toUpperCase()}d=Ja[d]=e}g=d}b[f]=g}b.push('"');return b.join("")}
function La(a,b){var c=0;a=z(String(a)).split(".");b=z(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(0==f[0].length&&0==g[0].length)break;c=Ma(0==f[1].length?0:parseInt(f[1],10),0==g[1].length?0:parseInt(g[1],10))||Ma(0==f[2].length,0==g[2].length)||Ma(f[2],g[2]);f=f[3];g=g[3]}while(0==c)}return c}function Ma(a,b){return a<b?-1:a>b?1:0}
function Na(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Oa(a){var b=u(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};function Pa(a,b){b.unshift(a);ya.call(this,za.apply(null,b));b.shift()}xa(Pa,ya);Pa.prototype.name="AssertionError";function Qa(a){throw a;}function A(a,b,c){if(!a){var d="Assertion failed";if(b){d+=": "+b;var e=Array.prototype.slice.call(arguments,2)}d=new Pa(""+d,e||[]);Qa(d)}return a}function Ra(a,b){Qa(new Pa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};function Sa(){return!1}function Ta(a,b){Sa()&&(b?r.console.error(a):r.console.warn(a))}function Ua(a,b){var c=a.stack||a.toString();0>String(c).indexOf(a.message)&&Ta(a.message,b);Ta(c,b)}window.onerror=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=m(b);b=c.next().value;c.next();c.next();c.next();(c=c.next().value)?Ua(c,!0):Ta(b,!0);return!0};Qa=function(a){try{throw Error(a.message);}catch(b){Ua(b,!1)}};
r.console||(window._log="",r.console={log:function(a){window._log+="\n"+a},warn:function(a){window._log+="\nwarn: "+a},error:function(a){window._log+="\nerror: "+a}});function B(){}v("ispring.events.IEventDispatcher",B,void 0);B.prototype.addHandler=function(){};B.prototype.addHandler=B.prototype.addHandler;B.prototype.removeHandler=function(){};B.prototype.removeHandler=B.prototype.removeHandler;var D;a:{var Va=r.navigator;if(Va){var Wa=Va.userAgent;if(Wa){D=Wa;break a}}D=""}function E(a){return-1!=D.indexOf(a)};function Xa(){return E("iPhone")&&!E("iPod")&&!E("iPad")};function Ya(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function Za(a){var b=0,c;for(c in a)b++;return b}function $a(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function ab(a,b,c){return null!==a&&b in a?a[b]:c}var bb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function cb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<bb.length;f++)c=bb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var db=Array.prototype.indexOf?function(a,b){A(null!=a.length);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(u(a))return u(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},eb=Array.prototype.forEach?function(a,b,c){A(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},fb=Array.prototype.map?function(a,b){A(null!=a.length);return Array.prototype.map.call(a,
b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e=u(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d};function gb(a,b){a:{for(var c=a.length,d=u(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:u(a)?a.charAt(b):a[b]}function hb(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
function ib(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ra(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}}function jb(a,b,c,d){A(null!=a.length);Array.prototype.splice.apply(a,kb(arguments,1))}function kb(a,b,c){A(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};function lb(a,b){var c=mb;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var nb=E("Opera"),F=E("Trident")||E("MSIE"),ob=E("Edge"),pb=E("Gecko")&&!(-1!=D.toLowerCase().indexOf("webkit")&&!E("Edge"))&&!(E("Trident")||E("MSIE"))&&!E("Edge"),qb=-1!=D.toLowerCase().indexOf("webkit")&&!E("Edge");function rb(){var a=r.document;return a?a.documentMode:void 0}var sb;
a:{var tb="",ub=function(){var a=D;if(pb)return/rv:([^\);]+)(\)|;)/.exec(a);if(ob)return/Edge\/([\d\.]+)/.exec(a);if(F)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(qb)return/WebKit\/(\S+)/.exec(a);if(nb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();ub&&(tb=ub?ub[1]:"");if(F){var vb=rb();if(null!=vb&&vb>parseFloat(tb)){sb=String(vb);break a}}sb=tb}var mb={};function G(a){return lb(a,function(){return 0<=La(sb,a)})}var wb;var xb=r.document;
wb=xb&&F?rb()||("CSS1Compat"==xb.compatMode?parseInt(sb,10):5):void 0;F&&G("9");!qb||G("528");pb&&G("1.9b")||F&&G("8")||nb&&G("9.5")||qb&&G("528");pb&&!G("8")||F&&G("9");(function(){if(!r.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});r.addEventListener("test",qa,b);r.removeEventListener("test",qa,b);return a})();function yb(){};function zb(){this.na=this.Z=this.Ha=null}zb.prototype.push=function(a,b){if(0==b)this.na=this.na||[];else if(this.Ha=this.Ha||[0],this.Z=this.Z||{},!(b in this.Z)){this.Z[b]=[];var c=this.Ha;var d=0;for(var e=c.length,f;d<e;){var g=d+e>>1;var k=c[g];k=b>k?1:b<k?-1:0;0<k?d=g+1:(e=g,f=!k)}d=f?d:~d;0>d&&jb(c,-(d+1),0,b)}b=Ab(this,b);A(b).push(a)};zb.prototype.remove=function(a,b){if(b=Ab(this,b))a=db(b,a),0<=a&&(A(null!=b.length),Array.prototype.splice.call(b,a,1))};
function Bb(a,b){return 0==b?a.na||[]:b in A(a.Z)?A(Ab(a,b)):[]}function Cb(a){if(!a.Z)return a.na?a.na.slice():[];for(var b=[],c=A(a.Ha),d=0;d<c.length;++d){var e=Ab(a,c[d]);e&&ib(b,e)}return b}function Ab(a,b){return 0==b?a.na:A(a.Z)[b]};function H(a){this.Ub=this.F=null;this.tc=void 0===a?null:a}p(H,yb);H.prototype.Fc=function(){return this.tc};H.prototype.eventOwner=H.prototype.Fc;H.prototype.addHandler=function(a,b,c){this.F=this.F||new zb;this.F.push({yb:a,context:b},c||0)};H.prototype.addHandler=H.prototype.addHandler;
H.prototype.removeHandler=function(a,b,c){c=c||0;if(this.F)for(var d=Bb(this.F,c),e=d.length,f=0;f<e;++f){var g=d[f];if(g.yb==a&&g.context==b){a=f;if(c=Ab(this.F,c))A(null!=c.length),Array.prototype.splice.call(c,a,1);break}}else Ra("EventDispatcher has no handlers!")};H.prototype.removeHandler=H.prototype.removeHandler;H.prototype.Hc=function(a,b,c){if(!this.F)return!1;c=Bb(this.F,c||0);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(f.yb==a&&f.context==b)return!0}return!1};
H.prototype.hasHandler=H.prototype.Hc;H.prototype.Oa=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(this.F){c=Cb(this.F);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(-1!=db(Cb(this.F),f))try{f.yb.apply(f.context,arguments)}catch(g){Ua(g,!0)}}}this.Ub&&this.Ub.forEach(function(a){a.Oa.apply(a,[].concat(b instanceof Array?b:na(m(b))))})};H.prototype.dispatch=H.prototype.Oa;var Db={od:"prompt",Oc:"always",gd:"never"};v("ispring.presenter.presentation.settings.PresentationResumeMode",Db,void 0);v("PROMPT_TO_RESUME","prompt",Db);v("ALWAYS_RESUME","always",Db);v("NEVER_RESUME","never",Db);function Eb(a,b){this.ub=a;this.Zb=b;this.$b=new H}h=Eb.prototype;h.X=!1;h.ia=0;h.Ja=0;h.La=-1;h.Ma=0;h.ab=0;h.start=function(a){this.X||(this.Ma=this.ia=a||0,a=this.ia>=this.ub,a&&this.Zb||(this.X=!0,this.Ja=y(),a||(this.La=setTimeout(x(this.ob,this),this.ub-this.ia))))};h.ob=function(){this.Zb&&(this.stop(),this.Ma=this.ub);this.$b.Oa()};h.stop=function(){this.X&&(this.X=!1,0<this.La&&(clearTimeout(this.La),this.La=-1),this.ab=y()-this.Ja,this.Ma=this.ab+this.ia)};function Fb(a){this.sc=a};function Gb(a){this.kb=a}Gb.prototype.Gc=function(a,b,c){c=this.kb.hasOwnProperty(a)?this.kb[a]:c;if(t(c)){if(t(b)){a=this.lc;for(var d in b)if(b.hasOwnProperty(d)){var e=b[d];a&&(d=a(d));c=c.replace(new RegExp(d,"g"),e)}}return c}Ra("unknown message id: "+a);return a};Gb.prototype.getMessage=Gb.prototype.Gc;Gb.prototype.messages=function(){return this.kb};Gb.prototype.lc=function(a){return"%"+a.toUpperCase()+"%"};function Hb(a,b,c,d){this.rb=b;this.mc=new Gb(c);this.G=d}Hb.prototype.i18n=function(){return this.mc};function Ib(a,b,c){var d=window.iSpring.LMSAPI;switch(a){case "1.2":return new d.Scorm12Api(b);case "2004":return new d.Scorm2004Api(b);case "aicc":return new d.AiccApi(b);case "tincan":return new d.TinCanApi(b,c);case "cmi-5":return new d.Cmi5Api(b,c);default:throw Error("unknown api");}};function Jb(){this.Ac=new H};function Kb(a,b,c,d){this.Bc=a;this.bb=b;this.yc=c;this.oc=d}Kb.prototype.timeLimit=function(){return this.Bc};Kb.prototype.message=function(){return this.oc};var Lb={rd:"resumePlayback",Vc:"gotoSlide",Rc:"delayStartup"};v("ispring.presenter.player.startup.PresentationStartup.Action",Lb,void 0);v("RESUME_PLAYBACK","resumePlayback",Lb);v("GOTO_SLIDE","gotoSlide",Lb);v("DELAY_STARTUP","delayStartup",Lb);function Mb(){this.Ra="";this.ic=Nb;this.xb=null}Mb.prototype.Ic=!0;Mb.prototype.ec=!0;function Ob(a){if(a instanceof Mb&&a.constructor===Mb&&a.ic===Nb)return a.Ra;Ra("expected object of type SafeHtml, got '"+a+"' of type "+w(a));return"type_error:SafeHtml"}function Pb(a){function b(a){if("array"==w(a))eb(a,b);else{if(!(a instanceof Mb)){var e=null;a.Ic&&(e=a.xb);a=Qb(Aa(a.ec?a.Ra:String(a)),e)}d+=Ob(a);a=a.xb;0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";eb(arguments,b);return Qb(d,c)}var Nb={};
function Qb(a,b){return(new Mb).Jc(a,b)}Mb.prototype.Jc=function(a,b){this.Ra=a;this.xb=b;return this};Qb("<!DOCTYPE html>",0);Qb("",0);var Rb=Qb("<br>",0);var Sb={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0};function Tb(a,b){if(Sb[a.tagName.toUpperCase()])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+a.tagName+".");a.innerHTML=Ob(b)};var Ub=!F||9<=Number(wb);!pb&&!F||F&&9<=Number(wb)||pb&&G("1.9.1");var Vb=F&&!G("9");function Wb(a,b){Ya(b,function(b,d){b&&b.ec&&(b=b.Ra);"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Xb.hasOwnProperty(d)?a.setAttribute(Xb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Xb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function Yb(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!Ub&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',Aa(g.name),'"');if(g.type){f.push(' type="',Aa(g.type),'"');var k={};cb(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(u(g)?f.className=g:"array"==w(g)?f.className=g.join(" "):Wb(f,g));2<d.length&&Zb(e,f,d);return f}
function Zb(a,b,c){function d(c){c&&b.appendChild(u(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!ra(f)||sa(f)&&0<f.nodeType?d(f):eb($b(f)?hb(f):f,d)}}var ac={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},bc={IMG:" ",BR:"\n"};
function cc(a){if(Vb&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];dc(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Vb||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}
function dc(a,b,c){if(!(a.nodeName in ac))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in bc)b.push(bc[a.nodeName]);else for(a=a.firstChild;a;)dc(a,b,c),a=a.nextSibling}function $b(a){if(a&&"number"==typeof a.length){if(sa(a))return"function"==typeof a.item||"string"==typeof a.item;if("function"==w(a))return"function"==typeof a.item}return!1};function ec(a,b){if(u(b))(b=fc(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=fc(d,c);f&&(d.style[f]=e)}}var gc={};function fc(a,b){var c=gc[b];if(!c){var d=Na(b);c=d;void 0===a.style[d]&&(d=(qb?"Webkit":pb?"Moz":F?"ms":nb?"O":null)+Oa(d),void 0!==a.style[d]&&(c=d));gc[b]=c}return c};function hc(a,b){if("function"!=w(a))if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(b)||r.setTimeout(a,b||0)};function ic(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}function jc(a){a=String(a);if(ic(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function kc(a){this.Sa=a}kc.prototype.serialize=function(a){var b=[];lc(this,a,b);return b.join("")};
function lc(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if("array"==w(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],lc(a,a.Sa?a.Sa.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),mc(d,c),c.push(":"),lc(a,a.Sa?a.Sa.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":mc(b,
c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}}var nc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},oc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;
function mc(a,b){b.push('"',a.replace(oc,function(a){var b=nc[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),nc[a]=b);return b}),'"')};var pc=E("Firefox"),qc=E("Safari")&&!((E("Chrome")||E("CriOS"))&&!E("Edge")||E("Coast")||E("Opera")||E("Edge")||E("Silk")||E("Android"))&&!(Xa()||E("iPad")||E("iPod"));var rc=null,sc=pb||qb&&!qc||nb||"function"==typeof r.btoa;function tc(a,b){this.f=a;this.jc=b||[]}v("iSpring.ios.mobile.MobileAppCommand",tc,void 0);tc.prototype.id=function(){return this[ta]||(this[ta]=++ua)};function uc(a){try{var b=document.createElement("iframe");ec(b,{width:"1px",height:"1px",border:"0"});b.src=a;document.body.appendChild(b);hc(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(c){}};function I(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}I.prototype.BYTES_PER_ELEMENT=8;I.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};I.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{I.BYTES_PER_ELEMENT=8}catch(a){}I.prototype.BYTES_PER_ELEMENT=I.prototype.BYTES_PER_ELEMENT;I.prototype.set=I.prototype.set;I.prototype.toString=I.prototype.toString;v("Float64Array",I,void 0)};function J(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}J.prototype.BYTES_PER_ELEMENT=4;J.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};J.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(J.BYTES_PER_ELEMENT=4,J.prototype.BYTES_PER_ELEMENT=J.prototype.BYTES_PER_ELEMENT,J.prototype.set=J.prototype.set,J.prototype.toString=J.prototype.toString,v("Float32Array",J,void 0));function vc(){var a=window.location.search.substr(1);if(!a)return{};var b={};a=a.split("&");for(var c=0;c<a.length;++c){var d=a[c].split("=");if(2==d.length){try{var e=decodeURIComponent(d[0].replace(/\+/g," "))}catch(g){e=d[0]}try{var f=decodeURIComponent(d[1].replace(/\+/g," "))}catch(g){f=d[1]}e=e.toLowerCase();b[e]=f}}return b}
function wc(){if(xc){var a=new tc("closeWindow");if(xc){var b=a.f,c=a.jc;a=a.id();var d=(new kc(null)).serialize(c);if(sc)c=r.btoa(d);else{c=[];for(var e=0,f=0;f<d.length;f++){var g=d.charCodeAt(f);255<g&&(c[e++]=g&255,g>>=8);c[e++]=g}A(ra(c),"encodeByteArray takes an array as a parameter");if(!rc)for(rc={},d=0;65>d;d++)rc[d]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d);d=rc;e=[];for(f=0;f<c.length;f+=3){var k=c[f],n=(g=f+1<c.length)?c[f+1]:0,C=f+2<c.length,S=C?c[f+
2]:0,me=k>>2;k=(k&3)<<4|n>>4;n=(n&15)<<2|S>>6;S&=63;C||(S=64,g||(n=64));e.push(d[me],d[k],d[n],d[S])}c=e.join("")}uc("isplayer://"+b+"/"+a+"/"+c)}}else try{yc||(window.open("","_self",""),window.close())}catch(Ie){}};function zc(a){var b="\r";if(0==a.length)return"";null!=b||(b="");var c=0,d="",e=a.length;do{var f=Ac(a,["<p>","<p "],c);if(f&&f.Qa>c){c=a.substr(c,f.Qa-c);var g=Yb("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||cc(g))+b;c=f.Qa}if(g=Ac(a,["</p>","</p >"],c)){f=g.Qa+g.Mc.length-c;var k=a.substr(c,f);g=Yb("DIV");g.innerHTML=k;d+=(g.textContent||g.innerText||cc(g))+b;c+=f}else return g=Yb("DIV"),g.innerHTML=a.substr(c,e-c),d+(g.textContent||g.innerText||cc(g))}while(c<e);return d}
function Ac(a,b,c){"array"==w(b)||(b=[b]);var d=void 0,e=void 0;eb(b,function(b){var f=a.indexOf(b,c);0<=f&&(!t(d)||f<d)&&(d=f,e=b)});return t(e)&&t(d)?new Bc(e,d):null}function Bc(a,b){this.Mc=a;this.Qa=b};function K(a,b){this.va=a;this.I=b}K.prototype.id=function(){return this.va};K.prototype.description=function(){return this.I};function Cc(){this.g=[]}Cc.prototype.count=function(){return this.g.length};function L(a,b){a.g.push(b)}Cc.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.g[a]};function M(){this.g=new Cc};function N(a){a=z(a);return a=a.replace(/[^\w-]/g,"_")}function Dc(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};function Ec(a,b,c,d){this.Ia=a;this.wc=b;this.xc=c;this.vc=d;this.sb=void 0}function Fc(a){a=zc(a.text());a=Aa(a);if(!a)return"";var b=document.createElement("div");b.innerHTML=a;return b.firstChild.nodeValue}
Ec.prototype.create=function(){var a=0,b=[],c=this.wc,d=this.vc,e=new Gc(c.id()+"_"+a);a+=1;e.f=Hc;if(null!=c.message()){var f=c.message().text();f=zc(f);e.I=f;f=c.message().replies();null!=c.speech()&&0<zc(c.speech())&&(a=new Gc(c.id()+"_"+a),a.f=Ic,c=zc(c.speech()),a.I=c,a.ka=Jc,Kc(this,a),b.push(a))}else f=zc(c.speech()),e.I=f,f=c.replies();0==f.count()&&(e.f=Ic);c=null;for(var g=a=0,k=-1,n=[],C=0;C<f.count();C++){var S=f.getReply(C);null!=d&&S==d&&(k=C);a=Math.max(a,S.score());n.push(Lc(this,
C,Fc(S)))}null!=d&&(c=Lc(this,k,Fc(d)),g=Math.max(g,d.score()));d=f;f=new M;for(k=0;k<d.count();++k)C=Fc(d.getReply(k)),L(f.g,new K(N(k+"_"+C),C));e.D=f;e.u=c;e.v=n;this.Ia.scenario().settings().evaluationSettings().enabled()&&(e.N(a),e.Ca=g);e.ka=Jc;Kc(this,e);b.push(e);return b};function Lc(a,b,c){c=N(b+"_"+c);b=Dc(b);return a.xc?b:c}function Kc(a,b){null!=a.sb&&(b.vb=new Date(a.sb),b.Ua(y()-a.sb))};function Mc(a){for(var b=0,c=0;c<a.length;++c)b+=a[c];return b};function Nc(a,b,c,d,e,f){this.W=a;this.zc=b;this.Cc=e;this.uc=f;this.K={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.K[b[0]]=e,0<e&&++this.ra;this.ja={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.ja[c[0]]=b,0<b&&++this.ra}h=Nc.prototype;h.ra=0;h.slidesWeight=function(){return 0<this.W?this.zc:0};h.slidesToView=function(){return this.W};h.totalScore=function(){return this.Cc};h.passingScore=function(){return this.uc};function Oc(){function a(a){try{for(var b=0;255>b;++b){if(a.API)return a.API;var c=a.parent;if(!c||a==c)break;a=c}}catch(f){}return null}var b=window;return a(b)||b.opener&&a(b.opener)}function Pc(a){return O(Math.floor(a/3600))+":"+O(Math.floor(a%3600/60))+":"+O(Math.floor(a%60))}function Qc(a){pa(a)&&(a=new Date(a));return a.getUTCFullYear()+"/"+O(a.getUTCMonth()+1)+"/"+O(a.getUTCDate())}
function Rc(a){pa(a)&&(a=new Date(a));return O(a.getUTCHours())+":"+O(a.getUTCMinutes())+":"+O(a.getUTCSeconds())}function O(a){return 10>a?"0"+a:a}var Sc=null;function Tc(){Sc||(Sc=Uc(),document.body.appendChild(Sc));for(var a=Sc.contentDocument,b=y();100>y()-b;){a.open();for(var c=0;300>c;++c)a.write("sleep");a.close()}}function Uc(){var a=document.createElement("iframe");ec(a,{width:"1px",height:"1px",border:"0"});return a}
function Vc(){var a=null;if(F&&11>parseFloat(sb))try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}a||"undefined"==typeof XMLHttpRequest||(a=new XMLHttpRequest);return a}function Wc(){try{var a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(b){}};function Xc(a,b){this.va=a;this.pc=b;this.kc=""}Xc.prototype.id=function(){return this.va};Xc.prototype.name=function(){return this.pc};Xc.prototype.email=function(){return this.kc};var Hc="choice",Ic="other";var Jc="neutral";function Gc(a){this.va=a}h=Gc.prototype;h.I="";h.u=null;h.v=null;h.ka="unanticipated";h.Wb=0;h.Ca=null;h.S=null;h.vb=null;h.D=null;h.id=function(){return this.va};h.type=function(){return this.f};h.description=function(){return this.I};h.Wa=function(){return this.u};function Yc(a,b){a.v=b}h.result=function(){return this.ka};h.score=function(){return this.Wb};h.N=function(a){this.Wb=a};h.awardedScore=function(){return this.Ca};h.duration=function(){return this.S};h.Ua=function(a){this.S=a};h.Xa=function(){return this.vb};
h.Na=function(){return this.D};function Zc(a,b){a.D=b};function $c(){this.duration=this.Pa=this.awardedScore=this.maxScore=this.oa=null};function ad(){}ad.prototype.create=function(a){var b=a.group().id();b=new Gc(this.j(b));this.a(b,a);return b};ad.prototype.a=function(a,b){var c=b.group().title();a.I=c;a.f=Ic;a.N(b.maxScore());c=b.awardedScore();a.Ca=c;b=b.isPassed()?"correct":"incorrect";a.ka=b};ad.prototype.j=function(a){return N(a)};function bd(a,b){this.s=a;this.Ia=b};var P={ud:"slidePool",Pc:"authorizationForm",Yc:"informationSlide",Zc:"introSlide",qd:"resultSlide",Wc:"hotspotQuestion",$c:"likertScaleQuestion",yd:"wordBankQuestion",Sc:"essayQuestion",wd:"typeInQuestion",td:"shortAnswerQuestion",Tc:"fillInTheBlankQuestion",Uc:"fillInTheBlankSurveyQuestion",jd:"numericQuestion",kd:"numericSurveyQuestion",sd:"sequenceQuestion",pd:"rankingQuestion",xd:"whichWordQuestion",dd:"multipleChoiceTextQuestion",ed:"multipleChoiceTextSurveyQuestion",cd:"multipleChoiceQuestion",
fd:"multipleResponseQuestion",nd:"pickOneQuestion",md:"pickManyQuestion",vd:"trueFalseQuestion",zd:"yesNoQuestion",ad:"matchingQuestion",bd:"matchingSurveyQuestion"};v("ispring.quiz.slides.SlideType",P,void 0);v("SLIDE_POOL","slidePool",P);v("INFORMATION_SLIDE","informationSlide",P);v("INTRO_SLIDE","introSlide",P);v("HOTSPOT_QUESTION","hotspotQuestion",P);v("LIKERT_SCALE_QUESTION","likertScaleQuestion",P);v("WORD_BANK_QUESTION","wordBankQuestion",P);v("RESULT_SLIDE","resultSlide",P);
v("ESSAY_QUESTION","essayQuestion",P);v("TYPE_IN_QUESTION","typeInQuestion",P);v("SHORT_ANSWER_QUESTION","shortAnswerQuestion",P);v("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",P);v("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",P);v("NUMERIC_QUESTION","numericQuestion",P);v("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",P);v("SEQUENCE_QUESTION","sequenceQuestion",P);v("RANKING_QUESTION","rankingQuestion",P);v("WHICH_WORD_QUESTION","whichWordQuestion",P);
v("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",P);v("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",P);v("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",P);v("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",P);v("PICK_ONE_QUESTION","pickOneQuestion",P);v("PICK_MANY_QUESTION","pickManyQuestion",P);v("TRUE_FALSE_QUESTION","trueFalseQuestion",P);v("YES_NO_QUESTION","yesNoQuestion",P);v("MATCHING_QUESTION","matchingQuestion",P);
v("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",P);function cd(a,b,c,d,e){this.type=a;this.Pa=b;this.maxScore=t(c)?c:null;this.Aa=t(d)?d:null;this.Bb=t(e)?e:null}cd.prototype.Ab=function(){var a={};a[dd]=this.Pa;a[ed]=this.maxScore;a[fd]=this.Aa;a[gd]=this.Bb;a[hd]=this.type;return a};var dd="p",ed="m",fd="r",gd="s",hd="t";function id(){this.$=[];this.M={}}h=id.prototype;h.Fa=-1;h.S=0;h.Ga=null;h.duration=function(){return this.S};h.Ua=function(a){this.S=a};h.Ab=function(){var a={};a[jd]=this.S;a[kd]=this.Fa;a[ld]=this.$;a[md]=this.Ga;var b={},c;for(c in this.M)b[c]=this.M[c].Ab();a[nd]=b;return a};var kd="l",ld="v",jd="d",md="p",nd="q";(function(){function a(a){try{return a.ISPlayer&&(window.ISPlayer=a.ISPlayer),a.ISPVideoPlayer&&(window.ISPVideoPlayer=a.ISPVideoPlayer),a.ISPQuizPlayer&&(window.ISPQuizPlayer=a.ISPQuizPlayer),a.ISPInteractionPlayerCore&&(window.ISPInteractionPlayerCore=a.ISPInteractionPlayerCore),a.ISPBookPlayer&&(window.ISPBookPlayer=a.ISPBookPlayer),a.ISPScenarioPlayer&&(window.ISPScenarioPlayer=a.ISPScenarioPlayer),!0}catch(e){return!1}}if(function(){try{var a=window.frameElement}catch(e){}return null!=a}())for(var b=
window,c=7;b&&b.parent!=b&&0!=c--&&!a(b.parent);)b=b.parent})();var od;var pd=vc().user_agent;od=pd?pd:D||"";vc();vc();var qd=-1!=od.toLowerCase().indexOf("chrome"),yc=-1==od.toLowerCase().indexOf("windows phone")&&-1!=od.toLowerCase().indexOf("android")&&!qd&&!pc&&!nb,xc=-1!=od.indexOf("ismobile"),rd=document.createElement("audio"),sd=rd.play();sd&&sd.then(function(){rd.pause()},function(){});vc();vc();function td(){return 1==window._ispringDebug||"1"==vc().isdebug}
if(E("Windows")){var ud=D,vd="",Q;if(E("Windows")){Q=/Windows (?:NT|Phone) ([0-9.]+)/;var R=Q.exec(ud);vd=R?R[1]:"0.0"}else Xa()||E("iPad")||E("iPod")?(Q=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,vd=(R=Q.exec(ud))&&R[1].replace(/_/g,".")):E("Macintosh")?(Q=/Mac OS X ([0-9_.]+)/,vd=(R=Q.exec(ud))?R[1].replace(/_/g,"."):"10"):E("Android")?(Q=/Android\s+([^\);]+)(\)|;)/,vd=(R=Q.exec(ud))&&R[1]):E("CrOS")&&(Q=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,vd=(R=Q.exec(ud))&&R[1]);La(vd||"","6")}Sa=td;var wd={Qc:"correct",ld:"partiallyCorrect",Xc:"incorrect",hd:"notAnswered"};v("ispring.quiz.session.slides.questions.graded.review.GradedQuestionStatus",wd,void 0);v("CORRECT","correct",wd);v("PARTIALLY_CORRECT","partiallyCorrect",wd);v("INCORRECT","incorrect",wd);v("NOT_ANSWERED","notAnswered",wd);function T(a){var b=a.Nc;this.h=a.Lc;this.ac=b;this.m=!1}T.prototype.create=function(a){if(!a.submitted())return null;var b=a.slide().id();b=new Gc(this.j(b));this.a(b,a);return b};
T.prototype.a=function(a,b){var c=b.slide();c=U(this,c.description(),!0);a.I=c;b.hasBeenVisited()&&(a.Ua(b.visitDuration()),c=b.firstVisitTime(),a.vb=c);if(c=b.slide().settings().evaluation()){if(a.N(b.maxScore()),b=b.review()){var d=Math.max(0,b.awardedScore());a.Ca=d;d="unanticipated";switch(b.status()){case "correct":d="correct";break;case "incorrect":d="incorrect";break;case "partiallyCorrect":d="partially"}a.ka=d}}else a.ka=Jc;this.m=!!c};T.prototype.j=function(a){return N(a)};
function xd(a,b){return b.join(a.h?",":"[,]")}function yd(a,b,c){return a.h?Dc(b):a.j(b+"_"+c)}function U(a,b,c){return b.textWithEquations(a.h||!c?"Equation":"")};function zd(a){T.apply(this,arguments)}p(zd,T);zd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.f=this.h?Ic:"fill-in";var c=b.contentState();b=[];var d=[];c=m(c.placeholders());for(var e=c.next();!e.done;e=c.next())e=e.value,b.push(e.response()),(e=e.correctAnswers())&&(this.ac?d.push(e[0]):d.push(e.join("[,]")));a.u=b.join("[,]");if(this.m){b=d;if(this.h||this.ac)b=[b.join(this.h?"[.]":"[,]")];a.v=b}};function Ad(a,b){this.length=b;for(var c=0;c<b;++c)this[c]=a(c)};function Bd(a){T.apply(this,arguments)}p(Bd,T);Bd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.f=this.h?Ic:Hc;var c=b.slide().content(),d=[],e=new M;c=c.extraWords();c=m(c);for(var f=c.next();!f.done;f=c.next()){f=f.value.text();var g=e.g.count();g=this.j(g+"_"+f);L(e.g,new K(g,f))}b=b.contentState().placeholders();this.m&&(c=[],this.cb(b,e,c),a.v=[c.join("[,]")]);Cd(b,e,d);a.u=d.join("[,]");a.D=e};
Bd.prototype.cb=function(a,b,c){a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value.placeholder().value||"";var e=b.g.count();e=this.j(e+"_"+d);c.push(e);L(b.g,new K(e,d))}};function Cd(a,b,c){var d={};a=m(a);for(var e=a.next();!e.done;d={Ta:d.Ta},e=a.next())d.Ta=e.value.response(),null!=d.Ta&&(e=new Ad(function(a){return b.g.getChoice(a)},b.g.count()),e=gb(e,function(a){return function(b){return z(b.description())==a.Ta}}(d)),A(null!=e),c.push(e.id()))};function Dd(a){T.apply(this,arguments)}p(Dd,T);Dd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.f="long-fill-in";b=b.contentState().response();a.u=b};function Ed(){this.g=new Cc;this.Gb=[]}xa(Ed,M);function Fd(a){T.apply(this,arguments)}p(Fd,T);Fd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.f=Hc;var c=b.slide().content(),d=this.hb(c,b.contentState());a.u=d;this.m&&(d=[this.eb(c)],a.v=d);b=this.ta(c,b.contentState());a.D=b};
Fd.prototype.ta=function(a,b){var c=new M;if(!this.m){c=new Ed;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.Gb[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=U(this,d.textRange(),!1),L(c.g,new K(this.j(b+"_"+d),d));return c};
Fd.prototype.hb=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.choice(),g=U(this,f.textRange(),!1);e.selected()&&(e=a.getChoiceIndex(f),g=yd(this,e,g),c.push(g))}return xd(this,c)};Fd.prototype.eb=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getChoice(c);d.correct()&&(d=yd(this,c,U(this,d.textRange(),!1)),b.push(d))}return xd(this,b)};function Gd(){this.tb=new Cc;this.ya=new Cc};function Hd(a){T.apply(this,arguments)}p(Hd,T);Hd.prototype.a=function(a,b){var c=this;T.prototype.a.call(this,a,b);a.f=this.h?Ic:"matching";var d=[],e=[],f=new M;b.contentState().placeholders().forEach(function(a,b){var g=a.response(),k=a.correctAnswer();a.answers().forEach(function(a){var n=f.g.count();n=b+"[.]"+c.j(n+"_"+a);a==k&&e.push(n);a==g&&d.push(n);L(f.g,new K(n,a))})});a.u=d.join("[,]");this.m&&Yc(a,[e.join("[,]")]);Zc(a,Id(this,b.slide().content()))};
function Id(a,b){var c=new Gd,d=0;eb(b.placeholders(),function(b,f){f+="";L(c.tb,new K(f,f));b.values.forEach(function(b){b=b.text();var e=a.j(d++ +"_"+b);L(c.ya,new K(e,b))})});return c};function Jd(a){T.apply(this,arguments)}p(Jd,T);h=Jd.prototype;h.a=function(a,b){T.prototype.a.call(this,a,b);a.f="matching";var c=b.contentState(),d=b.slide().content(),e=this.qb(d);b=e.Na;var f=e.premises;e=e.responses;c=this.fb(c.matches(),f,e,this.h);a.u=c;this.m&&(c=[this.gb(d.matches(),this.h)],a.v=c);a.D=b};
h.qb=function(a){for(var b=new Gd,c=[],d=[],e=a.matches(),f=0;f<e.count();++f){var g=e.getChoice(f);c.push(g.premise());d.push(g.response());var k=U(this,g.premise().textRange(),!1);g=U(this,g.response().textRange(),!1);L(b.tb,new K(this.j(f+"_"+k),k));L(b.ya,new K(this.j(f+"_"+g),g))}a=a.distractors();for(e=0;e<a.count();++e)f=a.getChoice(e),d.push(f),f=U(this,f.textRange(),!1),L(b.ya,new K(this.j(e+"_"+f),f));return{Na:b,premises:c,responses:d}};
h.fb=function(a,b,c,d){var e=[];a=m(a);for(var f=a.next();!f.done;f=a.next()){var g=f.value;f=g.premise();g=g.response();var k=db(b,f),n=db(c,g);f=this.ea(f,k,g,n,d);e.push(f)}return this.sa(e,d)};h.gb=function(a,b){for(var c=[],d=0;d<a.count();++d){var e=a.getChoice(d);e=this.ea(e.premise(),d,e.response(),d,b);c.push(e)}return this.sa(c,b)};h.ua=function(a,b,c,d){return c?Dc(b,d):b+"_"+U(this,a.textRange(),!1)};
h.ea=function(a,b,c,d,e){a=this.ua(a,b,e,!0);c=this.ua(c,d,e,!1);e=e?".":"[.]";return N(a)+e+N(c)};h.sa=function(a,b){return a.join(b?",":"[,]")};function Kd(a){T.apply(this,arguments)}p(Kd,T);
Kd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);var c=b.slide();b=b.contentState().response();c=c.content();var d;a:{for(d=0;d<c.count();++d)if("notEqual"==c.getAnswer(d).comparisonOperation()){d=!0;break a}d=!1}a.f=this.h||d?"fill-in":"numeric";a.u=b;if(this.m){d=(b=this.h||d)?"[,]":"[.]";for(var e=[],f=0;f<c.count();++f){var g="",k=c.getAnswer(f),n=k.comparisonOperation();if("between"==n)n=k,g=n.leftOperand(),n=n.rightOperand(),g=b?"between "+g+" and "+n:g+"[:]"+n;else switch(k=k.operand(),
n){case "notEqual":b&&(g="not equal to "+k);break;case "equal":g=b?"equal to "+k:k+"[:]"+k;break;case "greaterThan":g=b?"greater than "+k:k+"[:]";break;case "greaterThanOrEqual":g=b?"greater than or equal to "+k:k+"[:]";break;case "lessThan":g=b?"less than "+k:"[:]"+k;break;case "lessThanOrEqual":g=b?"less than or equal to "+k:"[:]"+k}e.push(g)}a.v=[e.join(d)]}};function Ld(a){T.apply(this,arguments)}p(Ld,T);Ld.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.f="sequencing";var c=b.slide().content();b=Md(this,c,b.contentState().studentResponse(),this.h);a.u=b;this.m&&(b=[Md(this,c,c,this.h)],a.v=b);c=this.ta(c);a.D=c};Ld.prototype.ta=function(a){for(var b=new M,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();L(b.g,new K(this.j(c+"_"+d),d))}return b};
function Md(a,b,c,d){var e=d?",":"[,]",f=[];c.forEach(function(c){var e=U(a,c.textRange(),!1);c=b.getChoiceIndex(c);f.push(N(d?Dc(c,!0):c+"_"+e))});return f.join(e)};function Nd(a){T.apply(this,arguments)}p(Nd,T);Nd.prototype.a=function(a,b){var c=this;T.prototype.a.call(this,a,b);a.f=Hc;var d=[],e=new M;b.contentState().statementsStates().forEach(function(a,b){var f=a.statement().text();L(e.g,new K(yd(c,b,f),f));(a=a.selectedScale())&&d.push(c.j(b+"_"+a.text()))});a.u=xd(this,d);a.D=e};function Od(a){T.apply(this,arguments)}p(Od,T);Od.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.f="fill-in";var c=b.slide();b=b.contentState().response().text();a.u=b;this.m&&(c=this.eb(c.content()),a.v=c)};Od.prototype.eb=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getChoice(c);b.push(d.textRange().text())}return b};function Pd(a){T.apply(this,arguments)}p(Pd,T);h=Pd.prototype;h.a=function(a,b){T.prototype.a.call(this,a,b);a.f="matching";var c=b.contentState(),d=b.slide().content(),e=this.qb(d);b=e.Na;var f=e.premises,g=e.responses;e=e.Kc;c=this.fb(c.chainsStates(),f,g,e);a.u=c;this.m&&(c=[this.m?this.gb(d.chains(),f,g,e):c],a.v=c);a.D=b};
h.qb=function(a){var b=new Gd,c=[],d=[];a=a.chains();a=m(a);for(var e=a.next();!e.done;e=a.next()){var f=e.value;e=f.object().slideObject();f=f.destination().slideObject();if(e&&0>c.indexOf(e)){c.push(e);var g=e.name();L(b.tb,new K(this.j(c.indexOf(e)+"_"+g),g))}f&&0>d.indexOf(f)&&(d.push(f),e=f.name(),L(b.ya,new K(this.j(d.indexOf(f)+"_"+e),e)))}a=this.h?Dc(d.length,!1):d.length+"_None";L(b.ya,new K(a,"None"));return{Na:b,premises:c,responses:d,Kc:a}};
h.fb=function(a,b,c,d){var e=[],f=b.slice();a=m(a);for(var g=a.next();!g.done;g=a.next()){var k=g.value;g=k.objectState().slideObject();k=k.destinationState().slideObject();k=this.ea(g,k,b,c,d);e.push(k);f.splice(f.indexOf(g),1)}f=m(f);for(a=f.next();!a.done;a=f.next())a=this.ea(a.value,null,b,c,d),e.push(a);return this.sa(e)};
h.gb=function(a,b,c,d){var e=[];a=m(a);for(var f=a.next();!f.done;f=a.next()){var g=f.value;f=g.object().slideObject();g=g.destination().slideObject();f&&(f=this.ea(f,g,b,c,d),e.push(f))}return this.sa(e)};h.ua=function(a,b,c){return this.h?Dc(b,c):b+"_"+this.j(a.name())};h.ea=function(a,b,c,d,e){a=this.ua(a,c.indexOf(a),!0);b=b?this.ua(b,d.indexOf(b),!1):e;d=this.h?".":"[.]";return N(a)+d+N(b)};h.sa=function(a){return a.join(this.h?",":"[,]")};function Qd(a){T.apply(this,arguments)}p(Qd,T);Qd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.f=Hc;var c=[],d=[],e=new M;this.cb(b.contentState(),e,d,c);a.u=xd(this,c);this.m&&(a.v=[xd(this,d)]);a.D=e};
Qd.prototype.cb=function(a,b,c,d){var e=this;a.areas().forEach(function(f,g){var k=f.area(),n=k.label().text();g=yd(e,g,n);k.correct()&&c.push(g);a.areaSelected(f)&&d.push(g);L(b.g,new K(g,n))});for(var f=a.areas().length,g=f;g<f+a.freePointsCount();++g){var k=yd(this,g,"Untitled_Spot");d.push(k)}};function V(a){T.apply(this,arguments)}p(V,T);V.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.f=Hc;var c=b.slide();b=b.contentState();var d=c.content();c=this.hb(c.content(),b);a.u=c;if(this.m){a:{for(c=0;c<d.count();++c){var e=d.getChoice(c);if(e.correct()){c=yd(this,c,U(this,e.textRange(),!1));break a}}c=""}a.v=[c]}b=this.ta(d,b);a.D=b};
V.prototype.ta=function(a,b){var c=new M;if(this.Ib()){c=new Ed;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.Gb[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=U(this,d.textRange(),!1),L(c.g,new K(this.j(b+"_"+d),d));return c};V.prototype.Ib=function(){return!this.m};
V.prototype.hb=function(a,b){for(var c=0;c<b.count();++c){var d=b.getChoiceState(c);if(d.selected())return a=a.getChoiceIndex(d.choice()),yd(this,a,U(this,d.choice().textRange(),!1))}return""};function Rd(a){V.apply(this,arguments)}p(Rd,V);Rd.prototype.a=function(a,b){V.prototype.a.call(this,a,b);if(this.h&&this.m){a.f="true-false";var c=b.slide().content();b=b.contentState();var d=c.getChoice(0).correct()?"t":"f",e="t"==d?"f":"t";c=c.getChoice(0).correct()?c.getChoice(0).id():c.getChoice(1).id();for(var f=null,g=0;2>g;++g){var k=b.getChoiceState(g);if(k.selected()){f=k.choice().id()==c?d:e;break}}a.u=f;a.v=[d]}};Rd.prototype.Ib=function(){return!1};var W={},Sd=(W.FillInTheBlank=zd,W.WordBank=Bd,W.TypeIn=Od,W.Numeric=Kd,W.MultipleChoice=V,W.MultipleResponse=Fd,W.MultipleChoiceText=Hd,W.Sequence=Ld,W.Matching=Jd,W.TrueFalse=Rd,W.Essay=Dd,W.Hotspot=Qd,W.LikertScale=Nd,W.DND=Pd,W);function X(a,b){try{this.Ya=a;this.o=new id;this.Ea={};this.$a=null;this.U=new Nc(b.slidesToView,b.slidesWeight,b.quizzes||{},b.scenarios||{},b.totalScore,b.passingScore);this.Y=new Kb(1E3*b.timeLimit,b.exitOnTimeout,b.showMessageOnTimeout,b.timeoutMessage);this.ma=new Eb(this.Y.timeLimit(),this.Y.bb);var c=new Fb(b.flags);this.G="never"!=b.resumeMode;var d=new Hb("ispring://presentations/"+encodeURIComponent(b.presentationId),c,b.tincan.i18n,this.G);this.Xb=new Jb;this.s=Ib(a,d,this.Xb)}catch(e){td()&&
alert(e)}}h=X.prototype;h.w=!1;h.wa=null;h.P=!1;h.l=null;h.V=null;h.Yb=!1;h.C=null;h.L=null;var Td=h.xa=null;v("iSpring.LMS.create",function(a,b,c){A(!Td);return Td=new X(b,c)},void 0);v("iSpring.LMS.instance",function(){return A(Td)},void 0);X.prototype.B=function(a){this.wa=a;null!=this.s?this.s.B(x(this.qc,this),x(this.Ob,this)):this.Ob()};X.prototype.initialize=X.prototype.B;
X.prototype.qc=function(){this.ha="normal";var a=null;var b=this.s.Ba();switch(this.ha){case "browse":a=null;break;case "review":b&&(a=Ud(this,b));break;case "normal":this.G&&b&&(a=Ud(this,b))}window.launchMode=this.ha;t(a)&&(this.w=!0,this.wa&&this.wa(a))};
function Ud(a,b){var c=new id;c.S=ab(b,jd,0);c.Fa=ab(b,kd,-1);c.$=ab(b,ld,[]);c.Ga=ab(b,md,null);var d={};b=ab(b,nd,{});for(var e in b){var f=b[e];d[e]=new cd(f[hd],f[dd],f[ed],f[fd],f[gd])}c.M=d;a.V=c;c=a.V.duration();if(a.Y.bb&&c>=a.Y.timeLimit())alert("You have already exceeded available time for viewing this content."),Wc(),wc();else return a.V.Ga}X.prototype.Ob=function(){this.wa&&this.wa()};
X.prototype.start=function(a){this.w&&(this.l=a,this.P=!0,this.Xb.Ac.Oa(a.presentation().title()),a.startupEvent().addHandler(this.Pb,this),a.startupCompletedEvent().addHandler(this.Qb,this),a.closeWindowEvent().addHandler(this.Lb,this))};X.prototype.start=X.prototype.start;
X.prototype.Pb=function(a){this.l.startupEvent().removeHandler(this.Pb,this);var b=(this.G||"review"==this.ha)&&this.V?this.V.Fa:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.l.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))};
X.prototype.Qb=function(a,b){this.l.startupCompletedEvent().removeHandler(this.Qb,this);this.Yb=!0;"resumePlayback"==a&&this.V&&(this.o=this.V);a=this.o.duration();this.ma.X||(this.ma.$b.addHandler(this.ob,this),this.ma.start(a));a=this.l.view().playbackController();a.slideChangeEvent().addHandler(this.lb,this);a=a.currentSlideIndex();a==b&&this.lb(a);this.l.stateChangedEvent().addHandler(this.Rb,this)};X.prototype.bc=function(){this.P&&Vd(this,this.G)};X.prototype.closeLms=X.prototype.bc;
function Vd(a,b){a.P&&(a.P=!1,a.Yb&&(a.ma.stop(),Wd(a),a.l.view().playbackController().slideChangeEvent().removeHandler(a.lb,a)),a.l.closeWindowEvent().removeHandler(a.Lb,a),a.l.stateChangedEvent().removeHandler(a.Rb,a),b?a.s.suspend():a.s.terminate())}h=X.prototype;
h.lb=function(a){if(this.C){var b=this.C;b.currentSessionChangedEvent().removeHandler(this.Mb,this);(b=b.currentSession())&&Xd(this,b);this.C=null}this.L&&(this.L.currentSessionChangedEvent().removeHandler(this.Nb,this),null!=this.xa&&Yd(this),this.L=null);b=this.l.view().playbackController();if(a in this.U.K){var c=this.C=b.quizPlayer(),d=(c[ta]||(c[ta]=++ua))+"";d in this.Ea||(this.Ea[d]=!0,(d=this.s.i.zb())&&c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()}));c.currentSessionChangedEvent().addHandler(this.Mb,
this);(c=c.currentSession())&&Zd(this,c)}a in this.U.ja&&(b=this.L=b.scenarioPlayer(),c=(b[ta]||(b[ta]=++ua))+"",c in this.Ea||(this.Ea[c]=!0,c=this.s.i.zb(),d=!b.userInfoIsLoaded(),c&&d&&b.setUserInfo(c.id(),{USER_NAME:c.name(),USER_EMAIL:c.email()})),c=b.currentSession(),null!=c&&$d(this,c),b.currentSessionChangedEvent().addHandler(this.Nb,this));b=this.l.presentation().slides().getSlide(a);"normal"==this.ha&&b.title()&&b.title();b=this.o.$;0<=db(b,a)||b.push(a);this.o.Fa=a;ae(this)};
function Wd(a){var b=a.ma;b=b.X?y()-b.Ja+b.ia:b.Ma;var c=a.ma;c=c.X?y()-c.Ja:c.ab;a.o.Ua(b);a.s.Cb(c);b=a.l.persistState();a.o.Ga=b;a.s.Db(a.o.Ab())}function ae(a){var b=a.U;if(0<b.W||0<b.ra){var c=be(a),d=b.totalScore()*c;a.s.N(c,0,b.totalScore(),d)}a.l.presentation().slides().count();a.s.O(ce(a),de(a));Wd(a);a.s.ba()}
function ce(a){var b=a.U,c;if(!(c=!(0<b.W||0<b.ra))&&(c=a.G)){a:if(0<a.U.W&&0<a.o.$.length)var d=!0;else{c=a.o.M;for(d in c)if(-1!=db(a.o.$,parseInt(d,10))){d=!0;break a}d=!1}c=!d}return c?null:be(a)*b.totalScore()>=b.passingScore()}function de(a){var b=a.U,c=a.l.presentation().slides().count();b=Za(a.o.M)==Za(b.K)+Za(b.ja);return a.o.$.length>=c&&b}
function be(a){var b=a.U;if(!(0<b.W||0<b.ra))return 0;var c=0,d=a.o.M,e;for(e in d){var f=d[e],g=parseInt(e,10);c+=(null!=f.Bb?f.Bb:1)*(null!=(g in b.K?b.K[g]:null)?g in b.K?b.K[g]:0:g in b.ja?b.ja[g]:0)}d=0;0<b.W&&(d=a.l.presentation().slides().count(),d=a.o.$.length/d*b.slidesWeight());a=Mc($a(b.K))+Mc($a(b.ja))+b.slidesWeight();return(c+d)/a}h.Nb=function(){null!=this.xa&&Yd(this);var a=this.L.currentSession();$d(this,a)};
function $d(a,b){"normal"==a.ha&&(a.xa=b,b.showTerminalSceneEvent().addHandler(a.nb,a),b.onReplySelectedEvent().addHandler(a.mb,a),b.scenario().id(),b.scenario().title(),b.completed()&&a.nb())}function Yd(a){var b=a.xa;a.xa=null;b.showTerminalSceneEvent().removeHandler(a.nb,a);b.onReplySelectedEvent().removeHandler(a.mb,a)}
h.nb=function(){var a=this.L.currentSession();A(a);var b=a.currentSceneState().scene();null!=b&&(null!=b.speech()&&0<b.speech().length||null!=b.message()&&0<b.message().text().length)&&this.mb();if(a.scenario().settings().evaluationSettings().enabled()){b=Math.max(0,a.maxScore());var c=Math.max(0,a.userScore()),d=0<b-0?c/(b-0):1;b=new cd("scenario",a.scenarioPassed(),b,c,d)}else b=new cd("scenario",!0);c=this.l.view().playbackController().currentSlideIndex();this.o.M[c+""]=b;b=new $c;b.duration=a.duration();
a.scenario().settings().evaluationSettings().enabled()&&(b.oa=0,b.maxScore=Math.max(0,a.maxScore()),b.awardedScore=Math.max(0,a.userScore()),b.Pa=a.scenarioPassed());a.scenario().id();a.scenario().title();ae(this)};h.mb=function(a){var b=this.L.currentSession();A(b);var c=b.currentSceneState().scene();null!=c&&(a=(new Ec(b,c,"1.2"==this.Ya,a)).create(),eb(a,function(a){if("tincan"==this.Ya||a.type()==Hc){var c="/scenarios/"+b.scenario().id();a.id();a.type();this.s.aa(c,a)}},this))};
function Zd(a,b){if("normal"==a.ha){b.sessionModeChangedEvent().addHandler(a.Tb,a);var c=b.slidePoolState();c=m(c.questions());for(var d=c.next();!d.done;d=c.next())d.value.submittedEvent().addHandler(a.Sb,a);a.C.id();b.quiz().title()}}function Xd(a,b){b.sessionModeChangedEvent().removeHandler(a.Tb,a);b=b.slidePoolState();b=m(b.questions());for(var c=b.next();!c.done;c=b.next())c.value.submittedEvent().removeHandler(a.Sb,a)}
h.Mb=function(){var a=this.C.currentSession();this.$a&&Xd(this,this.$a);(this.$a=a)&&Zd(this,a)};
h.Tb=function(a){if("testing"==a){a=this.C.currentSession();A(a);var b;if(b=a.evaluation()){var c=b.maxScore(),d=b.awardedScore(),e=b.awardedPercent()/100;b=new cd("quiz",b.quizPassed(),c,d,e)}else b=new cd("quiz",!0);c=this.l.view().playbackController().currentSlideIndex();this.o.M[c+""]=b;b=new $c;b.duration=a.quizDuration();if(c=a.evaluation())if(b.oa=0,b.maxScore=c.maxScore(),b.awardedScore=c.awardedScore(),b.Pa=c.quizPassed(),b=this.C.currentSession(),A(b),b=new bd(this.s,b),"byGroups"==b.Ia.settings().passingScoreType())for(b=
b.Ia.slidePoolState(),b=m(b.groups()),c=b.next();!c.done;c=b.next())(new ad).create(c.value);this.C.id();a.quiz().title();ae(this)}};h.Sb=function(a){var b=this.C.currentSession();A(b);if(a.initiated()){b=a.slide().type();var c=this.Ya;if(a=(new Sd[b]({Lc:"1.2"==c||"aicc"==c,Nc:"tincan"==c})).create(a))b="/quizzes/"+this.C.id(),a.id(),this.s.aa(b,a)}};h.Lb=function(a){A(this.P);a.preventAction();this.bc()};h.ob=function(){A(this.P);this.Y.yc&&alert(this.Y.message());this.Y.bb&&Vd(this,!1)};
h.Rb=function(a){A(this.P);a.actionPrevented()||(a.preventAction(),Wd(this))};function ee(){}h=ee.prototype;h.i=null;h.cc=function(){throw Error("unimplemented abstract method");};h.B=function(a,b){(this.i=this.cc())?this.i.fc(a,b):b()};h.ba=function(){this.i.ba()};h.suspend=function(){this.i.terminate(!0)};h.terminate=function(){this.i.terminate(!1)};h.Db=function(a){this.i.hc(a)};h.Ba=function(){return this.i.dc()};h.O=function(a,b){this.i.Va(a);this.i.O(a,b)};h.N=function(a,b,c,d){this.i.N(d,b,c,a)};h.Cb=function(a){this.i.gc(a)};h.aa=function(a,b){this.i.aa(b)};function fe(a,b){this.qa=a;this.pb=!1;this.Za=0;this.G=b}h=fe.prototype;h.B=function(){try{return"true"==this.qa.LMSInitialize("")}catch(a){}return!1};h.terminate=function(a){this.c("cmi.core.exit",a?this.pb?"":"suspend":"");this.ba();try{return"true"==this.qa.LMSFinish("")}catch(b){}return!1};h.ba=function(){0==this.Za&&this.c("cmi.core.exit",this.G?this.pb?"":"suspend":"");try{var a="true"==this.qa.LMSCommit("");this.Za+=1;return a}catch(b){}return!1};h.Va=function(a){this.pb=a};h.ca=function(a){try{return this.qa.LMSGetValue(a)}catch(b){}return""};
h.c=function(a,b){if(pa(b)){var c;(c=t(c)?c:!0)?b=parseFloat(b.toFixed(2))+"":(c=Math.pow(10,2),b=Math.floor(b*c)/c+"");b+=""}try{return"true"==this.qa.LMSSetValue(a,b)}catch(d){}return!1};var Y={id:"id",type:"type",score:"weighting",Ec:"correct_responses.%INDEX%.pattern",Wa:"student_response",result:"result",duration:"latency",Xa:"time"},ge={};function he(a,b,c){var d=a.id()+"_"+a.description();d=N(d.substr(0,255));c.c(b+Y.id,d);c.c(b+Y.type,a.type());c.c(b+Y.score,a.score());d=a.v||[];for(var e=0;e<d.length;++e){var f=Y.Ec.replace("%INDEX%",e);c.c(b+f,d[e])}d=a.Wa();null!=d&&c.c(b+Y.Wa,d);c.c(b+Y.result,function(a){return"incorrect"==a?"wrong":a}(a.result()))};var ie=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function je(a){var b=window.location.toString();a=a.match(ie);b=b.match(ie);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};v("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){var d=null.nc[a];if(null==d)return"";delete null.nc[a];hc(function(){if(b)d.onload(c);else d.onerror()},10);return"ok"},void 0);function ke(a,b){this.Hb=a;this.Ka=b}function le(a,b){return b in a.Hb?a.Hb[b]:null}ke.prototype.Ba=function(){return this.Ka};function ne(a){var b=Oc();this.b=b?new fe(b,a):null;this.w=!1}h=ne.prototype;h.B=function(){return this.w?!0:this.w=null!=this.b?this.b.B():!1};h.fc=function(a,b){this.w?a():null!=this.b?(this.w=this.b.B())?a():b():(this.w=!1,b())};h.terminate=function(a){return null!=this.b?this.b.terminate(a):!1};h.ba=function(){return null!=this.b?this.b.ba():!1};h.ca=function(a){return null!=this.b?this.b.ca(a):""};h.c=function(a,b){return null!=this.b?this.b.c(a,b):!1};
h.N=function(a,b,c){this.c("cmi.core.score.raw",a);this.c("cmi.core.score.min",b);this.c("cmi.core.score.max",c)};h.gc=function(a){this.c("cmi.core.session_time",Pc(a/1E3))};h.dc=function(){var a=this.ca("cmi.suspend_data");if(a)a:{a=LZString.decompressFromBase64(a);try{var b=jc(a);break a}catch(c){}b=null}else b=null;return b};h.hc=function(a){a=(new kc(void 0)).serialize(a);a=LZString.compressToBase64(a);this.c("cmi.suspend_data",a)};
h.O=function(a,b){null===a?null===b?this.c("cmi.core.lesson_status","unknown"):this.c("cmi.core.lesson_status",b?"completed":"incomplete"):this.c("cmi.core.lesson_status",a?"passed":"failed")};h.Va=function(a){this.b.Va(a)};
h.aa=function(a){var b=a.id();if(a.id()in ge)var c=ge[b];else c=parseInt(this.ca("cmi.interactions._count"),10),ge[b]=c;0>c||(b="cmi.interactions."+c+".",he(a,b,this),c=a.duration(),null===c||this.c(b+Y.duration,Pc(c/1E3)),a=a.Xa(),null===a||this.c(b+Y.Xa,Pc(3600*a.getHours()+60*a.getMinutes()+a.getSeconds())))};h.zb=function(){return new Xc(this.ca("cmi.core.student_id"),this.ca("cmi.core.student_name"))};function oe(){this.da=this.T=this.la=null}
oe.prototype.B=function(a,b){if(!je(a))return!1;var c=document.body;this.la=Uc();ec(this.la,{position:"absolute"});Wb(this.la,{id:"hacpFormTarget",name:"hacpFormTarget"});this.la.onload=x(this.rc,this);c.appendChild(this.la);var d=Qb('<form method="POST">'+('<input type="hidden" name="session_id" value="'+b+'">')+'<input type="hidden" name="command" value=""><input type="hidden" name="version" value="4"><input type="hidden" name="aicc_data" value=""></form>',null),e=document;b=e.createElement("DIV");
F?(Tb(b,Pb(Rb,d)),b.removeChild(b.firstChild)):Tb(b,d);if(1==b.childNodes.length)b=b.removeChild(b.firstChild);else{for(d=e.createDocumentFragment();b.firstChild;)d.appendChild(b.firstChild);b=d}this.T=b;this.T.target="hacpFormTarget";this.T.action=a;c.appendChild(this.T);return!0};oe.prototype.Fb=function(a,b){this.da=null;pe(this,a,b);Tc()};oe.prototype.wb=function(a,b,c){this.da=null;pe(this,a,b);c&&(this.da=c)};function pe(a,b,c){a.T.command.value=b;a.T.aicc_data.value=c||"";a.T.submit()}
oe.prototype.rc=function(){if(this.da){a:{try{var a=this.la.contentWindow.document.body.innerHTML;break a}catch(b){}a=""}this.da(a);this.da=null}};function qe(){this.jb="unknown";this.Ka=this.ib=this.Jb=this.Kb=this.Vb=null}h=qe.prototype;h.Aa=function(){return this.Vb};h.oa=function(){return this.Kb};h.maxScore=function(){return this.Jb};h.Cb=function(a){this.ib=a};h.Ba=function(){return this.Ka};h.Db=function(a){this.Ka=a};function re(){this.fa=[]}re.prototype.aa=function(a){this.fa.push(a)};function se(){this.pa=this.R=""}se.prototype.B=function(a,b){if(null==te())return!1;this.R=a;this.pa=b;return!0};se.prototype.Fb=function(a,b){var c=te();A(c);var d=!1,e=!1;c.onload=function(){e=d=!0};c.onerror=function(){d=!0};ue(this,c,a,b);for(a=y();!d&&1E3>y()-a;)Tc();if(!e)throw 0;};se.prototype.wb=function(a,b,c,d){var e=te();A(e);e.onload=function(){c&&c(e.responseText)};e.onerror=function(){d&&d("")};e.onprogress=function(){};ue(this,e,a,b)};
function ue(a,b,c,d){var e=a.R;var f=window.location.toString().match(ie)[1]||null;if("file"!=f){var g=e.match(ie)[1]||null;e=f+e.substr(g.length)}a="session_id="+encodeURIComponent(a.pa)+"&version=4&command="+encodeURIComponent(c);d&&(a+="&aicc_data="+encodeURIComponent(d));try{b.open("POST",e),b.send(a)}catch(k){b.onerror&&b.onerror()}}function te(){return window.XDomainRequest?new XDomainRequest:null};function ve(){this.pa=this.R=""}ve.prototype.B=function(a,b){if(F&&11>parseFloat(sb)&&!je(this.R)||!Vc())return!1;this.R=a;this.pa=b;return!0};ve.prototype.Fb=function(a,b){var c=Vc();A(c);c.open("POST",this.R,!1);we(this,c,a,b)};
ve.prototype.wb=function(a,b,c,d){var e=Vc();A(e);c&&(e.onreadystatechange=function(){if(4==e.readyState){delete e.onreadystatechange;a:switch(e.status){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var a=!0;break a;default:a=!1}a?c&&c(e.responseText):d&&d(e.responseText)}});e.open("POST",this.R,!0);we(this,e,a,b)};
function we(a,b,c,d){b.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a="session_id="+encodeURIComponent(a.pa)+"&version=4&command="+encodeURIComponent(c);d&&(a+="&aicc_data="+encodeURIComponent(d));b.send(a)};function xe(a,b){this.H=[];for(var c=[new ve,new se,new oe],d=0;d<c.length;++d){var e=c[d];e.B(a,b)&&this.H.push(e)}if(0===this.H.length)throw alert("No available transports, progress can't be reported"),Error("No available transports, progress can't be reported");}
function ye(a,b,c){return ze(a,"GETPARAM",null,function(a){if(a){if(b){var d={},f=null;a=a.split("\n");for(var g=0;g<a.length-1;++g){var k=z(a[g]);if(0<k.indexOf("=")){var n=k.split("=");k=z(n[0]);n=z(n[1]);d[k]=n}else"[core_lesson]"==k.toLowerCase()&&(k=z(a[g+1]),k.match(/^\[\w+\]$/)||(f=k))}b(new ke(d,f))}}else c&&c("response is empty")},c)}function Ae(a,b,c){return ze(a,"PUTPARAM",Be(b),function(a){a&&c&&c()},void 0)}
function Ce(a,b,c){0<b.fa.length?ze(a,"PUTINTERACTIONS",De(b),function(a){a&&c&&c()},void 0):c&&c()}function Ee(a,b,c,d){var e=!0;b&&(e=Ae(a,b,function(){c&&Ce(a,c,function(){d&&d()})}));return e}function Fe(a,b,c){for(var d=0<a.H.length?a.H[0]:null;d;)try{d.Fb(b,c);break}catch(e){console.log(e),d=Ge(a)}}function ze(a,b,c,d,e){for(var f=0<a.H.length?a.H[0]:null;f;)try{return f.wb(b,c,d,e),!0}catch(g){f=Ge(a)}return!1}function Ge(a){a.H.shift();return 0<a.H.length?a.H[0]:null}
function Be(a){var b=["[core]","lesson_status="+a.jb];if(null!==a.Aa()){var c="score="+a.Aa();null===a.oa()||null===a.maxScore()||(c+=","+a.maxScore()+","+a.oa());b.push(c)}c=a.ib;null===c||b.push("time="+Pc(c));a=a.Ba();null!==a&&(b.push("[core_lesson]"),b.push(a));return b.join("\r\n")}
function De(a){function b(a){return"incorrect"==a?"wrong":a}for(var c=[],d=0;d<a.fa.length;++d){if(0>d||d>=a.fa.length)throw Error("index is out of bounds");var e=a.fa[d],f=e.Xa(),g=e.v,k=e.awardedScore(),n=e.duration();c.push(["","","","",f?Qc(f):"",f?Rc(f):"",e.id(),e.type(),g?g.join("[,]"):"",e.Wa()||"",pa(k)?k+"":b(e.result()),e.score()+"",null===n?"":Pc(n/1E3)])}a=["course_id student_id lesson_id objective_id date time interaction_id type_interaction correct_response student_response result weighting latency".split(" ")].concat(c);
a=fb(a,function(a){return fb(a,Ka).join(",")});return a.join("\r\n")};function He(){a:{try{var a=vc();if("aicc_url"in a&&"aicc_sid"in a){var b=new xe(a.aicc_url,a.aicc_sid);break a}}catch(c){}b=null}this.b=b;this.A=new qe;this.w=!1;this.Da=null;this.J=!1;this.ga=null}h=He.prototype;h.B=function(){throw Error("not supported");};h.fc=function(a,b){var c=this;if(this.w)a();else if(null!=this.b){var d=this;ye(this.b,function(b){d.Da=b;c.w=!0;a()},function(){b()})||b()}else b()};
h.terminate=function(){if(null!=this.b){var a=this.b,b=this.J?this.A:null,c=this.ga;b&&Fe(a,"PUTPARAM",Be(b));c&&0<c.fa.length&&Fe(a,"PUTINTERACTIONS",De(c));Fe(this.b,"EXITAU");return!0}return!1};h.ba=function(){var a=this;return null!=this.b?Ee(this.b,this.J?this.A:null,this.ga,function(){a.J=!1;a.ga=null}):!1};h.ca=function(){throw Error("not supported");};h.c=function(){throw Error("not supported");};
h.N=function(a,b,c){var d=!1;this.A.oa()!=b&&(this.A.Kb=b,d=!0);this.A.maxScore()!=c&&(this.A.Jb=c,d=!0);this.A.Aa()!=a&&(this.A.Vb=a,d=!0);this.J=this.J||d};h.Va=function(){};h.gc=function(a){a/=1E3;this.A.ib!=a&&(this.A.Cb(a),this.J=!0)};h.dc=function(){var a=this.Da.Ba();if(a)try{return jc(a)}catch(b){}return null};h.hc=function(a){a=(new kc(void 0)).serialize(a);this.A.Db(a);this.J=!0};
h.O=function(a,b){a=null===a?null===b?"unknown":b?"completed":"incomplete":a?"passed":"failed";this.A.jb!=a&&(this.A.jb=a,this.J=!0)};h.aa=function(a){this.ga||(this.ga=new re);this.ga.aa(a)};h.zb=function(){A(this.Da);var a=this.Da;return new Xc(le(a,"student_id")||"",le(a,"student_name")||"")};function Z(a){this.rb=a.rb;this.G=a.G}xa(Z,ee);v("iSpring.LMSAPI.AiccApi",Z,void 0);Z.prototype.cc=function(){var a=new ne(this.G);a.B()||(a=new He);return a};Z.prototype.O=function(a,b){var c=null===a;a=c?b:a;null===a?this.i.O(null,null):!c&&this.rb.sc&(a?2:1)?this.i.O(a,null):this.i.O(null,a)};Z.prototype.suspend=function(){Z.Eb.suspend.call(this);Wc();wc()};Z.prototype.terminate=function(){Z.Eb.terminate.call(this);Wc();wc()};})();
var LZString={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_f:String.fromCharCode,compressToBase64:function(e){if(e==null)return"";var t="";var n,r,i,s,o,u,a;var f=0;e=LZString.compress(e);while(f<e.length*2){if(f%2==0){n=e.charCodeAt(f/2)>>8;r=e.charCodeAt(f/2)&255;if(f/2+1<e.length)i=e.charCodeAt(f/2+1)>>8;else i=NaN}else{n=e.charCodeAt((f-1)/2)&255;if((f+1)/2<e.length){r=e.charCodeAt((f+1)/2)>>8;i=e.charCodeAt((f+1)/2)&255}else r=i=NaN}f+=3;s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+LZString._keyStr.charAt(s)+LZString._keyStr.charAt(o)+LZString._keyStr.charAt(u)+LZString._keyStr.charAt(a)}return t},decompressFromBase64:function(e){if(e==null)return"";var t="",n=0,r,i,s,o,u,a,f,l,c=0,h=LZString._f;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c<e.length){u=LZString._keyStr.indexOf(e.charAt(c++));a=LZString._keyStr.indexOf(e.charAt(c++));f=LZString._keyStr.indexOf(e.charAt(c++));l=LZString._keyStr.indexOf(e.charAt(c++));i=u<<2|a>>4;s=(a&15)<<4|f>>2;o=(f&3)<<6|l;if(n%2==0){r=i<<8;if(f!=64){t+=h(r|s)}if(l!=64){r=o<<8}}else{t=t+h(r|i);if(f!=64){r=s<<8}if(l!=64){t+=h(r|o)}}n+=3}return LZString.decompress(t)},compressToUTF16:function(e){if(e==null)return"";var t="",n,r,i,s=0,o=LZString._f;e=LZString.compress(e);for(n=0;n<e.length;n++){r=e.charCodeAt(n);switch(s++){case 0:t+=o((r>>1)+32);i=(r&1)<<14;break;case 1:t+=o(i+(r>>2)+32);i=(r&3)<<13;break;case 2:t+=o(i+(r>>3)+32);i=(r&7)<<12;break;case 3:t+=o(i+(r>>4)+32);i=(r&15)<<11;break;case 4:t+=o(i+(r>>5)+32);i=(r&31)<<10;break;case 5:t+=o(i+(r>>6)+32);i=(r&63)<<9;break;case 6:t+=o(i+(r>>7)+32);i=(r&127)<<8;break;case 7:t+=o(i+(r>>8)+32);i=(r&255)<<7;break;case 8:t+=o(i+(r>>9)+32);i=(r&511)<<6;break;case 9:t+=o(i+(r>>10)+32);i=(r&1023)<<5;break;case 10:t+=o(i+(r>>11)+32);i=(r&2047)<<4;break;case 11:t+=o(i+(r>>12)+32);i=(r&4095)<<3;break;case 12:t+=o(i+(r>>13)+32);i=(r&8191)<<2;break;case 13:t+=o(i+(r>>14)+32);i=(r&16383)<<1;break;case 14:t+=o(i+(r>>15)+32,(r&32767)+32);s=0;break}}return t+o(i+32)},decompressFromUTF16:function(e){if(e==null)return"";var t="",n,r,i=0,s=0,o=LZString._f;while(s<e.length){r=e.charCodeAt(s)-32;switch(i++){case 0:n=r<<1;break;case 1:t+=o(n|r>>14);n=(r&16383)<<2;break;case 2:t+=o(n|r>>13);n=(r&8191)<<3;break;case 3:t+=o(n|r>>12);n=(r&4095)<<4;break;case 4:t+=o(n|r>>11);n=(r&2047)<<5;break;case 5:t+=o(n|r>>10);n=(r&1023)<<6;break;case 6:t+=o(n|r>>9);n=(r&511)<<7;break;case 7:t+=o(n|r>>8);n=(r&255)<<8;break;case 8:t+=o(n|r>>7);n=(r&127)<<9;break;case 9:t+=o(n|r>>6);n=(r&63)<<10;break;case 10:t+=o(n|r>>5);n=(r&31)<<11;break;case 11:t+=o(n|r>>4);n=(r&15)<<12;break;case 12:t+=o(n|r>>3);n=(r&7)<<13;break;case 13:t+=o(n|r>>2);n=(r&3)<<14;break;case 14:t+=o(n|r>>1);n=(r&1)<<15;break;case 15:t+=o(n|r);i=0;break}s++}return LZString.decompress(t)},compress:function(e){if(e==null)return"";var t,n,r={},i={},s="",o="",u="",a=2,f=3,l=2,c="",h=0,p=0,d,v=LZString._f;for(d=0;d<e.length;d+=1){s=e.charAt(d);if(!Object.prototype.hasOwnProperty.call(r,s)){r[s]=f++;i[s]=true}o=u+s;if(Object.prototype.hasOwnProperty.call(r,o)){u=o}else{if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}r[o]=f++;u=String(s)}}if(u!==""){if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}}n=2;for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}while(true){h=h<<1;if(p==15){c+=v(h);break}else p++}return c},decompress:function(e){if(e==null)return"";if(e=="")return null;var t=[],n,r=4,i=4,s=3,o="",u="",a,f,l,c,h,p,d,v=LZString._f,m={string:e,val:e.charCodeAt(0),position:32768,index:1};for(a=0;a<3;a+=1){t[a]=a}l=0;h=Math.pow(2,2);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(n=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 2:return""}t[3]=d;f=u=d;while(true){if(m.index>m.string.length){return""}l=0;h=Math.pow(2,s);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(d=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 2:return u}if(r==0){r=Math.pow(2,s);s++}if(t[d]){o=t[d]}else{if(d===i){o=f+f.charAt(0)}else{return null}}u+=o;t[i++]=f+o.charAt(0);r--;f=o;if(r==0){r=Math.pow(2,s);s++}}}};if(typeof module!=="undefined"&&module!=null){module.exports=LZString}
