(function(){for(var h,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},l="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ba=["String","prototype","repeat"],ca=0;ca<ba.length-1;ca++){var da=ba[ca];da in l||(l[da]={});l=l[da]}
var ea=ba[ba.length-1],fa=l[ea],ga=fa?fa:function(a){var b;if(null==this)throw new TypeError("The 'this' value for String.prototype.repeat must not be null or undefined");b=this+"";if(0>a||1342177279<a)throw new RangeError("Invalid count value");a|=0;for(var c="";a;)if(a&1&&(c+=b),a>>>=1)b+=b;return c};ga!=fa&&null!=ga&&aa(l,ea,{configurable:!0,writable:!0,value:ga});var n=this;function p(a){return void 0!==a}
function q(a,b,c){a=a.split(".");c=c||n;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c=c[d]?c[d]:c[d]={}}
function t(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 ha(a){var b=t(a);return"array"==b||"object"==b&&"number"==typeof a.length}function u(a){return"string"==typeof a}function ia(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ja(a){return a[ka]||(a[ka]=++la)}var ka="closure_uid_"+(1E9*Math.random()>>>0),la=0;function ma(a,b,c){return a.call.apply(a.bind,arguments)}
function na(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 v(a,b,c){v=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ma:na;return v.apply(null,arguments)}var oa=Date.now||function(){return+new Date};
function w(a,b){function c(){}c.prototype=b.prototype;a.f=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 pa(a,b,c){this.fa=a;this.Ab=b;this.wb=c}pa.prototype.id=function(){return this.fa};pa.prototype.name=function(){return this.Ab};pa.prototype.email=function(){return this.wb};function qa(a){this.fa=a}h=qa.prototype;h.I="";h.g=null;h.h=null;h.ha="unanticipated";h.nb=0;h.Ya=null;h.J=null;h.Ra=null;h.id=function(){return this.fa};h.type=function(){return this.c};h.description=function(){return this.I};h.ja=function(){return this.g};h.Sa=function(){return this.h};function ra(a,b){a.h=b}h.result=function(){return this.ha};h.score=function(){return this.nb};h.S=function(a){this.nb=a};h.awardedScore=function(){return this.Ya};h.duration=function(){return this.J};
h.ya=function(a){this.J=a};h.Xa=function(){return this.Ra};function sa(){};function ta(){}h=ta.prototype;h.ub=null;h.maxScore=null;h.awardedScore=null;h.va=null;h.duration=null;function ua(){}h=ua.prototype;h.j=null;h.tb=function(){throw Error("unimplemented abstract method");};h.R=function(a,b){if(this.j=this.tb()){var c=this.j;c.A?a():null!=c.s?(c.A=c.s.R(),c.A?a():b()):(c.A=!1,b())}else b()};h.$=function(){this.j.$()};h.suspend=function(){this.j.terminate(!0)};h.terminate=function(){this.j.terminate(!1)};h.T=function(a,b){this.j.za(a);this.j.T(a,b)};h.S=function(a,b,c,d){this.j.S(d,b,c,a)};h.ua=function(a,b,c,d){this.j.ua(d)};var va=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function wa(a){if(!xa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ya,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(za,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Aa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ba,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ca,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Da,"&#0;"));return a}var ya=/&/g,za=/</g,Aa=/>/g,Ba=/"/g,Ca=/'/g,Da=/\x00/g,xa=/[\x00&<>"']/;
function Ea(a,b){return a<b?-1:a>b?1:0}function Fa(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Ga(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 Ha(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function Ia(a){var b=0,c;for(c in a)b++;return b}function Ja(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ka(a,b,c){return null!==a&&b in a?a[b]:c}var La="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Ma(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<La.length;f++)c=La[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Na=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(u(a))return u(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},x=Array.prototype.forEach?function(a,b,c){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)},Oa=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=u(a)?a.split(""):a,k=0;k<d;k++)if(k in g){var m=g[k];b.call(c,m,k,a)&&(e[f++]=m)}return e},Pa=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=u(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};
function Qa(a,b){var c;a:{c=a.length;for(var d=u(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){c=e;break a}c=-1}return 0>c?null:u(a)?a.charAt(c):a[c]}function Ra(a){return Array.prototype.concat.apply(Array.prototype,arguments)}function Sa(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 Ta(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ha(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 Ua(a,b,c,d){Array.prototype.splice.apply(a,Va(arguments,1))}function Va(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}
function Wa(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++],f;f=e;f=ia(f)?"o"+ja(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};var y;a:{var Xa=n.navigator;if(Xa){var Ya=Xa.userAgent;if(Ya){y=Ya;break a}}y=""}function z(a){return-1!=y.indexOf(a)};function Za(a,b){var c=$a;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var ab=z("Opera"),A=z("Trident")||z("MSIE"),bb=z("Edge"),B=z("Gecko")&&!(-1!=y.toLowerCase().indexOf("webkit")&&!z("Edge"))&&!(z("Trident")||z("MSIE"))&&!z("Edge"),cb=-1!=y.toLowerCase().indexOf("webkit")&&!z("Edge");function db(){var a=n.document;return a?a.documentMode:void 0}var eb;
a:{var fb="",gb=function(){var a=y;if(B)return/rv\:([^\);]+)(\)|;)/.exec(a);if(bb)return/Edge\/([\d\.]+)/.exec(a);if(A)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(cb)return/WebKit\/(\S+)/.exec(a);if(ab)return/(?:Version)[ \/]?(\S+)/.exec(a)}();gb&&(fb=gb?gb[1]:"");if(A){var hb=db();if(null!=hb&&hb>parseFloat(fb)){eb=String(hb);break a}}eb=fb}var $a={};
function C(a){return Za(a,function(){for(var b=0,c=va(String(eb)).split("."),d=va(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",k=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==g[0].length&&0==k[0].length)break;b=Ea(0==g[1].length?0:parseInt(g[1],10),0==k[1].length?0:parseInt(k[1],10))||Ea(0==g[2].length,0==k[2].length)||Ea(g[2],k[2]);g=g[3];k=k[3]}while(0==b)}return 0<=b})}var ib;var jb=n.document;
ib=jb&&A?db()||("CSS1Compat"==jb.compatMode?parseInt(eb,10):5):void 0;var kb=!A||9<=Number(ib);!B&&!A||A&&9<=Number(ib)||B&&C("1.9.1");var lb=A&&!C("9");function mb(a,b){Ha(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:nb.hasOwnProperty(d)?a.setAttribute(nb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var nb={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 ob(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!kb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',wa(g.name),'"');if(g.type){f.push(' type="',wa(g.type),'"');var k={};Ma(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(u(g)?f.className=g:"array"==t(g)?f.className=g.join(" "):mb(f,g));2<d.length&&pb(e,f,d);return f}
function pb(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];!ha(f)||ia(f)&&0<f.nodeType?d(f):x(qb(f)?Sa(f):f,d)}}var rb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},sb={IMG:" ",BR:"\n"};
function tb(a){if(lb&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];ub(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");lb||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}
function ub(a,b,c){if(!(a.nodeName in rb))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 sb)b.push(sb[a.nodeName]);else for(a=a.firstChild;a;)ub(a,b,c),a=a.nextSibling}function qb(a){if(a&&"number"==typeof a.length){if(ia(a))return"function"==typeof a.item||"string"==typeof a.item;if("function"==t(a))return"function"==typeof a.item}return!1};function vb(a){var b={width:"1px",height:"1px",border:"0"};if(u(b))(b=wb(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=wb(d,c);f&&(d.style[f]=e)}}var xb={};function wb(a,b){var c=xb[b];if(!c){var d=Fa(b),c=d;void 0===a.style[d]&&(d=(cb?"Webkit":B?"Moz":A?"ms":ab?"O":null)+Ga(d),void 0!==a.style[d]&&(c=d));xb[b]=c}return c};A&&C("9");!cb||C("528");B&&C("1.9b")||A&&C("8")||ab&&C("9.5")||cb&&C("528");B&&!C("8")||A&&C("9");function yb(a,b){if("function"!=t(a))if(a&&"function"==typeof a.handleEvent)a=v(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(b)||n.setTimeout(a,b||0)};function zb(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 Ab(a){a=String(a);if(zb(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function Bb(a){this.xa=a}Bb.prototype.serialize=function(a){var b=[];Cb(this,a,b);return b.join("")};
function Cb(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if("array"==t(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],Cb(a,a.xa?a.xa.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),Db(d,c),c.push(":"),Cb(a,a.xa?a.xa.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":Db(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 Eb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Fb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Db(a,b){b.push('"',a.replace(Fb,function(a){var b=Eb[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),Eb[a]=b);return b}),'"')};var Gb=z("Firefox"),Hb=z("Safari")&&!((z("Chrome")||z("CriOS"))&&!z("Edge")||z("Coast")||z("Opera")||z("Edge")||z("Silk")||z("Android"))&&!(z("iPhone")&&!z("iPod")&&!z("iPad")||z("iPad")||z("iPod"));var Ib=null,Jb=B||cb&&!Hb||ab||"function"==typeof n.btoa;function Kb(a,b){this.c=a;this.vb=b||[]}q("iSpring.ios.mobile.MobileAppCommand",Kb,void 0);Kb.prototype.id=function(){return ja(this)};
Kb.prototype.$a=function(a,b){var c=this.id(),d=(new Bb(null)).serialize(b),e;if(Jb)e=n.btoa(d);else{e=[];for(var f=0,g=0;g<d.length;g++){for(var k=d.charCodeAt(g);255<k;)e[f++]=k&255,k>>=8;e[f++]=k}if(!Ib)for(Ib={},d=0;65>d;d++)Ib[d]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d);d=Ib;f=[];for(g=0;g<e.length;g+=3){var m=e[g],r=(k=g+1<e.length)?e[g+1]:0,K=g+2<e.length,L=K?e[g+2]:0,nd=m>>2,m=(m&3)<<4|r>>4,r=(r&15)<<2|L>>6,L=L&63;K||(L=64,k||(r=64));f.push(d[nd],d[m],
d[r],d[L])}e=f.join("")}return"isplayer://"+a+"/"+c+"/"+e};function Lb(a){try{var b=document.createElement("iframe");vb(b);b.src=a;document.body.appendChild(b);yb(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(c){}};function D(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}D.prototype.BYTES_PER_ELEMENT=8;D.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]};D.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{D.BYTES_PER_ELEMENT=8}catch(a){}D.prototype.BYTES_PER_ELEMENT=D.prototype.BYTES_PER_ELEMENT;D.prototype.set=D.prototype.set;D.prototype.toString=D.prototype.toString;q("Float64Array",D,void 0)};function E(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}E.prototype.BYTES_PER_ELEMENT=4;E.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]};E.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(E.BYTES_PER_ELEMENT=4,E.prototype.BYTES_PER_ELEMENT=E.prototype.BYTES_PER_ELEMENT,E.prototype.set=E.prototype.set,E.prototype.toString=E.prototype.toString,q("Float32Array",E,void 0));function Mb(){var a;var b=window.location.search.substr(1);if(b){a={};for(var b=b.split("&"),c=0;c<b.length;++c){var d=b[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();a[e]=f}}}else a={};return a}function Nb(){if(Ob){var a=new Kb("closeWindow");Ob&&(a=a.$a(a.c,a.vb),Lb(a))}else try{Pb||(window.open("","_self",""),window.close())}catch(b){}};var Qb={id:"http://adlnet.gov/expapi/verbs/experienced",display:{"en-US":"experienced"}},Rb={id:"http://adlnet.gov/expapi/verbs/answered",display:{"en-US":"answered"}},Sb={id:"http://adlnet.gov/expapi/verbs/responded",display:{"en-US":"responded"}};function Tb(){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 Ub(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 Vb(){try{var a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(b){}};function Wb(a,b){this.ba=a;this.Na=!1;this.Ba=0;this.w=b}h=Wb.prototype;h.R=function(){try{return"true"==this.ba.LMSInitialize("")}catch(a){}return!1};h.terminate=function(a){this.i("cmi.core.exit",a?this.Na?"":"suspend":"");this.$();try{return"true"==this.ba.LMSFinish("")}catch(b){}return!1};h.$=function(){0==this.Ba&&this.i("cmi.core.exit",this.w?this.Na?"":"suspend":"");try{var a="true"==this.ba.LMSCommit("");this.Ba+=1;return a}catch(b){}return!1};h.za=function(a){this.Na=a};h.aa=function(a){try{return this.ba.LMSGetValue(a)}catch(b){}return""};
h.i=function(a,b){if("number"==typeof b){var c;(c=p(c)?c:!0)?c=parseFloat(b.toFixed(2))+"":(c=Math.pow(10,2),c=Math.floor(b*c)/c+"");b=c+""}try{return"true"==this.ba.LMSSetValue(a,b)}catch(d){}return!1};function F(a,b){this.fa=a;this.I=b}F.prototype.id=function(){return this.fa};F.prototype.description=function(){return this.I};function Xb(){this.U=[]}Xb.prototype.count=function(){return this.U.length};function G(a,b){a.U.push(b)}Xb.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.U[a]};function H(){this.U=new Xb}H.prototype.choices=function(){return this.U};function Yb(){this.U=new Xb;this.Za=[]}w(Yb,H);function Zb(){this.oa=new Xb;this.qa=new Xb};var I={id:"id",type:"type",score:"weighting",Mb:"correct_responses.%INDEX%.pattern",ja:"student_response",result:"result",duration:"latency",Xa:"time"},$b={};function ac(a,b,c){c.i(b+I.id,a.id());c.i(b+I.type,a.type());c.i(b+I.score,a.score());for(var d=a.Sa()||[],e=0;e<d.length;++e){var f=I.Mb.replace("%INDEX%",e);c.i(b+f,d[e])}(d=a.ja())&&c.i(b+I.ja,d);c.i(b+I.result,function(a){return"incorrect"==a?"wrong":a}(a.result()))};(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(){var a;try{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 bc;var cc=Mb().user_agent;bc=cc?cc:y||"";Mb();var dc=-1!=bc.toLowerCase().indexOf("chrome"),Pb=-1==bc.toLowerCase().indexOf("windows phone")&&-1!=bc.toLowerCase().indexOf("android")&&!dc&&!Gb&&!ab,Ob=-1!=bc.indexOf("ismobile");function ec(){return 1==window._ispringDebug||"1"==Mb().isdebug};function fc(){}q("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){var d;gc||(gc=new fc);d=gc;var e=d.ab[a];if(null==e)return"";delete d.ab[a];yb(function(){if(b)e.onload(c);else e.onerror()},10);return"ok"},void 0);var gc=null;fc.prototype.ab={};fc.prototype.$a=function(a){return new Kb("tincanRequest",[a])};function hc(a){return new pa(a.aa("cmi.core.student_id"),a.aa("cmi.core.student_name"),"")};function ic(a){var b=Tb();this.s=b?new Wb(b,a):null;this.A=!1}h=ic.prototype;h.R=function(){return this.A?!0:this.A=null!=this.s?this.s.R():!1};h.terminate=function(a){return null!=this.s?this.s.terminate(a):!1};h.$=function(){return null!=this.s?this.s.$():!1};h.aa=function(a){return null!=this.s?this.s.aa(a):""};h.i=function(a,b){return null!=this.s?this.s.i(a,b):!1};h.S=function(a,b,c){this.i("cmi.core.score.raw",a);this.i("cmi.core.score.min",b);this.i("cmi.core.score.max",c)};
h.T=function(a,b){null===a?null===b?this.i("cmi.core.lesson_status","unknown"):this.i("cmi.core.lesson_status",b?"completed":"incomplete"):this.i("cmi.core.lesson_status",a?"passed":"failed")};h.za=function(a){this.s.za(a)};
h.ua=function(a){var b=a.id(),c;a.id()in $b?c=$b[b]:(c=parseInt(this.aa("cmi.interactions._count"),10),c=250<=c?-1:c,$b[b]=c);0>c||(b="cmi.interactions."+c+".",ac(a,b,this),c=a.duration(),null===c||this.i(b+I.duration,Ub(c/1E3)),a=a.Xa(),null===a||this.i(b+I.Xa,Ub(3600*a.getHours()+60*a.getMinutes()+a.getSeconds())))};function J(a){this.Oa=a.Oa;this.w=a.w}w(J,ua);q("iSpring.LMSAPI.Scorm12Api",J,void 0);J.prototype.tb=function(){return new ic(this.w)};J.prototype.T=function(a,b){var c=null===a,d=c?b:a;this.j.za(a);null===d?this.j.T(null,null):!c&&this.Oa.Cb&(d?2:1)?this.j.T(d,null):this.j.T(null,d)};J.prototype.suspend=function(){J.f.suspend.call(this);Vb();Nb()};J.prototype.terminate=function(){J.f.terminate.call(this);Vb();Nb()};var M={Jc:"slidePool",Tb:"authorizationForm",hc:"informationSlide",jc:"introSlide",Ec:"resultSlide",fc:"hotspotQuestion",nc:"likertScaleQuestion",Oc:"wordBankQuestion",$b:"essayQuestion",Mc:"typeInQuestion",Ic:"shortAnswerQuestion",ac:"fillInTheBlankQuestion",bc:"fillInTheBlankSurveyQuestion",wc:"numericQuestion",xc:"numericSurveyQuestion",Hc:"sequenceQuestion",Dc:"rankingQuestion",Nc:"whichWordQuestion",rc:"multipleChoiceTextQuestion",sc:"multipleChoiceTextSurveyQuestion",qc:"multipleChoiceQuestion",
tc:"multipleResponseQuestion",Ac:"pickOneQuestion",zc:"pickManyQuestion",Lc:"trueFalseQuestion",Pc:"yesNoQuestion",oc:"matchingQuestion",pc:"matchingSurveyQuestion"};q("ispring.quiz.slides.SlideType",M,void 0);function jc(a){return"slidePool"!=a&&"informationSlide"!=a&&"introSlide"!=a&&"resultSlide"!=a}q("SLIDE_POOL","slidePool",M);q("INFORMATION_SLIDE","informationSlide",M);q("INTRO_SLIDE","introSlide",M);q("HOTSPOT_QUESTION","hotspotQuestion",M);q("LIKERT_SCALE_QUESTION","likertScaleQuestion",M);
q("WORD_BANK_QUESTION","wordBankQuestion",M);q("RESULT_SLIDE","resultSlide",M);q("ESSAY_QUESTION","essayQuestion",M);q("TYPE_IN_QUESTION","typeInQuestion",M);q("SHORT_ANSWER_QUESTION","shortAnswerQuestion",M);q("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",M);q("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",M);q("NUMERIC_QUESTION","numericQuestion",M);q("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",M);q("SEQUENCE_QUESTION","sequenceQuestion",M);
q("RANKING_QUESTION","rankingQuestion",M);q("WHICH_WORD_QUESTION","whichWordQuestion",M);q("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",M);q("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",M);q("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",M);q("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",M);q("PICK_ONE_QUESTION","pickOneQuestion",M);q("PICK_MANY_QUESTION","pickManyQuestion",M);q("TRUE_FALSE_QUESTION","trueFalseQuestion",M);
q("YES_NO_QUESTION","yesNoQuestion",M);q("MATCHING_QUESTION","matchingQuestion",M);q("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",M);var kc={Cc:"prompt",Rb:"always",uc:"never"};q("ispring.presenter.presentation.settings.PresentationResumeMode",kc,void 0);q("PROMPT_TO_RESUME","prompt",kc);q("ALWAYS_RESUME","always",kc);q("NEVER_RESUME","never",kc);function N(){}q("ispring.events.IEventDispatcher",N,void 0);N.prototype.addHandler=function(){};N.prototype.addHandler=N.prototype.addHandler;N.prototype.removeHandler=function(){};N.prototype.removeHandler=N.prototype.removeHandler;function lc(){this.mb=[];this.B=[]}lc.prototype.push=function(a,b){if(!(b in this.B)){this.B[b]=[];var c=this.mb,d;d=0;for(var e=c.length,f;d<e;){var g=d+e>>1,k;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&&Ua(c,-(d+1),0,b)}this.B[b].push(a)};lc.prototype.remove=function(a,b){if(b in this.B){var c=this.B[b],d=Na(c,a);0<=d&&Array.prototype.splice.call(c,d,1)}};function mc(a,b){return b in a.B?a.B[b]:[]}
function nc(a){var b=[],c=a.B;a=a.mb;for(var d=0;d<a.length;++d)Ta(b,c[a[d]]);return b};function O(){this.V=new lc}O.prototype.addHandler=function(a,b,c){this.V.push({Ua:a,context:b},c||0)};O.prototype.addHandler=O.prototype.addHandler;O.prototype.removeHandler=function(a,b,c){c=c||0;for(var d=mc(this.V,c),e=d.length,f=0;f<e;++f){var g=d[f];if(g.Ua==a&&g.context==b){a=this.V;c in a.B&&Array.prototype.splice.call(a.B[c],f,1);break}}};O.prototype.removeHandler=O.prototype.removeHandler;
O.prototype.Ob=function(a,b,c){c=mc(this.V,c||0);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(f.Ua==a&&f.context==b)return!0}return!1};O.prototype.hasHandler=O.prototype.Ob;O.prototype.Ta=function(a){for(var b=nc(this.V),c=b.length,d=0;d<c;++d){var e=b[d];if(-1!=Na(nc(this.V),e))try{e.Ua.apply(e.context,arguments)}catch(f){ec()&&alert(f)}}};O.prototype.dispatch=O.prototype.Ta;function oc(a,b){this.Qa=a;this.qb=b;this.rb=new O}h=oc.prototype;h.N=!1;h.X=0;h.pa=0;h.ra=-1;h.sa=0;h.Ca=0;h.start=function(a){this.N||(this.sa=this.X=a||0,a=this.X>=this.Qa,a&&this.qb||(this.N=!0,this.pa=oa(),a||(this.ra=setTimeout(v(this.Ma,this),this.Qa-this.X))))};h.Ma=function(){this.qb&&(this.stop(),this.sa=this.Qa);this.rb.Ta()};h.stop=function(){this.N&&(this.N=!1,0<this.ra&&(clearTimeout(this.ra),this.ra=-1),this.Ca=oa()-this.pa,this.sa=this.Ca+this.X)};function pc(a){this.Cb=a};function qc(a){this.bb=a}qc.prototype.Nb=function(a,b,c){c=this.bb.hasOwnProperty(a)?this.bb[a]:c;if(p(c)){if(p(b)){a=this.xb;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}return""};qc.prototype.getMessage=qc.prototype.Nb;qc.prototype.xb=function(a){return"%"+a.toUpperCase()+"%"};function rc(a,b,c,d,e,f,g){this.Oa=b;this.yb=new qc(c);this.w=g}rc.prototype.i18n=function(){return this.yb};function sc(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 tc(){this.Jb=new O};function uc(a,b,c,d){this.Kb=a;this.Da=b;this.Hb=c;this.zb=d}uc.prototype.timeLimit=function(){return this.Kb};uc.prototype.message=function(){return this.zb};var vc={ic:"initializing",kc:"inProgress",Gc:"reviewing",Vb:"completed",Sb:"authorizating"};q("ispring.quiz.session.QuizState",vc,void 0);q("INITIALIZING","initializing",vc);q("IN_PROGRESS","inProgress",vc);q("REVIEWING","reviewing",vc);q("COMPLETED","completed",vc);q("AUTHORIZATING","authorizating",vc);var wc={Fc:"resumePlayback",cc:"gotoSlide",Xb:"delayStartup"};q("ispring.presenter.player.startup.PresentationStartup.Action",wc,void 0);q("RESUME_PLAYBACK","resumePlayback",wc);q("GOTO_SLIDE","gotoSlide",wc);q("DELAY_STARTUP","delayStartup",wc);function xc(a){var b="\r";if(0==a.length)return"";null!=b||(b="");var c=0,d="",e=a.length;do{var f=yc(a,["<p>","<p "],c);if(f&&f.wa>c){var c=a.substr(c,f.wa-c),g=ob("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||tb(g))+b;c=f.wa}if(g=yc(a,["</p>","</p >"],c)){var f=g.wa+g.Qb.length-c,k=a.substr(c,f),g=ob("DIV");g.innerHTML=k;d+=(g.textContent||g.innerText||tb(g))+b;c+=f}else return g=ob("DIV"),g.innerHTML=a.substr(c,e-c),d+(g.textContent||g.innerText||tb(g))}while(c<e);return d}
function yc(a,b,c){"array"==t(b)||(b=[b]);var d,e,f=!1;x(b,function(b){var g=a.indexOf(b,c);0<=g&&(!p(d)||g<d)&&(d=g,e=b,f=!0)});return f?new zc(e,d):null}function zc(a,b){this.Qb=a;this.wa=b};function P(a){a=va(a);return a=a.replace(/[^\w-]/g,"_")}function Q(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};function Ac(a,b,c,d){this.Fb=a;this.Gb=b;this.Eb=c;this.Pa=d}function Bc(a){a=xc(a.text());a=wa(a);if(!a)return"";var b=document.createElement("div");b.innerHTML=a;return b.firstChild.nodeValue}
Ac.prototype.create=function(){var a=0,b=[],c=this.Fb,d=this.Eb,e=new qa(c.id()+"_"+a),a=a+1;e.c="choice";var f;if(null!=c.message()){var g=c.message().text(),g=xc(g);e.I=g;f=c.message().replies();null!=c.speech()&&0<xc(c.speech())&&(a=new qa(c.id()+"_"+a),a.c="other",g=xc(c.speech()),a.I=g,a.S(c.score()),a.ha="neutral",Cc(this,a),b.push(a))}else a=xc(c.speech()),e.I=a,f=c.replies();0==f.count()&&(e.c="other");for(var a=null,k=-1,g=[],m=0;m<f.count();m++)null!=d&&f.getReply(m)==d&&(k=m),g.push(Dc(this,
m,Bc(f.getReply(m))));null!=d&&(a=Dc(this,k,Bc(d)));d=f;f=new H;for(k=0;k<d.count();++k)m=Bc(d.getReply(k)),G(f.choices(),new F(P(k+"_"+m),m));e.g=a;e.h=g;e.S(c.score());e.ha="neutral";Cc(this,e);b.push(e);return b};function Dc(a,b,c){c=P(b+"_"+c);b=Q(b);return a.Gb?b:c}function Cc(a,b){null!=a.Pa&&(b.Ra=new Date(a.Pa),b.ya(oa()-a.Pa))};function Ec(a,b,c,d,e){this.type=a;this.va=b;this.maxScore=p(c)?c:null;this.Pb=p(d)?d:null;this.Wa=p(e)?e:null}Ec.prototype.Va=function(){var a={};a[Fc]=this.va;a[Gc]=this.maxScore;a[Hc]=this.Pb;a[Ic]=this.Wa;a[Jc]=this.type;return a};var Fc="p",Gc="m",Hc="r",Ic="s",Jc="t";function Kc(){this.P=[];this.F={}}h=Kc.prototype;h.ma=-1;h.J=0;h.na=null;h.duration=function(){return this.J};h.ya=function(a){this.J=a};h.Va=function(){var a={};a[Lc]=this.J;a[Mc]=this.ma;a[Nc]=this.P;a[Oc]=this.na;var b={},c;for(c in this.F)b[c]=this.F[c].Va();a[Pc]=b;return a};var Mc="l",Nc="v",Lc="d",Oc="p",Pc="q";function Qc(a){for(var b=0,c=0;c<a.length;++c)b+=a[c];return b};function Rc(a,b,c,d,e,f){this.G=a;this.Ib=b;this.Lb=e;this.Db=f;this.C={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.C[b[0]]=e,0<e&&++this.ca;this.Y={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.Y[c[0]]=b,0<b&&++this.ca}h=Rc.prototype;h.ca=0;h.slidesWeight=function(){return 0<this.G?this.Ib:0};h.slidesToView=function(){return this.G};h.totalScore=function(){return this.Lb};h.passingScore=function(){return this.Db};function Sc(a,b,c,d){for(var e=d?",":"[,]",f=d?".":"[.]",g=[],k=0;k<a.count();++k){var m=a.getMatch(k),r=m.premise(),m=m.response(),K=b.getChoiceIndex(r),L=c.getChoiceIndex(m),r=d?Q(K,!0):K+"_"+r.textRange().text(),m=d?Q(L,!1):L+"_"+m.textRange().text(),r=P(r)+f+P(m);g.push(r)}return g.join(e)}function Tc(a,b,c){for(var d=c?",":"[,]",e=[],f=0;f<b.count();++f){var g=b.getChoice(f),k=g.textRange().text(),g=a.getChoiceIndex(g);e.push(P(c?Q(g,!0):g+"_"+k))}return e.join(d)};function Uc(){}Uc.prototype.create=function(a){if(!a.submitted())return null;var b=a.slide().id(),b=new qa(P(b));this.a(b,a);return b};Uc.prototype.a=function(a,b){var c=b.slide().description().text();a.I=c;b.visited()&&(a.ya(b.viewDuration()),c=b.firstVisitTime(),a.Ra=c)};function R(){}w(R,Uc);R.prototype.a=function(a,b){R.f.a.call(this,a,b);a.ha="neutral"};function Vc(a){this.v=a}w(Vc,R);Vc.prototype.v=!1;Vc.prototype.a=function(a,b){Vc.f.a.call(this,a,b);a.c="sequencing";var c=b.slide().items(),d=Tc(c,b.items(),this.v);a.g=d;a.h=[d];this.u(c)};Vc.prototype.u=function(a){for(var b=new H,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();G(b.choices(),new F(P(c+"_"+d),d))}return b};var Wc={Wb:"correct",yc:"partiallyCorrect",gc:"incorrect",vc:"notAnswered"};q("ispring.quiz.session.slides.questions.graded.review.GradedQuestionStatus",Wc,void 0);q("CORRECT","correct",Wc);q("PARTIALLY_CORRECT","partiallyCorrect",Wc);q("INCORRECT","incorrect",Wc);q("NOT_ANSWERED","notAnswered",Wc);function S(){}w(S,Uc);S.prototype.a=function(a,b){S.f.a.call(this,a,b);var c=b.slide();a.S(c.maxScore());if(c=b.review()){var d=Math.max(0,c.awardedScore());a.Ya=d;d="unanticipated";switch(c.status()){case "correct":d="correct";break;case "incorrect":d="incorrect";break;case "partiallyCorrect":d="partially"}a.ha=d}};var T={Zb:"equal",Yb:"notEqual",dc:"greaterThan",lc:"lessThan",ec:"greaterThanOrEqual",mc:"lessThanOrEqual",Ub:"between"};q("ispring.quiz.slides.questions.graded.answers.numeric.ComparisonOperation",T,void 0);q("EQUALS","equal",T);q("DIFFERS","notEqual",T);q("GREATER_THAN","greaterThan",T);q("LESS_THAN","lessThan",T);q("GREATER_THAN_OR_EQUALS","greaterThanOrEqual",T);q("LESS_THAN_OR_EQUALS","lessThanOrEqual",T);q("BETWEEN","between",T);function Xc(a){this.b=a}w(Xc,S);
Xc.prototype.a=function(a,b){Xc.f.a.call(this,a,b);var c=b.slide(),d=b.initiated()?b.getAnswer().toString():"",c=c.answers(),e;a:{for(e=0;e<c.count();++e)if("notEqual"==c.getAnswer(e).comparisonOperation()){e=!0;break a}e=!1}a.c=this.b||e?"fill-in":"numeric";for(var f=(e=this.b||e)?"[,]":"[.]",g=[],k=0;k<c.count();++k){var m="",r=c.getAnswer(k),K=r.comparisonOperation();if("between"==K)m=r,m=e?"between "+m.leftOperand()+" and "+m.rightOperand():m.leftOperand()+"[:]"+m.rightOperand();else switch(K){case "notEqual":e&&
(m="not equal to "+r.operand());break;case "equal":m=e?"equal to "+r.operand():r.operand()+"[:]"+r.operand();break;case "greaterThan":m=e?"greater than "+r.operand():r.operand()+"[:]";break;case "greaterThanOrEqual":m=e?"greater than or equal to "+r.operand():r.operand()+"[:]";break;case "lessThan":m=e?"less than "+r.operand():"[:]"+r.operand();break;case "lessThanOrEqual":m=e?"less than or equal to "+r.operand():"[:]"+r.operand()}g.push(m)}c=g.join(f);a.g=d;a.h=[c]};function Yc(a,b){this.b=a;this.ta=b}w(Yc,R);Yc.prototype.a=function(a,b){Yc.f.a.call(this,a,b);a.c=this.b?"other":"fill-in";var c=this.Ha(b.blanks()),d=c.join("[,]");a.g=d;a.h=this.b||this.ta?[d]:c};Yc.prototype.Ha=function(a){for(var b=[],c=0;c<a.count();++c)b.push(a.getSection(c).answer());return b};function Zc(a){this.v=a}w(Zc,S);Zc.prototype.v=!1;Zc.prototype.a=function(a,b){Zc.f.a.call(this,a,b);a.c="sequencing";var c=b.slide().items(),d=Tc(c,b.items(),this.v),e=Tc(c,c,this.v);a.g=d;a.h=[e];this.u(c)};Zc.prototype.u=function(a){for(var b=new H,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();G(b.choices(),new F(P(c+"_"+d),d))}return b};function U(a,b){this.length=b;for(var c=0;c<b;++c)this[c]=a(c)};function $c(a){this.b=a}w($c,S);function ad(a,b){x(new U(function(b){return a.getChoice(b)},a.count()),function(a){a=a.textRange().text();var c=b.choices().count();G(b.choices(),new F(P(c+"_"+a),a))})}$c.prototype.Ea=function(a,b,c){x(a,function(a){a=a.section().answers().getGradedChoice(0).textRange().text();var d=b.choices().count(),d=P(d+"_"+a);c.push(d);G(b.choices(),new F(d,a))})};
$c.prototype.Fa=function(a,b,c){x(a,function(a){var d=a.answer();null!=d&&(a=Qa(new U(function(a){return b.choices().getChoice(a)},b.choices().count()),function(a){return a.description()==d.textRange().text()}),c.push(a.id()))})};$c.prototype.a=function(a,b){$c.f.a.call(this,a,b);a.c=this.b?"other":"choice";var c=b.slide(),d=[],e=[],f=new H;ad(c.extraItems(),f);var g=b.placeholders(),c=new U(function(a){return g.getSection(a)},g.count());this.Ea(c,f,e);this.Fa(c,f,d);a.g=d.join("[,]");ra(a,[e.join("[,]")])};function bd(a){this.b=a}w(bd,R);bd.prototype.a=function(a,b){bd.f.a.call(this,a,b);a.c=this.b?"fill-in":"numeric";var c="",d="";b.initiated()&&(c=b.answer().toString(),d=this.b?c:c+"[:]"+c);a.g=c;a.h=[d]};function V(a){this.b=a}w(V,R);V.prototype.a=function(a,b){V.f.a.call(this,a,b);a.c="choice";var c=b.slide().choices(),d=b.choices(),e=this.Ga(c,d);a.g=e;a.h=[e];this.u(c,d)};
V.prototype.u=function(a,b){for(var c=new Yb,d=0;d<a.count();++d){var e=a.getChoice(d),f;a:{f=e;for(var g=0;g<b.count();++g){var k=b.getChoiceState(g);if(k.choice()===f){f=k;break a}}throw Error("can't find choice state");}g=e.textRange().text();g=new F(this.da(f,d),g);G(c.choices(),g);e=e.customAnswerEnabled()?f.customAnswer():"";c.Za[d]=e}return c};
V.prototype.Ga=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d);if(e.selected()){var f=a.getChoiceIndex(e.choice()),e=this.da(e,f);c.push(e)}}return c.join("[,]")};V.prototype.da=function(a,b){var c=a.customizableChoice(),d=c.textRange().text(),d=b+"_"+d;c.customAnswerEnabled()&&(c=a.customAnswer(),d+=c?"_"+c:"");return this.b?Q(b):P(d)};function cd(a){this.v=a}w(cd,R);cd.prototype.a=function(a,b){cd.f.a.call(this,a,b);a.c="matching";var c=b.slide(),d=Sc(b.matches(),c.premises(),c.responses(),this.v);a.g=d;a.h=[d];this.H(c)};cd.prototype.H=function(a){var b=new Zb,c=a.premises();a=a.responses();for(var d=0;d<c.count();++d){var e=c.getChoice(d).textRange().text(),f=a.getChoice(d).textRange().text();G(b.oa,new F(P(d+"_"+e),e));G(b.qa,new F(P(d+"_"+f),f))}return b};function W(a){this.b=a}w(W,S);W.prototype.a=function(a,b){W.f.a.call(this,a,b);a.c="choice";var c=b.slide().responses(),d=this.Ia(c,b.responses()),e=this.ea(c);a.g=d;a.h=[e];this.u(c)};W.prototype.u=function(a){for(var b=new H,c=0;c<a.count();++c){var d=a.getGradedChoice(c).textRange().text();G(b.choices(),new F(P(c+"_"+d),d))}return b};
W.prototype.Ia=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.gradedChoice(),g=f.textRange().text();e.selected()&&(e=a.getChoiceIndex(f),g=this.b?Q(e):P(e+"_"+g),c.push(g))}return c.join("[,]")};W.prototype.ea=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getGradedChoice(c);d.correct()&&(d=this.b?Q(c):P(c+"_"+d.textRange().text()),b.push(d))}return b.join("[,]")};var dd={Kc:"textSection",Bc:"placeholderSection"};q("ispring.quiz.slides.questions.SectionType",dd,void 0);q("TEXT_SECTION","textSection",dd);q("PLACEHOLDER_SECTION","placeholderSection",dd);function ed(a){this.b=a}w(ed,S);
ed.prototype.a=function(a,b){ed.f.a.call(this,a,b);a.c=this.b?"other":"matching";var c=b.slide(),d=[],e=[],f=new H,g=b.choices();x(new U(function(a){return g.getSection(a)},g.count()),function(a,b){var c=Qa(new U(function(b){return a.choices().getChoiceState(b)},a.choices().count()),function(a){return a.selected()}),g=a.section().choices();x(new U(function(a){return g.getGradedChoice(a)},g.count()),function(a){var g=a.textRange().text(),k=f.choices().count(),k=b+"[.]"+P(k+"_"+g);a.correct()&&e.push(k);
null!=c&&g==c.gradedChoice().textRange().text()&&d.push(k);G(f.choices(),new F(k,g))})});a.g=d.join("[,]");ra(a,[e.join("[,]")]);sa(this.H(c))};ed.prototype.H=function(a){var b=new Zb,c=0,d=0;a=a.content();for(var e=0;e<a.sectionsCount();++e){var f=a.getSection(e);if("placeholderSection"==f.type()){var f=f.choices(),g=c++ +"";G(b.oa,new F(g,g));for(g=0;g<f.count();++g){var k=f.getChoice(g).textRange().text(),m=P(d++ +"_"+k);G(b.qa,new F(m,k))}}}return b};function X(a){this.b=a}w(X,S);X.prototype.a=function(a,b){X.f.a.call(this,a,b);a.c="choice";var c=b.slide().choices(),d=this.Ia(c,b.choices()),e=this.ea(c);a.g=d;a.h=[e];this.u(c)};X.prototype.u=function(a){for(var b=new H,c=0;c<a.count();++c){var d=a.getGradedChoice(c).textRange().text();G(b.choices(),new F(P(c+"_"+d),d))}return b};
X.prototype.Ia=function(a,b){for(var c="",d=0;d<b.count();++d){var e=b.getChoiceState(d);if(e.selected()){c=a.getChoiceIndex(e.gradedChoice());c=this.b?Q(c):P(c+"_"+e.gradedChoice().textRange().text());break}}return c};X.prototype.ea=function(a){for(var b="",c=0;c<a.count();++c){var d=a.getGradedChoice(c);if(d.correct()){b=this.b?Q(c):P(c+"_"+d.textRange().text());break}}return b};function fd(){}w(fd,R);fd.prototype.a=function(a,b){fd.f.a.call(this,a,b);a.c="fill-in";var c=b.answer();a.g=c;c=[b.answer()];a.h=c};function Y(a){this.b=a}w(Y,R);Y.prototype.a=function(a,b){Y.f.a.call(this,a,b);a.c="choice";var c=b.slide().choices(),d=b.choices(),e=this.Ga(c,d);a.g=e;a.h=[e];this.u(c,d)};
Y.prototype.u=function(a,b){for(var c=new Yb,d=0;d<a.count();++d){var e=a.getChoice(d),f;a:{f=e;for(var g=0;g<b.count();++g){var k=b.getChoiceState(g);if(k.choice()===f){f=k;break a}}throw Error("can't find choice state");}g=e.textRange().text();g=new F(this.da(f,d),g);G(c.choices(),g);e=e.customAnswerEnabled()?f.customAnswer():"";c.Za[d]=e}return c};
Y.prototype.Ga=function(a,b){for(var c=0;c<b.count();++c){var d=b.getChoiceState(c);if(d.selected())return c=a.getChoiceIndex(d.choice()),this.da(d,c)}return""};Y.prototype.da=function(a,b){var c=a.customizableChoice(),d=c.textRange().text(),d=b+"_"+d;c.customAnswerEnabled()&&(c=a.customAnswer(),d+=c?"_"+c:"");return this.b?Q(b):P(d)};function gd(){}w(gd,Y);function hd(){}w(hd,S);hd.prototype.a=function(a,b){hd.f.a.call(this,a,b);a.c="fill-in";var c=b.slide(),c=this.ea(c.answers()),d=b.answer();a.g=d;a.h=c};hd.prototype.ea=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getAnswer(c);b.push(d.text())}return b};function id(a){this.b=a}w(id,R);id.prototype.a=function(a,b){id.f.a.call(this,a,b);a.c=this.b?"other":"matching";var c=b.slide(),d=[],e=new H,f=b.choices();x(new U(function(a){return f.getSection(a)},f.count()),function(a,b){var c=a.choices();x(new U(function(a){return c.getChoiceState(a)},c.count()),function(a){var c=a.choice().textRange().text(),f=e.choices().count(),f=b+"[.]"+P(f+"_"+c);a.selected()&&d.push(f);G(e.choices(),new F(f,c))})});a.g=d.join("[,]");ra(a,[d.join("[,]")]);sa(this.H(c))};
id.prototype.H=function(a){var b=new Zb,c=0,d=0;a=a.content();for(var e=0;e<a.sectionsCount();++e){var f=a.getSection(e);if("placeholderSection"==f.type()){var f=f.choices(),g=c++ +"";G(b.oa,new F(g,g));for(g=0;g<f.count();++g){var k=f.getChoice(g).textRange().text(),m=P(d++ +"_"+k);G(b.qa,new F(m,k))}}}return b};function jd(a,b){this.b=a;this.ta=b}w(jd,S);jd.prototype.a=function(a,b){jd.f.a.call(this,a,b);a.c=this.b?"other":"fill-in";var c=this.Ha(b.blanks());a.g=c.ja;c=c.Sa;if(this.b||this.ta)c=[c.join(this.b?"[.]":"[,]")];a.h=c};
jd.prototype.Ha=function(a){for(var b=[],c=[],d=0;d<a.count();++d){var e=[],f=a.getSection(d),g=f.section().answers();b.push(f.answer());if(this.ta)c.push(g.getAnswer(0).text());else{for(f=0;f<g.count();++f)e.push(g.getAnswer(f).text());c.push(e.join("[,]"))}}return{ja:b.join("[,]"),Sa:c}};function kd(a){this.b=a}w(kd,S);kd.prototype.Ea=function(a,b,c){x(a,function(a,e){var d=a.label(),g=P(e+"_"+d);c.push(g);G(b.choices(),new F(g,d))})};function ld(a,b){var c=[];x(new U(function(b){return a.getPoint(b)},a.count()),function(a){c=Ra(c,Oa(b,function(b){return b.hitTest(a.x(),a.y())}))});c=Pa(c,function(a){return Na(b,a)+"_"+a.label()});Wa(c);return c}
kd.prototype.a=function(a,b){kd.f.a.call(this,a,b);a.c=this.b?"other":"choice";var c=b.slide(),d=[],e=[],d=new H,f=new U(function(a){return c.hotAreas().getHotArea(a)},c.hotAreas().count());this.Ea(f,d,e);d=ld(b.points(),f);a.g=d.join("[,]");ra(a,[e.join("[,]")])};function md(){}w(md,R);md.prototype.a=function(a,b){md.f.a.call(this,a,b);a.c="long-fill-in";var c=b.answer();a.g=c;c=[b.answer()];a.h=c};function od(a){this.v=a}w(od,S);od.prototype.v=!1;od.prototype.a=function(a,b){od.f.a.call(this,a,b);a.c="matching";var c=b.slide(),d=Sc(b.matches(),c.premises(),c.responses(),this.v),e=Sc(c.matches(),c.premises(),c.responses(),this.v);a.g=d;a.h=[e];this.H(c)};od.prototype.H=function(a){var b=new Zb;a=a.matches();for(var c=0;c<a.count();++c){var d=a.getMatch(c),e=d.premise().textRange().text(),d=d.response().textRange().text();G(b.oa,new F(P(c+"_"+e),e));G(b.qa,new F(P(c+"_"+d),d))}return b};function pd(a){this.b=a}w(pd,R);function qd(a,b){x(new U(function(b){return a.getChoice(b)},a.count()),function(a,d){var c=a.textRange().text();G(b.choices(),new F(P(d+"_"+c),c))})}pd.prototype.Fa=function(a,b,c){x(new U(v(a.getSection,a),a.count()),function(a){var d=a.answer();null!=d&&(a=Qa(new U(function(a){return b.choices().getChoice(a)},b.choices().count()),function(a){return a.description()==d.textRange().text()}),c.push(a.id()))})};
pd.prototype.a=function(a,b){pd.f.a.call(this,a,b);a.c=this.b?"other":"choice";var c=b.slide(),d=[],e=new H;qd(c.words(),e);this.Fa(b.placeholders(),e,d);a.g=d.join("[,]");a.h=[d.join("[,]")]};function rd(){}w(rd,R);rd.prototype.a=function(a,b){rd.f.a.call(this,a,b);a.c="choice";for(var c=b.slide(),d=b.statements(),e=d.count(),f=[],c=c.statements(),g=0;g<e;++g){var k=d.getStatementState(g),m=k.scale(),k=k.statement();m&&f.push(P(c.getChoiceIndex(k)+"_"+m.textRange().text()))}d=f.join("[,]");a.g=d;a.h=[d];this.u(c)};rd.prototype.u=function(a){for(var b=new H,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();G(b.choices(),new F(P(c+"_"+d),d))}return b};function sd(a){this.b=a}w(sd,X);sd.prototype.a=function(a,b){sd.f.a.call(this,a,b);if(this.b){a.c="true-false";for(var c=b.slide().choices(),d=b.choices(),e=c.getGradedChoice(0).correct()?"t":"f",f="t"==e?"f":"t",c=c.getGradedChoice(0).correct()?c.getGradedChoice(0).id():c.getGradedChoice(1).id(),g=null,k=0;2>k;++k){var m=d.getChoiceState(k);if(m.selected()){g=m.choice().id()==c?e:f;break}}a.g=g;a.h=[e]}};function td(a,b){var c="1.2"==b||"aicc"==b,d="tincan"==b;switch(a){case "essayQuestion":return new md;case "likertScaleQuestion":return new rd;case "hotspotQuestion":return new kd(c);case "fillInTheBlankQuestion":return new jd(c,d);case "wordBankQuestion":return new $c(c);case "typeInQuestion":return new hd;case "fillInTheBlankSurveyQuestion":return new Yc(c,d);case "shortAnswerQuestion":return new fd;case "whichWordQuestion":return new pd(c);case "numericQuestion":return new Xc(c);case "multipleChoiceQuestion":return new X(c);
case "multipleResponseQuestion":return new W(c);case "numericSurveyQuestion":return new bd(c);case "multipleChoiceTextQuestion":return new ed(c);case "sequenceQuestion":return new Zc(c);case "multipleChoiceTextSurveyQuestion":return new id(c);case "rankingQuestion":return new Vc(c);case "pickManyQuestion":return new V(c);case "matchingQuestion":return new od(c);case "matchingSurveyQuestion":return new cd(c);case "pickOneQuestion":return new Y(c);case "trueFalseQuestion":return new sd(c);case "yesNoQuestion":return new gd}return null}
;function Z(a,b,c){try{this.Aa=b;this.m=new Kc;this.la={};this.L=new Rc(c.slidesToView,c.slidesWeight,c.quizzes||{},c.scenarios||{},c.totalScore,c.passingScore);this.O=new uc(1E3*c.timeLimit,c.exitOnTimeout,c.showMessageOnTimeout,c.timeoutMessage);this.Z=new oc(this.O.timeLimit(),this.O.Da);var d=new pc(c.flags);this.w="never"!=c.resumeMode;var e=new rc(0,d,c.tincan.i18n,0,0,0,this.w);this.ob=new tc;this.o=sc(b,e,this.ob)}catch(f){ec()&&alert(f)}}h=Z.prototype;h.A=!1;h.ga=null;h.ka=!1;h.l=null;
h.M=null;h.pb=!1;h.K=null;h.D=null;var ud=h.ia=null;q("iSpring.LMS.create",function(a,b,c){return ud=new Z(0,b,c)},void 0);q("iSpring.LMS.instance",function(){return ud},void 0);Z.prototype.R=function(a){this.ga=a;null!=this.o?this.o.R(v(this.Bb,this),v(this.gb,this)):this.gb()};Z.prototype.initialize=Z.prototype.R;
Z.prototype.Bb=function(){var a;this.W="normal";a=null;var b,c=this.o.j.aa("cmi.suspend_data");if(c)a:{c=LZString.decompressFromBase64(c);try{b=Ab(c);break a}catch(d){}b=null}else b=null;switch(this.W){case "browse":a=null;break;case "review":b&&(a=vd(this,b));break;case "normal":this.w&&b&&(a=vd(this,b))}window.launchMode=this.W;p(a)&&(this.A=!0,this.ga&&this.ga(a))};
function vd(a,b){var c=new Kc;c.J=Ka(b,Lc,0);c.ma=Ka(b,Mc,-1);c.P=Ka(b,Nc,[]);c.na=Ka(b,Oc,null);var d={},e=Ka(b,Pc,{}),f;for(f in e){var g=e[f];d[f]=new Ec(g[Jc],g[Fc],g[Gc],g[Hc],g[Ic])}c.F=d;a.M=c;c=a.M.duration();if(a.O.Da&&c>=a.O.timeLimit())alert("You have already exceeded available time for viewing this content."),Vb(),Nb();else return a.M.na}Z.prototype.gb=function(){this.ga&&this.ga()};
Z.prototype.start=function(a){this.A&&(this.l=a,this.ka=!0,this.ob.Jb.Ta(a.presentation().title()),a.startupEvent().addHandler(this.hb,this),a.startupCompletedEvent().addHandler(this.ib,this),a.closeWindowEvent().addHandler(this.cb,this))};Z.prototype.start=Z.prototype.start;
Z.prototype.hb=function(a){this.l.startupEvent().removeHandler(this.hb,this);var b=(this.w||"review"==this.W)&&this.M?this.M.ma:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.l.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))};
Z.prototype.ib=function(a,b){this.l.startupCompletedEvent().removeHandler(this.ib,this);this.pb=!0;"resumePlayback"==a&&this.M&&(this.m=this.M);var c=this.m.duration();this.Z.N||(this.Z.rb.addHandler(this.Ma,this),this.Z.start(c));c=this.l.view().playbackController();c.slideChangeEvent().addHandler(this.Ja,this);c=c.currentSlideIndex();c==b&&this.Ja(c);this.l.stateChangedEvent().addHandler(this.jb,this)};Z.prototype.sb=function(){this.ka&&wd(this,this.w)};Z.prototype.closeLms=Z.prototype.sb;
function wd(a,b){a.ka&&(a.ka=!1,a.pb&&(a.Z.stop(),xd(a),a.l.view().playbackController().slideChangeEvent().removeHandler(a.Ja,a)),a.l.closeWindowEvent().removeHandler(a.cb,a),a.l.stateChangedEvent().removeHandler(a.jb,a),b?a.o.suspend():a.o.terminate())}h=Z.prototype;
h.Ja=function(a){if(this.K){var b=this.K;b.currentSessionChangedEvent().removeHandler(this.eb,this);(b=b.currentSession())&&yd(this,b);this.K=null}this.D&&(this.D.currentSessionChangedEvent().removeHandler(this.fb,this),null!=this.ia&&zd(this),this.D=null);b=this.l.view().playbackController();if(a in this.L.C){var c=this.K=b.quizPlayer(),d=ja(c)+"";d in this.la||(this.la[d]=!0,(d=hc(this.o.j))&&c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()}));c.currentSessionChangedEvent().addHandler(this.eb,
this);(c=c.currentSession())&&Ad(this,c)}a in this.L.Y&&(b=this.D=b.scenarioPlayer(),c=ja(b)+"",c in this.la||(this.la[c]=!0,c=hc(this.o.j),d=!b.userInfoIsLoaded(),c&&d&&b.setUserInfo(c.id(),{USER_NAME:c.name(),USER_EMAIL:c.email()})),c=b.currentSession(),null!=c&&Bd(this,c),b.currentSessionChangedEvent().addHandler(this.fb,this));b=this.l.presentation().slides().getSlide(a);"normal"==this.W&&b.title()&&b.title();b=this.m.P;0<=Na(b,a)||b.push(a);this.m.ma=a;Cd(this)};
function xd(a){var b;b=a.Z;b=b.N?oa()-b.pa+b.X:b.sa;var c;c=a.Z;c=c.N?oa()-c.pa:c.Ca;a.m.ya(b);a.o.j.i("cmi.core.session_time",Ub(c/1E3));b=a.l.persistState();a.m.na=b;b=a.o.j;a=(new Bb(void 0)).serialize(a.m.Va());a=LZString.compressToBase64(a);b.i("cmi.suspend_data",a)}function Cd(a){var b=a.L;if(0<b.G||0<b.ca){var c=Dd(a),d=b.totalScore()*c;a.o.S(c,0,b.totalScore(),d)}a.l.presentation().slides().count();a.o.T(Ed(a),Fd(a));xd(a);a.o.$()}
function Ed(a){var b=a.L,c;if(!(c=!(0<b.G||0<b.ca))&&(c=a.w)){var d;a:if(0<a.L.G&&0<a.m.P.length)d=!0;else{c=a.m.F;for(d in c)if(-1!=Na(a.m.P,parseInt(d,10))){d=!0;break a}d=!1}c=!d}return c?null:Dd(a)*b.totalScore()>=b.passingScore()}function Fd(a){var b=a.L,c=0<b.G?b.slidesToView():a.l.presentation().slides().count(),b=Ia(a.m.F)==Ia(b.C)+Ia(b.Y);return a.m.P.length>=c&&b}
function Dd(a){var b=a.L;if(!(0<b.G||0<b.ca))return 0;var c=0,d=a.m.F,e;for(e in d)var f=d[e],g=parseInt(e,10),c=c+(null!=f.Wa?f.Wa:1)*(null!=(g in b.C?b.C[g]:null)?g in b.C?b.C[g]:0:g in b.Y?b.Y[g]:0);d=0;0<b.G&&(d=a.l.presentation().slides().count(),d=a.m.P.length/d*b.slidesWeight());a=Qc(Ja(b.C))+Qc(Ja(b.Y))+b.slidesWeight();return(c+d)/a}h.fb=function(){null!=this.ia&&zd(this);var a=this.D.currentSession();Bd(this,a)};
function Bd(a,b){"normal"==a.W&&(a.ia=b,b.showTerminalSceneEvent().addHandler(a.La,a),b.onReplySelectedEvent().addHandler(a.Ka,a),b.scenario().id(),b.scenario().title(),b.completed()&&a.La())}function zd(a){var b=a.ia;a.ia=null;b.showTerminalSceneEvent().removeHandler(a.La,a);b.onReplySelectedEvent().removeHandler(a.Ka,a)}
h.La=function(){var a=this.D.currentSession(),b=a.currentSceneState().scene();null!=b&&(null!=b.speech()&&0<b.speech().length||null!=b.message()&&0<b.message().text().length)&&this.Ka();a.scenario().settings().evaluationSettings().enabled()?(b=a.currentSceneState().scene().score(),b=new Ec("scenario",b>=a.scenario().settings().evaluationSettings().passingScore(),100,b,b/100)):b=new Ec("scenario",!0);var c=this.l.view().playbackController().currentSlideIndex();this.m.F[c+""]=b;b=new ta;b.duration=
a.duration();b.ub=0;b.maxScore=100;b.awardedScore=a.currentSceneState().scene().score();a.scenario().settings().evaluationSettings().enabled()&&(b.va=b.awardedScore>=a.scenario().settings().evaluationSettings().passingScore());a.scenario().id();a.scenario().title();Cd(this)};
h.Ka=function(a){var b=this.D.currentSession(),c=b.currentSceneState().scene();null!=c&&(a=(new Ac(c,"1.2"==this.Aa,a)).create(),x(a,function(a){if("tincan"==this.Aa||"choice"==a.type()){var c="/scenarios/"+b.scenario().id(),d=c+"/scenes/"+a.id(),g;g="choice"==a.type()?Sb:Qb;this.o.ua(c,d,g,a)}},this))};
function Ad(a,b){"normal"==a.W&&(b.quizStateChangeEvent().addHandler(a.lb,a),b.slidePoolState().forEach(function(b){var c=b.slide().type();jc(c)&&b.submitEvent().addHandler(a.kb,a)}),b.quiz().id(),b.quiz().title())}function yd(a,b){b.quizStateChangeEvent().removeHandler(a.lb,a);b.slidePoolState().forEach(function(b){var c=b.slide().type();jc(c)&&b.submitEvent().removeHandler(a.kb,a)})}h.eb=function(a,b){b&&yd(this,b);Ad(this,a)};
h.lb=function(a){if("inProgress"==a){a=this.K.currentSession();var b;b="graded"==a.quiz().type()?new Ec("quiz",a.quizPassed(),a.maxScore(),a.awardedScore(),a.awardedPercent()):new Ec("quiz",!0);var c=this.l.view().playbackController().currentSlideIndex();this.m.F[c+""]=b;b=new ta;b.duration=a.testDuration();"graded"==a.quiz().type()&&(b.ub=0,b.maxScore=a.maxScore(),b.awardedScore=a.awardedScore(),b.va=a.quizPassed());a.quiz().id();a.quiz().title();Cd(this)}};
h.kb=function(a){var b=this.K.currentSession();if(a.initiated()&&(a=td(a.slide().type(),this.Aa).create(a))){var b="/quizzes/"+b.quiz().id(),c=b+"/questions/"+a.id();this.o.ua(b,c,Rb,a)}};h.cb=function(a){a.preventAction();this.sb()};h.Ma=function(){this.O.Hb&&alert(this.O.message());this.O.Da&&wd(this,!1)};h.jb=function(a){a.actionPrevented()||(a.preventAction(),xd(this))};})();
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}
