/*!
 * Copyright (c) Atomi Systems, Inc. All rights reserved.
 * Version: 9.3.0
 * Date: 2025.04.08
 */
/*!
 * 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},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="[\\x20\\t\\r\\n\\f]",q="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+O+"*("+q+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+O+"*\\]",W=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",B=new RegExp(O+"+","g"),F=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),X=new RegExp("^"+O+"*,"+O+"*"),$=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),z=new RegExp(O+"|>"),U=new RegExp(W),Y=new RegExp("^"+q+"$"),G={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","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}"+O+"?|\\\\([^\\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&&(z.test(e)||$.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(F,"$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("[*^$]="+O+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+O+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")"),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"+O+"*[*^$|!~]?="),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("!=",W)}),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("(^|"+O+")"+e+"("+O+"|$)"))&&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(B," ")+" ").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(F,"$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(F,"$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=X.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=$.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(F," ")}),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(I,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 I(e){return e}function O(e){throw e}function q(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,I,o),s(r,n,O,o)):(r++,u.call(e,s(r,n,I,o),s(r,n,O,o),s(r,n,I,n.notifyWith))):(i!==I&&(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!==O&&(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:I,e.notifyWith)),n[1][3].add(s(0,e,d(t)?t:I)),n[2][3].add(s(0,e,d(i)?i:O))}).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&&(q(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||d(r[n]&&r[n].then)))return s.then();for(;n--;)q(r[n],a(n),s.reject);return s.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&R.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout(function(){throw t})};var W=w.Deferred();function B(){m.removeEventListener("DOMContentLoaded",B),e.removeEventListener("load",B),w.ready()}w.fn.ready=function(e){return W.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||W.resolveWith(m,[w]))}}),w.ready.then=W.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",B),e.addEventListener("load",B));var F=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)F(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},X=/^-ms-/,$=/-([a-z])/g;function z(e,t){return t.toUpperCase()}function U(e){return e.replace(X,"ms-").replace($,z)}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)}):F(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 F(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 F(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"),Ie=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Oe=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},qe=new RegExp(ne.join("|"),"i");function Re(e,t,n){var i,o,r,s,a=e.style;return(n=n||Ie(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||oe(e)||(s=w.style(e,t)),!h.pixelBoxStyles()&&Le.test(s)&&qe.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 We(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 Be=["Webkit","Moz","ms"],Fe=m.createElement("div").style,Xe={};function $e(e){var t=w.cssProps[e]||Xe[e];return t||(e in Fe?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Be.length;n--;)if((e=Be[n]+t)in Fe)return e}(e)||e)}var ze=/^(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=Ie(e),o=(!h.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,i),r=o,s=Re(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=Re(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=$e(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=$e(a)),(s=w.cssHooks[t]||w.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=Re(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!ze.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ke(e,t,i):Oe(e,Ye,function(){return Ke(e,t,i)})},set:function(e,n,i){var o,r=Ie(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=We(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Re(e,"marginLeft"))||e.getBoundingClientRect().left-Oe(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 F(this,function(e,t,n){var i,o,r={},s=0;if(Array.isArray(t)){for(i=Ie(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[$e(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 F(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 F(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={},It="*/".concat("*"),Ot=m.createElement("a");function qt(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 Rt(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 Wt(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}Ot.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:{"*":It,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?Wt(Wt(e,w.ajaxSettings),t):Wt(w.ajaxSettings,e)},ajaxPrefilter:qt(Ht),ajaxTransport:qt(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=Ot.protocol+"//"+Ot.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)),Rt(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]?", "+It+"; 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=Rt(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 Bt={0:200,1223:204},Ft=w.ajaxSettings.xhr();h.cors=!!Ft&&"withCredentials"in Ft,h.ajax=Ft=!!Ft,w.ajaxTransport(function(t){var n,i;if(h.cors||Ft&&!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(Bt[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 Xt,$t=[],zt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.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&&(zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.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(zt,"$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,$t.push(o)),s&&d(r)&&r(s[0]),s=r=void 0}),"script"}),h.createHTMLDocument=((Xt=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.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 F(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]=We(h.pixelPosition,function(e,n){if(n)return n=Re(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 F(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";var e=new WebKitCSSMatrix;function t(e,t,n){this.x=e,this.y=t,this.z=n}function n(n){for(var i=e,o=n;void 0!=o&&o!==o.ownerDocument.documentElement;){var r=window.getComputedStyle(o,void 0).transform||"none";i=("none"===r?e:new WebKitCSSMatrix(r)).multiply(i),o=o.parentNode}var s=n.offsetWidth,a=n.offsetHeight,l=new t(0,0,0).transformBy(i),u=new t(s,0,0).transformBy(i),c=new t(s,a,0).transformBy(i),p=new t(0,a,0).transformBy(i),f=Math.min(l.x,u.x,c.x,p.x),h=Math.min(l.y,u.y,c.y,p.y),d=n.getBoundingClientRect();return i=e.translate(window.pageXOffset+d.left-f,window.pageYOffset+d.top-h,0).multiply(i)}t.prototype.transformBy=function(n){var i=n.multiply(e.translate(this.x,this.y,this.z));return new t(i.m41,i.m42,i.m43)},window.getTransformationMatrix=n,window.convertPointFromPageToNode=function(e,i,o){return new t(i,o,0).transformBy(n(e).inverse())},window.convertPointFromNodeToPage=function(e,i,o){return new t(i,o,0).transformBy(n(e))}}(),
/*!
 * 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.3.0
 * Date: 2025.04.08
 */
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,rt:30},s={nt:1,ht:2,B:3,ot:0,ut:5,ft:12,dt:16,pt:17,vt:18,gt:1,bt:2,wt:3,_t:4,yt:5,Tt:6,kt:7,xt:8},e=1<<29,r=1<<28,n=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,rt=2,nt=3,at=4,ht=1,ot=2,ut=3,ct={Ct:1,St:2,Ot: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={Et:0,It:1,Pt:2,_:3,Rt:8,Mt:9},yt=0,Tt=1,kt=1,xt=2,Ct=3,St={Nt:0,At:1,Dt:3,nt:4,ht:5,Yt:6,R:7,Xt:8,Lt:9,X:10,K:11},Ot={Ft:1,Ht:2,Ut:3,Bt:4,Zt:5,zt:6,Gt:7,Vt:8,Wt:9},Et={$t:0,Kt:1,jt:2,Qt:3,qt:4,Xt:5,Jt: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={ii:1,si:2,ei:3,ri:5,ni:6,oi:7,ci:8,fi:9,li:12,pi:13,vi:14,gi:15,bi:16,wi:19,_i:20,yi:26,Ti:27,At:28,ki:29,xi:30,Ci:31,Si:32,Nt:33,Oi:34,Ei:35,Ii:36,Pi:37,Ri:38,Mi:39,Ni:40,Ai:41,Di:42,Yi:43,Xi:44,Li:45,Fi:46,Hi:47,Ui:48,Bi:49,Zi:50},Xt={zi:0,Gi:1,Vi:2,Wi:3,$i:4,Ki:5},Lt=0,Ft=1,Ht=2,Ut=3,Bt=0,Zt=2,zt=3,Gt=0,Vt=1,Wt=2,$t=3,Kt=4,jt=5,Qt=8,qt={ji:1,Qi:10,qi:20,Ji:30,ss:40,es:50,ns:60,os:70,us:80,fs:90,ls:1e3,ds:2500,ps:3500,vs:4e3,ms:4010},Jt={"-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"},ti={gs:0,bs:1,ws:2,_s:3,ys:4,Ts:5,ks:6},ii={Demo:1,Tutorial:2,Practice:4,Test:8},si=0,ei=1,ri=2,ni=3,ai=1,hi=2,oi=3,ui=4,ci=5,fi=6,li=7,di=8,pi=9,vi=10,mi=11,gi=12,bi=13,wi=14,_i=1,yi=2,Ti=3,ki={ACTUAL_SIZE:0,AUTOFIT:1,FULLSCREEN:2},xi={BOOLEAN:0,TEXT:1,NUMBER:2,COMMAND:3},Ci=0,Si=1,Oi=0,Ei=1,Ii=0,Pi=1,Ri=2,Mi=3,Ni={xs:3,Cs:4},Ai=0,Di=1,Yi=-2,Xi=-1,Li=1e3,Fi=1e-7,Hi=5e3,Ui="string",Bi="http://www.w3.org/2000/svg",Zi="userSpaceOnUse",zi=Math.PI,Gi=Math.abs,Vi=Math.sqrt,Wi=Math.pow,$i=Math.min,Ki=Math.max,ji=Math.cos,Qi=Math.sin,qi=Math.asin,Ji=Math.tan,ts=Math.atan2,is=Math.round,ss=Math.floor,es=Math.ceil,rs=t.noop,ns=t.extend,as=t.isFunction,hs=t.isNumeric,os=Date.now||(Date.now=function(){return(new Date).getTime()}),us=window.document,cs=window.requestAnimationFrame,fs=window.cancelAnimationFrame,ls=["Webkit","Moz","ms","O"],ds=["webkit","moz","ms","o"],ps={},vs={},ms=us.createElement("div");function gs(t){gs.disabled||window.console&&console.log(t)}function bs(t,i,s){return $i(Ki(t,i),s)}function ws(t,i,s){return arguments.length<3&&(s=Fi),i-s<=t&&t<=i+s}function _s(t,i){1==arguments.length&&(i=t);var s,e,r,n=[],a=[];for(s=0;s<t;++s)n.push(s);for(s=t;i>0;)e=Math.floor(Math.random()*s),--s,r=n[e],s!=e&&(n[e]=n[s],n[s]=r),a.push(r),--i,0==s&&(s=t);return a}function ys(t,i){ms.textContent=t;var s=ms.innerHTML;return i?s.replace(/\n/g,"<br />"):s}function Ts(t){return ms.innerHTML=t,ms.textContent||""}function ks(t,i){return is(t*Wi(10,i))/Wi(10,i)}function xs(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 r=parseFloat(i);if(isNaN(r)){var n=t(this);n.css("font-size",parseFloat(n.css("font-size"))*s)}else r*=s,this.style.fontSize=r+e}}),e=e[0].firstChild,i.css=e.cssText,i.html=e.innerHTML}function Cs(t,i,s){for(var e=t.parentNode,r=s.words?t.nodeValue.split(/(\s+)/):t.nodeValue,n=0,a=r.length;n<a;++n){var h,o,u=r[n];if(u)u.trim()?(h=us.createElement("div"),o=us.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&&Cs(o,i,{chars:!0})):h=us.createTextNode(u),e.insertBefore(h,t)}e.removeChild(t)}function Ss(t){t=ss(t/1e3);var i=ss(t/3600),s=ss(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 Os(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 Es(t){return t*zi/180}function Is(t,i){for(var s in i)t.setAttribute(s,i[s])}function Ps(t,i,s,e){var r="";if(i||s){var n="";e&&t.style[Ls]&&(t.Ss?delete t.Ss:(t.Ss=!0,n="translate(0px, 0px) ")),r=n+"scale("+(i?-1:1)+", "+(s?-1:1)+")"}t.style[Ls]=r,e&&(t.style[Hs]=r?"center":"")}function Rs(t,i,s,e){return void 0===i?typeof t===Ui?t:Rs(t>>16&255,t>>8&255,255&t,(t>>24&255)/255):void 0===e||1===e?"rgb("+is(t)+","+is(i)+","+is(s)+")":"rgba("+is(t)+","+is(i)+","+is(s)+","+e.toFixed(6)+")"}gs.disabled=!0;var Ms=/[a-zA-Z%]+$/;function Ns(t){var i={unit:null};return typeof t===Ui?(i.value=parseFloat(t),i.unit=t.match(Ms),i.unit&&(i.unit=i.unit[0])):i.value=t,i}function As(t,i,s,e){if(i in t||!i)return i;var r,n,a=i.charAt(0).toUpperCase()+i.slice(1),h=s.length;for(n=0;n<h;++n)if((r=s[n]+a)in t)return r;return e?"":i}function Ds(t,i,s){return As(t,i,ds,s)}function Ys(t,i,s){return As(t,i,ls,s)}function Xs(t,i){var s=Ys(ms.style,t,!0);return!!s&&(ps[t]=s,ms.style[s]=i,!(!ms.style[s]||"none"==ms.style[s])||!!(s==t&&(s="Webkit"+t.charAt(0).toUpperCase()+t.slice(1))in ms.style&&(ms.style[s]=i,ms.style[s]))&&(ps[t]=s,!0))}cs||(cs=window[Ds(window,"requestAnimationFrame")],fs=window[Ds(window,"cancelAnimationFrame")]||window[Ds(window,"cancelRequestAnimationFrame")],cs||(cs=function(t){var i=os(),s=t.requestAnimationFrameTime?Ki(0,16-(i-t.requestAnimationFrameTime)):0;return t.requestAnimationFrameTime=i+s,window.setTimeout(function(){t(os())},s)},fs=function(t){clearTimeout(t)}),window.requestAnimationFrame=cs,window.cancelAnimationFrame=fs),vs.clipPath=Xs("clipPath","inset(10%)"),vs.maskImage=Xs("maskImage","linear-gradient(rgba(0, 0, 0, 1.0), transparent)"),vs.filter=Xs("filter","contrast(200%)"),vs.perspective=Xs("perspective","100px"),vs.perspectiveOrigin=Xs("perspectivOrigin","100px 100px");var Ls=ps.transform=Ys(ms.style,"transform"),Fs="translate3d",Hs=ps.transformOrigin=Ys(ms.style,"transformOrigin"),Us=vs.perspective?ps.perspective:"perspective",Bs=vs.perspectiveOrigin?ps.perspectiveOrigin:"perspectiveOrigin",Zs=Ds(us,"hidden",!0),zs=vs.clipPath?ps.clipPath:"clip",Gs=vs.maskImage?ps.maskImage:"maskImage",Vs=vs.filter?ps.filter:"filter",Ws=vs.clipPath?"inset(":"rect(";function $s(t,i){var s=void 0!==i;s||(i=t[Ls]||""),i.indexOf(Fs)<0&&(s=!0,i=Fs+"(0px, 0px, 0px) "+i),s&&(t[Ls]=i)}function Ks(t,i,s,e,r,n){if(typeof t==Ui)return t;for(var a,h="",o=i+e/2,u=s+r/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=ke.rotatePoint(d[v][0]/100*e+i,d[v][1]/100*r+s,n,o,u),p.push(a);c.push(p)}for(ke.browser.chromiums&&function(t,i,s,e,r,n){var a=[];i-=100,s-=100,e+=200,r+=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+r):3==o&&(u=i,c=s+r);var f=ke.rotatePoint(u,c,n,i+e/2,s+r/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,r,n),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 js=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,r=t.length;e<r;++e)if(t[e][0]in us){s=e;break}for(e=0,r=t[0].length;e<r;++e)i[t[0][e]]=t[s][e];return t=null,{fullscreenEnabled:function(){return us[i.fullscreenEnabled]},fullscreenElement:function(){return us[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(us[t])return us[t]();element.webkitExitFullscreen&&element.webkitExitFullscreen()},addEventListener:function(t,s,e){return us.addEventListener(i[t]||t,s,e)},removeEventListener:function(t,s,e){return us.removeEventListener(i[t]||t,s,e)}}}();function Qs(){var t,i=function(){this.$init.apply(this,arguments)},s=[i.prototype],e=0,r=null;for(as(arguments[0])&&((r=arguments[0]).childClasses||(r.childClasses=[]),r.childClasses.push(i),e=1,s.push(r.prototype)),t=arguments.length;e<t;++e)s.push(arguments[e]);return ns.apply(null,s),i.prototype.$init||(i.prototype.$init=rs),i.prototype.constructor=i,i.parentClass=r,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,r,n,a=this.prototype,h={};for(e in t)void 0!==(r=t[e])&&(void 0===(n=a[e])?a[e]=r:i&&(h[e]=n,a[e]=r));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 Js=Qs({$init:function(){this.clear()},add:function(t){var i={n:null,p:this.Os,d:t};this.Os?this.Os.n=i:(this.Es=i,this.Is.front&&(this.Is.n=i)),this.Os=i,this.Is.back&&(this.Is.p=i)},Ps:function(t,i,s){for(var e=this.Es;e;){if((i?t(e.d):e.d===t)&&(e.p?e.p.n=e.n:this.Es=e.n,e.n?e.n.p=e.p:this.Os=e.p,this.Is.n===e&&(this.Is.n=e.n),this.Is.p===e&&(this.Is.p=e.p),!s))return;e=e.n}},remove:function(t,i){this.Ps(t,!1,i)},removeIf:function(t,i){this.Ps(t,!0,i)},empty:function(){return!this.Es},clear:function(){this.Es=this.Os=null,this.toFront()},toFront:function(){this.Is={n:this.Es,p:null,front:1}},toBack:function(){this.Is={n:this.null,p:this.Os,back:1}},next:function(){var t=this.Is.n;return t?(this.Is=t,t.d):(this.toBack(),null)},previous:function(){var t=this.Is.p;return t?(this.Is=t,t.d):(this.toFront(),null)},hasNext:function(){return!!this.Is.n},hasPrevious:function(){return!!this.Is.p}}),te={INITIAL:0,LOADING:1,LOADED:2,ERROR:3,TIMEOUT:4};function ie(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:us.createElement("js"===t.type?"script":"link"));var e,r,n,a,h=t.node,o=function(t){t||(h.removeEventListener("load",u,!1),h.removeEventListener("error",u,!1)),e&&clearTimeout(e)&&(e=null)},u=(r=o,n=t,a="load",function(t){r(!t),n.progress=1,t?t.type===a?(n.status=te.LOADED,n.onLoad&&n.onLoad()):(n.status=te.ERROR,gs("Error loading "+n.url+", event "+t.type+(n.node.error?", error "+n.node.error.code:"")),n.onError&&n.onError()):(n.status=te.TIMEOUT,gs("Timeout loading "+n.url),n.onTimeout&&n.onTimeout()),n.onComplete&&n.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=te.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&&(us.head||us.getElementsByTagName("head")[0]||us.documentElement).insertBefore(h,null);return t}var se=Qs({$init:function(t){this.started=!1,this.paused=!1,this.Rs=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,r,n=this,a=function(){var t=n.loadingItems.indexOf(this);t>-1&&(n.loadingItems.splice(t,1),++n.loadedCount,n.Ms()),n.options.onItemComplete&&n.options.onItemComplete.call(n,this),n.paused||n.complete||n.load()};for(i=0,s=t.length;i<s;++i)(e=t[i])&&(e.url||(e={url:e}),r=ns({},e,{progress:0,status:te.INITIAL,onComplete:a}),this.items.push(r));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.Ms(),!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===te.INITIAL?this.Ns(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===te.LOADING&&(i.status=te.INITIAL,this.nextIdx=0))},clear:function(){var t=this.paused;this.pause(),this.paused=t,this.started=this.complete=!1,this.Rs=0,this.items.length=0,this.loadingItems.length=0,this.nextIdx=0,this.loadedCount=0},progress:function(){return this.Rs},holdCompletion:function(t){void 0===t&&(t=!0),this.options.holdCompletion!==t&&(this.options.holdCompletion=t,t||this.Ms())},Ms: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.Rs&&0!==t||this.options.holdCompletion&&this.loadedCount===this.items.length||(this.Rs=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))}},Ns: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),ie(i))}});ns(vs,{touch:"ontouchend"in us,pointer:!!window.PointerEvent,msPointer:!!window.MSPointerEvent});var ee,re,ne="mousedown",ae="mouseup",he="mousemove",oe={NONE:0,LEFT:1,RIGHT:2,UP:4,DOWN:8,HORIZONTAL:3,VERTICAL:12,ALL:15};function ue(t,i){return Gi(t)>=Gi(i)?t<0?oe.LEFT:oe.RIGHT:i<0?oe.UP:oe.DOWN}function ce(t){var i=window.pageXOffset,s=window.pageYOffset,e=t.clientX,r=t.clientY;return 0===t.pageY&&ss(r)>ss(t.pageY)||0===t.pageX&&ss(e)>ss(t.pageX)?(e-=i,r-=s):(r<t.pageY-s||e<t.pageX-i)&&(e=t.pageX-i,r=t.pageY-s),{x:e,y:r}}function fe(i,s,e,r){var n=t.Event(s,e);if(t(i).triggerHandler(n),void 0===r||r)for(;!n.isPropagationStopped()&&i;)(i=i.parent)&&t(i).triggerHandler(n)}vs.pointer?(ne="pointerdown",ae="pointerup",he="pointermove",ee="pointercancel"):vs.touch?(ne="touchstart",ae="touchend",he="touchmove",ee="touchcancel"):vs.msPointer&&(ne="MSPointerDown",ae="MSPointerUp",he="MSPointerMove",ee="MSPointerCancel"),re=ae,ee&&(re+=" "+ee),ns(t.event.special,{"ap-keypress":{setup:function(){var i=this,s=this.As(),e=".apKeypress"+this.Ds;t(s).on("keydown"+e+" keyup"+e,function(t){var s=i.prez&&i.prez(),e=i.Ys(t)&&s&&!s.eventBubbling("ap-keypress");if(i.Xs(t),pe.hasKeydown(t.which)==("keydown"==t.type)){var r=pe.combinedCode(t),n=!0;i.Ls?n=i.Ls(r):s&&(n=s.Ls(r)),n&&pe.preventDefault(t),!e&&i.Fs(!1,!0)&&pe.fire(i,t)}})},teardown:function(){t(this.As()).off(".apKeypress"+this.Ds)}},"ap-click":{setup:function(){var i=this,s=this.As();this.Hs=function(s){var e=t(this).data(),r=i.prez&&i.prez(),n=i.Ys(s)&&r&&!r.eventBubbling("ap-click");i.filterEvent(s)||isNaN(e.apSglClickX)||isNaN(e.apSglClickY)||Gi(s.pageX-e.apSglClickX)>ke.ClickMaxDistance||Gi(s.pageY-e.apSglClickY)>ke.ClickMaxDistance?i.Us.call(this,s):(i.Xs(s),i.Us.call(this,s),(!n||i.Bs&&i.Bs("ap-click"))&&ve.fire("ap-click",i,s,!1))},this.Us=function(e){t(s).off("mouseup",i.Hs).removeData("apSglClickX apSglClickY"),t(us).off("mouseup",i.Us)},t(s).on("mousedown.apSglClick"+this.Ds,function(s){if(!i.filterEvent(s)){var e=t(this).data();e.apSglClickX=s.pageX,e.apSglClickY=s.pageY,i.Xs(s),t(this).off("mouseup",i.Hs).on("mouseup",i.Hs),t(us).off("mouseup",i.Us).on("mouseup",i.Us)}})},teardown:function(){var i=this.As();t(i).off(".apSglClick"+this.Ds).removeData("apSglClickX apSglClickY"),this.Hs&&(t(i).off("mouseup",this.Hs),delete this.Hs),this.Us&&(t(us).off("mouseup",this.Us),delete this.Us)}},"ap-dblclick":{setup:function(){var i=this,s=this.As();this.Zs=function(e){var r=t(this).data(),n=i.prez&&i.prez(),a=i.Ys(e)&&n&&!n.eventBubbling("ap-click");if(i.filterEvent(e)||isNaN(r.apDblClickX)||isNaN(r.apDblClickY)||Gi(e.pageX-r.apDblClickX)>ke.ClickMaxDistance||Gi(e.pageY-r.apDblClickY)>ke.ClickMaxDistance)i.zs.call(this,e);else if(i.Xs(e),a)i.zs.call(this,e);else if(t(this).off("mouseup",i.Zs).removeData("apDblClickX apDblClickY"),t(us).off("mouseup",i.zs),r.apDblClickTrue)t(this).removeData("apDblClickTrue"),ve.fire("ap-dblclick",i,e,!0);else{var h=os()-(r.apDblClickStart||0);h>ke.DoubleClickMaxTime?(r.apDblClickTimer?(clearTimeout(r.apDblClickTimer),t(this).removeData("apDblClickStart apDblClickTimer"),ve.fire("ap-dblclick",i,e,!1)):t(this).removeData("apDblClickStart apDblClickTimer"),ve.fire("ap-dblclick",i,e,!1)):r.apDblClickTimer=setTimeout(function(){t(s).removeData("apDblClickStart apDblClickTimer"),ve.fire("ap-dblclick",i,e,!1)},ke.DoubleClickMaxTime-h)}},this.zs=function(e){t(s).off("mouseup",i.Zs).removeData("apDblClickX apDblClickY apDblClickStart apDblClickTrue"),t(us).off("mouseup",i.zs)},t(s).on("mousedown.apDblClick"+this.Ds,function(s){if(!i.filterEvent(s)){var e=t(this).data(),r=os();e.apDblClickX=s.pageX,e.apDblClickY=s.pageY,isNaN(e.apDblClickStart)?e.apDblClickStart=r:(e.apDblClickTrue=r-e.apDblClickStart<=ke.DoubleClickMaxTime,e.apDblClickTrue?(e.apDblClickTimer&&clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickStart apDblClickTimer")):(e.apDblClickTimer&&(clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickTimer"),ve.fire("ap-dblclick",i,s,!1)),e.apDblClickStart=r)),i.Xs(s),t(this).off("mouseup",i.Zs).on("mouseup",i.Zs),t(us).off("mouseup",i.zs).on("mouseup",i.zs)}})},teardown:function(){var i=this.As();t(i).off(".apDblClick"+this.Ds).removeData("apDblClickX apDblClickY apDblClickStart apDblClickTimer apDblClickTrue"),this.Zs&&(t(i).off("mouseup",this.Zs),delete this.Zs),this.zs&&(t(us).off("mouseup",this.zs),delete this.zs)}},"ap-rollover":{setup:function(){if(!ke.browser.mobile){var i=this,s=this.As();t(s).on("mouseover.apRollover"+this.Ds,function(s){if(!i.filterEvent(s)&&i.Fs(!1,!0)){var e=i.prez&&i.prez(),r=i.Ys(s)&&e&&!e.eventBubbling("ap-rollover");i.Xs(s),r||t(i).triggerHandler(t.Event("ap-rollover",{originalEvent:s.originalEvent||s}))}})}},teardown:function(){t(this.As()).off(".apRollover"+this.Ds)}},"ap-rollout":{setup:function(){if(!ke.browser.mobile){var i=this,s=this.As();t(s).on("mouseout.apRollout"+this.Ds,function(s){if(!i.filterEvent(s)&&i.Fs(!1,!0)){var e=i.prez&&i.prez(),r=i.Ys(s)&&e&&!e.eventBubbling("ap-rollout");i.Xs(s),r||t(i).triggerHandler(t.Event("ap-rollout",{originalEvent:s.originalEvent||s}))}})}},teardown:function(){t(this.As()).off(".apRollout"+this.Ds)}},"ap-swipe":{processing:!1,setup:function(){var i=this,s=this.As(),e=".apSwipe"+this.Ds;t(s).on("dragstart"+e,function(t){return!1}).on(ne+e,function(s){var r=s.originalEvent;if(!(i.filterEvent(s)||t.event.special["ap-swipe"].processing||r.touches&&r.touches.length>1)){t.event.special["ap-swipe"].processing=!0;var n,a={time:os(),pos:r.targetTouches?ce(r.targetTouches[0]):{x:r.clientX,y:r.clientY}},h={time:a.time,pos:a.pos},o=t(this).data("apSwipeDir")||oe.ALL,u=function(t){r=t.originalEvent,h={time:os(),pos:r.targetTouches?ce(r.targetTouches[0]):{x:r.clientX,y:r.clientY}},(n=ue(h.pos.x-a.pos.x,h.pos.y-a.pos.y))&o&&t.preventDefault()},c=function(s){f.call(this,s),r=s.originalEvent,h.time=os();var e=h.pos.x-a.pos.x,o=h.pos.y-a.pos.y;((n=ue(e,o))&oe.HORIZONTAL&&Gi(e)>ke.SwipeMinDistance&&Gi(o)<ke.SwipeMaxDeflection||n&oe.VERTICAL&&Gi(o)>ke.SwipeMinDistance&&Gi(e)<ke.SwipeMaxDeflection)&&Vi(e*e+o*o)/(h.time-a.time)>ke.SwipeMinVelocity&&i.Fs(!1,!0)&&(t(i).triggerHandler(t.Event("ap-swipe",{value:{direction:n,start:a,stop:h},originalEvent:r})),t(i).triggerHandler(t.Event(function(t,i){switch(i=i||"",t){case oe.LEFT:return i+"left";case oe.RIGHT:return i+"right";case oe.UP:return i+"up";case oe.DOWN:return i+"down"}}(n,"ap-swipe"),{value:{direction:n,start:a,stop:h},originalEvent:r})))},f=function(i){t.event.special["ap-swipe"].processing=!1,t(us).off(he+e,u).off(ae+e,c),ee&&t(us).off(ee+e,f)};t(us).on(he+e,u).on(ae+e,c),ee&&t(us).on(ee+e,f)}}).css("touchAction","none")},teardown:function(){t(this.As()).off(".apSwipe"+this.Ds).css("touchAction","")}},"ap-swipeleft":{setup:function(){var i=this.As(),s=t(i).data();s.apSwipeDir=(s.apSwipeDir||0)|oe.LEFT,this.on("ap-swipe",rs)},teardown:function(){var i=this.As(),s=t(i).data();s.apSwipeDir&&(s.apSwipeDir&=~oe.LEFT),0===s.apSwipeDir&&t(i).removeData("apSwipeDir"),this.off("ap-swipe",rs)}},"ap-swiperight":{setup:function(){var i=this.As(),s=t(i).data();s.apSwipeDir=(s.apSwipeDir||0)|oe.RIGHT,this.on("ap-swipe",rs)},teardown:function(){var i=this.As(),s=t(i).data();s.apSwipeDir&&(s.apSwipeDir&=~oe.RIGHT),0===s.apSwipeDir&&t(i).removeData("apSwipeDir"),this.off("ap-swipe",rs)}},"ap-swipeup":{setup:function(){var i=this.As(),s=t(i).data();s.apSwipeDir=(s.apSwipeDir||0)|oe.UP,this.on("ap-swipe",rs)},teardown:function(){var i=this.As(),s=t(i).data();s.apSwipeDir&&(s.apSwipeDir&=~oe.UP),0===s.apSwipeDir&&t(i).removeData("apSwipeDir"),this.off("ap-swipe",rs)}},"ap-swipedown":{setup:function(){var i=this.As(),s=t(i).data();s.apSwipeDir=(s.apSwipeDir||0)|oe.DOWN,this.on("ap-swipe",rs)},teardown:function(){var i=this.As(),s=t(i).data();s.apSwipeDir&&(s.apSwipeDir&=~oe.DOWN),0===s.apSwipeDir&&t(i).removeData("apSwipeDir"),this.off("ap-swipe",rs)}}});var le={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:"'"},de={combinedCode:function(t,i,s,e,r){var n=0;return i&&(n|=pe.MOD_CTRL),s&&(n|=pe.MOD_SHIFT),e&&(n|=pe.MOD_ALT),r&&(n|=pe.MODE_META),n<<24|t},code:function(t){return 16777215&t},modifiers:function(t){return t>>24},modName:function(t){var i="";return t&pe.MOD_CTRL&&(i+="+Ctrl"),t&pe.MOD_SHIFT&&(i+="+Shift"),t&pe.MOD_ALT&&(i+="+Alt"),t&pe.MODE_META&&(i+=ke.browser.macOS?"+⌘":"+Win"),i.substr(1)},isMouse:function(t){var i=de.code(t);return i>0&&i<=ve.MAX_CODE},name:function(t,i){return de.isMouse(t)?ve.name(t,i):pe.name(t,i)}},pe={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,r=t.altKey,n=t.metaKey;switch(i){case pe.CTRL:s=!0,i=0;break;case pe.SHIFT:e=!0,i=0;break;case pe.ALT:r=!0,i=0;break;case 224:case 93:if(!ke.browser.macOS)break;case 92:case 91:n=!0,i=0;break;case pe.CANCEL:i=pe.PAUSE;break;case 186:i=59;break;case 171:case 187:i=61;break;case 189:i=173}if(!s&&!r){var a=t.originalEvent||t;a&&a.getModifierState&&a.getModifierState("AltGraph")&&(s=r=!0)}return de.combinedCode(i,s,e,r,n)},name:function(t){var i=de.modName(de.modifiers(t)),s=de.code(t),e="";return pe.NUMBER0<=s&&s<=pe.NUMBER9||pe.A<=s&&s<=pe.Z?e=String.fromCharCode(s):pe.NUMPAD0<=s&&s<=pe.NUMPAD9?e="Numpad "+(s-pe.NUMPAD0):pe.F1<=s&&s<=pe.F12?e="F"+(s-pe.F1+1):s&&(e=le[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!=pe.TAB&&t!=pe.SHIFT_TAB;var e=de.modifiers(t),r=de.code(t);return r==pe.F5||r==pe.F4||r==pe.BACKSPACE&&!i||e&pe.MOD_CTRL&&r==pe.W||e&pe.MOD_ALT&&(r==pe.HOME||r==pe.LEFT||r==pe.RIGHT)},shouldIgnoreIncorrect:function(t){return 0==de.code(t)||t==pe.TAB||t==pe.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:pe.combinedCode(s),originalEvent:s.originalEvent||s}))}},ve={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=ve.DBLEFT),de.combinedCode(s,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)},name:function(t,i){var s=de.modName(de.modifiers(t)),e=de.code(t),r="";switch(i=i||Oe,e){case ve.LEFT:r=i.text("LeftClick");break;case ve.MIDDLE:r=i.text("MiddleClick");break;case ve.RIGHT:r=i.text("RightClick");break;case ve.DBLEFT:r=i.text("LeftDClick");break;case ve.OUTSIDE:r=i.text("ClickOutside");break;default:r=""+e}return s&&(r=r?s+"+"+r:s),r},fire:function(i,s,e,r){s.Fs(!1,!0)&&t(s).triggerHandler(t.Event(i,{value:ve.combinedCode(e,r),originalEvent:e.originalEvent||e}))}};if("mousedown"!==ne){var me=function(t){"mouse"!==t.pointerType&&4!==t.pointerType&&(ve.fromTouch=!0),us.removeEventListener(ne,me,!0)};us.addEventListener(ne,me,!0)}function ge(t,i,s,e){return typeof s==Ui?t.object(t.variable(s)):(r=e==Ni.xs?t.topSlide:e==Ni.Cs?t.bottomSlide:i)&&r.object(s);var r}function be(t,i,s){return typeof s==Ui&&(s=t.variable(s)),i&&i.timeline(s)}function we(t,s,e,r){if(function(t,i,s){var e,r,n,a,h,o,u=!1;if(!t||!t.length)return!0;var c=s.currentTarget,f=c&&c.slide;for(e=0,r=t.length;e<r;++e){var l=(n=t[e])[3];if(n[0]||0===e){if(u)break;u=!0}if(u){switch(a=l[1],h=l[0],o=!1,n[1]){case St.Nt:a=i.vars.get(a),l[2]?h=i.vars.get(h):i.vars.Gs(l[1])==xi.NUMBER&&(h=Number(h));break;case St.At:(a=ge(i,f,a,l[2]))?h==Yi?(h=l[3],a=a.Vs.name()):a=a.Vs.id():(gs("Object not found: "+l[1]),a=h=0);break;case St.Dt:c&&c.attempts?(a=c.attempts(),h===Xi&&(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.Xt:(a=ge(i,f,a,l[2]))?a=a.checked():(gs("Object not found: "+l[1]),a=h=0);break;case St.X:case St.K:(a=ge(i,f,a,l[2]))?a=a.value():(gs("Object not found: "+l[1]),a=h=0);break;case St.Lt:o=h;break;case St.ht:a=typeof h===Ui?pe.name(s.value):s.value;break;default:a=s.value}switch(n[2]){case Ot.Ft:o=a<h;break;case Ot.Ht:o=a>h;break;case Ot.Ut:o=i.vars.Gs(l[1])==xi.NUMBER?ws(a,h):a==h;break;case Ot.Bt:o=a.toLowerCase&&h.toLowerCase&&a.toLowerCase()===h.toLowerCase();break;case Ot.Zt:o=i.vars.Gs(l[1])==xi.NUMBER?!ws(a,h):a!=h;break;case Ot.zt:o=a.toLowerCase&&h.toLowerCase&&a.toLowerCase()!==h.toLowerCase();break;case Ot.Gt:o=a<=h;break;case Ot.Vt:o=a>=h;break;case Ot.Wt: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 n=t[0],a=t[1],h=e.currentTarget,o=h&&h.slide;switch(n){case Yt.ii:s.pause(!0);break;case Yt.si:var u=!1;h&&h.Ws&&(u=h.$s,h.Ws(!1)),u||s.pause(!1);break;case Yt.ei:s.end();break;case Yt.Fi:s.restart();break;case Yt.ri:s.showSlideById(a);break;case Yt.ni:typeof(c=a)===Ui&&(c=s.variable(c)-1),s.showSlide(c);break;case Yt.oi:typeof(c=a)===Ui&&(c=s.variable(c)),s.showSlide(s.slideIndex+c);break;case Yt.ci:var c;typeof(c=a)===Ui&&(c=s.variable(c)),(c=s.slideIndex-c)>=0&&s.showSlide(c,{autoDirection:!0});break;case Yt.fi:s.historyBack();break;case Yt.li:try{var f=a;typeof f!==Ui&&(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){gs(t)}break;case Yt.pi:try{var l,d=a[0],p=a[1];typeof d!==Ui&&(d=s.variable(a[1]),p=a[2]),(l=window.open(d,p))?l.focus():gs('Cannot open webpage "'+d+'" in window "'+p+'"')}catch(t){gs(t)}break;case Yt.vi:var v=s.Ks(a);try{v&&v.call(h,e,s)}catch(t){gs(t)}break;case Yt.Zi:case Yt.Bi:var m=!0;case Yt.gi:case Yt.Ti:case Yt.bi:case Yt.Oi:case Yt.ki:case Yt.Ii:var g,b,w,_;if(C=-2===a[0]?h&&h.dropHelper?e.value:h:ge(s,o,a[0],a[1])){if(m){var y=C.visible();a=y?a[3]:a[2]}var T,k=C.js(function(t){return!0===t.effectAction});for(_=0;_<k.length;++_)(T=k[_]).actionData===a?(g=T,T.remove()):C.Qs(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 Gn).actionData=a,g.effectAction=!0,C.qs(g),_=m?0:2;_<a.length;++_)(w=a[_])&&(b=ke.createEffect(C,w[0],w[1],w[2],w[3]))&&g.addChild(b);g.addChild(new Hn(function(){setTimeout(function(){C.Qs(g)},0),(n===Yt.gi||n===Yt.Oi||n===Yt.Ii||n===Yt.Zi)&&r&&r()},{startTime:g.duration(),duration:0}))}if(g.startTime(s.timeline.totalTime()),s.timeline.addChild(g),g.setup(),g.play(0),n===Yt.gi||n===Yt.Oi||n===Yt.Ii||n===Yt.Zi)return}break;case Yt.wi:if(s.ended)break;if(typeof a[0]!==Ui&&(!a[0]||a[0]<=0))s.submit();else(C=ge(s,o,a[0],a[1]))&&C.Fs(!0,!0)&&C.submit();break;case Yt._i:if(s.ended)break;if(typeof a[0]!==Ui&&(!a[0]||a[0]<=0))s.clear(!0);else(C=ge(s,o,a[0],a[1]))&&C.Fs(!0,!0)&&C.clear(!0);break;case Yt.Ei:case Yt.yi:var x=a[1]<Hi&&n==Yt.yi;if(s.Js(a[0],a[1],a,x,n==Yt.Ei?r:null),n==Yt.Ei)return;break;case Yt.At:var C=ge(s,o,a[0],a[1]),S=a[2];S==Yi&&(S=a[3]),C&&C.state(S);break;case Yt.Pi:return void s.startTimeline(be(s,o,a),r);case Yt.xi:s.startTimeline(be(s,o,a));break;case Yt.Ci:s.pauseTimeline(be(s,o,a),!0);break;case Yt.Si:s.pauseTimeline(be(s,o,a),!1);break;case Yt.Hi:s.clickSequenceBack(o);break;case Yt.Ui:s.clickSequenceForward(o);break;case Yt.Nt:var O=a[1],E=a[2];a[3]?E=s.vars.get(E):s.vars.Gs(O)==xi.NUMBER&&(E=Number(E));var I=!0;switch(a[0]){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,s.vars.get(O)*E);break;case Et.Qt:s.vars.set(O,s.vars.get(O)/E);break;case Et.qt:s.vars.set(O,E);break;case Et.Xt:s.vars.set(O,!s.vars.get(O));break;case Et.Jt: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.te(O)&&(s.se.vars[O]=s.variable(O),s.ee(!0));break;case Yt.Ri:if(typeof(M=a[0])!==Ui?(M=s.variable(a[1]),s.showFeedbackByName(M,a[2],a[3]?r:null)):s.showFeedbackById(M,a[1],a[2]?r:null),a[2])return;break;case Yt.Mi:var M;typeof(M=a)!==Ui?(M=s.variable(a[1]),s.hideFeedbackByName(M)):s.hideFeedbackById(M);break;case Yt.Ni:s.reviewCourse();break;case Yt.Di:var N={showCorrect:a[2],showIncorrect:a[3],showValues:a[4],showResult:a[5]};if(typeof a[0]!==Ui&&(!a[0]||a[0]<=0))s.slide&&s.slide.re(N),s.bottomSlide&&s.bottomSlide.re(N),s.topSlide&&s.topSlide.re(N);else(C=ge(s,o,a[0],a[1]))&&C.re&&C.re(N);break;case Yt.Yi:case Yt.Xi:case Yt.Li:if(s.ended)break;(C=ge(s,o,a[0],a[1]))&&C.enabled()&&C.ne.k==i.H&&(n==Yt.Yi?C.startTimer():n==Yt.Xi?C.pauseTimer():n==Yt.Li&&C.stopTimer());break;case Yt.Ai:var A=-1,D=a,Y=D?D.length:0,X=function(){++A<Y&&we(D[A],s,e,A===Y-1?r:X)};if(Y>0)return void X()}r&&r()}else r&&r()}var _e=0;function ye(){return++_e}function Te(t,i){t=(""+t).split("."),i=(""+i).split(".");var s,e,r,n=$i(t.length,i.length);for(s=0;s<n;++s)if((e=parseInt(t[s]))!==(r=parseInt(i[s])))return e-r;return 0}var ke={version:function(){return"9.3.0"},minPrezVersion:"9.0.0",presentations:[],loadedPrezs:[],unsupportedBrowser:!1,youtubeAPIState:si,mathJaxAPIState:si,model3DLibState:si,messages:{},defaultLang:null,compatible:function(t){return Te(this.version(),t.mpv)>=0&&Te(t.v,this.minPrezVersion)>=0},open:function(i,s,e){return e=e||{},this.unsupportedBrowser?(t(function(){}),null):new Ge(i,s,e)},close:function(t){t&&t.destroy()},find:function(t){var i,s,e,r,n=this.presentations;if(typeof t===Ui&&(r=t,t=us.getElementById(r)),!r&&!t)return null;for(i=0,s=n.length;i<s;++i)if(e=n[i],r&&e.containerId===r||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==si){this.youtubeAPIState=ei;var t,i=us.createElement("script"),s=this;i.src="https://www.youtube.com/iframe_api",(t=us.getElementsByTagName("script")[0]).parentNode.insertBefore(i,t),setTimeout(function(){var t,i;if(s.youtubeAPIState==ei)for(s.youtubeAPIState=ni,t=0,i=s.presentations.length;t<i;++t)s.presentations[t].ae()},3e4)}},onYouTubeIframeAPIReady:function(){var t,i;if(this.youtubeAPIState==ei)for(this.youtubeAPIState=ri,t=0,i=this.presentations.length;t<i;++t)this.presentations[t].ae()},loadMathJaxAPI:function(t){if(this.mathJaxAPIState==si){this.mathJaxAPIState=ei;var i,s=us.getElementsByTagName("head")[0];(i=us.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=us.createElement("script")).type="text/javascript",i.src=t+"MathJax.js",s.appendChild(i)}},onMathJaxAPIReady:function(){var t,i;if(this.mathJaxAPIState==ei)for(this.mathJaxAPIState=ri,t=0,i=this.presentations.length;t<i;++t)this.presentations[t].ae()},load3DModelLib:function(t){if(!ke.browser.ie&&this.model3DLibState==si){this.model3DLibState=ei;var i,s=us.getElementsByTagName("head")[0];(i=us.createElement("script")).type="text/javascript",i.src=t+"three.js",i.onload=function(e){(i=us.createElement("script")).type="text/javascript",i.src=t+"GLTFLoader.js",i.onload=function(e){(i=us.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==ei)for(this.model3DLibState=ri,t=0,i=this.presentations.length;t<i;++t)this.presentations[t].ae()},pageVisible:function(){return!Zs||!us[Zs]},onPageVisibilityChanged:function(){var t,i,s,e;if(this.pageVisible()){if(t=this.he){for(s=0,e=t.length;s<e;++s)(i=t[s]).allPaused()&&i.pauseAll(!1);t.length=0}}else for(this.he||(this.he=[]),s=0,e=(t=this.presentations).length;s<e;++s)(i=t[s]).allPaused()||(i.pauseAll(!0),this.he.push(i))},oe:function(t){t.allPaused()||(t.pauseAll(!0),this.he||(this.he=[]),this.he.push(t))},fullscreen:js};function xe(t){ke.browser.iDevice&&t.addEventListener("touchstart",function(t){t.preventDefault()},!1)}function Ce(){try{for(var t=ke.presentations;t.length>0;)ke.close(t[0])}catch(t){window.removeEventListener("unload",Ce,!1)}}ke.browser={init:function(){this.initiated||(this.initiated=!0,this.ie=!!us.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)}},ke.browser.init(),t(window).resize(function(){var t,i;for(t=0,i=ke.presentations.length;t<i;++t)ke.presentations[t].layout()}),window.addEventListener(ke.browser.iDevice?"pagehide":"beforeunload",Ce,!1),ke.browser.iDevice||window.addEventListener("unload",Ce,!1),t(us).on("keydown keyup",function(t){var i,s;for(i=0,s=ke.presentations.length;i<s;++i)ke.presentations[i].ue(t)}),Zs&&t(us).on(Zs.replace(/[H|h]idden/,"")+"visibilitychange",function(){ke.onPageVisibilityChanged()});var Se=Qs({$init:function(t){this.ce=arguments.length?t:null},text:function(t){var i,s,e,r=ke.messages[this.ce],n=arguments.length;if(e=r&&r[t]||(r=ke.messages[ke.defaultLang])&&r[t]||t,n>1)for(i=1;i<n;++i)s=new RegExp("\\{"+(i-1)+"\\}","g"),e=e.replace(s,arguments[i]);return e},number:function(t){var i,s=this.ce||ke.defaultLang,e=""+t;return"ar"!==s&&"ar"!==s.substr(0,2)||(i="۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹".split(" "),e=e.replace(/[0-9]/g,function(t){return i[t]})),e}}),Oe=new Se;function Ee(t){return("0"+t).slice(-2)}function Ie(t){return("0"+(i=t,i+1)).slice(-2);var i}function Pe(t){return t.toString().slice(-2)}var Re=/%[^\s%]+%/g,Me=Qs({$init:function(t){this.fe=t,this.le={apVersion:{get:function(t){return t.version()}},apAuthor:{get:function(t){return ys(t.author())}},apHomepage:{get:function(t){return ys(t.homePage())}},apCopyright:{get:function(t){return ys(t.copyright())}},apProjectName:{get:function(t){return ys(t.name())}},apDescription:{get:function(t){return ys(t.description(),!0)}},apPlayMode:{get:function(t){return ys(t.ui.pe.text(t.playMode()))}},apCurrentSlideLabel:{get:function(t){return t.currentSlideLabel()}},apElapsedTime:{get:function(t){return Ss(t.elapsedTime())}},apElapsedTimeMs:{get:function(t){return t.elapsedTime()}},apRemainingTime:{get:function(t){var i=t.remainingTime();return i%1e3>0&&(i+=1e3),Ss(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 ys(t.ui.pe.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.Vi)}},apQuizIncorrectInteractions:{get:function(t){return t.takenInteractionCount(Xt.Wi)}},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(),r=i.getSeconds();return this.nextUpdate=i.setSeconds(r+1,0),s<10&&(s="0"+s),e<10&&(e="0"+e),r<10&&(r="0"+r),s+":"+e+":"+r}},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.ne.language)}},apDateMMDDYYYY:{get:function(t){var i=new Date;return Ie(i.getMonth())+"/"+Ee(i.getDate())+"/"+i.getFullYear()}},apDateMMDDYY:{get:function(t){var i=new Date;return Ie(i.getMonth())+"/"+Ee(i.getDate())+"/"+Pe(i.getFullYear())}},apDateDDMMYYYY:{get:function(t){var i=new Date;return Ee(i.getDate())+"/"+Ie(i.getMonth())+"/"+i.getFullYear()}},apDateDDMMYY:{get:function(t){var i=new Date;return Ee(i.getDate())+"/"+Ie(i.getMonth())+"/"+Pe(i.getFullYear())}},apDateYYYYMMDD:{get:function(t){var i=new Date;return i.getFullYear()+"/"+Ie(i.getMonth())+"/"+Ee(i.getDate())}},apDateYYMMDD:{get:function(t){var i=new Date;return Pe(i.getFullYear())+"/"+Ie(i.getMonth())+"/"+Ee(i.getDate())}},apCurrentSlideIndex:{get:function(t){return t.currentSlideIndex()},set:function(t,i){return t.currentSlideIndex(i),!0},type:xi.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:xi.NUMBER},apCurrentSlideProgress:{get:function(t){return t.slideTime()},set:function(t,i){t.slideTime(i)},type:xi.NUMBER},apSpeed:{get:function(t){return is(100*t.speed())},set:function(t,i){t.speed(i/100)},type:xi.NUMBER},apMute:{get:function(t){return t.muted()},set:function(t,i){t.muted(i)}},apVolume:{get:function(t){return is(100*t.volume())},set:function(t,i){t.volume(i/100)},type:xi.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.ve()}}},this.me="apCurrentTime apCurrentDay apCurrentHour apCurrentMinutes".split(" ")},get:function(t){var i=this.le[t];if(i)return i.get?i.get(this.fe):i.val},set:function(t,i){var s=this.le[t],e=!1;return s||(s=this.le[t]={}),!(s.get&&!s.set)&&(s.set?e=s.set(this.fe,i):s.val!==i&&(s.val=i,e=!0),e&&this.be(s),!0)},remove:function(t){delete this.le[t];var i=this.me.indexOf(t);i>=0&&this.me.splice(i,1)},has:function(t){return!!this.le[t]},Gs:function(t,i){var s=this.le[t];if(1==arguments.length)return s?s.type:void 0;2==arguments.length&&(s||(s=this.le[t]={}),s.type=i)},te:function(t,i){var s=this.le[t];if(1==arguments.length)return s?s.userType:void 0;2==arguments.length&&(s||(s=this.le[t]={}),s.userType=i)},addObserver:function(t,i){var s,e,r;for(s=0,e=t.length;s<e;++s)(r=this.le[t[s]])&&(r.obs||(r.obs=new Js),r.obs.add(i))},removeObserver:function(t){var i,s,e=this.le;for(i in e)(s=e[i]).obs&&s.obs.remove(t,!0)},removeObserverIf:function(t){var i,s,e=this.le;for(i in e)(s=e[i]).obs&&s.obs.removeIf(t,!0)},notifyObservers:function(t){var i=this.le[t];i&&this.be(i)},be: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(Re,function(t){var e=t.substring(1,t.length-1),r=i.le[e];return r?(s.vars.indexOf(e)<0&&s.vars.push(e),r.get?r.get(i.fe):r.val):t}),s},tick:function(t){var i,s,e;for(i=0,s=this.me.length;i<s;++i)(e=this.le[this.me[i]])&&t>=(e.nextUpdate||0)&&this.be(e)}}),Ne="apElapsedTime apElapsedTimeMs apRemainingTime apRemainingTimeMs apCurrentSlideProgress apProgress";function Ae(t,i){var s,e,r=i.split(" ");for(s=0,e=r.length;s<e;++s)t.notifyObservers(r[s])}var De=new(Qs({$init:function(){var t=us.createElement("audio"),i=us.createElement("video");this.we="m4a",this._e="mp4",this.ye=!0,t.canPlayType&&t.canPlayType("audio/aac;").replace(/no/,"")?this.we="m4a":t.canPlayType&&t.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/,"")?this.we="ogg":this.ye=!1,i.canPlayType&&i.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,"")?this._e="mp4":i.canPlayType&&i.canPlayType('video/webm; codecs="vp8"').replace(/no/,"")?this._e="webm":this.ye=!1,this.Te=!1,this.ke=!1;try{t.playbackRate=2,this.ke=2==t.playbackRate}catch(t){}try{t.volume=.51,this.Te=.51==t.volume}catch(t){}this.xe=!1;var s=this,e=t.play();void 0!==e&&e.catch(function(t){s.xe=!0,gs("MediaManager:_requireInitMediaElements: "+s.xe)}),gs("MediaManager:_canPlayMedia: "+this.ye),gs("MediaManager:_canChangeVolume: "+this.Te),gs("MediaManager:_canChangePlaybackRate: "+this.ke),gs("MediaManager:_requireInitMediaElements: "+this.xe)},canChangeVolume:function(){return this.Te},canChangePlaybackRate:function(){return this.ke}}));ke.mediaManager=De;var Ye=Qs({$init:function(){this.Ce=[],this.Se=[],this.Oe=[],this.Ee=1,this.Ie=!1,this.Pe=1,this.Re=!1,this.Me=6,this.Ne=6,this.Ae=!1,this.De=1},Ye:function(t){var i,s,e=t[1]+t[3]+t[5],r=t[0]+t[2]+t[4]+t[9];for(e*=2,r*=2,e+=this.Me+this.Ne,i=0;i<e;++i)s=us.createElement("audio"),this.Ce.push(s);for(i=0;i<r;++i)s=us.createElement("video"),this.Se.push(s);this.Re=t[6]>0},Xe:function(t){this.Oe.push(t)},Le:function(t){var i=this.Oe.indexOf(t);i>-1&&this.Oe.splice(i,1)},Fe:function(){var t,i,s=this.Oe,e=1;for(t=0,i=s.length;t<i;++t){void 0!==(r=s[t]).He&&100!==r.He&&"playing"===r.Vs()&&(e*=r.He/100)}if(!(Math.abs(e-this.De)<1e-4))for(this.De=e,gs("Audio ducking (%): "+100*e),t=0,i=s.length;t<i;++t){var r;void 0!==(r=s[t]).He&&100!==r.He||(gs("Audio ducking for: "+r.Ue),r.volume(this.Ee*e))}},playbackRate:function(t){if(!arguments.length)return this.Pe;if(De.canChangePlaybackRate()){this.Pe=t;var i,s,e=this.Oe;for(i=0,s=e.length;i<s;++i)e[i].playbackRate(t)}else gs("This device does not support changing playback rate")},volume:function(t){if(!arguments.length)return this.Ee;if(De.canChangeVolume()){this.Ee=t;var i,s,e=this.Oe;for(i=0,s=e.length;i<s;++i)e[i].volume(t)}else gs("This device does not support changing volume")},muted:function(t){if(!arguments.length)return this.Ie;this.Ie=t;var i,s,e=this.Oe;for(i=0,s=e.length;i<s;++i)e[i].muted(t)},Be:function(){var t,i,s=this.Oe,e=this.Ce.concat(this.Se);for(t=0,i=e.length;t<i;++t)e[t].muted=!1;for(t=0,i=s.length;t<i;++t)s[t].Be()},Ze:function(t){var i,s,e=this.Oe;for(i=0,s=e.length;i<s;++i)e[i].Ze(t)},ze:function(){for(var t=[this.Ce,this.Se],i=0;i<t.length;++i)for(var s=t[i],e=0;e<s.length;++e){var r=s[e];r.src&&(r.removeAttribute("src"),r.load())}}}),Xe=Qs({$init:function(t){this.fe=t,this.Ge=[],this.Ve=0,this.We=!1},goBackward:function(t){var i=this.Ge[this.Ve-1],s=!1;return i&&(this.We=!0,--this.Ve,t?void 0===t.autoDirection&&(t.autoDirection=!0):t={autoDirection:!0},s=this.fe.showSlide(i,t),this.We=!1),s},goForward:function(t){var i=this.Ge[this.Ve+1],s=!1;return i&&(this.We=!0,++this.Ve,s=this.fe.showSlide(i,t),this.We=!1),s},add:function(t){t&&!this.We&&t!=this.Ge[this.Ve]&&(this.Ve>=0&&this.Ve<this.Ge.length-1&&(this.Ge.length=this.Ve+1),this.Ge.push(t),this.Ve=this.Ge.length-1)},clear:function(){this.Ge.length=0,this.Ve=0,this.We=!1},empty:function(){return 0==this.Ge.length}}),Le=/^ap-(prez|slide|ctrl)-/,Fe=new se({onItemComplete:function(t){t.id&&t.id.$e&&t.id.$e(t.status)}});function He(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,r=t.cc.length;e<r;++e){var n=t.cc[e];n&&Ue(n,t,i,s)}}function Ue(t,s,e,r){if(t.s)for(var n=0,a=t.s.length;n<a;++n){var h=t.s[n];h.im?r.push(e.getResource(h.im[0],h.im[1])):h.f&&h.f[0]===_t._&&r.push(e.getResource(h.f[1],h.f[2]))}if(t.k==i.C&&void 0!==t.mi&&r.push(e.getImgResource(s.i+"."+t.i+(t.g?".png":".jpg"))),t.cc)for(n=0,a=t.cc.length;n<a;++n){var o=t.cc[n];o&&Ue(o,s,e,r)}}function Be(t,i,s,e,r,n){n=n||r,t.addChild(new Un(i,"mediaDuration",{startTime:e,duration:0,tweenParams:[0,n]})).addChild(new Un(i,"mediaSrc",{startTime:e,duration:0,tweenParams:[-1,s]})).addChild(new Un(i,"mediaState",{startTime:e,duration:0,tweenParams:["stopped","playing"]})).addChild(new Bn(i,"mediaSeek",{startTime:e,duration:n,tweenParams:[0,1]})).addChild(new Un(i,"mediaState",{startTime:e+r,duration:0,tweenParams:["playing","stopped"]}))}function Ze(t,i,s){return arguments.length?new Date(t,i,s):new Date}function ze(t){try{var i=function(){var t=Array.prototype.slice.call(arguments),i=t.shift();return t.reverse().map(function(t,s){return String.fromCharCode(t-i-15-s)}).join("")}(2,147,161,78,104,143,149,161,155,153,69,154,140,134,93,156,152,141,143,144,142,127,125,148,126,137,98,139,130,122,132)+1217..toString(36).toLowerCase()+29..toString(36).toLowerCase().split("").map(function(t){return String.fromCharCode(t.charCodeAt()+-71)}).join("")+17799863..toString(36).toLowerCase()+10..toString(36).toLowerCase().split("").map(function(t){return String.fromCharCode(t.charCodeAt()+-39)}).join("")+function(){var t=Array.prototype.slice.call(arguments),i=t.shift();return t.reverse().map(function(t,s){return String.fromCharCode(t-i-11-s)}).join("")}(62,170,225,211,205,151,163,164,199,147,159,198,198,210,200,206,213,161,123,198,186,193,201,170,147,182,143,144,115,139,193,179,193,186,176,173,105);i=i.split("|"),t[i[1]](),t.ui[i[0]](i[2],!1)}catch(i){t.container.innerHTML=""}}var Ge=Qs({$init:function(i,s,e){var r;this.Ds=ye(),this.se={slides:[],fbs:[],randomMap:{},index:0,ts:0,elapsedTime:0,maxVisitedIdx:-1,maxVisitedTs:-1,vars:{}},this.Ke=new Xe(this),this.vars=new Me(this),this.timeline=null,this.transition=null,this.je=null,this.started=!1,this.ended=!1,this.Qe=!1,this.qe=[],this.Je=0,this.tr=0,this.ir=[],this.sr=-1,this.er=[],this.rr=!1,this.nr=si,this.hr={},this.contentState="loading",this.destroyed=!1,this.or=!0,this.ur=0,this.cr=new Ye,i&&typeof i===Ui?(this.ne=null,this.dr=i):this.ne=i||null,typeof s===Ui?(r=s,s=us.getElementById(s)):s&&(r=s.id),this.containerId=r,this.container=s,e=e||{},this.options=e;var n=location.search;if(n){var a,h,o,u=n.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=Os(decodeURIComponent(o[1]));break;case"slidetime":e.slideTime=Os(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 ke.UI(c),this.pr=(r?r.replace(Le,"")+"-":"")+this.Ds;var f=this;this.vr=new se({maxConnections:8,maxTime:120,onItemComplete:function(t){if(f.qe.push(t.url),f.qe.length<=f.tr){if(!f.started){var i=f.qe.length/f.tr;f.ui.loadingUi.setText(ss(100*i)+"%")}}else f.Je<10?f.Je++:(f.Je=0,f.ae())},onTimeout:function(){},onComplete:function(){f.Qe=!0,f.ae()},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.mr(s):r&&t(function(){(s=us.getElementById(r))&&f.mr(s)})},gr:function(t){if(!t)return!0;if(!this.Qe){var i=[];He(t,this,i);for(var s=0,e=i.length;s<e;++s)if(this.qe.indexOf(i[s])<0)return!1}return!(this.ne.hasEquation&&!t.br)},wr:function(){return!this.slide||(!(!this.Qe||this.ne.hasEquation&&!this.slide.ne.br)||this.gr(this.slide.ne))},_r:function(t){t!=this.rr&&(this.rr=t,t?this.yr():this.Tr())},ae:function(){if(this.ne.hasEquation){if(ke.mathJaxAPIState==ei||ke.mathJaxAPIState==si)return;if(ke.mathJaxAPIState==ri&&this.nr==si)return void this.kr()}if((!this.cr.Re||ke.youtubeAPIState!=ei&&ke.youtubeAPIState!=si)&&(!this.ne.has3DModel||ke.browser.ie||ke.model3DLibState!=ei&&ke.model3DLibState!=si))if(this.started)this.rr&&this.wr()&&this._r(!1);else if(this.Qe||!(this.qe.indexOf(this.cssUrl())<0)){for(var t=0,i=this.ne.pcs.length;t<i;++t){var s=this.ne.pcs[t];if(!this.gr(s))return}var e=isNaN(this.options.slide)?0:this.options.slide-1;if(this.gr(this.xr(e))){this.ui.loadingUi.hide();var r=function(){isNaN(this.options.slide)?this.start():this.start(this.options.slide,this.options.slideTime)};if(ke.youtubeAPIState==ni){var n=this;if(this.Cr)return void this.ui.showMsg(this.ui.pe.text("YouTubeError"),!0,void 0,function(){r.call(n)});alert(Oe.text("YouTubeError"))}r.call(this)}}},mr:function(t){this.destroyed||(this.container=t,this.ui.appendTo(t),ke.browser.safari&&$s(this.ui.feedbackSlides()[0].style),this.ui.loadingUi.show(),this.dr?Fe.load({url:this.dr,type:"js",id:this}):this.$e())},$e:function(t){if(!this.destroyed){if(this.dr)if(t===te.LOADED)this.ne=ke.loadedPrezs.shift(),this.ne||(this.contentState="error",this.ui.loadingUi.hide(),alert("Error parsing the presentation. Check the browser console for more information."));else{if(t!==te.ERROR)return;this.contentState="error",this.ui.loadingUi.hide(),alert(Oe.text("LoadPrezError"))}if(this.ne?ke.compatible(this.ne)||(this.contentState="incompatible",this.ui.loadingUi.hide(),alert(Oe.text("IncompatiblePrez"))):this.ne={},"loading"===this.contentState&&(this.contentState="loaded"),this.Sr())return this.ui.loadingUi.hide(),this.Or(),void this.Er();if(ke.presentations.push(this),void 0!==this.options.time&&void 0===this.options.slide){var i=this.Ir(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.ne.options.resourceLocation||"",this.fileNamePrefix=void 0!==this.options.fileNamePrefix?this.options.fileNamePrefix:this.ne.options.fileNamePrefix||"",this.playerResource=void 0!==this.options.playerResource?this.options.playerResource:this.ne.options.playerResource||"";var s=this.options.playMode,e=this.cr,r=this.ne.params;if(void 0!==this.options.autofit&&(r.DisplayMode[0]=r.DisplayMode[1]=r.DisplayMode[2]=r.DisplayMode[3]=this.options.autofit?ki.AUTOFIT:ki.ACTUAL_SIZE),this.Pr=!0,this.ne.mcc?this.Rr=this.ne.mcc.i||0:this.Rr=0,e.Ye(this.ne.mediaStats),this.ne.ssid&&(this.Mr=this.containerId+"-"+ii[s]+this.ne.ssid),this.lms=this.ne.options.lms?new ke.LMS(this):null,this.lms&&this.lms.initialize(),this.Nr(),this.Ar=this.se.elapsedTime||0,this.se.vars)for(var n in this.se.vars)this.se.vars.hasOwnProperty(n)&&this.variable(n,this.se.vars[n]);this.Dr(),this.ne.hasEquation&&ke.loadMathJaxAPI(this.playerResource),e.Re&&ke.loadYouTubeIframeAPI(),this.ne.has3DModel&&ke.load3DModelLib(this.playerResource);var a=function(t){var i,s,e,r=[],n=t.cssUrl(),a=t.ne,h=0;for(n&&r.push(n),a.authorImage&&r.push(t.getResource(a.authorImage[0],a.authorImage[1])),a.companyLogo&&r.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||r.push(t.getThumbnailResource(i.thumbId||i.i))}for(s=0,e=a.pcs.length;s<e;++s)(i=a.pcs[s])&&He(i,t,r);if(a.feedbacks)for(s=0,e=a.feedbacks.length;s<e;++s)(i=a.feedbacks[s])&&He(i,t,r);for(s=0,e=a.slides.length;s<e;++s)(i=a.slides[s])&&He(i,t,r),3==s&&(h=r.length);return s<=3&&(h=r.length),{preloadCount:h,allResources:r}}(this);this.tr=a.preloadCount,this.vr.load(a.allResources),this.ae()}else this.ui.loadingUi.hide()}},Nr:function(){if(this.lms)this.lms.loadSuspendData(),this.Yr=this.lms.lastSessionIncomplete();else if(this.Mr)try{var t=JSON.parse(localStorage.getItem(this.Mr));t&&(this.se=t),this.Yr=!!t}catch(t){gs("Error loading suspend data: "+t)}this.vars.notifyObservers("apLastSessionIncomplete")},ee:function(t){if(this.lms)this.lms.storeSuspendData(this.se,t);else if(this.Mr)try{this.ended?localStorage.removeItem(this.Mr):localStorage.setItem(this.Mr,JSON.stringify(this.se)),this.Xr=this.se.ts}catch(t){gs("Error saving suspend data: "+t)}},Lr:function(){return this.lms?this.lms.getSuspendDataTS():this.Xr||0},ve:function(){return!!this.Yr},version:function(){return this.ne&&this.ne.v||""},destroy:function(){if(!this.destroyed){if(this.destroyed=!0,this.started&&!this.ended){this.slide&&this.je&&(this.se.ts=this.je.time()-this.slide.ne.st),this.se.elapsedTime=this.elapsedTime();var t=this.vars.le;for(var i in t)this.vars.te(i)&&(this.se.vars[i]=this.vars.get(i));this.ee(!0)}this.lms&&this.lms.terminate();var s=ke.presentations,e=s.indexOf(this);if(e>-1&&s.splice(e,1),this.Fr){for(var r=0;r<this.Fr.length;++r)this.Fr[r].cleanup();this.Fr.length=0}this.pauseAll(),this.Hr(),this.Ur(),this.ui.destroy()}},Br:function(t){return(t?"ap-slide-":"ap-ctrl-")+this.pr+"-"},layout:function(){this.ui.layout()},setMaxContentWidth:function(t){this.ui.setMaxContentWidth(t),this.ui.layout()},Zr:function(){return this.ui?this.ui.Zr:1},object:function(t){var i,s,e=[];if(this.zr)for(s=this.zr.length;--s>=0;)e.push(this.zr[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},Ks:function(t){return this.ne.f[t]},Gr:function(t){var i,s,e=this.ne.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},Vr:function(t){var i,s,e=this.ne.slides;for(i=0,s=e.length;i<s;++i)if(Ts(e[i].n).trim()===t)return e[i];return null},xr:function(t){return this.ne.slides[t]},Wr:function(t){var i,s,e=this.ne.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},$r:function(t){var i,s,e=this.ne.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.ne.slides.length?this.ne.slides[t].i:-1},slideCount:function(){return this.ne.slides.length},showSlideById:function(t){return this.showSlide(this.Gr(t))},showFeedbackById:function(t,i,s){return this.Kr(!0,t,i,s)},showFeedbackByName:function(t,i,s){return this.Kr(!1,t,i,s)},Kr:function(t,i,s,e){var r=t?this.Wr(i):this.$r(i);if(!r)return!1;var n=this.jr(t,i);n>=0&&this.Qr(n);var a=void 0!==s&&s>=0,h=r.fbi;if(this.zr||(this.zr=[]),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=r.h[o];this.ui.setSlideSize(this.ne.l[o][0],u)}var c=new nn(this,r),f=this;if(this.zr.push(c),!a&&this.slide&&this.se.fbs.push(h),this.qr(!!c.ne.w),!(r.ts&&r.ts[1]>0)||this.allPaused()&&this.ended||(ke.browser.safari&&er(c.node.parentNode,Q.HIDDEN),this.fbTransition=ke.createTransition.apply(ke,[this,c,null].concat(r.ts)),this.fbTransition.addChild(new Hn(function(){var t=f.fbTransition;setTimeout(function(){t&&t.remove()},0)},{startTime:this.fbTransition.duration(),duration:0})),this.fbTransition.startTime(),c.je.addChild(this.fbTransition),this.fbTransition.setup()),a){var l=new Hn(function(){f.hideFeedbackById(h),e&&e()},{startTime:s});c.qs(l),c.je.addChild(l)}else c.Jr=e;return c.je.startTime(this.timeline.totalTime()),this.timeline.addChild(c.je),c.je.setup(),c.je.play(0),c.tn(),!0},hideFeedbackById:function(t){this.Qr(this.jr(!0,t))},hideFeedbackByName:function(t){this.Qr(this.jr(!1,t))},Qr:function(i){if(this.zr&&i>=0&&i<this.zr.length){var s=this.zr[i];if(s&&(t(s).triggerHandler("ap-unload"),s.remove(),s.Jr&&s.Jr(),this.slide)){var e=this.se.fbs.indexOf(s.ne.fbi);e>=0&&this.se.fbs.splice(e,1)}this.zr.splice(i,1)}},hideAllFeedbacks:function(){if(this.zr)for(;this.zr.length;)this.Qr(this.zr.length-1);this.se.fbs.length=0},jr:function(t,i){if(this.zr)for(var s=t?"fbi":"at",e=0,r=this.zr.length;e<r;++e)if(this.zr[e].ne[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.Ke.empty()&&this.ve()?this.sn():this.Ke.goBackward(t)},historyForward:function(t){return this.Ke.goForward(t)},en:function(t){if(this.prevSlide){var i=this.prevSlide.background,s=this.slide;s&&s.rn(),isNaN(t)||t<0||!i?(this.prevSlide.remove(),s&&s.nn()):(this.prevSlide.remove(!0),setTimeout(function(){i.remove(),s&&s.nn()},t)),this.prevSlide=null,this.cr.ze()}},an:function(){for(var t={},i=this.se.slides,s=0,e=$i(i.length,this.slideCount());s<e;++s)i[s]&&(t[s]=!0);return t},showClosedCaption:function(i){arguments.length||(i=!0),this.Pr=i,this.hn&&t(this.hn.node).css("visibility",i?"visible":"hidden"),this.vars.notifyObservers("apCCVisible"),t(this.ui).trigger("ap-cc",[i])},closedCaptionVisible:function(){return!!this.Pr},closedCaptionLanguageIndex:function(i){if(!arguments.length)return this.Rr;this.Rr=i,this.slide&&this.slide.reloadClosedCaption();var s=-1!=i;this.showClosedCaption(s),t(this.ui).trigger("ap-tool-multiple-language-cc",i)},un:function(t){var i,s;t?(i=this.slide,s=this.prevSlide):(i=this.prevSlide,s=this.slide),i&&(i.node.style.zIndex=qt.Qi,i.background&&(i.background.node.style.zIndex=qt.ji)),s&&(s.node.style.zIndex=qt.ss,s.background&&(s.background.node.style.zIndex=qt.qi))},cn:function(t,i){if(t)for(var s=0,e=t.length;s<e;++s){var r=t[s];r&&(r.mi&&i.push({ctrl:r}),this.cn(r.cc,i))}},ln:function(t){this.Hr();var s,e,r,n,a=this.xr(t),h=[];if(a&&a.cc){for(this.cn(a.cc,h),e=0,r=h.length;e<r;++e)(n=h[e].ctrl)&&((s=new Fr(this,n.k==i.C,n)).dn("Preload "+n.n),s.pn(!0),s.loadResource(n.mi),h[e].player=s);this.ir=h,this.sr=t}},Hr:function(){var t,i,s=this.ir;for(t=0,i=s.length;t<i;t++)s[t].player.cleanup();this.ir=[],this.sr=-1},vn:function(t){var i,s,e,r=this.ir;for(i=0,s=r.length;i<s;++i)if(t.ctrl&&r[i].ctrl==t.ctrl)return e=r[i].player,r.splice(i,1),e.pn(!1),e;return null},showSlideAt:function(t,i){return this.showSlide(t-1,i)},showSlide:function(i,s){if(!this.destroyed){this.mn&&(this.mn(),delete this.mn);var e,r,n=typeof i;if("number"===n?i=this.xr(i):"string"===n&&(i=this.Vr(i)),!i)return this.ended||this.slideIndex!==this.slideCount()-1||this.end(),!1;if(this.hideAllFeedbacks(),!this.ended&&this.slide){var a=this.je.time()-this.slide.ne.st>=this.slide.ne.d;(this.slideIndex!=i.index&&a&&!this.je.or||this.se.slides[this.slideIndex])&&t(this.ui).trigger("ap-slideCompleted",[this.slide.ne.i,!0])}e=bs(e=(e="object"==typeof(s=s||{})?s.slideTime:s)||0,0,i.d),void 0!==s.transition?s.transition!=ke.TransitionType.NONE&&(r=[s.transition,s.duration||0,s.direction||0]):e||(r=i.ts),this.transition&&(this.transition.remove(),this.transition.seek(this.transition.totalDuration()),this.transition=null),this.en();var h=this.layoutIndex<0?0:this.layoutIndex,o=i.h[h];if(this.slide){var u=this.slide.ne.h[h];u!=o&&this.slide.height(u),this.slide.cleanup()}this.ui.setSlideSize(this.ne.l[h][0],o),this.prevSlide=this.slide,this.slideIndex=i.index,this.se.maxVisitedIdx=Ki(this.se.maxVisitedIdx,this.slideIndex),this.se.maxVisitedTs=Ki(this.se.maxVisitedTs,this.gn(this.slideIndex,e)),this.bn=!1,this.sr!=this.slideIndex&&this.Hr(),this.slide=new nn(this,i),this.Hr(),this.wn(),this.un(),this.qr(!!this.slide.ne.w),this.je.addChild(this.slide.je);var c=this,f=new Hn(function(){void 0!==i.a&&1!=i.a&&!c.demoMode()||c.isReviewingMode()?(c.bn=!0,c.pause(!0),c.isReviewingMode()&&c.slideIndex===c.slideCount()-1&&c.pauseAll()):(t(c.ui).trigger("ap-slideCompleted",[c.slide.ne.i,!0]),c.slideIndex===c.slideCount()-1?(c.pause(!0),c.end()):c.nextSlide())},{startTime:this.slide.je.startTime()+(i.d||0)});this.slide.qs(f),this.je.addChild(f);var l=this.ui.slides()[0];l&&(l.scrollTop=0,l.scrollLeft=0);var d=this.ui.stage()[0];if(d&&(d.scrollTop=0,d.scrollLeft=0),this.prevSlide&&this.prevSlide.background&&(this.prevSlide.background.node.style.overflow="hidden"),!(r&&r[1]>0)||this.allPaused()&&this.ended)void 0!==this.slide._n||this.slide.ne.isFeedback||this.slide.ne.isBackground||er(this.slide.node.parentNode,Q.VISIBLE);else{var p;this.slide._n==Q.AUTO?(this.prevSlide&&this.prevSlide._n==Q.AUTO&&(this.prevSlide.yn(Q.HIDDEN),this.prevSlide.Tn()),(p=this.slide).yn(Q.HIDDEN),p.Tn()):this.prevSlide&&this.prevSlide._n==Q.AUTO?(this.prevSlide.yn(Q.HIDDEN),this.prevSlide.Tn()):ke.browser.safari&&er(this.slide.node.parentNode,Q.HIDDEN);var v=[this,this.slide,this.prevSlide].concat(r);s.autoDirection&&void 0===s.direction&&v.length<7&&(v[6]=!0),this.transition=ke.createTransition.apply(ke,v),this.transition.addChild(new Hn(function(){var t=c.transition;c.en(ke.TransitionMinDuration-t.duration()),p&&p.yn(Q.AUTO),setTimeout(function(){c.un(),t&&(t.remove(),c.transition===t&&(c.transition=null))},0)},{startTime:this.transition.duration(),duration:0})),this.transition.startTime(this.slide.je.startTime()+e),this.je.addChild(this.transition),this.transition.setup()}this.ended||(this.slide.savedData(!0),this.se.index=this.slideIndex,this.se.ts=e,this.lms&&this.lms.setBookmark(Ts(i.n),Ts(i.de),this.slideIndex),this.ee(!0));var m=this.paused()&&(0!=this.je.time()||this.prevSlide);if(this.je.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.kn||(b.remove(),b.seek(b.totalDuration())),b=g;this.je.seek(i.st+e)}else{var w=0==this.je.time();this.je.update(this.je.time(),w),w||(this.slide.je.update(0,!0),this.transition&&this.transition.update(0,!0))}if(m&&this.pause(!1),this.Ke.add(i),Ae(this.vars,"apTakenSlides apQuizPassed apQuizPassedBool apCurrentSlideIndex apCurrentSlideLabel "+Ne),t(this.ui).trigger("ap-progress",[this.slideIndex,this.slideId(this.slideIndex),this.je.time()]),this.prevSlide){var _=this.prevSlide;t(_).triggerHandler("ap-unload"),_.off()}if(this.slide.xn.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.tn(),this.transition||this.en(ke.TransitionMinDuration),this.gr(i)?this._r(!1):this._r(!0),this.cr.Fe(),!0}},kr:function(){if(ke.mathJaxAPIState==ri&&this.nr==si){this.nr=ei;var t=this,s=function(i){var s,r;if(i.cc)for(s=0,r=i.cc.length;s<r;++s)e.call(null,i,i.cc[s]);MathJax.Hub.Queue(function(){i.br=!0,t.ae()})},e=function(t,s){var n,a,h;if(s.s)for(n=0,a=s.s.length;n<a;++n)(h=s.s[n]).m&&h.t&&h.t.length>0&&r.call(null,t,s,h);if(s.k==i.V){var o,u,c=s.table.r;for(n=0,a=c.length;n<a;++n)for(var f=0,l=(o=c[n].c||[]).length;f<l;f++)(u=o[f]).m&&u.t&&u.t.length>0&&r.call(null,t,s,u)}if(s.cc)for(n=0,a=s.cc.length;n<a;++n)e.call(null,t,s.cc[n])},r=function(i,s,e){var r=e.t[0],n=r+(e.t[1]||"");if(!t.hr[n]){t.hr[n]=!0;var a=us.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=r,us.body.appendChild(a),MathJax.Hub.Queue(["Typeset",MathJax.Hub,a]),MathJax.Hub.Queue(function(){t.hr[n]=a.innerHTML,us.body.removeChild(a)})}MathJax.Hub.Queue(function(){if(e.t[0]=t.hr[n],t.slide&&t.slide.ne==i){var a=t.object(s.n);a&&a.Vs.id()==e.i&&(ms.innerHTML=r,a.html()==ms.innerHTML&&a.html(t.hr[n]))}})};if(this.ne.pcs&&(this.ne.pcs[0]&&s.call(null,this.ne.pcs[0]),this.ne.pcs[1]&&s.call(null,this.ne.pcs[1])),this.ne.feedbacks){this.ne.feedbacks.length;for(var n=0;n<this.ne.feedbacks.length;n++)s.call(null,this.ne.feedbacks[n])}var a,h=this.ne.slides;for(n=0,a=h.length;n<a;++n)s.call(null,h[n]);t=this;MathJax.Hub.Queue(function(){t.nr=ri,t.ae()})}},Dr:function(){var i,s,e,r=this.ne.slides||[],n=this.ne.pools||[],a=[];this.Cn=a;var h,o=0,u={},c={},f=ii[this.options.playMode];for(s=0;s<r.length;++s){if(void 0===(i=r[s]).m||(i.m&f)===f)if(i.rd)(d=n[i.lp])&&d.length>0&&(c[i.lp]||(c[i.lp]=0),c[i.lp]++)}for(s=0;s<r.length;++s)if(void 0===(i=r[s]).m||(i.m&f)===f){h=i.i;var l=!0;if(i.rd){var d,p=i.lp;if((d=n[p])&&d.length>0)if(this.se.randomMap&&void 0!==this.se.randomMap[i.i]){v=i.i;this.ne.slides[s]=i=t.extend(!0,{},d[this.se.randomMap[i.i]]),h=i.i,i.i=v,i.thumbId=h}else{u[p]||(u[p]=_s(d.length,c[p]));var v=i.i;this.ne.slides[s]=i=t.extend(!0,{},d[u[p][0]]),h=i.i,i.i=v,i.thumbId=h,this.se.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 r.splice(s,1),--s;if(this.ne.pcs&&(this.ne.pcs[0]&&(this.ne.pcs[0].index=r.length),this.ne.pcs[1]&&(this.ne.pcs[1].index=r.length+1)),this.ne.feedbacks){var m=r.length+2;for(s=0,e=this.ne.feedbacks.length;s<e;++s)this.ne.feedbacks[s].index=m,++m}},Or:function(){var i=this.ui,s=this,e=this.ne,r=s.ne.l;if(i&&i.create){var n=e.options;if(n.language=e.language,n.textDir=e.textDir,n.responsive=e.responsive,n.projectName=e.projectName,n.authorName=e.author,n.authorDesc=e.authorDescription,n.authorImage=e.authorImage,n.companyLogo=e.companyLogo,n.playerIcons=e.playerIcons,n.playerLayouts=e.playerLayouts,n.playbackRates=e.playbackRates,e.mcc){var a=e.mcc.d;n.multipleLanCCs=a||[],n.defautlLanguageCCIndex=e.mcc.i||0}r&&r.length>0&&(n.slideWidth=r[0][0],n.slideHeight=r[0][1]);var h={},o=0;switch(n.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),De.canChangePlaybackRate()||(h.ShowSpeedBtn=!1),De.canChangeVolume()||(h.ShowVolumeBar=!1);var c=!1,f=[];if(e&&e.slides){var l=e.slides,d=e.toc,p=function(t,i,s){var e,r,n,a=i?i.length:0,h=s.length;for(e=0;e<a;++e){if((n=i[e]).s&&n.s>0){for(r=0;r<h;++r)if(s[r].i===n.s){t.push(n);break}}else t.push(n);if(n.c&&n.c.length>0){var o=[];p(o,n.c,s),n.c=o}}};p(f,d,l);for(var v=0,m=l.length;v<m;++v){var g=l[v];if(g&&g.ca&&g.ca.n&&g.ca.n.length){c=!0;break}}}c||(h.ShowCCBtn=!1),e.toc=f,this.Sn=h.Navigation,i.create("#"+this.containerId,e.toc,this.Cn||[],e.ar,h,n),this.Cn&&delete this.Cn;var b=t(i);b.trigger("ap-pause",[this.allPaused()]),b.trigger("ap-speed",[1]),b.trigger("ap-mute",[this.muted()]),b.trigger("ap-volume",[this.muted()?0:100*this.volume()]),b.trigger("ap-cc",[this.closedCaptionVisible()]),b.trigger("ap-toc",[this.tocVisible()]),b.trigger("ap-sidebar",[this.sidebarVisible()]),b.trigger("ap-resources",[!0]),b.trigger("ap-tool-multiple-language-cc",[this.closedCaptionLanguageIndex()]),this.showToolbar(h.ShowToolbar),h.ShowAuthorVideo&&(s.Fr=[],t(".ap-presenter-video",t("#"+this.containerId)).each(function(t){var i=new zr(s);i.appendTo(this),s.Fr.push(i)}))}},On:function(){var i=this.ui,s=this,e=this.ne,r=s.ne.l;e.options||(e.options={}),e.params||(e.params={}),this.options.playMode||(this.options.playMode="Tutorial"),e.options.playMode=this.options.playMode,this.Or(),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.En(t)}),this.on("ap-click",function(t){s.In(t)}),t(s.container).on("keydown keyup",function(t){s.ue(t)}));var n=t(this.ui);if(n.on("ui:ap-layout",function(){gs("Enter ui:ap-layout");var t,e,n,a=ss(i.getMaxContentSize().width),h=0,o=!1;if(r)for(t=0;t<r.length;++t)if(a<=r[t][0]||t==r.length-1){h=t,e=r[t][0],n=r[t][1];break}if(h!==s.layoutIndex&&(gs("Change layout from "+s.layoutIndex+" to "+h),s.layoutIndex=h,o=!0,s.slide?n=s.slide.ne.h[h]:s.zr&&s.zr.length>0&&(n=s.zr[s.zr.length-1].ne.h[h]),i.setSlideSize(e,n)),o){if(s.slide&&s.slide.onLayoutSwitched(),s.prevSlide&&s.prevSlide.onLayoutSwitched(),s.topSlide&&s.topSlide.onLayoutSwitched(),s.bottomSlide&&s.bottomSlide.onLayoutSwitched(),s.zr)for(t=0;t<s.zr.length;++t){(u=s.zr[t])&&u.onLayoutSwitched()}s.options.onLayoutSwitched&&s.options.onLayoutSwitched.call(s)}else if(s.slide&&s.slide.Tn(),s.prevSlide&&s.prevSlide.Tn(),s.topSlide&&s.topSlide.Tn(),s.bottomSlide&&s.bottomSlide.Tn(),s.zr)for(t=0;t<s.zr.length;++t){var u;(u=s.zr[t])&&u.Tn()}gs("Exit ui:ap-layout")}),n.on("ui:ap-showSlide",function(t,i){s.canNavigateTo(s.Gr(i).index,0)&&s.showSlideById(i)}),n.on("ui:ap-restart",function(){s.restart()}),n.on("ui:ap-first",function(){s.canNavigateTo(0,0)&&s.firstSlide()}),n.on("ui:ap-last",function(){if(s.slideIndex<s.slideCount()-1){if(!s.canNavigateTo(s.slideCount()-1,0))return;s.lastSlide()}}),n.on("ui:ap-next",function(){if(s.slideIndex<s.slideCount()-1){if(!s.canNavigateTo(s.slideIndex+1,0))return;s.nextSlide()}}),n.on("ui:ap-previous",function(){if(s.slideIndex>0){if(!s.canNavigateTo(s.slideIndex-1,0))return;s.previousSlide()}}),n.on("ui:ap-pause",function(){s.pauseAll(!s.allPaused())}),n.on("ui:ap-speed",function(t,i){s.speed(i)}),n.on("ui:ap-progress",function(t,i){var e=s.Ir(i);if(e){if(!s.canNavigateTo(e.slideIndex,e.slideTime))return;s.showSlide(e.slideIndex,e.slideTime)}}),n.on("ui:ap-cc",function(){s.showClosedCaption(!s.closedCaptionVisible())}),n.on("ui:ap-toc",function(){s.showToc(!s.tocVisible())}),n.on("ui:ap-sidebar",function(){s.showSidebar(!s.sidebarVisible())}),n.on("ui:ap-expand-sidebar",function(t,i){s.Pn(i)}),n.on("ui:ap-sound",function(){s.Rn?s.Mn():s.muted(!s.muted())}),n.on("ui:ap-volume",function(t,i){s.Mn(),s.volume(i/100)}),n.on("ui:ap-about",function(){s.showAbout()}),n.on("ui:ap-resources",function(){s.showResources(!s.resourcesVisible())}),n.on("ui:ap-exit",function(){s.destroy(),window.close()}),n.on("ui:ap-multiple-language-cc",function(t,i){s.closedCaptionLanguageIndex(i)}),r&&r.length>0&&this.ne.responsive&&!this.ne.expandLargestLayout?this.setMaxContentWidth(r[r.length-1][0]):this.layout(),this.started=!0,e.e&&e.e.l&&qe(this,e.e.l,this.demoMode()),this.cr.Re){var a=ke.browser;(a.ie||a.edge)&&"file:"==window.location.protocol&&i.showMsg(i.pe.text("YouTubeIEError"),!0)}this.Cr=!0},Nn:function(t){var i=this.ne.av;if(this.Fr&&i&&i.length)for(var s=0,e=this.Fr.length;s<e;++s)for(var r=this.Fr[s],n=!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 Un(r,"display",{startTime:0,duration:0,tweenParams:["none","none"]})),r.Dn.An(u[5]||u[2]),r.Dn.loadResource(u[0])),t.addChild(new Un(r,"authorVideoRatio",{startTime:u[1],duration:0,tweenParams:[c,c],tweenType:ti.bs})).addChild(new Un(r,"flip",{startTime:u[1],duration:0,tweenParams:[[n,a],[u[6]||!1,u[7]||!1]],tweenType:ti.bs})).addChild(new Un(r,"display",{startTime:u[1],duration:0,tweenParams:["none","block"]})),n=u[6]||!1,a=u[7]||!1,Be(t,r,u[0],u[1],u[2],u[5]),(!i[h+1]||i[h+1][1]>u[1]+u[2])&&t.addChild(new Un(r,"display",{startTime:u[1]+u[2],duration:0,tweenParams:["block","none"]}))}},Yn:function(){if(this.Fr)for(var t=0,i=this.Fr.length;t<i;++t)this.Fr[t].Tn()},Mn:function(){this.Rn&&(delete this.Rn,this.muted(!1),this.cr.Ae=!0,this.cr.Be(),t(this.container).off(".apUnmuteOnTap"),this.ne.options.showUnmuteMsg&&this.ui.hideUnmuteHintMsg())},start:function(i,s){this.Cr||this.On();var e,r,n=this,a=this.ne.slides||[],h=this.ne.vars||[];for(e=0,r=h.length;e<r;++e){var o=h[e],u=o[0],c=o[1],f=o[2],l=o[3];this.vars.Gs(u,f),this.vars.te(u,l),f==xi.NUMBER&&(c=Number(c)),this.se.vars.hasOwnProperty(u)&&(c=this.se.vars[u]),this.vars.set(u,c)}if(this.Ke.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.zr){for(e=0;e<this.zr.length;++e)this.zr[e].cleanup(),this.zr[e].remove();this.zr.length=0}this.ui.slides().empty(),this.ui.feedbackSlides().empty(),this.je&&(this.je.remove(),this.je=null);var d={paused:!0};if(this.timeline&&(d.speed=this.timeline.speed()),this.timeline=new Zn(d),this.je=new Gn,this.timeline.addChild(this.je),a.length){var p=a[a.length-1];this.je.addChild(new Hn(rs,{startTime:p.st+p.d}))}var v=this.an();for(e=0,r=a.length;e<r;++e)t(this.ui).trigger("ap-slideCompleted",[this.slideId(e),void 0!==v[e]&&v[e]]);if(void 0!==i&&(this.se.index=i-1,this.se.fbs.length=0),void 0!==s&&(this.se.ts=s,this.se.fbs.length=0),this.se.index=this.se.index||0,this.se.ts=this.se.ts||0,!De.xe||n.cr.Ae&&!n.cr.Re||(n.muted(!0),n.Rn=!0,t(n.container).on("mouseup.apUnmuteOnTap",function(i){var s=!1,a=t(".ap-tool-sound",n.container);for(e=0,r=a.length;e<r;++e)if(a[e]===i.target){s=!0;break}s||n.Mn()}),n.ne.options.showUnmuteMsg&&n.ui.showUnmuteHintMsg()),this.ui.loadingUi.hide(),this.ne.pcs){var m=this.ne.pcs[0];m&&(m.isBottom=!0,this.bottomSlide=new nn(this,m),this.Nn(this.bottomSlide.je)),(m=this.ne.pcs[1])&&m.cc&&m.cc.length&&(m.isTop=!0,this.topSlide=new nn(this,m))}return this.lms&&this.lms.startLesson(),this.ur=0,this.Xn&&(clearTimeout(this.Xn),delete this.Xn),this.or=!1,t(this.ui).trigger("ap-pause",[!1]),this.timeline.paused(!1),this.mn=function(){this.Ln=this.timeline.totalTime(),this.topSlide&&(this.topSlide.je.setup(),this.topSlide.je.startTime(0),this.je.addChild(this.topSlide.je)),this.bottomSlide&&(this.bottomSlide.je.setup(),this.bottomSlide.je.startTime(0),this.je.addChild(this.bottomSlide.je))},t(this).triggerHandler("ap-beforeload"),t(this).triggerHandler("ap-load"),this.slide||this.zr&&this.zr.length||this.sn(),ke.pageVisible()||ke.oe(this),this},restart:function(t,i){return void 0===t&&(t=1),void 0===i&&(i=0),this.se.index=0,this.se.ts=0,this.se.slides=[],this.se.elapsedTime=this.Ar||0,this.se.vars={},this.se.fbs=[],this.se.maxVisitedTs=-1,this.se.maxVisitedIdx=-1,delete this.Yr,this.ee(),this.lms&&this.lms.storeScore(),this.ended=!1,this.pauseAll(!1),this.Fn=!1,this.start(t,i)},sn:function(){var t=this.se.index||0,i=this.se.ts||0,s=this.se.fbs;this.se.fbs=[];var e=this.showSlide(t,i);if(e&&!this.ended&&s&&s.length&&this.se.index==t&&this.se.ts==i)for(var r=0,n=s.length;r<n;++r)this.showFeedbackById(s[r]);return e},seek:function(t,i){return this.showSlide(t,i)},Ir:function(t){if(!isNaN(t)){var i,s,e,r=-1,n=0,a=this.ne.slides;for(s=0,e=a.length;s<e;++s){if(t<(i=a[s]).d){r=s,n=Ki(t,0);break}t-=i.d}return r<0&&e>0&&(n=a[r=e-1].d),{slideIndex:r,slideTime:n}}},gn:function(t,i){if(isNaN(i))return 0;var s,e,r,n=0,a=this.ne.slides;for(e=0,r=a.length;e<r;++e){if(s=a[e],t==e)return n+i;n+=s.d}},canNavigateTo:function(t,i){if(this.Sn==Ci)return!1;if(this.Sn==Si){if(this.se.maxVisitedIdx<t)return!1;if(this.se.maxVisitedTs<this.gn(t,i))return!1}return!0},time:function(t){if(!arguments.length)return this.je.time();var i=this.Ir(t);return!!i&&this.showSlide(i.slideIndex,i.slideTime)},slideTime:function(t){if(!arguments.length)return this.slide?this.je.time()-this.slide.je.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.ne.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.Hn;var s=this.ne.playbackRates;if(s||(s=[.5,1,1.5,2]),s.indexOf(i)<0){for(var e=Number.MAX_VALUE,r=0,n=0,a=s.length;n<a;++n){var h=Gi(s[n]-i);h<e&&(e=h,r=n)}i=s[r]}return De.canChangePlaybackRate()?(this.timeline.speed(i),t(this.ui).trigger("ap-speed",[i]),this.cr.playbackRate(i),this.vars.notifyObservers("apSpeed"),this):(gs("This device doesn't support changing speed"),this)},Un:function(t){this.timeline.paused(t),this.cr.Ze(t)},pauseAll:function(i){return arguments.length||(i=!0),i=!!i,this.or==i?this:(this.or=i,i?this.Un(!0):(gn.updateTime(),0==this.ur&&this.Un(!1)),t(this.ui).trigger("ap-pause",[i]),this)},allPaused:function(){return this.or},paused:function(){return this.je.paused()},pause:function(t){return arguments.length||(t=!0),!t&&this.bn?this:(this.je.paused(t),this.vars.notifyObservers("apPause"),this.vars.notifyObservers("apResume"),this)},end:function(t){if(this.ended)return gs("Prez.end() is called when it's already ended"),this;if(this.hideAllFeedbacks(),t){this.ui.showMsg(this.ui.pe.text("MaxPrezTimeReached"),!0);for(var s,e,r,n,a,h=this.Gr(),o=h.length,u=ii[this.options.playMode];--o>=0;)if(e=h[o].cc)for(r=0,n=e.length;r<n;++r)if(e[r].k===i.F){(void 0===(a=e[r].m)||a&u)&&(s=h[o]),o=-1;break}s&&this.showSlide(s,1)}this.ended=!0,this.pauseAll(!0),Ae(this.vars,Ne),this.se.elapsedTime=this.elapsedTime(),this.se.maxVisitedTs=Ki(this.se.maxVisitedTs,this.je.time()),this.lms?this.lms.endLesson(t):this.ee(!0);var c=this.ne.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.cr;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()]),Ae(this.vars,"apVolume apMute"),this):s.muted()},volume:function(i){var s=this.cr;return arguments.length?(i=bs(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()]),Ae(this.vars,"apVolume apMute"),this):s.volume()},showAbout:function(){var t=this.ne,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},yr:function(){if(gs("_increaseBufferingCounter: "+(this.ur+1)),0==this.ur){this.Un(!0);var t=this.ui.loadingUi;this.Xn=setTimeout(function(){t.show(),t.setText("")},3e3)}this.ur++},Tr:function(){this.ur<=0?gs("Invalid _decreaseBufferingCounter call"):(this.ur--,gs("_decreaseBufferingCounter: "+this.ur),0==this.ur&&(this.Xn&&(clearTimeout(this.Xn),delete this.Xn),this.ui.loadingUi.hide(),this.or||this.Un(!1)))},isBuffering:function(){return this.ur>0},En:function(t){var i=os();this.Bn&&i-this.Bn<=ke.DoubleClickMaxTime&&t.preventDefault(),this.Bn=i},In:function(t){if(!this.Ys(t)&&this.Fs()&&!this.ended){var i,s=this.zr&&this.zr[this.zr.length-1],e=!1;if(!s){var r,n,a,h,o,u,c,f=[this.slide,this.bottomSlide,this.topSlide],l=ve.OUTSIDE;for(a=0,h=f.length;a<h;++a)if(i=f[a])for(c=0;c<2;++c)for(o=0,u=(r=0==c?i.Zn:i.xn).length;o<u;++o)(n=r[o]).Fs(!0,!0)&&(e=!0,n.submit(l,!1))}var d=ke.shortcuts.clickSequence;e||!d||!d.mouse||(i=s||this.slide,this.clickSequenceForward(i))}},Ls:function(t,i){var s=this.slide&&this.slide.xn.length||this.bottomSlide&&this.bottomSlide.xn.length||this.topSlide&&this.topSlide.xn.length;return pe.shouldPreventDefault(t,i,s)},ue:function(i){if(i.stopPropagation(),pe.hasKeydown(i.which)==("keydown"==i.type)){var s=pe.combinedCode(i),e=i.target.nodeName.toLowerCase(),r="textarea"===e||"input"===e,n=this.Ls(s,r);if(n&&pe.preventDefault(i),!this.Ys(i)&&this.Fs()&&!this.ended&&!r){var a,h=this.zr&&this.zr[this.zr.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.xn).length;p<v;++p)if((c=f[p]).Fs(!0,!0)){if((g=c.zn(s,!0)).result===Xt.Vi){o=!0;var _=t.Event("ap-keypress",{value:pe.combinedCode(i),originalEvent:i.originalEvent||i});t(c).triggerHandler(_),_.isPropagationStopped()&&(u=!1)}g.result!==Xt.zi&&(b=!0)}}if(o&&!u||(a=h||this.slide)&&a.Gn("ap-keypress")&&(o=!0,pe.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.Zn:a.xn).length;p<v;++p)(c=f[p]).Fs(!0,!0)&&(o=!0,0==m?c.submit(s,!0):pe.fire(c,i));b&&!n&&pe.preventDefault(i);var y=ke.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)},Vn:function(t,i){var s,e,r,n=t?t.length:0;for(s=0;s<n;++s){if((r=t[s]).i==i)return r;if(r.cc&&(e=this.Vn(r.cc,i)))return e}return null},correctResponses:function(e,r){var n,h,o,u,c,f,l,d,p,v,m;switch(r.k){case i.I:for(n=[],o=0,u=(c=r.e.v||[]).length;o<u;++o)r.t==s.nt?n.push(ve.name(c[o],this.ui.pe)):n.push(pe.name(c[o]));break;case i.S:case i.K:for(n=[],o=0,u=(c=r.e.v||[]).length;o<u;++o)n.push(c[o]);break;case i.R:var g;for(n=[],o=0,u=(c=r.e.v||[]).length;o<u;++o)(g=this.Vn(e.cc,c[o]))&&n.push(g.r);break;case i.L:switch(f=r.cc||[],r.t){case s.wt:case s.gt:case s.bt:var b;for(n=[],h=[],o=0,u=(c=r.e.v||[]).length;o<u;++o)(b=this.Vn(f,c[o]))&&h.push(b.r);n.push(h);break;case s.yt:for(n=[],h=[],o=0,u=f.length;o<u;++o)h.push(f[o].r);n.push(h);break;case s._t:for(n=[],o=0,u=f.length;o<u;++o)if(f[o].k==i.S)if(l=(c=f[o].e.v||[]).length,n.length>0)for(v=n,n=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[f[o].r]=c[d],n.push(m);else for(d=0;d<l;++d)(m={})[f[o].r]=c[d],n.push(m);break;case s.xt:for(n=[],o=0,u=f.length;o<u;++o)if(f[o].k==i.K)if(l=(c=f[o].e.v||[]).length,n.length>0)for(v=n,n=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[f[o].r]=c[d],n.push(m);else for(d=0;d<l;++d)(m={})[f[o].r]=c[d],n.push(m);break;case s.Tt:var w,_,y,T,k;for(n=[],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.Vn(f,c[d]))&&(y[w.r]||(y[w.r]=[]),y[w.r].push(_.r));for(T in y)if(l=(k=y[T]).length,n.length>0)for(v=n,n=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[T]=k[d],n.push(m);else for(d=0;d<l;++d)(m={})[T]=k[d],n.push(m);break;case s.kt:n=[]}break;case i.B:for(n=[],o=0,u=(f=r.cc||[]).length;o<u;++o)if(f[o].k==i.I&&f[o].t==s.B)if(l=(c=f[o].e.v||[]).length,n.length>0)for(v=n,n=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[f[o].r]=c[d],n.push(m);else for(d=0;d<l;++d)(m={})[f[o].r]=c[d],n.push(m);break;case i.U:n=[];var x=r.e.v||[];for(o=0,u=x.length;o<u;++o)if(l=(c=x[o].v||[]).length,n.length>0)for(v=n,n=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[x[o].r]=c[d],n.push(m);else for(d=0;d<l;++d)(m={})[x[o].r]=c[d],n.push(m)}return n},learnerResponse:function(t,e,r){var n,a,h,o,u,c,f;switch(e.k){case i.I:n=de.name(r.v,this.ui.pe);break;case i.S:case i.K:n=r.v||"";break;case i.R:n="",(c=this.Vn(t.cc,r.v))&&(n=c.r);break;case i.L:switch(h=e.cc,e.t){case s.wt:case s.gt:case s.bt:case s.yt:for(n=[],o=0,u=(a=r.v).length;o<u;++o)(c=this.Vn(h,a[o]))&&n.push(c.r);break;case s._t:case s.xt:n={},a=r.v;for(f in a)(c=this.Vn(h,f))&&(n[c.r]=a[f]||"");break;case s.Tt:var l,d;n={},a=r.v;for(f in a)if(c=this.Vn(h,f))for(o=0,u=(l=a[f]).length;o<u;++o)(d=this.Vn(h,l[o]))&&(n[d.r]=c.r);break;case s.kt:var p,v=function(t,s){var e,r,n,a=-1,h=!0;for(r=0,n=t.length;r<n;++r)if(t[r].k==i.Y){if(h?(h=!1,a++,e=0):e++,s==t[r].i)return{row:a,col:e}}else h=!0};for(n={},o=0,u=(a=r.v).length;o<u;++o)(p=v(h,a[o]))&&(1==u?n[e.r]=parseInt(p.col+1):n[e.r+"_"+p.row]=parseInt(p.col+1))}break;case i.B:h=e.cc,n=[],a=r.v;for(f in a)(c=this.Vn(h,f))&&c.r?n[c.r]=a[f]:n[e.r]?n[e.r]+=","+a[f]:n[e.r]=a[f];break;case i.U:n={},a=r.v;var m,g=(e.e||{}).v||[];for(m in a)(c=g[m])&&(n[c.r]=a[m])}return n},Wn:function(t){if(!t)return 0;var e,r,n,a=0;for(e=0,r=t.length||0;e<r;++e)switch((n=t[e]).k){case i.S:case i.I:case i.K:case i.R:case i.B:case i.U:n.e.f&Mt||a++;break;case i.L:switch(n.t){case s.wt:case s.gt:case s.bt:case s._t:case s.xt:case s.yt:case s.Tt:case s.kt:n.e.f&Mt||a++;break;default:a+=this.Wn(n.cc)}}return a},interactionCount:function(){if(void 0!==this.$n)return this.$n;var t,i,s,e=this.ne.slides,r=0;for(i=0,s=e.length;i<s;++i)t=e[i],r+=this.Wn(t.cc);return this.$n=r,r},takenInteractionCount:function(t){var i,s,e,r,n,a=this.se.slides,h=0;for(s=0,e=$i(a.length,this.slideCount());s<e;++s)if(i=a[s])for(r in i)(n=i[r])&&!n.n&&void 0!==n.r&&n.r!=Xt.zi&&(void 0===t?h++:t==n.r&&h++);return h},takenSlideCount:function(){var t,i,s=this.se.slides,e=0;for(t=0,i=$i(s.length,this.slideCount());t<i;++t)s[t]&&e++;return e},score:function(){var t,i,s,e,r,n=this.se.slides,a=0;for(i=0,s=$i(n.length,this.slideCount());i<s;++i)if(t=n[i])for(e in t)(r=t[e])&&(a+=r.p||0,r.r==Xt.Vi&&r.sp&&(a-=r.sp));return ks(a,10)},maxControlScore:function(t){var e,r,n,h,o,u,c,f,l=0,d=t.e.f&It&&!(t.e.f&Mt),p=t.e.f&Rt;if(!d){for(r=t.cc?t.cc.length:0,e=0;e<r;++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:n=t.e.m||[0],l=Ki.apply(null,n);break;case i.L:switch(r=(h=t.cc||[]).length,t.t){case s.gt:case s.wt:if(r>0)for(l=h[0].e.m||0,e=1;e<r;++e)o=h[e],l=Ki(l,o.e.m||0);break;case s.bt:for(u=t.e.v||[],e=0;e<r;++e)o=h[e],u.indexOf(o.i)<0||(l+=o.e.m||0);break;case s._t:for(e=0;e<r;++e)(o=h[e]).k===i.S&&(o.e.f&Rt?(n=o.e.m||[0],l+=Ki.apply(null,n)):l+=o.e.m||0);break;case s.xt:for(e=0;e<r;++e)(o=h[e]).k===i.K&&(o.e.f&Rt?(n=o.e.m||[0],l+=Ki.apply(null,n)):l+=o.e.m||0);break;case s.Tt:var v,m,g,b,w=[],_=[];for(e=0;e<r;++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,r=_.length;e<r;++e)l+=_[e]}break;case i.B:var y=(k=t.e||{}).v||[],T=k.h;for(r=(h=t.cc||[]).length,T||(l=void 0),e=0;e<r;++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:Ki(l,o.e.m||0));void 0===l&&(l=0);break;case i.U:var k,x=(k=t.e||{}).v||[];for(r=x.length,e=0;e<r;++e){l+=x[e].m||0}}return l},maxScore:function(){if(void 0!==this.Kn)return this.Kn;var t,i,s,e,r,n,a=this.ne.slides;for(n=0,i=0,s=a.length;i<s;++i)for(e=0,r=(t=a[i].cc||[]).length;e<r;++e)n+=this.maxControlScore(t[e]);return this.Kn=n,n},result:function(){var t=!0,i=this.ne.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.Vi)>=i.passConditionValue;break;case Ut:t=this.takenSlideCount()>=i.passConditionValue}return t},elapsedTime:function(){return this.ended||(this.jn=this.Ar||0,this.slide&&(this.jn+=this.timeline.totalTime()-(this.Ln||0))),this.jn||0},sessionTime:function(){return this.elapsedTime()-(this.Ar||0)},remainingTime:function(){if(this.ended)return 0;var t=0;return(t=!this.demoMode()&&this.ne.options.testMaxTime?60*this.ne.options.testMaxTime*1e3-this.elapsedTime():this.duration()-this.time())<0?0:t},responseResultString:function(t){var i=this.ui.pe;return t?t==Xt.Vi?i.text("Correct"):t==Xt.Wi?i.text("Incorrect"):t==Xt.$i?i.text("Incomplete"):t==Xt.Gi?"":"Unknown":"Unknown"},requirements:function(){var t=this.ne.options,i=this.ui.pe;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.pe;switch(t.k){case i.I:return t.t==s.nt?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.wt:return e.text("TrueFalse");case s.gt:return e.text("MultipleChoice");case s.bt:return e.text("MultipleResponse");case s.yt:return e.text("Sequence");case s._t:return e.text("FillMultipleBlank");case s.xt:return e.text("SelectMultipleDropdown");case s.Tt:return e.text("DragDrop");case s.kt: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,r,n){var a,h,o="";switch(r){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(n){case s.wt:case s.gt:case s.bt:case s.yt:for(o="",a=0,h=t.length||0;a<h;++a)""!=o&&(o+="[,]"),o+=t[a];break;case s._t:case s.xt:case s.Tt:case s.kt: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,r,n,a,h,o,u,c,f,l,d,p,v,m=t.cookie("userid")||"",g=this.ui.pe,b={},w=this.ne;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.Vi),b.score=this.score(),b.maxScore=this.maxScore(),b.percentage=b.maxScore&&b.score>0?is(100*b.score/b.maxScore):0,b.passed=this.result(),b.passCondition=w.options.passCondition,b.passValue=w.options.passConditionValue,b.interactions=[],e=this.se.slides,l=0,p=$i(e.length,this.slideCount());l<p;++l)if(r=e[l])for(n in r)if((a=r[n])&&a.r&&!a.n&&(h=w.slides[l],o=this.Vn(h.cc,n))){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.Vi&&a.sp&&(v-=a.sp),u.score=ks(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=Qt),w.options&&w.options.kintoneUrl&&(b.kintoneUrl=w.options.kintoneUrl,b.kintoneApiKey=w.options.kintoneApiKey),i!=jt?this.formatReportData(b,i):b},formatReportData:function(t,i){var s,e,r,n,a,h=t.interactions,o=h.length||0,u="\n",c="\t";this.ui.pe;switch(i){case Gt:case Vt:case Kt:break;case Wt:for(a='<?xml version="1.0" encoding="UTF-8"?>\n',a+="<Content>\n",a+="\t<Report>\n",a+="\t\t<Name>"+ys(t.prezName)+"</Name>"+u,a+="\t\t<Description>"+ys(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>"+ys(""+e.learnerResponse)+"</LearnerResponse>"+u,a+="\t\t\t\t<CorrectResponses>\n",r=0,n=e.correctResponses.length;r<n;++r)a+="\t\t\t\t\t<CorrectResponse>"+ys(""+e.correctResponses[r])+"</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 $t:case Qt: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=[],t.kintoneUrl&&(l.kintoneUrl=t.kintoneUrl,l.kintoneApiKey=t.kintoneApiKey),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===$t?JSON.stringify(l,null,c):l}return a},detailedReportData:function(t){var i,s,e,r,n,a,h=this.reportData(jt,!1).interactions,o=h.length||0,u=this.ui.pe;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(r=h[e],i+="<tr>",i+="<td align='center'>"+u.number(e+1)+"</td>",i+="<td align='center'>"+u.number(parseInt(r.slide)+1)+"</td>",i+="<td align='center'>"+r.reportid+"</td>",i+="<td align='center'>"+u.number(r.attempts)+"</td>",i+="<td align='center'>"+u.number(r.score)+"</td>",i+="<td align='center'>"+u.number(r.maxScore)+"</td>",i+="<td align='center'>"+this.responseResultString(r.result)+"</td>",i+="<td align='center' class='ap-result-response' style='word-break:break-all'>"+ys(""+r.learnerResponse)+"</td>",t){for(s="",n=0,a=r.correctResponses.length;n<a;++n)""!=s&&(s+="<br/><br/>"),s+=ys(""+r.correctResponses[n]);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.ne.options,s=this.reportData(i.reportFormat,!0),e=this.ui,r=e.pe;if(null!==s)switch(i.reportMethod){case Zt:case zt:try{var n={type:"POST",url:i.reportAddress,data:"report="+encodeURIComponent(s),timeout:6e4,success:function(t){e.showMsg(r.text("SuccessSendReport"),!0),void 0!=t&&gs("Server Response: "+t)},error:function(t,s,n){var a;n&&(n instanceof Error?a=n.name+": "+n.message:n.toString&&(a=n.toString())),a||(a=r.text("CouldnotSendReport")+i.reportAddress+(s?": "+s:"")),e.showMsg(a,!0)}};e.showMsg(r.text("SendingReport"),!0),t.ajax(n)}catch(t){var a;return a=t instanceof Error?t.name+": "+t.message:t.toString?t.toString():r.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.Fr&&(!i||i&&!this.muted()))for(var s=0,e=this.Fr.length;s<e;++s)this.Fr[s].muted(!i);return i&&this.Yn(),this.vars.notifyObservers("apSidebarVisible"),this},sidebarVisible:function(){return this.ui.sidebarVisible()},Pn:function(t){t&&this.Yn()},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.ne.author},homePage:function(){return this.ne.homepage},copyright:function(){return this.ne.copyright},name:function(){return this.ne.projectName},description:function(){return this.ne.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?is(100*t/i):0},authorVideoView:function(t){var i=0==arguments.length?0:t;return this.Fr&&this.Fr.length>i?this.Fr[i]:null},playMode:function(){return this.options.playMode},demoMode:function(){return"Demo"==this.options.playMode},registerTimer:function(t){return this.Qn?this.Qn.push(t):this.Qn=[t],this},unregisterTimer:function(t){var i=this.Qn.indexOf(t);return i>=0&&this.Qn.splice(i,1),this},tick:function(i){if(this.timeline&&!this.timeline.or){var s=this.timeline.qn,e=(i-s)*this.timeline.Hn;if(this.Qn&&this.Qn.length){var r=this.timeline.Jn(e);this.timeline.ia=r.totalTime;for(var n=0;n<this.Qn.length;++n)if(this.Qn[n].tick(i),this.timeline.qn!=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.je.time():0]);var a=this.elapsedTime();if(!this.sa||i-this.sa>=300){this.sa=i,Ae(this.vars,Ne),!this.demoMode()&&this.ne.options.testMaxTime&&a>=60*this.ne.options.testMaxTime*1e3&&this.end(!0),this.slide&&this.slide.ne.w&&this.qr(!0);var h=us.activeElement,o=h==this.container||(!h||h==us.body)&&this.container&&this.container.parentElement==us.body||this.zr&&this.zr.length&&t.contains(this.ui.slides()[0],h);if(o){var u=window.getSelection&&getSelection();u&&u.toString()&&(o=!1)}o&&a>=300&&this.ea()}if(!this.ended){this.slide&&(this.se.ts=this.je.time()-this.slide.ne.st),this.se.elapsedTime=a,this.se.maxVisitedTs=Ki(this.se.maxVisitedTs,this.je.time());var c=this.vars.le;for(var f in c)this.vars.te(f)&&(this.se.vars[f]=this.vars.get(f));this.started&&!this.ended&&this.se.ts-this.Lr()>6e4&&this.ee(!0),this.ne.mediaPreloading&&this.sr<0&&!this.prevSlide&&this.se.ts>1e3&&0==this.ur&&this.ln(this.slideIndex+1)}}},ea:function(){var i=this.zr&&this.zr.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 r=this.ui.stage()[0].getBoundingClientRect(),n=Math.min(e.right,r.right)-Math.max(e.left,r.left);if((n>30||ws(n,e.right-e.left))&&((n=Math.min(e.bottom,r.bottom)-Math.max(e.top,r.top))>30||ws(n,e.bottom-e.top))){var a=us.hasFocus();a||this.ra||(this.ra=!0,a=!0),a&&s[0].focus({preventScroll:!0})}}}},Sr:function(){var t=this.ne.ed;if(t){var i=255&t[0],s=255&t[1],e=65535&t[2],r=65535&t[3];if(i&&s&&e&&r==i+s+e){if(0==(t[3]>>16&255))return;if(i=Ze(e,s-1,i),!isNaN(i)&&i>Ze())return!1}return!0}},Er:function(){ze(this)},qr:function(i){var s=this.Sr();if(void 0===s)if(i){var e,r,n,a="A"===this.ne.generator.charAt(0),h={position:"absolute",display:"block",zIndex:qt.fs},o=a?h:{position:"absolute",display:"block"},u=a?15:50,c="a";if(u+="px",c+="lt",(!this.na||!a&&this.na[0].childNodes.length<4)&&(this.na=t(a?"<img />":"<div><img /><img /><img /><img /></div>"),e="pointer",e+="Event",e+="s",this.na.css(e,"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.ne.wmd,e="min",r="20",r+="0px",o[e+="Width"]=r,e="min",r="50",r+="px",o[e+="Height"]=r,a)this.na[0].src!==n&&(this.na[0].src=n),this.na[0][c]=this.ne.generator,h.top=h.right=u,h.left="auto";else{var f,l,d,p=this.na[0].childNodes;for(l=0,d=p.length;l<d;++l)(f=p[l]).src!==n&&(f.src=n),f[c]=this.ne.generator,0==l||3==l?(o.left=u,o.right="auto"):(o.left="auto",o.right=u),l<=1?(o.top=u,o.bottom="auto"):(o.top="auto",o.bottom=u),t(f).css(o);h.top=0,h.left=0,h.width="100%",h.height="100%"}this.na.css(h);var v=t(".ap-canvas",this.container);this.na[0].parentNode&&this.na[0].parentNode===v[0]||v.append(this.na)}else this.na&&this.na.hide();else s&&this.Er()},prez:function(){return this},eventBubbling:function(t,i){return"ap-dblclick"==t&&(t="ap-click"),1==arguments.length?(void 0===(i=this.aa&&this.aa[t])&&(i="ap-keypress"!=t&&"ap-click"!=t),i):(this.aa||(this.aa={}),this.aa[t]=i,this)},on:function(t,i){return rr.prototype.on.call(this,t,i)},off:function(t,i){return rr.prototype.off.call(this,t,i)},filterEvent:function(t){var i,s,e=t.target,r=[];if(this.zr)for(s=this.zr.length;--s>=0;)r.push(this.zr[s]);for(r.push(this.slide,this.bottomSlide,this.topSlide),s=0;s<r.length&&!(i=r[s]&&r[s].ha(e));++s);return!i||rr.prototype.filterEvent.call(i,t)},As:function(){return this.ui.canvas()[0]},Gn:function(t){return rr.prototype.Gn.call(this,t)},Fs:function(t){return!this.demoMode()&&(t||!this.ur)&&(!this.or||this.ended)},Xs:function(t){rr.prototype.Xs.call(this,t)},Ys:function(t){return rr.prototype.Ys.call(this,t)},cssUrl:function(){return void 0!==this.options.css?this.options.css:this.ne.options.css},highlightFocus:function(t){if(!arguments.length)return void 0!==this.options.highlightFocus?this.options.highlightFocus:this.ne.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===Ui&&(t=this.slide&&this.slide.timeline(t)),t?(t.remove(),t.oa&&(t.oa.remove(),t.oa=null),t.started()&&t.totalTime()<t.totalDuration()&&t.pause(t.totalDuration()),t.startTime(this.timeline.totalTime()),i&&(t.oa=new Hn(function(){i.call(t)},{startTime:t.duration(),duration:0}),t.addChild(t.oa)),this.timeline.addChild(t),t.setup(),t.play(0),t):null},pauseTimeline:function(t,i){return typeof t===Ui&&(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.ua();var s=!1;if(i){if(i.started()){i.remove(),i.totalTime()<i.totalDuration()?i.pause(i.totalDuration()):s=!0;do{i=t.ua()}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.fa();if(i&&!i.started()&&(i=t.fa()),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.ua();return!0}return!1},reviewCourse:function(){this.slide&&t(this.ui).trigger("ap-slideCompleted",[this.slide.ne.i,!0]),this.Fn=!0,this.end(),this.firstSlide(),this.pauseAll(!1)},isReviewingMode:function(){return!0===this.Fn},runAction:function(t,i,s){for(var e=null,r=0,n=this.ne.adActions.length;r<n;r++){var a=this.ne.adActions[r];if(a[0]===t){e=a[1];break}}if(e){for(var h=s.currentTarget&&s.currentTarget.slide,o=(r=0,e.length);r<o;r++){var u=e[r],c=u[0],f=u[1],l=u[2]||[],d=u[3];if(d){var p=i[d];switch(c){case Yt.ni:u[1]=p-1;break;case Yt.ri:case Yt.oi:case Yt.ci:case Yt.li:case Yt.pi:case Yt.vi:u[1]=p;break;case Yt.gi:case Yt.bi:case Yt.Oi:case Yt.ki:case Yt.Ii:case Yt.Ti:case Yt.Bi:case Yt.Zi:case Yt.wi:case Yt._i:case Yt.Yi:case Yt.Xi:case Yt.Li:case Yt.Di:var v=h&&h.object(p);f[0]=v?v.id():-1;break;case Yt.Ei:case Yt.yi:var m=this.ne;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.At:v=h&&h.object(p[0]);f[0]=v?v.id():-1,f[2]=Yi,f[3]=p[1];break;case Yt.Pi:case Yt.xi:case Yt.Ci:case Yt.Si:var _=h&&h.timeline(p);u[1]=_?_.id:-1;break;case Yt.Ri:var y=this.$r(p);f[0]=y.fbi;break;case Yt.Mi:y=this.$r(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.Nt:void 0!==S&&(x[1]=O),void 0!==E&&(x[0]=I);break;case St.At:O!=I[0]&&(x[0]=x[1]=0),x[1]=O,x[0]=I[1];break;case St.Dt: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.Xt: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.Wt){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.nt:"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.Yt:case St.ht:x[0]=O}}}}var D=-1,Y=(o=e.length,this.prez()),X=(r=0,function(){++D<o&&we(e[D],Y,s,D===o-1?null:X)});X()}},la:function(){var t,i,s=this.da;if(!s){for(s=[],i=0;i<this.cr.Ne;++i)(t=new Fr(this,!1)).pa=!1,t.pn(!0),t.synchronizeWithPrez(!1),s.push(t);this.da=s}},wn:function(){this.la();var t,i,s,e,r,n,a=this.da,h=[],o=function(t,i){!function(t,i){var s,e,r,n,a,h,o,u,c;if(t&&t.l)for(s=0,e=t.l.length;s<e;++s)for(r=0,n=(u=t.l[s][1]).length;r<n;++r)if(((o=u[r])[0]==Yt.yi||o[0]==Yt.Ei)&&o[1][1]<Hi){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,r=t.cc;if(r)for(s=0,e=r.length;s<e;++s)o(r[s],i)};for(this.slide&&o(this.slide.ne,h),n=0,i=0,s=h.length;i<s;++i)for(e=n,r=a.length;e<r;++e)if(!(t=a[e]).pa){t.dn("Play Short Audio Action: "+h[i][0]),t.An(h[i][1]),t.loadResource(h[i][0]),n=e+1;break}},Ur:function(){var t,i,s=this.da;if(s){for(t=0,i=s.length;t<i;++t)s[t].cleanup();delete this.da}},va:function(t,i,s,e,r){this.la(),gs("_playShortAudioResource: "+t);var n,a,h,o=this.da;for(a=0,h=o.length;a<h;++a)if(!o[a].pa&&(n||(n=o[a]),o[a].ma==t)){n=o[a],gs("_playShortAudioResource: Cached player found");break}if(n){var u=function(){gs("_playShortAudioResource: Completed: "+t),n.pa=!1,n.ga("ended",u),n.pause(),r&&r()},c=function(){gs("_playShortAudioResource: Error: "+t),n.pa=!1,n.ga("error",c),n.pause(),r&&r()};n.ba("ended",u),n.ba("error",c),n.pa=!0,n.ma!=t&&(n.dn("Play Audio Action: "+t),n.An(i),n.loadResource(t)),n.play()}else gs("_playShortAudioResource: No available players")},wa:function(t,s,e,r,n){var a=this.bottomSlide,h=a._a(function(t){return t.actionData===e});if(h)h.remove(),h.started()&&h.totalTime()<h.totalDuration()&&h.pause(h.totalDuration());else{if(a.ya||(a.ya=0),a.ya>=this.cr.Me)return;var u=a.defaultCtrlData();u.k=i.T,u.mi=t,u.md=s,u.f|=o;var c=a.createChild(u);++a.ya,(h=new Gn).actionData=e,r&&(h.kn=!0),a.qs(h),Be(h,c,t,0,s+500,s),h.addChild(new Hn(function(){setTimeout(function(){a.Qs(h)},0),c.remove(),--a.ya,n&&n()},{startTime:h.duration(),duration:0}))}h.startTime(this.timeline.totalTime()),this.timeline.addChild(h),h.setup(),h.play(0)},Js:function(t,i,s,e,r){i<Hi?this.va(t,i,s,e,r):this.wa(t,i,s,e,r)},Ta:function(t,i,s,e,r,n){var a=us.createElement("canvas");Is(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.ns,this.ui.slides()[0].appendChild(a);var o=this.bottomSlide,u=new Gn,c=ns({},ir,{node:a,slide:o,ka:0,xa:e,Ca:r,Sa:s+1,Oa:s+1,Ea:s});u.kn=!0,o.qs(u),u.addChild(new Un(c,"ceProgress",{startTime:0,duration:n,tweenParams:[0,100]})).addChild(new Hn(function(){setTimeout(function(){o.Qs(u)},0),a.parentNode&&a.parentNode.removeChild(a)},{startTime:n})),u.startTime(this.timeline.totalTime()),this.timeline.addChild(u),u.setup(),u.play(0)}}),Ve=us.createElementNS(Bi,"svg"),We=Ve.createSVGMatrix(),$e=Ve.createSVGPoint();function Ke(t,i,s){$e.x=i,$e.y=s;var e=$e.matrixTransform(t);return{x:e.x,y:e.y}}var je=Qs({$init:function(t,i){this.Ia=t,this.ne=i||[],this.Pa=y,this.Ve=-1},useDefault:function(){var t,i,s=0;for(t=0,i=this.ne.length;t<i;++t)if(this.ne[t].d){s=t;break}return this.at(s)},is:function(t){var i=this.ne[this.Ve];return i&&i[typeof t===Ui?"n":"i"]===t},at:function(t){if(!arguments.length)return this.Ve;var s=this.ne[t];if(!s)return!1;this.Ve=t;var e=this.Pa;void 0!==s.p&&(this.Pa=s.p);var r=s.at;if(s.im){var n=s.im;this.Ia.Ra(n[0],n[1],r)}else this.Ia.imageNode&&(this.Ia.imageNode.src="");if(this.Ia.ne.k==i.tt){var a=s.model||[],h=s&&s.w&&s.w[this.Ia.slide.fe.layoutIndex];if(h&&h.r){var o=h.r,u=Ns(o[2]),c=Ns(o[3]);this.Ia.Ma(u,c,a)}}var f,l,d,p=this.Ia.shape,v=s.f,m=s.l,g=s.s,b=s.o,w=s.t;if(this.layout(),s.tg&&this.Ia.setIconSize){var _=s.tg;if(!!_[6]){var y=(this.Pa&C)===C;p.createIcon(y,_[0],_[1],_[2],Rs(_[3]),Rs(_[4]),Rs(_[5])),p.updateIcon(),this.Ia.setIconSize&&this.Ia.setIconSize(_[0])}}if(s.sl){var T=s.sl;p.updateSlider(this.Ia.value(),Rs(T[0]),Rs(T[1]),Rs(T[2]),T[3],T[4])}if(s.dd){w=void 0;var k=this.Ia.ne.it,x=this.Ia.ne.hi,S=this.Ia.ne.di,O=s.t&&s.t[1];p.updateDropdown(k,x,S,O,Rs(s.dd[0]),Rs(s.dd[1]),Rs(s.dd[2]),Rs(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]/=Li}this.Ia.shape.shape(s.a.type,s.a.params)}if(v){if(!v.normed){if(v[0]===_t.Pt){var I,P=v[2];for(l=0,d=P.length;l<d;++l)I=[(f=P[l])[0]],f=f[1],I.push(Rs(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.Et:p.fillNone();break;case _t.It:f=v[1],p.fillSolid(f>>16&255,f>>8&255,255&f,(f>>24&255)/255);break;case _t.Pt: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.Ia.rotate(s.r||0),this.Ia.flip(s.fh,s.fv),g){f=g[3];var R=g[1]-this.Ia.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.Ia.node.style.opacity=isNaN(b)||255==b?"":b/255,w?(!this.Ia.Na&&this.Ia.html(w[0]||""),this.Ia.textStyle(w[1]).textVerticalAlign(w[2])):!this.Ia.Na&&this.Ia.html(""),r||(this.Ia.textNode&&(r=(r=this.Ia.textNode.textContent.replace(/\r|\n/g," ")).replace(/ +(?= )/g,"").trim()),r||(r=this.Ia.ne.n,this.ne.length>1&&(r+=" "+s.n))),r?this.Ia.accText(r):this.Ia.accText(""),this.Aa(e,this.Pa),s.lg){var M=s.lg;p.createLegend(M[0],Rs(M[1]),Rs(M[2]),M[3]),p.updateLegend(),this.Ia.Da()}return this.Ia.Ya&&(this.Ia.shape||this.Ia.textContainer)&&(this.Ia.parent&&this.Ia.parent.Xa(),this.Ia.La()),this.Ia.Fa&&this.Ia.Fa(),!0},id:function(t){if(!arguments.length){var i=this.ne[this.Ve];return i?i.i:-1}return this.at(this.find("i",t))},name:function(t){if(!arguments.length){var i=this.ne[this.Ve];return i?i.n:""}return this.at(this.find("n",t))},flags:function(t){if(!arguments.length)return this.Pa;var i,s=y,e=this.Pa;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.Ha=!0,i=this.at(this.find("p",s)),delete this.Ha,this.Aa(e,t),i},Aa:function(t,i){this.Pa=i,!this.Ha&&this.Ia.Ua&&this.Ia.Ua(t,i)},has:function(t){var i=this.ne[this.Ve];return i&&(i.p&t)===t},find:function(t,i){var s,e;for(s=0,e=this.ne.length;s<e;++s)if(this.ne[s][t]===i)return s;return-1},Ba:function(t){var i,s=this.ne[t],e=s&&s.w&&s.w[this.Ia.slide.fe.layoutIndex];return e&&e.r&&(i=[(e=e.r)[0],e[1],e[4]]),i},layout:function(){var t=this.ne[this.Ve],i=t&&t.w&&t.w[this.Ia.slide.fe.layoutIndex];if(i){if(!i.normed){var s,e,r,n,a,h=i.p;if(h)for(s=0;s<h.length;++s){if(s<2){if(c=h[s])for(u=0,n=c.length;u<n;++u)for(a=c[u],e=0;e<6;++e)a[e]/=Li}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,n=c.length;e<n;++e)for(a=c[e],r=0;r<6;++r)a[r]/=Li}}i.normed=!0}if(i.b&&this.Ia.flexbox(i.b),i.c)this.Ia.flexChild(i.c);else if(i.r){var l,d,p=i.r,v=Ns(p[2]),m=Ns(p[3]);this.Ia.center(1===p[5]||3===p[5],2===p[5]||3===p[5]),this.Ia.Za(p[0],p[1],p[4]),"%"===v.unit||"a"===v.unit?v.value/=Li:v.unit||(v.unit="px"),"%"===m.unit||"a"===m.unit?m.value/=Li:m.unit||(m.unit="px"),l=!(d="a"===m.unit)&&"a"===v.unit,this.Ia.autoWidth(l).autoHeight(d),(d||l)&&(this.Ia.za=d?m.value:v.value,this.Ia.Ga=!0),l||this.Ia.width(v.value+v.unit),d||this.Ia.height(m.value+m.unit)}this.Ia.shape.path(i.p&&i.p.length?i.p:null),i.f?this.Ia.fontScale(i.f):this.Ia.fontScale(100),this.Ia.alwaysHide(i.h)}}});function Qe(t){this.Va=t,this.Wa=[],this.$a=qt.ls;var i=t.ne.dd;this.Ka={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 qe(t,i,s){var e,r,n,a;if(i)for(e=0,r=i.length;e<r;++e)n=i[e],a=Dt[n[0]],!n[1]||!n[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,r=t[1],n=r.length,a=function(){++e<n&&we(r[e],s,i,a)};a()}}(n))}function Je(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.Tn&&i.Tn(),s}function tr(t){var i,s=t.length;if(s){for(i=s;--i>=0;)t[i].node.style.display=t[i].hideProp();t[s-1].Tn&&t[s-1].Tn()}}Qe.TileMargin=5,Qe.RevertTime=200,Qe.DropTime=200,Qe.ZoomEffectScale=1.1,Qe.dragEffect=function(i,s,e,r){var n=t(i.node),a=i.node.style;if(s){var h={zIndex:qt.ds,opacity:.8},o=i.ja={zIndex:a.zIndex,opacity:a.opacity},u=i.ne.dd;if(u)switch(u[0]){case q:n.addClass("ap-ctrl-dragsource-hilight");break;case J:var c=n.css("transform-origin").split(" ");e-=parseFloat(n.css("left"))+parseFloat(c[0]),r-=parseFloat(n.css("top"))+parseFloat(c[1]),o.transform=a[Ls],h.transform="translate("+e+"px, "+r+"px) scale("+Qe.ZoomEffectScale+", "+Qe.ZoomEffectScale+") translate("+-e+"px, "+-r+"px)",o.transform&&"none"!==o.transform&&(h.transform+=" "+o.transform)}n.css(h)}else i.ja&&(n.css(i.ja),delete i.ja),n.removeClass("ap-ctrl-dragsource-hilight")},Qe.dropHoverEffect=function(i,s){var e=i.ne.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.Qa=i.node.style[Ls],i.scaleBy(Qe.ZoomEffectScale)):void 0!==i.Qa&&(i.node.style[Ls]=i.Qa,delete i.Qa)}},Qe.revert=function(t,i,s,e,r){var n=t.prez(),a=new Gn({startTime:n.timeline.totalTime()}),h=t.node.style.zIndex;t.node.style.zIndex=qt.ds,t.qs(a),a.addChild(new Un(t,"translateX",{startTime:0,duration:e,easing:wn.outQuad,tweenParams:[-i],relative:_n.qa})).addChild(new Un(t,"translateY",{startTime:0,duration:e,easing:wn.outQuad,tweenParams:[-s],relative:_n.qa})).addChild(new Hn(function(){t.node.style.zIndex=h,r&&r(),setTimeout(function(){t.Qs(a)},0)},{startTime:a.duration(),duration:0})),n.timeline.addChild(a),a.setup(),a.play(0)},Qe.prototype={constructor:Qe,droppedObjects:function(){return this.Wa},accepted:function(t){return this.Ka.acceptAny||this.Ka.acceptIds.indexOf(t.id())>=0},drop:function(s,e,r,n){void 0===r&&(r=!0);var a=this.Va,h=this.Ka,o=h.maxAccept<0||this.Wa.length<h.maxAccept,u=!1,d=!1;if(s.parent!==a.parent?o=!1:(o||this.Wa.length===h.maxAccept&&h.maxAccept>0&&(h.replace?(u=!0,o=!0):d=!0),!o&&!d||h.acceptAny||h.acceptIds.indexOf(s.ne.i)<0&&(o=u=d=!1)),s.ne.k==i.O&&s.Vs.flags(s.Vs.flags()&~(k|T)),!o)return r&&(s.hasStateFlag(N)&&s.Vs.flags(N),a.hasStateFlag(N)&&a.Vs.flags(N),t(a).triggerHandler(t.Event("ap-reject",{value:s})),Qe.revert(s,n.x,n.y,Qe.RevertTime)),!!d&&void 0;if(u){var p,v=this.Wa[this.Wa.length-1];v&&(p=this.startDragOut(v,r),r&&(s.hasStateFlag(N)&&s.Vs.flags(N),v.hasStateFlag(N)&&v.Vs.flags(N),t(a).triggerHandler(t.Event("ap-reject",{value:v})),Qe.revert(v,p.x,p.y,Qe.RevertTime)))}this.Wa.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.Ja={},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.th(m,g,h.posVal);break;case l:this.ih(m,g,h.posVal);break;case c:m.l=g.l+e.x,m.t=g.t+e.y,s.sh={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[Ls],_.zIndex=this.$a++,y.zIndex=x.zIndex,255!=h.alpha&&(_.opacity=h.alpha/255,y.opacity=x.opacity),t(s.node).css(_),s.updateCachedTransform(),r&&(s.hasStateFlag(M)&&s.Vs.flags(M),a.hasStateFlag(M)&&a.Vs.flags(M),t(a).triggerHandler(t.Event("ap-accept",{value:s})),a instanceof br&&a.submit(s)),!0},startDragOut:function(i,s){var e=this.Wa.indexOf(i),r={x:0,y:0};if(e<0)return r;if(this.Wa.splice(e,1),delete i.dropTarget,i.Ja){var n=i.translate();t(i.node).css(i.Ja),i.updateCachedTransform(),delete i.Ja;var a=i.translate();r.x=n.translateX-a.translateX,r.y=n.translateY-a.translateY}if(s&&t(this.Va).triggerHandler(t.Event("ap-dragout",{value:i})),this.Ka.posType===l&&(this.eh=this.rh=this.nh=0,this.Wa.length)){var h,o,u,c,f=this.Va,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.Ka.scale/100,g="";for(p[0]=parseFloat(p[0]),p[1]=parseFloat(p[1]),"none"===v&&(v=""),e=0;e<this.Wa.length;++e)h={w:(i=this.Wa[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.ih(h,d,this.Ka.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 r},clear:function(){for(var t=this.Wa;t.length;)this.startDragOut(t[t.length-1]);this.$a=qt.ls},layout:function(){for(var t=this.Va;t;){if("none"===t.node.style.display)return;t=t.parent}var i,s,e=this.Wa,r=[],n=[];if(e.length){for(;e.length;)i=e[e.length-1],r.push(i),n.push(i.sh||{x:0,y:0}),this.startDragOut(i);for(this.$a=qt.ls,s=r.length-1;s>=0;--s)this.drop(r[s],n[s],!1)}},absolutePosition:function(){return this.Ka.posType===c},th:function(t,i,s){t.t=i.t+(i.h-t.h)*ss(s/3)/2,t.l=i.l+(i.w-t.w)*(s%3)/2},ih:function(t,i,s){var e,r,n,a,h,o,u;switch(this.eh||(this.eh=Qe.TileMargin),this.rh||(this.rh=Qe.TileMargin),this.nh||(this.nh=0),s){case d:case p:case g:case b:default:n=t.w,a=t.h,h=i.w,o=!1;break;case v:case m:case w:case _:n=t.h,a=t.w,h=i.h,o=!0}(this.eh+n>h?(this.rh+=this.nh+Qe.TileMargin,e=this.rh,r=Qe.TileMargin,this.eh=r+n+Qe.TileMargin,this.nh=a):(e=this.rh,r=this.eh,this.eh+=n+Qe.TileMargin,a>this.nh&&(this.nh=a)),o)&&(u=e,e=r,r=u);switch(s){case d:case m:default:t.t=i.t+e,t.l=i.l+r;break;case p:case v:t.t=i.t+i.h-e-t.h,t.l=i.l+r;break;case g:case _:t.t=i.t+e,t.l=i.l+i.w-r-t.w;break;case b:case w:t.t=i.t+i.h-e-t.h,t.l=i.l+i.w-r-t.w}}};var ir={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().Zr(),y:((i.top+i.bottom)/2-s.top)/this.slide.prez().Zr()}}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(),r=this.slide.prez().Zr();return{x:(s.left-e.left)/r,y:(s.top-e.top)/r,width:(s.right-s.left)/r,height:(s.bottom-s.top)/r}},rotatedContentBox:function(t,i){var s=this.contentBox(),e=this.transformOrigin();if(t%360){var r=We.translate(e.x,e.y).rotate(t).translate(-e.x,-e.y),n=Ke(r,s.x,s.y),a=Ke(r,s.x+s.width,s.y),h=Ke(r,s.x+s.width,s.y+s.height),o=Ke(r,s.x,s.y+s.height);s.x=$i(n.x,a.x,h.x,o.x),s.y=$i(n.y,a.y,h.y,o.y),s.width=Ki(n.x,a.x,h.x,o.x)-s.x,s.height=Ki(n.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}},sr=Qs(ir,{$init:function(t,i){this.node=t,this.parent=i,this.slide=i.slide},showProp:function(){return"inline-block"}});function er(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 rr=Qs(ir,{$init:function(s,e){this.Ds=ye(),this.parent=null,this.slide=s,this.children=[],e=e||{},this.ne=e,this.node=this.createNode();var r=e.isSlide,o=this;if(this.node.id||(this.node.id=s.fe.Br(r)+this.Ds),t(this.node).addClass(r?"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&n){var u={start:function(i,s){var e=this.rlDragCtrl,r=this.style,n={x:0,y:0};if(!e||!e.Fs(!1,!0)||e.prez()&&e.prez().ended)return!1;e.ah=e.dropTarget||null,e.dropTarget&&(n=e.dropTarget.dropHelper.startDragOut(e,!0)),e.hh=null,e.oh=null,e.uh=e.lh=0,e.dh=n.x,e.ph=n.y,e.vh={left:r.left,right:r.right,top:r.top,bottom:r.bottom},e.mh=getTransformationMatrix(this.parentNode).inverse(),e.gh=e.mh.transformPoint({x:s.originalPosition.left,y:s.originalPosition.top}),e.bh=parseFloat(t(this).css("left"))||0,e.wh=parseFloat(t(this).css("top"))||0,(n.x||n.y)&&(e.bh+=n.x,e.wh+=n.y,t(this).css({left:e.bh+"px",top:e.wh+"px"}));var a=e.mh.transformPoint({x:i.pageX,y:i.pageY});e.hasStateFlag(S)&&e.Vs.flags(S),Qe.dragEffect(e,!0,a.x,a.y),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))},drag:function(i,s){var e,r,n,a=this.rlDragCtrl;if(a&&(e=a.mh.transformPoint({x:s.position.left,y:s.position.top}),a.uh=e.x-a.gh.x,a.lh=e.y-a.gh.y,s.position.left=a.bh+a.uh,s.position.top=a.wh+a.lh,r=this.style.zIndex,this.style.zIndex=-1,n=us.elementFromPoint(i.clientX,i.clientY),this.style.zIndex=r,n!==a.hh)){a.hh=n;for(var h=null;n&&n!==us.documentElement&&(n.rlDropCtrl?h=n.rlDropCtrl:n.rlDragCtrl&&n.rlDragCtrl.dropTarget&&(h=n.rlDragCtrl.dropTarget),!h);)n=n.parentNode;h&&!h.Fs(!1,!0,!0)&&(h=null),h!==a.oh&&(a.oh&&(a.hasStateFlag(I)&&a.Vs.flags(I),Qe.dropHoverEffect(a.oh,!1),t(a.oh).triggerHandler(t.Event("ap-dragleave",{value:a,originalEvent:i}))),a.oh=h,h&&(a.hasStateFlag(E)&&a.Vs.flags(E),Qe.dropHoverEffect(h,!0),t(a.oh).triggerHandler(t.Event("ap-dragenter",{value:a,originalEvent:i}))))}},stop:function(i,s){var e,r,n=this.rlDragCtrl;if(n){(e=n.oh)&&e.dropHelper.absolutePosition()&&(r=convertPointFromNodeToPage(n.node,0,0),r=convertPointFromPageToNode(e.node,r.x,r.y)),Qe.dragEffect(n,!1);var a,h=n.node.style,o=n.vh;for(a in o)h[a]=o[a];if(delete n.vh,n.uh+=n.dh,n.lh+=n.ph,e)n.hasStateFlag(O)&&n.Vs.flags(O),Qe.dropHoverEffect(e,!1),e.dropHelper.drop(n,r,!0,{x:n.uh,y:n.lh}),t(n).triggerHandler(t.Event("ap-dragend",{value:n.dropTarget||null,originalEvent:i}));else{var u=n.savedData();u&&u.st?n.state(u.st):n.Vs.flags(y);var c=function(){if(n.parent&&n.parent.children){var t,i,s,e=n.parent.children;for(i=0,s=e.length;i<s;++i)(t=e[i])instanceof br&&t.Fs(!0,!0)&&t.submit(n)}};n.ne.dd[1]?(n.hasStateFlag(O)&&n.Vs.flags(O),t(n).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),Qe.revert(n,n.uh,n.lh,Qe.RevertTime,c)):(n.hasStateFlag(O)&&n.Vs.flags(O),n.translateBy(n.uh,n.lh),t(n).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),c())}var f=n.dropTarget||null;n.ah!=f&&fe(n,"ap-change"),delete n.ah,delete n.hh,delete n.oh,delete n.gh}}};this.node.rlDragCtrl=this,t(this.node).on("mousedown mouseup",function(t){this.rlDragCtrl&&this.rlDragCtrl.filterEvent(t)||this.rlDragCtrl.Xs(t)}).css("touchAction","none").draggable(u),xe(this.node)}else e.f&a&&(this.dropHelper=new Qe(this),this.node.rlDropCtrl=this);if(this._h=this.node.clientWidth,this.yh=this.node.clientHeight,this.shape=new dn(this.node,this),this.Vs=new je(this,e.s),this.Vs.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.fe.getResource(e.c,e.ext)+"), auto";this.cursor(c)}else this.cursor(Jt[e.c]);if(void 0!==e.mi&&e.k!=i.T&&e.k!=i.C){var f=!0;this.Dn=s.fe.vn({ctrl:e}),this.Dn||(f=!1,this.Dn=new Fr(s.fe,!1));var l=this.Dn;l.dn(e.n),l.An(e.md),l.He=e.audio_ducking,l.synchronizeWithPrez(!0),f||l.loadResource(e.mi)}this.Th(),e.e&&e.e.l&&qe(this,e.e.l,s.fe.demoMode()&&!s.ne.isFeedback);var d,p,v=e.cc||[];for(d=0,p=v.length;d<p;++d)this.createChild(v[d]);if(this.kh(e.ti),void 0!==e.m){var m=ii[s.fe.options.playMode];(e.m&m)!==m&&this.xh(!1)}void 0!==e.uts&&this.userSelection(1==e.uts),e.f&h&&this.hide()},Th:function(){},id:function(){return this.ne.i},createNode:function(){return us.createElement("div")},prez:function(){return this.slide?this.slide.fe:null},mediaPlayer:function(){return this.Dn},defaultCtrlData:function(){var t,i,s=this.prez().ne.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.Ch++,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 r=ii[s.fe.options.playMode];if(!((e.m&r)==r)&&e.k!=i.I&&e.k!=i.R)return null}var n=nr[t]||nr._default;if(n)return n.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.Sh?"flex":"block"},autoWidth:function(t){return this.Oh=t,t&&(this.Eh=!1,this.Sh?this.za=(this.node.offsetWidth||this._h)/(this.node.offsetHeight||this.yh)||0:this.za=(this.node.clientWidth||this._h)/(this.node.clientHeight||this.yh)||0),this},autoHeight:function(t){return this.Eh=t,t&&(this.Oh=!1,this.Sh?this.za=(this.node.offsetWidth||this._h)/(this.node.offsetHeight||this.yh)||0:this.za=(this.node.clientWidth||this._h)/(this.node.clientHeight||this.yh)||0),this},left:function(t){return arguments.length?(this.node.style.left=hs(t)?t+"px":t,this):this.node.offsetLeft},top:function(t){return arguments.length?(this.node.style.top=hs(t)?t+"px":t,this):this.node.offsetTop},right:function(i){return arguments.length?(this.node.style.right=hs(i)?i+"px":i,this):parseFloat(t(this.node).css("right"))},bottom:function(i){return arguments.length?(this.node.style.bottom=hs(i)?i+"px":i,this):parseFloat(t(this.node).css("bottom"))},width:function(t){return arguments.length?(this.node.style.width=hs(t)?t+"px":t,this.Oh=!1,this.Tn(),this):this.Sh?this.node.offsetWidth:this.node.clientWidth},height:function(t){return arguments.length?(this.node.style.height=hs(t)?t+"px":t,this.Eh=!1,this.Tn(),this):this.Sh?this.node.offsetHeight:this.node.clientHeight},Za:function(t,i,s){t=Ns(t),i=Ns(i),"%"===t.unit?t.value/=Li: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/=Li: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=hs(t)?t+"px":t,this.node.style.height=hs(i)?i+"px":i,this.Oh=this.Eh=!1,this.Tn(),this):{width:this.node.clientWidth,height:this.node.clientHeight}},accText:function(t){return arguments.length||(t=""),this.node.setAttribute("aria-label",t),this},kh:function(t){isNaN(t)||this!==this.slide&&(-2==t?this.node.tabIndex=-1:-1==t?this.node.removeAttribute("tabIndex"):this.node.tabIndex=t)},xh:function(t){if(!(this.Ih===t||void 0===this.Ih&&t)){this.Ih=t;var i,s,e,r=t?"":0,n=this.node.childNodes;for(s=0,e=n.length;s<e;++s)1===(i=n[s]).nodeType&&(i.style.opacity=r)}},updateTabIndexGR:function(t){if(this!==this.slide&&t instanceof yr){var i,s,e,r=this.children,n=this.ne.ti>0?this.ne.ti:0,a=t.Ph;for(i=0,s=r.length;i<s;++i)(e=r[i])instanceof yr&&e.Ph===a&&(t===e?e.node.tabIndex=n:e.node.tabIndex===n&&(e.node.tabIndex=-1))}},contentBox:function(){var i=t(this.node).css("overflow"),s=0,e=0,r=this.node.offsetWidth,n=this.node.offsetHeight;if(i&&"visible"!=i)return{x:s,y:e,width:r-s,height:n-e};var a,h,o,u,c,f=this.shape.contentBox(),l=this.textContainer;for(l&&((a=this.textNode.offsetHeight)>l.offsetHeight?"middle"===this.Rh?(h=l.offsetTop-(a-l.offsetHeight)/2,f.height=Ki(h+a,f.y+f.height)-$i(f.y,h),f.y=$i(f.y,h)):"bottom"===this.Rh?(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.Ya&&"auto"===this.node.style.height&&("middle"===this.Rh?(f.height=Ki(l.offsetTop+l.offsetHeight,f.y+f.height)-$i(f.y,l.offsetTop),f.y=$i(f.y,l.offsetTop)):"bottom"===this.Rh?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=$i(s,f.x),e=$i(e,f.y),r=Ki(r,f.x+f.width),n=Ki(n,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=$i(s,f.x),e=$i(e,f.y),r=Ki(r,f.x+f.width),n=Ki(n,f.y+f.height));return{x:s,y:e,width:r-s,height:n-e}},transformedContentBox:function(t){var i=t?this.rotateToSlide():this.rotate();return this.rotatedContentBox(i,t)},Mh:function(t){return t||(t={x:0,y:0},this.parent)?(this.parent&&(this.parent.Mh(t),t.x+=this.parent.node.offsetLeft,t.y+=this.parent.node.offsetTop),t):t},center:function(t,i){this.Nh=t,this.Ah=i},centerX:function(){if(this.Nh){var t=this.Mh().x,i=this.slide.node.clientWidth;this.left((i-this._h)/2-t)}},centerY:function(){if(this.Ah){var t=this.Mh().y,i=this.slide.node.clientHeight;this.top((i-this.yh)/2-t)}},rotate:function(t){var i=Yn.transform,s=i.get(this);return arguments.length?(s.rotate=t,i.set(this,An(s)?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this):s.rotate},rotateBy:function(t){var i=Yn.transform,s=i.get(this);return s.rotate+=t,i.set(this,An(s)?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this},translate:function(t,i){var s=Yn.transform,e=s.get(this);return arguments.length?(e.translateX=t||0,e.translateY=i||0,s.set(this,An(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=Yn.transform,e=s.get(this);return e.translateX+=t||0,e.translateY+=i||0,s.set(this,An(e)?"":e),this.animProps&&(this.animProps.set("translateX",e.translateX),this.animProps.set("translateY",e.translateY)),this},scale:function(t,i){var s=Yn.transform,e=s.get(this);return arguments.length?(1===arguments.length&&(i=t),e.scaleX=t,e.scaleY=i,s.set(this,An(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=Yn.transform,e=s.get(this);return 1===arguments.length&&(i=t),e.scaleX*=t,e.scaleY*=i,s.set(this,An(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.Da(),this},transform:function(t,i,s,e,r){var n=Yn.transform,a=n.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===r?a.scaleX:r,n.set(this,An(a)?"":a),this.animProps&&this.animProps.set("transform",a),this):a},updateCachedTransform:function(){if(this.animProps){var t=Yn.transform.get(this);this.animProps.set("transform",t)}return this},flexbox:function(t){if(delete this.Sh,t){this.Sh=!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.yn(t[4])}},yn:function(t){er(this.node,t)},flexChild:function(t){delete this.Dh,delete this.Yh,delete this.Ya;var i=this.node.style;if(t){this.Ya=!0,this._h=0,this.yh=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.Dh={type:"width"}:2===t[9]&&(this.Dh={type:"height"}),this.Dh&&"width"===this.Dh.type?this.Dh.value=t[2]/Li:"a"===s?i.width="auto":("%"===(s=Ns(t[2])).unit?s.value/=Li:s.unit||(s.unit="px"),i.width=s.value+s.unit),this.Dh&&"height"===this.Dh.type?this.Dh.value=t[3]/Li:"a"===e?i.height="auto":("%"===(e=Ns(t[3])).unit?e.value/=Li: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.Yh=!0)}else i.position="absolute"},Xh:function(){for(var t,i=this.children,s=0,e=i.length;s<e;++s)(t=i[s]).Xh&&t.Xh();this.textContainer&&this.Da(),this.shape&&this.shape.layout()},La:function(t){for(var i=this.parent,s=null;i&&i.Sh;){if(!((s=i.parent)&&s.Sh&&i.Ya)){i.Tn&&(i.Tn(),i.Tn());break}i=s}},Xa:function(){if(!ke.browser.safari)return!1;for(var t,i,s,e,r,n,a,h=this.Sh&&"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.Sh){if(h&&parseInt(s.flexGrow)>0&&"auto"===s.height)for(r=0,n=(e=i.children).length;r<n;++r)if("auto"===(a=e[r]).node.style.height)t=!0;else if("%"===Ns(a.node.style.height).unit){s.height="0%",o=!0;break}i.Xa()&&(t&&h&&(s.height="0%"),o=!0)}return o},Lh:function(t,i){var s,e,r,n=this.children;if(t===this._h&&i===this.yh&&this.Sh)for(e=0,r=n.length;e<r;++e)(s=n[e]).Ya&&(s.Sh?s.Tn():s.node.clientWidth===s._h&&s.node.clientHeight===s.yh||s.Tn())},Tn:function(){if(this.visible())if(this.Fh||(this.Fh=0),this.Fh>10)gs("Recursive checking resized: "+this.name());else{++this.Fh;var t=this.node.clientWidth,i=this.node.clientHeight;if(this.Sh&&(t=this.node.offsetWidth,i=this.node.offsetHeight),this.Dh&&this.parent&&this.parent.Sh){var s=this.parent.node.style.flexDirection||"row";"height"==this.Dh.type?"row"==s||0==parseInt(this.node.style.flexShrink)?(i=t/this.Dh.value,this._h=t):delete this.Dh:"column"==s||0==parseInt(this.node.style.flexShrink)?(t=i*this.Dh.value,this.yh=i):delete this.Dh}if(this.Lh(t,i),t===this._h&&i===this.yh&&!this.Ga)return this.centerX(),this.centerY(),void--this.Fh;if(!this.Dh&&this.Ya)this._h=t,this.yh=i,this.onResized(),this.Sh||(this._h=this.node.clientWidth,this.yh=this.node.clientHeight);else{var e=t-this._h,r=i-this.yh;this._h=t,this.yh=i,this.onResized(e,r)}var n,a,h,o=this.children,u=[];for(a=0,h=o.length;a<h;++a)(n=o[a]).Tn(),n.dropHelper&&u.push(n);for(this.Lh(t,i),a=0,h=u.length;a<h;++a)u[a].dropHelper.layout();--this.Fh}else this._h=this.yh=0},onResized:function(t,i){!this.Eh&&!this.Oh||this.Yh||(this.za?this.Eh?(t||this.Ga)&&(delete this.Ga,this.height(this._h/this.za),this.Eh=!0):(i||this.Ga)&&(delete this.Ga,this.width(this.za*this.yh),this.Oh=!0):this.za=this._h/this.yh||0),delete this.Ga,this.Dh&&(t&&this.width(this._h),i&&this.height(this.yh)),this.centerX(),this.centerY(),this.textContainer&&(this.Da(),this.textVerticalAlign(this.Rh)),this.shape.layout(),this.dropTarget&&this.dropTarget.dropHelper?this.dropTarget.dropHelper.layout():this.dropHelper&&(this.dropHelper.layout(),this.parent&&this.parent.Hh(this))},Uh:function(){var t,i,s=this.children;for(t=0,i=s.length;t<i;++t)s[t].Uh()},onLayoutSwitched:function(){this.Vs.layout();var t,i,s,e=this.children,r=[];for(t=0,i=e.length;t<i;++t)(s=e[t]).onLayoutSwitched(),s.dropHelper&&r.push(s);if(this.Sh)for(t=0,i=e.length;t<i;++t)(s=e[t]).Ya&&s.onResized&&s.onResized();for(t=0,i=r.length;t<i;++t)r[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.Bh(),t.Tn()),this},findObject:function(t,i){var s=[];if(t(this)){if(!i)return this;s.push(this)}for(var e=0,r=this.children.length;e<r;++e){var n=this.children[e].findObject(t,i);if(!i&&n)return n;s=s.concat(n)}return i?s:null},Zh: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.zh(),this.cleanup()},Bh:function(){var t,i,s=this.slide;for(s.Ch<=this.ne.i&&(s.Ch=this.ne.i+1),s.Gh[this.ne.i]=this,s.Vh[this.ne.n]=this,t=0,i=this.children.length;t<i;++t)this.children[t].Bh()},zh:function(){var t,i,s=this.slide;for(delete s.Gh[this.ne.i],delete s.Vh[this.ne.n],t=0,i=this.children.length;t<i;++t)this.children[t].zh()},state:function(t){return arguments.length?void 0!==this.Wh&&this.Wh?this:(typeof t===Ui?this.Vs.name(t):this.Vs.id(t),this.savedCurrentState(t),this):this.Vs.name()},savedCurrentState:function(t){var i=this.savedData(!0);if(i)if(arguments.length)i.st=t;else{var s=(t=this.Vs).ne[t.Ve];i.st=s.i}return this},$h:function(){return us.createElement("div")},Kh:function(t){if(ms.innerHTML=t,(this.splitTexts?this.splitTexts.jh:this.textNode.innerHTML)!==ms.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.Qh()}},qh:function(){var t="";return this.Yh?t+="position: relative;":t+="position: absolute;",this.ne.k===i.u&&this.ne.t===s.vt?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},Jh:function(){if(!this.textNode){this.textContainer=us.createElement("div"),this.node.appendChild(this.textContainer);var t=this.textContainer.style;this.Yh?(t.position="relative",t.boxSizing="border-box",t.width="100%",t.height=""):(t.position="absolute",t.width="",t.height="",t.boxSizing=""),this.Da(),this.textNode=this.$h(),t=this.textNode.style,this.to?t.cssText=this.to:(t.position="absolute",t.left=t.right=0,t.wordWrap="break-word",t.pointerEvents="auto"),this.Rh&&this.textVerticalAlign(this.Rh),this.textContainer.appendChild(this.textNode),!1===this.Ih&&(this.textContainer.style.opacity=0),delete this.io,this.so&&100!=this.so&&this.eo()}},html:function(t){if(!arguments.length)return this.textNode?this.textNode.innerHTML:"";if(t+="",!this.textNode&&t&&this.Jh(),this.textNode){if(this.so&&100!=this.so){this.ro=t;var i={css:this.textNode.style.cssText,html:t};xs(i,this.so/100),t=i.html}else delete this.ro;var s=this,e=this.slide.fe.vars,r=e.replace(t);this.Kh(r.text),this.no&&(e.removeObserver(this.no),delete this.no),r.vars.length?(this.ao=t,this.no=function(){s.Kh(e.replace(s.ao).text)},e.addObserver(r.vars,this.no)):delete this.ao}return this},text:function(t){return arguments.length?this.html(ys(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,r,n,a,h=this.textNode.innerHTML,o=ke.splitText(this.textNode,i),u=["chars","words"],c=this;o.jh=h,this.splitTexts=o,o.listItems||(o.listItems=[],t("li",this.textContainer).each(function(){o.listItems.push(new sr(this,c))}));for(var f=0;f<2;++f){if(1==f){if(!(o=o.processStyles))break;u.length=0;for(r in o)u.push(r)}for(n=0;n<u.length;++n)if(r=u[n],a=o[r])for(s=0,e=a.length;s<e;++s)a[s]=new sr(a[s],this)}return this},unsplitText:function(){return this.textNode&&this.splitTexts&&void 0!==this.splitTexts.jh&&(this.textNode.innerHTML=this.splitTexts.jh,delete this.splitTexts),this},textStyle:function(t){return t=(t||"")+this.qh(),this.textNode?(this.textNode.style.cssText=t,delete this.io,this.so&&100!=this.so&&this.eo()):this.to=t,this},textVerticalAlign:function(t){if(!arguments.length)return this.Rh||"top";if("middle"===t||"top"===t||"bottom"===t){if(this.textNode){var i=this.textNode.style;i.top="",i.bottom="",i[Ls]="","top"===t?(i.top=0,i.bottom="auto",i[Ls]=""):"bottom"===t?(i.top="auto",i.bottom=0,i[Ls]=""):(this.Yh||(i.top="50%",i[Ls]="translateY(-50%)"),i.bottom="auto")}this.Rh=t}return this},textMargin:function(t,i,s,e){return arguments.length?(this.ho=[t,i,s,e],this.textContainer&&this.Da(),this):(this.ho||(this.ho=[5,5,5,5]),this.ho.slice())},fontScale:function(t){if(!arguments.length)return this.so||100;if(t!=(this.so||100)){var i;if(this.so=t,this.textNode)i=void 0!==this.ro?this.ro:void 0!==this.ao?this.ao:this.html(),this.html(i),this.eo();return this}},eo:function(){this.textNode&&(void 0===this.io&&(this.io=parseFloat(t(this.textNode).css("font-size"))||16),this.textNode.style.fontSize=this.io*this.so/100+"px")},Da:function(){var t,i=this.textMargin(),s=this.textContainer.style;if(this.Yh){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.Rh?s.top=(this.node.clientHeight-this.textContainer.clientHeight)/2+"px":"bottom"===this.Rh&&(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},ha:function(i){var s=null;if(this.node==i)s=this;else if(t.contains(this.node,i)){var e,r=this.children;for(e=r.length-1;e>=0;--e)if(s=r[e].ha(i))return s;s=this}return s},filterEvent:function(i){var s=!1,e=i.target,r=i.relatedTarget;switch(i.type){case"mouseover":case"mouseout":s=e===this.node||e===this.shape.node||!!r&&t.contains(this.node,r)&&r!==this.node&&r!==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",r=function(t){return s.call(this,t,this.prez())},this.oo||(this.oo={}),this.oo[e]||(this.oo[e]=[]),this.oo[e].push([s,r]),t(this).on(i,r),this):this;var e,r},off:function(i,s){if(!arguments.length)return t(this).off(),delete this.oo,this;var e,r=i+"-hdl",n=this.oo?this.oo[r]:null;if(s){if(n){for(e=n.length-1;e>=0;--e)if(n[e][0]===s){t(this).off(i,n[e][1]),n.splice(e,1);break}n.length||delete this.oo[r]}}else t(this).off(i),this.oo&&delete this.oo[r];return this},As:function(){return this.node},Gn:function(t){return this.oo&&this.oo[t+"-hdl"]},Xs:function(t){var i=t.originalEvent;t.apOrgTarget||i&&i.apOrgTarget||(t.apOrgTarget=this.Ds,i&&(i.apOrgTarget=this.Ds))},Ys:function(t){var i=t.originalEvent,s=t.apOrgTarget||i&&i.apOrgTarget;return s&&s!=this.Ds},show:function(t,i,s){return this.animate(t||ke.EffectType.APPEAR,i,s)},hide:function(t,i,s){return this.animate(t||ke.EffectType.DISAPPEAR,i,s)},alwaysHide:function(t){var i,s;!this.uo!=!t&&(t?(this.uo=!0,(i=this.node.style.display)==(s=this.hideProp())&&(i=void 0)):(delete this.uo,s=this.co),void 0!==s&&(Yn.display.set(this,s),this.animProps&&this.animProps.set("display",s)),void 0!==i&&(this.co=i));return this},animate:function(t,i,s){"object"!=typeof s&&(s={direction:s});var e=new Gn,r=this,n=ke.createEffect(this,t,0,i||0,s);if(!n)return this;this.qs(e),e.addChild(n).addChild(new Hn(function(){setTimeout(function(){r.Qs(e)},0),s.callback&&s.callback.call(r)},{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.Vs.flags();return t?i|=x:i&=~x,this.Vs.flags(i),this},hasStateFlag:function(t){var i=!1;if(this.Vs){var s,e,r=this.Vs;for(s=0,e=r.ne.length;s<e;++s)if((r.ne[s].p&t)==t){i=!0;break}}return i},enable:function(t){return arguments.length||(t=!0),this.disable(!t)},disabled:function(){return(this.Vs.flags()&x)===x},enabled:function(){return!this.disabled()},cleanup:function(){var i,s,e=this.fo,r=this.children;if(e){for(i=0,s=e.length;i<s;++i)e[i].remove();delete this.fo}for(this.node.rlDragCtrl&&(t(this.node).draggable("destroy"),delete this.node.rlDragCtrl),this.node.rlDropCtrl&&delete this.node.rlDropCtrl,this.no&&(this.prez().vars.removeObserver(this.no),delete this.no,delete this.ao),this.Dn&&this.Dn.cleanup(),i=0,s=r.length;i<s;++i)r[i].cleanup();return this},qs:function(t){t&&(t.slide=this.slide,this.fo?this.fo.push(t):this.fo=[t])},Qs:function(t){if(t&&(t.remove(),this.fo)){var i=this.fo.indexOf(t);i>=0&&this.fo.splice(i,1)}return this},_a:function(t){var i,s=this.fo;if(s)for(i=s.length-1;i>=0;--i)if(t(s[i]))return s[i];return null},js:function(t){var i,s=[],e=this.fo;if(e)for(i=e.length-1;i>=0;--i)t(e[i])&&s.push(e[i]);return s},Ws:function(t){var i=this.slide.fe.time();t?(void 0!==this.lo&&(this.lo>=i&&delete this.$s,delete this.lo),!1!==this.$s&&(this.Fs(!0,!0)||this.Wh)?(this.Wh&&delete this.Wh,this.$s=!0,this.slide.fe.pause(!0)):!1===this.$s&&delete this.$s):(this.$s&&this.slide.fe.pause(!1),this.$s=!1,this.lo=i)},do:function(i){var s,e=this.slide.fe.timeline,r=this,n=this.prez(),a=function(){r.Fs(!0,!0)&&(r.disable(),n&&!n.ended&&t(r).triggerHandler("ap-timeout"))};i>0?(s=new Gn({startTime:0}),this.qs(s),s.addChild(new Hn(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.ne.i],t&&!i&&(i=s[this.ne.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]).Fs(!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,r,n=this.children;for(s=0,e=n.length;s<e;++s)r=n[s],t&&!r.Fs(!0,!1)||r.clear(t,i);return this},restore:function(t){t||(t=this.savedData()),this.ne.rs&&t&&void 0!=t.st&&this.Vs&&(this.state(t.st),this.Tn());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.Vi&&t.sp&&(i-=t.sp)),i},attempts:function(){var t=this.savedData();return t&&t.a||0},po:function(t){var i=this.maxAttempts();i>=0&&t>=i&&this.disable()},maxAttempts:function(t){var i=this.ne.e;return arguments.length?(i||(i=this.ne.e={}),i.a=t<0?-1:t,this.po(this.attempts()),this):i&&void 0!==i.a?i.a:-1},vo:function(i,s,e,r,n,a,h,o){var u,c=!1,f=!1;switch(s){case Xt.Vi:f=!0,u="ap-correct";break;case Xt.Wi:f=!0,u="ap-incorrect";break;case Xt.Gi:u="ap-complete";break;case Xt.$i:c=!0,u="ap-incomplete";break;default:return}var l=this.prez();if(i.r=s,i.v=e,void 0!==r)if(i.p=r,s==Xt.Wi){var d=ks(l.vars.get("apScoreSubtract"),10)||0;i.sp=d}else s==Xt.Vi&&i.sp&&(r-=i.sp);else delete i.p,delete i.sp;if(n?i.n=1:delete i.n,h?i.d=h:delete i.d,f&&!c&&(i.a?++i.a:i.a=1,this.disabled()||(this.po(i.a),this.disabled()&&(this.Wh=!0))),!l.lms||c||n)l.ee(!0);else{var p=this.ne,v=l.learnerResponse(this.slide.ne,p,i),m=l.correctResponses(this.slide.ne,p),g={reportid:p.r,kind:p.k,type:p.t,multiline:p.f&ct.St,name:p.n,slideId:this.slide.ne.i,choices:o?o.choices:void 0,targets:o?o.targets:void 0,sources:o?o.sources:void 0,scales:o?o.scales:void 0};l.lms.storeInteractionData(g,s,r,v,m)}if(t(this).triggerHandler(t.Event(u),{value:a}),void 0!==r&&s==Xt.Wi){var b=ks(l.vars.get("apScoreSubtract"),10)||0;b!=d&&(i.sp=b,l.ended||l.ee(!0))}Ae(l.vars,"apQuizScore apQuizScorePercentage apQuizPassed apQuizPassedBool apQuizTakenInteractions apQuizUnTakenInteractions apQuizCorrectInteractions apQuizIncorrectInteractions apDetailedResult apDetailedResult2")},Fs:function(t,i,s){var e=this.prez(),r=(!e.allPaused()||e.ended)&&(s||!e.isBuffering())&&(!t||this.visible())&&this.enabled();if(r){if(e.demoMode()&&!this.slide.ne.isFeedback)return!1;if(i)for(var n=this.parent;n;){if(t&&!n.visible()||!n.enabled())return!1;n=n.parent}}return r},mo:function(){if(this.Dn){var i,s,e=["play","pause","ended"],r=["ap-play","ap-pause","ap-ended"],n=this,a=function(i){return function(){t(n).triggerHandler(t.Event(i),{})}};for(i=0,s=e.length;i<s;++i)this.Dn.ba(e[i],a(r[i]))}},name:function(){return this.ne.n||""},bo:function(){this.wo&&(this.wo.parentNode&&this.wo.parentNode.removeChild(this.wo),delete this.wo),this._o&&(this._o.parentNode&&this._o.parentNode.removeChild(this._o),delete this._o),this.yo&&(this.yo.parentNode&&this.yo.parentNode.removeChild(this.yo),delete this.yo),this.To&&(this.To.parentNode&&this.To.parentNode.removeChild(this.To),delete this.To),this.slide.ko&&(this.slide.ko.parentNode&&this.slide.ko.parentNode.removeChild(this.slide.ko),delete this.slide.ko)},re:function(t){var i,s,e,r=this.children;for(i=0,s=r.length;i<s;++i)(e=r[i]).re&&e.re(t);return this},xo:function(t,i){t&&(t.style.alignSelf="middle-right"===i?"flex-end":"center")},Co: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"))},So:function(t,i){var s=us.createElement("div");s.style.position="absolute",s.style.background=t===Xt.Vi?"#2fae62":t===Xt.Wi?"#d15327":"#e47c30",s.style.width="100%",s.style.height="40px",s.style.top="100%",s.style.transform="translateY(-100%)";var e=us.createElement("div"),r=us.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(r),s.appendChild(e),s},Oo:function(t,i,s){var e=!1;if(Array.isArray(i)){for(var r="",n=0,a=i.length;n<a;++n)r+=i[n],n<a-1&&(r+=", ");i=r,e=!0}var h=us.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=us.createElement("div"),u=us.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.Co(h,s),h.style.zIndex=qt.ps,h},Eo:function(t,i,s,e){var r=[],n=Je(this);n.length&&r.push(n);var a,h=s.correctAnswers,o=s.yourAnswerCtrls,u=s.correctAnswerCtrls,c=s.options,f=c.showValues||null!==i&&(o||u),l=this.Io(i,e||"middle-right",f);l&&(f&&(a=l.querySelector(".ap-feedback-popup"))&&(h?this.Po(a,h):(o||u)&&this.Ro(a,i,o,u,c)),t.Mo?t.Mo(l,this):t.appendChild(l));for(var d=0,p=r.length;d<p;++d)tr(r[d]);return{checkMark:l,popup:a}},Io:function(i,s,e){var r=this.slide.prez(),n=this,a=r.ne.playerIcons.correct,h=r.ne.playerIcons.incorrect,o=us.createElement("div");o.className="ap-feedback-popup-container";var u=us.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.xo(u,s),e){u.classList.add("ap-feedback-popup-btn-animation");var c=us.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=n.slide.node.getBoundingClientRect(),r=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=r.left-h,_=r.top-o,y=r.right+h,T=r.bottom+o,k=r.left+r.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-r.right;w>=e.left?(E=parseInt(t(this).css("marginLeft"))||0,v=this.offsetLeft-E-u,S=r.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=(r.top+r.bottom)/2-o/2;O<e.top?m=this.offsetTop+(e.top-r.top)/d:O+o>e.bottom&&(m=this.offsetTop+(e.bottom-o-r.top)/d)}if(!p){var E,I=!0,P=e.bottom-r.bottom;P>=r.top-e.top?(E=parseInt(t(this).css("marginBottom"))||0,m=this.offsetTop+this.offsetHeight+E,I=!1):(P=r.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=$i(P/d-E,c.offsetHeight+.5),v=this.offsetLeft+(e.left-r.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-r.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":""}}),us.addEventListener("mousedown",function(t){var i=t.target;i===c||i===u||c.contains(i)||u.contains(i)||(c.style.display="none")}),r.ui&&t(r.ui).on("ui:ap-layout",function(){c.style.display="none"}),c.className="ap-feedback-popup",c.style.display="none"}return o},Ro:function(i,s,e,r,n){var a=[],h=Je(this);h.length&&a.push(h);var o,u,c,f=this.slide.prez(),l=f.ne.playerIcons.correct,d=f.ne.playerIcons.incorrect;function p(t){var i=t.node,s=i.clientWidth,e=i.clientHeight;if(!i){var r=us.createElement("div");return r.style.width=180,void(r.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 n=i.cloneNode(!0),a=n.style,h={filter:a.filter};n.attributes.length>0;)n.removeAttributeNode(n.attributes[0]);a=n.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=$i(s/i.clientWidth,1)),0!==i.clientHeight&&(c=$i(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=us.createElement("div"),p=d.style;return p.width=s+"px",p.height=e+"px",p.margin="6px",p.overflow="hidden",d.appendChild(n),d}if(null!==s)if((o=us.createElement("div")).innerHTML=f.ui.pe.text("LearnerResponse"),o.className="ap-feedback-popup-title",i.appendChild(o),(u=us.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<r.length;++w){if(r[w].id()===c.id()){v=!0;break}}var _=us.createElement("div");_.style.position="relative",(h=Je(c)).length&&a.push(h),_.appendChild(p(c)),!n.showCorrect&&v||!n.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(n.showValues)if((o=us.createElement("div")).innerHTML=f.ui.pe.text("CorrectResponses"),o.className="ap-feedback-popup-title",i.appendChild(o),(u=us.createElement("div")).className="ap-feedback-popup-answers-container",i.appendChild(u),r.length<=0)u.innerHTML='<div class="ap-feedback-popup-no-answer">--</div>';else if(r.length>0)for(g=0,b=r.length;g<b;++g)(c=r[g]).node&&((h=Je(c)).length&&a.push(h),u.appendChild(p(c)));for(g=0,b=a.length;g<b;++g)tr(a[g])},Po:function(t,i){var s=us.createElement("div");if(s.innerHTML=this.slide.prez().ui.pe.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,r,n=us.createElement("ul"),a=n.style;for(a.margin="5px 5px",a.padding="0px 10px 0px 15px",a.maxWidth="500px",a.textAlign="start",t.appendChild(n),e=0;e<i.length;++e)(r=us.createElement("li")).classList.add("ap-no-select"),r.innerText=i[e],n.appendChild(r)}},No:function(){if(this.wo)return this.wo;var t=us.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.ps,this.wo=t,this.node.appendChild(t),t},Mo:function(t,i){var s=this.No();if(s&&i&&t){var e=us.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)}},Hh:function(t){if(this.wo){var i,s,e,r,n,a,h,o,u,c=this.node.childNodes;for(i=0,s=c.length;i<s;++i)if((r=(e=c[i]).getAttribute("data-ap-ctrlid"))===this.id().toString()){for(a=0,h=(n=e.childNodes).length;a<h&&(o=n[a],r=parseInt(o.getAttribute("data-ap-ctrlid")),!(u=t?r==t.id()?t:null:this.Zh(r))||(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}}},Ao:function(t,i){var s=this.slide.prez(),e=us.createElement("div");return e.innerHTML=t?s.ne.playerIcons.correct:s.ne.playerIcons.incorrect,this.Co(e.firstChild,i),"middle-left"==i?e.firstChild.style.marginLeft="-3px":"middle-right"==i&&(e.firstChild.style.marginLeft="3px"),e.firstChild.style.zIndex=qt.ps,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")}}),nr={_default:function(t,i){return new rr(t,i)}};function ar(t){for(var i=arguments.length;--i>0;)nr[arguments[i]]=t}var hr=Qs(rr,{$init:function(e,r){var n=e.defaultCtrlData();n.k=i.J,n.t=s.ot,n.margin=r.margin,n.ti=-1;var a=[],h=void 0;if(e.ne.ca&&(h=e.ne.ca.r||{}),e.ne&&e.ne.h)for(var o=0;o<e.ne.h.length;o++){var u={};u.r=[0,n.margin,0,0,2,1],h&&h.length&&h.length==e.ne.h.length&&h[o]&&(u.f=h[o].f||100),a.push(u)}n.s=[{t:["<span></span>",r.textStyle[0],r.textStyle[1]],f:r.fill,w:a,a:0}],rr.prototype.$init.call(this,e,n),this.node.style.zIndex=qt.us,$s(this.node.style),t(this.node).css("visibility",e.fe.Pr?"visible":"hidden")},onResized:function(t,i){if(this.Do&&!0===this.Do)rr.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.ne.margin,0)+"px",this.node.style.height=Math.max(e-2*this.ne.margin,0)+"px";var r=this.innerTextNode(),n=r?r.width()+this.ho[0]+this.ho[2]+1:0,a=r?r.height()+this.ho[1]+this.ho[3]+1:0;this.node.style.width=n+"px",this.node.style.height=a+"px";for(var h=0;h<this.ne.s.length;h++){var o=this.ne.s[h].w;for(h=0;h<o.length;h++)o[h].r[2]=n,o[h].r[3]=a}this.Vs&&this.Vs.layout(),this.Do=!0,rr.prototype.onResized.call(this,t,i),this.Do=!1}},innerTextNode:function(){return t("span",t(this.textNode)).first()},onLayoutSwitched:function(){if(rr.prototype.onLayoutSwitched.call(this),this.Yo){var i=this.innerTextNode();t(i).html(this.Yo||""),this.onResized(0,0)}}});ar(function(t,i){return new hr(t,i)},i.J);var or=Qs(rr,{$init:function(t,i){if(this.Xo=0,this.Lo=0,this.Fo=!1,this.Ho=!1,rr.prototype.$init.call(this,t,i),this.ne.tmp.type==Ei){var s=this.shape,e=s?s.node:void 0;s&&s.shapeNode;if(e){var r=e.querySelector("defs");r||(r=us.createElementNS(Bi,"defs"),e.appendChild(r));var n=us.createElementNS(Bi,"mask");n.id=s.container.id?s.container.id+"-masktimer":"ap-masktimer-"+ye();var a=us.createElementNS(Bi,"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"),n.appendChild(a);var h=us.createElementNS(Bi,"path"),o=an[s.Gs];if(o&&o[0]){var u=s.container.clientWidth,c=s.container.clientHeight,f=new hn;o[0].apply(f,[0,0,u,c]),h.setAttribute("d",f.path()),h.setAttribute("fill","black"),n.appendChild(h)}r.appendChild(n),s.Uo&&s.Uo.setAttribute("mask","url(#"+n.id+")"),s.Bo=n}}this.prez().registerTimer(this)},Ua:function(t,i){this.Zo(),i&x&&this.pauseTimer()},restore:function(t){return rr.prototype.restore.call(this,t),t||(t=this.savedData()),t&&t.tm&&(this.Fo=t.tm.s,this.Lo=t.tm.v,this.Ho=t.tm.as,this.Xo=this.prez().elapsedTime()-this.Lo,this.Zo()),this},cleanup:function(){return this.prez().unregisterTimer(this),rr.prototype.cleanup.call(this)},startTimer:function(){this.Fo||(this.Lo&&this.Lo!=this.ne.tmp.duration||(this.Lo=0),this.Fo=!0,this.Xo=this.prez().elapsedTime()-this.Lo,this.tick())},pauseTimer:function(){this.Fo&&(this.Fo=!1,this.zo())},stopTimer:function(){this.Fo=!1,this.Lo=0,this.zo(),this.Zo()},setTimerValue:function(i){var s=this.getTimerDuration(),e=this.ne.tmp.countdown;i>s&&(i=s),i<0&&(i=0);var r=this.Lo;this.Lo=e?s-i:i,this.Xo+=r-this.Lo,this.Fo||(this.zo(),this.Zo(),this.Lo==this.ne.tmp.duration&&t(this).triggerHandler("ap-timer-complete"))},getTimerValue:function(){var t=this.getTimerDuration();return this.ne.tmp.countdown?t-this.Lo:this.Lo},getTimerDuration:function(){return this.ne.tmp.duration},zo:function(){this.savedData(!0).tm={s:this.Fo,v:this.Lo,as:this.Ho}},tick:function(){this.Fo&&!this.prez().ended&&(this.Lo=this.prez().elapsedTime()-this.Xo,this.Lo>=this.ne.tmp.duration&&(this.Lo=this.ne.tmp.duration,this.Fo=!1),this.zo(),this.Zo(),this.Lo==this.ne.tmp.duration&&t(this).triggerHandler("ap-timer-complete"))},Zo:function(){var t=this.ne.tmp.type,i=this.ne.tmp.subType,s=this.ne.tmp.countdown,e=this.ne.tmp.duration,r=s?e-this.Lo:this.Lo,n=this.shape,a=r/e;if(t==Oi){var h,o,u,c="";i==Ii?(o=s?Math.ceil(r/1e3):Math.floor(r/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==Pi?(u=s?Math.ceil(r/1e3/60):Math.floor(r/1e3/60),c=("00"+Math.floor(u/60)).toString().slice(-2)+" : "+("00"+u%60).toString().slice(-2)):i==Ri?(o=s?Math.ceil(r/1e3):Math.floor(r/1e3),c=("00"+(u=Math.floor(o/60))).toString().slice(-2)+" : "+("00"+o%60).toString().slice(-2)):i==Mi&&(h=r%1e3,c=("00"+(o=Math.floor(r/1e3))).toString().slice(-2)+" : "+("000"+h).toString().slice(-3)),c!=this.text()&&this.html(c)}else if(t==Ei&&n&&n.Bo){var f=n.Bo.querySelector("path");if(f){var l=an[n.Gs],d="none"!==n.Go?n.Vo:0,p=d%2==0?0:1,v=ss(d/2);if(l&&l[0]){var m=n.container.clientWidth-2*v-2*p,g=n.container.clientHeight-2*v-2*p,b=new hn;l[0].apply(b,[m*a+p+v,v+p,m-m*a,g].concat(n.Wo)),f.setAttribute("d",b.path())}}}}});ar(function(t,i){return new or(t,i)},i.H);var ur=Qs(rr,{$init:function(i,s){rr.prototype.$init.call(this,i,s),this.node.setAttribute("role","button");var e=this;t(this.node).on(ne,function(t){e.filterEvent(t)||(e.Xs(t),e.$o=!0,setTimeout(function(){e.$o&&(e.Fs(!1,!0)&&e.Vs.flags(e.Vs.flags()|T),delete e.$o)},0))}).on(re,function(t){e.filterEvent(t)||e.Xs(t),e.$o&&delete e.$o,e.Vs.flags(e.Vs.flags()&~T)}).on("keydown",function(i){i.which!==pe.SPACE&&i.which!==pe.ENTER||!e.Fs(!1,!0)||e.Vs.has(T)||(i.preventDefault(),i.stopPropagation(),t(e.textNode||e.shape.shapeNode).trigger(t.Event(ne,{pageX:0,pageY:0})))}).on("keyup",function(i){i.which!==pe.SPACE&&i.which!==pe.ENTER||(i.preventDefault(),i.stopPropagation(),t(e.textNode||e.shape.shapeNode).trigger(t.Event(ae,{pageX:0,pageY:0})))})},Th:function(){this.on("ap-rollover",function(t){this.Fs(!1,!0)&&(this.Vs.has(S)||this.Vs.flags(this.Vs.flags()|k))}).on("ap-rollout",function(){this.$o&&delete this.$o,this.Vs.has(S)||this.Vs.flags(this.Vs.flags()&~(k|T))})}});ar(function(t,i){return new ur(t,i)},i.O);var cr=Qs(rr,{$init:function(i,s){rr.prototype.$init.call(this,i,s);var e=this.ne.vl;Is(this.node,{role:"slider","aria-valuenow":e[0],"aria-valuemin":e[1],"aria-valuemax":e[2],"aria-step":e[3]});var r=this;if(s.v){this.Ko=s.v,this.jo=s.vm;var n=i.fe.vars;this.Qo=function(){if(!r.qo&&!r.Jo){var t=n.get(r.Ko);r.tu=!0,r.value(t),delete r.tu}},n.addObserver([this.Ko],this.Qo),this.Qo()}t(this.node).on("mousedown mouseup",function(t){r.filterEvent(t)||r.Xs(t)}).on(ne,function(i){if(r.Fs(!1,!0)){r.Jo=!0;var s=r.getThumbSize(),e=r.value();r.iu=r.su(e),(i.offsetX>r.iu+s[0]||i.offsetX<r.iu)&&r.eu(i.offsetX-s[0]/2,!0),r.iu=i.offsetX-s[0]/2,r.ru={x:i.clientX,y:i.clientY},r.nu=e,r.Xs(i),r.$o=!0,setTimeout(function(){r.$o&&(r.Fs(!1,!0)&&r.Vs.flags(r.Vs.flags()|T),delete r.$o)},0);var n=function(t){if(r.Jo){var i=getTransformationMatrix(r.node).inverse(),s=i.transformPoint({x:r.ru.x,y:r.ru.y}),e=i.transformPoint({x:t.clientX,y:t.clientY}),n=r.iu+(e.x-s.x);r.eu(n,!0),t.preventDefault()}},a=function(i){if(t(us).off(he,n).off(ae,a),ee&&t(us).off(ee,a),r.$o&&delete r.$o,r.Vs.flags(r.Vs.flags()&~T),r.Fs(!1,!0)&&r.Jo){delete r.Jo;var s=r.value();r.nu!==s&&(r.jo===Di&&r.au(),t(r).triggerHandler("ap-change"))}else delete r.Jo};t(us).on(he,n).on(ae,a),ee&&t(us).on(ee,a)}else i.preventDefault()}).on("keydown",function(t){var i,s=r.hu(),e=s.value,n=s.max-s.min,a=is(n/s.step),h=0!==a?is(n/es(a/is(a/10))):0;switch(t.which){case pe.HOME:e=s.min,i=r;break;case pe.END:e=s.max,i=r;break;case pe.RIGHT:case pe.UP:e=$i(s.max,e+s.step),i=r;break;case pe.LEFT:case pe.DOWN:e=Ki(s.min,e-s.step),i=r;break;case pe.PAGEUP:e=$i(s.max,e+h),i=r;break;case pe.PAGEDOWN:e=Ki(s.min,e-h),i=r}i&&(t.stopPropagation(),t.preventDefault(),i.Fs(!1,!0)&&e!==s.value&&i.eu(i.su(e),!0,!0))}).css("touchAction","none"),xe(this.node)},Th:function(){this.on("ap-rollover",function(t){this.Fs(!1,!0)&&this.Vs.flags(this.Vs.flags()|k)}).on("ap-rollout",function(){this.$o&&delete this.$o,this.Vs.flags(this.Vs.flags()&~(k|T))})},eu:function(t,i,s){var e=this.ou(t);this.value(e,i,s)},su:function(t){var i=this.hu(),s=this.node.clientWidth,e=0;if(i.max!==i.min){var r=this.getThumbSize();e=(t-i.min)*(s-r[0])/(i.max-i.min)}return e<0&&(e=0),e>s&&(e=s),e},ou:function(t){var i=this.hu(),s=this.node.clientWidth,e=i.min;if(0!==s){var r=this.getThumbSize();e=t*(i.max-i.min)/(s-r[0])+i.min}return e},getThumbSize:function(){var t=this.Vs.ne[this.Vs.Ve];if(void 0===t)return[24,24];var i=t.sl[3]||24,s=t.sl[4]||rt,e=[0,0];return s==rt?e=[i,i]:s!=nt&&s!=at||(e=[.75*i,i]),e},hu:function(t){var i=this.ne.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.hu(!0);var r=this.hu(),n=(i-r.min)%r.step;if(i<r.min)i=r.min;else if(i>=r.max)0!==(n=((i=r.max)-r.min)%r.step)&&(i-=n);else if(0!==n){var a=i-n,h=a+r.step;(i=i-a>=h-i?h:a)>r.max&&(i=a)}if(i==r.value)return this;this.node.setAttribute("aria-valuenow",i);var o=this.Vs.flags();return this.Vs.flags(o)||this.Vs.at(this.Vs.Ve),(s&&this.jo===Ai||e&&this.jo===Di||1===arguments.length)&&this.au(),s&&t(this).triggerHandler("ap-changing"),e&&t(this).triggerHandler("ap-change"),this},au:function(){this.Ko&&this.prez()&&!this.tu&&(this.qo=!0,this.prez().vars.set(this.Ko,this.value()),delete this.qo)},Fs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&rr.prototype.Fs.call(this,t,i,s)},cleanup:function(){return this.Qo&&(this.prez().vars.removeObserver(this.Qo),delete this.Qo),rr.prototype.cleanup.call(this)}});ar(function(t,i){return new cr(t,i)},i.X);var fr=Qs(rr,{$init:function(i,s){rr.prototype.$init.call(this,i,s),s.v&&(this.Ko=s.v,this.au());var e=this,r=window.ResizeObserver;r&&new r(function(){e.shape.uu(),e.shape.updateDropdown()}).observe(this.shape.dropdownNode);t(this.node).on("mousedown mouseup",function(t){e.filterEvent(t)||e.Xs(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.Fs(!1,!0)){if(e.au(),e.cu()===At){var i=e.zn();i.result!==Xt.Vi&&i.result!==Xt.Gi&&i.result!==Xt.Wi||e.submit(i)}fe(e,"ap-change")}else t.preventDefault()}).on("mousedown",function(t){e.Fs(!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},kh: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.ne.di;s.selectedIndex=-1!==e?e:0}else for(r=0;r<s.options.length;++r)if(s.options[r].text===t){s.selectedIndex=r;break}return this.au(),this}if(s)for(var r=0;r<s.childNodes.length;++r){var n=s.childNodes[r];if(!n.disabled&&n.selected)return n.text}},cu:function(){var t=this.ne.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.cu()===At)return this;t=this.zn()}if(t.result===Xt.Ki&&(t.result=Xt.Wi),t.result!==Xt.zi){for(var i=[],s=this.ne.it,e=0,r=s.length;e<r;++e)i.push({reportId:e,text:s[e]});this.vo(this.savedData(!0),t.result,t.answer,t.score,!t.report,t.answer,void 0,{choices:i})}return this},zn:function(){var t=this.ne.e||{},i=t.f,s=(i&It)===It,e=(i&Mt)!==Mt,r=s&&e,n=r&&(i&Rt)===Rt,a=0,h=this.value(),o=Xt.zi;if(s){var u,c,f,l=t.v||[],d=-1;for(o=Xt.Wi,c=0,f=l.length;c<f;++c){if(h===(u=l[c])){d=c,o=Xt.Vi;break}h&&u.substr(0,h.length)===h&&h.length<u.length&&(o=Xt.Ki)}o===Xt.Vi?r&&t.m&&(a=n?t.m[d]||0:t.m):void 0===h&&(o=Xt.$i)}else i&Pt&&(o=void 0!==h?Xt.Gi:Xt.$i);var p={result:o,answer:h,score:r?a:void 0,report:e,prevValue:this.fu||""};return this.fu=h,p},au:function(){if(this.Ko&&this.prez()){var t=this.shape.dropdownNode.value,i=this.prez().vars;i.Gs(this.Ko)==xi.TEXT&&(t=String(t)),i.set(this.Ko,t)}},fontScale:function(t){return arguments.length?t!=(this.so||100)?(this.so=t,this.shape.dropdownNode&&this.shape.updateDropdown(),this):void 0:this.so||100},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:this.value("",!0)},restore:function(t){return rr.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.po(t.a),this.value(t&&t.v)},Fs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&rr.prototype.Fs.call(this,t,i,s)},re:function(t){t=t||{};var i=(((this.ne.e||{}).f||0)&It)===It,s=this.savedData();if(i){rr.prototype.bo.call(this);var e=s&&s.r===Xt.Vi;if((e&&!t.showCorrect||!e&&!t.showIncorrect)&&(e=null),null!==e||t.showValues){var r=(this.ne.e||{}).v||[""],n=this.Eo(this.node,e,{correctAnswers:r,options:t});n.checkMark&&(this._o=n.checkMark),n.popup&&(this.To=n.popup)}if(t.showResult){var a=Xt.$i;s&&void 0!==s.r&&(a=s.r);var h=this.So(a,this.slide.prez().responseResultString(a));h&&(this.slide.node.appendChild(h),this.slide.ko=h)}}}});ar(function(t,i){return new fr(t,i)},i.K);var lr=Qs(rr,{$init:function(t,i){rr.prototype.$init.call(this,t,i),this.on("ap-dblclick",function(t,i){this.Fs(!1,!0)&&this.submit(t.value,!1)})},Th:function(){var t=this.prez().options.playMode;"Tutorial"!==t&&"Practice"!==t||this.on("ap-incorrect",function(){this.xh(!0)})},Bh:function(){this.slide.Zn.push(this),rr.prototype.Bh.call(this)},submit:function(t,i){if(this.prez()&&this.prez().ended)return this;if(!arguments.length)return this;var s=this.ne.e||{},e=s.f,r=(e&Mt)!==Mt,n=r,a=n&&(e&Rt)===Rt,h=0,o=s.v||[],u=Xt.Wi,c=-1;if(i||(o.length?c=o.indexOf(t):de.code(t)!==ve.OUTSIDE&&(c=0)),c>=0)u=Xt.Vi,n&&s.m&&(h=a?s.m[c]||0:s.m);else if(i&&pe.shouldIgnoreIncorrect(t))return this;return this.vo(this.savedData(!0),u,t,n?h:void 0,!r,t),this},restore:function(t){return rr.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.po(t.a),this},re:function(t){t=t||{};var i=this.ne.e||{},s=i.f||0,e=i.v||[],r=(s&It)===It,n=this.savedData();if(r){rr.prototype.bo.call(this);var a=n&&n.r===Xt.Vi;if((a&&!t.showCorrect||!a&&!t.showIncorrect)&&(a=null),(null!==a||t.showValues)&&(this.xh(!0),null!==a||t.showValues)){for(var h=[],o=0;o<e.length;o++)h.push(ve.name(e[o],this.slide.prez().ui.pe));var u=this.Eo(this.node,a,{correctAnswers:h,options:t});u.checkMark&&(this._o=u.checkMark),u.popup&&(this.To=u.popup)}if(t.showResult){var c=Xt.$i;n&&void 0!==n.r&&(c=n.r);var f=this.So(c,this.slide.prez().responseResultString(c));f&&(this.slide.node.appendChild(f),this.slide.ko=f)}}}}),dr=Qs(rr,{$init:function(i,s){rr.prototype.$init.call(this,i,s);var e=this;t(this.node).on("mousedown mouseup",function(t){e.filterEvent(t)||(e.Xs(t),ve.fromTouch&&"mousedown"==t.type&&e.Fs(!1,!0)&&e.submit(ve.combinedCode(t),!1))}),this.on("ap-keypress",function(t,i){this.Fs(!1,!0)&&this.submit(t.value,!0)})},Th:function(){var t=this.prez().options.playMode;"Tutorial"!==t&&"Practice"!==t||this.on("ap-incorrect",function(){this.xh(!0)})},Bh:function(){this.slide.xn.push(this),rr.prototype.Bh.call(this)},submit:function(t,i){if(this.prez()&&this.prez().ended)return this;if(!arguments.length)return this;var s=this.zn(t,i);return s.result!==Xt.zi&&this.vo(this.savedData(!0),s.result,s.answer,s.score,!s.report,s.answer),this},zn:function(t,i){var s=this.ne.e||{},e=s.f,r=(e&Mt)!==Mt,n=r,a=n&&(e&Rt)===Rt,h=0,o=s.v||[],u=Xt.Wi,c=-1;return i?c=o.length?o.indexOf(t):0:de.code(t)!==ve.OUTSIDE&&(c=0),c>=0?(u=Xt.Vi,n&&s.m&&(h=a?s.m[c]||0:s.m)):i&&pe.shouldIgnoreIncorrect(t)&&(u=Xt.zi),{result:u,answer:t,score:n?h:void 0,report:r}},restore:function(t){return rr.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.po(t.a),this},re:function(t){t=t||{};var i=this.ne.e||{},s=i.f||0,e=i.v||[],r=(s&It)===It,n=this.savedData();if(r){rr.prototype.bo.call(this);var a=n&&n.r===Xt.Vi;if((a&&!t.showCorrect||!a&&!t.showIncorrect)&&(a=null),null!==a||t.showValues){this.xh(!0);for(var h=[],o=0;o<e.length;o++)h.push(de.name(e[o],this.slide.prez().ui.pe));var u=this.Eo(this.node,a,{correctAnswers:h,options:t});u.checkMark&&(this._o=u.checkMark),u.popup&&(this.To=u.popup)}if(t.showResult){var c=Xt.$i;n&&void 0!==n.r&&(c=n.r);var f=this.So(c,this.slide.prez().responseResultString(c));f&&(this.slide.node.appendChild(f),this.slide.ko=f)}}},Fs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&rr.prototype.Fs.call(this,t,i,s)},Ls:function(t){return this.Fs(!1,!0)?this.zn(t,!0).result!=Xt.zi:pe.shouldPreventDefault(t,!1,!0)}}),pr=Qs(rr,{$init:function(t,i){rr.prototype.$init.call(this,t,i)}});function vr(t){return arguments.length?(this.textNode||this.Jh(),t+="",this.textNode.value=t,this.lu=t,this.au(),this):this.textNode&&this.textNode.value||""}function mr(){return[this.du.firstCorrectValue()]}ar(function(t,i){return i.t===s.ht?new dr(t,i):i.t===s.nt?new lr(t,i):i.t===s.B?new pr(t,i):void 0},i.I);var gr=Qs(rr,{$init:function(i,s){this.lu="",this.Na=!0,s.v&&(this.Ko=s.v),rr.prototype.$init.call(this,i,s),this.Jh(),this.pu();var e=this;t(this.node).on("mousedown",function(t){e.Fs(!1,!0)?e.filterEvent(t)||(e.Xs(t),t.target!==e.textNode&&(t.preventDefault(),e.textNode.focus())):t.preventDefault()}).on("mouseup",function(t){e.filterEvent(t)||e.Xs(t)}),t(this.textNode).on("focus",function(i){e.Fs(!1,!0)?e.prez()&&e.prez().highlightFocus()&&t(e.node).addClass("ap-focused"):i.preventDefault()}).on("blur",function(i){e.Fs(!1,!0)?t(e.node).removeClass("ap-focused"):i.preventDefault()})},$h:function(){var i,s,e=this.ne.f;e&ct.St?i=us.createElement("textarea"):((i=us.createElement("input")).type=e&ct.Ct?"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 r=this.cu(),n=this;return r===At?t(i).on("input",function(t){if(n.Fs(!1,!0)){var i=n.zn();i.answer!==i.prevValue&&(i.result===Xt.Vi||i.result===Xt.Gi||i.result===Xt.Wi&&i.prevValue.substr(0,i.answer.length)!==i.answer)&&n.submit(i)}}):r>0&&t(i).on("keydown keyup",function(t){pe.hasKeydown(t.which)===("keydown"===t.type)&&pe.combinedCode(t)===r&&n.Fs(!1,!0)&&(pe.preventDefault(t),t.stopPropagation(),n.submit())}),t(i).on("change",function(t){n.Fs(!1,!0)&&n.vu()}),i},vu:function(){var t=this.value();this.lu!=t&&(this.lu=t,fe(this,"ap-change"))},accText:function(t){return arguments.length||(t=""),this.Jh(),this.textNode&&this.textNode.setAttribute("aria-label",t),this},kh:function(t){isNaN(t)||(this.Jh(),-2==t?this.textNode.tabIndex=-1:-1==t?this.textNode.removeAttribute("tabIndex"):this.textNode.tabIndex=t)},html:vr,text:vr,value:vr,caseSensitive:function(){return(this.ne.f&ct.Ot)===ct.Ot},qh:function(){var t=rr.prototype.qh.call(this)+"border: none; margin: 0; padding: 0; background: transparent; width: 100%; outline: none;";return this.ne.f&ct.St&&(t+=" height: 100%; resize: none;"),t},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:this.text("")},restore:function(t){return rr.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.po(t.a),this.text(t&&t.v||"")},Ua:function(t,i){this.textNode&&(this.textNode.disabled=(i&x)==x)},cu:function(){var t=this.ne.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.cu()===At)return this;this.vu(),t=this.zn()}return t.result===Xt.Ki&&(t.result=Xt.Wi),t.result!==Xt.zi&&this.vo(this.savedData(!0),t.result,t.answer,t.score,!t.report,t.answer),this},zn:function(){var i=this.ne.e||{},s=i.f,e=(s&It)===It,r=(s&Mt)!==Mt,n=e&&r,a=n&&(s&Rt)===Rt,h=0,o=this.value(),u=Xt.zi;if(e){var c,f,l,d=!this.caseSensitive(),p=d?o.toUpperCase():o,v=i.v||[""],m=-1;for(u=Xt.Wi,f=0,l=v.length;f<l;++f){if(c=v[f],d&&(c=c.toUpperCase()),p===c){m=f,u=Xt.Vi;break}c.substr(0,p.length)===p&&p.length<c.length&&(u=Xt.Ki)}u===Xt.Vi?n&&i.m&&(h=a?i.m[m]||0:i.m):o||(u=Xt.$i)}else s&Pt&&(u=o?Xt.Gi:Xt.$i);o!==this.fu&&(this.au(),t(this).triggerHandler(t.Event("ap-textenter",{value:o})));var g={result:u,answer:o,score:n?h:void 0,report:r,prevValue:this.fu||""};return this.fu=o,g},au:function(){if(this.Ko&&this.prez()){var t=this.textNode.value,i=this.prez().vars;i.Gs(this.Ko)==xi.NUMBER&&(t=Number(t)),i.set(this.Ko,t)}},firstCorrectValue:function(){var t=this.ne.e;return t&&t.v&&t.v.length>0&&t.v[0]?t.v[0]:""},pu:function(){var t=this.slide,i=((this.ne.e.f||0)&It)===It;if(t.fe.demoMode()&&i){for(var s=t.je,e=0,r=0,n=null,a=null,h=(t.ne.tl[0]||null)[2],o=0,u=null!==h?h.length:0;o<u;++o)if(h[o][0]==this.ne.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]>=ke.EffectType.ENTRANCE_START&&d[0]<=ke.EffectType.ENTRANCE_END&&!n?n=d:d&&d[0]>=ke.EffectType.EXIT_START&&d[0]<=ke.EffectType.EXIT_END&&!a&&(a=d,n&&n[1]>0&&a[0]===ke.EffectType.DISAPPEAR&&a[1]<n[1]&&(a=null)),n&&a)break}break}var p,v=e=n?n[1]:0,m=r=a?a[1]+a[2]-e:t.ne.d-e,g=r-500;if(n)(p=n[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 Un(this,"text",{startTime:v,duration:g,tweenParams:[mr],tweenType:ti._s});return b&&s.addChild(b),this}},re:function(t){t=t||{};var i=(((this.ne.e||{}).f||0)&It)===It,s=this.savedData();if(i){rr.prototype.bo.call(this);var e=s&&s.r===Xt.Vi;if((e&&!t.showCorrect||!e&&!t.showIncorrect)&&(e=null),null!==e||t.showValues){var r=(this.ne.e||{}).v||[""],n=this.Eo(this.node,e,{correctAnswers:r,options:t});n.checkMark&&(this._o=n.checkMark),n.popup&&(this.To=n.popup)}if(t.showResult){var a=Xt.$i;s&&void 0!==s.r&&(a=s.r);var h=this.So(a,this.slide.prez().responseResultString(a));h&&(this.slide.node.appendChild(h),this.slide.ko=h)}}},Fs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&rr.prototype.Fs.call(this,t,i,s)}});ar(function(t,i){return new gr(t,i)},i.S);var br=Qs(rr,{$init:function(t,i){rr.prototype.$init.call(this,t,i)},Th:function(){var t=this.prez().options.playMode;"Tutorial"!==t&&"Practice"!==t||this.on("ap-incorrect",function(){this.xh(!0)})},submit:function(t){var i=this.prez();if(i&&i.ended)return this;if(!t)return this;for(var s,e=this.ne.e||{},r=e.f,n=(r&Mt)!==Mt,a=n,h=a&&(r&Rt)===Rt,o=!1,u=0,c=t,f=[{reportId:this.ne.r,text:this.text()}],l=[],d=e.v||[],p=0,v=d.length;p<v;++p)(s=this.slide.Zh(d[p]))&&l.push({reportId:s.ne.r,text:s.text()});if(this.dropHelper.droppedObjects().indexOf(t)<0){if(!this.dropHelper.accepted(t)||this.dropHelper.droppedObjects().length)return this;o=!1,t=null}else{var m=(e.v||[]).indexOf(t.id());m>=0?(o=!0,a&&e.m&&(u=h?e.m[m]||0:e.m)):o=!1}var g,b=this.savedData(!0),w=o?P:R;c&&c.hasStateFlag(w)&&c.Vs.flags(w),this.hasStateFlag(w)&&this.Vs.flags(w),this.dropHelper.absolutePosition()&&t&&t.sh&&(g=[t.sh.x,t.sh.y]),this.vo(b,o?Xt.Vi:Xt.Wi,t?t.id():0,a?u:void 0,!n,t,g,{targets:f,sources:l});var _=this.maxAttempts();return b.a!=_&&-1!=_||(c.hasStateFlag(w)&&c.savedCurrentState(),this.hasStateFlag(w)&&this.savedCurrentState()),this},restore:function(t){if(this.clear(),!t&&!(t=this.savedData()))return this;if(this.ne.rs&&t.st&&(this.state(t.st),this.Tn()),void 0!==t.a&&this.po(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.ne.rs&&e&&e.st&&(i.state(e.st),i.Tn()),this.dropHelper.drop(i,s,!1)}}return this},re:function(t){t=t||{};var i=this.ne.e||{},s=i.f||0,e=i.v||[],r=(s&It)===It,n=this.savedData();if(r){rr.prototype.bo.call(this);var a=n&&n.r===Xt.Vi;if(a&&t.showCorrect||!a&&t.showIncorrect)(u=this.Ao(a,"middle-left"))&&(this.node.appendChild(u),a?this._o=u:this.yo=u);if(t.showCorrect)for(var h=0;h<e.length;h++){var o,u;if(o=this.slide.object(e[h]))rr.prototype.bo.call(o),(u=this.Ao(!0,"middle-left"))&&(o.node.appendChild(u),o._o=u)}if(t.showIncorrect)if(n&&void 0!==n.v)if(e.indexOf(n.v)<0)if(o=this.slide.object(n.v))rr.prototype.bo.call(o),(u=this.Ao(!1,"middle-left"))&&(o.node.appendChild(u),o.yo=u);if(t.showResult){var c=Xt.$i;n&&void 0!==n.r&&(c=n.r);var f=this.So(c,this.slide.prez().responseResultString(c));f&&(this.slide.node.appendChild(f),this.slide.ko=f)}(t.showCorrect||t.showValues)&&this.xh(!0)}},Fs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&rr.prototype.Fs.call(this,t,i,s)}});ar(function(t,i){return new br(t,i)},i.R);var wr=Qs(rr,{$init:function(i,s){this.mu=16,rr.prototype.$init.call(this,i,s);var e=this;t(this.node).on(ne,function(t){e.filterEvent(t)||(e.Xs(t),e.$o=!0,setTimeout(function(){e.$o&&(e.Fs(!1,!0)&&e.Vs.flags(e.Vs.flags()|T),delete e.$o)},0))}).on(re,function(t){e.filterEvent(t)||e.Xs(t),e.$o&&delete e.$o,e.Vs.flags(e.Vs.flags()&~T)})},Th:function(){this.on("ap-rollover",function(t){this.Fs(!1,!0)&&this.Vs.flags(this.Vs.flags()|k)}).on("ap-rollout",function(){this.$o&&delete this.$o,this.Vs.flags(this.Vs.flags()&~(k|T))})},textMargin:function(t,i,s,e){if(!arguments.length){var r=rr.prototype.textMargin.call(this);if(this.isShowToggleButton()){var n=this.mu+ss(2*Ki(7,this.mu/4));if(r[0]+=n,this.Yh){var a=this.textContainer?this.textContainer.style:null;a&&(a.paddingTop=r[1]+"px",a.paddingBottom=r[3]+"px"),this.node.clientHeight<n&&(r[1]+=(n-this.node.clientHeight)/2,r[3]+=(n-this.node.clientHeight)/2)}}return r}return rr.prototype.textMargin.call(this,t,i,s,e)},isShowToggleButton:function(){var t=this.Vs,i=t.ne[t.Ve];return i.tg&&!!i.tg[6]},check:function(t){return arguments.length||(t=!0),this.gu(t,!1),this},gu:function(t,i){var s=this.Vs.flags(),e=!1;this.checked()!==t&&(e=!0,t?s|=C:s&=~C),this.Vs.flags(s),i&&e&&this.bu(t)},bu:function(i){t(this).triggerHandler(i?"ap-check":"ap-uncheck")},checked:function(){return(this.Vs.flags()&C)===C},Ua: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.gu(!1,!1),this)},setIconSize:function(t){this.mu!==t&&(this.mu=t,this.textContainer&&this.Da())},value:function(t){return arguments.length?(this.gu(t,!1),this):this.checked()},Fs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&rr.prototype.Fs.call(this,t,i,s)}}),_r=Qs(wr,{$init:function(i,s){wr.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 pe.SPACE:i=e;break;case pe.TAB:var s=e.node.tabIndex;if(void 0===s||-1==s)break;var r=t.shiftKey?e.wu():e._u();r&&(r.kh(s),e.kh(-2),t.stopPropagation(),t.preventDefault(),r.Fs(!1,!0)&&r.node.focus())}i&&(t.stopPropagation(),t.preventDefault(),i.Fs(!1,!0)&&(i.gu(!i.checked(),!0),i!==e&&i.node.focus()))})},Th:function(){wr.prototype.Th.call(this),this.on("ap-click",function(){this.Fs(!1,!0)&&this.gu(!this.checked(),!0)})},bu:function(t){wr.prototype.bu.call(this,t),fe(this,"ap-change")},_u:function(){var t=null,i=null,s=!1;if(this.parent&&!(this.parent instanceof nn)){var e=void 0,r=this.parent.savedData();r&&r.s&&(e=r.s);var n,a,h,o=this.parent.children;for(n=0,a=o.length;n<a;++n)if((h=e?o[e.indexOf(n)]:o[n])instanceof _r){if(!h.disabled()&&(i||(i=h),s)){t=h;break}h===this&&(s=!0)}}return t},wu:function(){var t=null,i=null,s=!1;if(this.parent&&!(this.parent instanceof nn)){var e=void 0,r=this.parent.savedData();r&&r.s&&(e=r.s);var n,a,h=this.parent.children;for(n=h.length-1;n>=0;--n)if((a=e?h[e.indexOf(n)]:h[n])instanceof _r){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t}});ar(function(t,i){return new _r(t,i)},i.D);var yr=Qs(wr,{$init:function(i,s){wr.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 pe.SPACE:i=e;break;case pe.LEFT:case pe.UP:i=e.yu();break;case pe.RIGHT:case pe.DOWN:i=e.Tu()}i&&(t.stopPropagation(),t.preventDefault(),!i.checked()&&i.Fs(!1,!0)&&(i.gu(!0,!0),i!==e&&i.node.focus()))})},Th:function(){wr.prototype.Th.call(this),this.on("ap-click",function(){this.Fs(!1,!0)&&!this.checked()&&this.gu(!0,!0)})},radioGroup:function(t){return arguments.length?(this.Ph=t,this):this.Ph},gu:function(t,i){if(t&&this.parent&&!(this.parent instanceof nn)){var s,e,r,n=this.Ph,a=this.parent.children;for(s=0,e=a.length;s<e;++s)(r=a[s])!==this&&r instanceof yr&&r.Ph===n&&r.gu(!1,i)}wr.prototype.gu.call(this,t,i),t&&this.parent&&-1===this.node.tabIndex&&this.parent.updateTabIndexGR(this)},bu:function(t){wr.prototype.bu.call(this,t),t&&fe(this,"ap-change")},yu:function(){var t=null,i=null,s=!1;if(this.parent&&!(this.parent instanceof nn)){var e=void 0,r=this.parent.savedData();r&&r.s&&(e=r.s);var n,a,h=this.parent.children;for(n=h.length-1;n>=0;--n)if((a=e?h[e.indexOf(n)]:h[n])instanceof yr&&a.Ph===this.Ph){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t||i===this||(t=i),t},Tu:function(){var t=null,i=null,s=!1;if(this.parent&&!(this.parent instanceof nn)){var e=void 0,r=this.parent.savedData();r&&r.s&&(e=r.s);var n,a,h,o=this.parent.children;for(n=0,a=o.length;n<a;++n)if((h=e?o[e.indexOf(n)]:o[n])instanceof yr&&h.Ph===this.Ph){if(!h.disabled()&&(i||(i=h),s)){t=h;break}h===this&&(s=!0)}}return t||i===this||(t=i),t}});ar(function(t,i){return new yr(t,i)},i.Y);var Tr=Qs(rr,{$init:function(t,i){rr.prototype.$init.call(this,t,i)},textMargin:function(i,s,e,r){if(!arguments.length){var n=parseFloat(t(this.textNode).css("font-size"))||8,a=$i(Ki(8,n),64),h=rr.prototype.textMargin.call(this),o=a+ss(2*Ki(6,a/4));if(h[0]+=o,this.Yh){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 rr.prototype.textMargin.call(this,i,s,e,r)}});function kr(){return arguments.length?this:""}ar(function(t,i){return new Tr(t,i)},i.et);var xr=Qs(rr,{$init:function(s,e){rr.prototype.$init.call(this,s,e);var r=this.node.style;if((!this.Sh||r.overflow.indexOf("auto")<0)&&(this.node.style.pointerEvents="none"),e.k==i.rt){var n=this;t(this.node).on("mousedown mouseup",function(t){n.filterEvent(t)||n.Xs(t)})}},filterEvent:function(t){if(("mouseover"==t.type||"mouseout"==t.type)&&rr.prototype.filterEvent.call(this,t))return!0;var i=this.ha(t.target);return!i||rr.prototype.filterEvent.call(i,t)},html:kr});function Cr(t,i){var s,e,r=i.Vs.Ba(t.Vs.at());if(r||(r=i.Vs.Ba(0)),r){var n=Je(t);t.Za(r[0],r[1],r[2]),s=t.node.offsetLeft||0,e=t.node.offsetTop||0,(r=t.Vs.Ba(t.Vs.at()))&&(t.Za(r[0],r[1],r[2]),s-=t.node.offsetLeft||0,e-=t.node.offsetTop||0,t.translate(s,e)),tr(n)}}var Sr=Qs(xr,{$init:function(e,r){xr.prototype.$init.call(this,e,r),this.ku=this.ne.t;var n,a,h,o=this.children,u=this.ne.e||{};u.v;if((this.ne.e&&this.ne.e.f&Nt||this.ku==s.yt)&&(this.xu=!0,this.Cu(),this.ku!=s.yt&&this.kh(this.ne.ti)),this.ku===s.kt){var c=0;for(n=0,a=o.length;n<a;++n)(h=o[n]).radioGroup?h.radioGroup(c):++c}else if(this.ku===s.yt){var f=this,l={start:function(i,s){var e=this.rlControl,r=this.style;if(!e||!e.Fs(!1,!0)||e.prez()&&e.prez().ended)return!1;if(e.Su=e.sequentialOrder,e.parent&&e.parent.Sh){e.mh=getTransformationMatrix(this.parentNode).inverse(),e.gh=e.mh.transformPoint({x:s.originalPosition.left,y:s.originalPosition.top}),e.gh.x+=s.originalPosition.left-(parseFloat(this.offsetLeft)||0),e.gh.y+=s.originalPosition.top-(parseFloat(this.offsetTop)||0);var n=e.textContainer,a=n.style;Qe.dragEffect(e,!0);var h=us.createElement("div"),o=n.cloneNode(!0);(l=h.style).position="relative",["flexGrow","flexShrink","width","height","alignSelf","margin","order"].forEach(function(t){l[t]=r[t]}),o.style.visibility="hidden",h.appendChild(o),e.Ou={position:r.position,width:r.width,height:r.height,left:r.left,top:r.top};var u=f.prez().Zr(),c=e.node.getBoundingClientRect();r.width=c.width/u+"px",r.height=c.height/u+"px",r.position="absolute",e.Eu={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.Iu=h,e.hasStateFlag(S)&&e.Vs.flags(S),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))}else{e.vh={left:r.left,right:r.right,top:r.top,bottom:r.bottom},e.mh=getTransformationMatrix(this.parentNode).inverse(),e.gh=e.mh.transformPoint({x:s.originalPosition.left,y:s.originalPosition.top}),e.gh.x+=s.originalPosition.left-(parseFloat(t(this).css("left"))||0),e.gh.y+=s.originalPosition.top-(parseFloat(t(this).css("top"))||0),Qe.dragEffect(e,!0);var l;h=us.createElement("div");(l=h.style).position="absolute",["left","right","top","bottom","width","height",Ls].forEach(function(t){l[t]=r[t]}),t(h).addClass("ap-ctrl-drop-placeholder"),this.parentNode.appendChild(h),e.Iu=h,e.hasStateFlag(S)&&e.Vs.flags(S),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))}},stop:function(i,s){var e=this.rlControl;if(e)if(Qe.dragEffect(e,!1),e.parent&&e.parent.Sh){var r,n=e.node.style,a=e.textContainer.style,h=e.Ou,o=e.Eu;n.order=e.sequentialOrder;for(r in h)n[r]=h[r];for(r in o)a[r]=o[r];delete e.Ou,delete e.Eu,(u=e.Iu)&&u.parentNode&&u.parentNode.removeChild(u),delete e.Iu,e.hasStateFlag(O)&&e.Vs.flags(O),delete this.Pu,delete this.Ru,delete this.Mu,t(e).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),e.sequentialOrder!=e.Su&&fe(e,"ap-change")}else{var u;Cr(e,e.parent.children[e.sequentialOrder]),(u=e.Iu)&&u.parentNode&&u.parentNode.removeChild(u),delete e.Iu,e.hasStateFlag(O)&&e.Vs.flags(O),t(e).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),e.sequentialOrder!=e.Su&&fe(e,"ap-change")}},drag:function(t,i){var s,e,r,n=this.rlControl;if(n)if(s=n.mh.transformPoint({x:i.position.left,y:i.position.top}),i.position.left=i.originalPosition.left+s.x-n.gh.x,i.position.top=i.originalPosition.top+s.y-n.gh.y,n.parent&&n.parent.Sh)for(e=this.style.zIndex,this.style.zIndex=-1,r=us.elementFromPoint(t.clientX,t.clientY),this.style.zIndex=e;r&&r!==us.documentElement;){if(r.rlControl){var a=!0;if(r&&r.rlControl){a=this.Pu!==r.rlControl;var h=i.position.top;if(a)this.Pu=r.rlControl,delete this.Ru;else if(void 0===this.Mu)a=!0;else if(void 0===this.Ru)h!=this.Mu&&(this.Ru=h>this.Mu);else{var o=h>this.Mu;o!=this.Ru&&h!=this.Mu&&(this.Ru=o,a=!0)}this.Mu=h}if(a&&r.rlControl!==n&&n.parent){var u=n.sequentialOrder,c=r.rlControl.sequentialOrder,f=n.parent.children;for(n.Iu.style.order=r.style.order,l=0,d=f.length;l<d;++l)(p=f[l])===n?p.sequentialOrder=c:((v=p.sequentialOrder)>u&&--v,v>=c&&++v,v!==p.sequentialOrder&&(p.sequentialOrder=v,p.node.style.order=v))}break}(r=r.parentNode)&&r!==us.documentElement||delete this.Pu}else for(e=this.style.zIndex,this.style.zIndex=-1,r=us.elementFromPoint(t.clientX,t.clientY),this.style.zIndex=e;r&&r!==us.documentElement;){if(r.rlControl){if(r.rlControl!==n&&n.parent){u=n.sequentialOrder,c=r.rlControl.sequentialOrder,f=n.parent.children;var l,d,p,v,m=n.Iu.style,g=r.style;for(["left","right","top","bottom",Ls].forEach(function(t){m[t]=g[t]}),l=0,d=f.length;l<d;++l)(p=f[l])===n?p.sequentialOrder=c:((v=p.sequentialOrder)>u&&--v,v>=c&&++v,v!==p.sequentialOrder&&(p.sequentialOrder=v,Cr(p,f[v])))}break}r=r.parentNode}}};for(n=0,a=o.length;n<a;++n)(h=o[n]).node.rlControl=h,t(h.node).on("mousedown mouseup",function(t){this.rlControl&&this.rlControl.filterEvent(t)||this.rlControl.Xs(t)}).css("touchAction","none").draggable(l),xe(h.node)}this.ku===s.gt&&this.node.setAttribute("role","radiogroup"),this.ku===s.kt&&this.kh(this.ne.ti),this.ne.k===i.B&&(this.Nu=!1,u.h&&(this.Nu=1==u.h,this.Nu&&u.tl&&(this.Au=u.tl)),this.Du=new Nr(this))},onResized:function(t,i){rr.prototype.onResized.call(this,t,i),this.xu&&this.shuffleAnswers(null,!0),this.Hh()},onLayoutSwitched:function(){rr.prototype.onLayoutSwitched.call(this),this.xu&&this.shuffleAnswers(null,!0),this.Hh()},kh:function(t){if(!isNaN(t)){var i=this.ne.t;if(i!=s.yt&&i!=s.Tt){var e=this.savedData(),r=void 0;e&&e.s&&(r=e.s);var n,a,h,o=this.children,u=-1,c=[];for(n=0,a=o.length;n<a;++n)r?(h=o[r.indexOf(n)]).kh(h.ne.ti):h=o[n],h instanceof yr?(u=h.Ph,c.indexOf(u)<0?(t>=0&&h.kh(t),c.push(u)):h.kh(-2)):h instanceof gr?h.kh(t):h instanceof _r&&(r&&t>=0?0==n?h.kh(t):h.kh(-2):h.kh(t))}else rr.prototype.kh.call(this,t)}},Cu:function(){var t,i=this.savedData();if(i&&i.s)return i.s;switch(this.ku){case s.wt:case s.gt:case s.bt:case s.yt:t=_s(this.children.length);break;case s.Tt:var e,r,a=this.children,h=0;for(e=0,r=a.length;e<r;++e)a[e].ne.f&n&&++h;t=_s(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.Cu()))return this;if(this.xu=!0,this._h||this.yh){var e,r,a=this.children;switch(this.ku){case s.wt:case s.gt:case s.bt:for(e=0,r=a.length;e<r;++e)this.Sh?a[e].node.style.order=t[e]:Cr(a[e],a[t[e]]);break;case s.yt:for(e=0,r=a.length;e<r;++e)i&&void 0!==a[e].sequentialOrder||(a[e].sequentialOrder=t[e]),this.Sh?a[e].node.style.order=a[e].sequentialOrder:Cr(a[e],a[a[e].sequentialOrder]);break;case s.Tt:var h,o=[];for(e=0,r=a.length;e<r;++e)(h=a[e]).ne.f&n&&o.push(h);for(e=0,r=$i(o.length,t.length);e<r;++e)i&&o[e].dropTarget||(this.Sh?o[e].node.style.order=t[e]:Cr(o[e],o[t[e]]))}return this}},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,e,r,h,o,u,c,f,l,d,p,v,m,g,b=this.children,w=this.ne.e||{},_=w.f,T=(_&It)===It,k=(_&Mt)!==Mt,x=T&&k,C=x&&(_&Rt)===Rt,S=0,O=!1,E=!1;if(this.ne.k==i.B){for(u=w.v||[],c=[],f={},t=0,e=b.length;t<e;++t)o=b[t],this.Du&&this.Du.isAnswerSelected(o.id())&&(c.push(o),T&&(!O&&u.indexOf(o.id())<0&&(O=!0),C&&(S+=o.ne.e.m)));this.Du&&this.Du.getSavedAnswers(f),E=!this.Du.isAnswered()&&(!T||u.length>0),T&&!O&&(O=!this.Du.hasIncorrectAnswer(u)),O&&C&&this.Nu&&(S=0),!T||O||E||this.Nu&&u.length!==c.length&&(O=!0)}else switch(this.ku){case s.gt:case s.wt:case s.bt:for(u=w.v||[],c=[],f=[],l=[],t=0,e=b.length;t<e;++t)(o=b[t]).checked&&o.checked()&&(c.push(o),f.push(o.id()),T&&(!O&&u.indexOf(o.id())<0&&(O=!0),C&&(S+=o.ne.e.m))),((this.ku===s.gt||this.ku===s.wt)&&o instanceof yr||this.ku===s.bt&&o instanceof _r)&&l.push({reportId:o.ne.r,text:o.text()});E=0===c.length&&(!T||u.length>0),O&&C&&this.ku===s.bt&&(S=0),!T||O||E||u.length===c.length||(O=!0);break;case s._t:var I,M,N,A,D;for(c=[],f={},t=0,e=b.length;t<e;++t)if((o=b[t])instanceof gr)if(c.push(o),N=o.value(),f[o.id()]=N,I=o.ne.e||{},D=!o.caseSensitive(),T){for(D&&(N=N.toUpperCase()),M=-1,r=0,h=(u=I.v||[""]).length;r<h;++r)if(A=u[r],D&&(A=A.toUpperCase()),N===A){M=r;break}!O&&M<0&&N&&(O=!0),!E&&M<0&&!N&&(E=!0),C&&M>=0&&I.m&&(I.f&Rt?S+=I.m[M]||0:S+=I.m)}else E||N||(E=!0);break;case s.xt:var Y,X,L;for(c=[],f={},l=[],t=0,e=b.length;t<e;++t)if((o=b[t])instanceof fr){c.push(o),L=o.value(),f[o.id()]=L,Y=o.ne.e||{};var F=[];if(o.ne.it)for(r=0;r<o.ne.it.length;++r)F.push({id:r,text:o.ne.it[r]});if(l.push({reportId:o.ne.r,text:o.text(),children:F}),T){for(X=-1,r=0,h=(u=Y.v||[]).length;r<h;++r)if(L===u[r]){X=r;break}!O&&X<0&&void 0!==L&&(O=!0),!E&&X<0&&void 0===L&&(E=!0),C&&X>=0&&Y.m&&(Y.f&Rt?S+=Y.m[X]||0:S+=Y.m)}else E||void 0!==L||(E=!0)}break;case s.yt:for(C=!1,(c=b.slice()).sort(function(t,i){return t.sequentialOrder-i.sequentialOrder}),l=[],f=[],t=0,e=c.length;t<e;++t)f.push(c[t].id()),l.push({reportId:c[t].ne.r,text:c[t].text()});if(T&&!O)for(t=0,e=b.length;t<e;++t)if(b[t].sequentialOrder!==t){O=!0;break}break;case s.Tt:var H,U,B,Z,z,G,V,W=[],$=[];for(c=[],f={},d=[],p=[],t=0,e=b.length;t<e;++t)if((o=b[t]).ne.f&a?d.push({reportId:o.ne.r,text:o.text()}):o.ne.f&n&&p.push({reportId:o.ne.r,text:o.text()}),o.dropHelper){u=(G=o.ne.e||{}).v||[],c.push(o),f[o.id()]=B=[],(Z=o.dropHelper.absolutePosition())&&(m||(m={}),m[o.id()]=V=[]);var K=!1;for(r=0,h=(H=o.dropHelper.droppedObjects()).length;r<h;++r)U=H[r],B.push(U.id()),Z&&(U.sh?V.push([U.sh.x,U.sh.y]):V.push([0,0])),$.push(U.id()),T&&(z=u.indexOf(U.id()),!O&&z<0&&(O=!0,K=!1),z>=0&&!K&&(K=!0),C&&z>=0&&G.m&&(S+=G.m[z]||0));var j=K?P:R;for(T&&o.hasStateFlag(j)&&(o.Vs.flags(j),o.savedCurrentState()),r=0,h=H.length;r<h;++r)if(U=H[r],$.push(U.id()),T){var Q=u.indexOf(U.id()),q=y;q=Q<0?R:P,U.hasStateFlag(q)&&(U.Vs.flags(q),U.savedCurrentState())}if(T&&!O&&B.length!==u.length)for(r=0,h=u.length;r<h;++r)B.indexOf(u[r])<0&&W.push(u[r])}if(T&&!O)for(t=0,e=W.length;t<e;++t)if($.indexOf(W[t])<0){O=!0;break}$.length||T&&!W.length||(E=!0);break;case s.kt:c=[],f=[];var J,tt=0;t=0,e=b.length,v=[];for(var it,st,et,rt=[];t<e;)(o=b[t]).ne.t===s.ut&&(it=o.text()),o.ne.t===s.dt&&rt.push(o.text()),o.radioGroup&&(o.Ph!==tt?(tt=o.Ph,void 0!==J&&(c.push(J),f.push(J?J.id():0)),J=o.checked()?o:null,v.push({text:it||v.length+1+"",scales:[]})):o.checked()&&(J=o),et=v[v.length-1].scales,rt.length>=et.length&&(st=rt[et.length]),st||(st=et.length+1+""),et.push({reportId:et.length+1,text:st})),++t;void 0!==J&&(c.push(J),f.push(J?J.id():0)),E=c.indexOf(null)>=0;break;default:return this}g=E?Xt.$i:O?Xt.Wi:T?Xt.Vi:Xt.Gi,x&&!C&&g===Xt.Vi&&(S=w.m||0);var nt={choices:l,targets:d,sources:p,scales:v};return this.vo(this.savedData(!0),g,f,x?S:void 0,!k,c,m,nt),this},clear:function(t,e){return this.prez()&&this.prez().ended&&!e?this:(this.ku===s.yt&&this.shuffleAnswers(),this.ne.k===i.B&&this.Du.clear(),rr.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 rr.prototype.disable.call(this,t)},restore:function(t){if(!t&&!(t=this.savedData()))return rr.prototype.restore.call(this,t),this.clear(void 0,!0);void 0!==t.a&&this.po(t.a),!t.s||this.ku===rr.yt&&t.v||this.shuffleAnswers(t.s);var e,r,n,a=t.v,h=this.children;switch(this.ku){case s.wt:case s.gt:case s.bt:case s.kt:for(a||(a=[]),e=0,r=h.length;e<r;++e)(n=h[e]).check&&n.check(a.indexOf(n.id())>=0);break;case s._t:for(a||(a={}),e=0,r=h.length;e<r;++e)(n=h[e])instanceof gr&&n.value(a[n.id()]||"");break;case s.xt:for(a||(a={}),e=0,r=h.length;e<r;++e)(n=h[e])instanceof fr&&n.value(a[n.id()]||"");break;case s.yt:var o;if(a&&a.length)for(e=0,r=h.length;e<r;++e)n=h[e],(o=a.indexOf(n.ne.i))>=0&&(n.sequentialOrder=o,this.Sh?n.node.style.order=o:Cr(n,h[o]));break;case s.Tt:var u,c,f,l,d,p,v=t.d||{};for(e=0,r=h.length;e<r;++e)if((n=h[e]).restore(),n.dropHelper)for(u=a&&a[n.id()]||[],f=v[n.id()]||[],n.dropHelper.clear(),d=0,p=u.length;d<p;++d)(c=this.slide.object(u[d]))&&(l=f[d],n.dropHelper.drop(c,{x:l?l[0]:0,y:l?l[1]:0},!1))}if(this.ne.k==i.B)for(this.Du.restoreSavedAnswers(a),e=0,r=h.length;e<r;++e)(n=h[e]).restore();return this},cleanup:function(){if(this.ku===s.yt){var i,e,r,n=this.children;for(i=0,e=n.length;i<e;++i)(r=n[i]).node.rlControl&&(t(r.node).draggable("destroy"),delete r.node.rlControl),r.Iu&&r.Iu.parentNode&&r.Iu.parentNode.removeChild(r.Iu)}return rr.prototype.cleanup.call(this)},re:function(t){t=t||{};var e=this.ne.e||{},r=((e.f||0)&It)===It,n=this.savedData();if(r){switch(this.ku){case s.wt:case s.gt:case s.bt:var a=[];n&&(a=n.v||[]);for(var h=e.v||[],o=0;o<this.children.length;++o){var u=(O=this.children[o]).id();if(rr.prototype.bo.call(O),t.showCorrect)if(h.indexOf(u)>=0)(g=this.Ao(!0,"middle-left"))&&(O.node.appendChild(g),O._o=g);if(t.showIncorrect)if(a.indexOf(u)>=0&&h.indexOf(u)<0)(g=this.Ao(!1,"middle-left"))&&(O.node.appendChild(g),O.yo=g)}break;case s._t:a={};n&&(a=n.v||{});for(o=0;o<this.children.length;++o){if((O=this.children[o])instanceof gr){h=(O.ne.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),rr.prototype.bo.call(O),null!==b||t.showValues)(C=O.Eo(this,b,{correctAnswers:h,options:t})).checkMark&&(O._o=C.checkMark),C.popup&&(O.To=C.popup)}}break;case s.xt:a={};n&&(a=n.v||{});for(o=0;o<this.children.length;++o){if((O=this.children[o])instanceof fr){h=(O.ne.e||{}).v||[],f=a[O.id()];if(((b=h.indexOf(f)>=0)&&!t.showCorrect||!b&&!t.showIncorrect)&&(b=null),rr.prototype.bo.call(O),null!==b||t.showValues)(C=O.Eo(this,b,{correctAnswers:h,options:t})).checkMark&&(O._o=C.checkMark),C.popup&&(O.To=C.popup)}}break;case s.yt: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=n.v||m,o=0;o<p.length;o++){var g,b=(f=a[o])===(O=p[o]).id();if(rr.prototype.bo.call(O),b&&t.showCorrect||!b&&t.showIncorrect)(g=this.Oo(b,(o+1).toString(),"middle-left-inner"))&&(O.node.appendChild(g),b?O._o=g:O.yo=g)}break;case s.Tt:rr.prototype.bo.call(this);for(var w={},_=(o=0,this.children.length);o<_;++o){if((O=this.children[o]).dropHelper&&O.ne.e&&O.ne.e.v)for(h=O.ne.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.ne.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.Eo(this,S?null:b,{yourAnswerCtrls:T,correctAnswerCtrls:k,options:t},"middle-center")).checkMark&&(O._o=C.checkMark),C.popup&&(O.To=C.popup)}}}}if(this.ne.k==i.B){for(h=e.v||[],o=0;o<this.children.length;++o){var O;(O=this.children[o])instanceof pr&&O.xh(!!(t.showValues&&h.indexOf(O.id())>=0))}var E=this.Du.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.Du.Yu,P.color(I)}}if(rr.prototype.bo.call(this.slide),t.showResult){var M=Xt.$i;n&&void 0!==n.r&&(M=n.r);var N=this.So(M,this.slide.prez().responseResultString(M));N&&(this.slide.node.appendChild(N),this.slide.ko=N)}}},Fs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&rr.prototype.Fs.call(this,t,i,s)},Bs:function(t){return this.ne.k==i.B&&"ap-click"==t},filterEvent:function(t){return this.ne.k!=i.B||"mousedown"!=t.type&&"mouseup"!=t.type?xr.prototype.filterEvent.call(this,t):!this.ha(t.target)}});ar(function(t,s){return s.k==i.L&&s.t||s.k==i.B?new Sr(t,s):new xr(t,s)},i.L,i.F,i.B,i.rt);var Or=Qs(ir,{$init:function(t,i){i.ne.isFeedback?this.node=t.ui.feedbackSlides()[0]:this.node=t.ui.slides()[0],this.slide=i}});ar(function(t,i){return new Or(t,i)},i.q);var Er=Qs(rr,{$init:function(t,i){rr.prototype.$init.call(this,t,i)},createNode:function(){var t=rr.prototype.createNode.call(this),i=us.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},Fa:function(){var t,i,s,e,r=this.shape,n=this.imageNode.style;if(r&&r.Gs){if(t=r.Xu().fill,(s=us.createElementNS(Bi,"path")).setAttribute("d",t),(i=us.createElementNS(Bi,"svg")).appendChild(s),i.style.visibility="hidden",this.node.appendChild(i),e=fn(s),this.node.removeChild(i),n.clipPath='path("'+t+'")',n.left=e.x+"px",n.top=e.y+"px",n.width=e.width+"px",n.height=e.height+"px",this.shape&&this.shape.Lu&&this.yh&&e.height>this.yh&&(n.top=-e.y+this.yh-e.height+"px"),this.shape&&this.shape.Fu&&this._h&&e.width>this._h&&(n.left=-e.x+this._h-e.width+"px"),0!=e.x||0!=e.y){var a=an[r.Gs],h=r.container.clientWidth,o=r.container.clientHeight,u=new hn;a&&a[0]&&(a[0].apply(u,[-e.x,-e.y,h,o].concat(r.Wo)),n.clipPath='path("'+u.path()+'")')}}else r&&(n.clipPath="")},onResized:function(t,i){rr.prototype.onResized.call(this,t,i),this.Fa()},Ra:function(t,i,s){this.imageNode.src=this.prez().getResource(t,i),s?this.imageNode.setAttribute("alt",s):this.imageNode.removeAttribute("alt"),this.shape.Hu(t,i)},html:kr,flip:function(t,i){return Ps(this.imageNode,t,i),rr.prototype.flip.call(this,t,i)}});function Ir(i,s,e){function r(){var r=50+s;r=""==i.value?50+s:t(i).apInputTagAutoWidth()+s,r+="px";var n=i.style.width!=r;t(i).css({width:r}),n&&e&&e()}s=s||0;var n="keyup,keypress,focus,blur,change".split(",");for(var a in n)i.addEventListener(n[a],r,!1);r()}ar(function(t,i){return new Er(t,i)},i._),t.fn.apInputTagAutoWidth=function(){t.fn.apInputTagAutoWidth.fakeEl||(t.fn.apInputTagAutoWidth.fakeEl=t("<span>").hide().appendTo(us.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 Pr=Qs(rr,{$init:function(i,s){rr.prototype.$init.call(this,i,s),this.Jh();var e=this;if(t(this.node).on("mousedown mouseup",function(t){e.filterEvent(t)||e.Xs(t)}),this.Uu=[],this.Bu=[],this.textNode){this.Uu=t(this.textNode).find("input");for(var r=0,n=this.Uu.length;r<n;++r){var a=this.Uu[r];this.Bu.push(a.parentNode),a.spellcheck=!1,t(a).on("focus",function(t){e.Fs(!1,!0)||t.preventDefault()}).on("blur",function(t){e.Fs(!1,!0)||t.preventDefault()}).on("mousedown",function(t){e.Fs(!1,!0)||t.preventDefault()}),Ir(a,void 0,function(){e.La&&e.La()})}t(this.textNode).on("change",function(){e.Fs(!1,!0)&&fe(e,"ap-change")})}this.kh(s.ti)},kh:function(t){if(!isNaN(t))if(this.Jh(),-2==t)this.textNode.tabIndex=-1;else if(-1==t)this.textNode.removeAttribute("tabIndex");else if(this.Uu&&this.Uu.length>0)for(var i=0,s=this.Uu.length;i<s;++i){this.Uu[i].tabIndex=t}},allInputValues:function(t){var i=[];if(this.Uu&&0!=this.Uu.length&&t)for(var s=0,e=this.Uu.length;s<e;++s){var r=this.Uu[s];arguments.length||i.push(r&&r.value||""),r||this.Jh();var n=t[s]?t[s]+"":"";r.value=n}else for(s=0,e=this.Uu.length;s<e;++s){r=this.Uu[s];arguments.length||i.push(r&&r.value||""),r||this.Jh(),r.value=""}return arguments.length?(this.Zu(),this):i},qh:function(){return rr.prototype.qh.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 rr.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.po(t.a),this.allInputValues(t&&t.v||{})},Ua:function(t,i){if(this.Uu){var s,e=(i&x)==x,r=this.Uu.length;for(s=0;s<r;++s)this.Uu[s].disabled=e}},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,i,s,e,r,n,a,h,o,u,c,f,l,d,p=this.Uu,v=this.ne.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(r=p[t],a.push(r),c=r.value,h[t]=c,g){if(!(o=x[t]))continue;for((l=!o.c)&&(c=c.toUpperCase()),u=-1,s=0,e=(n=o.v||[""]).length;s<e;++s)if(f=n[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.$i:T?Xt.Wi:g?Xt.Vi:Xt.Gi,w&&!_&&d===Xt.Vi&&(y=v.m||0),this.vo(this.savedData(!0),d,h,w?y:void 0,!b,a,void 0),this},re:function(t){t=t||{};var i=this.ne.e||{},s=((i.f||0)&It)===It,e=this.savedData();if(s){var r={};e&&(r=e.v||{});for(var n=[],a=i.v||[],h=this.Uu,o=0;o<h.length;++o){_=h[o];var u=a[o],c=u.v||[""],f=!u.c,l=r[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;n.push({correct:v,arrCorrectValues:d.slice(),inputNode:_})}if(this.zu){o=0;for(var m=this.zu.length;o<m;++o){var g=this.zu[o];g&&g.parentNode&&g.parentNode.removeChild(g)}}if(this.zu=[],this.Gu)for(o=0,m=this.Gu.length;o<m;++o){var b=this.Gu[o];b&&b.parentNode&&b.parentNode.removeChild(b)}this.Gu=[];var w=0;(t.showCorrect||t.showIncorrect)&&(w=18),t.showValues&&(w+=2,w+=18);for(o=0,m=n.length;o<m;++o){var _,y=n[o];if(((v=y.correct)&&!t.showCorrect||!v&&!t.showIncorrect)&&(v=null),Ir(_=y.inputNode,w),null!==v||t.showValues){var T=this.Eo(this.node,v,{correctAnswers:y.arrCorrectValues.slice(),options:t});T.checkMark&&(this.zu.push(T.checkMark),this.Bu[o].appendChild(T.checkMark)),T.popup&&this.Gu.push(T.popup)}}if(rr.prototype.bo.call(this.slide),t.showResult){var k=Xt.$i;e&&void 0!==e.r&&(k=e.r);var x=this.So(k,this.slide.prez().responseResultString(k));x&&(this.slide.node.appendChild(x),this.slide.ko=x)}}},Fs:function(t,i,s){return(!this.prez()||!this.prez().ended)&&rr.prototype.Fs.call(this,t,i,s)},Zu:function(){for(var t=this.Uu,i=this,s=0,e=t.length;s<e;++s)Ir(t[s],void 0,function(){i.La&&i.La()})}});ar(function(t,i){return new Pr(t,i)},i.U);var Rr=Qs(rr,{$init:function(t,i){rr.prototype.$init.call(this,t,i),this.Vu=0},createNode:function(){var t=rr.prototype.createNode.call(this),i=us.createElement("div");i.style.top="50%",i.style.left="50%",i.style.width=this.ne.ge.w+"px",i.style.height=this.ne.ge.h+"px",i.style.position="absolute",i.style[Ls]="translate(-50%, -50%)";var s=us.createElement("canvas");return Is(s,{width:this.ne.ge.w,height:this.ne.ge.h}),this.Wu=s,i.appendChild(s),t.appendChild(i),t}});ar(function(t,i){return new Rr(t,i)},i.P);var Mr=Qs({$init:function(t,i,s,e,r,n){this.x=t,this.y=i,this.answerId=parseInt(s);var a=2*e,h=us.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[Ls]="translate3d("+-e+"px, "+-e+"px, 0px)",n){var u=us.createElement("div");u.className="hs-ring",h.appendChild(u)}this.node=h,this.color(r)},color:function(t){this.node.style.backgroundColor=t,this.node.firstChild&&(this.node.firstChild.style.borderColor=t)}}),Nr=Qs({$init:function(t){this.Ia=t,this.$u=[];var i=t.children[0];i&&i instanceof Er||(i=t),this.Ku=i.node;var s=t.ne;if(this.ju=s.hs[0],this.Yu=Rs(s.hs[1]),!t.prez().demoMode()){t.node.style.pointerEvents="auto";var e=this;t.on("ap-click",function(t){if(this.Fs(!1,!0)){var i=t.originalEvent,s=this.ha(i.target);if(s){var r=e.Ku,n=convertPointFromPageToNode(r,i.pageX,i.pageY);n.x=100*(n.x+r.scrollLeft)/(r.clientWidth||1),n.y=100*(n.y+r.scrollTop)/(r.clientHeight||1),n.x=n.x.toFixed(2)+"%",n.y=n.y.toFixed(2)+"%",e.addHotSpotEffect(n.x,n.y,s.id())&&fe(s,"ap-change")}}})}},clear:function(){for(var t=this.$u,i=0;i<t.length;++i)this.Ku.removeChild(t[i].node);t.length=0},addHotSpotEffect:function(i,s,e){var r=this.Ia,n=this.$u;if(r.Nu){if(n.length==r.Au)return!1}else this.clear();var a=this,h=new Mr(i,s,e,this.ju,this.Yu,!r.prez().isReviewingMode());return t(h.node).on("mousedown",function(){a.Ia.Fs(!1,!0)&&(a.removeHotSpotEffect(h),fe(a.Ia.Zh(h.answerId,!0)||a.Ia,"ap-change"))}),this.Ku.appendChild(h.node),n.push(h),!0},removeHotSpotEffect:function(t){var i=this.$u.indexOf(t);i>=0&&(this.$u.splice(i,1),this.Ku.removeChild(t.node))},getHotSpotEffects:function(){return this.$u},isAnswered:function(){return this.$u.length>0},isAnswerSelected:function(t){for(var i=this.$u,s=0;s<i.length;s++)if(i[s].answerId==t)return!0;return!1},getSavedAnswers:function(t){for(var i=this.$u,s=0;s<i.length;s++){var e=i[s],r="("+e.x+","+e.y+")";t[e.answerId]?t[e.answerId]+=","+r:t[e.answerId]=r}},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.$u,s=0;s<i.length;s++)if(t.indexOf(i[s].answerId)<0)return!1;return!0}}),Ar={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 wn.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 r=(i*i/4-e*i)/2/(Math.sqrt(e*e-s*s)-e+i/2)+e-i/2,n=(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,0,Math.asin(s/r)),t.arc(i/2-n,0,n,-2*zi+Math.asin(s/n),0,!0),t.lineTo(i,0),t.fill(),t.closePath()},drawUpRightCurveArrowPath:function(t,i,s,e){var r=(i*i/4-e*i)/2/(Math.sqrt(e*e-s*s)-e+i/2)+e-i/2,n=(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,-zi,-zi-Math.asin(s/n),!0),t.arc(r+i/2,0,r,zi-Math.asin(s/r),zi,!1),t.lineTo(i,0),t.fill(),t.closePath()},drawSingleTap:function(t,i,s,e,r,n){var a=this.LINEWIDTH,h=this.CIRCLE_RADIUS_MAX,o=r.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=n,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,r,n){var a=this.CIRCLE_RADIUS_MAX,h=r.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=n,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,r,n){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=n,t.fillStyle=n;var f=2*zi*r.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,r,n){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=n,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s+u/2-r.call(null,e)*u),this.drawUpArrowPath(t,a,h),t.setTransform(1,0,0,1,0,0)},drawSwipeDown:function(t,i,s,e,r,n){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=n,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s-u/2+r.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,r,n){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=n,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i-u/2+r.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,r,n){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=n,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i+u/2-r.call(null,e)*u,s),t.fillStyle=n,t.rotate(1.5*zi),this.drawUpArrowPath(t,a,h),t.setTransform(1,0,0,1,0,0)},drawPinchIn:function(t,i,s,e,r,n){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=n,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s);var l=-Math.sin(u)*o+h*Math.sin(u)+r.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)-r.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,r,n){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=n,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s);var l=h*Math.sin(u)+r.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)-r.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,r,n){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=n;var f=o+r.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,r,n){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+r.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=n,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,r,n){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=n,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+r.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)+r.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+r.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)-r.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)-r.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,r,n){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=n;var c=Es(110+60*r.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=Es(200+60*r.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,r,n){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=n;var c=Es(150-60*r.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=Es(60-60*r.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,r,n){switch(i){case ai:this.drawSingleTap(t,s,e,r,this.Motivate,n);break;case hi:this.drawDoubleTap(t,s,e,r,this.Motivate,n);break;case oi:this.drawHold(t,s,e,r,this.Motivate,n);break;case ui:this.drawTwoFingersTap(t,s,e,r,this.Motivate,n);break;case ci:this.drawTwoFingersDoubleTap(t,s,e,r,this.Motivate,n);break;case fi:this.drawSwipeUp(t,s,e,r,this.Motivate,n);break;case di:this.drawSwipeDown(t,s,e,r,this.Motivate,n);break;case pi:this.drawSwipeLeft(t,s,e,r,this.Motivate,n);break;case li:this.drawSwipeRight(t,s,e,r,this.Motivate,n);break;case pi:this.drawSwipeLeft(t,s,e,r,this.Motivate,n);break;case vi:this.drawRotateLeft(t,s,e,r,this.Motivate,n);break;case mi:this.drawRotateRight(t,s,e,r,this.Motivate,n);break;case gi:this.drawPinchIn(t,s,e,r,this.Motivate,n);break;case bi:this.drawPinchOut(t,s,e,r,this.Motivate,n);break;case wi:this.drawFingers(t,s,e,r,this.Motivate,n)}},renderMouseEffect:function(t,i,s,e,r,n,a){t.clearRect(0,0,2*a+4,2*a+4);var h=r*a;if(t.strokeStyle=n,t.lineWidth=2,t.lineJoin="round",t.lineCap="round",i==_i)t.beginPath(),t.arc(s,e,h,0,2*Math.PI),t.stroke();else if(i==yi)for(;h>0;)t.beginPath(),t.arc(s,e,h,0,2*Math.PI),t.stroke(),h-=9;else i==Ti&&t.strokeRect(s-h,e-h,2*h,2*h)}},Dr=Qs(Er,{$init:function(t,s){this.Qu=s;var e=2*s.hl_size,r=2*s.hl_size,n=t.defaultCtrlData();n.i=s.id,n.k=i.j,n.m=s.showMode,n.ti=-1;var a=[];if(t.ne&&t.ne.h)for(var h=0;h<t.ne.h.length;h++){var o=s.pos[h][0]-e/2,u=s.pos[h][1]-r/2,c={};c.r=[o,u,e,r],a.push(c)}n.s=[{w:a}],n.ti=-1,Er.prototype.$init.call(this,t,n),this.node.style.zIndex=qt.ns,this.node.style.pointerEvents="none",this.imageNode.style.pointerEvents="none",this.qu=ns({},ir,{node:this.imageNode,slide:this.slide})},Ju:function(){var t,i=this.slide,s=this.Qu.cursors;if(s&&s.length){(t=new Zn({startTime:0})).addChild(new Un(this,"display",{startTime:0,duration:0,tweenParams:["none","block"]}));for(var e=0;e<s.length;e++)for(var r=0;r<this.slide.ne.h.length;r++){var n=0,a=s[e].points[r].length;2==a?n=2:4==a&&(n=1);for(var h=0;h<n;h++)s[e].points[r].push(s[e].points[r][0]),s[e].points[r].push(s[e].points[r][1]);0==e&&s[e].points[r].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.Qu.hl_size-p.img.hpx,T=this.Qu.hl_size-p.img.hpy,k=this.slide.prez().getResource(p.img.id,p.img.ext);t.addChild(new Un(this.qu,"src",{startTime:o,duration:0,tweenParams:[d,k],tweenType:ti.bs})),t.addChild(new Un(this.qu,"width",{startTime:o,duration:0,tweenParams:[u,w],tweenType:ti.bs})),t.addChild(new Un(this.qu,"height",{startTime:o,duration:0,tweenParams:[c,_],tweenType:ti.bs})),t.addChild(new Un(this.qu,"left",{startTime:o,duration:0,tweenParams:[f,y],tweenType:ti.bs})),t.addChild(new Un(this.qu,"top",{startTime:o,duration:0,tweenParams:[l,T],tweenType:ti.bs})),u=w,c=_,f=y,l=T,d=k}else 0==e&&(t.addChild(new Un(this.qu,"width",{startTime:o,duration:0,tweenParams:[0,0],tweenType:ti.bs})),t.addChild(new Un(this.qu,"height",{startTime:o,duration:0,tweenParams:[0,0],tweenType:ti.bs})));var x=this.slide.prez().layoutIndex;if(void 0!=p.click&&(void 0!==p.sound||p.click_eff)&&function(t,s,e){i.je.addChild(new Hn(function(){var r=i.prez();void 0!==t.sound&&r.Js(t.sound,t.sdur,t,!0),t.click_eff&&r.Ta(s,e,t.click_eff.r,t.click_eff.type,Rs(t.click_eff.color),1e3)},{startTime:o+p.click}))}(p,this.Qu.pos[x][0]+p.points[x][0],this.Qu.pos[x][1]+p.points[x][1]),v){var C=[];for(r=0;r<p.points.length;r++){var S=p.points[r],O=v.points[r];C.push([S,O])}t.addChild(new Un(this,"position",{startTime:o+m,duration:b,tweenParams:[C[x]],tweenType:ti.ws,easing:wn.inOutQuad}))}m>=0?o+=m+g+b:o=-1}o>0&&t.addChild(new Un(this,"display",{startTime:o,duration:0,tweenParams:["block","none"]}))}return t}});ar(function(t,i){return new Dr(t,i)},i.j);var Yr=Qs({$init:function(t){this.fe=t,this.fe.cr.Xe(this)},Vs:function(t){},tc:function(t){},ic:function(){},sc:function(){},ec: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.fe.cr.Le(this)},Be:function(){}}),Xr=Qs({$init:function(i,s){var e=s.nativePlayer(),r=i.ui;this.rc=r,this.Dn=s,this.nc=e,this.fe=i,this.ac="video"==e.nodeName.toLowerCase();var n=r.hc,a=r.pe;this.oc="",this.ac?this.oc=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">'+n.pause+n.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>'+n.ccshow+n.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>'+n.sound+n.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>'+n.fullscreen+n.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.oc=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")+'">'+n.pause+n.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>'+n.sound+n.mute+"</div> \t\t\t\t\t </div>")[0],this.uc=t(".ap-media-toolbar-bottom",this.oc),this.fc=t(".ap-media-play",this.oc),this.lc=t(".ap-media-mute",this.oc),this.dc=t(".ap-media-cc-btn",this.oc),this.pc=t(".ap-media-cc-menu",this.oc),this.vc=t(".ap-media-fullscreen",this.oc),this.mc=t(".ap-media-progressbar",this.oc),this.gc=t(".ap-media-play-progress",this.oc),this.bc=t(".ap-media-progress-grabber",this.oc),this.wc=t(".ap-media-time-label",this.oc),this.ac&&(js.fullscreenEnabled()||js.isElementSupportFullscreen(e))||this.vc.hide(),this._c=!0,this.yc=!1,this.mute(e.muted),this.pause(e.paused||e.ended),this.Tc(),this.updateFullScreenButton(!1,this.shouldDisableFullScreen())},Tc:function(){var i=this,s=this.oc,e=this.Dn,r=this.nc,n=this.lc,a=this.dc,h=this.vc,o=this.mc,u=this.bc,c=this.fc,f=this.fe;this.ac?(s.onmouseover=function(){i.show(!0,!0)},s.onmousemove=function(){i.show(!0,!0)},s.onmouseleave=function(){i.show(!1)},[c,n,a,h,o].forEach(function(s){s.on("mouseover",function(){i.yc=!0}).on("mouseleave",function(){i.yc=!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,n,o].forEach(function(i){i.on("focus",function(){f&&f.highlightFocus()&&t(this).addClass("ap-focused")}).on("blur",function(){t(this).removeClass("ap-focused")})}),r.onpause=function(){i.pause(!0),i.show(!0),i.update()},r.onended=function(){this.paused||this.pause()},r.onplay=function(){i.pause(!1)},c.on("mousedown",function(){r.paused||r.ended?e.play():e.pause()}),a&&a.on("mousedown",function(){e.kc(),i.showCCMenu()}),r.onvolumechange=function(){i.mute(r.muted)},n.on("mousedown",function(){r.muted=!r.muted}),h.on("click",function(s){"true"!==t(this).attr("aria-disabled")&&i.fullscreen()});var l=function(){return js.fullscreenElement()==s.parentNode||r.webkitDisplayingFullscreen};o.on("mousedown",function(e){var n=l()?1:i.rc.Zr,a=(e.pageX-this.offsetLeft*n-t(s).offset().left)/(this.offsetWidth*n);r.currentTime=a*r.duration}).on("keydown",function(t){var i=r.currentTime,s=i,e=r.duration,n=e/100,a=e/10;switch(t.which){case pe.DOWN:case pe.LEFT:s=Ki(i-n,0);break;case pe.UP:case pe.RIGHT:s=$i(i+n,e);break;case pe.PAGEDOWN:s=Ki(i-a,0);break;case pe.PAGEUP:s=$i(i+a,e);break;case pe.HOME:s=0;break;case pe.END:s=e}s!==i&&(r.currentTime=s)}),u.css("touchAction","none").draggable({containment:o,axis:"x",start:function(){i.xc=!0},drag:function(e,n){var a=n.position.left,h=this.offsetWidth/2,u=l()?1:i.rc.Zr,c=e.pageX-o.position().left-t(s).offset().left-h*u-n.originalPosition.left*u;a=n.originalPosition.left+c/u,a=Math.max(Math.min(a,o[0].offsetWidth-h),-h),n.position.left=a;var f=(a+h)/o[0].offsetWidth;r.currentTime=f*r.duration,i.update()},stop:function(){i.xc=!1;var t=l()?1:i.rc.Zr,s=(this.offsetLeft+6*t)/o[0].offsetWidth;r.currentTime=s*r.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.oc},update:function(){var t=this.mc,i=this.gc,s=this.bc,e=this.wc,r=this.nc,n=t[0].offsetWidth,a=isNaN(r.duration)?0:r.currentTime/r.duration;i.css({transform:"scaleX("+a+")"}),this.xc||s.css({left:a*n-6+"px"}),e[0].innerHTML=AtomiAP.formatMSString(1e3*r.currentTime)+" / "+AtomiAP.formatMSString(isNaN(r.duration)?0:1e3*r.duration),t.attr("aria-valuenow",r.currentTime),isNaN(r.duration)||t.attr("aria-valuemax")===r.duration+""||t.attr("aria-valuemax",r.duration),this._c&&this.ac&&(r.paused||this.yc?r.currentTime>0&&this.show(!0,!0):((void 0===this.Cc||this.Cc>r.currentTime)&&(this.Cc=r.currentTime),r.currentTime-this.Cc>2&&this.show(!1)))},pause:function(t){var i=this.fc,s=i.attr("data-value");(s=s?"false"===s:void 0)!==t&&i.attr("data-value",!t);var e=this.rc.pe,r=t?e.text("Play"):e.text("Pause");i.attr("title",r),i.attr("aria-label",r)},show:function(t,i){t!==this._c?this.uc&&(t||this.nc.paused||this.yc||this.isCCMenuShown()?(this.uc.stop().fadeTo(0,1),this.fc.stop().fadeTo(0,.8),this._c=!0):(this.uc.fadeTo(500,0),this.fc.fadeTo(500,0),this._c=!1,this.Cc=void 0),this.Sc&&this.Sc(this._c)):i&&this.fc.stop().fadeTo(0,.8)},mute:function(t){var i=this.lc;i.attr("aria-pressed",t).attr("data-value",t);var s=this.rc.pe,e=t?s.text("Unmute"):s.text("Mute");i.attr("title",e).attr("aria-label",e)},showCC:function(t){var i=this.dc;if(i.attr("aria-pressed",t).attr("data-value",t),!this.Oc){var s=this.rc.pe,e=t?s.text("HideCC"):s.text("ShowCC");i.attr("title",e).attr("aria-label",e)}},disableCC:function(){var t=this.dc;t&&t.hide()},createCCMenu:function(i){if(!(i.length<=1)&&(this.Oc=!0,!(t(".ap-media-menu-item",this.pc).length>0)))for(var s,e,r=this.Dn,n=this,a=this.pc[0],h=this.dc,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.rc.pe.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].Ve=o,e.on("mousedown",function(){-1===this.Ve&&r.Ec(!1),r.kc(this.getAttribute("lang")),n.showCCMenu(!1)}).on("keydown",function(i){i.which==pe.ENTER||i.which==pe.SPACE?(i.stopPropagation(),t(i.target).trigger("mousedown",[i.which])):i.which==pe.TAB&&(!i.shiftKey&&this.Ve===u-1||i.shiftKey&&-1===this.Ve)&&(h.focus(),n.showCCMenu(!1),i.stopPropagation(),i.preventDefault())}),a.appendChild(e[0])},showCCMenu:function(i){if(this.Oc){for(var s,e=t(".ap-media-menu-item",this.pc),r=0,n=e.length,a=this.Dn;r<n;++r)s=e[r],!a.Ic&&0==r||a.Ic&&a.Pc&&s.getAttribute("lang")===a.Pc?s.setAttribute("aria-checked","true"):s.setAttribute("aria-checked","false");arguments.length<=0?this.pc.toggle():i?this.pc.show():this.pc.hide(),n>0&&(this.isCCMenuShown()?e[0].focus():this.dc.focus())}},isCCMenuShown:function(){return this.pc&&"none"!==this.pc[0].style.display},fullscreen:function(){js.fullscreenEnabled()?js.fullscreenElement()==this.oc.parentNode?(js.exitFullscreen(),ke.browser.ie&&this.updateFullScreenButton(!1)):js.requestFullscreen(this.oc.parentNode):js.isElementSupportFullscreen(this.nc)&&js.requestFullscreen(this.nc)},exitFullScreen:function(){js.fullscreenEnabled()&&js.fullscreenElement()==this.oc.parentNode&&(js.exitFullscreen(),ke.browser.ie&&this.updateFullScreenButton(!1))},onFullScreenChange:function(){var t=js.fullscreenElement()===this.oc.parentNode||this.nc.webkitDisplayingFullscreen;this.updateFullScreenButton(t,this.shouldDisableFullScreen())},updateFullScreenButton:function(t,i){var s=this.vc;s.attr("aria-pressed",t).attr("data-value",t);var e=this.rc.pe,r=t?e.text("ExitFullScreen"):e.text("FullScreen");s.attr("title",r).attr("aria-label",r),arguments.length>1&&s.attr("aria-disabled",i)},shouldDisableFullScreen:function(){return ke.browser.safari&&!!js.fullscreenElement()&&js.fullscreenElement()!==this.oc.parentNode&&!this.nc.webkitDisplayingFullscreen},resize:function(){var t=this.oc,i=this.mc,s=this.bc,e=this.nc,r=isNaN(e.duration)?0:e.currentTime/e.duration;this.xc||s.css({left:r*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.fc,this.dc,this.lc,this.vc,this.mc];if(this.Oc){var r=t(".ap-media-menu-item",this.pc);r.length>0&&(e=e.concat(r))}for(var n=0,a=e.length;n<a;++n)(s=e[n])&&(-2==i?s.attr("tabIndex",-1):-1==i?s.removeAttr("tabIndex"):s.attr("tabIndex",i))}}}),Lr=["error","ended","loadstart","durationchange","loadedmetadata","loadeddata","canplay","waiting","playing","canplaythrough","stalled","emptied","suspend"],Fr=Qs(Yr,{$init:function(t,i,s){for(this.ac=i,this.Rc=i?t.cr.Se.pop():t.cr.Ce.pop();this.Rc.attributes.length>0;)this.Rc.removeAttribute(this.Rc.attributes[0].name);Yr.prototype.$init.call(this,t),this.Ue="",this.Mc=0,this.Nc=void 0,this.Ac="stopped",this.Dc=!1,this.Yc=!1,this.Xc=!1,this.Lc=[],this.Fc=[],this.Hc=[],this.Uc=!1,this.Bc=!1,this.Zc=!1,this.zc=!1,this.Gc=!0,this.Vc=void 0,this.Wc=!1,s&&s.cas&&i&&(this.createCCNode(),this.addCC(s.cas,s.cass)),this.$c()},pn:function(t){this.zc!=t&&(this.zc=t,t||this.Nc&&prez.yr())},createToolbar:function(){if(!this.Rc)return null;this.Kc=new Xr(this.fe,this);var i=this.Kc.getNode();return this.ac&&(this.jc=t(".ap-media-cc-btn",i)),i},getToolbar:function(){return this.Kc},createCCNode:function(){return this.Qc=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.qc=t(".ap-media-cc",this.Qc[0]),this.Qc[0]},getCCNodeContainer:function(){return this.Qc?this.Qc[0]:null},addCC:function(t,i){if(this.ac){if(t.length<=0)return this.Qc.hide(),void(this.jc&&this.jc.hide());if(i){var s=this.qc[0].style,e=i.c,r=i.b,n="font-family:'"+i.n+"';";n+="font-size:"+i.s+"px;",n+="color:"+Rs(e)+";",s.cssText=n,s.backgroundColor=Rs(r),this.Ec(!!i.de)}for(var a,h,o,u,c=this.Rc,f=c.getElementsByTagName("track");f[0];)f[0].remove();for(h=0,o=t.length;h<o;++h)u=t[h],(a=us.createElement("track")).label=u.n,a.kind="captions",a.srclang=u.c,a.src=this.fe.getResource(u.res+".vtt"),c.appendChild(a),u.de&&i.de&&(this.Pc=u.c);this.Pc||(this.Pc=t[0].c);var l=c.textTracks;for(h=0,o=l.length;h<o;++h)l[h].mode="hidden"}},updateCCOnToolbar:function(t,i){var s=this.Kc;if(t){var e=this.qc;s&&(e.attr("toolbar-show",s._c?"true":"false"),s.Sc=function(t){e.attr("toolbar-show",t?"true":"false")},s.createCCMenu(t)),this.Ec(!!i.de)}else s&&s.disableCC()},Jc:function(t){var i=t.activeCues,s=this.qc;s.attr("srclang",t.language),i&&i.length>0?(s.html(i[0].text),s.show()):s.hide()},kc:function(t,i){var s=this.Rc,e=s.getElementsByTagName("track");if(typeof t===Ui&&t){this.Pc=t;var r,n,a,h=s.textTracks;for(n=0,a=h.length;n<a;++n)if((r=h[n]).language===t){this.Jc(r);break}this.Ec(!0),this.onCCChanged&&!i&&this.onCCChanged(t)}else 1===e.length?(this.Ec(i?t:!this.Ic),this.onCCChanged&&!i&&this.onCCChanged(this.Ic)):i&&this.Ec(t)},Ec:function(t){this.Ic=!!t,t?this.Qc.show():this.Qc.hide(),this.Kc&&this.Kc.showCC(!!t)},ba:function(t,i){this.Rc&&(this.Rc.addEventListener(t,i),this.Fc.push([t,i]))},ga:function(t,i){if(this.Rc){this.Rc.removeEventListener(t,i);var s,e,r=this.Fc;for(s=0,e=r.length;s<e;++s)if(r[s][0]==t&&r[s][1]==i){r.splice(s,1);break}}},$c:function(){if(this.Rc){var t,i,s=this.Lc,e=this;for(t=0,i=Lr.length;t<i;++t){var r=function(t){e.tf(t)};s.push(r),this.Rc.addEventListener(Lr[t],r)}var n=this;this.if=function(){n.sf()},this.Rc.addEventListener("timeupdate",this.if);var a,h=this.Rc.getElementsByTagName("track");for(t=0,i=h.length;t<i;++t)if(a=h[t].track){var o=function(){this.language===n.Pc&&n.Jc(this)};this.Hc.push(o),a.addEventListener("cuechange",o)}}},ef:function(){if(this.Rc){var t,i,s=this.Lc,e=this.Fc;for(t=0,i=Lr.length;t<i;++t)this.Rc.removeEventListener(Lr[t],s[t]);for(s=[],this.Rc.removeEventListener("timeupdate",this.if),delete this.if,t=0,i=e.length;t<i;++t)this.Rc.removeEventListener(e[t][0],e[t][1]);e=[];var r,n=this.Rc.getElementsByTagName("track");for(t=0,i=n.length;t<i;++t)(r=n[t].track)&&r.removeEventListener("cuechange",this.Hc[t])}},synchronizeWithPrez:function(t){if(!arguments.length)return this.Yc;this.Yc=t},backgroundAudio:function(t){if(!arguments.length)return this.Xc;this.Xc=t},rf:function(t){var i=this.fe,s=this.Nc;t!=this.Nc&&(this.Nc=t,this.zc||(t?i.yr():void 0!==s&&i.Tr()))},tf:function(t){var i=this.Rc?this.Rc.readyState:-1,s=t.type;if(gs("MediaPlayer::_onPlayerEvent:"+this.Ue+"|event: "+s+" | state: "+i),"loadeddata"==t.type){var e=this.fe.cr;this.volume(e.volume()),this.muted(e.muted()),this.playbackRate(e.playbackRate()),void 0!==this.Vc&&this.tc(this.Vc||0)}if(this.Wc||"canplay"!=s&&"canplaythrough"!=s&&"error"!=s&&"ended"!=s&&"playing"!=s||(this.Wc=!0),!this.Uc&&this.Rc){if("error"==s)return this.Uc=!0,void(this.Yc&&this.rf(!1));if("ended"==s)return this.Bc=!0,void(this.Yc&&this.rf(!1));if(this.Yc)switch(i){case 0:case 1:case 2:this.rf(!0);break;case 3:this.rf(!(!ke.browser.ie&&!ke.browser.safari&&this.Wc));break;case 4:this.rf(!this.Wc);break;default:this.rf(!0)}}},sf:function(t){this.Kc&&this.Kc.update()},nf:function(){return this.Rc},dn:function(t){this.Ue=t},An:function(t){this.Mc=(0|t)/1e3},af:function(){return this.Mc},hf:function(){return this.ma},loadResource:function(t){if(this.Rc){void 0===t&&(t=-1),this.Bc=!0,this.rf(!1),this.Uc=!1,this.Bc=!1,this.Gc=!0,this.Vc=void 0,this.Wc=!1;try{this.ma=t,this.Rc.src=-1!=t?this.fe.getResource(t+"."+(this.ac?De._e:De.we)):"",this.Rc.load()}catch(t){gs("MediaPlayer::loadResource:"+this.Ue+"|exception: "+t.toString())}}},Vs:function(t){if(!arguments.length)return this.Ac;if(this.Ac=t,this.Rc){try{if(gs("MediaPlayer::state |"+this.Ue+"|"+t),"stopped"==t)this.Rc.pause();else if(!this.Dc&&!this.uf){var i=this.Rc.play();if(void 0!==i){var s=this;i.catch(function(t){gs("MediaPlayer::state|play error: "+t),"NotAllowedError"==t.name&&(s.Zc=!0)})}this.Bc=!1}}catch(t){gs("MediaPlayer::state Set Exception | "+this.Ue+"|"+t.toString())}this.fe.cr.Fe()}},tc:function(t){if(arguments.length){if(!this.Gc||!this.Rc)return;var i=this.Rc.readyState,s=t*this.Mc;if(0==i)return gs("MediaPlayer::_ts Media Not Ready | "+this.Ue+"|"+s+"| set failed"),void(this.Vc=t);this.Gc=!1,this.Vc=void 0;try{gs("MediaPlayer::_ts |"+this.Ue+"|"+s+"| set");var e=this.Rc.currentTime;e<.2&&s-e>=0&&s-e<.2?gs("MediaPlayer::_ts |"+this.Ue+"|"+s+"| difference too small"):this.Rc.currentTime=s}catch(t){gs("MediaPlayer::_ts Set Exception | "+this.Ue+"|"+t.toString())}}else try{return 0!=this.Mc&&this.Rc?this.Rc.currentTime/this.Mc:0}catch(t){return gs("MediaPlayer::_ts Get Exception | "+this.Ue+"|"+t.toString()),0}},ic:function(){this.Gc=!0},cf:function(t){if(gs("MediaPlayer::_onParentPause from "+(t?"timeline":"prez")+" | "+this.Ue),!this.Dc&&!this.uf&&(this.Dc=t,this.uf=!t,this.Rc&&!this.Bc))try{this.Rc.pause()}catch(i){gs("MediaPlayer::_onParentPause from "+(t?"timeline":"prez")+" Exception | "+this.Ue+"|"+i.toString())}},ff:function(t){if(gs("MediaPlayer::_onParentPlay from "+(t?"timeline":"prez")+" | "+this.Ue),t){if(!this.Dc)return;this.Dc=!1}else{if(!this.uf)return;this.uf=!1}if(this.Rc&&!this.Bc&&"stopped"!=this.Ac)try{var i=this.Rc.play();if(void 0!==i){var s=this;i.catch(function(i){gs("MediaPlayer::_onParentPlay from "+(t?"timeline":"prez")+" PException | "+s.Ue+"|"+i),"NotAllowedError"==i.name&&(s.Zc=!0)})}}catch(i){gs("MediaPlayer::_onParentPlay from "+(t?"timeline":"prez")+" Exception | "+this.Ue+"|"+i.toString())}},sc:function(){this.ff(!0)},ec:function(){this.cf(!0)},Ze:function(t){t?this.cf(!1):this.ff(!1)},nativePlayer:function(){return this.Rc},state:function(){return this.Vs()},pause:function(t){this.Vs("stopped"),void 0!==t&&this.seek(t)},play:function(t){void 0!==t&&this.seek(t),this.Vs("playing")},position:function(){return this.tc()*(1e3*this.Mc)},seek:function(t){t|=0,t=this.Mc>0?t/(1e3*this.Mc):0,this.ic(),this.tc(t)},playbackRate:function(t){if(!arguments.length)return this.Rc?this.Rc.playbackRate:1;try{this.Rc&&(this.Rc.playbackRate=t,this.Rc.defaultPlaybackRate=t)}catch(t){gs("MediaPlayer::playbackRate Exception | "+this.Ue+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this.Rc?this.Rc.volume:1;try{t<0&&(t=0),t>1&&(t=1),this.Rc&&(this.Rc.volume=t,gs("MediaPlayer::volume | "+this.Ue+"| set: "+t+"| get: "+this.Rc.volume))}catch(t){gs("MediaPlayer::volume Exception | "+this.Ue+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return!this.Rc||this.Rc.muted;try{this.Rc&&(this.Rc.muted=t,gs("MediaPlayer::muted | "+this.Ue+"| set: "+t+"| get: "+this.Rc.muted))}catch(t){gs("MediaPlayer::muted Exception | "+this.Ue+"|"+t.toString())}return this},cleanup:function(){Yr.prototype.cleanup.call(this);var t=this.Rc;if(t){this.Bc=!0,this.rf(!1),this.ef(),this.Rc=null;try{t.paused||t.pause()}catch(t){gs("MediaPlayer::cleanup Exception | "+this.Ue+"|"+t.toString())}this.ac?this.fe.cr.Se.unshift(t):this.fe.cr.Ce.unshift(t)}},Be:function(){if(this.Zc){if(this.Zc=!1,this.Gc=!0,this.Dc)return;if("stopped"==this.Ac)return;if(this.Bc||!this.Rc)return;try{var t=this.Rc.play();void 0!==t&&t.catch(function(t){gs("MediaPlayer::_updateUnmute|play error: "+t)})}catch(t){gs("MediaPlayer::_updateUnmute Exception | "+this.Ue+"|"+t.toString())}}},lf:function(){if(!this.Bc&&this.Rc&&!this.Rc.paused){this.Rc.pause(),this.Bc=!0;var t,i,s=this.Fc;for(t=0,i=s.length;t<i;++t)"ended"==s[t][0]&&s[t][1].call()}}}),Hr=Qs(rr,{createMedia:function(i,s){var n=this,a=this.ne,h=!0,c=i;if(s){var f=(c=us.createElement("div")).style;f.position="absolute",f.left=0,f.top=0,f.width="100%",f.height="100%",i.appendChild(c),this.df=c}this.Dn=this.slide.fe.vn({ctrl:a}),this.Dn||(h=!1,this.Dn=new Fr(this.slide.fe,s,a));var l=this.Dn,d=l.nf(),p=d.style;if(c.appendChild(d),l.He=a.audio_ducking,this.Rc=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=us.createElement("img"),g=m.style;v=this.slide.fe.getImgResource(this.slide.ne.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.pf=m,this.vf(!0)}if(l.dn(a.n),l.An(a.md),l.synchronizeWithPrez(a.f&o),s?(d.setAttribute("playsinline",""),d.setAttribute("disablePictureInPicture","")):l.backgroundAudio(a.f&r),l.getCCNodeContainer()&&i.appendChild(l.getCCNodeContainer()),h||l.loadResource(a.mi),this.mo(),s){if(a.g){var b=us.createElement("canvas"),w=b.style;c.appendChild(b),this.mf=b,Is(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[Hs]="",p[Ls]="",this.gf=function(){n.bf(!0)},this.wf=function(){n.bf(!1)},d.addEventListener("play",this.gf),d.addEventListener("pause",this.wf),d.addEventListener("ended",this.wf)}this._f=function(){var i=js.fullscreenElement(),s=t(n.node);i==n.node?s.hasClass("ap-fullscreen")||(s.addClass("ap-fullscreen"),n.Tn()):s.hasClass("ap-fullscreen")&&(s.removeClass("ap-fullscreen"),n.Tn()),l.Kc&&l.Kc.onFullScreenChange()},js.addEventListener("fullscreenchange",this._f,!1),this.on("ap-ended",function(){l.Kc&&l.Kc.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.kc(y.mdcc,!0),l.onCCChanged=function(t){var i=n.savedData(!0);i&&(i.mdcc=t)}}t(_).on("mousedown mouseup",function(t){n.filterEvent(t)||n.Xs(t)})}},html:kr,player:function(){return this.Dn},kh:function(t){rr.prototype.kh.call(this,t),this.Dn.Kc&&this.Dn.Kc.tabIndex(t)}}),Ur=Qs(Hr,{createNode:function(){var t=rr.prototype.createNode.call(this);return this.createMedia(t,!1),t},onResized:function(t,i){rr.prototype.onResized.call(this,t,i),this.Dn&&this.Dn.Kc&&this.Dn.Kc.resize()}});ar(function(t,i){return new Ur(t,i)},i.T);var Br=!1,Zr=Qs(Hr,{bf:function(t){if(gs("Update green screen: "+t),t){if(!this.yf){var i=this;this.yf=setInterval(function(){i.Tf()},100)}}else this.yf&&(clearInterval(this.yf),delete this.yf)},vf:function(t){var i,s=this.Dn,e=this.pf;if(s&&e&&(i=s.nf()))if(t){if(e.style.display="block",!this.kf){var r=this;this.kf=function(){r.vf(!1)},i.addEventListener("timeupdate",this.kf)}}else e.style.display="none",this.kf&&(i.removeEventListener("timeupdate",this.kf),delete this.kf)},createNode:function(){var t=rr.prototype.createNode.call(this);return this.createMedia(t,!0),t},Fa:function(){var t,i,s,e,r=this.shape,n=this.df.style;if(r&&r.Gs){if(t=r.Xu().fill,(s=us.createElementNS(Bi,"path")).setAttribute("d",t),(i=us.createElementNS(Bi,"svg")).appendChild(s),i.style.visibility="hidden",this.node.appendChild(i),e=fn(s),this.node.removeChild(i),n.clipPath='path("'+t+'")',n.left=e.x+"px",n.top=e.y+"px",n.width=e.width+"px",n.height=e.height+"px",this.shape&&this.shape.Lu&&this.yh&&e.height>this.yh&&(n.top=-e.y+this.yh-e.height+"px"),this.shape&&this.shape.Fu&&this._h&&e.width>this._h&&(n.left=-e.x+this._h-e.width+"px"),0!=e.x||0!=e.y){var a=an[r.Gs],h=r.container.clientWidth,o=r.container.clientHeight,u=new hn;a&&a[0]&&(a[0].apply(u,[-e.x,-e.y,h,o].concat(r.Wo)),n.clipPath='path("'+u.path()+'")')}}else r&&(n.clipPath="")},onResized:function(t,i){rr.prototype.onResized.call(this,t,i),this.xf(),this.Fa()},xf:function(){if(!this.ne.g&&this.Dn){var t=this.shape,i=this.node.offsetWidth,s=this.node.offsetHeight,e=this.ne.v_w,r=this.ne.v_h,n=this.Dn.nf(),a=this.Dn.getToolbar(),h=n.style,o=js.fullscreenElement()==this.node;i<=0||s<=0||e<=0||r<=0||(Gi(e/r-i/s)>.01&&!o||t&&(t.Cf||t.Gs)?h.objectFit="fill":(h.objectFit="contain",h.width="100%",h.height="100%",ke.browser.chromiums?(h[Hs]="0% 0%",h[Ls]="scaleX(1) scaleY(1)"):(h[Hs]="",h[Ls]="")),a&&a.resize())}},cleanup:function(){if(this.vf(!1),js.removeEventListener("fullscreenchange",this._f,!1),this.ne.g&&this.Dn){var t=this.Dn.nf();t&&(t.removeEventListener("play",this.gf),t.removeEventListener("pause",this.wf),t.removeEventListener("ended",this.wf)),this.bf(!1)}return rr.prototype.cleanup.call(this)},Tf:function(){var t,i,s,e,r,n,a,h,o,u,c,f,l,d=this.ne.g,p=this.mf;if(d&&this.Dn&&(t=p.getContext("2d"))){h=((n=d[0])>>16&255)-(a=255*d[1]/100),o=(n>>16&255)+a,u=(n>>8&255)-a,c=(n>>8&255)+a,f=(255&n)-a,l=(255&n)+a,t.drawImage(this.Dn.nf(),0,0,p.width,p.height);try{for(s=(i=t.getImageData(0,0,p.width,p.height)).data,e=0,r=s.length;e<r;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){Br||(Br=!0,"file:"==window.location.protocol&&alert(this.prez().ui.pe.text("GreenScreenError")))}}},flip:function(t,i){return Ps(this.df,t,i),rr.prototype.flip.call(this,t,i)}});ar(function(t,i){return new Zr(t,i)},i.C);var zr=Qs({$init:function(t){this.Dn=new Fr(t,!0),this.Dn.nf().setAttribute("playsinline",""),this.Dn.synchronizeWithPrez(!0),this.Dn.muted=function(t){var i=Fr.prototype.muted;return arguments.length?((t||!t&&this.fe.sidebarVisible())&&i.call(this,t),this):i.call(this)},this.node=null,this.Sf=0},appendTo:function(t){this.node=t,this.node.appendChild(this.Dn.nf()),this.node.style.display="none"},cleanup:function(){this.Dn&&(this.Dn.cleanup(),this.Dn=null,this.node&&(this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.node=null))},muted:function(t){if(!arguments.length)return this.Dn.muted();this.Dn.muted(t)},flip:function(t,i){Ps(this.node,t,i)},aspectRatio:function(t){if(!arguments.length)return this.Sf;this.Sf=t},Tn:function(){}}),Gr=-1,Vr=0,Wr=1,$r=2,Kr=3,jr=5,Qr=Qs(Yr,{$init:function(t,i,s){Yr.prototype.$init.call(this,t),this.Ia=i,this.Ue="",this.Mc=3600,this.Nc=void 0,this.Ac="stopped",this.Dc=!1,this.Uc=!1,this.Bc=!1,this.Gc=!0,this.Of=!1,this.Ef=void 0;var e,r=i.If,n={rel:0,showinfo:0,autoplay:0,playsinline:1},a=this;this.Pf=s.auto_play,!0===s.play_range?(this.Rf=(s.start_time||0)/1e3,this.Mf=(s.stop_time||0)/1e3):(this.Rf=0,this.Mf=0),n.controls=s.hide_controls?0:1,n.iv_load_policy=s.hide_annotations?3:1,n.start=this.Rf,n.autoplay=this.Pf?1:0,this.Mf>0&&(n.end=this.Mf),e=new YT.Player(r,{height:"100%",width:"100%",videoId:s.youtube_id,playerVars:n,events:{onReady:function(){a.Nf()},onStateChange:function(){a.Af()},onError:function(){a.Df()}}}),this.Yf=e},dn:function(t){this.Ue=t},Xf:function(t){switch(t){case Gr:return"unstarted";case Vr:return"ended";case Wr:return"playing";case $r:return"paused";case Kr:return"buffering";case jr:return"videocued";default:return"invalid"}},rf:function(t){var i=this.fe,s=this.Nc;if(t!=this.Nc)if(this.Nc=t,t)i.yr();else if(void 0!==s&&(i.Tr(),this.Lf)){delete this.Lf;try{this.Yf.pauseVideo()}catch(t){gs("YouTubeMediaPlayer::_updateBufferingState pauseVideo Exception | "+this.Ue+"|"+t.toString())}}},Vs:function(t){if(!arguments.length)return this.Ac;if(this.Ac=t,this.Of)try{gs("YouTubeMediaPlayer::state |"+this.Ue+"|"+t),"stopped"==t?this.Yf.pauseVideo():this.Dc||this.uf||(delete this.Lf,this.Yf.playVideo(),this.Bc=!1)}catch(t){gs("YouTubeMediaPlayer::state Set Exception | "+this.Ue+"|"+t.toString())}},tc:function(t){var i=this.Yf;if(arguments.length){if(!this.Of)return;if(!this.Gc)return;var s,e;this.Gc=!1,s=t*this.Mc+this.Rf;try{(e=i.getCurrentTime())-s>-1&&e-s<1?gs("YouTubeMediaPlayer::_ts |"+this.Ue+"|"+e+"| too small difference"):(gs("YouTubeMediaPlayer::_ts |"+this.Ue+"|"+s+"| set"),s>=(this.Mf>0?this.Mf:i.getDuration())-1?(gs("YouTubeMediaPlayer::_ts seek ts is larger than duration | "+this.Ue+"|"+s),i.stopVideo(),this.Bc=!0,this.rf(!1)):i.seekTo(s,!0))}catch(t){gs("YouTubeMediaPlayer::_ts Set Exception | "+this.Ue+"|"+t.toString())}}else try{return 0==this.Mc?0:this.Of?(i.getCurrentTime()-this.Rf)/this.Mc:0}catch(t){return gs("YouTubeMediaPlayer::_ts Get Exception | "+this.Ue+"|"+t.toString()),0}},ic:function(){this.Gc=!0},cf:function(t){if(gs("YouTubeMediaPlayer::_onParentPause from "+(t?"timeline":"prez")+" | "+this.Ue),!this.Dc&&!this.uf&&(this.Dc=t,this.uf=!t,this.Yf&&this.Of&&!this.Bc))if("stopped"==this.Ac&&this.Yf.getPlayerState()==Wr&&(this.Ac="playing"),this.Nc)this.Lf=!0;else try{this.Yf.pauseVideo()}catch(i){gs("YouTubeMediaPlayer::_onParentPause from "+(t?"timeline":"prez")+" Exception | "+this.Ue+"|"+i.toString())}},ff:function(t){if(gs("YouTubeMediaPlayer::_onParentPlay from "+(t?"timeline":"prez")+" | "+this.Ue),t){if(!this.Dc)return;this.Dc=!1}else{if(!this.uf)return;this.uf=!1}if(this.Yf&&this.Of&&!this.Bc&&"stopped"!=this.Ac)try{delete this.Lf,this.Yf.playVideo()}catch(i){gs("YouTubeMediaPlayer::_onParentPlay from "+(t?"timeline":"prez")+" Exception | "+this.Ue+"|"+i.toString())}},sc:function(){this.ff(!0)},ec:function(){this.cf(!0)},Ze:function(t){t?this.cf(!1):this.ff(!1)},nativePlayer:function(){return this.Yf},state:function(){return this.Vs()},pause:function(t){this.Vs("stopped"),void 0!==t&&this.seek(t)},play:function(t){void 0!==t&&this.seek(t),this.Vs("playing")},position:function(){return this.tc()*(1e3*this.Mc)},seek:function(t){t|=0,t=this.Mc>0?t/(1e3*this.Mc):0,this.ic(),this.tc(t)},playbackRate:function(t){if(!arguments.length)return this.Of?this.Yf.getPlaybackRate():1;try{if(!this.Of)return;this.Yf.setPlaybackRate(t)}catch(t){gs("YouTubeMediaPlayer::playbackRate Exception | "+this.Ue+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this.Of?this.Yf.getVolume()/100:1;try{if(!this.Of)return;t<0&&(t=0),t>1&&(t=1),this.Yf.setVolume(100*t)}catch(t){gs("YouTubeMediaPlayer::volume Exception | "+this.Ue+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return!!this.Of&&this.Yf.isMuted();try{if(!this.Of)return;t?this.Yf.mute():this.Yf.unMute()}catch(t){gs("YouTubeMediaPlayer::muted Exception | "+this.Ue+"|"+t.toString())}return this},Nf:function(){if(gs("YouTubeMediaPlayer::_onPlayerReady | "+this.Ue),this.Of)gs("YouTubeMediaPlayer::_onPlayerReady repeated state| "+this.Ue);else{this.Of=!0;var t=this.fe.cr;this.volume(t.volume()),this.muted(t.muted()),this.playbackRate(t.playbackRate()),"playing"!=this.Ac||this.Dc||this.uf?this.Yf.pauseVideo():(this.Lf,this.Yf.playVideo())}},Af:function(){if(!this.Uc&&this.Yf){var i=this.Yf.getPlayerState(),s=this.Ia;if(gs("YouTubeMediaPlayer::_onPlayerStateChanged | "+this.Ue+"|"+this.Xf(i)),this.Pf)switch(i){case Gr:case jr:this.rf(!1);break;case Vr:this.Bc=!0,this.rf(!1);break;case Wr:case $r:this.rf(!1);break;case Kr:this.Bc?this.rf(!1):this.rf(!0)}switch(i){case Vr:this.Bc=!0,t(s).triggerHandler(t.Event("ap-ended"),{});break;case Wr:t(s).triggerHandler(t.Event("ap-play"),{});break;case $r:t(s).triggerHandler(t.Event("ap-pause"),{})}}},Df:function(){this.Uc=!0,this.Yf&&this.Pf&&this.rf(!1)},cleanup:function(){Yr.prototype.cleanup.call(this),this.Yf&&(this.Bc=!0,this.Of=!1,this.rf(!1),this.Yf=null)}}),qr=Qs(rr,{$init:function(t,i){if(rr.prototype.$init.call(this,t,i),ke.youtubeAPIState==ri&&(this.Dn=new Qr(t.fe,this,i.YT_params),this.Dn.dn(i.n),this.Dn.He=i.audio_ducking),i.YT_params.disable_scaling){var s,e=this.prez(),r=this;this.Ff=function(){r.Hf()},e&&e.ui&&(s=e.ui.canvas())&&s.on("ap-scaleChanged",this.Ff)}},createNode:function(){var t=rr.prototype.createNode.call(this),i=us.createElement("div"),s=us.createElement("div"),e=i.style;if(t.style.overflow="hidden",e.pointerEvents="auto",e.position="absolute",e.left="0px",e.top="0px",this.ne.YT_params.disable_scaling){var r,n=this.prez();r=n?n.Zr():1,e.width=100*r+"%",e.height=100*r+"%",e[Hs]=1==r?"":"0% 0%",e[Ls]=1==r?"":"scale("+1/r+", "+1/r+")"}else e.width="100%",e.height="100%";return e.border="none",t.appendChild(i),this.Rc=i,i.appendChild(s),this.If=s,t},Hf:function(){if(this.Rc){var t,i=this.prez(),s=this.Rc.style;t=i?i.Zr():1,s.width=100*t+"%",s.height=100*t+"%",s[Hs]=1==t?"":"0% 0%",s[Ls]=1==t?"":"scale("+1/t+", "+1/t+")"}},cleanup:function(){if(this.ne.YT_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.Ff),delete this.Ff}return rr.prototype.cleanup.call(this)},html:kr,player:function(){return this.Dn}});ar(function(t,i){return new qr(t,i)},i.M);var Jr=Qs(rr,{$init:function(t,i){rr.prototype.$init.call(this,t,i);var s,e,r=this.frameNode,n=i.web_params;if(n.embed_code?"srcdoc"in r?r.srcdoc=n.embed_code:(e=function(t){t.target.removeEventListener("load",e,!1);var i=t.target.contentDocument;i.open(),i.write(n.embed_code),i.close()},r.addEventListener("load",e,!1)):(s=this,r.onload=function(){s.Uf},r.onerror=function(){s.Bf},this.Zf=setTimeout(function(){s.zf()},2e4),n.address?r.src=n.address:n.entrypoint?r.src=this.prez().getResource(n.html_package)+"/"+n.entrypoint:r.src=this.prez().getResource(n.html_package+".html")),i.web_params.disable_scaling){var a,h=this.prez(),o=this;this.Ff=function(){o.Hf()},h&&h.ui&&(a=h.ui.canvas())&&a.on("ap-scaleChanged",this.Ff)}},createNode:function(){var t=rr.prototype.createNode.call(this),i=us.createElement("iframe"),s=i.style,e=this.ne.web_params.scrolling;if(s.pointerEvents="auto",s.position="absolute",s.left="0px",s.top="0px",this.ne.web_params.disable_scaling){var r,n=this.prez();r=n?n.Zr():1,s.width=100*r+"%",s.height=100*r+"%",s[Hs]=1==r?"":"0% 0%",s[Ls]=1==r?"":"scale("+1/r+", "+1/r+")"}else s.width="100%",s.height="100%";return s.border="none",s.overflow=e?"auto":"hidden",Is(i,{allow:"fullscreen",scrolling:e?"auto":"no"}),t.appendChild(i),this.frameNode=i,t},Uf:function(){clearTimeout(this.Zf)},Bf:function(){clearTimeout(this.Zf)},zf:function(){},Hf:function(){var t,i=this.prez(),s=this.frameNode.style;t=i?i.Zr():1,s.width=100*t+"%",s.height=100*t+"%",s[Hs]=1==t?"":"0% 0%",s[Ls]=1==t?"":"scale("+1/t+", "+1/t+")"},cleanup:function(){if(this.ne.web_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.Ff),delete this.Ff}return clearTimeout(this.Zf),rr.prototype.cleanup.call(this)},html:kr});ar(function(t,i){return new Jr(t,i)},i.N);var tn=Qs(rr,{$init:function(t,i){rr.prototype.$init.call(this,t,i)},createNode:function(){var t=rr.prototype.createNode.call(this),i=us.createElement("div");i.style.position="absolute",i.style.width="100%",i.style.height="100%",i.style.pointerEvents="auto";var s=us.createElement("canvas");return s.style.position="absolute",s.style.width="100%",s.style.height="100%",this.Gf=s,i.appendChild(s),t.appendChild(i),t},Vf:function(){us.Wf||(us.Wf={});var t=void 0,i=this.ne.chart;if(i&&void 0!=i.chartID&&(t=us.Wf[i.chartID]),t){if((s=t.canvas)==this.Gf)return t;t.canvas&&t.canvas.remove(),t.destroy(),us.Wf[i.chartID]=void 0,t=void 0}if(this.Gf&&0!=this.Gf.clientWidth&&0!=this.Gf.clientHeight&&(this.Gf.style.pointerEvents="visiblePainted",this.node.style.pointerEvents="none",(v=this.Gf.getContext("2d"))&&i&&i.type&&i.data&&i.options)){var s,e=i.data,r=i.options,n=e.normed,a=r.normed;if(!n){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(r&&!a){if(r.devicePixelRatio=this.$f(),"bubble"==i.type){var p=r.elements;if(p&&p.point){p.point.radius=function(t){return t.dataset.data[t.dataIndex].v}}}r.scales&&(this.Kf(r.scales.r),this.Kf(r.scales.x),this.Kf(r.scales.x1),this.Kf(r.scales.y),this.Kf(r.scales.y1)),r.normed=!0}if(void 0==t)if(s=this.Gf){var v=s.getContext("2d");us.Wf[i.chartID]=new Chart(v,i),t=us.Wf[i.chartID]}}return t},jf: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=Ki(i.width/s,i.height/e)}return t},$f:function(){return(window.devicePixelRatio||1)*this.jf()+.5},Tn:function(){if(rr.prototype.Tn.call(this),this.visible()){var t=this.Vf();t&&(t.resize(),t.update())}},Qf:function(){var t=this.Vf();if(t&&t.config&&t.config.options){var i=this.$f();t.config.options.devicePixelRatio!==i&&(t.config.options.devicePixelRatio=i,t.resize())}},Kf: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}}});ar(function(t,i){return new tn(t,i)},i.G);var sn=Qs(rr,{$init:function(t,i){if(this.qf=[],this.Jf=[],this.il=0,this.el=0,this.rl=[],rr.prototype.$init.call(this,t,i),this.nl){var s=this.nl;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 r=e.r,n=0;n<r.length;n++){var a=r[n]||[];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=us.createElement("div");l.appendChild(d),l.textContainer=d;var p=u[f]||[];if(this.al(p)){var v=new dn(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.Jf.push(l),this.rl.push(p),this.el=Math.max(this.el,c.length))}this.qf.push(c)}}this.il=this.qf.length}this.Da(),this.eo()}},createNode:function(){var t=rr.prototype.createNode.call(this),i=us.createElement("table");return i.style.width="100%",i.style.height="100%",this.nl=i,t.appendChild(i),t},textVerticalAlignForCell:function(t,i){return 1==arguments.length?t.Rh||"top":("middle"!==i&&"top"!==i&&"bottom"!==i||(t.textContainer&&(t.vAlign=i),t.Rh=i),this)},Jh:function(){},createTextNode:function(){},Da:function(){var t=this.Jf,i=this.rl;if(i.length==t.length)for(var s=0,e=i.length;s<e;s++){var r=this.Jf[s],n=this.rl[s].tm||[5,5,5,5],a=r.style;a.paddingLeft=n[0]+"px",a.paddingTop=n[1]+"px",a.paddingRight=n[2]+"px",a.paddingBottom=n[3]+"px",r.Rh&&this.textVerticalAlignForCell(r,r.Rh)}},fontScale:function(t){if(!arguments.length)return this.so||100;if(t!=(this.so||100)){this.so=t;for(var i=this.Jf||[],s=0,e=i.length;s<e;s++){var r,n=i[s];if(n.textContainer)r=void 0!==n.ro?n.ro:void 0!==n.ao?n.ao:n.textContainer.innerHTML,n.textContainer.innerHTML=r,this.eo()}return this}},eo:function(){void 0===this.io&&(this.io=parseFloat(t(this.textNode).css("font-size"))||16);for(var i=this.Jf,s=0,e=i.length;s<e;s++){var r=i[s];r.textContainer&&(r.textContainer.style.fontSize=this.io*this.so/100+"px")}},Tn:function(){if(rr.prototype.Tn.call(this),this.visible()&&this.nl){var t=this.nl.clientWidth||0,i=this.nl.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){rr.prototype.onResized.call(this,t,i);for(var s=this.Jf,e=0,r=s.length;e<r;e++){var n=s[e];if(n.shape){n.shape.layout();var a=this.hl(n);2==a.length&&n.shape&&n.shape.node&&(n.shape.node.style.left=a[0]+"px",n.shape.node.style.top=a[1]+"px",n.textContainer&&(n.textContainer.style.position="absolute",n.textContainer.style.left=a[0]+"px",n.textContainer.style.top=a[1]+"px",n.textContainer.style.width=parseInt(n.clientWidth)+"px"))}}},Qf:function(){if(ke.browser.firefox&&this.nl){var t=this.node.getBoundingClientRect();if(t){var i=this.rl;if(0!=i.length&&void 0!=i){var s=1,e=this.node.offsetWidth,r=this.node.offsetHeight;0===e||0===r?0!==e?s=t.width/e:0!==r&&(s=t.height/r):s=Ki(t.width/e,t.height/r);for(var n=window.devicePixelRatio||1,a=1/n,h=this.nl.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];if(void 0!=i[o]&&void 0!=i[o].ll){var v=i[o].ll[0]/1e3;if(s<.99){var m=Ki(ss(v/(s*n)*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.Pt)for(var r,n=i[2],a=0,h=n.length;a<h;++a)r=[(s=n[a])[0]],s=s[1],r.push(Rs(s>>16&255,s>>8&255,255&s)),r.push((s>>24&255)/255),n[a]=r;i.normed=!0}switch(i[0]){case _t.Et:e.fillNone();break;case _t.It:var o=Rs((s=i[1])>>16&255,s>>8&255,255&s,(s>>24&255)/255);t.style.backgroundColor=o;break;case _t.Pt: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=Rs(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=Rs(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=Rs(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=Rs(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,r,n,a;if(s=this.nl)for(r=s.rows,n=0;n<r.length;n++)if(n==t)for(e=r[n].cells,a=0;a<e.length;a++)if(a==i)return e[a];return null},ol:function(t){var i,s,e,r,n;if(i=this.nl)for(e=i.rows,r=0;r<e.length;r++)for(s=e[r].cells,n=0;n<s.length;n++)if(s[n]==t)return[r,n];return[]},hl: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]},ul:function(){var t,i,s,e=this.ne.table;if(e.r)for(var r=e.r,n=0;n<r.length;n++){var a=r[n]||[];if(a){i=a.c||[];for(var h=0;h<i.length;++h)s=i[h]||[],(t=this.getCellNode(n,h))&&(this.cellBorderLeft(t,s.ll),this.cellBorderTop(t,s.lt),this.cellBorderRight(t,s.lr),this.cellBorderBottom(t,s.lb))}}},al:function(t){return t.f&&(t.f[0]==_t.Pt||t.f[0]==_t._)},cellHtml:function(t,i){if(!arguments.length)return t.textContainer?t.textNode.innerHTML:"";if(i+="",t.textContainer){if(t.so&&100!=t.so){t.ro=i;var s={css:t.textContainer.style.cssText,html:i};xs(s,t.so/100),i=s.html}else delete t.ro;var e=this,r=this.slide.fe.vars,n=r.replace(i);this.cl(t,n.text),t.no&&(r.removeObserver(t.no),delete t.no),n.vars.length?(t.ao=i,t.no=function(){e.cl(t,r.replace(t.ao).text)},r.addObserver(n.vars,t.no)):delete t.ao}return t},cl:function(t,i){t.textContainer.innerHTML=i},cleanup:function(){var t,i,s,e,r,n,a=this.qf;for(s=0,r=a.length;s<r;++s)for(e=0,n=(t=a[s]).length;e<n;++e)(i=t[e])&&i.no&&(this.prez().vars.removeObserver(i.no),delete i.no,delete i.ao);return rr.prototype.cleanup.call(this)}});ar(function(t,i){return new sn(t,i)},i.V);var en=!1,rn=Qs(rr,{createNode:function(){var i=rr.prototype.createNode.call(this),s=this;if(t(i).on("mousedown mouseup",function(t){s.filterEvent(t)||s.Xs(t)}),ke.browser.ie){var e=us.createElement("img"),r=e.style;return i.tabIndex=-1,i.appendChild(e),r.position="absolute",r.width="100%",r.height="100%",r.pointerEvents="auto",this.imageNode=e,e.addEventListener("dragstart",function(t){t.preventDefault()},!1),i}var n=us.createElement("div");return n.className="3d_model",n.style.position="absolute",n.style.width="100%",n.style.height="100%",n.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),n.appendChild(this.webGLRenderer.domElement),this.modelNode=n,i.appendChild(n),i},fl:function(){return!!(this.ne.f&n)},dl:function(){en||(en=!0,"file:"==window.location.protocol&&alert(this.prez().ui.pe.text("3DModelError")))},Ma:function(t,i,s){if(!this.pl){var e=this;this.pl=setInterval(function(){e.dl()},100)}if(ke.browser.ie){if(0==s.length)return void(this.imageNode.src="");var r=s.res_img;return r+=".png",void(this.imageNode.src=this.prez().getImgResource(r))}var n=s.res_id,a=this.prez().getResource(n+".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.ne.d,this.disabled());if(!H&&!this.fl()){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,r=new THREE.Matrix4;r.makeRotationZ(c),e.multiply(r);var n=new THREE.Matrix4;n.makeRotationY(u),e.multiply(n);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 r=s[e];X.clipAction(r).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&&Ps(this.imageNode,t,i),this.modelNode&&Ps(this.modelNode,t,i),rr.prototype.flip.call(this,t,i)},html:kr});ar(function(t,i){return new rn(t,i)},i.tt);var nn=Qs(xr,{$init:function(t,s,e){(s=s||{}).isSlide=!0,this.fe=t,this.Gh={0:this},this.Vh={},this.Zn=[],this.xn=[],this.Ch=1,(void 0!==s.fbi||s.isBackground&&e&&void 0!==e.ne.fbi)&&(s.isFeedback=!0);var r=!s.isBackground&&!s.isTop&&!s.isBottom;(s.isBackground||(this.je=new Gn({startTime:s.st||0}),this.qs(this.je)),this.ml=[],this.gl=[],this.bl=0,xr.prototype.$init.call(this,e||this,s),this.Xa)&&(this.Xa()&&this.Xh());var n=this.node.style;if(n.left=0,n.top=0,n.width="100%",n.height="100%",r){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:ii.Demo|ii.Tutorial|ii.Practice|ii.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 nn(t,a,this),this.children.push(this.background)}if(s.isBackground)n.zIndex=s.isFeedback?qt.vs:qt.qi;else if(s.isTop?n.zIndex=qt.es:s.isBottom?n.zIndex=qt.Ji:n.zIndex=s.isFeedback?qt.ms:qt.ss,s.at&&this.node.setAttribute("aria-label",s.at),s.ca&&s.ca.n&&s.ca.n.length?this.reloadClosedCaption():!s.isFeedback&&r&&t.hn&&(t.hn.slide=this,this.je.addChild(new Un(t.hn,"display",{startTime:0,duration:0,tweenParams:["block","none"]}))),this.wl=void 0,s.cp&&void 0!==s.cp.m){var u=ii[this.fe.options.playMode];if((s.cp.m&u)==u){var c=new Dr(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=Rs(s.cp.hl_color)),this.wl=c}}if(s.isFeedback?t.ui.feedbackSlides()[0].appendChild(this.node):t.ui.slides()[0].appendChild(this.node),!s.isBackground){this.Tn(),this._l(),this.restore();var f,l=new Or(t,this);u=ii[this.fe.options.playMode];if(s.i>=0)(f=ke.createZoomAndPan(l,s.z,t.layoutIndex,u))&&this.je.addChild(f);if(this.wl)(f=this.wl.Ju())&&this.je.addChild(f);for(var d in this.Gh){var p=this.Gh[d];p.ne.ta&&p.splitText&&p.splitText({chars:p.ne.ta&ke.TextEffectFlags.CHARS,words:p.ne.ta&ke.TextEffectFlags.WORDS,processStyles:"backgroundColor, textDecoration"})}for(var v=0;this.yl(v,!1);)++v;for(v=0;this.yl(v,!0);)++v}},flexbox:function(){if(this.ne.fb){var t=this.ne.fb[this.fe.layoutIndex];t.b&&rr.prototype.flexbox.call(this,t.b)}},yn:function(t){this._n=t,this.ne.isFeedback?er(this.node,t):this.ne.isBackground?(this.node.style.position=t==Q.AUTO?"sticky":"absolute",this.node.style.overflow="hidden"):er(this.fe.ui.slides()[0],t,!0)},_l:function(){this.ne.isFeedback||this.ne.isBackground||this._n!=Q.AUTO||this.yn(Q.AUTO)},rn:function(){if(this._n===Q.AUTO&&!this.ne.isFeedback&&!this.ne.isBackground&&this.background){var t=this.fe.ui.slides()[0];this.Tl={x:t.offsetHeight>t.scrollHeight,y:t.offsetWidth>t.scrollWidth}}},nn:function(){if(this._n===Q.AUTO&&!this.ne.isFeedback&&!this.ne.isBackground&&this.background&&this.Tl){var t=this.fe.ui.slides()[0];this.Tl.x===t.offsetHeight>t.scrollHeight&&this.Tl.y===t.offsetWidth>t.scrollWidth||this.background.Tn(),delete this.Tl}},onResized:function(t,i){xr.prototype.onResized.call(this,t,i),this._l()},width:function(t){return arguments.length?(this.background&&this.background.width(t),xr.prototype.width.call(this,t)):xr.prototype.width.call(this)},height:function(t){return arguments.length?(this.background&&this.background.height(t),xr.prototype.height.call(this,t)):xr.prototype.height.call(this)},size:function(t,i){return arguments.length?(this.background&&this.background.size(t,i),xr.prototype.size.call(this,t,i)):xr.prototype.size.call(this,t,i)},onLayoutSwitched:function(){var t=this.node.clientWidth,i=this.node.clientHeight;if(t!=this._h||i!=this.yh){var s=t-this._h,e=i-this.yh;this._h=t,this.yh=i,xr.prototype.onResized.call(this,s,e)}this.flexbox&&this.flexbox(),xr.prototype.onLayoutSwitched.call(this),this.Xa&&this.Xa();var r=this,n=function(t){if(t&&t.children)for(var i,s=0,e=r===t?2:1;s<e;++s)for(var a=0,h=t.children.length;a<h;++a)(i=t.children[a]).Ya&&(i.Dh||!i.Sh&&i.shape||i.textContainer)&&i.Tn(),n(i)};n(this),this.fe.hn&&this.fe.hn.onLayoutSwitched()},object:function(t){return(typeof t===Ui?this.Vh[t]:this.Gh[t])||null},timeline:function(t){if(!arguments.length)return this.je;var i,s,e=typeof t===Ui?"name":"id";for(i=0,s=this.ml.length;i<s;++i)if(this.ml[i][e]===t){var r=this.ml[i];return r&&r.kl&&i>0&&(this.Qs(r),r=this.yl(i,!1)),r}return null},Qh:function(){for(var t=this.ml.concat(this.gl),i=0,s=t.length;i<s;++i)t[i].kl=!0},yl:function(t,i){var s,e,r,n,a,h,o,u=0!==t||i?null:this.je,c=i?this.ne.cs:this.ne.tl;if(c&&(c=c[t]),!c)return u;for(u||(u=new Gn,this.qs(u)),i?(u.id=ye(),u.xl=1,this.gl[t]=u):(u.id=c[0],u.name=c[1],this.ml[t]=u,c=c[2]||[]),e=0,r=c.length;e<r;++e)if(s=c[e],h=this.object(s[0])){for(n=0,a=(s=s[1]||[]).length;n<a;++n)if(ke.createEffect&&(o=ke.createEffect.apply(ke,[h].concat(s[n]))))switch(s[n][0]){case ke.EffectType.PAUSE:case ke.EffectType.TIME_OUT:this.fe.demoMode()||(o.startTime(o.startTime()+this.ne.st),this.fe.je.addChild(o),h.qs(o));break;default:u.addChild(o)}}else gs("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.wl&&(this.wl.cleanup(),this.wl.node.parentNode&&this.wl.node.parentNode.removeChild(this.wl.node)),rr.prototype.cleanup.call(this)},clickSequence:function(){var t=this.gl[this.bl];return t&&t.kl&&(this.Qs(t),t=this.yl(this.bl,!0)),t||null},ua:function(){return this.bl<this.gl.length-1?(++this.bl,this.clickSequence()):null},fa:function(){return this.bl>0?(--this.bl,this.clickSequence()):null},Tn:function(){if(rr.prototype.Tn.call(this),this.Fh||(this.Fh=0),this.Fh>10)gs("Recursive checking resized: "+this.name());else{++this.Fh,this.fe.hn&&this.fe.hn.slide==this&&this.fe.hn.onResized(0,0);for(var t=this,s=this.findObject(function(s){var e=s.ne.k;return(e==i.G||e==i.V)&&s!=t},!0),e=0,r=s.length;e<r;++e)s[e].Qf();--this.Fh}},savedData:function(t){var i=this.fe.se.slides,s=i[this.ne.index];return t&&!s&&(s=i[this.ne.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.ne,i=this.fe,s=i.Rr||0,e=ii[this.fe.options.playMode];if((i.ne.cc.modes&e)==e){if(i.ne.responsive&&i.hn&&i.hn.slide&&i.hn.slide.ne.i!=this.ne.i){var r=i.hn;(a=i.ui.canvas())&&r.node&&r.node.remove(),delete i.hn}if(!i.hn){var n={};n.fill=i.ne.cc.fill,n.textStyle=i.ne.cc.textStyle,n.margin=i.ne.cc.margin;var a;r=new hr(this,n);i.hn=r,(a=i.ui.canvas())&&a.append(r.node)}i.hn.slide=this,i.Cl&&(this.je.removeChild(i.Cl),delete i.Cl);for(var h=new Zn({startTime:0}),o=0;o<t.ca.n.length;o++){var u=t.ca.n[o];0==o&&u.startTime>0&&h.addChild(new Un(this.fe.hn,"display",{startTime:0,duration:0,tweenParams:["block","none"]})),h.addChild(new Un(this.fe.hn,"display",{startTime:u.startTime,duration:0,tweenParams:["none","block"]})),h.addChild(new Un(this.fe.hn,"ccNode",{startTime:u.startTime,duration:0,tweenParams:["",u.texts[s]],tweenType:ti.bs})),h.addChild(new Un(this.fe.hn,"display",{startTime:u.startTime+u.duration,duration:0,tweenParams:["block","none"]}))}this.je.addChild(h),i.Cl=h}},ha:function(t){var i=rr.prototype.ha.call(this,t);return!i&&this.background&&(i=this.background.ha(t)),i},filterEvent:function(t){var i=t.target,s=this.ha(i);return s||this.ne.isFeedback||!(s=this.fe.bottomSlide&&this.fe.bottomSlide.ha(i))&&this.fe.topSlide&&(s=this.fe.topSlide.ha(i)),!s||rr.prototype.filterEvent.call(s,t)},As:function(){var t=this.node.parentNode;return t||(t=this.ne.isFeedback?this.fe.ui.feedbackSlides()[0]:this.fe.ui.slides()[0]),t||this.node},tn:function(){this.ne.csa&&this.fe.clickSequenceForward(this),t(this).triggerHandler("ap-load")}}),an={0:[function(t,i,s,e){this.addRect(t,i,s,e)}],1:[function(t,i,s,e,r){var n=r[0]*$i(s/2,e/2);this.addRoundedRect(t,i,s,e,n,n)},function(t,i,s){var e=s[0]*$i(t/2,i/2),r=is(e*(1-Vi(2)/2));return[r,r,r,r]},function(t,i,s){var e;return t<i?(e=t/(1-s[0]*(1-Vi(2)/2)),e=2*is((e-t)/2)):(e=i/(1-s[0]*(1-Vi(2)/2)),e=2*is((e-i)/2)),[t+e,i+e]}],2:[function(t,i,s,e,r){on(this,t,i,s,e,r,!1)}],3:[function(t,i,s,e,r){on(this,t,i,s,e,r,!0)},function(t,i){var s=.2*$i(t,i),e=is(s*(1-Vi(2)/2));return[e,e,e,e]},function(t,i){var s,e;return t<i?e=i+.4*(s=t/(1-.4*(1-ji(zi/4))))*(1-ji(zi/4)):s=t+.4*(e=i/(1-.4*(1-ji(zi/4))))*(1-ji(zi/4)),[is(s),is(e)]}],4:[function(t,i,s,e,r){var n=t+bs(s-$i(s,e)*r[0],0,s),a=i+e/2*r[1];this.moveTo(t,a).lineTo(n,a).lineTo(n,i).lineTo(t+s,i+e/2).lineTo(n,i+e).lineTo(n,i+e-r[1]*e/2).lineTo(t,i+e-r[1]*e/2).closeSubpath()},function(t,i,s){var e=bs(t-$i(t,i)*s[0],0,t),r=i/2*s[1];return[0,r,i<=0?0:is((t-e)*(i-2*r)/i),r]},function(t,i,s){var e=s[0],r=s[1];if(r<0&&(r=0),r>1&&(r=1),r<1){var n=i/(1-r),a=t+(1-r)*e*n;if(a<n){var h=1-(1-r)*e;h>.001&&(a=t/h)}return[is(a),is(n)]}return[t,i]}],5:[function(t,i,s,e,r){var n=t+bs($i(s,e)*r[0],0,s),a=i+e/2*r[1];this.moveTo(n,i).lineTo(n,a).lineTo(t+s,a).lineTo(t+s,i+e-r[1]*e/2).lineTo(n,i+e-r[1]*e/2).lineTo(n,i+e).lineTo(t,i+e/2).closeSubpath()},function(t,i,s){var e=bs($i(t,i)*s[0],0,t),r=i/2*s[1];return[i<=0?0:is(e*(i-2*r)/i),r,0,r]},function(t,i,s){var e=s[0],r=s[1];if(r<0&&(r=0),r>1&&(r=1),r<1){var n=i/(1-r),a=t+(1-r)*e*n;if(a<n){var h=1-(1-r)*e;h>.001&&(a=t/h)}return[is(a),is(n)]}return[t,i]}],6:[function(t,i,s,e,r){var n=i+bs($i(s,e)*r[0],0,e),a=t+s/2*r[1];this.moveTo(t,n).lineTo(t+s/2,i).lineTo(t+s,n).lineTo(t+s-r[1]*s/2,n).lineTo(t+s-r[1]*s/2,i+e).lineTo(a,i+e).lineTo(a,n).lineTo(t,n).closeSubpath()},function(t,i,s){var e=bs($i(t,i)*s[0],0,i),r=t/2*s[1];return[r,t<0?0:is(e*(t-2*r)/t),r,0]},function(t,i,s){var e=s[0],r=s[1];if(r<0&&(r=0),r>1&&(r=1),r<1){var n=t/(1-r),a=i+(1-r)*e*n;if(a<n){var h=1-(1-r)*e;h>.001&&(a=i/h)}return[is(n),is(a)]}return[t,i]}],7:[function(t,i,s,e,r){var n=bs(e-$i(s,e)*r[0],0,e),a=t+s/2*r[1],h=i+n;this.moveTo(t,h).lineTo(a,h).lineTo(a,i).lineTo(t+s-s/2*r[1],i).lineTo(t+s-s/2*r[1],h).lineTo(t+s,h).lineTo(t+s/2,i+e).closeSubpath()},function(t,i,s){var e=bs(i-$i(t,i)*s[0],0,i),r=t/2*s[1];return[r,0,r,t<=0?0:is((i-e)*(t-2*r)/t)]},function(t,i,s){var e=s[0],r=s[1];if(r<0&&(r=0),r>1&&(r=1),r<1){var n=t/(1-r),a=i+(1-r)*e*n;if(a<n){var h=1-(1-r)*e;h>.001&&(a=i/h)}return[is(n),is(a)]}return[t,i]}],8:[function(t,i,s,e,r){var n=t+s/2*(1+r[0]),a=i+e/2*(1+r[1]),h=ts(r[1],r[0]),o=h-.15,u=h+.15;this.moveTo(n,a),this.lineTo(t+s/2+s/2*ji(o),i+e/2+e/2*Qi(o)),this.arcTo(s/2,e/2,t+s/2+s/2*ji(u),i+e/2+e/2*Qi(u),!0,!1),this.closeSubpath()},function(t,i){var s=1-Vi(2)/2,e=is(t*s/2),r=is(i*s/2);return[e,r,e,r]},function(t,i){var s=1-Vi(2)/2,e=i/(1-s);return[t+is(t/(1-s)-t),i+is(e-i)]}],9:[function(t,i,s,e,r){var n=r[0]*$i(s/2,e/2);this.moveTo(t+n,i).lineTo(t+s-n,i).lineTo(t+s-n,i+n).lineTo(t+s,i+n).lineTo(t+s,i+e-n).lineTo(t+s-n,i+e-n).lineTo(t+s-n,i+e).lineTo(t+n,i+e).lineTo(t+n,i+e-n).lineTo(t,i+e-n).lineTo(t,i+n).lineTo(t+n,i+n).closeSubpath()},function(t,i,s){var e=s[0]*$i(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-Vi(2)/2,e=is(t*s/2),r=is(i*s/2);return[e,r,e,r]},function(t,i){var s=1-Vi(2)/2,e=i/(1-s);return[t+is(t/(1-s)-t),i+is(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=is(t/4),e=is(i/4);return[s,e,s,e]},function(t,i){return[2*t,2*i]}],12:[function(t,i,s,e,r){var n=t+s/2+r[0]*s/2,a=i+e/2+r[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(n,a,.2/11*s,.2/11*s).addEllipse(n+(t+s/2-n)/6,a+(i+e/2-a)/6,.5/11*s,.5/11*s).addEllipse(n+(t+s/2-n)/2.5,a+(i+e/2-a)/2.5,.8/11*s,.8/11*s)},function(t,i){var s=is(t/8),e=is(i/4);return[s,e,s,e]},function(t,i){return[t+is(t/3),2*i]}],14:[function(t,i,s,e,r){var n=r[0]*s/2,a=r[1]*e/2;this.moveTo(t,i+e/2).lineTo(t+n,i).lineTo(t+n,i+a).lineTo(t+s-n,i+a).lineTo(t+s-n,i).lineTo(t+s,i+e/2).lineTo(t+s-n,i+e).lineTo(t+s-n,i+e-a).lineTo(t+n,i+e-a).lineTo(t+n,i+e).closeSubpath()},function(t,i,s){var e=is(s[0]*t/2),r=is(i*(s[1]/2));return[e,r,e,r]},function(t,i,s){var e=s[0],r=s[1];return e<1&&r<1?[is(t/(1-e)),is(i/(1-r))]:[t,i]}],15:[function(t,i,s,e,r){var n=r[0]*s/2,a=r[1]*e/2;this.moveTo(t,i+a).lineTo(t+s/2,i).lineTo(t+s,i+a).lineTo(t+s-n,i+a).lineTo(t+s-n,i+e-a).lineTo(t+s,i+e-a).lineTo(t+s/2,i+e).lineTo(t,i+e-a).lineTo(t+n,i+e-a).lineTo(t+n,i+a).closeSubpath()},function(t,i,s){var e=is(t*(s[0]/2)),r=is(s[1]*i/2);return[e,r,e,r]},function(t,i,s){var e=s[0],r=s[1];return e<1&&r<1?[is(t/(1-e)),is(i/(1-r))]:[t,i]}],16:[function(t,i,s,e,r){var n=r[0]*s,a=r[1]*e,h=$i(r[2],r[0])*s,o=Ki(r[3],r[1])*e;this.moveTo(t,i).lineTo(t+h,i).lineTo(t+h,i+o).lineTo(t+n,i+o).lineTo(t+n,i+a).lineTo(t+s,i+e/2).lineTo(t+n,i+e-a).lineTo(t+n,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,is(t*(1-$i(s[2],s[0]))),0]},function(t,i,s){var e=$i(s[2],s[0]);return e>0?[is(t/e),i]:[t,i]}],17:[function(t,i,s,e,r){var n=r[1]*s,a=r[2]*e,h=Ki(r[0],r[1])*s,o=$i(r[2],r[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-n,i+a).lineTo(t+s/2,i+e).lineTo(t+n,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,is(i*(1-$i(s[2],s[3])))]},function(t,i,s){var e=$i(s[2],s[3]);return[t,is(i/e)]}],18:[function(t,i,s,e,r){var n=r[0]*s,a=r[1]*e,h=Ki(r[2],r[0])*s,o=Ki(r[3],r[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+n,i+e-o).lineTo(t+n,i+e-a).lineTo(t,i+e/2).lineTo(t+n,i+a).lineTo(t+n,i+o).lineTo(t+h,i+o).closeSubpath()},function(t,i,s){return[is(Ki(s[2],s[0])*t),0,0,0]},function(t,i,s){var e=Ki(s[2],s[0]);return e<1?[is(t/(1-e)),i]:[t,i]}],19:[function(t,i,s,e,r){var n=r[1]*s,a=r[2]*e,h=Ki(r[0],r[1])*s,o=Ki(r[2],r[3])*e;this.moveTo(t+s/2,i).lineTo(t+n,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-n,i+a).closeSubpath()},function(t,i,s){return[0,is(Ki(s[2],s[3])*i),0,0]},function(t,i,s){var e=Ki(s[2],s[3]);return e<1?[t,is(i/(1-e))]:[t,i]}],20:[function(t,i,s,e,r){var n=r[0],a=r[1];this.moveTo(t+s*n,i).lineTo(t+s,i+e/2).lineTo(t+s*n,i+e).lineTo(t+s*n,i+e*(1-a/2)).lineTo(t,i+e*(1-a/2)).lineTo(t+(s-s*n)/2,i+e/2).lineTo(t,i+e*a/2).lineTo(t+s*n,i+e*a/2).closeSubpath()},function(t,i,s){var e=s[0],r=s[1];return[is(t*(1-e)/2),is(i/2*r),is(t-t*((1-e)*r+e)),is(i/2*r)]},function(t,i,s){var e=s[0],r=s[1];return r<1&&e>0?[is(t/((1-e)*r+e-(1-e)/2)),is(i/(1-r))]:[t,i]}],21:[function(t,i,s,e,r){var n=s*r[0];this.moveTo(t,i).lineTo(t+n,i).lineTo(t+s,i+e/2).lineTo(t+n,i+e).lineTo(t,i+e).lineTo(t+s-n,i+e/2).closeSubpath()},function(t,i,s){var e=s[0];return[is(t*(1-e)),0,is(t*(1-e)),0]}],22:[function(t,i,s,e,r){this.moveTo(t+r[0]*s,i).lineTo(t+s,i+e).lineTo(t,i+e).closeSubpath()},function(t,i,s){var e=s[0];return[is(t*e/2),is(i/2),is((1-e)*t/2),0]},function(t,i){return[is(2*t),is(2*i)]}],23:[function(t,i,s,e,r){this.moveTo(t,i).lineTo(t+s,i+e).lineTo(t,i+e).closeSubpath()},function(t,i){return[is(1*t/10),is(6*i/10),is(4*t/10),is(1*i/10)]},function(t,i){return[is(2*t),is(10*i/3)]}],24:[function(t,i,s,e,r){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[is(.2*t),0,is(.2*t),0]},function(t,i){return[is(t/.6),is(i)]}],25:[function(t,i,s,e,r){this.moveTo(t+s/2,i).lineTo(t+s,i+e/2*(1-ji(2*zi/4.7))).lineTo(t+s/2+s/2/ji(2*zi/20)*Qi(2*zi/10),i+e).lineTo(t+s/2-s/2/ji(2*zi/20)*Qi(2*zi/10),i+e).lineTo(t,i+e/2*(1-ji(2*zi/4.7))).closeSubpath()},function(t,i){return[is(t/4),is(i/4),is(t/4),is(i/4)]},function(t,i){return[2*t,2*i]}],26:[function(t,i,s,e,r){var n=r[0]*$i(s/2,e/2);this.moveTo(t,i+e/2).lineTo(t+n,i+e).lineTo(t+s-n,i+e).lineTo(t+s,i+e/2).lineTo(t+s-n,i).lineTo(t+n,i).closeSubpath()},function(t,i,s){var e=Wi(3,s[0]),r=is(e*$i(t/10,i/10));return[r,r,r,r]},function(t,i,s){var e,r,n=Wi(3,s[0]);return t<i?r=i+n*(e=t/(1-2*n/10))/5:e=t+n*(r=i/(1-2*n/10))/5,[is(e),is(r)]}],27:[function(t,i,s,e,r){var n=r[0]*$i(s/2,e/2);this.moveTo(t+n,i).lineTo(t+s-n,i).lineTo(t+s,i+n).lineTo(t+s,i+e-n).lineTo(t+s-n,i+e).lineTo(t+n,i+e).lineTo(t,i+e-n).lineTo(t,i+n).closeSubpath()},function(t,i,s){var e=.70710678118*s[0]*$i(t/2,i/2);return[e,e,e,e]},function(t,i,s){if(s[0]>1)return[t,i];var e,r,n=.70710678118*s[0];return t<i?r=i+n*(e=t/(1-n)):e=t+n*(r=i/(1-n)),[is(e),is(r)]}],28:[function(t,i,s,e,r){var n=r[0]*$i(s/2,e/2);this.moveTo(t,i+n).cubicTo(t,i+n,t+n,i+n,t+n,i).lineTo(t+s-n,i).cubicTo(t+s-n,i,t+s-n,i+n,t+s,i+n).lineTo(t+s,i+e-n).cubicTo(t+s,i+e-n,t+s-n,i+e-n,t+s-n,i+e).lineTo(t+n,i+e).cubicTo(t+n,i+e,t+n,i+e-n,t,i+e-n).closeSubpath()},function(t,i,s){var e=is(s[0]*$i(t/2,i/2)*ji(zi/4));return[e,e,e,e]},function(t,i,s){if(s[0]>1/ji(zi/4))return[t,i];var e=0;return t<i?e=(t/(1-s[0]*ji(zi/4))-t)/2:t>i&&(e=(i/(1-s[0]*ji(zi/4))-i)/2),[t+is(2*e),i+is(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[is(.2*t),is(.25*i),is(.2*t),is(.35*i)]},function(t,i){return[is(5*t/3),is(5*i/2)]}],32:[function(t,i,s,e,r){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+r[0]*s,i,t+r[0]*s,i+e/2,t+r[0]*s,i+e/2).cubicTo(t+r[0]*s,i+e/2,t+r[0]*s,i+e,t+s,i+e).closeSubpath()},function(t,i,s){return[is(t*s[0]/3),is(i*(1-s[0])/2),is(t*(1-s[0])),is(i*(1-s[0])/2)]},function(t,i,s){var e=s[0];return e>0?[is(t/e*1.5),is(i/e)]:[t,i]}],36:[function(t,i,s,e,r){var n,a=.5*s/$i(s,e);(n=r[0])>a&&(n=a),n<0&&(n=0);var h=n*$i(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,r,n=s[0];return e=.5*t/$i(t,i),[r=i/3*(s=n<0?0:n>e?e:n)/e,i/3*s/e*2,r,0]},function(t,i,s){return[t*(1+2*s[0]),i*(1+2*s[0])]}],44:[function(t,i,s,e,r){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,r){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,r){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,is(10*i/9)]}],48:[function(t,i,s,e,r){var n=bs(r[0]*$i(s,e),0,s);this.moveTo(t,i).lineTo(t+s-n,i).lineTo(t+s,i+e/2).lineTo(t+s-n,i+e).lineTo(t,i+e).closeSubpath()},function(t,i,s){return[0,0,bs(s[0]*$i(t,i),0,t)/2,0]},function(t,i,s){var e=s[0];if(e>0){var r=i,n=t+e*r/2;return n<r&&(n=is(2*t/(2-e))),[is(n),is(r)]}return[t,i]}],49:[function(t,i,s,e,r){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,r){var n=r[1]*s/2,a=r[0]*e/2;n<=0?this.moveTo(t-2*n,i+a).cubicTo(t+s/4-2*n,i-2.5*a,t+3*s/4,i+5*a,t+s,i+a).lineTo(t+s+2*n,i+e-a).cubicTo(t+3*s/4+2.2*n,i+e+2.5*a,t+s/4,i+e-5*a,t,i+e-a).lineTo(t-2*n,i+a):this.moveTo(t,i+a).cubicTo(t+s/4,i-2.5*a,t+3*s/4-2*n,i+5*a,t+s-2*n,i+a).lineTo(t+s,i+e-a).cubicTo(t+3*s/4,i+e+2.5*a,t+s/4+2*n,i+e-5*a,t+2*n,i+e-a).lineTo(t,i+a),this.closeSubpath()},function(t,i,s){var e=s[1]*t/2,r=s[0]*i/2;return[2*Gi(e),2.2*r,2*Gi(e),2.2*r]},function(t,i,s){return[t+2*(t*Gi(s[1])/(1-2*Gi(s[1]))),i+2*(i*s[0]/(1-2.2*s[0]))]}],52:[function(t,i,s,e,r,n){!function(t,i,s,e,r,n,a){var h,o=cn(a),u=o.cXs,c=o.cYs,f=o.minX,l=o.minY,d=o.maxX,p=o.maxY,v=e/(d-f),m=r/(p-l);for(t.moveTo(i+(u[0]-f)*v,s+(c[0]-l)*m).lineTo(i+(u[1]*n-f)*v,s+(c[1]*n-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]*n-f)*v,s+(c[2*h+1]*n-l)*m);t.closeSubpath()}(this,t,i,s,e,r[0],n)},function(t,i,s,e){var r=cn(e),n=r.cXs,a=r.cYs,h=r.minX,o=r.minY,u=r.maxX,c=r.maxY,f=s[0],l=t/(u-h),d=i/(c-o),p=0,v=0;if(5===e)return[p=t-(n[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-(n[1]*f-h)*l,v=(a[1]*f-o)*d;break;case 12:p=t-(n[3]*f-h)*l,v=(a[3]*f-o)*d;break;case 24:p=t-(n[5]*f-h)*l,v=(a[5]*f-o)*d}return[p,v,p,v]},function(t,i,s,e){var r=s[0],n=0,a=0,h=cn(e),o=h.cXs,u=h.cYs,c=h.minX,f=h.minY,l=h.maxX,d=h.maxY;if(0==r)return[t,i];if(5==e)return[is(t*(l-c)/(-l-c+2*o[1]*r)),is(i*(d-f)/((u[5]-u[1])*r))];switch(e){case 4:case 6:case 8:n=is((l-o[1]*r)/(-l-c+2*o[1]*r)*t),a=is((u[1]*r-f)/(d-f-2*(u[1]*r-f))*i);break;case 12:n=is((l-o[3]*r)/(-l-c+2*o[3]*r)*t),a=is((u[3]*r-f)/(d-f-2*(u[3]*r-f))*i);break;case 24:n=is((l-o[5]*r)/(-l-c+2*o[5]*r)*t),a=is((u[5]*r-f)/(d-f-2*(u[5]*r-f))*i)}return[t+2*n,i+2*a]}]},hn=Qs({$init:function(){this.Sl=""},path:function(t){return arguments.length?(this.Sl=t,this):this.Sl},clear:function(){return this.Sl="",this},addPath:function(t){return this.Sl+=" "+t,this},moveTo:function(t,i){return this.Sl+=" M"+t+","+i,this},lineTo:function(t,i){return this.Sl+=" L"+t+","+i,this},arcTo:function(t,i,s,e,r,n){return this.Sl+=" A"+t+","+i+" 0 "+(r?1:0)+","+(n?1:0)+" "+s+","+e,this},cubicTo:function(t,i,s,e,r,n){return this.Sl+=" C"+t+","+i+" "+s+","+e+" "+r+","+n,this},quadraticTo:function(t,i,s,e){return this.Sl+=" Q"+t+","+i+" "+s+","+e,this},closeSubpath:function(){return this.Sl+=" 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,r,n){return this.moveTo(t,i+n).arcTo(r,n,t+r,i,!1,!0).lineTo(t+s-r,i).arcTo(r,n,t+s,i+n,!1,!0).lineTo(t+s,i+e-n).arcTo(r,n,t+s-r,i+e,!1,!0).lineTo(t+r,i+e).arcTo(r,n,t,i+e-n,!1,!0).closeSubpath()},addMarker:function(t,i,s){var e,r,n;switch(r=(0==(e=i%3)?2:1==e?3:5)*s,n=(0==(e=ss(i/3))?2:1==e?3:5)*s,t){case ft.ARROW:this.moveTo(0,0).lineTo(r,-n/2).lineTo(r,n/2).closeSubpath();break;case ft.OPEN:var a=ts(n/2,r),h=ss(s/Qi(a)/2);this.moveTo(r+h,-n/2).lineTo(h,0).lineTo(r+h,n/2);break;case ft.STEALTH:this.moveTo(0,0).lineTo(r,-n/2).lineTo(r/2,0).lineTo(r,n/2).closeSubpath();break;case ft.DIAMOND:this.moveTo(-r/2,0).lineTo(0,-n/2).lineTo(r/2,0).lineTo(0,n/2).closeSubpath();break;case ft.OVAL:this.addEllipse(0,0,r/2,n/2)}return this}});function on(t,i,s,e,r,n,a){var h=n[0],o=n[1],u=i+e/2*(1+h),c=s+r/2*(1+o),f=a?.2*$i(e,r):0;t.moveTo(i+f,s),h<=0&&o<=0&&Gi(h)<=Gi(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+r-f),a&&t.arcTo(f,f,i+e-f,s+r,!1,!0),t.lineTo(i+f,s+r),a&&t.arcTo(f,f,i,s+r-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h<=0&&o<=0&&Gi(h)>Gi(o)?(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+r-f),a&&t.arcTo(f,f,i+e-f,s+r,!1,!0),t.lineTo(i+f,s+r),a&&t.arcTo(f,f,i,s+r-f,!1,!0),t.lineTo(i,s+4*r/10).lineTo(u,c).lineTo(i,s+2*r/10),a&&t.arcTo(f,f,i+f,s,!1,!0)):h>0&&o<=0&&Gi(h)<=Gi(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+r-f),a&&t.arcTo(f,f,i+e-f,s+r,!1,!0),t.lineTo(i+f,s+r),a&&t.arcTo(f,f,i,s+r-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h>0&&o<=0&&Gi(h)>Gi(o)?(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+2*r/10).lineTo(u,c).lineTo(i+e,s+4*r/10).lineTo(i+e,s+r-f),a&&t.arcTo(f,f,i+e-f,s+r,!1,!0),t.lineTo(i+f,s+r),a&&t.arcTo(f,f,i,s+r-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h<=0&&o>0&&Gi(h)>Gi(o)?(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+r-f),a&&t.arcTo(f,f,i+e-f,s+r,!1,!0),t.lineTo(i+f,s+r),a&&t.arcTo(f,f,i,s+r-f,!1,!0),t.lineTo(i,s+.8*r).lineTo(u,c).lineTo(i,s+6*r/10).lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h<=0&&o>0&&Gi(h)<=Gi(o)?(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+r-f),a&&t.arcTo(f,f,i+e-f,s+r,!1,!0),t.lineTo(i+4*e/10,s+r).lineTo(u,c).lineTo(i+2*e/10,s+r).lineTo(i+f,s+r),a&&t.arcTo(f,f,i,s+r-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h>0&&o>0&&Gi(h)>Gi(o)?(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+6*r/10).lineTo(u,c).lineTo(i+e,s+.8*r).lineTo(i+e,s+r-f),a&&t.arcTo(f,f,i+e-f,s+r,!1,!0),t.lineTo(i+f,s+r),a&&t.arcTo(f,f,i,s+r-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)):h>0&&o>0&&Gi(h)<=Gi(o)&&(t.lineTo(i+e-f,s),a&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+r-f),a&&t.arcTo(f,f,i+e-f,s+r,!1,!0),t.lineTo(i+.8*e,s+r).lineTo(u,c).lineTo(i+6*e/10,s+r).lineTo(i+f,s+r),a&&t.arcTo(f,f,i,s+r-f,!1,!0),t.lineTo(i,s+f),a&&t.arcTo(f,f,i+f,s,!1,!0)),t.closeSubpath()}var un={};function cn(t){var i=un[t];if(!i){var s,e=[],r=[],n=1,a=1,h=-1,o=-1;for(s=0;s<t;s++)e[2*s]=ji(2*zi*s/t-zi/2),r[2*s]=Qi(2*zi*s/t-zi/2),e[2*s]<n&&(n=e[2*s]),r[2*s]<a&&(a=r[2*s]),e[2*s]>h&&(h=e[2*s]),r[2*s]>o&&(o=r[2*s]),e[2*s+1]=ji(2*zi*((2*s+1)/2)/t-zi/2),r[2*s+1]=Qi(2*zi*((2*s+1)/2)/t-zi/2);i=un[t]={cXs:e,cYs:r,minX:n,minY:a,maxX:h,maxY:o}}return i}function fn(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 ln=ke.browser.ie||ke.browser.edge,dn=Qs(ir,{$init:function(t,i){this.parent=i,this.slide=i.slide,this.container=t,this.Ol=_t.Et,this.Go="none",this.Vo=1,this.El="black",this.Il=1,this.Pl="round",this.Rl="miter",this.Gs=0,this.Wo=[]},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],r=0;r<e.length;++r){var n=e[r];if(n){var a=n.p;s.push(a.slice()),s[s.length-1].f=n.f}}this.Cf=s,this.Cr()?this.uu():this.Ml()&&this.On()},shape:function(t,i){this.Gs=t,this.Wo=i,this.Cr()?this.uu():this.Ml()&&this.On()},flip:function(t,i){this.shapeNode&&Ps(this.shapeNode,t,i,!0),t?this.Fu=1:delete this.Fu,i?this.Lu=1:delete this.Lu},lineStyle:function(t){if(typeof t!==Ui&&(t=t&lt?"solid":t&dt?"dotted":t&pt?"dashed":t&vt?"dash-dotted":"none"),this.Go=t,"none"===t)this.Nl?this.Nl.style.display=t:this.Al&&(this.Al.style.stroke=t),this.Dl(),this.Yl()&&this.uu();else if(this.Cr()){this.Nl?this.Nl.style.display="":this.Al&&(this.Al.style.stroke=this.El||"black");var i="none",s=this.Vo||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.Al&&(this.Al.style.strokeDasharray=i),this.Dl(),this.Yl()&&this.uu()}else this.Ml()&&this.On()},lineJoin:function(t){typeof t!==Ui&&(t=t&bt?"round":t&wt?"bevel":"miter"),this.Rl=t,this.Al&&(this.Al.style.strokeLinejoin=t)},lineCap:function(t){if(typeof t!==Ui){var i="butt";t&mt?i="square":t&gt&&(i="round"),t=i}this.Pl=t,this.Al&&(this.Al.style.strokeLinecap=t)},lineWidth:function(t){if(this.Vo=t,this.Cr()){if(this.Dl(),this.Yl()&&this.uu(),this.Al&&(this.Al.style.strokeWidth=t),this.hasArrow()&&(this.uu(),this.Xl&&(this.Xl.style.strokeWidth=t),this.Ll&&(this.Ll.style.strokeWidth=t)),"none"!==this.Go&&this.lineStyle(this.Go),ke.browser.chromiums){var i=this.node.style;parseInt(i.minWidth)<t&&(i.minWidth=t+"px",i.minHeight=t+"px")}}else this.Ml()&&this.On()},Dl:function(){if(this.shapeNode){var t=this.Vo%2/2;t&&"none"!==this.Go?this.shapeNode.setAttribute("transform","translate("+t+", "+t+")"):this.shapeNode.removeAttribute("transform")}},lineColor:function(t,i,s,e){var r;typeof t===Ui?(this.El=t,e=i):this.El=Rs(t,i,s),this.Il=void 0===e?1:e,this.Nl?(this.Nl.style.opacity=this.Il,this.Al.style.stroke=this.El,this.Xl&&(r=this.Xl.style,this.Fl&&this.Fl.type!==ft.NONE?this.Fl.type===ft.OPEN?(r.stroke=this.El,r.fill="none"):(r.stroke="none",r.fill=this.El):r.stroke=r.fill="none"),this.Ll&&(r=this.Ll.style,this.Hl&&this.Hl.type!==ft.NONE?this.Hl.type===ft.OPEN?(r.stroke=this.El,r.fill="none"):(r.stroke="none",r.fill=this.El):r.stroke=r.fill="none")):this.Al&&("none"!==this.Go&&(this.Al.style.stroke=this.El),this.Al.style.strokeOpacity=this.Il)},startArrow:function(t,i){this.Fl={type:t,size:i},this.Cr()?(this.uu(),this.lineColor(this.El,this.Il)):this.Ml()&&this.On()},endArrow:function(t,i){this.Hl={type:t,size:i},this.Cr()?(this.uu(),this.lineColor(this.El,this.Il)):this.Ml()&&this.On()},fillNone:function(){this.Ol=_t.Et,this.Ul(),this.Uo&&(!this.Cf||function(t){for(var i=[],s=0,e=t.length;s<e;++s){var r=t[s];r&&(i=i.concat(r))}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.Cf)?(this.Uo.style.fill="white",this.Uo.style.fillOpacity=0):this.Uo.style.fill="none")},fillSolid:function(t,i,s,e){this.Ol=_t.It,this.Ul(),typeof t===Ui?(this.Bl=t,e=i):this.Bl=Rs(t,i,s),this.Zl=void 0===e?1:e,this.Cr()?(this.Uo.style.fill=this.Bl,this.Uo.style.fillOpacity=this.Zl):this.Ml()&&this.On()},fillLinearGradient:function(t,i,s,e){if(this.Ol=_t.Rt,this.zl=i,this.Gl=t,this.Vl=s,this.Wl=e,this.Ul(),this.Cr()){if(!this.$l){this.$l=us.createElementNS(Bi,"linearGradient"),this.$l.id=this.container.id?this.container.id+"-lgrad":"ap-lgrad-"+ye(),this.$l.setAttribute("gradientUnits",Zi);var r=this.node.querySelector("defs");r||(r=us.createElementNS(Bi,"defs"),this.node.appendChild(r)),r.appendChild(this.$l)}this.Uo.style.fill="url(#"+this.$l.id+")",this.Uo.style.fillOpacity=1,this.fillAngle(i),this.fillColorStops(t),this.fillLinearGradientTransform(s,e)}else this.Ml()&&this.On()},fillRadialGradient:function(t,i,s,e,r){if(this.Ol=_t.Mt,this.Gl=t,this.Kl=i,this.jl=s,this.Ql=e,this.ql=r,this.Ul(),this.Cr()){if(!this.Jl){this.Jl=us.createElementNS(Bi,"radialGradient"),this.Jl.id=this.container.id?this.container.id+"-rgrad":"ap-rgrad-"+ye(),this.Jl.setAttribute("gradientUnits",Zi);var n=this.node.querySelector("defs");n||(n=us.createElementNS(Bi,"defs"),this.node.appendChild(n)),n.appendChild(this.Jl)}this.Uo.style.fill="url(#"+this.Jl.id+")",this.Uo.style.fillOpacity=1;var a=fn(this.node),h=a.x+a.width/2,o=a.y+a.height/2,u=Vi(a.width*a.width/4+a.height*a.height/4);Is(this.Jl,{cx:h,cy:o,r:u}),this.fillColorStops(t),this.fillRadialGradientTransform(i,s,e,r)}else this.Ml()&&this.On()},fillAngle:function(t){if((t%=360)<0&&(t+=360),this.zl=t,this.Ol===_t.Rt&&this.$l){var i,s,e,r,n=Ji(t*zi/180),a=1+n*n,h=fn(this.node);t<90?(i=h.x,s=h.y,e=h.x+h.width,r=h.y+h.height):t<180?(e=h.x,r=h.y+h.height,i=h.x+h.width,s=h.y):t<270?(e=h.x,r=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,r=h.y),Is(this.$l,{x1:(i+n*s)/a,y1:(i+n*s)*n/a,x2:(e+n*r)/a,y2:(e+n*r)*n/a}),this.fillLinearGradientTransform(this.Vl,this.Wl)}},fillColorStops:function(t){var i,s,e,r,n,a,h;if(this.Gl=t,this.Ol===_t.Rt?i=this.$l:this.Ol===_t.Mt&&(i=this.Jl),i){for(;s=i.lastChild;)i.removeChild(s);for(r=0,n=t.length;r<n;++r)e=t[r],s=us.createElementNS(Bi,"stop"),typeof e[1]===Ui?(a=e[1],h=e[2]):(a=Rs(e[1],e[2],e[3]),h=e[4]),void 0===h&&(h=1),Is(s,{offset:e[0]+"%","stop-color":a,"stop-opacity":h}),i.appendChild(s)}},fillLinearGradientTransform:function(t,i){if(this.Ol===_t.Rt&&this.$l){this.Vl=t,this.Wl=i;var s,e,r,n=fn(this.node),a=this.$l,h="";0!=t&&(s=this.zl*zi/180,h+="translate("+n.width*t/100*ji(s)+", "+n.width*t/100*Qi(s)+")"),100!=i&&(e=n.width/2,r=n.height/2,""!=h&&(h+=" "),h+="translate("+e+", "+r+") scale("+i/100+") translate("+-e+", "+-r+")"),h?a.setAttribute("gradientTransform",h):a.removeAttribute("gradientTransform")}},fillRadialGradientTransform:function(t,i,s,e){if(this.Ol===_t.Mt&&this.Jl){this.Kl=t,this.Ql=s,this.jl=i,this.ql=e;var r,n,a=fn(this.node),h=this.Jl,o="";0==t&&0==i||(o="translate("+a.width*t/100+", "+a.height*i/100+")"),100==s&&100==e||(r=a.x+a.width/2,n=a.y+a.height/2,""!=o&&(o+=" "),o+="translate("+r+", "+n+") scale("+s/100+","+e/100+") translate("+-r+", "+-n+")"),o?h.setAttribute("gradientTransform",o):h.removeAttribute("gradientTransform")}},fillImage:function(t,e,r,n,a){if(this.Ol=_t._,this.td=t,this.sd=e,this.nd=r,this.ad=n,this.hd=a,this.Ul(),this.Cr()){if(!this.od){this.od=us.createElementNS(Bi,"pattern"),this.ud=us.createElementNS(Bi,"image"),this.od.appendChild(this.ud),Is(this.od,{id:this.container.id?this.container.id+"-imgfill":"ap-imgfill-"+ye(),patternUnits:"userSpaceOnUse"});var h=this.node.querySelector("defs");h||(h=us.createElementNS(Bi,"defs"),this.node.appendChild(h)),h.appendChild(this.od)}var o=this.parent.prez().getResource(t,e);if(this.ud.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),r===Tt)if((v=this.parent).ne.t!==s.ft){if(Is(this.od,{width:"100%",height:"100%"}),Is(this.ud,{width:"100%",height:"100%",preserveAspectRatio:"none"}),v.ne.k==i.V&&this.container&&"TD"==this.container.tagName){var u=this.container;Is(this.od,{width:parseInt(u.clientWidth)+"px",height:parseInt(u.clientHeight)+"px"}),Is(this.ud,{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._h,p=c.yh;Is(this.od,{x:f+"px",y:l+"px",width:d+"px",height:p+"px"}),Is(this.ud,{width:d+"px",height:p+"px",preserveAspectRatio:"none"})}}else if(r===yt){var v;(v=this.parent).ne.t!==s.ft?(Is(this.od,{width:n+"px",height:a+"px"}),Is(this.ud,{width:n+"px",height:a+"px",preserveAspectRatio:"none"})):(Is(this.od,{x:-v.node.offsetLeft+"px",y:-v.node.offsetTop+"px",width:n+"px",height:a+"px"}),Is(this.ud,{width:n+"px",height:a+"px",preserveAspectRatio:"none"}))}this.Uo.style.fill="url(#"+this.od.id+")",this.Uo.style.fillOpacity=1}else this.Ml()&&this.On()},fd:function(){switch(this.Ol){case _t.Et:this.fillNone();break;case _t.It:this.fillSolid(this.Bl,this.Zl);break;case _t.Rt:this.fillLinearGradient(this.Gl,this.zl,this.Vl,this.Wl);break;case _t.Mt:this.fillRadialGradient(this.Gl,this.Kl,this.jl,this.Ql,this.ql);break;case _t._:this.fillImage(this.td,this.sd,this.nd,this.ad,this.hd)}},applyEffectShadow:function(t,i,s,e,r,n,a){this.ld=t,this.pd=i,this.vd=s,this.gd=e,this.bd=r,this.wd=n,this._d=Rs(e,r,n),this.yd=a,this.Ul();var h,o=s*ji(i/180*zi),u=s*Qi(i/180*zi);if(ke.browser.useCSSShadow){h="drop-shadow("+o+"px "+u+"px "+t/3+"px "+Rs(e,r,n,a)+")";var c=this.parent.node.style;c.filter=h,c.WebkitFilter=h,ke.browser.safari&&(this.parent.Td=!0,$s(c))}if(this.Cr()){if(ke.browser.useCSSShadow)return;if(this.Hu(this.kd,this.xd),this.shapeNode.removeAttribute("filter"),this.Cd)(f=this.node.querySelector("defs"))&&f.removeChild(this.Cd),delete this.Cd,delete this.Sd,delete this.Od,delete this.Ed,delete this.Id,delete this.Pd;ln&&this.Rd&&(this.shapeNode.removeChild(this.Rd),delete this.Rd),this.Cd=us.createElementNS(Bi,"filter"),this.Cd.id=this.container.id?this.container.id+"-dropshadow":"ap-dropshadow-"+ye(),this.Sd=us.createElementNS(Bi,"feFlood"),this.Od=us.createElementNS(Bi,"feComposite"),this.Ed=us.createElementNS(Bi,"feOffset"),this.Id=t>0?us.createElementNS(Bi,"feGaussianBlur"):null,this.Pd=us.createElementNS(Bi,"feComposite");var f,l=this.Cd;l.appendChild(this.Sd),l.appendChild(this.Od),l.appendChild(this.Ed),t>0&&l.appendChild(this.Id),l.appendChild(this.Pd),(f=this.node.querySelector("defs"))||(f=us.createElementNS(Bi,"defs"),this.node.appendChild(f)),f.appendChild(l);var d,p,v,m,g=fn(this.node);if(m=this.Vo+("miter"==this.Rl?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),n=Math.max(g.y+g.height,d.y+d.height),ln){this.Rd=us.createElementNS(Bi,"path");var b=new hn;b.addRect(p,v,e-p,n-v),this.Rd.setAttribute("d",b.path()),this.shapeNode.appendChild(this.Rd)}Is(this.Cd,{id:this.container.id?this.container.id+"-dropshadow":"ap-dropshadow-"+ye(),filterUnits:Zi,primitiveUnits:Zi,style:"color-interpolation-filters:sRGB",x:p,y:v,width:e-p,height:n-v}),Is(this.Sd,{result:"flood","flood-color":this._d,"flood-opacity":this.yd}),Is(this.Od,{result:"composite1",operator:"in",in2:"SourceGraphic",in:"flood"}),Is(this.Ed,{result:"offset",in:"composite1",dx:o,dy:u}),this.Id&&Is(this.Id,{result:"blur",in:"offset",stdDeviation:t/3}),Is(this.Pd,{result:"composite2",operator:"over",in2:t>0?"blur":"offset",in:"SourceGraphic"}),this.shapeNode.setAttribute("filter","url(#"+this.Cd.id+")")}else this.Ml()&&this.On()},clearEffectShadow:function(){if(void 0!=this.ld){if(delete this.ld,delete this.pd,delete this.vd,delete this.gd,delete this.bd,delete this.wd,delete this._d,delete this.yd,ke.browser.useCSSShadow)return this.parent.node.style.WebkitFilter="",this.parent.node.style.filter="",void delete this.parent.Td;if(this.shapeNode.removeAttribute("filter"),this.Cd){var t=this.node.querySelector("defs");t&&t.removeChild(this.Cd),delete this.Cd,delete this.Sd,delete this.Od,delete this.Ed,delete this.Id,delete this.Pd}ln&&this.Rd&&(this.shapeNode.removeChild(this.Rd),delete this.Rd),this.Hu(),this.Ul()}},Md:function(){if(void 0==this.ld)this.clearEffectShadow();else{var t=this.parent.Vs.ne[this.parent.Vs.Ve].s,i=t?t[1]-this.parent.rotateToSlide():this.pd;this.applyEffectShadow(this.ld,i,this.vd,this.gd,this.bd,this.wd,this.yd)}},Hu:function(t,i){if(this.kd=t,this.xd=i,this.Cr()){if(ke.browser.useCSSShadow)return;if(void 0!=this.kd&&void 0!=this.ld){this.Nd||(this.Nd=us.createElementNS(Bi,"image"));var s=this.Nd,e=this.parent.prez().getResource(t,i);this.shapeNode.appendChild(s),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e),Is(s,{x:"0",y:"0",width:"100%",height:"100%",preserveAspectRatio:"none"}),this.parent.imageNode&&(this.parent.imageNode.style.display="none")}else this.Nd&&(this.shapeNode.removeChild(this.Nd),delete this.Nd,this.parent.imageNode&&(this.parent.imageNode.style.display="block"))}else this.Ml()&&this.On()},Ul:function(){if(!ke.browser.useCSSShadow){var t,i=void 0!=this.ld&&this.Ol==_t.Et,s=this.parent.textContainer;if(s)if(t=s.style,i){var e=this.vd*Math.cos(this.pd/180*Math.PI),r=this.vd*Math.sin(this.pd/180*Math.PI),n=this._d.substring(4,this._d.length-1).replace(/ /g,"").split(","),a="rgba("+n[0]+", "+n[1]+", "+n[2]+", "+this.yd+")";t.textShadow=e+"px "+r+"px "+this.ld+"px "+a}else t.textShadow=""}},layout:function(){if(this.uu(),this.Ad){var t=this.parent.node.clientHeight/2;this.parent&&this.parent.textContainer&&(t=this.parent.textContainer.offsetTop+this.parent.textContainer.clientHeight/2),this.Ad.translate(0,t)}if(this.sliderThumbPath&&this.updateSlider(this.parent.value()),this.dropdownNode&&this.updateDropdown(),this.Dd){var i=this.container.clientHeight;this.Dd.translate(0,i/2),this.updateLegend()}this.Ol!==_t.Rt&&this.Ol!==_t.Mt&&this.Ol!=_t._||this.fd(),this.Md(),(this.Fu||this.Lu)&&this.flip(this.Fu,this.Lu)},remove:function(){this.node&&(this.container.removeChild(this.node),this.node=this.shapeNode=this.Nl=this.Al=this.Xl=this.Ll=this.Uo=null)},textMargin:function(t,i){var s,e=[0,0,0,0],r=an[this.Gs];return r&&r[1]&&(e=r[1].apply(null,[t,i].concat(this.Wo)),this.Fu&&(s=e[0],e[0]=e[2],e[2]=s),this.Lu&&(s=e[1],e[1]=e[3],e[3]=s)),e},shapeSizeForText:function(t,i){var s=[t,i],e=an[this.Gs];return e&&e[2]&&(s=e[2].apply(null,[t,i].concat(this.Wo))),s},createIcon:function(t,i,s,e,r,n,a){this.Cr()||this.On(),this.Yd={checked:t,iconSize:i,iconType:s,colorCheckMark:a,colorFill:r,colorBorder:n,borderWidth:e},this.Ad||(this.Ad={init:function(){this.border=us.createElementNS(Bi,"path"),this.fill=us.createElementNS(Bi,"path"),this.mark=us.createElementNS(Bi,"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.Ad.init(),this.Ad.appendTo(this.shapeNode))},updateIcon:function(){if(this.Ad&&this.Yd){var t=this.parent.ne.k;t==i.D?this.Xd():t==i.Y&&this.Ld()}},Xd:function(){var t=this.Yd.iconSize/16,i=this.Yd.iconSize-4*ss(Ki(t,1)+.5),s=ss($i(-7,-this.Yd.iconSize/4))-2*ss(Ki(t,1)+.5),e=i/2,r=new hn;0==this.Yd.colorFill.indexOf("rgba")&&(this.Ad.border.style.fillRule="evenodd",r.addRect(-s,-e,i,i)),r.addRect(-s-this.Yd.borderWidth,-e-this.Yd.borderWidth,i+2*this.Yd.borderWidth,i+2*this.Yd.borderWidth),this.Ad.border.style.fill=this.Yd.colorBorder,this.Ad.border.setAttribute("d",r.path());var n=new hn;if(n.addRect(-s,-e,i,i),this.Ad.fill.style.fill=this.Yd.colorFill,this.Ad.fill.setAttribute("d",n.path()),this.Yd.checked){24==this.mu&&(this.Fd==tt?(++e,++s):this.Fd==st&&++e);var a=new hn;switch(this.Yd.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.Ad.mark.style.fill=this.Yd.colorCheckMark,this.Ad.mark.setAttribute("d",a.path())}else this.Ad.mark.setAttribute("d","")},Ld:function(){var t,i,s,e=this.Yd.iconSize/16,r=this.Yd.iconSize/2,n=r+Ki(ss(this.Yd.iconSize/4),7);switch(this.Yd.iconType){case tt:t=r-2*e,i=r-4*e;break;case it:t=r-2*e,i=r-3*e;break;case st:t=r-2*e,i=r-2*e}s=r-2*e+this.Yd.borderWidth;var a=new hn;0==this.Yd.colorFill.indexOf("rgba")&&(this.Ad.border.style.fillRule="evenodd",a.addEllipse(n,0,s-this.Yd.borderWidth,s-this.Yd.borderWidth)),a.addEllipse(n,0,s,s),this.Ad.border.style.fill=this.Yd.colorBorder,this.Ad.border.setAttribute("d",a.path());var h=new hn;if(h.addEllipse(n,0,t,t),this.Ad.fill.style.fill=this.Yd.colorFill,this.Ad.fill.setAttribute("d",h.path()),this.Yd.checked){var o=new hn;o.addEllipse(n,0,i,i),this.Ad.mark.style.fill=this.Yd.colorCheckMark,this.Ad.mark.setAttribute("d",o.path())}else this.Ad.mark.setAttribute("d","")},updateSliderProps:function(t,i,s,e,r,n){this.Hd||(this.Hd={sliderValue:0,colorTrack:"",colorThumb:"",colorBorder:"",sliderSize:24,sliderType:rt}),void 0!==t&&(this.Hd.sliderValue=t),void 0!==i&&(this.Hd.colorTrack=i),void 0!==s&&(this.Hd.colorThumb=s),void 0!==e&&(this.Hd.colorBorder=e),void 0!==r&&(this.Hd.sliderSize=r),void 0!==n&&(this.Hd.sliderType=n)},updateSlider:function(t,i,s,e,r,n){this.Cr()||this.On(),this.updateSliderProps(t,i,s,e,r,n);var a=this.container.clientWidth,h=this.container.clientHeight,o=[this.Hd.sliderSize,this.Hd.sliderSize];this.Al.style.pointerEvents="none";var u=0;u=.5,this.sliderTrackPath||(this.sliderTrackPath=us.createElementNS(Bi,"path"),this.sliderTrackPath.style.pointerEvents="none",this.sliderTrackPath.style.strokeWidth=1,this.shapeNode.appendChild(this.sliderTrackPath)),this.sliderTrackPath.style.stroke=this.Hd.colorBorder,this.sliderTrackPath.style.fill=this.Hd.colorTrack;var c=new hn,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.Hd.sliderType!=et&&this.sliderTrackPath.setAttribute("d","");var l=this.parent.su(this.Hd.sliderValue);this.sliderProgressPath||(this.sliderProgressPath=us.createElementNS(Bi,"path"),this.sliderProgressPath.style.pointerEvents="none",this.sliderProgressPath.style.strokeWidth=0,this.shapeNode.appendChild(this.sliderProgressPath)),this.sliderProgressPath.style.fill=this.Hd.colorThumb;var d=new hn,p=l;this.Hd.sliderType!=et&&(p=l+o[0]/2),f=p>3?3:p,d.addRoundedRect(is(.5),h/2-o[0]/6+is(.5),Ki(p-1,0),o[0]/3-1,f,f),this.sliderProgressPath.setAttribute("d",d.path()),this.sliderThumbPath||(this.sliderThumbPath=us.createElementNS(Bi,"path"),this.sliderThumbPath.style.pointerEvents="none",this.sliderThumbPath.style.strokeWidth=1,this.shapeNode.appendChild(this.sliderThumbPath)),this.sliderThumbPath.style.stroke=this.Hd.colorBorder,this.sliderThumbPath.style.fill=this.Hd.colorThumb,this.parent.node.setAttribute("aria-valuenow",this.Hd.sliderValue);var v=l+u,m=new hn;this.Hd.sliderType==rt?m.addEllipse(v+o[0]/2,h/2+u,o[0]/2,o[1]/2):this.Hd.sliderType==nt?(o=[.75*this.Hd.sliderSize,this.Hd.sliderSize],m.addRect(v,h/2-o[1]/2+u,o[0],o[1])):this.Hd.sliderType==at&&(o=[.75*this.Hd.sliderSize,this.Hd.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=us.createElementNS(Bi,"path"),this.handledMousePath.style.pointerEvents="visiblepainted",this.handledMousePath.style.fill="white",this.handledMousePath.style.fillOpacity=0,this.shapeNode.appendChild(this.handledMousePath));var g=new hn;g.addRect(0,0,a,h),this.handledMousePath.setAttribute("d",g.path())},updateDropdownProps:function(t,i,s,e,r,n){this.Ud||(this.Ud={textStyle:"",bgColorArrow:"",colorArrow:"",colorBorder:"",bgColor:"",dropdownType:ht}),void 0!==t&&(this.Ud.textStyle=t),void 0!==i&&(this.Ud.bgColorArrow=i),void 0!==s&&(this.Ud.colorArrow=s),void 0!==e&&(this.Ud.colorBorder=e),void 0!==r&&(this.Ud.bgColor=r),void 0!==n&&(this.Ud.dropdownType=n)},updateDropdown:function(i,s,e,r,n,a,h,o,u){var c;if(this.Cr()||this.On(),this.updateDropdownProps(r,n,a,h,o,u),this.dropdownNode)c=this.dropdownNode.style;else{if(this.dropdownNode=us.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=us.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=us.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.Ud.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.so?this.parent.so/100:1)+"px";c.fontSize=v,this.parent.Ya&&this.parent.Yh&&(c.position="relative",this.parent.node&&"auto"===this.parent.node.style.height&&Gi(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.Ud.textStyle,p.fontSize=v,p.backgroundColor=this.Ud.bgColor;var m=this.dropdownNode.clientWidth,g=this.dropdownNode.clientHeight,b=this.node.clientHeight/2-g/2;this.bgPath||(this.bgPath=us.createElementNS(Bi,"path"),this.bgPath.style.pointerEvents="none",this.bgPath.style.strokeWidth=1,this.shapeNode.appendChild(this.bgPath)),this.bgPath.style.fill=this.Ud.bgColor,this.bgPath.style.stroke=this.Ud.colorBorder,this.arrowBgPath||(this.arrowBgPath=us.createElementNS(Bi,"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.Ud.bgColorArrow,this.arrowPath||(this.arrowPath=us.createElementNS(Bi,"path"),this.arrowPath.style.pointerEvents="none",this.arrowPath.style.strokeWidth=2,this.shapeNode.appendChild(this.arrowPath)),this.arrowPath.style.stroke=this.Ud.colorArrow,this.bgLine||(this.bgLine=us.createElementNS(Bi,"path"),this.bgLine.style.pointerEvents="none",this.bgLine.style.strokeWidth=1,this.shapeNode.appendChild(this.bgLine)),this.bgLine.style.stroke=this.Ud.colorBorder;var w=this.dropdownNode.clientLeft,_=w+m,y=new hn,T=g,k=0,x=m>T?T/2:0,C=0;if(ke.browser.firefox&&(x-=5,C=3),c.paddingRight=T-C+"px",c.paddingLeft=x+"px",(u=this.Ud.dropdownType)==ht)y.addRect(w,b,m,g),(S=new hn).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 hn).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 hn).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 hn;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.Cr()||this.On(),this.Bd={colorFill:i,colorBorder:s,borderWidth:t,lineStyle:e},this.Dd||(this.Dd={init:function(){this.fill=us.createElementNS(Bi,"path"),this.border=us.createElementNS(Bi,"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.Dd.init(),this.Dd.appendTo(this.shapeNode))},updateLegend:function(){if(this.Dd&&this.Bd){var i=parseFloat(t(this.parent.textNode).css("font-size"))||8,s=$i(Ki(8,i),64),e=s-4,r=ss($i(-6,-s/4))-2,n=e/2,a=$i(this.Bd.borderWidth,6),h=new hn;h.addRect(-r,-n,e,e),this.Dd.fill.style.fill=this.Bd.colorFill,this.Dd.fill.setAttribute("d",h.path());var o=new hn;o.addRect(-r,-n,e,e);var u=this.Dd.border.style;if(u.stroke=this.Bd.colorBorder,u.strokeWidth=a,this.Bd.lineStyle){var c=this.Bd.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.Dd.border.setAttribute("d",o.path())}},Ml:function(){return(this.Cf||void 0!==this.Gs)&&("none"!==this.Go||this.Ol!==_t.Et||!ke.browser.useCSSShadow&&void 0!=this.ld&&void 0!=this.kd)},Cr:function(){var t=!1;return this.hasArrow()?this.Nl&&(t=!0):this.shapeNode&&(t=!0),t},On:function(){var t,i=!1;if(!this.node){var e=us.createElementNS(Bi,"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.Nl||(i=!0,this.shapeNode&&this.node.removeChild(this.shapeNode),this.shapeNode=us.createElementNS(Bi,"g"),this.Uo=us.createElementNS(Bi,"path"),this.Uo.style.stroke="none",this.shapeNode.appendChild(this.Uo),this.Nl=us.createElementNS(Bi,"g"),this.Al=us.createElementNS(Bi,"path"),this.Al.style.fill="none",this.Nl.appendChild(this.Al),this.Xl=us.createElementNS(Bi,"path"),(t=this.Xl.style).strokeLinecap="round",t.strokeLinejoin="miter",this.Nl.appendChild(this.Xl),this.Ll=us.createElementNS(Bi,"path"),(t=this.Ll.style).strokeLinecap="round",t.strokeLinejoin="miter",this.Nl.appendChild(this.Ll),this.shapeNode.appendChild(this.Nl),this.node.appendChild(this.shapeNode));else if(this.Cf&&this.Cf.length){if(!this.Nl){if(i=!0,this.shapeNode&&this.node.removeChild(this.shapeNode),this.shapeNode=us.createElementNS(Bi,"g"),this.Uo=us.createElementNS(Bi,"path"),this.Uo.style.stroke="none",this.shapeNode.appendChild(this.Uo),this.Cf.length>2){this.Zd=[];for(var r=0;r<this.Cf.length;++r)if(!(r<2)){var n=this.Cf[r];if(n){var a=us.createElementNS(Bi,"path");a.style.fill=n.f,a.style.stroke="none",this.shapeNode.appendChild(a),this.Zd.push(a)}}}this.Al=us.createElementNS(Bi,"path"),this.Al.style.fill="none",this.shapeNode.appendChild(this.Al),this.node.appendChild(this.shapeNode)}}else this.shapeNode||(i=!0,this.shapeNode=us.createElementNS(Bi,"g"),this.Uo=us.createElementNS(Bi,"path"),this.shapeNode.appendChild(this.Uo),this.parent.ne.t==s.ft?(this.Al=us.createElementNS(Bi,"path"),this.shapeNode.appendChild(this.Al)):this.Al=this.Uo,this.node.appendChild(this.shapeNode));i&&((t=this.shapeNode.style).pointerEvents="visiblePainted",t.strokeMiterlimit=10,t.fill=t.stroke="none",(this.Fu||this.Lu)&&this.flip(this.Fu,this.Lu),this.uu(),void 0!==this.Rl&&this.lineJoin(this.Rl),void 0!==this.Pl&&this.lineCap(this.Pl),this.lineWidth(this.Vo),this.lineColor(this.El,this.Il),this.lineStyle(this.Go),this.fd(),this.Md())},hasArrow:function(){return this.zd()&&(this.Fl&&this.Fl.type!==ft.NONE||this.Hl&&this.Hl.type!==ft.NONE)},zd:function(){return this.Cf&&this.Cf.length>0&&this.Cf[1]&&this.Cf[1].length>1&&this.Vo},Xu:function(){var t=this.container.clientWidth,i=this.container.clientHeight,e=new hn,r={fill:"",line:"",startArrow:"",startArrowTransform:"",endArrow:"",endArrowTransform:""};if(!t&&!i)return r;if(ke.browser.chromiums&&this.parent.ne.t==s.ft){var n=this.slide.offsetSize(),a=Ki(is(n.width/10),t);a%2==1&&++a,this.node.style.width=a+"px",(a=Ki(is(n.height/10),i))%2==1&&++a,this.node.style.height=a+"px"}if(this.Cf){var h=this.Cf;if(void 0===h.w){var o=function(t){var i=new hn,s=us.createElementNS(Bi,"svg"),e=us.createElementNS(Bi,"path"),r=s.style;r.position="absolute",r.top=r.left="-10000px",r.visibility="hidden";for(var n=0,a=t.length;n<a;++n){var h=t[n];h&&pn(i,h)}e.setAttribute("d",i.path()),s.appendChild(e),us.body.appendChild(s);var o=fn(e);return us.body.removeChild(s),o}(h);h.w=o.width,h.h=o.height}r.w===t&&r.h===i||(h=function(t,i,s){for(var e=[],r=0,n=t.length;r<n;++r){var a=t[r];if(a){var h=vn(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.zd()&&(this.Fl&&this.Fl.type!==ft.NONE&&(f=g[0].slice(),d=ts(f[5]-f[1],f[4]-f[0]),(m=new hn).addMarker(this.Fl.type,this.Fl.size,this.Vo),r.startArrow=m.path(),r.startArrowTransform="translate("+f[0]+","+f[1]+") rotate("+180*d/zi+")",p=mn(this.Fl.type,this.Fl.size,this.Vo),g[0][0]+=p*ji(d),g[0][1]+=p*Qi(d)),this.Hl&&this.Hl.type!==ft.NONE&&(l=g[v=g.length-1].slice(),d=ts(l[3]-l[1],l[2]-l[0]),(m=new hn).addMarker(this.Hl.type,this.Hl.size,this.Vo),r.endArrow=m.path(),r.endArrowTransform="translate("+l[0]+","+l[1]+") rotate("+180*d/zi+")",p=mn(this.Hl.type,this.Hl.size,this.Vo),g[v][0]+=p*ji(d),g[v][1]+=p*Qi(d))),pn(e,g),f&&(g[0]=f),l&&(g[v]=l),1==u&&(r.line=e.path()),(f||l)&&(e.clear(),pn(e,g)),0==u&&(r.fill=e.path()),u>=2&&(r.decorators||(r.decorators=[]),r.decorators.push(e.path()))}}else{var b=an[this.Gs];if(b&&b[0])if(this.Yl()){var w="none"!==this.Go?this.Vo:0,_=w%2==0?0:1,y=ss(w/2);b[0].apply(e,[-y-_,-y-_,t+2*y+_,i+2*y+_].concat(this.Wo))}else b[0].apply(e,[0,0,t,i].concat(this.Wo));r.fill=r.line=e.path()}return r},uu:function(){var t=this.Xu();if(this.Uo){var e=this.parent;if(e.ne.t===s.ft){var r=this.slide;if(r){var n={x:-e.node.offsetLeft-1,y:-e.node.offsetTop-1,width:r._h+2,height:r.yh+2},a=new hn;a.addRect(n.x,n.y,n.width,n.height),t.fill&&(t.fill+=a.path())}}12===this.Gs||this.Zd&&this.Zd.length||(this.Uo.style.fillRule="evenodd"),this.Uo.setAttribute("d",t.fill)}if(this.Al!==this.Uo&&this.Al.setAttribute("d",t.line),this.Xl&&(this.Xl.setAttribute("d",t.startArrow),t.startArrowTransform?this.Xl.setAttribute("transform",t.startArrowTransform):this.Xl.removeAttribute("transform")),this.Ll&&(this.Ll.setAttribute("d",t.endArrow),t.endArrowTransform?this.Ll.setAttribute("transform",t.endArrowTransform):this.Ll.removeAttribute("transform")),this.parent.ne.k==i.H&&this.Bo){var h=this.Bo.querySelector("rect"),o="none"!==this.Go?this.Vo:0,u=o%2==0?0:1,c=ss(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.Bo.querySelector("path");if(d){var p=new hn,v=an[this.Gs],m=this.parent.ne.tmp.duration,g=(this.parent.ne.tmp.countdown?m-this.parent.Lo:this.parent.Lo)/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.Wo)),d.setAttribute("d",p.path()))}}if(this.Zd&&this.Zd.length>0&&t.decorators&&t.decorators.length==this.Zd.length)for(var b=0;b<this.Zd.length;++b)this.Zd[b].setAttribute("d",t.decorators[b])},Yl:function(){var t=this.parent.ne.k;return t==i._&&0==this.Gs||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=fn(this.node),i=(this.Vo||0)/2*("miter"===this.Rl?10:1);if(i&&(t.x-=i,t.y-=i,t.width+=2*i,t.height+=2*i),void 0!==this.ld){var s=this.vd*ji(this.pd/180*zi),e=this.vd*Qi(this.pd/180*zi),r=this.ld,n={x:t.x+s-r,y:t.y+e-r,width:t.width+2*r,height:t.height+2*r},a=t.x+t.width,h=t.y+t.height;t.x=$i(t.x,n.x),t.y=$i(t.y,n.y),t.width=Ki(a,n.x+n.width)-t.x,t.height=Ki(h,n.y+n.height)-t.y}return t},transformedContentBox:function(t){var i=t?this.rotateToSlide():this.rotate();return this.rotatedContentBox(i,t)}});function pn(t,i){var s,e,r,n,a=null;for(r=0,n=i.length;r<n;++r)(s=i[r])[6]&&1==s[6]||0===r?(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 vn(t,i,s){var e,r,n,a,h,o=[],u=We.scaleNonUniform(i,s);for(r=0,n=t.length;r<n;++r)a=[],h=Ke(u,(e=t[r])[0],e[1]),a[0]=h.x,a[1]=h.y,h=Ke(u,e[2],e[3]),a[2]=h.x,a[3]=h.y,h=Ke(u,e[4],e[5]),a[4]=h.x,a[5]=h.y,a[6]=e[6],o[r]=a;return o}function mn(t,i,s){var e=i%3,r=(0===e?2:1===e?3:5)*s;switch(t){case ft.ARROW:case ft.OPEN:case ft.STEALTH:return i<3?2.5*r/4:2*r/4;default:return 0}}var gn={FPS:60,INTERVAL:16,time:0,syncTimes:[],timerId:null,isRunning:function(){return!!this.timerId},start:function(){this.stop(),bn()},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 bn(){gn.updateTime(),gn.timerId=requestAnimationFrame(bn),ke.tick(gn.time)}var wn={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){wn.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}},_n={Gd:0,Vd:1,Wd:2,$d:3,qa:4,Kd:5,jd:6,Qd:7},yn=Qs({$init:function(t,i){this.s=t,this.d=i-t},resolveRelative:function(t,i,s,e){var r,n;switch(t){case _n.Vd:r=i,n=s;break;case _n.Wd:r=i,n=i+s;break;case _n.$d:r=s,n=i;break;case _n.qa:r=i-s,n=i;break;case _n.Kd:r=i+s,n=i+e;break;case _n.jd:case _n.Qd:r=i*s,n=i*e;break;default:r=s,n=e}this.$init(r,n)},value:function(t){return this.s+this.d*t}}),Tn={_default:function(t,i){return new yn(t,i)}};function kn(t,i){return void 0===Tn[i]&&(Tn[i]=t,!0)}function xn(t){return(Tn[t]||Tn._default).apply(null,Array.prototype.slice.call(arguments,1))}var Cn=Qs(yn,{$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 Sn(t,i,s){var e=s*s,r=e*s,n=1-s,a=n*n,h=a*n,o=3*a*s,u=3*n*e;return{x:h*t[0]+o*t[4]+u*i[2]+r*i[0],y:h*t[1]+o*t[5]+u*i[3]+r*i[1]}}function On(t,i,s,e,r){var n=ss(s[e].t),a=(s[e].t+s[e+1].t)/2-n,h=Sn(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(En(h,{x:(o.x+u.x)/2,y:(o.y+u.y)/2})>r||En(o,u)>4*r)&&(h.t=n+a,s.splice(e+1,0,h),c=1+On(t,i,s,e+1,r),c+=On(t,i,s,e,r)),c}function En(t,i){var s=i.x-t.x,e=i.y-t.y;return Vi(s*s+e*e)}kn(function(t,i){return new Cn(t,i)},ti.bs);var In=Qs(yn,{$init:function(t,i){this.qd=i||{translateX:0,translateY:0},this.points(t)},value:function(t){var i=this.Jd(t),s=ss(i),e=this.tp,r=e.length-2;s<0?(s=0,i=0):(s>r&&(s=r),(i-=s)>1&&(i=1));var n,a,h,o,u,c,f,l,d,p=Sn(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*ts(a.y,a.x)/zi,(t<0||t>1)&&(n=Vi(a.x*a.x+a.y*a.y))>0&&(h=t>1?t-1:t,p.x+=h*this.ip*a.x/n,p.y+=h*this.ip*a.y/n),{translateX:p.x+this.qd.translateX,translateY:p.y+this.qd.translateY}},points:function(t){t&&t.length||(t=[[0,0,0,0,0,0]]),1===t.length&&(t[1]=t[0]),this.tp=t,this.ep(),this.rp()},ep:function(){this.Sl=[];var t,i,s,e,r=this.tp,n=r.length-1,a=this.Sl;for(t=0;t<n;++t)for(i=0;i<4;++i)s=i/4,(e=Sn(r[t],r[t+1],s)).t=t+s,a.push(e);for(n>=0&&a.push({x:r[n][0],y:r[n][1],t:n}),t=n-1;t>=0;--t)for(i=3;i>=0;--i)On(r[t],r[t+1],a,4*t+i,2)},rp:function(){var t,i=this.Sl,s=0,e=i.length-1;for(t=0;t<e;++t)i[t].l=s,s+=En(i[t],i[t+1]);e>=0&&(i[e].l=s),this.ip=s,this.np=[];var r,n,a=this.np,h=s;for(this.ap=10,t=0,s=0;t<e;)if(i[t+1].l<s)++t;else if(r=i[t],n=i[t+1],a.push({l:s,t:n.l>r.l?r.t+(s-r.l)*(n.t-r.t)/(n.l-r.l):r.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})},Jd:function(t){var i,s,e,r,n=t*this.ip,a=this.np,h=a.length;return 0===h?i=0:1===h?i=a[0].t:(e=a[s=this.ap>0?$i(Ki(0,ss(n/this.ap)),h-2):0],i=(r=a[s+1]).l>e.l?e.t+(n-e.l)*(r.t-e.t)/(r.l-e.l):e.t),i}});kn(function(t,i){return new In(t,i)},ti.ws);var Pn=Qs(yn,{$init:function(t){this.hp=t||""},value:function(t){var i=this.hp;if(t>=0||t<=1){var s=i.length,e=s*t;e>s&&(e=s),i=i.substring(0,e)}return i}});kn(function(t){return new Pn(t)},ti._s);var Rn=Qs(yn,{$init:function(t,i){this.op=t||[],this.up=i||[]},value:function(t){for(var i=[],s=this.op,e=this.up,r=0,n=s.length;r<n;++r){for(var a=s[r],h=e[r],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}});kn(function(t,i){return new Rn(t,i)},ti.ys);var Mn=Qs(yn,{$init:function(t,i,s){var e,r,n,a;if(this.fp=[],this.dp=[],t&&i)for(s||(t=[t],i=[i]),this.fp=t,e=0,r=$i(t.length,i.length);e<r;++e){var h=t[e],o=i[e],u=[];for(n=0,a=$i(h.length,o.length);n<a;++n)u.push([o[n][0]-h[n][0],o[n][1]-h[n][1]]);this.dp.push(u)}},value:function(t){for(var i=this.fp,s=this.dp,e=[],r=0,n=s.length;r<n;++r){for(var a=i[r],h=s[r],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}});kn(function(t,i,s){return new Mn(t,i,s)},ti.Ts);var Nn=Qs(yn,{$init:function(t,i){var s,e;if(this.pp=t||[],this.vp=[],t&&i)for(s=0,e=$i(t.length,i.length);s<e;++s)this.vp.push(i[s]-t[s])},value:function(t){var i,s,e=this.pp,r=this.vp,n=[];for(i=0,s=r.length;i<s;++i)n.push(e[i]+r[i]*t);return n}});function An(t){return ws(t.translateX,0)&&ws(t.translateY,0)&&ws(t.rotate,0)&&ws(t.scaleX,1)&&ws(t.scaleY,1)}function Dn(i){var s=t(i).css("transform");return"none"!=s&&"matrix"!=s.substr(0,6)&&(ms.parentNode||us.body.appendChild(ms),ms.style.display="block",ms.style[Ls]=s,s=t(ms).css("transform"),ms.parentNode&&ms.parentNode.removeChild(ms)),s}kn(function(t,i){return new Nn(t,i)},ti.ks);var Yn={transform:{children:["translateX","translateY","rotate","scaleX","scaleY"],get:function(t){var i,s,e,r=Je(t),n={translateX:0,translateY:0,rotate:0,scaleX:1,scaleY:1},a=Dn(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]),n.translateX=a[4]||0,n.translateY=a[5]||0,n.scaleX=Vi(a[0]*a[0]+a[1]*a[1]),0===n.scaleX?(n.scaleY=Vi(a[2]*a[2]+a[3]*a[3]),0===n.scaleY?n.rotate=0:n.rotate=180*ts(-a[2],a[3])/zi):(n.scaleY=(a[0]*a[3]-a[1]*a[2])/n.scaleX,n.rotate=180*ts(a[1],a[0])/zi)}return tr(r),n},set:function(t,i){if(t.slide&&t.slide.rn(),i&&typeof i!=Ui){if(An(i)&&!t.Td)i="";else if(ke.forceGPU||t.Td)i=Fs+"("+i.translateX+"px, "+i.translateY+"px, 0px) rotate("+i.rotate+"deg) scale("+i.scaleX+", "+i.scaleY+")";else{var s=Qi(i.rotate*zi/180),e=ji(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[Ls]=i}else t.Td?$s(t.node.style,i):t.node.style[Ls]=i;t.slide&&t.slide.nn()}},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},r=Dn(t.node);if("matrix3d("==r.substr(0,9)){for(i=0,s=(r=r.substring(9,r.length-1).split(",")).length;i<s;++i)r[i]=parseFloat(r[i]);e.translate3dX=r[12]||0,e.translate3dY=r[13]||0,e.translate3dZ=r[14]||0,e.scale3dX=Vi(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]),e.scale3dY=Vi(r[4]*r[4]+r[5]*r[5]+r[6]*r[6]),e.scale3dZ=Vi(r[8]*r[8]+r[9]*r[9]+r[10]*r[10]);var n=180/zi;e.rotate3dY=-qi(bs(r[2],-1,1))*n,Gi(r[2])<.99999?(e.rotate3dX=ts(-r[6],r[10])*n,e.rotate3dZ=ts(-r[1],r[0])*n):(e.rotate3dX=ts(r[9],r[5])*n,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[Ls]=i}},resetTransform:{order:1e3,get:function(i){return t(i.node).css("transform")},set:function(t,i){t.node.style[Ls]=i},add:function(t,i){return i},rawProp:function(t){return["transform",{translateX:0,translateY:0,rotate:0,scaleX:1,scaleY:1}]},tween:ti.bs},resetTransform3d:{order:1e3,get:function(i){return t(i.node).css("transform")},set:function(t,i){t.node.style[Ls]=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:ti.bs},position:{base:"transform",children:["translateX","translateY"],tween:ti.ws},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(Hs),r=0,n=(e=e.substring(0,e.length-1).split(" ")).length;r<n;++r)e[r]=parseFloat(e[r]);return s.transformOriginX=e[0]||0,s.transformOriginY=e[1]||0,s.transformOriginZ=e[2]||0,s},set:function(t,i){t.node.style[Hs]=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==Ui&&(t=parseFloat(t),isNaN(t)&&(t=1)),["opacity",t]},tween:ti.bs},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(Us):0},set:function(t,i){t.node.parentNode&&(t.node.parentNode.style[Us]=i+"px")}},perspectiveOrigin:{children:["perspectiveOriginX","perspectiveOriginY"],get:function(i){var s,e={perspectiveOriginX:0,perspectiveOriginY:0};if(i.node.parentNode){for(var r=0,n=(s=(s=t(i.node.parentNode).css(Bs)).substring(0,s.length-1).split(" ")).length;r<n;++r)s[r]=parseFloat(s[r]);e.perspectiveOriginX=s[0]||0,e.perspectiveOriginY=s[1]||0}return e},set:function(t,i){var s=t.node.parentNode;s&&(s.style[Bs]=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.uo?(i.co=s,s=i.hideProp?i.hideProp():"none",i.co==s&&delete i.co):delete i.co,i.node.style.display=s;var e=i.hideProp?i.hideProp():"none";s==e&&us.activeElement&&(i.node==us.activeElement||t.contains(i.node,us.activeElement))&&us.activeElement.blur(),i.Tn&&i.Tn(),i.La&&i.La(),s==e&&i.Dn&&i.Dn.lf&&i.Dn.lf()},add:function(t,i){return i},tween:ti.bs},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,r,n,a=t(i.node).css(zs);if(a.substr(0,Ws.length)===Ws)a=a.substring(Ws.length,a.length-1).split(" "),s=parseFloat(a[0]),1==a.length?e=r=n=s:(e=parseFloat(a[1]),2==a.length?(r=s,n=e):(r=parseFloat(a[2]),n=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=(n=h.x)+h.width,r=s+h.height,vs.clipPath&&(e=i.node.offsetWidth-e,r=i.node.offsetHeight-r)}return{clipTop:s,clipRight:e,clipBottom:r,clipLeft:n}},set:function(t,i){t.node.style[zs]=i&&typeof i!==Ui?Ws+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.Yo=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.ka},set:function(t,i){t.ka=i,Ar.renderMouseEffect(t.node.getContext("2d"),t.xa,t.Sa,t.Oa,i/100,t.Ca,t.Ea)}},geProgress:{get:function(t){return t.Vu},set:function(i,s){if(i.Vu=s,i.Wu){var e=i.Wu,r=e.getContext("2d"),n=i.ne.ge.type,a=t(e).attr("width"),h=t(e).attr("height"),o=Math.round(a/2),u=Math.round(h/2),c=Rs(i.ne.ge.color),f=s/100;Ar.renderGestureEffect(r,n,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.Dn)return t.Dn.hf()},set:function(t,i){t.Dn&&t.Dn.loadResource(i)},add:function(t,i){return i},tween:ti.bs},mediaDuration:{get:function(t){if(t.Dn)return t.Dn.af()},set:function(t,i){t.Dn&&t.Dn.An(i)},add:function(t,i){return i},tween:ti.bs},mediaState:{get:function(t){return t.Dn?t.Dn.Vs():"stopped"},set:function(t,i){t.Dn&&t.Dn.Vs(i)},add:function(t,i){return i},tween:ti.bs},mediaSeek:{get:function(t){return t.Dn?t.Dn.tc():0},set:function(t,i){t.Dn&&t.Dn.tc(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.Fo||!1},set:function(t,i){i&&!t.Ho&&(t.Ho=!0,(!t.enabled||t.enabled())&&t.startTimer&&t.startTimer())},add:function(t,i){return i},tween:ti.bs},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:ti.bs},gradientMaskImage:{children:["gradientType","gradientDirection","gradColorStops"],get:function(i){var s={gradientType:"linear-gradient",gradientDirection:"to right",gradColorStops:[]},e=t(i.node).css(Gs);if("none"==e||""==e)return s;s.gradientType=e.substring(0,e.indexOf("(")-1);for(var r=0,n=(e=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(/,(?![^(]*\))(?![^"']*["'](?:[^"']*["'][^"']*["'])*[^"']*$)/)).length;r<n;++r)if(0!==r)for(var a=e[r].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[r];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,r=0,n=e.length;r<n;++r)s+="rgba("+e[r][0]+","+e[r][1]+","+e[r][2]+","+e[r][3]+") "+e[r][4]+"%",s+=r!==n-1?", ":"";s+=")"}if(t instanceof nn||!t.shape&&!t.shapeNode||t.shapeNode||t.html==kr)t.node.style[Gs]=s;else{var a=t.contentBox(),h=a.width,o=a.height;for(r=0;r<t.node.childNodes.length;++r){var u=t.node.childNodes[r];u.isSameNode(t.textContainer)&&(u=t.textContainer.childNodes[0]),u.style.webkitMaskSize=h+"px "+o+"px",u.style.webkitMaskPosition="50% 50%",u.style[Gs]=s}}}},gradientType:{base:"gradientMaskImage",tween:ti.bs,add:function(t,i){return i}},gradientDirection:{base:"gradientMaskImage",tween:ti.bs,add:function(t,i){return i}},gradColorStops:{base:"gradientMaskImage",tween:ti.ys,add:function(t,i){return i}},resetMaskImage:{order:1e3,get:function(i){return t(i.node).css(Gs)},set:function(t,i){if("none"!=i)if(t instanceof nn||!t.shape&&!t.shapeNode||t.shapeNode||t.html==kr)t.node.style[Gs]=i;else{t.textContainer&&(t.textContainer.childNodes[0].style[Gs]=i);for(var s=0;s<t.node.childNodes.length;++s){t.node.childNodes[s].style[Gs]=i}t.node.style[Gs]=i}},add:function(t,i){return i},tween:ti.bs},clipPath:{get:function(i){var s=t(i.node).css(zs);return"none"==s?"":s},set:function(t,i){var s=t instanceof nn,e=s?0:-t.rotateToSlide(),r=s?ns({x:0,y:0},t.offsetSize()):t.contentBox();t.node.style[zs]=Ks(i,r.x,r.y,r.width,r.height,e)},tween:ti.Ts,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:ti.bs},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[Vs],e=s.indexOf("contrast(");-1!==e&&(e+="contrast(".length,i.contrast=s.substring(e,s.indexOf(")",e)));var r=s.indexOf("brightness(");-1!==r&&(r+="brightness(".length,i.brightness=s.substring(r,s.indexOf(")",r)));var n=s.indexOf("hue-rotate(");-1!==n&&(n+="hue-rotate(".length,i.hueRotate=s.substring(n,s.indexOf(")",n)));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="";ws(i.contrast,100)||(s+="contrast("+i.contrast+"%)"),ws(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[Vs]=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=us.getElementById("gradientOverlay"+i.node.id);if(!e)return s;var r=t(e).css("background-image");s.gradOverlayType=r.substring(0,r.indexOf("(")-1);for(var n=0,a=(r=r.substring(r.indexOf("(")+1,r.lastIndexOf(")")).split(/,(?![^(]*\))(?![^"']*["'](?:[^"']*["'][^"']*["'])*[^"']*$)/)).length;n<a;++n)if(0!==n)for(var h=r[n].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=r[n];return s},set:function(t,i){var s=us.getElementById("gradientOverlay"+t.node.id);if(null===s){(s=us.createElement("div")).id="gradientOverlay"+t.node.id;var e=s.style,r=t.node.style;e.position="absolute",e.left=r.left,e.top=r.top,e.width=r.width,e.height=r.height,e.zIndex=qt.os,ke.browser.safari&&(e[Ls]="translate3d(0px, 0px,"+t.node.offsetWidth/2+"px)"),t.node.parentNode&&t.node.parentNode.appendChild(s)}for(var n=i.gradOverlayType+"("+i.gradOverlayDirection+", ",a=i.gradOverlayColorStops,h=0,o=a.length;h<o;++h)n+="rgba("+a[h][0]+","+a[h][1]+","+a[h][2]+","+a[h][3]+") "+a[h][4]+"%",n+=h!==o-1?", ":"";s.style.backgroundImage=n+")"}},gradOverlayType:{base:"gradientOverlay",tween:ti.bs,add:function(t,i){return i}},gradOverlayDirection:{base:"gradientOverlay",tween:ti.bs,add:function(t,i){return i}},gradOverlayColorStops:{base:"gradientOverlay",tween:ti.ys,add:function(t,i){return i}},resetGradOverlay:{order:1e3,get:function(i){var s=us.getElementById("gradientOverlay"+i.node.id);return s?t(s).css("background-image"):""},set:function(t,i){var s=us.getElementById("gradientOverlay"+t.node.id);s&&t.node.parentNode&&t.node.parentNode.removeChild(s)},add:function(t,i){return i},tween:ti.bs},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,r=us.getElementById(e);if(null==r){(r=t.node.cloneNode(!0)).id=e,r.name="cropNode";for(var n=t.node.getElementsByTagName("canvas"),a=r.getElementsByTagName("canvas"),h=0;h<n.length;++h){var o=n[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(r)}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+=")",r.style[zs]=f,r.style[Hs]=(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)";r.style[Ls]=d,r.style.opacity=void 0!==i.opacityCropNodes[s]?i.opacityCropNodes[s]:1}}},cropNodesCount:{base:"cropNodes",tween:ti.bs},polygonsCropNodes:{base:"cropNodes",tween:ti.bs},transOrgXCropNodes:{base:"cropNodes",tween:ti.ks},transOrgYCropNodes:{base:"cropNodes",tween:ti.ks},transOrgZCropNodes:{base:"cropNodes",tween:ti.ks},xCropNodes:{base:"cropNodes",tween:ti.ks},yCropNodes:{base:"cropNodes",tween:ti.ks},zCropNodes:{base:"cropNodes",tween:ti.ks},rotateXCropNodes:{base:"cropNodes",tween:ti.ks},rotateYCropNodes:{base:"cropNodes",tween:ti.ks},rotateZCropNodes:{base:"cropNodes",tween:ti.ks},opacityCropNodes:{base:"cropNodes",tween:ti.ks},resetCropNodes:{order:1e3,get:function(t){return 0},set:function(t,i){for(var s=i,e=0;e<s;++e){var r=t.node.id+"_cropNode_"+e,n=us.getElementById(r);null!==n&&t.node.parentNode&&t.node.parentNode.removeChild(n)}},tween:ti.bs},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:ti.bs}},Xn=Qs({$init:function(t){this.du=t,this.mp={}},apply:function(t){this.toTarget(t,this.get(t))},toTarget:function(t,i){var s,e,r,n=Yn[t];if(n)if(n.set)n.set(this.du,i);else if(n.base&&(s=Yn[n.base])&&s.set){if(e=this.get(n.base))if(e.hasOwnProperty(t))e[t]=i;else if(i)for(r in i)e[r]=i[r];else e=i;else e=i;s.set(this.du,e)}},fromTarget:function(t){var i,s,e,r,n,a,h=Yn[t];if(h)if(h.get)s=h.get(this.du);else if(h.base&&(i=Yn[h.base])&&i.get&&(s=i.get(this.du)))if(h.children&&(a=h.children.length)){for(e={},n=0;n<a;++n)e[r=h.children[n]]=s[r];s=e}else void 0!==s[t]&&(s=s[t]);return s},get:function(t){var i,s,e,r,n=Yn[t];if(n&&n.children&&(r=n.children.length))for(i={},e=0;e<r;++e)i[s=n.children[e]]=this.mp[s];else i=this.mp[t];return i},set:function(t,i){var s,e,r,n=Yn[t];if(n&&n.children&&(r=n.children.length))for(e=0;e<r;++e)s=n.children[e],this.mp[s]=i?i[s]:i;else this.mp[t]=i;if(n&&n.rawProp){var a=n.rawProp(i);this.set(a[0],a[1])}},add:function(t,i){var s,e,r,n,a,h,o=Yn[t];if(o&&o.children&&(h=o.children.length))for(o.rawProp&&(s={}),a=0;a<h;++a)n=o.children[a],e=(r=Yn[n])&&r.add?r.add(this.mp[n],i?i[n]:i):(this.mp[n]||0)+(i?i[n]:i),this.mp[n]=e,o.rawProp&&(s[n]=e);else s=o&&o.add?o.add(this.mp[t],i):(this.mp[t]||0)+i,this.mp[t]=s;if(o&&o.rawProp){var u=o.rawProp(s);this.set(u[0],u[1])}}}),Ln=Qs({$init:function(t){this.options=t=ns({speed:1,repeat:1,alternated:!1,paused:!1,startTime:0},t),this.Hn=t.speed||1e-9,this.gp=t.repeat||1,this.bp=1,this.wp=t.alternated,this.qn=t.startTime,this._p=void 0,this.yp=void 0,this.Tp=void 0,this.ia=0,this.or=t.paused,this.kp=null,this.xp=null},started:function(t){return arguments.length?(!1===t&&(this.Tp=void 0),this):void 0!==this.Tp},speed:function(t){return arguments.length?(this.Hn=t||1e-9,this.or||this.startTime((this.kp?this.kp.ia:gn.now())-this.ia/this.Hn),this):this.Hn},repeat:function(t){return arguments.length?(this.gp=t||1,Fn(this,!0),this):this.gp},alternated:function(t){return arguments.length?(this.wp=t,this):this.wp},startTime:function(t){if(!arguments.length)return this.qn;if(t!==this.qn)if(this.kp){var i=this.kp;i.removeChild(this),this.qn=t,i.addChild(this)}else this.qn=t;return this},endTime:function(t){return this.qn+(t?this.duration():this.totalDuration())/this.Hn},duration:function(t){return arguments.length?(this._p=t,Fn(this,!0),this):this._p},totalDuration:function(t){return arguments.length?this.gp>0?this.duration(t/this.gp):this:(void 0===this.yp&&(void 0===this._p&&this.duration(),-1===this.gp?this.yp=1e11:-2===this.gp?this.yp=this.kp?(this.kp.duration()-this.qn)*this.Hn:this._p:this.yp=this.gp*this._p),this.yp)},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.or;if(t=!!t,this.or!==t){this.or=t;for(var i=this;i&&!i.or;)i.startTime((i.kp?i.kp.ia:gn.now())-i.ia/i.Hn),i=i.kp;t||this.update(this.ia)}return this},Cp:function(){for(var t=this;t;){if(t.or)return!0;t=t.kp}return!1},seek:function(t){return this.totalTime(t)},time:function(t){return arguments.length?(t=bs(t,0,this.duration()),this.wp&&this.bp%2==0&&(t=this._p-t),this.totalTime(t+(this.bp-1)*this._p)):this.Tp||0},totalTime:function(t){if(!arguments.length)return this.ia;t<0&&(t=0),this.Sp(t),this.update(t,!0);for(var i=this;i&&!i.or;)i.startTime((i.kp?i.kp.ia:gn.now())-i.ia/i.Hn),i=i.kp;return this},Sp:function(t){this.Tp=void 0},parent:function(t){return arguments.length?(t?t.addChild(this):this.remove(),this):this.kp},timeline:function(){return this.xp},remove:function(){return this.kp&&this.kp.removeChild(this),this},setup:function(){},update:function(t,i){},Jn:function(t){var i=void 0===this._p?this.duration():this._p,s=void 0===this.yp?this.totalDuration():this.yp,e=1,r={totalTime:t,uncapTime:t,active:t>-Fi&&t<s+Fi};return t<Fi||0===i?(t>-Fi&&t<Fi?r.totalTime=r.uncapTime=0:t<0&&(r.totalTime=0),t=0):(t>s-Fi&&(t<s+Fi&&(t=s,r.totalTime=r.uncapTime=t),t>s&&(t=s)),1!==this.gp&&(0===(e=es(t/i))&&(e=1),t-=(e-1)*i,this.wp&&e%2==0&&(t=i-t),t>i?t=i:t<0&&(t=0),e<this.gp?this.uncapTime=t:(this.uncapTime-=(e-1)*i,this.wp&&e%2==0&&(this.uncapTime=i-this.uncapTime)))),r.time=t,r.cycle=e,r},Op:function(t){this.xp=t},Ep:function(t,i){return!0},Ip:function(t){},hasChildAnimations:function(){return!1}});function Fn(t,i){for(;t;)t.yp=void 0,i?i=!1:t._p=void 0,t=t.kp}var Hn=Qs(Ln,{$init:function(t,i){this.isEvent=!0,this.Pp=!1,Ln.prototype.$init.call(this,i),this._p=this.options.duration||0,this.Rp=t},update:function(t,i){t=this.Jn(t),this.bp=t.cycle,this.ia=t.totalTime,this.Tp=t.time,this.Pp||(this.Pp=!0,this.Rp&&this.Rp(this.Tp,i))},Sp:function(t){Ln.prototype.Sp.call(this,t),this.Pp=t>0}}),Un=Qs(Ln,{$init:function(t,i,s){if(Ln.prototype.$init.call(this,s),(s=this.options).tweenParams||(s.tweenParams=[]),void 0===s.relative&&(s.relative=_n.Gd),void 0===s.tweenType){var e=Yn[i];e&&(s.tweenType=e.tween)}this.du=t,t.animProps||(t.animProps=new Xn(t)),this.Mp=i,this._p=s.duration||0,this.Np=s.additive||!1,this.Ap=s.easing||wn.linear,s.revert&&(this.Dp=!0),as(this.options.tweenParams[0])||(this.Yp=xn.apply(null,[s.tweenType].concat(s.tweenParams)))},setup:function(){if(as(this.options.tweenParams[0]))this.Yp=xn.apply(null,[this.options.tweenType].concat(this.options.tweenParams[0].apply(this,this.options.tweenParams.slice(1))));else if(this.options.relative!==_n.Gd){var t=this.Xp(this.options.relative==_n.Qd);this.Yp.resolveRelative.apply(this.Yp,[this.options.relative,t].concat(this.options.tweenParams))}},update:function(t,i){t=this.Jn(t);var s=this.Tp!=t.time||this.bp!=t.cycle,e=this.Ap(this._p?t.time/this._p:1);this.Dp&&t.totalTime>=this.yp&&(e=0),this.bp=t.cycle,this.Tp=t.time,this.ia=t.totalTime,this.Np?this.du.animProps.add(this.Mp,this.Yp.value(e)):this.du.animProps.set(this.Mp,this.Yp.value(e)),this.xp&&s&&this.xp.Lp(this.Mp,this.du)},Op:function(t){t!==this.xp&&(this.xp&&this.xp.Fp(this.Mp,this.du),this.xp=t,t&&t.Hp(this.Mp,this.du))},Ep:function(t,i){return this!==i&&(this.du===i.du&&(this.update(t,!0),this.Tp=void 0),!0)},Xp:function(t){var i;if(this.xp&&!t){for(var s=0,e=this,r=this.xp,n=ns({},this.du.animProps.mp);e&&e!==r;)s=e.qn+s/e.Hn,e=e.kp;r.Ep(s,this),i=this.du.animProps.get(this.Mp),this.du.animProps.mp=n}else i=this.du.animProps.fromTarget(this.Mp);return i}}),Bn=Qs(Un,{Ip:function(t){var i=this.du.Dn;i&&((i.Xc||this.xp&&this.xp.xl?i.fe&&i.fe.timeline.or:this.Cp())?i.ec():i.sc())},update:function(t,i){if((i||!this.started())&&(!this.xp||!this.xp.xl||!this.Up)){this.Up=1;var s=this.du.Dn;s&&s.ic()}Un.prototype.update.call(this,t)},setup:function(){delete this.Up,Un.prototype.setup.call(this)}}),Zn=Qs(Ln,{$init:function(t){Ln.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._p){var i,s=this.lastChild;for(t=0;s;)(s.gp>0||-1===s.gp)&&(i=s.qn+s.totalDuration()/s.Hn)>t&&(t=i),s=s.prev;this._p=t}return this._p}return t&&(this._p||this.duration())&&this.speed(this._p/t),this},totalDuration:function(t){return arguments.length?(this.gp>0&&t&&(this.yp||this.totalDuration())&&this.speed(this.yp/t),this):void 0!==this.yp?this.yp:Ln.prototype.totalDuration.call(this)},update:function(t,i){var s=this.Jn(t);s.cycle>1&&this.ia<(s.cycle-1)*this._p&&this.started()&&(this.update((s.cycle-1)*this._p,i),this.Sp(t)),this.bp=s.cycle,this.Tp=s.time,this.ia=s.totalTime;for(var e,r=this.Cp(),n=s.time,a=this.firstChild;a&&!(a.qn>n)&&(e=a.next,a.or||(a.update((n-a.qn)*a.Hn,i),!a.firstChild||this.bp===s.cycle&&this.Tp===n&&this.Cp()===r));)a=e},Op:function(t){if(t!==this.xp){for(var i=this.firstChild;i;)i.Op(t),i=i.next;this.xp=t}},addChild:function(t,i){if(t.isEvent&&!this.isTimeline)return gs("Only timeline can add timing event"),this;t.kp&&t.remove();for(var s=this.lastChild;s&&(i?s.qn>=t.qn:s.qn>t.qn);)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.kp=this,t.Op(this.isTimeline?this:this.xp),void 0!==this._p&&t.endTime()>this._p&&(this._p=t.endTime(),Fn(this,!0)),this},removeChild:function(t){return t.kp===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.kp=null,t.xp&&t.Op(null),void 0!==this._p&&t.endTime()>=this._p&&Fn(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 Ln.prototype.paused.call(this);Ln.prototype.paused.call(this,t);for(var i=this.firstChild;i;)i.Ip(t),i=i.next;return this},Ep:function(t,i){if(this===i)return!1;t=this.Jn(t).time;for(var s=this.firstChild;s;){if(s.qn<=t&&!s.Ep((t-s.qn)*s.Hn,i))return!1;s=s.next}return!0},Sp:function(t){Ln.prototype.Sp.call(this,t),t=this.Jn(t).uncapTime;for(var i=this.firstChild;i;)i.Sp((t-i.qn)*i.Hn),i=i.next},Ip:function(t){Ln.prototype.Ip.call(this,t);for(var i=this.firstChild;i;)i.Ip(t),i=i.next},hasChildAnimations:function(){return!!this.firstChild}});function zn(t,i){return t.active-i.active||t.order-i.order}var Gn=Qs(Zn,{isTimeline:!0,$init:function(t){Zn.prototype.$init.call(this,t),this.Bp=[]},setup:function(){var t,i,s,e,r,n,a=this.Bp,h=a.length,o=[];for(n=0;n<h;++n)t=a[n].target,(s=a[n].props).display&&(s.display.value=t.animProps.fromTarget("display"));for(n=0;n<h;++n){var u=Je(a[n].target);u.length&&o.push(u)}for(n=0;n<h;++n){t=a[n].target,s=a[n].props,e={};for(i in s)Yn[i]&&Yn[i].base?e[Yn[i].base]=1:e[i]=1;delete e.display;for(i in e)if(r=t.animProps.fromTarget(i),s[i])s[i].value=r;else for(i in r)s[i]?s[i].value=r[i]:s[i]={value:r[i],count:0}}for(Zn.prototype.setup.call(this),n=0,h=o.length;n<h;++n)tr(o[n])},update:function(t,i){t=this.Jn(t),this.bp=t.cycle,this.ia=t.totalTime;var s,e,r=this.Cp();if(i||this.Tp!==t.time){this.Zp();var n,a,h,o=this.Tp=t.time,u=!1,c=!1,f=!0;if(!r)for(s=this.firstChild;s&&!(s.qn>t.time);){if(e=s.next,s.isEvent&&!s.or&&!s.Pp)for(this.Tp=o=s.qn,this.ia=t.totalTime+o-t.time,h=0;h<2;++h){for(1===h&&(this.zp(i),f=!1),n=this.firstChild,c=!0;n&&!(n.qn>o);){if(a=n.next,!n.or&&(0===h&&!n.isEvent||1===h&&n.isEvent)&&(n.update((o-n.qn)*n.Hn,i),(n.isEvent||n.firstChild)&&(this.bp!==t.cycle||this.Tp!==o||this.Cp()!==r))){u=!0;break}n=a}if(u)break}if(u)break;s=e}if(!(u||this.Tp===t.time&&c))for(this.Tp=o=t.time,this.ia=t.totalTime,n=this.firstChild;n&&!(n.qn>o)&&(a=n.next,n.or||n.isEvent||(n.update((o-n.qn)*n.Hn,i),f=!0,!n.firstChild||this.bp===t.cycle&&this.Tp===o&&this.Cp()===r));)n=a;f&&this.zp(i)}else if(!r)for(s=this.firstChild;s&&!(s.qn>t.time)&&(e=s.next,!s.isEvent||s.qn!==this.Tp||s.or||s.Pp||(s.update(0,i),this.bp===t.cycle&&this.Tp===t.time&&this.Cp()===r));)s=e},reset:function(){this.pause(0),this.Zp(),this.zp(!0),this.started(!1)},Zp:function(){var t,i,s,e,r,n=this.Bp;for(e=0,r=n.length;e<r;++e){t=n[e].target,s=n[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)}},zp:function(t){var i,s,e,r,n,a,h,o,u,c,f=this.Bp;for(a=0,h=f.length;a<h;++a){c=f[a].target,n=f[a].props,s={};for(r in n)(t||n[r].active)&&(e={name:r,active:n[r].active?1:0,order:0},Yn[r]&&(Yn[r].base?(e.name=Yn[r].base,e.order=Yn[e.name].order||0):e.order=Yn[r].order||0),s[e.name]?e.active&&(s[e.name].active=1):s[e.name]=e);i=[];for(r in s)i.push(s[r]);for(i.sort(zn),o=0,u=i.length;o<u;++o)c.animProps.apply(i[o].name)}},Ep:function(t,i){var s,e,r,n,a,h=this.Bp;for(n=0,a=h.length;n<a;++n)if((s=h[n].target)===i.du){r=h[n].props;for(e in r)r[e].active=!1,s.animProps.set(e,r[e].value)}return Zn.prototype.Ep.call(this,t,i)},Op:function(t){this.xp=t},Hp:function(t,i){var s,e,r,n,a,h=this.Bp;for(n=0,a=h.length;n<a;++n)if(h[n].target===i){s=h[n];break}if(s||(s={target:i,props:{},count:0},h.push(s)),e=s.props,(r=Yn[t])&&r.children&&(a=r.children.length))for(n=0;n<a;++n)e[t=r.children[n]]?++e[t].count:(e[t]={count:1},++s.count);else e[t]?++e[t].count:(e[t]={count:1},++s.count)},Fp:function(t,i){var s,e,r,n,a,h,o=this.Bp;for(a=0,h=o.length;a<h;++a)if(o[a].target===i){s=o[a],n=a;break}if(s){if(e=s.props,(r=Yn[t])&&r.children&&(h=r.children.length))for(a=0;a<h;++a)e[t=r.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(n,1)}},Lp:function(t,i){var s,e,r,n,a,h=this.Bp;for(n=0,a=h.length;n<a;++n)if(h[n].target===i){s=h[n];break}if(s)if(e=s.props,(r=Yn[t])&&r.children&&(a=r.children.length))for(n=0;n<a;++n)e[t=r.children[n]]&&(e[t].active=!0);else e[t]&&(e[t].active=!0)}});ns(ke,{$:t,jQuery:t,Easing:wn,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:ki,Object:rr,color:Rs,createClass:Qs,Locale:Se,SVGShape:dn,ShapePath:hn,ClickMaxDistance:1,DoubleClickMaxTime:400,SwipeMinDistance:30,SwipeMaxDeflection:200,SwipeMinVelocity:.3,TransitionMinDuration:500,AutoTransitionDirection:!0,Timeline:Gn,Animation:Un,MediaAnimation:Bn,AnimationGroup:Zn,TimingEvent:Hn,RelativeTweenType:_n,TweenType:ti,logDebug:gs,ZIndex:qt,ControlKind:i,ControlType:s,TextBoxFlags:ct,ResponseResult:Xt,PlayModes:ii,animatedProperties:Yn,DragDrop:Qe,htmlEscape:ys,htmlToText:Ts,Key:pe,splitText:function(t,i){var s=[],e={};if((i=i||{words:!0}).chars||i.words){var r,n;if(i.chars&&(e.chars=[]),i.words&&(e.words=[]),e.processStyles={},i.processStyles){var a=i.processStyles.split(",");for(r=0,n=a.length;r<n;++r)e.processStyles[a[r].trim()]=[]}for(function t(i,s,e){if(i){for(var r in e)i.style&&i.style[r]&&e[r].push(i);for(var n=0,a=i.childNodes.length;n<a;++n){var h=i.childNodes[n];3==h.nodeType?s.push(h):t(h,s,e)}}}(t,s,e.processStyles),r=0,n=s.length;r<n;++r)Cs(s[r],e,i)}return e},support:vs,forceGPU:!ke.browser.chromiums,shortcuts:{build:de.combinedCode,clickSequence:{forward:[pe.RIGHT,pe.DOWN],back:[pe.LEFT,pe.UP],mouse:!0}}}),window.AtomiAP=ke,gn.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,r=t.EffectDirection,n=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,r,n,o,u,c,f,l){var d={startTime:r,duration:n,tweenParams:o,easing:u,additive:void 0===f,relative:c,revert:l};u==m&&(d.easing=v,d.tweenType=t.TweenType.bs),"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 r,n,a,h,o,u,c=[];for(r=0,n=t.length;r<n;++r){for(h=t[r],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,r){if(s%360){t-=e=e||0,i-=r=r||0,s=s*Math.PI/180;var n=Math.cos(s),a=Math.sin(s);return{x:n*t-a*i+e,y:a*t+n*i+r}}return{x:t,y:i}};var T=t.rotatePoint;function k(t,i,s){var e,r,n,a=t[this.du.slide.prez().layoutIndex];if(!a.normed){for(r=0,n=a.length;r<n;++r){e=a[r];for(var h=0;h<6;++h)e[h]=e[h]/1e3}a.normed=!0}var o=this.du.animProps.fromTarget(this.Mp),u=this.du.score?this.du:this.du.parent;if(u&&i){var c=u.transformOrigin(!0);o.translateX-=c.x,o.translateY-=c.y}if(u&&u!=this.du){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[r=1==s?0:a.length-1]?a[r].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 r=(t+s)/2,n=(i+e)/2;return[[t,i,t,i,r,n],[s,e,r,n,s,e]]}function C(t,i){var s=this.Xp(),e=this.du.animProps.fromTarget(this.Mp),n=this.du.transformedContentBox(!0),a=this.du.slide,h=0,o=0;switch(n.x+=s.translateX-e.translateX,n.y+=s.translateY-e.translateY,t){case r.LEFT:h=-n.x-n.width;break;case r.TOP:o=-n.y-n.height;break;case r.RIGHT:h=a.offsetSize().width-n.x;break;case r.BOTTOM:o=a.offsetSize().height-n.y;break;case r.TOP_LEFT:h=-n.x-n.width,o=-n.y-n.height;break;case r.TOP_RIGHT:h=a.offsetSize().width-n.x,o=-n.y-n.height;break;case r.BOTTOM_RIGHT:h=a.offsetSize().width-n.x,o=a.offsetSize().height-n.y;break;case r.BOTTOM_LEFT:h=-n.x-n.width,o=a.offsetSize().height-n.y}var u=this.du.parent&&this.du.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.du.parent&&this.du.parent.rotateToSlide()||0,e=T(0,t==r.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.du.transformedContentBox(!0),e=this.du.parent&&this.du.parent.rotateToSlide()||0,n=0,a=0;switch(t){case r.LEFT:n=-s.width;break;case r.TOP:a=-s.height;break;case r.RIGHT:n=s.width;break;case r.BOTTOM:a=s.height;break;case r.TOP_LEFT:n=-s.width,a=-s.height;break;case r.TOP_RIGHT:n=s.width,a=-s.height;break;case r.BOTTOM_RIGHT:n=s.width,a=s.height;break;case r.BOTTOM_LEFT:n=-s.width,a=s.height}var h=T(n,a,-e);return n=h.x,a=h.y,[i?x(0,0,n,a):x(n,a,0,0)]}function E(t,i){var s,e,n=this.du,a=n.contentBox(),h=a.width,o=a.height;return s=50*((a=n.transformedContentBox(!0)).width/h-1),e=50*(a.height/o-1),t==r.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==r.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==r.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==r.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==r.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==r.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==r.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==r.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.du.rotateToSlide();return t==r.BOTTOM?i?[-s+"deg"]:[180-s+"deg"]:t==r.BOTTOM_LEFT?i?[45-s+"deg"]:[225-s+"deg"]:t==r.BOTTOM_RIGHT?i?[-s-45+"deg"]:[135-s+"deg"]:t==r.TOP?i?[180-s+"deg"]:[-s+"deg"]:t==r.TOP_RIGHT?i?[225-s+"deg"]:[45-s+"deg"]:t==r.TOP_LEFT?i?[135-s+"deg"]:[-s-45+"deg"]:t==r.LEFT?i?[90-s+"deg"]:[-s-90+"deg"]:t==r.RIGHT?i?[-s-90+"deg"]:[90-s+"deg"]:[]}function P(t,i){var s,e,n=this.du,a=n.contentBox(),h=a.width,o=a.height;return s=50*((a=n.transformedContentBox(!0)).width/h-1),e=50*(a.height/o-1),t==r.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==r.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==r.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==r.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==r.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==r.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.du.rotateToSlide();return t==r.VERTICAL_IN||t==r.HORIZONTAL_IN?i=t==r.VERTICAL_IN?90-s+"deg":180-s+"deg":t!=r.VERTICAL_OUT&&t!=r.HORIZONTAL_OUT||(i=t==r.VERTICAL_OUT?90-s+"deg":180-s+"deg"),[i]}function M(t){var i=this.du.rotateToSlide();return[t==r.VERTICAL?90-i+"deg":180-i+"deg"]}function N(t,i){var s,e,n,a,h=this.du,o=h.contentBox(),u=o.width,c=o.height;s=(o=h.transformedContentBox(!0)).width,e=o.height;var f=(100+(n=100*(s/u-1)))/7,l=(100+(a=100*(e/c-1)))/5,d=[],p=[];if(t==r.HORIZONTAL)for(var v=0;v<5;++v){var m=[b=[-n/2,-a/2+v*l],w=[100+n/2,-a/2+v*l],[100+n/2,-a/2+v*l],[-n/2,-a/2+v*l]],g=[b,w,[100+n/2,-a/2+(v+1)*l],[-n/2,-a/2+(v+1)*l]];d.push(m),p.push(g)}else for(v=0;v<7;++v){var b,w;m=[b=[-n/2+v*f,-a/2],w=[-n/2+v*f,100+a/2],w,b],g=[b,w,[-n/2+(v+1)*f,100+a/2],[-n/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,r=this.du,n=r.contentBox(),a=n.width,h=n.height;return s=50*((n=r.transformedContentBox(!0)).width/a-1),e=50*(n.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.du,r=e.contentBox(),n=r.width,a=r.height;if(i=100*((r=e.transformedContentBox(!0)).width/n-1),s=100*(r.height/a-1),!this.du.dissolvePolygons){this.du.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.du.dissolvePolygons.push(f)}}for(var l=[],d=0;d<t.length;++d)l.push(this.du.dissolvePolygons[t[d]]);return[l]}function Y(t,i,s){var e,n,a,h,o=this.du,u=o.contentBox(),c=u.width,f=u.height;e=(u=o.transformedContentBox(!0)).width,n=u.height;var l=100+(a=50*(e/c-1)),d=100+(h=50*(n/f-1));if(t==r.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==r.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==r.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==r.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==r.ROTATE_8_SPOKES){var rt,nt,at,ht,ot,ut,ct,ft,lt,dt,pt,vt,mt,gt,bt,wt;return s?(rt=[[50,50],[50,-h],[50,-h]],lt=[[50,50],[50,-h],[l,-h]],nt=[[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]]):(rt=[[50,50],[50,-h],[l,-h]],lt=[[50,50],[l,-h],[l,-h]],nt=[[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=[rt,nt,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.du.rotateToSlide();return t==r.LEFT_DOWN?s=i?225-e+"deg":45-e+"deg":t==r.RIGHT_DOWN?s=i?135-e+"deg":-e-45+"deg":t==r.LEFT_UP?s=i?-e-45+"deg":135-e+"deg":t==r.RIGHT_UP&&(s=i?45-e+"deg":225-e+"deg"),[s]}function L(t,i){var s,e,n,a,h=this.du,o=h.contentBox(),u=o.width,c=o.height;s=(o=h.transformedContentBox(!0)).width,e=o.height;var f=(100+(n=100*(s/u-1)))/6,l=(100+(a=100*(e/c-1)))/6;if(startPolygons=[],endPolygons=[],t==r.ACROSS)for(var d=0;d<6;++d)for(var p=0;p<7;++p){var v=[g=d%2?[p*f-n/2,d*l-a/2]:[(p-.5)*f-n/2,d*l-a/2],b=g,w=d%2?[p*f-n/2,(d+1)*l-a/2]:[(p-.5)*f-n/2,(d+1)*l-a/2],_=w],m=[g,d%2?[(p+1)*f-n/2,d*l-a/2]:[(p+.5)*f-n/2,d*l-a/2],d%2?[(p+1)*f-n/2,(d+1)*l-a/2]:[(p+.5)*f-n/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-n/2,d*l-a/2]:[p*f-n/2,(d-.5)*l-a/2],b=p%2?[(p+1)*f-n/2,d*l-a/2]:[(p+1)*f-n/2,(d-.5)*l-a/2],w=b,_=g],m=[g,b,p%2?[(p+1)*f-n/2,(d+1)*l-a/2]:[(p+1)*f-n/2,(d+.5)*l-a/2],p%2?[p*f-n/2,(d+1)*l-a/2]:[p*f-n/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,r,n=this.du.parent&&-this.du.parent.rotateToSlide()||0;if(0==i)e=s?T(0,0,n):T(t[0],t[1],n),r=T(t[2],t[3],n);else{if(1!=i)return[null,{translateX:-(e=T(t[0],t[1],n)).x,translateY:-e.y}];e=T(0,0,n),r=s?T(t[0]-t[2],t[1]-t[3],n):T(-t[2],-t[3],n)}return[x(e.x,e.y,r.x,r.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.du.transformedContentBox(!0);s.y+=this.Xp().translateY-this.du.animProps.fromTarget(this.Mp).translateY;var e=this.du.slide.offsetSize().height-s.y,r=-s.y-s.height}var n,a,h;i?0==t?(n=a=r,this.du.Gp=e-r,this.du.Vp=-e):1==t?(h=!0,n=0,a=this.du.Gp,delete this.du.Gp):(n=a=this.du.Vp,delete this.du.Vp):0==t?(h=!0,n=e,a=r,this.du.Wp=-r):(n=a=this.du.Wp,delete this.du.Wp);var o=this.du.parent&&this.du.parent.rotateToSlide()||0;return n=T(0,n,-o),h?(a=T(0,a,-o),[x(n.x,n.y,a.x,a.y)]):[null,{translateX:n.x,translateY:n.y}]}function Z(t,i){if(0==t){var s=this.du.transformedContentBox(!0);s.y+=this.Xp().translateY-this.du.animProps.fromTarget(this.Mp).translateY;var e=this.du.slide.offsetSize().height-s.y}var r,n;i?(r=0,0==t?(n=-30,this.du.riseUpSetupOutVal=e):1==t?n=this.du.riseUpSetupOutVal+30:(r=n=-this.du.riseUpSetupOutVal,delete this.du.riseUpSetupOutVal)):0==t?(r=e,n=-30):(r=0,n=30);var a=this.du.parent&&this.du.parent.rotateToSlide()||0;return r=T(0,r,-a),i&&t>1?[null,{translateX:r.x,translateY:r.y}]:(n=T(0,n,-a),[x(r.x,r.y,n.x,n.y)])}function z(t,i){var s=197*.5522847498,e=112*.4477152502,r=y([[0,0,0,0,s,0],[197,112,197,e,197,224-e],[0,224,s,224,0,224]],-(this.du.parent&&this.du.parent.rotateToSlide()||0));if(i)return 0==t?[r]:[null,{translateX:r[0][0]-r[2][0],translateY:r[0][1]-r[2][1]}];var n=r[2][0],a=r[2][1];if(0==t)return[null,{translateX:n,translateY:a}];r.reverse();for(var h=0;h<r.length;++h){var o,u,c=r[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]-n,c[u+1]=c[u+1]-a}return[r]}function G(t,i){return t*=i?this.du.slide.offsetSize().height/100:this.du.slide.offsetSize().width/100,[this.Xp(),t]}t.createZoomAndPan=function(t,s,e,r){var n=new o({startTime:0});if(_(n,t,"scale",0,0,[1],i,g.Vd,w),_(n,t,"translateX",0,0,[0],i,g.Vd,w),_(n,t,"translateY",0,0,[0],i,g.Vd,w),s&&s.length)for(var a=0;a<s.length;a++){var h=s[a];if(void 0!==h.m&&(h.m&r)==r){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],_(n,t,"scale",h.startTime,h.duration,[f],i,g.Vd,w),_(n,t,"translateX",h.startTime,h.duration,u,i,g.Vd,w),_(n,t,"translateY",h.startTime,h.duration,c,i,g.Vd,w)}}return n},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.Ws&&a.Ws(!0)},{startTime:u});if(h===e.TIME_OUT)return new c(function(){a.do&&a.do(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(rt=0,x=q.chars.length;rt<x;++rt)W.push(q.chars[rt]);if(Q.words&&q&&q.words)for(rt=0,x=q.words.length;rt<x;++rt)W.push(q.words[rt])}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==r.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==r.IN||V==r.OUT||V==r.DIAMOND_IN||V==r.DIAMOND_OUT||V==r.PLUS_OUT?tt=[["clipPath",0,1,[P,V,!0]],["resetClipPath",1,0,[""]]]:V==r.PLUS_IN?tt=[["clipPath",0,1,[P,V,!0]],["resetClipPath",1,0,[""]]]:V==r.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==r.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==r.VERTICAL_IN||V==r.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!=r.VERTICAL_OUT&&V!=r.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,rt=0;rt<200;++rt){var nt=parseInt(5*Math.random()+1),at=[0,0,0,0,rt*et];it.push(at);var ht=rt%nt?[0,0,0,.2,rt*et]:[0,0,0,1,rt*et];st.push(ht)}var ot=[],ut=[];for(rt=0;rt<200;++rt)ot[rt]=st[rt],ut[rt]=[0,0,0,1,rt*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(rt=0;rt<Tt*ct;++rt)lt.push(rt);u=ft;var dt=[],pt=0;for(rt=0;rt<Tt;++rt){for(var vt=0;vt<ct;++vt){nt=parseInt(Math.random()*(lt.length-1));dt[pt]=lt[nt],lt.splice(nt,1),pt++}rt==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==r.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==r.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==r.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==r.ROTATE_4_SPOKES?tt=[["clipPath",[0,.5,[Y,V,0,!0],.5,.5,[Y,V,1,!0]]],["resetClipPath",1,0,[""]]]:V==r.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==r.CLOCKWISE?360:-360]]];else if(h==e.GROW_SHRINK){var gt,bt,wt,_t=[.5,.75,1.25,1.5],yt=g.o||[];for(rt=0;rt<yt.length;++rt)2==yt[rt].length&&(bt=yt[rt][0],wt=yt[rt][1],bt==n.EFFECT_OPTION_DIR?V=wt:bt==n.EFFECT_OPTION_SIZE&&(gt=_t[wt]));tt=[[V==r.HORIZONTAL?"scaleX":V==r.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==r.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==r.IN||V==r.OUT||V==r.DIAMOND_IN||V==r.DIAMOND_OUT||V==r.PLUS_IN?tt=[["clipPath",0,1,[P,V,!1]],["resetClipPath",1,0,[""]]]:V==r.PLUS_OUT?tt=[["clipPath",0,1,[P,V,!1]],["resetClipPath",1,0,[""]]]:V==r.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==r.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==r.VERTICAL_IN||V==r.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!=r.VERTICAL_OUT&&V!=r.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,rt=0;rt<200;++rt){nt=parseInt(5*Math.random()+1),at=[0,0,0,1,rt*et];it.push(at);ht=rt%nt?[0,0,0,.8,rt*et]:[0,0,0,0,rt*et];st.push(ht)}for(ot=[],ut=[],rt=0;rt<200;++rt)ot[rt]=st[rt],ut[rt]=[0,0,0,0,rt*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=[],rt=0;rt<Tt*ct;++rt)lt.push(rt);for(u=(Tt-1)/Tt,dt=[],pt=0,rt=0;rt<Tt;++rt){for(vt=0;vt<ct;++vt){nt=parseInt(Math.random()*(lt.length-1));dt[pt]=lt[nt],lt.splice(nt,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==r.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==r.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==r.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==r.ROTATE_4_SPOKES?tt=[["clipPath",[0,.5,[Y,V,0,!1],.5,.5,[Y,V,1,!1]]],["resetClipPath",1,0,[""]]]:V==r.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,[""]]),rt=0,x=W.length;rt<x;++rt)_(G,W[rt],"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(rt=0,x=W.length;rt<x;++rt)_(G,W[rt],"position",0,0,[{translateX:0,translateY:0}],m,s,w);for(rt=0,x=W.length;rt<x;++rt)for(kt=0==rt?0:K+j*(rt-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[rt],mt[0],kt+Et[Ot]*p,Et[Ot+1]*p,Et[Ot+2],mt[2],mt[3],mt[4],mt[5])}else _(G,W[rt],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(rt=0,x=q.listItems.length;rt<x;++rt)Rt=q.listItems[rt].node.style.listStyleType||"",_(Dt,q.listItems[rt],"listStyleType",0,0,[Rt,"none"]),_(Dt,q.listItems[rt],"listStyleType",At,0,["none",Rt]);if(q.processStyles)for(Pt in q.processStyles)if((Mt=q.processStyles[Pt])&&Mt.length){for(rt=W[0]==a.shape?1:0,x=W.length;rt<x;++rt)for(vt=Mt.length-1;vt>=0;--vt)if(t.$.contains(Mt[vt].node,W[rt].node)){Rt=Mt[vt].node.style[Pt],_(Dt,W[rt],Pt,0,0,["",Rt],m,s,w);break}for(rt=0,x=Mt.length;rt<x;++rt)Rt=Mt[rt].node.style[Pt],_(Dt,Mt[rt],Pt,0,0,[Rt,""],m,s,w),_(Dt,Mt[rt],Pt,At,0,["",Rt],m,s,w)}}if(h>=e.ENTRANCE_START&&h<=e.ENTRANCE_END)for(rt=0,x=W.length;rt<x;++rt)_(G,W[rt],"resetOpacity",St,0,[""]);else if(h>=e.EXIT_START&&h<=e.EXIT_END)for(rt=0,x=W.length;rt<x;++rt)_(G,W[rt],"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),rt=0,x=W.length;rt<x;++rt)_(Dt,W[rt],"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,r,n,a,h,o){var u=i.slide,c=i.slideBG;u&&_(t,u,s,r*e,n*e,a,h,o,w),c&&_(t,c,s,r*e,n*e,a,h,o,w)}t.TransitionType=V,t.createTransition=function(i,s,e,n,a,h,o){if(t.AutoTransitionDirection&&o&&s&&e){var c=e.ne.index,f=s.ne.index;isNaN(c)||isNaN(f)||f!=c-1||(h=function(t){switch(t){case r.BOTTOM:case r.LEFT:case r.RIGHT:case r.TOP:t=5-t;break;case r.BOTTOM_LEFT:case r.BOTTOM_RIGHT:case r.TOP_LEFT:case r.TOP_RIGHT:t=13-t;break;case r.THROUGH_BLACK_FROM_RIGHT:t=r.THROUGH_BLACK_FROM_LEFT;break;case r.THROUGH_BLACK_FROM_LEFT:t=r.THROUGH_BLACK_FROM_RIGHT;break;case r.SMOOTHLY_FROM_RIGHT:t=r.SMOOTHLY_FROM_LEFT;break;case r.SMOOTHLY_FROM_LEFT:t=r.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(n==V.CUT)h==r.NONE?W(w,T,"opacity",a,0,.1,[0,1]):h==r.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(n==V.FADE)h==r.SMOOTHLY?W(w,T,"opacity",a,0,1,[0,1]):h==r.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(n==V.PUSH)h==r.BOTTOM?(W(w,T,"translateY",a,0,1,[v.height,0],l),W(w,C,"translateY",a,0,1,[0,-b.height],l)):h==r.LEFT?(W(w,T,"translateX",a,0,1,[-v.width,0],l),W(w,C,"translateX",a,0,1,[0,b.width],l)):h==r.RIGHT?(W(w,T,"translateX",a,0,1,[v.width,0],l),W(w,C,"translateX",a,0,1,[0,-b.width],l)):h==r.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(n==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==r.BOTTOM?W(w,T,"gradientDirection",a,0,1,["to top"]):h==r.LEFT?W(w,T,"gradientDirection",a,0,1,["to right"]):h==r.RIGHT?W(w,T,"gradientDirection",a,0,1,["to left"]):h==r.TOP?W(w,T,"gradientDirection",a,0,1,["to bottom"]):h==r.BOTTOM_LEFT?W(w,T,"gradientDirection",a,0,1,["to top right"]):h==r.BOTTOM_RIGHT?W(w,T,"gradientDirection",a,0,1,["to top left"]):h==r.TOP_LEFT?W(w,T,"gradientDirection",a,0,1,["to bottom right"]):h==r.TOP_RIGHT&&W(w,T,"gradientDirection",a,0,1,["to bottom left"]),W(w,T,"resetMaskImage",a,1,0,[""]);else if(n==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==r.IN?(i.un(!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==r.OUT?(i.un(!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==r.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(n==V.COVER)h==r.BOTTOM?W(w,T,"translateY",a,0,1,[v.height],l,g.$d):h==r.LEFT?W(w,T,"translateX",a,0,1,[-v.width],l,g.$d):h==r.RIGHT?W(w,T,"translateX",a,0,1,[v.width],l,g.$d):h==r.TOP?W(w,T,"translateY",a,0,1,[-v.height],l,g.$d):h==r.BOTTOM_LEFT?(W(w,T,"translateY",a,0,1,[v.height],l,g.$d),W(w,T,"translateX",a,0,1,[-v.width],l,g.$d)):h==r.BOTTOM_RIGHT?(W(w,T,"translateY",a,0,1,[v.height],l,g.$d),W(w,T,"translateX",a,0,1,[v.width],l,g.$d)):h==r.TOP_RIGHT?(W(w,T,"translateY",a,0,1,[-v.height],l,g.$d),W(w,T,"translateX",a,0,1,[v.width],l,g.$d)):h==r.TOP_LEFT&&(W(w,T,"translateY",a,0,1,[-v.height],l,g.$d),W(w,T,"translateX",a,0,1,[-v.width],l,g.$d));else if(n==V.UNCOVER)i.un(!0),h==r.BOTTOM?W(w,C,"translateY",a,0,1,[0,-b.height],d):h==r.LEFT?W(w,C,"translateX",a,0,1,[0,b.width],d):h==r.RIGHT?W(w,C,"translateX",a,0,1,[0,-b.width],d):h==r.TOP?W(w,C,"translateY",a,0,1,[0,b.height],d):h==r.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==r.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==r.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==r.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(n==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==r.SMOOTHLY_FROM_RIGHT||h==r.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!=r.THROUGH_BLACK_FROM_RIGHT&&h!=r.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==r.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==r.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(n==V.SPLIT&&t.support.maskImage){W(w,T,"gradientType",a,0,1,["linear-gradient"]),h==r.VERTICAL_OUT||h==r.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==r.VERTICAL_OUT?"to right":"to bottom"])):h!=r.VERTICAL_IN&&h!=r.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==r.VERTICAL_IN?"to right":"to bottom"])),W(w,T,"resetMaskImage",a,1,0,[""])}else if(n==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==r.VERTICAL?"to right":"to bottom"]),W(w,T,"resetMaskImage",a,1,0,[""])}else if(n==V.SHAPE){if(h==r.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==r.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==r.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==r.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==r.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(n==V.CLOCK){if(h==r.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==r.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(n==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(n==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(n==V.BARS){Y=100/7,X=20;var z=[],G=[];if(h==r.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(n==V.COMB&&t.support.clipPath){i.un(!0),W(w,C,"opacity",a,0,1,[0,0]);var q=[];if(h==r.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==r.HORIZONTAL?10:14])}else if(n==V.DOORS&&t.support.clipPath){if(i.un(!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==r.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 rt=[b.width,b.width],nt=[2,2],at=[b.width+2,b.width+2];W(w,x,"zCropNodes",a,0,1,[[0,0],rt],p),W(w,k,"zCropNodes",a,0,1,[nt,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,[nt=[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(n==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==r.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(n==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==r.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(n==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.Qi],m),W(w,_,"zIndex",a,.5,0,[t.ZIndex.ss],m),W(w,y,"zIndex",a,0,0,[t.ZIndex.ji],m),W(w,y,"zIndex",a,.5,0,[t.ZIndex.qi],m),W(w,k,"zIndex",a,0,0,[t.ZIndex.ss],m),W(w,k,"zIndex",a,.5,0,[t.ZIndex.Qi],m),W(w,x,"zIndex",a,0,0,[t.ZIndex.qi],m),W(w,x,"zIndex",a,.5,0,[t.ZIndex.ji],m),h==r.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(n==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==r.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==r.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==r.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(n==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!=r.RIGHT&&h!=r.LEFT||(i.un(!0),W(w,y,"zIndex",a,.2,0,[t.ZIndex.qi],m),W(w,_,"zIndex",a,.2,0,[t.ZIndex.ss],m),W(w,x,"zIndex",a,.2,0,[t.ZIndex.ji],m),W(w,k,"zIndex",a,.2,0,[t.ZIndex.Qi],m)),h==r.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==r.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==r.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(n==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.Ji+1],m),h==r.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(n==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.Ji+1],m),h==r.RIGHT?(W(w,k,"translate3dX",a,0,1,[0,-b.width]),W(w,_,"translate3dX",a,0,1,[v.width,0])):h==r.BOTTOM?(W(w,k,"translate3dY",a,0,1,[0,-b.height]),W(w,_,"translate3dY",a,0,1,[v.height,0])):h==r.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(n==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.Ji+1],m),h==r.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(n==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.Ji+1],m),h!=r.RIGHT&&h!=r.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==r.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==r.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==r.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(n==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.ss+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==r.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,[nt=[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,[nt=[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 n==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.Ji+1],m),h==r.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==r.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==r.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,[""])):n==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.Ji+1],m),h==r.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.$p={responsive:!1,slideWidth:500,slideHeight:800},this.Cr=!1,this.Kp=[],this.jp=[],this.Zr=1,this.Wo=null,this.pe=null,this.Qp=null,this.qp=null,this.Jp=null,this.tv=null,this.iv=null,this.sv=null,this.ev="",this.rv=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.rv,e);var r=this;this.nv={mode:s.AUTOFIT,prevMode:s.AUTOFIT,register:function(){var e=this;this.hv=function(){var n=t.fullscreen.fullscreenElement();if(n){var a=i(r.ev)[0];n==a&&(i(a).addClass("ap-fullscreen"),requestAnimationFrame(function(){r.layout()}))}else i(r.ev).removeClass("ap-fullscreen"),e.mode==s.FULLSCREEN?e.changeMode(e.prevMode):r.layout()},t.fullscreen.addEventListener("fullscreenchange",this.hv,!1)},unregister:function(){t.fullscreen.removeEventListener("fullscreenchange",this.hv,!1)},changeMode:function(e){if(this.mode!=e){var n=r.stage()[0];n&&(n.scrollLeft=n.scrollTop=0),this.prevMode=this.mode,this.mode=e,i(r).trigger("ui:ap-displayModeChanged",[e]),this.mode==s.FULLSCREEN?t.fullscreen.requestFullscreen(i(r.ev)[0]):t.fullscreen.fullscreenElement()?t.fullscreen.exitFullscreen():r.layout()}}}},container:function(){return i(this.ev)},stage:function(){return i(".ap-stage",i(this.ev))},canvas:function(){return i(".ap-canvas",i(this.ev))},contentArea:function(){return i(".ap-content-area",i(this.ev))},slides:function(){return i(".ap-slides",this.ev)},feedbackSlides:function(){return i(".ap-feedback-slides",this.ev)},sidebar:function(){return i(".ap-side-bar",i(this.ev))},sidebarExpand:function(){return i(".ap-side-bar-expand",i(this.ev))},companyLogo:function(){return i(".ap-company-logo",i(this.ev))},presenterInfo:function(){return i(".ap-presenter-info",i(this.ev))},tocContainer:function(){return i(".ap-toc-container",i(this.ev))},resourcesContainer:function(){return i(".ap-resources-container",i(this.ev))},topbar:function(){return i(".ap-toolbar-top",i(this.ev))},bottombar:function(){return i(".ap-toolbar-bottom",i(this.ev))},toolbar:function(){return this.bottombar()},showToc:function(t){this.Qp&&(t?(this.Qp.show(),this.Qp.scrollToCurrentSlide()):this.Qp.hide(),2==this.Wo.TocStyle&&this.layout())},tocVisible:function(){return!(!this.Qp||!this.Qp.isShow())},showSidebar:function(t){t?(this.sidebar().show(),this.sidebarExpand().attr("sidebar-show",!0),this.tocVisible()&&this.Qp.scrollToCurrentSlide()):(this.sidebar().hide(),this.sidebarExpand().attr("sidebar-show",!1)),this.layout(),t&&"false"===this.sidebarExpand().attr("data-value")&&this.Pn(!0,!0)},sidebarVisible:function(){var t=this.sidebar();return t&&"none"!=t.css("display")},showResources:function(t){this.sv&&(t?this.sv.show():this.sv.hide())},resourcesVisible:function(){return this.sv&&this.sv.isShow()},autoHidePlayerBar:function(t){0==arguments.length?(this.Jp&&this.Jp.autoHide(),this.qp&&this.qp.autoHide()):(this.Jp&&this.Jp.isAutoHide()||this.qp&&this.qp.isAutoHide())!=t&&(this.Jp&&this.Jp.autoHide(t),this.qp&&this.qp.autoHide(t),this.layout())},showTopbar:function(t){this.Jp&&(t?this.Jp.show():this.Jp.hide(),this.layout())},topbarVisible:function(){return this.Jp&&this.Jp.visible()},showBottombar:function(t){this.qp&&(t?this.qp.show():this.qp.hide(),this.layout())},bottombarVisible:function(){return this.qp&&this.qp.visible()},showToolbar:function(t){this.showBottombar(t)},toolbarVisible:function(){return this.bottombarVisible()},isAutoFit:function(){return this.nv.mode==s.AUTOFIT||this.nv.mode==s.FULLSCREEN},getMaxContentSize:function(){var t,s,e,r,n,a,h=this.Wo.SideBarPos,o=this.topbar(),u=this.bottombar(),c=this.sidebar(),f=i(this.ev),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,n=f.height()-s-e-2*l,r=a,void 0!==this.ov&&a>this.ov&&(a=this.ov),{width:a,height:n,maxContainerWidth:r}},setMaxContentWidth:function(t){this.ov=t},setSlideSize:function(i,s){this.$p.slideWidth===i&&this.$p.slideHeight===s||(t.logDebug("Change slide size from "+this.$p.slideWidth+"x"+this.$p.slideHeight+" to "+i+"x"+s),this.$p.slideWidth=i,this.$p.slideHeight=s,this.layout())},getContainerFitRect:function(){var t,s,e,r,n,a,h,o,u=this.Wo.SideBarPos,c=this.topbar(),f=this.bottombar(),l=this.sidebar(),d=this.contentArea(),p=i(this.ev),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")?(r=e=n=0,m-=b,w=g+=b):(r=c.outerWidth(!0),e=c.outerHeight(!0),n=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,r,h),s=m+e+n+a+o,{x:(p.width()-t)/2,y:w,width:t,height:s}},layout:function(){if(this.Cr){var t,e,r,n,a,h,o,u,c,f=this.$p.slideWidth,l=this.$p.slideHeight,d=this.Wo.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.ev),k=parseInt(this.contentArea().css("padding-left")),x=this.nv.mode,C=0==this.Wo.PlayerSize;if(this.$p.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.Zr=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.Zr=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.Zr=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.Zr=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.Zr=1),m.trigger("ap-scaleChanged");r=0==b.length||"none"==b.css("display")||0==d||b[0].hasAttribute("collapse")?0:b[0].offsetWidth,n=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+r+(r>0?3:2)*k),u=e+2*k,o=(T.width()-h)/2,c=n+(T.height()-u-n-a)/2,C?g.css({left:o,top:c}).outerWidth(h).outerHeight(u):g.css({left:o,top:n}).outerWidth(h).outerHeight(u),1==d?(v.css({left:r+(r>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:n+u}).outerWidth(h));var E=this.Wo.SideBarWidth;h=t+E+(E>0?3:2)*k,E<=2*(t-E-16)||h<T.width()?"none"!=w.css("display")&&this.Pn(!0):E>2*t?this.Pn(!1):this.Pn(),this.uv=this.getContainerFitRect(),this.iv&&this.iv.layout(this.uv),i(this).trigger("ui:ap-layout")}},create:function(s,e,r,n,a,o){var u=o.playerLayouts.topbar||"",c=o.playerLayouts.bottombar||"",l=o.playerLayouts.sidebar||"";if(this.destroy(),this.Cr=!0,this.ev=s,this.Wo=a,this.$p=o,this.$p.responsive&&(t.fullscreen.fullscreenEnabled()||(this.Wo.ShowDisplayModeBtn=!1)),this.hc=o.playerIcons,this.cv=o.playbackRates?o.playbackRates:[.5,1,1.5,2],this.Kp=[],this.jp=[],this.lv=r,this.pe=new t.Locale(this.$p.language,this.$p.textDir),this.Jp=""!=u?new t.RLToolbar(this,u,!0):null,this.qp=""!=c?new t.RLToolbar(this,c,!1):null,this.contentArea().append(l),0==a.TocStyle||0==this.tocContainer().length?(this.Qp=null,this.tocContainer().remove()):(1==a.TocStyle&&(this.tocContainer().appendTo(this.container()),this.tocContainer().hide()),this.Qp=new t.RLToc(this,e,r),this.dv=function(){this.tocContainer()&&1==a.TocStyle&&this.tocVisible()&&this.Qp&&this.pv()},i(this).on("ui:ap-layout",this.dv)),!n||n.length<=0||0==this.resourcesContainer().length?(this.sv=null,this.resourcesContainer().remove()):(this.resourcesContainer().appendTo(this.container()),this.resourcesContainer().hide(),this.sv=new h(this,n),this.vv=function(){var t=this.resourcesContainer();if(t&&this.sv){var e=i(".ap-tool-resources",s);e&&this.mv(e,t,400,300)}},i(this).on("ui:ap-layout",this.vv)),!1===a.ShowTopBar&&this.showTopbar(!1),a.AutoHidePlayerBar){if(!this.gv){this.gv=new f(this.container()),this.gv.appendTo(this.container());var d=this;this.gv.onClick(function(){var t=d.Jp&&d.Jp.isAutoHide()||d.qp&&d.qp.isAutoHide();d.autoHidePlayerBar(!t)})}this.autoHidePlayerBar()}if(this.bv(),this.wv(this.ev),this.nv.register(),this.nv.changeMode(this.Wo.DisplayMode),t.browser.macOS){var p=this;setTimeout(function(){p.layout()},100)}else this.layout()},bv:function(){var t=this,e=this.pe,r=i(this.ev),n=i(this);n.on("ap-pause",function(s,n){i(".ap-tool-play",r).each(function(t){var s=i(this);"button"==s.attr("role")?s.attr("aria-pressed",n?"true":"false").attr("data-value",n).attr("title",e.text(n?"PlayPrez":"PausePrez")):"menuitemcheckbox"==s.attr("role")&&s.attr("aria-checked",n?"true":"false").attr("data-value",n)}),t.showPrezStateFeedback(n)}),n.on("ap-speed",function(t,s){i(".ap-tool-speed",r).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)})}),n.on("ap-mute",function(t,s){i(".ap-tool-sound",r).each(function(t){var r=i(this);"button"==r.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"Unmute":"Mute")):"menuitemcheckbox"==r.attr("role")&&r.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),n.on("ap-cc",function(t,s){i(".ap-tool-cc",r).each(function(t){var r=i(this);"button"==r.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"HideCC":"ShowCC")):"menuitemcheckbox"==r.attr("role")&&r.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),n.on("ap-sidebar",function(t,s){i(".ap-tool-sidebar",r).each(function(t){var r=i(this);"button"==r.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"HideSidebar":"ShowSidebar")):"menuitemcheckbox"==r.attr("role")&&r.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),n.on("ui:ap-displayModeChanged",function(n,a){var h,o=t.$p.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",r).each(function(){i(this).attr("data-value",o?2:a).attr("title",e.text(h))})}),n.on("ap-progress",function(s,n,a,h){var o,u,c=t.Kp;for(o=0,u=c.length;o<u;++o)c[o].setValue(h);void 0!==t._v&&Math.round(h/1e3)==Math.round(this._v/1e3)||(t._v=h,i(".ap-tool-position",r).html(e.number(AtomiAP.formatMSString(h)))),t.yv!==n&&(t.yv=n,i(".ap-tool-slide-index",r).html(e.number(n+1)))}),n.on("ap-volume",function(i,s){var e,r,n=t.jp;for(e=0,r=n.length;e<r;++e)n[e].setValue(s)}),n.on("ui:ap-pause",function(){t.Tv=!0}),n.on("ap-toc",function(s,n){i(".ap-tool-toc",r).each(function(s){var r=i(this);t.Qp&&("button"==r.attr("role")?r.attr("aria-pressed",n?"true":"false").attr("data-value",n).attr("title",e.text(n?"HideToc":"ShowToc")):"menuitemcheckbox"==r.attr("role")&&r.attr("aria-checked",n?"true":"false").attr("data-value",n))})}),n.on("ap-tool-multiple-language-cc",function(t,s){this.$p.defautlLanguageCCIndex=s,i(".ap-tool-cc",r).each(function(t){var r=i(this);s=-1!=s,"button"==r.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text("ClosedCaption")):"menuitemcheckbox"==r.attr("role")&&r.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),"Demo"==t.$p.playMode&&t.stage().on("click",function(){n.trigger("ui:ap-pause")})},kv:function(){"Demo"==this.$p.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")},xv:function(t){var s=this;return function(){i(s).trigger("ui:ap-speed",[t])}},Cv: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.$p.resourceLocation+this.$p.fileNamePrefix+"res_"+t+"."+s}return this.$p.resourceLocation+this.$p.fileNamePrefix+"res_"+t},wv:function(t){var e,r,n=this,a=this.$p.responsive,h=i(t),o=this.pe,c=n.cv?n.cv:[];for(this.Sv(t),i(".ap-tool-restart",h).on("click",function(){i(n).trigger("ui:ap-restart")}),i(".ap-tool-first",h).on("click",function(){i(n).trigger("ui:ap-first")}),i(".ap-tool-prev",h).on("click",function(){i(n).trigger("ui:ap-previous")}),i(".ap-tool-play",h).on("click",function(){i(n).trigger("ui:ap-pause")}),i(".ap-tool-next",h).on("click",function(){i(n).trigger("ui:ap-next")}),i(".ap-tool-last",h).on("click",function(){i(n).trigger("ui:ap-last")}),l=0,e=c.length;l<e;++l)r=c[l],i("."+n.Ov(r),h).on("click",n.xv(r));i(".ap-tool-sound",h).on("click",function(){i(n).trigger("ui:ap-sound")}),i('.ap-tool-cc[role="button"]',h).on("click",function(){return n.$p.multipleLanCCs&&n.$p.multipleLanCCs.length>1?(n.Ev(this),!1):(i(n).trigger("ui:ap-cc"),!0)}),i('.ap-tool-cc[role="menuitemcheckbox"]',h).on("click",function(){return i(n).trigger("ui:ap-cc"),!0}),i(".ap-tool-about",h).on("click",function(){i(n).trigger("ui:ap-about")}),i(".ap-tool-actualsize",h).on("click",function(){n.nv.changeMode(s.ACTUAL_SIZE)}),i(".ap-tool-autofit",h).on("click",function(){n.nv.changeMode(s.AUTOFIT)}),i(".ap-tool-fullscreen",h).on("click",function(){n.nv.changeMode(s.FULLSCREEN)}),i(".ap-tool-toc",h).on("click",function(){return i(n).trigger("ui:ap-toc"),1!=n.Wo.TocStyle}),i(".ap-tool-sidebar",h).on("click",function(){i(n).trigger("ui:ap-sidebar")}),i('.ap-tool-speed[role="button"]',h).on("click",function(){return n.Iv(this),!1}),i('.ap-tool-displaymode[role="button"]',h).on("click",function(){return n.$p.responsive?(n.nv.mode==s.FULLSCREEN?n.nv.changeMode(s.ACTUAL_SIZE):n.nv.changeMode(s.FULLSCREEN),!0):(n.Pv(this),!1)}),i('.ap-tool-setting[role="button"]',h).on("click",function(){return n.Rv(this),!1}),i(".ap-tool-resources",h).on("click",function(){return i(n).trigger("ui:ap-resources"),n.mv(this,n.resourcesContainer(),400,300),!1}),i(".ap-tool-exit",h).on("click",function(){i(n).trigger("ui:ap-exit")}),i(".ap-side-bar-expand",h).on("click",function(){"true"===n.sidebarExpand().attr("data-value")?n.Pn(!1,!0):n.Pn(!0,!0)});for(var f=0,l=0;l<this.lv.length;++l)f+=this.lv[l].duration;i(".ap-tool-progress",h).each(function(s){var e={followMouse:!1,max:f,slideInfos:n.lv};e.thumbnailPrefixPath=n.$p.resourceLocation+n.$p.fileNamePrefix;var r=new u(i(this),n.Wo,e);r.Mv=t,r.pe=n.pe,n.Kp.push(r),i(r).on("valueChanged",function(t,s){i(n).trigger("ui:ap-progress",[s])})}),i(".ap-tool-volume",h).each(function(s){var e=new u(i(this),i.extend({},n.Wo,{Navigation:!0}),{followMouse:!0});e.Mv=t,e.pe=n.pe,n.jp.push(e),i(e).on("valueChanging",function(t,s){i(n).trigger("ui:ap-volume",[s])}).on("valueChanged",function(t,s){i(n).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.lv.length||0)),i(".ap-tool-projectname",h).html(n.$p.projectName),i(".ap-tool-projectdesc",h).html(n.$p.description),i(".ap-tool-displaymode",h).attr("data-value",a?"2":n.nv.mode),i(".ap-presenter-info",h).each(function(t){if(n.Wo.ShowAuthorInfo||n.Wo.ShowAuthorImage||n.Wo.ShowCompanyLogo||n.Wo.ShowAuthorVideo){if(n.Wo.ShowCompanyLogo&&n.$p.companyLogo){var s=n.Cv(n.$p.companyLogo[0],n.$p.companyLogo[1]);i(this).append('<div class="ap-company-logo"><img src="'+s+'" /></div>')}if(n.Wo.ShowAuthorImage&&n.$p.authorImage){s=n.Cv(n.$p.authorImage[0],n.$p.authorImage[1]);i(this).append('<div class="ap-presenter-image"><img src="'+s+'" /></div>')}n.Wo.ShowAuthorVideo&&i(this).append('<div class="ap-presenter-video"></div>'),n.Wo.ShowAuthorInfo&&(n.$p.authorName&&i(this).append('<div class="ap-presenter-name">'+n.$p.authorName+"</div>"),n.$p.authorDesc&&i(this).append('<div class="ap-presenter-desc">'+n.$p.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(n).trigger("ui:ap-multiple-language-cc",t)})},Sv:function(t){var s,e,r,n,a=i(t),h=this.pe,o=this.Wo,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((n=i("."+(r=u[s])[0],a)).hasClass("ap-button")||n.hasClass("ap-label")||n.hasClass("ap-slider")){if(n.attr("title",h.text(r[1])).attr("data-enabled",r[2]),r[2]||n.hide(),n.hasClass("ap-button")&&this.hc){for(var c='<div class="ap-button-icon">',f=r[3],l=0;l<f.length;++l)c+=this.hc[f[l]];c+="</div>",c+='<div class="ap-button-label">'+h.text(r[1])+"</div>",n.append(c)}(n.hasClass("ap-tool-play")||n.hasClass("ap-tool-cc")||n.hasClass("ap-tool-sidebar")||n.hasClass("ap-tool-sound")||n.hasClass("ap-tool-toc"))&&n.attr("aria-pressed","false"),n.hasClass("ap-button")&&n.attr("role","button"),n.hasClass("ap-label")&&n.attr("role","presentation"),n.hasClass("ap-slider")&&n.attr("role","slider")}this.Wo.ShowPosition&&this.Wo.ShowPrezLen?i(".ap-time-slash",i(t)).html("/"):i(".ap-time-slash",i(t)).html("")},Nv:function(t){var s,e=i(t),r=this.cv?this.cv:[];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"),n=0,a=r.length;n<a;++n)s=r[n],i("."+this.Ov(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 n,a,h,o=this.Kp;for(this.Kp=[],n=0,a=o.length;n<a;++n)(h=o[n]).Mv==t?(i(h).off("valueChanged"),h.destroy()):this.Kp.push(h);for(o=this.jp,this.jp=[],n=0,a=o.length;n<a;++n)(h=o[n]).Mv==t?(i(h).off("valueChanged").off("valueChanging"),h.destroy()):this.jp.push(h)},destroy:function(){this.nv.unregister(),this.kv(),this.Nv(this.ev),this.Qp&&(this.Qp.destroy(),this.Qp=null),this.qp&&(this.qp.destroy(),this.qp=null),this.Jp&&(this.Jp.destroy(),this.Jp=null),this.sv&&(this.sv.destroy(),this.sv=null),this.Av(),this.contentArea().remove(),this.Cr=!1},appendTo:function(t){i(t).append(this.rv),this.Cr||i(this.rv).outerWidth(i(t).width()).outerHeight(i(t).height())},showMsg:function(i,s,e,r,n){void 0===n&&(n=[]),void 0===s&&(s=!0);var a=this.pe;this.iv&&this.iv.close();var h=this,o=new t.RLPopup(i,h);o.setOptions({isShowClose:s,overlay:!0,navItems:n,textDirection:h.$p.textDir,closeText:a.text("Close")}),o.onShow(function(){h.iv=o,e&&e()}),o.onClose(function(){h.iv=void 0,r&&r()}),o.show(this.ev,this.uv)},showAbout:function(t,i,s){var e=[],r="",n=this.pe;""!=t.Homepage&&(r='<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 />"+n.text("Author")+": <b>"+t.Author+"</b> \t\t\t\t\t<br />"+n.text("Copyright")+": <b>"+t.Copyright+"</b> \t\t\t\t\t<br />"+n.text("Homepage")+": <b>"+r+'</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'+n.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.ev),s.append('<div id="UnmuteHint" class="ap-unmute-hint"><span>'+this.pe.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(),r=this;if(r.Tv){r.Tv=!1,r.Dv&&clearTimeout(r.Dv),r.Yv&&clearTimeout(r.Yv),i(".ap-prez-state-btn",e).remove(),s='<div class="ap-prez-state-btn" data-animating="false">'+r.hc[t?"pause":"play"]+"</div>",e.append(s);var n=i(".ap-prez-state-btn",e);if(0!=n.length){var a=n.get(0);r.Dv=setTimeout(function(){a.setAttribute("data-animating","true"),r.Dv=void 0},100),r.Yv=setTimeout(function(){a.parentNode.removeChild(a),r.Yv=void 0},2e3)}}},mv:function(t,s,e,r){var n,a,h,o,u,c,f,l,d=this.container(),p=this.uv,v=i(t);n=Math.min(e,d.width()),a=Math.min(r,d.height()),h=v.offset().left+v.width()/2-n/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()+n),l=v.offset().left-(d.offset().left+n),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-n))):c>=0?(o=v.offset().top+v.height()-d.offset().top,h=Math.max(0,Math.min(h,p.x+p.width-n))):f>=0?(o=0,h=v.offset().left+v.width()+d.offset().left):(o=0,h=v.offset().left-d.offset().left-n),s.css({left:h,top:o,position:"absolute"}).outerWidth(n,!0).outerHeight(a,!0)},pv:function(){if(this.Qp&&this.tocVisible()){var t,s,e,r,n=this.container(),a=i(".ap-toc-content-wrapper",n),h=i(".ap-toc-container",n),o=i(".ap-toc-header",n),u=i(".ap-toc",n),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.uv,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,r=p.y+p.height-d-s,h.css({left:e,top:r,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:""}))}},Xv:function(t,s,e){var r=this.container(),n=this;t.appendTo(r),t.attachEventHanlders(function(t){n.wv(t)}),t.show(s,e,function(){t.detachEventHandlers(function(t){n.Nv(t)}),i(n).off("ui:ap-layout.hideMenu")}),i(n).on("ui:ap-layout.hideMenu",function(){t.destroy()})},Lv:function(t){return t.toFixed(1)+"x"},Ov:function(t){return"ap-tool-speed_"+t.toFixed(1).replace(".","_")},Iv:function(t){var s=this.Fv("mnuspeed");if(s)s.destroy();else{var e,r,n,a=i(t).attr("data-value"),h=this.cv?this.cv:[];for(a=void 0==a?1:parseFloat(a),s=new o("mnuspeed",this.hc,this),e=0,r=h.length;e<r;++e)n=parseFloat(h[e]),s.addRadioMenuItem(this.Ov(n),this.Lv(n),a==n);this.Xv(s,t,!0)}},Pv:function(i){var e="mnudisplaymode",r=this.Fv(e);if(r)r.destroy();else{var n=this.pe;(r=new o(e,this.hc,this)).addRadioMenuItem("ap-tool-actualsize",n.text("ActualSize"),this.nv.mode==s.ACTUAL_SIZE),r.addRadioMenuItem("ap-tool-autofit",n.text("AutoFit"),this.nv.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&r.addRadioMenuItem("ap-tool-fullscreen",n.text("FullScreen"),this.nv.mode==s.FULLSCREEN),this.Xv(r,i,!0)}},Ev:function(t){var s="mnumultiplelanguagecc",e=this.Fv(s);if(e)e.destroy();else{var r=this.pe,n=this.$p,a=n.multipleLanCCs,h=n.defautlLanguageCCIndex,u=(e=new o(s,this.hc,this)).addRadioMenuItem("ap-tool-multiple-language-cc",r.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.Xv(e,t,!0)}},Hv:function(t){return this.Uv?this.Uv.push(t):this.Uv=[t],this},Fv:function(t){if(this.Uv)for(var i=0;i<this.Uv.length;++i)if(this.Uv[i].id()==t)return this.Uv[i];return null},Bv:function(t){if(this.Uv){var i=this.Uv.indexOf(t);i>=0&&this.Uv.splice(i,1)}return this},Av:function(){if(this.Uv)for(;this.Uv.length;)this.Uv[this.Uv.length-1].destroy();return this},Rv:function(e){var r="mnusetting",n=this.Fv(r);if(n)n.destroy();else{var a=this.container(),h=this.pe,u=this,c=this.$p.responsive;n=new o(r,u.hc,this);var f=[];u.$p.multipleLanCCs&&u.$p.multipleLanCCs.length>1&&(f=u.$p.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(r){if(e.hasClass(r)){var a="";switch(r){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":n.addMenuItem(r,e.attr("title"));break;case"ap-tool-play":case"ap-tool-sound":a||("ap-tool-play"==r?a="PausePrez":"ap-tool-sound"==r&&(a="Mute")),n.addToggleMenuItem(r,h.text(a),"true"==e.attr("aria-pressed"));break;case"ap-tool-cc":if(a||(a="ClosedCaption"),f.length){var l=u.$p.defautlLanguageCCIndex,d=new o("mnumultiplelanguagecc",u.hc);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);n.addSubMenuItem(r,e.attr("title"),d)}else n.addToggleMenuItem(r,h.text(a),"true"==e.attr("aria-pressed"));break;case"ap-tool-speed":var g,b,w=e.attr("data-value"),_=u.cv?u.cv:[];w=void 0==w?1:parseFloat(w);var y=new o("mnuspeed",u.hc);for(y.addMenuHeaderItem(h.text("PlaybackSpeed")),v=0,g=_.length;v<g;++v)b=parseFloat(_[v]),y.addRadioMenuItem(u.Ov(b),u.Lv(b),w==b);n.addSubMenuItem(r,e.attr("title"),y);break;case"ap-tool-displaymode":if(c)t.fullscreen.fullscreenEnabled()&&(u.nv.mode==s.FULLSCREEN?n.addToggleMenuItem("ap-tool-autofit",h.text("FullScreen"),!0):n.addToggleMenuItem("ap-tool-fullscreen",h.text("FullScreen"),!1));else{var T=new o("mnudisplaymode",u.hc);T.addMenuHeaderItem(h.text("DisplayMode")),T.addRadioMenuItem("ap-tool-actualsize",h.text("ActualSize"),u.nv.mode==s.ACTUAL_SIZE),T.addRadioMenuItem("ap-tool-autofit",h.text("AutoFit"),u.nv.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&T.addRadioMenuItem("ap-tool-fullscreen",h.text("FullScreen"),u.nv.mode==s.FULLSCREEN),n.addSubMenuItem(r,e.attr("title"),T)}}}})}),this.Xv(n,e,!0)}},Pn:function(t,s){if(!0!==this.Zv){var e=this.sidebar(),r=this.presenterInfo(),n=this.tocContainer(),a=this.sidebarExpand();if(0==arguments.length)return 1==this.Wo.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(r.attr("hidden-by-default")||r.show(),2==this.Wo.TocStyle&&("false"!==n.attr("toc-show")&&n.show(),n.attr("sidebar-expand",!0)),e.attr("position",1==this.Wo.SideBarPos?"left":"right"),s)e.attr("collapse",!1),1==this.Wo.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.Wo.SideBarPos?"left":"right",title:this.pe.text("HideSidebar"),"data-value":"true"}),s||a.hide(),i(this).trigger("ui:ap-expand-sidebar",[!0]),this.Zv||(this.Zv=!0)}else r.hide(),2==this.Wo.TocStyle&&(n.hide(),n.attr("sidebar-expand",!1)),a.show(),e.attr({collapse:!0,position:1==this.Wo.SideBarPos?"left":"right"}),a.css("left",""),a.attr({"icon-type":1==this.Wo.SideBarPos?"right":"left",title:this.pe.text("ShowSidebar"),"data-value":"false"}),this.Zv||(this.Zv=!0);1==this.Zv&&(this.layout(),this.Zv=void 0)}},updateTocEntries:function(t){this.Qp&&this.Qp.updateEntries(t)}}),r=t.createClass({$init:function(t,i){this.$p={isShowClose:!0,overlay:!0,navItems:[],textDirection:"ltr",closeText:"Close",showCallback:void 0,closeCallback:void 0},this.zv=null,this.Gv=null,this.Vv=null,this.Wv=null,this.$v=t,this.Kv=i,this.Kv&&this.Kv.Hv(this)},jv: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.$p.closeText+'"> \t\t\t\t\t\t\t</a> \t\t\t\t\t\t</div> \t\t\t\t\t</div>';this.zv=i(t),this.Gv=i(".ap-popup-close",this.zv),this.Vv=i(".ap-popup-content",this.zv),"rtl"==this.$p.textDirection&&(i(".ap-popup-content",this.zv).attr("dir",this.$p.textDirection).css("text-align","right"),i(".ap-popup-footer",this.zv).attr("dir",this.$p.textDirection).css("text-align","left")),this.Vv.append(this.$v);for(var s=0;s<this.$p.navItems.length;++s)this.$p.navItems[s]=i(this.$p.navItems[s],this.zv)},Qv:function(){0!=this.$p.overlay&&(this.Wv=i('<div class="ap-popup-hide ap-popup-overlay"></div>'))},setOptions:function(t){i.extend(this.$p,t)},getDom:function(){return this.zv},show:function(t,s){this.ev=t,this.qv=i(this.ev).attr("tabindex"),i(this.ev).attr("tabindex",1),s||(s={x:0,y:0,width:i(t).outerWidth(),height:i(t).outerHeight()}),this.jv(),this.Qv(),i(this.ev).append(this.zv),0==this.$p.isShowClose&&i(".ap-popup-footer",this.zv).hide(),this.zv.attr("role","dialog"),this.showOverlay(),this.layout(s),this.$p.showCallback&&this.$p.showCallback();var e=this,r=this.$p.navItems,n=-1;this.$p.isShowClose&&(this.Gv.click(function(){e.close()}),r.push(this.Gv),n=r.length-1,this.Gv.attr("tabindex","0"),this.Gv.focus()),i(this.ev).bind("mousedown.popup",function(){return i(this).focus(),!1}).bind("keydown.popup",function(t){switch(t.which){case 9:if(r.length>0){t.stopPropagation(),t.preventDefault();var i=!1;if(n>=0&&n<=r.length-1){var s=r[n];0==s.attr("tabindex")&&(i=!0,s.attr("tabindex","-1"),s.blur())}n<0||n>r.length-1?n=0:(n+=i?t.shiftKey?-1:1:0)<0?n=r.length-1:n>r.length-1&&(n=0);var a=r[n];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<r.length;++h)if(t.target==r[h][0]){t.stopPropagation();break}}}).focusin(function(){if(!(r.length<=0)){(n<0||n>r.length-1)&&(n=0);var t=r[n];t.get(0)!==document.activeElement&&(t.attr("tabindex","0"),t.focus())}});for(var a=0;a<r.length;++a)r[a].focus(function(t){for(var s=0;s<r.length;++s)if(this==r[s]){n=s;break}i(this).attr("tabindex","0")}).blur(function(t){i(this).attr("tabindex","-1")});i(this.ev).focus()},showOverlay:function(){0!=this.$p.overlay&&(i(this.ev).append(this.Wv),this.Wv.hide().addClass("ap-popup-overlayBG").fadeIn(200))},hideOverlay:function(){if(0!=this.$p.overlay){var t=this;this.Wv.fadeOut(200,function(){t.Wv.removeClass("ap-popup-overlayBG"),t.Wv.addClass("ap-popup-hide"),t.Wv.remove()})}},close:function(){this.zv.remove(),this.hideOverlay(),this.$p.closeCallback&&this.$p.closeCallback(),i(this.ev).unbind("keydown.popup").unbind("focus.popup").unbind("mousedown.popup"),i(this.ev).attr("tabindex",this.qv),this.Kv&&this.Kv.Bv(this)},onClose:function(t){this.$p.closeCallback=t},onShow:function(t){this.$p.showCallback=t},layout:function(t){this.Wv.width(t.width).height(t.height),this.Wv.css({left:t.x,top:t.y});var s=Math.min(.5*t.width,370),e=i(".ap-popup-content",this.zv).innerHeight()+i(".ap-popup-footer",this.zv).innerHeight()+10;this.zv.css({width:s,height:e});var r=t.x+(t.width-s)/2-20,n=t.y+(t.height-e)/2-20;this.zv.css({left:r,top:n})},destroy:function(){this.close()}}),n=t.createClass({$init:function(t){this.ma="",this.Jv=-1,this.sm="",this.em="",this.rm=0,this.nm=!0,this.kp=t,this.am=[],this.hm=!1,this.Is=!1,this.zv=null},om:function(){var t,i,s=this.am;for(this.hm=!0,this.Is=!1,t=0,i=s.length;t<i;++t)s[t].hm||(this.hm=!1),s[t].Is&&(this.Is=!0);this.zv&&this.zv.attr("data-status",this.Is?"current":this.hm?"completed":"incomplete"),this.kp&&this.kp.om()},um:function(){this.zv&&this.zv.attr("data-status",this.Is?"current":this.hm?"completed":"incomplete"),this.kp&&this.kp.om()},setCompleted:function(t){this.hm=t,this.um()},setCurrent:function(t){this.Is=t,this.um()},getChildIndex:function(t){var i,s,e=this.am;for(i=0,s=e.length;i<s;++i)if(e[i].ma==t.ma)return i;return-1},hasChildren:function(){return this.am.length>0},isSlide:function(){return this.Jv>=0},getExpandIconDom:function(){return i(".ap-toc-entry-icon",this.zv)}}),a=t.createClass({$init:function(t,s,e){this.Kv=t,this.cm=[],this.fm=null,this.lm=null,this.dm=t.tocContainer(),this.ev=t.ev,this.pe=t.pe,this.pm={},this.lv=e;for(var r=0;r<e.length;++r)e[r].thumb&&(this.pm[e[r].id]=[e[r].ti,e[r].size]);var n='<div class="ap-toc-header"> \t\t\t\t\t\t\t<div class="ap-toc-header-text">'+this.pe.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.dm.append(n),this.mm=i(".ap-toc",this.dm),this.gm=i(".ap-tool-toc-close",this.dm),this.gm.append(t.hc.closepane),this.gm.attr("role","button").attr("title",this.pe.text("Close")),this.gm.on("click",function(){t.tocVisible()&&i(t).trigger("ui:ap-toc")}),2==t.Wo.TocStyle&&(this.gm.hide(),this.dm.attr("toc-show",!0)),this.bm(s),r=0;r<this.cm.length;++r)this.wm(this.cm[r],0);this.Tc(),this._m();var a=this;this.ym=function(t,i,s,e){i<0||s<0||a.setCurrentEntry(s)},this.Tm=function(t,i,s){a.setCompletedEntry(i,s)},i(t).on("ap-progress.toc",this.ym),i(t).on("ap-slideCompleted.toc",this.Tm)},updateEntries:function(t){this.km(),this.cm=[],this.fm=null,this.lm=null,this.mm.empty(),this.bm(t);for(var i=0;i<this.cm.length;++i)this.wm(this.cm[i],0);if(void 0!=this.xm){var s=this.xm;this.xm=void 0,this.setCurrentEntry(s)}this.Tc(),this._m()},Cm: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.Cm(t.c[s],i)},_m:function(){var t,i,s,e=this.Kv;if(e)if(1==e.Wo.ShowMaxTocLevel)for(t=0,i=this.cm.length;t<i;++t)s=this.cm[t],this.Sm(s);else for(t=0,i=this.cm.length;t<i;++t)s=this.cm[t],this.Om(s)},destroy:function(){var t=i(this.Kv);this.gm.off("click"),this.gm=null;var s=[];this.Em(s,null);for(var e=0;e<s.length;++e){var r=s[e];r.isSlide()?r.zv.off("click"):r.getExpandIconDom().off("click"),r.zv.off("focusin").off("focusout")}t.off("ap-progress.toc",this.ym).off("ap-slideCompleted.toc",this.Tm),this.cm=[],this.fm=null,this.lm=null,this.mm.off("focus").off("focusout").off("keydown"),this.dm.remove(),this.dm=null,this.mm.remove(),this.mm=null},show:function(){if(this.dm){var t=this.dm.attr("sidebar-expand");void 0!=t&&"true"!=t||this.dm.show(),2==this.Kv.Wo.TocStyle&&this.dm.attr("toc-show",!0);var s=this;1==this.Kv.Wo.TocStyle&&(this.Kv.pv(),i(document).unbind("click.TocPane"),setTimeout(function(){i(document).bind("click.TocPane",function(t){i(t.target).closest(".ap-toc-container").is(s.dm)||(i(document).unbind("click.TocPane"),i(s.Kv).trigger("ui:ap-toc"))})},100))}},hide:function(){this.dm&&(this.dm.hide(),2==this.Kv.Wo.TocStyle&&this.dm.attr("toc-show",!1),1==this.Kv.Wo.TocStyle&&i(document).unbind("click.TocPane"))},isShow:function(){if(this.dm&&this.dm.length>0){var t=this.dm.attr("toc-show");return 2!=this.Kv.Wo.TocStyle||void 0==t?"none"!=this.dm.css("display"):"true"==t}return!1},Im:function(t){for(var i=0;i<this.cm.length;++i)if(this.cm[i].ma==t.ma)return i;return-1},Em:function(t,i){var s;s=null==i?this.cm:i.am;for(var e=0;e<s.length;++e)t.push(s[e]),this.Em(t,s[e])},Pm:function(t,i){var s;s=null==i?this.cm:i.am;for(var e=0;e<s.length;++e){var r=s[e];if(r.Jv==t)return r;if(r.hasChildren()){var n=this.Pm(t,r);if(null!=n)return n}}return null},Rm:function(t){this.fm&&(this.fm.setCurrent(!1),this.fm=null),t&&(this.fm=t,this.fm.setCurrent(!0))},Mm:function(t){null!=this.lm&&(this.lm.zv.attr("tabindex","-1"),this.lm=null),t.zv.attr("tabindex","0"),t.zv.focus()},Nm:function(t,i){var s,e=i.am;for(s=0;s<e.length;++s)this.Nm(!1,e[s]);t||i.zv.hide()},Am:function(t,i){t||i.zv.show();var s,e=i.am;if("true"==i.zv.attr("aria-expanded")||t)for(s=0;s<e.length;++s)this.Am(!1,e[s])},Sm:function(t){t.zv.attr("aria-expanded","true"),t.nm=!0,this.Am(!0,t)},Om:function(t){t.zv.attr("aria-expanded","false"),t.nm=!1,this.Nm(!0,t)},Dm:function(t){var i;return null==t.kp?(i=this.Im(t))>=0&&i<this.cm.length-1?this.cm[i+1]:null:(i=t.kp.getChildIndex(t))>=t.kp.am.length-1?this.Dm(t.kp):t.kp.am[i+1]},Ym:function(t){if(t.nm&&t.hasChildren()){var i=t.am[t.am.length-1];return this.Ym(i)}return t},Xm:function(){if(null!=this.lm){var t=null;null!=(t=this.lm.nm&&this.lm.hasChildren()?this.lm.am[0]:this.Dm(this.lm))&&(this.lm.zv.blur(),this.lm=null,t.zv.focus())}},Lm:function(){if(null!=this.lm){var t,i=null;if(null==this.lm.kp)(t=this.Im(this.lm))>0&&(i=this.Ym(this.cm[t-1]));else i=(t=this.lm.kp.getChildIndex(this.lm))>0?this.Ym(this.lm.kp.am[t-1]):this.lm.kp;null!=i&&(this.lm.zv.blur(),this.lm=null,i.zv.focus())}},Fm:function(t){var i=0;if(t.isSlide())i+=t.rm;else for(var s=t.am,e=0;e<s.length;++e)i+=this.Fm(s[e]);return i},Hm:function(t,i,s,e){t.sm=i.t,t.em=i.n,t.Jv=i.s,t.Um=i.ti,i.d?t.rm=i.d:t.rm=0,t.ma=""==s?e+"":s+"-"+e;var r=i.c;if(null!=r&&r.length>0){t.am.length=0;for(var a=0;a<r.length;++a){var h=r[a],o=new n(t);this.Hm(o,h,t.ma,a+1),t.am.push(o)}}},bm:function(t){this.cm.length=0;for(var i=this.lv,s=0,e=i.length||0;s<e;++s)for(var r=0,a=t.length;r<a;++r)this.Cm(t[r],i[s]);for(s=0;s<t.length;++s){var h=t[s],o=new n(null);this.cm.push(o),this.Hm(o,h,"",s+1)}},wm:function(s,e){var r,n,a=e+1,h=10*a,o=this.Kv,u=o.hc,c=o.Wo.TocShowStateIcons,f=o.Wo.TocShowThumbnails,l=o.Wo.TocShowDuration;n='<tr class="ap-toc-entry" role="row" tabindex="-1" aria-level="'+a+'" data-status="incomplete"',s.hasChildren()?n+=' aria-expanded="'+s.nm+'">':n+=">",n+="<td",!s.hasChildren()&&e>0&&(h+=10),n+=' style="padding-left: '+h+'px; width: 100%" ><div class="ap-toc-entry-content">',s.isSlide()?f&&void 0!=(r=this.pm[s.Jv])&&(void 0!==r[1]?n+='<div class="ap-toc-entry-thumbnail" style="'+("background-color:white;display:block;width:"+r[1][0]+"px;height:"+r[1][1]+"px;")+'"></div>':n+='<img class="ap-toc-entry-thumbnail" src="'+(o.$p.resourceLocation+o.$p.fileNamePrefix+"thumb_"+r[0]+".jpg")+'"/>'):n+='<div class="ap-toc-entry-icon">'+u.collapsed+u.expanded+"</div>",n+='<div class="ap-toc-entry-content-text">',s.em&&s.em.length>0&&(n+='<div style="display:table-cell;">'+s.em+"&nbsp;</div>"),n+='<div style="display:table-cell;">'+s.sm+"</div>",n+="</div>",n+="</div></td>",c&&(n+='<td><div class="ap-toc-entry-status-icon">'+u.current+u.completed+"</div></td>"),l&&(n+='<td class="ap-toc-entry-duration">'+t.formatMSString(this.Fm(s))+"</td>"),n+="</tr>",s.zv=i(n),this.mm.append(s.zv);for(var d=0;d<s.am.length;++d)this.wm(s.am[d],a)},Tc:function(){var t=[];this.Em(t,null);for(var s=this,e=0;e<t.length;++e){!function(t){t.isSlide()?t.zv.on("click",function(){i(s.Kv).trigger("ui:ap-showSlide",[t.Jv])}):t.getExpandIconDom().on("click",function(){t.nm?s.Om(t):s.Sm(t)}),t.zv.on("focusin",function(){s.mm.attr("tabindex",-1),t.zv.attr("tabindex","0"),s.lm=t}),t.zv.on("focusout",function(){t.zv.attr("tabindex","-1"),s.lm=null})}(t[e])}this.mm.on("focus",function(){var t=[];s.Em(t),t.length>0&&(s.Mm(t[0]),s.mm.attr("tabindex",-1))}).on("focusout",function(){null==s.lm&&s.mm.attr("tabindex",0)}).on("keydown",function(t){switch(t.which){case 13:if(null!=s.lm)return i(s.Kv).trigger("ui:ap-showSlide",[s.lm.Jv]),!1;break;case 39:if(null!=s.lm)return 0==s.lm.nm&&s.lm.hasChildren()?s.Sm(s.lm):s.lm.hasChildren()&&s.Xm(),!1;break;case 37:if(null!=s.lm)return s.lm.nm&&s.lm.hasChildren()?s.Om(s.lm):null!=s.lm.kp&&s.Mm(s.lm.kp),!1;break;case 40:if(null!=s.lm)return s.Xm(),!1;break;case 38:if(null!=s.lm)return s.Lm(),!1}})},km:function(){var t=[];this.Em(t,null);for(var i=0;i<t.length;++i){var s=t[i];s.isSlide()?s.zv.off("click"):s.getExpandIconDom().off("click"),s.zv.off("focusin").off("focusout")}this.cm=[],this.fm=null,this.lm=null,this.mm.off("focus").off("focusout").off("keydown")},setCompletedEntry:function(t,i){var s=this.Pm(t);null!=s&&s.setCompleted(i)},setCurrentEntry:function(t){if(void 0===this.xm||this.xm!==t){var i=this.Pm(t);null!=i&&this.Rm(i);var s=this.Kv;this.xm=t,s.Wo.AutoScroll&&this.scrollToCurrentSlide()}},scrollToCurrentSlide:function(){if(null!=this.fm){var t=i(this.ev),s=i(".ap-toc-content-wrapper",t);s[0].scrollTop+s[0].offsetHeight<this.fm.zv[0].offsetTop+this.fm.zv[0].offsetHeight?s[0].scrollTop=this.fm.zv[0].offsetTop+this.fm.zv[0].offsetHeight-s[0].clientHeight:this.fm.zv[0].offsetTop<s[0].scrollTop&&(s[0].scrollTop=this.fm.zv[0].offsetTop)}}}),h=t.createClass({$init:function(t,s){this.Kv=t,this.Bm=-1,this.Zm=t.resourcesContainer(),this.Zm.hide(),this.ev=t.ev,this.zm=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.Zm.append(e),this.Gm=i(".ap-resources-list",this.Zm);for(var r=0;r<s.length-1;++r)this.wm(s[r]);this.cm=i("li",this.Gm).toArray(),this.Tc()},destroy:function(){for(var t=0;t<this.cm.length;++t)i(this.cm[t]).off("focusin").off("focusout");this.Zm.off("keydown"),this.Zm.remove(),this.Zm=null,this.cm=[]},Tc:function(){var t=this,s=this.Zm,e=this.cm;s.attr("tabinex",0),s.on("keydown",function(s){var r;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?((r=e[t.Bm])&&i(r).attr("tabindex",-1),0==t.Bm?t.Bm=e.length-1:t.Bm--,r=e[t.Bm],i(r).focus().attr("tabindex",0),!1):40==s.which?((r=e[t.Bm])&&i(r).attr("tabindex",-1),t.Bm==e.length-1?t.Bm=0:t.Bm++,r=e[t.Bm],i(r).focus().attr("tabindex",0),!1):void 0:((r=e[t.Bm])&&i("a",i(r))[0].click(),!1)});for(var r=0;r<this.cm.length;++r)i(this.cm[r]).on("focusin",function(){s.attr("tabindex",-1),i(this).attr("tabindex",0)}).on("focusout",function(){i(this).attr("tabindex",-1)})},show:function(){this.Vm="click.ResourcesPane";var t=this;i(document).bind(t.Vm,function(s){i(s.target).closest(".ap-resources-container").is(t.Zm)||(t.hide(),i(document).unbind(t.Vm))}),t.Zm.show(),t.Zm.attr("tabindex",-1),this.Bm<0&&(this.Bm=0);var s=this.cm[this.Bm];s?i(s).attr("tabindex",0).focus():t.Zm.attr("tabindex",0).focus()},hide:function(){this.Vm&&i(document).off(this.Vm),this.Zm&&this.Zm.hide()},isShow:function(){return this.Zm&&this.Zm.length>0&&"none"!=this.Zm.css("display")},wm:function(t){if(!(t.length<=1)){var i='<li><a href="';2==t.length?i+=t[1]:(i+=this.Kv.$p.resourceLocation+this.Kv.$p.fileNamePrefix+"res_"+t[1]+"."+t[2],i+='" download="'+t[0]+"."+t[2]),i+='" target="_blank">'+t[0],i+="</a></li>",this.Gm.append(i)}}}),o=t.createClass({$init:function(t,s,e){this.hc=s,this.kp=null,this.Wm=[],this.$m=null,this.zv=i('<div id="'+t+'" class="ap-menu" tabindex="0" role="menu"></div>'),this.zv.css("transform","translateZ(0px)"),this.zv.hide(),this.Bm=-1,this.Tc(),this.Vm=null,this.Km=null,this.Kv=e,this.Kv&&this.Kv.Hv(this)},id:function(){return this.zv[0].id},destroy:function(){null!=this.Vm&&(i(document).unbind(this.Vm),this.Vm=null),this.jm&&(this.jm(),this.jm=null);for(var t=0;t<this.Wm.length;++t)this.Wm[t].submenu&&this.Wm[t].submenu.destroy(),this.Wm[t].dom.off("click").off("focusin").off("focusout").off("keydown");this.Wm=[],this.zv&&(this.zv.off("keydown"),this.zv.remove(),this.zv=null),this.hc=null,this.Kv&&this.Kv.Bv(this)},Tc:function(){var t=this;this.zv.on("keydown",function(i){var s,e=t.Wm;return 13!=i.which&&32!=i.which||i.altKey||i.shiftKey||i.ctrlKey?27==i.which?(t.kp?(t.hide(),t.kp.show(t.kp.Km,!0,t.kp.jm)):t.destroy(),!1):9==i.which?(t.kp?(t.hide(),t.kp.show(t.kp.Km,!0,t.kp.jm)):t.destroy(),!1):37==i.which?(t.kp&&(t.hide(),t.kp.show(t.kp.Km,!0,t.kp.jm)),!1):39==i.which?((s=e[t.Bm])&&s.submenu&&s.dom.trigger("click"),!1):38==i.which?((s=e[t.Bm])&&s.dom.attr("tabindex",-1),0==t.Bm?t.Bm=e.length-1:t.Bm--,(s=e[t.Bm].dom).focus(),s.attr("tabindex",0),!1):40==i.which?((s=e[t.Bm])&&s.dom.attr("tabindex",-1),t.Bm==e.length-1?t.Bm=0:t.Bm++,(s=e[t.Bm].dom).focus(),s.attr("tabindex",0),!1):void 0:((s=e[t.Bm])&&s.dom.trigger("click"),!1)})},Qm:function(){for(var t=this;t.kp;)t=t.kp;return t},qm:function(t,i,s,e){var r=this;t.focusin(function(){r.zv.attr("tabindex",-1),t.attr("tabindex",0)}).focusout(function(){t.attr("tabindex",-1)}),this.zv.append(t),this.Wm.push({dom:t,id:i,state:s,submenu:e})},appendTo:function(t){this.ev=t,this.ev.append(this.zv);for(var i=0;i<this.Wm.length;++i)this.Wm[i].submenu&&this.Wm[i].submenu.appendTo(t)},attachEventHanlders:function(t){t(this.zv.get(0));for(var i=0;i<this.Wm.length;++i)this.Wm[i].submenu&&t(this.Wm[i].submenu.zv.get(0))},detachEventHandlers:function(t){t(this.zv.get(0));for(var i=0;i<this.Wm.length;++i)this.Wm[i].submenu&&t(this.Wm[i].submenu.zv.get(0))},Jm:function(t){if(this.zv&&this.zv.has(t).length>0)return this;for(var i=0;i<this.Wm.length;++i)if(this.Wm[i].submenu){var s=this.Wm[i].submenu.Jm(t);if(s)return s}return null},show:function(t,s,e){this.Km=t;var r,n,a,h,o,u,c,f,l=i(t),d=this.zv,p=this.ev;r=d.outerWidth(!0),n=d.outerHeight(!0),a=l.offset().left+l.width()/2-r/2;for(var v=0;v<=1;++v)o=l.offset().top-(p.offset().top+n+10),u=p.offset().top+p.height()-(l.offset().top+l.height()+n+10),c=p.offset().left+p.width()-(l.offset().left+l.width()+r+10),f=l.offset().left-(p.offset().left+r+10),o<0&&u<0&&c<0&&f<0&&(n=Math.max(o,u)-10);if(o>=0?(h=l.offset().top-p.offset().top-n-10,a=Math.max(0,Math.min(a,p.width()-r-10))):u>=0?(h=l.offset().top+l.height()+10-p.offset().top,a=Math.max(0,Math.min(a,p.width()-r-10))):c>=0?(h=0,a=l.offset().left+l.width()+10-p.offset().left):(h=0,a=l.offset().left-p.offset().left-r-10),d.css({left:a,top:h}),d.show(),!this.kp){var m=this;m.Vm="click.RLMenu"+this.id(),i(document).bind(m.Vm,function(e){var r=i(e.target).closest(".ap-menu-item");if("menuitemcheckbox"!=r.attr("role")){var n=m.Jm(e.target);if(r.hasClass("ap-tool-menu-back")&&n&&n.kp)return n.hide(),void n.kp.show(t,s,n.kp.jm);if("true"==r.attr("aria-haspopup")&&n)for(var a=0;a<n.Wm.length;++a)if(n.Wm[a].dom.get(0)==r.get(0))return n.hide(),void n.Wm[a].submenu.show(t,s);m.destroy()}})}if(-1==this.Bm&&(this.Bm=0),s){d.attr("tabindex",-1);var g=this.Wm[this.Bm];g?(g.dom.attr("tabindex",0),g.dom.focus()):(d.attr("tabindex",0),d.focus())}else d.attr("tabindex",0),d.focus();this.jm=e},hide:function(){this.zv.attr("tabindex",-1),this.zv.hide()},isShown:function(){return"none"!=this.zv.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.qm(e,t,!0),e},addToggleMenuItem:function(t,s,e){var r=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.qm(r,t,e),r},addRadioMenuItem:function(t,s,e){var r=this.hc,n=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">'+r.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.qm(n),n},addSubMenuItem:function(t,s,e){var r=this.hc,n=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">'+r.openmenu+"</div> \t\t\t\t\t</div>");return e.kp=this,this.qm(n,t,!0,e),n},addMenuHeaderItem:function(t){var s=this.hc,e="ap-tool-menu-back",r=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.qm(r,e,!0),r}}),u=t.createClass({$init:function(s,e,r){this.ig=r.scale||1,this.sg=r.min||0,this.eg=r.max||100,this.rg=r.value||0,this.sm=r.title||"",this.ng=r.isRTL||!1,this.lv=r.slideInfos||[],this.ag=r.followMouse||!1,this.hg=r.thumbnailPrefixPath,this.og=this.lv.length>0,this.ug=-1,this.zv=s,this.Wo=e,this.zv.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.cg=i(".ap-slider-track",this.zv),this.fg=i(".ap-slider-track-lower",this.zv),this.dg=i(".ap-slider-thumb-outer",this.zv),this.pg=i(".ap-slider-tooltip",this.zv),this.vg=i(".ap-slider-thumb-containment",this.zv),this.mg=i(".ap-slider-thumb",this.zv).outerWidth()/2,this.dg.width(2*this.mg),this.vg.css({position:"absolute",left:-this.mg+"px",top:"0px",width:"calc(100% + "+2*this.mg+"px)",height:"100%"}),this.zv.attr({"aria-valuemin":this.sg,"aria-valuemax":this.eg,"aria-valuenow":this.rg,title:this.sm});for(var n=0,a=0,h=this.lv.length;a<h-1;++a)if(n+=this.lv[a].duration,e.ShowSegments){var o=i('<div class="ap-slider-marker"></div>'),u=n/(this.eg-this.sg)*100;o.css("left","calc("+u+"% - "+o.width()/2+"px)"),this.cg.append(o)}var c=this,f=t.browser.mobile;f||this.zv.mouseenter(function(t){c.og&&c.pg.show()}).mousemove(function(t){if(c.og){var s=t.pageX-i(this).offset().left;c.gg(s)}}).mouseleave(function(t){c.og&&c.pg.hide()}),this.dg.css("touchAction","none").draggable({containment:c.vg,axis:"x",start:function(){c.xc=!0,c.bg=c.rg,f&&c.og&&c.pg.show()},drag:function(){var t=parseInt(i(this).css("left"))+c.mg;c.wg(t),f&&c.og&&c.gg(t)},stop:function(){c.xc=!1;var t=parseInt(i(this).css("left"))+c.mg;c.wg(t,!0),f&&c.og&&c.pg.hide()}}).mousedown(function(t){return s.focus(),t.stopPropagation(),!0}),this.zv.on("mousedown",function(t){return c.wg(t.pageX-i(this).offset().left,!0),t.stopPropagation(),!0}).on("keydown",function(t){var i=c._g(c.rg);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.wg(i,!0),t.stopPropagation(),t.preventDefault()})},destroy:function(){this.dg.off("mouseenter").off("mouseleave").off("mousedown").draggable("destroy"),this.dg=null,this.zv.off("mousedown").off("keydown"),this.zv.empty(),this.zv=null,this.pe=null},gg:function(t){var s,e=this.pe,r=this.yg(t),n=0,a=0;for(a=0,s=this.lv.length||0;a<s&&!(r<=(n+=this.lv[a].duration));++a);if(!(a>=this.lv.length)){if(a!=this.ug){this.ug=a;var h=this.lv[a].title,o="";o+='<div class="ap-slider-tooltip-timestamp">'+AtomiAP.formatMSString(r)+"</div>",this.hg&&this.lv[a].thumb&&!this.lv[a].size&&(o+='<img src="'+this.hg+"thumb_"+this.lv[a].ti+'.jpg" />'),o+="<div>"+(e?e.text("Slide"):"Slide")+" "+(a+1)+"/"+this.lv.length+"</div>",o+="<div>"+h+"</div>",this.pg.html(e?e.number(o):o)}else i(".ap-slider-tooltip-timestamp",this.pg).html(AtomiAP.formatMSString(r));this.pg.css({left:0,width:"auto"});var u=this.pg.width(),c=this.pg.height();this.pg.css({left:t-u/2,top:-c-40,width:u})}},Tg:function(t){var i=t/this.getWidth()*100;this.dg.css("left","calc("+i+"% - "+this.mg+"px)"),this.fg.css("width",i+"%")},wg:function(t,s){var e=this.getWidth();t<0?t=0:t>e&&(t=e);var r=this.yg(t),n=!1,a=!1;if(!isNaN(r)){if(s){var h=this.bg;delete this.bg,void 0===h&&(h=this.rg),r!=h&&(a=!0)}r!=this.rg&&(n=!0),n&&i(this).trigger("valueChanging",[r]),a&&i(this).trigger("valueChanged",[r]),n&&(this.rg=r,this.zv.attr("aria-valuenow",this.rg))}this.xc||n||(t=this._g(this.rg)||0),this.Tg(t)},yg:function(t){var i=this.getWidth();"rtl"==this.ng&&(t=i-t);var s=Math.round(this.sg+t*(this.eg-this.sg)/i);return s<this.sg?s=this.sg:s>this.eg&&(s=this.eg),s},_g:function(t){var i=this.getWidth(),s=Math.round((t-this.sg)*i/(this.eg-this.sg));return this.ng&&(s=i-s),s<0?s=0:s>i&&(s=i),s},setTooltip:function(t){t!=this.kg&&(this.kg=t,this.pg.html(t))},showTooltip:function(t){void 0===t&&(t=!0),t?this.pg.show():this.pg.hide()},enableTooltip:function(t){this.og=t},getValue:function(){return this.rg},setValue:function(t){if(this.xc&&!this.ag)return!1;t<this.sg?t=this.sg:t>this.eg&&(t=this.eg),this.rg=t,this.zv.attr("aria-valuenow",this.rg);var i=this._g(t)||0;return this.Tg(i),!0},setTitle:function(t){this.zv.attr("title",t)},getMin:function(){return this.sg},setMin:function(t){this.sg=t,this.zv.attr("aria-valuemin",this.sg)},getMax:function(){return this.eg},setMax:function(t){this.eg=t,this.zv.attr("aria-valuemax",this.eg)},getWidth:function(){return this.zv.width()||.001},setWidth:function(t){this.zv.width(t)}}),c=t.createClass({$init:function(t,s,e){this.Kv=t,this.xg=-1,this.Cg=!1;var r=t.container();this.zv=i(s),e?this.zv.insertBefore(i(".ap-content-area",r)):this.zv.appendTo(r),this.zv.attr("unselectable","on").css("user-select","none").on("selectstart",!1),this.Sg=i(".ap-button,.ap-slider",this.zv).toArray(),this.Og(),this.zv.show();var n=this;this.Eg=function(t){n.Ig()},i(this.Kv).on("ui:ap-layout",this.Eg)},destroy:function(){i(this.Kv).off("ui:ap-layout",this.Eg),i.each(this.Sg,function(t,s){i(s).off("focusin").off("focusout")}),this.zv.off("mousedown").off("keydown").off("focus").off("focusout"),this.zv.remove(),this.zv=null},Pg:function(t){var s=i(t);return"none"!=s.css("display")&&"false"!=s.attr("data-enabled")},Og:function(){var t=this;this.zv.on("mousedown",function(i){for(var s=0;s<t.Sg.length;++s)i.target==t.Sg[s]&&(t.xg=s);return i.stopPropagation(),!0}).on("keydown",function(s){if(9==s.which){var e,r=t.Sg,n=!s.shiftKey,a=!0,h=-1,o=t.xg,u=r.length-1;do{if(n?++o:--o,o<0||o>u){h=n?0:u;break}if(t.Pg(r[o])){h=o,a=!1;break}}while(o>=0&&o<=u);if(a)return t.xg=h,!0;s.stopPropagation(),s.preventDefault(),t.xg>=0&&t.xg<=u&&(e=t.Sg[t.xg],i(e).attr("tabindex","-1")),h>=0&&h<=u&&(t.xg=h,e=t.Sg[t.xg],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.Sg,function(i,e){if(t.Pg(e))return s=i,!1}),s};this.zv.on("focus",function(e){var r=t.xg;if((r<0||r>=t.Sg.length||!t.Pg(t.Sg[r]))&&(t.xg=s(),r=t.xg),t.zv.attr("tabindex","-1"),r>=0&&r<t.Sg.length){var n=t.Sg[r];return i(n).attr("tabindex","0").focus(),!1}return!0}),this.zv.on("focusout",function(){t.Cg||t.zv.attr("tabindex","0")});for(var e=0;e<this.Sg.length;++e)!function(e,r){i(e).on("focusin",function(n){t.Pg(e)?t.xg=r:t.xg=s(),t.zv.attr("tabindex","-1"),t.Cg=!0,i(this).attr("tabindex","0")}).on("focusout",function(s){t.Cg=!1,i(this).attr("tabindex","-1")})}(this.Sg[e],e)},Ig:function(){var t=i("[data-priority]",this.zv),s=i(".ap-tool-setting",this.zv),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 r,n,a,h,o,u=Number.MAX_SAFE_INTEGER||1e10;a=this.zv.outerWidth(),r=!1,n=u,t.each(function(t){var s=i(this);return"false"==s.attr("data-enabled")||("none"==s.css("display")||(parseInt(s.attr("data-priority"))<n&&(n=parseInt(s.attr("data-priority"))),s.position().top,h=s.position().left,o=s.outerWidth(),h+o>a?(r=!0,!0):void 0))}),r&&n!=u;)e>n&&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"))<=n&&s.hide()))})},show:function(){this.zv.css("display","")},hide:function(){this.zv.hide()},visible:function(){return this.zv&&"none"!==this.zv[0].style.display},isAutoHide:function(){return this.zv.hasClass("ap-auto-hide")},autoHide:function(t){0==arguments.length||t?this.zv.addClass("ap-auto-hide"):this.zv.removeClass("ap-auto-hide")}}),f=t.createClass({$init:function(t){this.zv=i('<div class="ap-floating-button"><div></div></div>');var s=this,e=!1;this.zv.css("touchAction","none").draggable({containment:t}).mousedown(function(t){e=!1}).mousemove(function(t){e=!0}).mouseup(function(){e||s.Rp&&s.Rp(),e=!1})},appendTo:function(t){t.append(this.zv)},show:function(){this.zv.css("display","")},hide:function(){this.zv.hide()},onClick:function(t){this.Rp=t}});t.RLPopup=r,t.RLToolbar=c,t.RLToc=a,t.UI=e}(window.AtomiAP=window.AtomiAP||{},window.AtomiAP.$||jQuery);