(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={Tb:!0},la={};try{la.__proto__=ka;ja=la.Tb;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 n(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.cc=b.prototype}function na(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}
function oa(a){if(a){for(var b=l,c=["Object","is"],d=0;d<c.length-1;d++){var e=c[d];e in b||(b[e]={});b=b[e]}c=c[c.length-1];d=b[c];a=a(d);a!=d&&null!=a&&aa(b,c,{configurable:!0,writable:!0,value:a})}}oa(function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}});var q=this;function r(a){return void 0!==a}function t(a){return"string"==typeof a}
function u(a,b,c){a=a.split(".");c=c||q;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&r(b)?c[d]=b:c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}}
function v(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 pa(a){var b=v(a);return"array"==b||"object"==b&&"number"==typeof a.length}function qa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var w="closure_uid_"+(1E9*Math.random()>>>0),ra=0;function sa(a,b,c){return a.call.apply(a.bind,arguments)}
function ta(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")?sa:ta;return x.apply(null,arguments)}var ua=Date.now||function(){return+new Date};
function va(a,b){function c(){}c.prototype=b.prototype;a.cc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Qc=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 wa(a){if(Error.captureStackTrace)Error.captureStackTrace(this,wa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}va(wa,Error);wa.prototype.name="CustomError";function xa(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");wa.call(this,c+a[d])}va(xa,wa);xa.prototype.name="AssertionError";function ya(a){throw a;}function y(a,b,c){if(!a){var d="Assertion failed";if(b){d+=": "+b;var e=Array.prototype.slice.call(arguments,2)}d=new xa(""+d,e||[]);ya(d)}return a}function za(a,b){ya(new xa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};function Aa(){return!1}function Ca(a,b){Aa()&&(b?q.console.error(a):q.console.warn(a))}function Da(a,b){var c=a.stack||a.toString();0>String(c).indexOf(a.message)&&Ca(a.message,b);Ca(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)?Da(c,!0):Ca(b,!0);return!0};ya=function(a){try{throw Error(a.message);}catch(b){Da(b,!1)}};
q.console||(window._log="",q.console={log:function(a){window._log+="\n"+a},warn:function(a){window._log+="\nwarn: "+a},error:function(a){window._log+="\nerror: "+a}});function z(){}u("ispring.events.IEventDispatcher",z,void 0);z.prototype.addHandler=function(){};z.prototype.addHandler=z.prototype.addHandler;z.prototype.removeHandler=function(){};z.prototype.removeHandler=z.prototype.removeHandler;var Ea=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};function Fa(a){if(!Ga.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ha,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ia,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ja,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ka,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(La,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ma,"&#0;"));return a}
var Ha=/&/g,Ia=/</g,Ja=/>/g,Ka=/"/g,La=/'/g,Ma=/\x00/g,Ga=/[\x00&<>"']/;function Na(a,b){return a<b?-1:a>b?1:0}function Oa(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Pa(a){var b=t(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()})};var A;a:{var Qa=q.navigator;if(Qa){var Ra=Qa.userAgent;if(Ra){A=Ra;break a}}A=""}function B(a){return-1!=A.indexOf(a)};function Sa(){return B("iPhone")&&!B("iPod")&&!B("iPad")};function Ta(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function Ua(a){var b=0,c;for(c in a)b++;return b}function Va(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Wa(a,b,c){return null!==a&&b in a?a[b]:c}var Xa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Ya(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<Xa.length;f++)c=Xa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var C=Array.prototype.indexOf?function(a,b){y(null!=a.length);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(t(a))return t(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},Za=Array.prototype.forEach?function(a,b,c){y(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
function $a(a,b){a:{for(var c=a.length,d=t(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:t(a)?a.charAt(b):a[b]}function ab(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 bb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(pa(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 cb(a,b,c,d){y(null!=a.length);Array.prototype.splice.apply(a,db(arguments,1))}function db(a,b,c){y(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var eb=B("Opera"),D=B("Trident")||B("MSIE"),fb=B("Edge"),gb=B("Gecko")&&!(-1!=A.toLowerCase().indexOf("webkit")&&!B("Edge"))&&!(B("Trident")||B("MSIE"))&&!B("Edge"),hb=-1!=A.toLowerCase().indexOf("webkit")&&!B("Edge");function ib(){var a=q.document;return a?a.documentMode:void 0}var jb;
a:{var kb="",lb=function(){var a=A;if(gb)return/rv:([^\);]+)(\)|;)/.exec(a);if(fb)return/Edge\/([\d\.]+)/.exec(a);if(D)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(hb)return/WebKit\/(\S+)/.exec(a);if(eb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();lb&&(kb=lb?lb[1]:"");if(D){var mb=ib();if(null!=mb&&mb>parseFloat(kb)){jb=String(mb);break a}}jb=kb}var nb={},ob;var pb=q.document;ob=pb&&D?ib()||("CSS1Compat"==pb.compatMode?parseInt(jb,10):5):void 0;function qb(){};function rb(){this.ba=this.R=this.ra=null}rb.prototype.push=function(a,b){if(0==b)this.ba=this.ba||[];else if(this.ra=this.ra||[0],this.R=this.R||{},!(b in this.R)){this.R[b]=[];var c=this.ra;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&&cb(c,-(d+1),0,b)}b=sb(this,b);y(b).push(a)};rb.prototype.remove=function(a,b){if(b=sb(this,b))a=C(b,a),0<=a&&(y(null!=b.length),Array.prototype.splice.call(b,a,1))};
function tb(a,b){return 0==b?a.ba||[]:b in y(a.R)?y(sb(a,b)):[]}function ub(a){if(!a.R)return a.ba?a.ba.slice():[];for(var b=[],c=y(a.ra),d=0;d<c.length;++d){var e=sb(a,c[d]);e&&bb(b,e)}return b}function sb(a,b){return 0==b?a.ba:y(a.R)[b]};function E(a){this.rb=this.B=null;this.Jb=void 0===a?null:a}n(E,qb);E.prototype.Vb=function(){return this.Jb};E.prototype.eventOwner=E.prototype.Vb;E.prototype.addHandler=function(a,b,c){this.B=this.B||new rb;this.B.push({ab:a,context:b},c||0)};E.prototype.addHandler=E.prototype.addHandler;
E.prototype.removeHandler=function(a,b,c){c=c||0;if(this.B)for(var d=tb(this.B,c),e=d.length,f=0;f<e;++f){var g=d[f];if(g.ab==a&&g.context==b){a=f;if(c=sb(this.B,c))y(null!=c.length),Array.prototype.splice.call(c,a,1);break}}else za("EventDispatcher has no handlers!")};E.prototype.removeHandler=E.prototype.removeHandler;E.prototype.Xb=function(a,b,c){if(!this.B)return!1;c=tb(this.B,c||0);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(f.ab==a&&f.context==b)return!0}return!1};
E.prototype.hasHandler=E.prototype.Xb;E.prototype.ya=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(this.B){c=ub(this.B);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(-1!=C(ub(this.B),f))try{f.ab.apply(f.context,arguments)}catch(g){Da(g,!0)}}}this.rb&&this.rb.forEach(function(a){a.ya.apply(a,b instanceof Array?b:na(m(b)))})};E.prototype.dispatch=E.prototype.ya;var vb={Ec:"prompt",ec:"always",xc:"never"};u("ispring.presenter.presentation.settings.PresentationResumeMode",vb,void 0);u("PROMPT_TO_RESUME","prompt",vb);u("ALWAYS_RESUME","always",vb);u("NEVER_RESUME","never",vb);function wb(a,b){this.Za=a;this.vb=b;this.wb=new E}h=wb.prototype;h.O=!1;h.Y=0;h.ta=0;h.ua=-1;h.va=0;h.Ia=0;h.start=function(a){this.O||(this.va=this.Y=a||0,a=this.Y>=this.Za,a&&this.vb||(this.O=!0,this.ta=ua(),a||(this.ua=setTimeout(x(this.Ta,this),this.Za-this.Y))))};h.Ta=function(){this.vb&&(this.stop(),this.va=this.Za);this.wb.ya()};h.stop=function(){this.O&&(this.O=!1,0<this.ua&&(clearTimeout(this.ua),this.ua=-1),this.Ia=ua()-this.ta,this.va=this.Ia+this.Y)};function xb(a){this.Ib=a};function G(a){this.Pa=a}G.prototype.Wb=function(a,b,c){c=this.Pa.hasOwnProperty(a)?this.Pa[a]:c;if(r(c)){if(r(b)){a=this.Cb;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}za("unknown message id: "+a);return a};G.prototype.getMessage=G.prototype.Wb;G.prototype.messages=function(){return this.Pa};G.prototype.Cb=function(a){return"%"+a.toUpperCase()+"%"};function yb(a,b,c,d){this.Wa=b;this.Db=new G(c);this.C=d}yb.prototype.i18n=function(){return this.Db};function zb(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 Ab(){this.Qb=new E};function Bb(a,b,c,d){this.Rb=a;this.Ja=b;this.Ob=c;this.Fb=d}Bb.prototype.timeLimit=function(){return this.Rb};Bb.prototype.message=function(){return this.Fb};var Cb={Hc:"resumePlayback",lc:"gotoSlide",hc:"delayStartup"};u("ispring.presenter.player.startup.PresentationStartup.Action",Cb,void 0);u("RESUME_PLAYBACK","resumePlayback",Cb);u("GOTO_SLIDE","gotoSlide",Cb);u("DELAY_STARTUP","delayStartup",Cb);var Db=!D||9<=Number(ob),Eb;
if(Eb=D){var Fb;if(Object.prototype.hasOwnProperty.call(nb,"9"))Fb=nb["9"];else{for(var Gb=0,Hb=Ea(String(jb)).split("."),Ib=Ea("9").split("."),Jb=Math.max(Hb.length,Ib.length),Kb=0;0==Gb&&Kb<Jb;Kb++){var Lb=Hb[Kb]||"",Mb=Ib[Kb]||"";do{var H=/(\d*)(\D*)(.*)/.exec(Lb)||["","","",""],I=/(\d*)(\D*)(.*)/.exec(Mb)||["","","",""];if(0==H[0].length&&0==I[0].length)break;Gb=Na(0==H[1].length?0:parseInt(H[1],10),0==I[1].length?0:parseInt(I[1],10))||Na(0==H[2].length,0==I[2].length)||Na(H[2],I[2]);Lb=H[3];
Mb=I[3]}while(0==Gb)}Fb=nb["9"]=0<=Gb}Eb=!Fb}var Nb=Eb;function Ob(a,b){Ta(b,function(b,d){b&&b.Sc&&(b=b.Rc());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Pb.hasOwnProperty(d)?a.setAttribute(Pb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Pb={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 Qb(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!Db&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',Fa(g.name),'"');if(g.type){f.push(' type="',Fa(g.type),'"');var k={};Ya(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(t(g)?f.className=g:"array"==v(g)?f.className=g.join(" "):Ob(f,g));2<d.length&&Rb(e,f,d);return f}
function Rb(a,b,c){function d(c){c&&b.appendChild(t(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!pa(f)||qa(f)&&0<f.nodeType?d(f):Za(Sb(f)?ab(f):f,d)}}var Tb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Ub={IMG:" ",BR:"\n"};
function Vb(a){if(Nb&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Wb(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Nb||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}
function Wb(a,b,c){if(!(a.nodeName in Tb))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 Ub)b.push(Ub[a.nodeName]);else for(a=a.firstChild;a;)Wb(a,b,c),a=a.nextSibling}function Sb(a){if(a&&"number"==typeof a.length){if(qa(a))return"function"==typeof a.item||"string"==typeof a.item;if("function"==v(a))return"function"==typeof a.item}return!1};function Xb(a){var b={width:"1px",height:"1px",border:"0"};if(t(b))(b=Yb(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=Yb(d,c);f&&(d.style[f]=e)}}var Zb={};function Yb(a,b){var c=Zb[b];if(!c){var d=Oa(b);c=d;void 0===a.style[d]&&(d=(hb?"Webkit":gb?"Moz":D?"ms":eb?"O":null)+Pa(d),void 0!==a.style[d]&&(c=d));Zb[b]=c}return c};function $b(a,b){if("function"!=v(a))if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(b)||q.setTimeout(a,b||0)};function ac(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 bc(a){a=String(a);if(ac(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function cc(a){this.Aa=a}cc.prototype.serialize=function(a){var b=[];dc(this,a,b);return b.join("")};
function dc(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if("array"==v(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],dc(a,a.Aa?a.Aa.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),ec(d,c),c.push(":"),dc(a,a.Aa?a.Aa.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":ec(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 fc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},gc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;
function ec(a,b){b.push('"',a.replace(gc,function(a){var b=fc[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),fc[a]=b);return b}),'"')};var hc=B("Firefox"),ic=B("Safari")&&!((B("Chrome")||B("CriOS"))&&!B("Edge")||B("Coast")||B("Opera")||B("Edge")||B("Silk")||B("Android"))&&!(Sa()||B("iPad")||B("iPod"));var jc=null,kc=gb||hb&&!ic||eb||"function"==typeof q.btoa;function lc(a,b){this.b=a;this.Ab=b||[]}u("iSpring.ios.mobile.MobileAppCommand",lc,void 0);lc.prototype.id=function(){return this[w]||(this[w]=++ra)};function mc(a){try{var b=document.createElement("iframe");Xb(b);b.src=a;document.body.appendChild(b);$b(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(c){}};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=8;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;if("undefined"==typeof Float64Array){try{J.BYTES_PER_ELEMENT=8}catch(a){}J.prototype.BYTES_PER_ELEMENT=J.prototype.BYTES_PER_ELEMENT;J.prototype.set=J.prototype.set;J.prototype.toString=J.prototype.toString;u("Float64Array",J,void 0)};function K(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}K.prototype.BYTES_PER_ELEMENT=4;K.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]};K.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(K.BYTES_PER_ELEMENT=4,K.prototype.BYTES_PER_ELEMENT=K.prototype.BYTES_PER_ELEMENT,K.prototype.set=K.prototype.set,K.prototype.toString=K.prototype.toString,u("Float32Array",K,void 0));function nc(){var a=window.location.search.substr(1);if(a){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}}}else b={};return b};function oc(a){var b="\r";if(0==a.length)return"";null!=b||(b="");var c=0,d="",e=a.length;do{var f=pc(a,["<p>","<p "],c);if(f&&f.za>c){c=a.substr(c,f.za-c);var g=Qb("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||Vb(g))+b;c=f.za}if(g=pc(a,["</p>","</p >"],c)){f=g.za+g.bc.length-c;var k=a.substr(c,f);g=Qb("DIV");g.innerHTML=k;d+=(g.textContent||g.innerText||Vb(g))+b;c+=f}else return g=Qb("DIV"),g.innerHTML=a.substr(c,e-c),d+(g.textContent||g.innerText||Vb(g))}while(c<e);return d}
function pc(a,b,c){"array"==v(b)||(b=[b]);var d=void 0,e=void 0;Za(b,function(b){var f=a.indexOf(b,c);0<=f&&(!r(d)||f<d)&&(d=f,e=b)});return r(e)&&r(d)?new qc(e,d):null}function qc(a,b){this.bc=a;this.za=b};function L(a,b){this.ja=a;this.F=b}L.prototype.id=function(){return this.ja};L.prototype.description=function(){return this.F};function rc(){this.f=[]}rc.prototype.count=function(){return this.f.length};function N(a,b){a.f.push(b)}rc.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.f[a]};function O(){this.f=new rc};function P(a){a=Ea(a);return a=a.replace(/[^\w-]/g,"_")}function sc(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};function tc(a,b,c,d){this.sa=a;this.Mb=b;this.Nb=c;this.Lb=d;this.Xa=void 0}function uc(a){a=oc(a.text());a=Fa(a);if(!a)return"";var b=document.createElement("div");b.innerHTML=a;return b.firstChild.nodeValue}
tc.prototype.create=function(){var a=0,b=[],c=this.Mb,d=this.Lb,e=new vc(c.id()+"_"+a);a+=1;e.b=Q;if(null!=c.message()){var f=c.message().text();f=oc(f);e.F=f;f=c.message().replies();null!=c.speech()&&0<oc(c.speech())&&(a=new vc(c.id()+"_"+a),a.b=wc,c=oc(c.speech()),a.F=c,a.$=xc,yc(this,a),b.push(a))}else f=oc(c.speech()),e.F=f,f=c.replies();0==f.count()&&(e.b=wc);c=null;for(var g=a=0,k=-1,p=[],F=0;F<f.count();F++){var M=f.getReply(F);null!=d&&M==d&&(k=F);a=Math.max(a,M.score());p.push(zc(this,F,
uc(M)))}null!=d&&(c=zc(this,k,uc(d)),g=Math.max(g,d.score()));d=f;f=new O;for(k=0;k<d.count();++k)F=uc(d.getReply(k)),N(f.f,new L(P(k+"_"+F),F));e.A=f;e.s=c;e.u=p;this.sa.scenario().settings().evaluationSettings().enabled()&&(e.U(a),e.na=g);e.$=xc;yc(this,e);b.push(e);return b};function zc(a,b,c){c=P(b+"_"+c);b=sc(b);return a.Nb?b:c}function yc(a,b){null!=a.Xa&&(b.$a=new Date(a.Xa),b.Da(ua()-a.Xa))};function Ac(a){for(var b=0,c=0;c<a.length;++c)b+=a[c];return b};function Bc(a,b,c,d,e,f){this.N=a;this.Pb=b;this.Sb=e;this.Kb=f;this.G={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.G[b[0]]=e,0<e&&++this.fa;this.Z={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.Z[c[0]]=b,0<b&&++this.fa}h=Bc.prototype;h.fa=0;h.slidesWeight=function(){return 0<this.N?this.Pb:0};h.slidesToView=function(){return this.N};h.totalScore=function(){return this.Sb};h.passingScore=function(){return this.Kb};function Cc(){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 Dc(a){var b=Math.floor(a/3600),c=Math.floor(a%3600/60);a=Math.floor(a%60);return(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)+":"+(10>a?"0"+a:a)}
function Ec(){if(Fc)if(Fc){var a=new lc("closeWindow");if(Fc){var b=a.b,c=a.Ab;a=a.id();var d=(new cc(null)).serialize(c);if(kc)c=q.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}y(pa(c),"encodeByteArray takes an array as a parameter");if(!jc)for(jc={},d=0;65>d;d++)jc[d]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d);d=jc;e=[];for(f=0;f<c.length;f+=3){var k=c[f],p=(g=f+1<c.length)?c[f+1]:0,F=f+2<c.length,
M=F?c[f+2]:0,Ld=k>>2;k=(k&3)<<4|p>>4;p=(p&15)<<2|M>>6;M&=63;F||(M=64,g||(p=64));e.push(d[Ld],d[k],d[p],d[M])}c=e.join("")}mc("isplayer://"+b+"/"+a+"/"+c)}}else try{Gc||(window.open("","_self",""),window.close())}catch(Md){}else try{Gc||(window.Ba=window,b=Hc(),b==window.top?(window.open("","_self",""),window.close()):Ic(b))}catch(Md){Ic(window.top)}}function Ic(a){if(a&&a.Ba){var b=document.createElement("a");b.href="data/goodbye.html";a.Ba.location.replace(b.href)}}
function Hc(){var a=window;if(a.Ba)return a;for(var b=0;a!=window.top&&100>b++;){if(a.Ba)return a;a=a.parent}console.log("Unable to locate content root");return null}function Jc(){try{var a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(b){}};function Kc(a,b){this.ja=a;this.Gb=b;this.Bb=""}Kc.prototype.id=function(){return this.ja};Kc.prototype.name=function(){return this.Gb};Kc.prototype.email=function(){return this.Bb};var Q="choice",wc="other";var xc="neutral";function vc(a){this.ja=a}h=vc.prototype;h.F="";h.s=null;h.u=null;h.$="unanticipated";h.sb=0;h.na=null;h.K=null;h.$a=null;h.A=null;h.id=function(){return this.ja};h.type=function(){return this.b};h.description=function(){return this.F};h.eb=function(){return this.s};function Lc(a,b){a.u=b}h.result=function(){return this.$};h.score=function(){return this.sb};h.U=function(a){this.sb=a};h.awardedScore=function(){return this.na};h.duration=function(){return this.K};h.Da=function(a){this.K=a};h.fb=function(){return this.$a};
h.xa=function(){return this.A};function Mc(a,b){a.A=b};function Nc(){}Nc.prototype.create=function(a){var b=a.group().id();b=new vc(this.i(b));this.a(b,a);return b};Nc.prototype.a=function(a,b){var c=b.group().title();a.F=c;a.b=wc;a.U(b.maxScore());c=b.awardedScore();a.na=c;b=b.isPassed()?"correct":"incorrect";a.$=b};Nc.prototype.i=function(a){return P(a)};function Oc(a,b){this.o=a;this.sa=b};var R={Kc:"slidePool",fc:"authorizationForm",oc:"informationSlide",pc:"introSlide",Gc:"resultSlide",mc:"hotspotQuestion",qc:"likertScaleQuestion",Oc:"wordBankQuestion",ic:"essayQuestion",Mc:"typeInQuestion",Jc:"shortAnswerQuestion",jc:"fillInTheBlankQuestion",kc:"fillInTheBlankSurveyQuestion",zc:"numericQuestion",Ac:"numericSurveyQuestion",Ic:"sequenceQuestion",Fc:"rankingQuestion",Nc:"whichWordQuestion",uc:"multipleChoiceTextQuestion",vc:"multipleChoiceTextSurveyQuestion",tc:"multipleChoiceQuestion",
wc:"multipleResponseQuestion",Dc:"pickOneQuestion",Cc:"pickManyQuestion",Lc:"trueFalseQuestion",Pc:"yesNoQuestion",rc:"matchingQuestion",sc:"matchingSurveyQuestion"};u("ispring.quiz.slides.SlideType",R,void 0);u("SLIDE_POOL","slidePool",R);u("INFORMATION_SLIDE","informationSlide",R);u("INTRO_SLIDE","introSlide",R);u("HOTSPOT_QUESTION","hotspotQuestion",R);u("LIKERT_SCALE_QUESTION","likertScaleQuestion",R);u("WORD_BANK_QUESTION","wordBankQuestion",R);u("RESULT_SLIDE","resultSlide",R);
u("ESSAY_QUESTION","essayQuestion",R);u("TYPE_IN_QUESTION","typeInQuestion",R);u("SHORT_ANSWER_QUESTION","shortAnswerQuestion",R);u("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",R);u("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",R);u("NUMERIC_QUESTION","numericQuestion",R);u("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",R);u("SEQUENCE_QUESTION","sequenceQuestion",R);u("RANKING_QUESTION","rankingQuestion",R);u("WHICH_WORD_QUESTION","whichWordQuestion",R);
u("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",R);u("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",R);u("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",R);u("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",R);u("PICK_ONE_QUESTION","pickOneQuestion",R);u("PICK_MANY_QUESTION","pickManyQuestion",R);u("TRUE_FALSE_QUESTION","trueFalseQuestion",R);u("YES_NO_QUESTION","yesNoQuestion",R);u("MATCHING_QUESTION","matchingQuestion",R);
u("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",R);function Pc(a,b,c,d,e){this.type=a;this.Zb=b;this.maxScore=r(c)?c:null;this.$b=r(d)?d:null;this.cb=r(e)?e:null}Pc.prototype.bb=function(){var a={};a[Qc]=this.Zb;a[Rc]=this.maxScore;a[Sc]=this.$b;a[Tc]=this.cb;a[Uc]=this.type;return a};var Qc="p",Rc="m",Sc="r",Tc="s",Uc="t";function Vc(){this.S=[];this.I={}}h=Vc.prototype;h.pa=-1;h.K=0;h.qa=null;h.duration=function(){return this.K};h.Da=function(a){this.K=a};h.bb=function(){var a={};a[Wc]=this.K;a[Xc]=this.pa;a[Yc]=this.S;a[Zc]=this.qa;var b={},c;for(c in this.I)b[c]=this.I[c].bb();a[$c]=b;return a};var Xc="l",Yc="v",Wc="d",Zc="p",$c="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 ad,bd=nc().user_agent;ad=bd?bd:A||"";nc();nc();var cd=-1!=ad.toLowerCase().indexOf("chrome"),Gc=-1==ad.toLowerCase().indexOf("windows phone")&&-1!=ad.toLowerCase().indexOf("android")&&!cd&&!hc&&!eb,Fc=-1!=ad.indexOf("ismobile"),dd=document.createElement("audio"),ed=dd.play&&dd.play();ed&&ed.then(function(){dd.pause()},function(){});nc();nc();function fd(){return 1==window._ispringDebug||"1"==nc().isdebug}
if(B("Windows")){var gd=A,S;if(B("Windows")){S=/Windows (?:NT|Phone) ([0-9.]+)/;var hd=S.exec(gd)}else Sa()||B("iPad")||B("iPod")?(S=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,(hd=S.exec(gd))&&hd[1].replace(/_/g,".")):B("Macintosh")?(S=/Mac OS X ([0-9_.]+)/,(hd=S.exec(gd))&&hd[1].replace(/_/g,".")):B("Android")?(S=/Android\s+([^\);]+)(\)|;)/,hd=S.exec(gd)):B("CrOS")&&(S=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,hd=S.exec(gd))}Aa=fd;var id={gc:"correct",Bc:"partiallyCorrect",nc:"incorrect",yc:"notAnswered"};u("ispring.quiz.session.slides.questions.graded.review.GradedQuestionStatus",id,void 0);u("CORRECT","correct",id);u("PARTIALLY_CORRECT","partiallyCorrect",id);u("INCORRECT","incorrect",id);u("NOT_ANSWERED","notAnswered",id);function T(a){var b=a.dc;this.h=a.ac;this.xb=b;this.l=!1}T.prototype.create=function(a){if(!a.submitted())return null;var b=a.slide().id();b=new vc(this.i(b));this.a(b,a);return b};
T.prototype.a=function(a,b){var c=b.slide();c=U(this,c.description(),!0);a.F=c;b.hasBeenVisited()&&(a.Da(b.visitDuration()),c=b.firstVisitTime(),a.$a=c);if(c=b.slide().settings().evaluation()){if(a.U(b.maxScore()),b=b.review()){var d=Math.max(0,b.awardedScore());a.na=d;d="unanticipated";switch(b.status()){case "correct":d="correct";break;case "incorrect":d="incorrect";break;case "partiallyCorrect":d="partially"}a.$=d}}else a.$=xc;this.l=!!c};T.prototype.i=function(a){return P(a)};
function jd(a,b){return b.join(a.h?",":"[,]")}function V(a,b,c){return a.h?sc(b):a.i(b+"_"+c)}function U(a,b,c){return b.textWithEquations(a.h||!c?"Equation":"")};function kd(a){T.apply(this,arguments)}n(kd,T);kd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.b=this.h?wc:"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.xb?d.push(e[0]):d.push(e.join("[,]")));a.s=b.join("[,]");if(this.l){b=d;if(this.h||this.xb)b=[b.join(this.h?"[.]":"[,]")];a.u=b}};function ld(a,b){this.length=b;for(var c=0;c<b;++c)this[c]=a(c)};function md(a){T.apply(this,arguments)}n(md,T);md.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.b=this.h?wc:Q;var c=b.slide().content(),d=[],e=new O;c=c.extraWords();c=m(c);for(var f=c.next();!f.done;f=c.next()){f=f.value.text();var g=e.f.count();g=this.i(g+"_"+f);N(e.f,new L(g,f))}b=b.contentState().placeholders();this.l&&(c=[],this.Ka(b,e,c),a.u=[c.join("[,]")]);nd(b,e,d);a.s=d.join("[,]");a.A=e};
md.prototype.Ka=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.f.count();e=this.i(e+"_"+d);c.push(e);N(b.f,new L(e,d))}};function nd(a,b,c){var d={};a=m(a);for(var e=a.next();!e.done;d={Ca:d.Ca},e=a.next())d.Ca=e.value.response(),null!=d.Ca&&(e=new ld(function(a){return b.f.getChoice(a)},b.f.count()),e=$a(e,function(a){return function(b){return Ea(b.description())==a.Ca}}(d)),y(null!=e),c.push(e.id()))};function od(a){T.apply(this,arguments)}n(od,T);od.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.b="long-fill-in";b=b.contentState().response();a.s=b};function pd(){this.f=new rc;this.gb=[]}va(pd,O);function qd(a){T.apply(this,arguments)}n(qd,T);qd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.b=Q;var c=b.slide().content(),d=this.Oa(c,b.contentState());a.s=d;this.l&&(d=[this.La(c)],a.u=d);b=this.ha(c,b.contentState());a.A=b};
qd.prototype.ha=function(a,b){var c=new O;if(!this.l){c=new pd;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),N(c.f,new L(this.i(b+"_"+d),d));return c};
qd.prototype.Oa=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=V(this,e,g),c.push(g))}return jd(this,c)};qd.prototype.La=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getChoice(c);d.correct()&&(d=V(this,c,U(this,d.textRange(),!1)),b.push(d))}return jd(this,b)};function rd(){this.Ya=new rc;this.ma=new rc};function sd(a){T.apply(this,arguments)}n(sd,T);sd.prototype.a=function(a,b){var c=this;T.prototype.a.call(this,a,b);a.b=this.h?wc:"matching";var d=[],e=[],f=new O;b.contentState().placeholders().forEach(function(a,b){var g=a.response(),k=a.correctAnswer();a.answers().forEach(function(a){var p=f.f.count();p=b+"[.]"+c.i(p+"_"+a);a==k&&e.push(p);a==g&&d.push(p);N(f.f,new L(p,a))})});a.s=d.join("[,]");this.l&&Lc(a,[e.join("[,]")]);Mc(a,td(this,b.slide().content()))};
function td(a,b){var c=new rd,d=0;Za(b.placeholders(),function(b,f){f+="";N(c.Ya,new L(f,f));b.values.forEach(function(b){b=b.text();var e=a.i(d++ +"_"+b);N(c.ma,new L(e,b))})});return c};function ud(a){T.apply(this,arguments)}n(ud,T);h=ud.prototype;h.a=function(a,b){T.prototype.a.call(this,a,b);a.b="matching";var c=b.contentState(),d=b.slide().content(),e=this.Va(d);b=e.xa;var f=e.premises;e=e.responses;c=this.Ma(c.matches(),f,e,this.h);a.s=c;this.l&&(c=[this.Na(d.matches(),this.h)],a.u=c);a.A=b};
h.Va=function(a){for(var b=new rd,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);N(b.Ya,new L(this.i(f+"_"+k),k));N(b.ma,new L(this.i(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),N(b.ma,new L(this.i(e+"_"+f),f));return{xa:b,premises:c,responses:d}};
h.Ma=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=C(b,f),p=C(c,g);f=this.W(f,k,g,p,d);e.push(f)}return this.ga(e,d)};h.Na=function(a,b){for(var c=[],d=0;d<a.count();++d){var e=a.getChoice(d);e=this.W(e.premise(),d,e.response(),d,b);c.push(e)}return this.ga(c,b)};h.ia=function(a,b,c,d){return c?sc(b,d):b+"_"+U(this,a.textRange(),!1)};
h.W=function(a,b,c,d,e){a=this.ia(a,b,e,!0);c=this.ia(c,d,e,!1);e=e?".":"[.]";return P(a)+e+P(c)};h.ga=function(a,b){return a.join(b?",":"[,]")};function vd(a){T.apply(this,arguments)}n(vd,T);
vd.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.b=this.h||d?"fill-in":"numeric";a.s=b;if(this.l){d=(b=this.h||d)?"[,]":"[.]";for(var e=[],f=0;f<c.count();++f){var g="",k=c.getAnswer(f),p=k.comparisonOperation();if("between"==p)p=k,g=p.leftOperand(),p=p.rightOperand(),g=b?"between "+g+" and "+p:g+"[:]"+p;else switch(k=k.operand(),
p){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.u=[e.join(d)]}};function wd(a){T.apply(this,arguments)}n(wd,T);wd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.b="sequencing";var c=b.slide().content();b=xd(this,c,b.contentState().studentResponse(),this.h);a.s=b;this.l&&(b=[xd(this,c,c,this.h)],a.u=b);c=this.ha(c);a.A=c};wd.prototype.ha=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();N(b.f,new L(this.i(c+"_"+d),d))}return b};
function xd(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(P(d?sc(c,!0):c+"_"+e))});return f.join(e)};function yd(a){T.apply(this,arguments)}n(yd,T);yd.prototype.a=function(a,b){var c=this;T.prototype.a.call(this,a,b);a.b=Q;var d=[],e=new O;b.contentState().statementsStates().forEach(function(a,b){var f=a.statement().text();N(e.f,new L(V(c,b,f),f));(a=a.selectedScale())&&d.push(c.i(b+"_"+a.text()))});a.s=jd(this,d);a.A=e};function zd(a){T.apply(this,arguments)}n(zd,T);zd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.b="fill-in";var c=b.slide();b=b.contentState().response().text();a.s=b;this.l&&(c=this.La(c.content()),a.u=c)};zd.prototype.La=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getChoice(c);b.push(d.textRange().text())}return b};function Ad(a){T.apply(this,arguments)}n(Ad,T);h=Ad.prototype;h.a=function(a,b){T.prototype.a.call(this,a,b);a.b="matching";var c=b.contentState(),d=b.slide().content(),e=this.Va(d);b=e.xa;var f=e.premises,g=e.responses;e=e.Yb;c=this.Ma(c.chainsStates(),f,g,e);a.s=c;this.l&&(c=[this.l?this.Na(d.chains(),f,g,e):c],a.u=c);a.A=b};
h.Va=function(a){var b=new rd,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();N(b.Ya,new L(this.i(c.indexOf(e)+"_"+g),g))}f&&0>d.indexOf(f)&&(d.push(f),e=f.name(),N(b.ma,new L(this.i(d.indexOf(f)+"_"+e),e)))}a=this.h?sc(d.length,!1):d.length+"_None";N(b.ma,new L(a,"None"));return{xa:b,premises:c,responses:d,Yb:a}};
h.Ma=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.W(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.W(a.value,null,b,c,d),e.push(a);return this.ga(e)};
h.Na=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.W(f,g,b,c,d),e.push(f))}return this.ga(e)};h.ia=function(a,b,c){return this.h?sc(b,c):b+"_"+this.i(a.name())};h.W=function(a,b,c,d,e){a=this.ia(a,c.indexOf(a),!0);b=b?this.ia(b,d.indexOf(b),!1):e;d=this.h?".":"[.]";return P(a)+d+P(b)};h.ga=function(a){return a.join(this.h?",":"[,]")};function Bd(a){T.apply(this,arguments)}n(Bd,T);Bd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.b=Q;var c=[],d=[],e=new O;this.Ka(b.contentState(),e,d,c);a.s=jd(this,c);this.l&&(a.u=[jd(this,d)]);a.A=e};Bd.prototype.Ka=function(a,b,c,d){var e=this;a.areas().forEach(function(f,g){var k=f.area(),p=k.label().text();g=V(e,g,p);k.correct()&&c.push(g);a.areaSelected(f)&&d.push(g);N(b.f,new L(g,p))});for(var f=a.areas().length,g=f;g<f+a.freePointsCount();++g){var k=V(this,g,"Untitled_Spot");d.push(k)}};function W(a){T.apply(this,arguments)}n(W,T);W.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.b=Q;var c=b.slide();b=b.contentState();var d=c.content();c=this.Oa(c.content(),b);a.s=c;if(this.l){a:{for(c=0;c<d.count();++c){var e=d.getChoice(c);if(e.correct()){c=V(this,c,U(this,e.textRange(),!1));break a}}c=""}a.u=[c]}b=this.ha(d,b);a.A=b};
W.prototype.ha=function(a,b){var c=new O;if(this.hb()){c=new pd;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),N(c.f,new L(this.i(b+"_"+d),d));return c};W.prototype.hb=function(){return!this.l};
W.prototype.Oa=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()),V(this,a,U(this,d.choice().textRange(),!1))}return""};function Cd(a){W.apply(this,arguments)}n(Cd,W);Cd.prototype.a=function(a,b){W.prototype.a.call(this,a,b);if(this.h&&this.l){a.b="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.s=f;a.u=[d]}};Cd.prototype.hb=function(){return!1};var X={},Dd=(X.FillInTheBlank=kd,X.WordBank=md,X.TypeIn=zd,X.Numeric=vd,X.MultipleChoice=W,X.MultipleResponse=qd,X.MultipleChoiceText=sd,X.Sequence=wd,X.Matching=ud,X.TrueFalse=Cd,X.Essay=od,X.Hotspot=Bd,X.LikertScale=yd,X.DND=Ad,X);function Y(a,b){try{this.Fa=a;this.m=new Vc;this.oa={};this.Ha=null;this.L=new Bc(b.slidesToView,b.slidesWeight,b.quizzes||{},b.scenarios||{},b.totalScore,b.passingScore);this.P=new Bb(1E3*b.timeLimit,b.exitOnTimeout,b.showMessageOnTimeout,b.timeoutMessage);this.aa=new wb(this.P.timeLimit(),this.P.Ja);var c=new xb(b.flags);this.C="never"!=b.resumeMode;var d=new yb("ispring://presentations/"+encodeURIComponent(b.presentationId),c,b.tincan.i18n,this.C);this.tb=new Ab;this.o=zb(a,d,this.tb)}catch(e){fd()&&
alert(e)}}h=Y.prototype;h.D=!1;h.ka=null;h.J=!1;h.j=null;h.M=null;h.ub=!1;h.w=null;h.H=null;var Ed=h.la=null;u("iSpring.LMS.create",function(a,b,c){y(!Ed);return Ed=new Y(b,c)},void 0);u("iSpring.LMS.instance",function(){return y(Ed)},void 0);Y.prototype.T=function(a){this.ka=a;null!=this.o?this.o.T(x(this.Hb,this),x(this.lb,this)):this.lb()};Y.prototype.initialize=Y.prototype.T;
Y.prototype.Hb=function(){this.X="normal";var a=null;var b=this.o.g.da("cmi.suspend_data");if(b)a:{b=LZString.decompressFromBase64(b);try{var c=bc(b);break a}catch(d){}c=null}else c=null;switch(this.X){case "browse":a=null;break;case "review":c&&(a=Fd(this,c));break;case "normal":this.C&&c&&(a=Fd(this,c))}window.launchMode=this.X;r(a)&&(this.D=!0,this.ka&&this.ka(a))};
function Fd(a,b){var c=new Vc;c.K=Wa(b,Wc,0);c.pa=Wa(b,Xc,-1);c.S=Wa(b,Yc,[]);c.qa=Wa(b,Zc,null);var d={};b=Wa(b,$c,{});for(var e in b){var f=b[e];d[e]=new Pc(f[Uc],f[Qc],f[Rc],f[Sc],f[Tc])}c.I=d;a.M=c;c=a.M.duration();if(a.P.Ja&&c>=a.P.timeLimit())alert("You have already exceeded available time for viewing this content."),Jc(),Ec();else return a.M.qa}Y.prototype.lb=function(){this.ka&&this.ka()};
Y.prototype.start=function(a){this.D&&(this.j=a,this.J=!0,this.tb.Qb.ya(a.presentation().title()),a.startupEvent().addHandler(this.mb,this),a.startupCompletedEvent().addHandler(this.nb,this),a.closeWindowEvent().addHandler(this.ib,this))};Y.prototype.start=Y.prototype.start;
Y.prototype.mb=function(a){this.j.startupEvent().removeHandler(this.mb,this);var b=(this.C||"review"==this.X)&&this.M?this.M.pa:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.j.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))};
Y.prototype.nb=function(a,b){this.j.startupCompletedEvent().removeHandler(this.nb,this);this.ub=!0;"resumePlayback"==a&&this.M&&(this.m=this.M);a=this.m.duration();this.aa.O||(this.aa.wb.addHandler(this.Ta,this),this.aa.start(a));a=this.j.view().playbackController();a.slideChangeEvent().addHandler(this.Qa,this);a=a.currentSlideIndex();a==b&&this.Qa(a);this.j.stateChangedEvent().addHandler(this.ob,this)};Y.prototype.yb=function(){this.J&&Gd(this,this.C)};Y.prototype.closeLms=Y.prototype.yb;
function Gd(a,b){a.J&&(a.J=!1,a.ub&&(a.aa.stop(),Hd(a),a.j.view().playbackController().slideChangeEvent().removeHandler(a.Qa,a)),a.j.closeWindowEvent().removeHandler(a.ib,a),a.j.stateChangedEvent().removeHandler(a.ob,a),b?a.o.suspend():a.o.terminate())}h=Y.prototype;
h.Qa=function(a){if(this.w){var b=this.w;b.currentSessionChangedEvent().removeHandler(this.jb,this);(b=b.currentSession())&&Id(this,b);this.w=null}this.H&&(this.H.currentSessionChangedEvent().removeHandler(this.kb,this),null!=this.la&&Jd(this),this.H=null);b=this.j.view().playbackController();if(a in this.L.G){var c=this.w=b.quizPlayer(),d=(c[w]||(c[w]=++ra))+"";d in this.oa||(this.oa[d]=!0,(d=Kd(this.o.g))&&c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()}));c.currentSessionChangedEvent().addHandler(this.jb,
this);(c=c.currentSession())&&Nd(this,c)}a in this.L.Z&&(b=this.H=b.scenarioPlayer(),c=(b[w]||(b[w]=++ra))+"",c in this.oa||(this.oa[c]=!0,c=Kd(this.o.g),d=!b.userInfoIsLoaded(),c&&d&&b.setUserInfo(c.id(),{USER_NAME:c.name(),USER_EMAIL:c.email()})),c=b.currentSession(),null!=c&&Od(this,c),b.currentSessionChangedEvent().addHandler(this.kb,this));b=this.j.presentation().slides().getSlide(a);"normal"==this.X&&b.title()&&b.title();b=this.m.S;0<=C(b,a)||b.push(a);this.m.pa=a;Pd(this)};
function Hd(a){var b=a.aa;b=b.O?ua()-b.ta+b.Y:b.va;var c=a.aa;c=c.O?ua()-c.ta:c.Ia;a.m.Da(b);a.o.g.c("cmi.core.session_time",Dc(c/1E3));b=a.j.persistState();a.m.qa=b;b=a.o.g;a=(new cc(void 0)).serialize(a.m.bb());a=LZString.compressToBase64(a);b.c("cmi.suspend_data",a)}function Pd(a){var b=a.L;if(0<b.N||0<b.fa){var c=Qd(a),d=b.totalScore()*c;a.o.U(c,0,b.totalScore(),d)}a.j.presentation().slides().count();a.o.V(Rd(a),Sd(a));Hd(a);a.o.ca()}
function Rd(a){var b=a.L,c;if(!(c=!(0<b.N||0<b.fa))&&(c=a.C)){a:if(0<a.L.N&&0<a.m.S.length)var d=!0;else{c=a.m.I;for(d in c)if(-1!=C(a.m.S,parseInt(d,10))){d=!0;break a}d=!1}c=!d}return c?null:Qd(a)*b.totalScore()>=b.passingScore()}function Sd(a){var b=a.L,c=a.j.presentation().slides().count();b=Ua(a.m.I)==Ua(b.G)+Ua(b.Z);return a.m.S.length>=c&&b}
function Qd(a){var b=a.L;if(!(0<b.N||0<b.fa))return 0;var c=0,d=a.m.I,e;for(e in d){var f=d[e],g=parseInt(e,10);c+=(null!=f.cb?f.cb:1)*(null!=(g in b.G?b.G[g]:null)?g in b.G?b.G[g]:0:g in b.Z?b.Z[g]:0)}d=0;0<b.N&&(d=a.j.presentation().slides().count(),d=a.m.S.length/d*b.slidesWeight());a=Ac(Va(b.G))+Ac(Va(b.Z))+b.slidesWeight();return(c+d)/a}h.kb=function(){null!=this.la&&Jd(this);var a=this.H.currentSession();Od(this,a)};
function Od(a,b){"normal"==a.X&&(a.la=b,b.showTerminalSceneEvent().addHandler(a.Sa,a),b.onReplySelectedEvent().addHandler(a.Ra,a),b.scenario().id(),b.scenario().title(),b.completed()&&a.Sa())}function Jd(a){var b=a.la;a.la=null;b.showTerminalSceneEvent().removeHandler(a.Sa,a);b.onReplySelectedEvent().removeHandler(a.Ra,a)}
h.Sa=function(){var a=this.H.currentSession();y(a);var b=a.currentSceneState().scene();null!=b&&(null!=b.speech()&&0<b.speech().length||null!=b.message()&&0<b.message().text().length)&&this.Ra();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 Pc("scenario",a.scenarioPassed(),b,c,d)}else b=new Pc("scenario",!0);c=this.j.view().playbackController().currentSlideIndex();this.m.I[c+""]=b;a.duration();a.scenario().settings().evaluationSettings().enabled()&&
(a.maxScore(),a.userScore(),a.scenarioPassed());a.scenario().id();a.scenario().title();Pd(this)};h.Ra=function(a){var b=this.H.currentSession();y(b);var c=b.currentSceneState().scene();null!=c&&(a=(new tc(b,c,"1.2"==this.Fa,a)).create(),Za(a,function(a){if("tincan"==this.Fa||a.type()==Q){var c="/scenarios/"+b.scenario().id();a.id();a.type();this.o.wa(c,a)}},this))};
function Nd(a,b){if("normal"==a.X){b.sessionModeChangedEvent().addHandler(a.qb,a);var c=b.slidePoolState();c=m(c.questions());for(var d=c.next();!d.done;d=c.next())d.value.submittedEvent().addHandler(a.pb,a);a.w.id();b.quiz().title()}}function Id(a,b){b.sessionModeChangedEvent().removeHandler(a.qb,a);b=b.slidePoolState();b=m(b.questions());for(var c=b.next();!c.done;c=b.next())c.value.submittedEvent().removeHandler(a.pb,a)}
h.jb=function(){var a=this.w.currentSession();this.Ha&&Id(this,this.Ha);(this.Ha=a)&&Nd(this,a)};
h.qb=function(a){if("testing"==a){a=this.w.currentSession();y(a);var b;if(b=a.evaluation()){var c=b.maxScore(),d=b.awardedScore(),e=b.awardedPercent()/100;b=new Pc("quiz",b.quizPassed(),c,d,e)}else b=new Pc("quiz",!0);c=this.j.view().playbackController().currentSlideIndex();this.m.I[c+""]=b;a.quizDuration();if(b=a.evaluation())if(b.maxScore(),b.awardedScore(),b.quizPassed(),b=this.w.currentSession(),y(b),b=new Oc(this.o,b),"byGroups"==b.sa.settings().passingScoreType())for(b=b.sa.slidePoolState(),
b=m(b.groups()),c=b.next();!c.done;c=b.next())(new Nc).create(c.value);this.w.id();a.quiz().title();Pd(this)}};h.pb=function(a){var b=this.w.currentSession();y(b);if(a.initiated()){b=a.slide().type();var c=this.Fa;if(a=(new Dd[b]({ac:"1.2"==c||"aicc"==c,dc:"tincan"==c})).create(a))b="/quizzes/"+this.w.id(),a.id(),this.o.wa(b,a)}};h.ib=function(a){y(this.J);a.preventAction();this.yb()};h.Ta=function(){y(this.J);this.P.Ob&&alert(this.P.message());this.P.Ja&&Gd(this,!1)};
h.ob=function(a){y(this.J);a.actionPrevented()||(a.preventAction(),Hd(this))};function Td(){}h=Td.prototype;h.g=null;h.zb=function(){throw Error("unimplemented abstract method");};h.T=function(a,b){if(this.g=this.zb()){var c=this.g;c.D?a():null!=c.v?(c.D=c.v.T(),c.D?a():b()):(c.D=!1,b())}else b()};h.ca=function(){this.g.ca()};h.suspend=function(){this.g.terminate(!0);Jc();Ec()};h.terminate=function(){this.g.terminate(!1);Jc();Ec()};h.V=function(a,b){this.g.Ea(a);this.g.V(a,b)};h.U=function(a,b,c,d){this.g.U(d,b,c,a)};h.wa=function(a,b){this.g.wa(b)};function Ud(a,b){this.ea=a;this.Ua=!1;this.Ga=0;this.C=b}h=Ud.prototype;h.T=function(){try{return"true"==this.ea.LMSInitialize("")}catch(a){}return!1};h.terminate=function(a){this.c("cmi.core.exit",a?this.Ua?"":"suspend":"");this.ca();try{return"true"==this.ea.LMSFinish("")}catch(b){}return!1};h.ca=function(){0==this.Ga&&this.c("cmi.core.exit",this.C?this.Ua?"":"suspend":"");try{var a="true"==this.ea.LMSCommit("");this.Ga+=1;return a}catch(b){}return!1};h.Ea=function(a){this.Ua=a};h.da=function(a){try{return this.ea.LMSGetValue(a)}catch(b){}return""};
h.c=function(a,b){if("number"==typeof b){var c;(c=r(c)?c:!0)?b=parseFloat(b.toFixed(2))+"":(c=Math.pow(10,2),b=Math.floor(b*c)/c+"");b+=""}try{return"true"==this.ea.LMSSetValue(a,b)}catch(d){}return!1};var Z={id:"id",type:"type",score:"weighting",Ub:"correct_responses.%INDEX%.pattern",eb:"student_response",result:"result",duration:"latency",fb:"time"},Vd={};function Wd(a,b,c){var d=a.id()+"_"+a.description();d=P(d.substr(0,255));c.c(b+Z.id,d);c.c(b+Z.type,a.type());c.c(b+Z.score,a.score());d=a.u||[];for(var e=0;e<d.length;++e){var f=Z.Ub.replace("%INDEX%",e);c.c(b+f,d[e])}d=a.eb();null!=d&&c.c(b+Z.eb,d);c.c(b+Z.result,function(a){return"incorrect"==a?"wrong":a}(a.result()))};u("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){var d=null.Eb[a];if(null==d)return"";delete null.Eb[a];$b(function(){if(b)d.onload(c);else d.onerror()},10);return"ok"},void 0);function Kd(a){return new Kc(a.da("cmi.core.student_id"),a.da("cmi.core.student_name"))};function Xd(a){var b=Cc();this.v=b?new Ud(b,a):null;this.D=!1}h=Xd.prototype;h.T=function(){return this.D?!0:this.D=null!=this.v?this.v.T():!1};h.terminate=function(a){return null!=this.v?this.v.terminate(a):!1};h.ca=function(){return null!=this.v?this.v.ca():!1};h.da=function(a){return null!=this.v?this.v.da(a):""};h.c=function(a,b){return null!=this.v?this.v.c(a,b):!1};h.U=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.V=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.Ea=function(a){this.v.Ea(a)};
h.wa=function(a){var b=a.id();if(a.id()in Vd)var c=Vd[b];else c=parseInt(this.da("cmi.interactions._count"),10),Vd[b]=c;0>c||(b="cmi.interactions."+c+".",Wd(a,b,this),c=a.duration(),null===c||this.c(b+Z.duration,Dc(c/1E3)),a=a.fb(),null===a||this.c(b+Z.fb,Dc(3600*a.getHours()+60*a.getMinutes()+a.getSeconds())))};function Yd(a){this.Wa=a.Wa;this.C=a.C}va(Yd,Td);u("iSpring.LMSAPI.Scorm12Api",Yd,void 0);Yd.prototype.zb=function(){return new Xd(this.C)};Yd.prototype.V=function(a,b){var c=null===a;b=c?b:a;this.g.Ea(a);null===b?this.g.V(null,null):!c&&this.Wa.Ib&(b?2:1)?this.g.V(b,null):this.g.V(null,b)};})();
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}
