/*! TechSmith Smart Player v3.33.1 */ /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="
a",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="
t
",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="
",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t }({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/\s*$/g,At={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X
","
"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?""!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle); u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("'}),this.TSC.templates.question_count_template=Handlebars.template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",u="function",c=this.escapeExpression;return s+="",(o=n.currentQuestionNumber)?r=o.call(t,{hash:{},data:a}):(o=t&&t.currentQuestionNumber,r=typeof o===u?o.call(t,{hash:{},data:a}):o),s+=c(r)+"",(o=n.prepositionText)?r=o.call(t,{hash:{},data:a}):(o=t&&t.prepositionText,r=typeof o===u?o.call(t,{hash:{},data:a}):o),s+=c(r)+" ",(o=n.totalQuestions)?r=o.call(t,{hash:{},data:a}):(o=t&&t.totalQuestions,r=typeof o===u?o.call(t,{hash:{},data:a}):o),s+=c(r)+"\r\n"}),this.TSC.templates.question_set_confirmation_template=Handlebars.template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",u="function",c=this.escapeExpression;return s+='
\r\n
',(o=n.confirmationText)?r=o.call(t,{hash:{},data:a}):(o=t&&t.confirmationText,r=typeof o===u?o.call(t,{hash:{},data:a}):o),s+=c(r)+'
\r\n
',(o=n.reviewText)?r=o.call(t,{hash:{},data:a}):(o=t&&t.reviewText,r=typeof o===u?o.call(t,{hash:{},data:a}):o),(r||0===r)&&(s+=r),s+='
\r\n
\r\n
\r\n
'}),this.TSC.templates.question_set_review_confirmation_template=Handlebars.template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",u="function";return s+='
\r\n
',(o=n.reviewAnswerText)?r=o.call(t,{hash:{},data:a}):(o=t&&t.reviewAnswerText,r=typeof o===u?o.call(t,{hash:{},data:a}):o),(r||0===r)&&(s+=r),s+='
\r\n
',(o=n.continueText)?r=o.call(t,{hash:{},data:a}):(o=t&&t.continueText,r=typeof o===u?o.call(t,{hash:{},data:a}):o),(r||0===r)&&(s+=r),s+='
\r\n
\r\n
\r\n
'}),this.TSC.templates.question_set_review_status_template=Handlebars.template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",u="function",c=this.escapeExpression;return s+='
\r\n
\r\n
',(o=n.txtAnswersSubmitted)?r=o.call(t,{hash:{},data:a}):(o=t&&t.txtAnswersSubmitted,r=typeof o===u?o.call(t,{hash:{},data:a}):o),s+=c(r)+'
\r\n
',(o=n.gradeableDetails)?r=o.call(t,{hash:{},data:a}):(o=t&&t.gradeableDetails,r=typeof o===u?o.call(t,{hash:{},data:a}):o),s+=c(r)+'
\r\n
',(o=n.unGradeableDetails)?r=o.call(t,{hash:{},data:a}):(o=t&&t.unGradeableDetails,r=typeof o===u?o.call(t,{hash:{},data:a}):o),s+=c(r)+'
\r\n \r\n \r\n
\r\n
\r\n
'}),this.TSC.templates.question_set_template=Handlebars.template(function(e,t,n,i,a){function r(){return'\r\n
\r\n'}function o(){return'\r\n
\r\n '}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var s,u,c="",l=this,d="function",f=this.escapeExpression;return s=n["if"].call(t,t&&t.minimized,{hash:{},inverse:l.program(3,o,a),fn:l.program(1,r,a),data:a}),(s||0===s)&&(c+=s),c+='\r\n
\r\n Submitting...\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n'}),this.TSC.templates.question_text_template=Handlebars.template(function(e,t,n,i,a){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var r,o,s="",u="function",c=this.escapeExpression;return s+='

',(o=n.questionNumber)?r=o.call(t,{hash:{},data:a}):(o=t&&t.questionNumber,r=typeof o===u?o.call(t,{hash:{},data:a}):o),s+=c(r)+". ",(o=n.questionText)?r=o.call(t,{hash:{},data:a}):(o=t&&t.questionText,r=typeof o===u?o.call(t,{hash:{},data:a}):o),(r||0===r)&&(s+=r),s+="

"}),this.TSC.templates.quiz_setup_template=Handlebars.template(function(e,t,n,i,a){function r(){return"autofocus"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var o,s,u="",c="function",l=this.escapeExpression,d=this;return u+='
\r\n

',(s=n.setupMessage)?o=s.call(t,{hash:{},data:a}):(s=t&&t.setupMessage,o=typeof s===c?s.call(t,{hash:{},data:a}):s),(o||0===o)&&(u+=o),u+='

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n

',(s=n.skipControlText)?o=s.call(t,{hash:{},data:a}):(s=t&&t.skipControlText,o=typeof s===c?s.call(t,{hash:{},data:a}):s),u+=l(o)+"

\r\n
"}),this.TSC.templates.settings_view_template=Handlebars.template(function(e,t,n,i,a){function r(e,t){var i,a,r="";return r+="\r\n \r\n "}function o(){return"selected"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var s,u,c="",l=this,d="function",f=this.escapeExpression;return c+='
\r\n
\r\n \r\n \r\n
\r\n
"}),this.TSC.templates.short_answer_template=Handlebars.template(function(e,t,n,i,a){function r(){return"autofocus"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),a=a||{};var o,s,u="",c=this,l="function";return u+='\r\n"}),function(){"use strict";window.TSC=window.TSC||{},window.TSC.smartPlayerPreRollEventConstants=function(){return{PRE_ROLL_STARTED:"preRollStarted",PRE_ROLL_FINISHED:"preRollFinished",PRE_ROLL_FINISHED_ACTIONS:{REMOVE_NOW:"removeNow"}}}()}(),function(e,t){"use strict";e.TSC=e.TSC||{},e.TSC.preRollView=function(){var e;if(!t||!t.pre_roll_container_template)throw Error("TSC.preRollView: Template not found");return e=t.pre_roll_container_template,{render:function(t){var n={preRollSizeClass:"preRoll-fullPage",preRollSrc:t};return e(n)}}}()}(window,TSC.templates),function(e,t,n,i,a){e.TSC=e.TSC||{},e.TSC.preRollController=function(){function r(e){if(e=e.originalEvent,e.data&&"function"==typeof e.data.indexOf&&-1!==e.data.indexOf("smartPlayerEventName")){var t=n.parse(e.data);switch(t.smartPlayerEventName){case i.PRE_ROLL_STARTED:u&&u();break;case i.PRE_ROLL_FINISHED:switch(t.data.action){case i.PRE_ROLL_FINISHED_ACTIONS.REMOVE_NOW:s()}}}}function o(){c.removeClass("preRollHidden")}function s(){c&&(l.unbind("message",r),c.unbind("load",o),c.remove(),c=void 0,u=void 0)}var u,c,l;return l=t(e),{createView:function(e,n){c=t(a.render(e)).appendTo("body"),c.bind("load",o),u=n,l.bind("message",r)},viewExists:function(){return void 0!=c},destroyView:s}}()}(window,jQuery,JSON,TSC.smartPlayerPreRollEventConstants,TSC.preRollView),function(e,t){e.TSC=e.TSC||{},e.TSC.externalMessageController=function(){function n(e){if(e.data&&"function"==typeof e.data.indexOf&&-1!==e.data.indexOf("smartPlayerEventName")){var n=t.parse(e.data);i[n.smartPlayerEventName]&&i[n.smartPlayerEventName].call(this,n.data)}}var i={};return e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),{addCallback:function(e,t){i[e]=t},removeCallback:function(e){i[e]&&(i[e]=void 0)},removeAllCallbacks:function(){i={}}}}()}(this,JSON),function(e){e.TSC=e.TSC||{},e.TSC.windowWrapper=function(){return{getLocationHref:function(){return e.location.href}}}()}(this),function(e){e.TSC=e.TSC||{},e.TSC.languageCodes=function(){"use strict";var e="en-US",t="de-DE",n="ja-JP";return{ENGLISH:e,GERMAN:t,JAPANESE:n,ENU:e,DEU:t,JPN:n,isValid:function(i){return i!==e&&i!==t&&i!==n?!1:!0}}}()}(this),function(e){e.TSC=e.TSC||{},e.TSC.questionGrader=function(){"use strict";return{FATHOM:"FATHOM",XMP:"XMP",MOCK:"MOCK"}}()}(this),function(e,t){e.TSC=e.TSC||{},e.TSC.localizationStrings=function(){"use strict";var e,n="default",i=n,a="",r={};return r.xmpError={},r.xmpError[t.ENGLISH]="There seems to be a problem accessing certain features of this video. Please contact the video Author.",r.xmpError[t.GERMAN]="Einige Merkmale dieses Videos sind offenbar nicht zugänglich. Bitte setzen Sie sich mit dem Autor des Videos in Verbindung.",r.xmpError[t.JAPANESE]="このビデオの特定機能にアクセスする時に問題が発生したようです。ビデオの作成者に連絡してください。",r.xmpSecurity={},r.xmpSecurity[t.ENGLISH]="Certain features in your video are currently disabled due to Local Network Security. These features work correctly when the video is played from a Website or Server.",r.xmpSecurity[t.GERMAN]="Einige Merkmale Ihrem Video sind zurzeit aufgrund der Sicherheitseinstellungen im lokalen Netzwerk deaktiviert. Diese Merkmale funktionieren wie vorgesehen, wenn das Video über eine Website oder einen Server wiedergegeben wird.",r.xmpSecurity[t.JAPANESE]="ローカル ネットワークのセキュリティのために、ビデオの特定機能が現在無効になっています。これらの機能は、Web サイトまたはサーバーからビデオを再生すると正しく動作します。",r.videoNotSupported={},r.videoNotSupported[t.ENGLISH]="Your browser cannot play this video.",r.videoNotSupported[t.GERMAN]="Ihr Browser kann dieses Video nicht wiedergeben.",r.videoNotSupported[t.JAPANESE]="お使いのブラウザではこのビデオを再生できません。",r.videoNotSupportedUseFlash={},r.videoNotSupportedUseFlash[t.ENGLISH]="This browser does not support the video format needed for playback. Please install the Flash Player or use a different browser.",r.videoNotSupportedUseFlash[t.GERMAN]="Dieser Browser unterstützt das zur Wiedergabe erforderliche Videoformat nicht. Bitte installieren Sie den Flash Player oder verwenden Sie einen anderen Browser.",r.videoNotSupportedUseFlash[t.JAPANESE]="このブラウザは、再生に必要なビデオ形式をサポートしていません。最新版のFlash Player をインストールするか、別のブラウザを使用してください。",r.noWebMSupport={},r.noWebMSupport[t.ENGLISH]="This browser does not support WebM video.",r.noWebMSupport[t.GERMAN]="Dieser Browser bietet keine WebM-Video-Unterstützung.",r.noWebMSupport[t.JAPANESE]="このブラウザは WebM ビデオをサポートしていません。",r.playlistLocalError={},r.playlistLocalError[t.ENGLISH]="Videos in a Playlist cannot be viewed from a local drive. The videos will play correctly from a Playlist hosted on a Website or Server.",r.playlistLocalError[t.GERMAN]="Videos in einer Wiedergabeliste können nicht von einem lokalen Laufwerk aus abgespielt werden. Die Videos werden über eine auf einer Website oder einem Server gehostete Wiedergabeliste korrekt abgespielt.",r.playlistLocalError[t.JAPANESE]="プレイリストのビデオはローカル ドライブから再生できません。Web サイトまたはサーバーでホストされているプレイリストからは、ビデオが正しく再生されます。",r.search={},r.search[t.ENGLISH]="Search…",r.search[t.GERMAN]="Suchen…",r.search[t.JAPANESE]="検索…",r.playerRateText={},r.playerRateText[t.ENGLISH]="Playback Speed",r.playerRateText[t.GERMAN]="Wiedergabe-Geschwindigkeit",r.playerRateText[t.JAPANESE]="再生速度",r.playerRateOptionsText={},r.playerRateOptionsText[t.ENGLISH]={.25:"0.25",.5:"0.5",.75:"0.75",1:"normal",1.25:"1.25",1.5:"1.5",1.75:"1.75",2:"2.0"},r.playerRateOptionsText[t.GERMAN]={.25:"0.25",.5:"0.5",.75:"0.75",1:"normal",1.25:"1.25",1.5:"1.5",1.75:"1.75",2:"2.0"},r.playerRateOptionsText[t.JAPANESE]={.25:"0.25",.5:"0.5",.75:"0.75",1:"標準",1.25:"1.25",1.5:"1.5",1.75:"1.75",2:"2.0"},r.videoFailedToLoad={},r.videoFailedToLoad[t.ENGLISH]="This video failed to load completely.",r.videoFailedToLoad[t.GERMAN]="Dieses Video wurde nicht vollständig geladen.",r.videoFailedToLoad[t.JAPANESE]="このビデオを正しく読み込めませんでした。",r.videoFailedToLoadUseFlash={},r.videoFailedToLoadUseFlash[t.ENGLISH]="This browser does not support the media format needed for playback. Please install the Flash Player or use a different browser.",r.videoFailedToLoadUseFlash[t.GERMAN]="Dieser Browser unterstützt nicht das zur Wiedergabe notwendige Medienformat. Bitte installieren Sie den Flash Player oder benutzen Sie einen anderen Browser.",r.videoFailedToLoadUseFlash[t.JAPANESE]="このビデオを正しく読み込めませんでした。別のブラウザを試すか、Flash プラグインを使用する必要があります。",r.searchDisabledFullScreen={},r.searchDisabledFullScreen[t.ENGLISH]="Search is disabled in fullscreen mode.",r.searchDisabledFullScreen[t.GERMAN]="Die Suche ist im Vollbildmodus deaktiviert.",r.searchDisabledFullScreen[t.JAPANESE]="フル画面モードでは検索機能は無効です。",r.videoLoading={},r.videoLoading[t.ENGLISH]="Please wait... the video is loading.",r.videoLoading[t.GERMAN]="Bitte warten... Das Video wird geladen.",r.videoLoading[t.JAPANESE]="お待ちください... ビデオを読み込んでいます。",r.clickToClose={},r.clickToClose[t.ENGLISH]="Click to Close",r.clickToClose[t.GERMAN]="Hier klicken, um zu schließen",r.clickToClose[t.JAPANESE]="クリックして終了",r.playWithSmartPlayer={},r.playWithSmartPlayer[t.ENGLISH]="Play with TechSmith Smart Player",r.playWithSmartPlayer[t.GERMAN]="Mit TechSmith Smart Player abspielen",r.playWithSmartPlayer[t.JAPANESE]="クリックして終了",r.playVideoOnly={},r.playVideoOnly[t.ENGLISH]="Play Video Only",r.playVideoOnly[t.GERMAN]="Nur Video wiedergeben",r.playVideoOnly[t.JAPANESE]="ビデオの再生のみ",r.openWithSmartPlayer={},r.openWithSmartPlayer[t.ENGLISH]="Open video in TechSmith Smart Player",r.openWithSmartPlayer[t.GERMAN]="Öffnen Sie das Video im TechSmith Smart Player.",r.openWithSmartPlayer[t.JAPANESE]="TechSmith Smart Player でビデオを開く",r.FullscreenKeyboardDisabled={},r.FullscreenKeyboardDisabled[t.ENGLISH]="Warning!, keyboard support is disabled in fullscreen.",r.FullscreenKeyboardDisabled[t.GERMAN]="Warnung! Tastaturunterstützung ist im Vollbildmodus deaktiviert.",r.FullscreenKeyboardDisabled[t.JAPANESE]="警告! フル画面ではキーボード サポートは無効です。",r.txtRequiredMessage={},r.txtRequiredMessage[t.ENGLISH]="A first name, last name, and email address are required to take this quiz.",r.txtRequiredMessage[t.GERMAN]="Sie müssen Vor- und Nachnamen und eine E-Mail-Adresse angeben, um an diesem Quiz teilzunehmen.",r.txtRequiredMessage[t.JAPANESE]="このクイズに解答するには、氏名と電子メール アドレスを入力する必要があります。",r.txtSkip={},r.txtSkip[t.ENGLISH]="Watch Video Only - No Quiz",r.txtSkip[t.GERMAN]="Nur Video ansehen - Kein Quiz",r.txtSkip[t.JAPANESE]="ビデオを見るだけでクイズに解答しない",r.txtBegin={},r.txtBegin[t.ENGLISH]="Watch Video and Take Quiz",r.txtBegin[t.GERMAN]="Video ansehen und am Quiz teilnehmen",r.txtBegin[t.JAPANESE]="ビデオを見てクイズに解答する",r.txtFirstName={},r.txtFirstName[t.ENGLISH]="First",r.txtFirstName[t.GERMAN]="Vorname",r.txtFirstName[t.JAPANESE]="姓",r.txtLastName={},r.txtLastName[t.ENGLISH]="Last",r.txtLastName[t.GERMAN]="Nachname",r.txtLastName[t.JAPANESE]="名",r.txtEmail={},r.txtEmail[t.ENGLISH]="Email",r.txtEmail[t.GERMAN]="E-Mail",r.txtEmail[t.JAPANESE]="電子メール",r.txtReview={},r.txtReview[t.ENGLISH]="Replay Last Section",r.txtReview[t.GERMAN]="Letzten Abschnitt erneut wiedergeben",r.txtReview[t.JAPANESE]="最後に選択した範囲をもう一度再生",r.txtAnswerQuestion={},r.txtAnswerQuestion[t.ENGLISH]="Take Quiz Now",r.txtAnswerQuestion[t.GERMAN]="Jetzt am Quiz teilnehmen",r.txtAnswerQuestion[t.JAPANESE]="今すぐクイズに解答する",r.txtPrev={},r.txtPrev[t.ENGLISH]="Previous",r.txtPrev[t.GERMAN]="Zurück",r.txtPrev[t.JAPANESE]="前へ",r.txtNext={},r.txtNext[t.ENGLISH]="Next",r.txtNext[t.GERMAN]="Weiter",r.txtNext[t.JAPANESE]="次へ",r.txtSubmit={},r.txtSubmit[t.ENGLISH]="Submit Answers",r.txtSubmit[t.GERMAN]="Antworten abschicken",r.txtSubmit[t.JAPANESE]="解答・回答の送信",r.txtSubmittingAnswers={},r.txtSubmittingAnswers[t.ENGLISH]="Please wait... submitting answers.",r.txtSubmittingAnswers[t.GERMAN]="Bitte warten... Antwort wird gesendet.",r.txtSubmittingAnswers[t.JAPANESE]="少々お待ちください... 回答を送信中です。",r.txtContinue={},r.txtContinue[t.ENGLISH]="Continue",r.txtContinue[t.GERMAN]="Fortsetzen",r.txtContinue[t.JAPANESE]="続行",r.txtReviewAnswer={},r.txtReviewAnswer[t.ENGLISH]="View Answers",r.txtReviewAnswer[t.GERMAN]="Antworten anzeigen",r.txtReviewAnswer[t.JAPANESE]="解答・回答を表示",r.txtAnswerSent={},r.txtAnswerSent[t.ENGLISH]="Your answers have been sent.",r.txtAnswerSent[t.GERMAN]="Ihre Antworten wurden gesendet.",r.txtAnswerSent[t.JAPANESE]="解答・回答が送信されました。",r.txtBadImageQuiz={},r.txtBadImageQuiz[t.ENGLISH]="We're sorry, the requested quiz is not compatible with images and could not be loaded. Please contact the author of this quiz.",r.txtBadImageQuiz[t.GERMAN]="Leider ist das angeforderte Quiz nicht kompatibel mit Bildern und konnte nicht geladen werden. Bitte kontaktieren Sie den Autor.",r.txtDisabledLocalQuizReporting={},r.txtDisabledLocalQuizReporting[t.ENGLISH]="Keyboard input is disabled in full screen mode. Press the ESC key to exit full screen mode.",r.txtDisabledLocalQuizReporting[t.GERMAN]="Bestimmte Merkmale in Ihrem Video sind aufgrund der Sicherheitseinstellungen im lokalen Netzwerk zurzeit deaktiviert. Sie funktionieren jedoch ordnungsgemäß, wenn das Video von einer Website oder einem Server aus wiedergegeben wird.",r.txtDisabledLocalQuizReporting[t.JAPANESE]="ローカル ネットワークのセキュリティの理由により、ビデオの特定機能が現在無効化されています。Web サイトまたはサーバーからビデオを再生する場合、これらの機能は正しく動作します。",r.txtVideoQuizNetworkErrorMessage={},r.txtVideoQuizNetworkErrorMessage[t.ENGLISH]="We're sorry, a network error has prevented the quiz from loading. The video is available to view. To try and reload the quiz, refresh the browser page or check your network connection.",r.txtVideoQuizNetworkErrorMessage[t.GERMAN]="Das Quiz konnte aufgrund eines Netzwerkfehlers nicht geladen werden. Das Video steht zur Ansicht bereit. Sie können versuchen das Quiz erneut zu laden, indem Sie die Browserseite aktualisieren bzw. Ihre Netzwerkverbindung überprüfen.",r.txtVideoQuizNetworkErrorMessage[t.JAPANESE]="申し訳ありませんが、ネットワーク エラーによりクイズを読み込めませんでした。ビデオは表示できます。クイズを再度読み込むには、ブラウザのページを更新するか、ネットワーク接続を確認してください。",r.txtImageQuizIEVersionError={},r.txtImageQuizIEVersionError[t.ENGLISH]="We're sorry, Internet Explorer 9 does not support image quizzing. To view the quiz, please choose another browser.",r.txtImageQuizNetworkErrorMessage={},r.txtImageQuizNetworkErrorMessage[t.ENGLISH]="We’re sorry, a network error has prevented the quiz from loading. The image is available to view. To try and reload the quiz, refresh the browser page or check your network connection.",r.txtImageQuizNetworkErrorMessage[t.GERMAN]="Leider hat ein Netzwerkfehler das Laden des Quiz verhindert. Das Bild kann angeschaut werden. Um das Quiz neu zu laden, aktualisieren Sie die Browser-Seite oder prüfen Sie Ihre Netzwerkverbindung.",r.txtQuizErrorMessage={},r.txtQuizErrorMessage[t.ENGLISH]="We're attempting to save your response. Please make sure you have an active internet connection.",r.txtQuizErrorMessage[t.GERMAN]="Wir versuchen, Ihre Antworten zu speichern. Bitte achten Sie darauf, dass Sie eine aktive Internet Verbindung haben.",r.txtQuizErrorMessage[t.JAPANESE]="返答の保存を試みています。インターネットに正しく接続しているか確認してください。",r.txtLoaderMessageInstance={},r.txtLoaderMessageInstance[t.ENGLISH]="Please wait... the quiz is loading.",r.txtLoaderMessageInstance[t.GERMAN]="Bitte warten... Das Quiz wird geladen.",r.txtLoaderMessageInstance[t.JAPANESE]="お待ちください... クイズを読み込んでいます。",r.txtLoaderMessageDefinition={},r.txtLoaderMessageDefinition[t.ENGLISH]="Please wait... the quiz is loading.",r.txtLoaderMessageDefinition[t.GERMAN]="Bitte warten... Das Quiz wird geladen.",r.txtLoaderMessageDefinition[t.JAPANESE]="お待ちください... クイズを読み込んでいます。",r.txtQuestionCount={},r.txtQuestionCount[t.ENGLISH]="{{currentQuestion}} of {{totalQuestions}}",r.txtQuestionCount[t.GERMAN]="{{currentQuestion}} von {{totalQuestions}}",r.txtQuestionCount[t.JAPANESE]="{{currentQuestion}} 問 ({{totalQuestions}} 問中)",r.txtCorrectAnswer={},r.txtCorrectAnswer[t.ENGLISH]="{{numberCorrect}} correct answer.",r.txtCorrectAnswer[t.GERMAN]="{{numberCorrect}} richtige Antwort.",r.txtCorrectAnswer[t.JAPANESE]="{{numberCorrect}} 個の正解があります。",r.txtCorrectAnswers={},r.txtCorrectAnswers[t.ENGLISH]="{{numberCorrect}} correct answers.",r.txtCorrectAnswers[t.GERMAN]="{{numberCorrect}} richtige Antworten.",r.txtCorrectAnswers[t.JAPANESE]="{{numberCorrect}} 個の正解があります。",r.txtUngradedQuestion={},r.txtUngradedQuestion[t.ENGLISH]="{{numberUngraded}} question could not be scored.",r.txtUngradedQuestion[t.GERMAN]="{{numberUngraded}} Frage konnte nicht bewertet werden.",r.txtUngradedQuestion[t.JAPANESE]="{{numberUngraded}} 個の問題のスコアを付けることができませんでした。",r.txtUngradedQuestions={},r.txtUngradedQuestions[t.ENGLISH]="{{numberUngraded}} questions could not be scored.",r.txtUngradedQuestions[t.GERMAN]="{{numberUngraded}} Fragen konnte nicht bewertet werden.",r.txtUngradedQuestions[t.JAPANESE]="{{numberUngraded}} 個の問題のスコアを付けることができませんでした。",r.txtQuizFullscreenMode={},r.txtQuizFullscreenMode[t.ENGLISH]="Keyboard input is disabled in full screen mode. Press the ESC key to exit full screen mode.",r.txtQuizFullscreenMode[t.GERMAN]="Die Tastatureingabe ist im Vollbildmodus deaktiviert. Drücken Sie >Esc<, um den Vollbildmodus zu beenden.",r.txtQuizFullscreenMode[t.JAPANESE]="全画面表示ではキーボード入力は無効です。ESC キーを押すと全画面モードを終了します。",r.accessBtnClearSearch={},r.accessBtnClearSearch[t.ENGLISH]="Clear Search",r.accessBtnClearSearch[t.GERMAN]="Suche löschen",r.accessBtnClearSearch[t.JAPANESE]="検索をクリア",r.accessBtnRewind={},r.accessBtnRewind[t.ENGLISH]="Rewind",r.accessBtnRewind[t.GERMAN]="Zurückspulen",r.accessBtnRewind[t.JAPANESE]="巻き戻し",r.accessBtnPlay={},r.accessBtnPlay[t.ENGLISH]="Play",r.accessBtnPlay[t.GERMAN]="Wiedergabe",r.accessBtnPlay[t.JAPANESE]="再生",r.accessBtnPrevious={},r.accessBtnPrevious[t.ENGLISH]="Previous",r.accessBtnPrevious[t.GERMAN]="Zurück",r.accessBtnPrevious[t.JAPANESE]="前へ",r.accessBtnNext={},r.accessBtnNext[t.ENGLISH]="Next",r.accessBtnNext[t.GERMAN]="Weiter",r.accessBtnNext[t.JAPANESE]="次へ",r.accessBtnVolume={},r.accessBtnVolume[t.ENGLISH]="Volume",r.accessBtnVolume[t.GERMAN]="Volumen",r.accessBtnVolume[t.JAPANESE]="音量",r.accessBtnClosedCaption={},r.accessBtnClosedCaption[t.ENGLISH]="Closed Caption",r.accessBtnClosedCaption[t.GERMAN]="Geschlossene Beschriftung",r.accessBtnClosedCaption[t.JAPANESE]="クローズド キャプション",r.accessBtnTableOfContents={},r.accessBtnTableOfContents[t.ENGLISH]="Table of Contents",r.accessBtnTableOfContents[t.GERMAN]="Inhaltsverzeichnis",r.accessBtnTableOfContents[t.JAPANESE]="目次",r.accessBtnSettings={},r.accessBtnSettings[t.ENGLISH]="Player Settings",r.accessBtnSettings[t.GERMAN]="Einstellungen",r.accessBtnSettings[t.JAPANESE]="プレーヤー設定",r.accessBtnFullScreen={},r.accessBtnFullScreen[t.ENGLISH]="Full Screen",r.accessBtnFullScreen[t.GERMAN]="Vollbild",r.accessBtnFullScreen[t.JAPANESE]="全画面",r.accessBtnTakeQuiz={},r.accessBtnTakeQuiz[t.ENGLISH]="Click to take the quiz",r.accessBtnTakeQuiz[t.GERMAN]="Klicken Sie hier, um die Quizfragen zu beantworten.",r.accessBtnShowQuiz={},r.accessBtnShowQuiz[t.ENGLISH]="Show Quiz",r.accessBtnShowQuiz[t.GERMAN]="Quiz anzeigen",r.accessBtnHideQuiz={},r.accessBtnHideQuiz[t.ENGLISH]="Hide Quiz",r.accessBtnHideQuiz[t.GERMAN]="Quiz ausblenden",r.accessBtnShowAnswer={},r.accessBtnShowAnswer[t.ENGLISH]="Show Answers",r.accessBtnShowAnswer[t.GERMAN]="Antworten anzeigen",r.accessBtnHideAnswer={},r.accessBtnHideAnswer[t.ENGLISH]="Hide Answers",r.accessBtnHideAnswer[t.GERMAN]="Antworten ausblenden",r.accessBtnSubmitting={},r.accessBtnSubmitting[t.ENGLISH]="Submitting...",r.accessBtnSubmitting[t.GERMAN]="Daten werden übermittelt...",r.accessBtnAnswersSubmitted={},r.accessBtnAnswersSubmitted[t.ENGLISH]="Answers Submitted!",r.accessBtnAnswersSubmitted[t.GERMAN]="Antworten wurden übermittelt!",r.accessBtnWereGraded={},r.accessBtnWereGraded[t.ENGLISH]=" were graded",r.accessBtnWereGraded[t.GERMAN]=" wurden bewertet",r.accessBtnWereNotGraded={},r.accessBtnWereNotGraded[t.ENGLISH]=" were not graded",r.accessBtnWereNotGraded[t.GERMAN]=" wurden nicht bewertet",r.accessBtnWasNotGraded={},r.accessBtnWasNotGraded[t.ENGLISH]=" was not graded",r.accessBtnWasNotGraded[t.GERMAN]=" wurden nicht bewertet",r.accessBtnCorrectOutOf={},r.accessBtnCorrectOutOf[t.ENGLISH]=" correct out of ",r.accessBtnCorrectOutOf[t.GERMAN]=" korrekte Antworten von ",r.accessBtnGradedQuestions={},r.accessBtnGradedQuestions[t.ENGLISH]=" graded questions",r.accessBtnGradedQuestions[t.GERMAN]=" bewerteten Antworten",{setLanguage:function(e){t.isValid(e)&&(i=e) },getLanguage:function(){return i},getQuestionCountPreposition:function(){if(!a){e=i===n?t.ENGLISH:i;for(var o=r.txtQuestionCount[e].split(" "),s=0;o.length>s;s++)if(-1===o[s].indexOf("{{")){a=o[s];break}}return a},getString:function(a){if(void 0!==r[a])return e=i===n?t.ENGLISH:i,r[a][e];throw Error("getString(): '"+a+"' string does not exist in the player.")},setString:function(a,o){if(void 0===r[a])throw Error("setString(): '"+a+"' string does not exist in the player.");e=i===n?t.ENGLISH:i,r[a][e]=o}}}()}(this,TSC.languageCodes),function(e,t,n){e.TSC=e.TSC||{},e.TSC.iOSTextInputFix=function(){"use strict";function i(e){e.keyCode===u?c--:c++;var t=a.value,n=t.length-c;if(0>n){var i=a.cloneNode(!0);s.appendChild(i),l++,setTimeout(function(){i.focus(),s.removeChild(i),r&&r(l)},100),c=a.value.length}}var a,r,o=t(e),s=e.document.getElementsByTagName("body")[0],u=8,c=0,l=0,d=function(){a=void 0,o.unbind("keyup",i)};return{setOnBugCallback:function(e){r=e},watch:function(e){d(),a=e,c=a.value===n.getString("search")?0:a.value.length,o.bind("keyup",i)},clear:d}}()}(this,jQuery,TSC.localizationStrings),function(e){e.TSC=e.TSC||{},e.TSC.playerType=function(){return{HTML5_VIDEO:"html5",FLASH_VIDEO:"flash",YOUTUBE:"youtube",IMAGE:"image",NOT_SUPPORTED:"not_supported"}}()}(this),function(e){e.TSC=e.TSC||{},e.TSC.mediaMimeType=function(){"use strict";return{WEBM:"video/webm",MP4:"video/mp4",OGG:"video/ogg",JPG:"image/jpeg",PNG:"image/png",GIF:"image/gif",UNKNOWN:""}}()}(this),function(e,t,n){e.TSC=e.TSC||{},e.TSC.deviceInfo=function(){"use strict";function i(){switch(e.location.protocol){case"http:":case"https:":return!1;case"file:":return!0}}function a(){for(var e in navigator.plugins)if(navigator.plugins[e].filename&&-1!==navigator.plugins[e].filename.toLowerCase().indexOf("pepflashplayer"))return!0;return!1}function r(){if(/iP(hone|od|ad)/.test(navigator.platform)){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)]}}function o(){var t=document.createElement("video")||!1;if(s=t&&t.canPlayType!==void 0,u=s&&("maybe"===t.canPlayType(n.MP4)||"probably"===t.canPlayType(n.MP4)),c=s&&("maybe"===t.canPlayType(n.OGG)||"probably"===t.canPlayType(n.OGG)),l=s&&("maybe"===t.canPlayType(n.WEBM)||"probably"===t.canPlayType(n.WEBM)),m=null!==navigator.userAgent.match(/iPad/i),v=null!==navigator.userAgent.match(/iPhone/i),S=null!==navigator.userAgent.match(/iPod/i),A=m||v||S,b=-1!==navigator.userAgent.toLowerCase().indexOf("android"),h=-1!==navigator.userAgent.toLowerCase().indexOf("chrome"),p="Microsoft Internet Explorer"==navigator.appName,h&&i()&&(y=a()),p){var o=navigator.userAgent,I=RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=I.exec(o)&&(d=parseFloat(RegExp.$1))}A&&(f=r()),g=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),C=null!==navigator.userAgent.match(/Nuevo/i),T=null!==navigator.userAgent.match(/Safari/i),w=640>screen.availWidth&&480>screen.availHeight||480>screen.availWidth&&640>screen.availHeight,E=e.devicePixelRatio&&e.devicePixelRatio>1,(v||S)&&C&&E&&(m=!0,v=S=!1)}var s,u,c,l,d,f,p=!1,g=!1,h=!1,m=!1,v=!1,S=!1,A=!1,b=!1,C=!1,T=!1,E=!1,w=!1,y=!1;return{isSmallScreen:function(){return w},isRetinaDisplay:function(){return E},isNuevoApp:function(){return C},isIPad:function(){return m},isIPhoneOrIPod:function(){return v||S},isIOS:function(){return A},isIE:function(){return p},getIEVersion:function(){return d},getIOSMajorVersion:function(){return f?f[0]:null},isFirefox:function(){return g},isChrome:function(){return h},isSafari:function(){return T},isAndroid:function(){return b},canPlayHTML5Video:function(){return s},canPlayMP4:function(){return u},canPlayOgg:function(){return c},canPlayWebM:function(){return l},isTouchInterface:function(){return t.touch||this.isTouchIEInterface()},isTouchIEInterface:function(){return navigator.msMaxTouchPoints},getFullScreenChangeEventNames:function(){return"webkitfullscreenchange MSFullscreenChange mozfullscreenchange fullscreenchange"},requiresManualPreload:function(){return m||b},supportsFullScreen:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled||document.mozFullScreenEnabled},supportsFullScreenKeyboardInput:function(){var e=!1;return h&&void 0!==Element.ALLOW_KEYBOARD_INPUT&&(e=!0),e},mediaLocation:function(){var e=document.location.href,t=e.lastIndexOf("/"),n=e.substring(0,t+1);return p&&(n=encodeURI(n)),n=n.split("%25").join("%")},isLocal:function(){return i()},isLocalPepperFlash:function(){return y},lookAtDevice:function(){o()}}}()}(this,Modernizr,TSC.mediaMimeType),function(e,t,n){e.TSC=e.TSC||{},e.TSC.playerConfiguration=function(){"use strict";function e(e){var t=e.replace(/’/g,"'");return t}function i(e){return/[^\u0000-\u00ff]/.test(e)}var a,r,o,s,u,c,l,d,f,p,g,h="13.0.0",m=[],v="'playerProductInstall.swf",S="tsc_player.swf",A="100%",b="100%",C=0,T="stop",E=!0,w=!0,y=!1,I=-1,N=!1,M=!1,R="left",k="#000",P=!1,x=!1,L=!0,Q=!1,B=!0,D=!0,_=!1,O=!1,G=!1,z=!0,V=!0,q=!1,F=!1,H=!1,U=!1,W=".",J=!1,j="",Y=!0,Z=!1,K=!1,X=!1,$=void 0,et="";return{isIEOnServerWithUnicode:function(){return 1==t.isIE()&&1==TSC.playerConfiguration.runOnServer()&&x},runOnServer:function(){var e=!1,t=document.location.href;return 0==t.indexOf("http")&&(e=!0),e},getUnicodeSafeString:function(e){return void 0===e?e:x?1==t.isIE()?TSC.playerConfiguration.runOnServer()?i(e)?encodeURI(e):e:decodeURI(e):encodeURI(e):e},getMediaSrc:function(){return m.length>0?m[0]:""},clearMediaSrc:function(){m=[]},setMediaSrc:function(t){m[0]=e(t)},addMediaSrc:function(t){m.push(e(t))},getMediaSources:function(){return m},getMediaFileName:function(){var e,t=m.length>0?m[0]:void 0;if(t){var n=t.split("/");e=n[n.length-1],e=e.split("?")[0],(void 0===e||""===e)&&(e="Unnamed Media")}else e="No Media";return e},getXMPSrc:function(){return TSC.playerConfiguration.getUnicodeSafeString(a)},setXMPSrc:function(t){a=e(t)},setSwfBase:function(t){W=e(t)},getSwfBase:function(){return W},getConfigurationSrc:function(){return TSC.playerConfiguration.getUnicodeSafeString(r)},setConfigurationSrc:function(e){r=e},getPosterImageSrc:function(){return TSC.playerConfiguration.getUnicodeSafeString(o)},setPosterImageSrc:function(e){o=e},getTOCSpriteSrc:function(){return TSC.playerConfiguration.getUnicodeSafeString(s)},setTOCSpriteSrc:function(e){s=e},getUnableToDisplayContentString:function(){return n.getString("videoNotSupported")},getFlashUpdateBootstrapSwf:function(){return v},setFlashUpdateBootstrapSwf:function(e){v=e},getFlashPlayerSwf:function(){return S},setFlashPlayerSwf:function(t){S=e(t)},getPlayerWidth:function(){return A},setPlayerWidth:function(e){A=e},getPlayerHeight:function(){return b},setPlayerHeight:function(e){b=e},getMediaRotation:function(){return C},setMediaRotation:function(e){C=e},getEndActionType:function(){return T},setEndActionType:function(e){T=e},getEndActionParam:function(){return E},setEndActionParam:function(e){E=e},getIsSearchable:function(){return w},setIsSearchable:function(e){w=e},getAutoPlayMedia:function(){return y},setAutoPlayMedia:function(e){y=e},getAllowRewind:function(){return I},setAllowRewind:function(e){I=e},getCaptionsEnabled:function(){return N},setCaptionsEnabled:function(e){N=e},getSidebarEnabled:function(){return M},setSidebarEnabled:function(e){M=e},getSidebarLocation:function(){return R},setSidebarLocation:function(e){R=e},getBackgroundColor:function(){return k},setBackgroundColor:function(e){k=e},getMinFlashPlayerVersion:function(){return h},setDebugHotspot:function(e){P=e},getDebugHotspot:function(){return P},setAutoHideControls:function(e){L=e},getAutoHideControls:function(){return L},setProcessUnicodeNames:function(e){x=e},getProcessUnicodeNames:function(){return x},setReportScormComplete:function(e){Q=e},getReportScormComplete:function(){return Q},setEnforceLinearAssessment:function(e){B=e},getEnforceLinearAssessment:function(){return B},setDisableFullframeMode:function(e){D=e},getDisableFullframeMode:function(){return D},getDisableControls:function(){return _},setDisableControls:function(e){_=e},getMobileWebViewCanAutoPlay:function(){return O},setMobileWebViewCanAutoPlay:function(e){O=e},setGoogleAnalyticsID:function(e){u=e},getGoogleAnalyticsID:function(){return u},setGAPageViewTracking:function(e){z=e},getGAPageViewTracking:function(){return z},setGAEventTracking:function(e){V=e},getGAEventTracking:function(){return V},useCustomEventTracking:function(e,t){q=e,c=t},getTrackEvents:function(){return q||void 0!==u},getCustomEventTracking:function(){return q},getCustomEventCallback:function(){return c},setAltEventCategoryAsFilename:function(e){F=e},getAltEventCategoryAsFilename:function(){return F},setAltLoadTimeAsSeconds:function(e){H=e},getAltLoadTimeAsSeconds:function(){return H},setAdvancedSeeking:function(e){G=e},getAdvancedSeeking:function(){return G},setTechSmithAccessToken:function(e){d=e,J=!0},getTechSmithAccessToken:function(){return d},getIsUserIdentified:function(){return J},setJumpToTime:function(e){l=e},getJumpToTime:function(){return l},setDebugUIMode:function(e){U=e},getDebugUIMode:function(){return U},setFathomId:function(e){f=e},getFathomId:function(){return f},setAdditionalAppQueryParamsFromJson:function(e){var t="";for(var n in e)t+="&"+n+"="+e[n];j=t},getAdditionalAppQueryString:function(){return j},setScormStartPt:function(e){g=e},getScormStartPt:function(){return g},setEmbedIFrameId:function(e){p=e},getEmbedIFrameId:function(){return p},setUseSlimAppSplashScreen:function(e){Y=e},getUseSlimAppSplashScreen:function(){return Y},saveConfigurationFromQueryString:function(e){if(e instanceof Array){var t,n,i=e.length;for(t=0;i>t;t++)if(n=e[t].split("="),2===n.length)switch(n[0].toLowerCase()){case"embediframeid":p=n[1];break;case"t":l=n[1];break;case"forceflash":"true"===n[1].toLowerCase()?Z=!0:"false"===n[1].toLowerCase()&&(Z=!1);break;case"forcehtml5":"true"===n[1].toLowerCase()?K=!0:"false"===n[1].toLowerCase()&&(K=!1);break;case"autoplay":"true"===n[1].toLowerCase()?y=!0:"false"===n[1].toLowerCase()&&(y=!1);break;case"autohidecontrols":"true"===n[1].toLowerCase()?L=!0:"false"===n[1].toLowerCase()&&(L=!1)}}},setForceFlashPlayer:function(e){Z=e},getForceFlashPlayer:function(){return Z},setForceHtml5Player:function(e){K=e},getForceHtml5Player:function(){return K},setPrioritizeFullScreen:function(){},getShowYouTubeAnnotations:function(){return X},setShowYouTubeAnnotations:function(e){X=e},getPreRollSrc:function(){return $},setPreRollSrc:function(e){$=e},getContentType:function(){return et},setContentType:function(e){et=e}}}()}(this,TSC.deviceInfo,TSC.localizationStrings),function(e){e.TSC=e.TSC||{},e.TSC.textSanitizer=function(){"use strict";return{htmlEncode:function(e,t){return e?t?e.replace(/&/g,"&").replace(/(<|&lt;)/g,"<").replace(/(>|&gt;)/g,">").replace(/&amp;/g,"&"):e.replace(/&/g,"&").replace(/("|&quot;)/g,""").replace(/(<|&lt;)/g,"<").replace(/(>|&gt;)/g,">").replace(/&amp;/g,"&"):e}}}()}(this),function(e){e.TSC=e.TSC||{},e.TSC.questionType=function(){"use strict";return{FILL_IN:"FITB",CHOICE:"MC",SHORT:"SHORT"}}()}(this),function(e){e.TSC=e.TSC||{},e.TSC.reportType=function(){"use strict";var e="NONE",t="API",n="SCORM",i="APIANDSCORM";return{NONE:e,API:t,SCORM:n,APIANDSCORM:i,isValid:function(a){return a===e||a===t||a===n||a===i}}}()}(this),function(e,t,n){e.TSC=e.TSC||{},e.TSC.quizModel=function(){"use strict";function e(){v=[];for(var e=C.length,t=0,n=0,i=0;e>i;i++)C[i].complete===!1&&(t=C[i].mediaTimeCode-T,t=0>t?0:t,n=C[i].mediaTimeCode+E,v.push({quesitonSetId:i,rangeStart:t,rangeEnd:n,time:C[i].mediaTimeCode}))}function i(){var e={};e.quizId=p,e.lang=y,e.projectName=d,e.productionName=c,e.originId=l,e.mediaDuration=w,e.reportRecipients=[g],e.questionSets=[];for(var t,n,i,a=C.length,r=0;a>r;r++){e.questionSets.push({name:C[r].questionSetTitle,mediaTimePosition:C[r].mediaTimeCode,order:Number(r)+1,questions:[]}),t=C[r].questions.length;for(var o=0;t>o;o++){i=[],n=C[r].questions[o].choices.length;for(var s=0;n>s;s++)i.push(C[r].questions[o].choices[s]);e.questionSets[r].questions.push({type:C[r].questions[o].type,id:C[r].questions[o].id,questionText:C[r].questions[o].text,choices:i,correctAnswer:C[r].questions[o].correctAnswer})}}return JSON.stringify(e)}function a(e){var t={};t.quizId=p,t.order=e+1,t.questions=[];for(var i,a=C[e].questions.length,r=0;a>r;r++)i=C[e].questions[r].type===n.CHOICE&&"0"===C[e].questions[r].correctAnswer?{type:C[e].questions[r].type,id:C[e].questions[r].id,duration:C[e].questions[r].duration,response:C[e].questions[r].response,segmentWatched:C[e].percentOfVideoSegmentWatched}:{type:C[e].questions[r].type,id:C[e].questions[r].id,duration:C[e].questions[r].duration,response:C[e].questions[r].response,correct:C[e].questions[r].isResponseCorrect,segmentWatched:C[e].percentOfVideoSegmentWatched},t.questions.push(i);return JSON.stringify(t)}function r(e,t){return C[e]&&C[e].questions[t]?!0:!1}function o(e){for(var t=0,n=C[e],i=n.questions.length,a=0;i>a;a++){var r=n.questions[a];r.isQuestionGraded&&t++}return t}function s(e){for(var t=0,n=C[e],i=n.questions.length,a=0;i>a;a++){var r=n.questions[a];r.isQuestionGraded&&r.isResponseCorrect&&t++}return t}function u(e,t,i){if(e===n.CHOICE){if(t&&t>0)return!0}else{if(e!==n.FILL_IN)return!1;if(i.length>0)return!0}}var c,l,d,f,p,g,h,m,v,S=t.NONE,A=!0,b=!1,C=[],T=250,E=100,w=0,y="",I=2e3,N=!0,M=!1;return{clearAllQuestions:function(){C=[]},getQuizDefinition:function(){return i()},getUseQuizApi:function(){return S===t.API||S===t.APIANDSCORM},getUseScorm:function(){return S===t.SCORM||S===t.APIANDSCORM},getDisplayFeedback:function(e){return C[e].displayFeedback},setQuizTitle:function(e){f=e},getQuizTitle:function(){return f},setProductionMetadata:function(e,t,n){c=t,l=n,d=e},setQuizID:function(e){p=e},getQuizID:function(){return p},setAuthoredEmail:function(e){g=e},getAuthoredEmail:function(){return g},setClientId:function(e){h=e},getClientId:function(){return h},setQuizHash:function(e){m=e},getQuizHash:function(){return m},setMediaDuration:function(e){w=e},setReportMethod:function(e){t.isValid(e)&&(S=e)},getReportMethod:function(){return S},setRequireUserId:function(e){A=e},getRequireUserId:function(){return A},setHideReplay:function(e){b=e},getHideReplay:function(){return b},setAllowSkipQuiz:function(e){N="0"===e||e===!1?!1:!0},getAllowSkipQuiz:function(){return N},setLocale:function(e){y=e},getLocale:function(){return y},setQuestionSetComplete:function(t){t>=0&&C.length>t&&(C[t].complete=!0,e())},getQuestionSetMarkerTimes:function(){return v||e(),v},numberQuestionSets:function(){return C.length},numberQuestionsInSet:function(e){return void 0===C[e]?-1:C[e].questions.length},addQuestionSet:function(e,t,n){return C.push({questions:[],questionSetTitle:e,mediaTimeCode:t,displayFeedback:n,complete:!1,percentOfVideoSegmentWatched:0}),C.length-1},addQuestion:function(e,t,i,a,r,o){if(void 0!==C[e]){var s=u(t,o,r);(t===n.FILL_IN||t===n.SHORT)&&(M=!0),C[e].questions.push({type:t,id:i,text:a,choices:r,correctAnswer:o,isQuestionGraded:s,response:"",isResponseCorrect:!1,duration:0})}},getQuestionSetTitle:function(e){return e>=0&&C.length>e?C[e].questionSetTitle:""},getQuestionSetMarkerTime:function(e){return e>=0&&C.length>e?C[e].mediaTimeCode:-1},getQuestionType:function(e,t){return r(e,t)?C[e].questions[t].type:void 0},getQuestionApiId:function(e,t){return r(e,t)?C[e].questions[t].id:void 0},getQuestionText:function(e,t){return r(e,t)?C[e].questions[t].text:void 0},getQuestionChoices:function(e,t){return r(e,t)?C[e].questions[t].choices:void 0},getQuestionAnswer:function(e,t){return r(e,t)?C[e].questions[t].correctAnswer:void 0},setQuestionAnswer:function(e,t,n){C[e].questions[t].correctAnswer=n},setQuestionResponse:function(e,t,n){C[e].questions[t].response=n},getQuestionResponse:function(e,t){return r(e,t)?C[e].questions[t].response:void 0},getIsResponseCorrect:function(e,t){return r(e,t)?C[e].questions[t].isResponseCorrect:void 0},setIsResponseCorrect:function(e,t,n){C[e].questions[t].isResponseCorrect=n},getMinMarkerTimeDiff:function(){return I},getIsQuestionGraded:function(e,t){return r(e,t)?C[e].questions[t].isQuestionGraded:void 0},setIsQuestionGraded:function(e,t,n){C[e].questions[t].isQuestionGraded=n},getPreviousMarkerTimeForMarker:function(e){var t,n=0;if(e>0)if(e>=C.length)n=C[C.length-1].mediaTimeCode;else for(var i=e-1;i>=0;i--)if(t=C[Number(i)+1].mediaTimeCode-C[i].mediaTimeCode,t>=I){n=C[i].mediaTimeCode;break}return n},updatePercentageWatchedForQuestionSet:function(e,t){C[e].percentOfVideoSegmentWatched=t},addDurationToQuestion:function(e,t,n){C[e].questions[t].duration+=n},getApiDataForQuestionSet:function(e){return a(e)},getNumberOfCorrectInQuestionSet:function(e){return s(e)},getTotalNumberOfGradableInQuestionSet:function(e){return o(e)},getTotalNumberOfGradedQuestionSets:function(){for(var e=0,t=C.length,n=0;t>n;n++)o(n)>0&&e++;return e},getTotalNumberOfUngradableInQuestionSet:function(e){if(0>e||e>=C.length)return void 0;for(var t,n=0,i=C[e],a=i.questions.length,r=0;a>r;r++)t=i.questions[r],t.isQuestionGraded||n++;return n},getScormScore:function(){for(var e=0,t=0,n=C.length,i=0;n>i;i++)e+=o(i),t+=s(i);var a=100*(t/e);return a},getLastQuestionComplete:function(e){void 0===e&&(e=-1);for(var t=0,n=C.length,i=!0,a=0;n>a;a++)t=o(a),t>0&&C[a].complete===!1&&a!==e&&(i=!1);return i},quizContainsTextInputQuestions:function(){return M}}}()}(this,TSC.reportType,TSC.questionType),function(e,t,n,i,a,r){e.TSC=e.TSC||{},e.TSC.quizService=function(){"use strict";function e(){P=200,S&&S.call()}function o(e){P=200;var t;y?(x="mock_id",D=!0,t=15e3):(x=e.Id,D=e.DefinitionRequired,t=e.SampleRate),m&&m.call(this,x,D,t)}function s(e,t,n,i,r){t=JSON.stringify(t),a.isIE()&&9==a.getIEVersion()?u(e,t,n,i,r):c(e,t,n,i,r)}function u(e,t,n,i,a){var o=function(){if(n>0)setTimeout(function(){u(e,t,--n,i,a)},G);else if(a)try{c.responseText?a.call(JSON.parse(c.responseText)):a()}catch(r){throw"Quiz-service: JSON Parse failed on errorCallback inside sendXdrMessage() with text: "+c.responseText}},s=function(){r.logException("quiz-service: sendXdrMessage() failed after the server responded with an error."),o()},c=new XDomainRequest;c.timeout=_,c.open("post",e),c.onprogress=function(){},c.ontimeout=o,c.onerror=s,c.onload=function(){if(i)try{i(JSON.parse(c.responseText),n)}catch(e){throw"Quiz-service: JSON Parse failed on successCallback inside sendXdrMessage() with text: "+c.responseText}},setTimeout(function(){c.send(t)},0)}function c(e,n,i,a,o){var s=function(t){i>0?setTimeout(function(){c(e,n,--i,a,o)},G):o&&o(t)},u=function(e){r.logException("quiz-service: sendAjaxMessage() failed with server response: "+e.statusText+" : "+e.status),s()};t.ajax({url:e,type:"POST",data:n,contentType:"application/json",crossDomain:!0,timeout:_,error:function(e){"timeout"==e.statusText?s(e):u(e)},success:function(e){a&&a(e,i)}})}function l(e,t,n,i,a){if(y)return setTimeout(o,1e3),void 0;var u=k[B].url+N,c={QuizId:e};a.getIsUserIdentified()?c.AccessToken=a.getTechSmithAccessToken():(c.FirstName=t?t:"",c.LastName=n?n:"",c.Email=i?i:"");var l=function(e){r.logMessage("quiz-service: startQuizInstance() failed after "+O+" retries."),A(e)},d=function(e,t){t&&O>t&&r.logMessage("quiz-service: startQuizInstance() succeded after "+(O-t)+" retries."),o(e)};s(u,c,O,d,l)}function d(t,n,i){if(t){if(y)return setTimeout(e,1e3),void 0;var a=k[B].url+I+"?Quiz-Checksum="+n+"&Quiz-ClientId="+i+"&noop=1",o={DefinitionText:t},u=function(e){r.logMessage("quiz-service: sendQuizDefinitionToApi() failed after "+O+" retries."),A(e)},c=function(t,n){n&&O>n&&r.logMessage("quiz-service: sendQuizDefinitionToApi() succeded after "+(O-n)+" retries."),e(t)};s(a,o,O,c,u)}}function f(e,t){L=e,Q=t;var n=1,i=G;if(y){var a={0:{isCorrect:!0},1:{isCorrect:!0},2:{isCorrect:!0,correctAnswer:2}};return setTimeout(function(){t(a)},1e3),void 0}var o=function(){n++,V>i&&(i+=z,i>V&&(i=V)),b&&b(),setTimeout(function(){s(c,l,0,u,o)},i)},u=function(e){1!=n&&r.logMessage("quiz-service: sendQuestionSet() succeded after "+n+" retries."),C&&C(),t(e.results)},c=k[B].url+M,l={ResponseText:e};s(c,l,0,u,o)}function p(e,t){if(!y){if(!x){var n=m;return m=function(){p(e,t),n&&n()},void 0}if(t){var i=k[B].url+R,a={InstanceId:x,Interval:e,ViewedSegments:t};s(i,a,0,null,null)}}}function g(e){var t='';t+='';for(var a=e.questions.length,r=0;a>r;r++)t+='',t+=""+e.questions[r].duration+"",t+=""+n.htmlEncode(e.questions[r].response)+"",e.questions[r].type!==i.SHORT&&void 0!==e.questions[r].correct&&(t+=""+(e.questions[r].correct?"True":"False")+""),t+=""+e.questions[r].segmentWatched+"",t+="";return t+=""}function h(e){var t,a,r,o,s,u,c='';for(c+='',c+=""+n.htmlEncode(e.projectName)+"",c+=""+e.productionName+"",c+=""+e.originId+"",c+=""+e.mediaDuration+"",c+="",t=0;e.reportRecipients.length>t;t++)c+=""+e.reportRecipients[t]+"";for(c+="",c+="",o=e.questionSets.length,t=0;o>t;t++){for(c+='',s=e.questionSets[t].questions.length,a=0;s>a;a++){if(c+='',c+=""+n.htmlEncode(e.questionSets[t].questions[a].questionText,!0)+"",e.questionSets[t].questions[a].type===i.CHOICE){for(c+="",u=e.questionSets[t].questions[a].choices.length,r=0;u>r;r++)c+=""+n.htmlEncode(e.questionSets[t].questions[a].choices[r],!0)+"";c+="",c+=""+e.questionSets[t].questions[a].correctAnswer+""}else if(e.questionSets[t].questions[a].type===TSC.questionType.FILL_IN){for(c+="",u=e.questionSets[t].questions[a].choices.length,r=0;u>r;r++)c+=""+n.htmlEncode(e.questionSets[t].questions[a].choices[r],!0)+"";c+=""}c+=""}c+=""}return c+="",c+=""}var m,v,S,A,b,C,T,E,w=1,y=!1,I="v/1/quiz/definition",N="v/1/quiz/instance?noop=1",M="v/1/quiz/response?noop=1",R="v/1/quiz/progress?noop=1",k=[];k.push({label:"Local",url:"https://quiz.techsmith.localhost:11443/"}),k.push({label:"Dev",url:"https://quiz.cloud.tsc-dev.co/"}),k.push({label:"Stage",url:"https://quiz.cloud.tsc-stage.co/"}),k.push({label:"Live",url:"https://quiz.cloud.techsmith.com/"}),k.push({label:"TE",url:"https://quizzingtest2.cloud.tsc-dev.co/"});var P,x,L,Q,B=3,D=!1,_=5e3,O=2,G=0,z=2e3,V=2e4-_;return t.support.cors=!0,{setEnvironment:function(e){B=e},getEnvironment:function(){return B},getLastAttemptStatus:function(){return P},startQuizInstance:function(e,t,n,i,a){T&&T(),l(e,t,n,i,a)},submitQuizDefinition:function(e,n,i){"string"==typeof e&&(e=t.parseJSON(e));var a=h(e);return d(a,n,i),a},submitQuestionSet:function(e,n){var i="";return x&&("string"==typeof e&&(e=t.parseJSON(e)),i=g(e),f(i,n)),i},sendProgress:function(e,t){p(e,t)},addEventListener:function(e,t){"START_INSTANCE_COMPLETE"===e?m=t:"SEND_DEFINITION_COMPLETE"===e?S=t:"NEED_DEFINITION"===e?v=t:"ERROR"===e?A=t:"SHOW_SUBMISSION_RETRY_MESSAGE"===e?b=t:"HIDE_SUBMISSION_RETRY_MESSAGE"===e?C=t:"SHOW_LOADING_MESSAGE"===e?T=t:"HIDE_LOADING_MESSAGE"===e&&(E=t)},removeEventListener:function(e){"START_INSTANCE_COMPLETE"===e?m=void 0:"SEND_DEFINITION_COMPLETE"===e?S=void 0:"NEED_DEFINITION"===e?v=void 0:"ERROR"===e?A=void 0:"SHOW_SUBMISSION_RETRY_MESSAGE"===e?A=void 0:"HIDE_SUBMISSION_RETRY_MESSAGE"===e?A=void 0:"SHOW_LOADING_MESSAGE"===e?T=void 0:"HIDE_LOADING_MESSAGE"===e&&(E=void 0)}}}()}(this,jQuery,TSC.textSanitizer,TSC.questionType,TSC.deviceInfo,TSC.log),function(e,t,n,i,a){e.TSC=e.TSC||{},e.TSC.fathomParser=function(){"use strict";function e(e){var n,r,o,s,u,c,l,d,f=-1,p=!1,g=[];a.clearAllQuestions(),t(e).find("*").filterNode("rdf:Description").each(function(){var e=t(this).attr("tscIQ:questionSetName");if(e){e=i.htmlEncode(e),p&&(a.addQuestion(f,n,o,s,g,c),p=!1,s=void 0,o=void 0,g=[],c=void 0);var h="1"===t(this).attr("tscIQ:feedback"),m=Number(t(this).attr("xmpDM:startTime"));f=a.addQuestionSet(e,m,h)}else r=t(this).attr("tscIQ:type"),r?(p&&(a.addQuestion(f,n,o,s,g,c),p=!1,p=!1,s=void 0,o=void 0,g=[],c=void 0),o=t(this).attr("tscIQ:id"),n=r,l=t(this).children(),s=i.htmlEncode(t(l[0]).text(),!0),c=i.htmlEncode(t(l[1]).text(),!0),p=!0):(u=t(this).attr("tscIQ:orderId"),u&&(l=t(this).children(),d=t(l[0]).text(),d&&g.push(i.htmlEncode(d,!0))))}),p&&a.addQuestion(f,n,o,s,g,c)}var r,o;return{parseFathom:function(i){var s,u,c=t(i).find("*").eq(2),l=c.attr("dc:title"),d=c.attr("tscDM:originId"),f=c.attr("tscDM:project"),p=t(i).find("*").length;for(r=!1,s=4;p>s;s++)if("xmpDM:Tracks"===t(i).find("*").eq(s)[0].nodeName){u=t(i).find("*").eq(s).children();break}for(var g,h=t(u).find("*").length,m=0;h>m;m++){var v=t(u).find("*").eq(m);if(g=v.attr("xmpDM:trackType"),void 0!==g)switch(g.toLowerCase()){case"quiz":if(a){r=!0;var S=t(v).attr("tscIQ:quizGuid"),A=t(v).attr("tscIQ:reportMethod"),b="1"===t(v).attr("tscIQ:requireUserId"),C="1"===t(v).attr("tscIQ:hideReplay"),T=t(v).attr("tscIQ:authoredEmail"),E=t(v).attr("tscIQ:clientId"),w=t(v).attr("tscIQ:quizHash"),y=t(v).attr("tscIQ:locale");y||(y=n.ENGLISH),a.setLocale(y),a.setProductionMetadata(f,l,d),a.setQuizTitle(l),a.setQuizID(S),a.setReportMethod(A),a.setRequireUserId(b),a.setHideReplay(C),a.setAuthoredEmail(T),a.setClientId(E),a.setQuizHash(w)}o=t(v),m+=o.find("*").length}}r&&e(o)}}}()}(this,jQuery,TSC.languageCodes,TSC.textSanitizer,TSC.quizModel),function(e,t,n,i,a){e.TSC=e.TSC||{},e.TSC.fathomService=function(){"use strict";function e(){g&&g.call()}function r(){h&&h.call()}function o(t){n.parseFathom(t),e()}function s(){if(c)setTimeout(e,1e3);else{var t=d[f].url+l+p+"?noop=1";u(t,v)}}function u(e,n){var s=function(){n>0?setTimeout(function(){u(e,--n)},S):(a.logMessage("fathom-service: getFathom() failed after "+v+" retries."),r())},c=function(e){e&&e.statusText?a.logException("fathom-service: sendRequest() Ajax message failed with server response: "+e.statusText+" : "+e.status):a.logException("fathom-service: sendRequest() XDR message failed after the server responded with an error."),s()},l=function(){v>n&&a.logMessage("fathom-service: getFathom() succeeded after "+(v-n)+" retries.")};if(i.isIE()&&9==i.getIEVersion()){var d=new XDomainRequest;d.timeout=m,d.onprogress=function(){},d.ontimeout=s,d.onerror=c,d.onload=function(){l();var e=new ActiveXObject("Microsoft.XMLDOM");e.loadXML(d.responseText),o(e)},d.open("GET",e),setTimeout(function(){d.send()},0)}else t.ajax({type:"GET",url:e,crossDomain:!0,timeout:m,success:function(e){l(),o(e)},error:function(e){"timeout"==e.statusText?s():c(e)}})}var c,l,d,f,p,g,h,m,v,S;return c=!1,l="/Assessment/Xmp/",d=[],d.push({label:"Local",url:"https://results.localhost:444"}),d.push({label:"Dev",url:"https://results.cloud.tsc-dev.co"}),d.push({label:"Stage",url:"https://results.tsc-stage.co"}),d.push({label:"Live",url:"https://results.techsmith.com"}),d.push({label:"TE",url:"https://fathomtest2.cloud.tsc-dev.co"}),f=3,m=5e3,v=2,S=0,{setEnvironment:function(e){isNaN(e)||0>e||e>d.length-1||(f=e)},getEnvironment:function(){return f},getFathom:function(e){p=e,s()},addEventListener:function(e,t){"GET_COMPLETE"===e?g=t:"ERROR"===e&&(h=t)},removeEventListener:function(e){"GET_COMPLETE"===e?g=void 0:"ERROR"===e&&(h=void 0)}}}()}(this,jQuery,TSC.fathomParser,TSC.deviceInfo,TSC.log),function(e,t){e.TSC=e.TSC||{},e.TSC.progressTracker=function(){var n,i,a=!1,r=!1,o=15e3,s=500,u=1e3,c=function(e){var t=e.length;if(1>t)return[];var n,i=[{start:1e3*e.start(0),end:1e3*e.end(0)}],a=0;for(n=1;t>n;n++)i[a].end>=1e3*e.start(n)-s?i[a].end=1e3*e.end(n):(i.push({start:1e3*e.start(n),end:1e3*e.end(n)}),a++);return i},l=function(e){var n,a,r,s,l,d,f,p,h,m=[],v=1e3*e.duration;for(h=c(e.played),n=0;h.length>n;n++)if(r=h[n].start,s=h[n].end,l=u>v-1e3*e.currentTime,!(!l&&o>s-r||(d=Math.floor(r/o),0!=r%o&&(d+=1),f=Math.floor(s/o),l||(f-=1),d>f)))for(a=d;f>=a;a++)m.push(a);t.sendProgress(o,m),p=m.length===Math.ceil(v/o),p&&(g(),e.removeEventListener("play",i,!1))},d=function(e){var t=function(){p(e),g()};e.addEventListener("ended",t,!1),a=!0},f=function(e){i=function(){-1==n&&h(e)},e.addEventListener("play",i,!1),r=!0},p=function(e){e&&(a||d(e),r||f(e),l(e))},g=function(){-1!==n&&(e.clearInterval(n),n=-1)},h=function(t){var i=function(){p(t),t.paused&&(e.clearInterval(n),n=-1)};n=e.setInterval(i,o)},m=function(e,t){a=!1,r=!1,o=t,g(),h(e)};return{start:m}}()}(window,TSC.quizService),function(e,t){e.TSC=e.TSC||{},e.TSC.BubbleView=function(n){"use strict";var i=10,a=48,r=22,o=8,s=45,u=n,c="#tsc_overlay",l=".chat-bubble-arrow-border",d=".chat-bubble-arrow",f='
';return{showView:function(){t(u).css("opacity",1),t(c).css("opacity",.7)},hideView:function(){t(u).css("opacity",0),t(c).css("opacity",0)},updateViewPosition:function(){t(u).css("bottom",a+"px")},removeView:function(e,n){t(u).animate({opacity:0},200,function(){t(u).remove(),void 0!==e&&e.call()}),n&&t(c).remove()},getOverlayMarkup:function(){return f},setBottomOffset:function(e){a=e},pointAt:function(n){var a,c,f=e.innerWidth,p=t(u).outerWidth(!0),g=.5*p,h=t(l).css("border-top-width").replace(/px/,""),m=r;0>n-(g+i)?(a=i,c=n-i-h):n+g+i>f?(a=f-(p+i),c=n-a-h):(a=n-g,c=g-h),t(u).css("left",a),t(l).css("left",c),t(d).css("left",c),s>n&&(m=o),t(u).css("border-bottom-left-radius",m+"px"),t(u).css("-webkit-border-bottom-left-radius",m+"px")}}}}(this,jQuery),function(e,t,n,i){e.TSC=e.TSC||{},e.TSC.quizSetupView=function(){"use strict";var e;if(!n||!n.quiz_setup_template)throw Error("quizSetupView: Quiz Setup Template not found.");e=n.quiz_setup_template;var a="#tsc_quiz_setup_container",r="#tsc_begin_button",o="#skip_control",s="#first_name",u="#last_name",c="#email_address",l=function(){var e=t(s).val().replace(/ /g,""),n=t(u).val().replace(/ /g,""),i=t(c).val().replace(/ /g,"");""!==e&&""!==n&&""!==i&&d(i)?t(r).removeAttr("disabled"):t(r).attr("disabled","disabled")},d=function(e){var t=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.test(e)};return{getViewMarkup:function(t,n,a,r,o,s){var u={setupMessage:t,firstNamePlaceholder:n,lastNamePlaceholder:a,emailPlaceholder:r,beginButtonText:o,skipControlText:s};return i.isNuevoApp()||(u.useAutofocus=!0),e(u)},getBeginControlRef:function(){return r},getSkipControlRef:function(){return o},getFirstName:function(){return t(s).val()},getLastName:function(){return t(u).val()},getEmail:function(){return t(c).val()},showView:function(){t("input").bind("keyup",l),t("input").bind("change",l),t(a).css("opacity",0),t(a).animate({opacity:1},300),i&&(i.isIE()&&t(a+" label").css("display","block"),i.isNuevoApp()||t(s).focus())},hideView:function(){t(a).animate({opacity:0},300)},removeView:function(e){t("input").unbind("keyup",l),t("input").unbind("change",l),t(a).animate({opacity:0},200,function(){void 0!==e&&e.call(),t(a).remove()})}}}()}(this,jQuery,TSC.templates,TSC.deviceInfo),function(e,t,n){e.TSC=e.TSC||{},e.TSC.questionSetConfirmationView=function(){"use strict";var e,i=new n("#tsc_confirmation_container"),a="#tsc_review_control",r="#tsc_confirm_control";if(!t||!t.question_set_confirmation_template)throw Error("questionSetConfirmationView: Question Set Confirmation Template not found."); return e=t.question_set_confirmation_template,{getViewMarkup:function(t,n){var a={reviewText:t,confirmationText:n};return e(a)+i.getOverlayMarkup()},getReviewControlRef:function(){return a},getConfirmControlRef:function(){return r},showView:i.showView,removeView:i.removeView,updateViewPosition:i.updateViewPosition,setBottomOffset:i.setBottomOffset,pointAt:i.pointAt}}()}(this,TSC.templates,TSC.BubbleView),function(e,t,n,i){e.TSC=e.TSC||{},e.TSC.questionSetReviewStatusView=function(){"use strict";var e,a,r,o="#tsc_quiz_container",s=new n(o),u="#tsc_view_answers_button",c="#tsc_hide_answers_button";if(!t||!t.question_set_review_status_template)throw Error("questionSetReviewStatusView: Question Set Review Status Template not found.");return e=t.question_set_review_status_template,{setGradeableDetails:function(e){a=e},setUngradeableDetails:function(e){r=e},getViewMarkup:function(){var t={gradeableDetails:a,unGradeableDetails:r,txtAnswersSubmitted:i.getString("accessBtnAnswersSubmitted"),txtViewAnswers:i.getString("accessBtnShowAnswer"),txtHideAnswers:i.getString("accessBtnHideAnswer")};return e(t)+s.getOverlayMarkup()},getHideAnswersControlRef:function(){return c},getShowAnswersControlRef:function(){return u},showView:function(){$(o).removeClass("minimized"),s.showView()},hideView:function(){$(o).addClass("minimized"),s.hideView()},removeView:s.removeView,updateViewPosition:s.updateViewPosition,setBottomOffset:s.setBottomOffset,pointAt:s.pointAt}}()}(this,TSC.templates,TSC.BubbleView,TSC.localizationStrings),function(e,t,n,i,a,r,o){e.TSC=e.TSC||{},e.TSC.questionSetView=function(){"use strict";var s,u,c,l,d,f,p="#tsc_quiz_container";if(!n||!n.question_set_template)throw Error("questionSetView: Question Set Template not found.");if(s=n.question_set_template,!n||!n.question_count_template)throw Error("questionSetView: Question Count Template not found.");if(u=n.question_count_template,!n||!n.question_text_template)throw Error("questionSetView: Question Text Template not found.");if(c=n.question_text_template,!n||!n.choice_answer_template)throw Error("questionSetView: Multiple Choice Answer Template not found.");if(l=n.choice_answer_template,!n||!n.fill_answer_template)throw Error("questionSetView: Fill In The Blank Answer Template not found.");if(d=n.fill_answer_template,!n||!n.short_answer_template)throw Error("questionSetView: Short Answer Template not found.");f=n.short_answer_template;var g="#tsc_previous_button",h="#tsc_next_button",m="#tsc_submit_button",v="#tsc_continue_button",S="#tsc_quiz_controls",A="#tsc_quiz_question_count",b="#tsc_question",C="#tsc_answers",T="#tsc_question_set_result_info",E=!1,w=new i(p),y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAG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App()&&(i=!1),e===o.CHOICE){r=l,s.answers=[],s.placeHolderImg=y;for(var c=t.length,p=0;c>p;p++)n&&p===Number(n)?s.answers.push({answerIndex:p,tabIndex:u,answer:t[p],isChecked:!0}):s.answers.push({answerIndex:p,tabIndex:u,answer:t[p]}),u++}else e===o.FILL_IN?(r=d,s.userResponse=n,i&&(s.useAutofocus="true")):e===o.SHORT&&(r=f,s.userResponse=n,i&&(s.useAutofocus="true"));return r(s)},P=function(e,t){var n={questionNumber:e,questionText:t};return c(n)},x=function(e,t,n){var i={currentQuestionNumber:e,totalQuestions:t,prepositionText:n};return u(i)},L=function(){if(!E){var n=t(e).height(),i=R>=n;if(i)t(C).css("max-height","");else{t(p).css("max-height","none"),t(C).css("max-height","none");var a,r=t(p).css("bottom").replace(/px/,""),o=t(p).height(),s=t("#tsc_quiz_controls").height(),u=14,c=10,l=20,d=3*c+c+2*l,f=t(b).height(),g=Number(r)+Number(o)+c+6;g>n&&(a=n-r-f-d-s-u,t(C).css("max-height",a+"px"))}}};return{setIsImageQuestion:function(e){E=e},getViewMarkup:function(e,t,n,i,a,r,o){var u={questionSetTitle:e,previousButtonName:t,nextButtonName:n,submitButtonName:i,continueButtonName:a,minimized:o,submittingImg:M},c=s(u);return r&&(c+=w.getOverlayMarkup()),c},configureControls:function(e,n,i,a){e.visible?(t(g).css("display","inline"),e.disabled?t(g).attr("disabled","disabled"):t(g).removeAttr("disabled")):t(g).css("display","none"),n.visible?(t(h).css("display","inline"),n.disabled?t(h).attr("disabled","disabled"):t(h).removeAttr("disabled")):t(h).css("display","none"),i.visible?(t(m).css("display","inline"),i.disabled?t(m).attr("disabled","disabled"):t(m).removeAttr("disabled")):t(m).css("display","none"),a.visible?(t(v).css("display","inline"),a.disabled?t(v).attr("disabled","disabled"):t(v).removeAttr("disabled")):t(v).css("display","none")},showControls:function(){"hidden"===t(S).css("visibility")&&(t(S).css("visibility","visible"),t(S).css("opacity",0),t(S).animate({opacity:1},300))},hideControls:function(){"visible"===t(S).css("visibility")&&t(S).css("visibility","hidden")},showResponse:function(e){t(C).css("opacity",0),t(C).stop().animate({opacity:1},400,function(){"autofocus"in document.createElement("input")||a.isNuevoApp()||(e===o.FILL_IN?t(C+" input")[0]&&t(C+" input")[0].focus():e===o.SHORT&&t(C+" textarea")[0]&&t(C+" textarea")[0].focus())}),e===o.CHOICE&&a.isTouchInterface()&&t(".tsc_multiple_choice").removeClass("active_quiz_item")},displayQuestion:function(e,n,i,a,r,o,s,u){t(A).html(x(a,o,r)),t(b).html(P(a,n)),t(C).html(k(e,i,s,!u)),L()},disableResponseUI:function(e){e===o.CHOICE?t(C+" input").attr("disabled",!0):e===o.FILL_IN?t(C+" input").attr("disabled",!0):e===o.SHORT&&t(C+" textarea").attr("disabled",!0)},showFeedback:function(e){t(T).html(e),t(T).show()},showResponseFillInFeedback:function(e){e?t(C).prepend(""):t(C).prepend(""),t(C+" img").css("opacity",0),t(C+" img").animate({opacity:1},200)},showResponseChoiceFeedback:function(e,n,i){i&&(t("label img").removeClass("feedback_placeholder"),Number(e)===Number(n)?(t(C+" label:eq("+e+") img").remove(),t(C+" label:eq("+e+")").prepend(""),t(C+" label:eq("+e+") img").css("opacity",0),t(C+" label:eq("+e+") img").animate({opacity:1},200)):(t(C+" label:eq("+e+") img").remove(),t(C+" label:eq("+n+") img").remove(),t(C+" label:eq("+n+")").prepend(""),t(C+" label:eq("+e+")").prepend(""),t(C+" label:eq("+e+") img").css("opacity",0),t(C+" label:eq("+e+") img").animate({opacity:1},200),t(C+" label:eq("+n+") img").css("opacity",0),t(C+" label:eq("+n+") img").animate({opacity:1},200))),t(C+" input").hide(),e&&t(C+" label:eq("+e+")").addClass("picked_quiz_item")},getPreviousControlsRef:function(){return g},getNextControlsRef:function(){return h},getSubmitControlsRef:function(){return m},getContinueControlsRef:function(){return v},getResponseLabelRef:function(){return C+" label"},getResponseInputRef:function(){return C+" input"},getResponseTextAreaRef:function(){return C+" textarea"},getResponseInputValue:function(){return r.htmlEncode(t(C+" input").val())},getResponseTextAreaValue:function(){var e=r.htmlEncode(t(C+" textarea").val().replace(/^[ \t]+|[ \t]+$/,""));if(a.isIE()){var n=t(C+" textarea").attr("maxlength");n&&e.length>n&&(e=e.substring(0,n))}return e},getResponseListSelectedIndex:function(){return t("input[name=tsc_multiple_choice]:checked").val()},showView:function(){t(p).removeClass("minimized"),L(),w.showView()},hideView:function(){t(p).addClass("minimized"),L(),w.hideView()},removeView:w.removeView,updateViewPosition:w.updateViewPosition,setBottomOffset:w.setBottomOffset,pointAt:function(e){w.pointAt(e),L()}}}()}(this,jQuery,TSC.templates,TSC.BubbleView,TSC.deviceInfo,TSC.textSanitizer,TSC.questionType),function(e,t,n){e.TSC=e.TSC||{},e.TSC.reviewAnswersConfirmationView=function(){"use strict";var e,i=new n("#tsc_review_confirmation_container");if(!t||!t.question_set_review_confirmation_template)throw Error("reviewAnswersConfirmationView: Review Answer Confirmation View Template not found.");e=t.question_set_review_confirmation_template;var a="#tsc_continue_control",r="#tsc_review_answers_control";return{getViewMarkup:function(t,n){var i={continueText:t,reviewAnswerText:n};return e(i)},getContinueControlRef:function(){return a},getReviewControlRef:function(){return r},showView:i.showView,removeView:i.removeView,updateViewPosition:i.updateViewPosition,setBottomOffset:i.setBottomOffset,pointAt:i.pointAt}}()}(this,TSC.templates,TSC.BubbleView),function(e){e.TSC=e.TSC||{},e.TSC.quizMarker=function(){"use strict";var e="#ffffff",t=3;return{setColor:function(t){e=t},getColor:function(){return e},setSize:function(e){t=e},getSize:function(){return t}}}()}(this),function(e,t){e.TSC=e.TSC||{},e.TSC.xmpGrader=function(){"use strict";var e=function(e,n,i,a){var r=e.getQuestionType(n,i);if(r===t.CHOICE){var o,s=e.getQuestionAnswer(n,i);o=isNaN(parseInt(a))?!1:1<0)}else if(r===t.FILL_IN){var u=a.toLowerCase(),c=e.getQuestionChoices(n,i),l=c?c.length:0;e.setIsQuestionGraded(n,i,l>0);for(var d=0;l>d;d++)if(u===c[d].toLowerCase()){e.setIsResponseCorrect(n,i,!0);break}}};return{gradeQuestionSet:function(t,n){for(var i=t.numberQuestionsInSet(n),a=0;i>a;a++){var r=t.getQuestionResponse(n,a);e(t,n,a,r)}},doesLocalGrading:!0}}()}(this,TSC.questionType),function(e){e.TSC=e.TSC||{},e.TSC.fathomGrader=function(){"use strict";return{processQuestionSetResults:function(e,t,n){for(var i=e.numberQuestionsInSet(t),a=0;i>a;a++){var r=e.getQuestionApiId(t,a),o=n[r];void 0!==o&&(e.setIsResponseCorrect(t,a,o.isCorrect),e.setQuestionAnswer(t,a,o.correctAnswer),e.setIsQuestionGraded(t,a,o.isGraded))}},doesLocalGrading:!1}}()}(this),function(e,t,n,i,a,r,o,s,u,c,l,d,f,p,g,h,m,v){e.TSC=e.TSC||{},e.TSC.quizController=function(){"use strict";var S,A,b,C,T,E,w,y,I,N,M,R,k,P,x,L,Q,B,D,_,O=0,G=0,z=0,V=0,q=7,F=0,H=!1,U=!0,W=!1,J=0,j=0,Y=!0,Z="",K=3e4,X=function(e){b=e,O=b.numberQuestionSets(),G=b.numberQuestionsInSet(0)},$=function(){E&&E.call(this,{type:"BEGIN"})},et=function(){w&&w.call(this,{type:"SKIP"})},tt=function(){b.getUseScorm()&&userSubmitToLMS&&userSubmitToLMS(b.getScormScore(),b.getLastQuestionComplete(V))},nt=function(){b.setQuestionSetComplete(V),V=-1},it=function(){C&&C.call(this,{type:"COMPLETE"})},at=function(){nt(),t(a.getPreviousControlsRef()).unbind("click",dt),t(a.getNextControlsRef()).unbind("click",ft),t(a.getSubmitControlsRef()).unbind("click",St),t(a.getContinueControlsRef()).unbind("click",at),a.removeView(it,!0),S=void 0},rt=function(e){if(!H)if(e===c.CHOICE){var t=a.getResponseListSelectedIndex();t&&b.setQuestionResponse(V,z,t)}else if(e===c.FILL_IN){var n=a.getResponseInputValue();n&&""!==n&&b.setQuestionResponse(V,z,n)}else if(e===c.SHORT){var i=a.getResponseTextAreaValue();i&&""!==i&&b.setQuestionResponse(V,z,i)}},ot=function(e){I&&(Z=e,I.call(this,{type:"STATUS",message:e}))},st=function(){N&&N.call(this,{type:"SUBMITTED"})},ut=function(){i.isNuevoApp()&&t(e).scrollTop(0)},ct=function(){var e=b.getQuestionType(V,z),i=b.getQuestionText(V,z),r=b.getQuestionChoices(V,z),o=b.getQuestionResponse(V,z);a.displayQuestion(e,i,r,Number(z+1),n.getQuestionCountPreposition(),G,o,H);var s=1!==G,u=H||z!==G-1,l=z===G-1&&!H,d=H&&!x,f=0===z,p=z===G-1;if(a.configureControls({visible:s,disabled:f},{visible:u,disabled:p},{visible:l,disabled:!1},{visible:d}),H)if(a.showResponse(),a.disableResponseUI(e),e===c.CHOICE){for(var g=a.getResponseListSelectedIndex(),h=b.getQuestionAnswer(V,z),m=-1,v=b.getQuestionChoices(V,z).length,S=0;v>S;S++)if(1<0),t(a.getResponseLabelRef()).removeClass("active_quiz_item")}else e===c.FILL_IN&&b.getIsQuestionGraded(V,z)&&a.showResponseFillInFeedback(b.getIsResponseCorrect(V,z));else a.showResponse(e),J=(new Date).getTime()},lt=function(){j=(new Date).getTime(),b.addDurationToQuestion(V,z,j-J)},dt=function(){var e=b.getQuestionType(V,z);rt(e),lt(),z--,ct()},ft=function(){var e=b.getQuestionType(V,z);rt(e),lt(),z++,ct()},pt=function(e,t,i){var a="";if(t>0){var r=1===e?"txtCorrectAnswer":"txtCorrectAnswers";a=n.getString(r),a=a.replace(/{{numberCorrect}}/,e)}if(i>0&&t>0){""!==a&&(a+=" ");var r=1===i?"txtUngradedQuestion":"txtUngradedQuestions";a+=n.getString(r),a=a.replace(/{{numberUngraded}}/,i)}return a},gt=function(){H=!0,G=b.numberQuestionsInSet(V);var e=a.getViewMarkup(b.getQuestionSetTitle(V),n.getString("txtPrev"),n.getString("txtNext"),n.getString("txtSubmit"),n.getString("txtContinue"));A.append(e),S=a,Pt(),Q&&S.pointAt(Q),t(a.getPreviousControlsRef()).bind("click",dt),t(a.getNextControlsRef()).bind("click",ft),t(a.getSubmitControlsRef()).bind("click",St),t(a.getContinueControlsRef()).bind("click",at);var i=b.getNumberOfCorrectInQuestionSet(V),r=b.getTotalNumberOfGradableInQuestionSet(V),o=b.getTotalNumberOfUngradableInQuestionSet(V),s=pt(i,r,o);x||""===s||a.showFeedback(s),z=0,ct(),a.showView(),a.updateViewPosition()},ht=function(){nt(),t(s.getContinueControlRef()).unbind("click",ht),t(s.getReviewControlRef()).unbind("click",mt),s.removeView(it,!0),S=void 0},mt=function(){t(s.getContinueControlRef()).unbind("click",ht),t(s.getReviewControlRef()).unbind("click",mt),s.removeView(gt,!1),S=void 0},vt=function(){var e=s.getViewMarkup(n.getString("txtContinue"),n.getString("txtReviewAnswer"));A.append(e),S=s,Pt(),Q&&S.pointAt(Q),t(s.getContinueControlRef()).bind("click",ht),t(s.getReviewControlRef()).bind("click",mt),s.showView(),s.updateViewPosition() },St=function(){t(TSC.questionSetView.getSubmitControlsRef()).attr("disabled","disabled"),t(TSC.questionSetView.getPreviousControlsRef()).attr("disabled","disabled"),t("#tsc_quiz_container").css("z-index",8),lt();var e=b.getQuestionType(V,z);rt(e),D.doesLocalGrading&&D.gradeQuestionSet(b,V),_=!0,b.getUseQuizApi()&&(ot(n.getString("txtSubmittingAnswers")),u.submitQuestionSet(b.getApiDataForQuestionSet(V),At)),b.getUseScorm()&&tt(),(i.isLocal()||!b.getUseQuizApi())&&At()},At=function(e){if(_=!1,st(),!D.doesLocalGrading&&b.getUseQuizApi()){if(void 0===e)return Dt(),at(),void 0;D.processQuestionSetResults(b,V,e)}b.getDisplayFeedback(V)?x?(x(),S.removeView(bt,!0)):S.removeView(vt,!1):at()},bt=function(){var e=b.getNumberOfCorrectInQuestionSet(V),i=b.getTotalNumberOfGradableInQuestionSet(V),r=b.getTotalNumberOfUngradableInQuestionSet(V);v.setGradeableDetails(e+n.getString("accessBtnCorrectOutOf")+i+n.getString("accessBtnGradedQuestions")),1==r?v.setUngradeableDetails(r+n.getString("accessBtnWasNotGraded")):v.setUngradeableDetails(r+n.getString("accessBtnWereNotGraded"));var o=v.getViewMarkup();A.append(o),S=v,t(v.getHideAnswersControlRef()).bind("click",Tt),t(v.getShowAnswersControlRef()).bind("click",Ct),v.showView(),a.updateViewPosition()},Ct=function(){t(v.getHideAnswersControlRef()).unbind("click",Tt),t(v.getShowAnswersControlRef()).unbind("click",Ct),v.removeView(gt,!1),S=void 0},Tt=function(){L&&L(),S.hideView()},Et=function(e){H=!1,z=0,G=b.numberQuestionsInSet(V),a.setIsImageQuestion(x);var i=a.getViewMarkup(b.getQuestionSetTitle(V),n.getString("txtPrev"),n.getString("txtNext"),n.getString("txtSubmit"),n.getString("txtContinue"),e,!0);A.append(i),S=a,Pt(),Q&&S.pointAt(Q),t(a.getPreviousControlsRef()).bind("click",dt),t(a.getNextControlsRef()).bind("click",ft),t(a.getSubmitControlsRef()).bind("click",St),t(a.getContinueControlsRef()).bind("click",at),ct(),a.showView(),a.updateViewPosition()},wt=function(){S.removeView(void 0,!0),S=void 0,T&&T.call(this,{type:"REVIEW"})},yt=function(){O>V&&Et(!1)},It=function(){S.removeView(yt),S=void 0},Nt=function(){var e;e=Y?n.getString("txtReview"):n.getString("txtContinue");var i=r.getViewMarkup(e,n.getString("txtAnswerQuestion"));A.append(i),S=r,Pt(),b.getHideReplay()===!0&&t(r.getReviewControlRef()).hide(),t(r.getReviewControlRef()).bind("click",wt),t(r.getConfirmControlRef()).bind("click",It),r.showView(),r.updateViewPosition()},Mt=function(e){b.getUseQuizApi()?(Lt(o.getFirstName(),o.getLastName(),o.getEmail()),S.removeView()):S.removeView($),S=void 0,e.preventDefault()},Rt=function(e){U=!1,i.isIPad()||i.isAndroid()?(S.removeView(),et()):S.removeView(et),S=void 0,e.preventDefault()},kt=function(){var e=n.getString("txtRequiredMessage"),i=n.getString("txtFirstName"),a=n.getString("txtLastName"),r=n.getString("txtEmail"),s=n.getString("txtBegin"),u=n.getString("txtSkip"),c=o.getViewMarkup(e,i,a,r,s,u);A.append(c),S=o,t(o.getBeginControlRef()).bind("click",Mt),b.getAllowSkipQuiz()?t(o.getSkipControlRef()).bind("click",Rt):t(o.getSkipControlRef()).hide(),o.showView()},Pt=function(){S&&S.setBottomOffset&&(S.setBottomOffset(F),S.updateViewPosition())},xt=function(){W=!0,$()},Lt=function(e,t,n){b&&u.startQuizInstance(b.getQuizID(),e,t,n,f),(i.isIPad()||i.isAndroid())&&$()},Qt=function(e,t,i){i&&i>0&&(K=i),t?(ot(n.getString("txtLoaderMessageDefinition")),u.submitQuizDefinition(d.getQuizDefinition(),d.getQuizHash(),d.getClientId())):xt()},Bt=function(){xt()},Dt=function(){U=!1,_&&At(),y.call(this,{type:"ERROR"})},_t=function(){u.addEventListener("SHOW_LOADING_MESSAGE",k),u.addEventListener("HIDE_LOADING_MESSAGE",P),u.addEventListener("SHOW_SUBMISSION_RETRY_MESSAGE",M),u.addEventListener("HIDE_SUBMISSION_RETRY_MESSAGE",R)};return{init:function(e,n){Y=e,B=n,b.getUseQuizApi()?(u.addEventListener("START_INSTANCE_COMPLETE",Qt),u.addEventListener("SEND_DEFINITION_COMPLETE",Bt),u.addEventListener("ERROR",Dt),_t(),b.getRequireUserId()&&!f.getIsUserIdentified()?kt():Lt()):(W=!0,$()),i.isNuevoApp()&&(t("body").on("blur","#tsc_quiz_container input",ut),t("body").on("blur","#tsc_quiz_container textarea",ut))},simpleInit:function(){_t(),Lt()},getQuizReady:function(){return W},getAnalyticsSampleRate:function(){return K},getLastStatusMessage:function(){return Z},setQuestionData:function(e){X(e)},setViewContainer:function(e){A=t(e)},displayNextQuestionSet:function(){O>V&&Et(!0)},hasMultipleQuestionSets:function(){return O>1},quizEnabled:function(){return U},hasQuiz:function(){return d&&d.getQuizID()},viewOpen:function(){return void 0!==S},findQuestionSet:function(e){for(var t=-1,n=-1,i=d.getQuestionSetMarkerTimes(),a=i.length,r=0;a>r;r++)if(Y&&e>=i[r].time||e>=i[r].rangeStart&&i[r].rangeEnd>=e){t=i[r].quesitonSetId,n=i[r].time;break}return{id:t,markerTime:n}},findPrevMarkerTimeForMarker:function(e){return b.getPreviousMarkerTimeForMarker(e)},updatePercentWatchedForQuestionSet:function(e,t){b.updatePercentageWatchedForQuestionSet(e,t)},drawMarkers:function(e,t,n,i){if(U){var a=d.getQuestionSetMarkerTimes(),r=a.length,o=Math.round(i/2),s=0,u=0;t.clearRect(0,0,n,i);for(var c=0;r>c;c++)u=a[c].time/e,s=Math.round(n*u),t.fillStyle=l.getColor(),t.beginPath(),t.arc(s,o,l.getSize(),0,2*Math.PI,!0),t.closePath(),t.fill()}},displayConfirm:function(e){S||(V=e,Y&&b.getQuestionSetMarkerTime(e)<=b.getMinMarkerTimeDiff()?Et(!0):Nt())},addEventListener:function(e,t){"COMPLETE"===e?C=t:"REVIEW"===e?T=t:"BEGIN"===e?E=t:"SKIP"===e?w=t:"ERROR"===e?y=t:"STATUS"===e?I=t:"SUBMITTED"===e?N=t:"SHOW_SUBMISSION_RETRY_MESSAGE"===e?M=t:"HIDE_SUBMISSION_RETRY_MESSAGE"===e?R=t:"SHOW_LOADING_MESSAGE"===e?k=t:"HIDE_LOADING_MESSAGE"===e?P=t:"TRANSITION_IMAGE_QUIZ_TO_ANSWERS"===e?x=t:"HIDE_QUIZ"===e&&(L=t)},removeEventListener:function(e){"COMPLETE"===e?C=void 0:"REVIEW"===e?T=void 0:"BEGIN"===e?E=void 0:"SKIP"===e?w=void 0:"ERROR"===e?y=void 0:"STATUS"===e?I=void 0:"SUBMITTED"===e?N=void 0:"SHOW_LOADING_MESSAGE"===e?k=void 0:"HIDE_LOADING_MESSAGE"===e?P=void 0:"TRANSITION_IMAGE_QUIZ_TO_ANSWERS"===e?x=void 0:"HIDE_QUIZ"===e&&(L=void 0)},showQuiz:function(){S===void 0?Et(!0):S.showView()},hideQuiz:function(){S.hideView()},pointViewAt:function(e){Q=e,S&&S.pointAt&&S.pointAt(Q)},setViewControlBarOffset:function(e){F=e+q,Pt()},setQuestionGrader:function(e){switch(e){case g.FATHOM:D=h;break;case g.XMP:D=m;break;case g.MOCK:D={doesLocalGrading:!1};break;default:throw"Grader type not recognized"}},startTrackingProgress:function(){p.start(B(),K)},forceProgressUpdate:function(e,t){u.sendProgress(e,t)}}}()}(this,jQuery,TSC.localizationStrings,TSC.deviceInfo,TSC.questionSetView,TSC.questionSetConfirmationView,TSC.quizSetupView,TSC.reviewAnswersConfirmationView,TSC.quizService,TSC.questionType,TSC.quizMarker,TSC.quizModel,TSC.playerConfiguration,TSC.progressTracker,TSC.questionGrader,TSC.fathomGrader,TSC.xmpGrader,TSC.questionSetReviewStatusView),function(e){e.TSC=e.TSC||{},e.TSC.videoAnalytics=function(){"use strict";var e,t,n,i,a,r,o,s=3e4,u=0,c=[{duration:3e5,segmentLength:2e3},{duration:18e5,segmentLength:5e3}],l=0,d=!1;return{setVideoLoadStartTime:function(t){e=t},setVideoLoadEndTime:function(e){t=e},getVideoLoadTime:function(){var n=0;return e&&t&&(n=t-e),n},getNumberSegments:function(){return i},setCurrentPlayTime:function(e){r=e},getCurrentPlayTime:function(){return r},getNumberWatchedSegments:function(){return l},isPercentWatchedInitialized:function(){return u>0},clearPercentWatched:function(){u=0},initPercentWatched:function(e){if(!(0>=e)){u=e,n=s;for(var t=0;c.length>t;t++)if(c[t].duration>=e){n=c[t].segmentLength;break}for(a=[],i=Math.ceil(e/n),t=0;i>t;t++)a.push(!1);l=0}},markTimeWatched:function(e){e=Math.min(e,u),r=e/1e3,o=Math.floor(e/n),0>o||o>=i||a[o]||(l++,a[o]=!0)},getPercentageWatched:function(){return i&&i>0?l/i:0},getPercentageWatchedForVideoSegment:function(e,t){var i=0;if(u>0&&t>=e){for(var r=Math.floor(e/n),o=Math.floor(t/n),s=0,c=o-r+1,l=r;o>=l;l++)a[l]&&s++;i=s/c}return i},setEnabled:function(e){d=e},isEnabled:function(){return d}}}()}(this),function(e){e.TSC=e.TSC||{},e.TSC.mediaType=function(){"use strict";return{WEBM:"webm",H264:"h264",OGG:"ogg",YOUTUBE:"youtube",JPG:"jpg",PNG:"png",GIF:"gif",UNKNOWN:"unknown",NOT_AVAILABLE:"not available",MULTIPLE_TYPES:"multiple types"}}()}(this),function(e){e.TSC=e.TSC||{},e.TSC.rtfParser=function(){"use strict";function e(e){var t="par ";return e.toLowerCase()==t}function t(e,t){void 0===t&&(t=0);var n="a",i="z",a=n.charCodeAt(),r=i.charCodeAt(),o=-1;if(e)for(o=e.indexOf(d,t);-1!=o;){if(e.length>o+1){var s=e.toLowerCase().charCodeAt(o+1);if(s>=a&&r>=s)break}o=e.indexOf(d,o+1)}return o}function n(n,a){void 0===a&&(a=0);for(var r=t(n,a);-1!=r;){var o=i(n,r);if(o&&!e(o))break;r=t(n,r+1)}return r}function i(e,t){var n;if(-1!=t){var i=e.indexOf(p,t+1);if(-1!=i){var a=i+1-(t+1);n=e.substr(t+1,a)}else n=e.substr(t+1)}return n}function a(e,t){for(var n="",i=[],a=t.pop();a&&a!=e&&t.length;)n+=d+a,i.push(o(a)),t.length&&(a=t.pop());for(n+=d+e;i.length;){var r=i.pop();r&&(n+=d+r,t.push(o(r)))}return n}function r(e){return-1!=e.indexOf(f)}function o(e){var t;return""!=e&&(r(e)?t=e.substr(0,e.indexOf(f)):(-1!=e.indexOf(g)&&(t=e.substr(0,e.indexOf(g))),t+=f),t+=g),t}function s(e,t){var n=e;if(-1!=t&&n&&n.length>t){var i=n.indexOf(p,t);n=-1!=i?n.substr(0,t)+n.substr(i+1):n.substr(0,t)}return n}function u(e){for(var t=" ",n=e;n.length>1&&n.charAt(0)==t;)n=n.substr(1);for(;n.length>1&&n.charAt(n.length-1)==t;)n=n.substr(0,n.length-1);return n==t&&(n=""),n}function c(s){var u=s;if(u)for(var c=[],l=n(u);-1!==l;){var d=i(u,l);if(d&&r(d)){var f=a(d,c),g=u.indexOf(p,l);u=-1!==g?u.substr(0,l)+f+u.substr(g+1):u.substr(0,l)+f,l+=f.length}else d&&!e(d)&&c.push(o(d)),l=Number(l)+1;l=t(u,l)}return u}function l(e){var t=e;if(t)for(var a=1;a>0;){a=0;for(var r=n(t);-1!=r;){var c=n(t,r+1),l=i(t,r);if(l&&-1!=c){var d=o(l),f=i(t,c);if(f&&f==d){var p=r+1+l.length,g=t.substr(p,c-p);u(g).length||(t=s(t,c),t=s(t,r),c-=l.length+1,a++)}}r=c}}return t}var d="\\",f="0",p=" ",g=" ";return{NestAndCleanUpTags:function(e){var t=e;return t&&(t=c(t),t=l(t)),t}}}()}(this),function(e){e.TSC=e.TSC||{},e.TSC.textFormatter=function(){"use strict";return{rtfToText:function(e){var t=!1;return-1!=e.indexOf("{\\rtf1")&&(e=e.split("{\\rtf1 ").join(""),t=!0),e=e.split("\\i ").join(""),e=e.split("\\i0 ").join(""),e=e.split("\\b ").join(""),e=e.split("\\b0 ").join(""),e=e.split("\\ul ").join(""),e=e.split("\\ul0 ").join(""),e=e.split("\\par ").join(""),e=e.split("\\{").join("{"),e=e.split("\\}").join("}"),e=e.split("\\\\").join("\\"),t&&"}"==e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),e},rtfToHTML:function(e){e=TSC.rtfParser.NestAndCleanUpTags(e),e=e.split("<").join("<"),e=e.split(">").join(">");var t=!1;return-1!=e.indexOf("{\\rtf1")&&(e=e.split("{\\rtf1 ").join(""),t=!0),e=e.split("\\i0 ").join(""),e=e.split("\\b0 ").join(""),e=e.split("\\ul0 ").join(""),e=e.split("\\i ").join(""),e=e.split("\\b ").join(""),e=e.split("\\ul ").join(""),e=e.split("\\par ").join("
"),e=e.split("\\{").join("{"),e=e.split("\\}").join("}"),e=e.split("\\\\").join("\\"),t&&"}"==e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),e=e.split("<br>").join("
"),e=e.split("<BR>").join("
")}}}()}(this),function(e,t,n,i,a,r){e.TSC=e.TSC||{},e.TSC.mediaList=function(){"use strict";function e(e){return d(e)}function o(){if(C=0,-1!=m[0].toLowerCase().indexOf(A))T=!0,s(i.getUnicodeSafeString(m[0]));else{T=!1;for(var n,a=[],r=[],o=0;m.length>o;o++){n=m[o];var u={mediaSrc:n};a.push(u),r.push(e(u))}b.push(a),t.when.apply(t,r).done(function(){v&&v.call()})}}function s(e){t.ajax({type:"GET",url:e,isLocal:!0,dataType:"text",success:u,error:c})}function u(n){b=n.split(/\r?\n/g);for(var a=b.length-1,r=[],o=a;o>=0;o--)if(""===b[o])b.splice(o,1);else{var s={mediaSrc:i.getUnicodeSafeString(b[o])};b[o]=s,r.push(e(s))}t.when.apply(t,r).done(function(){v&&v.call()})}function c(){"string"==typeof TSC.embedded_playlist?u(TSC.embedded_playlist):S&&S.call()}function l(e){var t=a.UNKNOWN;switch(e){case r.WEBM:t=a.WEBM;break;case r.MP4:t=a.H264;break;case r.OGG:t=a.OGG;break;case r.JPG:t=a.JPG;break;case r.PNG:t=a.PNG;break;case r.GIF:t=a.GIF;break;default:}return t}function d(e){var n=t.Deferred();if(e.mediaMimeType=r.UNKNOWN,e.mediaType=a.UNKNOWN,i.getContentType())return e.mediaMimeType=i.getContentType(),e.mediaType=l(e.mediaMimeType),n.resolve(),n;var o=g(e.mediaSrc);return o!==a.UNKNOWN?(e.mediaType=o,e.mediaMimeType=f(o),n.resolve()):p(e.mediaSrc).then(function(t){e.mediaMimeType=t,e.mediaType=l(t),n.resolve()},function(){n.resolve()}),n}function f(e){var t=r.UNKNOWN;switch(e){case a.WEBM:t=r.WEBM;break;case a.H264:t=r.MP4;break;case a.OGG:t=r.OGG;break;case a.JPG:t=r.JPG;break;case a.PNG:t=r.PNG;break;case a.GIF:t=r.GIF;break;default:}return t}function p(e){var n=t.Deferred();return t.ajax({type:"HEAD",url:e}).done(function(e,t,i){var a=i.getResponseHeader("content-type")||r.UNKNOWN;n.resolve(a)}).fail(function(){n.resolve(r.UNKNOWN)}),n}function g(e){var t=a.UNKNOWN,n=/youtu(?:\.be|be\.com)\//;if(n.test(e))return a.YOUTUBE;var i=e.split("?")[0],r=i.split(".");if(r.length>0){var o=r.pop().toLowerCase();switch(o){case"webm":t=a.WEBM;break;case"mp4":case"m4v":case"mov":t=a.H264;break;case"ogv":t=a.OGG;break;case"jpg":case"jpeg":t=a.JPG;break;case"png":t=a.PNG;break;case"gif":t=a.GIF;break;default:}}return t}function h(e){return e===a.GIF||e===a.JPG||e===a.PNG}var m,v,S,A=".m3u",b=[],C=0,T=!1;return{init:function(e){m=e,o()},clear:function(){b=[],C=0,m=void 0},getCurrentMedia:function(){var e=void 0;return b.length>0&&(e=b[C]),e},getCurrentMediaFirstMediaSourceAsString:function(){var e=this.getCurrentMedia();return e.mediaSrc?""+e.mediaSrc:""+e[0].mediaSrc},getCurrentMediaIndex:function(){return C},setCurrentMedia:function(e){"next"===e?b.length-1>C&&C++:"previous"===e?C>0&&C--:Number(e)>=0&&Number(e)n;n++)if(T){if(b[n].mediaSrc===e){t=n;break}}else for(var i=0;b[n].length>i;i++)if(b[n][i].mediaSrc===e){t=n;break}return t},getMediaType:function(){var e=a.NOT_AVAILABLE;if(b.length>0)if(e=a.UNKNOWN,T)e=b[C].mediaType;else{var t=b[C].length;e=1===t?b[C][0].mediaType:a.MULTIPLE_TYPES}return e},isMediaTypeAvailable:function(e){var t=!1;if(b.length>0)if(T)t=e===b[C].mediaType;else for(var n=b[C].length,i=0;n>i&&!(t=e===b[C][i].mediaType);i++);return t},isPlaylist:function(){return T},onFirstMedia:function(){return 0===C},onLastMedia:function(){return C+1===b.length},getErrorMessage:function(){return n.getString("playlistLocalError")},addEventListener:function(e,t){"READY"===e?v=t:"ERROR"===e&&(S=t)},removeEventListener:function(e){"READY"===e?v=void 0:"ERROR"===e&&(S=void 0)},hasImage:function(){var e=!1,t=0;if(b.length>0)if(T)e=h(b[C].mediaType);else{t=b[C].length;for(var n=0;t>n;n++)if(h(b[C][n].mediaType)){e=!0;break}}return e}}}()}(this,jQuery,TSC.localizationStrings,TSC.playerConfiguration,TSC.mediaType,TSC.mediaMimeType),function(e,t,n,i,a,r){"use strict";e.TSC=e.TSC||{},e.TSC.mediaPlayerController=function(){function e(){var e=i.hasImage(),o=i.isMediaTypeAvailable(a.WEBM)&&r.canPlayWebM(),s=i.isMediaTypeAvailable(a.H264)&&r.canPlayMP4(),u=i.isMediaTypeAvailable(a.OGG)&&r.canPlayOgg(),c=i.isMediaTypeAvailable(a.YOUTUBE),l=swfobject.hasFlashPlayerVersion(n.getMinFlashPlayerVersion())&&i.isMediaTypeAvailable(a.H264),d=r.isIE()&&9==r.getIEVersion(),f=r.isIE()&&10==r.getIEVersion();return c?t.YOUTUBE:n.getForceHtml5Player()&&(o||s||u)?t.HTML5_VIDEO:l&&(n.getForceFlashPlayer()||d||f)?t.FLASH_VIDEO:o||s||u?t.HTML5_VIDEO:l?t.FLASH_VIDEO:e?t.IMAGE:t.NOT_SUPPORTED}var o;return{getPlayerType:function(){return o||(o=e())},clearPlayerType:function(){o=void 0}}}()}(this,TSC.playerType,TSC.playerConfiguration,TSC.mediaList,TSC.mediaType,TSC.deviceInfo),function(e,t,n){e.TSC=e.TSC||{},e.TSC.iFrameBridge=function(){return{postMessage:function(i,a,r){var o={};o.smartPlayerEventName=i,n.getEmbedIFrameId()&&(o.iFrameId=n.getEmbedIFrameId()),r&&(o.data=r),e.top.postMessage(t.stringify(o),a)}}}()}(this,JSON,TSC.playerConfiguration),function(e,t,n,i,a){e.TSC=e.TSC||{},e.TSC.queryParamsStripper=function(){function r(e){var t=e.slice(e.indexOf("?")+1).split("&");t&&t.length>0&&n.saveConfigurationFromQueryString(t)}function o(){t.addCallback("PARENT-URL-PARAMS",s),i.postMessage("GET-EMBEDDED-URL-VARS","*")}function s(e){t.removeCallback("PARENT-URL-PARAMS"),r(e)}return{strip:function(){r(a.getLocationHref()),e.top!=e&&o()}}}()}(this,TSC.externalMessageController,TSC.playerConfiguration,TSC.iFrameBridge,TSC.windowWrapper),function(e,t){e.TSC=e.TSC||{},e.TSC.ioOverlayView=function(){"use strict";var e,n="#tsc_io_container";if(!t||!t.io_overlay_view_template)throw Error("ioOverlayView: IO Overlay View Template not found.");e=t.io_overlay_view_template;var i="data:image/gif;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={ioMessage:t,loaderImg:i};return e(n)},setViewMessage:function(e){$(n+" span").html(e)},hideLoadingGraphic:function(){$(n+" img").hide()},showLoadingGraphic:function(){$(n+" img").show()},viewOpen:function(){return a},showView:function(){$(n).css("opacity",0),$(n).animate({opacity:1},300),a=!0},hideView:function(){$(n).css("opacity",1),$(n).animate({opacity:0},300)},removeView:function(e){a=!1,$(n).animate({opacity:0},200,function(){void 0!==e&&e.call(),$(n).remove()})}}}()}(this,TSC.templates),function(e,t,n,i,a,r,o,s,u,n){e.TSC=e.TSC||{},e.TSC.xmp=e.TSC.xmp||function(){"use strict";function e(){N=!1,M=!1,R=!1,k=!1,P=!1,x=!1,L=!1,W=!1,J="",j=0,Y="en-US",Z="#ffffff",K="#000000",X=.9,$="Arial, Helvetica, sans-serif;",et=18,tt={r:255,g:255,b:255},nt="overlay",it=0,at=2,rt=144,ot=[],st=[],ut=[],ct=[],lt=[]}function c(e){return-1!==e.indexOf("http://")||-1!==e.indexOf("https://")}function l(){I&&I.call()}function d(e,t,n){for(var i=(e<<16|t<<8|n).toString(16),a=6-i.length,r=0;a>r;r++)i="0"+i;return"#"+i}function f(e){t(e).find("*").filterNode("rdf:Description").each(function(){var e=Number(t(this).attr("xmpDM:startTime"))/1e3,n=s.getUnicodeSafeString(t(this).attr("tscDM:file")),i=t(this).attr("xmpDM:name"),a=t(this).attr("tscDM:image"),r=t(this).attr("tscDM:imagerect");r&&!W&&(W=!0,J=s.getTOCSpriteSrc()?s.getTOCSpriteSrc():"."===s.getSwfBase()||c(a)?s.getUnicodeSafeString(a):s.getSwfBase()+s.getUnicodeSafeString(a));var o={time:e,text:i,file:n,image:a,imageRect:r};ot.push(o)})}function p(e){var n=t(e).find("*").length,i=e.find("*").eq(n-2);if(i&&i.length>0&&"tsc:fgColor"===i[0].nodeName){var a=i.attr("xmpG:red"),r=i.attr("xmpG:green"),u=i.attr("xmpG:blue");Z=d(a,r,u)}var c=e.find("*").eq(n-1);c&&c.length>0&&"tsc:bgColor"===c[0].nodeName&&(tt.r=c.attr("xmpG:red"),tt.g=c.attr("xmpG:green"),tt.b=c.attr("xmpG:blue"),K=d(tt.r,tt.g,tt.b)),t(e).find("*").filterNode("rdf:Description").each(function(){var e,n,i=Number(t(this).attr("xmpDM:startTime"))/1e3,a=Number(t(this).attr("xmpDM:duration"))/1e3,r=i+a,u=t(this).find("*").filterNode("rdf:li").text(),c=o.rtfToText(u),l=t(this).attr("tscDM:valign"),d=t(this).attr("tscDM:halign");switch(l){case"top":e="captionVAlignTop";break;default:e="captionVAlignBottom"}switch(d){case"left":n="captionHAlignLeft";break;case"right":n="captionHAlignRight";break;default:n="captionHAlignCenter"}u=o.rtfToHTML(u);var f=s.getUnicodeSafeString(t(this).attr("tscDM:file"));if(""!==c.replace(/ /g,"")){var p={start:i,end:r,text:c,htmlText:u,file:f,vAlign:l,vAlignClass:e,hAlignClass:n};st.push(p)}})}function g(e,t){for(var n=[],i=e[4]-e[0],a=e[5]-e[1],r=i/2+e[0],o=a/2+e[1],s=e.length,u=0;s>u;u+=2){var c=h(e[u],e[u+1],i,a,r,o,t);n.push(Math.round(c[0])),n.push(Math.round(c[1]))}return n}function h(e,t,n,i,a,r,o){o=o*Math.PI/180;var s=e-a,u=t-r,c=Math.atan2(u,s),l=Math.sqrt(s*s+u*u),d=c+o,f=Math.cos(d)*l,p=Math.sin(d)*l,g=[];return g[0]=f+a,g[1]=p+r,g}function m(e){return""!==e&&0!==e.indexOf("http://")&&0!==e.indexOf("https://")?"http://"+e:e}function v(e){var n=0;t(e).find("*").filterNode("rdf:Description").each(function(){var e=t(this).attr("xmp:label"),i=Number(t(this).attr("xmpDM:startTime"))/1e3,a=Number(t(this).attr("xmpDM:duration"))/1e3,r=i+a,o=t(this).attr("tscDM:boundingPoly"),u=parseFloat(t(this).attr("tscDM:rotate")),c=s.getUnicodeSafeString(t(this).attr("tscHS:jumpFile")),l=o.replace(/\;/gi,",");l.lastIndexOf(",")==l.length-1&&(l=l.substr(0,l.length-1));for(var d=l.split(","),f=0;d.length>f;f++)d[f]=parseInt(d[f],10);0!==u&&(d=g(d,u));var p=!1,h="",v="",S="";"1"===t(this).attr("tscHS:pause")&&(p=!0),void 0!==t(this).attr("tscHS:jumpTime")&&(h=Number(t(this).attr("tscHS:jumpTime"))/1e3),void 0!==t(this).attr("tscHS:newWindow")&&(v=t(this).attr("tscHS:newWindow"),v="0"===v||"false"===v.toLowerCase()?!1:!0),void 0!==t(this).attr("xmpDM:location")&&(S=t(this).attr("xmpDM:location"));var A=s.getUnicodeSafeString(t(this).attr("tscDM:file")),b={id:e,start:i,end:r,pause:p,hasPausedAtEnd:!1,points:d,scaledPoints:d.concat([]),rotation:u,file:A,jumpTime:h,jumpFile:c,newWindow:v,targetURL:m(S),isActive:!1,index:n};ut.push(b),n++})}function S(e){var n,i,a,o,s,c,l,d,f=-1,p=!1,g=[];u.clearAllQuestions(),t(e).find("*").filterNode("rdf:Description").each(function(){var e=t(this).attr("tscIQ:questionSetName");if(e){e=r.htmlEncode(e),p&&(u.addQuestion(f,n,a,o,g,c),p=!1,o=void 0,a=void 0,g=[],c=void 0);var h="1"===t(this).attr("tscIQ:feedback"),m=Number(t(this).attr("xmpDM:startTime"));f=u.addQuestionSet(e,m,h)}else i=t(this).attr("tscIQ:type"),i?(p&&(u.addQuestion(f,n,a,o,g,c),p=!1,o=void 0,a=void 0,g=[],c=void 0),a=t(this).attr("tscIQ:id"),n=i,l=t(this).children(),o=r.htmlEncode(t(l[0]).text(),!0),c=r.htmlEncode(t(l[1]).text(),!0),p=!0):(s=t(this).attr("tscIQ:orderId"),s&&(l=t(this).children(),d=t(l[0]).text(),d&&g.push(r.htmlEncode(d,!0))))}),p&&u.addQuestion(f,n,a,o,g,c)}function A(e){var n=[];t(e).find("*").filterNode("rdf:Description").each(function(){for(var e=Number(t(this).attr("xmpDM:startTime"))/1e3,i=Number(t(this).attr("xmpDM:duration"))/1e3,a=t(this).attr("xmpDM:name"),r=s.getUnicodeSafeString(t(this).attr("tscDM:file")),o=a.split(" "),u=Number(e)+Number(i)+"",c=0;o.length>c;c++){var l={start:e,end:u,text:o[c],file:r};n.push(l)}});var i=n.length;if(!(1>i)){for(var a,r=n[0].start,o="",u=[],c=0;i>c;c++)n[c].start!==r&&(a={start:n[c-1].start,end:n[c-1].end,text:o,items:u,file:n[c-1].file},ct.push(a),o="",u=[]),o+=n[c].text+" ",u.push(n[c].text),r=n[c].start;a={start:n[c-1].start,end:n[c-1].end,text:o,items:u,file:n[c-1].file},ct.push(a)}}function b(e){t(e).find("*").filterNode("rdf:li").each(function(){var e=Number(t(this).attr("xmpDM:startTime"))/1e3,n=Number(t(this).attr("xmpDM:duration"))/1e3,i=t(this).attr("xmpDM:name"),a=s.getUnicodeSafeString(t(this).attr("tscDM:file")),r=t(this).attr("tscDM:image"),o=t(this).attr("tscDM:imagerect"),u={start:e,end:Number(e)+Number(n)+"",text:i,file:a,image:r,imageRef:document.createElement("canvas"),imageRect:o};lt.push(u)})}function C(){N&&f(G),M&&p(z),k&&S(q),R&&v(V),P&&A(O),x&&b(_),L=!0,y&&y.call()}function T(){var e=s.getEndActionType().toLowerCase();if("jumptourl"===e||"jumptourlnew"===e){var t=s.getEndActionParam().toLowerCase();0!=t.indexOf("http://")&&0!=t.indexOf("https://")&&(s.setEndActionType("stop"),s.setEndActionParam("true"))}}function E(r){e();var o=t(r).find("*").eq(2);Q=o.attr("dc:title"),D=o.attr("tscDM:originId"),B=o.attr("tscDM:project"),j=Number(t(r).find("*").eq(3).attr("xmpDM:value")),F=Q;var l,d,f=t(r).find("*").length,p=0;for(l=4;f>l;l++)if("xmpDM:Tracks"===t(r).find("*").eq(l)[0].nodeName){d=t(r).find("*").eq(l).children();break}for(var g,h=t(d).find("*").length,m=0;h>m;m++){var v=t(d).find("*").eq(m);if(g=v.attr("xmpDM:trackType"),void 0!==g)switch(g.toLowerCase()){case"tableofcontents":H=t(v).attr("tscDM:tocCellLayout"),U=s.getUnicodeSafeString(t(v).attr("tscDM:image")),"."===s.getSwfBase()||void 0===U||c(U)||(U=s.getSwfBase()+U),N=!0,G=t(v),m+=G.find("*").length;break;case"quiz":if(u&&void 0===s.getFathomId()){k=!0;var S=t(v).attr("tscIQ:quizGuid"),A=t(v).attr("tscIQ:reportMethod"),b="1"===t(v).attr("tscIQ:requireUserId"),E="1"===t(v).attr("tscIQ:hideReplay"),w=t(v).attr("tscIQ:authoredEmail"),y=t(v).attr("tscIQ:clientId"),I=t(v).attr("tscIQ:quizHash"),L=t(v).attr("tscIQ:allowSkipQuiz"),W=t(v).attr("tscIQ:locale");W||(W=i.ENGLISH),u.setLocale(W),u.setProductionMetadata(B,Q,D),u.setQuizTitle(Q),u.setQuizID(S),u.setReportMethod(A),u.setRequireUserId(b),u.setHideReplay(E),u.setAuthoredEmail(w),u.setClientId(y),u.setQuizHash(I),u.setMediaDuration(j),u.setAllowSkipQuiz(L)}q=t(v),m+=q.find("*").length;break;case"caption":var J=t(v).attr("stFnt:fontFamily");J&&($=J);var Y=t(v).attr("tscDM:fontSize");Y&&(et=Number(Y));var Z=t(v).attr("tscDM:bgOpacity");Z&&(X=Number(Z));var K=t(v).attr("tscDM:position");K&&(nt=K);var tt=t(v).attr("tscDM:captionbarheight");tt&&(it=Number(tt)),M=!0,z=t(v),m+=z.find("*").length;break;case"hotspot":R=!0,V=t(v),m+=V.find("*").length;break;case"speech":_=t(v);var at=_.find("*").length;if(1>=at)break;x=!0,m+=at;break;case"screentext":P=!0,O=t(v),m+=O.find("*").length}}l+=p,t(r).find("*").filterNode("tscIQ:QuizParams").filterNode("rdf:li").each(function(){var e=t(this).attr("xmpDM:name"),i=t(this).attr("xmpDM:value");try{a.setString(e,i)}catch(r){n.logMessage(r.message)}});var rt,ot,st=0;for(l=l;f>l;l++)if("tscDM:controller"===t(r).find("*").eq(l)[0].nodeName){rt=t(r).find("*").eq(l).children(),st=t(rt).find("*").length;break}t(rt).find("*").filterNode("rdf:li").each(function(){if(void 0!=t(this).attr("xmpDM:name"))switch(ot=t(this).attr("xmpDM:value").toLowerCase(),t(this).attr("xmpDM:name").toLowerCase()){case"autohide":var e="true"===ot?!0:!1;s.setAutoHideControls(e);break;case"autostart":case"autoplay":var n="true"===ot?!0:!1;s.getAutoPlayMedia()||s.setAutoPlayMedia(n);break;case"searchable":var i="true"===ot?!0:!1;s.setIsSearchable(i);break;case"captionsenabled":var r="true"===ot?!0:!1;s.setCaptionsEnabled(r);break;case"sidebarenabled":var o="true"===ot?!0:!1;s.setSidebarEnabled(o);break;case"unicodeenabled":var u="true"===ot?!0:!1;s.setProcessUnicodeNames(u);break;case"backgroundcolor":var c=ot;-1===c.indexOf("#")&&(c="#"+c),s.setBackgroundColor(c);break;case"sidebarlocation":var l="right"===ot||"r"===ot?"right":"left";s.setSidebarLocation(l);break;case"endaction":s.setEndActionType(ot);break;case"endactionparam":s.setEndActionParam(t(this).attr("xmpDM:value"));break;case"locale":a.setLanguage(t(this).attr("xmpDM:value"))}}),T(),setTimeout(C,500)}function w(e,i){if(e){var a=e;try{t.ajax({type:"GET",url:a,dataType:"xml",timeout:ft,success:function(e){dt>i&&n.logMessage("xmp: loadXMP() succeeded after "+(dt-i)+" failed attempts."),E(e)},error:function(){i>0?setTimeout(function(){w(e,--i)},pt):(n.logMessage("xmp: loadXMP() failed after "+dt+" retries."),l())}})}catch(r){n.logException(r)}}}t.fn.filterNode=function(e){return this.find("*").filter(function(){return this.nodeName===e})};var y,I,N,M,R,k,P,x,L,Q,B,D,_,O,G,z,V,q,F,H,U,W,J,j,Y,Z,K,X,$,et,tt,nt,it,at,rt,ot,st,ut,ct,lt,dt,ft,pt;return ft=5e3,dt=2,pt=0,e(),{loadXMP:function(e){w(e,dt)},parseXMP:function(e){E(t.parseXML(e))},xmpAvailable:function(){return L},hasAdvancedFeatures:function(){return L&&(N||M||R||k)},getMediaDuration:function(){return j},getTocTitle:function(){return F},getTocImageSrc:function(){return U},getTocCellLayoutType:function(){return H},tocContainsThumbs:function(){return W},getTocThumbImageSrc:function(){return J},getTocItemArray:function(){return ot},getHotspotItemArray:function(){return ut},getCaptionItemArray:function(){return st},getCaptionFontFamily:function(){return $},getCaptionFontSize:function(){return et},getMinCaptionFontSize:function(){return at},getMaxCaptionFontSize:function(){return rt },getCaptionBgOpacity:function(){return X},getCaptionTextColor:function(){return Z},getCaptionBgColor:function(){return K},getCaptionBg:function(){return"rgba("+tt.r+", "+tt.g+", "+tt.b+", "+X+")"},getCaptionPosition:function(){return nt},getCaptionBarHeight:function(){return it},getSpeechTextItemArray:function(){return lt},getScreenTextItemArray:function(){return ct},getLanguage:function(){return Y},hasTocItems:function(){return N},hasCaptionItems:function(){return M},hasHotspotItems:function(){return R},hasQuiz:function(){return k},hasScreenTextItems:function(){return P},hasSpeechTextItems:function(){return x},getLocalErrorMessage:function(){return a.getString("xmpSecurity")},get404ErrorMessage:function(){return a.getString("xmpError")},getImageQuizContainsMultipleQuestionGroupsMessage:function(){return a.getString("txtBadImageQuiz")},getImageQuizIEVersionIncorrect:function(){return a.getString("txtImageQuizIEVersionError")},getBadImageQuizXmpMessage:function(){return a.getString("txtImageQuizNetworkErrorMessage")},addEventListener:function(e,t){"READY"===e?y=t:"ERROR"===e&&(I=t)},removeEventListener:function(e){"READY"===e?y=void 0:"ERROR"===e&&(I=void 0)}}}()}(this,jQuery,TSC.log,TSC.languageCodes,TSC.localizationStrings,TSC.textSanitizer,TSC.textFormatter,TSC.playerConfiguration,TSC.quizModel,TSC.log),function(e,t,n,i,a){e.TSC=e.TSC||{},e.TSC.playerSettingsView=function(){function r(){E.hide(),u()}function o(){E.show(),s()}function s(){_.mouseup(l)}function u(){_.off("mouseup",l)}function c(){w=!1,r(),D!==void 0&&D()}function l(e){w!==!1&&(E.is(e.target)||0!==E.has(e.target).length||setTimeout(function(){c()},50))}function d(){E=t("#playerSettingsContainer"),I=t("#playerSpeedContainer select")}function f(){var e=y.playbackRate;e!==Number(I.find(":selected").val())&&(e>R?p(R):M>e?p(M):I.find('option[value="'+y.playbackRate+'"]').prop("selected",!0))}function p(e){M>e?e=M:e>R&&(e=R),N=e,y.playbackRate=e,y.defaultPlaybackRate=e,!a.isIPad()&&!a.isIPhoneOrIPod()||y.paused||(y.pause(),y.play()),setTimeout(function(){c()},2e3)}function g(){var e=Number(I.find(":selected").val());p(e)}function h(){f()}function m(){var e=B.indexOf(N);-1!==e&&B.length>e+1&&p(B[e+1])}function v(){var e=B.indexOf(N);-1!==e&&e>0&&p(B[e-1])}function S(e){if(k===e.shiftKey)switch(e.keyCode){case P:e.preventDefault(),m();break;case x:e.preventDefault(),v()}}function A(){for(var e=i.getString("playerRateOptionsText"),t=[],n=B.length-1;n>=0;n--){var a=B[n];t.push({rateValue:a,rateLabel:e[a],selected:a===L})}return t}function b(){w=!1,N=L}function C(){I.unbind("change",g),_.unbind("keydown",S),y&&y.removeEventListener("ratechange",h)}function T(){I.bind("change",g),_.bind("keydown",S)}var E,w,y,I,N,M,R,k,P,x,L,Q,B,D,_;return w=!1,k=!0,N=1,P=38,x=40,M=.25,R=2,L=1,Q=[.25,.5,.75,1,1.25,1.5,1.75,2],B=Q,_=t(e.document),{destroy:function(){C()},render:function(e){var a={playerRateText:i.getString("playerRateText"),playbackRates:A()},o=n.settings_view_template(a);t(e).append(o),b(),d(),T(),r()},setVideoElement:function(e){y=e,y.addEventListener("ratechange",h,!1)},setOnHideCallback:function(e){D=e},open:function(){w=!0,o()},close:function(){w=!1,r()},isOpen:function(){return w},setAvailableRates:function(e){B=e.length>0?e:Q,M=B[0],R=B[B.length-1]},getPlaybackRate:function(){return N}}}()}(window,jQuery,TSC.templates,TSC.localizationStrings,TSC.deviceInfo),jQuery(function(e){var t,n,i,a,r,o,s,u;t={},n=function(){var t=e.fn.width,n=e("#tscVideoContent"),i=e("body");return function(){return document.msFullscreenElement&&t.call(i)!==t.call(n)}}(),i=function(e){return parseInt(e.css("margin-left"),10)+parseInt(e.css("margin-right"),10)},a=function(e){return parseInt(e.css("margin-top"),10)+parseInt(e.css("margin-bottom"),10)},r=function(e){return parseInt(e.css("padding-left"),10)+parseInt(e.css("padding-right"),10)},o=function(e){return parseInt(e.css("padding-top"),10)+parseInt(e.css("padding-bottom"),10)},s=function(e){return parseInt(e.css("border-left-width"),10)+parseInt(e.css("border-right-width"),10)},u=function(e){return parseInt(e.css("border-top-width"),10)+parseInt(e.css("border-bottom-width"),10)},t.width=e.fn.width,e.fn.width=function(){return 0===arguments.length&&0 in this&&n()&&this[0]!=window?Math.round(100*this[0].getBoundingClientRect().width-r(this)-s(this)):t.width.apply(this,e.makeArray(arguments))},t.innerWidth=e.fn.innerWidth,e.fn.innerWidth=function(){return 0===arguments.length&&0 in this&&n()&&this[0]!=window?Math.round(100*this[0].getBoundingClientRect().width-s(this)):t.innerWidth.apply(this,e.makeArray(arguments))},t.outerWidth=e.fn.outerWidth,e.fn.outerWidth=function(a){var r;return 1>=arguments.length&&0 in this&&n()&&this[0]!=window?(r=Math.round(100*this[0].getBoundingClientRect().width),a?r+i(this):r):t.outerWidth.apply(this,e.makeArray(arguments))},t.height=e.fn.height,e.fn.height=function(){return 0===arguments.length&&0 in this&&n()&&this[0]!=window?Math.round(100*this[0].getBoundingClientRect().height-o(this)-u(this)):t.height.apply(this,e.makeArray(arguments))},t.innerHeight=e.fn.innerHeight,e.fn.innerHeight=function(){return 0===arguments.length&&0 in this&&n()&&this[0]!=window?Math.round(100*this[0].getBoundingClientRect().height-u(this)):t.innerHeight.apply(this,e.makeArray(arguments))},t.outerHeight=e.fn.outerHeight,e.fn.outerHeight=function(i){var r;return 1>=arguments.length&&0 in this&&n()&&this[0]!=window?(r=Math.round(100*this[0].getBoundingClientRect().height),i?r+a(this):r):t.outerHeight.apply(this,e.makeArray(arguments))},t.offset=e.fn.offset,e.fn.offset=function(){var i;return 0===arguments.length&&0 in this&&n()?(i=t.offset.apply(this),i&&(i.top=Math.round(100*i.top),i.left=Math.round(100*i.left)),i):t.offset.apply(this,e.makeArray(arguments))}}),function(e){e.TSC=e.TSC||{},e.TSC.playedTracker=function(e){var n=.5,i=function(){var n=[],i=0,a=this;this.start=function(e){if(0>e||e>n.length-1)throw"INDEX_SIZE_ERR";return n[e].start},this.end=function(e){if(0>e||e>n.length-1)throw"INDEX_SIZE_ERR";return n[e].end},Object.defineProperty(this,"length",{get:function(){return n.length}});var r=function(){n.push(new t),i=n.length-1},o=function(e){0===a.length&&(r(),n[0].recordTime(0)),n[i].recordTime(e.data),n.length>1&&u()},s=function(e){var t=l(e.data);-1===t&&r()},u=function(){for(var e=n.length,t=0;e>t;t++)if(i!=t&&a.areMediaSegmentsOverlapping(n[i],n[t])){c(i,t);break}},c=function(e,t){var a=Math.min(e,t),r=Math.max(e,t);n[a].start=Math.min(n[e].start,n[t].start),n[a].end=Math.max(n[e].end,n[t].end),n.splice(r,1),i=a},l=function(e){for(var t=-1,i=n.length,a=0;i>a;a++)if(e>=n[a].start&&n[a].end>=e){t=a;break}return t};e.addEventListener("seeked",s),e.addEventListener("timeupdate",o)};return i.prototype.areMediaSegmentsOverlapping=function(e,t){var i=t.start>=e.start-n&&t.start<=e.end+n,a=t.end>=e.start-n&&t.end<=e.end+n;return i||a},new i};var t=function(){var e=-1,t=-1,n=function(){};return Object.defineProperty(n,"start",{get:function(){return e},set:function(t){e=+t}}),Object.defineProperty(n,"end",{get:function(){return t},set:function(e){t=+e}}),n.recordTime=function(n){(-1===e||e>n)&&(e=n),n>t&&(t=n)},n}}(window),function(e,t,n,i,a){e.onYouTubeIframeAPIReady=function(){e.onYouTubeIframeAPIReady.ready=!0;for(var t=0;e.onYouTubeIframeAPIReady.queued.length>t;t++)e.onYouTubeIframeAPIReady.queued[t]()};var r="https://www.youtube.com/iframe_api";e.onYouTubeIframeAPIReady.queued=[],e.TSC=e.TSC||{};var o=function(t,r,s,u,c,l,d,f){function p(){S=R.getDuration(),i.requiresManualPreload()&&u(),k("loadedmetadata"),k("canplay"),h.removeEventListener("playing",p),k("playing"),k("play")}function g(){if(w=R.getAvailablePlaybackRates(),w.length>1&&(T=!0),i.requiresManualPreload())return s(),h.addEventListener("playing",p),void 0;var e=R.getVolume();R.setVolume(0);var t=setTimeout(function(){throw"YouTube Plugin Error: Initial play failed to trigger within 10 seconds"},1e4);h.addEventListener("play",function n(){h.removeEventListener("play",n),clearTimeout(t),R.pauseVideo(),R.seekTo(f),R.setVolume(e),h.addEventListener("playing",p),s()}),R.playVideo()}if(!(this instanceof o))return new o;var h=this,m={},v=0,S=0,A=0,b=1,C=-1,T=!1,E=50,w=[],y=3;"number"!=typeof f&&(f=0),this.addEventListener=function(e,t){m[e]=m[e]||[],m[e].push(t)},this.removeEventListener=function(e,t){if(m[e]&&0!==m[e].length){var n=m[e].indexOf(t);-1!==n&&m[e].splice(n,1)}},this.bind=function(e,t){if("string"==typeof e)this.addEventListener(e,t);else if("object"==typeof e)for(var n=Object.keys(e),i=0;n.length>i;i++){var a=n[i];h.addEventListener(a,e[a])}},this.unbind=function(e,t){t!==void 0?this.removeEventListener(e,t):m[e]=[]},this.off=this.unbind;var I=function(e){switch(e.data){case 2:k("error","Invalid video url.");break;case 5:k("error","The video cannot be played.");break;case 100:k("error","This video has been removed from YouTube and is no longer available for playback.");break;case 101:case 150:k("error","This video is unavailable. Its YouTube owner either disabled embedding or marked it private.");break;default:}};c&&this.addEventListener("error",c);var N=function(e){switch(C=e.data,e.data){case YT.PlayerState.PAUSED:k("pause");break;case YT.PlayerState.ENDED:k("ended");break;case YT.PlayerState.PLAYING:k("playing"),k("play");break;case YT.PlayerState.BUFFERING:}},M=function(e){b=e.data,k("ratechange",b)};n.getShowYouTubeAnnotations()&&(y=1);var R=new e.YT.Player(r,{width:l,height:d,videoId:t,playerVars:{wmode:"opaque",loop:0,autoplay:0,controls:0,disablekb:1,rel:0,showsearch:0,showinfo:0,iv_load_policy:y,playsinline:1,start:f},events:{onReady:g,onStateChange:N,onPlaybackRateChange:M,onError:I}}),k=function(e,t){var n={type:e,target:h,data:t};if(m.hasOwnProperty(e))for(var i=m[e].slice(0),a=0;i.length>a;a++)i[a](n)},P=new a(this),x=function(){return{start:function(){return 0},end:function(){return S*A},length:1}};Object.defineProperty(this,"buffered",{get:x}),Object.defineProperty(this,"currentTime",{get:function(){return v},set:function(e){+e>h.buffered.end()?R.seekTo(+e,!0):R.seekTo(+e),k("seeked")}}),Object.defineProperty(this,"duration",{get:function(){return S}}),Object.defineProperty(this,"paused",{get:function(){return C===YT.PlayerState.PAUSED}}),Object.defineProperty(this,"playbackRate",{get:function(){return b},set:function(e){R.setPlaybackRate(+e)}}),Object.defineProperty(this,"played",{get:function(){return P}}),Object.defineProperty(this,"seekable",{get:function(){return{start:function(){return 0},end:function(){return S},length:1}}}),Object.defineProperty(this,"supportPlaybackRate",{get:function(){return T}}),Object.defineProperty(this,"validRateSettings",{get:function(){return w}}),Object.defineProperty(this,"volume",{get:function(){return E},set:function(e){var t=100*e;R.setVolume(t),E=t}}),this.play=function(){R.playVideo()},this.pause=function(){R.pauseVideo()},this.attr=function(e,t){var n=document.getElementById(r);n.setAttribute(e,t)},this.load=function(){};var L=function(){if(void 0!==R.getCurrentTime){var e=R.getCurrentTime();v!==e&&(v=e,k("timeupdate",e));var t=R.getVideoLoadedFraction;if(void 0!==t&&null!==t){var n=R.getVideoLoadedFraction();A!==n&&(A=n,k("progress"))}}};setInterval(L,250)};e.TSC.youTube=e.TSC.youTube||{},e.TSC.youTube.init=function(t,n,i,a,r,s,u,c){var l=/v=(.{11})/i,d=l.exec(t),f=d?d[1]:"*";e.onYouTubeIframeAPIReady.ready?e.TSC.youTube.player=new o(f,n,i,a,r,s,u,c):e.onYouTubeIframeAPIReady.queued.push(function(){e.TSC.youTube.player=new o(f,n,i,a,r,s,u,c)})},e.TSC.youTube.addApi=function(){var e=t("script[src='"+r+"']").length;return e||t.getScript(r),!e}}(window,jQuery,TSC.playerConfiguration,TSC.deviceInfo,TSC.playedTracker),function(e,t,n){e.TSC=e.TSC||{},e.TSC.searchTool=function(){function e(e,n){function i(e){var i=t("").addClass("foundSearchText").text(n);e.append(i)}for(var a=t(""),r=e.split(n),o=0;r.length>o;o++){var s=document.createTextNode(r[o]);a.append(s),r.length-1>o&&i(a)}return a}function i(n,i){for(var a=[],r=n.items.length,o=i.toLowerCase().split(" "),s=0;r>s;s++){var u="",c=n.items[s],l=o[0];if(!(0>c.toLowerCase().indexOf(l))){for(var d=0;o.length>d;d++)u+=s+d>=r?"":0==d?n.items[s+d]:" "+n.items[s+d];if(-1!=u.toLowerCase().indexOf(i.toLowerCase())){var f;f=4>o.length?Math.floor(5-o.length/2):2;for(var p,g,h="",m="",v=0;f>v;v++)s-f+v>=0&&(h+=n.items[s-f+v]+" "),r>s+o.length+v&&(m+=" "+n.items[s+o.length+v]);p=e(u,i),g=t(""),g.append(document.createTextNode("..."+h)),g.append(p),g.append(document.createTextNode(m+"..."));var S=n.file,A="";void 0!==S&&(A="data-file='"+S+"'"),a.push({text:g,start:n.start,file:n.file,imageRef:void 0,imageRect:void 0})}}}return a}function a(t,n,i){for(var a=[],r=0;t.length>r;r++)if(-1!=t[r].text.toLowerCase().indexOf(n.toLowerCase()))if(i)a.push(t[r]);else{var o={text:e(t[r].text,n),start:t[r].start!==void 0?t[r].start:t[r].time,file:t[r].file,imageRef:t[r].imageRef,imageRect:t[r].imageRect};a.push(o)}return a}function r(e,t){for(var n=[],r=a(e,t,!0),o=r.length,s=0;o>s;s++)n=n.concat(i(r[s],t));return n}function o(e){var t=[];return t=t.concat(a(n.getTocItemArray(),e)),t=t.concat(a(n.getCaptionItemArray(),e)),t=t.concat(r(n.getScreenTextItemArray(),e)),1>n.getCaptionItemArray().length&&n.getSpeechTextItemArray().length>0&&(t=t.concat(r(n.getSpeechTextItemArray(),e))),t}return{searchXmpForString:o}}()}(window,$,TSC.xmp),function(e,t,n,i,a,r,o){"use strict";e.TSC.flashView=e.TSC.flashView||{},e.TSC.flashView=function(){function e(){var e={};e.src=i.getUnicodeSafeString(i.getMediaSrc());var t=location.href.lastIndexOf("/"),n=location.href.substr(0,t+1);return i.getXMPSrc()&&(e.xmp=i.getXMPSrc(),i.isIEOnServerWithUnicode()&&(e.xmp=i.getUnicodeSafeString(n)+e.xmp)),i.getAutoPlayMedia()&&(e.autoPlayJS=i.getAutoPlayMedia()),-1!==i.getAllowRewind()&&(e.allowRewind=i.getAllowRewind()),i.getConfigurationSrc()&&(e.configuration=i.getConfigurationSrc()),e.debugHotspots=i.getDebugHotspot(),i.getPosterImageSrc()&&(e.poster=i.getPosterImageSrc(),i.isIEOnServerWithUnicode()&&(e.poster=i.getUnicodeSafeString(n)+e.poster)),e.authoredLanguage=r.getLanguage(),i.getFathomId()&&(e.fathomId=i.getFathomId(),e.fathomEnvironmentId=o.getEnvironment()),i.getTechSmithAccessToken()&&(e.quizServiceAccessToken=i.getTechSmithAccessToken()),e.quizServiceEnvironmentId=a.getEnvironment(),e.isUserIdentified=i.getIsUserIdentified(),i.getGoogleAnalyticsID()&&""!=i.getGoogleAnalyticsID()&&(e.analytics=i.getGoogleAnalyticsID(),i.getGAEventTracking()||(e.trackEvents=!1),i.getGAPageViewTracking()||(e.trackPageViews=!1)),i.getCustomEventTracking()&&(e.customEventTracking=!0,e.customEventJSCallback=i.getCustomEventCallback().name),e.altEventCategoryAsFilename=i.getAltEventCategoryAsFilename(),e.altLoadTimeAsSeconds=i.getAltLoadTimeAsSeconds(),e.debugUI=i.getDebugUIMode(),e.advancedSeeking=i.getAdvancedSeeking(),e.enforceLinearAssessments=i.getEnforceLinearAssessment(),e.scormComplete=i.getReportScormComplete(),e.hostingPage=i.getUnicodeSafeString(document.location),e.initialSeekTime=i.getScormStartPt(),e}function s(){var e={};return e.quality="high",e.bgcolor="#000000",e.allowscriptaccess="always",e.allowfullscreen="true",e.wmode="direct",e.allowNetworking="all","."!==i.getSwfBase()&&(e.base=i.getSwfBase()),e}function u(a){var r=e(),o=i.getMinFlashPlayerVersion(),u=s(),d={};d.id=l,d.name=l,d.align="middle";var f=i.getUnicodeSafeString(i.getFlashPlayerSwf());if(i.isIEOnServerWithUnicode()){var p=location.href.lastIndexOf("/"),g=location.href.substr(0,p+1);f=i.getUnicodeSafeString(g)+f}n.embedSWF(f,a.replace(/#/,""),i.getPlayerWidth(),i.getPlayerHeight(),o,i.getFlashUpdateBootstrapSwf(),r,u,d),n.createCSS(a,"display:block;text-align:left;"),t(a).show(),c=t("#"+l)[0]}var c,l="tscplayer";return{render:u,jsPlay:function(){if(!c.jsPlay)throw Error("Flash-View: jsPlay was not found");c.jsPlay()},jsDebugUI:function(){if(!c.jsDebugUI)throw Error("Flash-View: jsDebugUI was not found");c.jsDebugUI(!0)}}}()}(this,jQuery,swfobject,TSC.playerConfiguration,TSC.quizService,TSC.localizationStrings,TSC.fathomService),function(e,t,n,i,a,r,o,s,u,c,l,d,f,p,g,h,m,v,S,A,b){e.TSC=e.TSC||{},e.TSC.playerView=function(){"use strict";function n(e,t,n){u.getCustomEventTracking()&&u.getCustomEventCallback()&&(u.getAltEventCategoryAsFilename()?u.getCustomEventCallback().call(this,{category:u.getMediaFileName(),action:e,label:t,value:n}):u.getCustomEventCallback().call(this,{category:Wi,action:e,label:t,value:n})),u.getGoogleAnalyticsID()&&_gaq.push(["_trackEvent",Wi,e,t])}function p(){return h&&h.getQuizID()}function g(e){mn&&Ii&&e.keyCode===Yi&&(e.originalEvent.preventDefault(),vn.paused?vn.play():vn.pause())}function C(){i.isTouchInterface()||ii.bind("keydown",g)}function T(){i.isTouchInterface()||ii.unbind("keydown",g)}function E(e,t){t=t.replace(/\)/gi,"\\)"),t=t.replace(/\(/gi,"\\("),e.css("background-image","url("+t+")")}function w(e){E(t("#videoClickToPlayLink, #videoClickToReplayLink"),e)}function y(e){-1!=hi&&t("#tableOfContentsList li:nth-child("+hi+") ").removeClass("selectedTocItem"),hi=e,t("#tableOfContentsList li:nth-child("+hi+") ").addClass("selectedTocItem")}function I(){var e,n,i,a,r,o;0>si||(e=An.width(),n=An.height(),i=si*L(),a=ui*L(),r=Math.max((e-i)/2,0),o=Math.max((n-a)/2,0),$n.css({width:i,height:a,left:r,top:o}),t.each(f.getHotspotItemArray(),function(e,t){var n;l.isPlaylist()&&(n=l.getCurrentMedia().mediaSrc),(void 0===t.file||t.file===n)&&t.jqel.attr("coords",t.pointsToCoords())}))}function N(){t("#searchList").remove(),Fn.show(),Y()}function M(){if(!(void 0===mn||0>=ui)){var e=ui;"under"===f.getCaptionPosition()&&(e=ui*((Sn.height()-Tn.height())/(ui+f.getCaptionBarHeight())),An.css("height",e+"px"),Jn.css("height",f.getCaptionBarHeight()*L()+"px"));var t=Math.round(Number(f.getCaptionFontSize())*L());t=f.getMinCaptionFontSize()>t?f.getMinCaptionFontSize():t,t=t>f.getMaxCaptionFontSize()?f.getMaxCaptionFontSize():t,jn.css("font-size",t)}}function R(){bi=ei.width(),Ci=Tn.height(),ei.attr("width",bi+"px"),ei.attr("height",Ci+"px")}function k(){var e=ei[0].getContext("2d");s.drawMarkers(1e3*vn.duration,e,bi,Ci)}function P(){t("#videoSidebarContentWrapper").css({top:t("#videoSidebarHead").height()+"px"})}function x(){Li&&P();var e=mn&&vn;e&&vn.duration&&p()&&s.quizEnabled()&&(R(),k(),s.viewOpen()&&s.pointViewAt(O(Ai))),f.hasCaptionItems()&&M(),f.hasHotspotItems()&&void 0!==mn&&I()}function L(){var e=1;if(void 0!==mn&&si>0&&mn.width()>0){var t=mn.width()/si,n=mn.height()/ui;e=Math.min(t,n)}return e}function Q(){Li&&!i.supportsFullScreenKeyboardInput()&&t("#videoSidebar").removeClass("search_disabled")}function B(){u.getDisableControls()||Tn.show(),It(),t("#ctoplay").hide(),Ft()}function D(e){(void 0===e.target.id||""+e.target.id===ln)&&(wi=!wi,wi?(kn.removeClass("fullscreen_enter_button_normal"),kn.addClass("fullscreen_leave_button_normal")):(Q(),kn.removeClass("fullscreen_leave_button_normal"),kn.addClass("fullscreen_enter_button_normal"),t("body").css("margin-left","1px"),Ni=!0,x(),t("body").css("margin-left","0"),Ni=!0),x())}function _(){zi=!0,si=vn.videoWidth,ui=vn.videoHeight,i.isIPhoneOrIPod()&&ni.css("cursor","pointer"),mn.bind("ratechange",function(){V(),q()},!1),mn.bind("play",function(){V(),q()},!1),ci=0,Ji?B():!p()||p()&&(!s.quizEnabled()||s.getQuizReady())?B():(vn.pause(),qt(s.getLastStatusMessage())),d.isEnabled()&&!d.isPercentWatchedInitialized()&&d.initPercentWatched(1e3*vn.duration),!i.supportsFullScreen()||i.isIPad()||i.isAndroid()?e==e.top||u.getDisableFullframeMode()?kn.remove():(kn.show(),Mi=!0):(ii.on(i.getFullScreenChangeEventNames(),D),Ri=!0),Ni=!0,f.hasHotspotItems()&&an(),x()}function O(e){var t=Dn.offset().left;if(mn&&vn.duration&&vn.duration>0){var n=Math.max(0,Math.min(e,vn.duration)),i=n/vn.duration;t+=i*Dn.width()}return t}function G(){!Ii||0===vn.duration||p()&&s.quizEnabled()&&!s.getQuizReady()||(ci=vn?vn.currentTime>vn.duration?vn.duration:vn.currentTime:0,Fi=Number(vn.currentTime.toFixed(2))>=Number(vn.duration.toFixed(2)),li=1e3*ci,st(),d.isEnabled()&&U(),!_i&&p()&&s.quizEnabled()&&H(),f.hasHotspotItems()&&q(),f.hasCaptionItems()&&F(),u.getReportScormComplete()&&1===d.getPercentageWatched()&&(u.setReportScormComplete(!1),t.isFunction(userSubmitVideoCompletedToLMS)&&userSubmitVideoCompletedToLMS()),_i||-1!==Si||!Fi||qi||(qi=!0,vn.pause(),mt()))}function z(){t.each(f.getHotspotItemArray(),function(e,t){t.hasPausedAtEnd=!1})}function V(){t.each(f.getHotspotItemArray(),function(t,n){n.timer&&e.clearTimeout(n.timer),n.isActive=!1,void 0!=n.jqel&&n.jqel.remove()})}function q(){t.each(f.getHotspotItemArray(),function(t,n){var i;if(l.isPlaylist()&&(i=l.getCurrentMedia().mediaSrc),void 0===n.file||n.file===i)if(ci>n.start&&n.end>=ci){n.isActive===!1&&(n.isActive=!0,n.jqel.appendTo($n.find("map")));var a=1>=n.end-ci;if(void 0!==n.pause&&n.pause===!0&&!n.hasPausedAtEnd&&a&&!vn.paused){var r=10/(30*c.getPlaybackRate()),o=(n.end-ci)/c.getPlaybackRate()-r;e.clearTimeout(n.timer),n.timer=setTimeout(function(){vn.pause(),n.hasPausedAtEnd=!0},1e3*o)}}else n.isActive&&(z(),V())})}function F(){var e,n=!1,i=null;t.each(f.getCaptionItemArray(),function(t,a){e=!0;var r;l.isPlaylist()&&(r=l.getCurrentMedia().mediaSrc),void 0!==a.file&&a.file!==r&&(e=!1),ci>a.start&&a.end>=ci&&e&&(n=!0,a.text!==jn.text()&&(i=a))}),n?null!==i&&(Jn.removeClass("captionHAlignLeft"),Jn.removeClass("captionHAlignCenter"),Jn.removeClass("captionHAlignRight"),Jn.addClass(i.hAlignClass),Jn.removeClass("captionVAlignTop"),Jn.removeClass("captionVAlignBottom"),Jn.addClass(i.vAlignClass),jn.html(i.htmlText),pn&&pn.call(i.htmlText)):jn.html("")}function H(){var e=s.findQuestionSet(li);if(e.id>=0){if(Si!==e.id){if(T(),Nt(),Rt(!1),qn&&K(!1),Si=e.id,Ai=e.markerTime/1e3,vn.pause(),setTimeout(function(){rt(Ai,!0)},100),wi&&!i.supportsFullScreenKeyboardInput()&&rn("#videoWrapper",r.getString("txtQuizFullscreenMode"),!0),s.displayConfirm(e.id),s.pointViewAt(O(Ai)),d.isEnabled()){d.markTimeWatched(e.markerTime);var t=d.getPercentageWatchedForVideoSegment(s.findPrevMarkerTimeForMarker(e.id),e.markerTime);s.updatePercentWatchedForQuestionSet(Si,t)}kt(!1)}}else Si=-1}function U(){var e=Math.round(100*d.getPercentageWatched());d.markTimeWatched(li),"function"==typeof onVideoWatchedPercentage&&onVideoWatchedPercentage(.01*e,d.getCurrentPlayTime()),u.getTrackEvents()&&e>=Ti+Ei&&(Ti+=Ei,e>Ti&&(Ti=Ei*Math.floor(e/Ei)+Ei),Ti>100&&(Ti=100),n("Video_Percent_Viewed","Viewed: "+Ti+" Percent"))}function W(e){e>1?e=1:0>e&&(e=0),vn.volume=e}function J(e,n,i,a,r,o,s){var u,c,d,p,g="",h="",m=1,v=0,S=0,A=20,b=65,C=!1;if(void 0!==a&&(h="data-file='"+a+"'"),o){var T=o.split(",");-Number(T[0]),-Number(T[1]);var E=Number(T[2]),w=Number(T[3]);c="hasThumbImage",g="style='height:"+w+"px'",b>w&&(C=!0,g="style='height:"+b+"px'"),f.getTocCellLayoutType()&&"imageOnly"===f.getTocCellLayoutType()&&void 0===s?v=(gi-E-A)/2:E>gi/2-A?(m=(gi/2-A)/E,E=gi/2-A,S=Math.floor((T[3]-T[3]*m)/2)):S=Math.floor((b-T[3]*m)/2),p={},p.width=Number(gi-E-40)+"px",p.left=Number(E+5)+"px",p.overflow="hidden",p["line-height"]="1.2em",p["max-height"]="4.8em",d=f.getTocCellLayoutType()&&"imageOnly"===f.getTocCellLayoutType()?"":"string"==typeof n?t('
').text(n):t('
').append(n),u=t("
").append(d)}else g="",c="noThumbImage",u="string"==typeof n?document.createTextNode(n):n;var I="
  • ";if(t(e).append(I),r){var N=r.getContext("2d");r.width=Number(T[2])*m,r.height=Number(T[3])*m,N.scale(m,m),Hn?N.drawImage(Hn,T[0],T[1],T[2],T[3],0,0,T[2],T[3]):(N.fillStyle="#000000",N.fillRect(0,0,T[2],T[3])),t(r).css("margin-left",v),t(r).css("margin-top",S),t(e+" li:last-child").append(r)}if(t(e+" li:last-child").append(u),r){t(e+" li:last-child .tocItemLabel").css(p);var M=0,R=b;t(qn).is(":visible")?(M=t(e+" li:last-child .tocItemLabel").height(),C||(R=t(e+" li:last-child").height())):(K(!0),M=t(e+" li:last-child .tocItemLabel").height(),C||(R=t(e+" li:last-child").height()),K(!1));var k=-8;C||1!==m||(k=4);var P=-Number(R+k);P+=(R-M)/2,S=Math.floor((R-T[3]*m)/2),t(r).css("margin-top",S),t(e+" li:last-child .tocItemLabel").css("top",P+"px")}l.isPlaylist()&&y(hi)}function j(e){Hn=new Image,Hn.onload=function(){Y()},Hn.onerror=function(){Hn.onload=void 0,Hn.onerror=void 0,Hn=void 0,Y()},Hn.src=e}function Y(){var e=f.getTocItemArray(),n=e.length;t("#tableOfContentsList li").remove();for(var i=0;n>i;i++)e[i].imageRect&&(e[i].imageRef=document.createElement("canvas")),J("#tableOfContentsList",e[i].text,e[i].time,e[i].file,e[i].imageRef,e[i].imageRect)}function Z(){var e,n,i,a=Un.width,r=Un.height,o=.6;a>=r?a>gi-20?(e=(gi-20)/a,n=gi-20,i=r*e):(e=1,n=a,i=r):r>gi-20?(e=(a*o-20)/r,i=gi*o-20,n=a*e):(e=1,i=r,n=a);var s='
    ";t(s).prependTo(t("#videoSidebarHead")),t("#videoSidebarHead .video_title").text(f.getTocTitle())}function K(e){e?(qn.show(),P(),kt(!1)):(qn.hide(),Di||kt(!0))}function X(e){if(Oi=!1,!i.isTouchInterface()||!Gi){e.stopImmediatePropagation(),e.preventDefault();var n=t(this).attr("data-time"),a=t(this).attr("data-file");if(void 0!==a){V();var r=l.getMediaIndexBySrc(a);r===l.getCurrentMediaIndex()?rt(n):(l.setCurrentMedia(r),Zt()),y(r+1)}else rt(n)}}function $(){K(Qi),qn.toggleClass("right","right"===u.getSidebarLocation()),u.getIsSearchable()?(Wn.keyup(function(){if(""!=Wn.val()){Fn.hide(),t("#searchList").remove(),t("#videoSidebarContent").append("
      ");for(var e=A.searchXmpForString(Wn.val()),n=0;e.length>n;n++)J("#searchList",e[n].text,e[n].start,e[n].file,e[n].imageRef,e[n].imageRect);t("#searchList").show()}else N()}),Rn.click(function(){Wn.val(""),N()})):t("#searchArea").remove(),f.getTocImageSrc()?(Un=new Image,Un.onload=Z,Un.src=f.getTocImageSrc()):t("#videoSidebarHead .video_title").text(f.getTocTitle()),f.tocContainsThumbs()?j(f.getTocThumbImageSrc()):Y(),Bn.bind("pointerdown",et),t("#videoSidebarContent").on("pointerup","li",X),Gi=!1,t("#videoSidebarContent").on("pointerdown","li",function(){Gi=!1}),t("#videoSidebarContent").on("pointermove ","li",function(){i.isTouchIEInterface()||(Gi=!0)})}function et(e){var t;_i=!0,xt(),vn.paused?t=!1:(t=!0,vn.pause()),it(),ot(e.originalEvent.pageX),Nt(),ii.bind("pointermove",function(e){e.preventDefault(),ot(e.originalEvent.pageX)}),ii.bind("pointerup",function(e){Lt(),_i=!1,at(),ot(e.originalEvent.pageX),t&&!Fi&&vn.play(),ii.unbind("pointermove pointerup"),It(),G()})}function tt(){mn.bind("durationchange",function(){nt(),ai&&e.clearInterval(ai),ai=e.setInterval(nt,1e3)}),i.isTouchInterface()||Dn.bind("pointerdown",et)}function nt(){var t;mn&&vn&&(vn.buffered&&vn.buffered.length&&(t=Math.min(100,Math.ceil(100*vn.buffered.end(vn.buffered.length-1)/vn.duration))),_n.width((t||0)+"%"),100===t&&ai&&e.clearInterval(ai))}function it(){document.body.focus(),document.onselectstart=function(){return!1}}function at(){document.onselectstart=function(){return!0}}function rt(e,t){V(),z(),void 0===t&&(t=!1);try{for(var n=!1,i=0;vn.seekable.length>i;i++){var a=vn.seekable.start(i),r=vn.seekable.end(i);e>=a&&r>=e&&(n=!0)}n?ki?di=e:(vn.currentTime=e,st()):t&&setTimeout(function(){rt(e,!0)},100)}catch(o){t&&setTimeout(function(){rt(e,!0)},100)}}function ot(e){var t=e-Dn.offset().left,n=t/Dn.width();On.width(Math.min(100,Math.max(0,100*n))+"%"),V(),Oi=!1,rt(Number(n*vn.duration)),ut()}function st(){On.width(100*vn.currentTime/vn.duration+"%"),ut()}function ut(){Gn[0].innerHTML=ct(vn.currentTime),vn.duration&&(zn[0].innerHTML=ct(vn.duration))}function ct(e){e=Math.round(e);var t=Math.floor(e/60);return t=t>=10?t:"0"+t,e=Math.floor(e%60),e=e>=10?e:"0"+e,t+":"+e}function lt(e,t){var n=100;try{n=void 0==localStorage.getItem("volume")?100:localStorage.getItem("volume")}catch(i){}e.slider({orientation:t,range:"min",min:0,max:100,value:n,slide:function(e,t){Yn.removeClass("volume_button_high_normal"),Yn.removeClass("volume_button_med_normal"),Yn.removeClass("volume_button_low_normal"),Yn.removeClass("volume_button_normal"),Yn.removeClass("unmute_button_normal"),t.value>70?Yn.addClass("volume_button_high_normal"):t.value>30?Yn.addClass("volume_button_med_normal"):t.value>0?Yn.addClass("volume_button_low_normal"):Yn.addClass("unmute_button_normal"),W(t.value/100);try{localStorage.setItem("volume",t.value)}catch(n){}}});try{W(void 0==localStorage.getItem("volume")?100:localStorage.getItem("volume")/100)}catch(i){}}function dt(){Xn.removeClass(Ui)}function ft(){-1!==pi&&(clearTimeout(pi),pi=-1),Xn.unbind("mouseenter"),Xn.unbind("mouseleave"),Xn.addClass(Ui)}function pt(){V(),Li&&Qi&&(t(this).removeClass("toc_off_button_normal"),t(this).addClass("toc_button_normal"),K(!1)),Cn.show()}function gt(e,t){qi=!1,Oi=!1,Cn.hide(),Sn.css("visibility","visible"),V(),C(),l.isPlaylist()||rt(e),t&&(l.isPlaylist()?(l.setCurrentMedia(0),y(l.getCurrentMediaIndex()+1),Zt()):vn.play())}function ht(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()}function mt(){if(Math.floor(vn.currentTime)0&&(Xn.bind("mouseenter",function(){-1!=pi&&(clearTimeout(pi),pi=-1)}),Xn.bind("mouseleave",function(){pi=setTimeout(function(){ft(),pi=-1},1e3)}),-1!=pi&&(clearTimeout(pi),pi=-1),pi=setTimeout(function(){ft(),pi=-1},1e3))}),Yn.click(function(){var e;Pi=!Pi,Pi?(fi=vn.volume,e=0,Zn.slider("value",[0])):(e=fi,Zn.slider("value",[100*fi])),Yn.removeClass("volume_button_high_normal"),Yn.removeClass("volume_button_med_normal"),Yn.removeClass("volume_button_low_normal"),Yn.removeClass("volume_button_normal"),Yn.removeClass("unmute_button_normal"),e>.7?Yn.addClass("volume_button_high_normal"):e>.3?Yn.addClass("volume_button_med_normal"):e>0?Yn.addClass("volume_button_low_normal"):Yn.addClass("unmute_button_normal"),W(e)}),Kn.length>0?(lt(Kn,"horizontal"),Xn.show()):lt(Zn,"vertical"),f.hasCaptionItems()&&("under"===f.getCaptionPosition()?(xi=!0,Jn.css("background",f.getCaptionBg()),Jn.addClass("caption_under_video"),Jn.removeClass("hide"),Tn.addClass("caption_under_video"),M()):a(),Ln.bind("click",function(){xi=!xi,a()})),i.isAndroid()?Pn.hide():Ji?S.player.supportPlaybackRate?r(S.player.validRateSettings):Pn.hide():r(),kn.click(function(e){if(Mi)vt();else if(wi)u.getIsSearchable()&&Q(),ht();else{var n=document.getElementById(ln);i.supportsFullScreenKeyboardInput()?n.requestFullscreen?n.requestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.msRequestFullscreen?n.msRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen&&n.mozRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):(Li&&u.getIsSearchable()&&t("#videoSidebar").addClass("search_disabled"),n.requestFullscreen?n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.msRequestFullscreen?n.msRequestFullscreen():n.mozRequestFullScreen&&n.mozRequestFullScreen())}e.preventDefault()}),Li&&(xn.click(function(){Qi=!Qi,Qi?(t(this).removeClass("toc_off_button_normal"),t(this).addClass("toc_button_normal")):(t(this).removeClass("toc_button_normal"),t(this).addClass("toc_off_button_normal")),"none"===qn.css("display")?K(!0):K(!1)}),u.getSidebarEnabled()?(Qi=!0,xn.removeClass("toc_off_button_normal"),xn.addClass("toc_button_normal"),K(!0)):(xn.removeClass("toc_button_normal"),xn.addClass("toc_off_button_normal"))),i.isIPad()||i.isAndroid()?(t("body").on("blur","textarea",function(){Vi=!1,Yt()&&b.clear(),yi&&wt()}),t("body").on("focus","textarea",function(e){if(Vi=!0,Yt()){var t=e.target;b.watch(t)}yi&&Et()}),t("body").on("blur","input:text",function(){Vi=!1,Yt()&&b.clear(),yi&&wt()}),t("body").on("focus","input:text",function(e){if(Vi=!0,disableTouchControls(),Yt()){var t=e.target;b.watch(t)}yi&&Et()}),e.parent.onorientationchange=function(){yi&&(Bi?(t("#searchBox").blur(),setTimeout(yt,500)):yt())}):i.isTouchInterface()&&Dn.bind("pointerdown",et),C(),u.getDisableControls()&&Mt()}function Ct(e){It()||Rt(!0),gt(e,!0),u.getTrackEvents()&&(u.getAltEventCategoryAsFilename()?n("Video_Replay",Wi):n("Video_Replay",l.getCurrentMediaFirstMediaSourceAsString()))}function Tt(){Ct(0)}function Et(){ii.unbind("touchmove"),ii.unbind("gesturestart"),t(e.parent).unbind("gesturestart"),ii.unbind("gestureend"),t(e.parent).unbind("gestureend")}function wt(){ii.bind("touchmove",function(e){t.contains(Fn[0],e.target)||p()&&s.quizEnabled()&&s.viewOpen()||e.preventDefault()}),ii.bind("gesturestart",function(e){e.preventDefault()}),t(e.parent).bind("gesturestart",function(e){e.preventDefault()}),ii.bind("gestureend",function(){vt()}),t(e.parent).bind("gestureend",function(){vt()})}function yt(){x()}function It(){return!u.getAutoHideControls()||f.hasCaptionItems()&&"under"===f.getCaptionPosition()?!1:(i.isTouchInterface()?ni.bind("pointerover pointerup",function(){Rt(!0)}):(ni.hover(Rt,Mt),ni.bind("pointermove",function(){Rt(!0)})),Lt(),!0)}function Nt(){xt(),ni.unbind("pointermove pointerenter pointerleave pointerover pointerup mouseenter mouseleave")}function Mt(){kt(!1),Bi||_i||c.isOpen()||(Di=!0,Tn.stop(!0,!0),Tn.fadeOut(oi),Qi&&(qn.stop(!0,!0),qn.fadeOut(oi)),-1!==pi&&ft(),Ji&&ti.removeClass("hide"))}function Rt(e){u.getDisableControls()||(Di&&(Di=!1,Tn.stop(!0,!0),Tn.fadeIn(oi),Qi?(qn.stop(!0,!0),qn.fadeIn(oi)):kt(!0),e&&st(),Ni&&(Ni=!1,x())),e&&Lt(),Ji&&ti.addClass("hide"))}function kt(e){i.isNuevoApp()&&(document.location=e?"nuevo://shownavbar":"nuevo://hidenavbar")}function Pt(){if(i.isNuevoApp()){var e=document.location;document.location="nuevo://hasPlayedToEnd?url="+e}}function xt(){e.clearTimeout(mi)}function Lt(){xt(),u.getAutoHideControls()&&(mi=e.setTimeout(Mt,vi))}function Qt(i){i.preventDefault();var a=f.getHotspotItemArray(),r=Number(t(i.target).attr("hotspot_index"));if(void 0!==a[r].jumpFile){var o=l.getMediaIndexBySrc(a[r].jumpFile);l.setCurrentMedia(o),y(l.getCurrentMediaIndex()+1),Zt()}else if(""!==a[r].jumpTime)Oi=!1,rt(Number(a[r].jumpTime)),vn.play();else if(""!==a[r].targetURL){u.getTrackEvents()&&n("Hotspot_Action",a[r].targetURL);var s="_parent";void 0!==a[r].newWindow&&a[r].newWindow===!0&&(s="_blank"),e.open(a[r].targetURL,s)}else vn.play()}function Bt(){d.isEnabled()&&(d.setVideoLoadEndTime((new Date).getTime()),u.getTrackEvents()&&(u.getAltEventCategoryAsFilename()?u.getAltLoadTimeAsSeconds()?n("Video_Loading_Time_In_Seconds",Wi,d.getVideoLoadTime()/1e3):n("Video_Loading_Time",Wi,d.getVideoLoadTime()):u.getAltLoadTimeAsSeconds()?n("Video_Loading_Time_In_Seconds",l.getCurrentMediaFirstMediaSourceAsString(),d.getVideoLoadTime()/1e3):n("Video_Loading_Time",l.getCurrentMediaFirstMediaSourceAsString(),d.getVideoLoadTime()))),Ii=!0}function Dt(){ki=!0}function _t(){ki=!1,di>-1&&(rt(di),di=-1)}function Ot(){if(bn.hide(),mn.unbind("playing"),u.getScormStartPt()){var e=u.getScormStartPt();vn.duration>e&&rt(Number(e),!0)}if(u.getJumpToTime()){var t=un(u.getJumpToTime());vn.duration>t&&rt(Number(t),!0)}u.getDebugUIMode()&&hn&&hn.call(this)}function Gt(){f.hasHotspotItems()&&$n.on("click","area",Qt),f.hasCaptionItems()&&(jn.css({"font-family":f.getCaptionFontFamily(),color:f.getCaptionTextColor(),background:f.getCaptionBg()}),xi=u.getCaptionsEnabled())}function zt(e,t,n){n||(n=!1);var a="o;o++){var s=u.getUnicodeSafeString(e[o].mediaSrc);a+=''}return a+=u.getUnableToDisplayContentString()+""}function Vt(){qt(Ki.getString("videoLoading"))}function qt(e){if(Zi.viewOpen())Zi.setViewMessage(e);else{var t=Zi.getViewMarkup(e);ni.append(t),Zi.showView()}}function Ft(){Zi.viewOpen()&&Zi.removeView()}function Ht(){return Ji?S.player:t("video")[0]}function Ut(){p()&&s.quizEnabled()?Wt():jt()}function Wt(){bn.hide(),s.init(u.getEnforceLinearAssessment(),Ht)}function Jt(e){rn("#tscVideoContent",e.data,!1)}function jt(){if(fn&&fn.call(),Ji)mn=e.TSC.youTube.player,vn=e.TSC.youTube.player;else{var n=zt(l.getCurrentMedia(),!1);t("#videoDiv").html(n),mn=t("video"),mn.length>0&&(vn=mn[0])}if(mn.bind({loadedmetadata:_,playing:Ot,canplay:Bt,seeking:Dt,seeked:_t,timeupdate:G,progress:nt}),Sn.removeClass("hide"),Gt(),bt(),Li&&$(),p()&&s.quizEnabled()){var i=t("
      ",{"class":"quizMarker"});ni.append(i),m.setSize(i.width()),m.setColor(i.css("color")),i.remove(),ei.show()}Ni=!0,x(),Tn.hide(),Yt()&&b.setOnBugCallback(function(e){1===e&&rn("#videoWrapper","For the best experience, avoid tapping the video while inputting text.",!0)}),Zt()}function Yt(){return i.isIPad()&&8>i.getIOSMajorVersion()&&Ji&&(Li||p()&&s.quizEnabled()&&h.quizContainsTextInputQuestions())}function Zt(){qi=!1,Oi=!1,l.isPlaylist()&&(l.onFirstMedia()?(Nn.removeClass("previous_button_normal"),Nn.addClass("previous_button_disabled")):(Nn.addClass("previous_button_normal"),Nn.removeClass("previous_button_disabled")),l.onLastMedia()?(Mn.removeClass("next_button_normal"),Mn.addClass("next_button_disabled")):(Mn.addClass("next_button_normal"),Mn.removeClass("next_button_disabled")),d.isEnabled()&&(d.clearPercentWatched(),Ti=0),vn.src=l.getCurrentMedia().mediaSrc),i.isIPad()||i.isAndroid()?vn.play():(vn.load(),vn.play()),d.isEnabled()&&d.setVideoLoadStartTime((new Date).getTime()),u.getTrackEvents()&&Hi&&(Hi=!1,u.getAltEventCategoryAsFilename()?n("Video_Started",Wi):n("Video_Started",l.getCurrentMediaFirstMediaSourceAsString()),n("Video_Percent_Viewed","Viewed: 0 Percent"))}function Kt(e){switch(e.type){case"COMPLETE":case"REVIEW":if(qn&&Qi?K(!0):kt(!0),C(),It(),k(),"REVIEW"===e.type&&u.getEnforceLinearAssessment()){var t=s.findPrevMarkerTimeForMarker(Si);Si=-1,rt(t/1e3),vn.play()}else vn.play();break;case"BEGIN":case"SKIP":s.setViewContainer("#videoWrapper"),bn.unbind("click",$t),mn?zi&&s.getQuizReady()&&(B(),vn.play(),Ni=!0,x()):jt(),s.startTrackingProgress();break;case"ERROR":mn||jt(),rn("#videoWrapper",r.getString("txtVideoQuizNetworkErrorMessage"),!0);break;case"STATUS":qt(e.message);break;case"SUBMITTED":Ft()}}function Xt(n,a){ni=t(n),cn=n,ln=cn.replace(/^[#]/,""),Li=a,ji=i.requiresManualPreload()&&Ji,ni.html(Xi),Tn=t("#controls"),En=Tn.find(".controls_left"),wn=Tn.find(".controls_right"),yn=t("#rewind"),In=t("#play"),Nn=t("#previous"),Mn=t("#next"),Yn=t("#volume"),Ln=t("#closedCaptionButton"),xn=t("#tocButton"),Pn=t("#settingsButton"),kn=t("#fullscreen_enter_button"),Zn=t("#volume_slider_vertical"),Kn=t("#volume_slider_horizontal"),Xn=t("#volume_slider_container"),Qn=t("#progress"),Bn=t("#progress_box"),_n=t("#load_progress"),On=t("#play_progress"),Dn=t("#progress_scrubbar_track"),Gn=t("#current_time_display"),zn=t("#duration_display"),Vn=t("#scrubbar_scrubber"),qn=t("#videoSidebar"),Fn=t("#tableOfContentsList"),Wn=t("#searchBox"),Rn=t("#clearSearchButton"),Jn=t("#caption"),jn=t("#caption > p"),$n=t("#hotspots"),ei=t("#markers"),Sn=t("#videoWrapper"),An=t("#videoDiv"),bn=t("#videoClickToPlayLink"),Cn=t("#videoClickToReplayLink"),ti=t("#youtubePointerEventWorkaround"),ii=t(document),ji&&bn.addClass("noClickToPlayEvents"),ni.css("background-color",u.getBackgroundColor()),u.getPosterImageSrc()&&w(u.getPosterImageSrc()),ni.fadeIn(oi),Cn.fadeIn(oi),Cn.hide(),(i.isIPad()||i.isAndroid())&&(Yn.hide(),kn.hide(),Yn.remove()),Li&&xn.removeClass(Ui),f.hasCaptionItems()&&("under"===f.getCaptionPosition()?u.setAutoHideControls(!1):Ln.removeClass(Ui)),l.isPlaylist()?(Nn.removeClass(Ui),Mn.removeClass(Ui)):(Nn.addClass(Ui),Mn.addClass(Ui)),x(),t(e).resize(function(){Ni=!0,x()}),Wn.focus(function(){Bi=!0,Wn.val()==Ki.getString("search")&&Wn.val(""),T(),xt()}),Wn.blur(function(){Bi=!1,""===Wn.val().replace(/ /g,"")&&Wn.val(Ki.getString("search")),C(),Lt()})}function $t(e){e.preventDefault(),dn&&dn(),p()&&s.quizEnabled()?Wt():jt()}function en(){TSC.playerView.displayMessagePanel("#tsc_overlay",TSC.localizationStrings.getString("txtQuizErrorMessage"),!1)}function tn(){t("#alertDialog").hide()}function nn(){Wn.val(Ki.getString("search"));var e=i.isIPad()&&!i.isNuevoApp();(e||i.isAndroid()||p()&&s.quizEnabled())&&!u.getMobileWebViewCanAutoPlay()&&u.setAutoPlayMedia(!1),u.getAutoPlayMedia()===!0&&void 0===u.getJumpToTime()?(dn&&dn(),setTimeout(jt,80)):bn.bind("click",$t),p()&&s.quizEnabled()?(s.setViewControlBarOffset(Tn.height()),s.addEventListener("COMPLETE",Kt),s.addEventListener("REVIEW",Kt),s.addEventListener("BEGIN",Kt),s.addEventListener("SKIP",Kt),s.addEventListener("ERROR",Kt),s.addEventListener("STATUS",Kt),s.addEventListener("SUBMITTED",Kt),s.addEventListener("SHOW_LOADING_MESSAGE",Vt),s.addEventListener("HIDE_LOADING_MESSAGE",Ft),s.addEventListener("SHOW_SUBMISSION_RETRY_MESSAGE",en),s.addEventListener("HIDE_SUBMISSION_RETRY_MESSAGE",tn),void 0!==u.getJumpToTime()&&setTimeout(Wt,80)):void 0!==u.getJumpToTime()&&setTimeout(jt,80),(u.getTrackEvents()||u.getReportScormComplete()||p()&&s.quizEnabled())&&d.setEnabled(!0),ri=!0,u.getDebugUIMode()&&gn&&gn.call(this)}function an(){$n.removeClass(Ui),$n.find("map").empty(),t.each(f.getHotspotItemArray(),function(e,n){var i;if(l.isPlaylist()&&(i=l.getCurrentMedia().mediaSrc),void 0===n.file||n.file===i){n.viewpoints=[];for(var e=0;n.points.length>e;e+=2){var a={xorig:Math.round(n.points[e]),yorig:Math.round(n.points[e+1]),xscale:Math.round(n.points[e])/si,yscale:Math.round(n.points[e+1])/ui};n.viewpoints.push(a)}n.pointsToCoords=function(){for(var e=[],t=0;this.viewpoints.length>t;t++)e.push(this.viewpoints[t].xorig>=0?Math.round(this.viewpoints[t].xscale*$n.width()):0),e.push(this.viewpoints[t].yorig>=0?Math.round(this.viewpoints[t].yscale*$n.height()):0);return e.join(",")},n.jqel=t("",{shape:"poly",coords:n.pointsToCoords(),hotspot_index:n.index,alt:"Hotspot",href:"#"})}})}function rn(e,n,i){n=""+n+"",i&&(n+="

      "+Ki.getString("clickToClose")+"

      "),ri?(t("#alertDialog").html(n),t("#alertDialog").fadeIn(oi)):(t(e).css("background-color",u.getBackgroundColor()),t(e).css("height","100%"),t(e).html('
      '+n+"
      "),t(e).fadeIn(oi),t("#alertDialog").show()),i&&t("#alertDialog h4").bind("click",function(){tn(),t("#alertDialog h4").unbind("click")})}function on(){var e="#000";u.getPosterImageSrc()&&(e+=" url("+u.getPosterImageSrc()+") center no-repeat"),t(".appplayer").css({background:e,position:"relative","background-size":"cover",height:"100%","z-index":"1"})}function sn(e){var n,a=t(e);if(TSC.mediaPlayer.isNuevoAppCapableAndAvailable()&&(f.hasAdvancedFeatures()||u.getFathomId())){n=u.getUseSlimAppSplashScreen()?o.ios_app_slim_splash_template({openWithSmartPlayer:Ki.getString("openWithSmartPlayer")}):o.ios_app_splash_template({playWithSmartPlayer:Ki.getString("playWithSmartPlayer"),playVideoOnly:Ki.getString("playVideoOnly")}),a.after(n),on();var r=t(".appplayer");r.show(),a.hide(),u.getUseSlimAppSplashScreen()?t(".openVideoSmartPlayerContainer").click(function(){TSC.mediaPlayer.redirectToiPhoneApp()}):(t(".externalLargePlayBtn").click(function(){r.hide(),a.show(),TSC.mediaPlayer.redirectToiPhoneApp()}),t(".appNativePlayBtn").click(function(){r.hide(),a.show(),mn=t("video"),vn.play()}),t(".appstoreBtn").click(function(){TSC.mediaPlayer.redirectToiPhoneAppDownload()}))}else if(i.isIPhoneOrIPod()){n=o.ios_app_default_template(),a.after(n);var s=t(".externalDefaultPlaybackContainer");u.getPosterImageSrc()&&(E(s,u.getPosterImageSrc()),s.addClass("fullSizePosterImgContainer")),s.show(),a.hide(),s.click(function(e){e.preventDefault(),a.show(),mn=t("video"),vn.play(),setTimeout(function(){a.hide()},1e3)})}}function un(e){if(isNaN(e)){var t=0,n=0,i=0,a=e.toLowerCase(),r=RegExp("(\\d+[h])","g"),o=RegExp("(\\d+[m])","g"),s=RegExp("(\\d+[s])","g"),u=RegExp("\\d+","g"),c=a.match(r),l=a.match(o),d=a.match(s),f=a.match(u);return d||l||c?(c&&(t=60*60*Number(c[0].split("h").join(""))),l&&(n=60*Number(l[0].split("m").join(""))),d&&(i=Number(d[0].split("s").join(""))),Number(t+n+i)):f?i=Number(f[0]):0}return 0>e&&(e=0),e}var cn,ln,dn,fn,pn,gn,hn,mn,vn,Sn,An,bn,Cn,Tn,En,wn,yn,In,Nn,Mn,Rn,kn,Pn,xn,Ln,Qn,Bn,Dn,_n,On,Gn,zn,Vn,qn,Fn,Hn,Un,Wn,Jn,jn,Yn,Zn,Kn,Xn,$n,ei,ti,ni,ii,ai,ri=!1,oi=300,si=-1,ui=-1,ci=0,li=0,di=-1,fi=1,pi=-1,gi=250,hi=1,mi=-1,vi=5e3,Si=-1,Ai=-1,bi=0,Ci=0,Ti=0,Ei=10,wi=!1,yi=!1,Ii=!1,Ni=!1,Mi=!1,Ri=!1,ki=!1,Pi=!1,xi=!1,Li=!1,Qi=!1,Bi=!1,Di=!1,_i=!1,Oi=!1,Gi=!1,zi=!1,Vi=!1,qi=!1,Fi=!1,Hi=!0,Ui="hide",Wi="HTML5-Video",Ji=!1,ji=!1,Yi=32,Zi=a,Ki=r,Xi=o.html5_player_template({msgSearch:Ki.getString("search"),msgSearchIsDisabledInFS:Ki.getString("searchDisabledFullScreen"),accessBtnClearSearch:Ki.getString("accessBtnClearSearch"),accessBtnRewind:Ki.getString("accessBtnRewind"),accessBtnPlay:Ki.getString("accessBtnPlay"),accessBtnPrevious:Ki.getString("accessBtnPrevious"),accessBtnNext:Ki.getString("accessBtnNext"),accessBtnVolume:Ki.getString("accessBtnVolume"),accessBtnClosedCaption:Ki.getString("accessBtnClosedCaption"),accessBtnTableOfContents:Ki.getString("accessBtnTableOfContents"),accessBtnSettings:Ki.getString("accessBtnSettings"),accessBtnFullScreen:Ki.getString("accessBtnFullScreen")});return{initHtml5View:function(e,t){Xt(e,t),nn(),n("Content_Loaded",Wi,l.getCurrentMediaFirstMediaSourceAsString())},initSimpleHtml5View:function(a){if(l.isPlaylist()){for(var r=t(e).innerWidth()-20,o=l.getMediaList(),s=o.length,u="
        ",c="style='width: "+r+"px; height: 75px;'",d=0;s>d;d++)u+="
      1. "+zt([o[d]],!0,!0)+"
      2. ";u+="
      ",t(a).html(u),t(a).css("background-color","#ffffff"),t("body").css("overflow","auto"),t(a).css("overflow","auto"),t(a+" ol").css("list-style","none"),t(a+" ol").css("margin","10px"),t(a+" ol").css("padding","0")}else t(a).html(zt(l.getCurrentMedia(),!i.isIPhoneOrIPod(),!0));sn(a),n("Content_Loaded",Wi,l.getCurrentMediaFirstMediaSourceAsString())},initYouTubeView:function(e,i,a){Ji=!0,Xt(e,i);var r=t(e),o=u.getJumpToTime();o=void 0!==o?un(o):0,S.init(a,"videoDiv",nn,Ut,Jt,r.attr("width"),r.attr("height"),o),n("Content_Loaded",Wi,l.getCurrentMediaFirstMediaSourceAsString())},jsSeekTime:function(e){if(ri)if(mn)vn.duration&&vn.duration>e&&(Fi?Ct(e):(!p()||p()&&!s.viewOpen())&&rt(e,!0));else{var t={};t.t=e,u.setURLParams(t),p()&&s.quizEnabled()?s.viewOpen()||setTimeout(Wt,80):setTimeout(jt,80)}},jsPlay:function(){ri&&(mn?Fi?Ct(0):vn.play():p()&&s.quizEnabled()?s.viewOpen()||setTimeout(Wt,80):setTimeout(jt,80))},displayMessagePanel:function(e,t,n){void 0===n&&(n=!0),rn(e,t,n)},addEventListener:function(e,t){switch(e){case"VIDEO_START_INITIATED":dn=t;break;case"VIDEO_START":fn=t;break;case"CAPTION_CHANGE":pn=t;break;case"READY":gn=t;break;case"VIDEO_PLAY":hn=t}},removeEventListener:function(e){switch(e){case"VIDEO_START_INITIATED":dn=void 0;break;case"VIDEO_START":fn=void 0;break;case"CAPTION_CHANGE":pn=void 0;break;case"READY":gn=void 0;break;case"VIDEO_PLAY":hn=void 0}}}}()}(this,jQuery,TSC.externalMessageController,TSC.deviceInfo,TSC.ioOverlayView,TSC.localizationStrings,TSC.templates,TSC.quizController,TSC.playerConfiguration,TSC.playerSettingsView,TSC.mediaList,TSC.videoAnalytics,TSC.xmp,TSC.questionGrader,TSC.fathomService,TSC.quizModel,TSC.quizMarker,TSC.iFrameBridge,TSC.youTube,TSC.searchTool,TSC.iOSTextInputFix),function(e,t,n,i,a,r,o,s){"use strict";e.TSC=e.TSC||{},e.TSC.imageView=function(){function u(e,t){y.load(d),y.attr("src",e),g("Content_Loaded",D,e),t&&t()}function c(){return s.isIOS()?void 0:a.getMediaRotation()}function l(){var e=1,t=c();return(90===t||270===t)&&(y.width()>y.height()?y.width()>N.height()&&(e=N.height()/y.width()):y.height()>N.width()&&(e=N.width()/y.height())),e}function d(){F=!0,y.panzoom("resetDimensions"),this.naturalWidth/this.clientWidth,H=l(),y.panzoom({minScale:H,maxScale:200,rotate:c()}),y.panzoom("zoom",H,{animate:!1}),N.on("mousewheel.focal DOMMouseScroll",function(e){e.preventDefault();var t=e.delta||e.originalEvent.wheelDelta||-1*e.originalEvent.detail,n=t?0>t:e.originalEvent.deltaY>0||e.originalEvent.detail>0;e.clientX||(e.clientX=e.originalEvent.clientX,e.clientY=e.originalEvent.clientY),y.panzoom("zoom",n,{focal:e})}),y.on("panzoomzoom",function(e,t,n){y.panzoom("option","increment",.1*n),f()}),y.on("panzoomend",function(e,t,n,i){var a=this.naturalWidth/this.clientWidth;i||(1==a||n[0]>1?(y.panzoom("zoom",H,{focal:e,animate:!0}),y.css("cursor","zoom-in")):y.panzoom("zoom",a,{focal:e,animate:!0}))}),t(e).on("resize",function(){G?N.width("calc(100% - "+m()+"px)"):N.width("100%"),y.panzoom("resetDimensions"),y.panzoom("reset",{animate:!1}),H=l(),y.panzoom("zoom",H,{animate:!1})}),y.css("cursor","zoom-in")}function f(){y.panzoom("getMatrix")[0]>1?y.css("cursor","zoom-out"):y.css("cursor","zoom-in")}function p(e){E=e,w=t(E),w.html(B),w.fadeIn(R),t("body").css("background-color","transparent"),N=t("#imageWrapper"),y=t("#imageDiv"),I=t("#quizBar"),I.bind("click",h)}function g(e,t,n){a.getCustomEventTracking()&&a.getCustomEventCallback()&&(a.getAltEventCategoryAsFilename()?a.getCustomEventCallback().call(this,{category:a.getMediaFileName(),action:e,label:t,value:n}):a.getCustomEventCallback().call(this,{category:D,action:e,label:t,value:n})),a.getGoogleAnalyticsID()&&_gaq.push(["_trackEvent",D,e,t])}function h(){!V&&F&&(M||(y.addClass("imageDiv-animation-style"),M=!0),z?G?(I.html(Q),b()):(I.html(L),A()):G?(I.html(x),b()):(I.html(P),A()))}function m(){return 400>=w.height()?0:720>=w.width()?285:300}function v(e,t,n,i){var a=Math.min(n/e,i/t);return{width:e*a,height:t*a}}function S(e){var t=y.panzoom("getMatrix"),n=e?-1*m():m();if(t[0]==H){var i=N.width()+n,a=N.height(),r=v(y.width(),y.height(),i,a);i>=y[0].naturalWidth&&a>=y[0].naturalHeight&&(r.width=y[0].naturalWidth,r.height=y[0].naturalHeight);var o=Math.min((i-r.width)/2),s=Math.min((a-r.height)/2);y.panzoom("pan",o,s)}N.one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){y.panzoom("resetDimensions"),t[0]==H&&(y.panzoom("reset",{animate:!1}),y.panzoom("zoom",H,{animate:!1}),y.css("cursor","zoom-in"))})}function A(){S(!0),N.width("calc(100% - "+m()+"px)"),t.each(_,function(e,t){t()}),G=!0}function b(){S(!1),N.width("100%"),t.each(O,function(e,t){t()}),G=!1}function C(){I.html(""),V=!0,t("#quiz_content").hide(),t("#tsc_submitting").show()}function T(){I.html(L),V=!1,z=!0}var E,w,y,I,N,M=!1,R=300,k=o.getString("accessBtnTakeQuiz"),P=o.getString("accessBtnHideQuiz"),x=o.getString("accessBtnShowQuiz"),L=o.getString("accessBtnHideAnswer"),Q=o.getString("accessBtnShowAnswer"),B=i.image_view_template({clickToTakeTheQuiz:k}),D="Image",_=[],O=[],G=!1,z=!1,V=!1,q=!1,F=!1,H=1;return{initView:function(t,i){e.navigator.pointerEnabled&&e.navigator.maxTouchPoints>0&&(q=!0),p(t);var a=n.getCurrentMedia()[0].mediaSrc;u(a,i)},showQuizBar:function(){N.height("calc(100% - 40px"),I.show()},initEvents:function(){this.addEventListener("SHOW_QUIZ",r.showQuiz),this.addEventListener("HIDE_QUIZ",r.hideQuiz),r.addEventListener("STATUS",C),r.addEventListener("TRANSITION_IMAGE_QUIZ_TO_ANSWERS",T),r.addEventListener("HIDE_QUIZ",h)},addEventListener:function(e,t){if(!t||"function"!=typeof t)throw Error("image-view.js: addEventListener() Listener argument was not a function");if("SHOW_QUIZ"===e)_.push(t);else{if("HIDE_QUIZ"!==e)throw Error("image-view.js: addEventListener() Type argument was not SHOWQUIZ or HIDEQUIZ");O.push(t)}}}}()}(this,jQuery,TSC.mediaList,TSC.templates,TSC.playerConfiguration,TSC.quizController,TSC.localizationStrings,TSC.deviceInfo);var _gaq=_gaq||[];(function(e,t,n,i,a,r,o,s,u,c,l,d,f,p,g,h,m,v,S,A,b,C,T,E){e.TSC=e.TSC||{},e.TSC.mediaPlayer=function(){"use strict";function w(){c.getMediaType()!==u.WEBM&&n.hasFlashPlayerVersion(s.getMinFlashPlayerVersion())?m.render(j):v.displayMessagePanel(j,c.getErrorMessage())}function y(){l.IMAGE?v.displayMessagePanel(".alertWindow",g.getBadImageQuizXmpMessage()):a.isLocal()?v.displayMessagePanel(j,g.getLocalErrorMessage()):v.displayMessagePanel(j,g.get404ErrorMessage())}function I(){E.logMessage("Media-player: setupPlayer() attempted to load an image quiz that contained multiple question sets."),v.displayMessagePanel(".alertWindow",g.getImageQuizContainsMultipleQuestionGroupsMessage())}function N(){E.logMessage("Media-player: setupPlayer() attempted to load an image quiz from an unsecure source within Internet Explorer 9."),v.displayMessagePanel(".alertWindow",g.getImageQuizIEVersionIncorrect())}function M(){_gaq.push(["_setAccount",s.getGoogleAnalyticsID()]),s.getGAPageViewTracking()&&_gaq.push(["_trackPageview",s.getMediaFileName()]),function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}function R(){if(a.isNuevoApp()){var e=document.querySelector("meta[name=viewport]");e&&e.setAttribute("content","width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;")}}function k(){x()}function P(){a.lookAtDevice(),R(),r.strip(),!a.isNuevoApp()&&s.getPreRollSrc()?A.createView(s.getPreRollSrc(),k):U()||x()}function x(){c.addEventListener("READY",D),c.addEventListener("ERROR",w),c.init(s.getMediaSources())}function L(){if(a.isNuevoApp()&&g.xmpAvailable()){var e=document.location,t=g.getTocTitle(),n=g.getMediaDuration();document.location="nuevo://info?url="+e+"?title="+t+"?duration="+n}}function Q(){v.removeEventListener("VIDEO_START_INITIATED",Q),A&&A.viewExists()&&A.destroyView()}function B(){tt||(Y!==l.IMAGE&&v.removeEventListener("VIDEO_START"),t(document).trigger("techsmith.cloud.viewedMedia"),tt=!0)}function D(){switch(c.removeEventListener("READY",D),c.removeEventListener("ERROR",w),Y=d.getPlayerType()){case l.YOUTUBE:S.addApi(),O();break;case l.HTML5_VIDEO:O();break;case l.FLASH_VIDEO:m.render(j);break;case l.IMAGE:O();break;case l.NOT_SUPPORTED:c.getMediaType()===u.WEBM?v.displayMessagePanel(j,i.getString("noWebMSupport")):v.displayMessagePanel(j,i.getString("videoNotSupportedUseFlash"))}}function _(e){if(C.hasQuiz()&&C.quizEnabled()){C.setViewContainer(e);var t;t=s.getFathomId()?T.FATHOM:T.XMP,C.setQuestionGrader(t),C.setQuestionData(p)}}function O(){s.getGoogleAnalyticsID()&&M(),z()}function G(e){s.getFathomId()?(h.addEventListener("GET_COMPLETE",function(){F(),"function"==typeof e&&e()}),h.addEventListener("ERROR",function(){F(),y()}),h.getFathom(s.getFathomId())):F()}function z(){s.getXMPSrc()?(g.addEventListener("READY",G),g.addEventListener("ERROR",function(){"string"==typeof TSC.embedded_config_xml?g.parseXMP(TSC.embedded_config_xml):(G(),y())}),g.loadXMP(s.getXMPSrc())):G()}function V(t){e.top!==e&&o.postMessage("CAPTION-CHANGED","*",t)}function q(){return C.hasQuiz()&&C.quizEnabled()&&a.isIE()&&9==a.getIEVersion()&&"http:"==e.location.protocol}function F(){var n=!1,r=!1;if(g.xmpAvailable()&&(g.removeEventListener("READY",F),g.removeEventListener("ERROR",y)),Y===l.IMAGE?t(j).addClass("image"):t(j).addClass("video"),Y===l.IMAGE){b.initView(j,B);var u=!0;q()?(u=!1,N()):_(j),C.hasQuiz()&&p.numberQuestionSets()>0&&u&&(C.hasMultipleQuestionSets()?I():(b.initEvents(),b.showQuizBar())),C.simpleInit(),C.forceProgressUpdate(100,[0])}else if(a.isIPhoneOrIPod()&&!a.isNuevoApp())v.initSimpleHtml5View(j);else{if(_(j),g.xmpAvailable()&&((g.hasTocItems()||(g.hasCaptionItems()||g.hasScreenTextItems()||g.hasSpeechTextItems())&&s.getIsSearchable())&&(n=!0),g.hasCaptionItems()&&e.top!==e&&o.postMessage("HAS-CAPTIONS","*"),L()),C.hasQuiz()&&(a.isLocal()&&p.getReportMethod()!==f.NONE?(r=!0,p.setReportMethod(f.NONE)):p.getUseScorm()&&0===p.getTotalNumberOfGradedQuestionSets()&&s.setReportScormComplete(!0)),v.addEventListener("VIDEO_START_INITIATED",Q),v.addEventListener("VIDEO_START",B),v.addEventListener("CAPTION_CHANGE",V),d.getPlayerType()===TSC.playerType.YOUTUBE){var h;h=c.isPlaylist()?c.getCurrentMedia().mediaSrc:c.getCurrentMedia()[0].mediaSrc,v.initYouTubeView(j,n,h)}else v.initHtml5View(j,n);r&&v.displayMessagePanel(j,i.getString("xmpSecurity"))}}function H(e){var t=document.createElement("script");t.setAttribute("type","text/javascript"),t.setAttribute("src",e),t.async=!0,t.onload=function(){x()},t.onerror=function(){x()},t!==void 0&&document.getElementsByTagName("head")[0].appendChild(t)}function U(){return J()?(H(K+X),!0):!1}function W(){return"true"===$}function J(){return a.isIPhoneOrIPod()&&a.isRetinaDisplay()&&!a.isNuevoApp()?!0:!1}var j,Y,Z="3.33.1",K="http://www.techsmith.com/redirect.asp?",X="target=nuevoappdata&product=camtasia&lang=enu&ver=1.0.0&os=mac",$="false",et="",tt=!1;return{init:function(e){j=e,P()},getVersion:function(){return Z},keyValueDataCallback:function(e){$=e.isAppReady,et=e.appDownloadURL},isNuevoAppCapableAndAvailable:function(){return J()&&W()},redirectToiPhoneAppDownload:function(){J()&&e.open(et,"_parent")},jsSeekTime:function(e){d.getPlayerType()===l.FLASH_VIDEO?m.jsSeekTime(e):v.jsSeekTime(e)},jsPlay:function(){d.getPlayerType()===l.FLASH_VIDEO?m.jsPlay():v.jsPlay()},jsDebugUI:function(e){return d.getPlayerType()!==l.FLASH_VIDEO?"HTML5_VIDEO player does not support this method.":(s.setDebugUIMode(e),v.jsDebugUI(e),void 0)},redirectToiPhoneApp:function(){if(J()&&W()){var t=document.location+"",n=s.getPosterImageSrc(),i=(new Date).getTime();setTimeout(function(){var t=(new Date).getTime();1e3>t-i&&e.open(et,"_parent")},300);var a="nuevo://import?url=";a+=-1!==t.indexOf("?")?t+"&posterImage="+n:t+"?posterImage="+n,a+=s.getAdditionalAppQueryString(),e.open(a,"_parent")}},addEventListener:function(e,t){v.addEventListener(e,t)},removeEventListener:function(e){v.removeEventListener(e)}}}()})(this,jQuery,swfobject,TSC.localizationStrings,TSC.deviceInfo,TSC.queryParamsStripper,TSC.iFrameBridge,TSC.playerConfiguration,TSC.mediaType,TSC.mediaList,TSC.playerType,TSC.mediaPlayerController,TSC.reportType,TSC.quizModel,TSC.xmp,TSC.fathomService,TSC.flashView,TSC.playerView,TSC.youTube,TSC.preRollController,TSC.imageView,TSC.quizController,TSC.questionGrader,TSC.log);