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