(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={Yb:!0},ha={};try{ha.__proto__=fa;ea=ha.Yb;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.hc=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.hc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Rc=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};function 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 za(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)?za(c,!0):ya(b,!0);return!0};va=function(a){try{throw Error(a.message);}catch(b){za(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 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 D(a){this.ub=this.A=null;this.Ob=void 0===a?null:a}m(D,lb);h=D.prototype;h.$b=function(){return this.Ob};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.bc=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){za(g,!0)}}}this.ub&&this.ub.forEach(function(a){a.wa.apply(a,b instanceof Array?b:ba(l(b)))})};D.prototype.dispatch=D.prototype.wa;
D.prototype.hasHandler=D.prototype.bc;D.prototype.removeHandler=D.prototype.removeHandler;D.prototype.addHandler=D.prototype.addHandler;D.prototype.eventOwner=D.prototype.$b;function F(a){this.Oa=a}F.prototype.ac=function(a,b,c){c=this.Oa.hasOwnProperty(a)?this.Oa[a]:c;if(p(c)){if(p(b)){a=this.Ib;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};F.prototype.messages=function(){return this.Oa};F.prototype.Ib=function(a){return"%"+a.toUpperCase()+"%"};F.prototype.getMessage=F.prototype.ac;function qb(a,b,c,d){this.Jb=new F(b);this.Fb=c;this.B=d}qb.prototype.i18n=function(){return this.Jb};function rb(){this.Vb=new D};var G={Lc:"slidePool",kc:"authorizationForm",rc:"informationSlide",sc:"introSlide",Hc:"resultSlide",qc:"hotspotQuestion",tc:"likertScaleQuestion",Pc:"wordBankQuestion",mc:"essayQuestion",Nc:"typeInQuestion",Kc:"shortAnswerQuestion",nc:"fillInTheBlankQuestion",oc:"fillInTheBlankSurveyQuestion",Bc:"numericQuestion",Cc:"numericSurveyQuestion",Jc:"sequenceQuestion",Gc:"rankingQuestion",Oc:"whichWordQuestion",xc:"multipleChoiceTextQuestion",yc:"multipleChoiceTextSurveyQuestion",wc:"multipleChoiceQuestion",
zc:"multipleResponseQuestion",Ec:"pickOneQuestion",Dc:"pickManyQuestion",Mc:"trueFalseQuestion",Qc:"yesNoQuestion",uc:"matchingQuestion",vc:"matchingSurveyQuestion"};r("ispring.quiz.slides.SlideType",G,void 0);r("SLIDE_POOL","slidePool",G);r("INFORMATION_SLIDE","informationSlide",G);r("INTRO_SLIDE","introSlide",G);r("HOTSPOT_QUESTION","hotspotQuestion",G);r("LIKERT_SCALE_QUESTION","likertScaleQuestion",G);r("WORD_BANK_QUESTION","wordBankQuestion",G);r("RESULT_SLIDE","resultSlide",G);
r("ESSAY_QUESTION","essayQuestion",G);r("TYPE_IN_QUESTION","typeInQuestion",G);r("SHORT_ANSWER_QUESTION","shortAnswerQuestion",G);r("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",G);r("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",G);r("NUMERIC_QUESTION","numericQuestion",G);r("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",G);r("SEQUENCE_QUESTION","sequenceQuestion",G);r("RANKING_QUESTION","rankingQuestion",G);r("WHICH_WORD_QUESTION","whichWordQuestion",G);
r("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",G);r("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",G);r("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",G);r("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",G);r("PICK_ONE_QUESTION","pickOneQuestion",G);r("PICK_MANY_QUESTION","pickManyQuestion",G);r("TRUE_FALSE_QUESTION","trueFalseQuestion",G);r("YES_NO_QUESTION","yesNoQuestion",G);r("MATCHING_QUESTION","matchingQuestion",G);
r("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",G);function H(a,b,c,d,e,f){this.type=b;this.Eb=a;this.dc=c;this.maxScore=p(d)?d:null;this.ec=p(e)?e:null;this.cb=p(f)?f:null}H.prototype.bb=function(){var a={};a[sb]=this.Eb;a[tb]=this.dc;a[ub]=this.maxScore;a[vb]=this.ec;a[wb]=this.cb;a[xb]=this.type;return a};var sb="e",tb="p",ub="m",vb="r",wb="s",xb="t";function yb(a){this.ka=a;this.P=[];this.ta=[];this.G={}}h=yb.prototype;h.na=-1;h.J=0;h.oa=null;h.duration=function(){return this.J};h.Ba=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.ka;a[Eb]=this.oa;var b={},c;for(c in this.G)b[c]=this.G[c].bb();a[Fb]=b;return a};var Ab="l",Bb="v",Cb="vh",Db="V",zb="d",Eb="p",Fb="q";function Gb(a){for(var b=0,c=0;c<a.length;++c)b+=a[c];return b};function Hb(a,b,c,d,e,f){this.M=a;this.Ub=b;this.Xb=e;this.Pb=f;this.D={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.D[b[0]]=e,0<e&&++this.ba;this.W={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.W[c[0]]=b,0<b&&++this.ba}h=Hb.prototype;h.ba=0;h.slidesWeight=function(){return 0<this.M?this.Ub:0};h.slidesToView=function(){return this.M};h.totalScore=function(){return this.Xb};h.passingScore=function(){return this.Pb};function Ib(a,b,c,d){this.Wb=a;this.Ia=b;this.Tb=c;this.Lb=d}Ib.prototype.timeLimit=function(){return this.Wb};Ib.prototype.message=function(){return this.Lb};function Jb(a,b){this.Za=a;this.zb=b;this.Ab=new D}h=Jb.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.zb||(this.Ya=!0,this.qa=ra(),a||(this.ra=setTimeout(w(this.Sa,this),this.Za-this.V))))};h.Sa=function(){this.zb&&(this.stop(),this.sa=this.Za);this.Ab.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 Kb(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 Lb(a,b){this.fa=a;this.Mb=b;this.Hb=""}Lb.prototype.id=function(){return this.fa};Lb.prototype.name=function(){return this.Mb};Lb.prototype.email=function(){return this.Hb};function Mb(a){this.fa=a}h=Mb.prototype;h.I="";h.s=null;h.u=null;h.ha="unanticipated";h.vb=0;h.Da=null;h.J=null;h.$a=null;h.w=null;h.id=function(){return this.fa};h.type=function(){return this.h};h.description=function(){return this.I};h.hb=function(){return this.s};function Nb(a,b){a.u=b}h.result=function(){return this.ha};h.score=function(){return this.vb};h.$=function(a){this.vb=a};h.awardedScore=function(){return this.Da};h.duration=function(){return this.J};h.Ba=function(a){this.J=a};h.ib=function(){return this.$a};
h.va=function(){return this.w};function Ob(a,b){a.w=b};function I(a){a=Ha(a);return a=a.replace(/[^\w-]/g,"_")}function J(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};function Pb(a,b){this.i=a;this.Wa=b};function K(a){var b=a.ic,c=a.slideIndex;this.g=a.fc;this.Bb=b;this.m=!1;this.xb=c}K.prototype.create=function(a){if(!a.submitted())return null;var b=(p(this.xb)?"Slide"+this.xb+"_":"")+"Q_"+a.slide().id();b=new Mb(I(b));this.a(b,a);return b};
K.prototype.a=function(a,b){var c=b.slide();c=L(this,c.description(),!0);a.I=c;b.hasBeenVisited()&&(a.Ba(b.visitDuration()),c=b.firstVisitTime(),a.$a=c);if(c=b.slide().settings().evaluation()){if(a.$(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.ha=d}}else a.ha="neutral";this.m=!!c};function Qb(a,b){return b.join(a.g?",":"[,]")}
function M(a,b,c){return a.g?J(b):I(b+"_"+c)}function L(a,b,c){return b.textWithEquations(a.g||!c?"Equation":"")};function O(a,b){this.fa=a;this.I=b}O.prototype.id=function(){return this.fa};O.prototype.description=function(){return this.I};function P(){this.c=[]}P.prototype.count=function(){return this.c.length};function Q(a,b){a.c.push(b)}P.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.c[a]};function Rb(){this.Xa=new P;this.ja=new P};function Sb(a){K.apply(this,arguments)}m(Sb,K);h=Sb.prototype;h.a=function(a,b){K.prototype.a.call(this,a,b);a.h="matching";var c=b.contentState(),d=b.slide().content(),e=this.Ua(d);b=e.va;var f=e.premises,g=e.responses;e=e.cc;c=this.La(c.chainsStates(),f,g,e);a.s=c;this.m&&(c=[this.m?this.Ma(d.chains(),f,g,e):c],a.u=c);a.w=b};
h.Ua=function(a){var b=new Rb,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();Q(b.Xa,new O(I(c.indexOf(e)+"_"+g),g))}f&&0>d.indexOf(f)&&(d.push(f),e=f.name(),Q(b.ja,new O(I(d.indexOf(f)+"_"+e),e)))}a=this.g?J(d.length,!1):d.length+"_None";Q(b.ja,new O(a,"None"));return{va:b,premises:c,responses:d,cc:a}};
h.La=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.ca(e)};
h.Ma=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.ca(e)};h.ea=function(a,b,c){this.g?b=J(b,c):(a=a.name(),a=I(a),b=b+"_"+a);return b};h.T=function(a,b,c,d,e){a=this.ea(a,c.indexOf(a),!0);b=b?this.ea(b,d.indexOf(b),!1):e;d=this.g?".":"[.]";return I(a)+d+I(b)};h.ca=function(a){return a.join(this.g?",":"[,]")};function Tb(a){K.apply(this,arguments)}m(Tb,K);Tb.prototype.a=function(a,b){K.prototype.a.call(this,a,b);a.h="long-fill-in";b=b.contentState().response();a.s=b};function Ub(a){K.apply(this,arguments)}m(Ub,K);Ub.prototype.a=function(a,b){K.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.Bb?d.push(e[0]):d.push(e.join("[,]")));a.s=b.join("[,]");if(this.m){b=d;if(this.g||this.Bb)b=[b.join(this.g?"[.]":"[,]")];a.u=b}};function R(){this.c=new P};function Vb(a){K.apply(this,arguments)}m(Vb,K);Vb.prototype.a=function(a,b){K.prototype.a.call(this,a,b);a.h="choice";var c=[],d=[],e=new R;this.Ja(b.contentState(),e,d,c);a.s=Qb(this,c);this.m&&(a.u=[Qb(this,d)]);a.w=e};
Vb.prototype.Ja=function(a,b,c,d){var e=this;a.areas().forEach(function(f,g){var k=f.area(),t=k.label().text();g=M(e,g,t);k.correct()&&c.push(g);a.areaSelected(f)&&d.push(g);Q(b.c,new O(g,t))});for(var f=a.areas().length,g=f;g<f+a.freePointsCount();++g){var k=M(this,g,"Untitled_Spot");d.push(k)}};function Wb(a){K.apply(this,arguments)}m(Wb,K);Wb.prototype.a=function(a,b){var c=this;K.prototype.a.call(this,a,b);a.h="choice";var d=[],e=new R;b.contentState().statementsStates().forEach(function(a,b){var f=a.statement().text();Q(e.c,new O(M(c,b,f),f));(a=a.selectedScale())&&d.push(I(b+"_"+a.text()))});a.s=Qb(this,d);a.w=e};function Xb(a){K.apply(this,arguments)}m(Xb,K);h=Xb.prototype;h.a=function(a,b){K.prototype.a.call(this,a,b);a.h="matching";var c=b.contentState(),d=b.slide().content(),e=this.Ua(d);b=e.va;var f=e.premises;e=e.responses;c=this.La(c.matches(),f,e,this.g);a.s=c;this.m&&(c=[this.Ma(d.matches(),this.g)],a.u=c);a.w=b};
h.Ua=function(a){for(var b=new Rb,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=L(this,g.premise().textRange(),!1);g=L(this,g.response().textRange(),!1);Q(b.Xa,new O(I(f+"_"+k),k));Q(b.ja,new O(I(f+"_"+g),g))}a=a.distractors();for(e=0;e<a.count();++e)f=a.getChoice(e),d.push(f),f=L(this,f.textRange(),!1),Q(b.ja,new O(I(e+"_"+f),f));return{va:b,premises:c,responses:d}};
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.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.ca(e,d)};h.Ma=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.ca(c,b)};h.ea=function(a,b,c,d){return c?J(b,d):b+"_"+L(this,a.textRange(),!1)};
h.T=function(a,b,c,d,e){a=this.ea(a,b,e,!0);c=this.ea(c,d,e,!1);e=e?".":"[.]";return I(a)+e+I(c)};h.ca=function(a,b){return a.join(b?",":"[,]")};function Yb(){this.c=new P;this.jb=[]}sa(Yb,R);function S(a){K.apply(this,arguments)}m(S,K);S.prototype.a=function(a,b){K.prototype.a.call(this,a,b);a.h="choice";var c=b.slide();b=b.contentState();var d=c.content();c=this.Na(c.content(),b);a.s=c;if(this.m){a:{for(c=0;c<d.count();++c){var e=d.getChoice(c);if(e.correct()){c=M(this,c,L(this,e.textRange(),!1));break a}}c=""}a.u=[c]}b=this.da(d,b);a.w=b};
S.prototype.da=function(a,b){var c=new R;if(this.kb()){c=new Yb;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.jb[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=L(this,d.textRange(),!1),Q(c.c,new O(I(b+"_"+d),d));return c};S.prototype.kb=function(){return!this.m};
S.prototype.Na=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()),M(this,a,L(this,d.choice().textRange(),!1))}return""};function Zb(a){K.apply(this,arguments)}m(Zb,K);Zb.prototype.a=function(a,b){K.prototype.a.call(this,a,b);a.h=this.g?"other":"matching";var c=[],d=[],e=new R;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+"[.]"+I(k+"_"+a);a==g&&d.push(k);a==f&&c.push(k);Q(e.c,new O(k,a))})});a.s=c.join("[,]");this.m&&Nb(a,[d.join("[,]")]);Ob(a,$b(b.slide().content()))};
function $b(a){var b=new Rb,c=0;Ba(a.placeholders(),function(a,e){e+="";Q(b.Xa,new O(e,e));a.values.forEach(function(a){a=a.text();var d=c++ +"_"+a;d=I(d);Q(b.ja,new O(d,a))})});return b};function T(a){K.apply(this,arguments)}m(T,K);T.prototype.a=function(a,b){K.prototype.a.call(this,a,b);a.h="choice";var c=b.slide().content(),d=this.Na(c,b.contentState());a.s=d;this.m&&(d=[this.Ka(c)],a.u=d);b=this.da(c,b.contentState());a.w=b};
T.prototype.da=function(a,b){var c=new R;if(!this.m){c=new Yb;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.jb[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=L(this,d.textRange(),!1),Q(c.c,new O(I(b+"_"+d),d));return c};
T.prototype.Na=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.choice(),g=L(this,f.textRange(),!1);e.selected()&&(e=a.getChoiceIndex(f),g=M(this,e,g),c.push(g))}return Qb(this,c)};T.prototype.Ka=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getChoice(c);d.correct()&&(d=M(this,c,L(this,d.textRange(),!1)),b.push(d))}return Qb(this,b)};function ac(a){K.apply(this,arguments)}m(ac,K);
ac.prototype.a=function(a,b){K.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.s=b;if(this.m){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.u=[e.join(d)]}};function bc(a){K.apply(this,arguments)}m(bc,K);bc.prototype.a=function(a,b){K.prototype.a.call(this,a,b);a.h="sequencing";var c=b.slide().content();b=cc(this,c,b.contentState().studentResponse(),this.g);a.s=b;this.m&&(b=[cc(this,c,c,this.g)],a.u=b);c=this.da(c);a.w=c};bc.prototype.da=function(a){for(var b=new R,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();Q(b.c,new O(I(c+"_"+d),d))}return b};
function cc(a,b,c,d){var e=d?",":"[,]",f=[];c.forEach(function(c){var e=L(a,c.textRange(),!1);c=b.getChoiceIndex(c);f.push(I(d?J(c,!0):c+"_"+e))});return f.join(e)};function dc(a){S.apply(this,arguments)}m(dc,S);dc.prototype.a=function(a,b){S.prototype.a.call(this,a,b);if(this.g&&this.m){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.s=f;a.u=[d]}};dc.prototype.kb=function(){return!1};function ec(a){K.apply(this,arguments)}m(ec,K);ec.prototype.a=function(a,b){K.prototype.a.call(this,a,b);a.h="fill-in";var c=b.slide();b=b.contentState().response().text();a.s=b;this.m&&(c=this.Ka(c.content()),a.u=c)};ec.prototype.Ka=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){K.apply(this,arguments)}m(gc,K);gc.prototype.a=function(a,b){K.prototype.a.call(this,a,b);a.h=this.g?"other":"choice";var c=b.slide().content(),d=[],e=new R;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=I(g+"_"+f);Q(e.c,new O(g,f))}b=b.contentState().placeholders();this.m&&(c=[],this.Ja(b,e,c),a.u=[c.join("[,]")]);hc(b,e,d);a.s=d.join("[,]");a.w=e};
gc.prototype.Ja=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=I(e+"_"+d);c.push(e);Q(b.c,new O(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=Ub,U.WordBank=gc,U.TypeIn=ec,U.Numeric=ac,U.MultipleChoice=S,U.MultipleResponse=T,U.MultipleChoiceText=Zb,U.Sequence=bc,U.Matching=Xb,U.TrueFalse=dc,U.Essay=Tb,U.Hotspot=Vb,U.LikertScale=Wb,U.DND=Sb,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.Tc&&(b=b.Sc());"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.za=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.za?a.za.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.za?a.za.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.Gb=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.ya>c){c=a.substr(c,f.ya-c);var g=yc("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||Ec(g))+b;c=f.ya}if(g=Zc(a,["</p>","</p >"],c)){f=g.ya+g.gc.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.gc=a;this.ya=b};function ad(a,b,c,d){this.Wa=a;this.Rb=b;this.Sb=c;this.Qb=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.Rb,d=this.Qb,e=new Mb(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 Mb(c.id()+"_"+a),a.h="other",c=Yc(c.speech()),a.I=c,a.ha="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 N=f.getReply(E);null!=d&&N==d&&(k=E);a=Math.max(a,N.score());
t.push(dd(this,E,bd(N)))}null!=d&&(c=dd(this,k,bd(d)),g=Math.max(g,d.score()));d=f;f=new R;for(k=0;k<d.count();++k)E=bd(d.getReply(k)),Q(f.c,new O(I(k+"_"+E),E));e.w=f;e.s=c;e.u=t;this.Wa.scenario().settings().evaluationSettings().enabled()&&(e.$(a),e.Da=g);e.ha="neutral";cd(this,e);b.push(e);return b};function dd(a,b,c){c=I(b+"_"+c);b=J(b);return a.Sb?b:c}function cd(a,b){null!=a.Va&&(b.$a=new Date(a.Va),b.Ba(ra()-a.Va))};function ed(){function a(a){try{for(var b=0;255>b;++b){if(a.API_1484_11)return a.API_1484_11;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){return"PT"+Math.floor(a/3600)+"H"+Math.floor(a%3600/60)+"M"+Math.floor(a%60)+"S"}function gd(a){return 10>a?"0"+a:a}
function hd(){if(id)if(id){var a=new Vc("closeWindow");if(id){var b=a.h,c=a.Gb;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,
N=E?c[f+2]:0,pd=k>>2;k=(k&3)<<4|t>>4;t=(t&15)<<2|N>>6;N&=63;E||(N=64,g||(t=64));e.push(d[pd],d[k],d[t],d[N])}c=e.join("")}Wc("isplayer://"+b+"/"+a+"/"+c)}}else try{jd||(window.open("","_self",""),window.close())}catch(Ld){}else try{jd||(window.Aa=window,b=kd(),b==window.top?(window.open("","_self",""),window.close()):ld(b))}catch(Ld){ld(window.top)}}function ld(a){if(a&&a.Aa){var b=document.createElement("a");b.href="data/goodbye.html";a.Aa.location.replace(b.href)}}
function kd(){var a=window;if(a.Aa)return a;for(var b=0;a!=window.top&&100>b++;){if(a.Aa)return a;a=a.parent}console.log("Unable to locate content root");return null}function md(){try{var a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(b){}};var nd={Ic:"resumePlayback",pc:"gotoSlide",lc:"delayStartup"};r("ispring.presenter.player.startup.PresentationStartup.Action",nd,void 0);r("RESUME_PLAYBACK","resumePlayback",nd);r("GOTO_SLIDE","gotoSlide",nd);r("DELAY_STARTUP","delayStartup",nd);var od={Fc:"prompt",jc:"always",Ac:"never"};r("ispring.presenter.presentation.settings.PresentationResumeMode",od,void 0);r("PROMPT_TO_RESUME","prompt",od);r("ALWAYS_RESUME","always",od);r("NEVER_RESUME","never",od);(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 qd,rd=Xc().user_agent;qd=rd?rd:z||"";Xc();Xc();var sd=-1!=qd.toLowerCase().indexOf("chrome"),jd=-1==qd.toLowerCase().indexOf("windows phone")&&-1!=qd.toLowerCase().indexOf("android")&&!sd&&!Hc&&!$a,id=-1!=qd.indexOf("ismobile"),td=document.createElement("audio"),ud=td.play&&td.play();ud&&ud.then(function(){td.pause()},function(){});Xc();Xc();
function vd(){return 1==window._ispringDebug||"1"==Xc().isdebug}if(A("Windows")){var wd=z,X;if(A("Windows")){X=/Windows (?:NT|Phone) ([0-9.]+)/;var xd=X.exec(wd)}else Za()||A("iPad")||A("iPod")?(X=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,(xd=X.exec(wd))&&xd[1].replace(/_/g,".")):A("Macintosh")?(X=/Mac OS X ([0-9_.]+)/,(xd=X.exec(wd))&&xd[1].replace(/_/g,".")):A("Android")?(X=/Android\s+([^\);]+)(\)|;)/,xd=X.exec(wd)):A("CrOS")&&(X=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,xd=X.exec(wd))}
setTimeout(function(){xa=vd},0);function Y(a,b){try{this.Ca=a;this.ma={};this.Fa=null;this.K=new Hb(b.slidesToView,b.slidesWeight,b.quizzes||{},b.scenarios||{},b.totalScore,b.passingScore);this.N=new Ib(1E3*b.timeLimit,b.exitOnTimeout,b.showMessageOnTimeout,b.timeoutMessage);this.X=new Jb(this.N.timeLimit(),this.N.Ia);this.B="never"!=b.resumeMode;var c=new qb("ispring://presentations/"+encodeURIComponent(b.presentationId),b.tincan.i18n,b.scorm2004?b.scorm2004.edition:"",this.B);this.wb=new rb;this.i=Kb(a,c,this.wb)}catch(d){vd()&&
alert(d)}}h=Y.prototype;h.C=!1;h.ga=null;h.H=!1;h.o=null;h.L=null;h.yb=!1;h.v=null;h.F=null;var yd=h.ia=null;r("iSpring.LMS.create",function(a,b,c){x(!yd);return yd=new Y(b,c)},void 0);r("iSpring.LMS.instance",function(){return x(yd)},void 0);Y.prototype.S=function(a){this.ga=a;null!=this.i?this.i.S(w(this.Nb,this),w(this.ob,this)):this.ob()};Y.prototype.initialize=Y.prototype.S;
Y.prototype.Nb=function(){this.U=this.i.xa();var a=null;var b=this.i.j.R("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=zd(this,c));break;case "normal":this.B&&c&&(a=zd(this,c))}window.launchMode=this.U;p(a)&&(this.C=!0,this.ga&&this.ga(a))};
function zd(a,b){var c=new yb(B(b,Db,[]));c.J=B(b,zb,0);c.na=B(b,Ab,-1);c.P=B(b,Bb,[]);c.ta=B(b,Cb,[]);c.oa=B(b,Eb,null);var d={};b=B(b,Fb,{});for(var e in b){var f=b[e];d[e]=new H(f[sb],f[xb],f[tb],f[ub],f[vb],f[wb])}c.G=d;a.L=c;c=a.L.duration();if(a.N.Ia&&c>=a.N.timeLimit())alert("You have already exceeded available time for viewing this content."),md(),hd();else return a.L.oa}Y.prototype.ob=function(){this.ga&&this.ga()};
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.f=new yb(c);this.o=a;this.H=!0;this.wb.Vb.wa(a.presentation().title());a.startupEvent().addHandler(this.pb,this);a.startupCompletedEvent().addHandler(this.qb,this);a.closeWindowEvent().addHandler(this.lb,this)}};Y.prototype.start=Y.prototype.start;
Y.prototype.pb=function(a){this.o.startupEvent().removeHandler(this.pb,this);var b=(this.B||"review"==this.U)&&this.L?this.L.na:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.o.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))};
Y.prototype.qb=function(a,b){this.o.startupCompletedEvent().removeHandler(this.qb,this);this.yb=!0;"resumePlayback"==a&&this.L&&(this.f=this.L);a=this.f.duration();this.X.started()||(this.X.Ab.addHandler(this.Sa,this),this.X.start(a));a=this.o.view().playbackController();a.slideChangeEvent().addHandler(this.Pa,this);a=a.currentSlideIndex();a==b&&this.Pa(a);this.o.stateChangedEvent().addHandler(this.rb,this)};Y.prototype.Cb=function(){this.H&&Ad(this,this.B)};Y.prototype.closeLms=Y.prototype.Cb;
function Ad(a,b){a.H&&(a.H=!1,a.yb&&(a.X.stop(),Bd(a),a.o.view().playbackController().slideChangeEvent().removeHandler(a.Pa,a)),a.o.closeWindowEvent().removeHandler(a.lb,a),a.o.stateChangedEvent().removeHandler(a.rb,a),b?a.i.suspend():a.i.terminate())}h=Y.prototype;
h.Pa=function(a){if(this.v){var b=this.v;b.currentSessionChangedEvent().removeHandler(this.mb,this);(b=b.currentSession())&&Cd(this,b);this.v=null}this.F&&(this.F.currentSessionChangedEvent().removeHandler(this.nb,this),null!=this.ia&&Dd(this),this.F=null);b=this.o.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=Ed(this.i.j))&&c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()}));c.currentSessionChangedEvent().addHandler(this.mb,
this);(c=c.currentSession())&&Fd(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=Ed(this.i.j),d=!b.userInfoIsLoaded(),c&&d&&b.setUserInfo(c.id(),{USER_NAME:c.name(),USER_EMAIL:c.email()})),c=b.currentSession(),null!=c&&Gd(this,c),b.currentSessionChangedEvent().addHandler(this.nb,this));b=this.o.presentation().slides().getSlide(a);"normal"==this.U&&b.title()&&b.title();b=this.f;0<=b.ka.indexOf(a)?(b=b.P,0<=y(b,a)||b.push(a)):(b=b.ta,0<=y(b,
a)||b.push(a));this.f.na=a;Hd(this)};function Bd(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.f.Ba(b);a.i.j.b("cmi.session_time",fd(c/1E3));b=a.o.persistState();a.f.oa=b;b=a.i.j;a=(new Nc(void 0)).serialize(a.f.bb());a=LZString.compressToBase64(a);a.length<=("2"==b.l.Ha?4E3:64E3)&&b.b("cmi.suspend_data",a)}
function Hd(a){var b=a.K;if(0<b.M||0<b.ba){var c=Id(a),d=b.totalScore()*c;a.i.$(c,0,b.totalScore(),d)}a.i.fb(a.f.P.length/a.f.ka.length);a.i.gb(Jd(a),Kd(a));Bd(a);a.i.Z()}function Jd(a){var b=a.K,c;if(!(c=!(0<b.M||0<b.ba))&&(c=a.B)){a:if(c=a.f,c=c.P.concat(c.ta),0<a.K.M&&0<c.length)var d=!0;else{var e=a.f.G;for(d in e){var f=parseInt(d,10);if(e[d].Eb&&-1!=y(c,f)){d=!0;break a}}d=!1}c=!d}return c?null:Id(a)*b.totalScore()>=b.passingScore()}
function Kd(a){var b=a.K,c=a.f.P,d=a.f.ka,e=a.f.G;a=a.o.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 Id(a){var b=a.K;if(!(0<b.M||0<b.ba))return 0;var c=0,d=a.f.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.f.P.length/a.f.ka.length*b.slidesWeight());a=Gb(Wa(b.D))+Gb(Wa(b.W))+b.slidesWeight();return(c+d)/a}h.nb=function(){null!=this.ia&&Dd(this);var a=this.F.currentSession();Gd(this,a)};
function Gd(a,b){"normal"==a.U&&(a.ia=b,b.showTerminalSceneEvent().addHandler(a.Ra,a),b.onReplySelectedEvent().addHandler(a.Qa,a),b.scenario().id(),b.scenario().title(),b.completed()&&a.Ra())}function Dd(a){var b=a.ia;a.ia=null;b.showTerminalSceneEvent().removeHandler(a.Ra,a);b.onReplySelectedEvent().removeHandler(a.Qa,a)}
h.Ra=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.Qa();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 H(!0,"scenario",a.scenarioPassed(),b,c,d)}else b=new H(!1,"scenario",!0);c=this.o.view().playbackController().currentSlideIndex();this.f.G[c+""]=b;a.duration();a.scenario().settings().evaluationSettings().enabled()&&
(a.maxScore(),a.userScore(),a.scenarioPassed());a.scenario().id();a.scenario().title();Hd(this)};h.Qa=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.i.ua(c,a)}},this))};
function Fd(a,b){if("normal"==a.U){b.sessionModeChangedEvent().addHandler(a.tb,a);var c=b.slidePoolState();c=l(c.questions());for(var d=c.next();!d.done;d=c.next())d.value.submittedEvent().addHandler(a.sb,a);a.v.id();b.quiz().title()}}function Cd(a,b){b.sessionModeChangedEvent().removeHandler(a.tb,a);b=b.slidePoolState();b=l(b.questions());for(var c=b.next();!c.done;c=b.next())c.value.submittedEvent().removeHandler(a.sb,a)}
h.mb=function(){var a=this.v.currentSession();this.Fa&&Cd(this,this.Fa);(this.Fa=a)&&Fd(this,a)};
h.tb=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 H(!0,"quiz",b.quizPassed(),c,d,e)}else b=new H(!1,"quiz",!0);c=this.o.view().playbackController().currentSlideIndex();this.f.G[c+""]=b;a.quizDuration();if(b=a.evaluation())b.maxScore(),b.awardedScore(),b.quizPassed(),b=this.v.currentSession(),x(b),(new Pb(this.i,b)).Wa.settings();this.v.id();a.quiz().title();Hd(this)}};
h.sb=function(a){var b=this.v.currentSession();x(b);if(a.initiated()){b=this.o.view().playbackController().currentSlideIndex()+1;var c=a.slide().type(),d=this.Ca;if(a=(new ic[c]({fc:"1.2"==d||"aicc"==d,ic:"tincan"==d,slideIndex:b})).create(a))b="/quizzes/"+this.v.id(),a.id(),this.i.ua(b,a)}};h.lb=function(a){x(this.H);a.preventAction();this.Cb()};h.Sa=function(){x(this.H);this.N.Tb&&alert(this.N.message());this.N.Ia&&Ad(this,!1)};
h.rb=function(a){x(this.H);a.actionPrevented()||(a.preventAction(),Bd(this))};function Md(a,b,c){this.aa=a;this.Ha=b;this.Ta=!1;this.Ea=0;this.B=c}h=Md.prototype;h.S=function(){try{return"true"==this.aa.Initialize("")}catch(a){}return!1};h.terminate=function(a){this.b("cmi.exit",a?this.Ta?"":"suspend":"normal");this.b("adl.nav.request","exitAll");this.Z();try{return"true"==this.aa.Terminate("")}catch(b){}return!1};h.Z=function(){0==this.Ea&&this.b("cmi.exit",this.B?this.Ta?"":"suspend":"normal");try{var a="true"==this.aa.Commit("");this.Ea+=1;return a}catch(b){}return!1};
h.R=function(a){try{return this.aa.GetValue(a)}catch(b){}return""};h.b=function(a,b){if("number"==typeof b){var c;(c=p(c)?c:!0)?b=parseFloat(b.toFixed(7))+"":(c=Math.pow(10,7),b=Math.floor(b*c)/c+"");b+=""}try{return"true"==this.aa.SetValue(a,b)}catch(d){}return!1};h.eb=function(a){this.Ta=a};var Z={id:"id",type:"type",score:"weighting",Zb:"correct_responses.%INDEX%.pattern",hb:"learner_response",description:"description",result:"result",duration:"latency",ib:"timestamp"};r("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){var d=null.Kb[a];if(null==d)return"";delete null.Kb[a];Gc(function(){if(b)d.onload(c);else d.onerror()},10);return"ok"},void 0);function Ed(a){return new Lb(a.R("cmi.learner_id"),a.R("cmi.learner_name"))};function Nd(a,b){var c=ed();this.l=c?new Md(c,a,b):null;this.C=!1}h=Nd.prototype;h.S=function(){return this.C?!0:this.C=null!=this.l?this.l.S():!1};h.terminate=function(a){return null!=this.l?this.l.terminate(a):!1};h.Z=function(){return null!=this.l?this.l.Z():!1};h.R=function(a){return null!=this.l?this.l.R(a):""};h.b=function(a,b){return null!=this.l?this.l.b(a,b):!1};
h.$=function(a,b,c,d){null!=d||(d=0);this.b("cmi.score.raw",a);this.b("cmi.score.min",b);this.b("cmi.score.max",c);this.b("cmi.score.scaled",d)};h.fb=function(a){this.b("cmi.progress_measure",a)};h.xa=function(){return null!=this.l?this.l.R("cmi.mode"):"normal"};h.gb=function(a,b){this.b("cmi.success_status",null===a?"unknown":a?"passed":"failed");this.b("cmi.completion_status",null===b?"unknown":b?"completed":"incomplete")};h.eb=function(a){this.l.eb(a)};
h.ua=function(a){var b=parseInt(this.R("cmi.interactions._count"),10);if(!(0>b)){b="cmi.interactions."+b+".";this.b(b+Z.id,a.id());this.b(b+Z.type,a.type());this.b(b+Z.score,a.score());for(var c=a.u||[],d=0;d<c.length;++d){var e=Z.Zb.replace("%INDEX%",d);this.b(b+e,c[d])}c=a.hb();null!=c&&this.b(b+Z.hb,c);this.b(b+Z.result,a.result());this.b(b+Z.description,a.description());c=a.duration();null===c||this.b(b+Z.duration,fd(c/1E3));a=a.ib();null!==a&&("number"==typeof a&&(a=new Date(a)),this.b(b+Z.ib,
a.getUTCFullYear()+"-"+gd(a.getUTCMonth()+1)+"-"+gd(a.getUTCDate())+"T"+gd(a.getUTCHours())+":"+gd(a.getUTCMinutes())+":"+gd(a.getUTCSeconds())+".0Z"))}};function Od(){}h=Od.prototype;h.j=null;h.Db=function(){throw Error("unimplemented abstract method");};h.fb=function(a){this.j.fb(a)};h.S=function(a,b){if(this.j=this.Db()){var c=this.j;c.C?a():null!=c.l?(c.C=c.l.S(),c.C?a():b()):(c.C=!1,b())}else b()};h.Z=function(){this.j.Z()};h.suspend=function(){this.j.terminate(!0);md();hd()};h.terminate=function(){this.j.terminate(!1);md();hd()};h.xa=function(){return"normal"};h.gb=function(a,b){this.j.eb(a);this.j.gb(a,b)};
h.$=function(a,b,c,d){this.j.$(d,b,c,a)};h.ua=function(a,b){this.j.ua(b)};function Pd(a){this.Ha=a.Fb||"2";this.B=a.B}sa(Pd,Od);r("iSpring.LMSAPI.Scorm2004Api",Pd,void 0);Pd.prototype.Db=function(){return new Nd(this.Ha,this.B)};Pd.prototype.xa=function(){return this.j.xa()};})();
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}
