(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var l,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ca=ba(this);
function da(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}}da("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push(b[d]);return c}});
function ea(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}da("Array.prototype.values",function(a){return a?a:function(){return ea(this,function(b,c){return c})}});var m=this||self;
function n(a,b,c){a=a.split(".");c=c||m;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b}function fa(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"}function ha(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var ia="closure_uid_"+(1E9*Math.random()>>>0),ja=0;function ka(a,b,c){return a.call.apply(a.bind,arguments)}
function la(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function ma(a,b,c){ma=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ka:la;return ma.apply(null,arguments)}
function p(a,b){function c(){}c.prototype=b.prototype;a.bb=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.ec=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}}function na(a){return a};function q(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,q);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)}p(q,Error);q.prototype.name="CustomError";function oa(a,b){a=a.split("%s");let c="";const d=a.length-1;for(let e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");q.call(this,c+a[d])}p(oa,q);oa.prototype.name="AssertionError";function pa(a){throw a;}function qa(a,b){pa(new oa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};const u=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(let c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ra=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){const c=a.length,d="string"===typeof a?a.split(""):a;for(let e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)},sa=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,
b,void 0)}:function(a,b){const c=a.length,d=Array(c),e="string"===typeof a?a.split(""):a;for(let f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d};function ta(a,b){a:{const c=a.length,d="string"===typeof a?a.split(""):a;for(let 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:"string"===typeof a?a.charAt(b):a[b]}function ua(a,b){b=u(a,b);let c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c}
function va(a,b){for(let d=1;d<arguments.length;d++){const e=arguments[d];var c=fa(e);if("array"==c||"object"==c&&"number"==typeof e.length){c=a.length||0;const f=e.length||0;a.length=c+f;for(let g=0;g<f;g++)a[c+g]=e[g]}else a.push(e)}}function wa(a,b,c,d){Array.prototype.splice.apply(a,xa(arguments,1))}function xa(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};function v(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=!1}v.prototype.stopPropagation=function(){};v.prototype.preventDefault=function(){this.defaultPrevented=!0};var ya=function(){if(!m.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{m.addEventListener("test",()=>{},b),m.removeEventListener("test",()=>{},b)}catch(c){}return a}();var w=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},za=/&/g,Ba=/</g,Ca=/>/g,Da=/"/g,Ea=/'/g,Fa=/\x00/g,Ga=/[\x00&<>"']/;function Ha(a,b){return a<b?-1:a>b?1:0};function x(){var a=m.navigator;return a&&(a=a.userAgent)?a:""}function y(a){return-1!=x().indexOf(a)};function Ia(a){Ia[" "](a);return a}Ia[" "]=function(){};var Ja=y("Opera"),z=y("Trident")||y("MSIE"),Ka=y("Edge"),A=y("Gecko")&&!(-1!=x().toLowerCase().indexOf("webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),C=-1!=x().toLowerCase().indexOf("webkit")&&!y("Edge"),D;
a:{var La="",Ma=function(){var a=x();if(A)return/rv:([^\);]+)(\)|;)/.exec(a);if(Ka)return/Edge\/([\d\.]+)/.exec(a);if(z)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(C)return/WebKit\/(\S+)/.exec(a);if(Ja)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Ma&&(La=Ma?Ma[1]:"");if(z){var E,Na=m.document;E=Na?Na.documentMode:void 0;if(null!=E&&E>parseFloat(La)){D=String(E);break a}}D=La};function F(a,b){v.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.ma=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=
b;if(b=a.relatedTarget){if(A){a:{try{Ia(b.nodeName);var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=C||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=C||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=
void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:Oa[a.pointerType]||"";this.state=a.state;this.ma=a;a.defaultPrevented&&F.bb.preventDefault.call(this)}}
p(F,v);var Oa={2:"touch",3:"pen",4:"mouse"};F.prototype.stopPropagation=function(){F.bb.stopPropagation.call(this);this.ma.stopPropagation?this.ma.stopPropagation():this.ma.cancelBubble=!0};F.prototype.preventDefault=function(){F.bb.preventDefault.call(this);var a=this.ma;a.preventDefault?a.preventDefault():a.returnValue=!1};var Pa="closure_listenable_"+(1E6*Math.random()|0);var Qa=0;function Ra(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Wa=e;this.key=++Qa;this.ya=this.Ta=!1}function Sa(a){a.ya=!0;a.listener=null;a.proxy=null;a.src=null;a.Wa=null};function Ta(a){var b={id:"hacpFormTarget",name:"hacpFormTarget"};for(const c in b)a.call(void 0,b[c],c,b)};function Ua(a){this.src=a;this.N={};this.Ba=0}Ua.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.N[f];a||(a=this.N[f]=[],this.Ba++);var g=Va(a,b,d,e);-1<g?(b=a[g],c||(b.Ta=!1)):(b=new Ra(b,this.src,f,!!d,e),b.Ta=c,a.push(b));return b};Ua.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.N))return!1;var e=this.N[a];b=Va(e,b,c,d);return-1<b?(Sa(e[b]),Array.prototype.splice.call(e,b,1),0==e.length&&(delete this.N[a],this.Ba--),!0):!1};
function Wa(a,b){var c=b.type;c in a.N&&ua(a.N[c],b)&&(Sa(b),0==a.N[c].length&&(delete a.N[c],a.Ba--))}function Va(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.ya&&f.listener==b&&f.capture==!!c&&f.Wa==d)return e}return-1};var Xa="closure_lm_"+(1E6*Math.random()|0),Ya={},Za=0;function $a(a,b,c,d,e){if(d&&d.once)return ab(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)$a(a,b[f],c,d,e);return null}c=bb(c);return a&&a[Pa]?a.zb.add(String(b),c,!1,ha(d)?!!d.capture:!!d,e):cb(a,b,c,!1,d,e)}
function cb(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=ha(e)?!!e.capture:!!e,h=db(a);h||(a[Xa]=h=new Ua(a));c=h.add(b,c,d,g,f);if(c.proxy)return c;d=eb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)ya||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(fb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Za++;return c}
function eb(){function a(c){return b.call(a.src,a.listener,c)}const b=gb;return a}function ab(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)ab(a,b[f],c,d,e);return null}c=bb(c);return a&&a[Pa]?a.zb.add(String(b),c,!0,ha(d)?!!d.capture:!!d,e):cb(a,b,c,!0,d,e)}
function hb(a){if("number"!==typeof a&&a&&!a.ya){var b=a.src;if(b&&b[Pa])Wa(b.zb,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(fb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Za--;(c=db(b))?(Wa(c,a),0==c.Ba&&(c.src=null,b[Xa]=null)):Sa(a)}}}function fb(a){return a in Ya?Ya[a]:Ya[a]="on"+a}function gb(a,b){if(a.ya)a=!0;else{b=new F(b,this);var c=a.listener,d=a.Wa||a.src;a.Ta&&hb(a);a=c.call(d,b)}return a}
function db(a){a=a[Xa];return a instanceof Ua?a:null}var ib="__closure_events_fn_"+(1E9*Math.random()>>>0);function bb(a){if("function"===typeof a)return a;a[ib]||(a[ib]=function(b){return a.handleEvent(b)});return a[ib]};let jb=()=>!1;function kb(a,b){jb()&&(b?m.console.error(a):m.console.warn(a))}function lb(a,b){const c=a.stack||a.toString();0>String(c).indexOf(a.message)&&kb(a.message,b);kb(c,b)}window.onerror=function(...a){const [b,,,,c]=a;c?lb(c,!0):kb(b,!0);return!0};pa=a=>{try{throw Error(a.message);}catch(b){lb(b,!1)}};m.console||(window._log="",m.console={log:function(a){window._log+="\n"+a},warn:function(a){window._log+="\nwarn: "+a},error:function(a){window._log+="\nerror: "+a}});class mb{};function G(a,b){return 0==b?a.ca:a.V[b]}function nb(a,b){return 0==b?a.ca||[]:b in a.V?G(a,b):[]}function ob(a){if(!a.V)return a.ca?a.ca.slice():[];const b=[],c=a.sa;for(let d=0;d<c.length;++d){const e=G(a,c[d]);e&&va(b,e)}return b}
class pb{constructor(){this.ca=this.V=this.sa=null}push(a,b){if(0==b)this.ca=this.ca||[];else if(this.sa=this.sa||[0],this.V=this.V||{},!(b in this.V)){this.V[b]=[];var c=this.sa;var d=0;let f=c.length,g;for(;d<f;){const h=d+(f-d>>>1);var e=void 0;e=c[h];e=b>e?1:b<e?-1:0;0<e?d=h+1:(f=h,g=!e)}d=g?d:-d-1;0>d&&wa(c,-(d+1),0,b)}G(this,b).push(a)}remove(a,b){(b=G(this,b))&&ua(b,a)}};class H extends mb{constructor(){super();this.Ob=this.qb=this.J=null}Rb(){return this.Ob}addHandler(a,b,c){this.J=this.J||new pb;this.J.push({Va:a,context:b},c||0)}removeHandler(a,b,c){c=c||0;if(this.J){var d=nb(this.J,c),e=d.length;for(let f=0;f<e;++f){const g=d[f];if(g.Va==a&&g.context==b){(a=G(this.J,c))&&Array.prototype.splice.call(a,f,1);break}}}else qa("EventDispatcher has no handlers!")}Sb(a,b,c){if(!this.J)return!1;c=nb(this.J,c||0);const d=c.length;for(let e=0;e<d;++e){const f=c[e];if(f.Va==
a&&f.context==b)return!0}return!1}da(...a){if(this.J){const b=ob(this.J),c=b.length;for(let d=0;d<c;++d){const e=b[d];if(-1!=u(ob(this.J),e))try{e.Va.apply(e.context,arguments)}catch(f){lb(f,!0)}}}this.qb&&this.qb.forEach(b=>{b.da(...a)})}}H.prototype.dispatch=H.prototype.da;H.prototype.hasHandler=H.prototype.Sb;H.prototype.removeHandler=H.prototype.removeHandler;H.prototype.addHandler=H.prototype.addHandler;H.prototype.eventOwner=H.prototype.Rb;class qb{constructor(a){this.pb=a}};class rb{constructor(){this.tb=new H;this.ib=new H}};function I(a,b){this.ka=a;this.Ib=b;this.Gb=""}I.prototype.id=function(){return this.ka};I.prototype.name=function(){return this.Ib};I.prototype.email=function(){return this.Gb};function sb(a){this.ka=a}l=sb.prototype;l.pa="";l.A=null;l.B=null;l.Ra="unanticipated";l.rb=0;l.eb=null;l.hb=null;l.wb=null;l.K=null;l.id=function(){return this.ka};l.type=function(){return this.v};l.description=function(){return this.pa};l.oa=function(){return this.A};function tb(a,b){a.B=b}l.result=function(){return this.Ra};l.score=function(){return this.rb};l.O=function(a){this.rb=a};l.awardedScore=function(){return this.eb};l.duration=function(){return this.hb};l.X=function(){return this.wb};
l.details=function(){return this.K};function ub(a,b){a.K=b};var vb;const wb={};function xb(a){if(a instanceof J&&a.constructor===J)return a.xa;qa(`expected object of type SafeHtml, got '${a}' of type `+fa(a));return"type_error:SafeHtml"}
function yb(a){a instanceof J||(a="object"==typeof a&&a.Bb?a.xa.toString():String(a),Ga.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(za,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(Ba,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(Ca,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(Da,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(Ea,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(Fa,"&#0;"))),a=zb(a));return a}
function zb(a){if(void 0===vb){var b=null;var c=m.trustedTypes;if(c&&c.createPolicy)try{b=c.createPolicy("goog#html",{createHTML:na,createScript:na,createScriptURL:na})}catch(d){m.console&&m.console.error(d.message)}vb=b}a=(b=vb)?b.createHTML(a):a;return new J(a,wb)}function Ab(a){const b=yb(Bb),c=[],d=e=>{Array.isArray(e)?e.forEach(d):(e=yb(e),c.push(xb(e).toString()))};a.forEach(d);return zb(c.join(xb(b).toString()))}function Cb(a){return Ab(Array.prototype.slice.call(arguments))}
class J{constructor(a,b){this.xa=b===wb?a:"";this.Bb=!0}toString(){return this.xa.toString()}}var Bb=new J(m.trustedTypes&&m.trustedTypes.emptyHTML||"",wb),Db=zb("<br>");var Eb={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Fb=function(a){let b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=xb(Bb);return!b.parentElement});
function Gb(a,b){if(a.tagName&&Eb[a.tagName.toUpperCase()])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+a.tagName+".");if(Fb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=xb(b)};var Hb={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},Ib={"'":"\\'"};
function Jb(a){a=String(a);const b=['"'];for(let g=0;g<a.length;g++){var c=a.charAt(g),d=c.charCodeAt(0),e=g+1,f;if(!(f=Hb[c]))if(31<d&&127>d)f=c;else if(f=c,f in Ib)f=Ib[f];else if(f in Hb)f=Ib[f]=Hb[f];else{d=f.charCodeAt(0);if(31<d&&127>d)c=f;else{if(256>d){if(c="\\x",16>d||256<d)c+="0"}else c="\\u",4096>d&&(c+="0");c+=d.toString(16).toUpperCase()}f=Ib[f]=c}b[e]=f}b.push('"');return b.join("")}function Kb(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}
function Lb(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};function K(a){a=w(a);return a=a.replace(/[^\w-]/g,"_")}function L(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};class Mb{constructor(a,b){this.s=a;this.H=b}};function M(a,b,c){return b.textWithEquations(a.l||!c?"Equation":"")}function N(a,b){return b.join(a.l?",":"[,]")}function O(a,b,c){return a.l?L(b):K(`${b}_${c}`)}
class P{constructor({Ub:a,Wb:b,Vb:c}){this.l=a;this.xb=b;this.u=!1;this.sb=c}create(a){if(!a.submitted())return null;var b=(void 0!==this.sb?"Slide"+this.sb+"_":"")+"Q_"+a.slide().id();b=new sb(K(b));this.i(b,a);return b}i(a,b){var c=b.slide();c=M(this,c.description(),!0);a.pa=c;b.hasBeenVisited()&&(c=b.visitDuration(),a.hb=c,c=b.firstVisitTime(),a.wb=c);if(c=b.slide().settings().evaluation()){if(a.O(b.maxScore()),b=b.review()){var d=Math.max(0,b.awardedScore());a.eb=d;d="unanticipated";switch(b.status()){case "correct":d=
"correct";break;case "incorrect":case "partially":d="incorrect"}a.Ra=d}}else a.Ra="neutral";this.u=!!c}};function Q(a,b){this.ka=a;this.pa=b}Q.prototype.id=function(){return this.ka};Q.prototype.description=function(){return this.pa};function R(){this.m=[]}R.prototype.count=function(){return this.m.length};function S(a,b){a.m.push(b)}R.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.m[a]};function Nb(){this.Qb=new R;this.la=new R}Nb.prototype.sources=function(){return this.Qb};class Ob extends P{i(a,b){super.i(a,b);a.v="matching";var c=b.contentState();b=b.slide().content();const {details:d,premises:e,responses:f,Tb:g}=this.Oa(b);c=this.Ja(c.chainsStates(),e,f,g);a.A=c;this.u&&(c=[this.u?this.Ka(b.chains(),e,f,g):c],a.B=c);a.K=d}Oa(a){const b=new Nb,c=[],d=[];a=a.chains();for(var e of a){var f=e.object().slideObject();a=e.destination().slideObject();if(f&&0>c.indexOf(f)){c.push(f);const g=f.name();S(b.sources(),new Q(K(c.indexOf(f)+"_"+g),g))}a&&0>d.indexOf(a)&&(d.push(a),
f=a.name(),S(b.la,new Q(K(d.indexOf(a)+"_"+f),f)))}e=this.l?L(d.length,!1):`${d.length}_${"None"}`;S(b.la,new Q(e,"None"));return{details:b,premises:c,responses:d,Tb:e}}Ja(a,b,c,d){const e=[];var f=b.slice();for(const h of a){a=h.objectState().slideObject();var g=h.destinationState().slideObject();g=this.Z(a,g,b,c,d);e.push(g);f.splice(f.indexOf(a),1)}for(const h of f)f=this.Z(h,null,b,c,d),e.push(f);return this.ha(e)}Ka(a,b,c,d){const e=[];for(const f of a){a=f.object().slideObject();const g=f.destination().slideObject();
a&&(a=this.Z(a,g,b,c,d),e.push(a))}return this.ha(e)}ja(a,b,c){this.l?b=L(b,c):(a=a.name(),a=K(a),b=`${b}_${a}`);return b}Z(a,b,c,d,e){a=this.ja(a,c.indexOf(a),!0);b=b?this.ja(b,d.indexOf(b),!1):e;d=this.l?".":"[.]";return K(a)+d+K(b)}ha(a){return a.join(this.l?",":"[,]")}};class Pb extends P{i(a,b){super.i(a,b);a.v="long-fill-in";b=b.contentState().response();a.A=b}};class Qb extends P{i(a,b){super.i(a,b);a.v=this.l?"other":"fill-in";var c=b.contentState();b=[];const d=[];for(var e of c.placeholders())b.push(e.response()),(c=e.correctAnswers())&&(this.xb?d.push(c[0]):d.push(c.join("[,]")));a.A=b.join("[,]");if(this.u){e=d;if(this.l||this.xb)e=[e.join(this.l?"[.]":"[,]")];a.B=e}}};function T(){this.m=new R};class Rb extends P{i(a,b){super.i(a,b);a.v="choice";const c=[],d=[],e=new T;this.Ga(b.contentState(),e,d,c);a.A=N(this,c);this.u&&(a.B=[N(this,d)]);a.K=e}Ga(a,b,c,d){a.areas().forEach((f,g)=>{const h=f.area(),k=h.label().text();g=O(this,g,k);h.correct()&&c.push(g);a.areaSelected(f)&&d.push(g);S(b.m,new Q(g,k))});const e=a.areas().length;for(let f=e;f<e+a.freePointsCount();++f){const g=O(this,f,"Untitled_Spot");d.push(g)}}};class Sb extends P{i(a,b){super.i(a,b);a.v="choice";const c=[],d=new T;b.contentState().statementsStates().forEach((e,f)=>{var g=e.statement().text();S(d.m,new Q(O(this,f,g),g));if(g=e.selectedScale())e=c.push,f=f+"_"+g.text(),f=K(f),e.call(c,f)});a.A=N(this,c);a.K=d}};class Tb extends P{i(a,b){super.i(a,b);a.v="matching";var c=b.contentState();b=b.slide().content();const {details:d,premises:e,responses:f}=this.Oa(b);c=this.Ja(c.matches(),e,f,this.l);a.A=c;this.u&&(c=[this.Ka(b.matches(),this.l)],a.B=c);a.K=d}Oa(a){const b=new Nb,c=[],d=[];var e=a.matches();for(var f=0;f<e.count();++f){var g=e.getChoice(f);c.push(g.premise());d.push(g.response());const h=M(this,g.premise().textRange(),!1);g=M(this,g.response().textRange(),!1);S(b.sources(),new Q(K(f+"_"+h),h));
S(b.la,new Q(K(f+"_"+g),g))}a=a.distractors();for(e=0;e<a.count();++e)f=a.getChoice(e),d.push(f),f=M(this,f.textRange(),!1),S(b.la,new Q(K(e+"_"+f),f));return{details:b,premises:c,responses:d}}Ja(a,b,c,d){const e=[];for(const f of a){a=f.premise();const g=f.response();a=this.Z(a,u(b,a),g,u(c,g),d);e.push(a)}return this.ha(e,d)}Ka(a,b){const c=[];for(let e=0;e<a.count();++e){var d=a.getChoice(e);d=this.Z(d.premise(),e,d.response(),e,b);c.push(d)}return this.ha(c,b)}ja(a,b,c,d){return c?L(b,d):`${b}_${M(this,
a.textRange(),!1)}`}Z(a,b,c,d,e){a=this.ja(a,b,e,!0);c=this.ja(c,d,e,!1);e=e?".":"[.]";return K(a)+e+K(c)}ha(a,b){return a.join(b?",":"[,]")}};function Ub(){this.m=new R;this.fb=[]}p(Ub,T);class Vb extends P{i(a,b){super.i(a,b);a.v="choice";var c=b.slide();b=b.contentState();const d=c.content();c=this.La(c.content(),b);a.A=c;if(this.u){a:{for(c=0;c<d.count();++c){const e=d.getChoice(c);if(e.correct()){c=O(this,c,M(this,e.textRange(),!1));break a}}c=""}a.B=[c]}b=this.ia(d,b);a.K=b}ia(a,b){let c=new T;if(this.jb()){c=new Ub;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d);const f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.fb[g]=e)}}for(b=0;b<a.count();++b)d=
a.getChoice(b),d=M(this,d.textRange(),!1),S(c.m,new Q(K(`${b}_${d}`),d));return c}jb(){return!this.u}La(a,b){for(let c=0;c<b.count();++c){const d=b.getChoiceState(c);if(d.selected())return a=a.getChoiceIndex(d.choice()),O(this,a,M(this,d.choice().textRange(),!1))}return""}};function Wb(a){const b=new Nb;let c=0;ra(a.placeholders(),(d,e)=>{e+="";S(b.sources(),new Q(e,e));d.values.forEach(f=>{f=f.text();var g=`${c++}_${f}`;g=K(g);S(b.la,new Q(g,f))})});return b}
class Xb extends P{i(a,b){super.i(a,b);a.v=this.l?"other":"matching";const c=[],d=[],e=new T;b.contentState().placeholders().forEach((f,g)=>{const h=f.response(),k=f.correctAnswer();f.answers().forEach(r=>{var t=e.m.count();t=`${g}[.]${K(t+"_"+r)}`;r==k&&d.push(t);r==h&&c.push(t);S(e.m,new Q(t,r))})});a.A=c.join("[,]");this.u&&tb(a,[d.join("[,]")]);ub(a,Wb(b.slide().content()))}};class Yb extends P{i(a,b){super.i(a,b);a.v="choice";const c=b.slide().content();var d=this.La(c,b.contentState());a.A=d;this.u&&(d=[this.Ha(c)],a.B=d);b=this.ia(c,b.contentState());a.K=b}ia(a,b){let c=new T;if(!this.u){c=new Ub;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d);const f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.fb[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=M(this,d.textRange(),!1),S(c.m,new Q(K(b+"_"+d),d));return c}La(a,b){const c=[];for(let f=
0;f<b.count();++f){var d=b.getChoiceState(f);const g=d.choice();var e=M(this,g.textRange(),!1);d.selected()&&(d=a.getChoiceIndex(g),e=O(this,d,e),c.push(e))}return N(this,c)}Ha(a){const b=[];for(let d=0;d<a.count();++d){var c=a.getChoice(d);c.correct()&&(c=O(this,d,M(this,c.textRange(),!1)),b.push(c))}return N(this,b)}};class Zb extends P{i(a,b){super.i(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.v=this.l||d?"fill-in":"numeric";a.A=b;if(this.u){d=(b=this.l||d)?"[,]":"[.]";const h=[];for(let k=0;k<c.count();++k){var e="",f=c.getAnswer(k),g=f.comparisonOperation();if("between"==g)g=f,e=g.leftOperand(),g=g.rightOperand(),e=b?"between "+e+" and "+g:e+"[:]"+g;else switch(f=f.operand(),g){case "notEqual":b&&
(e="not equal to "+f);break;case "equal":e=b?"equal to "+f:f+"[:]"+f;break;case "greaterThan":e=b?"greater than "+f:f+"[:]";break;case "greaterThanOrEqual":e=b?"greater than or equal to "+f:f+"[:]";break;case "lessThan":e=b?"less than "+f:"[:]"+f;break;case "lessThanOrEqual":e=b?"less than or equal to "+f:"[:]"+f}h.push(e)}a.B=[h.join(d)]}}};function $b(a,b,c,d){const e=d?",":"[,]",f=[];c.forEach(g=>{const h=M(a,g.textRange(),!1);g=b.getChoiceIndex(g);f.push(K(d?L(g,!0):g+"_"+h))});return f.join(e)}class ac extends P{i(a,b){super.i(a,b);a.v="sequencing";var c=b.slide().content();b=$b(this,c,b.contentState().studentResponse(),this.l);a.A=b;this.u&&(b=[$b(this,c,c,this.l)],a.B=b);c=this.ia(c);a.K=c}ia(a){const b=new T;for(let c=0;c<a.count();++c){const d=a.getChoice(c).textRange().text();S(b.m,new Q(K(c+"_"+d),d))}return b}};class bc extends Vb{i(a,b){super.i(a,b);if(this.l&&this.u){a.v="true-false";var c=b.slide().content();b=b.contentState();const 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();let f=null;for(let g=0;2>g;++g){const h=b.getChoiceState(g);if(h.selected()){f=h.choice().id()==c?d:e;break}}a.A=f;a.B=[d]}}jb(){return!1}};class cc extends P{i(a,b){super.i(a,b);a.v="fill-in";var c=b.slide();b=b.contentState().response().text();a.A=b;this.u&&(c=this.Ha(c.content()),a.B=c)}Ha(a){const b=[];for(let c=0;c<a.count();++c){const d=a.getChoice(c);b.push(d.textRange().text())}return b}};function dc(a,b){this.length=b;for(let c=0;c<b;++c)this[c]=a(c)};function ec(a,b,c){for(const d of a){const e=d.response();null!=e&&(a=new dc(f=>b.m.getChoice(f),b.m.count()),a=ta(a,f=>w(f.description())==e),c.push(a.id()))}}
class fc extends P{i(a,b){super.i(a,b);a.v=this.l?"other":"choice";var c=b.slide().content();const d=[],e=new T;c=c.extraWords();for(var f of c){c=f.text();var g=e.m.count();g=K(`${g}_${c}`);S(e.m,new Q(g,c))}b=b.contentState().placeholders();this.u&&(f=[],this.Ga(b,e,f),a.B=[f.join("[,]")]);ec(b,e,d);a.A=d.join("[,]");a.K=e}Ga(a,b,c){for(const e of a){a=e.placeholder().value||"";var d=b.m.count();d=K(`${d}_${a}`);c.push(d);S(b.m,new Q(d,a))}}};const gc={FillInTheBlank:Qb,WordBank:fc,TypeIn:cc,Numeric:Zb,MultipleChoice:Vb,MultipleResponse:Yb,MultipleChoiceText:Xb,Sequence:ac,Matching:Tb,TrueFalse:bc,Essay:Pb,Hotspot:Rb,LikertScale:Sb,DND:Ob};var hc={bc:"prompt",Xb:"always",$b:"never"};n("ispring.quiz.ResumeType",hc);n("PROMPT_TO_RESUME","prompt",hc);n("ALWAYS_RESUME","always",hc);n("NEVER_RESUME","never",hc);var ic=y("Firefox")||y("FxiOS");function jc(a){Ta(function(b,c){b&&"object"==typeof b&&b.Bb&&(b=b.xa.toString());"style"==c?a.style.cssText=b:"class"==c?a.className=b:"for"==c?a.htmlFor=b:kc.hasOwnProperty(c)?a.setAttribute(kc[c],b):0==c.lastIndexOf("aria-",0)||0==c.lastIndexOf("data-",0)?a.setAttribute(c,b):a[c]=b})}
var kc={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 lc(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};function mc(a,b){if("function"!==typeof a)if(a&&"function"==typeof a.handleEvent)a=ma(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(b)||m.setTimeout(a,b||0)};var nc={},oc=null,pc=A||C||"function"==typeof m.btoa;function qc(a){this.za=a}function rc(a,b){const c=[];sc(a,b,c);return c.join("")}
function sc(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");var e="";for(var f=0;f<b;f++)c.push(e),e=d[f],sc(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),tc(d,c),c.push(":"),sc(a,a.za?a.za.call(b,d,e):e,c),f=","));c.push("}");
return}}switch(typeof b){case "string":tc(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 uc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},vc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;
function tc(a,b){b.push('"',a.replace(vc,function(c){let d=uc[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),uc[c]=d);return d}),'"')};function wc(a,b){if("string"===typeof b)(b=xc(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=xc(d,c);f&&(d.style[f]=e)}}var yc={};function xc(a,b){var c=yc[b];if(!c){var d=Kb(b);c=d;void 0===a.style[d]&&(d=(C?"Webkit":A?"Moz":z?"ms":null)+Lb(d),void 0!==a.style[d]&&(c=d));yc[b]=c}return c};function zc(a,b){this.v=a;this.Eb=b||[]}n("iSpring.ios.mobile.MobileAppCommand",zc);zc.prototype.id=function(){return Object.prototype.hasOwnProperty.call(this,ia)&&this[ia]||(this[ia]=++ja)};function Ac(a){try{const b=lc(document,"iframe");wc(b,{width:"1px",height:"1px",border:"0"});b.src=a;document.body.appendChild(b);mc(()=>{b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(b){}};function U(a){this.length=a.length||a;for(let b=0;b<this.length;b++)this[b]=a[b]||0}U.prototype.BYTES_PER_ELEMENT=4;U.prototype.set=function(a,b){b=b||0;for(let c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};U.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(U.BYTES_PER_ELEMENT=4,U.prototype.BYTES_PER_ELEMENT=U.prototype.BYTES_PER_ELEMENT,U.prototype.set=U.prototype.set,U.prototype.toString=U.prototype.toString,n("Float32Array",U));function V(a){this.length=a.length||a;for(let b=0;b<this.length;b++)this[b]=a[b]||0}V.prototype.BYTES_PER_ELEMENT=8;V.prototype.set=function(a,b){b=b||0;for(let c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};V.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{V.BYTES_PER_ELEMENT=8}catch(a){}V.prototype.BYTES_PER_ELEMENT=V.prototype.BYTES_PER_ELEMENT;V.prototype.set=V.prototype.set;V.prototype.toString=V.prototype.toString;n("Float64Array",V)};new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function W(){var a=window.location.search.substr(1);if(!a)return{};const b={};a=a.split("&");for(let e=0;e<a.length;++e){const f=a[e].split("=");if(2==f.length){try{var c=decodeURIComponent(f[0].replace(/\+/g," "))}catch(g){c=f[0]}try{var d=decodeURIComponent(f[1].replace(/\+/g," "))}catch(g){d=f[1]}c=c.toLowerCase();b[c]=d}}return b};(function(){function a(b){try{return b.ISPlayer&&(window.ISPlayer=b.ISPlayer),b.ISPVideoPlayer&&(window.ISPVideoPlayer=b.ISPVideoPlayer),b.ISPQuizPlayer&&(window.ISPQuizPlayer=b.ISPQuizPlayer),b.ISPInteractionPlayerCore&&(window.ISPInteractionPlayerCore=b.ISPInteractionPlayerCore),b.ISPBookPlayer&&(window.ISPBookPlayer=b.ISPBookPlayer),b.ISPScenarioPlayer&&(window.ISPScenarioPlayer=b.ISPScenarioPlayer),b.ISPFlipPlayer&&(window.ISPFlipPlayer=b.ISPFlipPlayer),!0}catch(c){return!1}}if(function(){let b;
try{b=window.frameElement}catch(c){}return null!=b}()){let b=window,c=7;for(;b&&b.parent!=b&&0!=c--&&!a(b.parent);)b=b.parent}})();var X;const Bc=W().user_agent;X=Bc?Bc:x()||"";W();W();var Cc=-1!=X.toLowerCase().indexOf("chrome"),Dc=-1==X.toLowerCase().indexOf("windows phone")&&-1!=X.toLowerCase().indexOf("android")&&!Cc&&!ic&&!Ja,Ec=-1!=X.indexOf("ismobile");const Fc=document.createElement("audio"),Gc=Fc.play&&Fc.play();Gc&&Gc.then(()=>{Fc.pause()},()=>{});W();W();
function Hc(){return 1==window._ispringDebug||"1"==W().isdebug}
if(y("Windows")){const a=x();let b="",c;if(y("Windows")){c=/Windows (?:NT|Phone) ([0-9.]+)/;const h=c.exec(a);b=h?h[1]:"0.0"}else if(y("iPhone")&&!y("iPod")&&!y("iPad")||y("iPad")||y("iPod")){c=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/;const h=c.exec(a);b=h&&h[1].replace(/_/g,".")}else if(y("Macintosh")){c=/Mac OS X ([0-9_.]+)/;const h=c.exec(a);b=h?h[1].replace(/_/g,"."):"10"}else if(-1!=x().toLowerCase().indexOf("kaios")){c=/(?:KaiOS)\/(\S+)/i;const h=c.exec(a);b=h&&h[1]}else if(y("Android")){c=/Android\s+([^\);]+)(\)|;)/;
const h=c.exec(a);b=h&&h[1]}else if(y("CrOS")){c=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/;const h=c.exec(a);b=h&&h[1]}let d=0;const e=w(String(b||"")).split("."),f=w("6").split("."),g=Math.max(e.length,f.length);for(let h=0;0==d&&h<g;h++){let k=e[h]||"",r=f[h]||"";do{const t=/(\d*)(\D*)(.*)/.exec(k)||["","","",""],B=/(\d*)(\D*)(.*)/.exec(r)||["","","",""];if(0==t[0].length&&0==B[0].length)break;d=Ha(0==t[1].length?0:parseInt(t[1],10),0==B[1].length?0:parseInt(B[1],10))||Ha(0==t[2].length,0==B[2].length)||
Ha(t[2],B[2]);k=t[3];r=B[3]}while(0==d)}}setTimeout(function(){jb=Hc},0);function Ic(a,b){a.kb=a.s.ea();let c=null;switch(a.kb){case "browse":b="never";c=null;break;case "review":b="always";c=a.s.j.wa();break;case "normal":c=a.C?a.s.j.wa():null}return{state:c,mode:b}}
function Jc(a,b){a.Pa=b;b.closeWindowEvent().addHandler(a.Jb,a);const c=b.currentSession();c&&Kc(a,c);b.currentSessionChangedEvent().addHandler(a.Kb,a);const d=a.s.na();d&&b.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()});b.stateChangedEvent().addHandler(a.Mb,a);setInterval(()=>{Lc(a)},15E3);"1.2"!=a.Ca||a.vb||c||a.s.F(null,!1)}function Kc(a,b){a.fa=!0;a.ub=Date.now();a.H=b;b=b.quiz().title();a.ua.tb.da(b);Mc(a,a.H)}function Lc(a){const b=a.Pa.persistState();a.s.$a(b)}
function Mc(a,b){a.H.evaluation();b.sessionModeChangedEvent().addHandler(a.nb,a);b=b.slidePoolState();for(const c of b.questions())"InfoSlide"!=c.slide().type()&&c.submittedEvent().addHandler(a.ob,a);Nc(a,!1)}function Oc(a,b){b.sessionModeChangedEvent().removeHandler(a.nb,a);b=b.slidePoolState();for(const c of b.questions())c.submittedEvent().removeHandler(a.ob,a)}
function Nc(a,b){var c=a.H;const d=a.H.evaluation();if(d){var e="byGroups"==c.settings().passingScoreType(),f=d.awardedScore();if(e){let g=f=0;const h=c.slidePoolState();for(const k of h.groups())0!=k.maxScore()&&(g++,k.isPassed()&&f++);f=100*(g?f/g:0)}e=e?100:d.maxScore();a.s.O(f,0,e,100)}e=(c=Pc(c))&&d?d.quizPassed():null;a.s.F(e,c);b&&(d&&(new Mb(a.s,a.H)).H.settings(),a.ua.ib.da());a.s.commit()}function Pc(a){a=a.sessionMode();return"completed"==a||"reviewing"==a}
class Qc{constructor(a,b){this.Ca=a;this.Fb=b;this.fa=!1;this.H=this.Pa=null;this.ub=0;this.kb="";this.C=this.vb=!1;this.ua=new rb;this.Da=this.s=null}initialize(a,b,c){this.C="never"!=b;try{a:{var d=new qb(this.Fb.flags),e=this.C;switch(this.Ca){case "1.2":var f=new Rc(d,e);break a;case "2004":f=new Sc(e,this.Pb.edition);break a;case "aicc":f=new Tc(d,e);break a}throw Error("unknown api version");}this.s=f}catch(g){Hc()&&alert(g),this.mb(a,b,c)}this.s&&this.s.initialize(this.Lb.bind(this,a,b,c),
this.mb.bind(this,a,b,c))}Lb(a,b,c){const {state:d,mode:e}=Ic(this,b);a(e,f=>{Jc(this,f);c(f)},d);a=$a(window,"unload",this.Ea,!1,this);b=$a(window,"beforeunload",this.Ea,!1,this);this.Da=[a,b];this.vb=null!=d}mb(a,b,c){window.console.log("Lms initialization failed");a(b,c)}Mb(a){a.actionPrevented()||(a.preventAction(),Lc(this))}Kb(){const a=this.Pa.currentSession();a&&(this.fa?(Oc(this,this.H),this.ua.ib.da(),this.H=a,this.ua.tb.da(a.quiz().title()),Mc(this,this.H)):Kc(this,a))}Ea(){if(this.Da)for(const a of this.Da)hb(a);
this.fa&&(this.fa=!1,this.s.Ya(Date.now()-this.ub),Lc(this),Oc(this,this.H));this.C?this.s.suspend():this.s.terminate()}nb(a){Pc(this.H)&&Nc(this,"testing"==a)}ob(a){if(a.initiated()){var b=a.slide().type(),c=this.Ca;(a=(new gc[b]({Ub:"1.2"==c||"aicc"==c,Wb:"tincan"==c,Vb:void 0})).create(a))&&this.s.W(a)}}Jb(a){this.fa&&(a.suspend(),this.Ea())}}Qc.prototype.initialize=Qc.prototype.initialize;function Uc(a,b){return b in a.gb?a.gb[b]:null}class Vc{constructor(a,b){this.gb=a;this.va=b}};class Wc{constructor(){this.$=[]}W(a){this.$.push(a)}};class Xc{constructor(){this.Na="unknown";this.va=this.Ma=this.lb=this.qa=this.ta=null}maxScore(){return this.lb}Ya(a){this.Ma=a}$a(a){this.va=a}};var Yc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Zc(a){var b=window.location.toString();a=a.match(Yc);b=b.match(Yc);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};var $c={Yb:"\u202a",cc:"\u202b",ac:"\u202c",Zb:"\u200e",dc:"\u200f"};let ad=0;for(const a in $c)ad++;function bd(a){function b(d){try{for(let e=0;255>e;++e){if(d[a])return d[a];const f=d.parent;if(!f||d==f)break;d=f}}catch(e){}return null}var c=window;return b(c)||c.opener&&b(c.opener)}function Y(a){a=cd(a);return Z(a.Ab)+":"+Z(a.Cb)+":"+Z(a.Db)}function dd(a){a=cd(a);return"PT"+a.Ab+"H"+a.Cb+"M"+a.Db+"S"}function ed(a){"number"===typeof a&&(a=new Date(a));return a.getUTCFullYear()+"/"+Z(a.getUTCMonth()+1)+"/"+Z(a.getUTCDate())}
function fd(a){"number"===typeof a&&(a=new Date(a));return Z(a.getUTCHours())+":"+Z(a.getUTCMinutes())+":"+Z(a.getUTCSeconds())}function cd(a){return{Ab:Math.floor(a/3600),Cb:Math.floor(a%3600/60),Db:Math.floor(a%60),fc:a-Math.floor(a)}}function Z(a){return 10>a?"0"+a:a}var gd=null;function hd(){gd||(gd=id(),document.body.appendChild(gd));const a=gd.contentDocument,b=Date.now();for(;100>Date.now()-b;){a.open();for(let c=0;300>c;++c)a.write("sleep");a.close()}}
function id(){const a=lc(document,"iframe");wc(a,{width:"1px",height:"1px",border:"0"});return a}function jd(){let a=null;if(z&&11>parseFloat(D))try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}a||"undefined"==typeof XMLHttpRequest||(a=new XMLHttpRequest);return a}
function kd(){if(Ec)if(Ec){var a=new zc("closeWindow");if(Ec){var b=a.v,c=a.Eb;a=a.id();var d=rc(new qc(null),c);if(pc)c=m.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}d=void 0;void 0===d&&(d=0);if(!oc)for(oc={},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),f=["+/=","+/","-_=","-_.","-_"],g=0;5>g;g++){var h=e.concat(f[g].split(""));nc[g]=h;for(var k=0;k<h.length;k++){var r=h[k];void 0===oc[r]&&(oc[r]=k)}}d=
nc[d];e=Array(Math.floor(c.length/3));f=d[64]||"";for(g=h=0;h<c.length-2;h+=3){var t=c[h],B=c[h+1];r=c[h+2];k=d[t>>2];t=d[(t&3)<<4|B>>4];B=d[(B&15)<<2|r>>6];r=d[r&63];e[g++]=""+k+t+B+r}k=0;r=f;switch(c.length-h){case 2:k=c[h+1],r=d[(k&15)<<2]||f;case 1:c=c[h],e[g]=""+d[c>>2]+d[(c&3)<<4|k>>4]+r+f}c=e.join("")}Ac("isplayer://"+b+"/"+a+"/"+c)}}else try{Dc||(window.open("","_self",""),window.close())}catch(Hd){}else try{Dc||(window.Aa=window,b=ld(),b==window.top?(window.open("","_self",""),window.close()):
md(b))}catch(Hd){md(window.top)}}function md(a){if(a&&a.Aa){var b=document.createElement("a");b.href="data/goodbye.html";a.Aa.location.replace(b.href)}}function ld(){let a=window;if(a.Aa)return a;let b=0;for(;a!=window.top&&100>b++;){if(a.Aa)return a;a=a.parent}console.log("Unable to locate content root");return null}function nd(){try{const a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(a){}};function od(a,b,c){a.U.command.value=b;a.U.aicc_data.value=c||"";a.U.submit()}
class pd{constructor(){this.Y=this.U=this.ba=null}initialize(a,b){if(!Zc(a))return!1;const c=document.body;this.ba=id();wc(this.ba,{position:"absolute"});jc(this.ba);this.ba.onload=this.Nb.bind(this);c.appendChild(this.ba);var d=zb('<form method="POST">'+`<input type="hidden" name="session_id" value="${b}">`+'<input type="hidden" name="command" value=""><input type="hidden" name="version" value="4"><input type="hidden" name="aicc_data" value=""></form>'),e=document;b=lc(e,"DIV");z?(Gb(b,Cb(Db,d)),
b.removeChild(b.firstChild)):Gb(b,d);if(1==b.childNodes.length)b=b.removeChild(b.firstChild);else{for(d=e.createDocumentFragment();b.firstChild;)d.appendChild(b.firstChild);b=d}this.U=b;this.U.target="hacpFormTarget";this.U.action=a;c.appendChild(this.U);return!0}cb(a,b){this.Y=null;od(this,a,b);hd()}Sa(a,b,c){this.Y=null;od(this,a,b);c&&(this.Y=c)}Nb(){if(this.Y){a:{try{var a=this.ba.contentWindow.document.body.innerHTML;break a}catch(b){}a=""}this.Y(a);this.Y=null}}};function qd(){return window.XDomainRequest?new XDomainRequest:null}function rd(a,b,c,d){var e=a.S;const f=window.location.toString().match(Yc)[1]||null;if("file"!=f){const g=e.match(Yc)[1]||null;e=f+e.substr(g.length)}a="session_id="+encodeURIComponent(a.ga)+"&version=4&command="+encodeURIComponent(c);d&&(a+="&aicc_data="+encodeURIComponent(d));try{b.open("POST",e),b.send(a)}catch(g){b.onerror&&b.onerror()}}
class sd{constructor(){this.ga=this.S=""}initialize(a,b){if(null==qd())return!1;this.S=a;this.ga=b;return!0}cb(a,b){const c=qd();let d=!1,e=!1;c.onload=()=>{e=d=!0};c.onerror=()=>{d=!0};rd(this,c,a,b);for(a=Date.now();!d&&1E3>Date.now()-a;)hd();if(!e)throw 0;}Sa(a,b,c,d){const e=qd();e.onload=()=>{c&&c(e.responseText)};e.onerror=()=>{d&&d("")};e.onprogress=()=>{};rd(this,e,a,b)}};function td(a,b,c,d){b.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a="session_id="+encodeURIComponent(a.ga)+"&version=4&command="+encodeURIComponent(c);d&&(a+="&aicc_data="+encodeURIComponent(d));b.send(a)}
class ud{constructor(){this.ga=this.S=""}initialize(a,b){if(z&&11>parseFloat(D)&&!Zc(this.S)||!jd())return!1;this.S=a;this.ga=b;return!0}cb(a,b){const c=jd();c.open("POST",this.S,!1);td(this,c,a,b)}Sa(a,b,c,d){const e=jd();c&&(e.onreadystatechange=()=>{if(4==e.readyState){delete e.onreadystatechange;a:switch(e.status){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var f=!0;break a;default:f=!1}f?c&&c(e.responseText):d&&d(e.responseText)}});e.open("POST",this.S,!0);td(this,e,a,b)}}
;function vd(a,b,c,d,e){let f=0<a.L.length?a.L[0]:null;for(;f;)try{return f.Sa(b,c,d,e),!0}catch(g){f=wd(a)}return!1}function xd(a,b,c){return vd(a,"GETPARAM",null,d=>{if(d){if(b){const f={};let g=null;d=d.split("\n");for(let h=0;h<d.length-1;++h){var e=w(d[h]);0<e.indexOf("=")?(e=e.split("="),f[w(e[0])]=w(e[1])):"[core_lesson]"==e.toLowerCase()&&(e=w(d[h+1]),e.match(/^\[\w+\]$/)||(g=e))}b(new Vc(f,g))}}else c&&c("response is empty")},c)}
function yd(a){const b=["[core]","lesson_status="+a.Na];if(null!==a.ta){var c="score="+a.ta;null!==a.qa&&null!==a.maxScore()&&(c+=","+a.maxScore()+","+a.qa);b.push(c)}c=a.Ma;null!==c&&b.push("time="+Y(c));a=a.va;null!==a&&(b.push("[core_lesson]"),b.push(a));return b.join("\r\n")}function zd(a,b,c){return vd(a,"PUTPARAM",yd(b),d=>{d&&c&&c()})}function Ad(a,b,c){let d=0<a.L.length?a.L[0]:null;for(;d;)try{d.cb(b,c);break}catch(e){console.log(e),d=wd(a)}}
function Bd(a){const b=d=>"incorrect"==d?"wrong":d,c=[];for(let d=0;d<a.$.length;++d){if(0>d||d>=a.$.length)throw Error("index is out of bounds");const e=a.$[d],f=e.X(),g=e.B,h=e.awardedScore(),k=e.duration();c.push(["","","","",f?ed(f):"",f?fd(f):"",e.id(),e.type(),g?g.join("[,]"):"",e.oa()||"","number"===typeof h?h+"":b(e.result()),e.score()+"",null!==k?Y(k/1E3):""])}a=["course_id student_id lesson_id objective_id date time interaction_id type_interaction correct_response student_response result weighting latency".split(" ")].concat(c);
a=sa(a,d=>sa(d,Jb).join(","));return a.join("\r\n")}function Cd(a,b,c){0<b.$.length?vd(a,"PUTINTERACTIONS",Bd(b),d=>{d&&c&&c()}):c&&c()}function Dd(a,b,c,d){let e=!0;b&&(e=zd(a,b,()=>{c&&Cd(a,c,()=>{d&&d()})}));return e}function wd(a){a.L.shift();return 0<a.L.length?a.L[0]:null}
class Ed{constructor(a,b){this.L=[];const c=[new ud,new sd,new pd];for(let d=0;d<c.length;++d){const e=c[d];e.initialize(a,b)&&this.L.push(e)}if(0===this.L.length)throw alert("No available transports, progress can't be reported"),Error("No available transports, progress can't be reported");}};n("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){const d=null.Hb[a];if(null==d)return"";delete null.Hb[a];mc(()=>{if(b)d.onload(c);else d.onerror()},10);return"ok"});function Fd(a){a=JSON.parse(a);return"object"==typeof a?a:null};class Gd{constructor(){a:{try{const b=W();if("aicc_url"in b&&"aicc_sid"in b){var a=new Ed(b.aicc_url,b.aicc_sid);break a}}catch(b){}a=null}this.h=a;this.G=new Xc;this.o=!1;this.Ia=null;this.P=!1;this.aa=null}initialize(){throw Error("not supported");}Xa(a,b){if(this.o)a();else if(this.h){const c=this;xd(this.h,d=>{c.Ia=d;this.o=!0;a()},()=>{b()})||b()}else b()}terminate(){if(this.h){var a=this.h,b=this.P?this.G:null,c=this.aa;b&&Ad(a,"PUTPARAM",yd(b));c&&0<c.$.length&&Ad(a,"PUTINTERACTIONS",Bd(c));
Ad(this.h,"EXITAU");return!0}return!1}commit(){return this.h?Dd(this.h,this.P?this.G:null,this.aa,()=>{this.P=!1;this.aa=null}):!1}D(){throw Error("not supported");}g(){throw Error("not supported");}O(a,b,c){let d=!1;this.G.qa!=b&&(this.G.qa=b,d=!0);this.G.maxScore()!=c&&(this.G.lb=c,d=!0);this.G.ta!=a&&(this.G.ta=a,d=!0);this.P=this.P||d}R(){}Za(a){a/=1E3;this.G.Ma!=a&&(this.G.Ya(a),this.P=!0)}wa(){const a=this.Ia.va;if(a)try{return Fd(a)}catch(b){}return null}ab(a){a=rc(new qc,a);this.G.$a(a);this.P=
!0}ea(){return"normal"}F(a,b){a=null!==a?a?"passed":"failed":null!==b?b?"completed":"incomplete":"unknown";this.G.Na!=a&&(this.G.Na=a,this.P=!0)}W(a){this.aa||(this.aa=new Wc);this.aa.W(a)}na(){var a=this.Ia;return new I(Uc(a,"student_id")||"",Uc(a,"student_name")||"")}};function Id(a){return a.ra?"":"suspend"}
class Jd{constructor(a,b){this.I=a;this.ra=!1;this.T=0;this.C=b}initialize(){try{return this.M(this.I.LMSInitialize(""))}catch(a){}return!1}terminate(a){this.g("cmi.core.exit",a?Id(this):"");this.commit();try{return this.M(this.I.LMSFinish(""))}catch(b){}return!1}commit(){0==this.T&&this.g("cmi.core.exit",this.C?Id(this):"");try{const a=this.M(this.I.LMSCommit(""));this.T+=1;return a}catch(a){}return!1}R(a){this.ra=a}D(a){try{return this.I.LMSGetValue(a)}catch(b){}return""}g(a,b){"number"===typeof b&&
(b=parseFloat(b.toFixed(2))+"");try{return this.M(this.I.LMSSetValue(a,b))}catch(c){}return!1}M(a){return"true"==a.toString()}};var Kd={id:"id",type:"type",score:"weighting",yb:"correct_responses.%INDEX%.pattern",oa:"student_response",result:"result",duration:"latency",X:"time"},Ld={id:"id",type:"type",score:"weighting",yb:"correct_responses.%INDEX%.pattern",oa:"learner_response",description:"description",result:"result",duration:"latency",X:"timestamp"},Md={};function Nd(a){return parseInt(a.D("cmi.interactions._count"),10)}
function Od(a,b,c,d,e){if(e){var f=a.id()+"_"+a.description();f=K(f.substr(0,255));c.g(b+d.id,f)}else c.g(b+d.id,a.id());c.g(b+d.type,a.type());c.g(b+d.score,a.score());f=a.B||[];for(let g=0;g<f.length;++g){const h=d.yb.replace("%INDEX%",g);c.g(b+h,f[g])}f=a.oa();null!=f&&c.g(b+d.oa,f);f=c.g;b+=d.result;a=a.result();f.call(c,b,e?"incorrect"==a?"wrong":a:a)};function Pd(a){a=rc(new qc,a);return LZString.compressToBase64(a)}function Qd(a){a=LZString.decompressFromBase64(a);try{return Fd(a)}catch(b){}return null};class Rd{constructor(a){const b=bd("API");this.h=b?new Jd(b,a):null;this.o=!1}initialize(){return this.o?!0:this.o=null!=this.h?this.h.initialize():!1}Xa(a,b){this.o?a():null!=this.h?(this.o=this.h.initialize())?a():b():(this.o=!1,b())}terminate(a){return null!=this.h?this.h.terminate(a):!1}commit(){return null!=this.h?this.h.commit():!1}D(a){return null!=this.h?this.h.D(a):""}g(a,b){return null!=this.h?this.h.g(a,b):!1}O(a,b,c){this.g("cmi.core.score.raw",a);this.g("cmi.core.score.min",b);this.g("cmi.core.score.max",
c)}Za(a){this.g("cmi.core.session_time",Y(a/1E3))}wa(){const a=this.D("cmi.suspend_data");return a?Qd(a):null}ea(){return"normal"}ab(a){a=Pd(a);this.g("cmi.suspend_data",a)}F(a,b){null!==a?this.g("cmi.core.lesson_status",a?"passed":"failed"):null!==b?this.g("cmi.core.lesson_status",b?"completed":"incomplete"):this.g("cmi.core.lesson_status","unknown")}R(a){this.h.R(a)}W(a){var b=a.id();if(a.id()in Md)var c=Md[b];else c=Nd(this),Md[b]=c;0>c||(b="cmi.interactions."+c+".",Od(a,b,this,Kd,!0),c=a.duration(),
null!==c&&this.g(b+Kd.duration,Y(c/1E3)),a=a.X(),null!==a&&this.g(b+Kd.X,Y(3600*a.getHours()+60*a.getMinutes()+a.getSeconds())))}na(){return new I(this.D("cmi.core.student_id"),this.D("cmi.core.student_name"))}};class Sd{constructor(){this.j=null}initialize(a,b){(this.j=this.Ua())?this.j.Xa(a,b):b()}commit(){this.j.commit()}suspend(){this.j.terminate(!0);nd();kd()}terminate(){this.j.terminate(!1);nd();kd()}$a(a){this.j.ab(a)}ea(){return"normal"}F(a,b){this.j.R(a);this.j.F(a,b)}O(a,b,c,d){const e=0<c-b?a/(c-b):0;null!=d&&(a=e*d,c=d);this.j.O(a,b,c,e)}Ya(a){this.j.Za(a)}W(a){this.j.W(a)}na(){return this.j.na()}};class Tc extends Sd{constructor(a,b){super();this.Qa=a;this.C=b}Ua(){let a=new Rd(this.C);a.initialize()||(a=new Gd);return a}F(a,b){const c=null===a;a=c?b:a;null===a?this.j.F(null,null):!c&&this.Qa.pb&(a?2:1)?this.j.F(a,null):this.j.F(null,a)}};class Rc extends Sd{constructor(a,b){super();this.Qa=a;this.C=b}Ua(){return new Rd(this.C)}F(a,b){const c=null===a;b=c?b:a;this.j.R(a);null===b?this.j.F(null,null):!c&&this.Qa.pb&(b?2:1)?this.j.F(b,null):this.j.F(null,b)}};class Td{constructor(a,b,c){this.I=a;this.Fa=b;this.ra=!1;this.T=0;this.C=c}initialize(){try{return this.M(this.I.Initialize(""))}catch(a){}return!1}terminate(a){this.g("cmi.exit",a?Id(this):"normal");this.g("adl.nav.request","exitAll");this.commit();try{return this.M(this.I.Terminate(""))}catch(b){}return!1}commit(){0==this.T&&this.g("cmi.exit",this.C?Id(this):"normal");try{const a=this.M(this.I.Commit(""));this.T+=1;return a}catch(a){}return!1}D(a){try{return this.I.GetValue(a)}catch(b){}return""}g(a,
b){"number"===typeof b&&(b=parseFloat(b.toFixed(7))+"");try{return this.M(this.I.SetValue(a,b))}catch(c){}return!1}R(a){this.ra=a}M(a){return"true"==a.toString()}};class Ud{constructor(a,b){const c=bd("API_1484_11");this.h=c?new Td(c,a,b):null;this.o=!1}initialize(){return this.o?!0:this.o=null!=this.h?this.h.initialize():!1}Xa(a,b){this.o?a():this.h?(this.o=this.h.initialize())?a():b():(this.o=!1,b())}terminate(a){return this.h?this.h.terminate(a):!1}commit(){return this.h?this.h.commit():!1}D(a){return this.h?this.h.D(a):""}g(a,b){return this.h?this.h.g(a,b):!1}O(a,b,c,d){null==d&&(d=0);this.g("cmi.score.raw",a);this.g("cmi.score.min",b);this.g("cmi.score.max",
c);this.g("cmi.score.scaled",d)}Za(a){this.g("cmi.session_time",dd(a/1E3))}wa(){const a=this.D("cmi.suspend_data");return a?Qd(a):null}ab(a){a=Pd(a);a.length<=("2"==this.h.Fa?4E3:64E3)&&this.g("cmi.suspend_data",a)}ea(){return this.h?this.h.D("cmi.mode"):"normal"}F(a,b){this.g("cmi.success_status",null===a?"unknown":a?"passed":"failed");this.g("cmi.completion_status",null===b?"unknown":b?"completed":"incomplete")}R(a){this.h.R(a)}W(a){var b=Nd(this);if(!(0>b)){b="cmi.interactions."+b+".";Od(a,b,this,
Ld,!1);this.g(b+Ld.description,a.description());var c=a.duration();null!==c&&this.g(b+Ld.duration,dd(c/1E3));a=a.X();null!==a&&("number"===typeof a&&(a=new Date(a)),this.g(b+Ld.X,a.getUTCFullYear()+"-"+Z(a.getUTCMonth()+1)+"-"+Z(a.getUTCDate())+"T"+Z(a.getUTCHours())+":"+Z(a.getUTCMinutes())+":"+Z(a.getUTCSeconds())+".0Z"))}}na(){return new I(this.D("cmi.learner_id"),this.D("cmi.learner_name"))}};class Sc extends Sd{constructor(a,b="2"){super();this.Fa=b;this.C=a}Ua(){return new Ud(this.Fa,this.C)}O(a,b,c){super.O(a,b,c)}ea(){return this.j.ea()}};class Vd extends Qc{constructor(a,b){super(a,b);this.Pb=b}}n("iSpring.quiz.LMS.create",function(a,b){return new Vd(a,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}
