/*!
 * Copyright (c) Atomi Systems, Inc. All rights reserved.
 * Version: 9.1.3
 * Date: 2023.10.31
 */
/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2021-03-02T17:08Z
 */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=Object.getPrototypeOf,o=n.slice,r=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},s=n.push,a=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,p=c.toString,f=p.call(Object),h={},d=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},m=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var i,o,r=(n=n||m).createElement("script");if(r.text=e,t)for(i in v)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e}var x="3.6.0",w=function(e,t){return new w.fn.init(e,t)};function _(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!d(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:x,constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||d(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(u&&i&&(w.isPlainObject(i)||(o=Array.isArray(i)))?(n=s[t],r=o&&!Array.isArray(n)?[]:o||w.isPlainObject(n)?n:{},o=!1,s[t]=w.extend(u,r,i)):void 0!==i&&(s[t]=i));return s},w.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==u.call(e))&&(!(t=i(e))||"function"==typeof(n=c.call(t,"constructor")&&t.constructor)&&p.call(n)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(_(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(_(Object(e))?w.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,s=!n;o<r;o++)!t(e[o],o)!==s&&i.push(e[o]);return i},map:function(e,t,n){var i,o,s=0,a=[];if(_(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&a.push(o);return r(a)},guid:1,support:h}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var C=
/*!
 * Sizzle CSS Selector Engine v2.3.6
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2021-02-16
 */
function(e){var t,n,i,o,r,s,a,l,u,c,p,f,h,d,g,m,v,y,b,x="sizzle"+1*new Date,w=e.document,_=0,C=0,T=le(),E=le(),S=le(),k=le(),D=function(e,t){return e===t&&(p=!0),0},P={}.hasOwnProperty,N=[],A=N.pop,M=N.push,j=N.push,H=N.slice,L=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",q="\\["+I+"*("+R+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+I+"*\\]",F=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",W=new RegExp(I+"+","g"),B=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),z=new RegExp("^"+I+"*,"+I+"*"),X=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),$=new RegExp(I+"|>"),U=new RegExp(F),Y=new RegExp("^"+R+"$"),G={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},V=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){f()},se=xe(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{j.apply(N=H.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(e){j={apply:N.length?function(e,t){M.apply(e,H.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,o){var r,a,u,c,p,d,v,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return i;if(!o&&(f(t),t=t||h,g)){if(11!==w&&(p=Z.exec(e)))if(r=p[1]){if(9===w){if(!(u=t.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(y&&(u=y.getElementById(r))&&b(t,u)&&u.id===r)return i.push(u),i}else{if(p[2])return j.apply(i,t.getElementsByTagName(e)),i;if((r=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return j.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!k[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===w&&($.test(e)||X.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(ie,oe):t.setAttribute("id",c=x)),a=(d=s(e)).length;a--;)d[a]=(c?"#"+c:":scope")+" "+be(d[a]);v=d.join(",")}try{return j.apply(i,y.querySelectorAll(v)),i}catch(t){k(e,!0)}finally{c===x&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,i,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ue(e){return e[x]=!0,e}function ce(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var n=e.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function fe(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ue(function(t){return t=+t,ue(function(n,i){for(var o,r=e([],n.length,t),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}n=ae.support={},r=ae.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!V.test(t||n&&n.nodeName||"HTML")},f=ae.setDocument=function(e){var t,o,s=e?e.ownerDocument||e:w;return s!=h&&9===s.nodeType&&s.documentElement?(d=(h=s).documentElement,g=!r(h),w!=h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.scope=ce(function(e){return d.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ce(function(e){return d.appendChild(e).id=x,!h.getElementsByName||!h.getElementsByName(x).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,i,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=J.test(h.querySelectorAll))&&(ce(function(e){var t;d.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+I+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+I+"*name"+I+"*="+I+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=J.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",F)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(d.compareDocumentPosition),b=t||J.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return p=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==h||e.ownerDocument==w&&b(w,e)?-1:t==h||t.ownerDocument==w&&b(w,t)?1:c?L(c,e)-L(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return p=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,s=[e],a=[t];if(!o||!r)return e==h?-1:t==h?1:o?-1:r?1:c?L(c,e)-L(c,t):0;if(o===r)return fe(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?fe(s[i],a[i]):s[i]==w?-1:a[i]==w?1:0},h):h},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&g&&!k[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){k(t,!0)}return ae(t,h,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=h&&f(e),b(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=h&&f(e);var o=i.attrHandle[t.toLowerCase()],r=o&&P.call(i.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==r?r:n.attributes||!g?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ae.escape=function(e){return(e+"").replace(ie,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],o=0,r=0;if(p=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),p){for(;t=e[r++];)t===e[r]&&(o=i.push(r));for(;o--;)e.splice(i[o],1)}return c=null,e},o=ae.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(i=ae.selectors={cacheLength:50,createPseudo:ue,match:G,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=ae.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(W," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,h,d,g=r!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(r){for(;g;){for(f=t;f=f[g];)if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&y){for(b=(h=(u=(c=(p=(f=m)[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===_&&u[1])&&u[2],f=h&&m.childNodes[h];f=++h&&f&&f[g]||(b=h=0)||d.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[_,h,b];break}}else if(y&&(b=h=(u=(c=(p=(f=t)[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===_&&u[1]),!1===b)for(;(f=++h&&f&&f[g]||(b=h=0)||d.pop())&&((a?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((c=(p=f[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]=[_,b]),f!==t)););return(b-=o)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,n){for(var i,r=o(e,t),s=r.length;s--;)e[i=L(e,r[s])]=!(n[i]=r[s])}):function(e){return o(e,0,n)}):o}},pseudos:{not:ue(function(e){var t=[],n=[],i=a(e.replace(B,"$1"));return i[x]?ue(function(e,t,n,o){for(var r,s=i(e,null,o,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,o,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}}),has:ue(function(e){return function(t){return ae(e,t).length>0}}),contains:ue(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}}),lang:ue(function(e){return Y.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===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===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!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,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Q.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"))||"text"===t.toLowerCase())},first:me(function(){return[0]}),last:me(function(e,t){return[t-1]}),eq:me(function(e,t,n){return[n<0?n+t:n]}),even:me(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:me(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:me(function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e}),gt:me(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=de(t);function ye(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function xe(e,t,n){var i=t.dir,o=t.next,r=o||i,s=n&&"parentNode"===r,a=C++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,o);return!1}:function(t,n,l){var u,c,p,f=[_,a];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(c=(p=t[x]||(t[x]={}))[t.uniqueID]||(p[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=c[r])&&u[0]===_&&u[1]===a)return f[2]=u[2];if(c[r]=f,f[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function _e(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,o)||(s.push(r),u&&t.push(a)));return s}function Ce(e,t,n,i,o,r){return i&&!i[x]&&(i=Ce(i)),o&&!o[x]&&(o=Ce(o,r)),ue(function(r,s,a,l){var u,c,p,f=[],h=[],d=s.length,g=r||function(e,t,n){for(var i=0,o=t.length;i<o;i++)ae(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!r&&t?g:_e(g,f,e,a,l),v=n?o||(r?e:d||i)?[]:s:m;if(n&&n(m,v,a,l),i)for(u=_e(v,h),i(u,[],a,l),c=u.length;c--;)(p=u[c])&&(v[h[c]]=!(m[h[c]]=p));if(r){if(o||e){if(o){for(u=[],c=v.length;c--;)(p=v[c])&&u.push(m[c]=p);o(null,v=[],u,l)}for(c=v.length;c--;)(p=v[c])&&(u=o?L(r,p):f[c])>-1&&(r[u]=!(s[u]=p))}}else v=_e(v===s?v.splice(d,v.length):v),o?o(null,s,v,l):j.apply(s,v)})}function Te(e){for(var t,n,o,r=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=xe(function(e){return e===t},a,!0),p=xe(function(e){return L(t,e)>-1},a,!0),f=[function(e,n,i){var o=!s&&(i||n!==u)||((t=n).nodeType?c(e,n,i):p(e,n,i));return t=null,o}];l<r;l++)if(n=i.relative[e[l].type])f=[xe(we(f),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[x]){for(o=++l;o<r&&!i.relative[e[o].type];o++);return Ce(l>1&&we(f),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l<o&&Te(e.slice(l,o)),o<r&&Te(e=e.slice(o)),o<r&&be(e))}f.push(n)}return we(f)}return ye.prototype=i.filters=i.pseudos,i.setFilters=new ye,s=ae.tokenize=function(e,t){var n,o,r,s,a,l,u,c=E[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=i.preFilter;a;){n&&!(o=z.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=X.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(B," ")}),a=a.slice(n.length));for(s in i.filter)!(o=G[s].exec(a))||u[s]&&!(o=u[s](o))||(n=o.shift(),r.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):E(e,l).slice(0)},a=ae.compile=function(e,t){var n,o,r,a,l,c,p=[],d=[],m=S[e+" "];if(!m){for(t||(t=s(e)),n=t.length;n--;)(m=Te(t[n]))[x]?p.push(m):d.push(m);(m=S(e,(o=d,a=(r=p).length>0,l=o.length>0,c=function(e,t,n,s,c){var p,d,m,v=0,y="0",b=e&&[],x=[],w=u,C=e||l&&i.find.TAG("*",c),T=_+=null==w?1:Math.random()||.1,E=C.length;for(c&&(u=t==h||t||c);y!==E&&null!=(p=C[y]);y++){if(l&&p){for(d=0,t||p.ownerDocument==h||(f(p),n=!g);m=o[d++];)if(m(p,t||h,n)){s.push(p);break}c&&(_=T)}a&&((p=!m&&p)&&v--,e&&b.push(p))}if(v+=y,a&&y!==v){for(d=0;m=r[d++];)m(b,x,t,n);if(e){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=A.call(s));x=_e(x)}j.apply(s,x),c&&!e&&x.length>0&&v+r.length>1&&ae.uniqueSort(s)}return c&&(_=T,u=w),b},a?ue(c):c))).selector=e}return m},l=ae.select=function(e,t,n,o){var r,l,u,c,p,f="function"==typeof e&&e,h=!o&&s(e=f.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&g&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=G.needsContext.test(e)?0:l.length;r--&&(u=l[r],!i.relative[c=u.type]);)if((p=i.find[c])&&(o=p(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(r,1),!(e=o.length&&be(l)))return j.apply(n,o),n;break}}return(f||a(e,h))(o,t,!g,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=x.split("").sort(D).join("")===x,n.detectDuplicates=!!p,f(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||pe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||pe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||pe(O,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),ae}(e);w.find=C,w.expr=C.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=C.uniqueSort,w.text=C.getText,w.isXMLDoc=C.isXML,w.contains=C.contains,w.escapeSelector=C.escape;var T=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&w(e).is(n))break;i.push(e)}return i},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=w.expr.match.needsContext;function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,n){return d(t)?w.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return a.call(t,e)>-1!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?w.find.matchesSelector(i,e)?[i]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<i;t++)if(w.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)w.find(e,o[t],n);return i>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&S.test(e)?w(e):e||[],!1).length}});var N,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),D.test(i[1])&&w.isPlainObject(t))for(i in t)d(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=m.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):d(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,N=w(m);var M=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function H(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,r=[],s="string"!=typeof e&&w(e);if(!S.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?w.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?a.call(w(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return H(e,"nextSibling")},prev:function(e){return H(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,i){var o=w.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=w.filter(i,o)),this.length>1&&(j[e]||w.uniqueSort(o),M.test(e)&&o.reverse()),this.pushStack(o)}});var L=/[^\x20\t\r\n\f]+/g;function O(e){return e}function I(e){throw e}function R(e,t,n,i){var o;try{e&&d(o=e.promise)?o.call(e).done(t).fail(n):e&&d(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},w.each(t.match(L)||[],function(e,t){n[t]=!0}),n):w.extend({},e);var i,o,r,s,a=[],l=[],u=-1,c=function(){for(s=s||e.once,r=i=!0;l.length;u=-1)for(o=l.shift();++u<a.length;)!1===a[u].apply(o[0],o[1])&&e.stopOnFalse&&(u=a.length,o=!1);e.memory||(o=!1),i=!1,s&&(a=o?[]:"")},p={add:function(){return a&&(o&&!i&&(u=a.length-1,l.push(o)),function t(n){w.each(n,function(n,i){d(i)?e.unique&&p.has(i)||a.push(i):i&&i.length&&"string"!==b(i)&&t(i)})}(arguments),o&&!i&&c()),this},remove:function(){return w.each(arguments,function(e,t){for(var n;(n=w.inArray(t,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?w.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return s=l=[],a=o="",this},disabled:function(){return!a},lock:function(){return s=l=[],o||i||(a=o=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),i||c()),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!r}};return p},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,i){var o=d(e[i[4]])&&e[i[4]];r[i[1]](function(){var e=o&&o.apply(this,arguments);e&&d(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,i,o){var r=0;function s(t,n,i,o){return function(){var a=this,l=arguments,u=function(){var e,u;if(!(t<r)){if((e=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,d(u)?o?u.call(e,s(r,n,O,o),s(r,n,I,o)):(r++,u.call(e,s(r,n,O,o),s(r,n,I,o),s(r,n,O,n.notifyWith))):(i!==O&&(a=void 0,l=[e]),(o||n.resolveWith)(a,l))}},c=o?u:function(){try{u()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,c.stackTrace),t+1>=r&&(i!==I&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(s(0,e,d(o)?o:O,e.notifyWith)),n[1][3].add(s(0,e,d(t)?t:O)),n[2][3].add(s(0,e,d(i)?i:I))}).promise()},promise:function(e){return null!=e?w.extend(e,o):o}},r={};return w.each(n,function(e,t){var s=t[2],a=t[5];o[t[1]]=s.add,a&&s.add(function(){i=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this},r[t[0]+"With"]=s.fireWith}),o.promise(r),t&&t.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),r=o.call(arguments),s=w.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?o.call(arguments):n,--t||s.resolveWith(i,r)}};if(t<=1&&(R(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||d(r[n]&&r[n].then)))return s.then();for(;n--;)R(r[n],a(n),s.reject);return s.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&q.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout(function(){throw t})};var F=w.Deferred();function W(){m.removeEventListener("DOMContentLoaded",W),e.removeEventListener("load",W),w.ready()}w.fn.ready=function(e){return F.then(e).catch(function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||F.resolveWith(m,[w]))}}),w.ready.then=F.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",W),e.addEventListener("load",W));var B=function(e,t,n,i,o,r,s){var a=0,l=e.length,u=null==n;if("object"===b(n)){o=!0;for(a in n)B(e,t,a,n[a],!0,r,s)}else if(void 0!==i&&(o=!0,d(i)||(s=!0),u&&(s?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(w(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return o?e:u?t.call(e):l?t(e[0],n):r},z=/^-ms-/,X=/-([a-z])/g;function $(e,t){return t.toUpperCase()}function U(e){return e.replace(z,"ms-").replace(X,$)}var Y=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=w.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[U(t)]=n;else for(i in t)o[U(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(U):(t=U(t))in i?[t]:t.match(L)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||w.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var V=new G,Q=new G,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Z(e,t,n){var i,o;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(J,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:K.test(o)?JSON.parse(o):o)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return Q.hasData(e)||V.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return V.access(e,t,n)},_removeData:function(e,t){V.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(o=Q.get(r),1===r.nodeType&&!V.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=U(i.slice(5)),Z(r,i,o[i]));V.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Q.set(this,e)}):B(this,function(t){var n;if(r&&void 0===t)return void 0!==(n=Q.get(r,e))?n:void 0!==(n=Z(r,e))?n:void 0;this.each(function(){Q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),w.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=V.get(e,t),n&&(!i||Array.isArray(n)?i=V.access(e,t,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),i=n.length,o=n.shift(),r=w._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){w.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return V.get(e,n)||V.access(e,n,{empty:w.Callbacks("once memory").add(function(){V.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each(function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=w.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=V.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],ie=m.documentElement,oe=function(e){return w.contains(e.ownerDocument,e)},re={composed:!0};ie.getRootNode&&(oe=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(re)===e.ownerDocument});var se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===w.css(e,"display")};function ae(e,t,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return w.css(e,t,"")},l=a(),u=n&&n[3]||(w.cssNumber[t]?"":"px"),c=e.nodeType&&(w.cssNumber[t]||"px"!==u&&+l)&&te.exec(w.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)w.style(e,t,c+u),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),c/=r;c*=2,w.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var le={};function ue(e,t){for(var n,i,o,r,s,a,l,u=[],c=0,p=e.length;c<p;c++)(i=e[c]).style&&(n=i.style.display,t?("none"===n&&(u[c]=V.get(i,"display")||null,u[c]||(i.style.display="")),""===i.style.display&&se(i)&&(u[c]=(r=void 0,s=void 0,void 0,l=void 0,s=(o=i).ownerDocument,a=o.nodeName,(l=le[a])||(r=s.body.appendChild(s.createElement(a)),l=w.css(r,"display"),r.parentNode.removeChild(r),"none"===l&&(l="block"),le[a]=l,l)))):"none"!==n&&(u[c]="none",V.set(i,"display",n)));for(c=0;c<p;c++)null!=u[c]&&(e[c].style.display=u[c]);return e}w.fn.extend({show:function(){return ue(this,!0)},hide:function(){return ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?w(this).show():w(this).hide()})}});var ce,pe,fe=/^(?:checkbox|radio)$/i,he=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,de=/^$|^module$|\/(?:java|ecma)script/i;ce=m.createDocumentFragment().appendChild(m.createElement("div")),(pe=m.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),ce.appendChild(pe),h.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",h.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?w.merge([e],n):n}function ve(e,t){for(var n=0,i=e.length;n<i;n++)V.set(e[n],"globalEval",!t||V.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,h.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var ye=/<|&#?\w+;/;function be(e,t,n,i,o){for(var r,s,a,l,u,c,p=t.createDocumentFragment(),f=[],h=0,d=e.length;h<d;h++)if((r=e[h])||0===r)if("object"===b(r))w.merge(f,r.nodeType?[r]:r);else if(ye.test(r)){for(s=s||p.appendChild(t.createElement("div")),a=(he.exec(r)||["",""])[1].toLowerCase(),l=ge[a]||ge._default,s.innerHTML=l[1]+w.htmlPrefilter(r)+l[2],c=l[0];c--;)s=s.lastChild;w.merge(f,s.childNodes),(s=p.firstChild).textContent=""}else f.push(t.createTextNode(r));for(p.textContent="",h=0;r=f[h++];)if(i&&w.inArray(r,i)>-1)o&&o.push(r);else if(u=oe(r),s=me(p.appendChild(r),"script"),u&&ve(s),n)for(c=0;r=s[c++];)de.test(r.type||"")&&n.push(r);return p}var xe=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function _e(){return!1}function Ce(e,t){return e===function(){try{return m.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,i,o,r){var s,a;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(a in t)Te(e,a,n,i,t[a],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=_e;else if(!o)return e;return 1===r&&(s=o,(o=function(e){return w().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=w.guid++)),e.each(function(){w.event.add(this,t,o,i,n)})}function Ee(e,t,n){n?(V.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var i,r,s=V.get(this,t);if(1&e.isTrigger&&this[t]){if(s.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=o.call(arguments),V.set(this,t,s),i=n(this,t),this[t](),s!==(r=V.get(this,t))||i?V.set(this,t,!1):r={},s!==r)return e.stopImmediatePropagation(),e.preventDefault(),r&&r.value}else s.length&&(V.set(this,t,{value:w.event.trigger(w.extend(s[0],w.Event.prototype),s.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===V.get(e,t)&&w.event.add(e,t,we)}w.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,u,c,p,f,h,d,g,m=V.get(e);if(Y(e))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&w.find.matchesSelector(ie,o),n.guid||(n.guid=w.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(L)||[""]).length;u--;)h=g=(a=xe.exec(t[u])||[])[1],d=(a[2]||"").split(".").sort(),h&&(p=w.event.special[h]||{},h=(o?p.delegateType:p.bindType)||h,p=w.event.special[h]||{},c=w.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:d.join(".")},r),(f=l[h])||((f=l[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,i,d,s)||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,c):f.push(c),w.event.global[h]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,u,c,p,f,h,d,g,m=V.hasData(e)&&V.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(L)||[""]).length;u--;)if(h=g=(a=xe.exec(t[u])||[])[1],d=(a[2]||"").split(".").sort(),h){for(p=w.event.special[h]||{},f=l[h=(i?p.delegateType:p.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=f.length;r--;)c=f[r],!o&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(r,1),c.selector&&f.delegateCount--,p.remove&&p.remove.call(e,c));s&&!f.length&&(p.teardown&&!1!==p.teardown.call(e,d,m.handle)||w.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)w.event.remove(e,h+t[u],n,i,!0);w.isEmptyObject(l)&&V.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,s,a=new Array(arguments.length),l=w.event.fix(e),u=(V.get(this,"events")||Object.create(null))[l.type]||[],c=w.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=w.event.handlers.call(this,l,u),t=0;(o=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((w.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,o,r,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=t[n]).selector+" "]&&(s[o]=i.needsContext?w(o,this).index(u)>-1:w.find(o,this,null,[u]).length),s[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:d(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return fe.test(t.type)&&t.click&&k(t,"input")&&Ee(t,"click",we),!1},trigger:function(e){var t=this||e;return fe.test(t.type)&&t.click&&k(t,"input")&&Ee(t,"click"),!0},_default:function(e){var t=e.target;return fe.test(t.type)&&t.click&&k(t,"input")&&V.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:_e,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:_e,isPropagationStopped:_e,isImmediatePropagationStopped:_e,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(e,t){w.event.special[e]={setup:function(){return Ee(this,e,Ce),!1},trigger:function(){return Ee(this,e),!0},_default:function(){return!0},delegateType:t}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||w.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),w.fn.extend({on:function(e,t,n,i){return Te(this,e,t,n,i)},one:function(e,t,n,i){return Te(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,w(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,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=_e),this.each(function(){w.event.remove(this,e,n,t)})}});var Se=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pe(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ae(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,i,o,r,s,a;if(1===t.nodeType){if(V.hasData(e)&&(a=V.get(e).events)){V.remove(t,"handle events");for(o in a)for(n=0,i=a[o].length;n<i;n++)w.event.add(t,o,a[o][n])}Q.hasData(e)&&(r=Q.access(e),s=w.extend({},r),Q.set(t,s))}}function je(e,t,n,i){t=r(t);var o,s,a,l,u,c,p=0,f=e.length,g=f-1,m=t[0],v=d(m);if(v||f>1&&"string"==typeof m&&!h.checkClone&&ke.test(m))return e.each(function(o){var r=e.eq(o);v&&(t[0]=m.call(this,o,r.html())),je(r,t,n,i)});if(f&&(s=(o=be(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=s),s||i)){for(l=(a=w.map(me(o,"script"),Ne)).length;p<f;p++)u=o,p!==g&&(u=w.clone(u,!0,!0),l&&w.merge(a,me(u,"script"))),n.call(e[p],u,p);if(l)for(c=a[a.length-1].ownerDocument,w.map(a,Ae),p=0;p<l;p++)u=a[p],de.test(u.type||"")&&!V.access(u,"globalEval")&&w.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?w._evalUrl&&!u.noModule&&w._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):y(u.textContent.replace(De,""),u,c))}return e}function He(e,t,n){for(var i,o=t?w.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||w.cleanData(me(i)),i.parentNode&&(n&&oe(i)&&ve(me(i,"script")),i.parentNode.removeChild(i));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,r,s,a,l,u,c=e.cloneNode(!0),p=oe(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(s=me(c),i=0,o=(r=me(e)).length;i<o;i++)a=r[i],l=s[i],void 0,"input"===(u=l.nodeName.toLowerCase())&&fe.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(t)if(n)for(r=r||me(e),s=s||me(c),i=0,o=r.length;i<o;i++)Me(r[i],s[i]);else Me(e,c);return(s=me(c,"script")).length>0&&ve(s,!p&&me(e,"script")),c},cleanData:function(e){for(var t,n,i,o=w.event.special,r=0;void 0!==(n=e[r]);r++)if(Y(n)){if(t=n[V.expando]){if(t.events)for(i in t.events)o[i]?w.event.remove(n,i):w.removeEvent(n,i,t.handle);n[V.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),w.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return B(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return je(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pe(this,e).appendChild(e)})},prepend:function(){return je(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Pe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return B(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.test(e)&&!ge[(he.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return je(this,arguments,function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(me(this)),n&&n.replaceChild(t,this))},e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){w.fn[e]=function(e){for(var n,i=[],o=w(e),r=o.length-1,a=0;a<=r;a++)n=a===r?this:this.clone(!0),w(o[a])[t](n),s.apply(i,n.get());return this.pushStack(i)}});var Le=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Oe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ie=function(e,t,n){var i,o,r={};for(o in t)r[o]=e.style[o],e.style[o]=t[o];i=n.call(e);for(o in t)e.style[o]=r[o];return i},Re=new RegExp(ne.join("|"),"i");function qe(e,t,n){var i,o,r,s,a=e.style;return(n=n||Oe(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||oe(e)||(s=w.style(e,t)),!h.pixelBoxStyles()&&Le.test(s)&&Re.test(t)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(u).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,l=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),o=36===n(t.width),c.style.position="absolute",r=12===n(c.offsetWidth/3),ie.removeChild(u),c=null}}function n(e){return Math.round(parseFloat(e))}var i,o,r,s,a,l,u=m.createElement("div"),c=m.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),r},reliableTrDimensions:function(){var t,n,i,o;return null==a&&(t=m.createElement("table"),n=m.createElement("tr"),i=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",ie.appendChild(t).appendChild(n).appendChild(i),o=e.getComputedStyle(n),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===n.offsetHeight,ie.removeChild(t)),a}}))}();var We=["Webkit","Moz","ms"],Be=m.createElement("div").style,ze={};function Xe(e){var t=w.cssProps[e]||ze[e];return t||(e in Be?e:ze[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=We.length;n--;)if((e=We[n]+t)in Be)return e}(e)||e)}var $e=/^(none|table(?!-c[ea]).+)/,Ue=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"};function Ve(e,t,n){var i=te.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Qe(e,t,n,i,o,r){var s="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=w.css(e,n+ne[s],!0,o)),i?("content"===n&&(l-=w.css(e,"padding"+ne[s],!0,o)),"margin"!==n&&(l-=w.css(e,"border"+ne[s]+"Width",!0,o))):(l+=w.css(e,"padding"+ne[s],!0,o),"padding"!==n?l+=w.css(e,"border"+ne[s]+"Width",!0,o):a+=w.css(e,"border"+ne[s]+"Width",!0,o));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-a-.5))||0),l}function Ke(e,t,n){var i=Oe(e),o=(!h.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,i),r=o,s=qe(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Le.test(s)){if(!n)return s;s="auto"}return(!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&k(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===w.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===w.css(e,"boxSizing",!1,i),(r=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+Qe(e,t,n||(o?"border":"content"),r,i,s)+"px"}function Je(e,t,n,i,o){return new Je.prototype.init(e,t,n,i,o)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=U(t),l=Ue.test(t),u=e.style;if(l||(t=Xe(a)),s=w.cssHooks[t]||w.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,i))?o:u[t];"string"===(r=typeof n)&&(o=te.exec(n))&&o[1]&&(n=ae(e,t,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(w.cssNumber[a]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var o,r,s,a=U(t);return Ue.test(t)||(t=Xe(a)),(s=w.cssHooks[t]||w.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=qe(e,t,i)),"normal"===o&&t in Ge&&(o=Ge[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,n,i){if(n)return!$e.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ke(e,t,i):Ie(e,Ye,function(){return Ke(e,t,i)})},set:function(e,n,i){var o,r=Oe(e),s=!h.scrollboxSize()&&"absolute"===r.position,a=(s||i)&&"border-box"===w.css(e,"boxSizing",!1,r),l=i?Qe(e,t,i,a,r):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-Qe(e,t,"border",!1,r)-.5)),l&&(o=te.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),Ve(0,n,l)}}}),w.cssHooks.marginLeft=Fe(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ie(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+ne[i]+t]=r[i]||r[i-2]||r[0];return o}},"margin"!==e&&(w.cssHooks[e+t].set=Ve)}),w.fn.extend({css:function(e,t){return B(this,function(e,t,n){var i,o,r={},s=0;if(Array.isArray(t)){for(i=Oe(e),o=t.length;s<o;s++)r[t[s]]=w.css(e,t[s],!1,i);return r}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,arguments.length>1)}}),w.Tween=Je,Je.prototype={constructor:Je,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(w.cssNumber[n]?"":"px")},cur:function(){var e=Je.propHooks[this.prop];return e&&e.get?e.get(this):Je.propHooks._default.get(this)},run:function(e){var t,n=Je.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Je.propHooks._default.set(this),this}},Je.prototype.init.prototype=Je.prototype,Je.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},Je.propHooks.scrollTop=Je.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=Je.prototype.init,w.fx.step={};var Ze,et,tt,nt,it=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function rt(){et&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(rt):e.setTimeout(rt,w.fx.interval),w.fx.tick())}function st(){return e.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function at(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=ne[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function lt(e,t,n){for(var i,o=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function ut(e,t,n){var i,o,r=0,s=ut.prefilters.length,a=w.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Ze||st(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),r=0,s=u.tweens.length;r<s;r++)u.tweens[r].run(i);return a.notifyWith(e,[u,i,n]),i<1&&s?n:(s||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ze||st(),duration:n.duration,tweens:[],createTween:function(t,n){var i=w.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,i,o,r,s;for(n in e)if(o=t[i=U(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=w.cssHooks[i])&&"expand"in s){r=s.expand(r),delete e[i];for(n in r)n in e||(e[n]=r[n],t[n]=o)}else t[i]=o}(c,u.opts.specialEasing);r<s;r++)if(i=ut.prefilters[r].call(u,e,c,u.opts))return d(i.stop)&&(w._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return w.map(c,lt,u),d(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),w.fx.timer(w.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}w.Animation=w.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ae(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){d(e)?(t=e,e=["*"]):e=e.match(L);for(var n,i=0,o=e.length;i<o;i++)n=e[i],ut.tweeners[n]=ut.tweeners[n]||[],ut.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,r,s,a,l,u,c,p="width"in t||"height"in t,f=this,h={},d=e.style,g=e.nodeType&&se(e),m=V.get(e,"fxshow");n.queue||(null==(s=w._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,w.queue(e,"fx").length||s.empty.fire()})}));for(i in t)if(o=t[i],it.test(o)){if(delete t[i],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;g=!0}h[i]=m&&m[i]||w.style(e,i)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(h)){p&&1===e.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(u=m&&m.display)&&(u=V.get(e,"display")),"none"===(c=w.css(e,"display"))&&(u?c=u:(ue([e],!0),u=e.style.display||u,c=w.css(e,"display"),ue([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===w.css(e,"float")&&(l||(f.done(function(){d.display=u}),null==u&&(c=d.display,u="none"===c?"":c)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),l=!1;for(i in h)l||(m?"hidden"in m&&(g=m.hidden):m=V.access(e,"fxshow",{display:u}),r&&(m.hidden=!g),g&&ue([e],!0),f.done(function(){g||ue([e]),V.remove(e,"fxshow");for(i in h)w.style(e,i,h[i])})),l=lt(g?m[i]:0,i,f),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),w.speed=function(e,t,n){var i=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||d(e)&&e,duration:e,easing:n&&t||t&&!d(t)&&t};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in w.fx.speeds?i.duration=w.fx.speeds[i.duration]:i.duration=w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){d(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(e,t,n,i){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=w.isEmptyObject(e),r=w.speed(t,n,i),s=function(){var t=ut(this,w.extend({},e),r);(o||V.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",r=w.timers,s=V.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&ot.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));!t&&n||w.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=V.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=w.timers,s=i?i.length:0;for(n.finish=!0,w.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),w.each(["toggle","show","hide"],function(e,t){var n=w.fn[t];w.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(at(t,!0),e,i,o)}}),w.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){w.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),Ze=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){et||(et=!0,rt())},w.fx.stop=function(){et=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var o=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(o)}})},tt=m.createElement("input"),nt=m.createElement("select").appendChild(m.createElement("option")),tt.type="checkbox",h.checkOn=""!==tt.value,h.optSelected=nt.selected,(tt=m.createElement("input")).value="t",tt.type="radio",h.radioValue="t"===tt.value;var ct,pt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return B(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?w.prop(e,t,n):(1===r&&w.isXMLDoc(e)||(o=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=w.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(L);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var n=pt[t]||w.find.attr;pt[t]=function(e,t,i){var o,r,s=t.toLowerCase();return i||(r=pt[s],pt[s]=o,o=null!=n(e,t,i)?s:null,pt[s]=r),o}});var ft=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function dt(e){return(e.match(L)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}w.fn.extend({prop:function(e,t){return B(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&w.isXMLDoc(e)||(t=w.propFix[t]||t,o=w.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(e){var t,n,i,o,r,s,a,l=0;if(d(e))return this.each(function(t){w(this).addClass(e.call(this,t,gt(this)))});if((t=mt(e)).length)for(;n=this[l++];)if(o=gt(n),i=1===n.nodeType&&" "+dt(o)+" "){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=dt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,o,r,s,a,l=0;if(d(e))return this.each(function(t){w(this).removeClass(e.call(this,t,gt(this)))});if(!arguments.length)return this.attr("class","");if((t=mt(e)).length)for(;n=this[l++];)if(o=gt(n),i=1===n.nodeType&&" "+dt(o)+" "){for(s=0;r=t[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(a=dt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):d(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,gt(this),t),t)}):this.each(function(){var t,o,r,s;if(i)for(o=0,r=w(this),s=mt(e);t=s[o++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=gt(this))&&V.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":V.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+dt(gt(n))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;w.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=d(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,w(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=w.map(o,function(e){return null==e?"":e+""})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=w.valHooks[o.type]||w.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(vt,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:dt(w.text(e))}},select:{get:function(e){var t,n,i,o=e.options,r=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?r+1:o.length;for(i=r<0?l:s?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(t=w(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,r=w.makeArray(t),s=o.length;s--;)((i=o[s]).selected=w.inArray(w.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},h.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,i,o){var r,s,a,l,u,p,f,h,v=[i||m],y=c.call(t,"type")?t.type:t,b=c.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=i=i||m,3!==i.nodeType&&8!==i.nodeType&&!yt.test(y+w.event.triggered)&&(y.indexOf(".")>-1&&(y=(b=y.split(".")).shift(),b.sort()),u=y.indexOf(":")<0&&"on"+y,(t=t[w.expando]?t:new w.Event(y,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:w.makeArray(n,[t]),f=w.event.special[y]||{},o||!f.trigger||!1!==f.trigger.apply(i,n))){if(!o&&!f.noBubble&&!g(i)){for(l=f.delegateType||y,yt.test(l+y)||(s=s.parentNode);s;s=s.parentNode)v.push(s),a=s;a===(i.ownerDocument||m)&&v.push(a.defaultView||a.parentWindow||e)}for(r=0;(s=v[r++])&&!t.isPropagationStopped();)h=s,t.type=r>1?l:f.bindType||y,(p=(V.get(s,"events")||Object.create(null))[t.type]&&V.get(s,"handle"))&&p.apply(s,n),(p=u&&s[u])&&p.apply&&Y(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=y,o||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(v.pop(),n)||!Y(i)||u&&d(i[y])&&!g(i)&&((a=i[u])&&(i[u]=null),w.event.triggered=y,t.isPropagationStopped()&&h.addEventListener(y,bt),i[y](),t.isPropagationStopped()&&h.removeEventListener(y,bt),w.event.triggered=void 0,a&&(i[u]=a)),t.result}},simulate:function(e,t,n){var i=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(i,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),h.focusin||w.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,o=V.access(i,t);o||i.addEventListener(e,n,!0),V.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=V.access(i,t)-1;o?V.access(i,t,o):(i.removeEventListener(e,n,!0),V.remove(i,t))}}});var xt=e.location,wt={guid:Date.now()},_t=/\?/;w.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||w.error("Invalid XML: "+(i?w.map(i.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var Ct=/\[\]$/,Tt=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function kt(e,t,n,i){var o;if(Array.isArray(t))w.each(t,function(t,o){n||Ct.test(e)?i(e,o):kt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)});else if(n||"object"!==b(t))i(e,t);else for(o in t)kt(e+"["+o+"]",t[o],n,i)}w.param=function(e,t){var n,i=[],o=function(e,t){var n=d(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){o(this.name,this.value)});else for(n in e)kt(n,e[n],t,o);return i.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&St.test(this.nodeName)&&!Et.test(e)&&(this.checked||!fe.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:n.replace(Tt,"\r\n")}}).get()}});var Dt=/%20/g,Pt=/#.*$/,Nt=/([?&])_=[^&]*/,At=/^(.*?):[ \t]*([^\r\n]*)$/gm,Mt=/^(?:GET|HEAD)$/,jt=/^\/\//,Ht={},Lt={},Ot="*/".concat("*"),It=m.createElement("a");function Rt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(L)||[];if(d(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function qt(e,t,n,i){var o={},r=e===Lt;function s(a){var l;return o[a]=!0,w.each(e[a]||[],function(e,a){var u=a(t,n,i);return"string"!=typeof u||r||o[u]?r?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),l}return s(t.dataTypes[0])||!o["*"]&&s("*")}function Ft(e,t){var n,i,o=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&w.extend(!0,e,i),e}It.href=xt.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ot,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,w.ajaxSettings),t):Ft(w.ajaxSettings,e)},ajaxPrefilter:Rt(Ht),ajaxTransport:Rt(Lt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,r,s,a,l,u,c,p,f,h=w.ajaxSetup({},n),d=h.context||h,g=h.context&&(d.nodeType||d.jquery)?w(d):w.event,v=w.Deferred(),y=w.Callbacks("once memory"),b=h.statusCode||{},x={},_={},C="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=At.exec(r);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(e,t){return null==u&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)T.always(e[T.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),E(0,t),this}};if(v.promise(T),h.url=((t||h.url||xt.href)+"").replace(jt,xt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(L)||[""],null==h.crossDomain){l=m.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=It.protocol+"//"+It.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),qt(Ht,h,n,T),u)return T;(c=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Mt.test(h.type),o=h.url.replace(Pt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Dt,"+")):(f=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(_t.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Nt,"$1"),f=(_t.test(o)?"&":"?")+"_="+wt.guid+++f),h.url=o+f),h.ifModified&&(w.lastModified[o]&&T.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&T.setRequestHeader("If-None-Match",w.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&T.setRequestHeader("Content-Type",h.contentType),T.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ot+"; q=0.01":""):h.accepts["*"]);for(p in h.headers)T.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(d,T,h)||u))return T.abort();if(C="abort",y.add(h.complete),T.done(h.success),T.fail(h.error),i=qt(Lt,h,n,T)){if(T.readyState=1,c&&g.trigger("ajaxSend",[T,h]),u)return T;h.async&&h.timeout>0&&(a=e.setTimeout(function(){T.abort("timeout")},h.timeout));try{u=!1,i.send(x,E)}catch(e){if(u)throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,s,l){var p,f,m,x,_,C=n;u||(u=!0,a&&e.clearTimeout(a),i=void 0,r=l||"",T.readyState=t>0?4:0,p=t>=200&&t<300||304===t,s&&(x=function(e,t,n){for(var i,o,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(h,T,s)),!p&&w.inArray("script",h.dataTypes)>-1&&w.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),x=function(e,t,n,i){var o,r,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(r=c.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if((a=o.split(" "))[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(h,x,T,p),p?(h.ifModified&&((_=T.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=_),(_=T.getResponseHeader("etag"))&&(w.etag[o]=_)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=x.state,f=x.data,p=!(m=x.error))):(m=C,!t&&C||(C="error",t<0&&(t=0))),T.status=t,T.statusText=(n||C)+"",p?v.resolveWith(d,[f,C,T]):v.rejectWith(d,[T,C,m]),T.statusCode(b),b=void 0,c&&g.trigger(p?"ajaxSuccess":"ajaxError",[T,h,p?f:m]),y.fireWith(d,[T,C]),c&&(g.trigger("ajaxComplete",[T,h]),--w.active||w.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,n,i,o){return d(n)&&(o=o||i,i=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:o,data:n,success:i},w.isPlainObject(e)&&e))}}),w.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(d(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return d(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=d(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Bt=w.ajaxSettings.xhr();h.cors=!!Bt&&"withCredentials"in Bt,h.ajax=Bt=!!Bt,w.ajaxTransport(function(t){var n,i;if(h.cors||Bt&&!t.crossDomain)return{send:function(o,r){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(s in o)a.setRequestHeader(s,o[s]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Wt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}});var zt,Xt=[],$t=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||w.expando+"_"+wt.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(t,n,i){var o,r,s,a=!1!==t.jsonp&&($t.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&$t.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=d(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace($t,"$1"+o):!1!==t.jsonp&&(t.url+=(_t.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||w.error(o+" was not called"),s[0]},t.dataTypes[0]="json",r=e[o],e[o]=function(){s=arguments},i.always(function(){void 0===r?w(e).removeProp(o):e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,Xt.push(o)),s&&d(r)&&r(s[0]),s=r=void 0}),"script"}),h.createHTMLDocument=((zt=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===zt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(i)):t=m),o=D.exec(e),r=!n&&[],o?[t.createElement(o[1])]:(o=be([e],t,r),r&&r.length&&w(r).remove(),w.merge([],o.childNodes)));var i,o,r},w.fn.load=function(e,t,n){var i,o,r,s=this,a=e.indexOf(" ");return a>-1&&(i=dt(e.slice(a)),e=e.slice(0,a)),d(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&w.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(i?w("<div>").append(w.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,u=w.css(e,"position"),c=w(e),p={};"static"===u&&(e.style.position="relative"),a=c.offset(),r=w.css(e,"top"),l=w.css(e,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(s=(i=c.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),d(t)&&(t=t.call(e,n,w.extend({},a))),null!=t.top&&(p.top=t.top-a.top+s),null!=t.left&&(p.left=t.left-a.left+o),"using"in t?t.using.call(e,p):c.css(p)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===w.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),o.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-w.css(i,"marginTop",!0),left:t.left-o.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ie})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;w.fn[e]=function(i){return B(this,function(e,i,o){var r;if(g(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===o)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):e[i]=o},e,i,arguments.length)}}),w.each(["top","left"],function(e,t){w.cssHooks[t]=Fe(h.pixelPosition,function(e,n){if(n)return n=qe(e,t),Le.test(n)?w(e).position()[t]+"px":n})}),w.each({Height:"height",Width:"width"},function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){w.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return B(this,function(t,n,o){var r;return g(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?w.css(t,n,a):w.style(t,n,o,a)},t,s?o:void 0,s)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var Ut=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),d(e))return i=o.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(o.call(arguments)))}).guid=e.guid=e.guid||w.guid++,r},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=k,w.isFunction=d,w.isWindow=g,w.camelCase=U,w.type=b,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(Ut,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w});var Yt=e.jQuery,Gt=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=Gt),t&&e.jQuery===w&&(e.jQuery=Yt),w},void 0===t&&(e.jQuery=e.$=w),w}),
/*! jQuery UI - v1.12.1 - 2017-10-27
* http://jqueryui.com
* Includes: widget.js, data.js, scroll-parent.js, widgets/draggable.js, widgets/droppable.js, widgets/mouse.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){e.ui=e.ui||{};e.ui.version="1.12.1";
/*!
 * jQuery UI Widget 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */var t,n=0,i=Array.prototype.slice;e.cleanData=(t=e.cleanData,function(n){var i,o,r;for(r=0;null!=(o=n[r]);r++)try{(i=e._data(o,"events"))&&i.remove&&e(o).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,i){var o,r,s,a={},l=t.split(".")[0],u=l+"-"+(t=t.split(".")[1]);return i||(i=n,n=e.Widget),e.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr[":"][u.toLowerCase()]=function(t){return!!e.data(t,u)},e[l]=e[l]||{},o=e[l][t],r=e[l][t]=function(e,t){if(!this._createWidget)return new r(e,t);arguments.length&&this._createWidget(e,t)},e.extend(r,o,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(s=new n).options=e.widget.extend({},s.options),e.each(i,function(t,i){e.isFunction(i)?a[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,r=this._superApply;return this._super=e,this._superApply=o,t=i.apply(this,arguments),this._super=n,this._superApply=r,t}}():a[t]=i}),r.prototype=e.widget.extend(s,{widgetEventPrefix:o&&s.widgetEventPrefix||t},a,{constructor:r,namespace:l,widgetName:t,widgetFullName:u}),o?(e.each(o._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,r,n._proto)}),delete o._childConstructors):n._childConstructors.push(r),e.widget.bridge(t,r),r},e.widget.extend=function(t){for(var n,o,r=i.call(arguments,1),s=0,a=r.length;s<a;s++)for(n in r[s])o=r[s][n],r[s].hasOwnProperty(n)&&void 0!==o&&(e.isPlainObject(o)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],o):e.widget.extend({},o):t[n]=o);return t},e.widget.bridge=function(t,n){var o=n.prototype.widgetFullName||t;e.fn[t]=function(r){var s="string"==typeof r,a=i.call(arguments,1),l=this;return s?this.length||"instance"!==r?this.each(function(){var n,i=e.data(this,o);return"instance"===r?(l=i,!1):i?e.isFunction(i[r])&&"_"!==r.charAt(0)?(n=i[r].apply(i,a))!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+r+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+r+"'")}):l=void 0:(a.length&&(r=e.widget.extend.apply(null,[r].concat(a))),this.each(function(){var t=e.data(this,o);t?(t.option(r||{}),t._init&&t._init()):e.data(this,o,new n(r,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,o,r,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(o=s[t]=e.widget.extend({},this.options[t]),r=0;r<i.length-1;r++)o[i[r]]=o[i[r]]||{},o=o[i[r]];if(t=i.pop(),1===arguments.length)return void 0===o[t]?null:o[t];o[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=n}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,i,o;for(n in t)o=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&o&&o.length&&(i=e(o.get()),this._removeClass(o,n),i.addClass(this._classes({element:i,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],i=this;function o(o,r){var s,a;for(a=0;a<o.length;a++)s=i.classesElementLookup[o[a]]||e(),s=t.add?e(e.unique(s.get().concat(t.element.get()))):e(s.not(t.element).get()),i.classesElementLookup[o[a]]=s,n.push(o[a]),r&&t.classes[o[a]]&&n.push(t.classes[o[a]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&o(t.keys.match(/\S+/g)||[],!0),t.extra&&o(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(i,o){-1!==e.inArray(t.target,o)&&(n.classesElementLookup[i]=e(o.not(t.target).get()))})},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){i="boolean"==typeof i?i:n;var o="string"==typeof e||null===e,r={extra:o?t:n,keys:o?e:t,element:o?this.element:e,add:i};return r.element.toggleClass(this._classes(r),i),this},_on:function(t,n,i){var o,r=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=o=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,o=this.widget()),e.each(i,function(i,s){function a(){if(t||!0!==r.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof s?r[s]:s).apply(r,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||e.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?o.on(u,c,a):n.on(u,a)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,i){var o,r,s=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],r=n.originalEvent)for(o in r)o in n||(n[o]=r[o]);return this.element.trigger(n,i),!(e.isFunction(s)&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,o,r){var s;"string"==typeof o&&(o={effect:o});var a=o?!0===o||"number"==typeof o?n:o.effect||n:t;"number"==typeof(o=o||{})&&(o={duration:o}),s=!e.isEmptyObject(o),o.complete=r,o.delay&&i.delay(o.delay),s&&e.effects&&e.effects.effect[a]?i[t](o):a!==t&&i[a]?i[a](o.duration,o.easing,r):i.queue(function(n){e(this)[t](),r&&r.call(i[0]),n()})}});e.widget,e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,i){return!!e.data(t,i[3])}}),e.fn.scrollParent=function(t){var n=this.css("position"),i="absolute"===n,o=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=e(this);return(!i||"static"!==t.css("position"))&&o.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&r.length?r:e(this[0].ownerDocument||document)},e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
/*!
 * jQuery UI :data 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */var o=!1;e(document).on("mouseup",function(){o=!1});e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!o){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,i=1===t.which,r=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(i&&!r&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),o=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,o=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,n,i){var o,r=e.ui[t].prototype;for(o in i)r.plugins[o]=r.plugins[o]||[],r.plugins[o].push([n,i[o]])},call:function(e,t,n,i){var o,r=e.plugins[t];if(r&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(o=0;o<r.length;o++)e.options[r[o][0]]&&r[o][1].apply(e.element,n)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")};
/*!
 * jQuery UI Draggable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",t)&&n._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,i=e.isFunction(n.helper),o=i?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,o=this.options,r=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(n=e(o.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=o.containment:this.containment=[0,0,e(r).width()-this.helperProportions.width-this.margins.left,(e(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i,o,r,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,u=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(u=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(u=n[3]+this.offset.click.top)),s.grid&&(o=s.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,u=n?o-this.offset.click.top>=n[1]||o-this.offset.click.top>n[3]?o:o-this.offset.click.top>=n[1]?o-s.grid[1]:o+s.grid[1]:o,r=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=n?r-this.offset.click.left>=n[0]||r-this.offset.click.left>n[2]?r:r-this.offset.click.left>=n[0]?r-s.grid[0]:r+s.grid[0]:r),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[n,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,i){var o=e.extend({},n,{item:i.element});i.sortables=[],e(i.options.connectToSortable).each(function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,o))})},stop:function(t,n,i){var o=e.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,e.each(i.sortables,function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,o))})},drag:function(t,n,i){e.each(i.sortables,function(){var o=!1,r=this;r.positionAbs=i.positionAbs,r.helperProportions=i.helperProportions,r.offset.click=i.offset.click,r._intersectsWith(r.containerCache)&&(o=!0,e.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&e.contains(r.element[0],this.element[0])&&(o=!1),o})),o?(r.isOver||(r.isOver=1,i._parent=n.helper.parent(),r.currentItem=n.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return n.helper[0]},t.target=r.currentItem[0],r._mouseCapture(t,!0),r._mouseStart(t,!0,!0),r.offset.click.top=i.offset.click.top,r.offset.click.left=i.offset.click.left,r.offset.parent.left-=i.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=i.offset.parent.top-r.offset.parent.top,i._trigger("toSortable",t),i.dropped=r.element,e.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,r.fromOutside=i),r.currentItem&&(r._mouseDrag(t),n.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",t,r._uiHash(r)),r._mouseStop(t,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(t),n.position=i._generatePosition(t,!0),i._trigger("fromSortable",t),i.dropped=!1,e.each(i.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,i){var o=e("body"),r=i.options;o.css("cursor")&&(r._cursor=o.css("cursor")),o.css("cursor",r.cursor)},stop:function(t,n,i){var o=i.options;o._cursor&&e("body").css("cursor",o._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,i){var o=e(n.helper),r=i.options;o.css("opacity")&&(r._opacity=o.css("opacity")),o.css("opacity",r.opacity)},stop:function(t,n,i){var o=i.options;o._opacity&&e(n.helper).css("opacity",o._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,i){var o=i.options,r=!1,s=i.scrollParentNotHidden[0],a=i.document[0];s!==a&&"HTML"!==s.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+s.offsetHeight-t.pageY<o.scrollSensitivity?s.scrollTop=r=s.scrollTop+o.scrollSpeed:t.pageY-i.overflowOffset.top<o.scrollSensitivity&&(s.scrollTop=r=s.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+s.offsetWidth-t.pageX<o.scrollSensitivity?s.scrollLeft=r=s.scrollLeft+o.scrollSpeed:t.pageX-i.overflowOffset.left<o.scrollSensitivity&&(s.scrollLeft=r=s.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(t.pageY-e(a).scrollTop()<o.scrollSensitivity?r=e(a).scrollTop(e(a).scrollTop()-o.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<o.scrollSensitivity&&(r=e(a).scrollTop(e(a).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(t.pageX-e(a).scrollLeft()<o.scrollSensitivity?r=e(a).scrollLeft(e(a).scrollLeft()-o.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<o.scrollSensitivity&&(r=e(a).scrollLeft(e(a).scrollLeft()+o.scrollSpeed)))),!1!==r&&e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,i){var o=i.options;i.snapElements=[],e(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var t=e(this),n=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})})},drag:function(t,n,i){var o,r,s,a,l,u,c,p,f,h,d=i.options,g=d.snapTolerance,m=n.offset.left,v=m+i.helperProportions.width,y=n.offset.top,b=y+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)u=(l=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,p=(c=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<l-g||m>u+g||b<c-g||y>p+g||!e.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==d.snapMode&&(o=Math.abs(c-b)<=g,r=Math.abs(p-y)<=g,s=Math.abs(l-v)<=g,a=Math.abs(u-m)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(n.position.top=i._convertPositionTo("relative",{top:p,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u}).left)),h=o||r||s||a,"outer"!==d.snapMode&&(o=Math.abs(c-y)<=g,r=Math.abs(p-b)<=g,s=Math.abs(l-m)<=g,a=Math.abs(u-v)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(n.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||r||s||a||h)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||r||s||a||h)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,i){var o,r=i.options,s=e.makeArray(e(r.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});s.length&&(o=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each(function(t){e(this).css("zIndex",o+t)}),this.css("zIndex",o+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,i){var o=e(n.helper),r=i.options;o.css("zIndex")&&(r._zIndex=o.css("zIndex")),o.css("zIndex",r.zIndex)},stop:function(t,n,i){var o=i.options;o._zIndex&&e(n.helper).css("zIndex",o._zIndex)}});e.ui.draggable;
/*!
 * jQuery UI Droppable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */e.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,n=this.options,i=n.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(i)?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(n.scope),n.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,n){if("accept"===t)this.accept=e.isFunction(n)?n:function(e){return e.is(n)};else if("scope"===t){var i=e.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(n)}this._super(t,n)},_activate:function(t){var n=e.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",t,this.ui(n))},_deactivate:function(t){var n=e.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",t,this.ui(n))},_over:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(n)))},_out:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(n)))},_drop:function(t,n){var i=n||e.ui.ddmanager.current,o=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var n=e(this).droppable("instance");if(n.options.greedy&&!n.options.disabled&&n.options.scope===i.options.scope&&n.accept.call(n.element[0],i.currentItem||i.element)&&r(i,e.extend(n,{offset:n.element.offset()}),n.options.tolerance,t))return o=!0,!1}),!o&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var r=e.ui.intersect=function(){function e(e,t,n){return e>=t&&e<t+n}return function(t,n,i,o){if(!n.offset)return!1;var r=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,a=r+t.helperProportions.width,l=s+t.helperProportions.height,u=n.offset.left,c=n.offset.top,p=u+n.proportions().width,f=c+n.proportions().height;switch(i){case"fit":return u<=r&&a<=p&&c<=s&&l<=f;case"intersect":return u<r+t.helperProportions.width/2&&a-t.helperProportions.width/2<p&&c<s+t.helperProportions.height/2&&l-t.helperProportions.height/2<f;case"pointer":return e(o.pageY,c,n.proportions().height)&&e(o.pageX,u,n.proportions().width);case"touch":return(s>=c&&s<=f||l>=c&&l<=f||s<c&&l>f)&&(r>=u&&r<=p||a>=u&&a<=p||r<u&&a>p);default:return!1}}}();e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,n){var i,o,r=e.ui.ddmanager.droppables[t.options.scope]||[],s=n?n.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(i=0;i<r.length;i++)if(!(r[i].options.disabled||t&&!r[i].accept.call(r[i].element[0],t.currentItem||t.element))){for(o=0;o<a.length;o++)if(a[o]===r[i].element[0]){r[i].proportions().height=0;continue e}r[i].visible="none"!==r[i].element.css("display"),r[i].visible&&("mousedown"===s&&r[i]._activate.call(r[i],n),r[i].offset=r[i].element.offset(),r[i].proportions({width:r[i].element[0].offsetWidth,height:r[i].element[0].offsetHeight}))}},drop:function(t,n){var i=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&r(t,this,this.options.tolerance,n)&&(i=this._drop.call(this,n)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),i},dragStart:function(t,n){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)})},drag:function(t,n){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,n),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,o,s,a=r(t,this,this.options.tolerance,n),l=!a&&this.isover?"isout":a&&!this.isover?"isover":null;l&&(this.options.greedy&&(o=this.options.scope,(s=this.element.parents(":data(ui-droppable)").filter(function(){return e(this).droppable("instance").options.scope===o})).length&&((i=e(s[0]).droppable("instance")).greedyChild="isover"===l)),i&&"isover"===l&&(i.isover=!1,i.isout=!0,i._out.call(i,n)),this[l]=!0,this["isout"===l?"isover":"isout"]=!1,this["isover"===l?"_over":"_out"].call(this,n),i&&"isout"===l&&(i.isout=!1,i.isover=!0,i._over.call(i,n)))}})},dragStop:function(t,n){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});e.ui.droppable}),
/*!
* jQuery Cookie Plugin
* https://github.com/carhartl/jquery-cookie
*
* Copyright Klaus Hartl
* Released under the MIT license
*/
function(e){e.cookie=function(t,n,i){if(void 0===n){var o=null;if(document.cookie&&""!=document.cookie)for(var r=document.cookie.split(";"),s=0;s<r.length;s++){var a=e.trim(r[s]);if(a.substring(0,t.length+1)==t+"="){o=decodeURIComponent(a.substring(t.length+1));break}}return o}i=i||{},null===n&&(n="",(i=e.extend({},i)).expires=-1);var l,u="";i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(l=new Date).setTime(l.getTime()+24*i.expires*60*60*1e3):l=i.expires,u="; expires="+l.toUTCString());var c=i.path?"; path="+i.path:"",p=i.domain?"; domain="+i.domain:"",f=i.secure?"; secure":"";document.cookie=[t,"=",encodeURIComponent(n),u,c,p,f].join("")}}(jQuery),
/*!
 * jQuery UI Touch Punch Improved 0.3.1
 *
 *
 * Copyright 2013, Chris Hutchinson <chris@brushd.com>
 * Original jquery-ui-touch-punch Copyright 2011, Dave Furfero
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 * Depends:
 * jquery.ui.widget.js
 * jquery.ui.mouse.js
 */
function(e){var t=!1,n=!1;window.PointerEvent?t=!0:window.MSPointerEvent&&(n=!0);var i=t||n;if(e.support.touch="ontouchend"in document||i,e.support.touch&&e.ui.mouse){var o,r=e.ui.mouse.prototype,s=r._mouseInit,a=r._mouseDestroy;r._touchStart=function(e){o||!i&&!this._mouseCapture(e.originalEvent.changedTouches[0])||(!i||"mouse"!=e.originalEvent.pointerType&&4!=e.originalEvent.pointerType)&&(o=!0,this._touchMoved=!1,l(e,"mouseover"),l(e,"mousemove"),l(e,"mousedown"))},r._touchMove=function(e){o&&(this._touchMoved=!0,l(e,"mousemove"))},r._touchEnd=function(e){o&&(l(e,"mouseup"),l(e,"mouseout"),this._touchMoved||l(e,"click"),o=!1)},r._mouseInit=function(){var i,o=["_touchStart","_touchMove","_touchEnd"],r={};i=t?["pointerdown","pointermove","pointerup"]:n?["MSPointerDown","MSPointerMove","MSPointerUp"]:["touchstart","touchmove","touchend"];for(var a=0;a<o.length;++a)r[i[a]]=e.proxy(this,o[a]);this.element.on(r),s.call(this)},r._mouseDestroy=function(){var i,o=["_touchStart","_touchMove","_touchEnd"],r={};i=t?["pointerdown","pointermove","pointerup"]:n?["MSPointerDown","MSPointerMove","MSPointerUp"]:["touchstart","touchmove","touchend"];for(var s=0;s<o.length;++s)r[i[s]]=e.proxy(this,o[s]);this.element.off(r),a.call(this)}}function l(t,n){if(!(!i&&t.originalEvent.touches.length>1||i&&!t.originalEvent.isPrimary)){var o,r,s,a,l,u=i?t.originalEvent:t.originalEvent.changedTouches[0],c=document.createEvent("MouseEvents"),p=(o=u,r=window.pageXOffset,s=window.pageYOffset,a=o.clientX,l=o.clientY,0===o.pageY&&Math.floor(l)>Math.floor(o.pageY)||0===o.pageX&&Math.floor(a)>Math.floor(o.pageX)?(a-=r,l-=s):(l<o.pageY-s||a<o.pageX-r)&&(a=o.pageX-r,l=o.pageY-s),{clientX:a,clientY:l});e(u.target).is("input")||e(u.target).is("textarea")?t.stopPropagation():t.preventDefault(),c.initMouseEvent(n,!0,!0,window,1,t.screenX||u.screenX,t.screenY||u.screenY,t.clientX||p.clientX,t.clientY||p.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(c)}}}(jQuery),function(){"use strict";function e(e,t,n){this.x=e,this.y=t,this.z=n}function t(e){this.data=e}t.fromString=function(e){var n=e.match(/matrix3?d?\(([^\)]+)\)/i)[1].split(",");return 6===n.length&&(n=[n[0],n[1],"0","0",n[2],n[3],"0","0","0","0","1","0",n[4],n[5],"0","1"]),new t([parseFloat(n[0]),parseFloat(n[4]),parseFloat(n[8]),parseFloat(n[12]),parseFloat(n[1]),parseFloat(n[5]),parseFloat(n[9]),parseFloat(n[13]),parseFloat(n[2]),parseFloat(n[6]),parseFloat(n[10]),parseFloat(n[14]),parseFloat(n[3]),parseFloat(n[7]),parseFloat(n[11]),parseFloat(n[15])])},t.prototype.multiply=function(e){var n=this.data,i=e.data;return new t([n[0]*i[0]+n[1]*i[4]+n[2]*i[8]+n[3]*i[12],n[0]*i[1]+n[1]*i[5]+n[2]*i[9]+n[3]*i[13],n[0]*i[2]+n[1]*i[6]+n[2]*i[10]+n[3]*i[14],n[0]*i[3]+n[1]*i[7]+n[2]*i[11]+n[3]*i[15],n[4]*i[0]+n[5]*i[4]+n[6]*i[8]+n[7]*i[12],n[4]*i[1]+n[5]*i[5]+n[6]*i[9]+n[7]*i[13],n[4]*i[2]+n[5]*i[6]+n[6]*i[10]+n[7]*i[14],n[4]*i[3]+n[5]*i[7]+n[6]*i[11]+n[7]*i[15],n[8]*i[0]+n[9]*i[4]+n[10]*i[8]+n[11]*i[12],n[8]*i[1]+n[9]*i[5]+n[10]*i[9]+n[11]*i[13],n[8]*i[2]+n[9]*i[6]+n[10]*i[10]+n[11]*i[14],n[8]*i[3]+n[9]*i[7]+n[10]*i[11]+n[11]*i[15],n[12]*i[0]+n[13]*i[4]+n[14]*i[8]+n[15]*i[12],n[12]*i[1]+n[13]*i[5]+n[14]*i[9]+n[15]*i[13],n[12]*i[2]+n[13]*i[6]+n[14]*i[10]+n[15]*i[14],n[12]*i[3]+n[13]*i[7]+n[14]*i[11]+n[15]*i[15]])},t.prototype.translate=function(e,n,i){var o=new t([1,0,0,e,0,1,0,n,0,0,1,i,0,0,0,1]);return this.multiply(o)},t.prototype.inverse=function(){var e=this.data,n=e[0],i=e[1],o=e[2],r=e[4],s=e[5],a=e[6],l=e[8],u=e[9],c=e[10],p=s*c-a*u,f=a*l-r*c,h=r*u-s*l,d=n*p+i*f+o*h,g=new t([p/d,(o*u-i*c)/d,(i*a-o*s)/d,0,f/d,(n*c-o*l)/d,(o*r-n*a)/d,0,h/d,(i*l-n*u)/d,(n*s-i*r)/d,0,0,0,0,1]),m=new t([1,0,0,-e[3],0,1,0,-e[7],0,0,1,-e[11],0,0,0,1]);return g.multiply(m)},t.prototype.transformPoint=function(t){arguments.length>1&&(t=new e(t,arguments[1],arguments[2]||0));var n=this.data;return new e(n[0]*t.x+n[1]*t.y+n[2]*t.z+n[3],n[4]*t.x+n[5]*t.y+n[6]*t.z+n[7],n[8]*t.x+n[9]*t.y+n[10]*t.z+n[11])};var n=!1,i=!1,o=function(e){if(i)return n;i=!0;var t=e.createElement("div");t.style.cssText="width:200px;height:200px;position:fixed;-moz-transform:scale(2);",e.body.appendChild(t);var o=t.getBoundingClientRect();return n=void 0!=getComputedStyle(t,void 0).MozTransform&&o.bottom-o.top<300,t.parentNode.removeChild(t),n};function r(n){for(var i=t.fromString("matrix(1,0,0,1,0,0)"),r=i,s=n,a=o(s.ownerDocument);void 0!=s&&s!==s.ownerDocument.documentElement;){var l=window.getComputedStyle(s,void 0),u=t.fromString((l.transform||l.OTransform||l.WebkitTransform||l.msTransform||l.MozTransform||"none").replace(/^none$/,"matrix(1,0,0,1,0,0)"));if(a){var c=s.getBoundingClientRect(),p=void 0!=s.parentNode&&void 0!=s.parentNode.getBoundingClientRect?s.parentNode.getBoundingClientRect():x,f=i.translate(c.left-p.left,c.top-p.top,0),h=l.MozTransformOrigin;h=-1!==h.indexOf("%")?"":h,h=t.fromString("matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,"+((h||"0 0")+" 0").split(" ").slice(0,3)+",1)"),r=f.multiply(h).multiply(u).multiply(h.inverse()).multiply(r)}else r=u.multiply(r);s=s.parentNode}if(!a){for(var d=n.offsetWidth,g=n.offsetHeight,m=4,v=1/0,y=1/0;--m>=0;){var b=r.transformPoint(new e(0===m||1===m?0:d,0===m||3===m?0:g,0));b.x<v&&(v=b.x),b.y<y&&(y=b.y)}var x=n.getBoundingClientRect();r=i.translate(window.pageXOffset+x.left-v,window.pageYOffset+x.top-y,0).multiply(r)}return r}window.getTransformationMatrix=r,window.convertPointFromPageToNode=function(t,n,i){return r(t).inverse().transformPoint(new e(n,i,0))},window.convertPointFromNodeToPage=function(t,n,i){return r(t).transformPoint(new e(n,i,0))}}(),
/*!
 * Heartcode CanvasLoader https://github.com/heartcode/CanvasLoader
 * Copyright (c) 2011 Róbert Pataki
 * Modified by ATOMI
 * Licensed under the MIT license.
 */
function(){"use strict";var e=function(e,t){void 0===t&&(t={}),this.init(e,t)},t=e.prototype,n=["oval","spiral","square","rect","roundRect"],i=/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,o=function(e,t,n){var i,o=document.createElement(e);for(i in n)o[i]=n[i];return void 0!==t&&t.appendChild(o),o},r=function(e,t){for(var n in t)e.style[n]=t[n];return e},s=function(e,t){for(var n in t)e.setAttribute(n,t[n]);return e},a=function(e,t,n,i){e.save(),e.translate(t,n),e.rotate(i),e.translate(-t,-n),e.beginPath()};t.init=function(e,t){t||(t={}),"string"==typeof e&&(e=document.getElementById(e)),e||(e=document.body),this.cont=o("div",e),t.id&&(this.cont.id=t.id);var n=this.cont.style;n.position="absolute",n.margin="auto",n.left=n.right=n.top=n.bottom=0,n.pointerEvents="none",void 0!==t.zIndex&&(n.zIndex=t.zIndex),this.can=o("canvas",this.cont),this.con=this.can.getContext("2d"),this.cCan=r(o("canvas",this.cont),{display:"none"}),this.cCon=this.cCan.getContext("2d");var i,s,a=["shape","color","diameter","density","range","speed","text"],l=["oval","#2090e6",60,9,1,1,""];for(i=0;i<a.length;++i)this[s=a[i]]=void 0!==t[s]?t[s]:l[i];this.cRGB=this.getRGB(this.color),this.draw(),r(this.cont,{display:"none"})},t.cont={},t.can={},t.con={},t.cCan={},t.cCon={},t.timer=null,t.activeId=0,t.diameter=40,t.setDiameter=function(e){this.diameter=e<1?1:e,this.redraw()},t.getDiameter=function(){return this.diameter},t.cRGB={},t.color="#000000",t.setColor=function(e){this.color=i.test(e)?e:"#000000",this.cRGB=this.getRGB(this.color),this.redraw()},t.getColor=function(){return this.color},t.shape=n[0],t.setShape=function(e){var t;for(t in n)if(e===n[t]){this.shape=e,this.redraw();break}},t.getShape=function(){return this.shape},t.density=40,t.setDensity=function(e){this.density=Math.round(Math.abs(e)),this.density>360&&(this.density=360),this.density<2&&(this.density=2),this.activeId=0,this.redraw()},t.getDensity=function(){return this.density},t.range=1.3,t.setRange=function(e){this.range=Math.abs(e),this.redraw()},t.getRange=function(){return this.range},t.speed=2,t.setSpeed=function(e){this.speed=Math.round(Math.abs(e))},t.getSpeed=function(){return this.speed},t.text="",t.setText=function(e){this.text=e,this.textChanged=!0,this.timer&&this.tick(!0)},t.getText=function(){return this.text},t._pixelRatio=window.devicePixelRatio||1,t.getRGB=function(e){return e="#"===e.charAt(0)?e.substring(1,7):e,{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16)}},t.draw=function(){var e,t,i,o,l,u,c,p,f=0,h=this.density,d=Math.round(h*this.range),g=Math.max(1e3,this.cCan.width),m=this.cCon,v=this.diameter,y=.47;if(v<1&&(this.diameter=v=1),r(this.cont,{width:v+"px",height:v+"px"}),this.can.offsetWidth<1||this.can.offsetHeight<1)this._pendingDraw=!0;else{delete this._pendingDraw,m.setTransform(1,0,0,1,0,0),m.clearRect(0,0,g,g);var b=Math.round(v*this._pixelRatio);for(s(this.can,{width:b,height:b}),r(this.can,{width:"100%",height:"100%"}),s(this.cCan,{width:b,height:b}),m.scale(this._pixelRatio,this._pixelRatio);f<h;){switch(p=f<=d?1-1/d*f:p=0,u=(270-360/h*f)/180*Math.PI,m.fillStyle="rgba("+this.cRGB.r+","+this.cRGB.g+","+this.cRGB.b+","+p.toString()+")",this.shape){case n[0]:case n[1]:e=.07*v,o=v*y+Math.cos(u)*(v*y-e)-v*y,l=v*y+Math.sin(u)*(v*y-e)-v*y,m.beginPath(),this.shape===n[1]?m.arc(.5*v+o,.5*v+l,e*p,0,2*Math.PI,!1):m.arc(.5*v+o,.5*v+l,e,0,2*Math.PI,!1);break;case n[2]:e=.12*v,o=Math.cos(u)*(v*y-e)+.5*v,l=Math.sin(u)*(v*y-e)+.5*v,a(m,o,l,u),m.fillRect(o,l-.5*e,e,e);break;case n[3]:case n[4]:i=.27*(t=.3*v),o=Math.cos(u)*(i+.13*(v-i))+.5*v,l=Math.sin(u)*(i+.13*(v-i))+.5*v,a(m,o,l,u),this.shape===n[3]?m.fillRect(o,l-.5*i,t,i):(c=.55*i,m.moveTo(o+c,l-.5*i),m.lineTo(o+t-c,l-.5*i),m.quadraticCurveTo(o+t,l-.5*i,o+t,l-.5*i+c),m.lineTo(o+t,l-.5*i+i-c),m.quadraticCurveTo(o+t,l-.5*i+i,o+t-c,l-.5*i+i),m.lineTo(o+c,l-.5*i+i),m.quadraticCurveTo(o,l-.5*i+i,o,l-.5*i+i-c),m.lineTo(o,l-.5*i+c),m.quadraticCurveTo(o,l-.5*i,o+c,l-.5*i))}m.closePath(),m.fill(),m.restore(),++f}this.con.textAlign="center",this.con.textBaseline="middle",this.con.font="bold "+this.detectFontSize()+"px Arial",this.con.fillStyle="rgb("+this.cRGB.r+","+this.cRGB.g+","+this.cRGB.b+")",this.timer&&this.tick(!0)}},t.clean=function(){var e=Math.max(1e3,this.can.width),t=this.con;t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e,e),t.restore()},t.redraw=function(){this.clean(),this.draw()},t.reset=function(){this.timer&&(this.hide(),this.show())},t.detectFontSize=function(){if(this.diameter<90){if(this.shape.toLowerCase().indexOf("rect")>-1){if(this.diameter<65)return 8;if(this.diameter<80)return 10}return 12}return this.diameter<120?14:this.diameter<140?18:22},t.tick=function(e){if(e&&delete this.prevTime,!(this.can.offsetWidth<1||this.can.offsetHeight<1))if(this._pendingDraw)this.draw();else{var t,n=this.con,i=this.diameter,o=Date.now();i<1&&(this.diameter=i=1);var r=this.cont.getBoundingClientRect().width;if(r){var s=window.devicePixelRatio||1;if(Math.abs(r-i)>1&&(s*=r/i),s!=this._pixelRatio)return this._pixelRatio=s,void this.draw()}if(this.prevTime){if((t=Math.floor((o-this.prevTime)*this.speed/100))===this.density&&(t=this.density-1),!t&&!this.textChanged)return;this.activeId+=360/this.density*t,t&&(this.prevTime=100*t/this.speed+this.prevTime)}else this.prevTime=o;var l=i*this._pixelRatio;n.clearRect(0,0,l+1,l+1),a(n,.5*l,.5*l,this.activeId/180*Math.PI),n.drawImage(this.cCan,0,0,l,l),n.restore(),this.text&&(n.save(),n.scale(this._pixelRatio,this._pixelRatio),n.fillText(this.text,i/2,i/2),n.restore(),this.textChanged=!1)}},t.show=function(){if(!this.timer){this.prevTime=null;var e=this,t=function(){e.tick(),e.timer=requestAnimationFrame(t)};t(),r(this.cont,{display:"block"})}},t.hide=function(){this.timer&&(cancelAnimationFrame(this.timer),delete this.timer,this.prevTime=null,r(this.cont,{display:"none"}))},t.kill=function(){this.hide(),this.cont.parentNode&&this.cont.parentNode.removeChild(this.cont)},document.createElement("canvas").getContext&&(window.CanvasLoader=e)}();/*!
 * Copyright (c) Atomi Systems, Inc. All rights reserved.
 * Version: 9.1.3
 * Date: 2023.10.31
 */
function onYouTubeIframeAPIReady(){AtomiAP.onYouTubeIframeAPIReady()}function on3DModelLibReady(){AtomiAP.on3DModelLibReady()}!function(t){"use strict";t=t.noConflict(!0);var i={u:0,_:2,T:3,C:4,S:8,O:10,I:11,P:13,R:14,M:15,N:16,D:17,Y:18,X:19,L:21,F:22,H:23,U:24,B:25,G:26,V:27,K:32,j:90,q:91,J:92,tt:28,et:29,nt:30},s={rt:1,ht:2,B:3,ot:0,ut:12,ft:17,dt:18,pt:1,vt:2,gt:3,bt:4,wt:5,_t:6,yt:7,Tt:8},e=1<<29,n=1<<28,r=1<<20,a=1<<19,h=1<<18,o=65536,u=32768,c=0,f=1,l=2,d=0,p=1,v=2,m=3,g=4,b=5,w=6,_=7,y=0,T=2,k=4,x=8,C=16,S=32,O=64,E=128,I=256,P=512,R=1024,M=2048,N=4096,A=0,D=0,Y=1,X=2,L=3,F=4,H=0,U=1,B=2,Z=3,z=4,G=5,V=0,W=1,$=2,K=3,j=4,Q={VISIBLE:0,HIDDEN:1,AUTO:2},q=500,J=501,tt=1,it=2,st=3,et=1,nt=2,rt=3,at=4,ht=1,ot=2,ut=3,ct={kt:1,xt:2,Ct:8},ft={NONE:0,ARROW:1,OPEN:2,STEALTH:3,DIAMOND:4,OVAL:5},lt=1,dt=2,pt=4,vt=8,mt=32,gt=64,bt=256,wt=512,_t={St:0,Ot:1,Et:2,_:3,It:8,Pt:9},yt=0,Tt=1,kt=1,xt=2,Ct=3,St={Rt:0,Mt:1,Nt:3,rt:4,ht:5,At:6,R:7,Dt:8,Yt:9,X:10,K:11},Ot={Xt:1,Lt:2,Ft:3,Ht:4,Ut:5,Bt:6,Zt:7,zt:8,Gt:9},Et={Vt:0,Wt:1,$t:2,Kt:3,jt:4,Dt:5,Qt:6},It=1,Pt=2,Rt=4,Mt=8,Nt=16,At=-1,Dt={3:"ap-click",4:"ap-dblclick",6:"ap-rollover",7:"ap-rollout",10:"ap-keypress",12:"ap-textenter",15:"ap-beforeload",16:"ap-load",17:"ap-unload",21:"ap-check",23:"ap-correct",24:"ap-incorrect",25:"ap-complete",26:"ap-incomplete",27:"ap-timeout",29:"ap-accept",30:"ap-reject",32:"ap-swipeleft",33:"ap-swiperight",34:"ap-swipeup",35:"ap-swipedown",36:"ap-dragstart",37:"ap-dragend",38:"ap-dragenter",39:"ap-dragleave",40:"ap-timer-complete",41:"ap-uncheck",42:"ap-play",43:"ap-pause",44:"ap-ended",45:"ap-change",46:"ap-changing",47:"ap-change",48:"ap-change",49:"ap-dragout"},Yt={qt:1,Jt:2,ii:3,si:5,ei:6,ni:7,ri:8,oi:9,ci:12,fi:13,li:14,pi:15,vi:16,gi:19,bi:20,wi:26,_i:27,Mt:28,yi:29,Ti:30,ki:31,xi:32,Rt:33,Ci:34,Si:35,Oi:36,Ei:37,Ii:38,Pi:39,Ri:40,Mi:41,Ni:42,Ai:43,Di:44,Yi:45,Xi:46,Li:47,Fi:48,Hi:49,Ui:50},Xt={Bi:0,Zi:1,zi:2,Gi:3,Vi:4,Wi:5},Lt=0,Ft=1,Ht=2,Ut=3,Bt=0,Zt=2,zt=0,Gt=1,Vt=2,Wt=3,$t=4,Kt=5,jt=8,Qt={$i:1,Ki:10,ji:20,Qi:30,qi:40,Ji:50,ss:60,es:70,ns:80,os:90,us:1e3,fs:2500,ls:3500,ds:4e3,ps:4010},qt={"-1":"auto",0:"none",1:"default",5:"crosshair",6:"pointer",7:"text",11:"not-allowed",16:"help",18:"nesw-resize",19:"ns-resize",20:"nwse-resize",21:"ew-resize",22:"all-scroll",24:"wait"},Jt={vs:0,ms:1,gs:2,bs:3,ws:4,_s:5,ys:6},ti={Demo:1,Tutorial:2,Practice:4,Test:8},ii=0,si=1,ei=2,ni=3,ri=1,ai=2,hi=3,oi=4,ui=5,ci=6,fi=7,li=8,di=9,pi=10,vi=11,mi=12,gi=13,bi=14,wi=1,_i=2,yi=3,Ti={ACTUAL_SIZE:0,AUTOFIT:1,FULLSCREEN:2},ki={BOOLEAN:0,TEXT:1,NUMBER:2,COMMAND:3},xi=0,Ci=1,Si=0,Oi=1,Ei=0,Ii=1,Pi=2,Ri=3,Mi={Ts:3,ks:4},Ni=0,Ai=1,Di=-2,Yi=-1,Xi=1e3,Li=1e-7,Fi=5e3,Hi="string",Ui="http://www.w3.org/2000/svg",Bi="userSpaceOnUse",Zi=Math.PI,zi=Math.abs,Gi=Math.sqrt,Vi=Math.pow,Wi=Math.min,$i=Math.max,Ki=Math.cos,ji=Math.sin,Qi=Math.asin,qi=Math.tan,Ji=Math.atan2,ts=Math.round,is=Math.floor,ss=Math.ceil,es=t.noop,ns=t.extend,rs=t.isFunction,as=t.isNumeric,hs=Date.now||(Date.now=function(){return(new Date).getTime()}),os=window.document,us=window.requestAnimationFrame,cs=window.cancelAnimationFrame,fs=["Webkit","Moz","ms","O"],ls=["webkit","moz","ms","o"],ds={},ps={},vs=os.createElement("div");function ms(t){ms.disabled||window.console&&console.log(t)}function gs(t,i,s){return Wi($i(t,i),s)}function bs(t,i,s){return arguments.length<3&&(s=Li),i-s<=t&&t<=i+s}function ws(t,i){1==arguments.length&&(i=t);var s,e,n,r=[],a=[];for(s=0;s<t;++s)r.push(s);for(s=t;i>0;)e=Math.floor(Math.random()*s),--s,n=r[e],s!=e&&(r[e]=r[s],r[s]=n),a.push(n),--i,0==s&&(s=t);return a}function _s(t,i){vs.textContent=t;var s=vs.innerHTML;return i?s.replace(/\n/g,"<br />"):s}function ys(t){return vs.innerHTML=t,vs.textContent||""}function Ts(t,i){return ts(t*Vi(10,i))/Vi(10,i)}function ks(i,s){var e=t("<div><div>"+i.html+"</div></div>");e[0].firstChild.style.cssText=i.css,t("*",e).each(function(){if(this.style&&this.style.fontSize){var i=this.style.fontSize,e=i.match(/\D+$/);if(!(e=e&&e[0])||e.search(/inherit|%|em/i)>-1)return;var n=parseFloat(i);if(isNaN(n)){var r=t(this);r.css("font-size",parseFloat(r.css("font-size"))*s)}else n*=s,this.style.fontSize=n+e}}),e=e[0].firstChild,i.css=e.cssText,i.html=e.innerHTML}function xs(t,i,s){for(var e=t.parentNode,n=s.words?t.nodeValue.split(/(\s+)/):t.nodeValue,r=0,a=n.length;r<a;++r){var h,o,u=n[r];if(u)u.trim()?(h=os.createElement("div"),o=os.createTextNode(u),h.appendChild(o),h.style.display="inline-block",h.style.position="relative",i[s.words?"words":"chars"].push(h),s.words&&s.chars&&xs(o,i,{chars:!0})):h=os.createTextNode(u),e.insertBefore(h,t)}e.removeChild(t)}function Cs(t){t=is(t/1e3);var i=is(t/3600),s=is(t%3600/60),e=t%60;return i<10&&(i="0"+i),s<10&&(s="0"+s),e<10&&(e="0"+e),i+":"+s+":"+e}function Ss(t){var i,s;return t.indexOf(":")>=0?s=(i=t.split(":")).length-3:(i=t.match(/(\d+h)?(\d+m)?((\d*\.)?\d+s)?/i))[0]&&(s=1),void 0!==s?1e3*(3600*(parseFloat(i[s])||0)+60*(parseFloat(i[s+1])||0)+(parseFloat(i[s+2])||0)):parseInt(t)}function Os(t){return t*Zi/180}function Es(t,i){for(var s in i)t.setAttribute(s,i[s])}function Is(t,i,s,e){var n="";if(i||s){var r="";e&&t.style[Xs]&&(t.xs?delete t.xs:(t.xs=!0,r="translate(0px, 0px) ")),n=r+"scale("+(i?-1:1)+", "+(s?-1:1)+")"}t.style[Xs]=n,e&&(t.style[Fs]=n?"center":"")}function Ps(t,i,s,e){return void 0===i?typeof t===Hi?t:Ps(t>>16&255,t>>8&255,255&t,(t>>24&255)/255):void 0===e||1===e?"rgb("+ts(t)+","+ts(i)+","+ts(s)+")":"rgba("+ts(t)+","+ts(i)+","+ts(s)+","+e.toFixed(6)+")"}ms.disabled=!0;var Rs=/[a-zA-Z%]+$/;function Ms(t){var i={unit:null};return typeof t===Hi?(i.value=parseFloat(t),i.unit=t.match(Rs),i.unit&&(i.unit=i.unit[0])):i.value=t,i}function Ns(t,i,s,e){if(i in t||!i)return i;var n,r,a=i.charAt(0).toUpperCase()+i.slice(1),h=s.length;for(r=0;r<h;++r)if((n=s[r]+a)in t)return n;return e?"":i}function As(t,i,s){return Ns(t,i,ls,s)}function Ds(t,i,s){return Ns(t,i,fs,s)}function Ys(t,i){var s=Ds(vs.style,t,!0);return!!s&&(ds[t]=s,vs.style[s]=i,!(!vs.style[s]||"none"==vs.style[s])||!!(s==t&&(s="Webkit"+t.charAt(0).toUpperCase()+t.slice(1))in vs.style&&(vs.style[s]=i,vs.style[s]))&&(ds[t]=s,!0))}us||(us=window[As(window,"requestAnimationFrame")],cs=window[As(window,"cancelAnimationFrame")]||window[As(window,"cancelRequestAnimationFrame")],us||(us=function(t){var i=hs(),s=t.requestAnimationFrameTime?$i(0,16-(i-t.requestAnimationFrameTime)):0;return t.requestAnimationFrameTime=i+s,window.setTimeout(function(){t(hs())},s)},cs=function(t){clearTimeout(t)}),window.requestAnimationFrame=us,window.cancelAnimationFrame=cs),ps.clipPath=Ys("clipPath","inset(10%)"),ps.maskImage=Ys("maskImage","linear-gradient(rgba(0, 0, 0, 1.0), transparent)"),ps.filter=Ys("filter","contrast(200%)"),ps.perspective=Ys("perspective","100px"),ps.perspectiveOrigin=Ys("perspectivOrigin","100px 100px");var Xs=ds.transform=Ds(vs.style,"transform"),Ls="translate3d",Fs=ds.transformOrigin=Ds(vs.style,"transformOrigin"),Hs=ps.perspective?ds.perspective:"perspective",Us=ps.perspectiveOrigin?ds.perspectiveOrigin:"perspectiveOrigin",Bs=As(os,"hidden",!0),Zs=ps.clipPath?ds.clipPath:"clip",zs=ps.maskImage?ds.maskImage:"maskImage",Gs=ps.filter?ds.filter:"filter",Vs=ps.clipPath?"inset(":"rect(";function Ws(t,i){var s=void 0!==i;s||(i=t[Xs]||""),i.indexOf(Ls)<0&&(s=!0,i=Ls+"(0px, 0px, 0px) "+i),s&&(t[Xs]=i)}function $s(t,i,s,e,n,r){if(typeof t==Hi)return t;for(var a,h="",o=i+e/2,u=s+n/2,c=[],f=0,l=t.length;f<l;++f){for(var d=t[f],p=[],v=0,m=d.length;v<m;++v)a=ye.rotatePoint(d[v][0]/100*e+i,d[v][1]/100*n+s,r,o,u),p.push(a);c.push(p)}for(ye.browser.chromiums&&function(t,i,s,e,n,r){var a=[];i-=100,s-=100,e+=200,n+=200;for(var h=[],o=0;o<4;++o){var u=i,c=s;1==o?u=i+e:2==o?(u=i+e,c=s+n):3==o&&(u=i,c=s+n);var f=ye.rotatePoint(u,c,r,i+e/2,s+n/2);h.push(f),a.push(f)}for(o=h.length-2;o>0;--o)a.push({x:h[o].x,y:h[o].y});t.push(a)}(c,i,s,e,n,r),f=0,l=c.length;f<l;++f)if(m=(p=c[f]).length){for(h+=" M",v=0;v<m;++v)h+=" "+(a=p[v]).x+" "+a.y;h+=" Z"}return h?'path("'+h+'")':h}var Ks=function(){for(var t=["fullscreenEnabled fullscreenElement requestFullscreen exitFullscreen fullscreenchange fullscreenerror".split(" "),"webkitFullscreenEnabled webkitFullscreenElement webkitRequestFullscreen webkitExitFullscreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozFullScreenEnabled mozFullScreenElement mozRequestFullScreen mozCancelFullScreen mozfullscreenchange mozfullscreenerror".split(" "),"msFullscreenEnabled msFullscreenElement msRequestFullscreen msExitFullscreen MSFullscreenChange MSFullscreenError".split(" ")],i={},s=0,e=0,n=t.length;e<n;++e)if(t[e][0]in os){s=e;break}for(e=0,n=t[0].length;e<n;++e)i[t[0][e]]=t[s][e];return t=null,{fullscreenEnabled:function(){return os[i.fullscreenEnabled]},fullscreenElement:function(){return os[i.fullscreenElement]},requestFullscreen:function(t){var s=i.requestFullscreen;if(t[s])return t[s]();t.webkitEnterFullscreen&&t.webkitEnterFullscreen()},isElementSupportFullscreen:function(t){return!!t[i.requestFullscreen]||!!t.webkitEnterFullscreen},exitFullscreen:function(){var t=i.exitFullscreen;if(os[t])return os[t]();element.webkitExitFullscreen&&element.webkitExitFullscreen()},addEventListener:function(t,s,e){return os.addEventListener(i[t]||t,s,e)},removeEventListener:function(t,s,e){return os.removeEventListener(i[t]||t,s,e)}}}();function js(){var t,i=function(){this.$init.apply(this,arguments)},s=[i.prototype],e=0,n=null;for(rs(arguments[0])&&((n=arguments[0]).childClasses||(n.childClasses=[]),n.childClasses.push(i),e=1,s.push(n.prototype)),t=arguments.length;e<t;++e)s.push(arguments[e]);return ns.apply(null,s),i.prototype.$init||(i.prototype.$init=es),i.prototype.constructor=i,i.parentClass=n,i.childClasses=[],i.extend=Qs,i}function Qs(t,i,s){t=t||{},arguments.length<2&&(i=!0),arguments.length<3&&(s=!1);var e,n,r,a=this.prototype,h={};for(e in t)void 0!==(n=t[e])&&(void 0===(r=a[e])?a[e]=n:i&&(h[e]=r,a[e]=n));var o,u,c,f,l=this.childClasses;for(o=0,u=l.length;o<u;++o){if(c=l[o],i&&!s){f={},a=c.prototype;for(e in h)a[e]===h[e]&&(f[e]=t[e]);c.extend(f,!0,!1)}c.extend(t,s,s)}return this}var qs=js({$init:function(){this.clear()},add:function(t){var i={n:null,p:this.Cs,d:t};this.Cs?this.Cs.n=i:(this.Ss=i,this.Os.front&&(this.Os.n=i)),this.Cs=i,this.Os.back&&(this.Os.p=i)},Es:function(t,i,s){for(var e=this.Ss;e;){if((i?t(e.d):e.d===t)&&(e.p?e.p.n=e.n:this.Ss=e.n,e.n?e.n.p=e.p:this.Cs=e.p,this.Os.n===e&&(this.Os.n=e.n),this.Os.p===e&&(this.Os.p=e.p),!s))return;e=e.n}},remove:function(t,i){this.Es(t,!1,i)},removeIf:function(t,i){this.Es(t,!0,i)},empty:function(){return!this.Ss},clear:function(){this.Ss=this.Cs=null,this.toFront()},toFront:function(){this.Os={n:this.Ss,p:null,front:1}},toBack:function(){this.Os={n:this.null,p:this.Cs,back:1}},next:function(){var t=this.Os.n;return t?(this.Os=t,t.d):(this.toBack(),null)},previous:function(){var t=this.Os.p;return t?(this.Os=t,t.d):(this.toFront(),null)},hasNext:function(){return!!this.Os.n},hasPrevious:function(){return!!this.Os.p}}),Js={INITIAL:0,LOADING:1,LOADED:2,ERROR:3,TIMEOUT:4};function te(t){if(!t.type){var i=t.url.substr(t.url.lastIndexOf(".")+1).toLowerCase(),s=i.lastIndexOf("?");s>-1&&(i=i.substring(0,s)),"js"!==i&&"css"!==i&&(i="image"),t.type=i}t.node||(t.node="image"===t.type?new Image:os.createElement("js"===t.type?"script":"link"));var e,n,r,a,h=t.node,o=function(t){t||(h.removeEventListener("load",u,!1),h.removeEventListener("error",u,!1)),e&&clearTimeout(e)&&(e=null)},u=(n=o,r=t,a="load",function(t){n(!t),r.progress=1,t?t.type===a?(r.status=Js.LOADED,r.onLoad&&r.onLoad()):(r.status=Js.ERROR,ms("Error loading "+r.url+", event "+t.type+(r.node.error?", error "+r.node.error.code:"")),r.onError&&r.onError()):(r.status=Js.TIMEOUT,ms("Timeout loading "+r.url),r.onTimeout&&r.onTimeout()),r.onComplete&&r.onComplete()});switch(h.addEventListener("load",u,!1),h.addEventListener("error",u,!1),isNaN(t.maxTime)||(e=setTimeout(u,1e3*t.maxTime)),t.cancel=function(){return"image"===this.type&&(o(!1),this.node.src="",!0)},t.progress=0,t.status=Js.LOADING,t.type){case"js":h.type="text/javascript",h.src=t.url;break;case"css":h.rel="stylesheet",h.type="text/css",h.href=t.url;break;default:h.src=t.url}"image"!==t.type&&(os.head||os.getElementsByTagName("head")[0]||os.documentElement).insertBefore(h,null);return t}var ie=js({$init:function(t){this.started=!1,this.paused=!1,this.Is=0,this.complete=!1,this.items=[],this.loadingItems=[],this.nextIdx=0,this.loadedCount=0,this.options=ns({maxConnections:8,maxItemTime:10,holdCompletion:!1},t);var i=!1;(t=this.options).items&&(i=!0,this.add(t.items),delete t.items),this.paused=!!t.paused||!i,this.paused||this.load()},add:function(t){if(t){this.complete&&this.clear(),Array.isArray(t)||(t=[t]);var i,s,e,n,r=this,a=function(){var t=r.loadingItems.indexOf(this);t>-1&&(r.loadingItems.splice(t,1),++r.loadedCount,r.Ps()),r.options.onItemComplete&&r.options.onItemComplete.call(r,this),r.paused||r.complete||r.load()};for(i=0,s=t.length;i<s;++i)(e=t[i])&&(e.url||(e={url:e}),n=ns({},e,{progress:0,status:Js.INITIAL,onComplete:a}),this.items.push(n));this.paused||this.load()}},load:function(t){if(this.add(t),this.paused=!1,!this.started&&(this.started=!0,this.options.onStart&&this.options.onStart.call(this),this.Ps(),!isNaN(this.options.maxTime))){var i=this;this.timeoutId=setTimeout(function(){i.timeoutId=null,i.options.onTimeout&&i.options.onTimeout.call(this)},1e3*this.options.maxTime)}var s,e;for(s=this.nextIdx,e=this.items.length;s<e&&!(this.loadingItems.length>=this.options.maxConnections);++s)this.items[s].status===Js.INITIAL?this.Rs(s):s===this.nextIdx&&++this.nextIdx},pause:function(){var t,i;if(!this.paused)for(this.paused=!0,t=this.loadingItems.length-1;t>=0;--t)(i=this.loadingItems[t])&&i.cancel()&&(this.loadingItems.splice(t,1),i.status===Js.LOADING&&(i.status=Js.INITIAL,this.nextIdx=0))},clear:function(){var t=this.paused;this.pause(),this.paused=t,this.started=this.complete=!1,this.Is=0,this.items.length=0,this.loadingItems.length=0,this.nextIdx=0,this.loadedCount=0},progress:function(){return this.Is},holdCompletion:function(t){void 0===t&&(t=!0),this.options.holdCompletion!==t&&(this.options.holdCompletion=t,t||this.Ps())},Ps:function(){if(this.started&&!this.complete&&!this.paused){var t=0;if(this.items.length){var i,s;for(t=this.loadedCount,i=0,s=this.loadingItems.length;i<s;++i)t+=this.loadingItems[i].progress;t/=this.items.length}else t=1;t===this.Is&&0!==t||this.options.holdCompletion&&this.loadedCount===this.items.length||(this.Is=t,this.options.onProgress&&this.options.onProgress.call(this,t)),this.options.holdCompletion||this.loadedCount!==this.items.length||(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.complete=!0,this.options.onComplete&&this.options.onComplete.call(this))}},Rs:function(t){var i=this.items[t];i&&(i.maxTime=this.options.maxItemTime,this.loadingItems.push(i),this.options.onItemStart&&this.options.onItemStart.call(this,i),te(i))}});ns(ps,{touch:"ontouchend"in os,pointer:!!window.PointerEvent,msPointer:!!window.MSPointerEvent});var se,ee="mousedown",ne="mouseup",re="mousemove",ae={NONE:0,LEFT:1,RIGHT:2,UP:4,DOWN:8,HORIZONTAL:3,VERTICAL:12,ALL:15};function he(t,i){return zi(t)>=zi(i)?t<0?ae.LEFT:ae.RIGHT:i<0?ae.UP:ae.DOWN}function oe(t){var i=window.pageXOffset,s=window.pageYOffset,e=t.clientX,n=t.clientY;return 0===t.pageY&&is(n)>is(t.pageY)||0===t.pageX&&is(e)>is(t.pageX)?(e-=i,n-=s):(n<t.pageY-s||e<t.pageX-i)&&(e=t.pageX-i,n=t.pageY-s),{x:e,y:n}}function ue(i,s,e,n){var r=t.Event(s,e);if(t(i).triggerHandler(r),void 0===n||n)for(;!r.isPropagationStopped()&&i;)(i=i.parent)&&t(i).triggerHandler(r)}ps.pointer?(ee="pointerdown",ne="pointerup",re="pointermove",se="pointercancel"):ps.touch?(ee="touchstart",ne="touchend",re="touchmove",se="touchcancel"):ps.msPointer&&(ee="MSPointerDown",ne="MSPointerUp",re="MSPointerMove",se="MSPointerCancel"),ns(t.event.special,{"ap-keypress":{setup:function(){var i=this,s=this.Ms(),e=".apKeypress"+this.Ns;t(s).on("keydown"+e+" keyup"+e,function(t){var s=i.prez&&i.prez(),e=i.As(t)&&s&&!s.eventBubbling("ap-keypress");if(i.Ds(t),le.hasKeydown(t.which)==("keydown"==t.type)){var n=le.combinedCode(t),r=!0;i.Ys?r=i.Ys(n):s&&(r=s.Ys(n)),r&&le.preventDefault(t),!e&&i.Xs(!1,!0)&&le.fire(i,t)}})},teardown:function(){t(this.Ms()).off(".apKeypress"+this.Ns)}},"ap-click":{setup:function(){var i=this,s=this.Ms();this.Ls=function(s){var e=t(this).data(),n=i.prez&&i.prez(),r=i.As(s)&&n&&!n.eventBubbling("ap-click");i.filterEvent(s)||isNaN(e.apSglClickX)||isNaN(e.apSglClickY)||zi(s.pageX-e.apSglClickX)>ye.ClickMaxDistance||zi(s.pageY-e.apSglClickY)>ye.ClickMaxDistance?i.Fs.call(this,s):(i.Ds(s),i.Fs.call(this,s),(!r||i.Hs&&i.Hs("ap-click"))&&de.fire("ap-click",i,s,!1))},this.Fs=function(e){t(s).off("mouseup",i.Ls).removeData("apSglClickX apSglClickY"),t(os).off("mouseup",i.Fs)},t(s).on("mousedown.apSglClick"+this.Ns,function(s){if(!i.filterEvent(s)){var e=t(this).data();e.apSglClickX=s.pageX,e.apSglClickY=s.pageY,i.Ds(s),t(this).off("mouseup",i.Ls).on("mouseup",i.Ls),t(os).off("mouseup",i.Fs).on("mouseup",i.Fs)}})},teardown:function(){var i=this.Ms();t(i).off(".apSglClick"+this.Ns).removeData("apSglClickX apSglClickY"),this.Ls&&(t(i).off("mouseup",this.Ls),delete this.Ls),this.Fs&&(t(os).off("mouseup",this.Fs),delete this.Fs)}},"ap-dblclick":{setup:function(){var i=this,s=this.Ms();this.Us=function(e){var n=t(this).data(),r=i.prez&&i.prez(),a=i.As(e)&&r&&!r.eventBubbling("ap-click");if(i.filterEvent(e)||isNaN(n.apDblClickX)||isNaN(n.apDblClickY)||zi(e.pageX-n.apDblClickX)>ye.ClickMaxDistance||zi(e.pageY-n.apDblClickY)>ye.ClickMaxDistance)i.Bs.call(this,e);else if(i.Ds(e),a)i.Bs.call(this,e);else if(t(this).off("mouseup",i.Us).removeData("apDblClickX apDblClickY"),t(os).off("mouseup",i.Bs),n.apDblClickTrue)t(this).removeData("apDblClickTrue"),de.fire("ap-dblclick",i,e,!0);else{var h=hs()-(n.apDblClickStart||0);h>ye.DoubleClickMaxTime?(n.apDblClickTimer?(clearTimeout(n.apDblClickTimer),t(this).removeData("apDblClickStart apDblClickTimer"),de.fire("ap-dblclick",i,e,!1)):t(this).removeData("apDblClickStart apDblClickTimer"),de.fire("ap-dblclick",i,e,!1)):n.apDblClickTimer=setTimeout(function(){t(s).removeData("apDblClickStart apDblClickTimer"),de.fire("ap-dblclick",i,e,!1)},ye.DoubleClickMaxTime-h)}},this.Bs=function(e){t(s).off("mouseup",i.Us).removeData("apDblClickX apDblClickY apDblClickStart apDblClickTrue"),t(os).off("mouseup",i.Bs)},t(s).on("mousedown.apDblClick"+this.Ns,function(s){if(!i.filterEvent(s)){var e=t(this).data(),n=hs();e.apDblClickX=s.pageX,e.apDblClickY=s.pageY,isNaN(e.apDblClickStart)?e.apDblClickStart=n:(e.apDblClickTrue=n-e.apDblClickStart<=ye.DoubleClickMaxTime,e.apDblClickTrue?(e.apDblClickTimer&&clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickStart apDblClickTimer")):(e.apDblClickTimer&&(clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickTimer"),de.fire("ap-dblclick",i,s,!1)),e.apDblClickStart=n)),i.Ds(s),t(this).off("mouseup",i.Us).on("mouseup",i.Us),t(os).off("mouseup",i.Bs).on("mouseup",i.Bs)}})},teardown:function(){var i=this.Ms();t(i).off(".apDblClick"+this.Ns).removeData("apDblClickX apDblClickY apDblClickStart apDblClickTimer apDblClickTrue"),this.Us&&(t(i).off("mouseup",this.Us),delete this.Us),this.Bs&&(t(os).off("mouseup",this.Bs),delete this.Bs)}},"ap-rollover":{setup:function(){if(!ye.browser.mobile){var i=this,s=this.Ms();t(s).on("mouseover.apRollover"+this.Ns,function(s){if(!i.filterEvent(s)&&i.Xs(!1,!0)){var e=i.prez&&i.prez(),n=i.As(s)&&e&&!e.eventBubbling("ap-rollover");i.Ds(s),n||t(i).triggerHandler(t.Event("ap-rollover",{originalEvent:s.originalEvent||s}))}})}},teardown:function(){t(this.Ms()).off(".apRollover"+this.Ns)}},"ap-rollout":{setup:function(){if(!ye.browser.mobile){var i=this,s=this.Ms();t(s).on("mouseout.apRollout"+this.Ns,function(s){if(!i.filterEvent(s)&&i.Xs(!1,!0)){var e=i.prez&&i.prez(),n=i.As(s)&&e&&!e.eventBubbling("ap-rollout");i.Ds(s),n||t(i).triggerHandler(t.Event("ap-rollout",{originalEvent:s.originalEvent||s}))}})}},teardown:function(){t(this.Ms()).off(".apRollout"+this.Ns)}},"ap-swipe":{processing:!1,setup:function(){var i=this,s=this.Ms(),e=".apSwipe"+this.Ns;t(s).on("dragstart"+e,function(t){return!1}).on(ee+e,function(s){var n=s.originalEvent;if(!(i.filterEvent(s)||t.event.special["ap-swipe"].processing||n.touches&&n.touches.length>1)){t.event.special["ap-swipe"].processing=!0;var r,a={time:hs(),pos:n.targetTouches?oe(n.targetTouches[0]):{x:n.clientX,y:n.clientY}},h={time:a.time,pos:a.pos},o=t(this).data("apSwipeDir")||ae.ALL,u=function(t){n=t.originalEvent,h={time:hs(),pos:n.targetTouches?oe(n.targetTouches[0]):{x:n.clientX,y:n.clientY}},(r=he(h.pos.x-a.pos.x,h.pos.y-a.pos.y))&o&&t.preventDefault()},c=function(s){f.call(this,s),n=s.originalEvent,h.time=hs();var e=h.pos.x-a.pos.x,o=h.pos.y-a.pos.y;((r=he(e,o))&ae.HORIZONTAL&&zi(e)>ye.SwipeMinDistance&&zi(o)<ye.SwipeMaxDeflection||r&ae.VERTICAL&&zi(o)>ye.SwipeMinDistance&&zi(e)<ye.SwipeMaxDeflection)&&Gi(e*e+o*o)/(h.time-a.time)>ye.SwipeMinVelocity&&i.Xs(!1,!0)&&(t(i).triggerHandler(t.Event("ap-swipe",{value:{direction:r,start:a,stop:h},originalEvent:n})),t(i).triggerHandler(t.Event(function(t,i){switch(i=i||"",t){case ae.LEFT:return i+"left";case ae.RIGHT:return i+"right";case ae.UP:return i+"up";case ae.DOWN:return i+"down"}}(r,"ap-swipe"),{value:{direction:r,start:a,stop:h},originalEvent:n})))},f=function(i){t.event.special["ap-swipe"].processing=!1,t(os).off(re+e,u).off(ne+e,c),se&&t(os).off(se+e,f)};t(os).on(re+e,u).on(ne+e,c),se&&t(os).on(se+e,f)}}).css("touchAction","none")},teardown:function(){t(this.Ms()).off(".apSwipe"+this.Ns).css("touchAction","")}},"ap-swipeleft":{setup:function(){var i=this.Ms(),s=t(i).data();s.apSwipeDir=(s.apSwipeDir||0)|ae.LEFT,this.on("ap-swipe",es)},teardown:function(){var i=this.Ms(),s=t(i).data();s.apSwipeDir&&(s.apSwipeDir&=~ae.LEFT),0===s.apSwipeDir&&t(i).removeData("apSwipeDir"),this.off("ap-swipe",es)}},"ap-swiperight":{setup:function(){var i=this.Ms(),s=t(i).data();s.apSwipeDir=(s.apSwipeDir||0)|ae.RIGHT,this.on("ap-swipe",es)},teardown:function(){var i=this.Ms(),s=t(i).data();s.apSwipeDir&&(s.apSwipeDir&=~ae.RIGHT),0===s.apSwipeDir&&t(i).removeData("apSwipeDir"),this.off("ap-swipe",es)}},"ap-swipeup":{setup:function(){var i=this.Ms(),s=t(i).data();s.apSwipeDir=(s.apSwipeDir||0)|ae.UP,this.on("ap-swipe",es)},teardown:function(){var i=this.Ms(),s=t(i).data();s.apSwipeDir&&(s.apSwipeDir&=~ae.UP),0===s.apSwipeDir&&t(i).removeData("apSwipeDir"),this.off("ap-swipe",es)}},"ap-swipedown":{setup:function(){var i=this.Ms(),s=t(i).data();s.apSwipeDir=(s.apSwipeDir||0)|ae.DOWN,this.on("ap-swipe",es)},teardown:function(){var i=this.Ms(),s=t(i).data();s.apSwipeDir&&(s.apSwipeDir&=~ae.DOWN),0===s.apSwipeDir&&t(i).removeData("apSwipeDir"),this.off("ap-swipe",es)}}});var ce={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",19:"Pause/Break",20:"Caps Lock",27:"Esc",32:"Space",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left Arrow",38:"Up Arrow",39:"Right Arrow",40:"Down Arrow",44:"Print Screen",45:"Insert",46:"Delete",91:"Left Windows",92:"Right Windows",93:"Windows Menu",106:"Numpad *",107:"Numpad +",108:"Separator",173:"-",110:"Numpad .",111:"Numpad /",144:"Num Lock",145:"Scroll Lock",59:";",61:"=",188:",",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},fe={combinedCode:function(t,i,s,e,n){var r=0;return i&&(r|=le.MOD_CTRL),s&&(r|=le.MOD_SHIFT),e&&(r|=le.MOD_ALT),n&&(r|=le.MODE_META),r<<24|t},code:function(t){return 16777215&t},modifiers:function(t){return t>>24},modName:function(t){var i="";return t&le.MOD_CTRL&&(i+="+Ctrl"),t&le.MOD_SHIFT&&(i+="+Shift"),t&le.MOD_ALT&&(i+="+Alt"),t&le.MODE_META&&(i+=ye.browser.macOS?"+⌘":"+Win"),i.substr(1)},isMouse:function(t){var i=fe.code(t);return i>0&&i<=de.MAX_CODE},name:function(t,i){return fe.isMouse(t)?de.name(t,i):le.name(t,i)}},le={MOD_ALT:1,MOD_CTRL:2,MOD_SHIFT:4,MODE_META:8,SHIFT:16,CTRL:17,ALT:18,F1:112,F12:123,F4:115,F5:116,PRTSCR:44,CANCEL:3,PAUSE:19,TAB:9,BACKSPACE:8,NUMBER0:48,NUMBER9:57,A:65,Z:90,W:87,NUMPAD0:96,NUMPAD9:105,ENTER:13,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT_TAB:4<<24|9,combinedCode:function(t){var i=t.which,s=t.ctrlKey,e=t.shiftKey,n=t.altKey,r=t.metaKey;switch(i){case le.CTRL:s=!0,i=0;break;case le.SHIFT:e=!0,i=0;break;case le.ALT:n=!0,i=0;break;case 224:case 93:if(!ye.browser.macOS)break;case 92:case 91:r=!0,i=0;break;case le.CANCEL:i=le.PAUSE;break;case 186:i=59;break;case 171:case 187:i=61;break;case 189:i=173}if(!s&&!n){var a=t.originalEvent||t;a&&a.getModifierState&&a.getModifierState("AltGraph")&&(s=n=!0)}return fe.combinedCode(i,s,e,n,r)},name:function(t){var i=fe.modName(fe.modifiers(t)),s=fe.code(t),e="";return le.NUMBER0<=s&&s<=le.NUMBER9||le.A<=s&&s<=le.Z?e=String.fromCharCode(s):le.NUMPAD0<=s&&s<=le.NUMPAD9?e="Numpad "+(s-le.NUMPAD0):le.F1<=s&&s<=le.F12?e="F"+(s-le.F1+1):s&&(e=ce[s]||""+s),i&&(e=e?i+"+"+e:i),e},hasKeydown:function(t){return t!==this.PRTSCR},shouldPreventDefault:function(t,i,s){if(s&&!i)return t!=le.TAB&&t!=le.SHIFT_TAB;var e=fe.modifiers(t),n=fe.code(t);return n==le.F5||n==le.F4||n==le.BACKSPACE&&!i||e&le.MOD_CTRL&&n==le.W||e&le.MOD_ALT&&(n==le.HOME||n==le.LEFT||n==le.RIGHT)},shouldIgnoreIncorrect:function(t){return 0==fe.code(t)||t==le.TAB||t==le.SHIFT_TAB},preventDefault:function(t){t.preventDefault();try{t.originalEvent?t.originalEvent.keyCode=0:t.keyCode=0}catch(t){}},fire:function(i,s){t(i).triggerHandler(t.Event("ap-keypress",{value:le.combinedCode(s),originalEvent:s.originalEvent||s}))}},de={LEFT:1,MIDDLE:2,RIGHT:3,DBLEFT:4,OUTSIDE:5,MAX_CODE:5,fromTouch:!1,combinedCode:function(t,i){var s=t.which;return i&&(s=de.DBLEFT),fe.combinedCode(s,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)},name:function(t,i){var s=fe.modName(fe.modifiers(t)),e=fe.code(t),n="";switch(i=i||Ce,e){case de.LEFT:n=i.text("LeftClick");break;case de.MIDDLE:n=i.text("MiddleClick");break;case de.RIGHT:n=i.text("RightClick");break;case de.DBLEFT:n=i.text("LeftDClick");break;case de.OUTSIDE:n=i.text("ClickOutside");break;default:n=""+e}return s&&(n=n?s+"+"+n:s),n},fire:function(i,s,e,n){s.Xs(!1,!0)&&t(s).triggerHandler(t.Event(i,{value:de.combinedCode(e,n),originalEvent:e.originalEvent||e}))}};if("mousedown"!==ee){var pe=function(t){"mouse"!==t.pointerType&&4!==t.pointerType&&(de.fromTouch=!0),os.removeEventListener(ee,pe,!0)};os.addEventListener(ee,pe,!0)}function ve(t,i,s,e){return typeof s==Hi?t.object(t.variable(s)):(n=e==Mi.Ts?t.topSlide:e==Mi.ks?t.bottomSlide:i)&&n.object(s);var n}function me(t,i,s){return typeof s==Hi&&(s=t.variable(s)),i&&i.timeline(s)}function ge(t,s,e,n){if(function(t,i,s){var e,n,r,a,h,o,u=!1;if(!t||!t.length)return!0;var c=s.currentTarget,f=c&&c.slide;for(e=0,n=t.length;e<n;++e){var l=(r=t[e])[3];if(r[0]||0===e){if(u)break;u=!0}if(u){switch(a=l[1],h=l[0],o=!1,r[1]){case St.Rt:a=i.vars.get(a),l[2]?h=i.vars.get(h):i.vars.Zs(l[1])==ki.NUMBER&&(h=Number(h));break;case St.Mt:(a=ve(i,f,a,l[2]))?h==Di?(h=l[3],a=a.zs.name()):a=a.zs.id():(ms("Object not found: "+l[1]),a=h=0);break;case St.Nt:c&&c.attempts?(a=c.attempts(),h===Yi&&(h=c.maxAttempts())<0&&(h=1/0)):a=0;break;case St.R:a=s.value&&s.value.id&&s.value.id();break;case St.Dt:(a=ve(i,f,a,l[2]))?a=a.checked():(ms("Object not found: "+l[1]),a=h=0);break;case St.X:case St.K:(a=ve(i,f,a,l[2]))?a=a.value():(ms("Object not found: "+l[1]),a=h=0);break;case St.Yt:o=h;break;case St.ht:a=typeof h===Hi?le.name(s.value):s.value;break;default:a=s.value}switch(r[2]){case Ot.Xt:o=a<h;break;case Ot.Lt:o=a>h;break;case Ot.Ft:o=i.vars.Zs(l[1])==ki.NUMBER?bs(a,h):a==h;break;case Ot.Ht:o=a.toLowerCase&&h.toLowerCase&&a.toLowerCase()===h.toLowerCase();break;case Ot.Ut:o=i.vars.Zs(l[1])==ki.NUMBER?!bs(a,h):a!=h;break;case Ot.Bt:o=a.toLowerCase&&h.toLowerCase&&a.toLowerCase()!==h.toLowerCase();break;case Ot.Zt:o=a<=h;break;case Ot.zt:o=a>=h;break;case Ot.Gt:var d=h[0]<h[1]?h[0]:h[1],p=h[0]<h[1]?h[1]:h[0];o=a>=d&&a<=p}u=u&&o}}return u}(t[2],s,e)){var r=t[0],a=t[1],h=e.currentTarget,o=h&&h.slide;switch(r){case Yt.qt:s.pause(!0);break;case Yt.Jt:var u=!1;h&&h.Gs&&(u=h.Vs,h.Gs(!1)),u||s.pause(!1);break;case Yt.ii:s.end();break;case Yt.Xi:s.restart();break;case Yt.si:s.showSlideById(a);break;case Yt.ei:typeof(c=a)===Hi&&(c=s.variable(c)-1),s.showSlide(c);break;case Yt.ni:typeof(c=a)===Hi&&(c=s.variable(c)),s.showSlide(s.slideIndex+c);break;case Yt.ri:var c;typeof(c=a)===Hi&&(c=s.variable(c)),(c=s.slideIndex-c)>=0&&s.showSlide(c,{autoDirection:!0});break;case Yt.oi:s.historyBack();break;case Yt.ci:try{var f=a;typeof f!==Hi&&(f=s.variable(f[1])),(l=window.open("mailto:"+encodeURIComponent(f),"_blank"))&&(l.focus(),setTimeout(function(){!l||l.document.hasFocus&&l.document.hasFocus()||l.close()},1e3))}catch(t){ms(t)}break;case Yt.fi:try{var l,d=a[0],p=a[1];typeof d!==Hi&&(d=s.variable(a[1]),p=a[2]),(l=window.open(d,p))?l.focus():ms('Cannot open webpage "'+d+'" in window "'+p+'"')}catch(t){ms(t)}break;case Yt.li:var v=s.Ws(a);try{v&&v.call(h,e,s)}catch(t){ms(t)}break;case Yt.Ui:case Yt.Hi:var m=!0;case Yt.pi:case Yt._i:case Yt.vi:case Yt.Ci:case Yt.yi:case Yt.Oi:var g,b,w,_;if(C=-2===a[0]?h&&h.dropHelper?e.value:h:ve(s,o,a[0],a[1])){if(m){var y=C.visible();a=y?a[3]:a[2]}var T,k=C.$s(function(t){return!0===t.effectAction});for(_=0;_<k.length;++_)(T=k[_]).actionData===a?(g=T,T.remove()):C.Ks(T),T.started()&&T.totalTime()<T.totalDuration()&&T.pause(T.totalDuration());if(m&&y!=C.visible()&&(y?C.show():C.hide()),!g){for((g=new Ur).actionData=a,g.effectAction=!0,C.js(g),_=m?0:2;_<a.length;++_)(w=a[_])&&(b=ye.createEffect(C,w[0],w[1],w[2],w[3]))&&g.addChild(b);g.addChild(new Yr(function(){setTimeout(function(){C.Ks(g)},0),(r===Yt.pi||r===Yt.Ci||r===Yt.Oi||r===Yt.Ui)&&n&&n()},{startTime:g.duration(),duration:0}))}if(g.startTime(s.timeline.totalTime()),s.timeline.addChild(g),g.setup(),g.play(0),r===Yt.pi||r===Yt.Ci||r===Yt.Oi||r===Yt.Ui)return}break;case Yt.gi:if(s.ended)break;if(typeof a[0]!==Hi&&(!a[0]||a[0]<=0))s.submit();else(C=ve(s,o,a[0],a[1]))&&C.Xs(!0,!0)&&C.submit();break;case Yt.bi:if(s.ended)break;if(typeof a[0]!==Hi&&(!a[0]||a[0]<=0))s.clear(!0);else(C=ve(s,o,a[0],a[1]))&&C.Xs(!0,!0)&&C.clear(!0);break;case Yt.Si:case Yt.wi:var x=a[1]<Fi&&r==Yt.wi;if(s.Qs(a[0],a[1],a,x,r==Yt.Si?n:null),r==Yt.Si)return;break;case Yt.Mt:var C=ve(s,o,a[0],a[1]),S=a[2];S==Di&&(S=a[3]),C&&C.state(S);break;case Yt.Ei:return void s.startTimeline(me(s,o,a),n);case Yt.Ti:s.startTimeline(me(s,o,a));break;case Yt.ki:s.pauseTimeline(me(s,o,a),!0);break;case Yt.xi:s.pauseTimeline(me(s,o,a),!1);break;case Yt.Li:s.clickSequenceBack(o);break;case Yt.Fi:s.clickSequenceForward(o);break;case Yt.Rt:var O=a[1],E=a[2];a[3]?E=s.vars.get(E):s.vars.Zs(O)==ki.NUMBER&&(E=Number(E));var I=!0;switch(a[0]){case Et.Vt:s.vars.set(O,s.vars.get(O)+E);break;case Et.Wt:s.vars.set(O,s.vars.get(O)-E);break;case Et.$t:s.vars.set(O,s.vars.get(O)*E);break;case Et.Kt:s.vars.set(O,s.vars.get(O)/E);break;case Et.jt:s.vars.set(O,E);break;case Et.Dt:s.vars.set(O,!s.vars.get(O));break;case Et.Qt:var P=a[4];void 0===P&&(P="");var R=s.vars.get(O)||"";R?R+=P+E:R=E,s.vars.set(O,R);break;default:I=!1}I&&s.vars.qs(O)&&(s.Js.vars[O]=s.variable(O),s.te(!0));break;case Yt.Ii:if(typeof(M=a[0])!==Hi?(M=s.variable(a[1]),s.showFeedbackByName(M,a[2],a[3]?n:null)):s.showFeedbackById(M,a[1],a[2]?n:null),a[2])return;break;case Yt.Pi:var M;typeof(M=a)!==Hi?(M=s.variable(a[1]),s.hideFeedbackByName(M)):s.hideFeedbackById(M);break;case Yt.Ri:s.reviewCourse();break;case Yt.Ni:var N={showCorrect:a[2],showIncorrect:a[3],showValues:a[4],showResult:a[5]};if(typeof a[0]!==Hi&&(!a[0]||a[0]<=0))s.slide&&s.slide.se(N),s.bottomSlide&&s.bottomSlide.se(N),s.topSlide&&s.topSlide.se(N);else(C=ve(s,o,a[0],a[1]))&&C.se&&C.se(N);break;case Yt.Ai:case Yt.Di:case Yt.Yi:if(s.ended)break;(C=ve(s,o,a[0],a[1]))&&C.enabled()&&C.ee.k==i.H&&(r==Yt.Ai?C.startTimer():r==Yt.Di?C.pauseTimer():r==Yt.Yi&&C.stopTimer());break;case Yt.Mi:var A=-1,D=a,Y=D?D.length:0,X=function(){++A<Y&&ge(D[A],s,e,A===Y-1?n:X)};if(Y>0)return void X()}n&&n()}else n&&n()}var be=0;function we(){return++be}function _e(t,i){t=(""+t).split("."),i=(""+i).split(".");var s,e,n,r=Wi(t.length,i.length);for(s=0;s<r;++s)if((e=parseInt(t[s]))!==(n=parseInt(i[s])))return e-n;return 0}var ye={version:function(){return"9.1.3"},minPrezVersion:"9.0.0",presentations:[],loadedPrezs:[],unsupportedBrowser:!1,youtubeAPIState:ii,mathJaxAPIState:ii,model3DLibState:ii,messages:{},defaultLang:null,compatible:function(t){return _e(this.version(),t.mpv)>=0&&_e(t.v,this.minPrezVersion)>=0},open:function(i,s,e){return e=e||{},this.unsupportedBrowser?(t(function(){}),null):new Ue(i,s,e)},close:function(t){t&&t.destroy()},find:function(t){var i,s,e,n,r=this.presentations;if(typeof t===Hi&&(n=t,t=os.getElementById(n)),!n&&!t)return null;for(i=0,s=r.length;i<s;++i)if(e=r[i],n&&e.containerId===n||t&&e.container===t)return e;return null},addTranslation:function(t,i,s){this.messages[i]=t,(s||null===this.defaultLang)&&(this.defaultLang=i)},tick:function(t){var i,s,e=this.presentations;for(i=0,s=e.length;i<s;++i)e[i].tick(t)},loadYouTubeIframeAPI:function(){if(this.youtubeAPIState==ii){this.youtubeAPIState=si;var t,i=os.createElement("script"),s=this;i.src="https://www.youtube.com/iframe_api",(t=os.getElementsByTagName("script")[0]).parentNode.insertBefore(i,t),setTimeout(function(){var t,i;if(s.youtubeAPIState==si)for(s.youtubeAPIState=ni,t=0,i=s.presentations.length;t<i;++t)s.presentations[t].ne()},3e4)}},onYouTubeIframeAPIReady:function(){var t,i;if(this.youtubeAPIState==si)for(this.youtubeAPIState=ei,t=0,i=this.presentations.length;t<i;++t)this.presentations[t].ne()},loadMathJaxAPI:function(t){if(this.mathJaxAPIState==ii){this.mathJaxAPIState=si;var i,s=os.getElementsByTagName("head")[0];(i=os.createElement("script")).type="text/x-mathjax-config",i[window.opera?"innerHTML":"text"]='MathJax.Hub.Config({ showProcessingMessages: false, showMathMenu: false, showMathMenuMSIE: true, skipStartupTypeset: true, messageStyle: "none" });MathJax.Hub.Register.StartupHook("End", function () { AtomiAP.onMathJaxAPIReady(); });',s.appendChild(i),window.apMathJaxFontDir=t.length>0&&"/"==t.charAt(t.length-1)?t.substring(0,t.length-1):t,(i=os.createElement("script")).type="text/javascript",i.src=t+"MathJax.js",s.appendChild(i)}},onMathJaxAPIReady:function(){var t,i;if(this.mathJaxAPIState==si)for(this.mathJaxAPIState=ei,t=0,i=this.presentations.length;t<i;++t)this.presentations[t].ne()},load3DModelLib:function(t){if(!ye.browser.ie&&this.model3DLibState==ii){this.model3DLibState=si;var i,s=os.getElementsByTagName("head")[0];(i=os.createElement("script")).type="text/javascript",i.src=t+"three.js",i.onload=function(e){(i=os.createElement("script")).type="text/javascript",i.src=t+"GLTFLoader.js",i.onload=function(e){(i=os.createElement("script")).type="text/javascript",i.src=t+"OrbitControls.js",i.onload=function(t){AtomiAP.on3DModelLibReady()},s.appendChild(i)},s.appendChild(i)},s.appendChild(i)}},on3DModelLibReady:function(){var t,i;if(this.model3DLibState==si)for(this.model3DLibState=ei,t=0,i=this.presentations.length;t<i;++t)this.presentations[t].ne()},pageVisible:function(){return!Bs||!os[Bs]},onPageVisibilityChanged:function(){var t,i,s,e;if(this.pageVisible()){if(t=this.re){for(s=0,e=t.length;s<e;++s)(i=t[s]).allPaused()&&i.pauseAll(!1);t.length=0}}else for(this.re||(this.re=[]),s=0,e=(t=this.presentations).length;s<e;++s)(i=t[s]).allPaused()||(i.pauseAll(!0),this.re.push(i))},ae:function(t){t.allPaused()||(t.pauseAll(!0),this.re||(this.re=[]),this.re.push(t))},fullscreen:Ks};function Te(t){ye.browser.iDevice&&t.addEventListener("touchstart",function(t){t.preventDefault()},!1)}function ke(){try{for(var t=ye.presentations;t.length>0;)ye.close(t[0])}catch(t){window.removeEventListener("unload",ke,!1)}}ye.browser={init:function(){this.initiated||(this.initiated=!0,this.ie=!!os.documentMode,this.edge=!this.ie&&!!window.StyleMedia,this.safari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),this.iDevice=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"==navigator.platform&&navigator.maxTouchPoints>1,this.iPhone=!!navigator.userAgent.match(/iPhone/i),this.android=!!navigator.userAgent.match(/Android/i),this.mobile=this.iDevice||this.android,this.chromiums=!!window.chrome,this.macOS=navigator.platform.indexOf("Mac")>=0,this.useCSSShadow=!this.edge&&!this.ie,this.firefox=navigator.userAgent.indexOf("Firefox")>=0)}},ye.browser.init(),t(window).resize(function(){var t,i;for(t=0,i=ye.presentations.length;t<i;++t)ye.presentations[t].layout()}),window.addEventListener(ye.browser.iDevice?"pagehide":"beforeunload",ke,!1),ye.browser.iDevice||window.addEventListener("unload",ke,!1),t(os).on("keydown keyup",function(t){var i,s;for(i=0,s=ye.presentations.length;i<s;++i)ye.presentations[i].he(t)}),Bs&&t(os).on(Bs.replace(/[H|h]idden/,"")+"visibilitychange",function(){ye.onPageVisibilityChanged()});var xe=js({$init:function(t){this.oe=arguments.length?t:null},text:function(t){var i,s,e,n=ye.messages[this.oe],r=arguments.length;if(e=n&&n[t]||(n=ye.messages[ye.defaultLang])&&n[t]||t,r>1)for(i=1;i<r;++i)s=new RegExp("\\{"+(i-1)+"\\}","g"),e=e.replace(s,arguments[i]);return e},number:function(t){var i,s=null===this.oe?ye.defaultLang:this.oe,e=""+t;return"ar"!==s&&"ar"!==s.substr(0,2)||(i="۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹".split(" "),e=e.replace(/[0-9]/g,function(t){return i[t]})),e}}),Ce=new xe;function Se(t){return("0"+t).slice(-2)}function Oe(t){return("0"+(i=t,i+1)).slice(-2);var i}function Ee(t){return t.toString().slice(-2)}var Ie=/%[^\s%]+%/g,Pe=js({$init:function(t){this.ue=t,this.ce={apVersion:{get:function(t){return t.version()}},apAuthor:{get:function(t){return _s(t.author())}},apHomepage:{get:function(t){return _s(t.homePage())}},apCopyright:{get:function(t){return _s(t.copyright())}},apProjectName:{get:function(t){return _s(t.name())}},apDescription:{get:function(t){return _s(t.description(),!0)}},apPlayMode:{get:function(t){return _s(t.ui.fe.text(t.playMode()))}},apCurrentSlideLabel:{get:function(t){return t.currentSlideLabel()}},apElapsedTime:{get:function(t){return Cs(t.elapsedTime())}},apElapsedTimeMs:{get:function(t){return t.elapsedTime()}},apRemainingTime:{get:function(t){var i=t.remainingTime();return i%1e3>0&&(i+=1e3),Cs(i)}},apRemainingTimeMs:{get:function(t){return t.remainingTime()}},apTotalSlides:{get:function(t){return t.slideCount()}},apTakenSlides:{get:function(t){return t.takenSlideCount()}},apReviewMode:{get:function(t){return t.isReviewingMode()}},apQuizScore:{get:function(t){return t.score()}},apQuizScorePercentage:{get:function(t){return t.percentageScore()}},apQuizMaxScore:{get:function(t){return t.maxScore()}},apQuizPassed:{get:function(t){return _s(t.ui.fe.text(t.result()?"passed":"failed"))}},apQuizPassedBool:{get:function(t){return t.result()}},apQuizTotalInteractions:{get:function(t){return t.interactionCount()}},apQuizTakenInteractions:{get:function(t){return t.takenInteractionCount()}},apQuizUnTakenInteractions:{get:function(t){return t.interactionCount()-t.takenInteractionCount()}},apQuizCorrectInteractions:{get:function(t){return t.takenInteractionCount(Xt.zi)}},apQuizIncorrectInteractions:{get:function(t){return t.takenInteractionCount(Xt.Gi)}},apDetailedResult:{get:function(t){return t.detailedReportData(!1)}},apDetailedResult2:{get:function(t){return t.detailedReportData(!0)}},apCurrentTime:{get:function(t){var i=new Date,s=i.getHours(),e=i.getMinutes(),n=i.getSeconds();return this.nextUpdate=i.setSeconds(n+1,0),s<10&&(s="0"+s),e<10&&(e="0"+e),n<10&&(n="0"+n),s+":"+e+":"+n}},apCurrentDay:{get:function(t){var i=new Date,s=i.getDay()+1;return this.nextUpdate=i.setHours(24,0,0,0),s}},apCurrentHour:{get:function(t){var i=new Date,s=i.getHours();return this.nextUpdate=i.setHours(s+1,0,0,0),(s<10?"0":"")+s}},apCurrentMinutes:{get:function(t){var i=new Date,s=i.getMinutes();return this.nextUpdate=i.setMinutes(s+1,0,0),(s<10?"0":"")+s}},apCurrentMonth:{get:function(t){var i=(new Date).getMonth()+1;return(i<10?"0":"")+i}},apCurrentYear:{get:function(t){return("0000"+(new Date).getFullYear()).slice(-4)}},apCurrentLocaleDate:{get:function(t){return(new Date).toLocaleDateString()}},apProjectLocaleDate:{get:function(t){return(new Date).toLocaleDateString(t.ee.language)}},apDateMMDDYYYY:{get:function(t){var i=new Date;return Oe(i.getMonth())+"/"+Se(i.getDate())+"/"+i.getFullYear()}},apDateMMDDYY:{get:function(t){var i=new Date;return Oe(i.getMonth())+"/"+Se(i.getDate())+"/"+Ee(i.getFullYear())}},apDateDDMMYYYY:{get:function(t){var i=new Date;return Se(i.getDate())+"/"+Oe(i.getMonth())+"/"+i.getFullYear()}},apDateDDMMYY:{get:function(t){var i=new Date;return Se(i.getDate())+"/"+Oe(i.getMonth())+"/"+Ee(i.getFullYear())}},apDateYYYYMMDD:{get:function(t){var i=new Date;return i.getFullYear()+"/"+Oe(i.getMonth())+"/"+Se(i.getDate())}},apDateYYMMDD:{get:function(t){var i=new Date;return Ee(i.getFullYear())+"/"+Oe(i.getMonth())+"/"+Se(i.getDate())}},apCurrentSlideIndex:{get:function(t){return t.currentSlideIndex()},set:function(t,i){return t.currentSlideIndex(i),!0},type:ki.NUMBER},apPause:{get:function(t){return t.paused()},set:function(t,i){if(i=!!i,t.paused()!==i)return t.pause(i),!0}},apResume:{get:function(t){return!t.paused()},set:function(t,i){var s=!i;if(t.paused()!==s)return t.pause(s),!0}},apProgress:{get:function(t){return t.time()},set:function(t,i){t.time(i)},type:ki.NUMBER},apCurrentSlideProgress:{get:function(t){return t.slideTime()},set:function(t,i){t.slideTime(i)},type:ki.NUMBER},apSpeed:{get:function(t){return ts(100*t.speed())},set:function(t,i){t.speed(i/100)},type:ki.NUMBER},apMute:{get:function(t){return t.muted()},set:function(t,i){t.muted(i)}},apVolume:{get:function(t){return ts(100*t.volume())},set:function(t,i){t.volume(i/100)},type:ki.NUMBER},apCCVisible:{get:function(t){return t.closedCaptionVisible()},set:function(t,i){t.showClosedCaption(i)}},apToolbarVisible:{get:function(t){return t.toolbarVisible()},set:function(t,i){t.showToolbar(i)}},apTOCVisible:{get:function(t){return t.tocVisible()},set:function(t,i){t.showToc(i)}},apCmdNextSlide:{set:function(t,i){i&&t.nextSlide()}},apCmdPreviousSlide:{set:function(t,i){i&&t.previousSlide()}},apCmdFirstSlide:{set:function(t,i){i&&t.firstSlide()}},apCmdLastSlide:{set:function(t,i){i&&t.lastSlide()}},apCmdHistoryBack:{set:function(t,i){i&&t.historyBack()}},apCmdHistoryForward:{set:function(t,i){i&&t.historyForward()}},apCmdEnd:{set:function(t,i){i&&t.end()}},apCmdRestart:{set:function(t,i){i&&t.restart()}},apCmdShowAbout:{set:function(t,i){i&&t.showAbout()}},apSidebarVisible:{get:function(t){return t.sidebarVisible()},set:function(t,i){t.showSidebar(i)}},apLastSessionIncomplete:{get:function(t){return t.le()}}},this.pe="apCurrentTime apCurrentDay apCurrentHour apCurrentMinutes".split(" ")},get:function(t){var i=this.ce[t];if(i)return i.get?i.get(this.ue):i.val},set:function(t,i){var s=this.ce[t],e=!1;return s||(s=this.ce[t]={}),!(s.get&&!s.set)&&(s.set?e=s.set(this.ue,i):s.val!==i&&(s.val=i,e=!0),e&&this.ve(s),!0)},remove:function(t){delete this.ce[t];var i=this.pe.indexOf(t);i>=0&&this.pe.splice(i,1)},has:function(t){return!!this.ce[t]},Zs:function(t,i){var s=this.ce[t];if(1==arguments.length)return s?s.type:void 0;2==arguments.length&&(s||(s=this.ce[t]={}),s.type=i)},qs:function(t,i){var s=this.ce[t];if(1==arguments.length)return s?s.userType:void 0;2==arguments.length&&(s||(s=this.ce[t]={}),s.userType=i)},addObserver:function(t,i){var s,e,n;for(s=0,e=t.length;s<e;++s)(n=this.ce[t[s]])&&(n.obs||(n.obs=new qs),n.obs.add(i))},removeObserver:function(t){var i,s,e=this.ce;for(i in e)(s=e[i]).obs&&s.obs.remove(t,!0)},removeObserverIf:function(t){var i,s,e=this.ce;for(i in e)(s=e[i]).obs&&s.obs.removeIf(t,!0)},notifyObservers:function(t){var i=this.ce[t];i&&this.ve(i)},ve:function(t){var i,s=t.obs;if(s)for(s.toFront();i=s.next();)i()},replace:function(t){var i=this,s={vars:[]};return s.text=t.replace(Ie,function(t){var e=t.substring(1,t.length-1),n=i.ce[e];return n?(s.vars.indexOf(e)<0&&s.vars.push(e),n.get?n.get(i.ue):n.val):t}),s},tick:function(t){var i,s,e;for(i=0,s=this.pe.length;i<s;++i)(e=this.ce[this.pe[i]])&&t>=(e.nextUpdate||0)&&this.ve(e)}}),Re="apElapsedTime apElapsedTimeMs apRemainingTime apRemainingTimeMs apCurrentSlideProgress apProgress";function Me(t,i){var s,e,n=i.split(" ");for(s=0,e=n.length;s<e;++s)t.notifyObservers(n[s])}var Ne=new(js({$init:function(){var t=os.createElement("audio"),i=os.createElement("video");this.me="m4a",this.be="mp4",this.we=!0,t.canPlayType&&t.canPlayType("audio/aac;").replace(/no/,"")?this.me="m4a":t.canPlayType&&t.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/,"")?this.me="ogg":this.we=!1,i.canPlayType&&i.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,"")?this.be="mp4":i.canPlayType&&i.canPlayType('video/webm; codecs="vp8"').replace(/no/,"")?this.be="webm":this.we=!1,this._e=!1,this.ye=!1;try{t.playbackRate=2,this.ye=2==t.playbackRate}catch(t){}try{t.volume=.51,this._e=.51==t.volume}catch(t){}this.Te=!1;var s=this,e=t.play();void 0!==e&&e.catch(function(t){s.Te=!0,ms("MediaManager:_requireInitMediaElements: "+s.Te)}),ms("MediaManager:_canPlayMedia: "+this.we),ms("MediaManager:_canChangeVolume: "+this._e),ms("MediaManager:_canChangePlaybackRate: "+this.ye),ms("MediaManager:_requireInitMediaElements: "+this.Te)},canChangeVolume:function(){return this._e},canChangePlaybackRate:function(){return this.ye}}));ye.mediaManager=Ne;var Ae=js({$init:function(){this.ke=[],this.xe=[],this.Ce=[],this.Se=1,this.Oe=!1,this.Ee=1,this.Ie=!1,this.Pe=6,this.Re=6,this.Me=!1},Ne:function(t){var i,s,e=t[1]+t[3]+t[5],n=t[0]+t[2]+t[4]+t[9];for(e*=2,n*=2,e+=this.Pe+this.Re,i=0;i<e;++i)s=os.createElement("audio"),this.ke.push(s);for(i=0;i<n;++i)s=os.createElement("video"),this.xe.push(s);this.Ie=t[6]>0},Ae:function(t){this.Ce.push(t)},De:function(t){var i=this.Ce.indexOf(t);i>-1&&this.Ce.splice(i,1)},playbackRate:function(t){if(!arguments.length)return this.Ee;if(Ne.canChangePlaybackRate()){this.Ee=t;var i,s,e=this.Ce;for(i=0,s=e.length;i<s;++i)e[i].playbackRate(t)}else ms("This device does not support changing playback rate")},volume:function(t){if(!arguments.length)return this.Se;if(Ne.canChangeVolume()){this.Se=t;var i,s,e=this.Ce;for(i=0,s=e.length;i<s;++i)e[i].volume(t)}else ms("This device does not support changing volume")},muted:function(t){if(!arguments.length)return this.Oe;this.Oe=t;var i,s,e=this.Ce;for(i=0,s=e.length;i<s;++i)e[i].muted(t)},Ye:function(){var t,i,s=this.Ce,e=this.ke.concat(this.xe);for(t=0,i=e.length;t<i;++t)e[t].muted=!1;for(t=0,i=s.length;t<i;++t)s[t].Ye()},Xe:function(t){var i,s,e=this.Ce;for(i=0,s=e.length;i<s;++i)e[i].Xe(t)}}),De=js({$init:function(t){this.ue=t,this.Le=[],this.Fe=0,this.He=!1},goBackward:function(t){var i=this.Le[this.Fe-1],s=!1;return i&&(this.He=!0,--this.Fe,t?void 0===t.autoDirection&&(t.autoDirection=!0):t={autoDirection:!0},s=this.ue.showSlide(i,t),this.He=!1),s},goForward:function(t){var i=this.Le[this.Fe+1],s=!1;return i&&(this.He=!0,++this.Fe,s=this.ue.showSlide(i,t),this.He=!1),s},add:function(t){t&&!this.He&&t!=this.Le[this.Fe]&&(this.Fe>=0&&this.Fe<this.Le.length-1&&(this.Le.length=this.Fe+1),this.Le.push(t),this.Fe=this.Le.length-1)},clear:function(){this.Le.length=0,this.Fe=0,this.He=!1},empty:function(){return 0==this.Le.length}}),Ye=/^ap-(prez|slide|ctrl)-/,Xe=new ie({onItemComplete:function(t){t.id&&t.id.Ue&&t.id.Ue(t.status)}});function Le(t,i,s){if(t&&(t.b&&(t.b.im?s.push(i.getResource(t.b.im[0],t.b.im[1])):t.b.f&&t.b.f[0]===_t._&&s.push(i.getResource(t.b.f[1],t.b.f[2]))),t.cc))for(var e=0,n=t.cc.length;e<n;++e){var r=t.cc[e];r&&Fe(r,t,i,s)}}function Fe(t,s,e,n){if(t.s)for(var r=0,a=t.s.length;r<a;++r){var h=t.s[r];h.im?n.push(e.getResource(h.im[0],h.im[1])):h.f&&h.f[0]===_t._&&n.push(e.getResource(h.f[1],h.f[2]))}if(t.k==i.C&&void 0!==t.mi&&n.push(e.getImgResource(s.i+"."+t.i+(t.g?".png":".jpg"))),t.cc)for(r=0,a=t.cc.length;r<a;++r){var o=t.cc[r];o&&Fe(o,s,e,n)}}function He(t,i,s,e,n,r){r=r||n,t.addChild(new Xr(i,"mediaDuration",{startTime:e,duration:0,tweenParams:[0,r]})).addChild(new Xr(i,"mediaSrc",{startTime:e,duration:0,tweenParams:[-1,s]})).addChild(new Xr(i,"mediaState",{startTime:e,duration:0,tweenParams:["stopped","playing"]})).addChild(new Lr(i,"mediaSeek",{startTime:e,duration:r,tweenParams:[0,1]})).addChild(new Xr(i,"mediaState",{startTime:e+n,duration:0,tweenParams:["playing","stopped"]}))}var Ue=js({$init:function(i,s,e){var n;this.Ns=we(),this.Js={slides:[],fbs:[],randomMap:{},index:0,ts:0,elapsedTime:0,vars:{}},this.Be=new De(this),this.vars=new Pe(this),this.timeline=null,this.transition=null,this.Ze=null,this.started=!1,this.ended=!1,this.ze=!1,this.Ge=[],this.Ve=0,this.We=0,this.$e=[],this.Ke=-1,this.je=[],this.Qe=!1,this.qe=ii,this.Je={},this.contentState="loading",this.destroyed=!1,this.tn=!0,this.sn=0,this.en=new Ae,i&&typeof i===Hi?(this.ee=null,this.nn=i):this.ee=i||null,typeof s===Hi?(n=s,s=os.getElementById(s)):s&&(n=s.id),this.containerId=n,this.container=s,e=e||{},this.options=e;var r=location.search;if(r){var a,h,o,u=r.substring(1).toLowerCase().split("&");for(a=0,h=u.length;a<h;++a)switch((o=u[a].split("="))[0]){case"slide":e.slide=parseInt(o[1]);break;case"time":e.time=Ss(decodeURIComponent(o[1]));break;case"slidetime":e.slideTime=Ss(decodeURIComponent(o[1]));break;case"autofit":e[o[0]]="false"!=o[1]}}var c=e.preloader;c&&c.range?c.range=c.range/1e3:c={zIndex:2,color:"#2090e6",diameter:60,density:9,range:1,speed:1},this.ui=new ye.UI(c),this.rn=(n?n.replace(Ye,"")+"-":"")+this.Ns;var f=this;this.an=new ie({maxConnections:8,maxTime:120,onItemComplete:function(t){if(f.Ge.push(t.url),f.Ge.length<=f.We){if(!f.started){var i=f.Ge.length/f.We;f.ui.loadingUi.setText(is(100*i)+"%")}}else f.Ve<10?f.Ve++:(f.Ve=0,f.ne())},onTimeout:function(){},onComplete:function(){f.ze=!0,f.ne()},onStart:function(){f.ui.loadingUi.show()},onProgress:function(){}}),this.slide=this.prevSlide=this.bottomSlide=this.topSlide=null,this.slideIndex=-1,this.layoutIndex=-1,s?this.hn(s):n&&t(function(){(s=os.getElementById(n))&&f.hn(s)})},un:function(t){if(!t)return!0;if(!this.ze){var i=[];Le(t,this,i);for(var s=0,e=i.length;s<e;++s)if(this.Ge.indexOf(i[s])<0)return!1}return!(this.ee.hasEquation&&!t.cn)},ln:function(){return!this.slide||(!(!this.ze||this.ee.hasEquation&&!this.slide.ee.cn)||this.un(this.slide.ee))},dn:function(t){t!=this.Qe&&(this.Qe=t,t?this.pn():this.vn())},ne:function(){if(this.ee.hasEquation){if(ye.mathJaxAPIState==si||ye.mathJaxAPIState==ii)return;if(ye.mathJaxAPIState==ei&&this.qe==ii)return void this.mn()}if((!this.en.Ie||ye.youtubeAPIState!=si&&ye.youtubeAPIState!=ii)&&(!this.ee.has3DModel||ye.browser.ie||ye.model3DLibState!=si&&ye.model3DLibState!=ii))if(this.started)this.Qe&&this.ln()&&this.dn(!1);else if(this.ze||!(this.Ge.indexOf(this.cssUrl())<0)){for(var t=0,i=this.ee.pcs.length;t<i;++t){var s=this.ee.pcs[t];if(!this.un(s))return}var e=isNaN(this.options.slide)?0:this.options.slide-1;if(this.un(this.gn(e))){this.ui.loadingUi.hide();var n=function(){isNaN(this.options.slide)?this.start():this.start(this.options.slide,this.options.slideTime)};if(ye.youtubeAPIState==ni){var r=this;if(this.bn)return void this.ui.showMsg(this.ui.fe.text("YouTubeError"),!0,void 0,function(){n.call(r)});alert(Ce.text("YouTubeError"))}n.call(this)}}},hn:function(t){this.destroyed||(this.container=t,this.ui.appendTo(t),ye.browser.safari&&Ws(this.ui.feedbackSlides()[0].style),this.ui.loadingUi.show(),this.nn?Xe.load({url:this.nn,type:"js",id:this}):this.Ue())},Ue:function(t){if(!this.destroyed){if(this.nn)if(t===Js.LOADED)this.ee=ye.loadedPrezs.shift(),this.ee||(this.contentState="error",this.ui.loadingUi.hide(),alert("Error parsing the presentation. Check the browser console for more information."));else{if(t!==Js.ERROR)return;this.contentState="error",this.ui.loadingUi.hide(),alert(Ce.text("LoadPrezError"))}if(this.ee?ye.compatible(this.ee)||(this.contentState="incompatible",this.ui.loadingUi.hide(),alert(Ce.text("IncompatiblePrez"))):this.ee={},"loading"===this.contentState&&(this.contentState="loaded"),ye.presentations.push(this),void 0!==this.options.time&&void 0===this.options.slide){var i=this.wn(this.options.time);i&&(this.options.slide=i.slideIndex+1,this.options.slideTime=i.slideTime)}if(this.options.onReady&&this.options.onReady.call(this),"loaded"===this.contentState){this.resourceLocation=void 0!==this.options.resourceLocation?this.options.resourceLocation:this.ee.options.resourceLocation||"",this.fileNamePrefix=void 0!==this.options.fileNamePrefix?this.options.fileNamePrefix:this.ee.options.fileNamePrefix||"",this.playerResource=void 0!==this.options.playerResource?this.options.playerResource:this.ee.options.playerResource||"";var s=this.options.playMode,e=this.en,n=this.ee.params;if(void 0!==this.options.autofit&&(n.DisplayMode[0]=n.DisplayMode[1]=n.DisplayMode[2]=n.DisplayMode[3]=this.options.autofit?Ti.AUTOFIT:Ti.ACTUAL_SIZE),this._n=!0,this.ee.mcc?this.yn=this.ee.mcc.i||0:this.yn=0,e.Ne(this.ee.mediaStats),this.ee.ssid&&(this.Tn=this.containerId+"-"+ti[s]+this.ee.ssid),this.lms=this.ee.options.lms?new ye.LMS(this):null,this.lms&&this.lms.initialize(),this.kn(),this.xn=this.Js.elapsedTime||0,this.Js.vars)for(var r in this.Js.vars)this.Js.vars.hasOwnProperty(r)&&this.variable(r,this.Js.vars[r]);this.Cn(),this.ee.hasEquation&&ye.loadMathJaxAPI(this.playerResource),e.Ie&&ye.loadYouTubeIframeAPI(),this.ee.has3DModel&&ye.load3DModelLib(this.playerResource);var a=function(t){var i,s,e,n=[],r=t.cssUrl(),a=t.ee,h=0;for(r&&n.push(r),a.authorImage&&n.push(t.getResource(a.authorImage[0],a.authorImage[1])),a.companyLogo&&n.push(t.getResource(a.companyLogo[0],a.companyLogo[1])),s=0,e=a.slides.length;s<e;++s)if(i=a.slides[s]){if(i.rd){var o=(a.pools||[])[i.lp];if(!o||0==o.length)continue}i.thumb_size||n.push(t.getThumbnailResource(i.thumbId||i.i))}for(s=0,e=a.pcs.length;s<e;++s)(i=a.pcs[s])&&Le(i,t,n);if(a.feedbacks)for(s=0,e=a.feedbacks.length;s<e;++s)(i=a.feedbacks[s])&&Le(i,t,n);for(s=0,e=a.slides.length;s<e;++s)(i=a.slides[s])&&Le(i,t,n),3==s&&(h=n.length);return s<=3&&(h=n.length),{preloadCount:h,allResources:n}}(this);this.We=a.preloadCount,this.an.load(a.allResources),this.ne()}else this.ui.loadingUi.hide()}},kn:function(){if(this.lms)this.lms.loadSuspendData(),this.Sn=this.lms.lastSessionIncomplete();else if(this.Tn)try{var t=JSON.parse(localStorage.getItem(this.Tn));t&&(this.Js=t),this.Sn=!!t}catch(t){ms("Error loading suspend data: "+t)}this.vars.notifyObservers("apLastSessionIncomplete")},te:function(t){if(this.lms)this.lms.storeSuspendData(this.Js,t);else if(this.Tn)try{this.ended?localStorage.removeItem(this.Tn):localStorage.setItem(this.Tn,JSON.stringify(this.Js)),this.On=this.Js.ts}catch(t){ms("Error saving suspend data: "+t)}},En:function(){return this.lms?this.lms.getSuspendDataTS():this.On||0},le:function(){return!!this.Sn},version:function(){return this.ee&&this.ee.v||""},destroy:function(){if(!this.destroyed){if(this.destroyed=!0,this.started&&!this.ended){this.slide&&this.Ze&&(this.Js.ts=this.Ze.time()-this.slide.ee.st),this.Js.elapsedTime=this.elapsedTime();var t=this.vars.ce;for(var i in t)this.vars.qs(i)&&(this.Js.vars[i]=this.vars.get(i));this.te(!0)}this.lms&&this.lms.terminate();var s=ye.presentations,e=s.indexOf(this);if(e>-1&&s.splice(e,1),this.In){for(var n=0;n<this.In.length;++n)this.In[n].cleanup();this.In.length=0}this.pauseAll(),this.Pn(),this.Rn(),this.ui.destroy()}},Mn:function(t){return(t?"ap-slide-":"ap-ctrl-")+this.rn+"-"},layout:function(){this.ui.layout()},setMaxContentWidth:function(t){this.ui.setMaxContentWidth(t),this.ui.layout()},Nn:function(){return this.ui?this.ui.Nn:1},object:function(t){var i,s,e=[];if(this.An)for(s=this.An.length;--s>=0;)e.push(this.An[s]);for(e.push(this.slide,this.bottomSlide,this.topSlide),s=0;s<e.length&&!(i=e[s]&&e[s].object(t));++s);return i||null},Ws:function(t){return this.ee.f[t]},Dn:function(t){var i,s,e=this.ee.slides;if(!arguments.length)return e||[];for(i=0,s=e.length;i<s;++i)if(e[i].i===t)return e[i];return null},Yn:function(t){var i,s,e=this.ee.slides;for(i=0,s=e.length;i<s;++i)if(ys(e[i].n).trim()===t)return e[i];return null},gn:function(t){return this.ee.slides[t]},Xn:function(t){var i,s,e=this.ee.feedbacks;if(!arguments.length)return e||[];for(i=0,s=e.length;i<s;++i)if(e[i].fbi===t)return e[i];return null},Ln:function(t){var i,s,e=this.ee.feedbacks;if(!arguments.length)return e||[];for(i=0,s=e.length;i<s;++i)if(e[i].at===t)return e[i];return null},slideId:function(t){return t>=0&&t<this.ee.slides.length?this.ee.slides[t].i:-1},slideCount:function(){return this.ee.slides.length},showSlideById:function(t){return this.showSlide(this.Dn(t))},showFeedbackById:function(t,i,s){return this.Fn(!0,t,i,s)},showFeedbackByName:function(t,i,s){return this.Fn(!1,t,i,s)},Fn:function(t,i,s,e){var n=t?this.Xn(i):this.Ln(i);if(!n)return!1;var r=this.Hn(t,i);r>=0&&this.Un(r);var a=void 0!==s&&s>=0,h=n.fbi;if(this.An||(this.An=[]),this.fbTransition&&(this.fbTransition.remove(),this.fbTransition.seek(this.fbTransition.totalDuration()),this.fbTransition=null),!this.slide&&this.ui){var o=this.layoutIndex<0?0:this.layoutIndex,u=n.h[o];this.ui.setSlideSize(this.ee.l[o][0],u)}var c=new ir(this,n),f=this;if(this.An.push(c),!a&&this.slide&&this.Js.fbs.push(h),this.Bn(!!c.ee.w),!(n.ts&&n.ts[1]>0)||this.allPaused()&&this.ended||(ye.browser.safari&&Je(c.node.parentNode,Q.HIDDEN),this.fbTransition=ye.createTransition.apply(ye,[this,c,null].concat(n.ts)),this.fbTransition.addChild(new Yr(function(){var t=f.fbTransition;setTimeout(function(){t&&t.remove()},0)},{startTime:this.fbTransition.duration(),duration:0})),this.fbTransition.startTime(),c.Ze.addChild(this.fbTransition),this.fbTransition.setup()),a){var l=new Yr(function(){f.hideFeedbackById(h),e&&e()},{startTime:s});c.js(l),c.Ze.addChild(l)}else c.Zn=e;return c.Ze.startTime(this.timeline.totalTime()),this.timeline.addChild(c.Ze),c.Ze.setup(),c.Ze.play(0),c.zn(),!0},hideFeedbackById:function(t){this.Un(this.Hn(!0,t))},hideFeedbackByName:function(t){this.Un(this.Hn(!1,t))},Un:function(i){if(this.An&&i>=0&&i<this.An.length){var s=this.An[i];if(s&&(t(s).triggerHandler("ap-unload"),s.remove(),s.Zn&&s.Zn(),this.slide)){var e=this.Js.fbs.indexOf(s.ee.fbi);e>=0&&this.Js.fbs.splice(e,1)}this.An.splice(i,1)}},hideAllFeedbacks:function(){if(this.An)for(;this.An.length;)this.Un(this.An.length-1);this.Js.fbs.length=0},Hn:function(t,i){if(this.An)for(var s=t?"fbi":"at",e=0,n=this.An.length;e<n;++e)if(this.An[e].ee[s]===i)return e;return-1},firstSlide:function(t){return this.showSlide(0,t)},lastSlide:function(t){return this.showSlide(this.slideCount()-1,t)},currentSlide:function(){return this.slide},nextSlide:function(t){return this.showSlide(this.slideIndex+1,t)},previousSlide:function(t){var i=this.slideIndex-1;return t?void 0===t.autoDirection&&(t.autoDirection=!0):t={autoDirection:!0},i>=0&&this.showSlide(i,t)},historyBack:function(t){return this.Be.empty()&&this.le()?this.Gn():this.Be.goBackward(t)},historyForward:function(t){return this.Be.goForward(t)},Vn:function(t){if(this.prevSlide){var i=this.prevSlide.background,s=this.slide;s&&s.Wn(),isNaN(t)||t<0||!i?(this.prevSlide.remove(),s&&s.$n()):(this.prevSlide.remove(!0),setTimeout(function(){i.remove(),s&&s.$n()},t)),this.prevSlide=null}},Kn:function(){for(var t={},i=this.Js.slides,s=0,e=Wi(i.length,this.slideCount());s<e;++s)i[s]&&(t[s]=!0);return t},showClosedCaption:function(i){arguments.length||(i=!0),this._n=i,this.jn&&t(this.jn.node).css("visibility",i?"visible":"hidden"),this.vars.notifyObservers("apCCVisible"),t(this.ui).trigger("ap-cc",[i])},closedCaptionVisible:function(){return!!this._n},closedCaptionLanguageIndex:function(i){if(!arguments.length)return this.yn;this.yn=i,this.slide&&this.slide.reloadClosedCaption();var s=-1!=i;this.showClosedCaption(s),t(this.ui).trigger("ap-tool-multiple-language-cc",i)},Qn:function(t){var i,s;t?(i=this.slide,s=this.prevSlide):(i=this.prevSlide,s=this.slide),i&&(i.node.style.zIndex=Qt.Ki,i.background&&(i.background.node.style.zIndex=Qt.$i)),s&&(s.node.style.zIndex=Qt.qi,s.background&&(s.background.node.style.zIndex=Qt.ji))},qn:function(t,i){if(t)for(var s=0,e=t.length;s<e;++s){var n=t[s];n&&(n.mi&&i.push({ctrl:n}),this.qn(n.cc,i))}},Jn:function(t){this.Pn();var s,e,n,r,a=this.gn(t),h=[];if(a&&a.cc){for(this.qn(a.cc,h),e=0,n=h.length;e<n;++e)(r=h[e].ctrl)&&((s=new Yn(this,r.k==i.C,r)).tr("Preload "+r.n),s.ir(!0),s.loadResource(r.mi),h[e].player=s);this.$e=h,this.Ke=t}},Pn:function(){var t,i,s=this.$e;for(t=0,i=s.length;t<i;t++)s[t].player.cleanup();this.$e=[],this.Ke=-1},sr:function(t){var i,s,e,n=this.$e;for(i=0,s=n.length;i<s;++i)if(t.ctrl&&n[i].ctrl==t.ctrl)return e=n[i].player,n.splice(i,1),e.ir(!1),e;return null},showSlideAt:function(t,i){return this.showSlide(t-1,i)},showSlide:function(i,s){this.er&&(this.er(),delete this.er);var e,n,r=typeof i;if("number"===r?i=this.gn(i):"string"===r&&(i=this.Yn(i)),!i)return this.ended||this.slideIndex!==this.slideCount()-1||this.end(),!1;if(this.hideAllFeedbacks(),!this.ended&&this.slide){var a=this.Ze.time()-this.slide.ee.st>=this.slide.ee.d;(this.slideIndex!=i.index&&a&&!this.Ze.tn||this.Js.slides[this.slideIndex])&&t(this.ui).trigger("ap-slideCompleted",[this.slide.ee.i,!0])}e=gs(e=(e="object"==typeof(s=s||{})?s.slideTime:s)||0,0,i.d),void 0!==s.transition?s.transition!=ye.TransitionType.NONE&&(n=[s.transition,s.duration||0,s.direction||0]):e||(n=i.ts),this.transition&&(this.transition.remove(),this.transition.seek(this.transition.totalDuration()),this.transition=null),this.Vn();var h=this.layoutIndex<0?0:this.layoutIndex,o=i.h[h];if(this.slide){var u=this.slide.ee.h[h];u!=o&&this.slide.height(u),this.slide.cleanup()}this.ui.setSlideSize(this.ee.l[h][0],o),this.prevSlide=this.slide,this.slideIndex=i.index,this.nr=void 0==this.nr?this.slideIndex:$i(this.nr,this.slideIndex),this.rr=void 0==this.rr?this.hr(this.slideIndex,e):$i(this.rr,this.hr(this.slideIndex,e)),this.or=!1,this.Ke!=this.slideIndex&&this.Pn(),this.slide=new ir(this,i),this.Pn(),this.ur(),this.Qn(),this.Bn(!!this.slide.ee.w),this.Ze.addChild(this.slide.Ze);var c=this,f=new Yr(function(){void 0!==i.a&&1!=i.a&&!c.demoMode()||c.isReviewingMode()?(c.or=!0,c.pause(!0),c.isReviewingMode()&&c.slideIndex===c.slideCount()-1&&c.pauseAll()):(t(c.ui).trigger("ap-slideCompleted",[c.slide.ee.i,!0]),c.slideIndex===c.slideCount()-1?(c.pause(!0),c.end()):c.nextSlide())},{startTime:this.slide.Ze.startTime()+(i.d||0)});this.slide.js(f),this.Ze.addChild(f);var l=this.ui.slides()[0];l.scrollTop=0,l.scrollLeft=0;var d=this.ui.stage()[0];if(d.scrollTop=0,d.scrollLeft=0,this.prevSlide&&this.prevSlide.background&&(this.prevSlide.background.node.style.overflow="hidden"),!(n&&n[1]>0)||this.allPaused()&&this.ended)void 0!==this.slide.cr||this.slide.ee.isFeedback||this.slide.ee.isBackground||Je(this.slide.node.parentNode,Q.VISIBLE);else{var p;this.slide.cr==Q.AUTO?(this.prevSlide&&this.prevSlide.cr==Q.AUTO&&(this.prevSlide.dr(Q.HIDDEN),this.prevSlide.pr()),(p=this.slide).dr(Q.HIDDEN),p.pr()):this.prevSlide&&this.prevSlide.cr==Q.AUTO?(this.prevSlide.dr(Q.HIDDEN),this.prevSlide.pr()):ye.browser.safari&&Je(this.slide.node.parentNode,Q.HIDDEN);var v=[this,this.slide,this.prevSlide].concat(n);s.autoDirection&&void 0===s.direction&&v.length<7&&(v[6]=!0),this.transition=ye.createTransition.apply(ye,v),this.transition.addChild(new Yr(function(){var t=c.transition;c.Vn(ye.TransitionMinDuration-t.duration()),p&&p.dr(Q.AUTO),setTimeout(function(){c.Qn(),t&&(t.remove(),c.transition===t&&(c.transition=null))},0)},{startTime:this.transition.duration(),duration:0})),this.transition.startTime(this.slide.Ze.startTime()+e),this.Ze.addChild(this.transition),this.transition.setup()}this.ended||(this.slide.savedData(!0),this.Js.index=this.slideIndex,this.Js.ts=e,this.lms&&this.lms.setBookmark(ys(i.n),ys(i.de),this.slideIndex),this.te(!0));var m=this.paused()&&(0!=this.Ze.time()||this.prevSlide);if(this.Ze.time()!==i.st+e){if(this.topSlide||this.bottomSlide)for(var g,b=this.timeline.firstChild;b;)g=b.next,b.slide!==c.topSlide&&b.slide!==c.bottomSlide||b.vr||(b.remove(),b.seek(b.totalDuration())),b=g;this.Ze.seek(i.st+e)}else{var w=0==this.Ze.time();this.Ze.update(this.Ze.time(),w),w||(this.slide.Ze.update(0,!0),this.transition&&this.transition.update(0,!0))}if(m&&this.pause(!1),this.Be.add(i),Me(this.vars,"apTakenSlides apQuizPassed apQuizPassedBool apCurrentSlideIndex apCurrentSlideLabel "+Re),t(this.ui).trigger("ap-progress",[this.slideIndex,this.slideId(this.slideIndex),this.Ze.time()]),this.prevSlide){var _=this.prevSlide;t(_).triggerHandler("ap-unload"),_.off()}if(this.slide.mr.length&&this.container){var y=this.container.getBoundingClientRect(),T=(y.left+y.right)/2,k=(y.top+y.bottom)/2;T>=0&&T<=window.innerWidth&&k>=0&&k<=window.innerHeight&&setTimeout(function(){c.container.focus({preventScroll:!0})},0)}return this.slide.zn(),this.transition||this.Vn(ye.TransitionMinDuration),this.un(i)?this.dn(!1):this.dn(!0),!0},mn:function(){if(ye.mathJaxAPIState==ei&&this.qe==ii){this.qe=si;var t=this,s=function(i){var s,n;if(i.cc)for(s=0,n=i.cc.length;s<n;++s)e.call(null,i,i.cc[s]);MathJax.Hub.Queue(function(){i.cn=!0,t.ne()})},e=function(t,s){var r,a,h;if(s.s)for(r=0,a=s.s.length;r<a;++r)(h=s.s[r]).m&&h.t&&h.t.length>0&&n.call(null,t,s,h);if(s.k==i.V){var o,u,c=s.table.r;for(r=0,a=c.length;r<a;++r)for(var f=0,l=(o=c[r].c||[]).length;f<l;f++)(u=o[f]).m&&u.t&&u.t.length>0&&n.call(null,t,s,u)}if(s.cc)for(r=0,a=s.cc.length;r<a;++r)e.call(null,t,s.cc[r])},n=function(i,s,e){var n=e.t[0],r=n+(e.t[1]||"");if(!t.Je[r]){t.Je[r]=!0;var a=os.createElement("div"),h=a.style;e.t[1]&&(h.cssText=e.t[1]),h.position="absolute",h.top=0,h.left=0,h.visibility="hidden",a.innerHTML=n,os.body.appendChild(a),MathJax.Hub.Queue(["Typeset",MathJax.Hub,a]),MathJax.Hub.Queue(function(){t.Je[r]=a.innerHTML,os.body.removeChild(a)})}MathJax.Hub.Queue(function(){if(e.t[0]=t.Je[r],t.slide&&t.slide.ee==i){var a=t.object(s.n);a&&a.zs.id()==e.i&&(vs.innerHTML=n,a.html()==vs.innerHTML&&a.html(t.Je[r]))}})};if(this.ee.pcs&&(this.ee.pcs[0]&&s.call(null,this.ee.pcs[0]),this.ee.pcs[1]&&s.call(null,this.ee.pcs[1])),this.ee.feedbacks){this.ee.feedbacks.length;for(var r=0;r<this.ee.feedbacks.length;r++)s.call(null,this.ee.feedbacks[r])}var a,h=this.ee.slides;for(r=0,a=h.length;r<a;++r)s.call(null,h[r]);t=this;MathJax.Hub.Queue(function(){t.qe=ei,t.ne()})}},Cn:function(){var i,s,e,n=this.ee.slides||[],r=this.ee.pools||[],a=[];this.gr=a;var h,o=0,u={},c={},f=ti[this.options.playMode];for(s=0;s<n.length;++s){if(void 0===(i=n[s]).m||(i.m&f)===f)if(i.rd)(d=r[i.lp])&&d.length>0&&(c[i.lp]||(c[i.lp]=0),c[i.lp]++)}for(s=0;s<n.length;++s)if(void 0===(i=n[s]).m||(i.m&f)===f){h=i.i;var l=!0;if(i.rd){var d,p=i.lp;if((d=r[p])&&d.length>0)if(this.Js.randomMap&&void 0!==this.Js.randomMap[i.i]){v=i.i;this.ee.slides[s]=i=t.extend(!0,{},d[this.Js.randomMap[i.i]]),h=i.i,i.i=v,i.thumbId=h}else{u[p]||(u[p]=ws(d.length,c[p]));var v=i.i;this.ee.slides[s]=i=t.extend(!0,{},d[u[p][0]]),h=i.i,i.i=v,i.thumbId=h,this.Js.randomMap[i.i]=u[p][0],u[p].splice(0,1)}else l=!1}i.index=s,i.st=o,o+=i.d,a.push({id:i.i,duration:i.d,title:i.n,ti:h,thumb:l,size:i.thumb_size})}else n.splice(s,1),--s;if(this.ee.pcs&&(this.ee.pcs[0]&&(this.ee.pcs[0].index=n.length),this.ee.pcs[1]&&(this.ee.pcs[1].index=n.length+1)),this.ee.feedbacks){var m=n.length+2;for(s=0,e=this.ee.feedbacks.length;s<e;++s)this.ee.feedbacks[s].index=m,++m}},br:function(){var i=this.ui,s=this,e=this.ee,n=s.ee.l;if(e.options||(e.options={}),e.params||(e.params={}),this.options.playMode||(this.options.playMode="Tutorial"),e.options.playMode=this.options.playMode,i&&i.create){var r=e.options;if(r.language=e.language,r.textDir=e.textDir,r.responsive=e.responsive,r.projectName=e.projectName,r.authorName=e.author,r.authorDesc=e.authorDescription,r.authorImage=e.authorImage,r.companyLogo=e.companyLogo,r.playerIcons=e.playerIcons,r.playerLayouts=e.playerLayouts,r.playbackRates=e.playbackRates,e.mcc){var a=e.mcc.d;r.multipleLanCCs=a||[],r.defautlLanguageCCIndex=e.mcc.i||0}n&&n.length>0&&(r.slideWidth=n[0][0],r.slideHeight=n[0][1]);var h={},o=0;switch(r.playMode){case"Demo":o=0;break;case"Tutorial":o=1;break;case"Practice":o=2;break;case"Test":o=3}for(var u in e.params)h[u]=e.params[u][o];t("#"+this.containerId).attr("data-mode",o+1),0==h.SideBarPos&&(h.ShowSidebarBtn=!1),0==h.TocStyle&&(h.ShowTocBtn=!1),e.ar&&0!=e.ar.length||(h.ShowResourcesBtn=!1),e.av&&e.av.length||(h.ShowAuthorVideo=!1),Ne.canChangePlaybackRate()||(h.ShowSpeedBtn=!1),Ne.canChangeVolume()||(h.ShowVolumeBar=!1);var c,f=!1,l=[];if(e&&e.slides){var d=e.slides,p=e.toc,v=function(t,i,s){var e,n,r,a=i?i.length:0,h=s.length;for(e=0;e<a;++e){if((r=i[e]).s&&r.s>0){for(n=0;n<h;++n)if(s[n].i===r.s){t.push(r);break}}else t.push(r);if(r.c&&r.c.length>0){var o=[];v(o,r.c,s),r.c=o}}};v(l,p,d);for(var m=0,g=d.length;m<g;++m){var b=d[m];if(b&&b.ca&&b.ca.n&&b.ca.n.length){f=!0;break}}}f||(h.ShowCCBtn=!1),e.toc=l,this.wr=h.Navigation,i.create("#"+this.containerId,e.toc,this.gr||[],e.ar,h,r),this.gr&&delete this.gr,(c=t(i)).trigger("ap-pause",[this.allPaused()]),c.trigger("ap-speed",[1]),c.trigger("ap-mute",[this.muted()]),c.trigger("ap-volume",[this.muted()?0:100*this.volume()]),c.trigger("ap-cc",[this.closedCaptionVisible()]),c.trigger("ap-toc",[this.tocVisible()]),c.trigger("ap-sidebar",[this.sidebarVisible()]),c.trigger("ap-resources",[!0]),c.trigger("ap-tool-multiple-language-cc",[this.closedCaptionLanguageIndex()]),this.showToolbar(h.ShowToolbar),h.ShowAuthorVideo&&(s.In=[],t(".ap-presenter-video",t("#"+this.containerId)).each(function(t){var i=new Un(s);i.appendTo(this),s.In.push(i)}))}if(t(".ap-canvas",s.container).on("dblclick",function(t){var i=window.getSelection&&getSelection();i&&i.removeAllRanges&&i.removeAllRanges()}),s.container.hasAttribute("tabindex")||(s.container.tabIndex=-1),t(s.container).on("contextmenu",function(t){var i=window.getSelection&&getSelection();i&&i.toString&&i.toString()||t.preventDefault()}),this.demoMode()||(t(".ap-canvas",s.container).on("mousedown",function(t){s._r(t)}),this.on("ap-click",function(t){s.yr(t)}),t(s.container).on("keydown keyup",function(t){s.he(t)})),(c=t(this.ui)).on("ui:ap-layout",function(){ms("Enter ui:ap-layout");var t,e,r,a=is(i.getMaxContentSize().width),h=0,o=!1;if(n)for(t=0;t<n.length;++t)if(a<=n[t][0]||t==n.length-1){h=t,e=n[t][0],r=n[t][1];break}if(h!==s.layoutIndex&&(ms("Change layout from "+s.layoutIndex+" to "+h),s.layoutIndex=h,o=!0,s.slide?r=s.slide.ee.h[h]:s.An&&s.An.length>0&&(r=s.An[s.An.length-1].ee.h[h]),i.setSlideSize(e,r)),o){if(s.slide&&s.slide.onLayoutSwitched(),s.prevSlide&&s.prevSlide.onLayoutSwitched(),s.topSlide&&s.topSlide.onLayoutSwitched(),s.bottomSlide&&s.bottomSlide.onLayoutSwitched(),s.An)for(t=0;t<s.An.length;++t){(u=s.An[t])&&u.onLayoutSwitched()}s.options.onLayoutSwitched&&s.options.onLayoutSwitched.call(s)}else if(s.slide&&s.slide.pr(),s.prevSlide&&s.prevSlide.pr(),s.topSlide&&s.topSlide.pr(),s.bottomSlide&&s.bottomSlide.pr(),s.An)for(t=0;t<s.An.length;++t){var u;(u=s.An[t])&&u.pr()}ms("Exit ui:ap-layout")}),c.on("ui:ap-showSlide",function(t,i){s.canNavigateTo(s.Dn(i).index,0)&&s.showSlideById(i)}),c.on("ui:ap-restart",function(){s.restart()}),c.on("ui:ap-first",function(){s.canNavigateTo(0,0)&&s.firstSlide()}),c.on("ui:ap-last",function(){if(s.slideIndex<s.slideCount()-1){if(!s.canNavigateTo(s.slideCount()-1,0))return;s.lastSlide()}}),c.on("ui:ap-next",function(){if(s.slideIndex<s.slideCount()-1){if(!s.canNavigateTo(s.slideIndex+1,0))return;s.nextSlide()}}),c.on("ui:ap-previous",function(){if(s.slideIndex>0){if(!s.canNavigateTo(s.slideIndex-1,0))return;s.previousSlide()}}),c.on("ui:ap-pause",function(){s.pauseAll(!s.allPaused())}),c.on("ui:ap-speed",function(t,i){s.speed(i)}),c.on("ui:ap-progress",function(t,i){var e=s.wn(i);if(e){if(!s.canNavigateTo(e.slideIndex,e.slideTime))return;s.showSlide(e.slideIndex,e.slideTime)}}),c.on("ui:ap-cc",function(){s.showClosedCaption(!s.closedCaptionVisible())}),c.on("ui:ap-toc",function(){s.showToc(!s.tocVisible())}),c.on("ui:ap-sidebar",function(){s.showSidebar(!s.sidebarVisible())}),c.on("ui:ap-expand-sidebar",function(t,i){s.Tr(i)}),c.on("ui:ap-sound",function(){s.kr?s.xr():s.muted(!s.muted())}),c.on("ui:ap-volume",function(t,i){s.xr(),s.volume(i/100)}),c.on("ui:ap-about",function(){s.showAbout()}),c.on("ui:ap-resources",function(){s.showResources(!s.resourcesVisible())}),c.on("ui:ap-exit",function(){s.destroy(),window.close()}),c.on("ui:ap-multiple-language-cc",function(t,i){s.closedCaptionLanguageIndex(i)}),n&&n.length>0&&this.ee.responsive&&!this.ee.expandLargestLayout?this.setMaxContentWidth(n[n.length-1][0]):this.layout(),this.started=!0,e.e&&e.e.l&&$e(this,e.e.l,this.demoMode()),this.en.Ie){var w=ye.browser;(w.ie||w.edge)&&"file:"==window.location.protocol&&i.showMsg(i.fe.text("YouTubeIEError"),!0)}this.bn=!0},Cr:function(t){var i=this.ee.av;if(this.In&&i&&i.length)for(var s=0,e=this.In.length;s<e;++s)for(var n=this.In[s],r=!1,a=!1,h=0,o=i.length;h<o;++h){var u=i[h],c=u[4]>0?u[3]/u[4]:0;0==h&&(u[1]>0&&t.addChild(new Xr(n,"display",{startTime:0,duration:0,tweenParams:["none","none"]})),n.Or.Sr(u[5]||u[2]),n.Or.loadResource(u[0])),t.addChild(new Xr(n,"authorVideoRatio",{startTime:u[1],duration:0,tweenParams:[c,c],tweenType:Jt.ms})).addChild(new Xr(n,"flip",{startTime:u[1],duration:0,tweenParams:[[r,a],[u[6]||!1,u[7]||!1]],tweenType:Jt.ms})).addChild(new Xr(n,"display",{startTime:u[1],duration:0,tweenParams:["none","block"]})),r=u[6]||!1,a=u[7]||!1,He(t,n,u[0],u[1],u[2],u[5]),(!i[h+1]||i[h+1][1]>u[1]+u[2])&&t.addChild(new Xr(n,"display",{startTime:u[1]+u[2],duration:0,tweenParams:["block","none"]}))}},Er:function(){if(this.In)for(var t=0,i=this.In.length;t<i;++t)this.In[t].pr()},xr:function(){this.kr&&(delete this.kr,this.muted(!1),this.en.Me=!0,this.en.Ye(),t(this.container).off(".apUnmuteOnTap"),this.ee.options.showUnmuteMsg&&this.ui.hideUnmuteHintMsg())},start:function(i,s){this.bn||this.br();var e,n,r=this,a=this.ee.slides||[],h=this.ee.vars||[];for(e=0,n=h.length;e<n;++e){var o=h[e],u=o[0],c=o[1],f=o[2],l=o[3];this.vars.Zs(u,f),this.vars.qs(u,l),f==ki.NUMBER&&(c=Number(c)),this.Js.vars.hasOwnProperty(u)&&(c=this.Js.vars[u]),this.vars.set(u,c)}if(this.Be.clear(),this.transition&&(this.transition.remove(),this.transition=null),this.slideIndex=-1,this.slide&&(this.slide.cleanup(),this.slide.remove(),this.slide=null),this.prevSlide&&(this.prevSlide.cleanup(),this.prevSlide.remove(),this.prevSlide=null),this.topSlide&&(this.topSlide.cleanup(),this.topSlide.remove(),this.topSlide=null),this.bottomSlide&&(this.bottomSlide.cleanup(),this.bottomSlide.remove(),this.bottomSlide=null),this.fbTransition&&(this.fbTransition.remove(),this.fbTransition=null),this.An){for(e=0;e<this.An.length;++e)this.An[e].cleanup(),this.An[e].remove();this.An.length=0}this.ui.slides().empty(),this.ui.feedbackSlides().empty(),this.Ze&&(this.Ze.remove(),this.Ze=null);var d={paused:!0};if(this.timeline&&(d.speed=this.timeline.speed()),this.timeline=new Fr(d),this.Ze=new Ur,this.timeline.addChild(this.Ze),a.length){var p=a[a.length-1];this.Ze.addChild(new Yr(es,{startTime:p.st+p.d}))}var v=this.Kn();for(e=0,n=a.length;e<n;++e)t(this.ui).trigger("ap-slideCompleted",[this.slideId(e),void 0!==v[e]&&v[e]]);if(void 0!==i&&(this.Js.index=i-1,this.Js.fbs.length=0),void 0!==s&&(this.Js.ts=s,this.Js.fbs.length=0),this.Js.index=this.Js.index||0,this.Js.ts=this.Js.ts||0,!Ne.Te||r.en.Me&&!r.en.Ie||(r.muted(!0),r.kr=!0,t(r.container).on("mouseup.apUnmuteOnTap",function(i){var s=!1,a=t(".ap-tool-sound",r.container);for(e=0,n=a.length;e<n;++e)if(a[e]===i.target){s=!0;break}s||r.xr()}),r.ee.options.showUnmuteMsg&&r.ui.showUnmuteHintMsg()),this.ui.loadingUi.hide(),this.ee.pcs){var m=this.ee.pcs[0];m&&(m.isBottom=!0,this.bottomSlide=new ir(this,m),this.Cr(this.bottomSlide.Ze)),(m=this.ee.pcs[1])&&m.cc&&m.cc.length&&(m.isTop=!0,this.topSlide=new ir(this,m))}return this.lms&&this.lms.startLesson(),this.sn=0,this.Ir&&(clearTimeout(this.Ir),delete this.Ir),this.tn=!1,t(this.ui).trigger("ap-pause",[!1]),this.timeline.paused(!1),this.er=function(){this.Pr=this.timeline.totalTime(),this.topSlide&&(this.topSlide.Ze.setup(),this.topSlide.Ze.startTime(0),this.Ze.addChild(this.topSlide.Ze)),this.bottomSlide&&(this.bottomSlide.Ze.setup(),this.bottomSlide.Ze.startTime(0),this.Ze.addChild(this.bottomSlide.Ze))},t(this).triggerHandler("ap-beforeload"),t(this).triggerHandler("ap-load"),this.slide||this.An&&this.An.length||this.Gn(),ye.pageVisible()||ye.ae(this),this},restart:function(t,i){return void 0===t&&(t=1),void 0===i&&(i=0),this.Js.index=0,this.Js.ts=0,this.Js.slides=[],this.Js.elapsedTime=this.xn||0,this.Js.vars={},this.Js.fbs=[],delete this.Sn,this.te(),this.lms&&this.lms.storeScore(),this.ended=!1,this.pauseAll(!1),this.Rr=!1,this.nr=void 0,this.rr=void 0,this.start(t,i)},Gn:function(){var t=this.Js.index||0,i=this.Js.ts||0,s=this.Js.fbs;this.Js.fbs=[];var e=this.showSlide(t,i);if(e&&!this.ended&&s&&s.length&&this.Js.index==t&&this.Js.ts==i)for(var n=0,r=s.length;n<r;++n)this.showFeedbackById(s[n]);return e},seek:function(t,i){return this.showSlide(t,i)},wn:function(t){if(!isNaN(t)){var i,s,e,n=-1,r=0,a=this.ee.slides;for(s=0,e=a.length;s<e;++s){if(t<(i=a[s]).d){n=s,r=$i(t,0);break}t-=i.d}return n<0&&e>0&&(r=a[n=e-1].d),{slideIndex:n,slideTime:r}}},hr:function(t,i){if(isNaN(i))return 0;var s,e,n,r=0,a=this.ee.slides;for(e=0,n=a.length;e<n;++e){if(s=a[e],t==e)return r+i;r+=s.d}},canNavigateTo:function(t,i){if(this.wr==xi)return!1;if(this.wr==Ci){if(void 0==this.nr||this.nr<t)return!1;if(void 0==this.rr||this.rr<this.hr(t,i))return!1}return!0},time:function(t){if(!arguments.length)return this.Ze.time();var i=this.wn(t);return!!i&&this.showSlide(i.slideIndex,i.slideTime)},slideTime:function(t){if(!arguments.length)return this.slide?this.Ze.time()-this.slide.Ze.startTime():0;var i=this.slideIndex||0;return i<0&&(i=0),this.showSlide(i,t)},duration:function(t){if(!arguments.length){var i=this.ee.slides,s=i[i.length-1];return s?s.st+s.d:0}if(t){var e=this.duration();e&&this.speed(e/t)}return this},speed:function(i){if(!arguments.length)return this.timeline.Mr;var s=this.ee.playbackRates;if(s||(s=[.5,1,1.5,2]),s.indexOf(i)<0){for(var e=Number.MAX_VALUE,n=0,r=0,a=s.length;r<a;++r){var h=zi(s[r]-i);h<e&&(e=h,n=r)}i=s[n]}return Ne.canChangePlaybackRate()?(this.timeline.speed(i),t(this.ui).trigger("ap-speed",[i]),this.en.playbackRate(i),this.vars.notifyObservers("apSpeed"),this):(ms("This device doesn't support changing speed"),this)},Nr:function(t){this.timeline.paused(t),this.en.Xe(t)},pauseAll:function(i){return arguments.length||(i=!0),i=!!i,this.tn==i?this:(this.tn=i,i?this.Nr(!0):(dr.updateTime(),0==this.sn&&this.Nr(!1)),t(this.ui).trigger("ap-pause",[i]),this)},allPaused:function(){return this.tn},paused:function(){return this.Ze.paused()},pause:function(t){return arguments.length||(t=!0),!t&&this.or?this:(this.Ze.paused(t),this.vars.notifyObservers("apPause"),this.vars.notifyObservers("apResume"),this)},end:function(t){if(this.ended)return ms("Prez.end() is called when it's already ended"),this;if(this.hideAllFeedbacks(),t){this.ui.showMsg(this.ui.fe.text("MaxPrezTimeReached"),!0);for(var s,e,n,r,a,h=this.Dn(),o=h.length,u=ti[this.options.playMode];--o>=0;)if(e=h[o].cc)for(n=0,r=e.length;n<r;++n)if(e[n].k===i.F){(void 0===(a=e[n].m)||a&u)&&(s=h[o]),o=-1;break}s&&this.showSlide(s,1)}this.ended=!0,this.pauseAll(!0),Me(this.vars,Re),this.Js.elapsedTime=this.elapsedTime(),this.lms?this.lms.endLesson(t):this.te(!0);var c=this.ee.options;return this.demoMode()||c.reportMethod==Bt||this.sendReport(),this},mute:function(t){return arguments.length||(t=!0),this.muted(t)},muted:function(i){var s=this.en;return arguments.length?(i=!!i,s.muted(i),t(this.ui).trigger("ap-volume",[i?0:100*s.volume()]),t(this.ui).trigger("ap-mute",[s.muted()]),Me(this.vars,"apVolume apMute"),this):s.muted()},volume:function(i){var s=this.en;return arguments.length?(i=gs(i,0,1),s.muted(0==i),s.volume(i),t(this.ui).trigger("ap-volume",[100*s.volume()]),t(this.ui).trigger("ap-mute",[s.muted()]),Me(this.vars,"apVolume apMute"),this):s.volume()},showAbout:function(){var t=this.ee,i={Name:this.name(),Author:this.author(),Copyright:this.copyright(),Homepage:this.homePage(),AppHomePage:t.appHomepage,Generator:t.generator+" "+t.v},s=this;return this.ui.showAbout(i,function(){s.pauseAll(!0)},function(){s.pauseAll(!1)}),this},pn:function(){if(ms("_increaseBufferingCounter: "+(this.sn+1)),0==this.sn){this.Nr(!0);var t=this.ui.loadingUi;this.Ir=setTimeout(function(){t.show(),t.setText("")},3e3)}this.sn++},vn:function(){this.sn<=0?ms("Invalid _decreaseBufferingCounter call"):(this.sn--,ms("_decreaseBufferingCounter: "+this.sn),0==this.sn&&(this.Ir&&(clearTimeout(this.Ir),delete this.Ir),this.ui.loadingUi.hide(),this.tn||this.Nr(!1)))},isBuffering:function(){return this.sn>0},_r:function(t){var i=hs();this.Ar&&i-this.Ar<=ye.DoubleClickMaxTime&&t.preventDefault(),this.Ar=i},yr:function(t){if(!this.As(t)&&this.Xs()&&!this.ended){var i,s=this.An&&this.An[this.An.length-1],e=!1;if(!s){var n,r,a,h,o,u,c,f=[this.slide,this.bottomSlide,this.topSlide],l=de.OUTSIDE;for(a=0,h=f.length;a<h;++a)if(i=f[a])for(c=0;c<2;++c)for(o=0,u=(n=0==c?i.Dr:i.mr).length;o<u;++o)(r=n[o]).Xs(!0,!0)&&(e=!0,r.submit(l,!1))}var d=ye.shortcuts.clickSequence;e||!d||!d.mouse||(i=s||this.slide,this.clickSequenceForward(i))}},Ys:function(t,i){var s=this.slide&&this.slide.mr.length||this.bottomSlide&&this.bottomSlide.mr.length||this.topSlide&&this.topSlide.mr.length;return le.shouldPreventDefault(t,i,s)},he:function(i){if(i.stopPropagation(),le.hasKeydown(i.which)==("keydown"==i.type)){var s=le.combinedCode(i),e=i.target.nodeName.toLowerCase(),n="textarea"===e||"input"===e,r=this.Ys(s,n);if(r&&le.preventDefault(i),!this.As(i)&&this.Xs()&&!this.ended&&!n){var a,h=this.An&&this.An[this.An.length-1],o=!1,u=this.eventBubbling("ap-keypress");if(!h){var c,f,l,d,p,v,m,g,b=!1,w=[this.slide,this.bottomSlide,this.topSlide];for(l=0,d=w.length;l<d;++l)if(a=w[l])for(p=0,v=(f=a.mr).length;p<v;++p)if((c=f[p]).Xs(!0,!0)){if((g=c.Yr(s,!0)).result===Xt.zi){o=!0;var _=t.Event("ap-keypress",{value:le.combinedCode(i),originalEvent:i.originalEvent||i});t(c).triggerHandler(_),_.isPropagationStopped()&&(u=!1)}g.result!==Xt.Bi&&(b=!0)}}if(o&&!u||(a=h||this.slide)&&a.Xr("ap-keypress")&&(o=!0,le.fire(a,i)),!o&&!h)for(l=0,d=w.length;l<d;++l)if(a=w[l])for(m=0;m<2;++m)for(p=0,v=(f=0==m?a.Dr:a.mr).length;p<v;++p)(c=f[p]).Xs(!0,!0)&&(o=!0,0==m?c.submit(s,!0):le.fire(c,i));b&&!r&&le.preventDefault(i);var y=ye.shortcuts.clickSequence;if(!o&&y)if(a=h||this.slide,y.forward&&y.forward.indexOf(s)>=0){if(this.clickSequenceForward(a))return}else if(y.back&&y.back.indexOf(s)>=0&&this.clickSequenceBack(a))return}}},submit:function(){return this.ended?this:(this.slide&&this.slide.submit(),this.bottomSlide&&this.bottomSlide.submit(),this.topSlide&&this.topSlide.submit(),this)},clear:function(t,i){return this.ended&&!i?this:(this.slide&&this.slide.clear(t,i),this.bottomSlide&&this.bottomSlide.clear(t,i),this.topSlide&&this.topSlide.clear(t,i),this)},Lr:function(t,i){var s,e,n,r=t?t.length:0;for(s=0;s<r;++s){if((n=t[s]).i==i)return n;if(n.cc&&(e=this.Lr(n.cc,i)))return e}return null},correctResponses:function(e,n){var r,h,o,u,c,f,l,d,p,v,m;switch(n.k){case i.I:for(r=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)n.t==s.rt?r.push(de.name(c[o],this.ui.fe)):r.push(le.name(c[o]));break;case i.S:case i.K:for(r=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)r.push(c[o]);break;case i.R:var g;for(r=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)(g=this.Lr(e.cc,c[o]))&&r.push(g.r);break;case i.L:switch(f=n.cc||[],n.t){case s.gt:case s.pt:case s.vt:var b;for(r=[],h=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)(b=this.Lr(f,c[o]))&&h.push(b.r);r.push(h);break;case s.wt:for(r=[],h=[],o=0,u=f.length;o<u;++o)h.push(f[o].r);r.push(h);break;case s.bt:for(r=[],o=0,u=f.length;o<u;++o)if(f[o].k==i.S)if(l=(c=f[o].e.v||[]).length,r.length>0)for(v=r,r=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[f[o].r]=c[d],r.push(m);else for(d=0;d<l;++d)(m={})[f[o].r]=c[d],r.push(m);break;case s.Tt:for(r=[],o=0,u=f.length;o<u;++o)if(f[o].k==i.K)if(l=(c=f[o].e.v||[]).length,r.length>0)for(v=r,r=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[f[o].r]=c[d],r.push(m);else for(d=0;d<l;++d)(m={})[f[o].r]=c[d],r.push(m);break;case s._t:var w,_,y,T,k;for(r=[],h={},y={},o=0,u=f.length;o<u;++o)if(f[o].f&a)for(l=(c=(_=f[o]).e.v||[]).length,d=0;d<l;++d)(w=this.Lr(f,c[d]))&&(y[w.r]||(y[w.r]=[]),y[w.r].push(_.r));for(T in y)if(l=(k=y[T]).length,r.length>0)for(v=r,r=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[T]=k[d],r.push(m);else for(d=0;d<l;++d)(m={})[T]=k[d],r.push(m);break;case s.yt:r=[]}break;case i.B:for(r=[],o=0,u=(f=n.cc||[]).length;o<u;++o)if(f[o].k==i.I&&f[o].t==s.B)if(l=(c=f[o].e.v||[]).length,r.length>0)for(v=r,r=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[f[o].r]=c[d],r.push(m);else for(d=0;d<l;++d)(m={})[f[o].r]=c[d],r.push(m);break;case i.U:r=[];var x=n.e.v||[];for(o=0,u=x.length;o<u;++o)if(l=(c=x[o].v||[]).length,r.length>0)for(v=r,r=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[x[o].r]=c[d],r.push(m);else for(d=0;d<l;++d)(m={})[x[o].r]=c[d],r.push(m)}return r},learnerResponse:function(t,e,n){var r,a,h,o,u,c,f;switch(e.k){case i.I:r=fe.name(n.v,this.ui.fe);break;case i.S:case i.K:r=n.v||"";break;case i.R:r="",(c=this.Lr(t.cc,n.v))&&(r=c.r);break;case i.L:switch(h=e.cc,e.t){case s.gt:case s.pt:case s.vt:case s.wt:for(r=[],o=0,u=(a=n.v).length;o<u;++o)(c=this.Lr(h,a[o]))&&r.push(c.r);break;case s.bt:case s.Tt:r={},a=n.v;for(f in a)(c=this.Lr(h,f))&&(r[c.r]=a[f]||"");break;case s._t:var l,d;r={},a=n.v;for(f in a)if(c=this.Lr(h,f))for(o=0,u=(l=a[f]).length;o<u;++o)(d=this.Lr(h,l[o]))&&(r[d.r]=c.r);break;case s.yt:var p,v=function(t,s){var e,n,r,a=-1,h=!0;for(n=0,r=t.length;n<r;++n)if(t[n].k==i.Y){if(h?(h=!1,a++,e=0):e++,s==t[n].i)return{row:a,col:e}}else h=!0};for(r={},o=0,u=(a=n.v).length;o<u;++o)(p=v(h,a[o]))&&(1==u?r[e.r]=parseInt(p.col+1):r[e.r+"_"+p.row]=parseInt(p.col+1))}break;case i.B:h=e.cc,r=[],a=n.v;for(f in a)(c=this.Lr(h,f))&&c.r?r[c.r]=a[f]:r[e.r]?r[e.r]+=","+a[f]:r[e.r]=a[f];break;case i.U:r={},a=n.v;var m,g=(e.e||{}).v||[];for(m in a)(c=g[m])&&(r[c.r]=a[m])}return r},Fr:function(t){if(!t)return 0;var e,n,r,a=0;for(e=0,n=t.length||0;e<n;++e)switch((r=t[e]).k){case i.S:case i.I:case i.K:case i.R:case i.B:case i.U:r.e.f&Mt||a++;break;case i.L:switch(r.t){case s.gt:case s.pt:case s.vt:case s.bt:case s.Tt:case s.wt:case s._t:case s.yt:r.e.f&Mt||a++;break;default:a+=this.Fr(r.cc)}}return a},interactionCount:function(){if(void 0!==this.Hr)return this.Hr;var t,i,s,e=this.ee.slides,n=0;for(i=0,s=e.length;i<s;++i)t=e[i],n+=this.Fr(t.cc);return this.Hr=n,n},takenInteractionCount:function(t){var i,s,e,n,r,a=this.Js.slides,h=0;for(s=0,e=Wi(a.length,this.slideCount());s<e;++s)if(i=a[s])for(n in i)(r=i[n])&&!r.n&&void 0!==r.r&&r.r!=Xt.Bi&&(void 0===t?h++:t==r.r&&h++);return h},takenSlideCount:function(){var t,i,s=this.Js.slides,e=0;for(t=0,i=Wi(s.length,this.slideCount());t<i;++t)s[t]&&e++;return e},score:function(){var t,i,s,e,n,r=this.Js.slides,a=0;for(i=0,s=Wi(r.length,this.slideCount());i<s;++i)if(t=r[i])for(e in t)(n=t[e])&&(a+=n.p||0,n.r==Xt.zi&&n.sp&&(a-=n.sp));return Ts(a,10)},maxControlScore:function(t){var e,n,r,h,o,u,c,f,l=0,d=t.e.f&It&&!(t.e.f&Mt),p=t.e.f&Rt;if(!d){for(n=t.cc?t.cc.length:0,e=0;e<n;++e)l+=this.maxControlScore(t.cc[e]);return l}if(!p)return t.e.m||0;switch(t.k){case i.I:case i.S:case i.K:case i.R:r=t.e.m||[0],l=$i.apply(null,r);break;case i.L:switch(n=(h=t.cc||[]).length,t.t){case s.pt:case s.gt:if(n>0)for(l=h[0].e.m||0,e=1;e<n;++e)o=h[e],l=$i(l,o.e.m||0);break;case s.vt:for(u=t.e.v||[],e=0;e<n;++e)o=h[e],u.indexOf(o.i)<0||(l+=o.e.m||0);break;case s.bt:for(e=0;e<n;++e)(o=h[e]).k===i.S&&(o.e.f&Rt?(r=o.e.m||[0],l+=$i.apply(null,r)):l+=o.e.m||0);break;case s.Tt:for(e=0;e<n;++e)(o=h[e]).k===i.K&&(o.e.f&Rt?(r=o.e.m||[0],l+=$i.apply(null,r)):l+=o.e.m||0);break;case s._t:var v,m,g,b,w=[],_=[];for(e=0;e<n;++e)if((o=h[e]).f&a&&(g=o.e.v,b=o.e.m,g&&b&&g.length==b.length))for(c=0,f=g.length;c<f;++c)v=g[c],(m=w.indexOf(v))<0?(w.push(v),_.push(b[c])):_[m]<b[c]&&(_[m]=b[c]);for(e=0,n=_.length;e<n;++e)l+=_[e]}break;case i.B:var y=(k=t.e||{}).v||[],T=k.h;for(n=(h=t.cc||[]).length,T||(l=void 0),e=0;e<n;++e)(o=h[e]).k===i.I&&y.indexOf(o.i)>=0&&(T?l+=o.e.m||0:l=void 0===l?o.e.m||0:$i(l,o.e.m||0));void 0===l&&(l=0);break;case i.U:var k,x=(k=t.e||{}).v||[];for(n=x.length,e=0;e<n;++e){l+=x[e].m||0}}return l},maxScore:function(){if(void 0!==this.Ur)return this.Ur;var t,i,s,e,n,r,a=this.ee.slides;for(r=0,i=0,s=a.length;i<s;++i)for(e=0,n=(t=a[i].cc||[]).length;e<n;++e)r+=this.maxControlScore(t[e]);return this.Ur=r,r},result:function(){var t=!0,i=this.ee.options;switch(i.passCondition){case Lt:t=this.percentageScore()>=i.passConditionValue;break;case Ft:t=this.score()>=i.passConditionValue;break;case Ht:t=this.takenInteractionCount(Xt.zi)>=i.passConditionValue;break;case Ut:t=this.takenSlideCount()>=i.passConditionValue}return t},elapsedTime:function(){return this.ended||(this.Br=this.xn||0,this.slide&&(this.Br+=this.timeline.totalTime()-(this.Pr||0))),this.Br||0},sessionTime:function(){return this.elapsedTime()-(this.xn||0)},remainingTime:function(){if(this.ended)return 0;var t=0;return(t=!this.demoMode()&&this.ee.options.testMaxTime?60*this.ee.options.testMaxTime*1e3-this.elapsedTime():this.duration()-this.time())<0?0:t},responseResultString:function(t){var i=this.ui.fe;return t?t==Xt.zi?i.text("Correct"):t==Xt.Gi?i.text("Incorrect"):t==Xt.Vi?i.text("Incomplete"):t==Xt.Zi?"":"Unknown":"Unknown"},requirements:function(){var t=this.ee.options,i=this.ui.fe;switch(t.passCondition){case Lt:return i.text("RequirePercent",i.number(t.passConditionValue));case Ft:return i.text("RequirePoints",i.number(t.passConditionValue));case Ht:return i.text("RequireAnswers",i.number(t.passConditionValue));case Ut:return i.text("RequireSlidesViewed",i.number(t.passConditionValue))}return i.text("RequireNone")},interactionTypeName:function(t){var e=this.ui.fe;switch(t.k){case i.I:return t.t==s.rt?e.text("MouseClick"):t.t==s.ht?e.text("KeyStroke"):t.t==s.B?e.text("HotSpot"):"Unknown";case i.S:return e.text("TextBox");case i.K:return e.text("DropdownCtrl");case i.R:return e.text("DropCtrl");case i.L:switch(t.t){case s.gt:return e.text("TrueFalse");case s.pt:return e.text("MultipleChoice");case s.vt:return e.text("MultipleResponse");case s.wt:return e.text("Sequence");case s.bt:return e.text("FillMultipleBlank");case s.Tt:return e.text("SelectMultipleDropdown");case s._t:return e.text("DragDrop");case s.yt:return e.text("Likert")}break;case i.U:return e.text("FillBlankNew");case i.B:return e.text("HotSpot")}return"Unknown"},formatResponse:function(t,e,n,r){var a,h,o="";switch(n){case i.I:o=t;break;case i.S:case i.K:o=t;break;case i.R:o=t+"[.]"+e;break;case i.L:switch(r){case s.gt:case s.pt:case s.vt:case s.wt:for(o="",a=0,h=t.length||0;a<h;++a)""!=o&&(o+="[,]"),o+=t[a];break;case s.bt:case s.Tt:case s._t:case s.yt:var u,c=[];o="";for(u in t)t.hasOwnProperty(u)&&c.push(u);for(c.sort(),a=0,h=c.length;a<h;++a)""!=o&&(o+="[,]"),o+=c[a]+"[.]"+t[c[a]]}break;case i.B:case i.U:var f,l=[];o="";for(f in t)t.hasOwnProperty(f)&&l.push(f);for(l.sort(),a=0,h=l.length;a<h;++a)""!=o&&(o+="[,]"),o+=l[a]+"[.]"+t[l[a]]}return o},reportData:function(i,s){var e,n,r,a,h,o,u,c,f,l,d,p,v,m=t.cookie("userid")||"",g=this.ui.fe,b={},w=this.ee;if(s){for(;""==m;)m=prompt(g.text("EnterUserID"),"");if(null===m)return null;t.cookie("userid",m)}for(b.prezName=w.projectName,b.prezDesc=w.description,b.date=(new Date).toUTCString(),b.userId=m,b.elapsedTime=Math.ceil(this.elapsedTime()/1e3),b.totalSlides=this.slideCount(),b.takenSlides=this.takenSlideCount(),b.totalInteractions=this.interactionCount(),b.takenInteractions=this.takenInteractionCount(),b.correctCount=this.takenInteractionCount(Xt.zi),b.score=this.score(),b.maxScore=this.maxScore(),b.percentage=b.maxScore&&b.score>0?ts(100*b.score/b.maxScore):0,b.passed=this.result(),b.passCondition=w.options.passCondition,b.passValue=w.options.passConditionValue,b.interactions=[],e=this.Js.slides,l=0,p=Wi(e.length,this.slideCount());l<p;++l)if(n=e[l])for(r in n)if((a=n[r])&&a.r&&!a.n&&(h=w.slides[l],o=this.Lr(h.cc,r))){for(f=this.learnerResponse(h,o,a),c=this.correctResponses(h,o),(u={}).type=this.interactionTypeName(o),u.slide=l,u.reportid=o.r,u.attempts=a.a||0,u.result=a.r,v=a.p||0,a.r==Xt.zi&&a.sp&&(v-=a.sp),u.score=Ts(v,10),u.maxScore=this.maxControlScore(o),u.learnerResponse=this.formatResponse(f,u.reportid,o.k,o.t),u.correctResponses=[],d=0;d<c.length;++d)u.correctResponses.push(this.formatResponse(c[d],u.reportid,o.k,o.t));b.interactions.push(u)}return void 0===i&&(i=jt),i!=Kt?this.formatReportData(b,i):b},formatReportData:function(t,i){var s,e,n,r,a,h=t.interactions,o=h.length||0,u="\n",c="\t";this.ui.fe;switch(i){case zt:case Gt:case $t:break;case Vt:for(a='<?xml version="1.0" encoding="UTF-8"?>\n',a+="<Content>\n",a+="\t<Report>\n",a+="\t\t<Name>"+_s(t.prezName)+"</Name>"+u,a+="\t\t<Description>"+_s(t.prezDesc,!0)+"</Description>"+u,a+="\t\t<Date>"+t.date+"</Date>"+u,a+="\t\t<UserID>"+t.userId+"</UserID>"+u,a+="\t\t<TotalTime>"+t.elapsedTime+"</TotalTime>"+u,a+="\t\t<SlideCount>"+t.totalSlides+"</SlideCount>"+u,a+="\t\t<TakenSlide>"+t.takenSlides+"</TakenSlide>"+u,a+="\t\t<TotalInteraction>"+t.totalInteractions+"</TotalInteraction>"+u,a+="\t\t<TakenInteraction>"+t.takenInteractions+"</TakenInteraction>"+u,a+="\t\t<Correct>"+t.correctCount+"</Correct>"+u,a+="\t\t<Score>"+t.score+"</Score>"+u,a+="\t\t<MaxScore>"+t.maxScore+"</MaxScore>"+u,a+="\t\t<PassCondition>"+t.passCondition+"</PassCondition>"+u,a+="\t\t<PassValue>"+t.passValue+"</PassValue>"+u,a+="\t\t<Percent>"+t.percentage+"</Percent>"+u,a+="\t\t<Result>"+(t.passed?"true":"false")+"</Result>"+u,a+="\t\t<Details>\n",s=0;s<o;++s){for(e=h[s],a+="\t\t\t<Interaction>\n",a+="\t\t\t\t<SlideIndex>"+(parseInt(e.slide)+1)+"</SlideIndex>"+u,a+="\t\t\t\t<ReportID>"+e.reportid+"</ReportID>"+u,a+="\t\t\t\t<Attempts>"+e.attempts+"</Attempts>"+u,a+="\t\t\t\t<Score>"+e.score+"</Score>"+u,a+="\t\t\t\t<MaxScore>"+e.maxScore+"</MaxScore>"+u,a+="\t\t\t\t<Result>"+this.responseResultString(e.result)+"</Result>"+u,a+="\t\t\t\t<Type>"+e.type+"</Type>"+u,a+="\t\t\t\t<LearnerResponse>"+_s(""+e.learnerResponse)+"</LearnerResponse>"+u,a+="\t\t\t\t<CorrectResponses>\n",n=0,r=e.correctResponses.length;n<r;++n)a+="\t\t\t\t\t<CorrectResponse>"+_s(""+e.correctResponses[n])+"</CorrectResponse>"+u;a+="\t\t\t\t</CorrectResponses>\n",a+="\t\t\t</Interaction>\n"}a+="\t\t</Details>\n",a+="\t</Report>\n",a+="</Content>\n";break;case Wt:case jt:var f,l={};for(l.Name=t.prezName,l.Description=t.prezDesc,l.Date=t.date,l.UserID=t.userId,l.TotalTime=t.elapsedTime,l.SlideCount=t.totalSlides,l.TakenSlide=t.takenSlides,l.TotalInteraction=t.totalInteractions,l.TakenInteraction=t.takenInteractions,l.Correct=t.correctCount,l.Score=t.score,l.MaxScore=t.maxScore,l.PassCondition=t.passCondition,l.PassValue=t.passValue,l.Percent=t.percentage,l.Result=t.passed,l.Details=[],s=0;s<o;++s)e=h[s],(f={}).SlideIndex=parseInt(e.slide)+1,f.ReportID=e.reportid,f.Attempts=e.attempts,f.Score=e.score,f.MaxScore=e.maxScore,f.Result=this.responseResultString(e.result),f.Type=e.type,f.LearnerResponse=e.learnerResponse,f.CorrectResponses=e.correctResponses,l.Details.push(f);a=i===Wt?JSON.stringify(l,null,c):l}return a},detailedReportData:function(t){var i,s,e,n,r,a,h=this.reportData(Kt,!1).interactions,o=h.length||0,u=this.ui.fe;for(i="<div class='ap-detailed-result'>",i+="<table width='100%' height='auto' border='1px' bordercolor='#808080' bordercolordark='#808080' bordercolorlight='#C0C0C0' cellspacing='0px' rules='all' frame='box' cellpadding='0px'><thead><tr>",i+="<th width='10%' align='center'>"+u.text("NoSign")+"</th>",i+="<th width='10%' align='center'>"+u.text("SlideIndex")+"</th>",i+="<th width='10%' align='center'>"+u.text("ID")+"</th>",i+="<th width='10%' align='center'>"+u.text("Attempts")+"</th>",i+="<th width='10%' align='center'>"+u.text("Score")+"</th>",i+="<th width='10%' align='center'>"+u.text("MaxScore")+"</th>",i+="<th width='10%' align='center'>"+u.text("Result")+"</th>",t?(i+="<th width='15%' align='center'>"+u.text("LearnerResponse")+"</th>",i+="<th width='15%' align='center'>"+u.text("CorrectResponses")+"</th>"):i+="<th width='30%' align='center'>"+u.text("LearnerResponse")+"</th>",i+="</tr></thead><tbody>",e=0;e<o;++e){if(n=h[e],i+="<tr>",i+="<td align='center'>"+u.number(e+1)+"</td>",i+="<td align='center'>"+u.number(parseInt(n.slide)+1)+"</td>",i+="<td align='center'>"+n.reportid+"</td>",i+="<td align='center'>"+u.number(n.attempts)+"</td>",i+="<td align='center'>"+u.number(n.score)+"</td>",i+="<td align='center'>"+u.number(n.maxScore)+"</td>",i+="<td align='center'>"+this.responseResultString(n.result)+"</td>",i+="<td align='center' class='ap-result-response' style='word-break:break-all'>"+_s(""+n.learnerResponse)+"</td>",t){for(s="",r=0,a=n.correctResponses.length;r<a;++r)""!=s&&(s+="<br/><br/>"),s+=_s(""+n.correctResponses[r]);i+="<td align='center' class='ap-result-response' style='word-break:break-all'>"+s+"</td>"}i+="</tr>"}return i+="</tbody></table>",i+="</div>"},sendReport:function(){var i=this.ee.options,s=this.reportData(i.reportFormat,!0),e=this.ui,n=e.fe;if(null!==s)switch(i.reportMethod){case Zt:try{var r={type:"POST",url:i.reportAddress,data:"report="+encodeURIComponent(s),timeout:6e4,success:function(){e.showMsg(n.text("SuccessSendReport"),!0)},error:function(t,s,r){var a;r&&(r instanceof Error?a=r.name+": "+r.message:r.toString&&(a=r.toString())),a||(a=n.text("CouldnotSendReport")+i.reportAddress+(s?": "+s:"")),e.showMsg(a,!0)}};e.showMsg(n.text("SendingReport"),!0),t.ajax(r)}catch(t){var a;return a=t instanceof Error?t.name+": "+t.message:t.toString?t.toString():n.text("CouldnotSendReport")+i.reportAddress,e.showMsg(a,!0),!1}}},getResource:function(t,i){if(void 0!==i){var s="png";return 0==i?s="png":1==i?s="jpg":2==i?s="gif":3==i&&(s="svg"),this.resourceLocation+this.fileNamePrefix+"res_"+t+"."+s}return this.resourceLocation+this.fileNamePrefix+"res_"+t},getImgResource:function(t){return this.resourceLocation+this.fileNamePrefix+"img_"+t},getThumbnailResource:function(t){return this.resourceLocation+this.fileNamePrefix+"thumb_"+t+".jpg"},getTextureResource:function(){return this.resourceLocation+this.fileNamePrefix+"tex_"},showToolbar:function(t){return arguments.length||(t=!0),this.ui.showToolbar(t),this.vars.notifyObservers("apToolbarVisible"),this},toolbarVisible:function(){return this.ui.toolbarVisible()},showToc:function(i){return arguments.length||(i=!0),this.ui.showToc(i),t(this.ui).trigger("ap-toc",[i]),this.vars.notifyObservers("apTOCVisible"),this},tocVisible:function(){return this.ui.tocVisible()},showSidebar:function(i){if(arguments.length||(i=!0),this.ui.showSidebar(i),t(this.ui).trigger("ap-sidebar",[i]),this.In&&(!i||i&&!this.muted()))for(var s=0,e=this.In.length;s<e;++s)this.In[s].muted(!i);return i&&this.Er(),this.vars.notifyObservers("apSidebarVisible"),this},sidebarVisible:function(){return this.ui.sidebarVisible()},Tr:function(t){t&&this.Er()},showResources:function(i){return arguments.length||(i=!0),this.ui.showResources(i),t(this.ui).trigger("ap-resources",[i]),this},resourcesVisible:function(){return this.ui.resourcesVisible()},author:function(){return this.ee.author},homePage:function(){return this.ee.homepage},copyright:function(){return this.ee.copyright},name:function(){return this.ee.projectName},description:function(){return this.ee.description},currentSlideIndex:function(t){return arguments.length?this.showSlide(t-1):this.slideIndex+1},currentSlideLabel:function(){return this.slide&&this.slide.name()||""},percentageScore:function(){var t=this.score(),i=this.maxScore();return t>=i?100:i&&t>0?ts(100*t/i):0},authorVideoView:function(t){var i=0==arguments.length?0:t;return this.In&&this.In.length>i?this.In[i]:null},playMode:function(){return this.options.playMode},demoMode:function(){return"Demo"==this.options.playMode},registerTimer:function(t){return this.Zr?this.Zr.push(t):this.Zr=[t],this},unregisterTimer:function(t){var i=this.Zr.indexOf(t);return i>=0&&this.Zr.splice(i,1),this},tick:function(i){if(this.timeline&&!this.timeline.tn){var s=this.timeline.zr,e=(i-s)*this.timeline.Mr;if(this.Zr&&this.Zr.length){var n=this.timeline.Gr(e);this.timeline.Vr=n.totalTime;for(var r=0;r<this.Zr.length;++r)if(this.Zr[r].tick(i),this.timeline.zr!=s)return}this.timeline.update(e),this.vars.tick(i),t(this.ui).trigger("ap-progress",[this.slideIndex,this.slideId(this.slideIndex),this.slide?this.Ze.time():0]);var a=this.elapsedTime();if(!this.Wr||i-this.Wr>=300){this.Wr=i,Me(this.vars,Re),!this.demoMode()&&this.ee.options.testMaxTime&&a>=60*this.ee.options.testMaxTime*1e3&&this.end(!0),this.slide&&this.slide.ee.w&&this.Bn(!0);var h=os.activeElement,o=h==this.container||(!h||h==os.body)&&this.container&&this.container.parentElement==os.body||this.An&&this.An.length&&t.contains(this.ui.slides()[0],h);if(o){var u=window.getSelection&&getSelection();u&&u.toString()&&(o=!1)}o&&a>=300&&this.$r()}if(this.rr=void 0==this.rr?this.Ze.time():$i(this.rr,this.Ze.time()),!this.ended){this.slide&&(this.Js.ts=this.Ze.time()-this.slide.ee.st),this.Js.elapsedTime=a;var c=this.vars.ce;for(var f in c)this.vars.qs(f)&&(this.Js.vars[f]=this.vars.get(f));this.started&&!this.ended&&this.Js.ts-this.En()>6e4&&this.te(!0),this.ee.mediaPreloading&&this.Ke<0&&!this.prevSlide&&this.Js.ts>1e3&&0==this.sn&&this.Jn(this.slideIndex+1)}}},$r:function(){var i=this.An&&this.An.length?this.ui.feedbackSlides():this.ui.slides(),s=t('[tabindex]:not([tabindex="-1"])',i).filter(":visible");if(s.length>0){(s=s.toArray()).sort(function(t,i){return t.tabIndex-i.tabIndex});var e=s[0].getBoundingClientRect();if(e.right>0&&e.bottom>0){var n=this.ui.stage()[0].getBoundingClientRect(),r=Math.min(e.right,n.right)-Math.max(e.left,n.left);if((r>30||bs(r,e.right-e.left))&&((r=Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top))>30||bs(r,e.bottom-e.top))){var a=os.hasFocus();a||this.Kr||(this.Kr=!0,a=!0),a&&s[0].focus({preventScroll:!0})}}}},Bn:function(i){if(i){var s,e,n,r="A"===this.ee.generator.charAt(0),a={position:"absolute",display:"block",zIndex:Qt.os},h=r?a:{position:"absolute",display:"block"},o=r?15:50,u="a";if(o+="px",u+="lt",(!this.jr||!r&&this.jr[0].childNodes.length<4)&&(this.jr=t(r?"<img />":"<div><img /><img /><img /><img /></div>"),s="pointer",s+="Event",s+="s",this.jr.css(s,"none")),n="da",n+="ta",n+=":i",n+="ma",n+="ge",n+="/p",n+="ng",n+=";b",n+="as",n+="e6",n+="4,",n+=this.ee.wmd,s="min",e="20",e+="0px",h[s+="Width"]=e,s="min",e="50",e+="px",h[s+="Height"]=e,r)this.jr[0].src!==n&&(this.jr[0].src=n),this.jr[0][u]=this.ee.generator,a.top=a.right=o,a.left="auto";else{var c,f,l,d=this.jr[0].childNodes;for(f=0,l=d.length;f<l;++f)(c=d[f]).src!==n&&(c.src=n),c[u]=this.ee.generator,0==f||3==f?(h.left=o,h.right="auto"):(h.left="auto",h.right=o),f<=1?(h.top=o,h.bottom="auto"):(h.top="auto",h.bottom=o),t(c).css(h);a.top=0,a.left=0,a.width="100%",a.height="100%"}this.jr.css(a);var p=t(".ap-canvas",this.container);this.jr[0].parentNode&&this.jr[0].parentNode===p[0]||p.append(this.jr)}else this.jr&&this.jr.hide()},prez:function(){return this},eventBubbling:function(t,i){return"ap-dblclick"==t&&(t="ap-click"),1==arguments.length?(void 0===(i=this.Qr&&this.Qr[t])&&(i="ap-keypress"!=t&&"ap-click"!=t),i):(this.Qr||(this.Qr={}),this.Qr[t]=i,this)},on:function(t,i){return tn.prototype.on.call(this,t,i)},off:function(t,i){return tn.prototype.off.call(this,t,i)},filterEvent:function(t){var i,s,e=t.target,n=[];if(this.An)for(s=this.An.length;--s>=0;)n.push(this.An[s]);for(n.push(this.slide,this.bottomSlide,this.topSlide),s=0;s<n.length&&!(i=n[s]&&n[s].qr(e));++s);return!i||tn.prototype.filterEvent.call(i,t)},Ms:function(){return this.ui.canvas()[0]},Xr:function(t){return tn.prototype.Xr.call(this,t)},Xs:function(t){return!this.demoMode()&&(t||!this.sn)&&(!this.tn||this.ended)},Ds:function(t){tn.prototype.Ds.call(this,t)},As:function(t){return tn.prototype.As.call(this,t)},cssUrl:function(){return void 0!==this.options.css?this.options.css:this.ee.options.css},highlightFocus:function(t){if(!arguments.length)return void 0!==this.options.highlightFocus?this.options.highlightFocus:this.ee.options.hilightFocus;this.options.highlightFocus=t},variable:function(t,i){return 1===arguments.length?this.vars.get(t):this.vars.set(t,i)},startTimeline:function(t,i){return typeof t===Hi&&(t=this.slide&&this.slide.timeline(t)),t?(t.remove(),t.Jr&&(t.Jr.remove(),t.Jr=null),t.started()&&t.totalTime()<t.totalDuration()&&t.pause(t.totalDuration()),t.startTime(this.timeline.totalTime()),i&&(t.Jr=new Yr(function(){i.call(t)},{startTime:t.duration(),duration:0}),t.addChild(t.Jr)),this.timeline.addChild(t),t.setup(),t.play(0),t):null},pauseTimeline:function(t,i){return typeof t===Hi&&(t=this.slide&&this.slide.timeline(t)),t?(arguments.length<2&&(i=!0),i?t.paused(!0):t.started()?t.paused(!1):this.startTimeline(t),t):null},clickSequenceForward:function(t){var i=(t=t||this.slide)&&t.clickSequence();if(!i)return!1;for(;i&&!i.hasChildAnimations();)i=t.ia();var s=!1;if(i){if(i.started()){i.remove(),i.totalTime()<i.totalDuration()?i.pause(i.totalDuration()):s=!0;do{i=t.ia()}while(i&&!i.hasChildAnimations())}}else s=!0;return i?(this.startTimeline(i),!0):t==this.slide&&(!s||this.nextSlide())},clickSequenceBack:function(t){var i=(t=t||this.slide)&&t.clickSequence();if(!i)return!1;for(;i&&!i.hasChildAnimations();)i=t.sa();if(i&&!i.started()&&(i=t.sa()),i)return i.remove(),i.reset(),!0;if(t==this.slide&&this.previousSlide()){var s=this.slide;if(s&&s!=t)for(i=s.clickSequence();i&&s==this.slide;)i.remove(),i.pause(i.totalDuration()),i=s.ia();return!0}return!1},reviewCourse:function(){this.slide&&t(this.ui).trigger("ap-slideCompleted",[this.slide.ee.i,!0]),this.Rr=!0,this.end(),this.firstSlide(),this.pauseAll(!1)},isReviewingMode:function(){return!0===this.Rr},runAction:function(t,i,s){for(var e=null,n=0,r=this.ee.adActions.length;n<r;n++){var a=this.ee.adActions[n];if(a[0]===t){e=a[1];break}}if(e){for(var h=s.currentTarget&&s.currentTarget.slide,o=(n=0,e.length);n<o;n++){var u=e[n],c=u[0],f=u[1],l=u[2]||[],d=u[3];if(d){var p=i[d];switch(c){case Yt.ei:u[1]=p-1;break;case Yt.si:case Yt.ni:case Yt.ri:case Yt.ci:case Yt.fi:case Yt.li:u[1]=p;break;case Yt.pi:case Yt.vi:case Yt.Ci:case Yt.yi:case Yt.Oi:case Yt._i:case Yt.Hi:case Yt.Ui:case Yt.gi:case Yt.bi:case Yt.Ai:case Yt.Di:case Yt.Yi:case Yt.Ni:var v=h&&h.object(p);f[0]=v?v.id():-1;break;case Yt.Si:case Yt.wi:var m=this.ee;if(void 0!==m.ai)for(var g=0,b=m.ai.length;g<b;++g){var w=m.ai[g];w[1]===p&&(f[0]=w[0],f[1]=w[2])}break;case Yt.Mt:v=h&&h.object(p[0]);f[0]=v?v.id():-1,f[2]=Di,f[3]=p[1];break;case Yt.Ei:case Yt.Ti:case Yt.ki:case Yt.xi:var _=h&&h.timeline(p);u[1]=_?_.id:-1;break;case Yt.Ii:var y=this.Ln(p);f[0]=y.fbi;break;case Yt.Pi:y=this.Ln(p);u[1]=y.fbi}}g=0;for(var T=l.length;g<T;g++){var k=l[g],x=k[3],C=k[4];if(C){var S=C[0],O=i[S],E=C[1],I=i[E];switch(k[1]){case St.Rt:void 0!==S&&(x[1]=O),void 0!==E&&(x[0]=I);break;case St.Mt:O!=I[0]&&(x[0]=x[1]=0),x[1]=O,x[0]=I[1];break;case St.Nt:x[0]=I;break;case St.R:var P=s.currentTarget&&s.currentTarget.slide&&s.currentTarget.slide.object(I);x[0]=P.id();break;case St.Dt:var R=this.slide.object(O);x[1]=R.id(),x[0]=I;break;case St.X:R=this.slide.object(O);if(x[1]=R.id(),k[3]==Ot.Gt){var M=x[0][0],N=x[0][1];if(-1==M&&E&&(I[0]=i[E]),-1==N){var A=C[2];void 0!==A?I[1]=i[A]:void 0!==E&&(I[1]=i[E])}}x[0]=I;break;case St.K:R=this.slide.object(O);x[1]=R.id(),x[0]=I;break;case St.rt:"left click"===O.toLowerCase()?x[0]=1:"left double-click"===O.toLowerCase()?x[0]=4:"right click"===O.toLowerCase()&&(x[0]=3);break;case St.At:case St.ht:x[0]=O}}}}var D=-1,Y=(o=e.length,this.prez()),X=(n=0,function(){++D<o&&ge(e[D],Y,s,D===o-1?null:X)});X()}},ea:function(){var t,i,s=this.na;if(!s){for(s=[],i=0;i<this.en.Re;++i)(t=new Yn(this,!1)).ra=!1,t.ir(!0),t.synchronizeWithPrez(!1),s.push(t);this.na=s}},ur:function(){this.ea();var t,i,s,e,n,r,a=this.na,h=[],o=function(t,i){!function(t,i){var s,e,n,r,a,h,o,u,c;if(t&&t.l)for(s=0,e=t.l.length;s<e;++s)for(n=0,r=(u=t.l[s][1]).length;n<r;++n)if(((o=u[n])[0]==Yt.wi||o[0]==Yt.Si)&&o[1][1]<Fi){for(c=!1,a=0,h=i.length;a<h;++a)if(i[a][0]==o[1][0]){c=!0;break}c||i.push([o[1][0],o[1][1]])}}(t.e,i);var s,e,n=t.cc;if(n)for(s=0,e=n.length;s<e;++s)o(n[s],i)};for(this.slide&&o(this.slide.ee,h),r=0,i=0,s=h.length;i<s;++i)for(e=r,n=a.length;e<n;++e)if(!(t=a[e]).ra){t.tr("Play Short Audio Action: "+h[i][0]),t.Sr(h[i][1]),t.loadResource(h[i][0]),r=e+1;break}},Rn:function(){var t,i,s=this.na;if(s){for(t=0,i=s.length;t<i;++t)s[t].cleanup();delete this.na}},aa:function(t,i,s,e,n){this.ea(),ms("_playShortAudioResource: "+t);var r,a,h,o=this.na;for(a=0,h=o.length;a<h;++a)if(!o[a].ra&&(r||(r=o[a]),o[a].ha==t)){r=o[a],ms("_playShortAudioResource: Cached player found");break}if(r){var u=function(){ms("_playShortAudioResource: Completed: "+t),r.ra=!1,r.oa("ended",u),r.pause(),n&&n()},c=function(){ms("_playShortAudioResource: Error: "+t),r.ra=!1,r.oa("error",c),r.pause(),n&&n()};r.ua("ended",u),r.ua("error",c),r.ra=!0,r.ha!=t&&(r.tr("Play Audio Action: "+t),r.Sr(i),r.loadResource(t)),r.play()}else ms("_playShortAudioResource: No available players")},fa:function(t,s,e,n,r){var a=this.bottomSlide,h=a.la(function(t){return t.actionData===e});if(h)h.remove(),h.started()&&h.totalTime()<h.totalDuration()&&h.pause(h.totalDuration());else{if(a.da||(a.da=0),a.da>=this.en.Pe)return;var u=a.defaultCtrlData();u.k=i.T,u.mi=t,u.md=s,u.f|=o;var c=a.createChild(u);++a.da,(h=new Ur).actionData=e,n&&(h.vr=!0),a.js(h),He(h,c,t,0,s+500,s),h.addChild(new Yr(function(){setTimeout(function(){a.Ks(h)},0),c.remove(),--a.da,r&&r()},{startTime:h.duration(),duration:0}))}h.startTime(this.timeline.totalTime()),this.timeline.addChild(h),h.setup(),h.play(0)},Qs:function(t,i,s,e,n){i<Fi?this.aa(t,i,s,e,n):this.fa(t,i,s,e,n)},pa:function(t,i,s,e,n,r){var a=os.createElement("canvas");Es(a,{width:2*s+2,height:2*s+2});var h=a.style;h.position="absolute",h.left=t-s-1+"px",h.top=i-s-1+"px",h.pointerEvents="none",h.zIndex=Qt.ss,this.ui.slides()[0].appendChild(a);var o=this.bottomSlide,u=new Ur,c=ns({},Qe,{node:a,slide:o,va:0,ma:e,ga:n,ba:s+1,wa:s+1,_a:s});u.vr=!0,o.js(u),u.addChild(new Xr(c,"ceProgress",{startTime:0,duration:r,tweenParams:[0,100]})).addChild(new Yr(function(){setTimeout(function(){o.Ks(u)},0),a.parentNode&&a.parentNode.removeChild(a)},{startTime:r})),u.startTime(this.timeline.totalTime()),this.timeline.addChild(u),u.setup(),u.play(0)}}),Be=os.createElementNS(Ui,"svg"),Ze=Be.createSVGMatrix(),ze=Be.createSVGPoint();function Ge(t,i,s){ze.x=i,ze.y=s;var e=ze.matrixTransform(t);return{x:e.x,y:e.y}}var Ve=js({$init:function(t,i){this.ya=t,this.ee=i||[],this.Ta=y,this.Fe=-1},useDefault:function(){var t,i,s=0;for(t=0,i=this.ee.length;t<i;++t)if(this.ee[t].d){s=t;break}return this.at(s)},is:function(t){var i=this.ee[this.Fe];return i&&i[typeof t===Hi?"n":"i"]===t},at:function(t){if(!arguments.length)return this.Fe;var s=this.ee[t];if(!s)return!1;this.Fe=t;var e=this.Ta;void 0!==s.p&&(this.Ta=s.p);var n=s.at;if(s.im){var r=s.im;this.ya.ka(r[0],r[1],n)}else this.ya.imageNode&&(this.ya.imageNode.src="");if(this.ya.ee.k==i.tt){var a=s.model||[],h=s&&s.w&&s.w[this.ya.slide.ue.layoutIndex];if(h&&h.r){var o=h.r,u=Ms(o[2]),c=Ms(o[3]);this.ya.xa(u,c,a)}}var f,l,d,p=this.ya.shape,v=s.f,m=s.l,g=s.s,b=s.o,w=s.t;if(this.layout(),s.tg&&this.ya.setIconSize){var _=s.tg;if(!!_[6]){var y=(this.Ta&C)===C;p.createIcon(y,_[0],_[1],_[2],Ps(_[3]),Ps(_[4]),Ps(_[5])),p.updateIcon(),this.ya.setIconSize&&this.ya.setIconSize(_[0])}}if(s.sl){var T=s.sl;p.updateSlider(this.ya.value(),Ps(T[0]),Ps(T[1]),Ps(T[2]),T[3],T[4])}if(s.dd){w=void 0;var k=this.ya.ee.it,x=this.ya.ee.hi,S=this.ya.ee.di,O=s.t&&s.t[1];p.updateDropdown(k,x,S,O,Ps(s.dd[0]),Ps(s.dd[1]),Ps(s.dd[2]),Ps(s.dd[3]),s.dd[4])}if(s.a){if(!s.a.params){s.a.type=s.a[0],s.a.params=s.a.slice(1);var E=s.a.params[0];if(E)for(l=0,d=E.length;l<d;++l)E[l]/=Xi}this.ya.shape.shape(s.a.type,s.a.params)}if(v){if(!v.normed){if(v[0]===_t.Et){var I,P=v[2];for(l=0,d=P.length;l<d;++l)I=[(f=P[l])[0]],f=f[1],I.push(Ps(f>>16&255,f>>8&255,255&f)),I.push((f>>24&255)/255),P[l]=I}v.normed=!0}switch(v[0]){case _t.St:p.fillNone();break;case _t.Ot:f=v[1],p.fillSolid(f>>16&255,f>>8&255,255&f,(f>>24&255)/255);break;case _t.Et:v[1]?p.fillRadialGradient(v[2],v[3],v[4],v[5],v[6]):p.fillLinearGradient(v[2],v[3],v[4],v[5]);break;case _t._:v.length>1?p.fillImage(v[1],v[2],v[3],v[4],v[5]):p.fillNone()}}else p.fillNone();if(m?(p.lineWidth(m[0]),f=m[1],p.lineColor(f>>16&255,f>>8&255,255&f,(f>>24&255)/255),p.lineJoin(m[2]),p.lineCap(m[2]),void 0!==m[3]?p.endArrow(m[3],m[4]):p.endArrow(ft.NONE),void 0!==m[5]?p.startArrow(m[5],m[6]):p.startArrow(ft.NONE),p.lineStyle(m[2])):p.lineStyle("none"),this.ya.rotate(s.r||0),this.ya.flip(s.fh,s.fv),g){f=g[3];var R=g[1]-this.ya.rotateToSlide();p.applyEffectShadow(g[0],R,g[2],f>>16&255,f>>8&255,255&f,(f>>24&255)/255)}else p.clearEffectShadow();if(this.ya.node.style.opacity=isNaN(b)||255==b?"":b/255,w?(!this.ya.Ca&&this.ya.html(w[0]||""),this.ya.textStyle(w[1]).textVerticalAlign(w[2])):!this.ya.Ca&&this.ya.html(""),n||(this.ya.textNode&&(n=(n=this.ya.textNode.textContent.replace(/\r|\n/g," ")).replace(/ +(?= )/g,"").trim()),n||(n=this.ya.ee.n,this.ee.length>1&&(n+=" "+s.n))),n?this.ya.accText(n):this.ya.accText(""),this.Sa(e,this.Ta),s.lg){var M=s.lg;p.createLegend(M[0],Ps(M[1]),Ps(M[2]),M[3]),p.updateLegend(),this.ya.Oa()}return this.ya.Ea&&(this.ya.shape||this.ya.textContainer)&&(this.ya.parent&&this.ya.parent.Ia(),this.ya.Pa()),this.ya.Ra&&this.ya.Ra(),!0},id:function(t){if(!arguments.length){var i=this.ee[this.Fe];return i?i.i:-1}return this.at(this.find("i",t))},name:function(t){if(!arguments.length){var i=this.ee[this.Fe];return i?i.n:""}return this.at(this.find("n",t))},flags:function(t){if(!arguments.length)return this.Ta;var i,s=y,e=this.Ta;return t&C&&(s|=C),t&x?s|=x:t&T?s|=T:t&k?s|=k:t&S?s|=S:t&O?s|=O:t&E?s|=E:t&I?s|=I:t&P?s|=P:t&R?s|=R:t&M?s|=M:t&N&&(s|=N),this.Ma=!0,i=this.at(this.find("p",s)),delete this.Ma,this.Sa(e,t),i},Sa:function(t,i){this.Ta=i,!this.Ma&&this.ya.Na&&this.ya.Na(t,i)},has:function(t){var i=this.ee[this.Fe];return i&&(i.p&t)===t},find:function(t,i){var s,e;for(s=0,e=this.ee.length;s<e;++s)if(this.ee[s][t]===i)return s;return-1},Aa:function(t){var i,s=this.ee[t],e=s&&s.w&&s.w[this.ya.slide.ue.layoutIndex];return e&&e.r&&(i=[(e=e.r)[0],e[1],e[4]]),i},layout:function(){var t=this.ee[this.Fe],i=t&&t.w&&t.w[this.ya.slide.ue.layoutIndex];if(i){if(!i.normed){var s,e,n,r,a,h=i.p;if(h)for(s=0;s<h.length;++s){if(s<2){if(c=h[s])for(u=0,r=c.length;u<r;++u)for(a=c[u],e=0;e<6;++e)a[e]/=Xi}else for(var o=h[s],u=0;u<o.length;++u){var c,f=o[u];if(f)if(c=f.p)for(e=0,r=c.length;e<r;++e)for(a=c[e],n=0;n<6;++n)a[n]/=Xi}}i.normed=!0}if(i.b&&this.ya.flexbox(i.b),i.c)this.ya.flexChild(i.c);else if(i.r){var l,d,p=i.r,v=Ms(p[2]),m=Ms(p[3]);this.ya.center(1===p[5]||3===p[5],2===p[5]||3===p[5]),this.ya.Da(p[0],p[1],p[4]),"%"===v.unit||"a"===v.unit?v.value/=Xi:v.unit||(v.unit="px"),"%"===m.unit||"a"===m.unit?m.value/=Xi:m.unit||(m.unit="px"),l=!(d="a"===m.unit)&&"a"===v.unit,this.ya.autoWidth(l).autoHeight(d),(d||l)&&(this.ya.Ya=d?m.value:v.value,this.ya.Xa=!0),l||this.ya.width(v.value+v.unit),d||this.ya.height(m.value+m.unit)}this.ya.shape.path(i.p&&i.p.length?i.p:null),i.f?this.ya.fontScale(i.f):this.ya.fontScale(100),this.ya.alwaysHide(i.h)}}});function We(t){this.La=t,this.Fa=[],this.Ha=Qt.us;var i=t.ee.dd;this.Ua={effect:i[0],scale:i[1],alpha:i[2],posType:i[3],posVal:i[4],maxAccept:i[5],replace:i[6],acceptAny:i[7],acceptIds:i[8]||[]}}function $e(t,i,s){var e,n,r,a;if(i)for(e=0,n=i.length;e<n;++e)r=i[e],a=Dt[r[0]],!r[1]||!r[1].length||s&&"ap-beforeload"!=a&&"ap-load"!=a&&"ap-unload"!=a&&"ap-timer-complete"!=a||t.on(a,function(t){return function(i,s){var e=-1,n=t[1],r=n.length,a=function(){++e<r&&ge(n[e],s,i,a)};a()}}(r))}function Ke(t){var i,s=[];if(!(t&&t.node&&t.showProp&&t.hideProp))return s;for(;t;)t.node.style.display===t.hideProp()&&(t.node.style.display=t.showProp(),s.push(t)),t=t.parent;return(i=s[s.length-1])&&i.pr&&i.pr(),s}function je(t){var i,s=t.length;if(s){for(i=s;--i>=0;)t[i].node.style.display=t[i].hideProp();t[s-1].pr&&t[s-1].pr()}}We.TileMargin=5,We.RevertTime=200,We.DropTime=200,We.ZoomEffectScale=1.1,We.dragEffect=function(i,s,e,n){var r=t(i.node),a=i.node.style;if(s){var h={zIndex:Qt.fs,opacity:.8},o=i.Ba={zIndex:a.zIndex,opacity:a.opacity},u=i.ee.dd;if(u)switch(u[0]){case q:r.addClass("ap-ctrl-dragsource-hilight");break;case J:var c=r.css("transform-origin").split(" ");e-=parseFloat(r.css("left"))+parseFloat(c[0]),n-=parseFloat(r.css("top"))+parseFloat(c[1]),o.transform=a[Xs],h.transform="translate("+e+"px, "+n+"px) scale("+We.ZoomEffectScale+", "+We.ZoomEffectScale+") translate("+-e+"px, "+-n+"px)",o.transform&&"none"!==o.transform&&(h.transform+=" "+o.transform)}r.css(h)}else i.Ba&&(r.css(i.Ba),delete i.Ba),r.removeClass("ap-ctrl-dragsource-hilight")},We.dropHoverEffect=function(i,s){var e=i.ee.dd;if(e)switch(e[0]){case q:s?t(i.node).addClass("ap-ctrl-droptarget-hilight"):t(i.node).removeClass("ap-ctrl-droptarget-hilight");break;case J:s?(i.Za=i.node.style[Xs],i.scaleBy(We.ZoomEffectScale)):void 0!==i.Za&&(i.node.style[Xs]=i.Za,delete i.Za)}},We.revert=function(t,i,s,e,n){var r=t.prez(),a=new Ur({startTime:r.timeline.totalTime()}),h=t.node.style.zIndex;t.node.style.zIndex=Qt.fs,t.js(a),a.addChild(new Xr(t,"translateX",{startTime:0,duration:e,easing:vr.outQuad,tweenParams:[-i],relative:mr.za})).addChild(new Xr(t,"translateY",{startTime:0,duration:e,easing:vr.outQuad,tweenParams:[-s],relative:mr.za})).addChild(new Yr(function(){t.node.style.zIndex=h,n&&n(),setTimeout(function(){t.Ks(a)},0)},{startTime:a.duration(),duration:0})),r.timeline.addChild(a),a.setup(),a.play(0)},We.prototype={constructor:We,droppedObjects:function(){return this.Fa},accepted:function(t){return this.Ua.acceptAny||this.Ua.acceptIds.indexOf(t.id())>=0},drop:function(s,e,n,r){void 0===n&&(n=!0);var a=this.La,h=this.Ua,o=h.maxAccept<0||this.Fa.length<h.maxAccept,u=!1,d=!1;if(s.parent!==a.parent?o=!1:(o||this.Fa.length===h.maxAccept&&h.maxAccept>0&&(h.replace?(u=!0,o=!0):d=!0),!o&&!d||h.acceptAny||h.acceptIds.indexOf(s.ee.i)<0&&(o=u=d=!1)),s.ee.k==i.O&&s.zs.flags(s.zs.flags()&~(k|T)),!o)return n&&(s.hasStateFlag(N)&&s.zs.flags(N),a.hasStateFlag(N)&&a.zs.flags(N),t(a).triggerHandler(t.Event("ap-reject",{value:s})),We.revert(s,r.x,r.y,We.RevertTime)),!!d&&void 0;if(u){var p,v=this.Fa[this.Fa.length-1];v&&(p=this.startDragOut(v,n),n&&(s.hasStateFlag(N)&&s.zs.flags(N),v.hasStateFlag(N)&&v.zs.flags(N),t(a).triggerHandler(t.Event("ap-reject",{value:v})),We.revert(v,p.x,p.y,We.RevertTime)))}this.Fa.push(s),s.dropTarget=a;var m={w:s.node.clientWidth,h:s.node.clientHeight},g={t:a.node.offsetTop,l:a.node.offsetLeft,w:a.node.clientWidth,h:a.node.clientHeight},b=h.scale/100,w="",_={},y=s.Ga={},x=s.node.style;switch(1!==b&&(w="translate("+-m.w/2+"px, "+-m.h/2+"px) scale("+b+", "+b+") translate("+m.w/2+"px, "+m.h/2+"px)",m.w*=b,m.h*=b),h.posType){case f:this.Va(m,g,h.posVal);break;case l:this.Wa(m,g,h.posVal);break;case c:m.l=g.l+e.x,m.t=g.t+e.y,s.$a={x:e.x,y:e.y}}var C,S,O,E=t(s.node).css("transform-origin").split(" "),I=t(a.node).css("transform-origin").split(" ");return C=g.l+parseFloat(I[0])-(s.node.offsetLeft+parseFloat(E[0])),S=g.t+parseFloat(I[1])-(s.node.offsetTop+parseFloat(E[1])),"none"===(O=a.node.style.transform)&&(O=""),_.transform="translate("+C+"px, "+S+"px) "+O+" translate("+-C+"px, "+-S+"px) translate("+(m.l-s.node.offsetLeft)+"px, "+(m.t-s.node.offsetTop)+"px) "+w,y.transform=x[Xs],_.zIndex=this.Ha++,y.zIndex=x.zIndex,255!=h.alpha&&(_.opacity=h.alpha/255,y.opacity=x.opacity),t(s.node).css(_),s.updateCachedTransform(),n&&(s.hasStateFlag(M)&&s.zs.flags(M),a.hasStateFlag(M)&&a.zs.flags(M),t(a).triggerHandler(t.Event("ap-accept",{value:s})),a instanceof vn&&a.submit(s)),!0},startDragOut:function(i,s){var e=this.Fa.indexOf(i),n={x:0,y:0};if(e<0)return n;if(this.Fa.splice(e,1),delete i.dropTarget,i.Ga){var r=i.translate();t(i.node).css(i.Ga),i.updateCachedTransform(),delete i.Ga;var a=i.translate();n.x=r.translateX-a.translateX,n.y=r.translateY-a.translateY}if(s&&t(this.La).triggerHandler(t.Event("ap-dragout",{value:i})),this.Ua.posType===l&&(this.Ka=this.ja=this.Qa=0,this.Fa.length)){var h,o,u,c,f=this.La,d={t:f.node.offsetTop,l:f.node.offsetLeft,w:f.node.clientWidth,h:f.node.clientHeight},p=t(f.node).css("transform-origin").split(" "),v=f.node.style.transform,m=this.Ua.scale/100,g="";for(p[0]=parseFloat(p[0]),p[1]=parseFloat(p[1]),"none"===v&&(v=""),e=0;e<this.Fa.length;++e)h={w:(i=this.Fa[e]).node.clientWidth,h:i.node.clientHeight},1!==m&&(g="translate("+-h.w/2+"px, "+-h.h/2+"px) scale("+m+", "+m+") translate("+h.w/2+"px, "+h.h/2+"px)",h.w*=m,h.h*=m),this.Wa(h,d,this.Ua.posVal),o=t(i.node).css("transform-origin").split(" "),u=d.l+p[0]-(i.node.offsetLeft+parseFloat(o[0])),c=d.t+p[1]-(i.node.offsetTop+parseFloat(o[1])),t(i.node).css("transform","translate("+u+"px, "+c+"px) "+v+" translate("+-u+"px, "+-c+"px) translate("+(h.l-i.node.offsetLeft)+"px, "+(h.t-i.node.offsetTop)+"px) "+g),i.updateCachedTransform()}return n},clear:function(){for(var t=this.Fa;t.length;)this.startDragOut(t[t.length-1]);this.Ha=Qt.us},layout:function(){for(var t=this.La;t;){if("none"===t.node.style.display)return;t=t.parent}var i,s,e=this.Fa,n=[],r=[];if(e.length){for(;e.length;)i=e[e.length-1],n.push(i),r.push(i.$a||{x:0,y:0}),this.startDragOut(i);for(this.Ha=Qt.us,s=n.length-1;s>=0;--s)this.drop(n[s],r[s],!1)}},absolutePosition:function(){return this.Ua.posType===c},Va:function(t,i,s){t.t=i.t+(i.h-t.h)*is(s/3)/2,t.l=i.l+(i.w-t.w)*(s%3)/2},Wa:function(t,i,s){var e,n,r,a,h,o,u;switch(this.Ka||(this.Ka=We.TileMargin),this.ja||(this.ja=We.TileMargin),this.Qa||(this.Qa=0),s){case d:case p:case g:case b:default:r=t.w,a=t.h,h=i.w,o=!1;break;case v:case m:case w:case _:r=t.h,a=t.w,h=i.h,o=!0}(this.Ka+r>h?(this.ja+=this.Qa+We.TileMargin,e=this.ja,n=We.TileMargin,this.Ka=n+r+We.TileMargin,this.Qa=a):(e=this.ja,n=this.Ka,this.Ka+=r+We.TileMargin,a>this.Qa&&(this.Qa=a)),o)&&(u=e,e=n,n=u);switch(s){case d:case m:default:t.t=i.t+e,t.l=i.l+n;break;case p:case v:t.t=i.t+i.h-e-t.h,t.l=i.l+n;break;case g:case _:t.t=i.t+e,t.l=i.l+i.w-n-t.w;break;case b:case w:t.t=i.t+i.h-e-t.h,t.l=i.l+i.w-n-t.w}}};var Qe={showProp:function(){return"block"},hideProp:function(){return"none"},rotate:function(){return 0},rotateToSlide:function(){for(var t=this,i=0;t&&t!=this.slide;)i+=t.rotate(),t=t.parent;return i},offsetPosition:function(){return this.node?{x:this.node.offsetLeft,y:this.node.offsetTop}:{x:0,y:0}},offsetSize:function(){return this.node?{width:this.node.offsetWidth,height:this.node.offsetHeight}:{width:0,height:0}},transformOrigin:function(t){if(!this.node)return{x:0,y:0};if(t){var i=this.node.getBoundingClientRect(),s=this.slide.node.getBoundingClientRect();return{x:((i.left+i.right)/2-s.left)/this.slide.prez().Nn(),y:((i.top+i.bottom)/2-s.top)/this.slide.prez().Nn()}}var e=this.offsetSize();return{x:e.width/2,y:e.height/2}},contentBox:function(){var t=this.offsetSize();return{x:0,y:0,width:t.width,height:t.height}},transformedContentBox:function(t){if(!this.node)return{x:0,y:0,width:0,height:0};var i=t?this.slide.node:this.node.parentNode,s=this.node.getBoundingClientRect(),e=i.getBoundingClientRect(),n=this.slide.prez().Nn();return{x:(s.left-e.left)/n,y:(s.top-e.top)/n,width:(s.right-s.left)/n,height:(s.bottom-s.top)/n}},rotatedContentBox:function(t,i){var s=this.contentBox(),e=this.transformOrigin();if(t%360){var n=Ze.translate(e.x,e.y).rotate(t).translate(-e.x,-e.y),r=Ge(n,s.x,s.y),a=Ge(n,s.x+s.width,s.y),h=Ge(n,s.x+s.width,s.y+s.height),o=Ge(n,s.x,s.y+s.height);s.x=Wi(r.x,a.x,h.x,o.x),s.y=Wi(r.y,a.y,h.y,o.y),s.width=$i(r.x,a.x,h.x,o.x)-s.x,s.height=$i(r.y,a.y,h.y,o.y)-s.y}if(i){var u=this.transformOrigin(!0);s.x+=u.x-e.x,s.y+=u.y-e.y}else{var c=this.offsetPosition();s.x+=c.x,s.y+=c.y}return s}},qe=js(Qe,{$init:function(t,i){this.node=t,this.parent=i,this.slide=i.slide},showProp:function(){return"inline-block"}});function Je(t,i,s){var e=t.style;switch(i){case Q.AUTO:e.pointerEvents="auto",e.overflow="auto",s&&(t.scrollWidth<=t.offsetWidth?e.overflow="hidden auto":t.scrollHeight<=t.offsetHeight&&(e.overflow="auto hidden"));break;case Q.HIDDEN:t.scrollTop=0,t.scrollLeft=0,e.overflow="hidden";break;default:t.scrollTop=0,t.scrollLeft=0,e.overflow="visible"}}var tn=js(Qe,{$init:function(s,e){this.Ns=we(),this.parent=null,this.slide=s,this.children=[],e=e||{},this.ee=e,this.node=this.createNode();var n=e.isSlide,o=this;if(this.node.id||(this.node.id=s.ue.Mn(n)+this.Ns),t(this.node).addClass(n?"ap-slide":"ap-ctrl").css({position:"absolute",pointerEvents:"none"}).on("focus",function(){o.prez()&&o.prez().highlightFocus()&&t(this).addClass("ap-focused")}).on("blur",function(){t(this).removeClass("ap-focused")}),e.f&r){var u={start:function(i,s){var e=this.rlDragCtrl,n=this.style,r={x:0,y:0};if(!e||!e.Xs(!1,!0)||e.prez()&&e.prez().ended)return!1;e.qa=e.dropTarget||null,e.dropTarget&&(r=e.dropTarget.dropHelper.startDragOut(e,!0)),e.Ja=null,e.th=null,e.ih=e.sh=0,e.eh=r.x,e.nh=r.y,e.rh={left:n.left,right:n.right,top:n.top,bottom:n.bottom},e.ah=getTransformationMatrix(this.parentNode).inverse(),e.hh=e.ah.transformPoint(s.originalPosition.left,s.originalPosition.top),e.oh=parseFloat(t(this).css("left"))||0,e.uh=parseFloat(t(this).css("top"))||0,(r.x||r.y)&&(e.oh+=r.x,e.uh+=r.y,t(this).css({left:e.oh+"px",top:e.uh+"px"}));var a=e.ah.transformPoint(i.pageX,i.pageY);e.hasStateFlag(S)&&e.zs.flags(S),We.dragEffect(e,!0,a.x,a.y),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))},drag:function(i,s){var e,n,r,a=this.rlDragCtrl;if(a&&(e=a.ah.transformPoint(s.position.left,s.position.top),a.ih=e.x-a.hh.x,a.sh=e.y-a.hh.y,s.position.left=a.oh+a.ih,s.position.top=a.uh+a.sh,n=this.style.zIndex,this.style.zIndex=-1,r=os.elementFromPoint(i.clientX,i.clientY),this.style.zIndex=n,r!==a.Ja)){a.Ja=r;for(var h=null;r&&r!==os.documentElement&&(r.rlDropCtrl?h=r.rlDropCtrl:r.rlDragCtrl&&r.rlDragCtrl.dropTarget&&(h=r.rlDragCtrl.dropTarget),!h);)r=r.parentNode;h&&!h.Xs(!1,!0,!0)&&(h=null),h!==a.th&&(a.th&&(a.hasStateFlag(I)&&a.zs.flags(I),We.dropHoverEffect(a.th,!1),t(a.th).triggerHandler(t.Event("ap-dragleave",{value:a,originalEvent:i}))),a.th=h,h&&(a.hasStateFlag(E)&&a.zs.flags(E),We.dropHoverEffect(h,!0),t(a.th).triggerHandler(t.Event("ap-dragenter",{value:a,originalEvent:i}))))}},stop:function(i,s){var e,n,r=this.rlDragCtrl;if(r){(e=r.th)&&e.dropHelper.absolutePosition()&&(n=convertPointFromNodeToPage(r.node,0,0),n=convertPointFromPageToNode(e.node,n.x,n.y)),We.dragEffect(r,!1);var a,h=r.node.style,o=r.rh;for(a in o)h[a]=o[a];if(delete r.rh,r.ih+=r.eh,r.sh+=r.nh,e)r.hasStateFlag(O)&&r.zs.flags(O),We.dropHoverEffect(e,!1),e.dropHelper.drop(r,n,!0,{x:r.ih,y:r.sh}),t(r).triggerHandler(t.Event("ap-dragend",{value:r.dropTarget||null,originalEvent:i}));else{var u=r.savedData();u&&u.st?r.state(u.st):r.zs.flags(y);var c=function(){if(r.parent&&r.parent.children){var t,i,s,e=r.parent.children;for(i=0,s=e.length;i<s;++i)(t=e[i])instanceof vn&&t.Xs(!0,!0)&&t.submit(r)}};r.ee.dd[1]?(r.hasStateFlag(O)&&r.zs.flags(O),t(r).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),We.revert(r,r.ih,r.sh,We.RevertTime,c)):(r.hasStateFlag(O)&&r.zs.flags(O),r.translateBy(r.ih,r.sh),t(r).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),c())}var f=r.dropTarget||null;r.qa!=f&&ue(r,"ap-change"),delete r.qa,delete r.Ja,delete r.th,delete r.hh}}};this.node.rlDragCtrl=this,t(this.node).on("mousedown mouseup",function(t){this.rlDragCtrl&&this.rlDragCtrl.filterEvent(t)||this.rlDragCtrl.Ds(t)}).css("touchAction","none").draggable(u),Te(this.node)}else e.f&a&&(this.dropHelper=new We(this),this.node.rlDropCtrl=this);if(this.lh=this.node.clientWidth,this.dh=this.node.clientHeight,this.shape=new ur(this.node,this),this.zs=new Ve(this,e.s),this.zs.useDefault(),e.tm&&this.textMargin(e.tm[0],e.tm[1],e.tm[2],e.tm[3]),!this.flexbox||e.s&&!e.isSlide||this.flexbox(),void 0!==e.c)if(void 0!==e.ext){var c="url("+s.ue.getResource(e.c,e.ext)+"), auto";this.cursor(c)}else this.cursor(qt[e.c]);if(void 0!==e.mi&&e.k!=i.T&&e.k!=i.C){var f=!0;this.Or=s.ue.sr({ctrl:e}),this.Or||(f=!1,this.Or=new Yn(s.ue,!1));var l=this.Or;l.tr(e.n),l.Sr(e.md),l.synchronizeWithPrez(!0),f||l.loadResource(e.mi)}this.ph(),e.e&&e.e.l&&$e(this,e.e.l,s.ue.demoMode()&&!s.ee.isFeedback);var d,p,v=e.cc||[];for(d=0,p=v.length;d<p;++d)this.createChild(v[d]);if(this.vh(e.ti),void 0!==e.m){var m=ti[s.ue.options.playMode];(e.m&m)!==m&&this.mh(!1)}void 0!==e.uts&&this.userSelection(1==e.uts),e.f&h&&this.hide()},ph:function(){},id:function(){return this.ee.i},createNode:function(){return os.createElement("div")},prez:function(){return this.slide?this.slide.ue:null},mediaPlayer:function(){return this.Or},defaultCtrlData:function(){var t,i,s=this.prez().ee.l;if((t={e:{},f:0,i:-1,k:-1,m:15,n:"",s:[{a:[0],d:1,id:0,n:"Normal",w:[]}],ti:-1}).i=this.slide.gh++,0==t.s[0].w.length)for(i=0;i<s.length;++i)t.s[0].w.push([0,0,1,1]);return t},createChild:function(t){var s=function(t,s,e){if(s&&e&&void 0!==e.m){var n=ti[s.ue.options.playMode];if(!((e.m&n)==n)&&e.k!=i.I&&e.k!=i.R)return null}var r=sn[t]||sn._default;if(r)return r.apply(null,Array.prototype.slice.call(arguments,1));return null}(t.k,this.slide,t);return s&&this.insertChild(s),s},showProp:function(){return this.bh?"flex":"block"},autoWidth:function(t){return this.wh=t,t&&(this._h=!1,this.bh?this.Ya=(this.node.offsetWidth||this.lh)/(this.node.offsetHeight||this.dh)||0:this.Ya=(this.node.clientWidth||this.lh)/(this.node.clientHeight||this.dh)||0),this},autoHeight:function(t){return this._h=t,t&&(this.wh=!1,this.bh?this.Ya=(this.node.offsetWidth||this.lh)/(this.node.offsetHeight||this.dh)||0:this.Ya=(this.node.clientWidth||this.lh)/(this.node.clientHeight||this.dh)||0),this},left:function(t){return arguments.length?(this.node.style.left=as(t)?t+"px":t,this):this.node.offsetLeft},top:function(t){return arguments.length?(this.node.style.top=as(t)?t+"px":t,this):this.node.offsetTop},right:function(i){return arguments.length?(this.node.style.right=as(i)?i+"px":i,this):parseFloat(t(this.node).css("right"))},bottom:function(i){return arguments.length?(this.node.style.bottom=as(i)?i+"px":i,this):parseFloat(t(this.node).css("bottom"))},width:function(t){return arguments.length?(this.node.style.width=as(t)?t+"px":t,this.wh=!1,this.pr(),this):this.bh?this.node.offsetWidth:this.node.clientWidth},height:function(t){return arguments.length?(this.node.style.height=as(t)?t+"px":t,this._h=!1,this.pr(),this):this.bh?this.node.offsetHeight:this.node.clientHeight},Da:function(t,i,s){t=Ms(t),i=Ms(i),"%"===t.unit?t.value/=Xi:t.unit||(t.unit="px"),s===kt||s===xt?this.right(t.value+t.unit).left("auto"):this.left(t.value+t.unit).right("auto"),"%"===i.unit?i.value/=Xi:i.unit||(i.unit="px"),s===Ct||s===xt?this.bottom(i.value+i.unit).top("auto"):this.top(i.value+i.unit).bottom("auto")},size:function(t,i){return arguments.length?(this.node.style.width=as(t)?t+"px":t,this.node.style.height=as(i)?i+"px":i,this.wh=this._h=!1,this.pr(),this):{width:this.node.clientWidth,height:this.node.clientHeight}},accText:function(t){return arguments.length||(t=""),this.node.setAttribute("aria-label",t),this},vh:function(t){isNaN(t)||this!==this.slide&&(-2==t?this.node.tabIndex=-1:-1==t?this.node.removeAttribute("tabIndex"):this.node.tabIndex=t)},mh:function(t){if(!(this.yh===t||void 0===this.yh&&t)){this.yh=t;var i,s,e,n=t?"":0,r=this.node.childNodes;for(s=0,e=r.length;s<e;++s)1===(i=r[s]).nodeType&&(i.style.opacity=n)}},updateTabIndexGR:function(t){if(this!==this.slide&&t instanceof bn){var i,s,e,n=this.children,r=this.ee.ti>0?this.ee.ti:0,a=t.Th;for(i=0,s=n.length;i<s;++i)(e=n[i])instanceof bn&&e.Th===a&&(t===e?e.node.tabIndex=r:e.node.tabIndex===r&&(e.node.tabIndex=-1))}},contentBox:function(){var i=t(this.node).css("overflow"),s=0,e=0,n=this.node.offsetWidth,r=this.node.offsetHeight;if(i&&"visible"!=i)return{x:s,y:e,width:n-s,height:r-e};var a,h,o,u,c,f=this.shape.contentBox(),l=this.textContainer;for(l&&((a=this.textNode.offsetHeight)>l.offsetHeight?"middle"===this.kh?(h=l.offsetTop-(a-l.offsetHeight)/2,f.height=$i(h+a,f.y+f.height)-Wi(f.y,h),f.y=Wi(f.y,h)):"bottom"===this.kh?(h=l.offsetTop+l.offsetHeight-a)<f.y&&(f.height+=f.y-h,f.y=h):(h=l.offsetTop+a)>f.y+f.height&&(f.height=h-f.y):this.Ea&&"auto"===this.node.style.height&&("middle"===this.kh?(f.height=$i(l.offsetTop+l.offsetHeight,f.y+f.height)-Wi(f.y,l.offsetTop),f.y=Wi(f.y,l.offsetTop)):"bottom"===this.kh?l.offsetTop<f.y&&(f.height+=f.y-l.offsetTop,f.y=l.offsetTop):l.offsetTop+l.offsetHeight>f.y+f.height&&(f.height=l.offsetTop+l.offsetHeight-f.y))),s=Wi(s,f.x),e=Wi(e,f.y),n=$i(n,f.x+f.width),r=$i(r,f.y+f.height),o=0,u=this.children.length;o<u;++o)(c=this.children[o]).node.style.display!=c.hideProp()&&(f=c.transformedContentBox(),s=Wi(s,f.x),e=Wi(e,f.y),n=$i(n,f.x+f.width),r=$i(r,f.y+f.height));return{x:s,y:e,width:n-s,height:r-e}},transformedContentBox:function(t){var i=t?this.rotateToSlide():this.rotate();return this.rotatedContentBox(i,t)},xh:function(t){return t||(t={x:0,y:0},this.parent)?(this.parent&&(this.parent.xh(t),t.x+=this.parent.node.offsetLeft,t.y+=this.parent.node.offsetTop),t):t},center:function(t,i){this.Ch=t,this.Sh=i},centerX:function(){if(this.Ch){var t=this.xh().x,i=this.slide.node.clientWidth;this.left((i-this.lh)/2-t)}},centerY:function(){if(this.Sh){var t=this.xh().y,i=this.slide.node.clientHeight;this.top((i-this.dh)/2-t)}},rotate:function(t){var i=Mr.transform,s=i.get(this);return arguments.length?(s.rotate=t,i.set(this,Pr(s)?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this):s.rotate},rotateBy:function(t){var i=Mr.transform,s=i.get(this);return s.rotate+=t,i.set(this,Pr(s)?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this},translate:function(t,i){var s=Mr.transform,e=s.get(this);return arguments.length?(e.translateX=t||0,e.translateY=i||0,s.set(this,Pr(e)?"":e),this.animProps&&(this.animProps.set("translateX",e.translateX),this.animProps.set("translateY",e.translateY)),this):{translateX:e.translateX,translateY:e.translateY}},translateBy:function(t,i){var s=Mr.transform,e=s.get(this);return e.translateX+=t||0,e.translateY+=i||0,s.set(this,Pr(e)?"":e),this.animProps&&(this.animProps.set("translateX",e.translateX),this.animProps.set("translateY",e.translateY)),this},scale:function(t,i){var s=Mr.transform,e=s.get(this);return arguments.length?(1===arguments.length&&(i=t),e.scaleX=t,e.scaleY=i,s.set(this,Pr(e)?"":e),this.animProps&&(this.animProps.set("scaleX",e.scaleX),this.animProps.set("scaleY",e.scaleY)),this):{scaleX:e.scaleX,scaleY:e.scaleY}},scaleBy:function(t,i){var s=Mr.transform,e=s.get(this);return 1===arguments.length&&(i=t),e.scaleX*=t,e.scaleY*=i,s.set(this,Pr(e)?"":e),this.animProps&&(this.animProps.set("scaleX",e.scaleX),this.animProps.set("scaleY",e.scaleY)),this},flip:function(t,i){return this.shape.flip(t,i),this.textContainer&&this.Oa(),this},transform:function(t,i,s,e,n){var r=Mr.transform,a=r.get(this);return arguments.length?(a.translateX=t||0,a.translateY=i||0,a.rotate=s||0,a.scaleX=void 0===e?1:e,a.scaleY=void 0===n?a.scaleX:n,r.set(this,Pr(a)?"":a),this.animProps&&this.animProps.set("transform",a),this):a},updateCachedTransform:function(){if(this.animProps){var t=Mr.transform.get(this);this.animProps.set("transform",t)}return this},flexbox:function(t){if(delete this.bh,t){this.bh=!0;var i=this.node.style;switch(i.display!==this.hideProp()&&(i.display=this.showProp()),i.flexDirection=t[0]==A?"row":"column",i.flexWrap=t[1]?"wrap":"nowrap",i.boxSizing="border-box",t[2]){case D:i.justifyContent="flex-start";break;case Y:i.justifyContent="center";break;case X:i.justifyContent="flex-end";break;case L:i.justifyContent="space-between";break;case F:i.justifyContent="space-around"}switch(t[3]){case H:i.alignContent="flex-start";break;case U:i.alignContent="center";break;case B:i.alignContent="flex-end";break;case Z:i.alignContent="stretch";break;case z:i.alignContent="space-between";break;case G:i.alignContent="space-around"}this.dr(t[4])}},dr:function(t){Je(this.node,t)},flexChild:function(t){delete this.Oh,delete this.Eh,delete this.Ea;var i=this.node.style;if(t){this.Ea=!0,this.lh=0,this.dh=0,i.position="relative",i.left="",i.right="",i.top="",i.bottom="",i.flexGrow=t[0],i.flexShrink=t[1];var s=t[2],e=t[3];switch(1===t[9]?this.Oh={type:"width"}:2===t[9]&&(this.Oh={type:"height"}),this.Oh&&"width"===this.Oh.type?this.Oh.value=t[2]/Xi:"a"===s?i.width="auto":("%"===(s=Ms(t[2])).unit?s.value/=Xi:s.unit||(s.unit="px"),i.width=s.value+s.unit),this.Oh&&"height"===this.Oh.type?this.Oh.value=t[3]/Xi:"a"===e?i.height="auto":("%"===(e=Ms(t[3])).unit?e.value/=Xi:e.unit||(e.unit="px"),i.height=e.value+e.unit),i.marginTop=t[4]+"px ",i.marginLeft=t[5]+"px",i.marginRight=t[6]+"px",i.marginBottom=t[7]+"px",t[8]){case j:i.alignSelf="auto";break;case V:i.alignSelf="flex-start";break;case W:i.alignSelf="center";break;case $:i.alignSelf="flex-end";break;case K:i.alignSelf="stretch"}t[10]&&(i.minWidth=t[10]+"px"),t[11]&&(i.minHeight=t[11]+"px"),"a"!==s&&"a"!==e||(this.Eh=!0)}else i.position="absolute"},Ih:function(){for(var t,i=this.children,s=0,e=i.length;s<e;++s)(t=i[s]).Ih&&t.Ih();this.textContainer&&this.Oa(),this.shape&&this.shape.layout()},Pa:function(t){for(var i=this.parent,s=null;i&&i.bh;){if(!((s=i.parent)&&s.bh&&i.Ea)){i.pr&&(i.pr(),i.pr());break}i=s}},Ia:function(){if(!ye.browser.safari)return!1;for(var t,i,s,e,n,r,a,h=this.bh&&"column"===this.node.style.flexDirection,o=!1,u=this.children,c=0,f=u.length;c<f;++c)if(s=(i=u[c]).node.style,t=!1,i.bh){if(h&&parseInt(s.flexGrow)>0&&"auto"===s.height)for(n=0,r=(e=i.children).length;n<r;++n)if("auto"===(a=e[n]).node.style.height)t=!0;else if("%"===Ms(a.node.style.height).unit){s.height="0%",o=!0;break}i.Ia()&&(t&&h&&(s.height="0%"),o=!0)}return o},Ph:function(t,i){var s,e,n,r=this.children;if(t===this.lh&&i===this.dh&&this.bh)for(e=0,n=r.length;e<n;++e)(s=r[e]).Ea&&(s.bh?s.pr():s.node.clientWidth===s.lh&&s.node.clientHeight===s.dh||s.pr())},pr:function(){if(this.visible())if(this.Rh||(this.Rh=0),this.Rh>10)ms("Recursive checking resized: "+this.name());else{++this.Rh;var t=this.node.clientWidth,i=this.node.clientHeight;if(this.bh&&(t=this.node.offsetWidth,i=this.node.offsetHeight),this.Oh&&this.parent&&this.parent.bh){var s=this.parent.node.style.flexDirection||"row";"height"==this.Oh.type?"row"==s||0==parseInt(this.node.style.flexShrink)?(i=t/this.Oh.value,this.lh=t):delete this.Oh:"column"==s||0==parseInt(this.node.style.flexShrink)?(t=i*this.Oh.value,this.dh=i):delete this.Oh}if(this.Ph(t,i),t===this.lh&&i===this.dh&&!this.Xa)return this.centerX(),this.centerY(),void--this.Rh;if(!this.Oh&&this.Ea)this.lh=t,this.dh=i,this.onResized(),this.bh||(this.lh=this.node.clientWidth,this.dh=this.node.clientHeight);else{var e=t-this.lh,n=i-this.dh;this.lh=t,this.dh=i,this.onResized(e,n)}var r,a,h,o=this.children,u=[];for(a=0,h=o.length;a<h;++a)(r=o[a]).pr(),r.dropHelper&&u.push(r);for(this.Ph(t,i),a=0,h=u.length;a<h;++a)u[a].dropHelper.layout();--this.Rh}else this.lh=this.dh=0},onResized:function(t,i){!this._h&&!this.wh||this.Eh||(this.Ya?this._h?(t||this.Xa)&&(delete this.Xa,this.height(this.lh/this.Ya),this._h=!0):(i||this.Xa)&&(delete this.Xa,this.width(this.Ya*this.dh),this.wh=!0):this.Ya=this.lh/this.dh||0),delete this.Xa,this.Oh&&(t&&this.width(this.lh),i&&this.height(this.dh)),this.centerX(),this.centerY(),this.textContainer&&(this.Oa(),this.textVerticalAlign(this.kh)),this.shape.layout(),this.dropTarget&&this.dropTarget.dropHelper?this.dropTarget.dropHelper.layout():this.dropHelper&&(this.dropHelper.layout(),this.parent&&this.parent.Mh(this))},Nh:function(){var t,i,s=this.children;for(t=0,i=s.length;t<i;++t)s[t].Nh()},onLayoutSwitched:function(){this.zs.layout();var t,i,s,e=this.children,n=[];for(t=0,i=e.length;t<i;++t)(s=e[t]).onLayoutSwitched(),s.dropHelper&&n.push(s);if(this.bh)for(t=0,i=e.length;t<i;++t)(s=e[t]).Ea&&s.onResized&&s.onResized();for(t=0,i=n.length;t<i;++t)n[t].dropHelper.layout()},insertChild:function(t,i){return t&&(t.parent=this,t.slide=this.slide,isNaN(i)||null===i||i<0&&i>=this.children.length?(t.node.parentNode||this.node.appendChild(t.node),this.children.push(t)):(t.node.parentNode||this.node.insertBefore(t.node,this.children[i].node),this.children.splice(i,0,t)),t.Ah(),t.pr()),this},findObject:function(t,i){var s=[];if(t(this)){if(!i)return this;s.push(this)}for(var e=0,n=this.children.length;e<n;++e){var r=this.children[e].findObject(t,i);if(!i&&r)return r;s=s.concat(r)}return i?s:null},Dh:function(t,i){var s=this;return this.findObject(function(e){return e.id()==t&&(i||e!=s)},!1)},remove:function(){if(this.parent){var t=this.parent.children.indexOf(this);t>-1&&this.parent.children.splice(t,1),this.node.parentNode==this.parent.node&&this.parent.node.removeChild(this.node),this.parent=null}return this.Yh(),this.cleanup()},Ah:function(){var t,i,s=this.slide;for(s.gh<=this.ee.i&&(s.gh=this.ee.i+1),s.Xh[this.ee.i]=this,s.Lh[this.ee.n]=this,t=0,i=this.children.length;t<i;++t)this.children[t].Ah()},Yh:function(){var t,i,s=this.slide;for(delete s.Xh[this.ee.i],delete s.Lh[this.ee.n],t=0,i=this.children.length;t<i;++t)this.children[t].Yh()},state:function(t){return arguments.length?(typeof t===Hi?this.zs.name(t):this.zs.id(t),this.savedCurrentState(t),this):this.zs.name()},savedCurrentState:function(t){var i=this.savedData(!0);if(i)if(arguments.length)i.st=t;else{var s=(t=this.zs).ee[t.Fe];i.st=s.i}return this},Fh:function(){return os.createElement("div")},Hh:function(t){if(vs.innerHTML=t,(this.splitTexts?this.splitTexts.Uh:this.textNode.innerHTML)!==vs.innerHTML&&(this.textNode.innerHTML=t,this.splitTexts)){var i=function(t){var i={chars:!!t.chars,words:!!t.words};if(t.processStyles){var s,e=[];for(s in t.processStyles)e.push(s);e.length&&(i.processStyles=e.join(","))}return i}(this.splitTexts);delete this.splitTexts,this.splitText(i),this.slide.Bh()}},Zh:function(){var t="";return this.Eh?t+="position: relative;":t+="position: absolute;",this.ee.k===i.u&&this.ee.t===s.dt?t+="left: 0%; top: 0%; overflow: auto; word-wrap: break-word; pointer-events: auto;":t+="left: 0; right: 0; word-wrap: break-word; pointer-events: auto;",t},zh:function(){if(!this.textNode){this.textContainer=os.createElement("div"),this.node.appendChild(this.textContainer);var t=this.textContainer.style;this.Eh?(t.position="relative",t.boxSizing="border-box",t.width="100%",t.height=""):(t.position="absolute",t.width="",t.height="",t.boxSizing=""),this.Oa(),this.textNode=this.Fh(),t=this.textNode.style,this.Gh?t.cssText=this.Gh:(t.position="absolute",t.left=t.right=0,t.wordWrap="break-word",t.pointerEvents="auto"),this.kh&&this.textVerticalAlign(this.kh),this.textContainer.appendChild(this.textNode),!1===this.yh&&(this.textContainer.style.opacity=0),delete this.Vh,this.Wh&&100!=this.Wh&&this.$h()}},html:function(t){if(!arguments.length)return this.textNode?this.textNode.innerHTML:"";if(t+="",!this.textNode&&t&&this.zh(),this.textNode){if(this.Wh&&100!=this.Wh){this.Kh=t;var i={css:this.textNode.style.cssText,html:t};ks(i,this.Wh/100),t=i.html}else delete this.Kh;var s=this,e=this.slide.ue.vars,n=e.replace(t);this.Hh(n.text),this.jh&&(e.removeObserver(this.jh),delete this.jh),n.vars.length?(this.Qh=t,this.jh=function(){s.Hh(e.replace(s.Qh).text)},e.addObserver(n.vars,this.jh)):delete this.Qh}return this},text:function(t){return arguments.length?this.html(_s(t,!0)):this.textNode&&this.textNode.textContent||""},splitText:function(i){if(!this.textNode)return this;i&&i.chars&&(i=ns({},i,{words:!0}));var s,e,n,r,a,h=this.textNode.innerHTML,o=ye.splitText(this.textNode,i),u=["chars","words"],c=this;o.Uh=h,this.splitTexts=o,o.listItems||(o.listItems=[],t("li",this.textContainer).each(function(){o.listItems.push(new qe(this,c))}));for(var f=0;f<2;++f){if(1==f){if(!(o=o.processStyles))break;u.length=0;for(n in o)u.push(n)}for(r=0;r<u.length;++r)if(n=u[r],a=o[n])for(s=0,e=a.length;s<e;++s)a[s]=new qe(a[s],this)}return this},unsplitText:function(){return this.textNode&&this.splitTexts&&void 0!==this.splitTexts.Uh&&(this.textNode.innerHTML=this.splitTexts.Uh,delete this.splitTexts),this},textStyle:function(t){return t=(t||"")+this.Zh(),this.textNode?(this.textNode.style.cssText=t,delete this.Vh,this.Wh&&100!=this.Wh&&this.$h()):this.Gh=t,this},textVerticalAlign:function(t){if(!arguments.length)return this.kh||"top";if("middle"===t||"top"===t||"bottom"===t){if(this.textNode){var i=this.textNode.style;i.top="",i.bottom="",i[Xs]="","top"===t?(i.top=0,i.bottom="auto",i[Xs]=""):"bottom"===t?(i.top="auto",i.bottom=0,i[Xs]=""):(this.Eh||(i.top="50%",i[Xs]="translateY(-50%)"),i.bottom="auto")}this.kh=t}return this},textMargin:function(t,i,s,e){return arguments.length?(this.qh=[t,i,s,e],this.textContainer&&this.Oa(),this):(this.qh||(this.qh=[5,5,5,5]),this.qh.slice())},fontScale:function(t){if(!arguments.length)return this.Wh||100;if(t!=(this.Wh||100)){var i;if(this.Wh=t,this.textNode)i=void 0!==this.Kh?this.Kh:void 0!==this.Qh?this.Qh:this.html(),this.html(i),this.$h();return this}},$h:function(){this.textNode&&(void 0===this.Vh&&(this.Vh=parseFloat(t(this.textNode).css("font-size"))||16),this.textNode.style.fontSize=this.Vh*this.Wh/100+"px")},Oa:function(){var t,i=this.textMargin(),s=this.textContainer.style;if(this.Eh){if(!this.textNode)return;s.position="relative",s.boxSizing="border-box",s.width="100%",s.height="",s.left="",s.right="",s.top="",s.bottom="",s.padding=0,this.textNode.style.position="relative",t=this.shape.textMargin(this.node.clientWidth,this.node.clientHeight),s.paddingLeft=i[0]+t[0]+"px",s.paddingRight=i[2]+t[2]+"px";var e=(this.shape.shapeSizeForText(this.textNode.clientWidth,this.textNode.clientHeight+i[1]+i[3])[1]-this.node.clientHeight)/2+"px";s.paddingTop=e,s.paddingBottom=e,t=this.shape.textMargin(this.node.clientWidth,this.node.clientHeight),s.paddingLeft=i[0]+t[0]+"px",s.paddingTop=i[1]+t[1]+"px",s.paddingRight=i[2]+t[2]+"px",s.paddingBottom=i[3]+t[3]+"px","middle"===this.kh?s.top=(this.node.clientHeight-this.textContainer.clientHeight)/2+"px":"bottom"===this.kh&&(s.top=this.node.clientHeight-this.textContainer.clientHeight+"px")}else s.position="absolute",s.padding="",s.width="",s.height="",s.boxSizing="",this.textNode&&(this.textNode.style.position="absolute"),t=this.shape.textMargin(this.node.clientWidth,this.node.clientHeight),s.left=i[0]+t[0]+"px",s.top=i[1]+t[1]+"px",s.right=i[2]+t[2]+"px",s.bottom=i[3]+t[3]+"px"},cursor:function(t){return this.node.style.cursor=t,this},qr:function(i){var s=null;if(this.node==i)s=this;else if(t.contains(this.node,i)){var e,n=this.children;for(e=n.length-1;e>=0;--e)if(s=n[e].qr(i))return s;s=this}return s},filterEvent:function(i){var s=!1,e=i.target,n=i.relatedTarget;switch(i.type){case"mouseover":case"mouseout":s=e===this.node||e===this.shape.node||!!n&&t.contains(this.node,n)&&n!==this.node&&n!==this.shape.node;break;case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":case"mouseup":case"click":case"dblclick":s=e===this.node||e===this.shape.node}return s},on:function(i,s){return s?(e=i+"-hdl",n=function(t){return s.call(this,t,this.prez())},this.Jh||(this.Jh={}),this.Jh[e]||(this.Jh[e]=[]),this.Jh[e].push([s,n]),t(this).on(i,n),this):this;var e,n},off:function(i,s){if(!arguments.length)return t(this).off(),delete this.Jh,this;var e,n=i+"-hdl",r=this.Jh?this.Jh[n]:null;if(s){if(r){for(e=r.length-1;e>=0;--e)if(r[e][0]===s){t(this).off(i,r[e][1]),r.splice(e,1);break}r.length||delete this.Jh[n]}}else t(this).off(i),this.Jh&&delete this.Jh[n];return this},Ms:function(){return this.node},Xr:function(t){return this.Jh&&this.Jh[t+"-hdl"]},Ds:function(t){var i=t.originalEvent;t.apOrgTarget||i&&i.apOrgTarget||(t.apOrgTarget=this.Ns,i&&(i.apOrgTarget=this.Ns))},As:function(t){var i=t.originalEvent,s=t.apOrgTarget||i&&i.apOrgTarget;return s&&s!=this.Ns},show:function(t,i,s){return this.animate(t||ye.EffectType.APPEAR,i,s)},hide:function(t,i,s){return this.animate(t||ye.EffectType.DISAPPEAR,i,s)},alwaysHide:function(t){var i,s;!this.to!=!t&&(t?(this.to=!0,(i=this.node.style.display)==(s=this.hideProp())&&(i=void 0)):(delete this.to,s=this.io),void 0!==s&&(Mr.display.set(this,s),this.animProps&&this.animProps.set("display",s)),void 0!==i&&(this.io=i));return this},animate:function(t,i,s){"object"!=typeof s&&(s={direction:s});var e=new Ur,n=this,r=ye.createEffect(this,t,0,i||0,s);if(!r)return this;this.js(e),e.addChild(r).addChild(new Yr(function(){setTimeout(function(){n.Ks(e)},0),s.callback&&s.callback.call(n)},{startTime:e.duration(),duration:0}));var a=this.prez();return e.startTime(a.timeline.totalTime()),a.timeline.addChild(e),e.setup(),e.play(0),this},visible:function(){return this.node.style.display!==this.hideProp()},disable:function(t){arguments.length||(t=!0);var i=this.zs.flags();return t?i|=x:i&=~x,this.zs.flags(i),this},hasStateFlag:function(t){var i=!1;if(this.zs){var s,e,n=this.zs;for(s=0,e=n.ee.length;s<e;++s)if((n.ee[s].p&t)==t){i=!0;break}}return i},enable:function(t){return arguments.length||(t=!0),this.disable(!t)},disabled:function(){return(this.zs.flags()&x)===x},enabled:function(){return!this.disabled()},cleanup:function(){var i,s,e=this.so,n=this.children;if(e){for(i=0,s=e.length;i<s;++i)e[i].remove();delete this.so}for(this.node.rlDragCtrl&&(t(this.node).draggable("destroy"),delete this.node.rlDragCtrl),this.node.rlDropCtrl&&delete this.node.rlDropCtrl,this.jh&&(this.prez().vars.removeObserver(this.jh),delete this.jh,delete this.Qh),this.Or&&this.Or.cleanup(),i=0,s=n.length;i<s;++i)n[i].cleanup();return this},js:function(t){t&&(t.slide=this.slide,this.so?this.so.push(t):this.so=[t])},Ks:function(t){if(t&&(t.remove(),this.so)){var i=this.so.indexOf(t);i>=0&&this.so.splice(i,1)}return this},la:function(t){var i,s=this.so;if(s)for(i=s.length-1;i>=0;--i)if(t(s[i]))return s[i];return null},$s:function(t){var i,s=[],e=this.so;if(e)for(i=e.length-1;i>=0;--i)t(e[i])&&s.push(e[i]);return s},Gs:function(t){var i=this.slide.ue.time();t?(void 0!==this.eo&&(this.eo>=i&&delete this.Vs,delete this.eo),!1!==this.Vs&&(this.Xs(!0,!0)||this.no)?(this.no&&delete this.no,this.Vs=!0,this.slide.ue.pause(!0)):!1===this.Vs&&delete this.Vs):(this.Vs&&this.slide.ue.pause(!1),this.Vs=!1,this.eo=i)},ro:function(i){var s,e=this.slide.ue.timeline,n=this,r=this.prez(),a=function(){n.Xs(!0,!0)&&(n.disable(),r&&!r.ended&&t(n).triggerHandler("ap-timeout"))};i>0?(s=new Ur({startTime:0}),this.js(s),s.addChild(new Yr(a,{startTime:e.totalTime()+i})),e.addChild(s,!0)):a()},savedData:function(t){var i,s=this.slide.savedData(t);return s&&(i=s[this.ee.i],t&&!i&&(i=s[this.ee.i]={})),i},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,i,s,e=this.children;for(t=0,i=e.length;t<i;++t)(s=e[t]).Xs(!0,!1)&&s.submit();return this},clear:function(t,i){if(this.prez()&&this.prez().ended&&!i)return this;this.dropHelper&&this.dropHelper.clear();var s,e,n,r=this.children;for(s=0,e=r.length;s<e;++s)n=r[s],t&&!n.Xs(!0,!1)||n.clear(t,i);return this},restore:function(t){t||(t=this.savedData()),this.ee.rs&&t&&void 0!=t.st&&this.zs&&(this.state(t.st),this.pr());var i,s,e=this.children;for(i=0,s=e.length;i<s;++i)e[i].restore();return this},score:function(){var t=this.savedData(),i=0;return t&&(i=t.p||0,t.r==Xt.zi&&t.sp&&(i-=t.sp)),i},attempts:function(){var t=this.savedData();return t&&t.a||0},ao:function(t){var i=this.maxAttempts();i>=0&&t>=i&&this.disable()},maxAttempts:function(t){var i=this.ee.e;return arguments.length?(i||(i=this.ee.e={}),i.a=t<0?-1:t,this.ao(this.attempts()),this):i&&void 0!==i.a?i.a:-1},ho:function(i,s,e,n,r,a,h){var o,u=!1,c=!1;switch(s){case Xt.zi:c=!0,o="ap-correct";break;case Xt.Gi:c=!0,o="ap-incorrect";break;case Xt.Zi:o="ap-complete";break;case Xt.Vi:u=!0,o="ap-incomplete";break;default:return}var f=this.prez();if(i.r=s,i.v=e,void 0!==n)if(i.p=n,s==Xt.Gi){var l=Ts(f.vars.get("apScoreSubtract"),10)||0;i.sp=l}else s==Xt.zi&&i.sp&&(n-=i.sp);else delete i.p,delete i.sp;if(r?i.n=1:delete i.n,h?i.d=h:delete i.d,c&&!u&&(i.a?++i.a:i.a=1,this.disabled()||(this.ao(i.a),this.disabled()&&(this.no=!0))),!f.lms||u||r)f.te(!0);else{var d=this.ee,p=f.learnerResponse(this.slide.ee,d,i),v=f.correctResponses(this.slide.ee,d),m={reportid:d.r,kind:d.k,type:d.t,multiline:d.f&ct.xt,name:d.n,slideId:this.slide.ee.i};f.lms.storeInteractionData(m,s,n,p,v)}if(t(this).triggerHandler(t.Event(o),{value:a}),void 0!==n&&s==Xt.Gi){var g=Ts(f.vars.get("apScoreSubtract"),10)||0;g!=l&&(i.sp=g,f.ended||f.te(!0))}Me(f.vars,"apQuizScore apQuizScorePercentage apQuizPassed apQuizPassedBool apQuizTakenInteractions apQuizUnTakenInteractions apQuizCorrectInteractions apQuizIncorrectInteractions apDetailedResult apDetailedResult2")},Xs:function(t,i,s){var e=this.prez(),n=(!e.allPaused()||e.ended)&&(s||!e.isBuffering())&&(!t||this.visible())&&this.enabled();if(n){if(e.demoMode()&&!this.slide.ee.isFeedback)return!1;if(i)for(var r=this.parent;r;){if(t&&!r.visible()||!r.enabled())return!1;r=r.parent}}return n},oo:function(){if(this.Or){var i,s,e=["play","pause","ended"],n=["ap-play","ap-pause","ap-ended"],r=this,a=function(i){return function(){t(r).triggerHandler(t.Event(i),{})}};for(i=0,s=e.length;i<s;++i)this.Or.ua(e[i],a(n[i]))}},name:function(){return this.ee.n||""},uo:function(){this.co&&(this.co.parentNode&&this.co.parentNode.removeChild(this.co),delete this.co),this.fo&&(this.fo.parentNode&&this.fo.parentNode.removeChild(this.fo),delete this.fo),this.lo&&(this.lo.parentNode&&this.lo.parentNode.removeChild(this.lo),delete this.lo),this.do&&(this.do.parentNode&&this.do.parentNode.removeChild(this.do),delete this.do),this.slide.po&&(this.slide.po.parentNode&&this.slide.po.parentNode.removeChild(this.slide.po),delete this.slide.po)},se:function(t){var i,s,e,n=this.children;for(i=0,s=n.length;i<s;++i)(e=n[i]).se&&e.se(t);return this},vo:function(t,i){t&&(t.style.alignSelf="middle-right"===i?"flex-end":"center")},mo:function(t,i){t&&(t.style.position="absolute","top-center"===i?(t.style.left="50%",t.style.transform="translateX(-50%) translateY(-100%)",t.style.textAlign="center"):"middle-right"===i?(t.style.left="100%",t.style.top="50%",t.style.transform="translateY(-50%)",t.style.textAlign="left"):"bottom-center"===i?(t.style.left="50%",t.style.top="100%",t.style.transform="translateX(-50%)",t.style.textAlign="center"):"middle-left"===i?(t.style.top="50%",t.style.transform="translateX(-100%) translateY(-50%)",t.style.textAlign="right"):"bottom-left"===i?(t.style.top="100%",t.style.textAlign="left"):"middle-left-inner"===i?(t.style.top="50%",t.style.transform="translateX(50%) translateY(-50%)",t.style.textAlign="center"):"top-left-outer"===i?(t.style.transform="translateX(-100%)",t.style.textAlign="center"):"top-left-inner"===i?t.style.textAlign="center":(t.style.top="50%",t.style.left="50%",t.style.transform="translateX(-50%) translateY(-50%)",t.style.textAlign="center"))},bo:function(t,i){var s=os.createElement("div");s.style.position="absolute",s.style.background=t===Xt.zi?"#2fae62":t===Xt.Gi?"#d15327":"#e47c30",s.style.width="100%",s.style.height="40px",s.style.top="100%",s.style.transform="translateY(-100%)";var e=os.createElement("div"),n=os.createTextNode(i);return e.style.color="white",e.style.left="50%",e.style.top="50%",e.style.position="absolute",e.style.transform="translate(-50%, -50%)",e.appendChild(n),s.appendChild(e),s},wo:function(t,i,s){var e=!1;if(Array.isArray(i)){for(var n="",r=0,a=i.length;r<a;++r)n+=i[r],r<a-1&&(n+=", ");i=n,e=!0}var h=os.createElement("div");h.style.position="absolute",h.style.background=null!==t?t?"#2fae62":"#d15327":"#A9A9A9",h.style.backgroundClip="padding-box",h.style.borderRadius="32px",h.style.border="1px solid #ffffff",h.style.opacity=.8;var o=os.createElement("div"),u=os.createTextNode(i);return o.style.color="white",e?(h.style.display="inline-flex",h.style.padding="8px"):(h.style.height=h.style.width="32px",o.style.left="50%",o.style.top="50%",o.style.position="absolute",o.style.transform="translate(-50%, -50%)"),o.appendChild(u),h.appendChild(o),this.mo(h,s),h.style.zIndex=Qt.ls,h},_o:function(t,i,s,e){var n=[],r=Ke(this);r.length&&n.push(r);var a,h=s.correctAnswers,o=s.yourAnswerCtrls,u=s.correctAnswerCtrls,c=s.options,f=c.showValues||null!==i&&(o||u),l=this.yo(i,e||"middle-right",f);l&&(f&&(a=l.querySelector(".ap-feedback-popup"))&&(h?this.To(a,h):(o||u)&&this.ko(a,i,o,u,c)),t.xo?t.xo(l,this):t.appendChild(l));for(var d=0,p=n.length;d<p;++d)je(n[d]);return{checkMark:l,popup:a}},yo:function(i,s,e){var n=this.slide.prez(),r=this,a=n.ee.playerIcons.correct,h=n.ee.playerIcons.incorrect,o=os.createElement("div");o.className="ap-feedback-popup-container";var u=os.createElement("button");if(o.appendChild(u),null!==i&&(i?u.appendChild(t(a)[0]):u.appendChild(t(h)[0])),u.className="ap-feedback-popup-btn",u.setAttribute("correct",i),this.vo(u,s),e){u.classList.add("ap-feedback-popup-btn-animation");var c=os.createElement("div");o.appendChild(c),u.addEventListener("mousedown",function(){var i=c.style,s="none"!==i.display;if(i.display=s?"none":"block",!s){i.left="",i.top="",i.width="",i.height="";var e=r.slide.node.getBoundingClientRect(),n=this.getBoundingClientRect(),a=c.getBoundingClientRect(),h=a.width,o=a.height,u=c.offsetWidth,f=c.offsetHeight,l=h/u,d=o/f;i.width||(u+=.5);var p,v,m,g,b,w=n.left-h,_=n.top-o,y=n.right+h,T=n.bottom+o,k=n.left+n.width/2-h/2,x=k+h;if(k>=e.left&&x<=e.right&&(T<=e.bottom?(p=!0,m=this.offsetTop+this.offsetHeight+(parseInt(t(this).css("marginBottom"))||0)):_>=e.top&&(p=!0,m=this.offsetTop-(parseInt(t(this).css("marginTop"))||0)-f),v=this.offsetLeft+this.offsetWidth/2-u/2),!p&&(w>=e.left||y<=e.right)){p=!0;var C=!0,S=e.right-n.right;w>=e.left?(E=parseInt(t(this).css("marginLeft"))||0,v=this.offsetLeft-E-u,S=n.left-e.left):(E=parseInt(t(this).css("marginRight"))||0,v=this.offsetLeft+this.offsetWidth+E,C=!1),g=u,o>e.height&&(b=(o=e.height)/d,i.height=b+"px",u!==c.offsetWidth&&c.offsetWidth<=S&&(g=c.offsetWidth+.5,C&&(v=this.offsetLeft-E-g)));var O=(n.top+n.bottom)/2-o/2;O<e.top?m=this.offsetTop+(e.top-n.top)/d:O+o>e.bottom&&(m=this.offsetTop+(e.bottom-o-n.top)/d)}if(!p){var E,I=!0,P=e.bottom-n.bottom;P>=n.top-e.top?(E=parseInt(t(this).css("marginBottom"))||0,m=this.offsetTop+this.offsetHeight+E,I=!1):(P=n.top-e.top,E=parseInt(t(this).css("marginTop"))||0,m=this.offsetTop-E-f),h>e.width?(g=e.width/l,i.width=g+"px",b=Wi(P/d-E,c.offsetHeight+.5),v=this.offsetLeft+(e.left-n.left)/l,I&&(m=this.offsetTop-E-b)):(o>P&&(b=P/d-E,i.height=b+"px",I&&(m=this.offsetTop-E-b)),k<e.left?v=0:x>e.right&&(v=this.offsetLeft-c.offsetWidth+(e.right-n.left)/l))}i.left=void 0!==v?v+"px":"",i.top=void 0!==m?m+"px":"",i.width=void 0!==g?g+"px":"",i.height=void 0!==b?b+"px":""}}),os.addEventListener("mousedown",function(t){var i=t.target;i===c||i===u||c.contains(i)||u.contains(i)||(c.style.display="none")}),n.ui&&t(n.ui).on("ui:ap-layout",function(){c.style.display="none"}),c.className="ap-feedback-popup",c.style.display="none"}return o},ko:function(i,s,e,n,r){var a=[],h=Ke(this);h.length&&a.push(h);var o,u,c,f=this.slide.prez(),l=f.ee.playerIcons.correct,d=f.ee.playerIcons.incorrect;function p(t){var i=t.node,s=i.clientWidth,e=i.clientHeight;if(!i){var n=os.createElement("div");return n.style.width=180,void(n.style.height=180)}s>e?0!==s?(e*=180/s,s=180):(e=180,s=180):0!==e?(s*=180/e,e=180):(e=180,s=180);for(var r=i.cloneNode(!0),a=r.style,h={filter:a.filter};r.attributes.length>0;)r.removeAttributeNode(r.attributes[0]);a=r.style;for(var o in h)a[o]=h[o];a.width=i.clientWidth+"px",a.height=i.clientHeight+"px";var u=1,c=1;0!==i.clientWidth&&(u=Wi(s/i.clientWidth,1)),0!==i.clientHeight&&(c=Wi(e/i.clientHeight,1));var f="translate("+(s-i.clientWidth)/2+"px,"+(e-i.clientHeight)/2+"px)",l=" scale("+u+","+c+")";a.transform=f+l;var d=os.createElement("div"),p=d.style;return p.width=s+"px",p.height=e+"px",p.margin="6px",p.overflow="hidden",d.appendChild(r),d}if(null!==s)if((o=os.createElement("div")).innerHTML=f.ui.fe.text("LearnerResponse"),o.className="ap-feedback-popup-title",i.appendChild(o),(u=os.createElement("div")).className="ap-feedback-popup-answers-container",i.appendChild(u),e.length<=0)u.innerHTML='<div class="ap-feedback-popup-no-answer">--</div>';else for(var v,m,g=0,b=e.length;g<b;++g)if((c=e[g]).node){v=!1;for(var w=0;w<n.length;++w){if(n[w].id()===c.id()){v=!0;break}}var _=os.createElement("div");_.style.position="relative",(h=Ke(c)).length&&a.push(h),_.appendChild(p(c)),!r.showCorrect&&v||!r.showIncorrect&&!v||((m=t(v?l:d)[0]).style="\tposition: absolute; \t\t\t\t\t\t\t\t\tright: 0px; \t\t\t\t\t\t\t\t\tbottom: -5px; \t\t\t\t\t\t\t\t\tbackground-color: white; \t\t\t\t\t\t\t\t\tborder-radius: 32px; \t\t\t\t\t\t\t\t",_.appendChild(m)),u.appendChild(_)}if(r.showValues)if((o=os.createElement("div")).innerHTML=f.ui.fe.text("CorrectResponses"),o.className="ap-feedback-popup-title",i.appendChild(o),(u=os.createElement("div")).className="ap-feedback-popup-answers-container",i.appendChild(u),n.length<=0)u.innerHTML='<div class="ap-feedback-popup-no-answer">--</div>';else if(n.length>0)for(g=0,b=n.length;g<b;++g)(c=n[g]).node&&((h=Ke(c)).length&&a.push(h),u.appendChild(p(c)));for(g=0,b=a.length;g<b;++g)je(a[g])},To:function(t,i){var s=os.createElement("div");if(s.innerHTML=this.slide.prez().ui.fe.text("CorrectResponses"),s.className="ap-feedback-popup-title",s.style.display="inline-block",s.style.overflow="visible",t.appendChild(s),i.length>0){var e,n,r=os.createElement("ul"),a=r.style;for(a.margin="5px 5px",a.padding="0px 10px 0px 15px",a.maxWidth="500px",a.textAlign="start",t.appendChild(r),e=0;e<i.length;++e)(n=os.createElement("li")).classList.add("ap-no-select"),n.innerText=i[e],r.appendChild(n)}},Co:function(){if(this.co)return this.co;var t=os.createElement("div");t.setAttribute("data-ap-ctrlid",this.id());var i=t.style;return i.position="absolute",i.left="0px",i.top="0px",i.width="100%",i.height="100%",i.zIndex=Qt.ls,this.co=t,this.node.appendChild(t),t},xo:function(t,i){var s=this.Co();if(s&&i&&t){var e=os.createElement("div");e.style.position="absolute",e.style.left=i.node.offsetLeft+"px",e.style.top=i.node.offsetTop+"px",e.style.width=i.node.offsetWidth+"px",e.style.height=i.node.offsetHeight+"px",e.style.transform=i.node.style.transform,e.setAttribute("data-ap-ctrlid",i.id()),e.appendChild(t),s.appendChild(e)}},Mh:function(t){if(this.co){var i,s,e,n,r,a,h,o,u,c=this.node.childNodes;for(i=0,s=c.length;i<s;++i)if((n=(e=c[i]).getAttribute("data-ap-ctrlid"))===this.id().toString()){for(a=0,h=(r=e.childNodes).length;a<h&&(o=r[a],n=parseInt(o.getAttribute("data-ap-ctrlid")),!(u=t?n==t.id()?t:null:this.Dh(n))||(o.style.display=u.node.style.display,o.style.left=u.node.offsetLeft+"px",o.style.top=u.node.offsetTop+"px",o.style.width=u.node.offsetWidth+"px",o.style.height=u.node.offsetHeight+"px",o.style.transform=u.node.style.transform,!t));++a);break}}},So:function(t,i){var s=this.slide.prez(),e=os.createElement("div");return e.innerHTML=t?s.ee.playerIcons.correct:s.ee.playerIcons.incorrect,this.mo(e.firstChild,i),"middle-left"==i?e.firstChild.style.marginLeft="-3px":"middle-right"==i&&(e.firstChild.style.marginLeft="3px"),e.firstChild.style.zIndex=Qt.ls,e.firstChild},fillSolid:function(t,i,s,e){return this.shape.fillSolid(t,i,s,e),this},userSelection:function(i){return arguments.length?(i?t(this.node).removeClass("ap-no-select"):t(this.node).addClass("ap-no-select"),this):t(this.node).classList.contains("ap-no-select")}}),sn={_default:function(t,i){return new tn(t,i)}};function en(t){for(var i=arguments.length;--i>0;)sn[arguments[i]]=t}var nn=js(tn,{$init:function(e,n){var r=e.defaultCtrlData();r.k=i.J,r.t=s.ot,r.margin=n.margin,r.ti=-1;var a=[],h=void 0;if(e.ee.ca&&(h=e.ee.ca.r||{}),e.ee&&e.ee.h)for(var o=0;o<e.ee.h.length;o++){var u={};u.r=[0,r.margin,0,0,2,1],h&&h.length&&h.length==e.ee.h.length&&h[o]&&(u.f=h[o].f||100),a.push(u)}r.s=[{t:["<span></span>",n.textStyle[0],n.textStyle[1]],f:n.fill,w:a,a:0}],tn.prototype.$init.call(this,e,r),this.node.style.zIndex=Qt.ns,Ws(this.node.style),t(this.node).css("visibility",e.ue._n?"visible":"hidden")},onResized:function(t,i){if(this.Oo&&!0===this.Oo)tn.prototype.onResized.call(this,t,i);else{var s=this.slide.width(),e=this.slide.height();this.node.style.width=Math.max(s-2*this.ee.margin,0)+"px",this.node.style.height=Math.max(e-2*this.ee.margin,0)+"px";var n=this.innerTextNode(),r=n?n.width()+this.qh[0]+this.qh[2]+1:0,a=n?n.height()+this.qh[1]+this.qh[3]+1:0;this.node.style.width=r+"px",this.node.style.height=a+"px";for(var h=0;h<this.ee.s.length;h++){var o=this.ee.s[h].w;for(h=0;h<o.length;h++)o[h].r[2]=r,o[h].r[3]=a}this.zs&&this.zs.layout(),this.Oo=!0,tn.prototype.onResized.call(this,t,i),this.Oo=!1}},innerTextNode:function(){return t("span",t(this.textNode)).first()},onLayoutSwitched:function(){if(tn.prototype.onLayoutSwitched.call(this),this.Eo){var i=this.innerTextNode();t(i).html(this.Eo||""),this.onResized(0,0)}}});en(function(t,i){return new nn(t,i)},i.J);var rn=js(tn,{$init:function(t,i){if(this.Io=0,this.Po=0,this.Ro=!1,this.Mo=!1,tn.prototype.$init.call(this,t,i),this.ee.tmp.type==Oi){var s=this.shape,e=s?s.node:void 0;s&&s.shapeNode;if(e){var n=e.querySelector("defs");n||(n=os.createElementNS(Ui,"defs"),e.appendChild(n));var r=os.createElementNS(Ui,"mask");r.id=s.container.id?s.container.id+"-masktimer":"ap-masktimer-"+we();var a=os.createElementNS(Ui,"rect");a.setAttribute("x",0),a.setAttribute("y",0),a.setAttribute("width",s.container.clientWidth),a.setAttribute("height",s.container.clientHeight),a.setAttribute("fill","white"),r.appendChild(a);var h=os.createElementNS(Ui,"path"),o=sr[s.Zs];if(o&&o[0]){var u=s.container.clientWidth,c=s.container.clientHeight,f=new er;o[0].apply(f,[0,0,u,c]),h.setAttribute("d",f.path()),h.setAttribute("fill","black"),r.appendChild(h)}n.appendChild(r),s.No&&s.No.setAttribute("mask","url(#"+r.id+")"),s.Ao=r}}this.prez().registerTimer(this)},Na:function(t,i){this.Do(),i&x&&this.pauseTimer()},restore:function(t){return tn.prototype.restore.call(this,t),t||(t=this.savedData()),t&&t.tm&&(this.Ro=t.tm.s,this.Po=t.tm.v,this.Mo=t.tm.as,this.Io=this.prez().elapsedTime()-this.Po,this.Do()),this},cleanup:function(){return this.prez().unregisterTimer(this),tn.prototype.cleanup.call(this)},startTimer:function(){this.Ro||(this.Po&&this.Po!=this.ee.tmp.duration||(this.Po=0),this.Ro=!0,this.Io=this.prez().elapsedTime()-this.Po,this.tick())},pauseTimer:function(){this.Ro&&(this.Ro=!1,this.Yo())},stopTimer:function(){this.Ro=!1,this.Po=0,this.Yo(),this.Do()},setTimerValue:function(i){var s=this.getTimerDuration(),e=this.ee.tmp.countdown;i>s&&(i=s),i<0&&(i=0);var n=this.Po;this.Po=e?s-i:i,this.Io+=n-this.Po,this.Ro||(this.Yo(),this.Do(),this.Po==this.ee.tmp.duration&&t(this).triggerHandler("ap-timer-complete"))},getTimerValue:function(){var t=this.getTimerDuration();return this.ee.tmp.countdown?t-this.Po:this.Po},getTimerDuration:function(){return this.ee.tmp.duration},Yo:function(){this.savedData(!0).tm={s:this.Ro,v:this.Po,as:this.Mo}},tick:function(){this.Ro&&!this.prez().ended&&(this.Po=this.prez().elapsedTime()-this.Io,this.Po>=this.ee.tmp.duration&&(this.Po=this.ee.tmp.duration,this.Ro=!1),this.Yo(),this.Do(),this.Po==this.ee.tmp.duration&&t(this).triggerHandler("ap-timer-complete"))},Do:function(){var t=this.ee.tmp.type,i=this.ee.tmp.subType,s=this.ee.tmp.countdown,e=this.ee.tmp.duration,n=s?e-this.Po:this.Po,r=this.shape,a=n/e;if(t==Si){var h,o,u,c="";i==Ei?(o=s?Math.ceil(n/1e3):Math.floor(n/1e3),u=Math.floor(o/60),c=("00"+Math.floor(u/60)).toString().slice(-2)+" : "+("00"+u%60).toString().slice(-2)+" : "+("00"+o%60).toString().slice(-2)):i==Ii?(u=s?Math.ceil(n/1e3/60):Math.floor(n/1e3/60),c=("00"+Math.floor(u/60)).toString().slice(-2)+" : "+("00"+u%60).toString().slice(-2)):i==Pi?(o=s?Math.ceil(n/1e3):Math.floor(n/1e3),c=("00"+(u=Math.floor(o/60))).toString().slice(-2)+" : "+("00"+o%60).toString().slice(-2)):i==Ri&&(h=n%1e3,c=("00"+(o=Math.floor(n/1e3))).toString().slice(-2)+" : "+("000"+h).toString().slice(-3)),c!=this.text()&&this.html(c)}else if(t==Oi&&r&&r.Ao){var f=r.Ao.querySelector("path");if(f){var l=sr[r.Zs],d="none"!==r.Xo?r.Lo:0,p=d%2==0?0:1,v=is(d/2);if(l&&l[0]){var m=r.container.clientWidth-2*v-2*p,g=r.container.clientHeight-2*v-2*p,b=new er;l[0].apply(b,[m*a+p+v,v+p,m-m*a,g].concat(r.Fo)),f.setAttribute("d",b.path())}}}}});en(function(t,i){return new rn(t,i)},i.H);var an=js(tn,{$init:function(i,s){tn.prototype.$init.call(this,i,s),this.node.setAttribute("role","button");var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||(e.Ds(t),e.Ho=!0,setTimeout(function(){e.Ho&&(e.Xs(!1,!0)&&e.zs.flags(e.zs.flags()|T),delete e.Ho)},0))}).on("mouseup",function(t){e.filterEvent(t)||e.Ds(t),e.Ho&&delete e.Ho,e.zs.flags(e.zs.flags()&~T)}).on("keydown",function(i){i.which!==le.SPACE&&i.which!==le.ENTER||!e.Xs(!1,!0)||e.zs.has(T)||(i.preventDefault(),i.stopPropagation(),t(e.textNode||e.shape.shapeNode).trigger(t.Event("mousedown",{pageX:0,pageY:0})))}).on("keyup",function(i){i.which!==le.SPACE&&i.which!==le.ENTER||(i.preventDefault(),i.stopPropagation(),t(e.textNode||e.shape.shapeNode).trigger(t.Event("mouseup",{pageX:0,pageY:0})))})},ph:function(){this.on("ap-rollover",function(t){this.Xs(!1,!0)&&(this.zs.has(S)||this.zs.flags(this.zs.flags()|k))}).on("ap-rollout",function(){this.Ho&&delete this.Ho,this.zs.has(S)||this.zs.flags(this.zs.flags()&~(k|T))})}});en(function(t,i){return new an(t,i)},i.O);var hn=js(tn,{$init:function(i,s){tn.prototype.$init.call(this,i,s);var e=this.ee.vl;Es(this.node,{role:"slider","aria-valuenow":e[0],"aria-valuemin":e[1],"aria-valuemax":e[2],"aria-step":e[3]});var n=this;if(s.v){this.Uo=s.v,this.Bo=s.vm;var r=i.ue.vars;this.Zo=function(){if(!n.zo&&!n.Go){var t=r.get(n.Uo);n.Vo=!0,n.value(t),delete n.Vo}},r.addObserver([this.Uo],this.Zo),this.Zo()}t(this.node).on("mousedown mouseup",function(t){n.filterEvent(t)||n.Ds(t)}).on(ee,function(i){if(n.Xs(!1,!0)){n.Go=!0;var s=n.getThumbSize(),e=n.value();n.Wo=n.$o(e),(i.offsetX>n.Wo+s[0]||i.offsetX<n.Wo)&&n.Ko(i.offsetX-s[0]/2,!0),n.Wo=i.offsetX-s[0]/2,n.jo={x:i.clientX,y:i.clientY},n.Qo=e,n.Ds(i),n.Ho=!0,setTimeout(function(){n.Ho&&(n.Xs(!1,!0)&&n.zs.flags(n.zs.flags()|T),delete n.Ho)},0);var r=function(t){if(n.Go){var i=getTransformationMatrix(n.node).inverse(),s=i.transformPoint(n.jo.x,n.jo.y),e=i.transformPoint(t.clientX,t.clientY),r=n.Wo+(e.x-s.x);n.Ko(r,!0),t.preventDefault()}},a=function(i){if(t(os).off(re,r).off(ne,a),se&&t(os).off(se,a),n.Ho&&delete n.Ho,n.zs.flags(n.zs.flags()&~T),n.Xs(!1,!0)&&n.Go){delete n.Go;var s=n.value();n.Qo!==s&&(n.Bo===Ai&&n.qo(),t(n).triggerHandler("ap-change"))}else delete n.Go};t(os).on(re,r).on(ne,a),se&&t(os).on(a)}else i.preventDefault()}).on("keydown",function(t){var i,s=n.Jo(),e=s.value,r=s.max-s.min,a=ts(r/s.step),h=0!==a?ts(r/ss(a/ts(a/10))):0;switch(t.which){case le.HOME:e=s.min,i=n;break;case le.END:e=s.max,i=n;break;case le.RIGHT:case le.UP:e=Wi(s.max,e+s.step),i=n;break;case le.LEFT:case le.DOWN:e=$i(s.min,e-s.step),i=n;break;case le.PAGEUP:e=Wi(s.max,e+h),i=n;break;case le.PAGEDOWN:e=$i(s.min,e-h),i=n}i&&(t.stopPropagation(),t.preventDefault(),i.Xs(!1,!0)&&e!==s.value&&i.Ko(i.$o(e),!0,!0))}).css("touchAction","none"),Te(this.node)},ph:function(){this.on("ap-rollover",function(t){this.Xs(!1,!0)&&this.zs.flags(this.zs.flags()|k)}).on("ap-rollout",function(){this.Ho&&delete this.Ho,this.zs.flags(this.zs.flags()&~(k|T))})},Ko:function(t,i,s){var e=this.tu(t);this.value(e,i,s)},$o:function(t){var i=this.Jo(),s=this.node.clientWidth,e=0;if(i.max!==i.min){var n=this.getThumbSize();e=(t-i.min)*(s-n[0])/(i.max-i.min)}return e<0&&(e=0),e>s&&(e=s),e},tu:function(t){var i=this.Jo(),s=this.node.clientWidth,e=i.min;if(0!==s){var n=this.getThumbSize();e=t*(i.max-i.min)/(s-n[0])+i.min}return e},getThumbSize:function(){var t=this.zs.ee[this.zs.Fe];if(void 0===t)return[24,24];var i=t.sl[3]||24,s=t.sl[4]||nt,e=[0,0];return s==nt?e=[i,i]:s!=rt&&s!=at||(e=[.75*i,i]),e},Jo:function(t){var i=this.ee.vl,s=parseInt(this.node.getAttribute("aria-valuenow"));if(isNaN(s)&&(s=i[0]),t)return s;var e={value:s,min:parseInt(this.node.getAttribute("aria-valuemin")),max:parseInt(this.node.getAttribute("aria-valuemax")),step:parseInt(this.node.getAttribute("aria-step"))};return isNaN(e.min)&&(e.min=i[1]),isNaN(e.max)&&(e.max=i[2]),isNaN(e.step)&&(e.step=i[3]),e},value:function(i,s,e){if(!arguments.length)return this.Jo(!0);var n=this.Jo(),r=(i-n.min)%n.step;if(i<n.min)i=n.min;else if(i>=n.max)0!==(r=((i=n.max)-n.min)%n.step)&&(i-=r);else if(0!==r){var a=i-r,h=a+n.step;(i=i-a>=h-i?h:a)>n.max&&(i=a)}if(i==n.value)return this;this.node.setAttribute("aria-valuenow",i);var o=this.zs.flags();return this.zs.flags(o)||this.zs.at(this.zs.Fe),(s&&this.Bo===Ni||e&&this.Bo===Ai||1===arguments.length)&&this.qo(),s&&t(this).triggerHandler("ap-changing"),e&&t(this).triggerHandler("ap-change"),this},qo:function(){this.Uo&&this.prez()&&!this.Vo&&(this.zo=!0,this.prez().vars.set(this.Uo,this.value()),delete this.zo)},Xs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&tn.prototype.Xs.call(this,t,i,s)},cleanup:function(){return this.Zo&&(this.prez().vars.removeObserver(this.Zo),delete this.Zo),tn.prototype.cleanup.call(this)}});en(function(t,i){return new hn(t,i)},i.X);var on=js(tn,{$init:function(i,s){tn.prototype.$init.call(this,i,s),s.v&&(this.Uo=s.v,this.qo());var e=this,n=window.ResizeObserver;n&&new n(function(){e.shape.iu(),e.shape.updateDropdown()}).observe(this.shape.dropdownNode);t(this.node).on("mousedown mouseup",function(t){e.filterEvent(t)||e.Ds(t)}).on("keydown",function(t){t.stopPropagation()}),t(this.shape.dropdownNode).on("change",function(t){if(this.style.display="none",this.offsetWidth,this.style.display="",e.Xs(!1,!0)){if(e.qo(),e.su()===At){var i=e.Yr();i.result!==Xt.zi&&i.result!==Xt.Zi&&i.result!==Xt.Gi||e.submit(i)}ue(e,"ap-change")}else t.preventDefault()}).on("mousedown",function(t){e.Xs(!1,!0)||t.preventDefault()}).on("focus",function(){e.node&&e.prez()&&e.prez().highlightFocus()&&t(e.node).addClass("ap-focused")}).on("blur",function(){e.node&&t(e.node).removeClass("ap-focused")})},accText:function(t){return arguments.length||(t=""),this.shape&&this.shape.dropdownNode&&this.shape.dropdownNode.setAttribute("aria-label",t),this},vh:function(t){this.shape&&this.shape.dropdownNode&&!isNaN(t)&&(-2==t?this.shape.dropdownNode.tabIndex=-1:-1==t?this.shape.dropdownNode.removeAttribute("tabIndex"):this.shape.dropdownNode.tabIndex=t)},value:function(t,i){var s=this.shape.dropdownNode;if(arguments.length){if(i){var e=this.ee.di;s.selectedIndex=-1!==e?e:0}else for(n=0;n<s.options.length;++n)if(s.options[n].text===t){s.selectedIndex=n;break}return this.qo(),this}if(s)for(var n=0;n<s.childNodes.length;++n){var r=s.childNodes[n];if(!r.disabled&&r.selected)return r.text}},su:function(){var t=this.ee.e||{},i=t.s||At;return t.f&(It|Pt)||(i=At),i},submit:function(t){if(this.prez()&&this.prez().ended)return this;if(!t){if(this.su()===At)return this;t=this.Yr()}return t.result===Xt.Wi&&(t.result=Xt.Gi),t.result!==Xt.Bi&&this.ho(this.savedData(!0),t.result,t.answer,t.score,!t.report,t.answer),this},Yr:function(){var t=this.ee.e||{},i=t.f,s=(i&It)===It,e=(i&Mt)!==Mt,n=s&&e,r=n&&(i&Rt)===Rt,a=0,h=this.value(),o=Xt.Bi;if(s){var u,c,f,l=t.v||[],d=-1;for(o=Xt.Gi,c=0,f=l.length;c<f;++c){if(h===(u=l[c])){d=c,o=Xt.zi;break}h&&u.substr(0,h.length)===h&&h.length<u.length&&(o=Xt.Wi)}o===Xt.zi?n&&t.m&&(a=r?t.m[d]||0:t.m):void 0===h&&(o=Xt.Vi)}else i&Pt&&(o=void 0!==h?Xt.Zi:Xt.Vi);var p={result:o,answer:h,score:n?a:void 0,report:e,prevValue:this.eu||""};return this.eu=h,p},qo:function(){if(this.Uo&&this.prez()){var t=this.shape.dropdownNode.value,i=this.prez().vars;i.Zs(this.Uo)==ki.TEXT&&(t=String(t)),i.set(this.Uo,t)}},fontScale:function(t){return arguments.length?t!=(this.Wh||100)?(this.Wh=t,this.shape.dropdownNode&&this.shape.updateDropdown(),this):void 0:this.Wh||100},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:this.value("",!0)},restore:function(t){return tn.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.ao(t.a),this.value(t&&t.v)},Xs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&tn.prototype.Xs.call(this,t,i,s)},se:function(t){t=t||{};var i=(((this.ee.e||{}).f||0)&It)===It,s=this.savedData();if(i){tn.prototype.uo.call(this);var e=s&&s.r===Xt.zi;if((e&&!t.showCorrect||!e&&!t.showIncorrect)&&(e=null),null!==e||t.showValues){var n=(this.ee.e||{}).v||[""],r=this._o(this.node,e,{correctAnswers:n,options:t});r.checkMark&&(this.fo=r.checkMark),r.popup&&(this.do=r.popup)}if(t.showResult){var a=Xt.Vi;s&&void 0!==s.r&&(a=s.r);var h=this.bo(a,this.slide.prez().responseResultString(a));h&&(this.slide.node.appendChild(h),this.slide.po=h)}}}});en(function(t,i){return new on(t,i)},i.K);var un=js(tn,{$init:function(t,i){tn.prototype.$init.call(this,t,i),this.on("ap-dblclick",function(t,i){this.Xs(!1,!0)&&this.submit(t.value,!1)})},ph:function(){var t=this.prez().options.playMode;"Tutorial"!==t&&"Practice"!==t||this.on("ap-incorrect",function(){this.mh(!0)})},Ah:function(){this.slide.Dr.push(this),tn.prototype.Ah.call(this)},submit:function(t,i){if(this.prez()&&this.prez().ended)return this;if(!arguments.length)return this;var s=this.ee.e||{},e=s.f,n=(e&Mt)!==Mt,r=n,a=r&&(e&Rt)===Rt,h=0,o=s.v||[],u=Xt.Gi,c=-1;if(i||(o.length?c=o.indexOf(t):fe.code(t)!==de.OUTSIDE&&(c=0)),c>=0)u=Xt.zi,r&&s.m&&(h=a?s.m[c]||0:s.m);else if(i&&le.shouldIgnoreIncorrect(t))return this;return this.ho(this.savedData(!0),u,t,r?h:void 0,!n,t),this},restore:function(t){return tn.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.ao(t.a),this},se:function(t){t=t||{};var i=this.ee.e||{},s=i.f||0,e=i.v||[],n=(s&It)===It,r=this.savedData();if(n){tn.prototype.uo.call(this);var a=r&&r.r===Xt.zi;if((a&&!t.showCorrect||!a&&!t.showIncorrect)&&(a=null),(null!==a||t.showValues)&&(this.mh(!0),null!==a||t.showValues)){for(var h=[],o=0;o<e.length;o++)h.push(de.name(e[o],this.slide.prez().ui.fe));var u=this._o(this.node,a,{correctAnswers:h,options:t});u.checkMark&&(this.fo=u.checkMark),u.popup&&(this.do=u.popup)}if(t.showResult){var c=Xt.Vi;r&&void 0!==r.r&&(c=r.r);var f=this.bo(c,this.slide.prez().responseResultString(c));f&&(this.slide.node.appendChild(f),this.slide.po=f)}}}}),cn=js(tn,{$init:function(i,s){tn.prototype.$init.call(this,i,s);var e=this;t(this.node).on("mousedown mouseup",function(t){e.filterEvent(t)||(e.Ds(t),de.fromTouch&&"mousedown"==t.type&&e.Xs(!1,!0)&&e.submit(de.combinedCode(t),!1))}),this.on("ap-keypress",function(t,i){this.Xs(!1,!0)&&this.submit(t.value,!0)})},ph:function(){var t=this.prez().options.playMode;"Tutorial"!==t&&"Practice"!==t||this.on("ap-incorrect",function(){this.mh(!0)})},Ah:function(){this.slide.mr.push(this),tn.prototype.Ah.call(this)},submit:function(t,i){if(this.prez()&&this.prez().ended)return this;if(!arguments.length)return this;var s=this.Yr(t,i);return s.result!==Xt.Bi&&this.ho(this.savedData(!0),s.result,s.answer,s.score,!s.report,s.answer),this},Yr:function(t,i){var s=this.ee.e||{},e=s.f,n=(e&Mt)!==Mt,r=n,a=r&&(e&Rt)===Rt,h=0,o=s.v||[],u=Xt.Gi,c=-1;return i?c=o.length?o.indexOf(t):0:fe.code(t)!==de.OUTSIDE&&(c=0),c>=0?(u=Xt.zi,r&&s.m&&(h=a?s.m[c]||0:s.m)):i&&le.shouldIgnoreIncorrect(t)&&(u=Xt.Bi),{result:u,answer:t,score:r?h:void 0,report:n}},restore:function(t){return tn.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.ao(t.a),this},se:function(t){t=t||{};var i=this.ee.e||{},s=i.f||0,e=i.v||[],n=(s&It)===It,r=this.savedData();if(n){tn.prototype.uo.call(this);var a=r&&r.r===Xt.zi;if((a&&!t.showCorrect||!a&&!t.showIncorrect)&&(a=null),null!==a||t.showValues){this.mh(!0);for(var h=[],o=0;o<e.length;o++)h.push(fe.name(e[o],this.slide.prez().ui.fe));var u=this._o(this.node,a,{correctAnswers:h,options:t});u.checkMark&&(this.fo=u.checkMark),u.popup&&(this.do=u.popup)}if(t.showResult){var c=Xt.Vi;r&&void 0!==r.r&&(c=r.r);var f=this.bo(c,this.slide.prez().responseResultString(c));f&&(this.slide.node.appendChild(f),this.slide.po=f)}}},Xs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&tn.prototype.Xs.call(this,t,i,s)},Ys:function(t){return this.Xs(!1,!0)?this.Yr(t,!0).result!=Xt.Bi:le.shouldPreventDefault(t,!1,!0)}}),fn=js(tn,{$init:function(t,i){tn.prototype.$init.call(this,t,i)}});function ln(t){return arguments.length?(this.textNode||this.zh(),t+="",this.textNode.value=t,this.nu=t,this.qo(),this):this.textNode&&this.textNode.value||""}function dn(){return[this.ru.firstCorrectValue()]}en(function(t,i){return i.t===s.ht?new cn(t,i):i.t===s.rt?new un(t,i):i.t===s.B?new fn(t,i):void 0},i.I);var pn=js(tn,{$init:function(i,s){this.nu="",this.Ca=!0,s.v&&(this.Uo=s.v),tn.prototype.$init.call(this,i,s),this.zh(),this.au();var e=this;t(this.node).on("mousedown",function(t){e.Xs(!1,!0)?e.filterEvent(t)||(e.Ds(t),t.target!==e.textNode&&(t.preventDefault(),e.textNode.focus())):t.preventDefault()}).on("mouseup",function(t){e.filterEvent(t)||e.Ds(t)}),t(this.textNode).on("focus",function(i){e.Xs(!1,!0)?e.prez()&&e.prez().highlightFocus()&&t(e.node).addClass("ap-focused"):i.preventDefault()}).on("blur",function(i){e.Xs(!1,!0)?t(e.node).removeClass("ap-focused"):i.preventDefault()})},Fh:function(){var i,s,e=this.ee.f;e&ct.xt?i=os.createElement("textarea"):((i=os.createElement("input")).type=e&ct.kt?"password":"text",i.autocomplete="off"),i.spellcheck=!1,(s=i.style).border="none",s.margin=s.padding=0,s.backgroundColor="transparent",s.outline="none",this.disabled()&&(i.disabled=!0);var n=this.su(),r=this;return n===At?t(i).on("input",function(t){if(r.Xs(!1,!0)){var i=r.Yr();i.answer!==i.prevValue&&(i.result===Xt.zi||i.result===Xt.Zi||i.result===Xt.Gi&&i.prevValue.substr(0,i.answer.length)!==i.answer)&&r.submit(i)}}):n>0&&t(i).on("keydown keyup",function(t){le.hasKeydown(t.which)===("keydown"===t.type)&&le.combinedCode(t)===n&&r.Xs(!1,!0)&&(le.preventDefault(t),t.stopPropagation(),r.submit())}),t(i).on("change",function(t){r.Xs(!1,!0)&&r.hu()}),i},hu:function(){var t=this.value();this.nu!=t&&(this.nu=t,ue(this,"ap-change"))},accText:function(t){return arguments.length||(t=""),this.zh(),this.textNode&&this.textNode.setAttribute("aria-label",t),this},vh:function(t){isNaN(t)||(this.zh(),-2==t?this.textNode.tabIndex=-1:-1==t?this.textNode.removeAttribute("tabIndex"):this.textNode.tabIndex=t)},html:ln,text:ln,value:ln,caseSensitive:function(){return(this.ee.f&ct.Ct)===ct.Ct},Zh:function(){var t=tn.prototype.Zh.call(this)+"border: none; margin: 0; padding: 0; background: transparent; width: 100%; outline: none;";return this.ee.f&ct.xt&&(t+=" height: 100%; resize: none;"),t},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:this.text("")},restore:function(t){return tn.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.ao(t.a),this.text(t&&t.v||"")},Na:function(t,i){this.textNode&&(this.textNode.disabled=(i&x)==x)},su:function(){var t=this.ee.e||{},i=t.s||At;return t.f&(It|Pt)||(i=At),i},submit:function(t){if(this.prez()&&this.prez().ended)return this;if(!t){if(this.su()===At)return this;this.hu(),t=this.Yr()}return t.result===Xt.Wi&&(t.result=Xt.Gi),t.result!==Xt.Bi&&this.ho(this.savedData(!0),t.result,t.answer,t.score,!t.report,t.answer),this},Yr:function(){var i=this.ee.e||{},s=i.f,e=(s&It)===It,n=(s&Mt)!==Mt,r=e&&n,a=r&&(s&Rt)===Rt,h=0,o=this.value(),u=Xt.Bi;if(e){var c,f,l,d=!this.caseSensitive(),p=d?o.toUpperCase():o,v=i.v||[""],m=-1;for(u=Xt.Gi,f=0,l=v.length;f<l;++f){if(c=v[f],d&&(c=c.toUpperCase()),p===c){m=f,u=Xt.zi;break}c.substr(0,p.length)===p&&p.length<c.length&&(u=Xt.Wi)}u===Xt.zi?r&&i.m&&(h=a?i.m[m]||0:i.m):o||(u=Xt.Vi)}else s&Pt&&(u=o?Xt.Zi:Xt.Vi);o!==this.eu&&(this.qo(),t(this).triggerHandler(t.Event("ap-textenter",{value:o})));var g={result:u,answer:o,score:r?h:void 0,report:n,prevValue:this.eu||""};return this.eu=o,g},qo:function(){if(this.Uo&&this.prez()){var t=this.textNode.value,i=this.prez().vars;i.Zs(this.Uo)==ki.NUMBER&&(t=Number(t)),i.set(this.Uo,t)}},firstCorrectValue:function(){var t=this.ee.e;return t&&t.v&&t.v.length>0&&t.v[0]?t.v[0]:""},au:function(){var t=this.slide,i=((this.ee.e.f||0)&It)===It;if(t.ue.demoMode()&&i){for(var s=t.Ze,e=0,n=0,r=null,a=null,h=(t.ee.tl[0]||null)[2],o=0,u=null!==h?h.length:0;o<u;++o)if(h[o][0]==this.ee.i){for(var c=h[o][1],f=0,l=null!==c?c.length:0;f<l;++f){var d=c[f];if(d&&d[0]>=ye.EffectType.ENTRANCE_START&&d[0]<=ye.EffectType.ENTRANCE_END&&!r?r=d:d&&d[0]>=ye.EffectType.EXIT_START&&d[0]<=ye.EffectType.EXIT_END&&!a&&(a=d,r&&r[1]>0&&a[0]===ye.EffectType.DISAPPEAR&&a[1]<r[1]&&(a=null)),r&&a)break}break}var p,v=e=r?r[1]:0,m=n=a?a[1]+a[2]-e:t.ee.d-e,g=n-500;if(r)(p=r[2])>0&&(p>m&&(p=m),m-=p,v+=p,g-=p);if(a)(p=a[2])>0&&(p>m&&(p=m),g-=p);var b=new Xr(this,"text",{startTime:v,duration:g,tweenParams:[dn],tweenType:Jt.bs});return b&&s.addChild(b),this}},se:function(t){t=t||{};var i=(((this.ee.e||{}).f||0)&It)===It,s=this.savedData();if(i){tn.prototype.uo.call(this);var e=s&&s.r===Xt.zi;if((e&&!t.showCorrect||!e&&!t.showIncorrect)&&(e=null),null!==e||t.showValues){var n=(this.ee.e||{}).v||[""],r=this._o(this.node,e,{correctAnswers:n,options:t});r.checkMark&&(this.fo=r.checkMark),r.popup&&(this.do=r.popup)}if(t.showResult){var a=Xt.Vi;s&&void 0!==s.r&&(a=s.r);var h=this.bo(a,this.slide.prez().responseResultString(a));h&&(this.slide.node.appendChild(h),this.slide.po=h)}}},Xs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&tn.prototype.Xs.call(this,t,i,s)}});en(function(t,i){return new pn(t,i)},i.S);var vn=js(tn,{$init:function(t,i){tn.prototype.$init.call(this,t,i)},ph:function(){var t=this.prez().options.playMode;"Tutorial"!==t&&"Practice"!==t||this.on("ap-incorrect",function(){this.mh(!0)})},submit:function(t){if(this.prez()&&this.prez().ended)return this;if(!t)return this;var i=this.ee.e||{},s=i.f,e=(s&Mt)!==Mt,n=e,r=n&&(s&Rt)===Rt,a=!1,h=0,o=t;if(this.dropHelper.droppedObjects().indexOf(t)<0){if(!this.dropHelper.accepted(t)||this.dropHelper.droppedObjects().length)return this;a=!1,t=null}else{var u=(i.v||[]).indexOf(t.id());u>=0?(a=!0,n&&i.m&&(h=r?i.m[u]||0:i.m)):a=!1}var c,f=this.savedData(!0),l=a?P:R;o&&o.hasStateFlag(l)&&o.zs.flags(l),this.hasStateFlag(l)&&this.zs.flags(l),this.dropHelper.absolutePosition()&&t&&t.$a&&(c=[t.$a.x,t.$a.y]),this.ho(f,a?Xt.zi:Xt.Gi,t?t.id():0,n?h:void 0,!e,t,c);var d=this.maxAttempts();return f.a!=d&&-1!=d||(o.hasStateFlag(l)&&o.savedCurrentState(),this.hasStateFlag(l)&&this.savedCurrentState()),this},restore:function(t){if(this.clear(),!t&&!(t=this.savedData()))return this;if(this.ee.rs&&t.st&&(this.state(t.st),this.pr()),void 0!==t.a&&this.ao(t.a),t.v){var i=this.slide.object(t.v),s={x:t.d?t.d[0]:0,y:t.d?t.d[1]:0};if(i){var e=i.savedData();i.ee.rs&&e&&e.st&&(i.state(e.st),i.pr()),this.dropHelper.drop(i,s,!1)}}return this},se:function(t){t=t||{};var i=this.ee.e||{},s=i.f||0,e=i.v||[],n=(s&It)===It,r=this.savedData();if(n){tn.prototype.uo.call(this);var a=r&&r.r===Xt.zi;if(a&&t.showCorrect||!a&&t.showIncorrect)(u=this.So(a,"middle-left"))&&(this.node.appendChild(u),a?this.fo=u:this.lo=u);if(t.showCorrect)for(var h=0;h<e.length;h++){var o,u;if(o=this.slide.object(e[h]))tn.prototype.uo.call(o),(u=this.So(!0,"middle-left"))&&(o.node.appendChild(u),o.fo=u)}if(t.showIncorrect)if(r&&void 0!==r.v)if(e.indexOf(r.v)<0)if(o=this.slide.object(r.v))tn.prototype.uo.call(o),(u=this.So(!1,"middle-left"))&&(o.node.appendChild(u),o.lo=u);if(t.showResult){var c=Xt.Vi;r&&void 0!==r.r&&(c=r.r);var f=this.bo(c,this.slide.prez().responseResultString(c));f&&(this.slide.node.appendChild(f),this.slide.po=f)}(t.showCorrect||t.showValues)&&this.mh(!0)}},Xs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&tn.prototype.Xs.call(this,t,i,s)}});en(function(t,i){return new vn(t,i)},i.R);var mn=js(tn,{$init:function(i,s){this.ou=16,tn.prototype.$init.call(this,i,s);var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||(e.Ds(t),e.Ho=!0,setTimeout(function(){e.Ho&&(e.Xs(!1,!0)&&e.zs.flags(e.zs.flags()|T),delete e.Ho)},0))}).on("mouseup",function(t){e.filterEvent(t)||e.Ds(t),e.Ho&&delete e.Ho,e.zs.flags(e.zs.flags()&~T)})},ph:function(){this.on("ap-rollover",function(t){this.Xs(!1,!0)&&this.zs.flags(this.zs.flags()|k)}).on("ap-rollout",function(){this.Ho&&delete this.Ho,this.zs.flags(this.zs.flags()&~(k|T))})},textMargin:function(t,i,s,e){if(!arguments.length){var n=tn.prototype.textMargin.call(this);if(this.isShowToggleButton()){var r=this.ou+is(2*$i(7,this.ou/4));if(n[0]+=r,this.Eh){var a=this.textContainer?this.textContainer.style:null;a&&(a.paddingTop=n[1]+"px",a.paddingBottom=n[3]+"px"),this.node.clientHeight<r&&(n[1]+=(r-this.node.clientHeight)/2,n[3]+=(r-this.node.clientHeight)/2)}}return n}return tn.prototype.textMargin.call(this,t,i,s,e)},isShowToggleButton:function(){var t=this.zs,i=t.ee[t.Fe];return i.tg&&!!i.tg[6]},check:function(t){return arguments.length||(t=!0),this.uu(t,!1),this},uu:function(t,i){var s=this.zs.flags(),e=!1;this.checked()!==t&&(e=!0,t?s|=C:s&=~C),this.zs.flags(s),i&&e&&this.cu(t)},cu:function(i){t(this).triggerHandler(i?"ap-check":"ap-uncheck")},checked:function(){return(this.zs.flags()&C)===C},Na:function(t,i){this.node.setAttribute("aria-checked",i&C?"true":"false")},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:(this.uu(!1,!1),this)},setIconSize:function(t){this.ou!==t&&(this.ou=t,this.textContainer&&this.Oa())},value:function(t){return arguments.length?(this.uu(t,!1),this):this.checked()},Xs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&tn.prototype.Xs.call(this,t,i,s)}}),gn=js(mn,{$init:function(i,s){mn.prototype.$init.call(this,i,s),this.node.setAttribute("role","checkbox");var e=this;t(this.node).on("keydown",function(t){var i;switch(t.which){case le.SPACE:i=e;break;case le.TAB:var s=e.node.tabIndex;if(void 0===s||-1==s)break;var n=t.shiftKey?e.fu():e.lu();n&&(n.vh(s),e.vh(-2),t.stopPropagation(),t.preventDefault(),n.Xs(!1,!0)&&n.node.focus())}i&&(t.stopPropagation(),t.preventDefault(),i.Xs(!1,!0)&&(i.uu(!i.checked(),!0),i!==e&&i.node.focus()))})},ph:function(){mn.prototype.ph.call(this),this.on("ap-click",function(){this.Xs(!1,!0)&&this.uu(!this.checked(),!0)})},cu:function(t){mn.prototype.cu.call(this,t),ue(this,"ap-change")},lu:function(){var t=null,i=null,s=!1;if(this.parent&&!(this.parent instanceof ir)){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var r,a,h,o=this.parent.children;for(r=0,a=o.length;r<a;++r)if((h=e?o[e.indexOf(r)]:o[r])instanceof gn){if(!h.disabled()&&(i||(i=h),s)){t=h;break}h===this&&(s=!0)}}return t},fu:function(){var t=null,i=null,s=!1;if(this.parent&&!(this.parent instanceof ir)){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var r,a,h=this.parent.children;for(r=h.length-1;r>=0;--r)if((a=e?h[e.indexOf(r)]:h[r])instanceof gn){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t}});en(function(t,i){return new gn(t,i)},i.D);var bn=js(mn,{$init:function(i,s){mn.prototype.$init.call(this,i,s),this.node.setAttribute("role","radio");var e=this;t(this.node).on("keydown",function(t){var i;switch(t.which){case le.SPACE:i=e;break;case le.LEFT:case le.UP:i=e.du();break;case le.RIGHT:case le.DOWN:i=e.pu()}i&&(t.stopPropagation(),t.preventDefault(),!i.checked()&&i.Xs(!1,!0)&&(i.uu(!0,!0),i!==e&&i.node.focus()))})},ph:function(){mn.prototype.ph.call(this),this.on("ap-click",function(){this.Xs(!1,!0)&&!this.checked()&&this.uu(!0,!0)})},radioGroup:function(t){return arguments.length?(this.Th=t,this):this.Th},uu:function(t,i){if(t&&this.parent&&!(this.parent instanceof ir)){var s,e,n,r=this.Th,a=this.parent.children;for(s=0,e=a.length;s<e;++s)(n=a[s])!==this&&n instanceof bn&&n.Th===r&&n.uu(!1,i)}mn.prototype.uu.call(this,t,i),t&&this.parent&&-1===this.node.tabIndex&&this.parent.updateTabIndexGR(this)},cu:function(t){mn.prototype.cu.call(this,t),t&&ue(this,"ap-change")},du:function(){var t=null,i=null,s=!1;if(this.parent&&!(this.parent instanceof ir)){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var r,a,h=this.parent.children;for(r=h.length-1;r>=0;--r)if((a=e?h[e.indexOf(r)]:h[r])instanceof bn&&a.Th===this.Th){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t||i===this||(t=i),t},pu:function(){var t=null,i=null,s=!1;if(this.parent&&!(this.parent instanceof ir)){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var r,a,h,o=this.parent.children;for(r=0,a=o.length;r<a;++r)if((h=e?o[e.indexOf(r)]:o[r])instanceof bn&&h.Th===this.Th){if(!h.disabled()&&(i||(i=h),s)){t=h;break}h===this&&(s=!0)}}return t||i===this||(t=i),t}});en(function(t,i){return new bn(t,i)},i.Y);var wn=js(tn,{$init:function(t,i){tn.prototype.$init.call(this,t,i)},textMargin:function(i,s,e,n){if(!arguments.length){var r=parseFloat(t(this.textNode).css("font-size"))||8,a=Wi($i(8,r),64),h=tn.prototype.textMargin.call(this),o=a+is(2*$i(6,a/4));if(h[0]+=o,this.Eh){var u=this.textContainer?this.textContainer.style:null;u&&(u.paddingTop=h[1]+"px",u.paddingBottom=h[3]+"px"),this.node.clientHeight<o&&(h[1]+=(o-this.node.clientHeight)/2,h[3]+=(o-this.node.clientHeight)/2)}return h}return tn.prototype.textMargin.call(this,i,s,e,n)}});function _n(){return arguments.length?this:""}en(function(t,i){return new wn(t,i)},i.et);var yn=js(tn,{$init:function(s,e){tn.prototype.$init.call(this,s,e);var n=this.node.style;if((!this.bh||n.overflow.indexOf("auto")<0)&&(this.node.style.pointerEvents="none"),e.k==i.nt){var r=this;t(this.node).on("mousedown mouseup",function(t){r.filterEvent(t)||r.Ds(t)})}},filterEvent:function(t){if(("mouseover"==t.type||"mouseout"==t.type)&&tn.prototype.filterEvent.call(this,t))return!0;var i=this.qr(t.target);return!i||tn.prototype.filterEvent.call(i,t)},html:_n});function Tn(t,i){var s,e,n=i.zs.Aa(t.zs.at());if(n||(n=i.zs.Aa(0)),n){var r=Ke(t);t.Da(n[0],n[1],n[2]),s=t.node.offsetLeft||0,e=t.node.offsetTop||0,(n=t.zs.Aa(t.zs.at()))&&(t.Da(n[0],n[1],n[2]),s-=t.node.offsetLeft||0,e-=t.node.offsetTop||0,t.translate(s,e)),je(r)}}var kn=js(yn,{$init:function(e,n){yn.prototype.$init.call(this,e,n),this.vu=this.ee.t;var r,a,h,o=this.children,u=this.ee.e||{};u.v;if((this.ee.e&&this.ee.e.f&Nt||this.vu==s.wt)&&(this.mu=!0,this.gu(),this.vu!=s.wt&&this.vh(this.ee.ti)),this.vu===s.yt){var c=0;for(r=0,a=o.length;r<a;++r)(h=o[r]).radioGroup?h.radioGroup(c):++c}else if(this.vu===s.wt){var f=this,l={start:function(i,s){var e=this.rlControl,n=this.style;if(!e||!e.Xs(!1,!0)||e.prez()&&e.prez().ended)return!1;if(e.bu=e.sequentialOrder,e.parent&&e.parent.bh){e.ah=getTransformationMatrix(this.parentNode).inverse(),e.hh=e.ah.transformPoint(s.originalPosition.left,s.originalPosition.top),e.hh.x+=s.originalPosition.left-(parseFloat(this.offsetLeft)||0),e.hh.y+=s.originalPosition.top-(parseFloat(this.offsetTop)||0);var r=e.textContainer,a=r.style;We.dragEffect(e,!0);var h=os.createElement("div"),o=r.cloneNode(!0);(l=h.style).position="relative",["flexGrow","flexShrink","width","height","alignSelf","margin","order"].forEach(function(t){l[t]=n[t]}),o.style.visibility="hidden",h.appendChild(o),e.wu={position:n.position,width:n.width,height:n.height,left:n.left,top:n.top};var u=f.prez().Nn(),c=e.node.getBoundingClientRect();n.width=c.width/u+"px",n.height=c.height/u+"px",n.position="absolute",e._u={position:a.position,padding:a.padding,width:a.width,height:a.height,left:a.left,top:a.top,right:a.right,bottom:a.bottom},["left","right"].forEach(function(t){var i="padding"+t.charAt(0).toUpperCase()+t.slice(1);a[t]=a[i],a[i]=""}),a.position="absolute",a.width="",a.height="",t(h).addClass("ap-ctrl-drop-placeholder"),this.parentNode.appendChild(h),e.yu=h,e.hasStateFlag(S)&&e.zs.flags(S),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))}else{e.rh={left:n.left,right:n.right,top:n.top,bottom:n.bottom},e.ah=getTransformationMatrix(this.parentNode).inverse(),e.hh=e.ah.transformPoint(s.originalPosition.left,s.originalPosition.top),e.hh.x+=s.originalPosition.left-(parseFloat(t(this).css("left"))||0),e.hh.y+=s.originalPosition.top-(parseFloat(t(this).css("top"))||0),We.dragEffect(e,!0);var l;h=os.createElement("div");(l=h.style).position="absolute",["left","right","top","bottom","width","height",Xs].forEach(function(t){l[t]=n[t]}),t(h).addClass("ap-ctrl-drop-placeholder"),this.parentNode.appendChild(h),e.yu=h,e.hasStateFlag(S)&&e.zs.flags(S),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))}},stop:function(i,s){var e=this.rlControl;if(e)if(We.dragEffect(e,!1),e.parent&&e.parent.bh){var n,r=e.node.style,a=e.textContainer.style,h=e.wu,o=e._u;r.order=e.sequentialOrder;for(n in h)r[n]=h[n];for(n in o)a[n]=o[n];delete e.wu,delete e._u,(u=e.yu)&&u.parentNode&&u.parentNode.removeChild(u),delete e.yu,e.hasStateFlag(O)&&e.zs.flags(O),delete this.Tu,delete this.ku,delete this.xu,t(e).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),e.sequentialOrder!=e.bu&&ue(e,"ap-change")}else{var u;Tn(e,e.parent.children[e.sequentialOrder]),(u=e.yu)&&u.parentNode&&u.parentNode.removeChild(u),delete e.yu,e.hasStateFlag(O)&&e.zs.flags(O),t(e).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),e.sequentialOrder!=e.bu&&ue(e,"ap-change")}},drag:function(t,i){var s,e,n,r=this.rlControl;if(r)if(s=r.ah.transformPoint(i.position.left,i.position.top),i.position.left=i.originalPosition.left+s.x-r.hh.x,i.position.top=i.originalPosition.top+s.y-r.hh.y,r.parent&&r.parent.bh)for(e=this.style.zIndex,this.style.zIndex=-1,n=os.elementFromPoint(t.clientX,t.clientY),this.style.zIndex=e;n&&n!==os.documentElement;){if(n.rlControl){var a=!0;if(n&&n.rlControl){a=this.Tu!==n.rlControl;var h=i.position.top;if(a)this.Tu=n.rlControl,delete this.ku;else if(void 0===this.xu)a=!0;else if(void 0===this.ku)h!=this.xu&&(this.ku=h>this.xu);else{var o=h>this.xu;o!=this.ku&&h!=this.xu&&(this.ku=o,a=!0)}this.xu=h}if(a&&n.rlControl!==r&&r.parent){var u=r.sequentialOrder,c=n.rlControl.sequentialOrder,f=r.parent.children;for(r.yu.style.order=n.style.order,l=0,d=f.length;l<d;++l)(p=f[l])===r?p.sequentialOrder=c:((v=p.sequentialOrder)>u&&--v,v>=c&&++v,v!==p.sequentialOrder&&(p.sequentialOrder=v,p.node.style.order=v))}break}(n=n.parentNode)&&n!==os.documentElement||delete this.Tu}else for(e=this.style.zIndex,this.style.zIndex=-1,n=os.elementFromPoint(t.clientX,t.clientY),this.style.zIndex=e;n&&n!==os.documentElement;){if(n.rlControl){if(n.rlControl!==r&&r.parent){u=r.sequentialOrder,c=n.rlControl.sequentialOrder,f=r.parent.children;var l,d,p,v,m=r.yu.style,g=n.style;for(["left","right","top","bottom",Xs].forEach(function(t){m[t]=g[t]}),l=0,d=f.length;l<d;++l)(p=f[l])===r?p.sequentialOrder=c:((v=p.sequentialOrder)>u&&--v,v>=c&&++v,v!==p.sequentialOrder&&(p.sequentialOrder=v,Tn(p,f[v])))}break}n=n.parentNode}}};for(r=0,a=o.length;r<a;++r)(h=o[r]).node.rlControl=h,t(h.node).on("mousedown mouseup",function(t){this.rlControl&&this.rlControl.filterEvent(t)||this.rlControl.Ds(t)}).css("touchAction","none").draggable(l),Te(h.node)}this.vu===s.pt&&this.node.setAttribute("role","radiogroup"),this.vu===s.yt&&this.vh(this.ee.ti),this.ee.k===i.B&&(this.Cu=!1,u.h&&(this.Cu=1==u.h,this.Cu&&u.tl&&(this.Su=u.tl)),this.Ou=new Pn(this))},onResized:function(t,i){tn.prototype.onResized.call(this,t,i),this.mu&&this.shuffleAnswers(null,!0),this.Mh()},onLayoutSwitched:function(){tn.prototype.onLayoutSwitched.call(this),this.mu&&this.shuffleAnswers(null,!0),this.Mh()},vh:function(t){if(!isNaN(t)){var i=this.ee.t;if(i!=s.wt&&i!=s._t){var e=this.savedData(),n=void 0;e&&e.s&&(n=e.s);var r,a,h,o=this.children,u=-1,c=[];for(r=0,a=o.length;r<a;++r)n?(h=o[n.indexOf(r)]).vh(h.ee.ti):h=o[r],h instanceof bn?(u=h.Th,c.indexOf(u)<0?(t>=0&&h.vh(t),c.push(u)):h.vh(-2)):h instanceof pn?h.vh(t):h instanceof gn&&(n&&t>=0?0==r?h.vh(t):h.vh(-2):h.vh(t))}else tn.prototype.vh.call(this,t)}},gu:function(){var t,i=this.savedData();if(i&&i.s)return i.s;switch(this.vu){case s.gt:case s.pt:case s.vt:case s.wt:t=ws(this.children.length);break;case s._t:var e,n,a=this.children,h=0;for(e=0,n=a.length;e<n;++e)a[e].ee.f&r&&++h;t=ws(h)}return t&&(i||(i=this.savedData(!0)),i.s=t),t},shuffleAnswers:function(t,i){if(t)this.savedData(!0).s=t;else if(!(t=this.gu()))return this;if(this.mu=!0,this.lh||this.dh){var e,n,a=this.children;switch(this.vu){case s.gt:case s.pt:case s.vt:for(e=0,n=a.length;e<n;++e)this.bh?a[e].node.style.order=t[e]:Tn(a[e],a[t[e]]);break;case s.wt:for(e=0,n=a.length;e<n;++e)i&&void 0!==a[e].sequentialOrder||(a[e].sequentialOrder=t[e]),this.bh?a[e].node.style.order=a[e].sequentialOrder:Tn(a[e],a[a[e].sequentialOrder]);break;case s._t:var h,o=[];for(e=0,n=a.length;e<n;++e)(h=a[e]).ee.f&r&&o.push(h);for(e=0,n=Wi(o.length,t.length);e<n;++e)i&&o[e].dropTarget||(this.bh?o[e].node.style.order=t[e]:Tn(o[e],o[t[e]]))}return this}},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,e,n,r,a,h,o,u,c,f,l=this.children,d=this.ee.e||{},p=d.f,v=(p&It)===It,m=(p&Mt)!==Mt,g=v&&m,b=g&&(p&Rt)===Rt,w=0,_=!1,T=!1;if(this.ee.k==i.B){for(h=d.v||[],o=[],u={},t=0,e=l.length;t<e;++t)a=l[t],this.Ou&&this.Ou.isAnswerSelected(a.id())&&(o.push(a),v&&(!_&&h.indexOf(a.id())<0&&(_=!0),b&&(w+=a.ee.e.m)));this.Ou&&this.Ou.getSavedAnswers(u),T=!this.Ou.isAnswered()&&(!v||h.length>0),v&&!_&&(_=!this.Ou.hasIncorrectAnswer(h)),_&&b&&this.Cu&&(w=0),!v||_||T||this.Cu&&h.length!==o.length&&(_=!0)}else switch(this.vu){case s.pt:case s.gt:case s.vt:for(h=d.v||[],o=[],u=[],t=0,e=l.length;t<e;++t)(a=l[t]).checked&&a.checked()&&(o.push(a),u.push(a.id()),v&&(!_&&h.indexOf(a.id())<0&&(_=!0),b&&(w+=a.ee.e.m)));T=0===o.length&&(!v||h.length>0),_&&b&&this.vu===s.vt&&(w=0),!v||_||T||h.length===o.length||(_=!0);break;case s.bt:var k,x,C,S,O;for(o=[],u={},t=0,e=l.length;t<e;++t)if((a=l[t])instanceof pn)if(o.push(a),C=a.value(),u[a.id()]=C,k=a.ee.e||{},O=!a.caseSensitive(),v){for(O&&(C=C.toUpperCase()),x=-1,n=0,r=(h=k.v||[""]).length;n<r;++n)if(S=h[n],O&&(S=S.toUpperCase()),C===S){x=n;break}!_&&x<0&&C&&(_=!0),!T&&x<0&&!C&&(T=!0),b&&x>=0&&k.m&&(k.f&Rt?w+=k.m[x]||0:w+=k.m)}else T||C||(T=!0);break;case s.Tt:var E,I,M;for(o=[],u={},t=0,e=l.length;t<e;++t)if((a=l[t])instanceof on)if(o.push(a),M=a.value(),u[a.id()]=M,E=a.ee.e||{},v){for(I=-1,n=0,r=(h=E.v||[]).length;n<r;++n)if(M===h[n]){I=n;break}!_&&I<0&&void 0!==M&&(_=!0),!T&&I<0&&void 0===M&&(T=!0),b&&I>=0&&E.m&&(E.f&Rt?w+=E.m[I]||0:w+=E.m)}else T||void 0!==M||(T=!0);break;case s.wt:for(b=!1,(o=l.slice()).sort(function(t,i){return t.sequentialOrder-i.sequentialOrder}),u=[],t=0,e=o.length;t<e;++t)u.push(o[t].id());if(v&&!_)for(t=0,e=l.length;t<e;++t)if(l[t].sequentialOrder!==t){_=!0;break}break;case s._t:var N,A,D,Y,X,L,F,H=[],U=[];for(o=[],u={},t=0,e=l.length;t<e;++t)if((a=l[t]).dropHelper){h=(L=a.ee.e||{}).v||[],o.push(a),u[a.id()]=D=[],(Y=a.dropHelper.absolutePosition())&&(c||(c={}),c[a.id()]=F=[]);var B=!1;for(n=0,r=(N=a.dropHelper.droppedObjects()).length;n<r;++n)A=N[n],D.push(A.id()),Y&&(A.$a?F.push([A.$a.x,A.$a.y]):F.push([0,0])),U.push(A.id()),v&&(X=h.indexOf(A.id()),!_&&X<0&&(_=!0,B=!1),X>=0&&!B&&(B=!0),b&&X>=0&&L.m&&(w+=L.m[X]||0));var Z=B?P:R;for(v&&a.hasStateFlag(Z)&&(a.zs.flags(Z),a.savedCurrentState()),n=0,r=N.length;n<r;++n)if(A=N[n],U.push(A.id()),v){var z=h.indexOf(A.id()),G=y;G=z<0?R:P,A.hasStateFlag(G)&&(A.zs.flags(G),A.savedCurrentState())}if(v&&!_&&D.length!==h.length)for(n=0,r=h.length;n<r;++n)D.indexOf(h[n])<0&&H.push(h[n])}if(v&&!_)for(t=0,e=H.length;t<e;++t)if(U.indexOf(H[t])<0){_=!0;break}U.length||v&&!H.length||(T=!0);break;case s.yt:o=[],u=[];var V,W=0;for(t=0,e=l.length;t<e;)(a=l[t]).radioGroup&&(a.Th!==W?(W=a.Th,void 0!==V&&(o.push(V),u.push(V?V.id():0)),V=a.checked()?a:null):a.checked()&&(V=a)),++t;void 0!==V&&(o.push(V),u.push(V?V.id():0)),T=o.indexOf(null)>=0;break;default:return this}return f=T?Xt.Vi:_?Xt.Gi:v?Xt.zi:Xt.Zi,g&&!b&&f===Xt.zi&&(w=d.m||0),this.ho(this.savedData(!0),f,u,g?w:void 0,!m,o,c),this},clear:function(t,e){return this.prez()&&this.prez().ended&&!e?this:(this.vu===s.wt&&this.shuffleAnswers(),this.ee.k===i.B&&this.Ou.clear(),tn.prototype.clear.call(this,t,e))},disable:function(t){arguments.length||(t=!0);var i,s,e=this.children;for(i=0,s=e.length;i<s;++i)e[i].disable(t);return tn.prototype.disable.call(this,t)},restore:function(t){if(!t&&!(t=this.savedData()))return tn.prototype.restore.call(this,t),this.clear(void 0,!0);void 0!==t.a&&this.ao(t.a),!t.s||this.vu===tn.wt&&t.v||this.shuffleAnswers(t.s);var e,n,r,a=t.v,h=this.children;switch(this.vu){case s.gt:case s.pt:case s.vt:case s.yt:for(a||(a=[]),e=0,n=h.length;e<n;++e)(r=h[e]).check&&r.check(a.indexOf(r.id())>=0);break;case s.bt:for(a||(a={}),e=0,n=h.length;e<n;++e)(r=h[e])instanceof pn&&r.value(a[r.id()]||"");break;case s.Tt:for(a||(a={}),e=0,n=h.length;e<n;++e)(r=h[e])instanceof on&&r.value(a[r.id()]||"");break;case s.wt:var o;if(a&&a.length)for(e=0,n=h.length;e<n;++e)r=h[e],(o=a.indexOf(r.ee.i))>=0&&(r.sequentialOrder=o,this.bh?r.node.style.order=o:Tn(r,h[o]));break;case s._t:var u,c,f,l,d,p,v=t.d||{};for(e=0,n=h.length;e<n;++e)if((r=h[e]).restore(),r.dropHelper)for(u=a&&a[r.id()]||[],f=v[r.id()]||[],r.dropHelper.clear(),d=0,p=u.length;d<p;++d)(c=this.slide.object(u[d]))&&(l=f[d],r.dropHelper.drop(c,{x:l?l[0]:0,y:l?l[1]:0},!1))}if(this.ee.k==i.B)for(this.Ou.restoreSavedAnswers(a),e=0,n=h.length;e<n;++e)(r=h[e]).restore();return this},cleanup:function(){if(this.vu===s.wt){var i,e,n,r=this.children;for(i=0,e=r.length;i<e;++i)(n=r[i]).node.rlControl&&(t(n.node).draggable("destroy"),delete n.node.rlControl),n.yu&&n.yu.parentNode&&n.yu.parentNode.removeChild(n.yu)}return tn.prototype.cleanup.call(this)},se:function(t){t=t||{};var e=this.ee.e||{},n=((e.f||0)&It)===It,r=this.savedData();if(n){switch(this.vu){case s.gt:case s.pt:case s.vt:var a=[];r&&(a=r.v||[]);for(var h=e.v||[],o=0;o<this.children.length;++o){var u=(O=this.children[o]).id();if(tn.prototype.uo.call(O),t.showCorrect)if(h.indexOf(u)>=0)(g=this.So(!0,"middle-left"))&&(O.node.appendChild(g),O.fo=g);if(t.showIncorrect)if(a.indexOf(u)>=0&&h.indexOf(u)<0)(g=this.So(!1,"middle-left"))&&(O.node.appendChild(g),O.lo=g)}break;case s.bt:a={};r&&(a=r.v||{});for(o=0;o<this.children.length;++o){if((O=this.children[o])instanceof pn){h=(O.ee.e||{}).v||[""];var c=!O.caseSensitive(),f=a[O.id()],l=[];if(c)for(var d=0;d<h.length;d++)l.push(h[d].toLowerCase());else l=h;if(((b=l.indexOf(c?f.toLowerCase():f)>=0)&&!t.showCorrect||!b&&!t.showIncorrect)&&(b=null),tn.prototype.uo.call(O),null!==b||t.showValues)(C=O._o(this,b,{correctAnswers:h,options:t})).checkMark&&(O.fo=C.checkMark),C.popup&&(O.do=C.popup)}}break;case s.Tt:a={};r&&(a=r.v||{});for(o=0;o<this.children.length;++o){if((O=this.children[o])instanceof on){h=(O.ee.e||{}).v||[],f=a[O.id()];if(((b=h.indexOf(f)>=0)&&!t.showCorrect||!b&&!t.showIncorrect)&&(b=null),tn.prototype.uo.call(O),null!==b||t.showValues)(C=O._o(this,b,{correctAnswers:h,options:t})).checkMark&&(O.fo=C.checkMark),C.popup&&(O.do=C.popup)}}break;case s.wt:var p=this.children,v=p.slice(),m=[];v.sort(function(t,i){return t.sequentialOrder-i.sequentialOrder});for(o=0;o<v.length;o++)m.push(v[o].id());for(a=r.v||m,o=0;o<p.length;o++){var g,b=(f=a[o])===(O=p[o]).id();if(tn.prototype.uo.call(O),b&&t.showCorrect||!b&&t.showIncorrect)(g=this.wo(b,(o+1).toString(),"middle-left-inner"))&&(O.node.appendChild(g),b?O.fo=g:O.lo=g)}break;case s._t:tn.prototype.uo.call(this);for(var w={},_=(o=0,this.children.length);o<_;++o){if((O=this.children[o]).dropHelper&&O.ee.e&&O.ee.e.v)for(h=O.ee.e.v,d=0;d<h.length;++d){var y=h[d];w[y]?++w[y]:w[y]=1}}for(o=0,_=this.children.length;o<_;++o){if((O=this.children[o]).dropHelper){b=!0,h=(O.ee.e||{}).v||[];var T=O.dropHelper.droppedObjects(),k=[];for(d=0;d<h.length;++d){(x=this.slide.object(h[d]))&&k.push(x)}if(T.length>k.length)b=!1;else{for(d=0;d<T.length;++d)if(k.indexOf(T[d])<0){b=!1;break}if(b&&T.length<k.length)for(d=0;d<k.length;++d){var x=k[d];if(T.indexOf(x)<0){if(!(w[x.id()]>1)){b=!1;break}if(!x.dropTarget){b=!1;break}}}}if(b&&t.showCorrect||!b&&t.showIncorrect||t.showValues){var C,S=t.showValues&&!(b&&t.showCorrect||!b&&t.showIncorrect);(C=O._o(this,S?null:b,{yourAnswerCtrls:T,correctAnswerCtrls:k,options:t},"middle-center")).checkMark&&(O.fo=C.checkMark),C.popup&&(O.do=C.popup)}}}}if(this.ee.k==i.B){for(h=e.v||[],o=0;o<this.children.length;++o){var O;(O=this.children[o])instanceof fn&&O.mh(!!(t.showValues&&h.indexOf(O.id())>=0))}var E=this.Ou.getHotSpotEffects();if(E)for(o=0;o<E.length;++o){var I,P=E[o],R=h.indexOf(P.answerId)>=0;I=R&&t.showCorrect||!R&&t.showIncorrect?R?"#2fae62":"#d15327":this.Ou.Eu,P.color(I)}}if(tn.prototype.uo.call(this.slide),t.showResult){var M=Xt.Vi;r&&void 0!==r.r&&(M=r.r);var N=this.bo(M,this.slide.prez().responseResultString(M));N&&(this.slide.node.appendChild(N),this.slide.po=N)}}},Xs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&tn.prototype.Xs.call(this,t,i,s)},Hs:function(t){return this.ee.k==i.B&&"ap-click"==t},filterEvent:function(t){return this.ee.k!=i.B||"mousedown"!=t.type&&"mouseup"!=t.type?yn.prototype.filterEvent.call(this,t):!this.qr(t.target)}});en(function(t,s){return s.k==i.L&&s.t||s.k==i.B?new kn(t,s):new yn(t,s)},i.L,i.F,i.B,i.nt);var xn=js(Qe,{$init:function(t,i){i.ee.isFeedback?this.node=t.ui.feedbackSlides()[0]:this.node=t.ui.slides()[0],this.slide=i}});en(function(t,i){return new xn(t,i)},i.q);var Cn=js(tn,{$init:function(t,i){tn.prototype.$init.call(this,t,i)},createNode:function(){var t=tn.prototype.createNode.call(this),i=os.createElement("img"),s=i.style;return t.tabIndex=-1,t.appendChild(i),s.position="absolute",s.width="100%",s.height="100%",s.pointerEvents="auto",this.imageNode=i,i.addEventListener("dragstart",function(t){t.preventDefault()},!1),t},Ra:function(){var t,i,s,e,n=this.shape,r=this.imageNode.style;if(n&&n.Zs){if(t=n.Iu().fill,(s=os.createElementNS(Ui,"path")).setAttribute("d",t),(i=os.createElementNS(Ui,"svg")).appendChild(s),i.style.visibility="hidden",this.node.appendChild(i),e=hr(s),this.node.removeChild(i),r.clipPath='path("'+t+'")',r.left=e.x+"px",r.top=e.y+"px",r.width=e.width+"px",r.height=e.height+"px",this.shape&&this.shape.Pu&&this.dh&&e.height>this.dh&&(r.top=-e.y+this.dh-e.height+"px"),this.shape&&this.shape.Ru&&this.lh&&e.width>this.lh&&(r.left=-e.x+this.lh-e.width+"px"),0!=e.x||0!=e.y){var a=sr[n.Zs],h=n.container.clientWidth,o=n.container.clientHeight,u=new er;a&&a[0]&&(a[0].apply(u,[-e.x,-e.y,h,o].concat(n.Fo)),r.clipPath='path("'+u.path()+'")')}}else n&&(r.clipPath="")},onResized:function(t,i){tn.prototype.onResized.call(this,t,i),this.Ra()},ka:function(t,i,s){this.imageNode.src=this.prez().getResource(t,i),s?this.imageNode.setAttribute("alt",s):this.imageNode.removeAttribute("alt"),this.shape.Mu(t,i)},html:_n,flip:function(t,i){return Is(this.imageNode,t,i),tn.prototype.flip.call(this,t,i)}});function Sn(i,s,e){function n(){var n=50+s;n=""==i.value?50+s:t(i).apInputTagAutoWidth()+s,n+="px";var r=i.style.width!=n;t(i).css({width:n}),r&&e&&e()}s=s||0;var r="keyup,keypress,focus,blur,change".split(",");for(var a in r)i.addEventListener(r[a],n,!1);n()}en(function(t,i){return new Cn(t,i)},i._),t.fn.apInputTagAutoWidth=function(){t.fn.apInputTagAutoWidth.fakeEl||(t.fn.apInputTagAutoWidth.fakeEl=t("<span>").hide().appendTo(os.body));var i=i||this.val()||this.text();i=i.replace(/ /g,"."),t.fn.apInputTagAutoWidth.fakeEl.text(i).css("font-family",this.css("font-family")).css("font-size",this.css("font-size")).css("font-weight",this.css("font-weight")).css("font-weight",this.css("font-weight")).css("font-variant",this.css("font-variant"));var s=parseInt(t.fn.apInputTagAutoWidth.fakeEl.width())+5;return s<50&&(s=50),s};var On=js(tn,{$init:function(i,s){tn.prototype.$init.call(this,i,s),this.zh();var e=this;if(t(this.node).on("mousedown mouseup",function(t){e.filterEvent(t)||e.Ds(t)}),this.Nu=[],this.Au=[],this.textNode){this.Nu=t(this.textNode).find("input");for(var n=0,r=this.Nu.length;n<r;++n){var a=this.Nu[n];this.Au.push(a.parentNode),a.spellcheck=!1,t(a).on("focus",function(t){e.Xs(!1,!0)||t.preventDefault()}).on("blur",function(t){e.Xs(!1,!0)||t.preventDefault()}).on("mousedown",function(t){e.Xs(!1,!0)||t.preventDefault()}),Sn(a,void 0,function(){e.Pa&&e.Pa()})}t(this.textNode).on("change",function(){e.Xs(!1,!0)&&ue(e,"ap-change")})}this.vh(s.ti)},vh:function(t){if(!isNaN(t))if(this.zh(),-2==t)this.textNode.tabIndex=-1;else if(-1==t)this.textNode.removeAttribute("tabIndex");else if(this.Nu&&this.Nu.length>0)for(var i=0,s=this.Nu.length;i<s;++i){this.Nu[i].tabIndex=t}},allInputValues:function(t){var i=[];if(this.Nu&&0!=this.Nu.length&&t)for(var s=0,e=this.Nu.length;s<e;++s){var n=this.Nu[s];arguments.length||i.push(n&&n.value||""),n||this.zh();var r=t[s]?t[s]+"":"";n.value=r}else for(s=0,e=this.Nu.length;s<e;++s){n=this.Nu[s];arguments.length||i.push(n&&n.value||""),n||this.zh(),n.value=""}return arguments.length?(this.Du(),this):i},Zh:function(){return tn.prototype.Zh.call(this)+"border: none; margin: 0; padding: 0; width: 100%; outline: none;"},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:this.allInputValues([])},restore:function(t){return tn.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.ao(t.a),this.allInputValues(t&&t.v||{})},Na:function(t,i){if(this.Nu){var s,e=(i&x)==x,n=this.Nu.length;for(s=0;s<n;++s)this.Nu[s].disabled=e}},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,i,s,e,n,r,a,h,o,u,c,f,l,d,p=this.Nu,v=this.ee.e||{},m=v.f,g=(m&It)===It,b=(m&Mt)!==Mt,w=g&&b,_=w&&(m&Rt)===Rt,y=0,T=!1,k=!1,x=v.v||[];for(a=[],h={},t=0,i=p.length;t<i;++t)if(n=p[t],a.push(n),c=n.value,h[t]=c,g){if(!(o=x[t]))continue;for((l=!o.c)&&(c=c.toUpperCase()),u=-1,s=0,e=(r=o.v||[""]).length;s<e;++s)if(f=r[s],l&&(f=f.toUpperCase()),c===f){u=s;break}!T&&u<0&&c&&(T=!0),!k&&u<0&&!c&&(k=!0),_&&u>=0&&o.m&&(y+=o.m||0)}else k||c||(k=!0);return d=k?Xt.Vi:T?Xt.Gi:g?Xt.zi:Xt.Zi,w&&!_&&d===Xt.zi&&(y=v.m||0),this.ho(this.savedData(!0),d,h,w?y:void 0,!b,a,void 0),this},se:function(t){t=t||{};var i=this.ee.e||{},s=((i.f||0)&It)===It,e=this.savedData();if(s){var n={};e&&(n=e.v||{});for(var r=[],a=i.v||[],h=this.Nu,o=0;o<h.length;++o){_=h[o];var u=a[o],c=u.v||[""],f=!u.c,l=n[o],d=[];if(f)for(var p=0;p<c.length;p++)d.push(c[p].toLowerCase());else d=c;var v=d.indexOf(f?l.toLowerCase():l)>=0;r.push({correct:v,arrCorrectValues:d.slice(),inputNode:_})}if(this.Yu){o=0;for(var m=this.Yu.length;o<m;++o){var g=this.Yu[o];g&&g.parentNode&&g.parentNode.removeChild(g)}}if(this.Yu=[],this.Xu)for(o=0,m=this.Xu.length;o<m;++o){var b=this.Xu[o];b&&b.parentNode&&b.parentNode.removeChild(b)}this.Xu=[];var w=0;(t.showCorrect||t.showIncorrect)&&(w=18),t.showValues&&(w+=2,w+=18);for(o=0,m=r.length;o<m;++o){var _,y=r[o];if(((v=y.correct)&&!t.showCorrect||!v&&!t.showIncorrect)&&(v=null),Sn(_=y.inputNode,w),null!==v||t.showValues){var T=this._o(this.node,v,{correctAnswers:y.arrCorrectValues.slice(),options:t});T.checkMark&&(this.Yu.push(T.checkMark),this.Au[o].appendChild(T.checkMark)),T.popup&&this.Xu.push(T.popup)}}if(tn.prototype.uo.call(this.slide),t.showResult){var k=Xt.Vi;e&&void 0!==e.r&&(k=e.r);var x=this.bo(k,this.slide.prez().responseResultString(k));x&&(this.slide.node.appendChild(x),this.slide.po=x)}}},Xs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&tn.prototype.Xs.call(this,t,i,s)},Du:function(){for(var t=this.Nu,i=this,s=0,e=t.length;s<e;++s)Sn(t[s],void 0,function(){i.Pa&&i.Pa()})}});en(function(t,i){return new On(t,i)},i.U);var En=js(tn,{$init:function(t,i){tn.prototype.$init.call(this,t,i),this.Lu=0},createNode:function(){var t=tn.prototype.createNode.call(this),i=os.createElement("div");i.style.top="50%",i.style.left="50%",i.style.width=this.ee.ge.w+"px",i.style.height=this.ee.ge.h+"px",i.style.position="absolute",i.style[Xs]="translate(-50%, -50%)";var s=os.createElement("canvas");return Es(s,{width:this.ee.ge.w,height:this.ee.ge.h}),this.Fu=s,i.appendChild(s),t.appendChild(i),t}});en(function(t,i){return new En(t,i)},i.P);var In=js({$init:function(t,i,s,e,n,r){this.x=t,this.y=i,this.answerId=parseInt(s);var a=2*e,h=os.createElement("div"),o=h.style;if(h.className="ap-hotspot",o.pointerEvents="auto",o.left=t,o.top=i,o.width=a+"px",o.height=a+"px",o[Xs]="translate3d("+-e+"px, "+-e+"px, 0px)",r){var u=os.createElement("div");u.className="hs-ring",h.appendChild(u)}this.node=h,this.color(n)},color:function(t){this.node.style.backgroundColor=t,this.node.firstChild&&(this.node.firstChild.style.borderColor=t)}}),Pn=js({$init:function(t){this.ya=t,this.Hu=[];var i=t.children[0];i&&i instanceof Cn||(i=t),this.Uu=i.node;var s=t.ee;if(this.Bu=s.hs[0],this.Eu=Ps(s.hs[1]),!t.prez().demoMode()){t.node.style.pointerEvents="auto";var e=this;t.on("ap-click",function(t){if(this.Xs(!1,!0)){var i=t.originalEvent,s=this.qr(i.target);if(s){var n=e.Uu,r=convertPointFromPageToNode(n,i.pageX,i.pageY);r.x=100*(r.x+n.scrollLeft)/(n.clientWidth||1),r.y=100*(r.y+n.scrollTop)/(n.clientHeight||1),r.x=r.x.toFixed(2)+"%",r.y=r.y.toFixed(2)+"%",e.addHotSpotEffect(r.x,r.y,s.id())&&ue(s,"ap-change")}}})}},clear:function(){for(var t=this.Hu,i=0;i<t.length;++i)this.Uu.removeChild(t[i].node);t.length=0},addHotSpotEffect:function(i,s,e){var n=this.ya,r=this.Hu;if(n.Cu){if(r.length==n.Su)return!1}else this.clear();var a=this,h=new In(i,s,e,this.Bu,this.Eu,!n.prez().isReviewingMode());return t(h.node).on("mousedown",function(){a.ya.Xs(!1,!0)&&(a.removeHotSpotEffect(h),ue(a.ya.Dh(h.answerId,!0)||a.ya,"ap-change"))}),this.Uu.appendChild(h.node),r.push(h),!0},removeHotSpotEffect:function(t){var i=this.Hu.indexOf(t);i>=0&&(this.Hu.splice(i,1),this.Uu.removeChild(t.node))},getHotSpotEffects:function(){return this.Hu},isAnswered:function(){return this.Hu.length>0},isAnswerSelected:function(t){for(var i=this.Hu,s=0;s<i.length;s++)if(i[s].answerId==t)return!0;return!1},getSavedAnswers:function(t){for(var i=this.Hu,s=0;s<i.length;s++){var e=i[s],n="("+e.x+","+e.y+")";t[e.answerId]?t[e.answerId]+=","+n:t[e.answerId]=n}},restoreSavedAnswers:function(t){if(this.clear(),t)for(var i in t){var s=t[i];if(s){if((s=s.replace(/[()]/g,"").split(",")).length%2!=0)continue;for(var e=0;e<s.length;e+=2)this.addHotSpotEffect(s[e],s[e+1],i)}}},hasIncorrectAnswer:function(t){for(var i=this.Hu,s=0;s<i.length;s++)if(t.indexOf(i[s].answerId)<0)return!1;return!0}}),Rn={LINEWIDTH:6,CIRCLE_RADIUS_MAX:40,RECTANGLE_HEIGHT_ARROW:160,RECTANGLE_WIDTH_ARROW:40,ARROW_HEIGHT:80,HOLD_CIRCLE_RADIUS:25,PINCH_IN_OUT_ANGLE:Zi/6,TWO_FINGERS_TAP_ANGLE:Zi/18,TWO_FINGERS_CIRCLE_RADIUS_DOUBLE:20,TWO_FINGERS_CIRCLE_RADIUS_SINGLE:15,TWO_FINGERS_BETA_MIN:Zi/36,TWO_FINGERS_BETA_MAX:Zi/3,TWO_FINGERS_DOUBLE_BETA_MIN:Zi/6,TWO_FINGERS_DOUBLE_BETA_MAX:Zi/3,CIRCLE_LEFT_RIGHT_RADIUS:60,LEFT_RIGHT_ROTATE_ARROW_WIDTH:30,ROTATE_ARROW_HEIGHT:50,INNER_CIRCLE_RADIUS:25,Motivate:function(t){return vr.linear(t)},fadeIn:function(t,i){i<=.3&&(t*=i/.3);return t},fadeOut:function(t,i){i>=.8&&(i>1&&(i=1),t*=1-(i-.8)/(1-.8));return t},drawUpArrowPath:function(t,i,s){t.beginPath(),t.moveTo(0,0),t.lineTo(-i,i),t.lineTo(-i/2,i),t.lineTo(0,s),t.lineTo(i/2,i),t.lineTo(i,i),t.closePath(),t.fill()},drawUpLeftCurveArrowPath:function(t,i,s,e){var n=(i*i/4-e*i)/2/(Math.sqrt(e*e-s*s)-e+i/2)+e-i/2,r=(i*i/4+e*i)/2/(Math.sqrt(e*e-s*s)-e-i/2)+e+i/2;t.beginPath(),t.moveTo(0,-i),t.lineTo(-i,0),t.lineTo(-i/2,0),t.arc(-n-i/2,0,n,0,Math.asin(s/n)),t.arc(i/2-r,0,r,-2*Zi+Math.asin(s/r),0,!0),t.lineTo(i,0),t.fill(),t.closePath()},drawUpRightCurveArrowPath:function(t,i,s,e){var n=(i*i/4-e*i)/2/(Math.sqrt(e*e-s*s)-e+i/2)+e-i/2,r=(i*i/4+e*i)/2/(Math.sqrt(e*e-s*s)-e-i/2)+e+i/2;t.beginPath(),t.moveTo(0,-i),t.lineTo(-i,0),t.lineTo(-i/2,0),t.arc(r-i/2,0,r,-Zi,-Zi-Math.asin(s/r),!0),t.arc(n+i/2,0,n,Zi-Math.asin(s/n),Zi,!1),t.lineTo(i,0),t.fill(),t.closePath()},drawSingleTap:function(t,i,s,e,n,r){var a=this.LINEWIDTH,h=this.CIRCLE_RADIUS_MAX,o=n.call(null,e)*(h-a)+a;t.lineWidth=a;var u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.strokeStyle=r,t.clearRect(i-h-a,s-h-a,2*(h+a),2*(h+a)),t.beginPath(),t.arc(i,s,o,0,2*Zi),t.stroke(),t.closePath()},drawDoubleTap:function(t,i,s,e,n,r){var a=this.CIRCLE_RADIUS_MAX,h=n.call(null,e)*(a-this.LINEWIDTH-15)+this.LINEWIDTH+15;t.lineWidth=this.LINEWIDTH;var o=this.fadeIn(1,e);o=this.fadeOut(o,e),t.globalAlpha=o,t.strokeStyle=r,t.clearRect(i-a-15,s-a-15,2*(a+15),2*(a+15)),t.beginPath(),t.arc(i,s,h,0,2*Zi),t.stroke(),t.closePath(),h>.3*(a-this.LINEWIDTH-15)+this.LINEWIDTH+15&&(t.beginPath(),t.arc(i,s,h-15,0,2*Zi),t.stroke(),t.closePath())},drawHold:function(t,i,s,e,n,r){var a=this.HOLD_CIRCLE_RADIUS,h=this.LINEWIDTH/2,o=.5*a,u=Zi/4,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.strokeStyle=r,t.fillStyle=r;var f=2*Zi*n.call(null,e);t.clearRect(i-(a+2*o),s-(a+2*o),2*(a+2*o),2*(a+2*o)),t.beginPath(),t.lineWidth=this.LINEWIDTH,t.arc(i,s,a,0,2*Zi),t.stroke(),t.closePath(),t.translate(i+Math.cos(u)*(a+o)+h*Math.sin(Zi/4),s-Math.sin(u)*(a+o)-h*Math.cos(Zi/4)),t.beginPath(),t.lineWidth=this.LINEWIDTH/2,t.arc(0,0,o,0,2*Zi),t.stroke(),t.closePath(),t.setTransform(1,0,0,1,0,0),t.translate(i+Math.cos(u)*(a+o)+h*Math.sin(Zi/4),s-Math.sin(u)*(a+o)-h*Math.cos(Zi/4)),t.beginPath(),t.lineWidth=this.LINEWIDTH/2,t.moveTo(0,0),t.arc(0,0,o,-Zi/2+f,1.5*Zi,!0),t.fill(),t.closePath(),t.setTransform(1,0,0,1,0,0)},drawSwipeUp:function(t,i,s,e,n,r){var a=this.RECTANGLE_WIDTH_ARROW/2,h=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-h,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=r,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s+u/2-n.call(null,e)*u),this.drawUpArrowPath(t,a,h),t.setTransform(1,0,0,1,0,0)},drawSwipeDown:function(t,i,s,e,n,r){var a=this.RECTANGLE_WIDTH_ARROW/2,h=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-h,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=r,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s-u/2+n.call(null,e)*u),t.rotate(Zi),this.drawUpArrowPath(t,a,h),t.setTransform(1,0,0,1,0,0)},drawSwipeRight:function(t,i,s,e,n,r){var a=this.RECTANGLE_WIDTH_ARROW/2,h=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-h,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=r,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i-u/2+n.call(null,e)*u,s),t.rotate(Zi/2),this.drawUpArrowPath(t,a,h),t.setTransform(1,0,0,1,0,0)},drawSwipeLeft:function(t,i,s,e,n,r){var a=this.RECTANGLE_WIDTH_ARROW/2,h=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-h,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=r,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i+u/2-n.call(null,e)*u,s),t.fillStyle=r,t.rotate(1.5*Zi),this.drawUpArrowPath(t,a,h),t.setTransform(1,0,0,1,0,0)},drawPinchIn:function(t,i,s,e,n,r){var a=this.RECTANGLE_WIDTH_ARROW/2,h=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=this.PINCH_IN_OUT_ANGLE,c=Math.sin(u)*(o-h),f=this.fadeIn(1,e);f=this.fadeOut(f,e),t.globalAlpha=f,t.fillStyle=r,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s);var l=-Math.sin(u)*o+h*Math.sin(u)+n.call(null,e)*c,d=-l/Math.tan(u);t.translate(l,d),t.rotate(u),this.drawUpArrowPath(t,a,h),t.setTransform(1,0,0,1,i,s);var p=Math.sin(u)*o-h*Math.sin(u)-n.call(null,e)*c,v=-p/Math.tan(u);t.translate(p,v),t.rotate(Zi+u),this.drawUpArrowPath(t,a,h),t.setTransform(1,0,0,1,0,0)},drawPinchOut:function(t,i,s,e,n,r){var a=this.RECTANGLE_WIDTH_ARROW/2,h=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=this.PINCH_IN_OUT_ANGLE,c=Math.sin(u)*(o-h),f=this.fadeIn(1,e);f=this.fadeOut(f,e),t.globalAlpha=f,t.fillStyle=r,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s);var l=h*Math.sin(u)+n.call(null,e)*c,d=-l/Math.tan(u);t.translate(l,d),t.rotate(u),this.drawUpArrowPath(t,a,h),t.setTransform(1,0,0,1,i,s);var p=-h*Math.sin(u)-n.call(null,e)*c,v=-p/Math.tan(u);t.translate(p,v),t.rotate(Zi+u),this.drawUpArrowPath(t,a,h),t.setTransform(1,0,0,1,0,0)},drawTwoFingersTap:function(t,i,s,e,n,r){var a=this.TWO_FINGERS_CIRCLE_RADIUS_SINGLE,h=this.TWO_FINGERS_TAP_ANGLE,o=this.TWO_FINGERS_BETA_MIN,u=this.TWO_FINGERS_BETA_MAX,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.strokeStyle=r;var f=o+n.call(null,e)*(u-o),l=a/Math.cos(f);t.clearRect(i-4*a,s-4*a,8*a,8*a),t.lineWidth=this.LINEWIDTH,t.lineJoin="round",t.lineCap="round",t.translate(i,s),t.rotate(-60*h/Zi),t.beginPath(),t.arc(a,0,l,Zi-f,-Zi+f,!0),t.arc(-a,0,l,-f,-2*Zi+f,!0),t.stroke(),t.closePath(),t.setTransform(1,0,0,1,0,0)},drawTwoFingersDoubleTap:function(t,i,s,e,n,r){var a=this.TWO_FINGERS_CIRCLE_RADIUS_DOUBLE,h=this.TWO_FINGERS_TAP_ANGLE,o=this.TWO_FINGERS_DOUBLE_BETA_MIN,u=this.TWO_FINGERS_DOUBLE_BETA_MAX,c=o+n.call(null,e)*(u-o),f=a/Math.cos(c);t.clearRect(i-4*a,s-4*a,8*a,8*a),t.translate(i,s),t.rotate(-60*h/Zi),t.lineWidth=this.LINEWIDTH;var l=this.fadeIn(1,e);if(l=this.fadeOut(l,e),t.globalAlpha=l,t.strokeStyle=r,t.lineJoin="round",t.lineCap="round",t.beginPath(),t.arc(-a,0,f,-c,-2*Zi+c,!0),t.arc(a,0,f,Zi-c,-Zi+c,!0),t.stroke(),t.closePath(),f*Math.sin(c)>15){var d=Math.atan((f*Math.sin(c)-15)/a),p=a/Math.cos(d);t.beginPath(),t.arc(-a,0,p,-d,-2*Zi+d,!0),t.arc(a,0,p,+Zi-d,-Zi+d,!0),t.stroke()}t.setTransform(1,0,0,1,0,0)},drawFingers:function(t,i,s,e,n,r){var a=this.INNER_CIRCLE_RADIUS,h=this.RECTANGLE_WIDTH_ARROW/2,o=this.RECTANGLE_HEIGHT_ARROW,u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.fillStyle=r,t.clearRect(i-o-a,s-o-a,2*(o+a),2*(o+a));var c=Zi/2,f=o-80;t.translate(i-a-o+80+n.call(null,e)*f,s),t.rotate(c),this.drawUpArrowPath(t,h,80),t.setTransform(1,0,0,1,0,0),c=Zi/4,f=Math.sin(c)*(o-80),t.translate(i,s);var l=Math.sin(c)*(-o-a+80)+n.call(null,e)*f,d=l/Math.tan(c);t.translate(l,d),t.rotate(Zi-c),this.drawUpArrowPath(t,h,80),t.setTransform(1,0,0,1,0,0),c=Zi,f=o-80,t.translate(i,s-a-o+80+n.call(null,e)*f),t.rotate(c),this.drawUpArrowPath(t,h,80),t.setTransform(1,0,0,1,0,0),c=Zi/6,f=Math.sin(c)*(o-80),t.translate(i,s);d=-(l=Math.sin(c)*(o+a-80)-n.call(null,e)*f)/Math.tan(c);t.translate(l,d),t.rotate(Zi+c),this.drawUpArrowPath(t,h,80),t.setTransform(1,0,0,1,0,0),c=Zi/3,f=Math.sin(c)*(o-80),t.translate(i,s),d=-(l=Math.sin(c)*(o+a-80)-n.call(null,e)*f)/Math.tan(c),t.translate(l,d),t.rotate(Zi+c),this.drawUpArrowPath(t,h,80),t.setTransform(1,0,0,1,0,0)},drawRotateLeft:function(t,i,s,e,n,r){var a=this.LEFT_RIGHT_ROTATE_ARROW_WIDTH/2,h=this.ROTATE_ARROW_HEIGHT,o=this.CIRCLE_LEFT_RIGHT_RADIUS,u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.fillStyle=r;var c=Os(110+60*n.call(null,e));t.clearRect(0,0,400,400),t.translate(i+Math.cos(c)*o,s-Math.sin(c)*o),t.rotate(-c),this.drawUpLeftCurveArrowPath(t,a,h,o),t.setTransform(1,0,0,1,0,0);var f=Os(200+60*n.call(null,e));t.translate(i+Math.cos(f)*o,s-Math.sin(f)*o),t.rotate(-f),this.drawUpLeftCurveArrowPath(t,a,h,o),t.setTransform(1,0,0,1,0,0)},drawRotateRight:function(t,i,s,e,n,r){var a=this.LEFT_RIGHT_ROTATE_ARROW_WIDTH/2,h=this.ROTATE_ARROW_HEIGHT,o=this.CIRCLE_LEFT_RIGHT_RADIUS,u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.fillStyle=r;var c=Os(150-60*n.call(null,e));t.clearRect(0,0,400,400),t.translate(i+Math.cos(c)*o,s-Math.sin(c)*o),t.rotate(Zi-c),this.drawUpRightCurveArrowPath(t,a,h,o),t.setTransform(1,0,0,1,0,0);var f=Os(60-60*n.call(null,e));t.translate(i+Math.cos(f)*o,s-Math.sin(f)*o),t.rotate(Zi-f),this.drawUpRightCurveArrowPath(t,a,h,o),t.setTransform(1,0,0,1,0,0)},renderGestureEffect:function(t,i,s,e,n,r){switch(i){case ri:this.drawSingleTap(t,s,e,n,this.Motivate,r);break;case ai:this.drawDoubleTap(t,s,e,n,this.Motivate,r);break;case hi:this.drawHold(t,s,e,n,this.Motivate,r);break;case oi:this.drawTwoFingersTap(t,s,e,n,this.Motivate,r);break;case ui:this.drawTwoFingersDoubleTap(t,s,e,n,this.Motivate,r);break;case ci:this.drawSwipeUp(t,s,e,n,this.Motivate,r);break;case li:this.drawSwipeDown(t,s,e,n,this.Motivate,r);break;case di:this.drawSwipeLeft(t,s,e,n,this.Motivate,r);break;case fi:this.drawSwipeRight(t,s,e,n,this.Motivate,r);break;case di:this.drawSwipeLeft(t,s,e,n,this.Motivate,r);break;case pi:this.drawRotateLeft(t,s,e,n,this.Motivate,r);break;case vi:this.drawRotateRight(t,s,e,n,this.Motivate,r);break;case mi:this.drawPinchIn(t,s,e,n,this.Motivate,r);break;case gi:this.drawPinchOut(t,s,e,n,this.Motivate,r);break;case bi:this.drawFingers(t,s,e,n,this.Motivate,r)}},renderMouseEffect:function(t,i,s,e,n,r,a){t.clearRect(0,0,2*a+4,2*a+4);var h=n*a;if(t.strokeStyle=r,t.lineWidth=2,t.lineJoin="round",t.lineCap="round",i==wi)t.beginPath(),t.arc(s,e,h,0,2*Math.PI),t.stroke();else if(i==_i)for(;h>0;)t.beginPath(),t.arc(s,e,h,0,2*Math.PI),t.stroke(),h-=9;else i==yi&&t.strokeRect(s-h,e-h,2*h,2*h)}},Mn=js(Cn,{$init:function(t,s){this.Zu=s;var e=2*s.hl_size,n=2*s.hl_size,r=t.defaultCtrlData();r.i=s.id,r.k=i.j,r.m=s.showMode,r.ti=-1;var a=[];if(t.ee&&t.ee.h)for(var h=0;h<t.ee.h.length;h++){var o=s.pos[h][0]-e/2,u=s.pos[h][1]-n/2,c={};c.r=[o,u,e,n],a.push(c)}r.s=[{w:a}],r.ti=-1,Cn.prototype.$init.call(this,t,r),this.node.style.zIndex=Qt.ss,this.node.style.pointerEvents="none",this.imageNode.style.pointerEvents="none",this.zu=ns({},Qe,{node:this.imageNode,slide:this.slide})},Gu:function(){var t,i=this.slide,s=this.Zu.cursors;if(s&&s.length){(t=new Fr({startTime:0})).addChild(new Xr(this,"display",{startTime:0,duration:0,tweenParams:["none","block"]}));for(var e=0;e<s.length;e++)for(var n=0;n<this.slide.ee.h.length;n++){var r=0,a=s[e].points[n].length;2==a?r=2:4==a&&(r=1);for(var h=0;h<r;h++)s[e].points[n].push(s[e].points[n][0]),s[e].points[n].push(s[e].points[n][1]);0==e&&s[e].points[n].push(1)}var o=0,u=0,c=0,f=0,l=0,d="";for(e=0;e<s.length;e++){var p=s[e],v=s[e+1],m=p.start,g=p.stop,b=p.move;if(p.img){var w=p.img.w,_=p.img.h,y=this.Zu.hl_size-p.img.hpx,T=this.Zu.hl_size-p.img.hpy,k=this.slide.prez().getResource(p.img.id,p.img.ext);t.addChild(new Xr(this.zu,"src",{startTime:o,duration:0,tweenParams:[d,k],tweenType:Jt.ms})),t.addChild(new Xr(this.zu,"width",{startTime:o,duration:0,tweenParams:[u,w],tweenType:Jt.ms})),t.addChild(new Xr(this.zu,"height",{startTime:o,duration:0,tweenParams:[c,_],tweenType:Jt.ms})),t.addChild(new Xr(this.zu,"left",{startTime:o,duration:0,tweenParams:[f,y],tweenType:Jt.ms})),t.addChild(new Xr(this.zu,"top",{startTime:o,duration:0,tweenParams:[l,T],tweenType:Jt.ms})),u=w,c=_,f=y,l=T,d=k}else 0==e&&(t.addChild(new Xr(this.zu,"width",{startTime:o,duration:0,tweenParams:[0,0],tweenType:Jt.ms})),t.addChild(new Xr(this.zu,"height",{startTime:o,duration:0,tweenParams:[0,0],tweenType:Jt.ms})));var x=this.slide.prez().layoutIndex;if(void 0!=p.click&&(void 0!==p.sound||p.click_eff)&&function(t,s,e){i.Ze.addChild(new Yr(function(){var n=i.prez();void 0!==t.sound&&n.Qs(t.sound,t.sdur,t,!0),t.click_eff&&n.pa(s,e,t.click_eff.r,t.click_eff.type,Ps(t.click_eff.color),1e3)},{startTime:o+p.click}))}(p,this.Zu.pos[x][0]+p.points[x][0],this.Zu.pos[x][1]+p.points[x][1]),v){var C=[];for(n=0;n<p.points.length;n++){var S=p.points[n],O=v.points[n];C.push([S,O])}t.addChild(new Xr(this,"position",{startTime:o+m,duration:b,tweenParams:[C[x]],tweenType:Jt.gs,easing:vr.inOutQuad}))}m>=0?o+=m+g+b:o=-1}o>0&&t.addChild(new Xr(this,"display",{startTime:o,duration:0,tweenParams:["block","none"]}))}return t}});en(function(t,i){return new Mn(t,i)},i.j);var Nn=js({$init:function(t){this.ue=t,this.ue.en.Ae(this)},zs:function(t){},Vu:function(t){},Wu:function(){},$u:function(){},Ku:function(){},nativePlayer:function(){},state:function(){},pause:function(t){},play:function(t){},position:function(){},seek:function(t){},playbackRate:function(t){},volume:function(t){},muted:function(t){},cleanup:function(){this.ue.en.De(this)},Ye:function(){}}),An=js({$init:function(i,s){var e=s.nativePlayer(),n=i.ui;this.ju=n,this.Or=s,this.Qu=e,this.ue=i,this.qu="video"==e.nodeName.toLowerCase();var r=n.Ju,a=n.fe;this.tc="",this.qu?this.tc=t('<div class="ap-media-toolbar" media-type="video" tabindex="-1"> \t\t\t\t\t\t<div class="ap-media-play ap-media-btn" \t\t\t\t\t\t\ttitle="'+a.text("Play")+'" aria-label="'+a.text("Play")+'" \t\t\t\t\t\t\trole="button" tabindex="0" style="pointer-events: auto" \t\t\t\t\t\t> \t\t\t\t\t\t\t<div class="ap-media-play-icon">'+r.pause+r.play+'</div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-media-toolbar-bottom" style="pointer-events: auto"  tabindex="-1"> \t\t\t\t\t\t\t<div class="ap-media-tool-container" tabindex="-1"> \t\t\t\t\t\t\t\t<div class="ap-media-tool-left"> \t\t\t\t\t\t\t\t\t<div class="ap-media-time-label ap-no-select" role="presentation">0:06 / 0:40</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t<div class="ap-media-tool-right" tabindex="-1"> \t\t\t\t\t\t\t\t\t<div class="ap-media-cc-btn ap-media-btn" \t\t\t\t\t\t\t\t\t\ttitle="'+a.text("ClosedCaption")+'" aria-label="'+a.text("ClosedCaption")+'" \t\t\t\t\t\t\t\t\t\trole="button" aria-pressed="false" tabindex="0" \t\t\t\t\t\t\t\t\t>'+r.ccshow+r.cchide+'</div> \t\t\t\t\t\t\t\t\t<div class="ap-media-cc-menu" role="menu" style="display: none"> \t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t<div class="ap-media-mute ap-media-btn" \t\t\t\t\t\t\t\t\t\ttitle="'+a.text("Mute")+'" aria-label="'+a.text("Mute")+'" \t\t\t\t\t\t\t\t\t\trole="button" aria-pressed="false" tabindex="0" \t\t\t\t\t\t\t\t\t>'+r.sound+r.mute+'</div> \t\t\t\t\t\t\t\t\t<div class="ap-media-fullscreen ap-media-btn" \t\t\t\t\t\t\t\t\t\ttitle="'+a.text("FullScreen")+'" aria-label="'+a.text("FullScreen")+'" \t\t\t\t\t\t\t\t\t\trole="button" aria-pressed="false" data-value="false" tabindex="0" \t\t\t\t\t\t\t\t\t>'+r.fullscreen+r.exitfullscreen+'</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t<div class="ap-media-progressbar" role="slider" tabindex="0" aria-valuemin="0" aria-valuemax="0" aria-valuenow="0"> \t\t\t\t\t\t\t\t<div class="ap-media-progress-background"></div> \t\t\t\t\t\t\t\t<div class="ap-media-play-progress"></div> \t\t\t\t\t\t\t\t<div class="ap-media-progress-grabber"></div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</div> \t\t\t\t\t </div>')[0]:this.tc=t('<div class="ap-media-toolbar" media-type="audio" style="pointer-events: auto" tabindex="-1"> \t\t\t\t\t\t<div class="ap-media-play ap-media-btn" role="button" tabindex="0" title="'+a.text("Play")+'" aria-label="'+a.text("Play")+'">'+r.pause+r.play+'</div> \t\t\t\t\t\t<div class="ap-media-time-label ap-no-select" role="presentation">0:06 / 0:40</div> \t\t\t\t\t\t<div class="ap-media-progressbar" role="slider" tabindex="0" aria-valuemin="0" aria-valuemax="0" aria-valuenow="0"> \t\t\t\t\t\t\t<div class="ap-media-progress-background"></div> \t\t\t\t\t\t\t<div class="ap-media-play-progress"></div> \t\t\t\t\t\t\t<div class="ap-media-progress-grabber"></div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-media-mute ap-media-btn" role="button" aria-pressed="true" tabindex="0" \t\t\t\t\t\t\ttitle="'+a.text("Mute")+'" aria-label="'+a.text("Mute")+'" \t\t\t\t\t\t>'+r.sound+r.mute+"</div> \t\t\t\t\t </div>")[0],this.ic=t(".ap-media-toolbar-bottom",this.tc),this.sc=t(".ap-media-play",this.tc),this.ec=t(".ap-media-mute",this.tc),this.nc=t(".ap-media-cc-btn",this.tc),this.rc=t(".ap-media-cc-menu",this.tc),this.ac=t(".ap-media-fullscreen",this.tc),this.hc=t(".ap-media-progressbar",this.tc),this.oc=t(".ap-media-play-progress",this.tc),this.uc=t(".ap-media-progress-grabber",this.tc),this.fc=t(".ap-media-time-label",this.tc),this.qu&&(Ks.fullscreenEnabled()||Ks.isElementSupportFullscreen(e))||this.ac.hide(),this.lc=!0,this.dc=!1,this.mute(e.muted),this.pause(e.paused||e.ended),this.pc(),this.updateFullScreenButton(!1,this.shouldDisableFullScreen())},pc:function(){var i=this,s=this.tc,e=this.Or,n=this.Qu,r=this.ec,a=this.nc,h=this.ac,o=this.hc,u=this.uc,c=this.sc,f=this.ue;this.qu?(s.onmouseover=function(){i.show(!0,!0)},s.onmousemove=function(){i.show(!0,!0)},s.onmouseleave=function(){i.show(!1)},[c,r,a,h,o].forEach(function(s){s.on("mouseover",function(){i.dc=!0}).on("mouseleave",function(){i.dc=!1}).on("focus",function(){i.show(!0,!0),f&&f.highlightFocus()&&t(this).addClass("ap-focused")}).on("blur",function(){t(this).removeClass("ap-focused")})})):[c,r,o].forEach(function(i){i.on("focus",function(){f&&f.highlightFocus()&&t(this).addClass("ap-focused")}).on("blur",function(){t(this).removeClass("ap-focused")})}),n.onpause=function(){i.pause(!0),i.show(!0),i.update()},n.onended=function(){this.paused||this.pause()},n.onplay=function(){i.pause(!1)},c.on("mousedown",function(){n.paused||n.ended?e.play():e.pause()}),a&&a.on("mousedown",function(){e.vc(),i.showCCMenu()}),n.onvolumechange=function(){i.mute(n.muted)},r.on("mousedown",function(){n.muted=!n.muted}),h.on("click",function(s){"true"!==t(this).attr("aria-disabled")&&i.fullscreen()});var l=function(){return Ks.fullscreenElement()==s.parentNode||n.webkitDisplayingFullscreen};o.on("mousedown",function(e){var r=l()?1:i.ju.Nn,a=(e.pageX-this.offsetLeft*r-t(s).offset().left)/(this.offsetWidth*r);n.currentTime=a*n.duration}).on("keydown",function(t){var i=n.currentTime,s=i,e=n.duration,r=e/100,a=e/10;switch(t.which){case le.DOWN:case le.LEFT:s=$i(i-r,0);break;case le.UP:case le.RIGHT:s=Wi(i+r,e);break;case le.PAGEDOWN:s=$i(i-a,0);break;case le.PAGEUP:s=Wi(i+a,e);break;case le.HOME:s=0;break;case le.END:s=e}s!==i&&(n.currentTime=s)}),u.css("touchAction","none").draggable({containment:o,axis:"x",start:function(){i.mc=!0},drag:function(e,r){var a=r.position.left,h=this.offsetWidth/2,u=l()?1:i.ju.Nn,c=e.pageX-o.position().left-t(s).offset().left-h*u-r.originalPosition.left*u;a=r.originalPosition.left+c/u,a=Math.max(Math.min(a,o[0].offsetWidth-h),-h),r.position.left=a;var f=(a+h)/o[0].offsetWidth;n.currentTime=f*n.duration,i.update()},stop:function(){i.mc=!1;var t=l()?1:i.ju.Nn,s=(this.offsetLeft+6*t)/o[0].offsetWidth;n.currentTime=s*n.duration}}),s.onkeydown=function(i){if(32==i.which||13==i.which){var s=t(i.target);"button"==s.attr("role")&&(i.stopPropagation(),s.trigger("click",[i.which]),s.trigger("mousedown",[i.which]))}}},getNode:function(){return this.tc},update:function(){var t=this.hc,i=this.oc,s=this.uc,e=this.fc,n=this.Qu,r=t[0].offsetWidth,a=isNaN(n.duration)?0:n.currentTime/n.duration;i.css({transform:"scaleX("+a+")"}),this.mc||s.css({left:a*r-6+"px"}),e[0].innerHTML=AtomiAP.formatMSString(1e3*n.currentTime)+" / "+AtomiAP.formatMSString(isNaN(n.duration)?0:1e3*n.duration),t.attr("aria-valuenow",n.currentTime),isNaN(n.duration)||t.attr("aria-valuemax")===n.duration+""||t.attr("aria-valuemax",n.duration),this.lc&&this.qu&&(n.paused||this.dc?n.currentTime>0&&this.show(!0,!0):((void 0===this.gc||this.gc>n.currentTime)&&(this.gc=n.currentTime),n.currentTime-this.gc>2&&this.show(!1)))},pause:function(t){var i=this.sc,s=i.attr("data-value");(s=s?"false"===s:void 0)!==t&&i.attr("data-value",!t);var e=this.ju.fe,n=t?e.text("Play"):e.text("Pause");i.attr("title",n),i.attr("aria-label",n)},show:function(t,i){t!==this.lc?this.ic&&(t||this.Qu.paused||this.dc||this.isCCMenuShown()?(this.ic.stop().fadeTo(0,1),this.sc.stop().fadeTo(0,.8),this.lc=!0):(this.ic.fadeTo(500,0),this.sc.fadeTo(500,0),this.lc=!1,this.gc=void 0),this.bc&&this.bc(this.lc)):i&&this.sc.stop().fadeTo(0,.8)},mute:function(t){var i=this.ec;i.attr("aria-pressed",t).attr("data-value",t);var s=this.ju.fe,e=t?s.text("Unmute"):s.text("Mute");i.attr("title",e).attr("aria-label",e)},showCC:function(t){var i=this.nc;if(i.attr("aria-pressed",t).attr("data-value",t),!this.wc){var s=this.ju.fe,e=t?s.text("HideCC"):s.text("ShowCC");i.attr("title",e).attr("aria-label",e)}},disableCC:function(){var t=this.nc;t&&t.hide()},createCCMenu:function(i){if(!(i.length<=1)&&(this.wc=!0,!(t(".ap-media-menu-item",this.rc).length>0)))for(var s,e,n=this.Or,r=this,a=this.rc[0],h=this.nc,o=-1,u=i.length;o<u;++o)s=i[o],(e=t(-1===o?'\t\t\t\t\t\t<div class="ap-media-menu-item" tabindex="0" role="menuitemradio">'+this.ju.fe.text("HideCC")+"</div>\t\t\t\t\t":'\t\t\t\t\t\t<div class="ap-media-menu-item" tabindex="0" role="menuitemradio" lang='+s.c+">"+s.n+"</div>\t\t\t\t\t"))[0].Fe=o,e.on("mousedown",function(){-1===this.Fe&&n._c(!1),n.vc(this.getAttribute("lang")),r.showCCMenu(!1)}).on("keydown",function(i){i.which==le.ENTER||i.which==le.SPACE?(i.stopPropagation(),t(i.target).trigger("mousedown",[i.which])):i.which==le.TAB&&(!i.shiftKey&&this.Fe===u-1||i.shiftKey&&-1===this.Fe)&&(h.focus(),r.showCCMenu(!1),i.stopPropagation(),i.preventDefault())}),a.appendChild(e[0])},showCCMenu:function(i){if(this.wc){for(var s,e=t(".ap-media-menu-item",this.rc),n=0,r=e.length,a=this.Or;n<r;++n)s=e[n],!a.yc&&0==n||a.yc&&a.Tc&&s.getAttribute("lang")===a.Tc?s.setAttribute("aria-checked","true"):s.setAttribute("aria-checked","false");arguments.length<=0?this.rc.toggle():i?this.rc.show():this.rc.hide(),r>0&&(this.isCCMenuShown()?e[0].focus():this.nc.focus())}},isCCMenuShown:function(){return this.rc&&"none"!==this.rc[0].style.display},fullscreen:function(){Ks.fullscreenEnabled()?Ks.fullscreenElement()==this.tc.parentNode?(Ks.exitFullscreen(),ye.browser.ie&&this.updateFullScreenButton(!1)):Ks.requestFullscreen(this.tc.parentNode):Ks.isElementSupportFullscreen(this.Qu)&&Ks.requestFullscreen(this.Qu)},exitFullScreen:function(){Ks.fullscreenEnabled()&&Ks.fullscreenElement()==this.tc.parentNode&&(Ks.exitFullscreen(),ye.browser.ie&&this.updateFullScreenButton(!1))},onFullScreenChange:function(){var t=Ks.fullscreenElement()===this.tc.parentNode||this.Qu.webkitDisplayingFullscreen;this.updateFullScreenButton(t,this.shouldDisableFullScreen())},updateFullScreenButton:function(t,i){var s=this.ac;s.attr("aria-pressed",t).attr("data-value",t);var e=this.ju.fe,n=t?e.text("ExitFullScreen"):e.text("FullScreen");s.attr("title",n).attr("aria-label",n),arguments.length>1&&s.attr("aria-disabled",i)},shouldDisableFullScreen:function(){return ye.browser.safari&&!!Ks.fullscreenElement()&&Ks.fullscreenElement()!==this.tc.parentNode&&!this.Qu.webkitDisplayingFullscreen},resize:function(){var t=this.tc,i=this.hc,s=this.uc,e=this.Qu,n=isNaN(e.duration)?0:e.currentTime/e.duration;this.mc||s.css({left:n*i[0].offsetWidth-6+"px"}),t.offsetWidth<200?t.setAttribute("size",200):t.removeAttribute("size")},tabIndex:function(i){if(!isNaN(i)){var s,e=[this.sc,this.nc,this.ec,this.ac,this.hc];if(this.wc){var n=t(".ap-media-menu-item",this.rc);n.length>0&&(e=e.concat(n))}for(var r=0,a=e.length;r<a;++r)(s=e[r])&&(-2==i?s.attr("tabIndex",-1):-1==i?s.removeAttr("tabIndex"):s.attr("tabIndex",i))}}}),Dn=["error","ended","loadstart","durationchange","loadedmetadata","loadeddata","canplay","waiting","playing","canplaythrough","stalled","emptied","suspend"],Yn=js(Nn,{$init:function(t,i,s){for(this.qu=i,this.kc=i?t.en.xe.pop():t.en.ke.pop();this.kc.attributes.length>0;)this.kc.removeAttribute(this.kc.attributes[0].name);Nn.prototype.$init.call(this,t),this.xc="",this.Cc=0,this.Sc=void 0,this.Oc="stopped",this.Ec=!1,this.Ic=!1,this.Pc=!1,this.Rc=[],this.Mc=[],this.Nc=[],this.Ac=!1,this.Dc=!1,this.Yc=!1,this.Xc=!1,this.Lc=!0,this.Fc=void 0,this.Hc=!1,s&&s.cas&&i&&(this.createCCNode(),this.addCC(s.cas,s.cass)),this.Uc()},ir:function(t){this.Xc!=t&&(this.Xc=t,t||this.Sc&&prez.pn())},createToolbar:function(){if(!this.kc)return null;this.Bc=new An(this.ue,this);var i=this.Bc.getNode();return this.qu&&(this.Zc=t(".ap-media-cc-btn",i)),i},getToolbar:function(){return this.Bc},createCCNode:function(){return this.zc=t(' \t\t\t\t<div class="ap-media-cc-container"> \t\t\t\t\t<span class="ap-media-cc"></span> \t\t\t\t</div> \t\t\t'),this.Gc=t(".ap-media-cc",this.zc[0]),this.zc[0]},getCCNodeContainer:function(){return this.zc?this.zc[0]:null},addCC:function(t,i){if(this.qu){if(t.length<=0)return this.zc.hide(),void(this.Zc&&this.Zc.hide());if(i){var s=this.Gc[0].style,e=i.c,n=i.b,r="font-family:'"+i.n+"';";r+="font-size:"+i.s+"px;",r+="color:"+Ps(e)+";",s.cssText=r,s.backgroundColor=Ps(n),this._c(!!i.de)}var a,h,o,u,c=this.kc;if(c.getElementsByTagName("track").length>0){for(h=0,o=t.length;h<o;++h)(u=t[h]).de&&i.de&&(this.Tc=u.c);this.Tc||(this.Tc=t[0].c)}else{for(h=0,o=t.length;h<o;++h)u=t[h],(a=os.createElement("track")).label=u.n,a.kind="captions",a.srclang=u.c,a.src=this.ue.getResource(u.res+".vtt"),c.appendChild(a),u.de&&i.de&&(this.Tc=u.c);this.Tc||(this.Tc=t[0].c);var f=c.textTracks;for(h=0,o=f.length;h<o;++h)f[h].mode="hidden"}}},updateCCOnToolbar:function(t,i){var s=this.Bc;if(t){var e=this.Gc;s&&(e.attr("toolbar-show",s.lc?"true":"false"),s.bc=function(t){e.attr("toolbar-show",t?"true":"false")},s.createCCMenu(t)),this._c(!!i.de)}else s&&s.disableCC()},Vc:function(t){var i=t.activeCues,s=this.Gc;s.attr("srclang",t.language),i&&i.length>0?(s.html(i[0].text),s.show()):s.hide()},vc:function(t,i){var s=this.kc,e=s.getElementsByTagName("track");if(typeof t===Hi&&t){this.Tc=t;var n,r,a,h=s.textTracks;for(r=0,a=h.length;r<a;++r)if((n=h[r]).language===t){this.Vc(n);break}this._c(!0),this.onCCChanged&&!i&&this.onCCChanged(t)}else 1===e.length?(this._c(i?t:!this.yc),this.onCCChanged&&!i&&this.onCCChanged(this.yc)):i&&this._c(t)},_c:function(t){this.yc=!!t,t?this.zc.show():this.zc.hide(),this.Bc&&this.Bc.showCC(!!t)},ua:function(t,i){this.kc&&(this.kc.addEventListener(t,i),this.Mc.push([t,i]))},oa:function(t,i){if(this.kc){this.kc.removeEventListener(t,i);var s,e,n=this.Mc;for(s=0,e=n.length;s<e;++s)if(n[s][0]==t&&n[s][1]==i){n.splice(s,1);break}}},Uc:function(){if(this.kc){var t,i,s=this.Rc,e=this;for(t=0,i=Dn.length;t<i;++t){var n=function(t){e.Wc(t)};s.push(n),this.kc.addEventListener(Dn[t],n)}var r=this;this.$c=function(){r.Kc()},this.kc.addEventListener("timeupdate",this.$c);var a,h=this.kc.getElementsByTagName("track");for(t=0,i=h.length;t<i;++t)if(a=h[t].track){var o=function(){this.language===r.Tc&&r.Vc(this)};this.Nc.push(o),a.addEventListener("cuechange",o)}}},jc:function(){if(this.kc){var t,i,s=this.Rc,e=this.Mc;for(t=0,i=Dn.length;t<i;++t)this.kc.removeEventListener(Dn[t],s[t]);for(s=[],this.kc.removeEventListener("timeupdate",this.$c),delete this.$c,t=0,i=e.length;t<i;++t)this.kc.removeEventListener(e[t][0],e[t][1]);e=[];var n,r=this.kc.getElementsByTagName("track");for(t=0,i=r.length;t<i;++t)(n=r[t].track)&&n.removeEventListener("cuechange",this.Nc[t])}},synchronizeWithPrez:function(t){if(!arguments.length)return this.Ic;this.Ic=t},backgroundAudio:function(t){if(!arguments.length)return this.Pc;this.Pc=t},Qc:function(t){var i=this.ue,s=this.Sc;t!=this.Sc&&(this.Sc=t,this.Xc||(t?i.pn():void 0!==s&&i.vn()))},Wc:function(t){var i=this.kc?this.kc.readyState:-1,s=t.type;if(ms("MediaPlayer::_onPlayerEvent:"+this.xc+"|event: "+s+" | state: "+i),"loadeddata"==t.type){var e=this.ue.en;this.volume(e.volume()),this.muted(e.muted()),this.playbackRate(e.playbackRate()),void 0!==this.Fc&&this.Vu(this.Fc||0)}if(this.Hc||"canplay"!=s&&"canplaythrough"!=s&&"error"!=s&&"ended"!=s&&"playing"!=s||(this.Hc=!0),!this.Ac&&this.kc){if("error"==s)return this.Ac=!0,void(this.Ic&&this.Qc(!1));if("ended"==s)return this.Dc=!0,void(this.Ic&&this.Qc(!1));if(this.Ic)switch(i){case 0:case 1:case 2:this.Qc(!0);break;case 3:this.Qc(!(!ye.browser.ie&&!ye.browser.safari&&this.Hc));break;case 4:this.Qc(!this.Hc);break;default:this.Qc(!0)}}},Kc:function(t){this.Bc&&this.Bc.update()},qc:function(){return this.kc},tr:function(t){this.xc=t},Sr:function(t){this.Cc=(0|t)/1e3},Jc:function(){return this.Cc},tf:function(){return this.ha},loadResource:function(t){if(this.kc){void 0===t&&(t=-1),this.Dc=!0,this.Qc(!1),this.Ac=!1,this.Dc=!1,this.Lc=!0,this.Fc=void 0,this.Hc=!1;try{this.ha=t,this.kc.src=-1!=t?this.ue.getResource(t+"."+(this.qu?Ne.be:Ne.me)):"",this.kc.load()}catch(t){ms("MediaPlayer::loadResource:"+this.xc+"|exception: "+t.toString())}}},zs:function(t){if(!arguments.length)return this.Oc;if(this.Oc=t,this.kc)try{if(ms("MediaPlayer::state |"+this.xc+"|"+t),"stopped"==t)this.kc.pause();else if(!this.Ec&&!this.if){var i=this.kc.play();if(void 0!==i){var s=this;i.catch(function(t){ms("MediaPlayer::state|play error: "+t),"NotAllowedError"==t.name&&(s.Yc=!0)})}this.Dc=!1}}catch(t){ms("MediaPlayer::state Set Exception | "+this.xc+"|"+t.toString())}},Vu:function(t){if(arguments.length){if(!this.Lc||!this.kc)return;var i=this.kc.readyState,s=t*this.Cc;if(0==i)return ms("MediaPlayer::_ts Media Not Ready | "+this.xc+"|"+s+"| set failed"),void(this.Fc=t);this.Lc=!1,this.Fc=void 0;try{ms("MediaPlayer::_ts |"+this.xc+"|"+s+"| set");var e=this.kc.currentTime;e<.2&&s-e>=0&&s-e<.2?ms("MediaPlayer::_ts |"+this.xc+"|"+s+"| difference too small"):this.kc.currentTime=s}catch(t){ms("MediaPlayer::_ts Set Exception | "+this.xc+"|"+t.toString())}}else try{return 0!=this.Cc&&this.kc?this.kc.currentTime/this.Cc:0}catch(t){return ms("MediaPlayer::_ts Get Exception | "+this.xc+"|"+t.toString()),0}},Wu:function(){this.Lc=!0},sf:function(t){if(ms("MediaPlayer::_onParentPause from "+(t?"timeline":"prez")+" | "+this.xc),!this.Ec&&!this.if&&(this.Ec=t,this.if=!t,this.kc&&!this.Dc))try{this.kc.pause()}catch(i){ms("MediaPlayer::_onParentPause from "+(t?"timeline":"prez")+" Exception | "+this.xc+"|"+i.toString())}},ef:function(t){if(ms("MediaPlayer::_onParentPlay from "+(t?"timeline":"prez")+" | "+this.xc),t){if(!this.Ec)return;this.Ec=!1}else{if(!this.if)return;this.if=!1}if(this.kc&&!this.Dc&&"stopped"!=this.Oc)try{var i=this.kc.play();if(void 0!==i){var s=this;i.catch(function(i){ms("MediaPlayer::_onParentPlay from "+(t?"timeline":"prez")+" PException | "+s.xc+"|"+i),"NotAllowedError"==i.name&&(s.Yc=!0)})}}catch(i){ms("MediaPlayer::_onParentPlay from "+(t?"timeline":"prez")+" Exception | "+this.xc+"|"+i.toString())}},$u:function(){this.ef(!0)},Ku:function(){this.sf(!0)},Xe:function(t){t?this.sf(!1):this.ef(!1)},nativePlayer:function(){return this.kc},state:function(){return this.zs()},pause:function(t){this.zs("stopped"),void 0!==t&&this.seek(t)},play:function(t){void 0!==t&&this.seek(t),this.zs("playing")},position:function(){return this.Vu()*(1e3*this.Cc)},seek:function(t){t|=0,t=this.Cc>0?t/(1e3*this.Cc):0,this.Wu(),this.Vu(t)},playbackRate:function(t){if(!arguments.length)return this.kc?this.kc.playbackRate:1;try{this.kc&&(this.kc.playbackRate=t,this.kc.defaultPlaybackRate=t)}catch(t){ms("MediaPlayer::playbackRate Exception | "+this.xc+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this.kc?this.kc.volume:1;try{t<0&&(t=0),t>1&&(t=1),this.kc&&(this.kc.volume=t,ms("MediaPlayer::volume | "+this.xc+"| set: "+t+"| get: "+this.kc.volume))}catch(t){ms("MediaPlayer::volume Exception | "+this.xc+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return!this.kc||this.kc.muted;try{this.kc&&(this.kc.muted=t,ms("MediaPlayer::muted | "+this.xc+"| set: "+t+"| get: "+this.kc.muted))}catch(t){ms("MediaPlayer::muted Exception | "+this.xc+"|"+t.toString())}return this},cleanup:function(){Nn.prototype.cleanup.call(this);var t=this.kc;if(t){this.Dc=!0,this.Qc(!1),this.jc(),this.kc=null;try{t.paused||t.pause()}catch(t){ms("MediaPlayer::cleanup Exception | "+this.xc+"|"+t.toString())}this.qu?this.ue.en.xe.unshift(t):this.ue.en.ke.unshift(t)}},Ye:function(){if(this.Yc){if(this.Yc=!1,this.Lc=!0,this.Ec)return;if("stopped"==this.Oc)return;if(this.Dc||!this.kc)return;try{var t=this.kc.play();void 0!==t&&t.catch(function(t){ms("MediaPlayer::_updateUnmute|play error: "+t)})}catch(t){ms("MediaPlayer::_updateUnmute Exception | "+this.xc+"|"+t.toString())}}},nf:function(){if(!this.Dc&&this.kc&&!this.kc.paused){this.kc.pause(),this.Dc=!0;var t,i,s=this.Mc;for(t=0,i=s.length;t<i;++t)"ended"==s[t][0]&&s[t][1].call()}}}),Xn=js(tn,{createMedia:function(i,s){var r=this,a=this.ee,h=!0,c=i;if(s){var f=(c=os.createElement("div")).style;f.position="absolute",f.left=0,f.top=0,f.width="100%",f.height="100%",i.appendChild(c),this.rf=c}this.Or=this.slide.ue.sr({ctrl:a}),this.Or||(h=!1,this.Or=new Yn(this.slide.ue,s,a));var l=this.Or,d=l.qc(),p=d.style;if(c.appendChild(d),this.kc=d,p.position="absolute",p.left="0px",p.top="0px",p.width="100%",p.height="100%",p.pointerEvents="auto",a.f&e&&d.setAttribute("loop",""),s&&a.f&o&&void 0!==a.mi){var v,m=os.createElement("img"),g=m.style;v=this.slide.ue.getImgResource(this.slide.ee.i+"."+a.i),v+=a.g?".png":".jpg",m.src=v,g.position="absolute",g.left="0px",g.top="0px",g.width="100%",g.height="100%",g.pointerEvents="auto",c.appendChild(m),this.af=m,this.hf(!0)}if(l.tr(a.n),l.Sr(a.md),l.synchronizeWithPrez(a.f&o),s?(d.setAttribute("playsinline",""),d.setAttribute("disablePictureInPicture","")):l.backgroundAudio(a.f&n),l.getCCNodeContainer()&&i.appendChild(l.getCCNodeContainer()),h||l.loadResource(a.mi),this.oo(),s){if(a.g){var b=os.createElement("canvas"),w=b.style;c.appendChild(b),this.uf=b,Es(b,{width:a.v_w,height:a.v_h}),w.position="absolute",w.top="0px",w.left="0px",w.width="100%",w.height="100%",w.pointerEvents="auto",p.width="1px",p.height="1px",p[Fs]="",p[Xs]="",this.cf=function(){r.ff(!0)},this.lf=function(){r.ff(!1)},d.addEventListener("play",this.cf),d.addEventListener("pause",this.lf),d.addEventListener("ended",this.lf)}this.df=function(){var i=Ks.fullscreenElement(),s=t(r.node);i==r.node?s.hasClass("ap-fullscreen")||(s.addClass("ap-fullscreen"),r.pr()):s.hasClass("ap-fullscreen")&&(s.removeClass("ap-fullscreen"),r.pr()),l.Bc&&l.Bc.onFullScreenChange()},Ks.addEventListener("fullscreenchange",this.df,!1),this.on("ap-ended",function(){l.Bc&&l.Bc.exitFullScreen()})}if(a.f&u){var _=l.createToolbar();if(_){i.appendChild(_),l.updateCCOnToolbar(a.cas,a.cass);var y=this.savedData();y&&void 0!==y.mdcc&&l.vc(y.mdcc,!0),l.onCCChanged=function(t){var i=r.savedData(!0);i&&(i.mdcc=t)}}t(_).on("mousedown mouseup",function(t){r.filterEvent(t)||r.Ds(t)})}},html:_n,player:function(){return this.Or},vh:function(t){tn.prototype.vh.call(this,t),this.Or.Bc&&this.Or.Bc.tabIndex(t)}}),Ln=js(Xn,{createNode:function(){var t=tn.prototype.createNode.call(this);return this.createMedia(t,!1),t},onResized:function(t,i){tn.prototype.onResized.call(this,t,i),this.Or&&this.Or.Bc&&this.Or.Bc.resize()}});en(function(t,i){return new Ln(t,i)},i.T);var Fn=!1,Hn=js(Xn,{ff:function(t){if(ms("Update green screen: "+t),t){if(!this.pf){var i=this;this.pf=setInterval(function(){i.vf()},100)}}else this.pf&&(clearInterval(this.pf),delete this.pf)},hf:function(t){var i,s=this.Or,e=this.af;if(s&&e&&(i=s.qc()))if(t){if(e.style.display="block",!this.mf){var n=this;this.mf=function(){n.hf(!1)},i.addEventListener("timeupdate",this.mf)}}else e.style.display="none",this.mf&&(i.removeEventListener("timeupdate",this.mf),delete this.mf)},createNode:function(){var t=tn.prototype.createNode.call(this);return this.createMedia(t,!0),t},Ra:function(){var t,i,s,e,n=this.shape,r=this.rf.style;if(n&&n.Zs){if(t=n.Iu().fill,(s=os.createElementNS(Ui,"path")).setAttribute("d",t),(i=os.createElementNS(Ui,"svg")).appendChild(s),i.style.visibility="hidden",this.node.appendChild(i),e=hr(s),this.node.removeChild(i),r.clipPath='path("'+t+'")',r.left=e.x+"px",r.top=e.y+"px",r.width=e.width+"px",r.height=e.height+"px",this.shape&&this.shape.Pu&&this.dh&&e.height>this.dh&&(r.top=-e.y+this.dh-e.height+"px"),this.shape&&this.shape.Ru&&this.lh&&e.width>this.lh&&(r.left=-e.x+this.lh-e.width+"px"),0!=e.x||0!=e.y){var a=sr[n.Zs],h=n.container.clientWidth,o=n.container.clientHeight,u=new er;a&&a[0]&&(a[0].apply(u,[-e.x,-e.y,h,o].concat(n.Fo)),r.clipPath='path("'+u.path()+'")')}}else n&&(r.clipPath="")},onResized:function(t,i){tn.prototype.onResized.call(this,t,i),this.gf(),this.Ra()},gf:function(){if(!this.ee.g&&this.Or){var t=this.shape,i=this.node.offsetWidth,s=this.node.offsetHeight,e=this.ee.v_w,n=this.ee.v_h,r=this.Or.qc(),a=this.Or.getToolbar(),h=r.style,o=Ks.fullscreenElement()==this.node;i<=0||s<=0||e<=0||n<=0||(zi(e/n-i/s)>.01&&!o||t&&(t.bf||t.Zs)?h.objectFit="fill":(h.objectFit="contain",h.width="100%",h.height="100%",ye.browser.chromiums?(h[Fs]="0% 0%",h[Xs]="scaleX(1) scaleY(1)"):(h[Fs]="",h[Xs]="")),a&&a.resize())}},cleanup:function(){if(this.hf(!1),Ks.removeEventListener("fullscreenchange",this.df,!1),this.ee.g&&this.Or){var t=this.Or.qc();t&&(t.removeEventListener("play",this.cf),t.removeEventListener("pause",this.lf),t.removeEventListener("ended",this.lf)),this.ff(!1)}return tn.prototype.cleanup.call(this)},vf:function(){var t,i,s,e,n,r,a,h,o,u,c,f,l,d=this.ee.g,p=this.uf;if(d&&this.Or&&(t=p.getContext("2d"))){h=((r=d[0])>>16&255)-(a=255*d[1]/100),o=(r>>16&255)+a,u=(r>>8&255)-a,c=(r>>8&255)+a,f=(255&r)-a,l=(255&r)+a,t.drawImage(this.Or.qc(),0,0,p.width,p.height);try{for(s=(i=t.getImageData(0,0,p.width,p.height)).data,e=0,n=s.length;e<n;e+=4)s[e]>h&&s[e]<o&&s[e+1]>u&&s[e+1]<c&&s[e+2]>f&&s[e+2]<l&&(s[e+3]=0);t.putImageData(i,0,0)}catch(t){Fn||(Fn=!0,"file:"==window.location.protocol&&alert(this.prez().ui.fe.text("GreenScreenError")))}}},flip:function(t,i){return Is(this.rf,t,i),tn.prototype.flip.call(this,t,i)}});en(function(t,i){return new Hn(t,i)},i.C);var Un=js({$init:function(t){this.Or=new Yn(t,!0),this.Or.qc().setAttribute("playsinline",""),this.Or.synchronizeWithPrez(!0),this.Or.muted=function(t){var i=Yn.prototype.muted;return arguments.length?((t||!t&&this.ue.sidebarVisible())&&i.call(this,t),this):i.call(this)},this.node=null,this.wf=0},appendTo:function(t){this.node=t,this.node.appendChild(this.Or.qc()),this.node.style.display="none"},cleanup:function(){this.Or&&(this.Or.cleanup(),this.Or=null,this.node&&(this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.node=null))},muted:function(t){if(!arguments.length)return this.Or.muted();this.Or.muted(t)},flip:function(t,i){Is(this.node,t,i)},aspectRatio:function(t){if(!arguments.length)return this.wf;this.wf=t},pr:function(){}}),Bn=-1,Zn=0,zn=1,Gn=2,Vn=3,Wn=5,$n=js(Nn,{$init:function(t,i,s){Nn.prototype.$init.call(this,t),this.ya=i,this.xc="",this.Cc=3600,this.Sc=void 0,this.Oc="stopped",this.Ec=!1,this.Ac=!1,this.Dc=!1,this.Lc=!0,this._f=!1,this.yf=void 0;var e,n=i.Tf,r={rel:0,showinfo:0,autoplay:0,playsinline:1},a=this;this.kf=s.auto_play,!0===s.play_range?(this.xf=(s.start_time||0)/1e3,this.Cf=(s.stop_time||0)/1e3):(this.xf=0,this.Cf=0),r.controls=s.hide_controls?0:1,r.iv_load_policy=s.hide_annotations?3:1,r.start=this.xf,r.autoplay=this.kf?1:0,this.Cf>0&&(r.end=this.Cf),e=new YT.Player(n,{height:"100%",width:"100%",videoId:s.youtube_id,playerVars:r,events:{onReady:function(){a.Sf()},onStateChange:function(){a.Of()},onError:function(){a.Ef()}}}),this.If=e},tr:function(t){this.xc=t},Pf:function(t){switch(t){case Bn:return"unstarted";case Zn:return"ended";case zn:return"playing";case Gn:return"paused";case Vn:return"buffering";case Wn:return"videocued";default:return"invalid"}},Qc:function(t){var i=this.ue,s=this.Sc;if(t!=this.Sc)if(this.Sc=t,t)i.pn();else if(void 0!==s&&(i.vn(),this.Rf)){delete this.Rf;try{this.If.pauseVideo()}catch(t){ms("YouTubeMediaPlayer::_updateBufferingState pauseVideo Exception | "+this.xc+"|"+t.toString())}}},zs:function(t){if(!arguments.length)return this.Oc;if(this.Oc=t,this._f)try{ms("YouTubeMediaPlayer::state |"+this.xc+"|"+t),"stopped"==t?this.If.pauseVideo():this.Ec||this.if||(delete this.Rf,this.If.playVideo(),this.Dc=!1)}catch(t){ms("YouTubeMediaPlayer::state Set Exception | "+this.xc+"|"+t.toString())}},Vu:function(t){var i=this.If;if(arguments.length){if(!this._f)return;if(!this.Lc)return;var s,e;this.Lc=!1,s=t*this.Cc+this.xf;try{(e=i.getCurrentTime())-s>-1&&e-s<1?ms("YouTubeMediaPlayer::_ts |"+this.xc+"|"+e+"| too small difference"):(ms("YouTubeMediaPlayer::_ts |"+this.xc+"|"+s+"| set"),s>=(this.Cf>0?this.Cf:i.getDuration())-1?(ms("YouTubeMediaPlayer::_ts seek ts is larger than duration | "+this.xc+"|"+s),i.stopVideo(),this.Dc=!0,this.Qc(!1)):i.seekTo(s,!0))}catch(t){ms("YouTubeMediaPlayer::_ts Set Exception | "+this.xc+"|"+t.toString())}}else try{return 0==this.Cc?0:this._f?(i.getCurrentTime()-this.xf)/this.Cc:0}catch(t){return ms("YouTubeMediaPlayer::_ts Get Exception | "+this.xc+"|"+t.toString()),0}},Wu:function(){this.Lc=!0},sf:function(t){if(ms("YouTubeMediaPlayer::_onParentPause from "+(t?"timeline":"prez")+" | "+this.xc),!this.Ec&&!this.if&&(this.Ec=t,this.if=!t,this.If&&this._f&&!this.Dc))if("stopped"==this.Oc&&this.If.getPlayerState()==zn&&(this.Oc="playing"),this.Sc)this.Rf=!0;else try{this.If.pauseVideo()}catch(i){ms("YouTubeMediaPlayer::_onParentPause from "+(t?"timeline":"prez")+" Exception | "+this.xc+"|"+i.toString())}},ef:function(t){if(ms("YouTubeMediaPlayer::_onParentPlay from "+(t?"timeline":"prez")+" | "+this.xc),t){if(!this.Ec)return;this.Ec=!1}else{if(!this.if)return;this.if=!1}if(this.If&&this._f&&!this.Dc&&"stopped"!=this.Oc)try{delete this.Rf,this.If.playVideo()}catch(i){ms("YouTubeMediaPlayer::_onParentPlay from "+(t?"timeline":"prez")+" Exception | "+this.xc+"|"+i.toString())}},$u:function(){this.ef(!0)},Ku:function(){this.sf(!0)},Xe:function(t){t?this.sf(!1):this.ef(!1)},nativePlayer:function(){return this.If},state:function(){return this.zs()},pause:function(t){this.zs("stopped"),void 0!==t&&this.seek(t)},play:function(t){void 0!==t&&this.seek(t),this.zs("playing")},position:function(){return this.Vu()*(1e3*this.Cc)},seek:function(t){t|=0,t=this.Cc>0?t/(1e3*this.Cc):0,this.Wu(),this.Vu(t)},playbackRate:function(t){if(!arguments.length)return this._f?this.If.getPlaybackRate():1;try{if(!this._f)return;this.If.setPlaybackRate(t)}catch(t){ms("YouTubeMediaPlayer::playbackRate Exception | "+this.xc+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this._f?this.If.getVolume()/100:1;try{if(!this._f)return;t<0&&(t=0),t>1&&(t=1),this.If.setVolume(100*t)}catch(t){ms("YouTubeMediaPlayer::volume Exception | "+this.xc+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return!!this._f&&this.If.isMuted();try{if(!this._f)return;t?this.If.mute():this.If.unMute()}catch(t){ms("YouTubeMediaPlayer::muted Exception | "+this.xc+"|"+t.toString())}return this},Sf:function(){if(ms("YouTubeMediaPlayer::_onPlayerReady | "+this.xc),this._f)ms("YouTubeMediaPlayer::_onPlayerReady repeated state| "+this.xc);else{this._f=!0;var t=this.ue.en;this.volume(t.volume()),this.muted(t.muted()),this.playbackRate(t.playbackRate()),"playing"!=this.Oc||this.Ec||this.if?this.If.pauseVideo():(this.Rf,this.If.playVideo())}},Of:function(){if(!this.Ac&&this.If){var i=this.If.getPlayerState(),s=this.ya;if(ms("YouTubeMediaPlayer::_onPlayerStateChanged | "+this.xc+"|"+this.Pf(i)),this.kf)switch(i){case Bn:case Wn:this.Qc(!1);break;case Zn:this.Dc=!0,this.Qc(!1);break;case zn:case Gn:this.Qc(!1);break;case Vn:this.Dc?this.Qc(!1):this.Qc(!0)}switch(i){case Zn:this.Dc=!0,t(s).triggerHandler(t.Event("ap-ended"),{});break;case zn:t(s).triggerHandler(t.Event("ap-play"),{});break;case Gn:t(s).triggerHandler(t.Event("ap-pause"),{})}}},Ef:function(){this.Ac=!0,this.If&&this.kf&&this.Qc(!1)},cleanup:function(){Nn.prototype.cleanup.call(this),this.If&&(this.Dc=!0,this._f=!1,this.Qc(!1),this.If=null)}}),Kn=js(tn,{$init:function(t,i){if(tn.prototype.$init.call(this,t,i),ye.youtubeAPIState==ei&&(this.Or=new $n(t.ue,this,i.YT_params),this.Or.tr(i.n)),i.YT_params.disable_scaling){var s,e=this.prez(),n=this;this.Mf=function(){n.Nf()},e&&e.ui&&(s=e.ui.canvas())&&s.on("ap-scaleChanged",this.Mf)}},createNode:function(){var t=tn.prototype.createNode.call(this),i=os.createElement("div"),s=os.createElement("div"),e=i.style;if(t.style.overflow="hidden",e.pointerEvents="auto",e.position="absolute",e.left="0px",e.top="0px",this.ee.YT_params.disable_scaling){var n,r=this.prez();n=r?r.Nn():1,e.width=100*n+"%",e.height=100*n+"%",e[Fs]=1==n?"":"0% 0%",e[Xs]=1==n?"":"scale("+1/n+", "+1/n+")"}else e.width="100%",e.height="100%";return e.border="none",t.appendChild(i),this.kc=i,i.appendChild(s),this.Tf=s,t},Nf:function(){if(this.kc){var t,i=this.prez(),s=this.kc.style;t=i?i.Nn():1,s.width=100*t+"%",s.height=100*t+"%",s[Fs]=1==t?"":"0% 0%",s[Xs]=1==t?"":"scale("+1/t+", "+1/t+")"}},cleanup:function(){if(this.ee.YT_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.Mf),delete this.Mf}return tn.prototype.cleanup.call(this)},html:_n,player:function(){return this.Or}});en(function(t,i){return new Kn(t,i)},i.M);var jn=js(tn,{$init:function(t,i){tn.prototype.$init.call(this,t,i);var s,e,n=this.frameNode,r=i.web_params;if(r.embed_code?"srcdoc"in n?n.srcdoc=r.embed_code:(e=function(t){t.target.removeEventListener("load",e,!1);var i=t.target.contentDocument;i.open(),i.write(r.embed_code),i.close()},n.addEventListener("load",e,!1)):(s=this,n.onload=function(){s.Af},n.onerror=function(){s.Df},this.Yf=setTimeout(function(){s.Xf()},2e4),r.address?n.src=r.address:r.entrypoint?n.src=this.prez().getResource(r.html_package)+"/"+r.entrypoint:n.src=this.prez().getResource(r.html_package+".html")),i.web_params.disable_scaling){var a,h=this.prez(),o=this;this.Mf=function(){o.Nf()},h&&h.ui&&(a=h.ui.canvas())&&a.on("ap-scaleChanged",this.Mf)}},createNode:function(){var t=tn.prototype.createNode.call(this),i=os.createElement("iframe"),s=i.style,e=this.ee.web_params.scrolling;if(s.pointerEvents="auto",s.position="absolute",s.left="0px",s.top="0px",this.ee.web_params.disable_scaling){var n,r=this.prez();n=r?r.Nn():1,s.width=100*n+"%",s.height=100*n+"%",s[Fs]=1==n?"":"0% 0%",s[Xs]=1==n?"":"scale("+1/n+", "+1/n+")"}else s.width="100%",s.height="100%";return s.border="none",s.overflow=e?"auto":"hidden",Es(i,{allow:"fullscreen",scrolling:e?"auto":"no"}),t.appendChild(i),this.frameNode=i,t},Af:function(){clearTimeout(this.Yf)},Df:function(){clearTimeout(this.Yf)},Xf:function(){},Nf:function(){var t,i=this.prez(),s=this.frameNode.style;t=i?i.Nn():1,s.width=100*t+"%",s.height=100*t+"%",s[Fs]=1==t?"":"0% 0%",s[Xs]=1==t?"":"scale("+1/t+", "+1/t+")"},cleanup:function(){if(this.ee.web_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.Mf),delete this.Mf}return clearTimeout(this.Yf),tn.prototype.cleanup.call(this)},html:_n});en(function(t,i){return new jn(t,i)},i.N);var Qn=js(tn,{$init:function(t,i){tn.prototype.$init.call(this,t,i)},createNode:function(){var t=tn.prototype.createNode.call(this),i=os.createElement("div");i.style.position="absolute",i.style.width="100%",i.style.height="100%",i.style.pointerEvents="auto";var s=os.createElement("canvas");return s.style.position="absolute",s.style.width="100%",s.style.height="100%",this.Lf=s,i.appendChild(s),t.appendChild(i),t},Ff:function(){os.Hf||(os.Hf={});var t=void 0,i=this.ee.chart;if(i&&void 0!=i.chartID&&(t=os.Hf[i.chartID]),t){if((s=t.canvas)==this.Lf)return t;t.canvas&&t.canvas.remove(),t.destroy(),os.Hf[i.chartID]=void 0,t=void 0}if(this.Lf&&0!=this.Lf.clientWidth&&0!=this.Lf.clientHeight&&(this.Lf.style.pointerEvents="visiblePainted",this.node.style.pointerEvents="none",(v=this.Lf.getContext("2d"))&&i&&i.type&&i.data&&i.options)){var s,e=i.data,n=i.options,r=e.normed,a=n.normed;if(!r){for(var h=e.datasets||[],o=0,u=h.length;o<u;++o){for(var c=h[o],f=c.data||[],l=0;l<f.length;++l)void 0!=f[l].x&&void 0!=f[l].y&&void 0!=f[l].v?(f[l].x=f[l].x/1e3,f[l].y=f[l].y/1e3,f[l].v=f[l].v/1e3):void 0!=f[l].x&&void 0!=f[l].y?(f[l].x=f[l].x/1e3,f[l].y=f[l].y/1e3):f[l]=f[l]/1e3;if(c.borderDash)for(var d=0;d<c.borderDash.length;++d)c.borderDash[d]=c.borderDash[d]/1e3}e.normed=!0}if(n&&!a){if(n.devicePixelRatio=this.Uf(),"bubble"==i.type){var p=n.elements;if(p&&p.point){p.point.radius=function(t){return t.dataset.data[t.dataIndex].v}}}n.scales&&(this.Bf(n.scales.r),this.Bf(n.scales.x),this.Bf(n.scales.x1),this.Bf(n.scales.y),this.Bf(n.scales.y1)),n.normed=!0}if(void 0==t)if(s=this.Lf){var v=s.getContext("2d");os.Hf[i.chartID]=new Chart(v,i),t=os.Hf[i.chartID]}}return t},Zf:function(){var t=1,i=this.node.getBoundingClientRect();if(i){var s=this.node.offsetWidth,e=this.node.offsetHeight;0===s||0===e?0!==s?t=i.width/s:0!==e&&(t=i.height/e):t=$i(i.width/s,i.height/e)}return t},Uf:function(){return(window.devicePixelRatio||1)*this.Zf()+.5},pr:function(){if(tn.prototype.pr.call(this),this.visible()){var t=this.Ff();t&&(t.resize(),t.update())}},zf:function(){var t=this.Ff();if(t&&t.config&&t.config.options){var i=this.Uf();t.config.options.devicePixelRatio!==i&&(t.config.options.devicePixelRatio=i,t.resize())}},Bf:function(t){if(t){var i=t.gridLines,s=t.angleLines;if(i&&i.borderDash)for(var e=0;e<i.borderDash.length;++e)i.borderDash[e]=i.borderDash[e]/1e3;if(s&&s.borderDash)for(e=0;e<s.borderDash.length;++e)s.borderDash[e]=s.borderDash[e]/1e3}}});en(function(t,i){return new Qn(t,i)},i.G);var qn=js(tn,{$init:function(t,i){if(this.Gf=[],this.Vf=[],this.Wf=0,this.$f=0,this.Kf=[],tn.prototype.$init.call(this,t,i),this.jf){var s=this.jf;s.innerHTML="",s.style.borderCollapse="collapse",s.style.borderSpacing="0px",s.style.position="absolute",s.style.pointerEvents="auto";var e=i.table;if(e.r){for(var n=e.r,r=0;r<n.length;r++){var a=n[r]||[];if(a){for(var h,o=s.insertRow(-1),u=a.c||[],c=[],f=0;f<u.length;++f){var l=o.insertCell(-1),d=os.createElement("div");l.appendChild(d),l.textContainer=d;var p=u[f]||[];if(this.Qf(p)){var v=new ur(l,this);l.shape=v}p&&(p.t&&l.textContainer&&(this.cellHtml(l,p.t[0]),h=l.textContainer.style,p.t[1]&&(h.cssText=p.t[1]),p.t[2]&&this.textVerticalAlignForCell(l,p.t[2])),p.f&&this.fillCell(l,p.f),this.cellBorderLeft(l,p.ll),this.cellBorderTop(l,p.lt),this.cellBorderRight(l,p.lr),this.cellBorderBottom(l,p.lb),p.w&&this.cellWidth(l,p.w/1e3+"%"),p.h&&this.cellHeight(l,p.h/1e3+"%"),p.ccs&&(l.colSpan=p.ccs),p.crs&&(l.rowSpan=p.crs),c.push(l),this.Vf.push(l),this.Kf.push(p),this.$f=Math.max(this.$f,c.length))}this.Gf.push(c)}}this.Wf=this.Gf.length}this.Oa(),this.$h()}},createNode:function(){var t=tn.prototype.createNode.call(this),i=os.createElement("table");return i.style.width="100%",i.style.height="100%",this.jf=i,t.appendChild(i),t},textVerticalAlignForCell:function(t,i){return 1==arguments.length?t.kh||"top":("middle"!==i&&"top"!==i&&"bottom"!==i||(t.textContainer&&(t.vAlign=i),t.kh=i),this)},zh:function(){},createTextNode:function(){},Oa:function(){var t=this.Vf,i=this.Kf;if(i.length==t.length)for(var s=0,e=i.length;s<e;s++){var n=this.Vf[s],r=this.Kf[s].tm||[5,5,5,5],a=n.style;a.paddingLeft=r[0]+"px",a.paddingTop=r[1]+"px",a.paddingRight=r[2]+"px",a.paddingBottom=r[3]+"px",n.kh&&this.textVerticalAlignForCell(n,n.kh)}},fontScale:function(t){if(!arguments.length)return this.Wh||100;if(t!=(this.Wh||100)){this.Wh=t;for(var i=this.Vf||[],s=0,e=i.length;s<e;s++){var n,r=i[s];if(r.textContainer)n=void 0!==r.Kh?r.Kh:void 0!==r.Qh?r.Qh:r.textContainer.innerHTML,r.textContainer.innerHTML=n,this.$h()}return this}},$h:function(){void 0===this.Vh&&(this.Vh=parseFloat(t(this.textNode).css("font-size"))||16);for(var i=this.Vf,s=0,e=i.length;s<e;s++){var n=i[s];n.textContainer&&(n.textContainer.style.fontSize=this.Vh*this.Wh/100+"px")}},pr:function(){if(tn.prototype.pr.call(this),this.visible()&&this.jf){var t=this.jf.clientWidth||0,i=this.jf.clientHeight||0;this.node.clientWidth<t&&(this.node.style.width=t+"px"),this.node.clientHeight<i&&(this.node.style.height=i+"px")}},onResized:function(t,i){tn.prototype.onResized.call(this,t,i);for(var s=this.Vf,e=0,n=s.length;e<n;e++){var r=s[e];if(r.shape){r.shape.layout();var a=this.qf(r);2==a.length&&r.shape&&r.shape.node&&(r.shape.node.style.left=a[0]+"px",r.shape.node.style.top=a[1]+"px",r.textContainer&&(r.textContainer.style.position="absolute",r.textContainer.style.left=a[0]+"px",r.textContainer.style.top=a[1]+"px",r.textContainer.style.width=parseInt(r.clientWidth)+"px"))}}},zf:function(){if(ye.browser.firefox&&this.jf){var t=this.node.getBoundingClientRect();if(t){var i=this.Kf;if(0!=i.length&&void 0!=i){var s=1,e=this.node.offsetWidth,n=this.node.offsetHeight;0===e||0===n?0!==e?s=t.width/e:0!==n&&(s=t.height/n):s=$i(t.width/e,t.height/n);for(var r=window.devicePixelRatio||1,a=1/r,h=this.jf.rows,o=0,u=0,c=h.length;u<c;u++){var f=h[u].cells;if(!(o>=i.length))for(var l=0,d=f.length;l<d;l++){var p=f[l],v=i[o].ll[0]/1e3;if(s<.99){var m=$i(is(v/(s*r)*a),1);m*s<1&&(v=(m+1)*a)}p.style.borderWidth=v+"px",o++}}}}}},fillCell:function(t,i){var s,e=t.shape;if(i){if(!i.normed){if(i[0]===_t.Et)for(var n,r=i[2],a=0,h=r.length;a<h;++a)n=[(s=r[a])[0]],s=s[1],n.push(Ps(s>>16&255,s>>8&255,255&s)),n.push((s>>24&255)/255),r[a]=n;i.normed=!0}switch(i[0]){case _t.St:e.fillNone();break;case _t.Ot:var o=Ps((s=i[1])>>16&255,s>>8&255,255&s,(s>>24&255)/255);t.style.backgroundColor=o;break;case _t.Et:i[1]?e.fillRadialGradient(i[2],i[3],i[4],i[5],i[6]):e.fillLinearGradient(i[2],i[3],i[4],i[5]);break;case _t._:i.length>1?e.fillImage(i[1],i[2],i[3],i[4],i[5]):e.fillNone()}}else e.fillNone()},cellBorderLeft:function(t,i){if(t&&i){var s=i[1],e=Ps(s>>16&255,s>>8&255,255&s,(s>>24&255)/255);t.style.borderLeft=i[0]/1e3+"px solid "+e}else t.style.borderLeft=""},cellBorderTop:function(t,i){if(t&&i){var s=i[1],e=Ps(s>>16&255,s>>8&255,255&s,(s>>24&255)/255);t.style.borderTop=i[0]/1e3+"px solid "+e}else t.style.borderTop=""},cellBorderRight:function(t,i){if(t&&i){var s=i[1],e=Ps(s>>16&255,s>>8&255,255&s,(s>>24&255)/255);t.style.borderRight=i[0]/1e3+"px solid "+e}else t.style.borderRight=""},cellBorderBottom:function(t,i){if(t&&i){var s=i[1],e=Ps(s>>16&255,s>>8&255,255&s,(s>>24&255)/255);t.style.borderBottom=i[0]/1e3+"px solid "+e}else t.style.borderBottom=""},cellWidth:function(t,i){t.style.width=i},cellHeight:function(t,i){t.style.height=i},getCellNode:function(t,i){var s,e,n,r,a;if(s=this.jf)for(n=s.rows,r=0;r<n.length;r++)if(r==t)for(e=n[r].cells,a=0;a<e.length;a++)if(a==i)return e[a];return null},Jf:function(t){var i,s,e,n,r;if(i=this.jf)for(e=i.rows,n=0;n<e.length;n++)for(s=e[n].cells,r=0;r<s.length;r++)if(s[r]==t)return[n,r];return[]},qf:function(t){var i=parseInt(t.offsetLeft);i+=parseInt(t.style.borderLeftWidth)||0;var s=parseInt(t.offsetTop);return[i,s+=parseInt(t.style.borderTopWidth)||0]},il:function(){var t,i,s,e=this.ee.table;if(e.r)for(var n=e.r,r=0;r<n.length;r++){var a=n[r]||[];if(a){i=a.c||[];for(var h=0;h<i.length;++h)s=i[h]||[],(t=this.getCellNode(r,h))&&(this.cellBorderLeft(t,s.ll),this.cellBorderTop(t,s.lt),this.cellBorderRight(t,s.lr),this.cellBorderBottom(t,s.lb))}}},Qf:function(t){return t.f&&(t.f[0]==_t.Et||t.f[0]==_t._)},cellHtml:function(t,i){if(!arguments.length)return t.textContainer?t.textNode.innerHTML:"";if(i+="",t.textContainer){if(t.Wh&&100!=t.Wh){t.Kh=i;var s={css:t.textContainer.style.cssText,html:i};ks(s,t.Wh/100),i=s.html}else delete t.Kh;var e=this,n=this.slide.ue.vars,r=n.replace(i);this.el(t,r.text),t.jh&&(n.removeObserver(t.jh),delete t.jh),r.vars.length?(t.Qh=i,t.jh=function(){e.el(t,n.replace(t.Qh).text)},n.addObserver(r.vars,t.jh)):delete t.Qh}return t},el:function(t,i){t.textContainer.innerHTML=i},cleanup:function(){var t,i,s,e,n,r,a=this.Gf;for(s=0,n=a.length;s<n;++s)for(e=0,r=(t=a[s]).length;e<r;++e)(i=t[e])&&i.jh&&(this.prez().vars.removeObserver(i.jh),delete i.jh,delete i.Qh);return tn.prototype.cleanup.call(this)}});en(function(t,i){return new qn(t,i)},i.V);var Jn=!1,tr=js(tn,{createNode:function(){var i=tn.prototype.createNode.call(this),s=this;if(t(i).on("mousedown mouseup",function(t){s.filterEvent(t)||s.Ds(t)}),ye.browser.ie){var e=os.createElement("img"),n=e.style;return i.tabIndex=-1,i.appendChild(e),n.position="absolute",n.width="100%",n.height="100%",n.pointerEvents="auto",this.imageNode=e,e.addEventListener("dragstart",function(t){t.preventDefault()},!1),i}var r=os.createElement("div");return r.className="3d_model",r.style.position="absolute",r.style.width="100%",r.style.height="100%",r.style.pointerEvents="auto",this.webGLRenderer=new THREE.WebGLRenderer({antialias:!0,alpha:!0,preserveDrawingBuffer:!0}),this.webGLRenderer.setClearColor(0,0),this.webGLRenderer.setPixelRatio(window.devicePixelRatio),this.webGLRenderer.outputEncoding=THREE.sRGBEncoding,this.webGLRenderer.physicallyCorrectLights=!0,this.scene=new THREE.Scene,this.camera=new THREE.PerspectiveCamera(45,1,.1,1e4),r.appendChild(this.webGLRenderer.domElement),this.modelNode=r,i.appendChild(r),i},nl:function(){return!!(this.ee.f&r)},rl:function(){Jn||(Jn=!0,"file:"==window.location.protocol&&alert(this.prez().ui.fe.text("3DModelError")))},xa:function(t,i,s){if(!this.al){var e=this;this.al=setInterval(function(){e.rl()},100)}if(ye.browser.ie){if(0==s.length)return void(this.imageNode.src="");var n=s.res_img;return n+=".png",void(this.imageNode.src=this.prez().getImgResource(n))}var r=s.res_id,a=this.prez().getResource(r+".glb"),h=s.scene_id,o=s.rx/1e5*Zi/180,u=s.ry/1e5*Zi/180,c=s.rz/1e5*Zi/180,f=s.px/1e5,l=s.py/1e5,d=s.pz/1e5,p=s.lx/1e5,v=s.ly/1e5,m=s.lz/1e5,g=s.fov/1e5,b=s.unit/1e5,w=s.pre_x/1e5,_=s.pre_y/1e5,y=s.pre_z/1e5,T=s.post_x/1e5,k=s.post_y/1e5,x=s.post_z/1e5,C=s.frame/1e5,S=s.duration,O=(s.draggable,s.bKeepRatio),E=this.webGLRenderer,I=!1;t.unit||i.unit?(E.domElement.style.width="100%",E.domElement.style.height="100%",E.domElement.style.display="block",I=!0):(E.setSize(t.value,i.value),E.setViewport(0,0,t.value,i.value));var P=this.scene;P.clear();var R=this.camera;R.clear(),R.fov=g,R.aspect=O?t.value/i.value:1,R.position.x=f,R.position.y=l,R.position.z=d;var M=new THREE.Vector3(p,v,m);R.lookAt(M);var N=new THREE.AmbientLight(8421504,.5);P.add(N);var A=new THREE.PointLight(16760704,9.765625);A.position.set(.61,1.97,.454-d),R.add(A);var D=new THREE.PointLight(6724082,12.25);D.position.set(-1.0545,1.42,1.6-d),R.add(D);var Y=new THREE.PointLight(14531071,3.125);Y.position.set(-1.05,1.61,-.97-d),R.add(Y),R.updateProjectionMatrix(),P.add(R);var X,L=new THREE.GLTFLoader,F=new THREE.Clock,H=(this.slide.ee.d,this.disabled());if(!H&&!this.nl()){var U=new THREE.OrbitControls(R,E.domElement);U.target=M,U.update()}var B=this.prez().getTextureResource(),Z=(new THREE.CubeTextureLoader).setPath(B).load(["px.jpg","nx.jpg","py.jpg","ny.jpg","pz.jpg","nz.jpg"]);Z.minFilter=THREE.LinearMipMapLinearFilter,Z.magFilter=THREE.LinearFilter,Z.wrapS=THREE.ClampToEdgeWrapping,Z.wrapT=THREE.ClampToEdgeWrapping,Z.generateMipmaps=!0,Z.needsUpdate=!0,L.load(a,function(t){t.scene.traverse(function(t){t.isMesh&&(Array.isArray(t.material)?t.material:[t.material]).forEach(function(t){t.side=THREE.DoubleSide,t.envMap=Z,t.transmission=0})});var i=t.scene;if(function(t){var i=new THREE.Matrix4,s=new THREE.Matrix4;s.scale(new THREE.Vector3(b,b,b)),i.multiply(s);var e=new THREE.Matrix4,n=new THREE.Matrix4;n.makeRotationZ(c),e.multiply(n);var r=new THREE.Matrix4;r.makeRotationY(u),e.multiply(r);var a=new THREE.Matrix4;a.makeRotationX(o),e.multiply(a),i.multiply(e);var h=new THREE.Matrix4;h.setPosition(new THREE.Vector3(w,_,y)),i.multiply(h);var f=new THREE.Matrix4;f.setPosition(new THREE.Vector3(T,k,x));var l=new THREE.Matrix4;l.multiplyMatrices(f,i),t.applyMatrix4(l)}(i),S>0){X=new THREE.AnimationMixer(i);for(var s=t.animations,e=0;e!==s.length;++e)if(h==e){var n=s[e];X.clipAction(n).play()}}P.add(i)}),function t(){!function(t){if(I){var i=E.domElement,s=i.clientWidth,e=i.clientHeight;(t||i.width!==s||i.height!==e)&&(E.setSize(s,e,!1),R.aspect=O?s/e:1,R.updateProjectionMatrix())}}();requestAnimationFrame(t);if(X)if(C<0){var i=F.getDelta();i=H?0:i,X.update(i)}else X.setTime(C/1e3);E.render(P,R)}()},flip:function(t,i){return this.imageNode&&Is(this.imageNode,t,i),this.modelNode&&Is(this.modelNode,t,i),tn.prototype.flip.call(this,t,i)},html:_n});en(function(t,i){return new tr(t,i)},i.tt);var ir=js(yn,{$init:function(t,s,e){(s=s||{}).isSlide=!0,this.ue=t,this.Xh={0:this},this.Lh={},this.Dr=[],this.mr=[],this.gh=1,(void 0!==s.fbi||s.isBackground&&e&&void 0!==e.ee.fbi)&&(s.isFeedback=!0);var n=!s.isBackground&&!s.isTop&&!s.isBottom;(s.isBackground||(this.Ze=new Ur({startTime:s.st||0}),this.js(this.Ze)),this.hl=[],this.ol=[],this.ul=0,yn.prototype.$init.call(this,e||this,s),this.Ia)&&(this.Ia()&&this.Ih());var r=this.node.style;if(r.left=0,r.top=0,r.width="100%",r.height="100%",n){var a={isBackground:!0,h:s.h,fb:s.fb};if(s.b&&(s.b.f&&(a.s=[{f:s.b.f}]),s.b.im&&(a.cc=[{k:i._,s:[{im:s.b.im,w:s.b.w}],m:ti.Demo|ti.Tutorial|ti.Practice|ti.Test}]),s.b.ct)){var h=s.b.ct;if(a.cc)for(var o=0;o<h.length;++o)a.cc.push(h[o]);else a.cc=s.b.ct}this.background=new ir(t,a,this),this.children.push(this.background)}if(s.isBackground)r.zIndex=s.isFeedback?Qt.ds:Qt.ji;else if(s.isTop?r.zIndex=Qt.Ji:s.isBottom?r.zIndex=Qt.Qi:r.zIndex=s.isFeedback?Qt.ps:Qt.qi,s.at&&this.node.setAttribute("aria-label",s.at),s.ca&&s.ca.n&&s.ca.n.length?this.reloadClosedCaption():!s.isFeedback&&n&&t.jn&&(t.jn.slide=this,this.Ze.addChild(new Xr(t.jn,"display",{startTime:0,duration:0,tweenParams:["block","none"]}))),this.cl=void 0,s.cp&&void 0!==s.cp.m){var u=ti[this.ue.options.playMode];if((s.cp.m&u)==u){var c=new Mn(this,s.cp);t.ui.slides()[0].appendChild(c.node),-1!=s.cp.hl_type&&(c.node.style.borderRadius=0===s.cp.hl_type?"50%":0,c.node.style.backgroundColor=Ps(s.cp.hl_color)),this.cl=c}}if(s.isFeedback?t.ui.feedbackSlides()[0].appendChild(this.node):t.ui.slides()[0].appendChild(this.node),!s.isBackground){this.pr(),this.fl(),this.restore();var f,l=new xn(t,this);u=ti[this.ue.options.playMode];if(s.i>=0)(f=ye.createZoomAndPan(l,s.z,t.layoutIndex,u))&&this.Ze.addChild(f);if(this.cl)(f=this.cl.Gu())&&this.Ze.addChild(f);for(var d in this.Xh){var p=this.Xh[d];p.ee.ta&&p.splitText&&p.splitText({chars:p.ee.ta&ye.TextEffectFlags.CHARS,words:p.ee.ta&ye.TextEffectFlags.WORDS,processStyles:"backgroundColor, textDecoration"})}for(var v=0;this.dl(v,!1);)++v;for(v=0;this.dl(v,!0);)++v}},flexbox:function(){if(this.ee.fb){var t=this.ee.fb[this.ue.layoutIndex];t.b&&tn.prototype.flexbox.call(this,t.b)}},dr:function(t){this.cr=t,this.ee.isFeedback?Je(this.node,t):this.ee.isBackground?(this.node.style.position=t==Q.AUTO?"sticky":"absolute",this.node.style.overflow="hidden"):Je(this.ue.ui.slides()[0],t,!0)},fl:function(){this.ee.isFeedback||this.ee.isBackground||this.cr!=Q.AUTO||this.dr(Q.AUTO)},Wn:function(){if(this.cr===Q.AUTO&&!this.ee.isFeedback&&!this.ee.isBackground&&this.background){var t=this.ue.ui.slides()[0];this.pl={x:t.offsetHeight>t.scrollHeight,y:t.offsetWidth>t.scrollWidth}}},$n:function(){if(this.cr===Q.AUTO&&!this.ee.isFeedback&&!this.ee.isBackground&&this.background&&this.pl){var t=this.ue.ui.slides()[0];this.pl.x===t.offsetHeight>t.scrollHeight&&this.pl.y===t.offsetWidth>t.scrollWidth||this.background.pr(),delete this.pl}},onResized:function(t,i){yn.prototype.onResized.call(this,t,i),this.fl()},width:function(t){return arguments.length?(this.background&&this.background.width(t),yn.prototype.width.call(this,t)):yn.prototype.width.call(this)},height:function(t){return arguments.length?(this.background&&this.background.height(t),yn.prototype.height.call(this,t)):yn.prototype.height.call(this)},size:function(t,i){return arguments.length?(this.background&&this.background.size(t,i),yn.prototype.size.call(this,t,i)):yn.prototype.size.call(this,t,i)},onLayoutSwitched:function(){var t=this.node.clientWidth,i=this.node.clientHeight;if(t!=this.lh||i!=this.dh){var s=t-this.lh,e=i-this.dh;this.lh=t,this.dh=i,yn.prototype.onResized.call(this,s,e)}this.flexbox&&this.flexbox(),yn.prototype.onLayoutSwitched.call(this),this.Ia&&this.Ia();var n=this,r=function(t){if(t&&t.children)for(var i,s=0,e=n===t?2:1;s<e;++s)for(var a=0,h=t.children.length;a<h;++a)(i=t.children[a]).Ea&&(i.Oh||!i.bh&&i.shape||i.textContainer)&&i.pr(),r(i)};r(this),this.ue.jn&&this.ue.jn.onLayoutSwitched()},object:function(t){return(typeof t===Hi?this.Lh[t]:this.Xh[t])||null},timeline:function(t){if(!arguments.length)return this.Ze;var i,s,e=typeof t===Hi?"name":"id";for(i=0,s=this.hl.length;i<s;++i)if(this.hl[i][e]===t){var n=this.hl[i];return n&&n.ml&&i>0&&(this.Ks(n),n=this.dl(i,!1)),n}return null},Bh:function(){for(var t=this.hl.concat(this.ol),i=0,s=t.length;i<s;++i)t[i].ml=!0},dl:function(t,i){var s,e,n,r,a,h,o,u=0!==t||i?null:this.Ze,c=i?this.ee.cs:this.ee.tl;if(c&&(c=c[t]),!c)return u;for(u||(u=new Ur,this.js(u)),i?(u.id=we(),u.gl=1,this.ol[t]=u):(u.id=c[0],u.name=c[1],this.hl[t]=u,c=c[2]||[]),e=0,n=c.length;e<n;++e)if(s=c[e],h=this.object(s[0])){for(r=0,a=(s=s[1]||[]).length;r<a;++r)if(ye.createEffect&&(o=ye.createEffect.apply(ye,[h].concat(s[r]))))switch(s[r][0]){case ye.EffectType.PAUSE:case ye.EffectType.TIME_OUT:this.ue.demoMode()||(o.startTime(o.startTime()+this.ee.st),this.ue.Ze.addChild(o),h.js(o));break;default:u.addChild(o)}}else ms("Object not found: "+s[0]);return u.setup(),u},remove:function(i){return t(this).off(),this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.background&&!i&&this.background.remove(),this.cleanup()},cleanup:function(){return"sticky"==this.node.style.position&&(this.node.style.position="absolute"),this.cl&&(this.cl.cleanup(),this.cl.node.parentNode&&this.cl.node.parentNode.removeChild(this.cl.node)),tn.prototype.cleanup.call(this)},clickSequence:function(){var t=this.ol[this.ul];return t&&t.ml&&(this.Ks(t),t=this.dl(this.ul,!0)),t||null},ia:function(){return this.ul<this.ol.length-1?(++this.ul,this.clickSequence()):null},sa:function(){return this.ul>0?(--this.ul,this.clickSequence()):null},pr:function(){if(tn.prototype.pr.call(this),this.Rh||(this.Rh=0),this.Rh>10)ms("Recursive checking resized: "+this.name());else{++this.Rh,this.ue.jn&&this.ue.jn.slide==this&&this.ue.jn.onResized(0,0);for(var t=this,s=this.findObject(function(s){var e=s.ee.k;return(e==i.G||e==i.V)&&s!=t},!0),e=0,n=s.length;e<n;++e)s[e].zf();--this.Rh}},savedData:function(t){var i=this.ue.Js.slides,s=i[this.ee.index];return t&&!s&&(s=i[this.ee.index]={}),s},fillSolid:function(t,i,s,e){return this.background&&this.background.shape.fillSolid(t,i,s,e),this},reloadClosedCaption:function(){var t=this.ee,i=this.ue,s=i.yn||0,e=ti[this.ue.options.playMode];if((i.ee.cc.modes&e)==e){if(i.ee.responsive&&i.jn&&i.jn.slide&&i.jn.slide.ee.i!=this.ee.i){var n=i.jn;(a=i.ui.canvas())&&n.node&&n.node.remove(),delete i.jn}if(!i.jn){var r={};r.fill=i.ee.cc.fill,r.textStyle=i.ee.cc.textStyle,r.margin=i.ee.cc.margin;var a;n=new nn(this,r);i.jn=n,(a=i.ui.canvas())&&a.append(n.node)}i.jn.slide=this,i.bl&&(this.Ze.removeChild(i.bl),delete i.bl);for(var h=new Fr({startTime:0}),o=0;o<t.ca.n.length;o++){var u=t.ca.n[o];0==o&&u.startTime>0&&h.addChild(new Xr(this.ue.jn,"display",{startTime:0,duration:0,tweenParams:["block","none"]})),h.addChild(new Xr(this.ue.jn,"display",{startTime:u.startTime,duration:0,tweenParams:["none","block"]})),h.addChild(new Xr(this.ue.jn,"ccNode",{startTime:u.startTime,duration:0,tweenParams:["",u.texts[s]],tweenType:Jt.ms})),h.addChild(new Xr(this.ue.jn,"display",{startTime:u.startTime+u.duration,duration:0,tweenParams:["block","none"]}))}this.Ze.addChild(h),i.bl=h}},qr:function(t){var i=tn.prototype.qr.call(this,t);return!i&&this.background&&(i=this.background.qr(t)),i},filterEvent:function(t){var i=t.target,s=this.qr(i);return s||this.ee.isFeedback||!(s=this.ue.bottomSlide&&this.ue.bottomSlide.qr(i))&&this.ue.topSlide&&(s=this.ue.topSlide.qr(i)),!s||tn.prototype.filterEvent.call(s,t)},Ms:function(){var t=this.node.parentNode;return t||(t=this.ee.isFeedback?this.ue.ui.feedbackSlides()[0]:this.ue.ui.slides()[0]),t||this.node},zn:function(){this.ee.csa&&this.ue.clickSequenceForward(this),t(this).triggerHandler("ap-load")}}),sr={0:[function(t,i,s,e){this.addRect(t,i,s,e)}],1:[function(t,i,s,e,n){var r=n[0]*Wi(s/2,e/2);this.addRoundedRect(t,i,s,e,r,r)},function(t,i,s){var e=s[0]*Wi(t/2,i/2),n=ts(e*(1-Gi(2)/2));return[n,n,n,n]},function(t,i,s){var e;return t<i?(e=t/(1-s[0]*(1-Gi(2)/2)),e=2*ts((e-t)/2)):(e=i/(1-s[0]*(1-Gi(2)/2)),e=2*ts((e-i)/2)),[t+e,i+e]}],2:[function(t,i,s,e,n){nr(this,t,i,s,e,n,!1)}],3:[function(t,i,s,e,n){nr(this,t,i,s,e,n,!0)},function(t,i){var s=.2*Wi(t,i),e=ts(s*(1-Gi(2)/2));return[e,e,e,e]},function(t,i){var s,e;return t<i?e=i+.4*(s=t/(1-.4*(1-Ki(Zi/4))))*(1-Ki(Zi/4)):s=t+.4*(e=i/(1-.4*(1-Ki(Zi/4))))*(1-Ki(Zi/4)),[ts(s),ts(e)]}],4:[function(t,i,s,e,n){var r=t+gs(s-Wi(s,e)*n[0],0,s),a=i+e/2*n[1];this.moveTo(t,a).lineTo(r,a).lineTo(r,i).lineTo(t+s,i+e/2).lineTo(r,i+e).lineTo(r,i+e-n[1]*e/2).lineTo(t,i+e-n[1]*e/2).closeSubpath()},function(t,i,s){var e=gs(t-Wi(t,i)*s[0],0,t),n=i/2*s[1];return[0,n,i<=0?0:ts((t-e)*(i-2*n)/i),n]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var r=i/(1-n),a=t+(1-n)*e*r;if(a<r){var h=1-(1-n)*e;h>.001&&(a=t/h)}return[ts(a),ts(r)]}return[t,i]}],5:[function(t,i,s,e,n){var r=t+gs(Wi(s,e)*n[0],0,s),a=i+e/2*n[1];this.moveTo(r,i).lineTo(r,a).lineTo(t+s,a).lineTo(t+s,i+e-n[1]*e/2).lineTo(r,i+e-n[1]*e/2).lineTo(r,i+e).lineTo(t,i+e/2).closeSubpath()},function(t,i,s){var e=gs(Wi(t,i)*s[0],0,t),n=i/2*s[1];return[i<=0?0:ts(e*(i-2*n)/i),n,0,n]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var r=i/(1-n),a=t+(1-n)*e*r;if(a<r){var h=1-(1-n)*e;h>.001&&(a=t/h)}return[ts(a),ts(r)]}return[t,i]}],6:[function(t,i,s,e,n){var r=i+gs(Wi(s,e)*n[0],0,e),a=t+s/2*n[1];this.moveTo(t,r).lineTo(t+s/2,i).lineTo(t+s,r).lineTo(t+s-n[1]*s/2,r).lineTo(t+s-n[1]*s/2,i+e).lineTo(a,i+e).lineTo(a,r).lineTo(t,r).closeSubpath()},function(t,i,s){var e=gs(Wi(t,i)*s[0],0,i),n=t/2*s[1];return[n,t<0?0:ts(e*(t-2*n)/t),n,0]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var r=t/(1-n),a=i+(1-n)*e*r;if(a<r){var h=1-(1-n)*e;h>.001&&(a=i/h)}return[ts(r),ts(a)]}return[t,i]}],7:[function(t,i,s,e,n){var r=gs(e-Wi(s,e)*n[0],0,e),a=t+s/2*n[1],h=i+r;this.moveTo(t,h).lineTo(a,h).lineTo(a,i).lineTo(t+s-s/2*n[1],i).lineTo(t+s-s/2*n[1],h).lineTo(t+s,h).lineTo(t+s/2,i+e).closeSubpath()},function(t,i,s){var e=gs(i-Wi(t,i)*s[0],0,i),n=t/2*s[1];return[n,0,n,t<=0?0:ts((i-e)*(t-2*n)/t)]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var r=t/(1-n),a=i+(1-n)*e*r;if(a<r){var h=1-(1-n)*e;h>.001&&(a=i/h)}return[ts(r),ts(a)]}return[t,i]}],8:[function(t,i,s,e,n){var r=t+s/2*(1+n[0]),a=i+e/2*(1+n[1]),h=Ji(n[1],n[0]),o=h-.15,u=h+.15;this.moveTo(r,a),this.lineTo(t+s/2+s/2*Ki(o),i+e/2+e/2*ji(o)),this.arcTo(s/2,e/2,t+s/2+s/2*Ki(u),i+e/2+e/2*ji(u),!0,!1),this.closeSubpath()},function(t,i){var s=1-Gi(2)/2,e=ts(t*s/2),n=ts(i*s/2);return[e,n,e,n]},function(t,i){var s=1-Gi(2)/2,e=i/(1-s);return[t+ts(t/(1-s)-t),i+ts(e-i)]}],9:[function(t,i,s,e,n){var r=n[0]*Wi(s/2,e/2);this.moveTo(t+r,i).lineTo(t+s-r,i).lineTo(t+s-r,i+r).lineTo(t+s,i+r).lineTo(t+s,i+e-r).lineTo(t+s-r,i+e-r).lineTo(t+s-r,i+e).lineTo(t+r,i+e).lineTo(t+r,i+e-r).lineTo(t,i+e-r).lineTo(t,i+r).lineTo(t+r,i+r).closeSubpath()},function(t,i,s){var e=s[0]*Wi(t/2,i/2);return[e,e,e,e]},function(t,i,s){var e;return s[0]<1?t<i?[e=t/(1-s[0]),i+e-t]:[t+(e=i/(1-s[0]))-i,e]:[t,i]}],10:[function(t,i,s,e){this.addEllipse(t+s/2,i+e/2,s/2,e/2)},function(t,i){var s=1-Gi(2)/2,e=ts(t*s/2),n=ts(i*s/2);return[e,n,e,n]},function(t,i){var s=1-Gi(2)/2,e=i/(1-s);return[t+ts(t/(1-s)-t),i+ts(e-i)]}],11:[function(t,i,s,e){this.moveTo(t+s/2,i).lineTo(t+s,i+e/2).lineTo(t+s/2,i+e).lineTo(t,i+e/2).closeSubpath()},function(t,i){var s=ts(t/4),e=ts(i/4);return[s,e,s,e]},function(t,i){return[2*t,2*i]}],12:[function(t,i,s,e,n){var r=t+s/2+n[0]*s/2,a=i+e/2+n[1]*e/2;this.moveTo(t+s/11,i+3/7*e).quadraticTo(t+1.3/11*s,i+1.1/7*e,t+3.8/11*s,i+1.9/7*e).quadraticTo(t+4.6/11*s,i+1/7*e,t+6/11*s,i+1.5/7*e).quadraticTo(t+6.8/11*s,i+.8/7*e,t+7.8/11*s,i+1.3/7*e).quadraticTo(t+9.5/11*s,i+.5/7*e,t+10/11*s,i+2/7*e).quadraticTo(t+1*s,i+2.4/7*e,t+10.5/11*s,i+3.2/7*e).quadraticTo(t+12/11*s,i+4.6/7*e,t+9.8/11*s,i+5.1/7*e).quadraticTo(t+9.5/11*s,i+6.8/7*e,t+7.5/11*s,i+6.2/7*e).quadraticTo(t+6/11*s,i+8/7*e,t+4.3/11*s,i+6.5/7*e).quadraticTo(t+2.6/11*s,i+e,t+1.5/11*s,i+6/7*e).quadraticTo(t+-.2/11*s,i+6/7*e,t+.5/11*s,i+4.5/7*e).quadraticTo(t-.5/11*s,i+3.7/7*e,t+1/11*s,i+3/7*e).closeSubpath().addEllipse(r,a,.2/11*s,.2/11*s).addEllipse(r+(t+s/2-r)/6,a+(i+e/2-a)/6,.5/11*s,.5/11*s).addEllipse(r+(t+s/2-r)/2.5,a+(i+e/2-a)/2.5,.8/11*s,.8/11*s)},function(t,i){var s=ts(t/8),e=ts(i/4);return[s,e,s,e]},function(t,i){return[t+ts(t/3),2*i]}],14:[function(t,i,s,e,n){var r=n[0]*s/2,a=n[1]*e/2;this.moveTo(t,i+e/2).lineTo(t+r,i).lineTo(t+r,i+a).lineTo(t+s-r,i+a).lineTo(t+s-r,i).lineTo(t+s,i+e/2).lineTo(t+s-r,i+e).lineTo(t+s-r,i+e-a).lineTo(t+r,i+e-a).lineTo(t+r,i+e).closeSubpath()},function(t,i,s){var e=ts(s[0]*t/2),n=ts(i*(s[1]/2));return[e,n,e,n]},function(t,i,s){var e=s[0],n=s[1];return e<1&&n<1?[ts(t/(1-e)),ts(i/(1-n))]:[t,i]}],15:[function(t,i,s,e,n){var r=n[0]*s/2,a=n[1]*e/2;this.moveTo(t,i+a).lineTo(t+s/2,i).lineTo(t+s,i+a).lineTo(t+s-r,i+a).lineTo(t+s-r,i+e-a).lineTo(t+s,i+e-a).lineTo(t+s/2,i+e).lineTo(t,i+e-a).lineTo(t+r,i+e-a).lineTo(t+r,i+a).closeSubpath()},function(t,i,s){var e=ts(t*(s[0]/2)),n=ts(s[1]*i/2);return[e,n,e,n]},function(t,i,s){var e=s[0],n=s[1];return e<1&&n<1?[ts(t/(1-e)),ts(i/(1-n))]:[t,i]}],16:[function(t,i,s,e,n){var r=n[0]*s,a=n[1]*e,h=Wi(n[2],n[0])*s,o=$i(n[3],n[1])*e;this.moveTo(t,i).lineTo(t+h,i).lineTo(t+h,i+o).lineTo(t+r,i+o).lineTo(t+r,i+a).lineTo(t+s,i+e/2).lineTo(t+r,i+e-a).lineTo(t+r,i+e-o).lineTo(t+h,i+e-o).lineTo(t+h,i+e).lineTo(t,i+e).closeSubpath()},function(t,i,s){return[0,0,ts(t*(1-Wi(s[2],s[0]))),0]},function(t,i,s){var e=Wi(s[2],s[0]);return e>0?[ts(t/e),i]:[t,i]}],17:[function(t,i,s,e,n){var r=n[1]*s,a=n[2]*e,h=$i(n[0],n[1])*s,o=Wi(n[2],n[3])*e;this.moveTo(t,i).lineTo(t+s,i).lineTo(t+s,i+o).lineTo(t+s-h,i+o).lineTo(t+s-h,i+a).lineTo(t+s-r,i+a).lineTo(t+s/2,i+e).lineTo(t+r,i+a).lineTo(t+h,i+a).lineTo(t+h,i+o).lineTo(t,i+o).closeSubpath()},function(t,i,s){return[0,0,0,ts(i*(1-Wi(s[2],s[3])))]},function(t,i,s){var e=Wi(s[2],s[3]);return[t,ts(i/e)]}],18:[function(t,i,s,e,n){var r=n[0]*s,a=n[1]*e,h=$i(n[2],n[0])*s,o=$i(n[3],n[1])*e;this.moveTo(t+h,i).lineTo(t+s,i).lineTo(t+s,i+e).lineTo(t+h,i+e).lineTo(t+h,i+e-o).lineTo(t+r,i+e-o).lineTo(t+r,i+e-a).lineTo(t,i+e/2).lineTo(t+r,i+a).lineTo(t+r,i+o).lineTo(t+h,i+o).closeSubpath()},function(t,i,s){return[ts($i(s[2],s[0])*t),0,0,0]},function(t,i,s){var e=$i(s[2],s[0]);return e<1?[ts(t/(1-e)),i]:[t,i]}],19:[function(t,i,s,e,n){var r=n[1]*s,a=n[2]*e,h=$i(n[0],n[1])*s,o=$i(n[2],n[3])*e;this.moveTo(t+s/2,i).lineTo(t+r,i+a).lineTo(t+h,i+a).lineTo(t+h,i+o).lineTo(t,i+o).lineTo(t,i+e).lineTo(t+s,i+e).lineTo(t+s,i+o).lineTo(t+s-h,i+o).lineTo(t+s-h,i+a).lineTo(t+s-r,i+a).closeSubpath()},function(t,i,s){return[0,ts($i(s[2],s[3])*i),0,0]},function(t,i,s){var e=$i(s[2],s[3]);return e<1?[t,ts(i/(1-e))]:[t,i]}],20:[function(t,i,s,e,n){var r=n[0],a=n[1];this.moveTo(t+s*r,i).lineTo(t+s,i+e/2).lineTo(t+s*r,i+e).lineTo(t+s*r,i+e*(1-a/2)).lineTo(t,i+e*(1-a/2)).lineTo(t+(s-s*r)/2,i+e/2).lineTo(t,i+e*a/2).lineTo(t+s*r,i+e*a/2).closeSubpath()},function(t,i,s){var e=s[0],n=s[1];return[ts(t*(1-e)/2),ts(i/2*n),ts(t-t*((1-e)*n+e)),ts(i/2*n)]},function(t,i,s){var e=s[0],n=s[1];return n<1&&e>0?[ts(t/((1-e)*n+e-(1-e)/2)),ts(i/(1-n))]:[t,i]}],21:[function(t,i,s,e,n){var r=s*n[0];this.moveTo(t,i).lineTo(t+r,i).lineTo(t+s,i+e/2).lineTo(t+r,i+e).lineTo(t,i+e).lineTo(t+s-r,i+e/2).closeSubpath()},function(t,i,s){var e=s[0];return[ts(t*(1-e)),0,ts(t*(1-e)),0]}],22:[function(t,i,s,e,n){this.moveTo(t+n[0]*s,i).lineTo(t+s,i+e).lineTo(t,i+e).closeSubpath()},function(t,i,s){var e=s[0];return[ts(t*e/2),ts(i/2),ts((1-e)*t/2),0]},function(t,i){return[ts(2*t),ts(2*i)]}],23:[function(t,i,s,e,n){this.moveTo(t,i).lineTo(t+s,i+e).lineTo(t,i+e).closeSubpath()},function(t,i){return[ts(1*t/10),ts(6*i/10),ts(4*t/10),ts(1*i/10)]},function(t,i){return[ts(2*t),ts(10*i/3)]}],24:[function(t,i,s,e,n){this.moveTo(t+.2*s,i).lineTo(t+s,i).lineTo(t+.8*s,i+e).lineTo(t,i+e).closeSubpath()},function(t,i){return[ts(.2*t),0,ts(.2*t),0]},function(t,i){return[ts(t/.6),ts(i)]}],25:[function(t,i,s,e,n){this.moveTo(t+s/2,i).lineTo(t+s,i+e/2*(1-Ki(2*Zi/4.7))).lineTo(t+s/2+s/2/Ki(2*Zi/20)*ji(2*Zi/10),i+e).lineTo(t+s/2-s/2/Ki(2*Zi/20)*ji(2*Zi/10),i+e).lineTo(t,i+e/2*(1-Ki(2*Zi/4.7))).closeSubpath()},function(t,i){return[ts(t/4),ts(i/4),ts(t/4),ts(i/4)]},function(t,i){return[2*t,2*i]}],26:[function(t,i,s,e,n){var r=n[0]*Wi(s/2,e/2);this.moveTo(t,i+e/2).lineTo(t+r,i+e).lineTo(t+s-r,i+e).lineTo(t+s,i+e/2).lineTo(t+s-r,i).lineTo(t+r,i).closeSubpath()},function(t,i,s){var e=Vi(3,s[0]),n=ts(e*Wi(t/10,i/10));return[n,n,n,n]},function(t,i,s){var e,n,r=Vi(3,s[0]);return t<i?n=i+r*(e=t/(1-2*r/10))/5:e=t+r*(n=i/(1-2*r/10))/5,[ts(e),ts(n)]}],27:[function(t,i,s,e,n){var r=n[0]*Wi(s/2,e/2);this.moveTo(t+r,i).lineTo(t+s-r,i).lineTo(t+s,i+r).lineTo(t+s,i+e-r).lineTo(t+s-r,i+e).lineTo(t+r,i+e).lineTo(t,i+e-r).lineTo(t,i+r).closeSubpath()},function(t,i,s){var e=.70710678118*s[0]*Wi(t/2,i/2);return[e,e,e,e]},function(t,i,s){if(s[0]>1)return[t,i];var e,n,r=.70710678118*s[0];return t<i?n=i+r*(e=t/(1-r)):e=t+r*(n=i/(1-r)),[ts(e),ts(n)]}],28:[function(t,i,s,e,n){var r=n[0]*Wi(s/2,e/2);this.moveTo(t,i+r).cubicTo(t,i+r,t+r,i+r,t+r,i).lineTo(t+s-r,i).cubicTo(t+s-r,i,t+s-r,i+r,t+s,i+r).lineTo(t+s,i+e-r).cubicTo(t+s,i+e-r,t+s-r,i+e-r,t+s-r,i+e).lineTo(t+r,i+e).cubicTo(t+r,i+e,t+r,i+e-r,t,i+e-r).closeSubpath()},function(t,i,s){var e=ts(s[0]*Wi(t/2,i/2)*Ki(Zi/4));return[e,e,e,e]},function(t,i,s){if(s[0]>1/Ki(Zi/4))return[t,i];var e=0;return t<i?e=(t/(1-s[0]*Ki(Zi/4))-t)/2:t>i&&(e=(i/(1-s[0]*Ki(Zi/4))-i)/2),[t+ts(2*e),i+ts(2*e)]}],31:[function(t,i,s,e){this.moveTo(t+s/2,i+e).cubicTo(t-s/2,i+e/4,t+s/4,i-e/3,t+s/2,i+e/4).cubicTo(t+.75*s,i-e/3,t+1.5*s,i+e/4,t+s/2,i+e).closeSubpath()},function(t,i){return[ts(.2*t),ts(.25*i),ts(.2*t),ts(.35*i)]},function(t,i){return[ts(5*t/3),ts(5*i/2)]}],32:[function(t,i,s,e,n){this.moveTo(t+s,i+e).cubicTo(t,i+e,t,i+e/2,t,i+e/2).cubicTo(t,i+e/2,t,i,t+s,i).cubicTo(t+n[0]*s,i,t+n[0]*s,i+e/2,t+n[0]*s,i+e/2).cubicTo(t+n[0]*s,i+e/2,t+n[0]*s,i+e,t+s,i+e).closeSubpath()},function(t,i,s){return[ts(t*s[0]/3),ts(i*(1-s[0])/2),ts(t*(1-s[0])),ts(i*(1-s[0])/2)]},function(t,i,s){var e=s[0];return e>0?[ts(t/e*1.5),ts(i/e)]:[t,i]}],36:[function(t,i,s,e,n){var r,a=.5*s/Wi(s,e);(r=n[0])>a&&(r=a),r<0&&(r=0);var h=r*Wi(s,e);this.moveTo(t,i+e).lineTo(t+h,i).lineTo(t+s-h,i).lineTo(t+s,i+e).closeSubpath()},function(t,i,s){var e,n,r=s[0];return e=.5*t/Wi(t,i),[n=i/3*(s=r<0?0:r>e?e:r)/e,i/3*s/e*2,n,0]},function(t,i,s){return[t*(1+2*s[0]),i*(1+2*s[0])]}],44:[function(t,i,s,e,n){this.moveTo(t,i).lineTo(t+s,i).lineTo(t+s,i+.8*e).lineTo(t+s/2,i+e).lineTo(t,i+.8*e).closeSubpath()},function(t,i){return[0,0,0,.2*i]},function(t,i){return[t,5/4*i]}],46:[function(t,i,s,e,n){this.moveTo(t+s/6,i).lineTo(t,i+e/2).lineTo(t+s/6,i+e).lineTo(t+s-s/6,i+e).cubicTo(t+5/6*s,i+e,t+s,i+e,t+s,i+e/2).cubicTo(t+s,i,t+5/6*s,i,t+5/6*s,i).closeSubpath()},function(t,i){return[t/6,0,t/6,0]},function(t,i){return[3*t/2,i]}],47:[function(t,i,s,e,n){this.moveTo(t+.2*s,i).lineTo(t+s,i).lineTo(t+s,i+e).lineTo(t,i+e).lineTo(t,i+.2*e).closeSubpath()},function(t,i){return[0,.1*i,0,0]},function(t,i){return[t,ts(10*i/9)]}],48:[function(t,i,s,e,n){var r=gs(n[0]*Wi(s,e),0,s);this.moveTo(t,i).lineTo(t+s-r,i).lineTo(t+s,i+e/2).lineTo(t+s-r,i+e).lineTo(t,i+e).closeSubpath()},function(t,i,s){return[0,0,gs(s[0]*Wi(t,i),0,t)/2,0]},function(t,i,s){var e=s[0];if(e>0){var n=i,r=t+e*n/2;return r<n&&(r=ts(2*t/(2-e))),[ts(r),ts(n)]}return[t,i]}],49:[function(t,i,s,e,n){this.moveTo(t+s/6,i).cubicTo(t-s/18,i-e/35,t-s/18,i+36*e/35,t+s/6,i+e).lineTo(t+s,i+e).cubicTo(t+7*s/9,i+36*e/35,t+7*s/9,i-e/35,t+s,i).lineTo(t+s/6,i).closeSubpath()},function(t,i){return[t/6,0,t/6,0]},function(t,i){return[3*t/2,i]}],50:[function(t,i,s,e,n){var r=n[1]*s/2,a=n[0]*e/2;r<=0?this.moveTo(t-2*r,i+a).cubicTo(t+s/4-2*r,i-2.5*a,t+3*s/4,i+5*a,t+s,i+a).lineTo(t+s+2*r,i+e-a).cubicTo(t+3*s/4+2.2*r,i+e+2.5*a,t+s/4,i+e-5*a,t,i+e-a).lineTo(t-2*r,i+a):this.moveTo(t,i+a).cubicTo(t+s/4,i-2.5*a,t+3*s/4-2*r,i+5*a,t+s-2*r,i+a).lineTo(t+s,i+e-a).cubicTo(t+3*s/4,i+e+2.5*a,t+s/4+2*r,i+e-5*a,t+2*r,i+e-a).lineTo(t,i+a),this.closeSubpath()},function(t,i,s){var e=s[1]*t/2,n=s[0]*i/2;return[2*zi(e),2.2*n,2*zi(e),2.2*n]},function(t,i,s){return[t+2*(t*zi(s[1])/(1-2*zi(s[1]))),i+2*(i*s[0]/(1-2.2*s[0]))]}],52:[function(t,i,s,e,n,r){!function(t,i,s,e,n,r,a){var h,o=ar(a),u=o.cXs,c=o.cYs,f=o.minX,l=o.minY,d=o.maxX,p=o.maxY,v=e/(d-f),m=n/(p-l);for(t.moveTo(i+(u[0]-f)*v,s+(c[0]-l)*m).lineTo(i+(u[1]*r-f)*v,s+(c[1]*r-l)*m),h=1;h<a;++h)t.lineTo(i+(u[2*h]-f)*v,s+(c[2*h]-l)*m).lineTo(i+(u[2*h+1]*r-f)*v,s+(c[2*h+1]*r-l)*m);t.closeSubpath()}(this,t,i,s,e,n[0],r)},function(t,i,s,e){var n=ar(e),r=n.cXs,a=n.cYs,h=n.minX,o=n.minY,u=n.maxX,c=n.maxY,f=s[0],l=t/(u-h),d=i/(c-o),p=0,v=0;if(5===e)return[p=t-(r[1]*f-h)*l,v=(a[1]*f-o)*d,p,i-(a[5]*f-o)*d];switch(e){case 4:case 6:case 8:p=t-(r[1]*f-h)*l,v=(a[1]*f-o)*d;break;case 12:p=t-(r[3]*f-h)*l,v=(a[3]*f-o)*d;break;case 24:p=t-(r[5]*f-h)*l,v=(a[5]*f-o)*d}return[p,v,p,v]},function(t,i,s,e){var n=s[0],r=0,a=0,h=ar(e),o=h.cXs,u=h.cYs,c=h.minX,f=h.minY,l=h.maxX,d=h.maxY;if(0==n)return[t,i];if(5==e)return[ts(t*(l-c)/(-l-c+2*o[1]*n)),ts(i*(d-f)/((u[5]-u[1])*n))];switch(e){case 4:case 6:case 8:r=ts((l-o[1]*n)/(-l-c+2*o[1]*n)*t),a=ts((u[1]*n-f)/(d-f-2*(u[1]*n-f))*i);break;case 12:r=ts((l-o[3]*n)/(-l-c+2*o[3]*n)*t),a=ts((u[3]*n-f)/(d-f-2*(u[3]*n-f))*i);break;case 24:r=ts((l-o[5]*n)/(-l-c+2*o[5]*n)*t),a=ts((u[5]*n-f)/(d-f-2*(u[5]*n-f))*i)}return[t+2*r,i+2*a]}]},er=js({$init:function(){this.wl=""},path:function(t){return arguments.length?(this.wl=t,this):this.wl},clear:function(){return this.wl="",this},addPath:function(t){return this.wl+=" "+t,this},moveTo:function(t,i){return this.wl+=" M"+t+","+i,this},lineTo:function(t,i){return this.wl+=" L"+t+","+i,this},arcTo:function(t,i,s,e,n,r){return this.wl+=" A"+t+","+i+" 0 "+(n?1:0)+","+(r?1:0)+" "+s+","+e,this},cubicTo:function(t,i,s,e,n,r){return this.wl+=" C"+t+","+i+" "+s+","+e+" "+n+","+r,this},quadraticTo:function(t,i,s,e){return this.wl+=" Q"+t+","+i+" "+s+","+e,this},closeSubpath:function(){return this.wl+=" Z",this},addEllipse:function(t,i,s,e){return this.moveTo(t-s,i).arcTo(s,e,t+s,i,!0,!0).arcTo(s,e,t-s,i,!0,!0).closeSubpath()},addRect:function(t,i,s,e){return this.moveTo(t,i).lineTo(t+s,i).lineTo(t+s,i+e).lineTo(t,i+e).closeSubpath()},addRoundedRect:function(t,i,s,e,n,r){return this.moveTo(t,i+r).arcTo(n,r,t+n,i,!1,!0).lineTo(t+s-n,i).arcTo(n,r,t+s,i+r,!1,!0).lineTo(t+s,i+e-r).arcTo(n,r,t+s-n,i+e,!1,!0).lineTo(t+n,i+e).arcTo(n,r,t,i+e-r,!1,!0).closeSubpath()},addMarker:function(t,i,s){var e,n,r;switch(n=(0==(e=i%3)?2:1==e?3:5)*s,r=(0==(e=is(i/3))?2:1==e?3:5)*s,t){case ft.ARROW:this.moveTo(0,0).lineTo(n,-r/2).lineTo(n,r/2).closeSubpath();break;case ft.OPEN:var a=Ji(r/2,n),h=is(s/ji(a)/2);this.moveTo(n+h,-r/2).lineTo(h,0).lineTo(n+h,r/2);break;case ft.STEALTH:this.moveTo(0,0).lineTo(n,-r/2).lineTo(n/2,0).lineTo(n,r/2).closeSubpath();break;case ft.DIAMOND:this.moveTo(-n/2,0).lineTo(0,-r/2).lineTo(n/2,0).lineTo(0,r/2).closeSubpath();break;case ft.OVAL:this.addEllipse(0,0,n/2,r/2)}return this}});function nr(t,i,s,e,n,r,a){var h=r[0],o=r[1],u=i+e/2*(1+h),c=s+n/2*(1+o),f=a?.2*Wi(e,n):0;t.moveTo(i+f,s),h<=0&&o<=0&&zi(h)<=zi(o)?(t.lineTo(i+.2*e,s).lineTo(u,c).lineTo(i+.4*e,s).lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),a&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),a&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h<=0&&o<=0&&zi(h)>zi(o)?(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),a&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),a&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+4*n/10).lineTo(u,c).lineTo(i,s+2*n/10),a&&t.arcTo(f,f,i+f,s,!1,!0)):h>0&&o<=0&&zi(h)<=zi(o)?(t.lineTo(i+6*e/10,s).lineTo(u,c).lineTo(i+8*e/10,s).lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),a&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),a&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h>0&&o<=0&&zi(h)>zi(o)?(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+2*n/10).lineTo(u,c).lineTo(i+e,s+4*n/10).lineTo(i+e,s+n-f),a&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),a&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h<=0&&o>0&&zi(h)>zi(o)?(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),a&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),a&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+.8*n).lineTo(u,c).lineTo(i,s+6*n/10).lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h<=0&&o>0&&zi(h)<=zi(o)?(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),a&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+4*e/10,s+n).lineTo(u,c).lineTo(i+2*e/10,s+n).lineTo(i+f,s+n),a&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h>0&&o>0&&zi(h)>zi(o)?(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+6*n/10).lineTo(u,c).lineTo(i+e,s+.8*n).lineTo(i+e,s+n-f),a&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),a&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h>0&&o>0&&zi(h)<=zi(o)&&(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),a&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+.8*e,s+n).lineTo(u,c).lineTo(i+6*e/10,s+n).lineTo(i+f,s+n),a&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)),t.closeSubpath()}var rr={};function ar(t){var i=rr[t];if(!i){var s,e=[],n=[],r=1,a=1,h=-1,o=-1;for(s=0;s<t;s++)e[2*s]=Ki(2*Zi*s/t-Zi/2),n[2*s]=ji(2*Zi*s/t-Zi/2),e[2*s]<r&&(r=e[2*s]),n[2*s]<a&&(a=n[2*s]),e[2*s]>h&&(h=e[2*s]),n[2*s]>o&&(o=n[2*s]),e[2*s+1]=Ki(2*Zi*((2*s+1)/2)/t-Zi/2),n[2*s+1]=ji(2*Zi*((2*s+1)/2)/t-Zi/2);i=rr[t]={cXs:e,cYs:n,minX:r,minY:a,maxX:h,maxY:o}}return i}function hr(t){var i;try{i=t.getBBox()}catch(t){i={x:0,y:0,width:0,height:0}}return{x:i.x,y:i.y,width:i.width,height:i.height}}var or=ye.browser.ie||ye.browser.edge,ur=js(Qe,{$init:function(t,i){this.parent=i,this.slide=i.slide,this.container=t,this._l=_t.St,this.Xo="none",this.Lo=1,this.yl="black",this.Tl=1,this.kl="round",this.xl="miter",this.Zs=0,this.Fo=[]},path:function(t){var i,s=null;if(t)for(s=[],i=0;i<t.length;++i)if(i<2)s.push(t[i].slice());else for(var e=t[i],n=0;n<e.length;++n){var r=e[n];if(r){var a=r.p;s.push(a.slice()),s[s.length-1].f=r.f}}this.bf=s,this.bn()?this.iu():this.Cl()&&this.br()},shape:function(t,i){this.Zs=t,this.Fo=i,this.bn()?this.iu():this.Cl()&&this.br()},flip:function(t,i){this.shapeNode&&Is(this.shapeNode,t,i,!0),t?this.Ru=1:delete this.Ru,i?this.Pu=1:delete this.Pu},lineStyle:function(t){if(typeof t!==Hi&&(t=t&lt?"solid":t&dt?"dotted":t&pt?"dashed":t&vt?"dash-dotted":"none"),this.Xo=t,"none"===t)this.Sl?this.Sl.style.display=t:this.Ol&&(this.Ol.style.stroke=t),this.El(),this.Il()&&this.iu();else if(this.bn()){this.Sl?this.Sl.style.display="":this.Ol&&(this.Ol.style.stroke=this.yl||"black");var i="none",s=this.Lo||0;switch(t){case"solid":i="none";break;case"dotted":i="0.01 "+2*s;break;case"dashed":i=2*s+" "+2*s;break;case"dash-dotted":case"dot-dashed":i=2*s+" "+2*s+" 0 "+2*s;break;default:i=t}this.Ol&&(this.Ol.style.strokeDasharray=i),this.El(),this.Il()&&this.iu()}else this.Cl()&&this.br()},lineJoin:function(t){typeof t!==Hi&&(t=t&bt?"round":t&wt?"bevel":"miter"),this.xl=t,this.Ol&&(this.Ol.style.strokeLinejoin=t)},lineCap:function(t){if(typeof t!==Hi){var i="butt";t&mt?i="square":t&gt&&(i="round"),t=i}this.kl=t,this.Ol&&(this.Ol.style.strokeLinecap=t)},lineWidth:function(t){if(this.Lo=t,this.bn()){if(this.El(),this.Il()&&this.iu(),this.Ol&&(this.Ol.style.strokeWidth=t),this.hasArrow()&&(this.iu(),this.Pl&&(this.Pl.style.strokeWidth=t),this.Rl&&(this.Rl.style.strokeWidth=t)),"none"!==this.Xo&&this.lineStyle(this.Xo),ye.browser.chromiums){var i=this.node.style;parseInt(i.minWidth)<t&&(i.minWidth=t+"px",i.minHeight=t+"px")}}else this.Cl()&&this.br()},El:function(){if(this.shapeNode){var t=this.Lo%2/2;t&&"none"!==this.Xo?this.shapeNode.setAttribute("transform","translate("+t+", "+t+")"):this.shapeNode.removeAttribute("transform")}},lineColor:function(t,i,s,e){var n;typeof t===Hi?(this.yl=t,e=i):this.yl=Ps(t,i,s),this.Tl=void 0===e?1:e,this.Sl?(this.Sl.style.opacity=this.Tl,this.Ol.style.stroke=this.yl,this.Pl&&(n=this.Pl.style,this.Ml&&this.Ml.type!==ft.NONE?this.Ml.type===ft.OPEN?(n.stroke=this.yl,n.fill="none"):(n.stroke="none",n.fill=this.yl):n.stroke=n.fill="none"),this.Rl&&(n=this.Rl.style,this.Nl&&this.Nl.type!==ft.NONE?this.Nl.type===ft.OPEN?(n.stroke=this.yl,n.fill="none"):(n.stroke="none",n.fill=this.yl):n.stroke=n.fill="none")):this.Ol&&("none"!==this.Xo&&(this.Ol.style.stroke=this.yl),this.Ol.style.strokeOpacity=this.Tl)},startArrow:function(t,i){this.Ml={type:t,size:i},this.bn()?(this.iu(),this.lineColor(this.yl,this.Tl)):this.Cl()&&this.br()},endArrow:function(t,i){this.Nl={type:t,size:i},this.bn()?(this.iu(),this.lineColor(this.yl,this.Tl)):this.Cl()&&this.br()},fillNone:function(){this._l=_t.St,this.Al(),this.No&&(!this.bf||function(t){for(var i=[],s=0,e=t.length;s<e;++s){var n=t[s];n&&(i=i.concat(n))}return function(t){var i=t.length;if(i>1&&t[i-1][6])return t[i-1][6]&&2==t[i-1][6];return!1}(i)}(this.bf)?(this.No.style.fill="white",this.No.style.fillOpacity=0):this.No.style.fill="none")},fillSolid:function(t,i,s,e){this._l=_t.Ot,this.Al(),typeof t===Hi?(this.Dl=t,e=i):this.Dl=Ps(t,i,s),this.Yl=void 0===e?1:e,this.bn()?(this.No.style.fill=this.Dl,this.No.style.fillOpacity=this.Yl):this.Cl()&&this.br()},fillLinearGradient:function(t,i,s,e){if(this._l=_t.It,this.Xl=i,this.Ll=t,this.Fl=s,this.Hl=e,this.Al(),this.bn()){if(!this.Ul){this.Ul=os.createElementNS(Ui,"linearGradient"),this.Ul.id=this.container.id?this.container.id+"-lgrad":"ap-lgrad-"+we(),this.Ul.setAttribute("gradientUnits",Bi);var n=this.node.querySelector("defs");n||(n=os.createElementNS(Ui,"defs"),this.node.appendChild(n)),n.appendChild(this.Ul)}this.No.style.fill="url(#"+this.Ul.id+")",this.No.style.fillOpacity=1,this.fillAngle(i),this.fillColorStops(t),this.fillLinearGradientTransform(s,e)}else this.Cl()&&this.br()},fillRadialGradient:function(t,i,s,e,n){if(this._l=_t.Pt,this.Ll=t,this.Bl=i,this.Zl=s,this.zl=e,this.Gl=n,this.Al(),this.bn()){if(!this.Vl){this.Vl=os.createElementNS(Ui,"radialGradient"),this.Vl.id=this.container.id?this.container.id+"-rgrad":"ap-rgrad-"+we(),this.Vl.setAttribute("gradientUnits",Bi);var r=this.node.querySelector("defs");r||(r=os.createElementNS(Ui,"defs"),this.node.appendChild(r)),r.appendChild(this.Vl)}this.No.style.fill="url(#"+this.Vl.id+")",this.No.style.fillOpacity=1;var a=hr(this.node),h=a.x+a.width/2,o=a.y+a.height/2,u=Gi(a.width*a.width/4+a.height*a.height/4);Es(this.Vl,{cx:h,cy:o,r:u}),this.fillColorStops(t),this.fillRadialGradientTransform(i,s,e,n)}else this.Cl()&&this.br()},fillAngle:function(t){if((t%=360)<0&&(t+=360),this.Xl=t,this._l===_t.It&&this.Ul){var i,s,e,n,r=qi(t*Zi/180),a=1+r*r,h=hr(this.node);t<90?(i=h.x,s=h.y,e=h.x+h.width,n=h.y+h.height):t<180?(e=h.x,n=h.y+h.height,i=h.x+h.width,s=h.y):t<270?(e=h.x,n=h.y,i=h.x+h.width,s=h.y+h.height):(i=h.x,s=h.y+h.height,e=h.x+h.width,n=h.y),Es(this.Ul,{x1:(i+r*s)/a,y1:(i+r*s)*r/a,x2:(e+r*n)/a,y2:(e+r*n)*r/a}),this.fillLinearGradientTransform(this.Fl,this.Hl)}},fillColorStops:function(t){var i,s,e,n,r,a,h;if(this.Ll=t,this._l===_t.It?i=this.Ul:this._l===_t.Pt&&(i=this.Vl),i){for(;s=i.lastChild;)i.removeChild(s);for(n=0,r=t.length;n<r;++n)e=t[n],s=os.createElementNS(Ui,"stop"),typeof e[1]===Hi?(a=e[1],h=e[2]):(a=Ps(e[1],e[2],e[3]),h=e[4]),void 0===h&&(h=1),Es(s,{offset:e[0]+"%","stop-color":a,"stop-opacity":h}),i.appendChild(s)}},fillLinearGradientTransform:function(t,i){if(this._l===_t.It&&this.Ul){this.Fl=t,this.Hl=i;var s,e,n,r=hr(this.node),a=this.Ul,h="";0!=t&&(s=this.Xl*Zi/180,h+="translate("+r.width*t/100*Ki(s)+", "+r.width*t/100*ji(s)+")"),100!=i&&(e=r.width/2,n=r.height/2,""!=h&&(h+=" "),h+="translate("+e+", "+n+") scale("+i/100+") translate("+-e+", "+-n+")"),h?a.setAttribute("gradientTransform",h):a.removeAttribute("gradientTransform")}},fillRadialGradientTransform:function(t,i,s,e){if(this._l===_t.Pt&&this.Vl){this.Bl=t,this.zl=s,this.Zl=i,this.Gl=e;var n,r,a=hr(this.node),h=this.Vl,o="";0==t&&0==i||(o="translate("+a.width*t/100+", "+a.height*i/100+")"),100==s&&100==e||(n=a.x+a.width/2,r=a.y+a.height/2,""!=o&&(o+=" "),o+="translate("+n+", "+r+") scale("+s/100+","+e/100+") translate("+-n+", "+-r+")"),o?h.setAttribute("gradientTransform",o):h.removeAttribute("gradientTransform")}},fillImage:function(t,e,n,r,a){if(this._l=_t._,this.Wl=t,this.$l=e,this.Kl=n,this.jl=r,this.Ql=a,this.Al(),this.bn()){if(!this.ql){this.ql=os.createElementNS(Ui,"pattern"),this.Jl=os.createElementNS(Ui,"image"),this.ql.appendChild(this.Jl),Es(this.ql,{id:this.container.id?this.container.id+"-imgfill":"ap-imgfill-"+we(),patternUnits:"userSpaceOnUse"});var h=this.node.querySelector("defs");h||(h=os.createElementNS(Ui,"defs"),this.node.appendChild(h)),h.appendChild(this.ql)}var o=this.parent.prez().getResource(t,e);if(this.Jl.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),n===Tt)if((v=this.parent).ee.t!==s.ut){if(Es(this.ql,{width:"100%",height:"100%"}),Es(this.Jl,{width:"100%",height:"100%",preserveAspectRatio:"none"}),v.ee.k==i.V&&this.container&&"TD"==this.container.tagName){var u=this.container;Es(this.ql,{width:parseInt(u.clientWidth)+"px",height:parseInt(u.clientHeight)+"px"}),Es(this.Jl,{width:parseInt(u.clientWidth)+"px",height:parseInt(u.clientHeight)+"px",preserveAspectRatio:"none"})}}else{var c=v.slide;if(c){var f=-v.node.offsetLeft,l=-v.node.offsetTop,d=c.lh,p=c.dh;Es(this.ql,{x:f+"px",y:l+"px",width:d+"px",height:p+"px"}),Es(this.Jl,{width:d+"px",height:p+"px",preserveAspectRatio:"none"})}}else if(n===yt){var v;(v=this.parent).ee.t!==s.ut?(Es(this.ql,{width:r+"px",height:a+"px"}),Es(this.Jl,{width:r+"px",height:a+"px",preserveAspectRatio:"none"})):(Es(this.ql,{x:-v.node.offsetLeft+"px",y:-v.node.offsetTop+"px",width:r+"px",height:a+"px"}),Es(this.Jl,{width:r+"px",height:a+"px",preserveAspectRatio:"none"}))}this.No.style.fill="url(#"+this.ql.id+")",this.No.style.fillOpacity=1}else this.Cl()&&this.br()},td:function(){switch(this._l){case _t.St:this.fillNone();break;case _t.Ot:this.fillSolid(this.Dl,this.Yl);break;case _t.It:this.fillLinearGradient(this.Ll,this.Xl,this.Fl,this.Hl);break;case _t.Pt:this.fillRadialGradient(this.Ll,this.Bl,this.Zl,this.zl,this.Gl);break;case _t._:this.fillImage(this.Wl,this.$l,this.Kl,this.jl,this.Ql)}},applyEffectShadow:function(t,i,s,e,n,r,a){this.sd=t,this.ed=i,this.nd=s,this.ad=e,this.hd=n,this.od=r,this.ud=Ps(e,n,r),this.fd=a,this.Al();var h,o=s*Ki(i/180*Zi),u=s*ji(i/180*Zi);if(ye.browser.useCSSShadow){h="drop-shadow("+o+"px "+u+"px "+t/3+"px "+Ps(e,n,r,a)+")";var c=this.parent.node.style;c.filter=h,c.WebkitFilter=h,ye.browser.safari&&(this.parent.ld=!0,Ws(c))}if(this.bn()){if(ye.browser.useCSSShadow)return;if(this.Mu(this.pd,this.vd),this.shapeNode.removeAttribute("filter"),this.gd)(f=this.node.querySelector("defs"))&&f.removeChild(this.gd),delete this.gd,delete this.bd,delete this.wd,delete this._d,delete this.yd,delete this.Td;or&&this.kd&&(this.shapeNode.removeChild(this.kd),delete this.kd),this.gd=os.createElementNS(Ui,"filter"),this.gd.id=this.container.id?this.container.id+"-dropshadow":"ap-dropshadow-"+we(),this.bd=os.createElementNS(Ui,"feFlood"),this.wd=os.createElementNS(Ui,"feComposite"),this._d=os.createElementNS(Ui,"feOffset"),this.yd=t>0?os.createElementNS(Ui,"feGaussianBlur"):null,this.Td=os.createElementNS(Ui,"feComposite");var f,l=this.gd;l.appendChild(this.bd),l.appendChild(this.wd),l.appendChild(this._d),t>0&&l.appendChild(this.yd),l.appendChild(this.Td),(f=this.node.querySelector("defs"))||(f=os.createElementNS(Ui,"defs"),this.node.appendChild(f)),f.appendChild(l);var d,p,v,m,g=hr(this.node);if(m=this.Lo+("miter"==this.xl?10:0),g.x-=m,g.y-=m,g.width+=2*m,g.height+=2*m,d={x:g.x-t+o,y:g.y-t+u,width:g.width+2*t,height:g.height+2*t},p=Math.min(g.x,d.x),v=Math.min(g.y,d.y),e=Math.max(g.x+g.width,d.x+d.width),r=Math.max(g.y+g.height,d.y+d.height),or){this.kd=os.createElementNS(Ui,"path");var b=new er;b.addRect(p,v,e-p,r-v),this.kd.setAttribute("d",b.path()),this.shapeNode.appendChild(this.kd)}Es(this.gd,{id:this.container.id?this.container.id+"-dropshadow":"ap-dropshadow-"+we(),filterUnits:Bi,primitiveUnits:Bi,style:"color-interpolation-filters:sRGB",x:p,y:v,width:e-p,height:r-v}),Es(this.bd,{result:"flood","flood-color":this.ud,"flood-opacity":this.fd}),Es(this.wd,{result:"composite1",operator:"in",in2:"SourceGraphic",in:"flood"}),Es(this._d,{result:"offset",in:"composite1",dx:o,dy:u}),this.yd&&Es(this.yd,{result:"blur",in:"offset",stdDeviation:t/3}),Es(this.Td,{result:"composite2",operator:"over",in2:t>0?"blur":"offset",in:"SourceGraphic"}),this.shapeNode.setAttribute("filter","url(#"+this.gd.id+")")}else this.Cl()&&this.br()},clearEffectShadow:function(){if(void 0!=this.sd){if(delete this.sd,delete this.ed,delete this.nd,delete this.ad,delete this.hd,delete this.od,delete this.ud,delete this.fd,ye.browser.useCSSShadow)return this.parent.node.style.WebkitFilter="",this.parent.node.style.filter="",void delete this.parent.ld;if(this.shapeNode.removeAttribute("filter"),this.gd){var t=this.node.querySelector("defs");t&&t.removeChild(this.gd),delete this.gd,delete this.bd,delete this.wd,delete this._d,delete this.yd,delete this.Td}or&&this.kd&&(this.shapeNode.removeChild(this.kd),delete this.kd),this.Mu(),this.Al()}},xd:function(){if(void 0==this.sd)this.clearEffectShadow();else{var t=this.parent.zs.ee[this.parent.zs.Fe].s,i=t?t[1]-this.parent.rotateToSlide():this.ed;this.applyEffectShadow(this.sd,i,this.nd,this.ad,this.hd,this.od,this.fd)}},Mu:function(t,i){if(this.pd=t,this.vd=i,this.bn()){if(ye.browser.useCSSShadow)return;if(void 0!=this.pd&&void 0!=this.sd){this.Cd||(this.Cd=os.createElementNS(Ui,"image"));var s=this.Cd,e=this.parent.prez().getResource(t,i);this.shapeNode.appendChild(s),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e),Es(s,{x:"0",y:"0",width:"100%",height:"100%",preserveAspectRatio:"none"}),this.parent.imageNode&&(this.parent.imageNode.style.display="none")}else this.Cd&&(this.shapeNode.removeChild(this.Cd),delete this.Cd,this.parent.imageNode&&(this.parent.imageNode.style.display="block"))}else this.Cl()&&this.br()},Al:function(){if(!ye.browser.useCSSShadow){var t,i=void 0!=this.sd&&this._l==_t.St,s=this.parent.textContainer;if(s)if(t=s.style,i){var e=this.nd*Math.cos(this.ed/180*Math.PI),n=this.nd*Math.sin(this.ed/180*Math.PI),r=this.ud.substring(4,this.ud.length-1).replace(/ /g,"").split(","),a="rgba("+r[0]+", "+r[1]+", "+r[2]+", "+this.fd+")";t.textShadow=e+"px "+n+"px "+this.sd+"px "+a}else t.textShadow=""}},layout:function(){if(this.iu(),this.Sd){var t=this.parent.node.clientHeight/2;this.parent&&this.parent.textContainer&&(t=this.parent.textContainer.offsetTop+this.parent.textContainer.clientHeight/2),this.Sd.translate(0,t)}if(this.sliderThumbPath&&this.updateSlider(this.parent.value()),this.dropdownNode&&this.updateDropdown(),this.Od){var i=this.container.clientHeight;this.Od.translate(0,i/2),this.updateLegend()}this._l!==_t.It&&this._l!==_t.Pt&&this._l!=_t._||this.td(),this.xd(),(this.Ru||this.Pu)&&this.flip(this.Ru,this.Pu)},remove:function(){this.node&&(this.container.removeChild(this.node),this.node=this.shapeNode=this.Sl=this.Ol=this.Pl=this.Rl=this.No=null)},textMargin:function(t,i){var s,e=[0,0,0,0],n=sr[this.Zs];return n&&n[1]&&(e=n[1].apply(null,[t,i].concat(this.Fo)),this.Ru&&(s=e[0],e[0]=e[2],e[2]=s),this.Pu&&(s=e[1],e[1]=e[3],e[3]=s)),e},shapeSizeForText:function(t,i){var s=[t,i],e=sr[this.Zs];return e&&e[2]&&(s=e[2].apply(null,[t,i].concat(this.Fo))),s},createIcon:function(t,i,s,e,n,r,a){this.bn()||this.br(),this.Ed={checked:t,iconSize:i,iconType:s,colorCheckMark:a,colorFill:n,colorBorder:r,borderWidth:e},this.Sd||(this.Sd={init:function(){this.border=os.createElementNS(Ui,"path"),this.fill=os.createElementNS(Ui,"path"),this.mark=os.createElementNS(Ui,"path")},appendTo:function(t){t.appendChild(this.border),t.appendChild(this.fill),t.appendChild(this.mark)},translate:function(t,i){this.border.setAttribute("transform","translate("+t+","+i+")"),this.fill.setAttribute("transform","translate("+t+","+i+")"),this.mark.setAttribute("transform","translate("+t+","+i+")")}},this.Sd.init(),this.Sd.appendTo(this.shapeNode))},updateIcon:function(){if(this.Sd&&this.Ed){var t=this.parent.ee.k;t==i.D?this.Id():t==i.Y&&this.Pd()}},Id:function(){var t=this.Ed.iconSize/16,i=this.Ed.iconSize-4*is($i(t,1)+.5),s=is(Wi(-7,-this.Ed.iconSize/4))-2*is($i(t,1)+.5),e=i/2,n=new er;0==this.Ed.colorFill.indexOf("rgba")&&(this.Sd.border.style.fillRule="evenodd",n.addRect(-s,-e,i,i)),n.addRect(-s-this.Ed.borderWidth,-e-this.Ed.borderWidth,i+2*this.Ed.borderWidth,i+2*this.Ed.borderWidth),this.Sd.border.style.fill=this.Ed.colorBorder,this.Sd.border.setAttribute("d",n.path());var r=new er;if(r.addRect(-s,-e,i,i),this.Sd.fill.style.fill=this.Ed.colorFill,this.Sd.fill.setAttribute("d",r.path()),this.Ed.checked){24==this.ou&&(this.Rd==tt?(++e,++s):this.Rd==st&&++e);var a=new er;switch(this.Ed.iconType){case tt:a.moveTo(2.5*t-s,5*t-e).lineTo(4.5*t-s,7*t-e).lineTo(9.5*t-s,2*t-e).lineTo(11*t-s,3.5*t-e).lineTo(4.5*t-s,10*t-e).lineTo(1*t-s,6.5*t-e);break;case it:a.moveTo(2.5*t-s,5*t-e).lineTo(4.5*t-s,7*t-e).lineTo(14.5*t-s,-3*t-e).lineTo(16*t-s,-1.5*t-e).lineTo(4.5*t-s,10*t-e).lineTo(1*t-s,6.5*t-e);break;case st:a.moveTo(3*t-s,5*t-e).lineTo(4.5*t-s,8*t-e).lineTo(13.5*t-s,-2*t-e).lineTo(16*t-s,-.5*t-e).lineTo(4.5*t-s,11*t-e).lineTo(0*t-s,6.5*t-e)}this.Sd.mark.style.fill=this.Ed.colorCheckMark,this.Sd.mark.setAttribute("d",a.path())}else this.Sd.mark.setAttribute("d","")},Pd:function(){var t,i,s,e=this.Ed.iconSize/16,n=this.Ed.iconSize/2,r=n+$i(is(this.Ed.iconSize/4),7);switch(this.Ed.iconType){case tt:t=n-2*e,i=n-4*e;break;case it:t=n-2*e,i=n-3*e;break;case st:t=n-2*e,i=n-2*e}s=n-2*e+this.Ed.borderWidth;var a=new er;0==this.Ed.colorFill.indexOf("rgba")&&(this.Sd.border.style.fillRule="evenodd",a.addEllipse(r,0,s-this.Ed.borderWidth,s-this.Ed.borderWidth)),a.addEllipse(r,0,s,s),this.Sd.border.style.fill=this.Ed.colorBorder,this.Sd.border.setAttribute("d",a.path());var h=new er;if(h.addEllipse(r,0,t,t),this.Sd.fill.style.fill=this.Ed.colorFill,this.Sd.fill.setAttribute("d",h.path()),this.Ed.checked){var o=new er;o.addEllipse(r,0,i,i),this.Sd.mark.style.fill=this.Ed.colorCheckMark,this.Sd.mark.setAttribute("d",o.path())}else this.Sd.mark.setAttribute("d","")},updateSliderProps:function(t,i,s,e,n,r){this.Md||(this.Md={sliderValue:0,colorTrack:"",colorThumb:"",colorBorder:"",sliderSize:24,sliderType:nt}),void 0!==t&&(this.Md.sliderValue=t),void 0!==i&&(this.Md.colorTrack=i),void 0!==s&&(this.Md.colorThumb=s),void 0!==e&&(this.Md.colorBorder=e),void 0!==n&&(this.Md.sliderSize=n),void 0!==r&&(this.Md.sliderType=r)},updateSlider:function(t,i,s,e,n,r){this.bn()||this.br(),this.updateSliderProps(t,i,s,e,n,r);var a=this.container.clientWidth,h=this.container.clientHeight,o=[this.Md.sliderSize,this.Md.sliderSize];this.Ol.style.pointerEvents="none";var u=0;u=.5,this.sliderTrackPath||(this.sliderTrackPath=os.createElementNS(Ui,"path"),this.sliderTrackPath.style.pointerEvents="none",this.sliderTrackPath.style.strokeWidth=1,this.shapeNode.appendChild(this.sliderTrackPath)),this.sliderTrackPath.style.stroke=this.Md.colorBorder,this.sliderTrackPath.style.fill=this.Md.colorTrack;var c=new er,f=a>3?3:a;c.addRoundedRect(u,h/2-o[0]/6+u,a,o[0]/3,f,f),this.sliderTrackPath.setAttribute("d",c.path()),a<o[0]&&this.Md.sliderType!=et&&this.sliderTrackPath.setAttribute("d","");var l=this.parent.$o(this.Md.sliderValue);this.sliderProgressPath||(this.sliderProgressPath=os.createElementNS(Ui,"path"),this.sliderProgressPath.style.pointerEvents="none",this.sliderProgressPath.style.strokeWidth=0,this.shapeNode.appendChild(this.sliderProgressPath)),this.sliderProgressPath.style.fill=this.Md.colorThumb;var d=new er,p=l;this.Md.sliderType!=et&&(p=l+o[0]/2),f=p>3?3:p,d.addRoundedRect(ts(.5),h/2-o[0]/6+ts(.5),$i(p-1,0),o[0]/3-1,f,f),this.sliderProgressPath.setAttribute("d",d.path()),this.sliderThumbPath||(this.sliderThumbPath=os.createElementNS(Ui,"path"),this.sliderThumbPath.style.pointerEvents="none",this.sliderThumbPath.style.strokeWidth=1,this.shapeNode.appendChild(this.sliderThumbPath)),this.sliderThumbPath.style.stroke=this.Md.colorBorder,this.sliderThumbPath.style.fill=this.Md.colorThumb,this.parent.node.setAttribute("aria-valuenow",this.Md.sliderValue);var v=l+u,m=new er;this.Md.sliderType==nt?m.addEllipse(v+o[0]/2,h/2+u,o[0]/2,o[1]/2):this.Md.sliderType==rt?(o=[.75*this.Md.sliderSize,this.Md.sliderSize],m.addRect(v,h/2-o[1]/2+u,o[0],o[1])):this.Md.sliderType==at&&(o=[.75*this.Md.sliderSize,this.Md.sliderSize],m.moveTo(v,h/2-o[1]/2).lineTo(v,h/2+o[1]/4+u).lineTo(v+o[0]/2,h/2+2*o[1]/3+u).lineTo(v+o[0],h/2+o[1]/4+u).lineTo(v+o[0],h/2-o[1]/2+u).lineTo(v,h/2-o[1]/2+u)),this.sliderThumbPath.setAttribute("d",m.path()),this.handledMousePath||(this.handledMousePath=os.createElementNS(Ui,"path"),this.handledMousePath.style.pointerEvents="visiblepainted",this.handledMousePath.style.fill="white",this.handledMousePath.style.fillOpacity=0,this.shapeNode.appendChild(this.handledMousePath));var g=new er;g.addRect(0,0,a,h),this.handledMousePath.setAttribute("d",g.path())},updateDropdownProps:function(t,i,s,e,n,r){this.Nd||(this.Nd={textStyle:"",bgColorArrow:"",colorArrow:"",colorBorder:"",bgColor:"",dropdownType:ht}),void 0!==t&&(this.Nd.textStyle=t),void 0!==i&&(this.Nd.bgColorArrow=i),void 0!==s&&(this.Nd.colorArrow=s),void 0!==e&&(this.Nd.colorBorder=e),void 0!==n&&(this.Nd.bgColor=n),void 0!==r&&(this.Nd.dropdownType=r)},updateDropdown:function(i,s,e,n,r,a,h,o,u){var c;if(this.bn()||this.br(),this.updateDropdownProps(n,r,a,h,o,u),this.dropdownNode)c=this.dropdownNode.style;else{if(this.dropdownNode=os.createElement("select"),this.dropdownNode.className="ap-select",(c=this.dropdownNode.style).pointerEvents="auto",c.webkitAppearance="none",c.mozAppearance="none",c.position="absolute",c.left="0px",c.top="50%",c.transform="translate(0%, -50%)",c.width="100%",c.textOverflow="ellipsis",c.cursor="inherit",c.marginTop="0px",c.marginBottom="0px",c.paddingTop="1px",c.paddingBottom="1px",-1==e){var f=os.createElement("option");f.value="",f.text=s,f.selected="selected",f.disabled="disabled",f.hidden="hidden",this.dropdownNode.add(f)}for(var l=0;l<i.length;++l){var d=os.createElement("option");d.value=i[l],d.text=i[l],this.dropdownNode.add(d)}-1!==e&&(this.dropdownNode.selectedIndex=e),this.node.parentNode.appendChild(this.dropdownNode)}this.dropdownNode.disabled=this.parent.disabled(),this.dropdownNode.disabled&&this.dropdownNode.blur(),c.cssText+=this.Nd.textStyle,c.borderStyle="none",c.backgroundColor="rgba(0,0,0,0)";var p,v=(parseFloat(t(this.dropdownNode).css("font-size"))||16)*(void 0!==this.parent.Wh?this.parent.Wh/100:1)+"px";c.fontSize=v,this.parent.Ea&&this.parent.Eh&&(c.position="relative",this.parent.node&&"auto"===this.parent.node.style.height&&zi(this.parent.node.clientHeight-this.dropdownNode.offsetHeight)<1?(c.top="",c.transform=""):(c.top="50%",c.transform="translate(0%, -50%)"));for(l=0;l<this.dropdownNode.childNodes.length;++l)(p=this.dropdownNode.childNodes[l].style).cssText+=this.Nd.textStyle,p.fontSize=v,p.backgroundColor=this.Nd.bgColor;var m=this.dropdownNode.clientWidth,g=this.dropdownNode.clientHeight,b=this.node.clientHeight/2-g/2;this.bgPath||(this.bgPath=os.createElementNS(Ui,"path"),this.bgPath.style.pointerEvents="none",this.bgPath.style.strokeWidth=1,this.shapeNode.appendChild(this.bgPath)),this.bgPath.style.fill=this.Nd.bgColor,this.bgPath.style.stroke=this.Nd.colorBorder,this.arrowBgPath||(this.arrowBgPath=os.createElementNS(Ui,"path"),this.arrowBgPath.style.pointerEvents="none",this.arrowBgPath.style.strokeWidth=0,this.arrowBgPath.style.stroke="rgba(0,0,0,0)",this.shapeNode.appendChild(this.arrowBgPath)),this.arrowBgPath.style.fill=this.Nd.bgColorArrow,this.arrowPath||(this.arrowPath=os.createElementNS(Ui,"path"),this.arrowPath.style.pointerEvents="none",this.arrowPath.style.strokeWidth=2,this.shapeNode.appendChild(this.arrowPath)),this.arrowPath.style.stroke=this.Nd.colorArrow,this.bgLine||(this.bgLine=os.createElementNS(Ui,"path"),this.bgLine.style.pointerEvents="none",this.bgLine.style.strokeWidth=1,this.shapeNode.appendChild(this.bgLine)),this.bgLine.style.stroke=this.Nd.colorBorder;var w=this.dropdownNode.clientLeft,_=w+m,y=new er,T=g,k=0,x=m>T?T/2:0,C=0;if(ye.browser.firefox&&(x-=5,C=3),c.paddingRight=T-C+"px",c.paddingLeft=x+"px",(u=this.Nd.dropdownType)==ht)y.addRect(w,b,m,g),(S=new er).addRect(_-T,b,T,g).closeSubpath(),this.arrowBgPath.setAttribute("d",S.path()),this.bgLine.setAttribute("d",y.path());else if(u==ot){k=T<m?T/8:m/8,y.addRoundedRect(w,b,m,g,k,k),(S=new er).moveTo(_-T,b).lineTo(_-k,b).arcTo(k,k,_,b+k,!1,!0).lineTo(_,b+g-k).arcTo(k,k,_-k,b+g,!1,!0).lineTo(_-T,b+g).closeSubpath(),this.arrowBgPath.setAttribute("d",S.path()),this.bgLine.setAttribute("d",y.path())}else{var S;k=T<m?T/2:m/2,y.addRoundedRect(w,b,m,g,k,k),(S=new er).moveTo(_-3*k,b).lineTo(_-k,b).arcTo(k,k,_-k,b+g,!1,!0).lineTo(_-3*k,b+g).lineTo(_-3*k,b).closeSubpath(),this.arrowBgPath.setAttribute("d",S.path()),this.bgLine.setAttribute("d",y.path())}this.bgPath.setAttribute("d",y.path());var O=0,E=0,I=0;u==ht||u==ot?(I=(E=3*T/8)/2,O=T/2-E/2):u==ut&&(I=(E=3*k/4)/2,O=T/2);var P=new er;P.moveTo(w+m-O,b+g/2-I/2).lineTo(w+m-O-E/2,b+g/2+I/2).lineTo(w+m-O-E,b+g/2-I/2),this.arrowPath.setAttribute("d",P.path())},createLegend:function(t,i,s,e){this.bn()||this.br(),this.Ad={colorFill:i,colorBorder:s,borderWidth:t,lineStyle:e},this.Od||(this.Od={init:function(){this.fill=os.createElementNS(Ui,"path"),this.border=os.createElementNS(Ui,"path")},appendTo:function(t){t.appendChild(this.fill),t.appendChild(this.border)},translate:function(t,i){this.fill.setAttribute("transform","translate("+t+","+i+")"),this.border.setAttribute("transform","translate("+t+","+i+")")}},this.Od.init(),this.Od.appendTo(this.shapeNode))},updateLegend:function(){if(this.Od&&this.Ad){var i=parseFloat(t(this.parent.textNode).css("font-size"))||8,s=Wi($i(8,i),64),e=s-4,n=is(Wi(-6,-s/4))-2,r=e/2,a=Wi(this.Ad.borderWidth,6),h=new er;h.addRect(-n,-r,e,e),this.Od.fill.style.fill=this.Ad.colorFill,this.Od.fill.setAttribute("d",h.path());var o=new er;o.addRect(-n,-r,e,e);var u=this.Od.border.style;if(u.stroke=this.Ad.colorBorder,u.strokeWidth=a,this.Ad.lineStyle){var c=this.Ad.lineStyle;u.strokeLinejoin=c[0],u.strokeLinecap=c[1];var f=0,l=1,d=2,p=3,v="none";switch(c[2]){case f:v="none";break;case l:v="0.01 "+2*a;break;case p:v=2*a+" "+2*a;break;case d:v=2*a+" "+2*a+" 0 "+2*a;break;default:v=c[2]}u.strokeDasharray=v}this.Od.border.setAttribute("d",o.path())}},Cl:function(){return(this.bf||void 0!==this.Zs)&&("none"!==this.Xo||this._l!==_t.St||!ye.browser.useCSSShadow&&void 0!=this.sd&&void 0!=this.pd)},bn:function(){var t=!1;return this.hasArrow()?this.Sl&&(t=!0):this.shapeNode&&(t=!0),t},br:function(){var t,i=!1;if(!this.node){var e=os.createElementNS(Ui,"svg");(t=e.style).width="100%",t.height="100%",t.minWidth="10px",t.minHeight="10px",t.position="absolute",t.overflow="visible",t.top=0,t.left=0,this.container.insertBefore(e,this.container.firstChild),this.node=e}if(this.hasArrow())this.Sl||(i=!0,this.shapeNode&&this.node.removeChild(this.shapeNode),this.shapeNode=os.createElementNS(Ui,"g"),this.No=os.createElementNS(Ui,"path"),this.No.style.stroke="none",this.shapeNode.appendChild(this.No),this.Sl=os.createElementNS(Ui,"g"),this.Ol=os.createElementNS(Ui,"path"),this.Ol.style.fill="none",this.Sl.appendChild(this.Ol),this.Pl=os.createElementNS(Ui,"path"),(t=this.Pl.style).strokeLinecap="round",t.strokeLinejoin="miter",this.Sl.appendChild(this.Pl),this.Rl=os.createElementNS(Ui,"path"),(t=this.Rl.style).strokeLinecap="round",t.strokeLinejoin="miter",this.Sl.appendChild(this.Rl),this.shapeNode.appendChild(this.Sl),this.node.appendChild(this.shapeNode));else if(this.bf&&this.bf.length){if(!this.Sl){if(i=!0,this.shapeNode&&this.node.removeChild(this.shapeNode),this.shapeNode=os.createElementNS(Ui,"g"),this.No=os.createElementNS(Ui,"path"),this.No.style.stroke="none",this.shapeNode.appendChild(this.No),this.bf.length>2){this.Dd=[];for(var n=0;n<this.bf.length;++n)if(!(n<2)){var r=this.bf[n];if(r){var a=os.createElementNS(Ui,"path");a.style.fill=r.f,a.style.stroke="none",this.shapeNode.appendChild(a),this.Dd.push(a)}}}this.Ol=os.createElementNS(Ui,"path"),this.Ol.style.fill="none",this.shapeNode.appendChild(this.Ol),this.node.appendChild(this.shapeNode)}}else this.shapeNode||(i=!0,this.shapeNode=os.createElementNS(Ui,"g"),this.No=os.createElementNS(Ui,"path"),this.shapeNode.appendChild(this.No),this.parent.ee.t==s.ut?(this.Ol=os.createElementNS(Ui,"path"),this.shapeNode.appendChild(this.Ol)):this.Ol=this.No,this.node.appendChild(this.shapeNode));i&&((t=this.shapeNode.style).pointerEvents="visiblePainted",t.strokeMiterlimit=10,t.fill=t.stroke="none",(this.Ru||this.Pu)&&this.flip(this.Ru,this.Pu),this.iu(),void 0!==this.xl&&this.lineJoin(this.xl),void 0!==this.kl&&this.lineCap(this.kl),this.lineWidth(this.Lo),this.lineColor(this.yl,this.Tl),this.lineStyle(this.Xo),this.td(),this.xd())},hasArrow:function(){return this.Yd()&&(this.Ml&&this.Ml.type!==ft.NONE||this.Nl&&this.Nl.type!==ft.NONE)},Yd:function(){return this.bf&&this.bf.length>0&&this.bf[1]&&this.bf[1].length>1&&this.Lo},Iu:function(){var t=this.container.clientWidth,i=this.container.clientHeight,e=new er,n={fill:"",line:"",startArrow:"",startArrowTransform:"",endArrow:"",endArrowTransform:""};if(!t&&!i)return n;if(ye.browser.chromiums&&this.parent.ee.t==s.ut){var r=this.slide.offsetSize(),a=$i(ts(r.width/10),t);a%2==1&&++a,this.node.style.width=a+"px",(a=$i(ts(r.height/10),i))%2==1&&++a,this.node.style.height=a+"px"}if(this.bf){var h=this.bf;if(void 0===h.w){var o=function(t){var i=new er,s=os.createElementNS(Ui,"svg"),e=os.createElementNS(Ui,"path"),n=s.style;n.position="absolute",n.top=n.left="-10000px",n.visibility="hidden";for(var r=0,a=t.length;r<a;++r){var h=t[r];h&&cr(i,h)}e.setAttribute("d",i.path()),s.appendChild(e),os.body.appendChild(s);var o=hr(e);return os.body.removeChild(s),o}(h);h.w=o.width,h.h=o.height}n.w===t&&n.h===i||(h=function(t,i,s){for(var e=[],n=0,r=t.length;n<r;++n){var a=t[n];if(a){var h=fr(a,i,s);e.push(h)}}return e}(h,h.w?t/h.w:1,h.h?i/h.h:1));for(var u=0,c=h.length;u<c;++u){e.clear();var f,l,d,p,v,m,g=h[u];1==u&&this.Yd()&&(this.Ml&&this.Ml.type!==ft.NONE&&(f=g[0].slice(),d=Ji(f[5]-f[1],f[4]-f[0]),(m=new er).addMarker(this.Ml.type,this.Ml.size,this.Lo),n.startArrow=m.path(),n.startArrowTransform="translate("+f[0]+","+f[1]+") rotate("+180*d/Zi+")",p=lr(this.Ml.type,this.Ml.size,this.Lo),g[0][0]+=p*Ki(d),g[0][1]+=p*ji(d)),this.Nl&&this.Nl.type!==ft.NONE&&(l=g[v=g.length-1].slice(),d=Ji(l[3]-l[1],l[2]-l[0]),(m=new er).addMarker(this.Nl.type,this.Nl.size,this.Lo),n.endArrow=m.path(),n.endArrowTransform="translate("+l[0]+","+l[1]+") rotate("+180*d/Zi+")",p=lr(this.Nl.type,this.Nl.size,this.Lo),g[v][0]+=p*Ki(d),g[v][1]+=p*ji(d))),cr(e,g),f&&(g[0]=f),l&&(g[v]=l),1==u&&(n.line=e.path()),(f||l)&&(e.clear(),cr(e,g)),0==u&&(n.fill=e.path()),u>=2&&(n.decorators||(n.decorators=[]),n.decorators.push(e.path()))}}else{var b=sr[this.Zs];if(b&&b[0])if(this.Il()){var w="none"!==this.Xo?this.Lo:0,_=w%2==0?0:1,y=is(w/2);b[0].apply(e,[-y-_,-y-_,t+2*y+_,i+2*y+_].concat(this.Fo))}else b[0].apply(e,[0,0,t,i].concat(this.Fo));n.fill=n.line=e.path()}return n},iu:function(){var t=this.Iu();if(this.No){var e=this.parent;if(e.ee.t===s.ut){var n=this.slide;if(n){var r={x:-e.node.offsetLeft-1,y:-e.node.offsetTop-1,width:n.lh+2,height:n.dh+2},a=new er;a.addRect(r.x,r.y,r.width,r.height),t.fill&&(t.fill+=a.path())}}12===this.Zs||this.Dd&&this.Dd.length||(this.No.style.fillRule="evenodd"),this.No.setAttribute("d",t.fill)}if(this.Ol!==this.No&&this.Ol.setAttribute("d",t.line),this.Pl&&(this.Pl.setAttribute("d",t.startArrow),t.startArrowTransform?this.Pl.setAttribute("transform",t.startArrowTransform):this.Pl.removeAttribute("transform")),this.Rl&&(this.Rl.setAttribute("d",t.endArrow),t.endArrowTransform?this.Rl.setAttribute("transform",t.endArrowTransform):this.Rl.removeAttribute("transform")),this.parent.ee.k==i.H&&this.Ao){var h=this.Ao.querySelector("rect"),o="none"!==this.Xo?this.Lo:0,u=o%2==0?0:1,c=is(o/2),f=this.container.clientWidth,l=this.container.clientHeight;h&&(h.setAttribute("x",-o),h.setAttribute("y",-o),h.setAttribute("width",f+2*o),h.setAttribute("height",l+2*o));var d=this.Ao.querySelector("path");if(d){var p=new er,v=sr[this.Zs],m=this.parent.ee.tmp.duration,g=(this.parent.ee.tmp.countdown?m-this.parent.Po:this.parent.Po)/m;f=f-2*c-2*u,l=l-2*c-2*u;v&&v[0]&&(v[0].apply(p,[f*g+u+c,c+u,f-f*g,l].concat(this.Fo)),d.setAttribute("d",p.path()))}}if(this.Dd&&this.Dd.length>0&&t.decorators&&t.decorators.length==this.Dd.length)for(var b=0;b<this.Dd.length;++b)this.Dd[b].setAttribute("d",t.decorators[b])},Il:function(){var t=this.parent.ee.k;return t==i._&&0==this.Zs||t==i.X||t==i.K||t==i.G||t==i.V},offsetPosition:function(){return{x:0,y:0}},offsetSize:function(){return this.node?this.parent.offsetSize():{width:0,height:0}},contentBox:function(){if(!this.node)return{x:0,y:0,width:0,height:0};var t=hr(this.node),i=(this.Lo||0)/2*("miter"===this.xl?10:1);if(i&&(t.x-=i,t.y-=i,t.width+=2*i,t.height+=2*i),void 0!==this.sd){var s=this.nd*Ki(this.ed/180*Zi),e=this.nd*ji(this.ed/180*Zi),n=this.sd,r={x:t.x+s-n,y:t.y+e-n,width:t.width+2*n,height:t.height+2*n},a=t.x+t.width,h=t.y+t.height;t.x=Wi(t.x,r.x),t.y=Wi(t.y,r.y),t.width=$i(a,r.x+r.width)-t.x,t.height=$i(h,r.y+r.height)-t.y}return t},transformedContentBox:function(t){var i=t?this.rotateToSlide():this.rotate();return this.rotatedContentBox(i,t)}});function cr(t,i){var s,e,n,r,a=null;for(n=0,r=i.length;n<r;++n)(s=i[n])[6]&&1==s[6]||0===n?(t.moveTo(s[0],s[1]),a=s):t.cubicTo(e[4],e[5],s[2],s[3],s[0],s[1]),s[6]&&2==s[6]&&(a&&(t.cubicTo(s[4],s[5],a[2],a[3],a[0],a[1]),a=null),t.closeSubpath()),e=s}function fr(t,i,s){var e,n,r,a,h,o=[],u=Ze.scaleNonUniform(i,s);for(n=0,r=t.length;n<r;++n)a=[],h=Ge(u,(e=t[n])[0],e[1]),a[0]=h.x,a[1]=h.y,h=Ge(u,e[2],e[3]),a[2]=h.x,a[3]=h.y,h=Ge(u,e[4],e[5]),a[4]=h.x,a[5]=h.y,a[6]=e[6],o[n]=a;return o}function lr(t,i,s){var e=i%3,n=(0===e?2:1===e?3:5)*s;switch(t){case ft.ARROW:case ft.OPEN:case ft.STEALTH:return i<3?2.5*n/4:2*n/4;default:return 0}}var dr={FPS:60,INTERVAL:16,time:0,syncTimes:[],timerId:null,isRunning:function(){return!!this.timerId},start:function(){this.stop(),pr()},stop:function(){this.timerId&&(cancelAnimationFrame(this.timerId),this.timerId=null)},now:function(){var t=this.syncTimes;return t.length?t[t.length-1]:this.time},updateTime:function(){this.syncTimes.length=0,this.time=Date.now()},pushSync:function(t){this.syncTimes.push(t)},popSync:function(){this.syncTimes.pop()},adjustLag:function(){}};function pr(){dr.updateTime(),dr.timerId=requestAnimationFrame(pr),ye.tick(dr.time)}var vr={linear:function(t){return t},inQuad:function(t){return t*t},doubleInQuad:function(t){return t*t*t*t*t*t},outQuad:function(t){return-t*(t-2)},inOutQuad:function(t){return t<.5?2*t*t:2*t*(2-t)-1},inBounce:function(t){vr.outBounce(1-t)},outBounce:function(t){return 1===t?1:t<4/11?7.5625*t*t:t<8/11?7.5625*(t-=6/11)*t+.75:t<10/11?7.5625*(t-=9/11)*t+.9375:7.5625*(t-=21/22)*t+.984375}},mr={Xd:0,Ld:1,Fd:2,Hd:3,za:4,Ud:5,Bd:6,Zd:7},gr=js({$init:function(t,i){this.s=t,this.d=i-t},resolveRelative:function(t,i,s,e){var n,r;switch(t){case mr.Ld:n=i,r=s;break;case mr.Fd:n=i,r=i+s;break;case mr.Hd:n=s,r=i;break;case mr.za:n=i-s,r=i;break;case mr.Ud:n=i+s,r=i+e;break;case mr.Bd:case mr.Zd:n=i*s,r=i*e;break;default:n=s,r=e}this.$init(n,r)},value:function(t){return this.s+this.d*t}}),br={_default:function(t,i){return new gr(t,i)}};function wr(t,i){return void 0===br[i]&&(br[i]=t,!0)}function _r(t){return(br[t]||br._default).apply(null,Array.prototype.slice.call(arguments,1))}var yr=js(gr,{$init:function(t,i){this.s=t,this.e=void 0===i?t:i},value:function(t){return t<1?this.s:this.e}});function Tr(t,i,s){var e=s*s,n=e*s,r=1-s,a=r*r,h=a*r,o=3*a*s,u=3*r*e;return{x:h*t[0]+o*t[4]+u*i[2]+n*i[0],y:h*t[1]+o*t[5]+u*i[3]+n*i[1]}}function kr(t,i,s,e,n){var r=is(s[e].t),a=(s[e].t+s[e+1].t)/2-r,h=Tr(t,i,a),o={x:s[e].x,y:s[e].y},u={x:s[e+1].x,y:s[e+1].y},c=0;return(xr(h,{x:(o.x+u.x)/2,y:(o.y+u.y)/2})>n||xr(o,u)>4*n)&&(h.t=r+a,s.splice(e+1,0,h),c=1+kr(t,i,s,e+1,n),c+=kr(t,i,s,e,n)),c}function xr(t,i){var s=i.x-t.x,e=i.y-t.y;return Gi(s*s+e*e)}wr(function(t,i){return new yr(t,i)},Jt.ms);var Cr=js(gr,{$init:function(t,i){this.zd=i||{translateX:0,translateY:0},this.points(t)},value:function(t){var i=this.Gd(t),s=is(i),e=this.Vd,n=e.length-2;s<0?(s=0,i=0):(s>n&&(s=n),(i-=s)>1&&(i=1));var r,a,h,o,u,c,f,l,d,p=Tr(e[s],e[s+1],i),v=i;return v<1e-6?v=1e-6:v>.999999&&(v=.999999),o=e[s],u=e[s+1],f=(c=v)*c,a={x:3*(d=(l=1-c)*l)*(o[4]-o[0])+6*l*c*(u[2]-o[4])+3*f*(u[0]-u[2]),y:3*d*(o[5]-o[1])+6*l*c*(u[3]-o[5])+3*f*(u[1]-u[3])},180*Ji(a.y,a.x)/Zi,(t<0||t>1)&&(r=Gi(a.x*a.x+a.y*a.y))>0&&(h=t>1?t-1:t,p.x+=h*this.Wd*a.x/r,p.y+=h*this.Wd*a.y/r),{translateX:p.x+this.zd.translateX,translateY:p.y+this.zd.translateY}},points:function(t){t&&t.length||(t=[[0,0,0,0,0,0]]),1===t.length&&(t[1]=t[0]),this.Vd=t,this.$d(),this.Kd()},$d:function(){this.wl=[];var t,i,s,e,n=this.Vd,r=n.length-1,a=this.wl;for(t=0;t<r;++t)for(i=0;i<4;++i)s=i/4,(e=Tr(n[t],n[t+1],s)).t=t+s,a.push(e);for(r>=0&&a.push({x:n[r][0],y:n[r][1],t:r}),t=r-1;t>=0;--t)for(i=3;i>=0;--i)kr(n[t],n[t+1],a,4*t+i,2)},Kd:function(){var t,i=this.wl,s=0,e=i.length-1;for(t=0;t<e;++t)i[t].l=s,s+=xr(i[t],i[t+1]);e>=0&&(i[e].l=s),this.Wd=s,this.jd=[];var n,r,a=this.jd,h=s;for(this.Qd=10,t=0,s=0;t<e;)if(i[t+1].l<s)++t;else if(n=i[t],r=i[t+1],a.push({l:s,t:r.l>n.l?n.t+(s-n.l)*(r.t-n.t)/(r.l-n.l):n.t}),(s+=10)>h)break;0===a.length&&a.push({l:0,t:0}),e>=0&&(a.length<2||a[a.length-1].t<i[e].t)&&a.push({l:h,t:i[e].t})},Gd:function(t){var i,s,e,n,r=t*this.Wd,a=this.jd,h=a.length;return 0===h?i=0:1===h?i=a[0].t:(e=a[s=this.Qd>0?Wi($i(0,is(r/this.Qd)),h-2):0],i=(n=a[s+1]).l>e.l?e.t+(r-e.l)*(n.t-e.t)/(n.l-e.l):e.t),i}});wr(function(t,i){return new Cr(t,i)},Jt.gs);var Sr=js(gr,{$init:function(t){this.qd=t||""},value:function(t){var i=this.qd;if(t>=0||t<=1){var s=i.length,e=s*t;e>s&&(e=s),i=i.substring(0,e)}return i}});wr(function(t){return new Sr(t)},Jt.bs);var Or=js(gr,{$init:function(t,i){this.Jd=t||[],this.tp=i||[]},value:function(t){for(var i=[],s=this.Jd,e=this.tp,n=0,r=s.length;n<r;++n){for(var a=s[n],h=e[n],o=[],u=0,c=a.length;u<c;++u)u<3&&(a[u]=a[u]<0?0:a[u]>255?255:a[u],h[u]=h[u]<0?0:h[u]>255?255:h[u]),3==u&&(a[u]=a[u]<0?0:a[u]>1?1:a[u],h[u]=h[u]<0?0:h[u]>1?1:h[u]),o.push(a[u]+(h[u]-a[u])*t);i.push(o)}return i}});wr(function(t,i){return new Or(t,i)},Jt.ws);var Er=js(gr,{$init:function(t,i,s){var e,n,r,a;if(this.ip=[],this.ep=[],t&&i)for(s||(t=[t],i=[i]),this.ip=t,e=0,n=Wi(t.length,i.length);e<n;++e){var h=t[e],o=i[e],u=[];for(r=0,a=Wi(h.length,o.length);r<a;++r)u.push([o[r][0]-h[r][0],o[r][1]-h[r][1]]);this.ep.push(u)}},value:function(t){for(var i=this.ip,s=this.ep,e=[],n=0,r=s.length;n<r;++n){for(var a=i[n],h=s[n],o=[],u=0,c=h.length;u<c;++u)o.push([a[u][0]+h[u][0]*t,a[u][1]+h[u][1]*t]);e.push(o)}return e}});wr(function(t,i,s){return new Er(t,i,s)},Jt._s);var Ir=js(gr,{$init:function(t,i){var s,e;if(this.np=t||[],this.rp=[],t&&i)for(s=0,e=Wi(t.length,i.length);s<e;++s)this.rp.push(i[s]-t[s])},value:function(t){var i,s,e=this.np,n=this.rp,r=[];for(i=0,s=n.length;i<s;++i)r.push(e[i]+n[i]*t);return r}});function Pr(t){return bs(t.translateX,0)&&bs(t.translateY,0)&&bs(t.rotate,0)&&bs(t.scaleX,1)&&bs(t.scaleY,1)}function Rr(i){var s=t(i).css("transform");return"none"!=s&&"matrix"!=s.substr(0,6)&&(vs.parentNode||os.body.appendChild(vs),vs.style.display="block",vs.style[Xs]=s,s=t(vs).css("transform"),vs.parentNode&&vs.parentNode.removeChild(vs)),s}wr(function(t,i){return new Ir(t,i)},Jt.ys);var Mr={transform:{children:["translateX","translateY","rotate","scaleX","scaleY"],get:function(t){var i,s,e,n=Ke(t),r={translateX:0,translateY:0,rotate:0,scaleX:1,scaleY:1},a=Rr(t.node);if("matrix("==a.substr(0,7)||(i="matrix3d("==a.substr(0,9))){for(s=0,e=(a=a.substring(i?9:7,a.length-1).split(",")).length;s<e;++s)a[s]=parseFloat(a[s]);i&&(a[2]=a[4],a[3]=a[5],a[4]=a[12],a[5]=a[13]),r.translateX=a[4]||0,r.translateY=a[5]||0,r.scaleX=Gi(a[0]*a[0]+a[1]*a[1]),0===r.scaleX?(r.scaleY=Gi(a[2]*a[2]+a[3]*a[3]),0===r.scaleY?r.rotate=0:r.rotate=180*Ji(-a[2],a[3])/Zi):(r.scaleY=(a[0]*a[3]-a[1]*a[2])/r.scaleX,r.rotate=180*Ji(a[1],a[0])/Zi)}return je(n),r},set:function(t,i){if(t.slide&&t.slide.Wn(),i&&typeof i!=Hi){if(Pr(i)&&!t.ld)i="";else if(ye.forceGPU||t.ld)i=Ls+"("+i.translateX+"px, "+i.translateY+"px, 0px) rotate("+i.rotate+"deg) scale("+i.scaleX+", "+i.scaleY+")";else{var s=ji(i.rotate*Zi/180),e=Ki(i.rotate*Zi/180);i="matrix("+i.scaleX*e+", "+i.scaleX*s+", "+-i.scaleY*s+", "+i.scaleY*e+", "+i.translateX+", "+i.translateY+")"}t.node.style[Xs]=i}else t.ld?Ws(t.node.style,i):t.node.style[Xs]=i;t.slide&&t.slide.$n()}},transform3d:{children:["translate3dX","translate3dY","translate3dZ","rotate3dX","rotate3dY","rotate3dZ","scale3dX","scale3dY","scale3dZ"],get:function(t){var i,s,e={translate3dX:0,translate3dY:0,translate3dZ:0,rotate3dX:0,rotate3dY:0,rotate3dZ:0,scale3dX:1,scale3dY:1,scale3dZ:1},n=Rr(t.node);if("matrix3d("==n.substr(0,9)){for(i=0,s=(n=n.substring(9,n.length-1).split(",")).length;i<s;++i)n[i]=parseFloat(n[i]);e.translate3dX=n[12]||0,e.translate3dY=n[13]||0,e.translate3dZ=n[14]||0,e.scale3dX=Gi(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]),e.scale3dY=Gi(n[4]*n[4]+n[5]*n[5]+n[6]*n[6]),e.scale3dZ=Gi(n[8]*n[8]+n[9]*n[9]+n[10]*n[10]);var r=180/Zi;e.rotate3dY=-Qi(gs(n[2],-1,1))*r,zi(n[2])<.99999?(e.rotate3dX=Ji(-n[6],n[10])*r,e.rotate3dZ=Ji(-n[1],n[0])*r):(e.rotate3dX=Ji(n[9],n[5])*r,e.rotate3dZ=0)}return e},set:function(t,i){i="translate3d("+i.translate3dX+"px, "+i.translate3dY+"px, "+i.translate3dZ+"px) scale3d("+i.scale3dX+", "+i.scale3dY+", "+i.scale3dZ+") rotateX("+i.rotate3dX+"deg) rotateY("+i.rotate3dY+"deg) rotateZ("+i.rotate3dZ+"deg)",t.node.style[Xs]=i}},resetTransform:{order:1e3,get:function(i){return t(i.node).css("transform")},set:function(t,i){t.node.style[Xs]=i},add:function(t,i){return i},rawProp:function(t){return["transform",{translateX:0,translateY:0,rotate:0,scaleX:1,scaleY:1}]},tween:Jt.ms},resetTransform3d:{order:1e3,get:function(i){return t(i.node).css("transform")},set:function(t,i){t.node.style[Xs]=i},add:function(t,i){return i},rawProp:function(t){return["transform3d",{translate3dX:0,translate3dY:0,translate3dZ:0,rotate3dX:0,rotate3dY:0,rotate3dZ:0,scale3dX:1,scale3dY:1,scale3dZ:1}]},tween:Jt.ms},position:{base:"transform",children:["translateX","translateY"],tween:Jt.gs},translateX:{base:"transform"},translateY:{base:"transform"},rotate:{base:"transform"},translate3dX:{base:"transform3d"},translate3dY:{base:"transform3d"},translate3dZ:{base:"transform3d"},rotate3dX:{base:"transform3d"},rotate3dY:{base:"transform3d"},rotate3dZ:{base:"transform3d"},scale3dX:{base:"transform3d"},scale3dY:{base:"transform3d"},scale3dZ:{base:"transform3d"},transformOrigin:{children:["transformOriginX","transformOriginY","transformOriginZ"],get:function(i){for(var s={transformOriginX:0,transformOriginY:0,transformOriginZ:0},e=t(i.node).css(Fs),n=0,r=(e=e.substring(0,e.length-1).split(" ")).length;n<r;++n)e[n]=parseFloat(e[n]);return s.transformOriginX=e[0]||0,s.transformOriginY=e[1]||0,s.transformOriginZ=e[2]||0,s},set:function(t,i){t.node.style[Fs]=i.transformOriginX+"px "+i.transformOriginY+"px "+i.transformOriginZ+"px"}},transformOriginX:{base:"transformOrigin"},transformOriginY:{base:"transformOrigin"},transformOriginZ:{base:"transformOrigin"},scaleX:{base:"transform",add:function(t,i){return t*i}},scaleY:{base:"transform",add:function(t,i){return t*i}},opacity:{get:function(i){return t(i.node).css("opacity")},set:function(t,i){t.node.style.opacity=i},add:function(t,i){return t*i}},resetOpacity:{order:1e3,get:function(i){return t(i.node).css("opacity")},set:function(t,i){t.node.style.opacity=i},add:function(t,i){return i},rawProp:function(t){return typeof t==Hi&&(t=parseFloat(t),isNaN(t)&&(t=1)),["opacity",t]},tween:Jt.ms},zIndex:{get:function(i){return t(i.node).css("z-index")},set:function(t,i){t.node.style.zIndex=i}},perspective:{get:function(i){return i.node.parentNode?t(i.node.parentNode).css(Hs):0},set:function(t,i){t.node.parentNode&&(t.node.parentNode.style[Hs]=i+"px")}},perspectiveOrigin:{children:["perspectiveOriginX","perspectiveOriginY"],get:function(i){var s,e={perspectiveOriginX:0,perspectiveOriginY:0};if(i.node.parentNode){for(var n=0,r=(s=(s=t(i.node.parentNode).css(Us)).substring(0,s.length-1).split(" ")).length;n<r;++n)s[n]=parseFloat(s[n]);e.perspectiveOriginX=s[0]||0,e.perspectiveOriginY=s[1]||0}return e},set:function(t,i){var s=t.node.parentNode;s&&(s.style[Us]=i.perspectiveOriginX+"px "+i.perspectiveOriginY+"px")}},perspectiveOriginX:{base:"perspectiveOrigin"},perspectiveOriginY:{base:"perspectiveOrigin"},display:{get:function(i){return t(i.node).css("display")},set:function(i,s){i.to?(i.io=s,s=i.hideProp?i.hideProp():"none",i.io==s&&delete i.io):delete i.io,i.node.style.display=s;var e=i.hideProp?i.hideProp():"none";s==e&&os.activeElement&&(i.node==os.activeElement||t.contains(i.node,os.activeElement))&&os.activeElement.blur(),i.pr&&i.pr(),i.Pa&&i.Pa(),s==e&&i.Or&&i.Or.nf&&i.Or.nf()},add:function(t,i){return i},tween:Jt.ms},resetClip:{order:1e3,get:function(i){return t(i.node).css(Zs)},set:function(t,i){t.node.style[Zs]=i}},clip:{order:1,children:["clipTop","clipRight","clipBottom","clipLeft"],get:function(i){var s,e,n,r,a=t(i.node).css(Zs);if(a.substr(0,Vs.length)===Vs)a=a.substring(Vs.length,a.length-1).split(" "),s=parseFloat(a[0]),1==a.length?e=n=r=s:(e=parseFloat(a[1]),2==a.length?(n=s,r=e):(n=parseFloat(a[2]),r=3==a.length?e:parseFloat(a[3])));else{var h=i.contentBox&&i.contentBox();h||(h={x:0,y:0,width:i.node.offsetWidth,height:i.node.offsetHeight}),s=h.y,e=(r=h.x)+h.width,n=s+h.height,ps.clipPath&&(e=i.node.offsetWidth-e,n=i.node.offsetHeight-n)}return{clipTop:s,clipRight:e,clipBottom:n,clipLeft:r}},set:function(t,i){t.node.style[Zs]=i&&typeof i!==Hi?Vs+i.clipTop+"px "+i.clipRight+"px "+i.clipBottom+"px "+i.clipLeft+"px)":i}},clipTop:{base:"clip"},clipRight:{base:"clip"},clipBottom:{base:"clip"},clipLeft:{base:"clip"},ccNode:{get:function(i){return t(i.textNode).html()||""},set:function(i,s){s=s||"",i.textNode&&(t(i.textNode).html(s),i.Eo=s,i.onResized&&i.onResized(0,0))}},src:{get:function(i){return t(i.node).attr("src")||""},set:function(i,s){t(i.node).attr("src",s||"")}},ceProgress:{get:function(t){return t.va},set:function(t,i){t.va=i,Rn.renderMouseEffect(t.node.getContext("2d"),t.ma,t.ba,t.wa,i/100,t.ga,t._a)}},geProgress:{get:function(t){return t.Lu},set:function(i,s){if(i.Lu=s,i.Fu){var e=i.Fu,n=e.getContext("2d"),r=i.ee.ge.type,a=t(e).attr("width"),h=t(e).attr("height"),o=Math.round(a/2),u=Math.round(h/2),c=Ps(i.ee.ge.color),f=s/100;Rn.renderGestureEffect(n,r,o,u,f,c)}},add:function(t,i){return i}},width:{get:function(i){return t(i.node).css("width")},set:function(t,i){t.node.style.width=i+"px"}},height:{get:function(i){return t(i.node).css("height")},set:function(t,i){t.node.style.height=i+"px"}},left:{get:function(i){return t(i.node).css("left")},set:function(t,i){t.node.style.left=i+"px"}},top:{get:function(i){return t(i.node).css("top")},set:function(t,i){t.node.style.top=i+"px"}},mediaSrc:{get:function(t){if(t.Or)return t.Or.tf()},set:function(t,i){t.Or&&t.Or.loadResource(i)},add:function(t,i){return i},tween:Jt.ms},mediaDuration:{get:function(t){if(t.Or)return t.Or.Jc()},set:function(t,i){t.Or&&t.Or.Sr(i)},add:function(t,i){return i},tween:Jt.ms},mediaState:{get:function(t){return t.Or?t.Or.zs():"stopped"},set:function(t,i){t.Or&&t.Or.zs(i)},add:function(t,i){return i},tween:Jt.ms},mediaSeek:{get:function(t){return t.Or?t.Or.Vu():0},set:function(t,i){t.Or&&t.Or.Vu(i)},add:function(t,i){return i}},text:{get:function(t){return t.html?t.html():""},set:function(t,i){i=i||"",t.html&&t.html(i)},add:function(t,i){return i}},timerState:{get:function(t){return t.Ro||!1},set:function(t,i){i&&!t.Mo&&(t.Mo=!0,(!t.enabled||t.enabled())&&t.startTimer&&t.startTimer())},add:function(t,i){return i},tween:Jt.ms},svgOpacity:{get:function(t){return t.shape&&t.shape.shapeNode?t.shape.shapeNode.style.opacity:-1},set:function(t,i){t.shape&&t.shape.shapeNode&&(t.shape.shapeNode.style.opacity=i)}},authorVideoRatio:{get:function(t){return t.aspectRatio&&t.aspectRatio()},set:function(t,i){t.aspectRatio&&t.aspectRatio(i)},order:-1},backgroundColor:{get:function(i){return t(i.node).css("backgroundColor")},set:function(t,i){t.node.style.backgroundColor=i},add:function(t,i){return i}},textDecoration:{get:function(i){return t(i.node).css("textDecoration")},set:function(t,i){t.node.style.textDecoration=i},add:function(t,i){return i}},listStyleType:{get:function(i){return t(i.node).css("listStyleType")},set:function(t,i){t.node.style.listStyleType=i},add:function(t,i){return i},tween:Jt.ms},gradientMaskImage:{children:["gradientType","gradientDirection","gradColorStops"],get:function(i){var s={gradientType:"linear-gradient",gradientDirection:"to right",gradColorStops:[]},e=t(i.node).css(zs);if("none"==e||""==e)return s;s.gradientType=e.substring(0,e.indexOf("(")-1);for(var n=0,r=(e=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(/,(?![^(]*\))(?![^"']*["'](?:[^"']*["'][^"']*["'])*[^"']*$)/)).length;n<r;++n)if(0!==n)for(var a=e[n].split(" "),h=0,o=a.length;h<o;++h){var u=[];if(0!==h)u.push(a[h]),s.gradColorStops.push(u);else{var c=a[h].substring(a[h].indexOf("(")+1,a[h].lastIndexOf(")")).split(",");u.push(c[0]||0),u.push(c[1]||0),u.push(c[2]||0),u.push(c[3]||0)}}else s.gradientDirection=e[n];return s},set:function(t,i){var s;if(""==i.gradientType||""==i.gradientDirection||0==i.gradColorStops.length)s="";else{s=i.gradientType+"("+i.gradientDirection+", ";for(var e=i.gradColorStops,n=0,r=e.length;n<r;++n)s+="rgba("+e[n][0]+","+e[n][1]+","+e[n][2]+","+e[n][3]+") "+e[n][4]+"%",s+=n!==r-1?", ":"";s+=")"}if(t instanceof ir||!t.shape&&!t.shapeNode||t.shapeNode||t.html==_n)t.node.style[zs]=s;else{var a=t.contentBox(),h=a.width,o=a.height;for(n=0;n<t.node.childNodes.length;++n){var u=t.node.childNodes[n];u.isSameNode(t.textContainer)&&(u=t.textContainer.childNodes[0]),u.style.webkitMaskSize=h+"px "+o+"px",u.style.webkitMaskPosition="50% 50%",u.style[zs]=s}}}},gradientType:{base:"gradientMaskImage",tween:Jt.ms,add:function(t,i){return i}},gradientDirection:{base:"gradientMaskImage",tween:Jt.ms,add:function(t,i){return i}},gradColorStops:{base:"gradientMaskImage",tween:Jt.ws,add:function(t,i){return i}},resetMaskImage:{order:1e3,get:function(i){return t(i.node).css(zs)},set:function(t,i){if("none"!=i)if(t instanceof ir||!t.shape&&!t.shapeNode||t.shapeNode||t.html==_n)t.node.style[zs]=i;else{t.textContainer&&(t.textContainer.childNodes[0].style[zs]=i);for(var s=0;s<t.node.childNodes.length;++s){t.node.childNodes[s].style[zs]=i}t.node.style[zs]=i}},add:function(t,i){return i},tween:Jt.ms},clipPath:{get:function(i){var s=t(i.node).css(Zs);return"none"==s?"":s},set:function(t,i){var s=t instanceof ir,e=s?0:-t.rotateToSlide(),n=s?ns({x:0,y:0},t.offsetSize()):t.contentBox();t.node.style[Zs]=$s(i,n.x,n.y,n.width,n.height,e)},tween:Jt._s,add:function(t,i){return i}},resetClipPath:{order:1e3,get:function(i){return t(i.node).css("clip-path")},set:function(t,i){"none"!=i&&(t.node.style[Zs]=i)},add:function(t,i){return i},tween:Jt.ms},filter:{children:["contrast","brightness","hueRotate","dropShadow"],get:function(t){var i={contrast:100,brightness:100,hueRotate:0,dropShadow:"0px 0px 0px rgba(0,0,0,0)"},s=t.node.style[Gs],e=s.indexOf("contrast(");-1!==e&&(e+="contrast(".length,i.contrast=s.substring(e,s.indexOf(")",e)));var n=s.indexOf("brightness(");-1!==n&&(n+="brightness(".length,i.brightness=s.substring(n,s.indexOf(")",n)));var r=s.indexOf("hue-rotate(");-1!==r&&(r+="hue-rotate(".length,i.hueRotate=s.substring(r,s.indexOf(")",r)));var a=s.indexOf("drop-shadow(");return-1!==a&&(a+="drop-shadow(".length,i.dropShadow=s.substring(a,s.lastIndexOf(")"))),i},set:function(t,i){var s="";bs(i.contrast,100)||(s+="contrast("+i.contrast+"%)"),bs(i.brightness,100)||(s&&(s+=" "),s+="brightness("+i.brightness+"%)"),0!==i.hueRotate&&(""!==s&&(s+=" "),s+="hue-rotate("+i.hueRotate+"deg)"),"0px 0px 0px rgba(0,0,0,0)"!==i.dropShadow&&(""!==s&&(s+=" "),s+="drop-shadow("+i.dropShadow+")"),t.node.style[Gs]=s}},contrast:{base:"filter",add:function(t,i){return t*i/100}},brightness:{base:"filter",add:function(t,i){return t*i/100}},hueRotate:{base:"filter"},dropShadow:{base:"filter",add:function(t,i){return i}},gradientOverlay:{children:["gradOverlayType","gradOverlayDirection","gradOverlayColorStops"],get:function(i){var s={gradOverlayType:"linear-gradient",gradOverlayDirection:"to right",gradOverlayColorStops:[]},e=os.getElementById("gradientOverlay"+i.node.id);if(!e)return s;var n=t(e).css("background-image");s.gradOverlayType=n.substring(0,n.indexOf("(")-1);for(var r=0,a=(n=n.substring(n.indexOf("(")+1,n.lastIndexOf(")")).split(/,(?![^(]*\))(?![^"']*["'](?:[^"']*["'][^"']*["'])*[^"']*$)/)).length;r<a;++r)if(0!==r)for(var h=n[r].split(" "),o=0,u=h.length;o<u;++o){var c=[];if(0!==o)c.push(h[o]),s.gradOverlayColorStops.push(c);else{var f=h[o].substring(h[o].indexOf("(")+1,h[o].lastIndexOf(")")).split(",");c.push(f[0]||0),c.push(f[1]||0),c.push(f[2]||0),c.push(f[3]||0)}}else s.gradOverlayDirection=n[r];return s},set:function(t,i){var s=os.getElementById("gradientOverlay"+t.node.id);if(null===s){(s=os.createElement("div")).id="gradientOverlay"+t.node.id;var e=s.style,n=t.node.style;e.position="absolute",e.left=n.left,e.top=n.top,e.width=n.width,e.height=n.height,e.zIndex=Qt.es,ye.browser.safari&&(e[Xs]="translate3d(0px, 0px,"+t.node.offsetWidth/2+"px)"),t.node.parentNode&&t.node.parentNode.appendChild(s)}for(var r=i.gradOverlayType+"("+i.gradOverlayDirection+", ",a=i.gradOverlayColorStops,h=0,o=a.length;h<o;++h)r+="rgba("+a[h][0]+","+a[h][1]+","+a[h][2]+","+a[h][3]+") "+a[h][4]+"%",r+=h!==o-1?", ":"";s.style.backgroundImage=r+")"}},gradOverlayType:{base:"gradientOverlay",tween:Jt.ms,add:function(t,i){return i}},gradOverlayDirection:{base:"gradientOverlay",tween:Jt.ms,add:function(t,i){return i}},gradOverlayColorStops:{base:"gradientOverlay",tween:Jt.ws,add:function(t,i){return i}},resetGradOverlay:{order:1e3,get:function(i){var s=os.getElementById("gradientOverlay"+i.node.id);return s?t(s).css("background-image"):""},set:function(t,i){var s=os.getElementById("gradientOverlay"+t.node.id);s&&t.node.parentNode&&t.node.parentNode.removeChild(s)},add:function(t,i){return i},tween:Jt.ms},cropNodes:{children:["cropNodesCount","polygonsCropNodes","transOrgXCropNodes","transOrgYCropNodes","transOrgZCropNodes","xCropNodes","yCropNodes","zCropNodes","rotateXCropNodes","rotateYCropNodes","rotateZCropNodes","opacityCropNodes"],get:function(t){return{cropNodesCount:0,polygonsCropNodes:[],transOrgXCropNodes:[],transOrgYCropNodes:[],transOrgZCropNodes:[],xCropNodes:[],yCropNodes:[],zCropNodes:[],rotateXCropNodes:[],rotateYCropNodes:[],rotateZCropNodes:[],opacityCropNodes:[]}},set:function(t,i){for(var s=0;s<i.cropNodesCount;++s){var e=t.node.id+"_cropNode_"+s,n=os.getElementById(e);if(null==n){(n=t.node.cloneNode(!0)).id=e,n.name="cropNode";for(var r=t.node.getElementsByTagName("canvas"),a=n.getElementsByTagName("canvas"),h=0;h<r.length;++h){var o=r[h],u=a[h];u.width=o.width,u.height=o.height,u.getContext("2d").drawImage(o,0,0)}t.node.parentNode&&t.node.parentNode.appendChild(n)}for(var c=i.polygonsCropNodes[s],f="polygon(",l=(h=0,c.length);h<l;++h)f+=c[h][0]+"% "+c[h][1]+(h!==l-1?"%, ":"%");f+=")",n.style[Zs]=f,n.style[Fs]=(i.transOrgXCropNodes[s]||0)+"px "+(i.transOrgYCropNodes[s]||0)+"px "+(i.transOrgZCropNodes[s]||0)+"px";var d="translate3d("+(i.xCropNodes[s]||0)+"px, "+(i.yCropNodes[s]||0)+"px, "+(i.zCropNodes[s]||0)+"px) rotateX("+(i.rotateXCropNodes[s]||0)+"deg) rotateY("+(i.rotateYCropNodes[s]||0)+"deg) rotateZ("+(i.rotateZCropNodes[s]||0)+"deg)";n.style[Xs]=d,n.style.opacity=void 0!==i.opacityCropNodes[s]?i.opacityCropNodes[s]:1}}},cropNodesCount:{base:"cropNodes",tween:Jt.ms},polygonsCropNodes:{base:"cropNodes",tween:Jt.ms},transOrgXCropNodes:{base:"cropNodes",tween:Jt.ys},transOrgYCropNodes:{base:"cropNodes",tween:Jt.ys},transOrgZCropNodes:{base:"cropNodes",tween:Jt.ys},xCropNodes:{base:"cropNodes",tween:Jt.ys},yCropNodes:{base:"cropNodes",tween:Jt.ys},zCropNodes:{base:"cropNodes",tween:Jt.ys},rotateXCropNodes:{base:"cropNodes",tween:Jt.ys},rotateYCropNodes:{base:"cropNodes",tween:Jt.ys},rotateZCropNodes:{base:"cropNodes",tween:Jt.ys},opacityCropNodes:{base:"cropNodes",tween:Jt.ys},resetCropNodes:{order:1e3,get:function(t){return 0},set:function(t,i){for(var s=i,e=0;e<s;++e){var n=t.node.id+"_cropNode_"+e,r=os.getElementById(n);null!==r&&t.node.parentNode&&t.node.parentNode.removeChild(r)}},tween:Jt.ms},flip:{get:function(t){return[!1,!1]},set:function(t,i){Array.isArray(i)&&t.flip&&t.flip(i[0],i[1])}},visibility:{get:function(t){return t.node.style.visibility},set:function(t,i){t.node.style.visibility=i},add:function(t,i){return i},tween:Jt.ms}},Nr=js({$init:function(t){this.ru=t,this.ap={}},apply:function(t){this.toTarget(t,this.get(t))},toTarget:function(t,i){var s,e,n,r=Mr[t];if(r)if(r.set)r.set(this.ru,i);else if(r.base&&(s=Mr[r.base])&&s.set){if(e=this.get(r.base))if(e.hasOwnProperty(t))e[t]=i;else if(i)for(n in i)e[n]=i[n];else e=i;else e=i;s.set(this.ru,e)}},fromTarget:function(t){var i,s,e,n,r,a,h=Mr[t];if(h)if(h.get)s=h.get(this.ru);else if(h.base&&(i=Mr[h.base])&&i.get&&(s=i.get(this.ru)))if(h.children&&(a=h.children.length)){for(e={},r=0;r<a;++r)e[n=h.children[r]]=s[n];s=e}else void 0!==s[t]&&(s=s[t]);return s},get:function(t){var i,s,e,n,r=Mr[t];if(r&&r.children&&(n=r.children.length))for(i={},e=0;e<n;++e)i[s=r.children[e]]=this.ap[s];else i=this.ap[t];return i},set:function(t,i){var s,e,n,r=Mr[t];if(r&&r.children&&(n=r.children.length))for(e=0;e<n;++e)s=r.children[e],this.ap[s]=i?i[s]:i;else this.ap[t]=i;if(r&&r.rawProp){var a=r.rawProp(i);this.set(a[0],a[1])}},add:function(t,i){var s,e,n,r,a,h,o=Mr[t];if(o&&o.children&&(h=o.children.length))for(o.rawProp&&(s={}),a=0;a<h;++a)r=o.children[a],e=(n=Mr[r])&&n.add?n.add(this.ap[r],i?i[r]:i):(this.ap[r]||0)+(i?i[r]:i),this.ap[r]=e,o.rawProp&&(s[r]=e);else s=o&&o.add?o.add(this.ap[t],i):(this.ap[t]||0)+i,this.ap[t]=s;if(o&&o.rawProp){var u=o.rawProp(s);this.set(u[0],u[1])}}}),Ar=js({$init:function(t){this.options=t=ns({speed:1,repeat:1,alternated:!1,paused:!1,startTime:0},t),this.Mr=t.speed||1e-9,this.hp=t.repeat||1,this.op=1,this.up=t.alternated,this.zr=t.startTime,this.fp=void 0,this.dp=void 0,this.pp=void 0,this.Vr=0,this.tn=t.paused,this.vp=null,this.mp=null},started:function(t){return arguments.length?(!1===t&&(this.pp=void 0),this):void 0!==this.pp},speed:function(t){return arguments.length?(this.Mr=t||1e-9,this.tn||this.startTime((this.vp?this.vp.Vr:dr.now())-this.Vr/this.Mr),this):this.Mr},repeat:function(t){return arguments.length?(this.hp=t||1,Dr(this,!0),this):this.hp},alternated:function(t){return arguments.length?(this.up=t,this):this.up},startTime:function(t){if(!arguments.length)return this.zr;if(t!==this.zr)if(this.vp){var i=this.vp;i.removeChild(this),this.zr=t,i.addChild(this)}else this.zr=t;return this},endTime:function(t){return this.zr+(t?this.duration():this.totalDuration())/this.Mr},duration:function(t){return arguments.length?(this.fp=t,Dr(this,!0),this):this.fp},totalDuration:function(t){return arguments.length?this.hp>0?this.duration(t/this.hp):this:(void 0===this.dp&&(void 0===this.fp&&this.duration(),-1===this.hp?this.dp=1e11:-2===this.hp?this.dp=this.vp?(this.vp.duration()-this.zr)*this.Mr:this.fp:this.dp=this.hp*this.fp),this.dp)},play:function(t){return void 0!==t&&this.seek(t),this.paused(!1)},pause:function(t){return this.paused(!0),void 0!==t&&this.seek(t),this},paused:function(t){if(!arguments.length)return this.tn;if(t=!!t,this.tn!==t){this.tn=t;for(var i=this;i&&!i.tn;)i.startTime((i.vp?i.vp.Vr:dr.now())-i.Vr/i.Mr),i=i.vp;t||this.update(this.Vr)}return this},gp:function(){for(var t=this;t;){if(t.tn)return!0;t=t.vp}return!1},seek:function(t){return this.totalTime(t)},time:function(t){return arguments.length?(t=gs(t,0,this.duration()),this.up&&this.op%2==0&&(t=this.fp-t),this.totalTime(t+(this.op-1)*this.fp)):this.pp||0},totalTime:function(t){if(!arguments.length)return this.Vr;t<0&&(t=0),this.bp(t),this.update(t,!0);for(var i=this;i&&!i.tn;)i.startTime((i.vp?i.vp.Vr:dr.now())-i.Vr/i.Mr),i=i.vp;return this},bp:function(t){this.pp=void 0},parent:function(t){return arguments.length?(t?t.addChild(this):this.remove(),this):this.vp},timeline:function(){return this.mp},remove:function(){return this.vp&&this.vp.removeChild(this),this},setup:function(){},update:function(t,i){},Gr:function(t){var i=void 0===this.fp?this.duration():this.fp,s=void 0===this.dp?this.totalDuration():this.dp,e=1,n={totalTime:t,uncapTime:t,active:t>-Li&&t<s+Li};return t<Li||0===i?(t>-Li&&t<Li?n.totalTime=n.uncapTime=0:t<0&&(n.totalTime=0),t=0):(t>s-Li&&(t<s+Li&&(t=s,n.totalTime=n.uncapTime=t),t>s&&(t=s)),1!==this.hp&&(0===(e=ss(t/i))&&(e=1),t-=(e-1)*i,this.up&&e%2==0&&(t=i-t),t>i?t=i:t<0&&(t=0),e<this.hp?this.uncapTime=t:(this.uncapTime-=(e-1)*i,this.up&&e%2==0&&(this.uncapTime=i-this.uncapTime)))),n.time=t,n.cycle=e,n},wp:function(t){this.mp=t},_p:function(t,i){return!0},yp:function(t){},hasChildAnimations:function(){return!1}});function Dr(t,i){for(;t;)t.dp=void 0,i?i=!1:t.fp=void 0,t=t.vp}var Yr=js(Ar,{$init:function(t,i){this.isEvent=!0,this.Tp=!1,Ar.prototype.$init.call(this,i),this.fp=this.options.duration||0,this.kp=t},update:function(t,i){t=this.Gr(t),this.op=t.cycle,this.Vr=t.totalTime,this.pp=t.time,this.Tp||(this.Tp=!0,this.kp&&this.kp(this.pp,i))},bp:function(t){Ar.prototype.bp.call(this,t),this.Tp=t>0}}),Xr=js(Ar,{$init:function(t,i,s){if(Ar.prototype.$init.call(this,s),(s=this.options).tweenParams||(s.tweenParams=[]),void 0===s.relative&&(s.relative=mr.Xd),void 0===s.tweenType){var e=Mr[i];e&&(s.tweenType=e.tween)}this.ru=t,t.animProps||(t.animProps=new Nr(t)),this.xp=i,this.fp=s.duration||0,this.Cp=s.additive||!1,this.Sp=s.easing||vr.linear,s.revert&&(this.Op=!0),rs(this.options.tweenParams[0])||(this.Ep=_r.apply(null,[s.tweenType].concat(s.tweenParams)))},setup:function(){if(rs(this.options.tweenParams[0]))this.Ep=_r.apply(null,[this.options.tweenType].concat(this.options.tweenParams[0].apply(this,this.options.tweenParams.slice(1))));else if(this.options.relative!==mr.Xd){var t=this.Ip(this.options.relative==mr.Zd);this.Ep.resolveRelative.apply(this.Ep,[this.options.relative,t].concat(this.options.tweenParams))}},update:function(t,i){t=this.Gr(t);var s=this.pp!=t.time||this.op!=t.cycle,e=this.Sp(this.fp?t.time/this.fp:1);this.Op&&t.totalTime>=this.dp&&(e=0),this.op=t.cycle,this.pp=t.time,this.Vr=t.totalTime,this.Cp?this.ru.animProps.add(this.xp,this.Ep.value(e)):this.ru.animProps.set(this.xp,this.Ep.value(e)),this.mp&&s&&this.mp.Pp(this.xp,this.ru)},wp:function(t){t!==this.mp&&(this.mp&&this.mp.Rp(this.xp,this.ru),this.mp=t,t&&t.Mp(this.xp,this.ru))},_p:function(t,i){return this!==i&&(this.ru===i.ru&&(this.update(t,!0),this.pp=void 0),!0)},Ip:function(t){var i;if(this.mp&&!t){for(var s=0,e=this,n=this.mp,r=ns({},this.ru.animProps.ap);e&&e!==n;)s=e.zr+s/e.Mr,e=e.vp;n._p(s,this),i=this.ru.animProps.get(this.xp),this.ru.animProps.ap=r}else i=this.ru.animProps.fromTarget(this.xp);return i}}),Lr=js(Xr,{yp:function(t){var i=this.ru.Or;i&&((i.Pc||this.mp&&this.mp.gl?i.ue&&i.ue.timeline.tn:this.gp())?i.Ku():i.$u())},update:function(t,i){if((i||!this.started())&&(!this.mp||!this.mp.gl||!this.Np)){this.Np=1;var s=this.ru.Or;s&&s.Wu()}Xr.prototype.update.call(this,t)},setup:function(){delete this.Np,Xr.prototype.setup.call(this)}}),Fr=js(Ar,{$init:function(t){Ar.prototype.$init.call(this,t),this.firstChild=this.lastChild=null},setup:function(){for(var t=this.firstChild;t;)t.setup(),t=t.next},duration:function(t){if(!arguments.length){if(void 0===this.fp){var i,s=this.lastChild;for(t=0;s;)(s.hp>0||-1===s.hp)&&(i=s.zr+s.totalDuration()/s.Mr)>t&&(t=i),s=s.prev;this.fp=t}return this.fp}return t&&(this.fp||this.duration())&&this.speed(this.fp/t),this},totalDuration:function(t){return arguments.length?(this.hp>0&&t&&(this.dp||this.totalDuration())&&this.speed(this.dp/t),this):void 0!==this.dp?this.dp:Ar.prototype.totalDuration.call(this)},update:function(t,i){var s=this.Gr(t);s.cycle>1&&this.Vr<(s.cycle-1)*this.fp&&this.started()&&(this.update((s.cycle-1)*this.fp,i),this.bp(t)),this.op=s.cycle,this.pp=s.time,this.Vr=s.totalTime;for(var e,n=this.gp(),r=s.time,a=this.firstChild;a&&!(a.zr>r)&&(e=a.next,a.tn||(a.update((r-a.zr)*a.Mr,i),!a.firstChild||this.op===s.cycle&&this.pp===r&&this.gp()===n));)a=e},wp:function(t){if(t!==this.mp){for(var i=this.firstChild;i;)i.wp(t),i=i.next;this.mp=t}},addChild:function(t,i){if(t.isEvent&&!this.isTimeline)return ms("Only timeline can add timing event"),this;t.vp&&t.remove();for(var s=this.lastChild;s&&(i?s.zr>=t.zr:s.zr>t.zr);)s=s.prev;return s?(t.next=s.next,t.prev=s,t.next?t.next.prev=t:this.lastChild=t,s.next=t):(t.next=this.firstChild,this.firstChild?this.firstChild.prev=t:this.lastChild=t,this.firstChild=t),t.vp=this,t.wp(this.isTimeline?this:this.mp),void 0!==this.fp&&t.endTime()>this.fp&&(this.fp=t.endTime(),Dr(this,!0)),this},removeChild:function(t){return t.vp===this&&(t.prev?t.prev.next=t.next:this.firstChild=t.next,t.next?t.next.prev=t.prev:this.lastChild=t.prev,t.prev=t.next=null,t.vp=null,t.mp&&t.wp(null),void 0!==this.fp&&t.endTime()>=this.fp&&Dr(this,!1)),this},removeChildIf:function(t){for(var i,s=this.firstChild;s;)i=s.next,t(s)&&this.removeChild(s),s=i;return this},paused:function(t){if(!arguments.length)return Ar.prototype.paused.call(this);Ar.prototype.paused.call(this,t);for(var i=this.firstChild;i;)i.yp(t),i=i.next;return this},_p:function(t,i){if(this===i)return!1;t=this.Gr(t).time;for(var s=this.firstChild;s;){if(s.zr<=t&&!s._p((t-s.zr)*s.Mr,i))return!1;s=s.next}return!0},bp:function(t){Ar.prototype.bp.call(this,t),t=this.Gr(t).uncapTime;for(var i=this.firstChild;i;)i.bp((t-i.zr)*i.Mr),i=i.next},yp:function(t){Ar.prototype.yp.call(this,t);for(var i=this.firstChild;i;)i.yp(t),i=i.next},hasChildAnimations:function(){return!!this.firstChild}});function Hr(t,i){return t.active-i.active||t.order-i.order}var Ur=js(Fr,{isTimeline:!0,$init:function(t){Fr.prototype.$init.call(this,t),this.Ap=[]},setup:function(){var t,i,s,e,n,r,a=this.Ap,h=a.length,o=[];for(r=0;r<h;++r)t=a[r].target,(s=a[r].props).display&&(s.display.value=t.animProps.fromTarget("display"));for(r=0;r<h;++r){var u=Ke(a[r].target);u.length&&o.push(u)}for(r=0;r<h;++r){t=a[r].target,s=a[r].props,e={};for(i in s)Mr[i]&&Mr[i].base?e[Mr[i].base]=1:e[i]=1;delete e.display;for(i in e)if(n=t.animProps.fromTarget(i),s[i])s[i].value=n;else for(i in n)s[i]?s[i].value=n[i]:s[i]={value:n[i],count:0}}for(Fr.prototype.setup.call(this),r=0,h=o.length;r<h;++r)je(o[r])},update:function(t,i){t=this.Gr(t),this.op=t.cycle,this.Vr=t.totalTime;var s,e,n=this.gp();if(i||this.pp!==t.time){this.Dp();var r,a,h,o=this.pp=t.time,u=!1,c=!1,f=!0;if(!n)for(s=this.firstChild;s&&!(s.zr>t.time);){if(e=s.next,s.isEvent&&!s.tn&&!s.Tp)for(this.pp=o=s.zr,this.Vr=t.totalTime+o-t.time,h=0;h<2;++h){for(1===h&&(this.Yp(i),f=!1),r=this.firstChild,c=!0;r&&!(r.zr>o);){if(a=r.next,!r.tn&&(0===h&&!r.isEvent||1===h&&r.isEvent)&&(r.update((o-r.zr)*r.Mr,i),(r.isEvent||r.firstChild)&&(this.op!==t.cycle||this.pp!==o||this.gp()!==n))){u=!0;break}r=a}if(u)break}if(u)break;s=e}if(!(u||this.pp===t.time&&c))for(this.pp=o=t.time,this.Vr=t.totalTime,r=this.firstChild;r&&!(r.zr>o)&&(a=r.next,r.tn||r.isEvent||(r.update((o-r.zr)*r.Mr,i),f=!0,!r.firstChild||this.op===t.cycle&&this.pp===o&&this.gp()===n));)r=a;f&&this.Yp(i)}else if(!n)for(s=this.firstChild;s&&!(s.zr>t.time)&&(e=s.next,!s.isEvent||s.zr!==this.pp||s.tn||s.Tp||(s.update(0,i),this.op===t.cycle&&this.pp===t.time&&this.gp()===n));)s=e},reset:function(){this.pause(0),this.Dp(),this.Yp(!0),this.started(!1)},Dp:function(){var t,i,s,e,n,r=this.Ap;for(e=0,n=r.length;e<n;++e){t=r[e].target,s=r[e].props;for(i in s)s[i].active=!1,(s[i].count||void 0===t.animProps.get(i))&&t.animProps.set(i,s[i].value)}},Yp:function(t){var i,s,e,n,r,a,h,o,u,c,f=this.Ap;for(a=0,h=f.length;a<h;++a){c=f[a].target,r=f[a].props,s={};for(n in r)(t||r[n].active)&&(e={name:n,active:r[n].active?1:0,order:0},Mr[n]&&(Mr[n].base?(e.name=Mr[n].base,e.order=Mr[e.name].order||0):e.order=Mr[n].order||0),s[e.name]?e.active&&(s[e.name].active=1):s[e.name]=e);i=[];for(n in s)i.push(s[n]);for(i.sort(Hr),o=0,u=i.length;o<u;++o)c.animProps.apply(i[o].name)}},_p:function(t,i){var s,e,n,r,a,h=this.Ap;for(r=0,a=h.length;r<a;++r)if((s=h[r].target)===i.ru){n=h[r].props;for(e in n)n[e].active=!1,s.animProps.set(e,n[e].value)}return Fr.prototype._p.call(this,t,i)},wp:function(t){this.mp=t},Mp:function(t,i){var s,e,n,r,a,h=this.Ap;for(r=0,a=h.length;r<a;++r)if(h[r].target===i){s=h[r];break}if(s||(s={target:i,props:{},count:0},h.push(s)),e=s.props,(n=Mr[t])&&n.children&&(a=n.children.length))for(r=0;r<a;++r)e[t=n.children[r]]?++e[t].count:(e[t]={count:1},++s.count);else e[t]?++e[t].count:(e[t]={count:1},++s.count)},Rp:function(t,i){var s,e,n,r,a,h,o=this.Ap;for(a=0,h=o.length;a<h;++a)if(o[a].target===i){s=o[a],r=a;break}if(s){if(e=s.props,(n=Mr[t])&&n.children&&(h=n.children.length))for(a=0;a<h;++a)e[t=n.children[a]]&&(e[t].count>1?--e[t].count:(delete e[t],--s.count));else e[t]&&(e[t].count>1?--e[t].count:(delete e[t],--s.count));s.count<=0&&o.splice(r,1)}},Pp:function(t,i){var s,e,n,r,a,h=this.Ap;for(r=0,a=h.length;r<a;++r)if(h[r].target===i){s=h[r];break}if(s)if(e=s.props,(n=Mr[t])&&n.children&&(a=n.children.length))for(r=0;r<a;++r)e[t=n.children[r]]&&(e[t].active=!0);else e[t]&&(e[t].active=!0)}});ns(ye,{$:t,jQuery:t,Easing:vr,MarkerType:ft,GradientType:{LINEAR:0,RADIAL:1},GradientShape:{CIRCLE:0,ELLIPSE:1},GradientSize:{CLOSE_SIDE:0,FAR_SIDE:1,CLOSE_CORNER:2,FAR_CORNER:3},FillType:_t,DisplayMode:Ti,Object:tn,color:Ps,createClass:js,Locale:xe,SVGShape:ur,ShapePath:er,ClickMaxDistance:1,DoubleClickMaxTime:400,SwipeMinDistance:30,SwipeMaxDeflection:200,SwipeMinVelocity:.3,TransitionMinDuration:500,AutoTransitionDirection:!0,Timeline:Ur,Animation:Xr,MediaAnimation:Lr,AnimationGroup:Fr,TimingEvent:Yr,RelativeTweenType:mr,TweenType:Jt,logDebug:ms,ZIndex:Qt,ControlKind:i,ControlType:s,TextBoxFlags:ct,ResponseResult:Xt,PlayModes:ti,animatedProperties:Mr,DragDrop:We,htmlEscape:_s,htmlToText:ys,Key:le,splitText:function(t,i){var s=[],e={};if((i=i||{words:!0}).chars||i.words){var n,r;if(i.chars&&(e.chars=[]),i.words&&(e.words=[]),e.processStyles={},i.processStyles){var a=i.processStyles.split(",");for(n=0,r=a.length;n<r;++n)e.processStyles[a[n].trim()]=[]}for(function t(i,s,e){if(i){for(var n in e)i.style&&i.style[n]&&e[n].push(i);for(var r=0,a=i.childNodes.length;r<a;++r){var h=i.childNodes[r];3==h.nodeType?s.push(h):t(h,s,e)}}}(t,s,e.processStyles),n=0,r=s.length;n<r;++n)xs(s[n],e,i)}return e},support:ps,forceGPU:!ye.browser.chromiums,shortcuts:{build:fe.combinedCode,clickSequence:{forward:[le.RIGHT,le.DOWN],back:[le.LEFT,le.UP],mouse:!0}}}),window.AtomiAP=ye,dr.start()}(jQuery),function(t){t.EffectType={START:0,NONE:0,ENTRANCE_START:200,APPEAR:200,FADE_IN:201,FLY_IN:202,PEEK_IN:203,FLOAT_IN:204,WIPE_IN:205,ZOOM_IN:206,GROW_TURN_IN:207,SHAPE_IN:208,SWIVEL_IN:209,BOUNCE_IN:210,EXPAND_IN:211,SPINNER_IN:212,STRETCH_IN:213,COMPRESS_IN:214,SPLIT_IN:215,RANDOM_BARS_IN:216,BLINDS_IN:217,WEDGE_IN:218,DISSOLVE_IN:219,WHEEL_IN:220,STRIPS_IN:221,CHECKERBOARD_IN:222,BASIC_FLOAT_IN:223,CREDITS_IN:224,BOOMERANG_IN:225,CENTER_REVOLVE_IN:226,RISE_UP:228,PINWHEEL_IN:229,BASIC_SWIVEL_IN:230,ENTRANCE_END:232,EXIT_START:400,DISAPPEAR:400,FADE_OUT:401,FLY_OUT:402,PEEK_OUT:403,FLOAT_OUT:404,WIPE_OUT:405,ZOOM_OUT:406,SHRINK_TURN_OUT:407,SHAPE_OUT:408,SWIVEL_OUT:409,BOUNCE_OUT:410,CONTRACT_OUT:411,SPINNER_OUT:412,STRETCH_OUT:413,COLLAPSE_OUT:414,SPLIT_OUT:415,RANDOM_BARS_OUT:416,BLINDS_OUT:417,WEDGE_OUT:418,DISSOLVE_OUT:419,WHEEL_OUT:420,STRIPS_OUT:421,CHECKERBOARD_OUT:422,BASIC_FLOAT_OUT:423,CREDITS_OUT:424,BOOMERANG_OUT:425,CENTER_REVOLVE_OUT:426,SINK_DOWN:428,PINWHEEL_OUT:429,BASIC_SWIVEL_OUT:430,EXIT_END:432,EMPHASIS_START:600,PULSE:600,TEETER:601,SPIN:602,GROW_SHRINK:603,TRANSPARENCY:604,COMPLEMENTARY_COLOR:605,COMPLEMENTARY_COLOR2:606,CONTRASTING_COLOR:607,DARKEN_COLOR:608,DESATURATE_COLOR:609,LIGHTEN_COLOR:610,PULSE_COLOR:611,BLINK:612,EMPHASIS_END:613,MOTION_PATH_START:800,MOTION_PATH_END:807,EXTENSION_START:1e3,PAUSE:1e3,TIME_OUT:1001,MEDIA_PLAY:1002,MEDIA_STOP:1003,MEDIA_SEEK:1004,GESTURE_PROGRESS:1005,TIMER_START:1006,EXTENSION_END:1007},t.EffectDirection={BOTTOM:1,LEFT:2,RIGHT:3,TOP:4,BOTTOM_LEFT:5,BOTTOM_RIGHT:6,TOP_LEFT:7,TOP_RIGHT:8,IN:9,OUT:10,ACROSS:11,CLOCKWISE:12,COUNTER_CLOCKWISE:13,HORIZONTAL:14,VERTICAL:15,WEDGE:16,CIRCLE_IN:17,CIRCLE_OUT:18,DIAMOND_IN:19,DIAMOND_OUT:20,PLUS_IN:21,PLUS_OUT:22,VERTICAL_OUT:23,VERTICAL_IN:24,HORIZONTAL_OUT:25,HORIZONTAL_IN:26,CENTER:27,THROUGH_BLACK:32,THROUGH_BLACK_FROM_RIGHT:33,THROUGH_BLACK_FROM_LEFT:34,SMOOTHLY:35,SMOOTHLY_FROM_RIGHT:36,SMOOTHLY_FROM_LEFT:37,ZOOM_ROTATE:38,ROTATE_2_SPOKES:39,ROTATE_3_SPOKES:40,ROTATE_4_SPOKES:41,ROTATE_8_SPOKES:42,LEFT_DOWN:43,LEFT_UP:44,RIGHT_DOWN:45,RIGHT_UP:46,DOWN:47},t.EffectOptionId={EFFECT_OPTION_DIR:0,EFFECT_OPTION_PATH_TYPE:1,EFFECT_OPTION_SIZE:2},t.TextEffectFlags={CHARS:1,WORDS:2};var i,s,e=t.EffectType,n=t.EffectDirection,r=t.EffectOptionId,a=t.Animation,h=t.MediaAnimation,o=t.AnimationGroup,u=t.Timeline,c=t.TimingEvent,f=t.Easing,l=f.outQuad,d=f.inQuad,p=f.doubleInQuad,v=f.linear,m="twostate",g=t.RelativeTweenType,b=1e-4,w=!1;function _(i,s,e,n,r,o,u,c,f,l){var d={startTime:n,duration:r,tweenParams:o,easing:u,additive:void 0===f,relative:c,revert:l};u==m&&(d.easing=v,d.tweenType=t.TweenType.ms),"scale"===e?(i.addChild(new a(s,"scaleX",d)),i.addChild(new a(s,"scaleY",d))):"mediaSeek"===e?i.addChild(new h(s,e,d)):i.addChild(new a(s,e,d))}function y(t,i,s,e){var n,r,a,h,o,u,c=[];for(n=0,r=t.length;n<r;++n){for(h=t[n],o=[],a=0;a<6;a+=2)u=T(h[a],h[a+1],i,s,e),o.push(u.x,u.y);c.push(o)}return c}t.rotatePoint=function(t,i,s,e,n){if(s%360){t-=e=e||0,i-=n=n||0,s=s*Math.PI/180;var r=Math.cos(s),a=Math.sin(s);return{x:r*t-a*i+e,y:a*t+r*i+n}}return{x:t,y:i}};var T=t.rotatePoint;function k(t,i,s){var e,n,r,a=t[this.ru.slide.prez().layoutIndex];if(!a.normed){for(n=0,r=a.length;n<r;++n){e=a[n];for(var h=0;h<6;++h)e[h]=e[h]/1e3}a.normed=!0}var o=this.ru.animProps.fromTarget(this.xp),u=this.ru.score?this.ru:this.ru.parent;if(u&&i){var c=u.transformOrigin(!0);o.translateX-=c.x,o.translateY-=c.y}if(u&&u!=this.ru){var f=-u.rotate()%360;if(f){var l=a["r"+f];if(!l){var d=i?c:{x:0,y:0};l=a["r"+f]=y(a,f,d.x,d.y)}a=l}}return void 0!==s&&((e=a[n=1==s?0:a.length-1]?a[n].slice():[0,0,0,0,0,0])[2]=e[4]=e[0],e[3]=e[5]=e[1],a=[e,e.slice()]),[a,o]}function x(t,i,s,e){var n=(t+s)/2,r=(i+e)/2;return[[t,i,t,i,n,r],[s,e,n,r,s,e]]}function C(t,i){var s=this.Ip(),e=this.ru.animProps.fromTarget(this.xp),r=this.ru.transformedContentBox(!0),a=this.ru.slide,h=0,o=0;switch(r.x+=s.translateX-e.translateX,r.y+=s.translateY-e.translateY,t){case n.LEFT:h=-r.x-r.width;break;case n.TOP:o=-r.y-r.height;break;case n.RIGHT:h=a.offsetSize().width-r.x;break;case n.BOTTOM:o=a.offsetSize().height-r.y;break;case n.TOP_LEFT:h=-r.x-r.width,o=-r.y-r.height;break;case n.TOP_RIGHT:h=a.offsetSize().width-r.x,o=-r.y-r.height;break;case n.BOTTOM_RIGHT:h=a.offsetSize().width-r.x,o=a.offsetSize().height-r.y;break;case n.BOTTOM_LEFT:h=-r.x-r.width,o=a.offsetSize().height-r.y}var u=this.ru.parent&&this.ru.parent.rotateToSlide()||0,c=T(h,o,-u);return h=c.x,o=c.y,[i?x(0,0,h,o):x(h,o,0,0)]}function S(t,i){var s=this.ru.parent&&this.ru.parent.rotateToSlide()||0,e=T(0,t==n.TOP?-100:100,-s);return[i?x(0,0,e.x,e.y):x(e.x,e.y,0,0)]}function O(t,i){var s=this.ru.transformedContentBox(!0),e=this.ru.parent&&this.ru.parent.rotateToSlide()||0,r=0,a=0;switch(t){case n.LEFT:r=-s.width;break;case n.TOP:a=-s.height;break;case n.RIGHT:r=s.width;break;case n.BOTTOM:a=s.height;break;case n.TOP_LEFT:r=-s.width,a=-s.height;break;case n.TOP_RIGHT:r=s.width,a=-s.height;break;case n.BOTTOM_RIGHT:r=s.width,a=s.height;break;case n.BOTTOM_LEFT:r=-s.width,a=s.height}var h=T(r,a,-e);return r=h.x,a=h.y,[i?x(0,0,r,a):x(r,a,0,0)]}function E(t,i){var s,e,r=this.ru,a=r.contentBox(),h=a.width,o=a.height;return s=50*((a=r.transformedContentBox(!0)).width/h-1),e=50*(a.height/o-1),t==n.BOTTOM?i?[[[-s,-100-e],[100+s,-100-e],[100+s,-e],[-s,-e]],[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]]]:[[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]],[[-s,-100-e],[100+s,-100-e],[100+s,-e],[-s,-e]]]:t==n.BOTTOM_LEFT?i?[[[100+s,-100-e],[200+s,-100-e],[200+s,-e],[100+s,-e]],[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]]]:[[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]],[[100+s,-100],[200+s,-100-e],[200+s,-e],[100+s,-e]]]:t==n.LEFT?i?[[[100+s,-e],[200+s,-e],[200+s,100+e],[100+s,100+e]],[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]]]:[[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]],[[100+s,-e],[200+s,-e],[200+s,100+e],[100+s,100+e]]]:t==n.TOP_LEFT?i?[[[100+s,100+e],[200+s,100+e],[200+s,200+e],[100+s,200+e]],[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]]]:[[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]],[[100+s,100+e],[200+s,100+e],[200+s,200+e],[100+s,200+e]]]:t==n.TOP?i?[[[-s,100+e],[100+s,100+e],[100+s,200+e],[0,200+e]],[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]]]:[[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]],[[-s,100+e],[100+s,100+e],[100+s,200+e],[-s,200+e]]]:t==n.TOP_RIGHT?i?[[[-100-s,100+e],[-s,100+e],[-s,200+e],[-100-s,200+e]],[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]]]:[[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]],[[-100-s,100+e],[-s,100+e],[-s,200+e],[-100-s,200+e]]]:t==n.RIGHT?i?[[[-100,-e],[-s,-e],[-s,100+e],[-100-s,100+e]],[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]]]:[[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]],[[-100-s,-e],[-s,-e],[-s,100+e],[-100-s,100+e]]]:t==n.BOTTOM_RIGHT?i?[[[-100-s,-100-e],[-s,-100-e],[-s,-e],[-100-s,-e]],[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]]]:[[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]],[[-100-s,-100-e],[-s,-100-e],[-s,-e],[-100-s,-e]]]:[]}function I(t,i){var s=this.ru.rotateToSlide();return t==n.BOTTOM?i?[-s+"deg"]:[180-s+"deg"]:t==n.BOTTOM_LEFT?i?[45-s+"deg"]:[225-s+"deg"]:t==n.BOTTOM_RIGHT?i?[-s-45+"deg"]:[135-s+"deg"]:t==n.TOP?i?[180-s+"deg"]:[-s+"deg"]:t==n.TOP_RIGHT?i?[225-s+"deg"]:[45-s+"deg"]:t==n.TOP_LEFT?i?[135-s+"deg"]:[-s-45+"deg"]:t==n.LEFT?i?[90-s+"deg"]:[-s-90+"deg"]:t==n.RIGHT?i?[-s-90+"deg"]:[90-s+"deg"]:[]}function P(t,i){var s,e,r=this.ru,a=r.contentBox(),h=a.width,o=a.height;return s=50*((a=r.transformedContentBox(!0)).width/h-1),e=50*(a.height/o-1),t==n.IN?i?[[[-s,-e],[-s,100+e],[-s,100+e],[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e],[-s,100+e],[100+s,100+e],[100+s,-e]],[[-s,-e],[-s,100+e],[50,100+e],[50,50],[50,50],[50,50],[50,50],[50,100+e],[100+s,100+e],[100+s,-e]]]:[[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]],[[50,50],[50,50],[50,50],[50,50]]]:t==n.OUT?i?[[[50,50],[50,50],[50,50],[50,50]],[[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e]]]:[[[-s,-e],[-s,100+e],[50,100+e],[50,50],[50,50],[50,50],[50,50],[50,100+e],[100+s,100+e],[100+s,-e]],[[-s,-e],[-s,100+e],[-s,100+e],[-s,-e],[100+s,-e],[100+s,100+e],[-s,100+e],[-s,100+e],[100+s,100+e],[100+s,-e]]]:t==n.DIAMOND_IN?i?[[[-1-s,-1-e],[-1-s,101+e],[-50-s,50],[50,-50-e],[150+s,50],[50,150+e],[-50-s,50],[-1-s,101+e],[101+s,101+e],[101+s,-1-e]],[[-s,-e],[-s,100+e],[50,50],[50,50],[50,50],[50,50],[50,50],[-s,100+e],[100+s,100+e],[100+s,-e]]]:[[[-50-s,50],[50,150+e],[150+s,50],[50,-50-e]],[[50,50],[50,50],[50,50],[50,50]]]:t==n.DIAMOND_OUT?i?[[[50,50],[50,50],[50,50],[50,50]],[[-50-s,50],[50,150+e],[150+s,50],[50,-50-e]]]:[[[-s,-e],[-s,100+e],[50,50],[50,50],[50,50],[50,50],[50,50],[-s,100+e],[100+s,100+e],[100+s,-e]],[[-1-s,-1-e],[-1-s,101+e],[-50-s,50],[50,-50-e],[150+s,50],[50,150+e],[-50-s,50],[-1-s,101+e],[101+s,101+e],[101+s,-1-e]]]:t==n.PLUS_IN?i?[[[[-s,-e],[-s,-e],[-s,-e],[-s,-e]],[[100+s,-e],[100+s,-e],[100+s,-e],[100+s,-e]],[[100+s,100+e],[100+s,100+e],[100+s,100+e],[100+s,100+e]],[[-s,100+e],[-s,100+e],[-s,100+e],[-s,100+e]]],[[[-s,-e],[50,-e],[50,50],[-s,50]],[[100+s,-e],[50,-e],[50,50],[100+s,50]],[[100+s,100+e],[50,100+e],[50,50],[100+s,50]],[[-s,100+e],[50,100+e],[50,50],[-s,50]]],!0]:[[[-s,-e],[-s,100+e],[-s,100+e],[-s,100+e],[100+s,100+e],[100+s,100+e],[100+s,100+e],[100+s,-e],[100+s,-e],[100+s,-e],[-s,-e],[-s,-e]],[[-s,50],[-s,50],[50,50],[50,100+e],[50,100+e],[50,50],[100+s,50],[100+s,50],[50,50],[50,-e],[50,-e],[50,50]]]:t==n.PLUS_OUT?i?[[[-s,50],[-s,50],[50,50],[50,100+e],[50,100+e],[50,50],[100+s,50],[100+s,50],[50,50],[50,-e],[50,-e],[50,50]],[[-s,-e],[-s,100+e],[-s,100+e],[-s,100+e],[100,100+e],[100+s,100+e],[100+s,100+e],[100+s,-e],[100+s,-e],[100+s,-e],[-s,-e],[-s,-e]]]:[[[[-s,-e],[50,-e],[50,50],[-s,50]],[[100+s,-e],[50,-e],[50,50],[100+s,50]],[[100+s,100+e],[50,100+e],[50,50],[100+s,50]],[[-s,100+e],[50,100+e],[50,50],[-s,50]]],[[[-s,-e],[-s,-e],[-s,-e],[-s,-e]],[[100+s,-e],[100+s,-e],[100+s,-e],[100+s,-e]],[[100+s,100+e],[100+s,100+e],[100+s,100+e],[100+s,100+e]],[[-s,100+e],[-s,100+e],[-s,100+e],[-s,100+e]]],!0]:[]}function R(t){var i,s=this.ru.rotateToSlide();return t==n.VERTICAL_IN||t==n.HORIZONTAL_IN?i=t==n.VERTICAL_IN?90-s+"deg":180-s+"deg":t!=n.VERTICAL_OUT&&t!=n.HORIZONTAL_OUT||(i=t==n.VERTICAL_OUT?90-s+"deg":180-s+"deg"),[i]}function M(t){var i=this.ru.rotateToSlide();return[t==n.VERTICAL?90-i+"deg":180-i+"deg"]}function N(t,i){var s,e,r,a,h=this.ru,o=h.contentBox(),u=o.width,c=o.height;s=(o=h.transformedContentBox(!0)).width,e=o.height;var f=(100+(r=100*(s/u-1)))/7,l=(100+(a=100*(e/c-1)))/5,d=[],p=[];if(t==n.HORIZONTAL)for(var v=0;v<5;++v){var m=[b=[-r/2,-a/2+v*l],w=[100+r/2,-a/2+v*l],[100+r/2,-a/2+v*l],[-r/2,-a/2+v*l]],g=[b,w,[100+r/2,-a/2+(v+1)*l],[-r/2,-a/2+(v+1)*l]];d.push(m),p.push(g)}else for(v=0;v<7;++v){var b,w;m=[b=[-r/2+v*f,-a/2],w=[-r/2+v*f,100+a/2],w,b],g=[b,w,[-r/2+(v+1)*f,100+a/2],[-r/2+(v+1)*f,-a/2]];d.push(m),p.push(g)}return i?[d,p,!0]:[p,d,!0]}function A(t,i){var s,e,n=this.ru,r=n.contentBox(),a=r.width,h=r.height;return s=50*((r=n.transformedContentBox(!0)).width/a-1),e=50*(r.height/h-1),0==t?i?[[[50,-e],[50,50],[50,-e]],[[-s,-e],[50,50],[100+s,-e]]]:[[[50,50],[50,-e],[-s,-e],[-s,100+e],[100+s,100+e],[100+s,-e],[50,-e]],[[50,50],[-s,-e],[-s,-e],[-s,100+e],[100+s,100+e],[100+s,-e],[100+s,-e]]]:1==t?i?[[[-s,-e],[-s,-e],[50,50],[100+s,-e],[100+s,-e]],[[-s,-e],[-s,100+e],[50,50],[100+s,100+e],[100+s,-e]]]:[[[50,50],[-s,-e],[-s,100+e],[100+s,100+e],[100+s,-e]],[[50,50],[-s,100+e],[-s,100+e],[100+s,100+e],[100+s,100+e]]]:2==t?i?[[[-s,-e],[-s,100+e],[-s,100+e],[50,50],[100+s,100+e],[100+s,100+e],[100+s,-e]],[[-s,-e],[-s,100+e],[50,100+e],[50,50],[50,100+e],[100+s,100+e],[100+s,-e]]]:[[[50,50],[-s,100+e],[100+s,100+e]],[[50,50],[50,100+e],[50,100+e]]]:[]}function D(t){var i,s,e=this.ru,n=e.contentBox(),r=n.width,a=n.height;if(i=100*((n=e.transformedContentBox(!0)).width/r-1),s=100*(n.height/a-1),!this.ru.dissolvePolygons){this.ru.dissolvePolygons=[];for(var h=(100+i)/50,o=(100+s)/50,u=0;u<50;++u)for(var c=0;c<50;++c){var f=[[u*h-i/2,c*o-s/2],[(u+1)*h-i/2+1,c*o-s/2],[(u+1)*h-i/2+1,(c+1)*o-s/2+1],[u*h-i/2,(c+1)*o-s/2+1]];this.ru.dissolvePolygons.push(f)}}for(var l=[],d=0;d<t.length;++d)l.push(this.ru.dissolvePolygons[t[d]]);return[l]}function Y(t,i,s){var e,r,a,h,o=this.ru,u=o.contentBox(),c=u.width,f=u.height;e=(u=o.transformedContentBox(!0)).width,r=u.height;var l=100+(a=50*(e/c-1)),d=100+(h=50*(r/f-1));if(t==n.CLOCKWISE){if(0==i)return s?[[[50,-h],[50,50],[50,-h]],[[50,-h],[50,50],[100+a,-h]]]:[[[50,-h],[50,50],[50,-h],[100+a,-h],[100+a,100+h],[-a,100+h],[-a,-h]],[[50,-h],[50,50],[100+a,-h],[100+a,-h],[100+a,100+h],[-a,100+h],[-a,-h]]];if(1==i)return s?[[[50,-h],[50,50],[100+a,-h],[100+a,-h]],[[50,-h],[50,50],[100+a,100+h],[100+a,-h]]]:[[[50,-h],[50,50],[100+a,-h],[100+a,100+h],[-a,100+h],[-a,-h]],[[50,-h],[50,50],[100+a,100+h],[100+a,100+h],[-a,100+h],[-a,-h]]];if(2==i)return s?[[[50,-h],[50,50],[100+a,100+h],[100+a,100+h],[100+a,-h]],[[50,-h],[50,50],[-a,100+h],[100+a,100+h],[100+a,-h]]]:[[[50,-h],[50,50],[100+a,100+h],[-a,100+h],[-a,-h]],[[50,-h],[50,50],[-a,100+h],[-a,100+h],[-a,-h]]];if(3==i)return s?[[[50,-h],[50,50],[-a,100+h],[-a,100+h],[100+a,100+h],[100+a,-h]],[[50,-h],[50,50],[-a,-h],[-a,100+h],[100+a,100+h],[100+a,-h]]]:[[[50,-h],[50,50],[-a,100+h],[-a,-h]],[[50,-h],[50,50],[-a,-h],[-a,-h]]];if(4==i)return s?[[[50,-h],[50,50],[-a,-h],[-a,-h],[-a,100+h],[100+a,100+h],[100+a,-h]],[[50,-h],[50,50],[50,-h],[-a,-h],[-a,100+h],[100+a,100+h],[100+a,-h]]]:[[[50,-h],[50,50],[-a,-h]],[[50,-h],[50,50],[50,-h]]]}else if(t==n.ROTATE_2_SPOKES){s?(B=[[50,50],[50,-h],[50,-h]],V=[[50,50],[50,-h],[l,-h]],Z=[[50,50],[50,d],[50,d]],W=[[50,50],[50,d],[-a,d]],j=[[50,50],[50,-h],[l,-h],[l,-h]],tt=[[50,50],[50,-h],[l,-h],[l,d]],Q=[[50,50],[50,d],[-a,d],[-a,d]],it=[[50,50],[50,d],[-a,d],[-a,-h]],_=[[50,50],[50,-h],[l,-h],[l,d],[l,d]],k=[[50,50],[50,-h],[l,-h],[l,d],[50,d]],y=[[50,50],[50,d],[-a,d],[-a,-h],[-a,-h]],x=[[50,50],[50,d],[-a,d],[-a,-h],[50,-h]]):(B=[[50,50],[50,-h],[l,-h],[l,d],[50,d]],V=[[50,50],[l,-h],[l,-h],[l,d],[50,d]],Z=[[50,50],[50,d],[-a,d],[-a,-h],[50,-h]],W=[[50,50],[-a,d],[-a,d],[-a,-h],[50,-h]],j=[[50,50],[l,-h],[l,d],[50,d]],tt=[[50,50],[l,d],[l,d],[50,d]],Q=[[50,50],[-a,d],[-a,-h],[50,-h]],it=[[50,50],[-a,-h],[-a,-h],[50,-h]],_=[[50,50],[l,d],[50,d]],k=[[50,50],[50,d],[50,d]],y=[[50,50],[-a,-h],[50,-h]],x=[[50,50],[50,-h],[50,-h]]);var p=[B,Z],v=[V,W],m=[j,Q],g=[tt,it],b=[_,y],w=[k,x];if(0==i)return[p,v,!0];if(1==i)return[m,g,!0];if(2==i)return[b,w,!0]}else if(t==n.ROTATE_3_SPOKES){var _,y,T,k,x,C,S,O,E,I,P,R,M,N,A,D,Y,X;s?(B=[[50,50],[50,-h],[50,-h]],V=[[50,50],[50,-h],[3*l/4,-h]],Z=[[50,50],[l,3*d/4],[l,3*d/4]],W=[[50,50],[l,3*d/4],[l,d]],z=[[50,50],[-a,3*d/4],[-a,3*d/4]],$=[[50,50],[-a,3*d/4],[-a,50]],j=[[50,50],[50,-h],[3*l/4,-h],[3*l/4,-h]],tt=[[50,50],[50,-h],[3*l/4,-h],[l,-h]],Q=[[50,50],[l,3*d/4],[l,d],[l,d]],it=[[50,50],[l,3*d/4],[l,d],[3*l/4,d]],q=[[50,50],[-a,3*d/4],[-a,50],[-a,50]],st=[[50,50],[-a,3*d/4],[-a,50],[-a,d/4]],_=[[50,50],[50,-h],[3*l/4,-h],[l,-h],[l,-h]],k=[[50,50],[50,-h],[3*l/4,-h],[l,-h],[l,d/4]],y=[[50,50],[l,3*d/4],[l,d],[3*l/4,d],[3*l/4,d]],x=[[50,50],[l,3*d/4],[l,d],[3*l/4,d],[50,d]],T=[[50,50],[-a,3*d/4],[-a,50],[-a,d/4],[-a,d/4]],C=[[50,50],[-a,3*d/4],[-a,50],[-a,d/4],[-a,-h]],S=[[50,50],[50,-h],[3*l/4,-h],[l,-h],[l,d/4],[l,d/4]],I=[[50,50],[50,-h],[3*l/4,-h],[l,-h],[l,d/4],[l,50]],O=[[50,50],[l,3*d/4],[l,d],[3*l/4,d],[50,d],[50,d]],P=[[50,50],[l,3*d/4],[l,d],[3*l/4,d],[50,d],[-a,d]],E=[[50,50],[-a,3*d/4],[-a,50],[-a,d/4],[-a,-h],[-a,-h]],R=[[50,50],[-a,3*d/4],[-a,50],[-a,d/4],[-a,-h],[l/4,-h]],M=[[50,50],[50,-h],[3*l/4,-h],[l,-h],[l,d/4],[l,50],[l,50]],D=[[50,50],[50,-h],[3*l/4,-h],[l,-h],[l,d/4],[l,50],[l,3*d/4]],N=[[50,50],[l,3*d/4],[l,d],[3*l/4,d],[50,d],[-a,d],[-a,d]],Y=[[50,50],[l,3*d/4],[l,d],[3*l/4,d],[50,d],[-a,d],[-a,3*d/4]],A=[[50,50],[-a,3*d/4],[-a,50],[-a,d/4],[-a,-h],[l/4,-h],[l/4,-h]],X=[[50,50],[-a,3*d/4],[-a,50],[-a,d/4],[-a,-h],[l/4,-h],[50,-h]]):(B=[[50,50],[50,-h],[3*l/4,-h],[l,-h],[l,d/4],[l,50],[l,3*d/4]],V=[[50,50],[3*l/4,-h],[3*l/4,-h],[l,-h],[l,d/4],[l,50],[l,3*d/4]],Z=[[50,50],[l,3*d/4],[l,d],[3*l/4,d],[50,d],[-a,d],[-a,3*d/4]],W=[[50,50],[l,d],[l,d],[3*l/4,d],[50,d],[-a,d],[-a,3*d/4]],z=[[50,50],[-a,3*d/4],[-a,50],[-a,d/4],[-a,-h],[l/4,-h],[50,-h]],$=[[50,50],[-a,50],[-a,50],[-a,d/4],[-a,-h],[l/4,-h],[50,-h]],j=[[50,50],[3*l/4,-h],[l,-h],[l,d/4],[l,50],[l,3*d/4]],tt=[[50,50],[l,-h],[l,-h],[l,d/4],[l,50],[l,3*d/4]],Q=[[50,50],[l,d],[3*l/4,d],[50,d],[-a,d],[-a,3*d/4]],it=[[50,50],[3*l/4,d],[3*l/4,d],[50,d],[-a,d],[-a,3*d/4]],q=[[50,50],[-a,50],[-a,d/4],[-a,-h],[l/4,-h],[50,-h]],st=[[50,50],[-a,d/4],[-a,d/4],[-a,-h],[l/4,-h],[50,-h]],_=[[50,50],[l,-h],[l,d/4],[l,50],[l,3*d/4]],k=[[50,50],[l,d/4],[l,d/4],[l,50],[l,3*d/4]],y=[[50,50],[3*l/4,d],[50,d],[-a,d],[-a,3*d/4]],x=[[50,50],[50,d],[50,d],[-a,d],[-a,3*d/4]],T=[[50,50],[-a,d/4],[-a,-h],[l/4,-h],[50,-h]],C=[[50,50],[-a,-h],[-a,-h],[l/4,-h],[50,-h]],S=[[50,50],[l,d/4],[l,50],[l,3*d/4]],I=[[50,50],[l,50],[l,50],[l,3*d/4]],O=[[50,50],[50,d],[-a,d],[-a,3*d/4]],P=[[50,50],[-a,d],[-a,d],[-a,3*d/4]],E=[[50,50],[-a,-h],[l/4,-h],[50,-h]],R=[[50,50],[l/4,-h],[l/4,-h],[50,-h]],M=[[50,50],[l,50],[l,3*d/4]],D=[[50,50],[l,3*d/4],[l,3*d/4]],N=[[50,50],[-a,d],[-a,3*d/4]],Y=[[50,50],[-a,3*d/4],[-a,3*d/4]],A=[[50,50],[l/4,-h],[50,-h]],X=[[50,50],[50,-h],[50,-h]]);p=[B,Z,z],v=[V,W,$],m=[j,Q,q],g=[tt,it,st],b=[_,y,T],w=[k,x,C];var L=[S,O,E],F=[I,P,R],H=[M,N,A],U=[D,Y,X];if(0==i)return[p,v,!0];if(1==i)return[m,g,!0];if(2==i)return[b,w,!0];if(3==i)return[L,F,!0];if(4==i)return[H,U,!0]}else if(t==n.ROTATE_4_SPOKES){var B,Z,z,G,V,W,$,K,j,Q,q,J,tt,it,st,et;s?(B=[[50,50],[50,-h],[50,-h]],V=[[50,50],[50,-h],[l,-h]],Z=[[50,50],[l,50],[l,50]],W=[[50,50],[l,50],[l,d]],z=[[50,50],[50,d],[50,d]],$=[[50,50],[50,d],[-a,d]],G=[[50,50],[-a,50],[-a,50]],K=[[50,50],[-a,50],[-a,-h]],j=[[50,50],[50,-h],[l,-h],[l,-h]],tt=[[50,50],[50,-h],[l,-h],[l,50]],Q=[[50,50],[l,50],[l,d],[l,d]],it=[[50,50],[l,50],[l,d],[50,d]],q=[[50,50],[50,d],[-a,d],[-a,d]],st=[[50,50],[50,d],[-a,d],[-a,50]],J=[[50,50],[-a,50],[-a,-h],[-a,-h]],et=[[50,50],[-a,50],[-a,-h],[50,-h]]):(B=[[50,50],[50,-h],[l,-h],[l,50]],V=[[50,50],[l,-h],[l,-h],[l,50]],Z=[[50,50],[l,50],[l,d],[50,d]],W=[[50,50],[l,d],[l,d],[50,d]],z=[[50,50],[50,d],[-a,d],[-a,50]],$=[[50,50],[-a,d],[-a,d],[-a,50]],G=[[50,50],[-a,50],[-a,-h],[50,-h]],K=[[50,50],[-a,-h],[-a,-h],[50,-h]],j=[[50,50],[l,-h],[l,50]],tt=[[50,50],[l,50],[l,50]],Q=[[50,50],[l,d],[50,d]],it=[[50,50],[50,d],[50,d]],q=[[50,50],[-a,d],[-a,50]],st=[[50,50],[-a,50],[-a,50]],J=[[50,50],[-a,-h],[50,-h]],et=[[50,50],[50,-h],[50,-h]]);p=[B,Z,z,G],v=[V,W,$,K],m=[j,Q,q,J],g=[tt,it,st,et];if(0==i)return[p,v,!0];if(1==i)return[m,g,!0]}else if(t==n.ROTATE_8_SPOKES){var nt,rt,at,ht,ot,ut,ct,ft,lt,dt,pt,vt,mt,gt,bt,wt;return s?(nt=[[50,50],[50,-h],[50,-h]],lt=[[50,50],[50,-h],[l,-h]],rt=[[50,50],[l,-h],[l,-h]],dt=[[50,50],[l,-h],[l,50]],at=[[50,50],[l,50],[l,50]],pt=[[50,50],[l,50],[l,d]],ht=[[50,50],[l,d],[l,d]],vt=[[50,50],[l,d],[50,d]],ot=[[50,50],[50,d],[50,d]],mt=[[50,50],[50,d],[-a,d]],ut=[[50,50],[-a,d],[-a,d]],gt=[[50,50],[-a,d],[-a,50]],ct=[[50,50],[-a,50],[-a,50]],bt=[[50,50],[-a,50],[-a,-h]],ft=[[50,50],[-a,-h],[-a,-h]],wt=[[50,50],[-a,-h],[50,-h]]):(nt=[[50,50],[50,-h],[l,-h]],lt=[[50,50],[l,-h],[l,-h]],rt=[[50,50],[l,-h],[l,50]],dt=[[50,50],[l,50],[l,50]],at=[[50,50],[l,50],[l,d]],pt=[[50,50],[l,d],[l,d]],ht=[[50,50],[l,d],[50,d]],vt=[[50,50],[50,d],[50,d]],ot=[[50,50],[50,d],[-a,d]],mt=[[50,50],[-a,d],[-a,d]],ut=[[50,50],[-a,d],[-a,50]],gt=[[50,50],[-a,50],[-a,50]],ct=[[50,50],[-a,50],[-a,-h]],bt=[[50,50],[-a,-h],[-a,-h]],ft=[[50,50],[-a,-h],[50,-h]],wt=[[50,50],[50,-h],[50,-h]]),[p=[nt,rt,at,ht,ot,ut,ct,ft],v=[lt,dt,pt,vt,mt,gt,bt,wt],!0]}return[]}function X(t,i){var s,e=this.ru.rotateToSlide();return t==n.LEFT_DOWN?s=i?225-e+"deg":45-e+"deg":t==n.RIGHT_DOWN?s=i?135-e+"deg":-e-45+"deg":t==n.LEFT_UP?s=i?-e-45+"deg":135-e+"deg":t==n.RIGHT_UP&&(s=i?45-e+"deg":225-e+"deg"),[s]}function L(t,i){var s,e,r,a,h=this.ru,o=h.contentBox(),u=o.width,c=o.height;s=(o=h.transformedContentBox(!0)).width,e=o.height;var f=(100+(r=100*(s/u-1)))/6,l=(100+(a=100*(e/c-1)))/6;if(startPolygons=[],endPolygons=[],t==n.ACROSS)for(var d=0;d<6;++d)for(var p=0;p<7;++p){var v=[g=d%2?[p*f-r/2,d*l-a/2]:[(p-.5)*f-r/2,d*l-a/2],b=g,w=d%2?[p*f-r/2,(d+1)*l-a/2]:[(p-.5)*f-r/2,(d+1)*l-a/2],_=w],m=[g,d%2?[(p+1)*f-r/2,d*l-a/2]:[(p+.5)*f-r/2,d*l-a/2],d%2?[(p+1)*f-r/2,(d+1)*l-a/2]:[(p+.5)*f-r/2,(d+1)*l-a/2],_];startPolygons.push(v),endPolygons.push(m)}else for(d=0;d<7;++d)for(p=0;p<6;++p){var g,b,w,_;v=[g=p%2?[p*f-r/2,d*l-a/2]:[p*f-r/2,(d-.5)*l-a/2],b=p%2?[(p+1)*f-r/2,d*l-a/2]:[(p+1)*f-r/2,(d-.5)*l-a/2],w=b,_=g],m=[g,b,p%2?[(p+1)*f-r/2,(d+1)*l-a/2]:[(p+1)*f-r/2,(d+.5)*l-a/2],p%2?[p*f-r/2,(d+1)*l-a/2]:[p*f-r/2,(d+.5)*l-a/2]];startPolygons.push(v),endPolygons.push(m)}return i?[startPolygons,endPolygons,!0]:[endPolygons,startPolygons,!0]}function F(t,i,s){var e,n,r=this.ru.parent&&-this.ru.parent.rotateToSlide()||0;if(0==i)e=s?T(0,0,r):T(t[0],t[1],r),n=T(t[2],t[3],r);else{if(1!=i)return[null,{translateX:-(e=T(t[0],t[1],r)).x,translateY:-e.y}];e=T(0,0,r),n=s?T(t[0]-t[2],t[1]-t[3],r):T(-t[2],-t[3],r)}return[x(e.x,e.y,n.x,n.y)]}function H(t,i){return F.call(this,[500,-400,-50,70],t,i)}function U(t,i){return F.call(this,[500,-120,0,70],t,i)}function B(t,i){if(0==t){var s=this.ru.transformedContentBox(!0);s.y+=this.Ip().translateY-this.ru.animProps.fromTarget(this.xp).translateY;var e=this.ru.slide.offsetSize().height-s.y,n=-s.y-s.height}var r,a,h;i?0==t?(r=a=n,this.ru.Xp=e-n,this.ru.Lp=-e):1==t?(h=!0,r=0,a=this.ru.Xp,delete this.ru.Xp):(r=a=this.ru.Lp,delete this.ru.Lp):0==t?(h=!0,r=e,a=n,this.ru.Fp=-n):(r=a=this.ru.Fp,delete this.ru.Fp);var o=this.ru.parent&&this.ru.parent.rotateToSlide()||0;return r=T(0,r,-o),h?(a=T(0,a,-o),[x(r.x,r.y,a.x,a.y)]):[null,{translateX:r.x,translateY:r.y}]}function Z(t,i){if(0==t){var s=this.ru.transformedContentBox(!0);s.y+=this.Ip().translateY-this.ru.animProps.fromTarget(this.xp).translateY;var e=this.ru.slide.offsetSize().height-s.y}var n,r;i?(n=0,0==t?(r=-30,this.ru.riseUpSetupOutVal=e):1==t?r=this.ru.riseUpSetupOutVal+30:(n=r=-this.ru.riseUpSetupOutVal,delete this.ru.riseUpSetupOutVal)):0==t?(n=e,r=-30):(n=0,r=30);var a=this.ru.parent&&this.ru.parent.rotateToSlide()||0;return n=T(0,n,-a),i&&t>1?[null,{translateX:n.x,translateY:n.y}]:(r=T(0,r,-a),[x(n.x,n.y,r.x,r.y)])}function z(t,i){var s=197*.5522847498,e=112*.4477152502,n=y([[0,0,0,0,s,0],[197,112,197,e,197,224-e],[0,224,s,224,0,224]],-(this.ru.parent&&this.ru.parent.rotateToSlide()||0));if(i)return 0==t?[n]:[null,{translateX:n[0][0]-n[2][0],translateY:n[0][1]-n[2][1]}];var r=n[2][0],a=n[2][1];if(0==t)return[null,{translateX:r,translateY:a}];n.reverse();for(var h=0;h<n.length;++h){var o,u,c=n[h];for(o=c[2],c[2]=c[4],c[4]=o,o=c[3],c[3]=c[5],c[5]=o,u=0;u<c.length;u+=2)c[u]=c[u]-r,c[u+1]=c[u+1]-a}return[n]}function G(t,i){return t*=i?this.ru.slide.offsetSize().height/100:this.ru.slide.offsetSize().width/100,[this.Ip(),t]}t.createZoomAndPan=function(t,s,e,n){var r=new o({startTime:0});if(_(r,t,"scale",0,0,[1],i,g.Ld,w),_(r,t,"translateX",0,0,[0],i,g.Ld,w),_(r,t,"translateY",0,0,[0],i,g.Ld,w),s&&s.length)for(var a=0;a<s.length;a++){var h=s[a];if(void 0!==h.m&&(h.m&n)==n){var u,c,f=h.scale[e]/100,l=h.pos[e];u=1===l.ux?[G,-l.x*f/1e3]:[-l.x*f],c=1===l.uy?[G,-l.y*f/1e3,!0]:[-l.y*f],_(r,t,"scale",h.startTime,h.duration,[f],i,g.Ld,w),_(r,t,"translateX",h.startTime,h.duration,u,i,g.Ld,w),_(r,t,"translateY",h.startTime,h.duration,c,i,g.Ld,w)}}return r},t.createEffect=function(a,h,u,p,g){u=u||0,p=p||0,g=g||{};var y={r:"repeat",d:"direction",a:"alternated",p:"path",t:"text"};for(var T in y)void 0!==g[T]&&(g[y[T]]=g[T]);if(h===e.PAUSE)return new c(function(){a.Gs&&a.Gs(!0)},{startTime:u});if(h===e.TIME_OUT)return new c(function(){a.ro&&a.ro(p)},{startTime:u});var x,F,G=new o({startTime:u,repeat:g.repeat||1,alternated:!!g.alternated}),V=g.direction,W=[],$=g.text&&g.text[0]&&a.splitText&&a.html&&a.html(),K=p;if($){var j=g.text[1];a.shape&&a.shape.node?W.push(a.shape):K=j;var Q={chars:g.text[0]&t.TextEffectFlags.CHARS,words:g.text[0]&t.TextEffectFlags.WORDS,processStyles:"backgroundColor, textDecoration"},q=a.splitTexts;if((!q||Q.chars&&!q.chars||Q.words&&!q.words)&&(a.splitText(Q),q=a.splitTexts),Q.chars&&q&&q.chars)for(nt=0,x=q.chars.length;nt<x;++nt)W.push(q.chars[nt]);if(Q.words&&q&&q.words)for(nt=0,x=q.words.length;nt<x;++nt)W.push(q.words[nt])}else W.push(a);var J=t.browser.iDevice,tt=[];if(h==e.FADE_IN)tt=[["opacity",0,1,[0,1],l]];else if(h==e.FLY_IN)tt=[["position",0,1,[C,V],l]];else if(h==e.PEEK_IN)tt=[["clipPath",0,1,[E,V,!0],l],["resetClipPath",1,0,[""]],["position",0,1,[O,V,!1],l]];else if(h==e.FLOAT_IN)tt=[["position",0,1,[S,V],l],["opacity",0,1,[0,1],l]];else if(h==e.WIPE_IN&&t.support.maskImage)tt=[["gradientType",0,1,["linear-gradient"]],["gradientDirection",0,1,[I,V,!0]],["gradColorStops",0,.2,[[[0,0,0,1,0],[0,0,0,0,0]],[[0,0,0,1,0],[0,0,0,0,10]]]],["gradColorStops",.2,.8,[[[0,0,0,1,0],[0,0,0,0,10]],[[0,0,0,1,100],[0,0,0,0,110]]]],["resetMaskImage",1,0,[""]]];else if(h==e.ZOOM_IN)tt=[["scale",0,1,[0,1],l],["opacity",0,1,[0,1],l]],J&&tt.push(["svgOpacity",0,1,[.9,1]]);else if(h==e.GROW_TURN_IN)tt=[["rotate",0,1,[90,0],l],["scale",0,1,[0,1],l],["opacity",0,1,[0,1],l]],J&&tt.push(["svgOpacity",0,1,[.9,1]]);else if(h==e.SWIVEL_IN||h==e.BASIC_SWIVEL_IN)tt=[[h==e.SWIVEL_IN||V==n.HORIZONTAL?"scaleX":"scaleY",[0,.2,[0,1],.2,.2,[1,b],.4,.2,[1,-1e4],.6,.2,[1,-b],.8,.2,[1,1e4]],l]],h==e.SWIVEL_IN&&tt.push(["opacity",0,1,[0,1],l]),J&&tt.push(["svgOpacity",0,1,[.9,1]]);else if(h==e.BOUNCE_IN)tt=[["translateX",0,1,[-150,0],v],["translateY",0,1,[-250,0],f.outBounce],["scaleY",[7/22,1/22,[1,.8],8/22,1/22,[1,1.25],15/22,1/22,[1,.9],16/22,1/22,[1,1/.9],19/22,1/22,[1,.95],20/22,1/22,[1,1/.95]],v],["opacity",0,.05,[0,1],v]];else if(h==e.EXPAND_IN)tt=[["scaleX",0,1,[.8,1],l],["opacity",0,1,[0,1],l]];else if(h==e.SPINNER_IN)tt=[["rotate",0,1,[0,-360],l],["opacity",0,1,[100/255,1],l]];else if(h==e.STRETCH_IN)tt=[["scaleX",0,1,[0,1],l]],J&&tt.push(["svgOpacity",0,1,[.9,1]]);else if(h==e.COMPRESS_IN)tt=[["scaleX",0,1,[1.5,1],l],["opacity",0,1,[0,1],l]];else if(h==e.SHAPE_IN)V==n.IN||V==n.OUT||V==n.DIAMOND_IN||V==n.DIAMOND_OUT||V==n.PLUS_OUT?tt=[["clipPath",0,1,[P,V,!0]],["resetClipPath",1,0,[""]]]:V==n.PLUS_IN?tt=[["clipPath",0,1,[P,V,!0]],["resetClipPath",1,0,[""]]]:V==n.CIRCLE_IN&&t.support.maskImage?tt=[["gradientType",0,1,["radial-gradient"]],["gradientDirection",0,1,["circle at center"]],["gradColorStops",0,.8,[[[0,0,0,0,100],[0,0,0,1,120]],[[0,0,0,0,0],[0,0,0,1,20]]]],["gradColorStops",.8,.2,[[[0,0,0,0,0],[0,0,0,1,20]],[[0,0,0,0,0],[0,0,0,1,0]]]],["resetMaskImage",1,0,[""]]]:V==n.CIRCLE_OUT&&t.support.maskImage&&(tt=[["gradientType",0,1,["radial-gradient"]],["gradientDirection",0,1,["circle at center"]],["gradColorStops",0,.2,[[[0,0,0,1,0],[0,0,0,0,0]],[[0,0,0,1,0],[0,0,0,0,20]]]],["gradColorStops",.2,.8,[[[0,0,0,1,0],[0,0,0,0,20]],[[0,0,0,1,100],[0,0,0,0,120]]]],["resetMaskImage",1,0,[""]]]);else if(h==e.SPLIT_IN&&t.support.maskImage){V==n.VERTICAL_IN||V==n.HORIZONTAL_IN?tt=[["gradientType",0,1,["linear-gradient"]],["gradientDirection",0,1,[R,V]],["gradColorStops",0,.8,[it=[[0,0,0,1,-10],[0,0,0,0,0],[0,0,0,0,100],[0,0,0,1,110]],st=[[0,0,0,1,40],[0,0,0,0,50],[0,0,0,0,50],[0,0,0,1,60]]]],["gradColorStops",.8,.2,[ot=[[0,0,0,1,40],[0,0,0,0,50],[0,0,0,0,50],[0,0,0,1,60]],ut=[[0,0,0,1,50],[0,0,0,0,50],[0,0,0,0,50],[0,0,0,1,50]]]],["resetMaskImage",1,0,[""]]]:V!=n.VERTICAL_OUT&&V!=n.HORIZONTAL_OUT||(tt=[["gradientType",0,1,["linear-gradient"]],["gradientDirection",0,1,[R,V,!0]],["gradColorStops",0,.2,[it=[[0,0,0,0,50],[0,0,0,1,50],[0,0,0,1,50],[0,0,0,0,50]],st=[[0,0,0,0,40],[0,0,0,1,50],[0,0,0,1,50],[0,0,0,0,60]]]],["gradColorStops",.2,.8,[ot=[[0,0,0,0,40],[0,0,0,1,50],[0,0,0,1,50],[0,0,0,0,60]],ut=[[0,0,0,0,-10],[0,0,0,1,0],[0,0,0,1,100],[0,0,0,0,110]]]],["resetMaskImage",1,0,[""]]])}else if(h==e.RANDOM_BARS_IN&&t.support.maskImage){for(var it=[],st=[],et=.5,nt=0;nt<200;++nt){var rt=parseInt(5*Math.random()+1),at=[0,0,0,0,nt*et];it.push(at);var ht=nt%rt?[0,0,0,.2,nt*et]:[0,0,0,1,nt*et];st.push(ht)}var ot=[],ut=[];for(nt=0;nt<200;++nt)ot[nt]=st[nt],ut[nt]=[0,0,0,1,nt*et];tt=[["gradientType",0,1,["linear-gradient"]],["gradientDirection",0,1,[M,V]],["gradColorStops",0,.5,[it,st]],["gradColorStops",.5,.5,[ot,ut]],["resetMaskImage",1,0,[""]]]}else if(h==e.BLINDS_IN)tt=[["clipPath",0,1,[N,V,!0]],["resetClipPath",1,0,[""]]];else if(h==e.WEDGE_IN)tt=[["clipPath",[0,1/3,[A,0,!0],1/3,1/3,[A,1,!0],2/3,1/3,[A,2,!0]]],["resetClipPath",1,0,[""]]];else if(h==e.DISSOLVE_IN){var ct=50,ft=1/((Tt=50)+1);tt.push(["clipPath",0,ft,[[0,0,0,0]],m]);var lt=[];for(nt=0;nt<Tt*ct;++nt)lt.push(nt);u=ft;var dt=[],pt=0;for(nt=0;nt<Tt;++nt){for(var vt=0;vt<ct;++vt){rt=parseInt(Math.random()*(lt.length-1));dt[pt]=lt[rt],lt.splice(rt,1),pt++}nt==Tt-1&&(ft=1-u);var mt=["clipPath",u,ft,[D,dt.slice()],m];tt.push(mt),u+=ft}tt.push(["resetClipPath",1,0,[""]])}else if(h==e.WHEEL_IN)V==n.CLOCKWISE?tt=[["clipPath",[0,.125,[Y,V,0,!0],.125,.25,[Y,V,1,!0],.375,.25,[Y,V,2,!0],.625,.25,[Y,V,3,!0],.875,.125,[Y,V,4,!0]]],["resetClipPath",1,0,[""]]]:V==n.ROTATE_2_SPOKES?tt=[["clipPath",[0,1/3,[Y,V,0,!0],1/3,1/3,[Y,V,1,!0],2/3,1/3,[Y,V,2,!0]]],["resetClipPath",1,0,[""]]]:V==n.ROTATE_3_SPOKES?tt=[["clipPath",[0,.2,[Y,V,0,!0],.2,.2,[Y,V,1,!0],.4,.2,[Y,V,2,!0],.6,.2,[Y,V,3,!0],.8,.2,[Y,V,4,!0]]],["resetClipPath",1,0,[""]]]:V==n.ROTATE_4_SPOKES?tt=[["clipPath",[0,.5,[Y,V,0,!0],.5,.5,[Y,V,1,!0]]],["resetClipPath",1,0,[""]]]:V==n.ROTATE_8_SPOKES&&(tt=[["clipPath",0,1,[Y,V,0,!0]],["resetClipPath",1,0,[""]]]);else if(h==e.STRIPS_IN&&t.support.maskImage)tt=[["gradientType",0,1,["linear-gradient"]],["gradientDirection",0,1,[X,V,!0]],["gradColorStops",0,1,[[[0,0,0,1,-10],[0,0,0,0,0]],[[0,0,0,1,100],[0,0,0,0,110]]]],["resetMaskImage",1,0,[""]]];else if(h==e.CHECKERBOARD_IN)tt=[["clipPath",0,1,[L,V,!0]],["resetClipPath",1,0,[""]]];else if(h==e.BASIC_FLOAT_IN)tt=[["rotate",0,.8,[-90,0]],["position",[0,.8,[H,0],.8,.2,[H,1]]],["opacity",0,.8,[0,1]]];else if(h==e.CREDITS_IN)tt=[["position",[0,.65,[B,0],1,0,[B,1]]]];else if(h==e.BOOMERANG_IN)tt=[["rotate",0,.5,[-90,0]],["scaleX",[0,.5,[1,.05],.55,.45,[1,20]]],["position",[0,.5,[U,0],.55,.45,[U,1]]],["opacity",0,.5,[0,1]]];else if(h==e.PINWHEEL_IN)tt=[["rotate",0,1,[720,0]],["scale",0,1,[0,1]],["opacity",0,1,[0,1]]];else if(h==e.RISE_UP)tt=[["opacity",0,1,[0,1]],["position",[0,.9,[Z,0],.9,.1,[Z,1]]]];else if(h==e.CENTER_REVOLVE_IN)tt=[["position",[0,0,[z,0],.4,.6,[z,1]]],["opacity",0,.1,[0,1]]];else if(h==e.PULSE)tt=[["scale",[0,.5,[1,1.2],.5,.5,[1,5/6]]],["opacity",[0,.5,[1,100/255],.5,.5,[1,2.55]]]];else if(h==e.TEETER)tt=[["rotate",[0,1/8,[0,-10],1/8,1/8,[0,10],.25,1/8,[0,10],3/8,1/8,[0,-10],.5,1/8,[0,-10],5/8,1/8,[0,10],.75,1/8,[0,10],7/8,1/8,[0,-10]]]];else if(h==e.SPIN)tt=[["rotate",0,1,[0,V==n.CLOCKWISE?360:-360]]];else if(h==e.GROW_SHRINK){var gt,bt,wt,_t=[.5,.75,1.25,1.5],yt=g.o||[];for(nt=0;nt<yt.length;++nt)2==yt[nt].length&&(bt=yt[nt][0],wt=yt[nt][1],bt==r.EFFECT_OPTION_DIR?V=wt:bt==r.EFFECT_OPTION_SIZE&&(gt=_t[wt]));tt=[[V==n.HORIZONTAL?"scaleX":V==n.VERTICAL?"scaleY":"scale",[0,.99,[1,gt],.99,.01,[1,1/gt]]]]}else if(h==e.LIGHTEN_COLOR)tt=[["brightness",[0,.99,[100,150],.99,.01,[100,100/150*100]]],["contrast",[0,.99,[100,50],.99,.01,[100,200]]]];else if(h==e.DARKEN_COLOR)tt=[["brightness",[0,.99,[100,50],.99,.01,[100,200]]],["contrast",[0,.99,[100,50],.99,.01,[100,200]]]];else if(h==e.DESATURATE_COLOR)tt=[["contrast",[0,.99,[100,b],.99,.01,[100,1e8]]]];else if(h==e.PULSE_COLOR)tt=[["brightness",[0,.5,[100,400],.5,.5,[100,25]]],["contrast",[0,.5,[100,50],.5,.5,[100,200]]]];else if(h==e.TRANSPARENCY)tt=[["opacity",[0,.99,[.5,.5],.99,.01,[1,2]]]];else if(h==e.BLINK)tt=[["opacity",[0,.5,[.01,.01],.5,.5,[100,100]]]];else if(h==e.COMPLEMENTARY_COLOR)tt=[["hueRotate",[0,.99,[0,120],.99,.01,[0,-120]]]];else if(h==e.COMPLEMENTARY_COLOR2)tt=[["hueRotate",[0,.99,[0,270],.99,.01,[0,-270]]]];else if(h==e.CONTRASTING_COLOR)tt=[["hueRotate",[0,.99,[0,200],.99,.01,[0,-200]]]];else if(h==e.FADE_OUT)tt=[["opacity",[0,1,[1,b],1,0,[1,1e4]],d]];else if(h==e.FLY_OUT)tt=[["position",0,1,[C,V,!0],d,s,void 0,!0]];else if(h==e.PEEK_OUT)tt=[["clipPath",0,1,[E,V,!1],d],["resetClipPath",1,0,[""]],["position",0,1,[O,V,!0],d,s,void 0,!0]];else if(h==e.FLOAT_OUT)tt=[["position",0,1,[S,V,!0],d,s,void 0,!0],["opacity",[0,1,[1,b],1,0,[1,1e4]],d]];else if(h==e.WIPE_OUT&&t.support.maskImage)tt=[["gradientType",0,1,["linear-gradient"]],["gradientDirection",0,1,[I,V,!1]],["gradColorStops",0,.8,[[[0,0,0,1,100],[0,0,0,0,110]],[[0,0,0,1,0],[0,0,0,0,10]]]],["gradColorStops",.8,.2,[[[0,0,0,1,0],[0,0,0,0,10]],[[0,0,0,1,0],[0,0,0,0,0]]]],["resetMaskImage",1,0,[""]]];else if(h==e.ZOOM_OUT)tt=[["scale",[0,1,[1,b],1,0,[1,1e4]],d],["opacity",[0,1,[1,b],1,0,[1,1e4]],d]];else if(h==e.SHRINK_TURN_OUT)tt=[["rotate",[0,1,[0,90],1,0,[0,-90]],d],["scale",[0,1,[1,b],1,0,[1,1e4]],d],["opacity",[0,1,[1,b],1,0,[1,1e4]],d]];else if(h==e.SWIVEL_OUT||h==e.BASIC_SWIVEL_OUT)tt=[[h==e.SWIVEL_OUT||V==n.HORIZONTAL?"scaleX":"scaleY",[0,.2,[1,b],.2,.2,[1,-1e4],.4,.2,[1,-b],.6,.2,[1,1e4],.8,.2,[1,b],1,0,[1,1e4]],d]],h==e.SWIVEL_OUT&&tt.push(["opacity",[0,1,[1,b],1,0,[1,1e4]],d]);else if(h==e.BOUNCE_OUT)tt=[["translateX",[0,1,[0,150],1,0,[0,-150]],v],["translateY",[0,1,[0,250],1,0,[0,-250]],f.outBounce],["scaleY",[7/22,1/22,[1,.8],8/22,1/22,[1,1.25],15/22,1/22,[1,.9],16/22,1/22,[1,1/.9],19/22,1/22,[1,.95],20/22,1/22,[1,1/.95]],v],["opacity",[.95,1,[1,b],1,0,[1,1e4]],v]];else if(h==e.SHAPE_OUT)V==n.IN||V==n.OUT||V==n.DIAMOND_IN||V==n.DIAMOND_OUT||V==n.PLUS_IN?tt=[["clipPath",0,1,[P,V,!1]],["resetClipPath",1,0,[""]]]:V==n.PLUS_OUT?tt=[["clipPath",0,1,[P,V,!1]],["resetClipPath",1,0,[""]]]:V==n.CIRCLE_IN&&t.support.maskImage?tt=[["gradientType",0,1,["radial-gradient"]],["gradientDirection",0,1,["circle at center"]],["gradColorStops",0,.8,[[[0,0,0,1,100],[0,0,0,0,120]],[[0,0,0,1,0],[0,0,0,0,20]]]],["gradColorStops",.8,.2,[[[0,0,0,1,0],[0,0,0,0,20]],[[0,0,0,1,0],[0,0,0,0,0]]]],["resetMaskImage",1,0,[""]]]:V==n.CIRCLE_OUT&&t.support.maskImage&&(tt=[["gradientType",0,1,["radial-gradient"]],["gradientDirection",0,1,["circle at center"]],["gradColorStops",0,.2,[[[0,0,0,0,0],[0,0,0,1,0]],[[0,0,0,0,0],[0,0,0,1,20]]]],["gradColorStops",.2,.8,[[[0,0,0,0,0],[0,0,0,1,20]],[[0,0,0,0,100],[0,0,0,1,120]]]],["resetMaskImage",1,0,[""]]]);else if(h==e.CONTRACT_OUT)tt=[["scaleX",[0,1,[1,.8],1,0,[1,1.25]],d],["opacity",[0,1,[1,b],1,0,[1,1e4]],d]];else if(h==e.SPINNER_OUT)tt=[["rotate",0,1,[0,360],d],["opacity",[0,1,[1,100/255],1,0,[1,2.55]],d]];else if(h==e.STRETCH_OUT)tt=[["scaleX",[0,1,[1,1.5],1,0,[1,2/3]],d],["opacity",[0,1,[1,b],1,0,[1,1e4]],d]];else if(h==e.COLLAPSE_OUT)tt=[["scaleX",[0,1,[1,b],1,0,[1,1e4]],d]];else if(h==e.SPLIT_OUT&&t.support.maskImage){V==n.VERTICAL_IN||V==n.HORIZONTAL_IN?tt=[["gradientType",0,1,["linear-gradient"]],["gradientDirection",0,1,[R,V]],["gradColorStops",0,.8,[it=[[0,0,0,0,-10],[0,0,0,1,0],[0,0,0,1,100],[0,0,0,0,110]],st=[[0,0,0,0,40],[0,0,0,1,50],[0,0,0,1,50],[0,0,0,0,60]]]],["gradColorStops",.8,.2,[ot=[[0,0,0,0,40],[0,0,0,1,50],[0,0,0,1,50],[0,0,0,0,60]],ut=[[0,0,0,0,50],[0,0,0,1,50],[0,0,0,1,50],[0,0,0,0,50]]]],["resetMaskImage",1,0,[""]]]:V!=n.VERTICAL_OUT&&V!=n.HORIZONTAL_OUT||(tt=[["gradientType",0,1,["linear-gradient"]],["gradientDirection",0,1,[R,V]],["gradColorStops",0,.2,[it=[[0,0,0,1,50],[0,0,0,0,50],[0,0,0,0,50],[0,0,0,1,50]],st=[[0,0,0,1,40],[0,0,0,0,50],[0,0,0,0,50],[0,0,0,1,60]]]],["gradColorStops",.2,.8,[ot=[[0,0,0,1,40],[0,0,0,0,50],[0,0,0,0,50],[0,0,0,1,60]],ut=[[0,0,0,1,-10],[0,0,0,0,0],[0,0,0,0,100],[0,0,0,1,110]]]],["resetMaskImage",1,0,[""]]])}else if(h==e.RANDOM_BARS_OUT&&t.support.maskImage){for(it=[],st=[],et=.5,nt=0;nt<200;++nt){rt=parseInt(5*Math.random()+1),at=[0,0,0,1,nt*et];it.push(at);ht=nt%rt?[0,0,0,.8,nt*et]:[0,0,0,0,nt*et];st.push(ht)}for(ot=[],ut=[],nt=0;nt<200;++nt)ot[nt]=st[nt],ut[nt]=[0,0,0,0,nt*et];tt=[["gradientType",0,1,["linear-gradient"]],["gradientDirection",0,1,[M,V]],["gradColorStops",0,.5,[it,st]],["gradColorStops",.5,.5,[ot,ut]],["resetMaskImage",1,0,[""]]]}else if(h==e.BLINDS_OUT)tt=[["clipPath",0,1,[N,V,!1]],["resetClipPath",1,0,[""]]];else if(h==e.WEDGE_OUT)tt=[["clipPath",[0,1/3,[A,0,!1],1/3,1/3,[A,1,!1],2/3,1/3,[A,2,!1]]],["resetClipPath",1,0,[""]]];else if(h==e.DISSOLVE_OUT){var Tt=50;for(ct=50,lt=[],nt=0;nt<Tt*ct;++nt)lt.push(nt);for(u=(Tt-1)/Tt,dt=[],pt=0,nt=0;nt<Tt;++nt){for(vt=0;vt<ct;++vt){rt=parseInt(Math.random()*(lt.length-1));dt[pt]=lt[rt],lt.splice(rt,1),pt++}mt=["clipPath",u,1/Tt,[D,dt.slice()],m];tt.push(mt),u-=1/Tt}tt.push(["resetClipPath",1,0,[""]])}else h==e.WHEEL_OUT?V==n.CLOCKWISE?tt=[["clipPath",[0,.125,[Y,V,0,!1],.125,.25,[Y,V,1,!1],.375,.25,[Y,V,2,!1],.625,.25,[Y,V,3,!1],.875,.125,[Y,V,4,!1]]],["resetClipPath",1,0,[""]]]:V==n.ROTATE_2_SPOKES?tt=[["clipPath",[0,1/3,[Y,V,0,!1],1/3,1/3,[Y,V,1,!1],2/3,1/3,[Y,V,2,!1]]],["resetClipPath",1,0,[""]]]:V==n.ROTATE_3_SPOKES?tt=[["clipPath",[0,.2,[Y,V,0,!1],.2,.2,[Y,V,1,!1],.4,.2,[Y,V,2,!1],.6,.2,[Y,V,3,!1],.8,.2,[Y,V,4,!1]]],["resetClipPath",1,0,[""]]]:V==n.ROTATE_4_SPOKES?tt=[["clipPath",[0,.5,[Y,V,0,!1],.5,.5,[Y,V,1,!1]]],["resetClipPath",1,0,[""]]]:V==n.ROTATE_8_SPOKES&&(tt=[["clipPath",0,1,[Y,V,0,!1]],["resetClipPath",1,0,[""]]]):h==e.STRIPS_OUT&&t.support.maskImage?tt=[["gradientType",0,1,["linear-gradient"]],["gradientDirection",0,1,[X,V,!1]],["gradColorStops",0,1,[[[0,0,0,0,-10],[0,0,0,1,0]],[[0,0,0,0,100],[0,0,0,1,110]]]],["resetMaskImage",1,0,[""]]]:h==e.CHECKERBOARD_OUT?tt=[["clipPath",0,1,[L,V,!1]],["resetClipPath",1,0,[""]]]:h==e.BASIC_FLOAT_OUT?tt=[["rotate",[.2,.8,[0,-90],1,0,[0,90]]],["position",[0,.2,[H,0,!0],.2,.8,[H,1,!0],1,0,[H,2,!0]]],["opacity",[.2,.8,[1,b],1,0,[1,1e4]]]]:h==e.CREDITS_OUT?tt=[["position",[0,0,[B,0,!0],.35,.65,[B,1,!0],1,0,[B,2,!0]]]]:h==e.BOOMERANG_OUT?tt=[["rotate",[.55,.45,[0,-90],1,0,[0,90]]],["scaleX",[0,.5,[1,.05],.55,.45,[1,20]]],["position",[0,.5,[U,0,!0],.55,.45,[U,1,!0],1,0,[U,2,!0]]],["opacity",[0,1,[1,b],1,0,[1,1e4]]]]:h==e.PINWHEEL_OUT?tt=[["rotate",[0,1,[0,720],1,0,[0,-720]]],["scale",[0,1,[1,b],1,0,[1,1e4]]],["opacity",[0,1,[1,b],1,0,[1,1e4]]]]:h==e.SINK_DOWN?tt=[["opacity",[0,1,[1,b],1,0,[1,1e4]]],["position",[0,.1,[Z,0,!0],.1,.9,[Z,1,!0],1,0,[Z,2,!0]]]]:h==e.CENTER_REVOLVE_OUT?tt=[["position",[0,.6,[z,0,!0],1,0,[z,1,!0]]],["opacity",[.9,.1,[1,b],1,0,[1,1e4]]]]:h>=e.MOTION_PATH_START&&h<=e.MOTION_PATH_END?tt=[["position",0,1,[k,g.path[0],g.path[1]],i,s,w]]:h==e.GESTURE_PROGRESS?tt=[["geProgress",0,1,[0,100]]]:h==e.TIMER_START?tt=[["timerState",0,1,[!1,!0]]]:h==e.MEDIA_PLAY?tt=[["mediaState",0,0,["stopped","playing"]]]:h==e.MEDIA_STOP?tt=[["mediaState",1,0,["playing","stopped"]]]:h==e.MEDIA_SEEK&&(tt=[["mediaSeek",0,1,[0,p?1:0]]]);var kt,xt=a.showProp?a.showProp():"block",Ct=a.hideProp?a.hideProp():"none",St=W.length>=2?K+(W.length-2)*j+p:p;if(h>=e.ENTRANCE_START&&h<=e.ENTRANCE_END){if(_(G,a,"display",0,0,[Ct,xt]),$)for(tt.unshift(["opacity",0,0,[0,1],i,s,w]),tt.unshift(["visibility",0,0,[""]]),nt=0,x=W.length;nt<x;++nt)_(G,W[nt],"opacity",0,0,[1,0],i,s,w)}else if(h>=e.EXIT_START&&h<=e.EXIT_END)_(G,a,"display",St,0,[xt,Ct]),$&&tt.push(["visibility",1,0,["","hidden"]]);else if(h>=e.MOTION_PATH_START&&h<=e.MOTION_PATH_END&&$)for(nt=0,x=W.length;nt<x;++nt)_(G,W[nt],"position",0,0,[{translateX:0,translateY:0}],m,s,w);for(nt=0,x=W.length;nt<x;++nt)for(kt=0==nt?0:K+j*(nt-1),vt=0,F=tt.length;vt<F;++vt)if(mt=tt[vt],Array.isArray(mt[1])){var Ot,Et=mt[1],It=Et.length;for(Ot=0;Ot<It;Ot+=3)_(G,W[nt],mt[0],kt+Et[Ot]*p,Et[Ot+1]*p,Et[Ot+2],mt[2],mt[3],mt[4],mt[5])}else _(G,W[nt],mt[0],kt+mt[1]*p,mt[2]*p,mt[3],mt[4],mt[5],mt[6],mt[7]);if($){var Pt,Rt,Mt,Nt=!1;if(q&&q.processStyles)for(Pt in q.processStyles)if((Mt=q.processStyles[Pt])&&Mt.length){Nt=!0;break}var At=St,Dt=G;if(g.repeat>1&&(At=St*g.repeat,(h>=e.MOTION_PATH_START&&h<=e.MOTION_PATH_END||Nt||q&&q.listItems&&q.listItems.length)&&(Dt=new o({startTime:u}),G.startTime(0),Dt.addChild(G))),q){if(q.listItems)for(nt=0,x=q.listItems.length;nt<x;++nt)Rt=q.listItems[nt].node.style.listStyleType||"",_(Dt,q.listItems[nt],"listStyleType",0,0,[Rt,"none"]),_(Dt,q.listItems[nt],"listStyleType",At,0,["none",Rt]);if(q.processStyles)for(Pt in q.processStyles)if((Mt=q.processStyles[Pt])&&Mt.length){for(nt=W[0]==a.shape?1:0,x=W.length;nt<x;++nt)for(vt=Mt.length-1;vt>=0;--vt)if(t.$.contains(Mt[vt].node,W[nt].node)){Rt=Mt[vt].node.style[Pt],_(Dt,W[nt],Pt,0,0,["",Rt],m,s,w);break}for(nt=0,x=Mt.length;nt<x;++nt)Rt=Mt[nt].node.style[Pt],_(Dt,Mt[nt],Pt,0,0,[Rt,""],m,s,w),_(Dt,Mt[nt],Pt,At,0,["",Rt],m,s,w)}}if(h>=e.ENTRANCE_START&&h<=e.ENTRANCE_END)for(nt=0,x=W.length;nt<x;++nt)_(G,W[nt],"resetOpacity",St,0,[""]);else if(h>=e.EXIT_START&&h<=e.EXIT_END)for(nt=0,x=W.length;nt<x;++nt)_(G,W[nt],"visibility",St,0,[""]);else if(h>=e.MOTION_PATH_START&&h<=e.MOTION_PATH_END&&(!g.repeat||g.repeat>0)){var Yt=2;for(g.repeat>1&&g.alternated&&(Yt=g.repeat%2+1),_(Dt,a,"position",At,0,[k,g.path[0],g.path[1],Yt],i,s,w),nt=0,x=W.length;nt<x;++nt)_(Dt,W[nt],"resetTransform",At,0,[""])}}return Dt||G};var V={NONE:0,CUT:1,FADE:2,PUSH:3,WIPE:4,ZOOM:5,COVER:6,UNCOVER:7,REVEAL:8,FLY_THROUGH:9,SPLIT:11,BARS:12,CLOCK:13,RANDOM_BARS:17,SHAPE:18,DISSOLVE:23,FLASH:39,FLIP:45,COMB:46,GALLERY:47,DOORS:48,CUBE:49,BOX:50,SWITCH:51,PAN:52,CONVEYOR:53,ROTATE:54,WINDOW:55,ORBIT:56,FERRIS_WHEEL:57};function W(t,i,s,e,n,r,a,h,o){var u=i.slide,c=i.slideBG;u&&_(t,u,s,n*e,r*e,a,h,o,w),c&&_(t,c,s,n*e,r*e,a,h,o,w)}t.TransitionType=V,t.createTransition=function(i,s,e,r,a,h,o){if(t.AutoTransitionDirection&&o&&s&&e){var c=e.ee.index,f=s.ee.index;isNaN(c)||isNaN(f)||f!=c-1||(h=function(t){switch(t){case n.BOTTOM:case n.LEFT:case n.RIGHT:case n.TOP:t=5-t;break;case n.BOTTOM_LEFT:case n.BOTTOM_RIGHT:case n.TOP_LEFT:case n.TOP_RIGHT:t=13-t;break;case n.THROUGH_BLACK_FROM_RIGHT:t=n.THROUGH_BLACK_FROM_LEFT;break;case n.THROUGH_BLACK_FROM_LEFT:t=n.THROUGH_BLACK_FROM_RIGHT;break;case n.SMOOTHLY_FROM_RIGHT:t=n.SMOOTHLY_FROM_LEFT;break;case n.SMOOTHLY_FROM_LEFT:t=n.SMOOTHLY_FROM_RIGHT}return t}(h))}var v=s?s.offsetSize():{width:0,height:0},b=e?e.offsetSize():{width:0,height:0},w=new u({startTime:0}),_={slide:s,slideBG:null},y={slide:null,slideBG:s?s.background:null},T={slide:_.slide,slideBG:y.slideBG},k={slide:e,slideBG:null},x={slide:null,slideBG:e?e.background:null},C={slide:k.slide,slideBG:x.slideBG};if(r==V.CUT)h==n.NONE?W(w,T,"opacity",a,0,.1,[0,1]):h==n.THROUGH_BLACK&&(W(w,T,"opacity",a,0,.5,[0,0]),W(w,T,"opacity",a,.5,.5,[1,1]),W(w,_,"gradOverlayType",a,0,1,["linear-gradient"]),W(w,_,"gradOverlayDirection",a,0,1,["to right"]),W(w,_,"gradOverlayColorStops",a,0,.5,[[[0,0,0,0,0],[0,0,0,0,100]]],m),W(w,_,"gradOverlayColorStops",a,.5,.4,[[[0,0,0,1,0],[0,0,0,1,100]]],m),W(w,_,"gradOverlayColorStops",a,.9,.1,[[[0,0,0,0,0],[0,0,0,0,100]]],m),W(w,_,"resetGradOverlay",a,1,0,[""]));else if(r==V.FADE)h==n.SMOOTHLY?W(w,T,"opacity",a,0,1,[0,1]):h==n.THROUGH_BLACK&&(W(w,T,"opacity",a,0,.5,[0,0]),W(w,T,"opacity",a,.5,.5,[1,1]),W(w,_,"gradOverlayType",a,0,1,["linear-gradient"]),W(w,_,"gradOverlayDirection",a,0,1,["to right"]),W(w,_,"gradOverlayColorStops",a,0,.5,[[[0,0,0,0,0],[0,0,0,0,100]],[[0,0,0,1,0],[0,0,0,1,100]]]),W(w,_,"gradOverlayColorStops",a,.5,.5,[[[0,0,0,1,0],[0,0,0,1,100]],[[0,0,0,0,0],[0,0,0,0,100]]]),W(w,_,"resetGradOverlay",a,1,0,[""]));else if(r==V.PUSH)h==n.BOTTOM?(W(w,T,"translateY",a,0,1,[v.height,0],l),W(w,C,"translateY",a,0,1,[0,-b.height],l)):h==n.LEFT?(W(w,T,"translateX",a,0,1,[-v.width,0],l),W(w,C,"translateX",a,0,1,[0,b.width],l)):h==n.RIGHT?(W(w,T,"translateX",a,0,1,[v.width,0],l),W(w,C,"translateX",a,0,1,[0,-b.width],l)):h==n.TOP&&(W(w,T,"translateY",a,0,1,[-v.height,0],l),W(w,C,"translateY",a,0,1,[0,b.height],l));else if(r==V.WIPE&&t.support.maskImage)W(w,T,"gradientType",a,0,1,["linear-gradient"]),W(w,T,"gradColorStops",a,0,1,[[[0,0,0,1,-30],[0,0,0,0,0]],[[0,0,0,1,100],[0,0,0,0,130]]]),h==n.BOTTOM?W(w,T,"gradientDirection",a,0,1,["to top"]):h==n.LEFT?W(w,T,"gradientDirection",a,0,1,["to right"]):h==n.RIGHT?W(w,T,"gradientDirection",a,0,1,["to left"]):h==n.TOP?W(w,T,"gradientDirection",a,0,1,["to bottom"]):h==n.BOTTOM_LEFT?W(w,T,"gradientDirection",a,0,1,["to top right"]):h==n.BOTTOM_RIGHT?W(w,T,"gradientDirection",a,0,1,["to top left"]):h==n.TOP_LEFT?W(w,T,"gradientDirection",a,0,1,["to bottom right"]):h==n.TOP_RIGHT&&W(w,T,"gradientDirection",a,0,1,["to bottom left"]),W(w,T,"resetMaskImage",a,1,0,[""]);else if(r==V.ZOOM)W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,T,"transformOriginX",a,0,0,[.5*v.width],m),W(w,T,"transformOriginY",a,0,0,[.5*v.height],m),W(w,C,"transformOriginX",a,0,0,[.5*b.width],m),W(w,C,"transformOriginY",a,0,0,[.5*b.height],m),h==n.IN?(i.Qn(!0),W(w,T,"scale3dX",a,0,1,[.4,1]),W(w,T,"scale3dY",a,0,1,[.4,1]),W(w,C,"opacity",a,0,1,[1,0]),W(w,C,"scale3dX",a,0,1,[1,5]),W(w,C,"scale3dY",a,0,1,[1,5])):h==n.OUT?(i.Qn(!0),W(w,T,"scale3dX",a,0,1,[5,1]),W(w,T,"scale3dY",a,0,1,[5,1]),W(w,C,"opacity",a,0,1,[1,0]),W(w,C,"scale3dX",a,0,1,[1,.4]),W(w,C,"scale3dY",a,0,1,[1,.4])):h==n.ZOOM_ROTATE&&(W(w,T,"opacity",a,0,1,[0,1]),W(w,T,"scale3dX",a,0,1,[.1,1],d),W(w,T,"scale3dY",a,0,1,[.1,1],d),W(w,T,"rotate3dZ",a,0,1,[360,0])),W(w,T,"resetTransform3d",a,1,0,[""]),W(w,C,"resetTransform3d",a,1,0,[""]);else if(r==V.COVER)h==n.BOTTOM?W(w,T,"translateY",a,0,1,[v.height],l,g.Hd):h==n.LEFT?W(w,T,"translateX",a,0,1,[-v.width],l,g.Hd):h==n.RIGHT?W(w,T,"translateX",a,0,1,[v.width],l,g.Hd):h==n.TOP?W(w,T,"translateY",a,0,1,[-v.height],l,g.Hd):h==n.BOTTOM_LEFT?(W(w,T,"translateY",a,0,1,[v.height],l,g.Hd),W(w,T,"translateX",a,0,1,[-v.width],l,g.Hd)):h==n.BOTTOM_RIGHT?(W(w,T,"translateY",a,0,1,[v.height],l,g.Hd),W(w,T,"translateX",a,0,1,[v.width],l,g.Hd)):h==n.TOP_RIGHT?(W(w,T,"translateY",a,0,1,[-v.height],l,g.Hd),W(w,T,"translateX",a,0,1,[v.width],l,g.Hd)):h==n.TOP_LEFT&&(W(w,T,"translateY",a,0,1,[-v.height],l,g.Hd),W(w,T,"translateX",a,0,1,[-v.width],l,g.Hd));else if(r==V.UNCOVER)i.Qn(!0),h==n.BOTTOM?W(w,C,"translateY",a,0,1,[0,-b.height],d):h==n.LEFT?W(w,C,"translateX",a,0,1,[0,b.width],d):h==n.RIGHT?W(w,C,"translateX",a,0,1,[0,-b.width],d):h==n.TOP?W(w,C,"translateY",a,0,1,[0,b.height],d):h==n.BOTTOM_LEFT?(W(w,C,"translateY",a,0,1,[0,-b.height],d),W(w,C,"translateX",a,0,1,[0,b.width],d)):h==n.BOTTOM_RIGHT?(W(w,C,"translateY",a,0,1,[0,-b.height],d),W(w,C,"translateX",a,0,1,[0,-b.width],d)):h==n.TOP_RIGHT?(W(w,C,"translateY",a,0,1,[0,b.height],d),W(w,C,"translateX",a,0,1,[0,-b.width],d)):h==n.TOP_LEFT&&(W(w,C,"translateY",a,0,1,[0,b.height],d),W(w,C,"translateX",a,0,1,[0,b.width],d));else if(r==V.REVEAL)W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,_,"translate3dX",a,0,1,[.05*v.width,0]),W(w,_,"translate3dZ",a,0,1,[.2*v.width,0]),W(w,k,"translate3dX",a,0,1,[0,-.05*b.width]),W(w,k,"translate3dZ",a,0,1,[0,.2*b.width]),h==n.SMOOTHLY_FROM_RIGHT||h==n.SMOOTHLY_FROM_LEFT?(W(w,y,"opacity",a,0,1,[0,1]),W(w,_,"opacity",a,0,.5,[0,0]),W(w,_,"opacity",a,.5,.5,[0,1]),W(w,k,"opacity",a,0,.5,[1,0]),W(w,k,"opacity",a,.5,.5,[0,0])):h!=n.THROUGH_BLACK_FROM_RIGHT&&h!=n.THROUGH_BLACK_FROM_LEFT||(W(w,_,"opacity",a,0,.5,[0],m),W(w,_,"opacity",a,.5,.5,[1],m),W(w,y,"opacity",a,0,.5,[0],m),W(w,y,"opacity",a,.5,.5,[1],m),W(w,k,"opacity",a,.5,.5,[0],m),W(w,x,"opacity",a,.5,.5,[0],m),W(w,_,"gradOverlayType",a,0,1,["linear-gradient"]),W(w,_,"gradOverlayDirection",a,0,1,["to right"]),h==n.THROUGH_BLACK_FROM_RIGHT?(W(w,_,"gradOverlayColorStops",a,0,.5,[[[0,0,0,0,0],[0,0,0,0,100]],[[0,0,0,1,110],[0,0,0,0,200]]]),W(w,_,"gradOverlayColorStops",a,.5,.5,[[[0,0,0,1,110],[0,0,0,0,200]],[[0,0,0,1,-100],[0,0,0,0,0]]])):h==n.THROUGH_BLACK_FROM_LEFT&&(W(w,_,"gradOverlayColorStops",a,0,.5,[[[0,0,0,0,0],[0,0,0,0,100]],[[0,0,0,0,-100],[0,0,0,1,-10]]]),W(w,_,"gradOverlayColorStops",a,.5,.5,[[[0,0,0,0,-100],[0,0,0,1,-10]],[[0,0,0,0,0],[0,0,0,1,200]]])),W(w,_,"resetGradOverlay",a,1,0,[""]),W(w,_,"resetTransform3d",a,1,0,[""]),W(w,k,"resetTransform3d",a,1,0,[""]));else if(r==V.SPLIT&&t.support.maskImage){W(w,T,"gradientType",a,0,1,["linear-gradient"]),h==n.VERTICAL_OUT||h==n.HORIZONTAL_OUT?(W(w,T,"gradColorStops",a,0,.2,[[[0,0,0,0,50],[0,0,0,1,50],[0,0,0,1,50],[0,0,0,0,50]],[[0,0,0,0,40],[0,0,0,1,50],[0,0,0,1,50],[0,0,0,0,60]]]),W(w,T,"gradColorStops",a,.2,.8,[[[0,0,0,0,40],[0,0,0,1,50],[0,0,0,1,50],[0,0,0,0,60]],[[0,0,0,0,-10],[0,0,0,1,0],[0,0,0,1,100],[0,0,0,0,110]]]),W(w,T,"gradientDirection",a,0,1,[h==n.VERTICAL_OUT?"to right":"to bottom"])):h!=n.VERTICAL_IN&&h!=n.HORIZONTAL_IN||(W(w,T,"gradColorStops",a,0,.8,[[[0,0,0,1,-10],[0,0,0,0,0],[0,0,0,0,100],[0,0,0,1,110]],[[0,0,0,1,40],[0,0,0,0,50],[0,0,0,0,50],[0,0,0,1,60]]]),W(w,T,"gradColorStops",a,.8,.2,[[[0,0,0,1,40],[0,0,0,0,50],[0,0,0,0,50],[0,0,0,1,60]],[[0,0,0,1,50],[0,0,0,0,50],[0,0,0,0,50],[0,0,0,1,50]]]),W(w,T,"gradientDirection",a,0,1,[h==n.VERTICAL_IN?"to right":"to bottom"])),W(w,T,"resetMaskImage",a,1,0,[""])}else if(r==V.RANDOM_BARS&&t.support.maskImage){W(w,T,"gradientType",a,0,1,["linear-gradient"]);for(var S=[],O=[],E=0;E<200;++E){var I=parseInt(5*Math.random()+1),P=[0,0,0,0,.5*E];S.push(P);var R=E%I?[0,0,0,.2,.5*E]:[0,0,0,1,.5*E];O.push(R)}W(w,T,"gradColorStops",a,0,.5,[S,O],d);var M=[],N=[];for(E=0;E<200;++E)M[E]=O[E],N[E]=[0,0,0,1,.5*E];W(w,T,"gradColorStops",a,.5,.5,[M,N],d),W(w,T,"gradientDirection",a,0,1,[h==n.VERTICAL?"to right":"to bottom"]),W(w,T,"resetMaskImage",a,1,0,[""])}else if(r==V.SHAPE){if(h==n.CIRCLE_OUT&&t.support.maskImage)W(w,T,"gradientType",a,0,1,["radial-gradient"]),W(w,T,"gradientDirection",a,0,1,["circle at center"]),W(w,T,"gradColorStops",a,0,.2,[[[0,0,0,1,0],[0,0,0,0,0]],[[0,0,0,1,0],[0,0,0,0,20]]]),W(w,T,"gradColorStops",a,.2,.8,[[[0,0,0,1,0],[0,0,0,0,20]],[[0,0,0,1,100],[0,0,0,0,120]]]),W(w,T,"resetMaskImage",a,1,0,[""]);else if(h==n.IN){W(w,T,"clipPath",a,0,1,[[[0,0],[0,100],[0,100],[0,0],[100,0],[100,100],[0,100],[0,100],[100,100],[100,0]],[[0,0],[0,100],[50,100],[50,50],[50,50],[50,50],[50,50],[50,100],[100,100],[100,0]]]),W(w,T,"resetClipPath",a,1,0,[""])}else if(h==n.OUT)W(w,T,"clipPath",a,0,1,[[[50,50],[50,50],[50,50],[50,50]],[[0,0],[0,100],[100,100],[100,0]]]),W(w,T,"resetClipPath",a,1,0,[""]);else if(h==n.DIAMOND_OUT)W(w,T,"clipPath",a,0,1,[[[50,50],[50,50],[50,50],[50,50]],[[-50,50],[50,150],[150,50],[50,-50]]]),W(w,T,"resetClipPath",a,1,0,[""]);else if(h==n.PLUS_OUT){W(w,T,"clipPath",a,0,1,[[[0,50],[0,50],[50,50],[50,100],[50,100],[50,50],[100,50],[100,50],[50,50],[50,0],[50,0],[50,50]],[[0,0],[0,100],[0,100],[0,100],[100,100],[100,100],[100,100],[100,0],[100,0],[100,0],[0,0],[0,0]]]),W(w,T,"resetClipPath",a,1,0,[""])}}else if(r==V.CLOCK){if(h==n.CLOCKWISE)W(w,T,"clipPath",a,0,.125,[[[50,0],[50,50],[50,0]],[[50,0],[50,50],[100,0]]]),W(w,T,"clipPath",a,.125,.25,[[[50,0],[50,50],[100,0],[100,0]],[[50,0],[50,50],[100,100],[100,0]]]),W(w,T,"clipPath",a,.375,.25,[[[50,0],[50,50],[100,100],[100,100],[100,0]],[[50,0],[50,50],[0,100],[100,100],[100,0]]]),W(w,T,"clipPath",a,.625,.25,[[[50,0],[50,50],[0,100],[0,100],[100,100],[100,0]],[[50,0],[50,50],[0,0],[0,100],[100,100],[100,0]]]),W(w,T,"clipPath",a,.875,.125,[[[50,0],[50,50],[0,0],[0,0],[0,100],[100,100],[100,0]],[[50,0],[50,50],[50,0],[0,0],[0,100],[100,100],[100,0]]]);else if(h==n.COUNTER_CLOCKWISE)W(w,T,"clipPath",a,0,.125,[[[50,0],[50,50],[50,0]],[[0,0],[50,50],[50,0]]]),W(w,T,"clipPath",a,.125,.25,[[[0,0],[0,0],[50,50],[50,0]],[[0,0],[0,100],[50,50],[50,0]]]),W(w,T,"clipPath",a,.375,.25,[[[0,0],[0,100],[0,100],[50,50],[50,0]],[[0,0],[0,100],[100,100],[50,50],[50,0]]]),W(w,T,"clipPath",a,.625,.25,[[[0,0],[0,100],[100,100],[100,100],[50,50],[50,0]],[[0,0],[0,100],[100,100],[100,0],[50,50],[50,0]]]),W(w,T,"clipPath",a,.875,.125,[[[0,0],[0,100],[100,100],[100,0],[100,0],[50,50],[50,0]],[[0,0],[0,100],[100,100],[100,0],[50,0],[50,50],[50,0]]]);else{var A=v.height/(v.width+v.height),D=(1-A)/2;W(w,T,"clipPath",a,0,D,[[[50,0],[50,50],[50,0]],[[0,0],[50,50],[100,0]]]),W(w,T,"clipPath",a,D,A,[[[0,0],[0,0],[50,50],[100,0],[100,0]],[[0,0],[0,100],[50,50],[100,100],[100,0]]]),W(w,T,"clipPath",a,1-D,D,[[[0,0],[0,100],[0,100],[50,50],[100,100],[100,100],[100,0]],[[0,0],[0,100],[50,100],[50,50],[50,100],[100,100],[100,0]]])}W(w,T,"resetClipPath",a,1,0,[""])}else if(r==V.FLASH)W(w,C,"opacity",a,0,.25,[1],m),W(w,C,"opacity",a,.25,.75,[0],m),W(w,C,"contrast",a,0,.25,[100,0]),W(w,C,"brightness",a,0,.25,[100,300]),W(w,T,"opacity",a,0,.25,[0],m),W(w,T,"opacity",a,.25,.75,[1],m),W(w,T,"contrast",a,.25,.75,[0,100]),W(w,T,"brightness",a,.25,.75,[300,100]);else if(r==V.DISSOLVE){var Y=2.5,X=2.5,L=[];for(E=0;E<40;++E)for(var F=0;F<40;++F){var H=[[E*Y,F*X],[(E+1)*Y+1,F*X],[(E+1)*Y+1,(F+1)*X+1],[E*Y,(F+1)*X+1]];L.push(H)}var U=0,B=[],Z=0;for(E=0;E<40;++E){for(F=0;F<40;++F){I=parseInt(Math.random()*(L.length-1));B[Z]=L[I],L.splice(I,1),Z++}W(w,T,"clipPath",a,U,.025,[B.slice()],m),U+=.025}W(w,T,"resetClipPath",a,1,0,[""])}else if(r==V.BARS){Y=100/7,X=20;var z=[],G=[];if(h==n.HORIZONTAL)for(E=0;E<5;++E){var $=[j=[0,E*X],Q=[100,E*X],[100,E*X],[0,E*X]],K=[j,Q,[100,(E+1)*X],[0,(E+1)*X]];z.push($),G.push(K)}else for(E=0;E<7;++E){var j,Q;$=[j=[E*Y,0],Q=[E*Y,100],[E*Y,100],[E*Y,0]],K=[j,Q,[(E+1)*Y,100],[(E+1)*Y,0]];z.push($),G.push(K)}W(w,T,"clipPath",a,0,1,[z,G,!0]),W(w,T,"resetClipPath",a,1,0,[""])}else if(r==V.COMB&&t.support.clipPath){i.Qn(!0),W(w,C,"opacity",a,0,1,[0,0]);var q=[];if(h==n.HORIZONTAL){W(w,C,"cropNodesCount",a,0,1,[10]);var J=[],tt=[];for(E=0;E<10;++E)q.push([[0,E/10*100],[100,E/10*100],[100,(E+1)/10*100],[0,(E+1)/10*100]]),J.push(0),tt.push(E%2?-b.width:b.width);W(w,C,"xCropNodes",a,0,1,[J,tt])}else{W(w,C,"cropNodesCount",a,0,1,[14]);var it=[],st=[];for(E=0;E<14;++E)q.push([[E/14*100,0],[E/14*100,100],[(E+1)/14*100,100],[(E+1)/14*100,0]]),it.push(0),st.push(E%2?-b.height:b.height);W(w,C,"yCropNodes",a,0,1,[it,st])}W(w,C,"polygonsCropNodes",a,0,1,[q]),W(w,C,"resetCropNodes",a,1,0,[h==n.HORIZONTAL?10:14])}else if(r==V.DOORS&&t.support.clipPath){if(i.Qn(!0),W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,T,"scale3dX",a,0,1,[.4,1],d),W(w,T,"scale3dY",a,0,1,[.4,1],d),W(w,T,"translate3dZ",a,0,0,[-1],m),W(w,C,"translate3dZ",a,0,0,[1],m),W(w,C,"cropNodesCount",a,0,1,[2]),h==n.VERTICAL){var et=[];for(E=0;E<2;++E)et.push([[E/2*100,0],[(E+1)/2*100,0],[(E+1)/2*100,100],[E/2*100,100]]);W(w,C,"polygonsCropNodes",a,0,1,[et]),W(w,C,"xCropNodes",a,0,1,[[0,0],[-b.width,b.width]],p);var nt=[b.width,b.width],rt=[2,2],at=[b.width+2,b.width+2];W(w,x,"zCropNodes",a,0,1,[[0,0],nt],p),W(w,k,"zCropNodes",a,0,1,[rt,at],p),W(w,C,"transOrgXCropNodes",a,0,1,[[0,b.width],[b.width,0]],p),W(w,C,"transOrgZCropNodes",a,0,1,[[0,0],[-b.width/2,-b.width/2]],p),W(w,C,"rotateYCropNodes",a,0,1,[[0,0],[90,-90]],p)}else{for(et=[],E=0;E<2;++E)et.push([[0,E/2*100],[0,(E+1)/2*100],[100,(E+1)/2*100],[100,E/2*100]]);W(w,C,"polygonsCropNodes",a,0,1,[et]),W(w,C,"yCropNodes",a,0,1,[[0,0],[-b.height,b.height]],p),W(w,C,"zCropNodes",a,0,1,[rt=[0,0],at=[2*b.height,2*b.height]],p),W(w,C,"transOrgYCropNodes",a,0,1,[[0,b.height],[b.height,0]],p),W(w,C,"transOrgZCropNodes",a,0,1,[[0,0],[-b.height,-b.height]],p),W(w,C,"rotateXCropNodes",a,0,1,[[0,0],[90,-90]],p)}var ht=[1,1],ot=[0,0];W(w,C,"opacity",a,.1,0,[0],m),W(w,C,"opacityCropNodes",a,0,.1,[[0,0],[1,1]],p),W(w,C,"opacityCropNodes",a,.1,.9,[ht,ot],d),W(w,C,"resetCropNodes",a,1,0,[2]),W(w,T,"resetTransform3d",a,1,0,[""])}else if(r==V.FLIP)W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,T,"transformOriginX",a,0,0,[.5*v.width],m),W(w,T,"transformOriginY",a,0,0,[.5*v.height],m),W(w,T,"opacity",a,0,0,[0],m),W(w,T,"opacity",a,.5,0,[1],m),W(w,C,"transformOriginX",a,0,0,[.5*b.width],m),W(w,C,"transformOriginY",a,0,0,[.5*b.height],m),W(w,C,"opacity",a,0,0,[1],m),W(w,C,"opacity",a,.5,0,[0],m),W(w,x,"translate3dZ",a,0,0,[-.01,-.01]),W(w,y,"translate3dZ",a,0,0,[-.01,-.01]),h==n.RIGHT?(W(w,T,"rotate3dY",a,0,1,[180,360]),W(w,C,"rotate3dY",a,0,1,[0,180])):(W(w,T,"rotate3dY",a,0,1,[-180,-360]),W(w,C,"rotate3dY",a,0,1,[0,-180])),W(w,T,"resetTransform3d",a,1,0,[""]),W(w,C,"resetTransform3d",a,1,0,[""]);else if(r==V.GALLERY)W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,x,"translate3dZ",a,0,0,[-.01,-.01]),W(w,y,"translate3dZ",a,0,0,[-.01,-.01]),h==n.RIGHT?(W(w,C,"translate3dX",a,0,.3,[0,-.03*b.width]),W(w,C,"transformOriginX",a,0,.3,[b.width,1.03*b.width]),W(w,C,"rotate3dY",a,0,.3,[0,-24]),W(w,C,"translate3dX",a,.3,.4,[-.03*b.width,-1.03*b.width]),W(w,C,"transformOriginX",a,.3,.4,[1.03*b.width,2.03*b.width]),W(w,C,"rotate3dY",a,.3,.4,[-24,-24]),W(w,C,"translate3dX",a,.7,.3,[-1.03*b.width,-1.03*b.width]),W(w,C,"transformOriginX",a,.7,.3,[2.03*b.width,2.03*b.width]),W(w,C,"rotate3dY",a,.7,.3,[-24,0]),W(w,T,"translate3dX",a,0,.3,[v.width+1,v.width+1]),W(w,T,"transformOriginX",a,0,.3,[1,1]),W(w,T,"rotate3dY",a,0,.3,[0,-24]),W(w,T,"translate3dX",a,.3,.4,[v.width+1,0]),W(w,T,"transformOriginX",a,.3,.4,[1,v.width]),W(w,T,"rotate3dY",a,.3,.4,[-24,-24]),W(w,T,"translate3dX",a,.7,.3,[0,0]),W(w,T,"transformOriginX",a,.7,.3,[v.width,v.width]),W(w,T,"rotate3dY",a,.7,.3,[-24,0])):(W(w,C,"translate3dX",a,0,.3,[0,.03*b.width]),W(w,C,"transformOriginX",a,0,.3,[0,-.03*b.width]),W(w,C,"rotate3dY",a,0,.3,[0,24]),W(w,C,"translate3dX",a,.3,.4,[.03*b.width,1.03*b.width]),W(w,C,"transformOriginX",a,.3,.4,[-.03*b.width,-1.03*b.width]),W(w,C,"rotate3dY",a,.3,.4,[24,24]),W(w,C,"translate3dX",a,.7,.3,[1.03*b.width,1.03*b.width]),W(w,C,"transformOriginX",a,.7,.3,[-1.03*b.width,-1.03*b.width]),W(w,C,"rotate3dY",a,.7,.3,[24,0]),W(w,T,"translate3dX",a,0,.3,[-v.width-1,-v.width-1]),W(w,T,"transformOriginX",a,0,.3,[v.width+1,v.width+1]),W(w,T,"rotate3dY",a,0,.3,[0,24]),W(w,T,"translate3dX",a,.3,.4,[-v.width-1,0]),W(w,T,"transformOriginX",a,.3,.4,[v.width+1,0]),W(w,T,"rotate3dY",a,.3,.4,[24,24]),W(w,T,"translate3dX",a,.7,.3,[0,0]),W(w,T,"transformOriginX",a,.7,.3,[0,0]),W(w,T,"rotate3dY",a,.7,.3,[24,0])),W(w,T,"resetTransform3d",a,1,0,[""]),W(w,C,"resetTransform3d",a,1,0,[""]);else if(r==V.SWITCH)W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,_,"zIndex",a,0,0,[t.ZIndex.Ki],m),W(w,_,"zIndex",a,.5,0,[t.ZIndex.qi],m),W(w,y,"zIndex",a,0,0,[t.ZIndex.$i],m),W(w,y,"zIndex",a,.5,0,[t.ZIndex.ji],m),W(w,k,"zIndex",a,0,0,[t.ZIndex.qi],m),W(w,k,"zIndex",a,.5,0,[t.ZIndex.Ki],m),W(w,x,"zIndex",a,0,0,[t.ZIndex.ji],m),W(w,x,"zIndex",a,.5,0,[t.ZIndex.$i],m),h==n.RIGHT?(W(w,C,"translate3dX",a,0,.5,[0,.525*b.width]),W(w,x,"translate3dZ",a,0,.5,[-.01,-.25*b.width-.01]),W(w,k,"translate3dZ",a,0,.5,[0,-.25*b.width]),W(w,C,"transformOriginX",a,0,.5,[0,-.025*b.width]),W(w,C,"transformOriginZ",a,0,.5,[0,0]),W(w,C,"rotate3dY",a,0,.5,[0,-20]),W(w,C,"translate3dX",a,.5,.5,[.525*b.width,0]),W(w,x,"translate3dZ",a,.5,.5,[-.25*b.width-.01,-.25*b.width-.01]),W(w,k,"translate3dZ",a,.5,.5,[-.25*b.width,-.25*b.width]),W(w,C,"transformOriginX",a,.5,.5,[-.025*b.width,.5*b.width]),W(w,C,"transformOriginZ",a,.5,.5,[0,0]),W(w,C,"rotate3dY",a,.5,.5,[-20,-20]),W(w,T,"translate3dX",a,0,.5,[0,-.525*v.width]),W(w,y,"translate3dZ",a,0,.5,[-.25*v.width-.01,-.25*v.width-.01]),W(w,_,"translate3dZ",a,0,.5,[-.25*v.width,-.25*v.width]),W(w,T,"transformOriginX",a,0,.5,[v.width,1.025*v.width]),W(w,T,"transformOriginZ",a,0,.5,[0,0]),W(w,T,"rotate3dY",a,0,.5,[0,20]),W(w,T,"translate3dX",a,.5,.5,[-.525*v.width,0]),W(w,y,"translate3dZ",a,.5,.5,[-.25*v.width-.01,-.01]),W(w,_,"translate3dZ",a,.5,.5,[-.25*v.width,0]),W(w,T,"transformOriginX",a,.5,.5,[1.025*v.width,0]),W(w,T,"transformOriginZ",a,.5,.5,[0,0]),W(w,T,"rotate3dY",a,.5,.5,[20,0])):(W(w,C,"translate3dX",a,0,.5,[0,-.525*b.width]),W(w,x,"translate3dZ",a,0,.5,[-.01,-.25*b.width-.01]),W(w,k,"translate3dZ",a,0,.5,[0,-.25*b.width]),W(w,C,"transformOriginX",a,0,.5,[b.width,1.025*b.width]),W(w,C,"transformOriginZ",a,0,.5,[0,0]),W(w,C,"rotate3dY",a,0,.5,[0,20]),W(w,C,"translate3dX",a,.5,.5,[-.525*b.width,0]),W(w,x,"translate3dZ",a,.5,.5,[-.25*b.width-.01,-.25*b.width-.01]),W(w,k,"translate3dZ",a,.5,.5,[-.25*b.width,-.25*b.width]),W(w,C,"transformOriginX",a,.5,.5,[1.025*b.width,.5*b.width]),W(w,C,"transformOriginZ",a,.5,.5,[0,0]),W(w,C,"rotate3dY",a,.5,.5,[20,20]),W(w,T,"translate3dX",a,0,.5,[0,.525*v.width]),W(w,y,"translate3dZ",a,0,.5,[-.25*v.width-.01,-.25*v.width-.01]),W(w,_,"translate3dZ",a,0,.5,[-.25*v.width,-.25*v.width]),W(w,T,"transformOriginX",a,0,.5,[0,-.025*v.width]),W(w,T,"transformOriginZ",a,0,.5,[0,0]),W(w,T,"rotate3dY",a,0,.5,[0,-20]),W(w,T,"translate3dX",a,.5,.5,[.525*v.width,0]),W(w,y,"translate3dZ",a,.5,.5,[-.25*v.width-.01,-.01]),W(w,_,"translate3dZ",a,.5,.5,[-.25*v.width,0]),W(w,T,"transformOriginX",a,.5,.5,[-.025*v.width,0]),W(w,T,"transformOriginZ",a,.5,.5,[0,0]),W(w,T,"rotate3dY",a,.5,.5,[-20,0])),W(w,T,"resetTransform3d",a,1,0,[""]),W(w,C,"resetTransform3d",a,1,0,[""]);else if(r==V.BOX)W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),h==n.RIGHT?(W(w,C,"translate3dX",a,0,.5,[0,-.55*b.width]),W(w,x,"translate3dZ",a,0,.5,[-.01,-.75*b.width-.01]),W(w,k,"translate3dZ",a,0,.5,[0,-.75*b.width]),W(w,C,"transformOriginX",a,0,.5,[b.width,1.05*b.width]),W(w,C,"transformOriginZ",a,0,.5,[0,0]),W(w,C,"rotate3dY",a,0,.5,[0,45]),W(w,C,"translate3dX",a,.5,.5,[-.55*b.width,-1.1*b.width]),W(w,x,"translate3dZ",a,.5,.5,[-.75*b.width-.01,-.01]),W(w,k,"translate3dZ",a,.5,.5,[-.75*b.width,0]),W(w,C,"transformOriginX",a,.5,.5,[1.05*b.width,1.1*b.width]),W(w,C,"transformOriginZ",a,.5,.5,[0,0]),W(w,C,"rotate3dY",a,.5,.5,[45,90]),W(w,T,"translate3dX",a,0,.5,[1.1*v.width,.55*v.width]),W(w,y,"translate3dZ",a,0,.5,[-.01,-.75*v.width-.01]),W(w,_,"translate3dZ",a,0,.5,[0,-.75*v.width]),W(w,T,"transformOriginX",a,0,.5,[-.1*v.width,-.05*v.width]),W(w,T,"transformOriginZ",a,0,.5,[0,0]),W(w,T,"rotate3dY",a,0,.5,[-90,-45]),W(w,T,"translate3dX",a,.5,.5,[.55*v.width,0]),W(w,y,"translate3dZ",a,.5,.5,[-.75*v.width-.01,-.01]),W(w,_,"translate3dZ",a,.5,.5,[-.75*v.width,0]),W(w,T,"transformOriginX",a,.5,.5,[-.05*v.width,0]),W(w,T,"transformOriginZ",a,.5,.5,[0,0]),W(w,T,"rotate3dY",a,.5,.5,[-45,0])):h==n.BOTTOM?(W(w,C,"translate3dY",a,0,.5,[0,-.55*b.height]),W(w,x,"translate3dZ",a,0,.5,[-.01,-.75*b.height-.01]),W(w,k,"translate3dZ",a,0,.5,[0,-.75*b.height]),W(w,C,"transformOriginY",a,0,.5,[b.height,1.05*b.height]),W(w,C,"transformOriginZ",a,0,.5,[0,0]),W(w,C,"rotate3dX",a,0,.5,[0,-45]),W(w,C,"translate3dY",a,.5,.5,[-.55*b.height,-1.1*b.height]),W(w,x,"translate3dZ",a,.5,.5,[-.75*b.height-.01,-.01]),W(w,k,"translate3dZ",a,.5,.5,[-.75*b.height,0]),W(w,C,"transformOriginY",a,.5,.5,[1.05*b.height,1.1*b.height]),W(w,C,"transformOriginZ",a,.5,.5,[0,0]),W(w,C,"rotate3dX",a,.5,.5,[-45,-90]),W(w,T,"translate3dY",a,0,.5,[1.1*v.height,.55*v.height]),W(w,y,"translate3dZ",a,0,.5,[-.01,-.75*v.height-.01]),W(w,_,"translate3dZ",a,0,.5,[0,-.75*v.height]),W(w,T,"transformOriginY",a,0,.5,[-.1*v.height,-.05*v.height]),W(w,T,"transformOriginZ",a,0,.5,[0,0]),W(w,T,"rotate3dX",a,0,.5,[90,45]),W(w,T,"translate3dY",a,.5,.5,[.55*v.height,0]),W(w,y,"translate3dZ",a,.5,.5,[-.75*v.height-.01,-.01]),W(w,_,"translate3dZ",a,.5,.5,[-.75*v.height,0]),W(w,T,"transformOriginY",a,.5,.5,[-.05*v.height,0]),W(w,T,"transformOriginZ",a,.5,.5,[0,0]),W(w,T,"rotate3dX",a,.5,.5,[45,0])):h==n.LEFT?(W(w,C,"translate3dX",a,0,.5,[0,.55*b.width]),W(w,x,"translate3dZ",a,0,.5,[-.01,-.75*b.width-.01]),W(w,k,"translate3dZ",a,0,.5,[0,-.75*b.width]),W(w,C,"transformOriginX",a,0,.5,[0,-.05*b.width]),W(w,C,"transformOriginZ",a,0,.5,[0,0]),W(w,C,"rotate3dY",a,0,.5,[0,-45]),W(w,C,"translate3dX",a,.5,.5,[.55*b.width,1.1*b.width]),W(w,x,"translate3dZ",a,.5,.5,[-.75*b.width-.01,-.01]),W(w,k,"translate3dZ",a,.5,.5,[-.75*b.width,0]),W(w,C,"transformOriginX",a,.5,.5,[-.05*b.width,-.1*b.width]),W(w,C,"transformOriginZ",a,.5,.5,[0,0]),W(w,C,"rotate3dY",a,.5,.5,[-45,-90]),W(w,T,"translate3dX",a,0,.5,[-1.1*v.width,-.55*v.width]),W(w,y,"translate3dZ",a,0,.5,[-.01,-.75*v.width-.01]),W(w,_,"translate3dZ",a,0,.5,[0,-.75*v.width]),W(w,T,"transformOriginX",a,0,.5,[1.1*v.width,1.05*v.width]),W(w,T,"transformOriginZ",a,0,.5,[0,0]),W(w,T,"rotate3dY",a,0,.5,[0,45]),W(w,T,"translate3dX",a,.5,.5,[-.55*v.width,0]),W(w,y,"translate3dZ",a,.5,.5,[-.75*v.width-.01,-.01]),W(w,_,"translate3dZ",a,.5,.5,[-.75*v.width,0]),W(w,T,"transformOriginX",a,.5,.5,[1.05*v.width,v.width]),W(w,T,"transformOriginZ",a,.5,.5,[0,0]),W(w,T,"rotate3dY",a,.5,.5,[45,0])):(W(w,C,"translate3dY",a,0,.5,[0,.55*b.height]),W(w,x,"translate3dZ",a,0,.5,[-.01,-.75*b.height-.01]),W(w,k,"translate3dZ",a,0,.5,[0,-.75*b.height]),W(w,C,"transformOriginY",a,0,.5,[0,-.05*b.height]),W(w,C,"transformOriginZ",a,0,.5,[0,0]),W(w,C,"rotate3dX",a,0,.5,[0,45]),W(w,C,"translate3dY",a,.5,.5,[.55*b.height,1.1*b.height]),W(w,x,"translate3dZ",a,.5,.5,[-.75*b.height-.01,-.01]),W(w,k,"translate3dZ",a,.5,.5,[-.75*b.height,0]),W(w,C,"transformOriginY",a,.5,.5,[-.05*b.height,-.1*b.height]),W(w,C,"transformOriginZ",a,.5,.5,[0,0]),W(w,C,"rotate3dX",a,.5,.5,[45,90]),W(w,T,"translate3dY",a,0,.5,[-1.1*v.height,-.55*v.height]),W(w,y,"translate3dZ",a,0,.5,[-.01,-.75*v.height-.01]),W(w,_,"translate3dZ",a,0,.5,[0,-.75*v.height]),W(w,T,"transformOriginY",a,0,.5,[1.1*v.height,1.05*v.height]),W(w,T,"transformOriginZ",a,0,.5,[0,0]),W(w,T,"rotate3dX",a,0,.5,[-90,-45]),W(w,T,"translate3dY",a,.5,.5,[-.55*v.height,0]),W(w,y,"translate3dZ",a,.5,.5,[-.75*v.height-.01,-.01]),W(w,_,"translate3dZ",a,.5,.5,[-.75*v.height,0]),W(w,T,"transformOriginY",a,.5,.5,[1.05*v.height,v.height]),W(w,T,"transformOriginZ",a,.5,.5,[0,0]),W(w,T,"rotate3dX",a,.5,.5,[-45,0])),W(w,T,"resetTransform3d",a,1,0,[""]),W(w,C,"resetTransform3d",a,1,0,[""]);else if(r==V.CUBE)W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,x,"translate3dZ",a,0,0,[-.01,-.01]),W(w,y,"translate3dZ",a,0,0,[-.01,-.01]),h!=n.RIGHT&&h!=n.LEFT||(i.Qn(!0),W(w,y,"zIndex",a,.2,0,[t.ZIndex.ji],m),W(w,_,"zIndex",a,.2,0,[t.ZIndex.qi],m),W(w,x,"zIndex",a,.2,0,[t.ZIndex.$i],m),W(w,k,"zIndex",a,.2,0,[t.ZIndex.Ki],m)),h==n.RIGHT?(W(w,C,"translate3dX",a,0,1,[0,-b.width]),W(w,C,"transformOriginX",a,0,0,[b.width,b.width]),W(w,C,"rotate3dY",a,0,1,[0,-90]),W(w,T,"translate3dX",a,0,1,[b.width,0]),W(w,T,"transformOriginX",a,0,0,[0,0]),W(w,T,"rotate3dY",a,0,1,[90,0])):h==n.BOTTOM?(W(w,_,"perspectiveOriginY",a,0,1,[b.height,0]),W(w,C,"translate3dY",a,0,1,[0,-b.height]),W(w,C,"transformOriginY",a,0,0,[b.height,b.height]),W(w,C,"rotate3dX",a,0,1,[0,90]),W(w,T,"translate3dY",a,0,1,[b.height,0]),W(w,T,"transformOriginY",a,0,0,[0,0]),W(w,T,"rotate3dX",a,0,1,[-90,0])):h==n.LEFT?(W(w,C,"translate3dX",a,0,1,[0,v.width]),W(w,C,"transformOriginX",a,0,0,[0,0]),W(w,C,"rotate3dY",a,0,1,[0,90]),W(w,T,"translate3dX",a,0,1,[-v.width,0]),W(w,T,"transformOriginX",a,0,0,[v.width,v.width]),W(w,T,"rotate3dY",a,0,1,[-90,0])):(W(w,_,"perspectiveOriginY",a,0,1,[0,v.height]),W(w,C,"translate3dY",a,0,1,[0,v.height]),W(w,C,"transformOriginY",a,0,0,[0,0]),W(w,C,"rotate3dX",a,0,1,[0,-90]),W(w,T,"translate3dY",a,0,1,[-v.height,0]),W(w,T,"transformOriginY",a,0,0,[v.height,v.height]),W(w,T,"rotate3dX",a,0,1,[90,0])),W(w,T,"resetTransform3d",a,1,0,[""]),W(w,C,"resetTransform3d",a,1,0,[""]);else if(r==V.FLY_THROUGH)W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,_,"transformOriginX",a,0,0,[.5*v.width],m),W(w,_,"transformOriginY",a,0,0,[.5*v.height],m),W(w,T,"opacity",a,0,1,[0,1]),W(w,C,"opacity",a,0,1,[1,0]),W(w,k,"transformOriginX",a,0,0,[.5*b.width],m),W(w,k,"transformOriginY",a,0,0,[.5*b.height],m),W(w,k,"zIndex",a,0,0,[t.ZIndex.Qi+1],m),h==n.IN?(W(w,k,"scale3dX",a,0,1,[1,4]),W(w,k,"scale3dY",a,0,1,[1,4]),W(w,_,"scale3dX",a,0,1,[.5,1]),W(w,_,"scale3dY",a,0,1,[.5,1])):(W(w,k,"scale3dX",a,0,1,[1,.5]),W(w,k,"scale3dY",a,0,1,[1,.5]),W(w,_,"scale3dX",a,0,1,[4,1]),W(w,_,"scale3dY",a,0,1,[4,1])),W(w,T,"resetTransform3d",a,1,0,[""]),W(w,C,"resetTransform3d",a,1,0,[""]);else if(r==V.PAN)W(w,y,"opacity",a,0,1,[0,1]),W(w,x,"opacity",a,0,1,[1,0]),W(w,k,"zIndex",a,0,0,[t.ZIndex.Qi+1],m),h==n.RIGHT?(W(w,k,"translate3dX",a,0,1,[0,-b.width]),W(w,_,"translate3dX",a,0,1,[v.width,0])):h==n.BOTTOM?(W(w,k,"translate3dY",a,0,1,[0,-b.height]),W(w,_,"translate3dY",a,0,1,[v.height,0])):h==n.LEFT?(W(w,k,"translate3dX",a,0,1,[0,b.width]),W(w,_,"translate3dX",a,0,1,[-v.width,0])):(W(w,k,"translate3dY",a,0,1,[0,b.height]),W(w,_,"translate3dY",a,0,1,[-v.height,0])),W(w,_,"resetTransform3d",a,1,0,[""]),W(w,k,"resetTransform3d",a,1,0,[""]);else if(r==V.CONVEYOR)W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,y,"opacity",a,0,1,[0,1]),W(w,x,"opacity",a,0,1,[1,0]),W(w,k,"zIndex",a,0,0,[t.ZIndex.Qi+1],m),h==n.RIGHT?(W(w,k,"translate3dX",a,0,.3,[0,-.03*b.width]),W(w,k,"transformOriginX",a,0,.3,[b.width,1.03*b.width]),W(w,k,"rotate3dY",a,0,.3,[0,-24]),W(w,k,"translate3dX",a,.3,.4,[-.03*b.width,-1.03*b.width]),W(w,k,"transformOriginX",a,.3,.4,[1.03*b.width,2.03*b.width]),W(w,k,"rotate3dY",a,.3,.4,[-24,-24]),W(w,k,"translate3dX",a,.7,.3,[-1.03*b.width,-1.03*b.width]),W(w,k,"transformOriginX",a,.7,.3,[2.03*b.width,2.03*b.width]),W(w,k,"rotate3dY",a,.7,.3,[-24,0]),W(w,_,"translate3dX",a,0,.3,[v.width+1,v.width+1]),W(w,_,"transformOriginX",a,0,.3,[1,1]),W(w,_,"rotate3dY",a,0,.3,[0,-24]),W(w,_,"translate3dX",a,.3,.4,[v.width+1,0]),W(w,_,"transformOriginX",a,.3,.4,[1,v.width]),W(w,_,"rotate3dY",a,.3,.4,[-24,-24]),W(w,_,"translate3dX",a,.7,.3,[0,0]),W(w,_,"transformOriginX",a,.7,.3,[v.width,v.width]),W(w,_,"rotate3dY",a,.7,.3,[-24,0])):(W(w,k,"translate3dX",a,0,.3,[0,.03*b.width]),W(w,k,"transformOriginX",a,0,.3,[0,-.03*b.width]),W(w,k,"rotate3dY",a,0,.3,[0,24]),W(w,k,"translate3dX",a,.3,.4,[.03*b.width,1.03*b.width]),W(w,k,"transformOriginX",a,.3,.4,[-.03*b.width,-1.03*b.width]),W(w,k,"rotate3dY",a,.3,.4,[24,24]),W(w,k,"translate3dX",a,.7,.3,[1.03*b.width,1.03*b.width]),W(w,k,"transformOriginX",a,.7,.3,[-1.03*b.width,-1.03*b.width]),W(w,k,"rotate3dY",a,.7,.3,[24,0]),W(w,_,"translate3dX",a,0,.3,[-v.width-1,-v.width-1]),W(w,_,"transformOriginX",a,0,.3,[v.width+1,v.width+1]),W(w,_,"rotate3dY",a,0,.3,[0,24]),W(w,_,"translate3dX",a,.3,.4,[-v.width-1,0]),W(w,_,"transformOriginX",a,.3,.4,[v.width+1,0]),W(w,_,"rotate3dY",a,.3,.4,[24,24]),W(w,_,"translate3dX",a,.7,.3,[0,0]),W(w,_,"transformOriginX",a,.7,.3,[0,0]),W(w,_,"rotate3dY",a,.7,.3,[24,0])),W(w,_,"resetTransform3d",a,1,0,[""]),W(w,k,"resetTransform3d",a,1,0,[""]);else if(r==V.ROTATE)W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,y,"opacity",a,0,1,[0,1]),W(w,x,"opacity",a,0,1,[1,0]),W(w,k,"zIndex",a,0,0,[t.ZIndex.Qi+1],m),h!=n.RIGHT&&h!=n.LEFT||(W(w,k,"opacity",a,0,.8,[1,1]),W(w,k,"opacity",a,.8,.2,[0,0]),W(w,_,"opacity",a,0,.2,[0,0]),W(w,_,"opacity",a,.2,.8,[1,1])),h==n.RIGHT?(W(w,k,"translate3dX",a,0,1,[0,-b.width]),W(w,k,"transformOriginX",a,0,0,[b.width],m),W(w,k,"rotate3dY",a,0,1,[0,-90]),W(w,_,"translate3dX",a,0,1,[v.width,0]),W(w,_,"transformOriginX",a,0,0,[0],m),W(w,_,"rotate3dY",a,0,1,[90,0])):h==n.BOTTOM?(W(w,k,"perspectiveOriginY",a,0,1,[b.height,0]),W(w,k,"translate3dY",a,0,1,[0,-b.height]),W(w,k,"transformOriginY",a,0,0,[b.height],m),W(w,k,"rotate3dX",a,0,1,[0,90]),W(w,_,"perspectiveOriginY",a,0,1,[T.height,0]),W(w,_,"translate3dY",a,0,1,[v.height,0]),W(w,_,"transformOriginY",a,0,0,[0],m),W(w,_,"rotate3dX",a,0,1,[-90,0])):h==n.LEFT?(W(w,k,"translate3dX",a,0,1,[0,b.width]),W(w,k,"transformOriginX",a,0,0,[0],m),W(w,k,"rotate3dY",a,0,1,[0,90]),W(w,_,"translate3dX",a,0,1,[-v.width,0]),W(w,_,"transformOriginX",a,0,0,[v.width],m),W(w,_,"rotate3dY",a,0,1,[-90,0])):(W(w,k,"perspectiveOriginY",a,0,1,[0,b.height]),W(w,k,"translate3dY",a,0,1,[0,b.height]),W(w,k,"transformOriginY",a,0,0,[0],m),W(w,k,"rotate3dX",a,0,1,[0,-90]),W(w,_,"perspectiveOriginY",a,0,1,[0,b.height]),W(w,_,"translate3dY",a,0,1,[-v.height,0]),W(w,_,"transformOriginY",a,0,0,[v.height],m),W(w,_,"rotate3dX",a,0,1,[90,0])),W(w,_,"resetTransform3d",a,1,0,[""]),W(w,k,"resetTransform3d",a,1,0,[""]);else if(r==V.WINDOW){if(W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,_,"scale3dX",a,0,1,[.4,1],d),W(w,_,"scale3dY",a,0,1,[.4,1],d),W(w,k,"zIndex",a,0,0,[t.ZIndex.qi+1],m),W(w,T,"opacity",a,0,1,[0,1]),W(w,x,"opacity",a,0,1,[1,0]),W(w,k,"opacity",a,0,0,[0],m),W(w,k,"cropNodesCount",a,0,1,[2]),h==n.VERTICAL){for(et=[],E=0;E<2;++E)et.push([[E/2*100,0],[(E+1)/2*100,0],[(E+1)/2*100,100],[E/2*100,100]]);W(w,k,"polygonsCropNodes",a,0,1,[et]),W(w,k,"xCropNodes",a,0,1,[[0,0],[-b.width,b.width]],p),W(w,k,"zCropNodes",a,0,1,[rt=[0,0],at=[b.width,b.width]],p),W(w,k,"transOrgXCropNodes",a,0,1,[[0,b.width],[b.width,0]],p),W(w,k,"transOrgZCropNodes",a,0,1,[[0,0],[-b.width/2,-b.width/2]],p),W(w,k,"rotateYCropNodes",a,0,1,[[0,0],[90,-90]],p)}else{for(et=[],E=0;E<2;++E)et.push([[0,E/2*100],[0,(E+1)/2*100],[100,(E+1)/2*100],[100,E/2*100]]);W(w,k,"polygonsCropNodes",a,0,1,[et]),W(w,k,"yCropNodes",a,0,1,[[0,0],[-b.height,b.height]],p),W(w,k,"zCropNodes",a,0,1,[rt=[0,0],at=[2*b.height,2*b.height]],p),W(w,k,"transOrgYCropNodes",a,0,1,[[0,b.height],[b.height,0]],p),W(w,k,"transOrgZCropNodes",a,0,1,[[0,0],[-b.height,-b.height]],p),W(w,k,"rotateXCropNodes",a,0,1,[[0,0],[90,-90]],p)}W(w,k,"opacityCropNodes",a,0,1,[ht=[1,1],ot=[0,0]]),W(w,k,"resetCropNodes",a,1,0,[2]),W(w,_,"resetTransform3d",a,1,0,[""])}else r==V.ORBIT?(W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,y,"opacity",a,0,1,[0,1]),W(w,x,"opacity",a,0,1,[1,0]),W(w,k,"zIndex",a,0,0,[t.ZIndex.Qi+1],m),h==n.RIGHT?(W(w,k,"translate3dX",a,0,.5,[0,-.55*b.width]),W(w,k,"translate3dZ",a,0,.5,[0,-.75*b.width]),W(w,k,"transformOriginX",a,0,.5,[b.width,1.05*b.width]),W(w,k,"transformOriginZ",a,0,.5,[0,0]),W(w,k,"rotate3dY",a,0,.5,[0,45]),W(w,k,"translate3dX",a,.5,.5,[-.55*b.width,-1.1*b.width]),W(w,k,"translate3dZ",a,.5,.5,[-.75*b.width,0]),W(w,k,"transformOriginX",a,.5,.5,[1.05*b.width,1.1*b.width]),W(w,k,"transformOriginZ",a,.5,.5,[0,0]),W(w,k,"rotate3dY",a,.5,.5,[45,90]),W(w,_,"translate3dX",a,0,.5,[1.1*v.width,.55*v.width]),W(w,_,"translate3dZ",a,0,.5,[0,-.75*v.width]),W(w,_,"transformOriginX",a,0,.5,[-.1*v.width,-.05*v.width]),W(w,_,"transformOriginZ",a,0,.5,[0,0]),W(w,_,"rotate3dY",a,0,.5,[-90,-45]),W(w,_,"translate3dX",a,.5,.5,[.55*v.width,0]),W(w,_,"translate3dZ",a,.5,.5,[-.75*v.width,0]),W(w,_,"transformOriginX",a,.5,.5,[-.05*v.width,0]),W(w,_,"transformOriginZ",a,.5,.5,[0,0]),W(w,_,"rotate3dY",a,.5,.5,[-45,0])):h==n.BOTTOM?(W(w,k,"translate3dY",a,0,.5,[0,-.55*b.height]),W(w,k,"translate3dZ",a,0,.5,[0,-.75*b.height]),W(w,k,"transformOriginY",a,0,.5,[b.height,1.05*b.height]),W(w,k,"transformOriginZ",a,0,.5,[0,0]),W(w,k,"rotate3dX",a,0,.5,[0,-45]),W(w,k,"translate3dY",a,.5,.5,[-.55*b.height,-1.1*b.height]),W(w,k,"translate3dZ",a,.5,.5,[-.75*b.height,0]),W(w,k,"transformOriginY",a,.5,.5,[1.05*b.height,1.1*b.height]),W(w,k,"transformOriginZ",a,.5,.5,[0,0]),W(w,k,"rotate3dX",a,.5,.5,[-45,-90]),W(w,_,"translate3dY",a,0,.5,[1.1*v.height,.55*v.height]),W(w,_,"translate3dZ",a,0,.5,[0,-.75*v.height]),W(w,_,"transformOriginY",a,0,.5,[-.1*v.height,-.05*v.height]),W(w,_,"transformOriginZ",a,0,.5,[0,0]),W(w,_,"rotate3dX",a,0,.5,[90,45]),W(w,_,"translate3dY",a,.5,.5,[.55*v.height,0]),W(w,_,"translate3dZ",a,.5,.5,[-.75*v.height,0]),W(w,_,"transformOriginY",a,.5,.5,[-.05*v.height,0]),W(w,_,"transformOriginZ",a,.5,.5,[0,0]),W(w,_,"rotate3dX",a,.5,.5,[45,0])):h==n.LEFT?(W(w,k,"translate3dX",a,0,.5,[0,.55*b.width]),W(w,k,"translate3dZ",a,0,.5,[0,-.75*b.width]),W(w,k,"transformOriginX",a,0,.5,[0,-.05*b.width]),W(w,k,"transformOriginZ",a,0,.5,[0,0]),W(w,k,"rotate3dY",a,0,.5,[0,-45]),W(w,k,"translate3dX",a,.5,.5,[.55*b.width,1.1*b.width]),W(w,k,"translate3dZ",a,.5,.5,[-.75*b.width,0]),W(w,k,"transformOriginX",a,.5,.5,[-.05*b.width,-.1*b.width]),W(w,k,"transformOriginZ",a,.5,.5,[0,0]),W(w,k,"rotate3dY",a,.5,.5,[-45,-90]),W(w,_,"translate3dX",a,0,.5,[-1.1*v.width,-.55*v.width]),W(w,_,"translate3dZ",a,0,.5,[0,-.75*v.width]),W(w,_,"transformOriginX",a,0,.5,[1.1*v.width,1.05*v.width]),W(w,_,"transformOriginZ",a,0,.5,[0,0]),W(w,_,"rotate3dY",a,0,.5,[0,45]),W(w,_,"translate3dX",a,.5,.5,[-.55*v.width,0]),W(w,_,"translate3dZ",a,.5,.5,[-.75*v.width,0]),W(w,_,"transformOriginX",a,.5,.5,[1.05*v.width,v.width]),W(w,_,"transformOriginZ",a,.5,.5,[0,0]),W(w,_,"rotate3dY",a,.5,.5,[45,0])):(W(w,k,"translate3dY",a,0,.5,[0,.55*b.height]),W(w,k,"translate3dZ",a,0,.5,[0,-.75*b.height]),W(w,k,"transformOriginY",a,0,.5,[0,-.05*b.height]),W(w,k,"transformOriginZ",a,0,.5,[0,0]),W(w,k,"rotate3dX",a,0,.5,[0,45]),W(w,k,"translate3dY",a,.5,.5,[.55*b.height,1.1*b.height]),W(w,k,"translate3dZ",a,.5,.5,[-.75*b.height,0]),W(w,k,"transformOriginY",a,.5,.5,[-.05*b.height,-.1*b.height]),W(w,k,"transformOriginZ",a,.5,.5,[0,0]),W(w,k,"rotate3dX",a,.5,.5,[45,90]),W(w,_,"translate3dY",a,0,.5,[-1.1*v.height,-.55*v.height]),W(w,_,"translate3dZ",a,0,.5,[0,-.75*v.height]),W(w,_,"transformOriginY",a,0,.5,[1.1*v.height,1.05*v.height]),W(w,_,"transformOriginZ",a,0,.5,[0,0]),W(w,_,"rotate3dX",a,0,.5,[-90,-45]),W(w,_,"translate3dY",a,.5,.5,[-.55*v.height,0]),W(w,_,"translate3dZ",a,.5,.5,[-.75*v.height,0]),W(w,_,"transformOriginY",a,.5,.5,[1.05*v.height,v.height]),W(w,_,"transformOriginZ",a,.5,.5,[0,0]),W(w,_,"rotate3dX",a,.5,.5,[-45,0])),W(w,_,"resetTransform3d",a,1,0,[""]),W(w,k,"resetTransform3d",a,1,0,[""])):r==V.FERRIS_WHEEL&&(W(w,_,"perspective",a,0,0,[v.width],m),W(w,_,"perspectiveOriginX",a,0,0,[.5*v.width],m),W(w,_,"perspectiveOriginY",a,0,0,[.5*v.height],m),W(w,y,"opacity",a,0,1,[0,1]),W(w,x,"opacity",a,0,1,[1,0]),W(w,k,"zIndex",a,0,0,[t.ZIndex.Qi+1],m),h==n.RIGHT?(W(w,k,"translate3dY",a,0,1,[0,b.height]),W(w,k,"translate3dZ",a,0,1,[0,.5*b.height]),W(w,k,"transformOriginX",a,0,0,[0],m),W(w,k,"transformOriginY",a,0,0,[0],m),W(w,k,"transformOriginZ",a,0,0,[0],m),W(w,k,"rotate3dX",a,0,1,[0,45]),W(w,k,"rotate3dZ",a,0,1,[0,10]),W(w,_,"translate3dX",a,0,1,[-v.width,0]),W(w,_,"translate3dY",a,0,1,[-2*v.height,0]),W(w,_,"translate3dZ",a,0,1,[-v.width,0]),W(w,_,"transformOriginX",a,0,0,[0],m),W(w,_,"transformOriginY",a,0,0,[0],m),W(w,_,"transformOriginZ",a,0,0,[0],m),W(w,_,"rotate3dX",a,0,1,[-45,0]),W(w,_,"rotate3dZ",a,0,1,[-40,0])):(W(w,k,"translate3dY",a,0,1,[0,b.height]),W(w,k,"translate3dZ",a,0,1,[0,.5*b.height]),W(w,k,"transformOriginX",a,0,0,[b.width],m),W(w,k,"transformOriginY",a,0,0,[0],m),W(w,k,"transformOriginZ",a,0,0,[0],m),W(w,k,"rotate3dX",a,0,1,[0,45]),W(w,k,"rotate3dZ",a,0,1,[0,-10]),W(w,_,"translate3dX",a,0,1,[v.width,0]),W(w,_,"translate3dY",a,0,1,[-2*v.height,0]),W(w,_,"translate3dZ",a,0,1,[-v.width,0]),W(w,_,"transformOriginX",a,0,1,[v.width,0]),W(w,_,"transformOriginY",a,0,0,[0],m),W(w,_,"transformOriginZ",a,0,0,[0],m),W(w,_,"rotate3dX",a,0,1,[-45,0]),W(w,_,"rotate3dZ",a,0,1,[40,0])),W(w,_,"resetTransform3d",a,1,0,[""]),W(w,k,"resetTransform3d",a,1,0,[""]));return w}}(AtomiAP),function(t){"use strict";t.formatMSString=function(t){var i,s,e;return s=((e=Math.round(t/1e3))-(i=e%60))/60,i=i>=10?""+i:"0"+i,(s=s>=10?""+s:"0"+s)+":"+i}}(window.AtomiAP=window.AtomiAP||{}),function(t,i){"use strict";var s=t.DisplayMode,e=t.createClass({$init:function(e){this.Hp={responsive:!1,slideWidth:500,slideHeight:800},this.bn=!1,this.Up=[],this.Bp=[],this.Nn=1,this.Fo=null,this.fe=null,this.Zp=null,this.zp=null,this.Gp=null,this.Vp=null,this.Wp=null,this.$p=null,this.Kp="",this.jp=i('\t\t\t\t<div class="ap-content-area">\t\t\t\t\t<div class="ap-stage" style="z-index: 1">\t\t\t\t\t\t<div class="ap-canvas" style="overflow:hidden; z-index: 1">\t\t\t\t\t\t\t<div class="ap-slides" style="transform-origin: 0% 0%; width: 100%; height: 100%; position: absolute; top: 0; left: 0"></div>\t\t\t\t\t\t\t<div class="ap-feedback-slides" style="transform-origin: 0% 0%; width: 100%; height: 100%; position: absolute; top: 0; left: 0; pointer-events: none;"></div>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t</div>')[0],this.loadingUi=new CanvasLoader(this.jp,e);var n=this;this.Qp={mode:s.AUTOFIT,prevMode:s.AUTOFIT,register:function(){var e=this;this.qp=function(){var r=t.fullscreen.fullscreenElement();if(r){var a=i(n.Kp)[0];r==a&&(i(a).addClass("ap-fullscreen"),requestAnimationFrame(function(){n.layout()}))}else i(n.Kp).removeClass("ap-fullscreen"),e.mode==s.FULLSCREEN?e.changeMode(e.prevMode):n.layout()},t.fullscreen.addEventListener("fullscreenchange",this.qp,!1)},unregister:function(){t.fullscreen.removeEventListener("fullscreenchange",this.qp,!1)},changeMode:function(e){if(this.mode!=e){var r=n.stage()[0];r&&(r.scrollLeft=r.scrollTop=0),this.prevMode=this.mode,this.mode=e,i(n).trigger("ui:ap-displayModeChanged",[e]),this.mode==s.FULLSCREEN?t.fullscreen.requestFullscreen(i(n.Kp)[0]):t.fullscreen.fullscreenElement()?t.fullscreen.exitFullscreen():n.layout()}}}},container:function(){return i(this.Kp)},stage:function(){return i(".ap-stage",i(this.Kp))},canvas:function(){return i(".ap-canvas",i(this.Kp))},contentArea:function(){return i(".ap-content-area",i(this.Kp))},slides:function(){return i(".ap-slides",this.Kp)},feedbackSlides:function(){return i(".ap-feedback-slides",this.Kp)},sidebar:function(){return i(".ap-side-bar",i(this.Kp))},sidebarExpand:function(){return i(".ap-side-bar-expand",i(this.Kp))},companyLogo:function(){return i(".ap-company-logo",i(this.Kp))},presenterInfo:function(){return i(".ap-presenter-info",i(this.Kp))},tocContainer:function(){return i(".ap-toc-container",i(this.Kp))},resourcesContainer:function(){return i(".ap-resources-container",i(this.Kp))},topbar:function(){return i(".ap-toolbar-top",i(this.Kp))},bottombar:function(){return i(".ap-toolbar-bottom",i(this.Kp))},toolbar:function(){return this.bottombar()},showToc:function(t){this.Zp&&(t?(this.Zp.show(),this.Zp.scrollToCurrentSlide()):this.Zp.hide(),2==this.Fo.TocStyle&&this.layout())},tocVisible:function(){return!(!this.Zp||!this.Zp.isShow())},showSidebar:function(t){t?(this.sidebar().show(),this.sidebarExpand().attr("sidebar-show",!0),this.tocVisible()&&this.Zp.scrollToCurrentSlide()):(this.sidebar().hide(),this.sidebarExpand().attr("sidebar-show",!1)),this.layout(),t&&"false"===this.sidebarExpand().attr("data-value")&&this.Tr(!0,!0)},sidebarVisible:function(){var t=this.sidebar();return t&&"none"!=t.css("display")},showResources:function(t){this.$p&&(t?this.$p.show():this.$p.hide())},resourcesVisible:function(){return this.$p&&this.$p.isShow()},autoHidePlayerBar:function(t){0==arguments.length?(this.Gp&&this.Gp.autoHide(),this.zp&&this.zp.autoHide()):(this.Gp&&this.Gp.isAutoHide()||this.zp&&this.zp.isAutoHide())!=t&&(this.Gp&&this.Gp.autoHide(t),this.zp&&this.zp.autoHide(t),this.layout())},showTopbar:function(t){this.Gp&&(t?this.Gp.show():this.Gp.hide(),this.layout())},topbarVisible:function(){return this.Gp&&this.Gp.visible()},showBottombar:function(t){this.zp&&(t?this.zp.show():this.zp.hide(),this.layout())},bottombarVisible:function(){return this.zp&&this.zp.visible()},showToolbar:function(t){this.showBottombar(t)},toolbarVisible:function(){return this.bottombarVisible()},isAutoFit:function(){return this.Qp.mode==s.AUTOFIT||this.Qp.mode==s.FULLSCREEN},getMaxContentSize:function(){var t,s,e,n,r,a,h=this.Fo.SideBarPos,o=this.topbar(),u=this.bottombar(),c=this.sidebar(),f=i(this.Kp),l=parseInt(this.contentArea().css("padding-left"));return t=0==c.length||"none"==c.css("display")||0==h||c[0].hasAttribute("collapse")?0:c[0].offsetWidth,s=0==o.length||"none"==o.css("display")?0:o.outerHeight(!0),e=0==u.length||"none"==u.css("display")?0:u.outerHeight(!0),a=f.width()-t-(t>0?3:2)*l,r=f.height()-s-e-2*l,n=a,void 0!==this.Jp&&a>this.Jp&&(a=this.Jp),{width:a,height:r,maxContainerWidth:n}},setMaxContentWidth:function(t){this.Jp=t},setSlideSize:function(i,s){this.Hp.slideWidth===i&&this.Hp.slideHeight===s||(t.logDebug("Change slide size from "+this.Hp.slideWidth+"x"+this.Hp.slideHeight+" to "+i+"x"+s),this.Hp.slideWidth=i,this.Hp.slideHeight=s,this.layout())},getContainerFitRect:function(){var t,s,e,n,r,a,h,o,u=this.Fo.SideBarPos,c=this.topbar(),f=this.bottombar(),l=this.sidebar(),d=this.contentArea(),p=i(this.Kp),v=d.width(),m=d.height(),g=d.position().top,b=parseInt(d.css("padding-left")),w=0;return 0!=l.length&&"none"!=l.css("display")&&0!=u||(v-=b),0==c.length||"none"==c.css("display")?(n=e=r=0,m-=b,w=g+=b):(n=c.outerWidth(!0),e=c.outerHeight(!0),r=g-(c.position().top+e)),0==f.length||"none"==f.css("display")?(h=a=o=0,m-=b):(h=f.outerWidth(!0),a=f.outerHeight(!0),o=f.position().top-(g+m)),t=Math.max(v,n,h),s=m+e+r+a+o,{x:(p.width()-t)/2,y:w,width:t,height:s}},layout:function(){if(this.bn){var t,e,n,r,a,h,o,u,c,f=this.Hp.slideWidth,l=this.Hp.slideHeight,d=this.Fo.SideBarPos,p=this.getMaxContentSize(),v=this.stage(),m=this.canvas(),g=this.contentArea(),b=this.sidebar(),w=this.sidebarExpand(),_=this.topbar(),y=this.bottombar(),T=i(this.Kp),k=parseInt(this.contentArea().css("padding-left")),x=this.Qp.mode,C=0==this.Fo.PlayerSize;if(this.Hp.responsive){if("100%"===l)t=p.width,e=p.height,v.css("overflow-y","hidden"),v.width(t).height(e),m.width("100%").height("100%"),m.css("transform",""),m.css("transform-origin",""),this.Nn=1;else{t=p.width,e=Math.min(p.height,l);var S=!1;if(x==s.FULLSCREEN&&p.maxContainerWidth>t){var O=p.maxContainerWidth/f;l*O>p.height&&(O=p.height/l),O>1&&(S=!0,e=l*O,t=f*O,v.css("overflow-x","hidden"),v.css("overflow-y","hidden"),v.width(t).height(e),m.width(f).height(l),m.css("transform","scale("+O+","+O+")"),m.css("transform-origin","0% 0%"),this.Nn=O)}S||(l!=e?v.css("overflow-y","auto"):v.css("overflow-y","hidden"),v.width(t).height(e),m.width("100%").height(l),m.css("transform",""),m.css("transform-origin",""),this.Nn=1)}m.trigger("ap-scaleChanged")}else(e=l*(O=p.width/f))>p.height&&(O=p.height/l),this.isAutoFit()||O<1?(t=f*O,e=l*O):(t=f,e=l,O=1),v.width(t).height(e),this.isAutoFit()?(v.css("overflow-x","hidden"),v.css("overflow-y","hidden"),m.width(f).height(l),m.css("transform","scale("+O+","+O+")"),m.css("transform-origin","0% 0%"),this.Nn=O):(f!=t?v.css("overflow-x","auto"):v.css("overflow-x","hidden"),l!=e?v.css("overflow-y","auto"):v.css("overflow-y","hidden"),m.width(f).height(l),m.css("transform",""),m.css("transform-origin",""),this.Nn=1),m.trigger("ap-scaleChanged");n=0==b.length||"none"==b.css("display")||0==d||b[0].hasAttribute("collapse")?0:b[0].offsetWidth,r=0==_.length||"none"==_.css("display")?0:_.outerHeight(!0),a=0==y.length||"none"==y.css("display")?0:y.outerHeight(!0),h=Math.min(T.width(),t+n+(n>0?3:2)*k),u=e+2*k,o=(T.width()-h)/2,c=r+(T.height()-u-r-a)/2,C?g.css({left:o,top:c}).outerWidth(h).outerHeight(u):g.css({left:o,top:r}).outerWidth(h).outerHeight(u),1==d?(v.css({left:n+(n>0?2:1)*k,top:k}),b.css({left:k,top:k,height:e})):2==d?(v.css({left:k,top:k}),b.css({right:k,top:k,height:e})):(v.css({left:k,top:k}),b.hide(),this.sidebarExpand().attr("sidebar-show",!1)),C?(_.css({left:0,top:0}).outerWidth(T.width()),y.css({left:0,top:T.height()-a}).outerWidth(T.width())):(_.css({left:o,top:0}).outerWidth(h),y.css({left:o,top:r+u}).outerWidth(h));var E=this.Fo.SideBarWidth;h=t+E+(E>0?3:2)*k,E<=2*(t-E-16)||h<T.width()?"none"!=w.css("display")&&this.Tr(!0):E>2*t?this.Tr(!1):this.Tr(),this.tv=this.getContainerFitRect(),this.Wp&&this.Wp.layout(this.tv),i(this).trigger("ui:ap-layout")}},create:function(s,e,n,r,a,o){var u=o.playerLayouts.topbar||"",c=o.playerLayouts.bottombar||"",l=o.playerLayouts.sidebar||"";if(this.destroy(),this.bn=!0,this.Kp=s,this.Fo=a,this.Hp=o,this.Hp.responsive&&(t.fullscreen.fullscreenEnabled()||(this.Fo.ShowDisplayModeBtn=!1)),this.Ju=o.playerIcons,this.iv=o.playbackRates?o.playbackRates:[.5,1,1.5,2],this.Up=[],this.Bp=[],this.sv=n,this.fe=new t.Locale(this.Hp.language,this.Hp.textDir),this.Gp=""!=u?new t.RLToolbar(this,u,!0):null,this.zp=""!=c?new t.RLToolbar(this,c,!1):null,this.contentArea().append(l),0==a.TocStyle||0==this.tocContainer().length?(this.Zp=null,this.tocContainer().remove()):(1==a.TocStyle&&(this.tocContainer().appendTo(this.container()),this.tocContainer().hide()),this.Zp=new t.RLToc(this,e,n),this.ev=function(){this.tocContainer()&&1==a.TocStyle&&this.tocVisible()&&this.Zp&&this.nv()},i(this).on("ui:ap-layout",this.ev)),!r||r.length<=0||0==this.resourcesContainer().length?(this.$p=null,this.resourcesContainer().remove()):(this.resourcesContainer().appendTo(this.container()),this.resourcesContainer().hide(),this.$p=new h(this,r),this.rv=function(){var t=this.resourcesContainer();if(t&&this.$p){var e=i(".ap-tool-resources",s);e&&this.hv(e,t,400,300)}},i(this).on("ui:ap-layout",this.rv)),!1===a.ShowTopBar&&this.showTopbar(!1),a.AutoHidePlayerBar){if(!this.ov){this.ov=new f(this.container()),this.ov.appendTo(this.container());var d=this;this.ov.onClick(function(){var t=d.Gp&&d.Gp.isAutoHide()||d.zp&&d.zp.isAutoHide();d.autoHidePlayerBar(!t)})}this.autoHidePlayerBar()}if(this.uv(),this.cv(this.Kp),this.Qp.register(),this.Qp.changeMode(this.Fo.DisplayMode),t.browser.macOS){var p=this;setTimeout(function(){p.layout()},100)}else this.layout()},uv:function(){var t=this,e=this.fe,n=i(this.Kp),r=i(this);r.on("ap-pause",function(s,r){i(".ap-tool-play",n).each(function(t){var s=i(this);"button"==s.attr("role")?s.attr("aria-pressed",r?"true":"false").attr("data-value",r).attr("title",e.text(r?"PlayPrez":"PausePrez")):"menuitemcheckbox"==s.attr("role")&&s.attr("aria-checked",r?"true":"false").attr("data-value",r)}),t.showPrezStateFeedback(r)}),r.on("ap-speed",function(t,s){i(".ap-tool-speed",n).each(function(t){i(this).attr("data-value",s),s=s<.75?.5:s<1.25?1:s<1.75?1.5:2,i(this).attr("data-value-range",s)})}),r.on("ap-mute",function(t,s){i(".ap-tool-sound",n).each(function(t){var n=i(this);"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"Unmute":"Mute")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),r.on("ap-cc",function(t,s){i(".ap-tool-cc",n).each(function(t){var n=i(this);"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"HideCC":"ShowCC")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),r.on("ap-sidebar",function(t,s){i(".ap-tool-sidebar",n).each(function(t){var n=i(this);"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"HideSidebar":"ShowSidebar")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),r.on("ui:ap-displayModeChanged",function(r,a){var h,o=t.Hp.responsive;o?h=a==s.FULLSCREEN?"ExitFullScreen":"FullScreen":a==s.ACTUAL_SIZE?h="ActualSize":a==s.AUTOFIT?h="AutoFit":a==s.FULLSCREEN&&(h="ExitFullScreen"),i(".ap-tool-displaymode",n).each(function(){i(this).attr("data-value",o?2:a).attr("title",e.text(h))})}),r.on("ap-progress",function(s,r,a,h){var o,u,c=t.Up;for(o=0,u=c.length;o<u;++o)c[o].setValue(h);void 0!==t.lv&&Math.round(h/1e3)==Math.round(this.lv/1e3)||(t.lv=h,i(".ap-tool-position",n).html(e.number(AtomiAP.formatMSString(h)))),t.dv!==r&&(t.dv=r,i(".ap-tool-slide-index",n).html(e.number(r+1)))}),r.on("ap-volume",function(i,s){var e,n,r=t.Bp;for(e=0,n=r.length;e<n;++e)r[e].setValue(s)}),r.on("ui:ap-pause",function(){t.pv=!0}),r.on("ap-toc",function(s,r){i(".ap-tool-toc",n).each(function(s){var n=i(this);t.Zp&&("button"==n.attr("role")?n.attr("aria-pressed",r?"true":"false").attr("data-value",r).attr("title",e.text(r?"HideToc":"ShowToc")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",r?"true":"false").attr("data-value",r))})}),r.on("ap-tool-multiple-language-cc",function(t,s){this.Hp.defautlLanguageCCIndex=s,i(".ap-tool-cc",n).each(function(t){var n=i(this);s=-1!=s,"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text("ClosedCaption")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),"Demo"==t.Hp.playMode&&t.stage().on("click",function(){r.trigger("ui:ap-pause")})},vv:function(){"Demo"==this.Hp.playMode&&this.stage().off("click"),i(this).off("ap-pause").off("ap-speed").off("ap-mute").off("ap-cc").off("ui:ap-displayModeChanged").off("ap-progress").off("ap-volume").off("ui:ap-layout")},mv:function(t){var s=this;return function(){i(s).trigger("ui:ap-speed",[t])}},gv:function(t,i){if(void 0!==i){var s="png";return 0==i?s="png":1==i?s="jpg":2==i?s="gif":3==i&&(s="svg"),this.Hp.resourceLocation+this.Hp.fileNamePrefix+"res_"+t+"."+s}return this.Hp.resourceLocation+this.Hp.fileNamePrefix+"res_"+t},cv:function(t){var e,n,r=this,a=this.Hp.responsive,h=i(t),o=this.fe,c=r.iv?r.iv:[];for(this.bv(t),i(".ap-tool-restart",h).on("click",function(){i(r).trigger("ui:ap-restart")}),i(".ap-tool-first",h).on("click",function(){i(r).trigger("ui:ap-first")}),i(".ap-tool-prev",h).on("click",function(){i(r).trigger("ui:ap-previous")}),i(".ap-tool-play",h).on("click",function(){i(r).trigger("ui:ap-pause")}),i(".ap-tool-next",h).on("click",function(){i(r).trigger("ui:ap-next")}),i(".ap-tool-last",h).on("click",function(){i(r).trigger("ui:ap-last")}),l=0,e=c.length;l<e;++l)n=c[l],i("."+r.wv(n),h).on("click",r.mv(n));i(".ap-tool-sound",h).on("click",function(){i(r).trigger("ui:ap-sound")}),i('.ap-tool-cc[role="button"]',h).on("click",function(){return r.Hp.multipleLanCCs&&r.Hp.multipleLanCCs.length>1?(r._v(this),!1):(i(r).trigger("ui:ap-cc"),!0)}),i('.ap-tool-cc[role="menuitemcheckbox"]',h).on("click",function(){return i(r).trigger("ui:ap-cc"),!0}),i(".ap-tool-about",h).on("click",function(){i(r).trigger("ui:ap-about")}),i(".ap-tool-actualsize",h).on("click",function(){r.Qp.changeMode(s.ACTUAL_SIZE)}),i(".ap-tool-autofit",h).on("click",function(){r.Qp.changeMode(s.AUTOFIT)}),i(".ap-tool-fullscreen",h).on("click",function(){r.Qp.changeMode(s.FULLSCREEN)}),i(".ap-tool-toc",h).on("click",function(){return i(r).trigger("ui:ap-toc"),1!=r.Fo.TocStyle}),i(".ap-tool-sidebar",h).on("click",function(){i(r).trigger("ui:ap-sidebar")}),i('.ap-tool-speed[role="button"]',h).on("click",function(){return r.yv(this),!1}),i('.ap-tool-displaymode[role="button"]',h).on("click",function(){return r.Hp.responsive?(r.Qp.mode==s.FULLSCREEN?r.Qp.changeMode(s.ACTUAL_SIZE):r.Qp.changeMode(s.FULLSCREEN),!0):(r.Tv(this),!1)}),i('.ap-tool-setting[role="button"]',h).on("click",function(){return r.kv(this),!1}),i(".ap-tool-resources",h).on("click",function(){return i(r).trigger("ui:ap-resources"),r.hv(this,r.resourcesContainer(),400,300),!1}),i(".ap-tool-exit",h).on("click",function(){i(r).trigger("ui:ap-exit")}),i(".ap-side-bar-expand",h).on("click",function(){"true"===r.sidebarExpand().attr("data-value")?r.Tr(!1,!0):r.Tr(!0,!0)});for(var f=0,l=0;l<this.sv.length;++l)f+=this.sv[l].duration;i(".ap-tool-progress",h).each(function(s){var e={followMouse:!1,max:f,slideInfos:r.sv};e.thumbnailPrefixPath=r.Hp.resourceLocation+r.Hp.fileNamePrefix;var n=new u(i(this),r.Fo,e);n.xv=t,n.fe=r.fe,r.Up.push(n),i(n).on("valueChanged",function(t,s){i(r).trigger("ui:ap-progress",[s])})}),i(".ap-tool-volume",h).each(function(s){var e=new u(i(this),i.extend({},r.Fo,{Navigation:!0}),{followMouse:!0});e.xv=t,e.fe=r.fe,r.Bp.push(e),i(e).on("valueChanging",function(t,s){i(r).trigger("ui:ap-volume",[s])}).on("valueChanged",function(t,s){i(r).trigger("ui:ap-volume",[s])})}),i(".ap-tool-duration",h).html(o.number(AtomiAP.formatMSString(f))),i(".ap-tool-slide-count",h).html(o.number(this.sv.length||0)),i(".ap-tool-projectname",h).html(r.Hp.projectName),i(".ap-tool-projectdesc",h).html(r.Hp.description),i(".ap-tool-displaymode",h).attr("data-value",a?"2":r.Qp.mode),i(".ap-presenter-info",h).each(function(t){if(r.Fo.ShowAuthorInfo||r.Fo.ShowAuthorImage||r.Fo.ShowCompanyLogo||r.Fo.ShowAuthorVideo){if(r.Fo.ShowCompanyLogo&&r.Hp.companyLogo){var s=r.gv(r.Hp.companyLogo[0],r.Hp.companyLogo[1]);i(this).append('<div class="ap-company-logo"><img src="'+s+'" /></div>')}if(r.Fo.ShowAuthorImage&&r.Hp.authorImage){s=r.gv(r.Hp.authorImage[0],r.Hp.authorImage[1]);i(this).append('<div class="ap-presenter-image"><img src="'+s+'" /></div>')}r.Fo.ShowAuthorVideo&&i(this).append('<div class="ap-presenter-video"></div>'),r.Fo.ShowAuthorInfo&&(r.Hp.authorName&&i(this).append('<div class="ap-presenter-name">'+r.Hp.authorName+"</div>"),r.Hp.authorDesc&&i(this).append('<div class="ap-presenter-desc">'+r.Hp.authorDesc+"</div>")),i(this).show()}else i(this).attr("hidden-by-default",!0),i(this).hide()}),i(".ap-tool-multiple-language-cc",h).on("click",function(){var t=i(this).attr("ap-multiple-language-index");t=parseInt(t),i(r).trigger("ui:ap-multiple-language-cc",t)})},bv:function(t){var s,e,n,r,a=i(t),h=this.fe,o=this.Fo,u=[["ap-tool-restart","Restart",o.ShowRestartBtn,["restart"]],["ap-tool-first","FirstSlide",o.ShowFirstBtn,["first"]],["ap-tool-prev","PreviousSlide",o.ShowPrevBtn,["prev"]],["ap-tool-play","PlayPrez",o.ShowPlayBtn,["play","pause"]],["ap-tool-next","NextSlide",o.ShowNextBtn,["next"]],["ap-tool-last","LastSlide",o.ShowLastBtn,["last"]],["ap-tool-speed","PlaybackSpeed",o.ShowSpeedBtn,["speed05","speed10","speed15","speed20"]],["ap-tool-sound","Mute",o.ShowVolumeBtn,["mute","sound"]],["ap-tool-about","About",o.ShowInfoBtn,["about"]],["ap-tool-cc","HideCC",o.ShowCCBtn,["cchide","ccshow"]],["ap-tool-toc","HideToc",o.ShowTocBtn,["tochide","tocshow"]],["ap-tool-sidebar","HideSidebar",o.ShowSidebarBtn,["sidebarhide","sidebarshow"]],["ap-tool-displaymode","AutoFit",o.ShowDisplayModeBtn,["actualsize","autofit","fullscreen"]],["ap-tool-setting","Settings",!0,["setting"]],["ap-tool-progress","PrezProgress",o.ShowProgressBar,[]],["ap-tool-volume","AdjustVolume",o.ShowVolumeBar,[]],["ap-tool-position","",o.ShowPosition,[]],["ap-tool-duration","",o.ShowPrezLen,[]],["ap-tool-resources","Resources",o.ShowResourcesBtn,["resources"]],["ap-tool-slide-index","",!0,[]],["ap-tool-slide-count","",!0,[]],["ap-tool-exit","Exit",o.ShowExitBtn,["exit"]]];for(s=0,e=u.length;s<e;++s)if((r=i("."+(n=u[s])[0],a)).hasClass("ap-button")||r.hasClass("ap-label")||r.hasClass("ap-slider")){if(r.attr("title",h.text(n[1])).attr("data-enabled",n[2]),n[2]||r.hide(),r.hasClass("ap-button")&&this.Ju){for(var c='<div class="ap-button-icon">',f=n[3],l=0;l<f.length;++l)c+=this.Ju[f[l]];c+="</div>",c+='<div class="ap-button-label">'+h.text(n[1])+"</div>",r.append(c)}(r.hasClass("ap-tool-play")||r.hasClass("ap-tool-cc")||r.hasClass("ap-tool-sidebar")||r.hasClass("ap-tool-sound")||r.hasClass("ap-tool-toc"))&&r.attr("aria-pressed","false"),r.hasClass("ap-button")&&r.attr("role","button"),r.hasClass("ap-label")&&r.attr("role","presentation"),r.hasClass("ap-slider")&&r.attr("role","slider")}this.Fo.ShowPosition&&this.Fo.ShowPrezLen?i(".ap-time-slash",i(t)).html("/"):i(".ap-time-slash",i(t)).html("")},Cv:function(t){var s,e=i(t),n=this.iv?this.iv:[];for(i(".ap-tool-restart",e).off("click"),i(".ap-tool-first",e).off("click"),i(".ap-tool-prev",e).off("click"),i(".ap-tool-play",e).off("click"),i(".ap-tool-next",e).off("click"),i(".ap-tool-last",e).off("click"),i(".ap-tool-speed",e).off("click"),r=0,a=n.length;r<a;++r)s=n[r],i("."+this.wv(s),e).off("click");i(".ap-tool-sound",e).off("click"),i(".ap-tool-about",e).off("click"),i(".ap-tool-cc",e).off("click"),i(".ap-tool-toc",e).off("click"),i(".ap-tool-sidebar",e).off("click"),i(".ap-tool-displaymode",e).off("click"),i(".ap-tool-actualsize",e).off("click"),i(".ap-tool-autofit",e).off("click"),i(".ap-tool-fullscreen",e).off("click"),i(".ap-tool-setting",e).off("click"),i(".ap-tool-resources",e).off("click"),i(".ap-tool-exit",e).off("click"),i(".ap-side-bar-expand",e).off("click"),i(".ap-tool-multiple-language-cc",e).off("click");var r,a,h,o=this.Up;for(this.Up=[],r=0,a=o.length;r<a;++r)(h=o[r]).xv==t?(i(h).off("valueChanged"),h.destroy()):this.Up.push(h);for(o=this.Bp,this.Bp=[],r=0,a=o.length;r<a;++r)(h=o[r]).xv==t?(i(h).off("valueChanged").off("valueChanging"),h.destroy()):this.Bp.push(h)},destroy:function(){this.Qp.unregister(),this.vv(),this.Cv(this.Kp),this.Zp&&(this.Zp.destroy(),this.Zp=null),this.zp&&(this.zp.destroy(),this.zp=null),this.Gp&&(this.Gp.destroy(),this.Gp=null),this.$p&&(this.$p.destroy(),this.$p=null),this.Sv(),this.contentArea().remove(),this.bn=!1},appendTo:function(t){i(t).append(this.jp),this.bn||i(this.jp).outerWidth(i(t).width()).outerHeight(i(t).height())},showMsg:function(i,s,e,n,r){void 0===r&&(r=[]),void 0===s&&(s=!0);var a=this.fe;this.Wp&&this.Wp.close();var h=this,o=new t.RLPopup(i,h);o.setOptions({isShowClose:s,overlay:!0,navItems:r,textDirection:h.Hp.textDir,closeText:a.text("Close")}),o.onShow(function(){h.Wp=o,e&&e()}),o.onClose(function(){h.Wp=void 0,n&&n()}),o.show(this.Kp,this.tv)},showAbout:function(t,i,s){var e=[],n="",r=this.fe;""!=t.Homepage&&(n='<a class="ap-about-homepage" href="'+t.Homepage+'" target="_blank" tabindex="-1">'+t.Homepage+"</a>");var a='<div style="line-height:1.8;padding:5px;"> \t\t\t\t\t<b>'+t.Name+"</b> \t\t\t\t\t<br />"+r.text("Author")+": <b>"+t.Author+"</b> \t\t\t\t\t<br />"+r.text("Copyright")+": <b>"+t.Copyright+"</b> \t\t\t\t\t<br />"+r.text("Homepage")+": <b>"+n+'</b> \t\t\t\t\t</div> \t\t\t\t\t<div style="line-height:1.8;border-top:solid 1px #DDDDDD;padding:5px;"> \t\t\t\t\t'+r.text("BuiltWith")+' \t\t\t\t\t<a class="ap-about-app-home" dir="ltr" href="'+t.AppHomePage+'" title="'+t.AppHomePage+'" target="_blank" tabindex = "-1">'+t.Generator+"</a> \t\t\t\t\t<br />Atomi Systems, Inc. \t\t\t\t</div>";""!=t.Homepage&&e.push(".ap-about-homepage"),e.push(".ap-about-app-home"),this.showMsg(a,!0,i,s,e)},showUnmuteHintMsg:function(){var t,s;s=this.stage(),i(this.Kp),s.append('<div id="UnmuteHint" class="ap-unmute-hint"><span>'+this.fe.text("ClickToUnmute")+"</span></div>"),t=i(".ap-unmute-hint",s),setTimeout(function(){t.fadeOut(400,function(){t.remove()})},3e3)},hideUnmuteHintMsg:function(){var t=i(".ap-unmute-hint",this.stage());t&&t.remove()},showPrezStateFeedback:function(t){var s,e=this.stage(),n=this;if(n.pv){n.pv=!1,n.Ov&&clearTimeout(n.Ov),n.Ev&&clearTimeout(n.Ev),i(".ap-prez-state-btn",e).remove(),s='<div class="ap-prez-state-btn" data-animating="false">'+n.Ju[t?"pause":"play"]+"</div>",e.append(s);var r=i(".ap-prez-state-btn",e);if(0!=r.length){var a=r.get(0);n.Ov=setTimeout(function(){a.setAttribute("data-animating","true"),n.Ov=void 0},100),n.Ev=setTimeout(function(){a.parentNode.removeChild(a),n.Ev=void 0},2e3)}}},hv:function(t,s,e,n){var r,a,h,o,u,c,f,l,d=this.container(),p=this.tv,v=i(t);r=Math.min(e,d.width()),a=Math.min(n,d.height()),h=v.offset().left+v.width()/2-r/2;for(var m=0;m<=1&&(u=v.offset().top-(d.offset().top+a),c=d.offset().top+d.height()-(v.offset().top+v.height()+a),f=d.offset().left+d.width()-(v.offset().left+v.width()+r),l=v.offset().left-(d.offset().left+r),u<0&&c<0&&f<0&&l<0);++m)a=d.offset().top+d.height()-(v.offset().top+v.height());u>=0?(o=v.offset().top-d.offset().top-a,h=Math.max(0,Math.min(h,p.x+p.width-r))):c>=0?(o=v.offset().top+v.height()-d.offset().top,h=Math.max(0,Math.min(h,p.x+p.width-r))):f>=0?(o=0,h=v.offset().left+v.width()+d.offset().left):(o=0,h=v.offset().left-d.offset().left-r),s.css({left:h,top:o,position:"absolute"}).outerWidth(r,!0).outerHeight(a,!0)},nv:function(){if(this.Zp&&this.tocVisible()){var t,s,e,n,r=this.container(),a=i(".ap-toc-content-wrapper",r),h=i(".ap-toc-container",r),o=i(".ap-toc-header",r),u=i(".ap-toc",r),c=this.topbar(),f=this.bottombar(),l=0==c.length||"none"==c.css("display")?0:c.outerHeight(!0),d=0==f.length||"none"==f.css("display")?0:f.outerHeight(!0),p=this.tv,v=h.outerHeight(!0)-h.innerHeight()+o.outerHeight(!0)-o.innerHeight(),m=h.outerWidth(!0)-h.innerWidth();t=Math.min(400,p.width-m)+m,s=Math.min(u.outerHeight(!0)+o.outerHeight(!0),p.height-d-l)+v,e=p.x+p.width-t,n=p.y+p.height-d-s,h.css({left:e,top:n,position:"absolute"}).outerWidth(t,!0).outerHeight(s,!0),a.css({"min-height":"0"}),s-v<=o.outerHeight(!0)?(a.css({overflow:""}),h.css({overflow:"auto"})):(a.css({overflow:"auto"}),h.css({overflow:""}))}},Iv:function(t,s,e){var n=this.container(),r=this;t.appendTo(n),t.attachEventHanlders(function(t){r.cv(t)}),t.show(s,e,function(){t.detachEventHandlers(function(t){r.Cv(t)}),i(r).off("ui:ap-layout.hideMenu")}),i(r).on("ui:ap-layout.hideMenu",function(){t.destroy()})},Pv:function(t){return t.toFixed(1)+"x"},wv:function(t){return"ap-tool-speed_"+t.toFixed(1).replace(".","_")},yv:function(t){var s=this.Rv("mnuspeed");if(s)s.destroy();else{var e,n,r,a=i(t).attr("data-value"),h=this.iv?this.iv:[];for(a=void 0==a?1:parseFloat(a),s=new o("mnuspeed",this.Ju,this),e=0,n=h.length;e<n;++e)r=parseFloat(h[e]),s.addRadioMenuItem(this.wv(r),this.Pv(r),a==r);this.Iv(s,t,!0)}},Tv:function(i){var e="mnudisplaymode",n=this.Rv(e);if(n)n.destroy();else{var r=this.fe;(n=new o(e,this.Ju,this)).addRadioMenuItem("ap-tool-actualsize",r.text("ActualSize"),this.Qp.mode==s.ACTUAL_SIZE),n.addRadioMenuItem("ap-tool-autofit",r.text("AutoFit"),this.Qp.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&n.addRadioMenuItem("ap-tool-fullscreen",r.text("FullScreen"),this.Qp.mode==s.FULLSCREEN),this.Iv(n,i,!0)}},_v:function(t){var s="mnumultiplelanguagecc",e=this.Rv(s);if(e)e.destroy();else{var n=this.fe,r=this.Hp,a=r.multipleLanCCs,h=r.defautlLanguageCCIndex,u=(e=new o(s,this.Ju,this)).addRadioMenuItem("ap-tool-multiple-language-cc",n.text("HideCC"),-1==h);i(u).attr("ap-multiple-language-index",-1);for(var c=0,f=a.length;c<f;++c)u=e.addRadioMenuItem("ap-tool-multiple-language-cc",a[c],h==c),i(u).attr("ap-multiple-language-index",c);this.Iv(e,t,!0)}},Mv:function(t){return this.Nv?this.Nv.push(t):this.Nv=[t],this},Rv:function(t){if(this.Nv)for(var i=0;i<this.Nv.length;++i)if(this.Nv[i].id()==t)return this.Nv[i];return null},Av:function(t){if(this.Nv){var i=this.Nv.indexOf(t);i>=0&&this.Nv.splice(i,1)}return this},Sv:function(){if(this.Nv)for(;this.Nv.length;)this.Nv[this.Nv.length-1].destroy();return this},kv:function(e){var n="mnusetting",r=this.Rv(n);if(r)r.destroy();else{var a=this.container(),h=this.fe,u=this,c=this.Hp.responsive;r=new o(n,u.Ju,this);var f=[];u.Hp.multipleLanCCs&&u.Hp.multipleLanCCs.length>1&&(f=u.Hp.multipleLanCCs.slice());var l=i(e).closest(".ap-toolbar,.ap-sidebar",a);i(".ap-button",l).each(function(){var e=i(this);"false"!=e.attr("data-enabled")&&"none"==e.css("display")&&["ap-tool-first","ap-tool-prev","ap-tool-next","ap-tool-last","ap-tool-about","ap-tool-restart","ap-tool-exit","ap-tool-play","ap-tool-cc","ap-tool-sound","ap-tool-speed","ap-tool-displaymode"].forEach(function(n){if(e.hasClass(n)){var a="";switch(n){case"ap-tool-first":case"ap-tool-prev":case"ap-tool-next":case"ap-tool-last":case"ap-tool-about":case"ap-tool-restart":case"ap-tool-exit":r.addMenuItem(n,e.attr("title"));break;case"ap-tool-play":case"ap-tool-sound":a||("ap-tool-play"==n?a="PausePrez":"ap-tool-sound"==n&&(a="Mute")),r.addToggleMenuItem(n,h.text(a),"true"==e.attr("aria-pressed"));break;case"ap-tool-cc":if(a||(a="ClosedCaption"),f.length){var l=u.Hp.defautlLanguageCCIndex,d=new o("mnumultiplelanguagecc",u.Ju);d.addMenuHeaderItem(h.text("ClosedCaption"));var p=d.addRadioMenuItem("ap-tool-multiple-language-cc",h.text("HideCC"),-1==l);i(p).attr("ap-multiple-language-index",-1);for(var v=0,m=f.length;v<m;++v)p=d.addRadioMenuItem("ap-tool-multiple-language-cc",f[v],l==v),i(p).attr("ap-multiple-language-index",v);r.addSubMenuItem(n,e.attr("title"),d)}else r.addToggleMenuItem(n,h.text(a),"true"==e.attr("aria-pressed"));break;case"ap-tool-speed":var g,b,w=e.attr("data-value"),_=u.iv?u.iv:[];w=void 0==w?1:parseFloat(w);var y=new o("mnuspeed",u.Ju);for(y.addMenuHeaderItem(h.text("PlaybackSpeed")),v=0,g=_.length;v<g;++v)b=parseFloat(_[v]),y.addRadioMenuItem(u.wv(b),u.Pv(b),w==b);r.addSubMenuItem(n,e.attr("title"),y);break;case"ap-tool-displaymode":if(c)t.fullscreen.fullscreenEnabled()&&(u.Qp.mode==s.FULLSCREEN?r.addToggleMenuItem("ap-tool-autofit",h.text("FullScreen"),!0):r.addToggleMenuItem("ap-tool-fullscreen",h.text("FullScreen"),!1));else{var T=new o("mnudisplaymode",u.Ju);T.addMenuHeaderItem(h.text("DisplayMode")),T.addRadioMenuItem("ap-tool-actualsize",h.text("ActualSize"),u.Qp.mode==s.ACTUAL_SIZE),T.addRadioMenuItem("ap-tool-autofit",h.text("AutoFit"),u.Qp.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&T.addRadioMenuItem("ap-tool-fullscreen",h.text("FullScreen"),u.Qp.mode==s.FULLSCREEN),r.addSubMenuItem(n,e.attr("title"),T)}}}})}),this.Iv(r,e,!0)}},Tr:function(t,s){if(!0!==this.Dv){var e=this.sidebar(),n=this.presenterInfo(),r=this.tocContainer(),a=this.sidebarExpand();if(0==arguments.length)return 1==this.Fo.SideBarPos?(h="none"!==e[0].style.display&&"true"!==e.attr("collapse")?e[0].offsetLeft+e[0].clientWidth:0,e[0].parentNode&&h>e[0].parentNode.clientWidth&&(h=e[0].parentNode.clientWidth)):""!==(h="none"!==e[0].style.display&&"true"!==e.attr("collapse")?e[0].offsetLeft:"")&&h<0&&(h=0),void a.css({left:h});if(t){var h;if(n.attr("hidden-by-default")||n.show(),2==this.Fo.TocStyle&&("false"!==r.attr("toc-show")&&r.show(),r.attr("sidebar-expand",!0)),e.attr("position",1==this.Fo.SideBarPos?"left":"right"),s)e.attr("collapse",!1),1==this.Fo.SideBarPos?(h=e[0].offsetLeft+e[0].clientWidth,e[0].parentNode&&h>e[0].parentNode.clientWidth&&(h=e[0].parentNode.clientWidth)):(h=e[0].offsetLeft)<0&&(h=0),a.css({left:h});else e.removeAttr("collapse");a.attr({"icon-type":1==this.Fo.SideBarPos?"left":"right",title:this.fe.text("HideSidebar"),"data-value":"true"}),s||a.hide(),i(this).trigger("ui:ap-expand-sidebar",[!0]),this.Dv||(this.Dv=!0)}else n.hide(),2==this.Fo.TocStyle&&(r.hide(),r.attr("sidebar-expand",!1)),a.show(),e.attr({collapse:!0,position:1==this.Fo.SideBarPos?"left":"right"}),a.css("left",""),a.attr({"icon-type":1==this.Fo.SideBarPos?"right":"left",title:this.fe.text("ShowSidebar"),"data-value":"false"}),this.Dv||(this.Dv=!0);1==this.Dv&&(this.layout(),this.Dv=void 0)}},updateTocEntries:function(t){this.Zp&&this.Zp.updateEntries(t)}}),n=t.createClass({$init:function(t,i){this.Hp={isShowClose:!0,overlay:!0,navItems:[],textDirection:"ltr",closeText:"Close",showCallback:void 0,closeCallback:void 0},this.Yv=null,this.Xv=null,this.Lv=null,this.Fv=null,this.Hv=t,this.Uv=i,this.Uv&&this.Uv.Mv(this)},Bv:function(){var t='\t\t\t\t\t<div class="ap-popup"> \t\t\t\t\t\t<div class="ap-popup-content"> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-popup-footer"> \t\t\t\t\t\t\t<a href="#" class="ap-popup-close" role="button" title="'+this.Hp.closeText+'"> \t\t\t\t\t\t\t</a> \t\t\t\t\t\t</div> \t\t\t\t\t</div>';this.Yv=i(t),this.Xv=i(".ap-popup-close",this.Yv),this.Lv=i(".ap-popup-content",this.Yv),"rtl"==this.Hp.textDirection&&(i(".ap-popup-content",this.Yv).attr("dir",this.Hp.textDirection).css("text-align","right"),i(".ap-popup-footer",this.Yv).attr("dir",this.Hp.textDirection).css("text-align","left")),this.Lv.append(this.Hv);for(var s=0;s<this.Hp.navItems.length;++s)this.Hp.navItems[s]=i(this.Hp.navItems[s],this.Yv)},Zv:function(){0!=this.Hp.overlay&&(this.Fv=i('<div class="ap-popup-hide ap-popup-overlay"></div>'))},setOptions:function(t){i.extend(this.Hp,t)},getDom:function(){return this.Yv},show:function(t,s){this.Kp=t,this.zv=i(this.Kp).attr("tabindex"),i(this.Kp).attr("tabindex",1),s||(s={x:0,y:0,width:i(t).outerWidth(),height:i(t).outerHeight()}),this.Bv(),this.Zv(),i(this.Kp).append(this.Yv),0==this.Hp.isShowClose&&i(".ap-popup-footer",this.Yv).hide(),this.Yv.attr("role","dialog"),this.showOverlay(),this.layout(s),this.Hp.showCallback&&this.Hp.showCallback();var e=this,n=this.Hp.navItems,r=-1;this.Hp.isShowClose&&(this.Xv.click(function(){e.close()}),n.push(this.Xv),r=n.length-1,this.Xv.attr("tabindex","0"),this.Xv.focus()),i(this.Kp).bind("mousedown.popup",function(){return i(this).focus(),!1}).bind("keydown.popup",function(t){switch(t.which){case 9:if(n.length>0){t.stopPropagation(),t.preventDefault();var i=!1;if(r>=0&&r<=n.length-1){var s=n[r];0==s.attr("tabindex")&&(i=!0,s.attr("tabindex","-1"),s.blur())}r<0||r>n.length-1?r=0:(r+=i?t.shiftKey?-1:1:0)<0?r=n.length-1:r>n.length-1&&(r=0);var a=n[r];a.attr("tabindex","0"),a.focus()}break;case 27:t.stopPropagation(),t.preventDefault(),e.close();break;case 13:case 32:for(var h=0;h<n.length;++h)if(t.target==n[h][0]){t.stopPropagation();break}}}).focusin(function(){if(!(n.length<=0)){(r<0||r>n.length-1)&&(r=0);var t=n[r];t.get(0)!==document.activeElement&&(t.attr("tabindex","0"),t.focus())}});for(var a=0;a<n.length;++a)n[a].focus(function(t){for(var s=0;s<n.length;++s)if(this==n[s]){r=s;break}i(this).attr("tabindex","0")}).blur(function(t){i(this).attr("tabindex","-1")});i(this.Kp).focus()},showOverlay:function(){0!=this.Hp.overlay&&(i(this.Kp).append(this.Fv),this.Fv.hide().addClass("ap-popup-overlayBG").fadeIn(200))},hideOverlay:function(){if(0!=this.Hp.overlay){var t=this;this.Fv.fadeOut(200,function(){t.Fv.removeClass("ap-popup-overlayBG"),t.Fv.addClass("ap-popup-hide"),t.Fv.remove()})}},close:function(){this.Yv.remove(),this.hideOverlay(),this.Hp.closeCallback&&this.Hp.closeCallback(),i(this.Kp).unbind("keydown.popup").unbind("focus.popup").unbind("mousedown.popup"),i(this.Kp).attr("tabindex",this.zv),this.Uv&&this.Uv.Av(this)},onClose:function(t){this.Hp.closeCallback=t},onShow:function(t){this.Hp.showCallback=t},layout:function(t){this.Fv.width(t.width).height(t.height),this.Fv.css({left:t.x,top:t.y});var s=Math.min(.5*t.width,370),e=i(".ap-popup-content",this.Yv).innerHeight()+i(".ap-popup-footer",this.Yv).innerHeight()+10;this.Yv.css({width:s,height:e});var n=t.x+(t.width-s)/2-20,r=t.y+(t.height-e)/2-20;this.Yv.css({left:n,top:r})},destroy:function(){this.close()}}),r=t.createClass({$init:function(t){this.ha="",this.Gv=-1,this.Vv="",this.Wv="",this.$v=0,this.Kv=!0,this.vp=t,this.jv=[],this.Qv=!1,this.Os=!1,this.Yv=null},qv:function(){var t,i,s=this.jv;for(this.Qv=!0,this.Os=!1,t=0,i=s.length;t<i;++t)s[t].Qv||(this.Qv=!1),s[t].Os&&(this.Os=!0);this.Yv&&this.Yv.attr("data-status",this.Os?"current":this.Qv?"completed":"incomplete"),this.vp&&this.vp.qv()},Jv:function(){this.Yv&&this.Yv.attr("data-status",this.Os?"current":this.Qv?"completed":"incomplete"),this.vp&&this.vp.qv()},setCompleted:function(t){this.Qv=t,this.Jv()},setCurrent:function(t){this.Os=t,this.Jv()},getChildIndex:function(t){var i,s,e=this.jv;for(i=0,s=e.length;i<s;++i)if(e[i].ha==t.ha)return i;return-1},hasChildren:function(){return this.jv.length>0},isSlide:function(){return this.Gv>=0},getExpandIconDom:function(){return i(".ap-toc-entry-icon",this.Yv)}}),a=t.createClass({$init:function(t,s,e){this.Uv=t,this.sm=[],this.em=null,this.nm=null,this.rm=t.tocContainer(),this.Kp=t.Kp,this.fe=t.fe,this.am={},this.sv=e;for(var n=0;n<e.length;++n)e[n].thumb&&(this.am[e[n].id]=[e[n].ti,e[n].size]);var r='<div class="ap-toc-header"> \t\t\t\t\t\t\t<div class="ap-toc-header-text">'+this.fe.text("Toc")+'</div> \t\t\t\t\t\t\t<div class="ap-button ap-tool-toc-close"></div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-toc-content-wrapper" style="overflow:auto;"> \t\t\t\t\t\t\t<table class="ap-toc" role="treegrid" aria-readonly="true" tabindex="0" border="0"></table> \t\t\t\t\t\t</div>';for(this.rm.append(r),this.hm=i(".ap-toc",this.rm),this.om=i(".ap-tool-toc-close",this.rm),this.om.append(t.Ju.closepane),this.om.attr("role","button").attr("title",this.fe.text("Close")),this.om.on("click",function(){t.tocVisible()&&i(t).trigger("ui:ap-toc")}),2==t.Fo.TocStyle&&(this.om.hide(),this.rm.attr("toc-show",!0)),this.um(s),n=0;n<this.sm.length;++n)this.cm(this.sm[n],0);this.pc(),this.fm();var a=this;this.lm=function(t,i,s,e){i<0||s<0||a.setCurrentEntry(s)},this.dm=function(t,i,s){a.setCompletedEntry(i,s)},i(t).on("ap-progress.toc",this.lm),i(t).on("ap-slideCompleted.toc",this.dm)},updateEntries:function(t){this.pm(),this.sm=[],this.em=null,this.nm=null,this.hm.empty(),this.um(t);for(var i=0;i<this.sm.length;++i)this.cm(this.sm[i],0);if(void 0!=this.mm){var s=this.mm;this.mm=void 0,this.setCurrentEntry(s)}this.pc(),this.fm()},gm:function(t,i){if(t.s==i.id&&t.f)t.t=i.title;else for(var s=0,e=t.c.length;s<e;++s)this.gm(t.c[s],i)},fm:function(){var t,i,s,e=this.Uv;if(e)if(1==e.Fo.ShowMaxTocLevel)for(t=0,i=this.sm.length;t<i;++t)s=this.sm[t],this.bm(s);else for(t=0,i=this.sm.length;t<i;++t)s=this.sm[t],this.wm(s)},destroy:function(){var t=i(this.Uv);this.om.off("click"),this.om=null;var s=[];this._m(s,null);for(var e=0;e<s.length;++e){var n=s[e];n.isSlide()?n.Yv.off("click"):n.getExpandIconDom().off("click"),n.Yv.off("focusin").off("focusout")}t.off("ap-progress.toc",this.lm).off("ap-slideCompleted.toc",this.dm),this.sm=[],this.em=null,this.nm=null,this.hm.off("focus").off("focusout").off("keydown"),this.rm.remove(),this.rm=null,this.hm.remove(),this.hm=null},show:function(){if(this.rm){var t=this.rm.attr("sidebar-expand");void 0!=t&&"true"!=t||this.rm.show(),2==this.Uv.Fo.TocStyle&&this.rm.attr("toc-show",!0);var s=this;1==this.Uv.Fo.TocStyle&&(this.Uv.nv(),i(document).unbind("click.TocPane"),setTimeout(function(){i(document).bind("click.TocPane",function(t){i(t.target).closest(".ap-toc-container").is(s.rm)||(i(document).unbind("click.TocPane"),i(s.Uv).trigger("ui:ap-toc"))})},100))}},hide:function(){this.rm&&(this.rm.hide(),2==this.Uv.Fo.TocStyle&&this.rm.attr("toc-show",!1),1==this.Uv.Fo.TocStyle&&i(document).unbind("click.TocPane"))},isShow:function(){if(this.rm&&this.rm.length>0){var t=this.rm.attr("toc-show");return 2!=this.Uv.Fo.TocStyle||void 0==t?"none"!=this.rm.css("display"):"true"==t}return!1},ym:function(t){for(var i=0;i<this.sm.length;++i)if(this.sm[i].ha==t.ha)return i;return-1},_m:function(t,i){var s;s=null==i?this.sm:i.jv;for(var e=0;e<s.length;++e)t.push(s[e]),this._m(t,s[e])},Tm:function(t,i){var s;s=null==i?this.sm:i.jv;for(var e=0;e<s.length;++e){var n=s[e];if(n.Gv==t)return n;if(n.hasChildren()){var r=this.Tm(t,n);if(null!=r)return r}}return null},km:function(t){this.em&&(this.em.setCurrent(!1),this.em=null),t&&(this.em=t,this.em.setCurrent(!0))},xm:function(t){null!=this.nm&&(this.nm.Yv.attr("tabindex","-1"),this.nm=null),t.Yv.attr("tabindex","0"),t.Yv.focus()},Cm:function(t,i){var s,e=i.jv;for(s=0;s<e.length;++s)this.Cm(!1,e[s]);t||i.Yv.hide()},Sm:function(t,i){t||i.Yv.show();var s,e=i.jv;if("true"==i.Yv.attr("aria-expanded")||t)for(s=0;s<e.length;++s)this.Sm(!1,e[s])},bm:function(t){t.Yv.attr("aria-expanded","true"),t.Kv=!0,this.Sm(!0,t)},wm:function(t){t.Yv.attr("aria-expanded","false"),t.Kv=!1,this.Cm(!0,t)},Om:function(t){var i;return null==t.vp?(i=this.ym(t))>=0&&i<this.sm.length-1?this.sm[i+1]:null:(i=t.vp.getChildIndex(t))>=t.vp.jv.length-1?this.Om(t.vp):t.vp.jv[i+1]},Em:function(t){if(t.Kv&&t.hasChildren()){var i=t.jv[t.jv.length-1];return this.Em(i)}return t},Im:function(){if(null!=this.nm){var t=null;null!=(t=this.nm.Kv&&this.nm.hasChildren()?this.nm.jv[0]:this.Om(this.nm))&&(this.nm.Yv.blur(),this.nm=null,t.Yv.focus())}},Pm:function(){if(null!=this.nm){var t,i=null;if(null==this.nm.vp)(t=this.ym(this.nm))>0&&(i=this.Em(this.sm[t-1]));else i=(t=this.nm.vp.getChildIndex(this.nm))>0?this.Em(this.nm.vp.jv[t-1]):this.nm.vp;null!=i&&(this.nm.Yv.blur(),this.nm=null,i.Yv.focus())}},Rm:function(t){var i=0;if(t.isSlide())i+=t.$v;else for(var s=t.jv,e=0;e<s.length;++e)i+=this.Rm(s[e]);return i},Mm:function(t,i,s,e){t.Vv=i.t,t.Wv=i.n,t.Gv=i.s,t.Nm=i.ti,i.d?t.$v=i.d:t.$v=0,t.ha=""==s?e+"":s+"-"+e;var n=i.c;if(null!=n&&n.length>0){t.jv.length=0;for(var a=0;a<n.length;++a){var h=n[a],o=new r(t);this.Mm(o,h,t.ha,a+1),t.jv.push(o)}}},um:function(t){this.sm.length=0;for(var i=this.sv,s=0,e=i.length||0;s<e;++s)for(var n=0,a=t.length;n<a;++n)this.gm(t[n],i[s]);for(s=0;s<t.length;++s){var h=t[s],o=new r(null);this.sm.push(o),this.Mm(o,h,"",s+1)}},cm:function(s,e){var n,r,a=e+1,h=10*a,o=this.Uv,u=o.Ju,c=o.Fo.TocShowStateIcons,f=o.Fo.TocShowThumbnails,l=o.Fo.TocShowDuration;r='<tr class="ap-toc-entry" role="row" tabindex="-1" aria-level="'+a+'" data-status="incomplete"',s.hasChildren()?r+=' aria-expanded="'+s.Kv+'">':r+=">",r+="<td",!s.hasChildren()&&e>0&&(h+=10),r+=' style="padding-left: '+h+'px; width: 100%" ><div class="ap-toc-entry-content">',s.isSlide()?f&&void 0!=(n=this.am[s.Gv])&&(void 0!==n[1]?r+='<div class="ap-toc-entry-thumbnail" style="'+("background-color:white;display:block;width:"+n[1][0]+"px;height:"+n[1][1]+"px;")+'"></div>':r+='<img class="ap-toc-entry-thumbnail" src="'+(o.Hp.resourceLocation+o.Hp.fileNamePrefix+"thumb_"+n[0]+".jpg")+'"/>'):r+='<div class="ap-toc-entry-icon">'+u.collapsed+u.expanded+"</div>",r+='<div class="ap-toc-entry-content-text">',s.Wv&&s.Wv.length>0&&(r+='<div style="display:table-cell;">'+s.Wv+"&nbsp;</div>"),r+='<div style="display:table-cell;">'+s.Vv+"</div>",r+="</div>",r+="</div></td>",c&&(r+='<td><div class="ap-toc-entry-status-icon">'+u.current+u.completed+"</div></td>"),l&&(r+='<td class="ap-toc-entry-duration">'+t.formatMSString(this.Rm(s))+"</td>"),r+="</tr>",s.Yv=i(r),this.hm.append(s.Yv);for(var d=0;d<s.jv.length;++d)this.cm(s.jv[d],a)},pc:function(){var t=[];this._m(t,null);for(var s=this,e=0;e<t.length;++e){!function(t){t.isSlide()?t.Yv.on("click",function(){i(s.Uv).trigger("ui:ap-showSlide",[t.Gv])}):t.getExpandIconDom().on("click",function(){t.Kv?s.wm(t):s.bm(t)}),t.Yv.on("focusin",function(){s.hm.attr("tabindex",-1),t.Yv.attr("tabindex","0"),s.nm=t}),t.Yv.on("focusout",function(){t.Yv.attr("tabindex","-1"),s.nm=null})}(t[e])}this.hm.on("focus",function(){var t=[];s._m(t),t.length>0&&(s.xm(t[0]),s.hm.attr("tabindex",-1))}).on("focusout",function(){null==s.nm&&s.hm.attr("tabindex",0)}).on("keydown",function(t){switch(t.which){case 13:if(null!=s.nm)return i(s.Uv).trigger("ui:ap-showSlide",[s.nm.Gv]),!1;break;case 39:if(null!=s.nm)return 0==s.nm.Kv&&s.nm.hasChildren()?s.bm(s.nm):s.nm.hasChildren()&&s.Im(),!1;break;case 37:if(null!=s.nm)return s.nm.Kv&&s.nm.hasChildren()?s.wm(s.nm):null!=s.nm.vp&&s.xm(s.nm.vp),!1;break;case 40:if(null!=s.nm)return s.Im(),!1;break;case 38:if(null!=s.nm)return s.Pm(),!1}})},pm:function(){var t=[];this._m(t,null);for(var i=0;i<t.length;++i){var s=t[i];s.isSlide()?s.Yv.off("click"):s.getExpandIconDom().off("click"),s.Yv.off("focusin").off("focusout")}this.sm=[],this.em=null,this.nm=null,this.hm.off("focus").off("focusout").off("keydown")},setCompletedEntry:function(t,i){var s=this.Tm(t);null!=s&&s.setCompleted(i)},setCurrentEntry:function(t){if(void 0===this.mm||this.mm!==t){var i=this.Tm(t);null!=i&&this.km(i);var s=this.Uv;this.mm=t,s.Fo.AutoScroll&&this.scrollToCurrentSlide()}},scrollToCurrentSlide:function(){if(null!=this.em){var t=i(this.Kp),s=i(".ap-toc-content-wrapper",t);s[0].scrollTop+s[0].offsetHeight<this.em.Yv[0].offsetTop+this.em.Yv[0].offsetHeight?s[0].scrollTop=this.em.Yv[0].offsetTop+this.em.Yv[0].offsetHeight-s[0].clientHeight:this.em.Yv[0].offsetTop<s[0].scrollTop&&(s[0].scrollTop=this.em.Yv[0].offsetTop)}}}),h=t.createClass({$init:function(t,s){this.Uv=t,this.Am=-1,this.Dm=t.resourcesContainer(),this.Dm.hide(),this.Kp=t.Kp,this.Ym=s;var e='<div class="ap-resources-pane-header">'+s[s.length-1]+'</div>\t\t\t\t\t\t<div class="ap-resources-pane-content"> \t\t\t\t\t\t\t<ol class="ap-resources-list"></ol> \t\t\t\t\t\t</div>';this.Dm.append(e),this.Xm=i(".ap-resources-list",this.Dm);for(var n=0;n<s.length-1;++n)this.cm(s[n]);this.sm=i("li",this.Xm).toArray(),this.pc()},destroy:function(){for(var t=0;t<this.sm.length;++t)i(this.sm[t]).off("focusin").off("focusout");this.Dm.off("keydown"),this.Dm.remove(),this.Dm=null,this.sm=[]},pc:function(){var t=this,s=this.Dm,e=this.sm;s.attr("tabinex",0),s.on("keydown",function(s){var n;return 13!=s.which&&32!=s.which||s.altKey||s.shiftKey||s.ctrlKey?27==s.which?(t.hide(),!1):9==s.which?(t.hide(),!1):38==s.which?((n=e[t.Am])&&i(n).attr("tabindex",-1),0==t.Am?t.Am=e.length-1:t.Am--,n=e[t.Am],i(n).focus().attr("tabindex",0),!1):40==s.which?((n=e[t.Am])&&i(n).attr("tabindex",-1),t.Am==e.length-1?t.Am=0:t.Am++,n=e[t.Am],i(n).focus().attr("tabindex",0),!1):void 0:((n=e[t.Am])&&i("a",i(n))[0].click(),!1)});for(var n=0;n<this.sm.length;++n)i(this.sm[n]).on("focusin",function(){s.attr("tabindex",-1),i(this).attr("tabindex",0)}).on("focusout",function(){i(this).attr("tabindex",-1)})},show:function(){this.Lm="click.ResourcesPane";var t=this;i(document).bind(t.Lm,function(s){i(s.target).closest(".ap-resources-container").is(t.Dm)||(t.hide(),i(document).unbind(t.Lm))}),t.Dm.show(),t.Dm.attr("tabindex",-1),this.Am<0&&(this.Am=0);var s=this.sm[this.Am];s?i(s).attr("tabindex",0).focus():t.Dm.attr("tabindex",0).focus()},hide:function(){this.Lm&&i(document).off(this.Lm),this.Dm&&this.Dm.hide()},isShow:function(){return this.Dm&&this.Dm.length>0&&"none"!=this.Dm.css("display")},cm:function(t){if(!(t.length<=1)){var i='<li><a href="';2==t.length?i+=t[1]:(i+=this.Uv.Hp.resourceLocation+this.Uv.Hp.fileNamePrefix+"res_"+t[1]+"."+t[2],i+='" download="'+t[0]+"."+t[2]),i+='" target="_blank">'+t[0],i+="</a></li>",this.Xm.append(i)}}}),o=t.createClass({$init:function(t,s,e){this.Ju=s,this.vp=null,this.Fm=[],this.Hm=null,this.Yv=i('<div id="'+t+'" class="ap-menu" tabindex="0" role="menu"></div>'),this.Yv.css("transform","translateZ(0px)"),this.Yv.hide(),this.Am=-1,this.pc(),this.Lm=null,this.Um=null,this.Uv=e,this.Uv&&this.Uv.Mv(this)},id:function(){return this.Yv[0].id},destroy:function(){null!=this.Lm&&(i(document).unbind(this.Lm),this.Lm=null),this.Bm&&(this.Bm(),this.Bm=null);for(var t=0;t<this.Fm.length;++t)this.Fm[t].submenu&&this.Fm[t].submenu.destroy(),this.Fm[t].dom.off("click").off("focusin").off("focusout").off("keydown");this.Fm=[],this.Yv&&(this.Yv.off("keydown"),this.Yv.remove(),this.Yv=null),this.Ju=null,this.Uv&&this.Uv.Av(this)},pc:function(){var t=this;this.Yv.on("keydown",function(i){var s,e=t.Fm;return 13!=i.which&&32!=i.which||i.altKey||i.shiftKey||i.ctrlKey?27==i.which?(t.vp?(t.hide(),t.vp.show(t.vp.Um,!0,t.vp.Bm)):t.destroy(),!1):9==i.which?(t.vp?(t.hide(),t.vp.show(t.vp.Um,!0,t.vp.Bm)):t.destroy(),!1):37==i.which?(t.vp&&(t.hide(),t.vp.show(t.vp.Um,!0,t.vp.Bm)),!1):39==i.which?((s=e[t.Am])&&s.submenu&&s.dom.trigger("click"),!1):38==i.which?((s=e[t.Am])&&s.dom.attr("tabindex",-1),0==t.Am?t.Am=e.length-1:t.Am--,(s=e[t.Am].dom).focus(),s.attr("tabindex",0),!1):40==i.which?((s=e[t.Am])&&s.dom.attr("tabindex",-1),t.Am==e.length-1?t.Am=0:t.Am++,(s=e[t.Am].dom).focus(),s.attr("tabindex",0),!1):void 0:((s=e[t.Am])&&s.dom.trigger("click"),!1)})},Zm:function(){for(var t=this;t.vp;)t=t.vp;return t},zm:function(t,i,s,e){var n=this;t.focusin(function(){n.Yv.attr("tabindex",-1),t.attr("tabindex",0)}).focusout(function(){t.attr("tabindex",-1)}),this.Yv.append(t),this.Fm.push({dom:t,id:i,state:s,submenu:e})},appendTo:function(t){this.Kp=t,this.Kp.append(this.Yv);for(var i=0;i<this.Fm.length;++i)this.Fm[i].submenu&&this.Fm[i].submenu.appendTo(t)},attachEventHanlders:function(t){t(this.Yv.get(0));for(var i=0;i<this.Fm.length;++i)this.Fm[i].submenu&&t(this.Fm[i].submenu.Yv.get(0))},detachEventHandlers:function(t){t(this.Yv.get(0));for(var i=0;i<this.Fm.length;++i)this.Fm[i].submenu&&t(this.Fm[i].submenu.Yv.get(0))},Gm:function(t){if(this.Yv&&this.Yv.has(t).length>0)return this;for(var i=0;i<this.Fm.length;++i)if(this.Fm[i].submenu){var s=this.Fm[i].submenu.Gm(t);if(s)return s}return null},show:function(t,s,e){this.Um=t;var n,r,a,h,o,u,c,f,l=i(t),d=this.Yv,p=this.Kp;n=d.outerWidth(!0),r=d.outerHeight(!0),a=l.offset().left+l.width()/2-n/2;for(var v=0;v<=1;++v)o=l.offset().top-(p.offset().top+r+10),u=p.offset().top+p.height()-(l.offset().top+l.height()+r+10),c=p.offset().left+p.width()-(l.offset().left+l.width()+n+10),f=l.offset().left-(p.offset().left+n+10),o<0&&u<0&&c<0&&f<0&&(r=Math.max(o,u)-10);if(o>=0?(h=l.offset().top-p.offset().top-r-10,a=Math.max(0,Math.min(a,p.width()-n-10))):u>=0?(h=l.offset().top+l.height()+10-p.offset().top,a=Math.max(0,Math.min(a,p.width()-n-10))):c>=0?(h=0,a=l.offset().left+l.width()+10-p.offset().left):(h=0,a=l.offset().left-p.offset().left-n-10),d.css({left:a,top:h}),d.show(),!this.vp){var m=this;m.Lm="click.RLMenu"+this.id(),i(document).bind(m.Lm,function(e){var n=i(e.target).closest(".ap-menu-item");if("menuitemcheckbox"!=n.attr("role")){var r=m.Gm(e.target);if(n.hasClass("ap-tool-menu-back")&&r&&r.vp)return r.hide(),void r.vp.show(t,s,r.vp.Bm);if("true"==n.attr("aria-haspopup")&&r)for(var a=0;a<r.Fm.length;++a)if(r.Fm[a].dom.get(0)==n.get(0))return r.hide(),void r.Fm[a].submenu.show(t,s);m.destroy()}})}if(-1==this.Am&&(this.Am=0),s){d.attr("tabindex",-1);var g=this.Fm[this.Am];g?(g.dom.attr("tabindex",0),g.dom.focus()):(d.attr("tabindex",0),d.focus())}else d.attr("tabindex",0),d.focus();this.Bm=e},hide:function(){this.Yv.attr("tabindex",-1),this.Yv.hide()},isShown:function(){return"none"!=this.Yv.css("display")},addMenuItem:function(t,s){var e=i('<div class="ap-menu-item '+t+'" role="menuitem" tabindex="-1" > \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+s+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-content"></div> \t\t\t\t\t\t</div>');return this.zm(e,t,!0),e},addToggleMenuItem:function(t,s,e){var n=i('<div class="ap-menu-item '+t+'" role="menuitemcheckbox" aria-checked="'+(1==e?"true":"false")+'" tabindex="-1" > \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+s+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-toggle-container"> \t\t\t\t\t\t\t\t<div class="ap-menu-item-toggle"> \t\t\t\t\t\t\t\t\t<div class="ap-menu-item-toggle-bar"></div>\t\t\t\t\t\t\t\t\t<div class="ap-menu-item-toggle-button"></div>\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</div>');return this.zm(n,t,e),n},addRadioMenuItem:function(t,s,e){var n=this.Ju,r=i('<div class="ap-menu-item '+t+'" role="menuitemradio" tabindex="-1" aria-checked="'+(e?"true":"false")+'"> \t\t\t\t\t\t\t<div class="ap-menu-item-icon">'+n.check+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+s+"</div> \t\t\t\t\t\t</div>");return this.zm(r),r},addSubMenuItem:function(t,s,e){var n=this.Ju,r=i('<div class="ap-menu-item '+t+'" role="menuitem" tabindex="-1" aria-haspopup="true"> \t\t\t\t\t\t<div class="ap-menu-item-label">'+s+'</div> \t\t\t\t\t\t<div class="ap-menu-item-icon">'+n.openmenu+"</div> \t\t\t\t\t</div>");return e.vp=this,this.zm(r,t,!0,e),r},addMenuHeaderItem:function(t){var s=this.Ju,e="ap-tool-menu-back",n=i('<div class="ap-menu-item '+e+'" role="menuitem" tabindex="-1" > \t\t\t\t\t\t\t<div class="ap-menu-item-icon">'+s.closemenu+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+t+"</div> \t\t\t\t\t\t</div>");return this.zm(n,e,!0),n}}),u=t.createClass({$init:function(s,e,n){this.Vm=n.scale||1,this.Wm=n.min||0,this.$m=n.max||100,this.Km=n.value||0,this.Vv=n.title||"",this.jm=n.isRTL||!1,this.sv=n.slideInfos||[],this.Qm=n.followMouse||!1,this.qm=n.thumbnailPrefixPath,this.Jm=this.sv.length>0,this.ig=-1,this.Yv=s,this.Fo=e,this.Yv.append('<div class="ap-slider-track"><div class="ap-slider-track-lower"></div></div>\t\t\t\t\t\t\t  <div class="ap-slider-thumb-containment"></div> \t\t\t\t\t\t\t  <div class="ap-slider-thumb-outer" style="position:absolute;height:100%;"><div class="ap-slider-thumb"></div></div>\t\t\t\t\t\t\t  <div class="ap-slider-tooltip"></div>'),this.sg=i(".ap-slider-track",this.Yv),this.eg=i(".ap-slider-track-lower",this.Yv),this.ng=i(".ap-slider-thumb-outer",this.Yv),this.rg=i(".ap-slider-tooltip",this.Yv),this.ag=i(".ap-slider-thumb-containment",this.Yv),this.hg=i(".ap-slider-thumb",this.Yv).outerWidth()/2,this.ng.width(2*this.hg),this.ag.css({position:"absolute",left:-this.hg+"px",top:"0px",width:"calc(100% + "+2*this.hg+"px)",height:"100%"}),this.Yv.attr({"aria-valuemin":this.Wm,"aria-valuemax":this.$m,"aria-valuenow":this.Km,title:this.Vv});for(var r=0,a=0,h=this.sv.length;a<h-1;++a)if(r+=this.sv[a].duration,e.ShowSegments){var o=i('<div class="ap-slider-marker"></div>'),u=r/(this.$m-this.Wm)*100;o.css("left","calc("+u+"% - "+o.width()/2+"px)"),this.sg.append(o)}var c=this,f=t.browser.mobile;f||this.Yv.mouseenter(function(t){c.Jm&&c.rg.show()}).mousemove(function(t){if(c.Jm){var s=t.pageX-i(this).offset().left;c.og(s)}}).mouseleave(function(t){c.Jm&&c.rg.hide()}),this.ng.css("touchAction","none").draggable({containment:c.ag,axis:"x",start:function(){c.mc=!0,c.ug=c.Km,f&&c.Jm&&c.rg.show()},drag:function(){var t=parseInt(i(this).css("left"))+c.hg;c.cg(t),f&&c.Jm&&c.og(t)},stop:function(){c.mc=!1;var t=parseInt(i(this).css("left"))+c.hg;c.cg(t,!0),f&&c.Jm&&c.rg.hide()}}).mousedown(function(t){return s.focus(),t.stopPropagation(),!0}),this.Yv.on("mousedown",function(t){return c.cg(t.pageX-i(this).offset().left,!0),t.stopPropagation(),!0}).on("keydown",function(t){var i=c.fg(c.Km);if(37==t.which||40==t.which)i+=-5;else if(39==t.which||38==t.which)i+=5;else if(36==t.which)i=0;else if(35==t.which)i=c.getWidth();else if(33==t.which)i+=20;else{if(34!=t.which)return!0;i-=20}c.cg(i,!0),t.stopPropagation(),t.preventDefault()})},destroy:function(){this.ng.off("mouseenter").off("mouseleave").off("mousedown").draggable("destroy"),this.ng=null,this.Yv.off("mousedown").off("keydown"),this.Yv.empty(),this.Yv=null,this.fe=null},og:function(t){var s,e=this.fe,n=this.dg(t),r=0,a=0;for(a=0,s=this.sv.length||0;a<s&&!(n<=(r+=this.sv[a].duration));++a);if(!(a>=this.sv.length)){if(a!=this.ig){this.ig=a;var h=this.sv[a].title,o="";o+='<div class="ap-slider-tooltip-timestamp">'+AtomiAP.formatMSString(n)+"</div>",this.qm&&this.sv[a].thumb&&!this.sv[a].size&&(o+='<img src="'+this.qm+"thumb_"+this.sv[a].ti+'.jpg" />'),o+="<div>"+(e?e.text("Slide"):"Slide")+" "+(a+1)+"/"+this.sv.length+"</div>",o+="<div>"+h+"</div>",this.rg.html(e?e.number(o):o)}else i(".ap-slider-tooltip-timestamp",this.rg).html(AtomiAP.formatMSString(n));this.rg.css({left:0,width:"auto"});var u=this.rg.width(),c=this.rg.height();this.rg.css({left:t-u/2,top:-c-40,width:u})}},pg:function(t){var i=t/this.getWidth()*100;this.ng.css("left","calc("+i+"% - "+this.hg+"px)"),this.eg.css("width",i+"%")},cg:function(t,s){var e=this.getWidth();t<0?t=0:t>e&&(t=e);var n=this.dg(t),r=!1,a=!1;if(!isNaN(n)){if(s){var h=this.ug;delete this.ug,void 0===h&&(h=this.Km),n!=h&&(a=!0)}n!=this.Km&&(r=!0),r&&i(this).trigger("valueChanging",[n]),a&&i(this).trigger("valueChanged",[n]),r&&(this.Km=n,this.Yv.attr("aria-valuenow",this.Km))}this.mc||r||(t=this.fg(this.Km)||0),this.pg(t)},dg:function(t){var i=this.getWidth();"rtl"==this.jm&&(t=i-t);var s=Math.round(this.Wm+t*(this.$m-this.Wm)/i);return s<this.Wm?s=this.Wm:s>this.$m&&(s=this.$m),s},fg:function(t){var i=this.getWidth(),s=Math.round((t-this.Wm)*i/(this.$m-this.Wm));return this.jm&&(s=i-s),s<0?s=0:s>i&&(s=i),s},setTooltip:function(t){t!=this.vg&&(this.vg=t,this.rg.html(t))},showTooltip:function(t){void 0===t&&(t=!0),t?this.rg.show():this.rg.hide()},enableTooltip:function(t){this.Jm=t},getValue:function(){return this.Km},setValue:function(t){if(this.mc&&!this.Qm)return!1;t<this.Wm?t=this.Wm:t>this.$m&&(t=this.$m),this.Km=t,this.Yv.attr("aria-valuenow",this.Km);var i=this.fg(t)||0;return this.pg(i),!0},setTitle:function(t){this.Yv.attr("title",t)},getMin:function(){return this.Wm},setMin:function(t){this.Wm=t,this.Yv.attr("aria-valuemin",this.Wm)},getMax:function(){return this.$m},setMax:function(t){this.$m=t,this.Yv.attr("aria-valuemax",this.$m)},getWidth:function(){return this.Yv.width()||.001},setWidth:function(t){this.Yv.width(t)}}),c=t.createClass({$init:function(t,s,e){this.Uv=t,this.mg=-1,this.gg=!1;var n=t.container();this.Yv=i(s),e?this.Yv.insertBefore(i(".ap-content-area",n)):this.Yv.appendTo(n),this.Yv.attr("unselectable","on").css("user-select","none").on("selectstart",!1),this.bg=i(".ap-button,.ap-slider",this.Yv).toArray(),this.wg(),this.Yv.show();var r=this;this._g=function(t){r.yg()},i(this.Uv).on("ui:ap-layout",this._g)},destroy:function(){i(this.Uv).off("ui:ap-layout",this._g),i.each(this.bg,function(t,s){i(s).off("focusin").off("focusout")}),this.Yv.off("mousedown").off("keydown").off("focus").off("focusout"),this.Yv.remove(),this.Yv=null},Tg:function(t){var s=i(t);return"none"!=s.css("display")&&"false"!=s.attr("data-enabled")},wg:function(){var t=this;this.Yv.on("mousedown",function(i){for(var s=0;s<t.bg.length;++s)i.target==t.bg[s]&&(t.mg=s);return i.stopPropagation(),!0}).on("keydown",function(s){if(9==s.which){var e,n=t.bg,r=!s.shiftKey,a=!0,h=-1,o=t.mg,u=n.length-1;do{if(r?++o:--o,o<0||o>u){h=r?0:u;break}if(t.Tg(n[o])){h=o,a=!1;break}}while(o>=0&&o<=u);if(a)return t.mg=h,!0;s.stopPropagation(),s.preventDefault(),t.mg>=0&&t.mg<=u&&(e=t.bg[t.mg],i(e).attr("tabindex","-1")),h>=0&&h<=u&&(t.mg=h,e=t.bg[t.mg],i(e).attr("tabindex","0").focus())}else if(32==s.which||13==s.which){var c=i(s.target);"button"==c.attr("role")&&(s.stopPropagation(),c.trigger("click",[s.which]))}});var s=function(){var s=0;return i.each(t.bg,function(i,e){if(t.Tg(e))return s=i,!1}),s};this.Yv.on("focus",function(e){var n=t.mg;if((n<0||n>=t.bg.length||!t.Tg(t.bg[n]))&&(t.mg=s(),n=t.mg),t.Yv.attr("tabindex","-1"),n>=0&&n<t.bg.length){var r=t.bg[n];return i(r).attr("tabindex","0").focus(),!1}return!0}),this.Yv.on("focusout",function(){t.gg||t.Yv.attr("tabindex","0")});for(var e=0;e<this.bg.length;++e)!function(e,n){i(e).on("focusin",function(r){t.Tg(e)?t.mg=n:t.mg=s(),t.Yv.attr("tabindex","-1"),t.gg=!0,i(this).attr("tabindex","0")}).on("focusout",function(s){t.gg=!1,i(this).attr("tabindex","-1")})}(this.bg[e],e)},yg:function(){var t=i("[data-priority]",this.Yv),s=i(".ap-tool-setting",this.Yv),e=parseInt(s.attr("data-priority"));t.each(function(t){var s=i(this);"false"!=s.attr("data-enabled")&&s.show()}),s.hide();for(var n,r,a,h,o,u=Number.MAX_SAFE_INTEGER||1e10;a=this.Yv.outerWidth(),n=!1,r=u,t.each(function(t){var s=i(this);return"false"==s.attr("data-enabled")||("none"==s.css("display")||(parseInt(s.attr("data-priority"))<r&&(r=parseInt(s.attr("data-priority"))),s.position().top,h=s.position().left,o=s.outerWidth(),h+o>a?(n=!0,!0):void 0))}),n&&r!=u;)e>r&&s.show(),t.each(function(t){var s=i(this);return"false"==s.attr("data-enabled")||("none"==s.css("display")||void(parseInt(s.attr("data-priority"))<=r&&s.hide()))})},show:function(){this.Yv.css("display","")},hide:function(){this.Yv.hide()},visible:function(){return this.Yv&&"none"!==this.Yv[0].style.display},isAutoHide:function(){return this.Yv.hasClass("ap-auto-hide")},autoHide:function(t){0==arguments.length||t?this.Yv.addClass("ap-auto-hide"):this.Yv.removeClass("ap-auto-hide")}}),f=t.createClass({$init:function(t){this.Yv=i('<div class="ap-floating-button"><div></div></div>');var s=this,e=!1;this.Yv.css("touchAction","none").draggable({containment:t}).mousedown(function(t){e=!1}).mousemove(function(t){e=!0}).mouseup(function(){e||s.kp&&s.kp(),e=!1})},appendTo:function(t){t.append(this.Yv)},show:function(){this.Yv.css("display","")},hide:function(){this.Yv.hide()},onClick:function(t){this.kp=t}});t.RLPopup=n,t.RLToolbar=c,t.RLToc=a,t.UI=e}(window.AtomiAP=window.AtomiAP||{},window.AtomiAP.$||jQuery);