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