/**
 * Captivate Extra
 * Version: 1.5.2
 * Build: 10845
 * Written By: Tristan Ward
 * Company: Infosemantics
 * Licence: See licence document provided with CpExtra purchase
 * Copyright: Tristan Ward 2020
 * 
 *	COPYRIGHT NOTICE FOR THE NO-SLEEP JAVASCRIPT LIBRARY
 *
 *	The MIT License (MIT)
 *	
 *	Copyright (c) Rich Tibbett
 *	
 *	Permission is hereby granted, free of charge, to any person obtaining
 *	a copy of this software and associated documentation files (the
 *		"Software"), to deal in the Software without restriction, including
 *	without limitation the rights to use, copy, modify, merge, publish,
 *		distribute, sublicense, and/or sell copies of the Software, and to
 *	permit persons to whom the Software is furnished to do so, subject to
 *	the following conditions:
 *	
 *	The above copyright notice and this permission notice shall be
 *	included in all copies or substantial portions of the Software.
 *		
 *		THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 *	MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *	NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 *	LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 *	OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 *	WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
function initExtra(e){"use strict";var n={},t=!1;if(e||(e=window),!window._extra||!window.unitTests){var a;if((a=n).log=function(e){a.debugging?a.debugging.log(e):a.console&&a.console.log(e)},a.error=function(e){a.debugging?a.debugging.error.apply(this,arguments):a.console&&a.w.alert(e)},s(e))t=!0;else if(e._extra=n,!s(e=e.parent))return void o("X");if(n.w=e,n.console=n.w.console,n.CAPTIVATE="captivate",n.STORYLINE="storyline",void 0===n.w.X)if(void 0===n.w._extra){n.aborted=!1,(n.w._extra=n).classes={},n.registerClass=function(e,t,a){var r=function(){};if(a!==n.STORYLINE&&a!==n.CAPTIVATE||(a=null),a){if("string"==typeof a){if(!n.classes[a])throw new Error("Could not find a class by the name of '"+a+"' to be used as a super class.");a=n.classes[a]}r.prototype=a.prototype,t.prototype=new r,(t.prototype.constructor=t).baseConstructor=a,t.superClass=a.prototype}n.classes[e]=t};var d={},A=[];n.registerModule=function(e,t,a){var r,n,i,s,o=!0;function l(e){return d[e]={subordinates:{},instantiated:!1},d[e]}function c(e,t){d[e].subordinates[t]=d[t],o=!1}if("function"==typeof t?(a=t,t=[]):"string"==typeof t&&(t=[t]),d[e]){if(void 0!==d[e].dependencies)throw Error("Tried to register two modules under the name: "+e)}else l(e);(r=d[e]).dependencies=t,r.moduleConstructor=a;for(var u=0;u<r.dependencies.length;u+=1){if(n=r.dependencies[u],i=d[n],n===e)throw new Error("Can't set up a module as a dependency of itself");i?i.instantiated||c(n,e):(i=l(n),c(n,e))}o&&(s=e,f()?_(s):A.push(s))},n.$=n.w.$,n.isIE=!!document.documentMode,n.X={version:"1.5.2",build:"10845"};var r=function(){window.removeEventListener("load",r),window.hasOwnProperty("_extra")&&n.w.story&&c()};if(window.addEventListener("load",r),window.CaptivateExtraWidgetInit=function(){n.w.cp&&(window.removeEventListener("load",r),c())},!f()){var i=n.w.cp.complete;n.w.cp.complete=function(){f()&&(window.removeEventListener("load",r),function(){for(var e=0;e<A.length;e+=1)_(A[e]);A=[]}(),c(),n.w.cp.complete=i),i()}}}else o("_extra");else o("X")}function s(e){return e.hasOwnProperty("cp")}function o(e){n.aborted=!0,n.registerModule=function(){},n.w&&("object"==typeof n.w[e]?n.log("Aborted initializing Extra for a second time, as we have detected the window."+e+" property has already been defined."):n.error("CpExtra could not start because it encountered a User Variable named <b>"+e+"</b> in the project. CpExtra has reserved this User Variable name. <br/>Please delete the <b>"+e+"</b> User Variable."))}function f(){return!t||n.w.cp.movie}function _(e){var t,a,r=d[e];for(var n in r.onLoadCallback=l(r.moduleConstructor),r.instantiated=!0,r.subordinates)if(r.subordinates.hasOwnProperty(n)){if((t=d[n]).instantiated)continue;a=!0;for(var i=0;i<t.dependencies.length;i+=1)if(!d[t.dependencies[i]].instantiated){a=!1;break}a&&_(n)}}function l(e){return n.w.unitTests?e():n.w.eval("("+e.toString()+"())")}function c(){var e;for(var t in d)if(d.hasOwnProperty(t)&&(e=d[t]).onLoadCallback)try{l(e.onLoadCallback)}catch(e){n.error("Encountered error at module: "+t+"<br/>Details: <br/>"+e)}}}initExtra(),_extra.registerModule("Callback",function(){"use strict";_extra.registerClass("Callback",function(){function r(e,t){t.data[e]||(t.data[e]={overwritable:null,regular:[]})}this.data={},this.addCallback=function(e,t,a){r(e,this),a?this.data[e].overwritable=t:this.data[e].regular.push(t)},this.addCallbackToFront=function(e,t){r(e,this),this.data[e].regular.unshift(t)},this.hasCallbackFor=function(e){return void 0!==this.data[e]},this.sendToCallback=function(e,a){var r,t=this.data[e];if(t){if(t.overwritable&&t.overwritable(a),!t.regular)return;t.regular.concat().forEach(function(e){var t=e(a);void 0!==t&&(r=t)})}return r},this.forEach=function(e){var t;for(var a in this.data)if(this.data.hasOwnProperty(a)){this.data[a].overwritable&&e(a,this.data[a].overwritable),t=this.data[a].regular;for(var r=0;r<t.length;r+=1)e(a,t[r])}},this.removeCallback=function(e,t){var a=this.data[e];if(a){if(a.overwritable&&a.overwritable===t)return void delete a.overwritable;for(var r=a.regular,n=0;n<r.length;n+=1)if(t===r[n]){r.splice(n,1),r.length<=0&&delete this.data[e];break}}},this.removeIndex=function(e){delete this.data[e]},this.clear=function(){this.data={}}})}),_extra.registerModule("CallbackTriggerBox",function(){function e(e){this.callback=e,this.callbackHandlers={},this.methods={}}_extra.registerClass("CallbackTriggerBox",e),e.prototype.add=function(e,t){var a=this;if(this.methods[e]=t,!this.callbackHandlers.hasOwnProperty(e)){function r(){a.methods.hasOwnProperty(e)&&a.methods[e](),a.remove(e)}this.callbackHandlers[e]=r,this.callback.addCallback(e,r)}},e.prototype.remove=function(e){this.has(e)&&(this.callback.removeCallback(e,this.callbackHandlers[e]),delete this.callbackHandlers[e],delete this.methods[e])},e.prototype.has=function(e){return this.methods.hasOwnProperty(e)}}),_extra.registerModule("CustomEvent",function(){"use strict";function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}e.prototype=Event.prototype,_extra.registerClass("CustomEvent",e),_extra.createEvent=function(e,t){return _extra.isIE?new _extra.classes.CustomEvent(e,t):new _extra.w.Event(e,t)}}),_extra.registerModule("DoubleClickHandler",function(){"use strict";_extra.registerClass("DoubleClickHandler",function(){var t,a,r,n,i=0;function s(e){a&&(_extra.preferences.doubleClickDelay<=0||!r?a(e):(i+=1,t||(t=_extra.w.setTimeout(function(){2<=i?r(e):a(e),i=0,t=null},_extra.preferences.doubleClickDelay))))}function o(e){r&&(t&&(_extra.w.clearTimeout(t),t=null,i=0),r(e))}function l(e){n(e),e.preventDefault()}this.addEventHandler=function(e,t){switch(e){case _extra.eventManager.events.CLICK:return a=t,s;case _extra.eventManager.events.DOUBLE_CLICK:return r=t,o;case _extra.eventManager.events.RIGHT_CLICK:return n=t,l}return t},this.removeEventHandler=function(e){e===_extra.eventManager.events.CLICK?a=null:e===_extra.eventManager.events.DOUBLE_CLICK&&(r=null)}})}),_extra.registerModule("EventDispatcher",function(){"use strict";_extra.registerClass("EventDispatcher",function(){var n={};this.addEventListener=function(e,t){"function"==typeof t?(n[e]||(n[e]=[]),n[e].push(t)):_extra.error("Tried to pass something into addEventListener as a handler which was not a function butrather of '"+typeof t+"' type.")},this.removeEventListener=function(e,t){var a=n[e];if(a)for(var r=0;r<a.length;r+=1)if(a[r]===t)return a.splice(r,1),!0;return!1},this.hasEventListener=function(e,t){var a=n[e];if(t&&a){for(var r=0;r<a.length;r+=1)if(a[r]===t)return!0;return!1}return n.hasOwnProperty(e)},this.hasListenerFor=function(e){return n.hasOwnProperty(e)&&0<n[e].length},this.dispatchEvent=function(e){var t=n[e.type];if(t)for(var a=0;a<t.length;a+=1)t[a](e)}})}),_extra.registerModule("EventMediator",function(){"use strict";function e(){var t,s={},o=Array.prototype.slice.call(arguments),l={},c=this,u=new _extra.classes.DoubleClickHandler;function i(){t&&o.length<=0&&_extra.w.Object.keys(s).length<=0&&t()}function d(e,t,a){var r,n=s[e];if(!n)return!1;for(var i=0;i<n.length;i+=1)if((r=n[i]).isInteractiveObjectCallback){if(r.interactiveObject===t&&r.criteria===a)return{index:i,data:r}}else if(r.callback===t)return{index:i,data:r};return!1}function A(e,t,a){for(var r=0;r<e.length;r+=1)e[r].addEventListener(t,a)}function f(e,t,a){for(var r=0;r<e.length;r+=1)e[r].removeEventListener(t,a)}function e(e,t){var a,r=Array.prototype.slice.call(e);for(var n in 1!==r.length||null!==r[0]&&void 0!==r[0]||(r=[]),l)l.hasOwnProperty(n)&&(a=l[n],t&&f(o,n,a),A(r,n,a));t?(o=r,i()):o=o.concat(r)}function r(e){switch(e){case"doubleclick":return _extra.eventManager.events.DOUBLE_CLICK;case"rollover":return _extra.eventManager.events.MOUSE_OVER;case"rollout":return _extra.eventManager.events.MOUSE_OUT;default:return e}}this.setId=function(e){this._id=e},this.addEventListener=function(e,t,a){!function(e,t,a){var r;if(!s[e]){var n,i=[];s[e]=i,n=function(e){for(var t,a=i.length-1;0<=a;a-=1)(t=i[a]).called||(c.id&&_extra.eventManager.setEventTarget(c.id),t.callback(e),t.called=!0);for(a=i.length-1;0<=a;a-=1)delete i[a].called},n=u.addEventHandler(e,n),l[e]=n,A(o,e,n)}!d(e,t,a)&&(r=a?{isInteractiveObjectCallback:!0,interactiveObject:t,criteria:a,callback:function(){_extra.actionManager.callActionOn(t,a)}}:{isInteractiveObjectCallback:!1,callback:t},s[e].unshift(r))}(e=r(e),t,a)},this.removeEventListener=function(e,t,a){!function(e,t,a){var r=d(e,t,a);if(r){var n=s[e];return n.splice(r.index,1),n.length<=0&&(delete s[e],f(o,e,l[e]),u.removeEventHandler(e),delete l[e],i()),r.data}}(e=r(e),t,a)},this.hasEventListener=function(e,t,a){return!1!==d(e,t,a)},this.dispatchEvent=function(e){var t;"string"==typeof e?t=_extra.createEvent(e):void 0!==e.type&&(e=(t=e).type),l[e]&&l[e](t)},this.swap=function(){e(arguments,!0)},this.add=function(){e(arguments,!1)},this.registerOnEmptyCallback=function(e){t=e}}e.prototype={get id(){return this._id}},_extra.registerClass("EventMediator",e)}),_extra.registerModule("InterruptedClickEventHandler",function(){"use strict";_extra.registerClass("InterruptedClickEventHandler",function(a,e){var r=!1,n=null;function t(){r=!0}function i(e){if(r)switch(e.button){case void 0:case 0:t=new _extra.w.Date,a.dispatchEvent(_extra.eventManager.events.CLICK),n=null!==n&&t.getTime()-n.getTime()<=_extra.preferences.doubleClickDelay?(a.dispatchEvent(_extra.eventManager.events.DOUBLE_CLICK),null):t}var t;r=!1}function s(){r=!1}this.unload=function(){_extra.eventManager.useTouchEvents&&(a.removeEventListener(_extra.eventManager.events.MOUSE_DOWN,t),a.removeEventListener(_extra.eventManager.events.MOUSE_UP,i),_extra.w.document.removeEventListener(_extra.eventManager.events.MOUSE_UP,s))},_extra.eventManager.useTouchEvents&&(a.addEventListener(_extra.eventManager.events.MOUSE_DOWN,t),a.addEventListener(_extra.eventManager.events.MOUSE_UP,i),_extra.w.document.addEventListener(_extra.eventManager.events.MOUSE_UP,s))})}),_extra.registerModule("Model",function(){"use strict";_extra.registerClass("Model",function(){var i={},s=new _extra.classes.Callback;function o(e,t,a,r){var n={slideObjectName:e,property:t,previousValue:a,currentValue:r};s.sendToCallback("*",n),s.sendToCallback(e,n)}this.updateCallback=s,this.write=function(e,t,a){var r,n;i[e]||(i[e]={}),(n=(r=i[e])[t])!==a&&o(e,t,n,r[t]=a)},this.retrieve=function(e,t){return t&&i[e]?i[e][t]:i[e]},this.hasDataFor=function(e){return i.hasOwnProperty(e)},this.refresh=function(e){var t,a;for(var r in i)i.hasOwnProperty(r)&&(t=i[r]).hasOwnProperty(e)&&o(r,e,a=t[e],a)},this.update=function(e){var t,a=i[e];if(a)for(var r in a)a.hasOwnProperty(r)&&o(e,r,t=a[r],t)}})}),_extra.registerModule("ModelListener",function(){"use strict";_extra.registerClass("ModelListener",function(n,i){var s={};function e(e){s[e.property]&&s[e.property].onChangeCallback(e.previousValue,e.currentValue)}this.model=i,this.addProperty=function(e,t,a){var r=i.retrieve(n,e);s[e]={onChangeCallback:t,defaultValue:a},void 0===r&&a&&(i.write(n,e,a),r=a),void 0!==r&&t(null,r)},this.unload=function(){s=null,i.updateCallback.removeCallback(n,e),i=null,this.model=null},i.updateCallback.addCallback(n,e)})}),_extra.registerModule("MouseEventByPasser",function(){"use strict";_extra.registerClass("MouseEventByPasser",function(e){})}),_extra.registerModule("SlideObjectEnterExitEventManager",function(){"use strict";_extra.registerClass("SlideObjectEnterExitEventManager",function(e){var t=!1;function a(){t||(e.dispatchEvent(_extra.eventManager.events.ENTER),t=!0)}function r(){t&&(e.dispatchEvent(_extra.eventManager.events.EXIT),t=!1)}this.setCurrentDispatcher=function(e){this.dispatcher!==e&&(this.dispatcher&&(this.dispatcher.removeEventListener("internalinitialization",a),this.dispatcher.removeEventListener("internalunload",r)),this.dispatcher=e,this.dispatcher&&(t=this.dispatcher.isInitialized,this.dispatcher.addEventListener("internalinitialization",a),this.dispatcher.addEventListener("internalunload",r)))}})}),_extra.registerModule("SlideObjectStateManager",function(){"use strict";function e(s,n){this.data=n,this.slideObject=s,this.mainDIV=_extra.captivate.projectContainer;var e,t,a,r,i=this,o=!1,l=!1,c=(a=s.state,r=this.data,e=a,(t=r)&&(t.n&&t.n.hasOwnProperty(e)||t.r&&t.r.hasOwnProperty(e)||t.d&&t.d.hasOwnProperty(e))?"Normal":a);function u(e,t){if(null===t&&(t=!0),e=function(e){if("boolean"==typeof e||_extra.w.isNaN(e)){if("string"==typeof e){var t=e.toLowerCase();"true"===t?e=!0:"false"===t&&(e=!1)}}else e=""!==e&&_extra.w.parseFloat(e);return e}(e),"object"!=typeof t)return e==t;var a=t;switch(t=a.value,a.modifier){case"!":return e!=t;case">":return t<e;case"<":return e<t;case">=":return t<=e;case"<=":return e<=t}}function d(e,t){var a,r,n;if(e)for(var i in t)if(t.hasOwnProperty(i)){for(r in n=!0,a=t[i])if(a.hasOwnProperty(r)&&!u(_extra.variableManager.getVariableValue(r),a[r])){n=!1;break}if(n)return s.changeState(i),!0}return!1}function A(){d(l,n.d)||d(o,n.r)||d(!0,n.n)||s.changeState(c)}this.onRollover=function(){s.removeEventListener(_extra.eventManager.events.MOUSE_OVER,i.onRollover),o=!0,A(),s.addEventListener(_extra.eventManager.events.MOUSE_OUT,i.onRollout),i.mainDIV.addEventListener(_extra.eventManager.events.MOUSE_OUT,i.onRollout)},this.onRollout=function(){i.mainDIV.removeEventListener(_extra.eventManager.events.MOUSE_OUT,i.onRollout),s.removeEventListener(_extra.eventManager.events.MOUSE_OUT,i.onRollout),o=!1,A(),s.addEventListener(_extra.eventManager.events.MOUSE_OVER,i.onRollover)},this.onMouseDown=function(){s.removeEventListener(_extra.eventManager.events.MOUSE_DOWN,i.onMouseDown),l=!0,A(),_extra.w.document.addEventListener(_extra.eventManager.events.MOUSE_UP,i.onMouseUp)},this.onMouseUp=function(){_extra.w.document.removeEventListener(_extra.eventManager.events.MOUSE_UP,i.onMouseUp),l=!1,A(),s.addEventListener(_extra.eventManager.events.MOUSE_DOWN,i.onMouseDown)},n.r&&s.addEventListener(_extra.eventManager.events.MOUSE_OVER,this.onRollover),n.d&&s.addEventListener(_extra.eventManager.events.MOUSE_DOWN,this.onMouseDown),this.onStateChangeCallback=function(e){(function(e){var t,a;if("RollOver"===e||"Down"===e)return!0;for(var r in n)if(n.hasOwnProperty(r))for(a in t=n[r])if(t.hasOwnProperty(a)&&a===e)return!0;return!1})(e.stateName)||(c=e.stateName)},_extra.slideObjects.states.changeCallback.addCallback(s.name,this.onStateChangeCallback);var f,_,b,g,p,x={};for(f in n)if(n.hasOwnProperty(f))for(b in _=n[f])if(_.hasOwnProperty(b))for(p in g=_[b])g.hasOwnProperty(p)&&(x[p]||(_extra.variableManager.listenForVariableChange(p,A),x[p]=!0));A()}e.prototype.unload=function(){this.slideObject.removeEventListener(_extra.eventManager.events.MOUSE_OVER,this.onRollover),this.slideObject.removeEventListener(_extra.eventManager.events.MOUSE_OUT,this.onRollout),this.slideObject.removeEventListener(_extra.eventManager.events.MOUSE_DOWN,this.onMouseDown),_extra.w.document.removeEventListener(_extra.eventManager.events.MOUSE_UP,this.onMouseUp),this.mainDIV.removeEventListener(_extra.eventManager.events.MOUSE_OUT,this.onRollout),_extra.slideObjects.states.changeCallback.removeCallback(this.slideObject.name,this.onStateChangeCallback),this.slideObject=null,this.data=null,this.mainDIV=null},_extra.registerClass("SlideObjectStateManager",e)}),_extra.registerModule("VariableEventManager",["VariableEventProxy"],function(){"use strict";function e(e,t){this._data={},this._softwareAddListener=e,this._softwareRemoveListener=t}_extra.registerClass("VariableEventManager",e),e.prototype.getListenerData=function(e,t,a){var r,n;if(this._data.hasOwnProperty(e)){r=this._data[e];for(var i=0;i<r.length;i+=1)if((n=r[i]).rawFunction===t)return a&&r.splice(i,1),n}return null},e.prototype.hasListener=function(e,t){return null!==this.getListenerData(e,t)},e.prototype.addListener=function(e,t){if(this._data.hasOwnProperty(e)){if(this.hasListener(e,t))return}else this._data[e]=[];var a={rawFunction:t,wrappedFunction:function(){a.rawFunction(new _extra.classes.VariableEventProxy(arguments))}};this._data[e].push(a),this._softwareAddListener(e,a.wrappedFunction)},e.prototype.removeListener=function(e,t){var a=this.getListenerData(e,t,!0);a&&this._softwareRemoveListener(e,a.wrappedFunction)}}),_extra.registerModule("createSlideObjectData",["factoryManager"],function(){"use strict";_extra.factories.createSlideObjectData=function(e,t,a){switch(a){case _extra.dataTypes.slideObjects.TEXT_ENTRY_BOX:return new _extra.classes.TextEntryBoxDataProxy(e,t,a);case _extra.dataTypes.slideObjects.SHAPE:return new _extra.classes.ShapeDataProxy(e,t,a);case _extra.dataTypes.slideObjects.IMAGE:return new _extra.classes.ImageDataProxy(e,t,a);case _extra.dataTypes.slideObjects.WEB_OBJECT:return new _extra.classes.WebObjectDataProxy(e,t,a);default:return new _extra.classes.BaseSlideObjectDataProxy(e,t,a)}}}),_extra.registerModule("createSlideObjectProxy",["factoryManager"],function(){"use strict";_extra.factories.createSlideObjectProxy=function(e,t){var a=_extra.dataManager.getSlideObjectDataByName(e);switch(a.type){case _extra.dataTypes.slideObjects.TEXT_ENTRY_BOX:return new _extra.classes.TextEntryBoxProxy(t,a);case _extra.dataTypes.slideObjects.VIDEO:return new _extra.classes.VideoProxy(t,a);case _extra.dataTypes.slideObjects.BUTTON:case _extra.dataTypes.slideObjects.CLICK_BOX:return new _extra.classes.ButtonProxy(t,a);case _extra.dataTypes.slideObjects.WEB_OBJECT:return new _extra.classes.WebObjectProxy(t,a);default:return new _extra.classes.BaseSlideObjectProxy(t,a)}}}),_extra.registerModule("createStateDataProxy",["factoryManager"],function(){"use strict";_extra.factories.createStateDataProxy=function(e,t){switch(e){case _extra.dataTypes.slideObjects.TEXT_ENTRY_BOX:return new _extra.classes.TextEntryBoxStateDataProxy(t);case _extra.dataTypes.slideObjects.BUTTON:return new _extra.classes.ButtonStateDataProxy(t);case _extra.dataTypes.slideObjects.VIDEO:return new _extra.classes.VideoStateDataProxy(t);case _extra.dataTypes.slideObjects.WIDGET:return new _extra.classes.WidgetStateDataProxy(t);case _extra.dataTypes.slideObjects.SHAPE:return new _extra.classes.ShapeStateDataProxy(t);case _extra.dataTypes.slideObjects.WEB_OBJECT:return new _extra.classes.WebObjectStateDataProxy(t);default:return new _extra.classes.StateDataProxy(t)}}}),_extra.registerModule("factoryManager",function(){"use strict";_extra.factories={}}),_extra.registerModule("actionManager",["softwareInterfacesManager"],function(){"use strict";_extra.actionManager={callActionOn:function(e,t){var a,r=_extra.dataManager.getSlideObjectDataByName(e);if(r)if(r.isInteractiveObject)switch(t){case"success":a=r.successAction;break;case"failure":a=r.failureAction;break;case"focuslost":r.focusLostAction?a=r.focusLostAction:_extra.error("CV011",e)}else _extra.error("CV012",e);else _extra.error("CV013",e);a&&_extra.captivate.movie.executeAction(a)}}},_extra.CAPTIVATE),_extra.registerModule("alertManager",["softwareInterfacesManager","AlertProxy"],function(){"use strict";var e=_extra.captivate.api.ShowWarning;_extra.alertManager={sendAlert:function(t){var a;t.message&&(t.message=_extra.variableManager.replaceVariablesInString(t.message)),t.title&&(t.title=_extra.variableManager.replaceVariablesInString(t.title)),a=e(t.message,t.title,!1),a=new _extra.classes.AlertProxy(a),function(){if(t.firstButtonAction){var e=a.getFirstButtonAction();a.setFirstButtonAction(function(){e(),t.firstButtonAction()})}}(),a.show()}}},_extra.CAPTIVATE),_extra.registerModule("audioManager",["softwareInterfacesManager","Callback","hookManager"],function(){"use strict";_extra.audioManager={audioDataCallback:new _extra.classes.Callback},_extra.addHookAfter(_extra.captivate.audioManager,"allocAudioChannel",function(e){_extra.audioManager.audioDataCallback.sendToCallback(e.id,e)}),_extra.addHookAfter(_extra.audioManager.audioDataCallback,"addCallback",function(e,t){var a=_extra.captivate.audioManager.objectAudios[_extra.slideManager.currentInternalSlideId][e];a&&a.nativeAudio&&t(a)})},_extra.CAPTIVATE),_extra.registerModule("cpMateManager",["softwareInterfacesManager"],function(){"use strict";var a=new _extra.classes.Callback,r=new _extra.classes.Callback;_extra.cpMate={register:function(e,t){a.addCallback(e,t)},deregister:function(e,t){a.removeCallback(e,t)},broadcastTo:function(e,t){a.sendToCallback(e,t)},hasRegistered:function(e){return a.hasCallbackFor(e)},notifyCpExtra:function(e,t){r.sendToCallback(e,t)},listenForNotification:function(e,t){r.addCallback(e,t)}},_extra.captivate.eventDispatcher.addEventListener(_extra.captivate.events.MOVIE_PAUSE,function(){_extra.cpMate.broadcastTo("*",{action:"moviePause",parameters:[]})}),_extra.captivate.eventDispatcher.addEventListener(_extra.captivate.events.MOVIE_RESUME,function(){_extra.cpMate.broadcastTo("*",{action:"movieResume",parameters:[]})})}),_extra.registerModule("cssManager",function(){"use strict";_extra.$("<style type='text/css'> .extra-mouse-disabled{ pointer-events: none; };</style>").appendTo("head"),_extra.$("<style type='text/css'> .extra-hand-cursor{ cursor:pointer;  };</style>").appendTo("head"),_extra.cssManager={addClassTo:function(e,t){_extra.$(e).addClass(t)},removeClassFrom:function(e,t){_extra.$(e).removeClass(t)},editCSSOn:function(e,t,a){_extra.$(e).css(t,a)}}}),_extra.registerModule("focusManager",[],function(){"use strict";_extra.focusManager={getSlideObjectFocusDivName:function(e){var t=_extra.dataManager.getSlideObjectDataByName(e);switch(t.type){case _extra.dataTypes.slideObjects.TEXT_ENTRY_BOX:return t.inputDivName}return e},unlockFocusFrom:function(e){_extra.slideObjects.model.write(e,"lockFocus",!1)},lockFocusTo:function(e){_extra.slideObjects.model.write(e,"lockFocus",!0)}}}),_extra.registerModule("fontEmbedManager",["utils","generalDataManager"],function(){var r=_extra.utils;function a(e,t){if(r.contains(e))return r.getFilePath(e,t)}function n(e){var t=a(".ttf",e);return t||(t=a(".woff",e)),t||(t=a(".oft",e)),t||(t=a(".woff2",e)),t||(t=a(".ttc",e)),t||(t=a(".fon",e)),t}_extra.fontEmbedManager={embed:function(e,t){var a="<style>@font-face { font-family: '"+e+"'; src: url('"+t+"')}</style>";_extra.$(a).appendTo("head")},embedFromAction:function(t,e,a){r.pipe(_extra.dataManager.getSlideObjectDataByName,r.ifElse(r.propEq("isInteractiveObject",!0),r.pipe(r.getCriteriaAction(a),n,r.unless(r.isNil,function(e){_extra.fontEmbedManager.embed(t,e)})),function(e){_extra.error("CV007",e.name)}))(e)}}}),_extra.registerModule("hookManager",["slideManager_global"],function(){"use strict";var i=[];function r(e,t,a){var r={location:e,methodName:t,hookMethod:a,originalMethod:e[t]};return r.location[r.methodName]=function(){var e,t=arguments;if(r.callHookBeforeOriginal){if(e=r.hookMethod.apply(this,arguments),"[object Arguments]"===_extra.w.Object.prototype.toString.call(e))t=e;else if(void 0!==e)return e;return r.originalMethod.apply(this,t)}return e=r.originalMethod.apply(this,t),r.hookMethod.apply(this,arguments),e},i.push(r),r}function n(e){var t=i[e];t&&(i.splice(e,1),t.location[t.methodName]=t.originalMethod)}function s(e,t,a){for(var r,n=0;n<i.length;n+=1)if((r=i[n]).location===e&&r.methodName===t&&(!a||r.hookMethod===a))return n;return-1}_extra.addHookAfter=function(e,t,a){r(e,t,a).callHookBeforeOriginal=!1},_extra.addHookBefore=function(e,t,a){r(e,t,a).callHookBeforeOriginal=!0},_extra.addHook=_extra.addHookAfter,_extra.hasHook=function(e,t){return-1<s(e,t)},_extra.removeHook=function(e,t,a){var r=s(e,t,a);return-1<r&&(n(r),!0)},_extra.addOneTimeHook=function(e,t,a){var r=function(){a.apply(this,arguments),_extra.removeHook(e,t,r)};_extra.addHookAfter(e,t,r)}}),_extra.registerModule("jsLoadManager",["utils","generalDataManager"],function(){var t=_extra.utils,e=t.unless(t.isNil),a=t.filter(t.complement(t.isNil)),r=t.getFilePath(".js");_extra.jsLoadManager={},_extra.jsLoadManager.load=e(function(e){var t,a=[],r=document.scripts[0];"async"in r?((t=document.createElement("script")).async=!1,t.src=e,document.head.appendChild(t)):r.readyState?(t=document.createElement("script"),a.push(t),t.onreadystatechange=function(){for(var e;a[0]&&"loaded"==a[0].readyState;)(e=a.shift()).onreadystatechange=null,r.parentNode.insertBefore(e,r)},t.src=e):document.write('<script src="'+e+'" defer><\/script>')}),_extra.jsLoadManager.getJsFilesFromData=t.pipe(function(e){return t.isNil(e)?[]:e.isInteractiveObject?[r(e.successAction),r(e.failureAction),r(e.focusLostAction)]:(_extra.error("CV007",e.name),[])},a),_extra.jsLoadManager.loadFromAction=function(e){t.pipe(_extra.dataManager.getSlideObjectDataByName,_extra.jsLoadManager.getJsFilesFromData,t.ifElse(t.isEmpty,function(){_extra.error("CV080",e)},t.forEach(t.__,_extra.jsLoadManager.load)))(e)}}),_extra.registerModule("loadingScreenManager",["slideManager_global","softwareInterfacesManager"],function(){"use strict";var e=!1,t=_extra.captivate.api("blockUserInteraction");_extra.loadingScreenManager={on:function(){t.style.display="block",t.style.zIndex=1e4,e=!0},off:function(){t.style.display="none",t.style.zIndex=-1e4,e=!1}},Object.defineProperty(_extra.loadingScreenManager,"Z_INDEX",{get:function(){return 1e4}}),Object.defineProperty(_extra.loadingScreenManager,"active",{get:function(){return e}}),_extra.slideManager.enterSlideCallback.addCallback("*",_extra.loadingScreenManager.off)}),_extra.registerModule("movie",["variableManager_software","softwareInterfacesManager","hookManager"],function(){var t;_extra.movie={pause:function(e){e||(e=_extra.movie.reasonsForPause.CPCMNDPAUSE),_extra.captivate.api.movie.pause(e)},pauseIfNotPaused:function(e){_extra.movie.paused||_extra.movie.pause(e)},play:function(){_extra.variableManager.setVariableValue("cpCmndResume",1)},reasonsForPause:{PLAYBAR_ACTION:0,INTERACTIVE_ITEM:1,MOVIE_ENDED:2,VIDEO_SYNC:3,FEEDBACK_ITEM:4,CANNOT_MOVE_AHEAD:5,WAIT_FOR_RESOURCES:6,MOVIE_REWIND_STOP:7,CPCMNDPAUSE:8,SHOW_VALUE_AT_FRAME:9,DONT_CARE_DEPRECATED_CODE:10,EVENT_VIDEO_PAUSE:11,ONLY_ONE_MEDIUM_CAN_PLAY:12,PPTX_PAUSE_FOR_ONCLICK_ANIMATION:13,CPCMNDGOTOFRAME:14,BAD_ORIENTATION:15,WK_EXIT_FULL_SCREEN:16,ACTION_CHOICE:17,REASON_THAT_PREVENTS_CPMATE_LOAD_PAUSING:98,XPREFENSURECPMATELOAD:99}},_extra.w.Object.defineProperty(_extra.movie,"paused",{get:function(){return _extra.captivate.movie.paused}}),_extra.w.Object.defineProperty(_extra.movie,"lastReasonForPause",{get:function(){return t}}),_extra.addHookBefore(_extra.captivate.api.movie,"pause",function(e){t=e})}),_extra.registerModule("movieStatusManager",["softwareInterfacesManager","variableManager","eventManager"],function(){"use strict";_extra.movieStatus={FPS:_extra.captivate.FPS,totalFrames:_extra.captivate.totalFrames,isPlaying:function(){return!_extra.captivate.movie.paused},isPaused:function(){return _extra.captivate.movie.paused},isCurrentFrameWithinRange:function(e,t){return _extra.movieStatus.currentFrame<=t&&_extra.movieStatus.currentFrame>=e},convertMillisecondToFrame:function(e){return _extra.w.Math.floor(e*_extra.movieStatus.FPS/1e3)}},_extra.variableManager.listenForVariableChange("cpInfoCurrentFrame",function(){var e=_extra.variableManager.getVariableValue("cpInfoCurrentFrame");(e=_extra.w.Math.min(_extra.movieStatus.totalFrames,e))!==_extra.movieStatus.currentFrame&&(_extra.movieStatus.currentFrame=e,_extra.eventManager.eventDispatcher.dispatchEvent(_extra.createEvent("newframe")))})},_extra.CAPTIVATE),_extra.registerModule("publicAPIManager",function(){"use strict";return function(){_extra.w.X=_extra.X,_extra.X._=_extra,_extra.X.getSlideData=_extra.slideManager.getSlideData,_extra.X.gotoSlide=_extra.slideManager.gotoSlide,_extra.X.getSlideObjectByName=_extra.slideObjects.getSlideObjectByName}}),_extra.registerModule("queryManager",function(){"use strict";_extra.WILDCARD_CHARACTER="@",_extra.GLOBAL_WILDCARD_CHARACTER="#",_extra.queryList=function(e,t,a){a||(a=_extra.getQueryType(e));var r=e.indexOf(a);if(-1<r){var n=e.substr(0,r),i=e.substr(r+1,e.length-1),s=[],o=function(e){e.substr(0,n.length)===n&&e.substr(e.length-i.length,e.length-1)===i&&s.push(e)};if(t.constructor===_extra.w.Array)for(var l=0;l<t.length;l+=1)o(t[l]);else if("object"==typeof t)for(var c in t)t.hasOwnProperty(c)&&o(c);return 0===s.length&&(s=null),s}return null},_extra.isLocalQuery=function(e){return-1<e.indexOf(_extra.WILDCARD_CHARACTER)},_extra.isGlobalQuery=function(e){return-1<e.indexOf(_extra.GLOBAL_WILDCARD_CHARACTER)},_extra.isQuery=function(e){return"string"==typeof e&&(_extra.isLocalQuery(e)||_extra.isGlobalQuery(e))},_extra.getQueryType=function(e){return _extra.isLocalQuery(e)?_extra.WILDCARD_CHARACTER:!!_extra.isGlobalQuery(e)&&_extra.GLOBAL_WILDCARD_CHARACTER}}),_extra.registerModule("safeEval",function(){"use strict";var a={};_extra.safeEval=function(e,t){if(void 0!==t){if(a.hasOwnProperty(t))return;a[t]=!0}_extra.w.eval(e)}}),_extra.registerModule("timekeeper",["movieStatusManager"],function(){"use strict";var r,n,t=function(){return n=[],{add:function(e){n.push(e)},remove:function(e){n.splice(n.indexOf(e),1)},loop:function(e){for(var t=0;t<n.length;t+=1)a=n[t],r=e,a.inside?(r>=a.endFrame||r<=a.startFrame)&&(a.exit(),a.inside=!1):r>=a.startFrame&&r<a.endFrame&&(a.enter(),a.inside=!0);var a,r},isEmpty:function(){return 0===n.length}};var n},a={project:t(),slides:(r={},n={},{add:function(e){this.hasListForSlide(e.slideNumber)||(r[e.slideNumber]=t()),r[e.slideNumber].add(e)},remove:function(e){if(this.hasListForSlide(e.slideNumber)){var t=r[e.slideNumber];t.remove(e),t.isEmpty()&&delete r[e.slideNumber]}},isEmpty:function(){return 0===_extra.w.Object.keys(r).length},hasListForSlide:function(e){return r.hasOwnProperty(e)},loop:function(e){var t=_extra.slideManager.currentSlideNumber;if(this.hasListForSlide(t)){if(!n.hasOwnProperty(t)){var a=_extra.slideManager.getSlideData(t);n[t]=a.startFrame}e-=n[t],r[_extra.slideManager.currentSlideNumber].loop(e)}}})};function i(){a.project.loop(_extra.movieStatus.currentFrame),a.slides.loop(_extra.movieStatus.currentFrame)}_extra.timekeeper={conformsToInterface:function(e){return null!==e&&"number"==typeof e.startFrame&&"number"==typeof e.endFrame&&"function"==typeof e.enter&&"function"==typeof e.exit&&"boolean"==typeof e.isSlideBased&&"number"==typeof e.slideNumber},addWatch:function(e){_extra.timekeeper.conformsToInterface(e)?(e.isSlideBased?a.slides.add(e):a.project.add(e),_extra.eventManager.eventDispatcher.hasListenerFor("newframe")||_extra.eventManager.eventDispatcher.addEventListener("newframe",i)):_extra.error("Tried to add a watcher to _extra.timekeeper.addWatch() which did not conform to the watcher interface")},removeWatch:function(e){e&&e.isSlideBased?a.slides.remove(e):a.project.remove(e),a.project.isEmpty()&&a.slides.isEmpty()&&_extra.eventManager.eventDispatcher.removeEventListener("newframe",i)}}}),_extra.registerModule("URLManager",["softwareInterfacesManager","hookManager"],function(){"use strict";var e;e=_extra.captivate||_extra.storyline,_extra.addHookBefore(e.openURLLocation,e.openURLMethodName,function(e){return arguments[0]=_extra.variableManager.replaceVariablesInString(e),arguments})}),_extra.registerModule("utils",function(){"use strict";function e(s,o){function t(e,t){var a,r,n,i=Array.prototype.slice.call(t);return i.length<=0&&i.push(void 0),a=i,r=[],e.forEach(function(e){e===_extra.utils.__&&0<a.length?r.push(a.shift()):r.push(e)}),e=r.concat(a),n=0,e.forEach(function(e){e!==_extra.utils.__&&n++}),s<=n?o.apply(null,e):l(e)}function l(e){return function(){return t(e,arguments)}}return l([])}_extra.utils={__:{},map:e(2,function(n,e){return _extra.utils.callByType(e,{array:function(){var a=[];return _extra.utils.forEach(e,function(e){var t=n(e);a.push(t)}),a},object:function(){var r={};return _extra.utils.forEach(e,function(e,t){var a=n(t);r[e]=a}),r}})}),flatMap:e(2,function(e,t){return Array.prototype.concat.apply([],t.map(e))}),identity:function(e){return e},message:e(2,function(e,t){return console.log(e),t}),tap:e(2,function(e,t){return e(t),t}),always:function(e){return function(){return e}},pipeLog:function(e){return console.log(e),e},prop:e(2,function(e,t){return t[e]}),equals:e(2,function(e,t){return e===t}),gt:e(2,function(e,t){return t<e}),lt:e(2,function(e,t){return e<t}),gte:e(2,function(e,t){return t<=e}),lte:e(2,function(e,t){return e<=t}),isNil:function(e){return""===e||null==e||isNaN(e)&&"number"==typeof e},apply:e(2,function(e,t){return t.apply(null,e)}),callIfDefined:function(e){if(e){var t=Array.prototype.slice.call(arguments);return t=t.splice(1,t.length),e.apply(null,t)}},callByType:function(e,t){if(_extra.utils.isNil(e))return null;switch(typeof e){case"string":return _extra.utils.callIfDefined(t.string,e);case"number":return _extra.utils.callIfDefined(t.number,e);case"object":return e.constructor===Array?_extra.utils.callIfDefined(t.array,e):_extra.utils.callIfDefined(t.object,e)}},isEmpty:function(e){return!!_extra.utils.isNil(e)||_extra.utils.callByType(e,{array:function(e){return 0===e.length},object:function(e){return 0===Object.keys(e).length}})},forEach:e(2,function(e,a){_extra.utils.callByType(e,{array:function(e){e.forEach(function(e){a(e)})},object:function(e){for(var t in e)e.hasOwnProperty(t)&&a(t,e[t])}})}),reduce:e(3,function(a,r,e){return _extra.utils.callByType(e,{array:function(e){_extra.utils.forEach(e,function(e){r=a(e,r)})},string:function(e){for(var t=0;t<e.length;t++)r=a(e[t],r)}}),r}),add:e(2,function(e,t){return e+t}),addIfDefined:function(e,t){null!=e&&t.push(e)},indexOf:e(2,function(t,e){return _extra.utils.callByType(e,{string:function(e){return e.indexOf(t)}})}),includes:e(2,function(e,t){return-1<_extra.utils.indexOf(e,t)}),pipe:function(){var t=Array.prototype.slice.call(arguments);return function(e){return _extra.utils.reduce(function(e,t){return e(t)},e,t)}},head:function(e){return e[0]},last:function(e){return e[e.length-1]},ifElse:function(e,t,a){return function(){return e.apply(null,arguments)?t.apply(null,arguments):a.apply(null,arguments)}},when:e(2,function(e,t){return _extra.utils.ifElse(e,t,_extra.utils.identity)}),unless:e(2,function(e,t){return _extra.utils.ifElse(e,_extra.utils.identity,t)}),cond:e(2,function(e,t){for(var a=0;a<e.length;a+=1)if(e[a][0](t))return e[a][1](t)}),T:function(){return!0},F:function(){return!1},nth:e(2,function(e,t){return t[e]}),and:e(3,function(e,t,a){return e(a)&&t(a)}),typeIs:e(2,function(e,t){return typeof t===e}),forEachUntil:e(3,function(a,r,n){return _extra.utils.callByType(n,{array:function(){for(var e=0;e<n.length;e+=1){var t=r(n[e]);if(a(t))return t}},object:function(){for(var e in n)if(n.hasOwnProperty(e)){var t=r(n[e]);if(a(t))return t}}})}),complement:function(e){return function(){return!e.apply(null,arguments)}},any:e(2,function(e,t){for(var a=0;a<t.length;a+=1)if(e(t[a]))return!0;return!1}),all:e(2,function(e,t){for(var a=0;a<t.length;a+=1)if(!e(t[a]))return!1;return!0}),allPass:e(2,function(e,t){return _extra.utils.pipe(_extra.utils.map(_extra.utils.apply([t])),_extra.utils.all(_extra.utils.equals(!0)))(e)}),anyPass:e(2,function(e,t){return _extra.utils.pipe(_extra.utils.map(_extra.utils.apply([t])),_extra.utils.any(_extra.utils.equals(!0)))(e)}),append:e(2,function(e,t){return t.concat([e])}),length:function(e){return e.length},indexEquals:e(3,function(e,t,a){return a[e]===t}),without:e(2,function(e,t){for(var a=t.concat(),r=0,n=a.length;r<n;r++)_extra.utils.any(_extra.utils.equals(a[r]),e)&&a.splice(r,1);return a}),split:e(2,function(e,t){return t.split(e)}),removeWhiteSpace:function(e){return e.replace(/\s+/g,"")},startsWith:e(2,function(e,t){return t.substring(0,e.length)===e}),endsWith:e(2,function(e,t){return t.substring(t.length-e.length,t.length)===e}),contains:e(2,function(e,t){return-1!==t.indexOf(e)}),filter:e(2,function(t,e){var a=[];return e.forEach(function(e){t(e)&&a.push(e)}),a}),occurances:e(2,function(e,t){return t.split(e).length-1}),mergeRight:e(2,function(e,t){if(_extra.utils.isNil(t))return e;var a=_extra.utils.clone(t);for(var r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(a[r]=e[r]);return a}),clone:function(e){return _extra.$?_extra.$.extend({},e):JSON.parse(JSON.stringify(e))},isTrue:function(e){return!0===e},propEq:e(3,function(e,t,a){return!(!a||void 0===a[e])&&a[e]===t}),getCriteriaAction:e(2,function(e,t){if(e&&t)switch(e.toLowerCase()){case"success":return t.successAction;case"failure":case"fail":return t.failureAction;case"focuslostaction":return t.focusLostAction}}),getFilePath:e(2,function(e,t){var a=_extra.utils,r=a.equals("'"),n=a.contains(e);return a.pipe(a.reduce(function(e,t){return a.typeIs("object",t)?t:r(e)?n(t)?[t]:"":t+e},""),a.ifElse(a.typeIs("object"),a.nth(0),a.always(null)))(t)}),matchesQuery:e(3,function(e,t,a){var r=_extra.utils.pipe(_extra.utils.last,_extra.utils.endsWith),n=_extra.utils.pipe(_extra.utils.head,_extra.utils.startsWith);return _extra.utils.pipe(_extra.utils.split(e),_extra.utils.ifElse(_extra.utils.pipe(_extra.utils.length,_extra.utils.equals(2)),_extra.utils.pipe(_extra.utils.cond([[_extra.utils.indexEquals(0,""),r],[_extra.utils.indexEquals(1,""),n],[_extra.utils.pipe(_extra.utils.length,_extra.utils.equals(2)),_extra.utils.and(n,r)]]),_extra.utils.apply([a])),_extra.utils.F))(t)})}}),_extra.registerModule("AlertProxy",[],function(){"use strict";function e(e){this._data=e}e.prototype.getFirstButtonAction=function(){return this._data.m_firstButtonHandler},e.prototype.setFirstButtonAction=function(e){this._data.registerFirstButtonHandler(e)},e.prototype.show=function(){this._data.show()},_extra.registerClass("AlertProxy",e)},_extra.CAPTIVATE),_extra.registerModule("EffectDataProxy",[],function(){"use strict";function e(e,t,a,r){this._slideData=r,this._listIndex=a,this._name=t,this._data=e}function n(e){return _extra.w.Math.floor(e*_extra.captivate.FPS/1e3)}function s(e,t,a){e/=100;var r=_extra.w.Math.floor(a.startMillisecond+a.duration*e);return{value:t,percentage:e,millisecond:r,frame:n(r)}}e.prototype={get name(){return this._name},get slideObjectName(){return this._data.a3},get slideNumber(){return _extra.dataManager.getSlideObjectDataByName(this.slideObjectName).slideNumber},get duration(){return this._data.a6},get startMillisecond(){var e=this._slideData.animationList[this._listIndex];return e[1]===this.name?e[0]:(_extra.error("In effect '"+this.name+"' our animation list index has lost sync with the actual animation. Have we added something to the animation list which has changed this effect's index?"),null)},get startFrame(){return n(this.startMillisecond)},get endMillisecond(){return this.startMillisecond+this.duration},get endFrame(){return n(this.endMillisecond)},get animationProperty(){if(!this._animationProperty){this._animationProperty=this.name.substring(this.slideObjectName.length,this.name.length);var e=this._animationProperty.indexOf("_");0<e&&(this._animationProperty=this._animationProperty.substring(0,e))}return this._animationProperty},get frames(){return this._frames||(this._frames=function(e){var t=!0,a=0,r=e._data,n=[];if(!r.b6)return{};for(var i=0;i<r.b6.length;i+=1)t?a=r.b6[i]:n.push(s(a,r.b6[i],e)),t=!t;return n}(this)),this._frames}},_extra.registerClass("EffectDataProxy",e,_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("PlaybarProxy",function(){"use strict";function e(){var e,t,a,r=this;_extra.w.document.getElementById("playbar");function n(){r.ensureHookAdded(),e=_extra.w.document.getElementById("playbarSlider"),a=null!==e,t=_extra.w.document.getElementById("playbarSliderThumb"),r.update()}this._scrubbing=!0,this.update=function(){_extra.slideManager&&_extra.cssManager&&a&&r.managerPlaybarScrubbing()},this.managerPlaybarScrubbing=function(){r._scrubbing?(_extra.cssManager.removeClassFrom(e.parentNode,"extra-mouse-disabled"),_extra.cssManager.removeClassFrom(e,"extra-mouse-disabled"),_extra.cssManager.removeClassFrom(t,"extra-mouse-disabled")):(_extra.cssManager.addClassTo(e.parentNode,"extra-mouse-disabled"),_extra.cssManager.addClassTo(e,"extra-mouse-disabled"),_extra.cssManager.addClassTo(t,"extra-mouse-disabled"))},this.init=function(){_extra.slideManager.enterSlideCallback.addCallback("*",n),_extra.captivate.playIcon&&_extra.captivate.playIcon.addEventListener("click",n),n()},this.hasHook=!1,this.ensureHookAdded=function(){var e=_extra.captivate.getPlaybarCreator();!r.hasHook&&e&&_extra.addHook(e,"createSlider",n)},_extra.slideManager?this.init():_extra.registerModule("PlaybarProxy_initialize",["slideManager_global","cssManager"],function(){_extra.captivate.playbar.init()})}e.prototype={set scrubbing(e){this._scrubbing=e,this.update()},get scrubbing(){return this._scrubbing}},_extra.registerClass("PlaybarProxy",e)},_extra.CAPTIVATE),_extra.registerModule("SlideDataProxy",function(){"use strict";function e(e){this._data=e,this._effects=null}e.prototype={get name(){return this._data.base.lb},get slideObjects(){if(!this._slideObjects){this._slideObjects=[];for(var e=this._data.base.si,t=0;t<e.length;t+=1)this._slideObjects.push(e[t].n)}return this._slideObjects},get id(){return this._data.container.dn},get complete(){return this._data.base.v},set complete(e){this._data.base.v=e},get hasEffects(){return this._data.base.hasOwnProperty("g4")},get effects(){return!this._effects&&this.hasEffects&&(this._effects=new _extra.classes.SlideEffectsDataProxy(this._data.base.g4)),this._effects},get startFrame(){return this._data.base.from},get endFrame(){return this._data.base.to},get number(){return _extra.slideManager.getSlideNumberById(this.id)}},_extra.registerClass("SlideDataProxy",e,_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("SlideEffectsDataProxy",[],function(){"use strict";function e(e){this._data=e,this._animationList=e.a1,this._animationData=e.a2}(e.prototype={get animationList(){return this._animationList}}).getEffectsFor=function(e){var t=[],r=this;function a(e,t){for(var a=0;a<r._animationList.length;a+=1){if(r._animationList[a][1]===t)return new _extra.classes.EffectDataProxy(e,t,a,r)}return null}for(var n in this._animationData)if(this._animationData.hasOwnProperty(n)){var i=this._animationData[n];i.a3===e&&t.push(a(i,n))}return t},_extra.registerClass("SlideEffectsDataProxy",e,_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("SlideObjectQuestionDataProxy",[],function(){"use strict";function e(e){this.data=e,this.name=e.title}e.prototype={get score(){return this.data.getScore()},set score(e){this.data.setScore(e)},get maxScore(){return this.data.hasOwnProperty("weighting")?this.data.weighting:this.data.questionData.w}},_extra.registerClass("SlideObjectQuestionDataProxy",e,_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("VariableEventProxy",function(){"use strict";function e(e){this._data=e[0]}e.prototype={get variableName(){return this._data.Data.varName},get oldValue(){return this._data.Data.oldVal},get newValue(){return this._data.Data.newVal}},_extra.registerClass("VariableEventProxy",e,_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("animationManager",["slideObjectManager_global","globalSlideObjectTypes"],function(){"use strict";var e,t=[],a=[];function r(){e!==_extra.slideManager.currentSlideNumber&&(t.forEach(function(e){_extra.timekeeper.removeWatch(e)}),a.forEach(function(e){_extra.cpMate.broadcastTo(e,{action:"exitslide",parameters:[]})}),e=_extra.slideManager.currentSlideNumber)}_extra.animationManager={registerEffectWithTimeKeeper:function(e){_extra.timekeeper.addWatch(e),t.push(e)}},_extra.slideManager.enterSlideCallback.addCallbackToFront("*",r),_extra.slideObjects.enteredSlideChildObjectsCallbacks.addCallback(_extra.dataTypes.slideObjects.WEB_OBJECT,function(e){a.push(e),_extra.animationManager.parseAnimation(e)})},_extra.CAPTIVATE),_extra.registerModule("animationParser",["animationManager","generalDataManager"],function(){"use strict";var s=999999;function a(t,a){var n,i;return function(){if(!(n=_extra.animationManager.getValidEffect(t)))return null;if(function(){var e;(i={}).effect=n;for(var t=a;t<n.frames.length;t+=1)if(100<(e=n.frames[t]).value)return i.type=e.value,i.startIndex=t}(),!i)return null;if(function(){var e,t=_extra.animationManager.effectTypes.getEffectType(i.type),a=[];if(t){i.numParameters=t.parameters.length,i.endIndex=i.startIndex+i.numParameters+1;for(var r=i.startIndex+1;r<i.endIndex;r+=1){if((e=n.frames[r].value)===s)return _extra.error("EE001");a.push(e)}if(!n.frames[r]||n.frames[r].value!==s)return _extra.error("EE001");i.parameters=a}}(),!i.parameters)return null;var e=_extra.animationManager.effectTypes.createEffectManager(t,i);return _extra.animationManager.registerEffectWithTimeKeeper(e),i.endIndex+1}()}_extra.animationManager.END_SIGNAL=s,_extra.animationManager.getValidEffect=function(t){var a;function r(e){if(e.animationProperty!==_extra.dataTypes.effects.ALPHA)return!1;for(var t=0;t<e.frames.length;t+=1)if(100<e.frames[t].value)return!0;return null}return function(){if(!(a=_extra.dataManager.getSlideObjectDataByName(t)).effects||0===a.effects.length)return null;for(var e=0;e<a.effects.length;e+=1)if(r(a.effects[e]))return a.effects[e];return null}()},_extra.animationManager.parseAnimation=function(e){for(var t=0;null!==t;)t=a(e,t)}}),_extra.registerModule("effectTypeFactory",["animationManager"],function(){"use strict";var l={};_extra.animationManager.effectTypes={parseTypes:{NUMBER:"number",STRING:"string"},registerEffectType:function(e){e.type?e.class?e.parameters&&e.parameters.hasOwnProperty("length")?l[e.type]=e:_extra.error("No array of parameters details were defined for effect type: "+e.type):_extra.error("No class was defined for effect type: "+e.type):_extra.error("No type was defined when trying to register effect type")},getEffectType:function(e){return l[e]},createEffectManager:function(e,t){var a,r,n=t.type,i=t.parameters;function s(e,t){if(t=_extra.w.parseInt(t),e.subtract)return t-e.subtract}function o(e,t){if(e.replace.hasOwnProperty(t))return e.replace[t]}return l.hasOwnProperty(n)?function(e){var t;if(!i)return i=[],!0;if(e.length!==i.length)return _extra.error("When trying to create a new effect type "+n+", we discovered the number of parameters defined in the effect meta-data and the amount of parameters sent in to the constructor did not match. We therefore abandoned object creation"),!1;for(var a=0;a<e.length;a+=1)switch((t=e[a]).type){case _extra.animationManager.effectTypes.parseTypes.NUMBER:i[a]=s(t,i[a]);break;case _extra.animationManager.effectTypes.parseTypes.STRING:i[a]=o(t,i[a]);break;default:return _extra.error("Try to parse parameter of unknown type: "+t.type),!1}return!0}(l[n].parameters)?(a=function(t,e){function a(e){return t.apply(this,e)}return a.prototype=t.prototype,new a(e)}(l[n].class,i),(r=a).startFrame=t.effect.frames[t.startIndex].frame,r.endFrame=t.effect.frames[t.endIndex].frame,r.slideNumber=t.effect.slideNumber,r.slideObjectName=t.effect.slideObjectName,r.isSlideBased=!0,r.enter||_extra.error("Effect manager has not defined a 'enter' method as expected"),r.exit||_extra.error("Effect manager has not defined a 'exit' method as expected"),a):void 0:(_extra.error("Tried to instantiate effect class of unknown type: "+n),null)}}}),_extra.registerModule("generalDataManager",["utils","softwareInterfacesManager","dataTypeConverters","createSlideObjectData"],function(){"use strict";var t={};_extra.dataManager={getSlideObjectDataByQuery:function(e){var t=_extra.slideObjects.projectSlideObjectNames,a=_extra.queryList(e,t,"@");return null===a?null:_extra.utils.map(_extra.dataManager.createSlideObjectData,a)},getSlideObjectDataByName:function(e){return t.hasOwnProperty(e)||(t[e]=_extra.dataManager.createSlideObjectData(e)),t[e]},createSlideObjectData:function(e){var t,a,r;return(a=_extra.captivate.allSlideObjectsData[e])?_extra.dataManager.isContainerData(e,a)?(e=_extra.dataManager.removeContainerSuffix(e),_extra.dataManager.createSlideObjectData(e)):(t=_extra.dataTypes.convertSlideObjectType(a.type,e),r={base:a,container:_extra.dataManager.getContainerData(e,t)},_extra.factories.createSlideObjectData(e,r,t)):null},isContainerData:function(e,t){var a=_extra.dataManager.removeContainerSuffix(e);return!(!t.hasOwnProperty("b")||a===e||!_extra.captivate.allSlideObjectsData.hasOwnProperty(a))},removeContainerSuffix:function(e){var t=e.length-"c".length;return"c"===e.substring(t,e.length)?e.substring(0,t):e},getContainerData:function(e,t){var a=_extra.captivate.allSlideObjectsData[e+"c"];return a||(a=_extra.captivate.allSlideObjectsData[e+"sha"]),a||_extra.log("Could not find container data for: "+e),a},getSlideObjectTypeByName:function(e){var t=_extra.captivate.allSlideObjectsData[e];return t?_extra.dataTypes.convertSlideObjectType(t.type,e):_extra.w.NaN},getSlideObjectDataByID:function(e){var t,a=_extra.captivate.api.getDisplayObjByCP_UID(e);return t=a?a.parentDivName:function(e){var t;for(var a in _extra.captivate.allSlideObjectsData)if(_extra.captivate.allSlideObjectsData.hasOwnProperty(a)&&(t=_extra.captivate.allSlideObjectsData[a]).uid===e&&t.dn)return t.dn;return null}(e),_extra.dataManager.getSlideObjectDataByName(t)},isHyperlink:function(e){var t=_extra.captivate.allSlideObjectsData[e];return t.hasOwnProperty("accstr")&&t.hasOwnProperty("b")&&t.hasOwnProperty("oca")&&t.hasOwnProperty("ti")&&!t.hasOwnProperty("isCpObject")&&!t.hasOwnProperty("uid")&&!t.hasOwnProperty("mdi")}}},_extra.CAPTIVATE),_extra.registerModule("debuggingManager",function(){"use strict";_extra.debugging={mode:!1,log:function(e){_extra.console&&_extra.console.log(e)},debug:function(e){_extra.preferences.debugMode&&_extra.console.log(e)},error:function(e){var t;if(_extra.debugging.errors&&_extra.debugging.errors[e]){var a=Array.prototype.slice.call(arguments);a.splice(0,1),t=e,e=_extra.debugging.errors[e].apply(this,a)}_extra.preferences&&_extra.preferences.debugMode?(e="<div id='cpextra-alert-thinner' style='padding-right: 20px;'>"+e+"</div>",t?_extra.w.alert(e,"CpExtra encountered error: <b>"+t+"</b>"):_extra.w.alert(e,"CpExtra says...")):_extra.console&&_extra.console.error(e)}},_extra.log=_extra.debugging.log,_extra.error=_extra.debugging.error}),_extra.registerModule("errors",["debuggingManager"],function(){"use strict";_extra.debugging.errors={PV001:function(e){return"This browser does not support <b>"+e+" storage variables.</b> Please upgrade to the latest version of the browser.<br/>If this is not possible, either remove storage variables from this project <b>OR</b> set the <b>xprefDebugMode</b> variable to <b>false</b> to stop this message appearing."},AS001:function(e,t,a){return"<b>"+e+"</b> has a state named <b>"+t+"</b>. <br/>However, there appears to be no matching variable named <b>"+a+"</b>. <br/>To correct this issue ensure variable and state names match."},AS002:function(e,t,a){return"<b>"+e+"</b> has a state named <b>"+t+"</b>. <br/>However, a state name cannot use a variable name (e.g. <b>"+a+"</b>) more than once. <br/>To fix this error, ensure there is only once reference to <b>"+a+"</b> in the state name."},AS003:function(e){return"At _extra.slideObjects.states.registerStateMetaData, tried to register data for <b>"+e+"</b> twice. Has unloading of this data from a previous slide been unsuccessful?"},AS004:function(e,t,a){return"<b>"+e+"</b> has a state named <b>"+t+"</b>. <br/>However, there is no value written after the keyword <b>"+a+"</b>. Therefore CpExtra does not know how to evaluate the <b>"+t+"</b> state. <br/>To correct this issue write a value after the <b>"+a+"</b> keyword."},EE001:function(){return"The end of a CpMate effect was not detected where it was expected. This can be caused by having one CpMate effect overlap with another CpMate effect or an effect that alters transparency (alpha). <br/>Please check your project."},PE001:function(e){return"Tried to access explicitly defined variable <b>$$"+e+"$$</b>.<br/>However, there is no variable of the name <b>"+e+"</b>.<br/>To correct this issue please check that you have spelled the variable's name correctly."},CV001:function(e){return"Could not find a slide object in the movie by the name of <b>"+e+"</b>.<br/>To resolve this issue, please find the xcmnd variable that is attempting to reference this object and check you have spelt the object's name correctly."},CV002:function(e){return"Could not find a variable in the movie by the name of <b>"+e+"</b>.<br/>To resolve this issue, please find the xcmnd variable that is attempting to reference this variable and check you have spelt the variable's name correctly."},CV003:function(e){return"The string <b>"+e+"</b> does not match an expected keyword for the command variable it was assigned to.<br/>Please check the spelling of <b>"+e+"</b> and that you are assigning to the correct command variable"},CV004:function(e){return"Tried to use the @syntax query <b>"+e+"</b> on a parameter that doesn't allow @syntax queries.<br/>Please remove the @syntax query and replace it with a singular property."},CV005:function(e){return"Tried to use the value <b>"+e+"</b> for a property that requires a number.<br/>Please check the spelling of <b>"+e+"</b>"},CV006:function(e,t){return"Tried to write to slide object <b>"+e+"</b>'s <b>"+t+"</b> property.<br/>However, this is not a property that CpExtra allows you to set. <br/>Do not attempt to write to the <b>"+t+"</b> property"},CV007:function(e){return"Tried to interact with slide object <b>"+e+"</b>. However, this action requires an interactive object, and <b>"+e+"</b> is not an interactive object.<br/>Please check the spelling of <b>"+e+"</b>. "},CV008:function(e){return"Received number <b>"+e+"</b> where a variable name was expected. If you assign a variable name to another variable, Captivate automatically swaps out that string with the variable's value. <br/>To fix this issue, surround the variable name in square braces [].<br/>Example: <b>[MyVar]</b>."},CV010:function(e){return"Unable to call a <b>"+e+"</b> action on a slide object because <b>"+e+"</b> is not listed as a valid action. <br/>Please change <b>"+e+"</b> to <b>success, failure </b> or <b>focuslost</b>."},CV011:function(e){return"Tried to call a <b>focus lost</b> action on <b>"+e+"</b>. However this interactive object has no <b>focus lost</b> action.<br/>Please ensure <b>"+e+"</b> is a Text Entry Box."},CV012:function(e){return"Could not call action on <b>"+e+"</b> as it is not an interactive object. <br/>To resolve this issue, change <b>"+e+"</b> to be an interactive object (i.e. an object with success / failure criteria)."},CV013:function(e){return"Tried to call an action on <b>"+e+"</b> but could not find any slide objects with that name. <br/>Please ensure there is an interactive object with the name <b>"+e+"</b>."},CV020:function(e){return"Tried to use xcmndSetCursor to apply cursor named <b>"+e+"</b> to a slide object. <b>"+e+"</b> is not a valid cursor name. <br/>Please check if you have misspelt the cursor name."},CV030:function(e,t){var a;return"addEventListener"===t?a="add":"removeEventListener"===t&&(a="remove"),"Tried to "+a+" an event listener on <b>"+e+"</b> but could not find any slide objects with that name. <br/>Please ensure there is a slide object with the name <b>"+e+"</b>."},CV031:function(e,t){var a;return"addEventListener"===t?a="add":"removeEventListener"===t&&(a="remove"),"Unable to "+a+" the <b>"+e+"</b> event because <b>"+e+"</b> is not listed as a valid event. <br/>Please check the spelling of <b>"+e+"</b>."},CV040:function(e,t){return"Tried alter the <b>"+t+"</b> property on <b>"+e+"</b> but could not find any slide objects with that name. <br/>Please ensure there is a slide object with the name <b>"+e+"</b>."},CV041:function(e,t,a){return"Tried to change the <b>"+t+"</b> property on <b>"+e+"</b> to <b>"+a+"</b>, but that is not a valid value.<br/>Please check the spelling of <b>"+a+"</b>."},CV042:function(e,t,a){return"Tried to set variable <b>"+e+"</b> with value of slide object <b>"+t+"'s "+a+"</b> property. However, could not find any slide object with the object name <b>"+t+"</b>.<br/>Please check the spelling of <b>"+t+"</b>."},CV050:function(e){return"Tried to reset variable <b>"+e+"</b> to its default value, but could not find any variables by the name of <b>"+e+"</b>.<br/>Please check the spelling of <b>"+e+"</b>."},CV060:function(e){return"Tried to flush <b>"+e+"</b> from storage, but <b>"+e+"</b> is not registered as a storage variable. <br/>Storage variables should have a prefix of <b>ls_</b> or <b>ss_</b>.<br/>Other keywords that can be passed to <b>xcmndFlushStorage</b> are <b>local, session,</b> and <b>all</b><br/>Please check the spelling of <b>"+e+"</b>."},CV070:function(e){return"Tried to assign <b>xcmndCompleteSlide</b> an improper range of slides. Could not indentify what <b>"+e+"</b> is supposed to represent. <br>Please check the spelling of <b>"+e+"</b>."},CV071:function(e){return"Tried to mark slide <b>"+e+"</b> as complete, but could not find any slide with the name <b>"+e+"</b>.<br/>Please check the spelling of <b>"+e+'</b>. Slide names are <b>case sensitive</b>. If the slide name contains spaces, wrap the slide name in "double quotes."'},CV072:function(e,t){return"Tried to mark slide number <b>"+e+"</b> as complete, but there are only <b>"+t+"</b> slides in the project.<br/>Perhaps you have deleted a few slides and this command needs updating."},CV080:function(e){return"Tried to load javascript files from <b>"+e+"'s</b> success/failure actions.<br/>The action must be <b>Open URL or file</b> and it must point to a <b>.js file</b><br/>Please check the spelling of <b>"+e+"</b>"},CV081:function(e){return"Tried to load javascript files from <b>"+e+"</b> with xprefInitLoadJSFromAction.<br/>However, this is an @syntax query which can't work until the Captivate export starts playing.To fix this, please change your query to use the # symbol instead of the @ symbol."}}}),_extra.registerModule("eventManager",["EventMediator","EventDispatcher","slideObjectProxyAutoInstantiator"],function(){"use strict";var a={},e="ontouchstart"in _extra.w.document.documentElement;_extra.eventManager={useTouchEvents:e,lastEventTarget:void 0,eventDispatcher:new _extra.classes.EventDispatcher,addEventListener:function(e,t,a,r){var n=_extra.eventManager.getEventMediator(e);n&&n.addEventListener(t,a,r)},removeEventListener:function(e,t,a,r){var n=_extra.eventManager.getEventMediator(e);n&&n.removeEventListener(t,a,r)},getEventMediator:function(e){if(!a[e]){var t=new _extra.classes.EventMediator;t.setId(e),t.registerOnEmptyCallback(function(){delete a[e]}),a[e]=t}return _extra.slideObjects.proxyAutoInstantiator.check(e),a[e]},hasEventMediatorFor:function(e){return a.hasOwnProperty(e)},setEventTarget:function(e){_extra.eventManager.lastEventTarget=e},events:{MOUSE_DOWN:e?"touchstart":"mousedown",MOUSEDOWN:e?"touchstart":"mousedown",MOUSE_UP:e?"touchend":"mouseup",MOUSEUP:e?"touchend":"mouseup",MOUSE_MOVE:e?"touchmove":"mousemove",MOUSEMOVE:e?"touchmove":"mousemove",MOUSE_OVER:"mouseover",MOUSEOVER:"mouseover",MOUSE_OUT:"mouseleave",MOUSEOUT:"mouseleave",ROLLOVER:"mouseover",ROLLOUT:"mouseout",RIGHT_CLICK:"contextmenu",RIGHTCLICK:"contextmenu",CLICK:"click",DOUBLE_CLICK:"dblclick",DOUBLECLICK:"dblclick",DBLCLICK:"dblclick",ENTER:"enter",EXIT:"exit",VIDEO_ENDED:"videoended",VIDEOENDED:"videoended",VIDEO_END:"videoended",VIDEOEND:"videoended",AUDIO_ENDED:"audioended",AUDIOENDED:"audioended",AUDIO_END:"audioended",AUDIOEND:"audioended",LOADED:"loaded",ERROR:"error",ANIMATION_READY:"animationready"}},_extra.slideObjects.proxyAutoInstantiator.registerModelLookup(_extra.eventManager.hasEventMediatorFor)}),_extra.registerModule("touchEventManager",["eventManager","slideObjectManager_global"],function(){"use strict";_extra.w.document.addEventListener(_extra.eventManager.events.MOUSE_DOWN,function(e){_extra.slideObjects.getSlideObjectByDIV(e.target)}),_extra.w.document.addEventListener(_extra.eventManager.events.MOUSE_UP,function(e){var t=_extra.slideObjects.getSlideObjectByDIV(e.target);t&&_extra.slideObjects.states.doesSlideObjectHaveDownState(t.name)&&t.dispatchEvent(_extra.eventManager.events.MOUSE_UP)})}),_extra.registerModule("debugModePreferenceManager",["preferenceManager","debuggingManager"],function(){"use strict";var e={enable:function(){_extra.preferences.debugMode=!0},disable:function(){_extra.preferences.debugMode=!1}};_extra.preferenceManager.registerPreferenceModule("DebugMode",e)?e.enabled||e.disable():e.enable()}),_extra.registerModule("doubleClickDelayPreference",["preferenceManager"],function(){"use strict";_extra.preferences.doubleClickDelay=0;var t={enable:function(){},update:function(e){if("number"!=typeof e){if(_extra.w.isNaN(e))return void t.disable();e=_extra.w.parseFloat(e)}_extra.preferences.doubleClickDelay=1e3*e},disable:function(){_extra.preferences.doubleClickDelay=0}};_extra.preferenceManager.registerPreferenceModule("DoubleClickDelay",t)||t.update(.5)}),_extra.registerModule("doubleDidgitPreferences",["preferenceManager"],function(){"use strict";function e(s){var e={suffix:s.suffix,enable:function(){},disable:function(){},update:function(e){e=e?e.toLowerCase():"";for(var t,a,r,n=!1,i=0;i<s.linkedVariables.length;i+=1)t=s.linkedVariables[i],r=_extra.preferences.doubleDidgits[t.variable],(a=-1!==e.indexOf(t.term))!==r&&(_extra.preferences.doubleDidgits[t.variable]=a,n=!0);n&&_extra.preferences.hasOwnProperty(s.updateMethodName)&&_extra.preferences[s.updateMethodName]()}};_extra.preferenceManager.registerPreferenceModule(s.suffix,e)&&e.update(_extra.variableManager.getVariableValue(e.name))}_extra.preferences.doubleDidgits={ProjectTotalHours:!1,ProjectTotalMinutes:!1,ProjectTotalSeconds:!0,ProjectElapsedHours:!1,ProjectElapsedMinutes:!1,ProjectElapsedSeconds:!0},e({suffix:"UseDoubleDigitElapsedTimeValues",updateMethodName:"calculateElapsedProjectTime",linkedVariables:[{term:"hour",variable:"ProjectElapsedHours"},{term:"minute",variable:"ProjectElapsedMinutes"},{term:"second",variable:"ProjectElapsedSeconds"}]}),e({suffix:"UseDoubleDigitTotalTimeValues",updateMethodName:"calculateTotalProjectTime",linkedVariables:[{term:"hour",variable:"ProjectTotalHours"},{term:"minute",variable:"ProjectTotalMinutes"},{term:"second",variable:"ProjectTotalSeconds"}]})}),_extra.registerModule("multichoiceRolloverPreferences",["preferenceManager","hookManager","slideObjectManager_global"],function(){"use strict";_extra.preferences.multichoiceRolloverColor="#000000",_extra.preferences.multichoiceRolloverOpacity=1;var t={enable:function(){},disable:function(){t.update("#000000")},update:function(e){"string"!=typeof e&&(e=_extra.w.String(e)),"#"!==e.charAt(0)&&(e="#"+e),_extra.preferences.multichoiceRolloverColor=e}},e={enable:function(){},disable:function(){e.update(0)},update:function(e){if("number"!=typeof e){if(_extra.w.isNaN(e))return void t.disable();e=_extra.w.parseFloat(e)}_extra.preferences.multichoiceRolloverOpacity=e/100}},a=_extra.preferenceManager.registerPreferenceModule("MultichoiceRolloverColor",t),r=_extra.preferenceManager.registerPreferenceModule("MultichoiceRolloverOpacity",e);if(_extra.captivate.api.MCQInput&&a||r){r&&0===_extra.variableManager.getVariableValue("xprefMultichoiceRolloverOpacity")&&e.update(0);var s=[];_extra.slideManager.enterSlideCallback.addCallback("*",function(){for(var e,t=s.length-1;0<=t;t-=1)(e=s[t]).base.removeEventListener("mouseover",e.handler),s.splice(t,1)}),_extra.addHookAfter(_extra.captivate.api.MCQInput.prototype,"addHighlightBoxMouseHandlers",function(){var e=this,t=_extra.w.document.getElementById(this.element.id+"_dummyhighlight"),a=_extra.w.document.getElementById(this.answerTextCanvasDivName).parentNode,r=_extra.w.parseInt(t.style.zIndex),n=this.answerLabelCanvasElement.parentNode;function i(){_extra.captivate.api.disableInteractions||"disabled"===e.value||(void 0!==_extra.preferences.multichoiceRolloverColor&&(t.style.backgroundColor=_extra.preferences.multichoiceRolloverColor),void 0!==_extra.preferences.multichoiceRolloverOpacity&&(t.style.opacity=_extra.preferences.multichoiceRolloverOpacity))}a.style.position="absolute",a.style.zIndex=r+1,n.style.zIndex=r+2,this.highlightElement.addEventListener("mouseover",i),s.push({base:this.highlightElement,listener:i})})}},_extra.CAPTIVATE),_extra.registerModule("preferenceManager",["variableManager","parameterParser"],function(){"use strict";var s={};_extra.preferences={},_extra.preferenceManager={registerPreferenceModule:function(e,t){var a="xpref"+e;function r(e){t.enabled||(t.enable(e),t.enabled=!0),t.update&&t.update(e)}function n(){t.enabled&&(t.disable(),t.enabled=!1)}function i(){var e=_extra.variableManager.getVariableValue(a);_extra.variableManager.parse.boolean(e)?r(e):n()}if(!_extra.variableManager.hasVariable(a)&&(a="_"+a,!_extra.variableManager.hasVariable(a)))return t.hasOwnProperty("default")&&(t.default?r(t.default):n()),!1;if(s[a])throw new Error("Illegally attempted to register two behaviour modules with the name: "+e);if(!t.enable)throw new Error("Illegally tried to submit a behaviour module without an enable method specified in the preferenceInfo parameter object.");if(!t.disable)throw new Error("Illegally tried to submit a behaviour module without a disable method specified in the preferenceInfo parameter object.");return(s[a]=t).enabled=!1,_extra.variableManager.listenForVariableChange(a,i),i(),!0}}}),_extra.registerModule("preventTextEntryBoxOverwrite",["slideObjectManager_global","preferenceManager","eventManager","globalSlideObjectTypes"],function(){"use strict";function e(e){var t=_extra.dataManager.getSlideObjectDataByName(e),a=_extra.slideObjects.getSlideObjectByName(e),r=_extra.captivate.variableManager.getVariableValue(t.variable);a._ignoreNextDefaultText=!0,a.value=r}var t={enable:function(){_extra.slideObjects.enteredSlideChildObjectsCallbacks.addCallback(_extra.dataTypes.slideObjects.TEXT_ENTRY_BOX,e)},disable:function(){_extra.slideObjects.enteredSlideChildObjectsCallbacks.removeCallback(_extra.dataTypes.slideObjects.TEXT_ENTRY_BOX,e)}};_extra.preferenceManager.registerPreferenceModule("PreventTEBOverwrite",t)},_extra.CAPTIVATE),_extra.registerModule("xprefDisableGestures",["preferenceManager","slideManager_global","softwareInterfacesManager"],function(){"use strict";var e=!0,t={enable:function(){e=!1,a()},disable:function(){e=!0,a()}};function a(){_extra.captivate.gestureManager.enabled=e}_extra.preferenceManager.registerPreferenceModule("DisableGestures",t)&&_extra.slideManager.enterSlideCallback.addCallback("*",a)},_extra.CAPTIVATE),_extra.registerModule("xprefDisablePlaybarScrubbing",["preferenceManager","slideManager_global","cssManager","softwareInterfacesManager"],function(){"use strict";var e={enable:function(){_extra.captivate.playbar.scrubbing=!1},disable:function(){_extra.captivate.playbar.scrubbing=!0}};_extra.preferenceManager.registerPreferenceModule("DisablePlaybarScrubbing",e)},_extra.CAPTIVATE),_extra.registerModule("xprefInitLoadJSFromAction",["jsLoadManager","queryManager","commandVariableManager","variableManager_software"],function(){"use strict";return function(){var e=_extra.utils;function t(e){return _extra.isQuery(e)?_extra.isLocalQuery(e)?(_extra.error("CV081",e),null):_extra.slideObjects.getSlideObjectNamesMatchingWildcardName(e):e}window.test=t;var a,r,n="xprefInitLoadJSFromAction";_extra.variableManager.hasVariable(n)&&(a=_extra.variableManager.getVariableValue(n),(r=_extra.variableManager.prepareParameters(a))&&e.pipe(e.flatMap(t),e.forEach(e.__,_extra.jsLoadManager.loadFromAction))(r))}}),_extra.registerModule("xprefInteractiveWebObjects",["slideObjectManager_global","preferenceManager"],function(){"use strict";function e(e){if(_extra.captivate.useWidget7){var t=_extra.slideObjects.getSlideObjectByName(e);t&&!t.data.isSVG&&(t.interactive=!0)}}_extra.preferenceManager.registerPreferenceModule("InteractiveWebObjects",{enable:function(){_extra.slideObjects.enteredSlideChildObjectsCallbacks.addCallback(_extra.dataTypes.slideObjects.WEB_OBJECT,e)},disable:function(){_extra.slideObjects.enteredSlideChildObjectsCallbacks.removeCallback(_extra.dataTypes.slideObjects.WEB_OBJECT,e)},default:!0})}),_extra.registerModule("saveLocalStoragePreference",["preferenceManager","eventManager"],function(){"use strict";var r={enable:function(){},update:function(e){switch(e?_extra.w.isNaN(e)&&(e=e.toLowerCase()):e="",r.disable(),e){case"onenterslide":case"onslideenter":_extra.slideManager.enterSlideCallback.addCallback("*",_extra.variableManager.saveStorageVariables),_extra.w.addEventListener("unload",_extra.variableManager.saveStorageVariables);break;case"disable":case"disabled":case"off":case"no":break;case"exit":case"onexit":_extra.w.addEventListener("unload",_extra.variableManager.saveStorageVariables);break;default:if(_extra.variableManager.hasParsedVariables)for(var t in _extra.variableManager.storageVariables)_extra.variableManager.storageVariables.hasOwnProperty(t)&&_extra.variableManager.listenForVariableChange(t,r.onVariableChange);else{var a=function(){_extra.eventManager.eventDispatcher.removeEventListener("variablesInitialized",a),r.update(e)};_extra.eventManager.eventDispatcher.addEventListener("variablesInitialized",a)}_extra.w.addEventListener("unload",_extra.variableManager.saveStorageVariables)}},disable:function(){for(var e in _extra.slideManager.enterSlideCallback.removeCallback("*",_extra.variableManager.saveStorageVariables),_extra.w.removeEventListener("unload",_extra.variableManager.saveStorageVariables),_extra.variableManager.storageVariables)_extra.variableManager.storageVariables.hasOwnProperty(e)&&_extra.variableManager.stopListeningForVariableChange(e,r.onVariableChange)},onVariableChange:function(e){_extra.variableManager.saveStorageVariable(e.variableName)}};_extra.preferenceManager.registerPreferenceModule("SaveLocalStorage",r)||(r.enable(),r.update("change"))}),_extra.registerModule("xprefStartSlide",["preferenceManager","xprefInitAction"],function(){_extra.preferenceManager.registerPreferenceModule("StartSlide",{enable:function(){},disable:function(){},update:function(r){_extra.preferenceManager.callAfterXprefInitAction(function(){var e;if(_extra.isQuery(r)){var t=_extra.slideManager.querySlides(r);t&&(e=t[0])}else{e=r;var a=_extra.w.parseInt(e);_extra.w.isNaN(a)||(e=a-1)}e&&_extra.slideManager.gotoSlideAndPlay(e)})}})}),_extra.registerModule("xprefTEBUpdateToVariable",["slideObjectManager_global","preferenceManager","eventManager","globalSlideObjectTypes","slideManager_global"],function(){"use strict";var e,t,a={},r={enable:function(){i(!0)},disable:function(){i(!1)}};function n(){_extra.slideManager.currentSceneNumber===e&&_extra.slideManager.currentSlideNumber===t||(i(!1),a={},e=_extra.slideManager.currentSceneNumber,t=_extra.slideManager.currentSlideNumber)}function i(e){for(var t in a)a.hasOwnProperty(t)&&(a[t].updateToVariable=e)}_extra.preferenceManager.registerPreferenceModule("TEBUpdateFromVariable",r)&&(_extra.slideObjects.enteredSlideChildObjectsCallbacks.addCallback(_extra.dataTypes.slideObjects.TEXT_ENTRY_BOX,function(e){n();var t=_extra.slideObjects.getSlideObjectByName(e);t.updateToVariable=r.enabled,a[e]=t}),_extra.slideManager.enterSlideCallback.addCallback("*",n))},_extra.CAPTIVATE),_extra.registerModule("quizManager",[],function(){"use strict";_extra.quizManager={getSlideObjectQuestionData:function(e){var t=_extra.captivate.api.getQuestionObject(e);return t?new _extra.classes.SlideObjectQuestionDataProxy(t):null},getSlideObjectScore:function(e){var t=_extra.quizManager.getSlideObjectQuestionData(e);return t?t.score:null},setSlideObjectScore:function(e,t){var a=_extra.quizManager.getSlideObjectQuestionData(e);a&&(a.score="max"===t?a.maxScore:"half"===t?_extra.w.Math.round(a.maxScore/2):t)}}},_extra.CAPTIVATE),_extra.registerModule("slideManager_software",["softwareInterfacesManager","Callback"],function(){"use strict";var a,r,n=_extra.captivate.model.data.project_main.slides.split(","),t=!1,i=[];_extra.slideManager={_slideDatas:[[],[]],_slideDatasById:{},slideNames:[[],[]],numSlides:_extra.captivate.numSlides,currentInternalSlideId:null,currentSlideDOMElement:_extra.w.document.getElementById("div_Slide"),isSlideLoaded:!1,internalGotoSlide:function(e,t){_extra.captivate.interface.gotoSlide(t)},getCurrentSlideNumber:function(){return _extra.captivate.variables.cpInfoCurrentSlideIndex},getCurrentSceneSlideNumber:function(){return _extra.captivate.variables.cpInfoCurrentSlideIndex},getCurrentSceneNumber:function(){return 1},hasSlideObjectOnSlide:function(e,t,a){if(a=_extra.slideManager.parseSlideNumber(t,a)){var r=_extra.captivate.model.data[e];return r&&r.apsn===n[a.slide]}return null},software_onSlideEnter:function(){this.currentInternalSlideId=n[_extra.slideManager.currentSlideNumber]},isInitiated:function(){return _extra.captivate.isInitated()},registerOnInitiatedCallback:function(e){i&&(t||(_extra.addHookAfter(_extra.w.cp,"DoCPInit",_extra.slideManager.callDoCPInitCallbacks),t=!0),i.push(e))},callDoCPInitCallbacks:function(){for(var e=0;e<i.length;e+=1)i[e]();i=null,_extra.removeHook(_extra.w.cp,"DoCPInit",_extra.slideManager.callDoCPInitCallbacks)},isSlideObjectOnSlideAndNotInTimeline:function(e){if(_extra.slideManager.hasSlideObjectOnSlide(e)){var t=_extra.dataManager.getSlideObjectDataByName(e);return!_extra.movieStatus.isCurrentFrameWithinRange(t.startFrame,t.endFrame)}return!1},isNameOfSlide:function(e){"c"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1));for(var t=0;t<n.length;t+=1)if(n[t]===e)return!0;return!1},getSlideNumberById:function(e){for(var t=0;t<n.length;t+=1)if(n[t]===e)return t}},n.forEach(function(e){a=_extra.captivate.model.data[e],r=_extra.captivate.model.data[e+"c"];var t={base:a,container:r};_extra.slideManager._slideDatas[1].push(t),_extra.slideManager._slideDatasById[e]=t,_extra.slideManager.slideNames[1].push(a.lb)}),_extra.slideManager.addEnterSlideEventListener=function(e){_extra.captivate.eventDispatcher.addEventListener(_extra.captivate.events.SLIDE_ENTER,e)},_extra.captivate.eventDispatcher.addEventListener(_extra.captivate.events.SLIDE_EXIT,function(){_extra.slideManager.isSlideLoaded=!1})},_extra.CAPTIVATE),_extra.registerModule("slideManager_global",["BaseSlideObjectProxy","slideManager_software"],function(){"use strict";var r=_extra;return _extra.slideManager.currentSceneNumber=1,_extra.slideManager.currentSlideNumber=0,_extra.slideManager.currentSceneSlideNumber=0,_extra.slideManager.currentSlideID="0.0",_extra.slideManager.parseSlideNumber=function(e,t){if(void 0===t&&(t=e,e=1),"string"==typeof t){if(_extra.w.isNaN(t))return _extra.slideManager.getSlideIndexFromName(t);var a=t.split(".");switch(a.length){case 1:t=_extra.w.parseInt(a[0]);break;case 2:e=_extra.w.parseInt(a[0]),t=_extra.w.parseInt(a[1]);break;default:return null}}else void 0===t&&(e=_extra.slideManager.currentSceneNumber,t=_extra.slideManager.currentSceneSlideNumber);return _extra.slideManager._slideDatas.hasOwnProperty(e)&&_extra.slideManager._slideDatas[e].hasOwnProperty(t)?{scene:e,slide:t}:null},_extra.slideManager.getSlideName=function(e,t){return(t=_extra.slideManager.parseSlideNumber(e,t))?_extra.slideManager.slideNames[t.scene][t.slide]:null},_extra.slideManager.getSlideData=function(e,t){var a=_extra.slideManager.parseSlideNumber(e,t);return a?new _extra.classes.SlideDataProxy(_extra.slideManager._slideDatas[a.scene][a.slide]):null},_extra.slideManager.getSlideDataFromId=function(e){return e?new _extra.classes.SlideDataProxy(_extra.slideManager._slideDatasById[e]):null},_extra.slideManager.getSlideIndexFromName=function(e){for(var t,a=0;a<_extra.slideManager.slideNames.length;a+=1)if(-1<(t=_extra.slideManager.slideNames[a].indexOf(e)))return{scene:a,slide:t};return null},_extra.slideManager.gotoSlide=function(e,t){var a=_extra.slideManager.parseSlideNumber(e,t);return!!a&&(_extra.slideManager.internalGotoSlide(a.scene,a.slide),!0)},_extra.slideManager.gotoSlideAndPlay=function(e,t){var a=_extra.slideManager.gotoSlide(e,t);return _extra.captivate.variables.cpCmndResume=1,a},_extra.slideManager.querySlides=function(e){if(_extra.isQuery(e))return _extra.queryList(e,_extra.slideManager.slideNames[1])},_extra.slideManager.enactFunctionOnSlides=function(e,t){if(_extra.isQuery(e)){var a=_extra.slideManager.querySlides(e);if(a)for(var r=0;r<a.length;r+=1)t(a[r])}else t(e)},_extra.slideManager.enterSlideCallback=new _extra.classes.Callback,_extra.slideManager.onSlideEnter=function(){_extra||(window._extra=r);var e=_extra.slideManager.getCurrentSceneNumber(),t=_extra.slideManager.getCurrentSlideNumber(),a=e+"."+t;_extra.slideManager.currentSceneNumber=e,_extra.slideManager.currentSlideNumber=t,_extra.slideManager.currentSceneSlideNumber=_extra.slideManager.getCurrentSceneSlideNumber(),_extra.slideManager.currentSlideID=a,-1!==_extra.slideManager.currentSceneSlideNumber&&(_extra.slideManager.enterSlideCallback.sendToCallback("*",a),_extra.slideManager.hasOwnProperty("software_onSlideEnter")&&_extra.slideManager.software_onSlideEnter(),0===e&&_extra.slideManager.enterSlideCallback.sendToCallback(t,a),_extra.slideManager.enterSlideCallback.sendToCallback(a,a))},_extra.slideManager.addEnterSlideEventListener(_extra.slideManager.onSlideEnter),function(){_extra.slideManager.isInitiated()?_extra.slideManager.onSlideEnter():_extra.slideManager.registerOnInitiatedCallback(_extra.slideManager.onSlideEnter)}}),_extra.registerModule("enterTimelineCallback",["hookManager","slideObjectManager_global"],function(){"use strict";var n={};_extra.slideObjects.enterTimelineCallback=new _extra.classes.Callback,_extra.addHookBefore(_extra.slideObjects.enterTimelineCallback,"addCallback",function(e){var t,a,r=_extra.slideObjects.getSlideObjectByName(e);_extra.slideObjects.enterTimelineCallback.hasCallbackFor(e)||(a=function(){_extra.slideObjects.enterTimelineCallback.sendToCallback(e)},(t=r)?(t.addEventListener(_extra.eventManager.events.ENTER,a),n[t.name]=a):console.log("Inside enterTimelineCallback module's addHandler method: Could not find slide object with name: "+slideObjectName))}),_extra.addHookAfter(_extra.slideObjects.enterTimelineCallback,"removeCallback",function(e){var t,a,r=_extra.slideObjects.getSlideObjectByName(e);r&&!_extra.slideObjects.enterTimelineCallback.hasCallbackFor(e)&&(a=n[(t=r).name])&&(t.removeEventListener(_extra.eventManager.events.ENTER,a),delete n[t.name])})}),_extra.registerModule("locationManager",["slideObjectManager_software"],function(){"use strict";function e(e){return e.calculateReducedPercentageLocation&&_extra.slideObjects.locationManager.isPositionedByPercentage(e.nativeController)?e.location()*e.actualFrameLength():e.nativeController.bounds[e.boundsProperty]}_extra.slideObjects.locationManager={isPositionedByPercentage:function(e){var t=_extra.slideObjects.locationManager.getLocation(e,"l");return!!t&&-1<t.indexOf("%")},getLocation:function(e,t){if(e.responsiveCSS){var a=e.responsiveCSS[_extra.captivate.getResponsiveProjectWidth()];if(a)return a[t]}return!1},getOriginalX:function(t){return e({nativeController:t,boundsProperty:"minX",frameLength:_extra.captivate.getResponsiveProjectWidth,actualFrameLength:_extra.captivate.getProjectWidth,calculateReducedPercentageLocation:_extra.captivate.isResponsive,location:function(){var e=_extra.slideObjects.locationManager.getLocation(t,"l");return _extra.w.parseFloat(e)/100}})},getOriginalY:function(t){return e({actualFrameLength:_extra.captivate.getProjectHeight,nativeController:t,boundsProperty:"minY",calculateReducedPercentageLocation:_extra.captivate.isResponsive,location:function(){var e=_extra.slideObjects.locationManager.getLocation(t,"t");return _extra.w.parseFloat(e)/100}})}}},_extra.CAPTIVATE),_extra.registerModule("projectSlideObjectListProcurer",["slideObjectManager_global"],function(){"use strict";function e(e,t){return e.substr(0,t.length)===t&&!_extra.w.isNaN(e.substr(t.length,e.length))}var t,a;for(var r in _extra.captivate.allSlideObjectsData)_extra.captivate.allSlideObjectsData.hasOwnProperty(r)&&(t=_extra.captivate.allSlideObjectsData[r],a=r,(r=!(!t.hasOwnProperty("mdi")||("c"===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),e(a,"Slide")||e(a,"si")))&&a)&&(_extra.slideObjects.projectSlideObjectNames[r]=!0))},_extra.CAPTIVATE),_extra.registerModule("slideObjectHideShowListener",["slideObjectManager_global","hookManager"],function(){"use strict";function e(e,t){e&&_extra.addHookAfter(e.location,e.name,function(e){})}e(_extra.slideObjects._internalShowSlideObjectDetails),e(_extra.slideObjects._internalHideSlideObjectDetails)}),_extra.registerModule("slideObjectManager_software",["generalDataManager","Callback","slideManager_global","queryManager"],function(){"use strict";return _extra.slideObjects={allObjectsOfTypeCallback:new _extra.classes.Callback,_internalShowSlideObjectDetails:{location:_extra.captivate.api,name:"show"},_internalHideSlideObjectDetails:{location:_extra.captivate.api,name:"hide"},enactFunctionOnSlideObjects:function(e,t){if(_extra.isQuery(e)){var a=_extra.slideObjects.getSlideObjectNamesMatchingWildcardName(e,!1);if(a)for(var r=0;r<a.length;r+=1)t(a[r])}else t(e)},hasSlideObjectInProject:function(e){return _extra.captivate.allSlideObjectsData.hasOwnProperty(e)},getSlideObjectElement:function(e){return _extra.w.document.getElementById(e)},hide:function(e){_extra.captivate.api.hide(e)},show:function(e){_extra.captivate.api.show(e)},hideNonContentDivs:function(e){_extra.slideObjects.getSlideObjectByName(e).visibility.nonContentDivs=!1},showNonContentDivs:function(e){_extra.slideObjects.getSlideObjectByName(e).visibility.nonContentDivs=!0},enable:function(e){_extra.captivate.api.enable(e)},disable:function(e){_extra.captivate.api.disable(e)},getSlideObjectNameFromStateName:function(e){var t=_extra.dataManager.getSlideObjectDataByName(e);return t&&!t.isBaseStateItem&&(t=t.getBaseStateItemData())&&(e=t.name),e},removeSuffix:function(e,t){return e&&e.substr(e.length-t.length,e.length)===t&&(e=e.substr(0,e.length-t.length)),e},getSlideObjectByDIV:function(e){if(!e)return null;var t=e.id,a=null;return t=_extra.slideObjects.removeSuffix(t,"_inputField"),t=_extra.slideObjects.removeSuffix(t,"sha"),!_extra.slideObjects.hasSlideObjectInProject(t)||_extra.dataManager.isHyperlink(t)||_extra.slideManager.isNameOfSlide(t)||(t=_extra.slideObjects.getSlideObjectNameFromStateName(t),a=_extra.slideObjects.getSlideObjectByName(t)),a},getSlideObjectNamesMatchingWildcardName:function(e,r){return(a=_extra.getQueryType(e))?((t=function(e){switch(e){case _extra.GLOBAL_WILDCARD_CHARACTER:return _extra.slideObjects.projectSlideObjectNames;case _extra.WILDCARD_CHARACTER:for(var t=_extra.slideManager.currentSlideDOMElement,a=[],r=0;r<t.childNodes.length;r+=1)a.push(t.childNodes[r].id);return a}return null}(a))&&(t=function(e){if(!e||!r)return e;for(var t=[],a=0;a<e.length;a+=1)t.push(_extra.slideObjects.getSlideObjectProxy(e[a]));return t}(t=_extra.queryList(e,t,a))),t):null;var t,a},getNativeSlideObjectByName:function(e){return _extra.captivate.api.getDisplayObjByKey(e)},isInteractiveObject:function(e){var t=_extra.dataManager.getSlideObjectDataByName(e);return!!t&&t.isInteractiveObject},projectSlideObjectNames:{}},function(){var e,t,a=_extra.captivate.allSlideObjectsData;for(var r in a)a.hasOwnProperty(r)&&(e=a[r],t=_extra.dataTypes.convertSlideObjectType(e.type,r),_extra.slideObjects.allObjectsOfTypeCallback.sendToCallback(t,r))}},_extra.CAPTIVATE),_extra.registerModule("slideObjectManager_global",["slideObjectManager_software","queryManager"],function(){"use strict";var a={};_extra.slideObjects.enteredSlideChildObjectsCallbacks=new _extra.classes.Callback,_extra.slideObjects.getSlideObjectProxy=function(e){var t;if("object"==typeof e)e=(t=e).id;else if(!(t=_extra.slideObjects.getSlideObjectElement(e)))return null;return a[e]||(a[e]=!0,a[e]=_extra.factories.createSlideObjectProxy(e,t)),a[e]},_extra.slideObjects.hasProxyFor=function(e){return a.hasOwnProperty(e)},_extra.slideObjects.getSlideObjectByName=function(e){return _extra.isQuery(e)?_extra.slideObjects.getSlideObjectNamesMatchingWildcardName(e,!0):_extra.slideObjects.getSlideObjectProxy(e)},_extra.slideObjects.unloadSlideObjectsFromOtherSlides=function(){var e;for(var t in a)a.hasOwnProperty(t)&&(_extra.slideManager.hasSlideObjectOnSlide(t,_extra.slideManager.currentSceneNumber,_extra.slideManager.currentSlideNumber)||((e=a[t])&&e.unload?e.unload():_extra.log("Slide object proxy '"+t+"' was not loaded correctly."),delete a[t]))},_extra.slideObjects.getSlideObjectProperty=function(e,t){var a=_extra.slideObjects.getSlideObjectByName(e);return a?a[t]:_extra.slideObjects.model.retrieve(e,t)},_extra.slideObjects.enableForMouse=function(e){_extra.slideObjects.model.write(e,"enableForMouse",!0)},_extra.slideObjects.disableForMouse=function(e){_extra.slideObjects.model.write(e,"enableForMouse",!1)},_extra.slideObjects.setCursor=function(e,t){_extra.slideObjects.enactFunctionOnSlideObjects(e,function(e){_extra.slideObjects.model.write(e,"cursor",t)})},_extra.slideManager.enterSlideCallback.addCallback("*",function(){var e;_extra.slideObjects.unloadSlideObjectsFromOtherSlides();var t=_extra.slideManager.getSlideData();if(t)for(var a=0;a<t.slideObjects.length;a+=1)e=t.slideObjects[a],_extra.slideObjects.enteredSlideChildObjectsCallbacks.sendToCallback("*",e),_extra.slideObjects.enteredSlideChildObjectsCallbacks.sendToCallback(_extra.dataManager.getSlideObjectTypeByName(e),e);else _extra.error("Could not find slide data in slideObjectManager.global")})}),_extra.registerModule("slideObjectProxyAutoInstantiator",["slideObjectManager_global"],function(){"use strict";var a=[];_extra.slideObjects.proxyAutoInstantiator={check:function(e){return _extra.slideManager.hasSlideObjectOnSlide(e)&&!_extra.slideObjects.hasProxyFor(e)&&_extra.slideObjects.getSlideObjectProxy(e),_extra.slideObjects.hasSlideObjectInProject(e)},registerModelLookup:function(e){a.push(e)},hasModelDataFor:function(e){for(var t=0;t<a.length;t+=1)if(a[t](e))return!0;return!1}},_extra.slideObjects.enteredSlideChildObjectsCallbacks.addCallback("*",function(e){_extra.slideObjects.proxyAutoInstantiator.hasModelDataFor(e)&&!_extra.slideObjects.hasProxyFor(e)&&_extra.slideObjects.getSlideObjectProxy(e)})}),_extra.registerModule("softwareFunctionOverrideManager",["hookManager","eventManager","softwareInterfacesManager","CustomEvent"],function(){"use strict";_extra.addHookAfter(_extra.captivate.movie,"_onEnterFrame",function(){_extra.eventManager.eventDispatcher.dispatchEvent(_extra.createEvent("enterframe"))}),_extra.executeOnNextFrame=function(e){var t=function(){e(),_extra.eventManager.eventDispatcher.removeEventListener("enterframe",t)};_extra.eventManager.eventDispatcher.addEventListener("enterframe",t)}},_extra.CAPTIVATE),_extra.registerModule("softwareInterfacesManager",function(){"use strict";function e(e){return"100%"===_extra.captivate.projectContainer.style[e.containerProperty]?_extra.w[e.innerProperty]:_extra.w.parseInt(e.containerSize)}_extra.captivate={api:_extra.w.cp,FPS:_extra.w.cp.movie.fps,gestureManager:_extra.w.cp.m_gestureHandler,totalFrames:_extra.w.cp.D.project_main.to,version:_extra.w.CaptivateVersion,variables:_extra.w,interface:_extra.w.cpAPIInterface,eventDispatcher:_extra.w.cpAPIEventEmitter,model:_extra.w.cp.model,allSlideObjectsData:_extra.w.cp.model.data,useWidget7:_extra.w.cp.model.data.project_main.useWidgetVersion7,movie:_extra.w.cp.movie,playbar:new _extra.classes.PlaybarProxy,getPlaybarCreator:function(){if(_extra.w.cp.PB)return _extra.w.cp.PB.rootObj},playIcon:_extra.w.document.getElementById("playImage"),variableManager:_extra.w.cp.variablesManager,isResponsive:_extra.w.cp.responsive,projectContainer:_extra.w.cp.projectContainer,projectDIV:_extra.w.document.getElementById("project"),audioManager:_extra.w.cp.movie.am,numSlides:_extra.w.cpInfoSlideCount,keyManager:_extra.w.cp.movie.stage.m_keyManager,openURLLocation:_extra.w.cp,openURLMethodName:"openURL",playbarClass:!!_extra.w.cp.PB&&_extra.w.cp.PB.PlayBarSlider,isInitated:function(){return _extra.w.cp.initiated},getResponsiveProjectWidth:function(){return _extra.captivate.api.ResponsiveProjWidth},getProjectWidth:function(){return e({containerProperty:"width",innerProperty:"innerWidth",containerSize:_extra.captivate.projectContainer.style.width})},getProjectHeight:function(){return e({containerProperty:"height",innerProperty:"innerHeight",containerSize:_extra.captivate.projectDIV.style.height})},events:{SLIDE_ENTER:"CPAPI_SLIDEENTER",SLIDE_EXIT:"CPAPI_SLIDEEXIT",PLAYBAR_SCRUBBING_BEGIN:"CPAPI_STARTPLAYBARSCRUBBING",PLAYBAR_SCRUBBING_END:"CPAPI_ENDPLAYBARSCRUBBING",INTERACTIVE_ITEM_SUBMIT:"CPAPI_INTERACTIVEITEMSUBMIT",MOVIE_PAUSE:"CPAPI_MOVIEPAUSE",MOVIE_RESUME:"CPAPI_MOVIERESUME",MOVIE_START:"CPAPI_MOVIESTART",MOVIE_STOP:"CPAPI_MOVIESTOP",QUESTION_SKIP:"CPAPI_QUESTIONSKIP",QUESTION_SUBMIT:"CPAPI_QUESTIONSUBMIT",VARIABLE_VALUE_CHANGED:"CPAPI_VARIABLEVALUECHANGED"}}},_extra.CAPTIVATE),_extra.registerModule("TOCManager",["softwareInterfacesManager","slideManager_software"],function(){"use strict";var r=_extra.captivate.api.markTOCEntryComplete;_extra.TOCManager={completeSlide:function(e){var t,a;t=e-1,(a=_extra.slideManager.getSlideData(t))&&(a.complete=!0),r(t)}}},_extra.CAPTIVATE),_extra.registerModule("getVariableManager",["variableManager"],function(){"use strict";var c;_extra.variableManager.prefixCallback.addCallback("get",function(e){if(!c){var t,a,r=/\+/g,n=/([^&=]+)=?([^&]*)/g,i=function(e){return decodeURIComponent(e.replace(r," "))},s=_extra.w.document.location.search.substring(1);for(c={};null!==(t=n.exec(s));)"get_"!==(a=i(t[1])).substr(0,4).toLowerCase()&&"_get_"!==a.substr(0,5).toLowerCase()&&(a="get_"+a),c[a]=i(t[2])}var o,l=c[(o=e,"get_"===o.substr(0,4).toLowerCase()?"get_"+o.substr(4,o.length):"_get_"===o.substr(0,5).toLowerCase()?"get_"+o.substr(5,o.length):void 0)];void 0===l?l=null:_extra.w.isNaN(l)||(l=_extra.w.parseFloat(l)),null!==l&&_extra.variableManager.setVariableValue(e,l)})}),_extra.registerModule("localStorageManager",["variableManager","queryManager"],function(){"use strict";var n,i={},s={},t="local",a="session";function r(e,t,a){var r;n||(n={},_extra.variableManager.storageVariables=n);try{r=t.getItem(e)}catch(e){return void _extra.error("PV001",a)}r&&(_extra.w.isNaN(r)||(r=_extra.w.parseFloat(r)),_extra.variableManager.setVariableValue(e,r)),n[e]={storage:t,storageName:a}}_extra.variableManager.saveStorageVariables=function(){var e;for(e in n)n.hasOwnProperty(e)&&!i.hasOwnProperty(e)&&_extra.variableManager.saveStorageVariable(e)},_extra.variableManager.saveStorageVariable=function(e){var t,a,r;n[e]&&(t=n[e],a=e,r=t,i.hasOwnProperty(a)||s.hasOwnProperty(r.storageName)||t.storage.setItem(e,_extra.variableManager.getVariableValue(e)))},_extra.variableManager.enactFunctionOnStorageVariables=function(e,t){var a=_extra.queryList(e,n);if(a)for(var r=0;r<a.length;r+=1)t(a[r])},_extra.variableManager.flushStorage=function(e){if(n.hasOwnProperty(e))n[e].storage.removeItem(e),i[e]=!0;else switch(e.toLowerCase()){case"localstorage":case"local":_extra.w.localStorage.clear(),s[t]=!0;break;case"sessionstorage":case"session":_extra.w.sessionStorage.clear(),s[a]=!0;break;case"all":_extra.w.sessionStorage.clear(),_extra.w.localStorage.clear(),s[a]=!0,s[t]=!0;break;default:_extra.error("CV060",e)}},_extra.variableManager.prefixCallback.addCallback("ls",function(e){try{r(e,_extra.w.localStorage,t)}catch(e){_extra.error("PV001","local")}}),_extra.variableManager.prefixCallback.addCallback("ss",function(e){try{r(e,_extra.w.sessionStorage,a)}catch(e){_extra.error("PV001","session")}})}),_extra.registerModule("mathActions",["variableManager"],function(){"use strict";function r(e,t){var a=_extra.variableManager.getVariableValue(e);a=t(a),_extra.variableManager.setVariableValue(e,a)}_extra.variableManager.mathActions={random:function(e,t,a){var r=_extra.w.Math.random();1===t&&0===a||(r*=t-a,r+=a,r=_extra.w.Math.round(r));_extra.variableManager.setVariableValue(e,r)},round:function(e){r(e,_extra.w.Math.round)},floor:function(e){r(e,_extra.w.Math.floor)},ceil:function(e){r(e,_extra.w.Math.ceil)},roundTo:function(e,t,a){r(e,function(e){return e=function(e){switch(a){case"up":return _extra.w.Math.ceil(e);case"down":return _extra.w.Math.floor(e);default:return _extra.w.Math.round(e)}}(e*=Math.pow(10,t)),e/=_extra.w.Math.pow(10,t)})}}}),_extra.registerModule("replaceVariablesInString",["variableManager_software"],function(){"use strict";_extra.variableManager.replaceVariablesInString=function(e){for(var t,a="",r=e.split("$$"),n=0;n<r.length;n+=1)t=r[n],n%2==1&&(t=_extra.variableManager.hasVariable(t)?_extra.variableManager.getVariableValue(t):"$$"+t+"$$"),a+=t;return a}}),_extra.registerModule("variableManager_software",["softwareInterfacesManager","Callback","CustomEvent","queryManager"],function(){"use strict";_extra.variableManager={getVariableValue:function(e){return _extra.variableManager.isSystemVariable(e)?_extra.captivate.variables[e]:_extra.captivate.variableManager.getVariableValue(e)},setVariableValue:function(e,t){_extra.variableManager.hasVariable(e)&&(_extra.captivate.variables[e]=t)},hasVariable:function(e){return _extra.variableManager.variableData?_extra.variableManager.variableData.hasOwnProperty(e):_extra.captivate.variables.hasOwnProperty(e)},internalListenForVariableChange:function(e,t){_extra.captivate.eventDispatcher.addEventListener("CPAPI_VARIABLEVALUECHANGED",t,e)},internalStopListeningForVariableChange:function(e,t){_extra.captivate.eventDispatcher.removeEventListener("CPAPI_VARIABLEVALUECHANGED",t,e)},forEachVariable:function(e){for(var t,a=_extra.captivate.api.variablesManager.varInfos,r=0;r<a.length;r+=1)e({name:(t=a[r]).name,isSystemVariable:t.systemDefined})}}},_extra.CAPTIVATE),_extra.registerModule("variableManager",["variableManager_software","VariableEventManager"],function(){"use strict";var a=new _extra.classes.VariableEventManager(_extra.variableManager.internalListenForVariableChange,_extra.variableManager.internalStopListeningForVariableChange);return _extra.variableManager.variableData=null,_extra.variableManager.hasParsedVariables=!1,_extra.variableManager.prefixCallback=new _extra.classes.Callback,_extra.variableManager.commands={},_extra.variableManager.listenForVariableChange=function(e,t){a.addListener(e,t)},_extra.variableManager.stopListeningForVariableChange=function(e,t){a.removeListener(e,t)},_extra.variableManager.enactFunctionOnVariables=function(e,t){if(_extra.isQuery(e)){var a=_extra.queryList(e,_extra.variableManager.variableData);if(a)for(var r=0;r<a.length;r+=1)t(a[r])}else t(e)},_extra.variableManager.isSystemVariable=function(e){return!(!_extra.variableManager.variableData||void 0===_extra.variableManager.variableData[e])&&_extra.variableManager.variableData[e].isSystemVariable},_extra.variableManager.reset=function(e){if(_extra.variableManager.variableData){var t=_extra.variableManager.variableData[e];t&&_extra.variableManager.setVariableValue(e,t.defaultValue)}},function(){_extra.variableManager.variableData={},_extra.variableManager.forEachVariable(function(e){var t,a,r=e.name;_extra.variableManager.variableData[r]={defaultValue:_extra.variableManager.getVariableValue(r),isSystemVariable:e.isSystemVariable},e.isSystemVariable||(""===(a=(t=r.split("_"))[0])&&(a=t[1]),a=a.toLowerCase(),_extra.variableManager.prefixCallback.sendToCallback(a,r))}),_extra.variableManager.hasParsedVariables=!0,_extra.eventManager.eventDispatcher.dispatchEvent(_extra.createEvent("variablesInitialized"))}}),_extra.registerModule("whiteSpaceManager",["variableManager"],function(){"use strict";_extra.variableManager.safelyRemoveWhiteSpace=function(e,r){return e&&e.replace?e.replace(/([^[]+)|(\[[^\]]+\])/g,function(e,t,a){return t?(r&&(t=t.replace(/\,/g,r)),t.replace(/\s/g,"")):a}):e}}),_extra.registerModule("BaseSlideObjectProxy",function(){"use strict";var e="enableForMouse";function t(e,t){this.initializePrivateVariables(e,t),this._eventMediator.swap(this._currentStateData),this.initializePublicMethods(),this.initializeInternalMethods(),this.initializeInitialState()}(t.prototype={get name(){return this._data.name},get data(){return this._data},get type(){return this._data.type},get state(){return this._data.currentStateName},get visibility(){return this._visibility},get x(){return this._currentStateData.x+this._offsetX},set x(e){this._model.write(this.name,"x",e)},get y(){return this._currentStateData.y+this._offsetY},set y(e){this._model.write(this.name,"y",e)},get width(){return this._currentStateData.width},get height(){return this._currentStateData.height},get lockFocus(){return this._lockFocus},set lockFocus(e){this._lockFocus!==e&&((this._lockFocus=e)?this._internalLockFocus():this._internalUnlockFocus())}}).initializePrivateVariables=function(e,t){this._data=t,this._focusDiv=_extra.w.document.body,this._model=_extra.slideObjects.model,this._currentStateData=t.getDataForState(this.state),this._offsetX=0,this._offsetY=0,this._lockFocus=!1,this._modelListener=new _extra.classes.ModelListener(this.name,this._model),this._eventMediator=_extra.eventManager.getEventMediator(this.name),this._stateEndManager=new _extra.classes.SlideObjectEnterExitEventManager(this),this._stateEndManager.setCurrentDispatcher(this._currentStateData),this._interruptedClickEventHandler=new _extra.classes.InterruptedClickEventHandler(this._eventMediator,this.name),this._originalX=this._currentStateData.originalX,this._originalY=this._currentStateData.originalY,this._visibility=new _extra.classes.SlideObjectVisibilityManager(this,this._currentStateData)},t.prototype.initializePublicMethods=function(){var a=this;this.addEventListener=function(e,t){a._eventMediator.addEventListener(e,t)},this.removeEventListener=function(e,t){a._eventMediator.removeEventListener(e,t)},this.hasEventListener=function(e){return a._eventMediator.hasEventListener(e)},this.dispatchEvent=function(e){a._eventMediator.dispatchEvent(e)},this.enableForMouse=function(){a._modelListener.model.write(this.name,e,!0)},this.disableForMouse=function(){a._modelListener.model.write(this.name,e,!1)},this.setHandCursor=function(e){a._modelListener.model.write(this.name,"cursor",e)}},t.prototype.initializeInternalMethods=function(){var a=this;this._onStateChange=function(e){var t=a.data.getDataForState(e.stateName);a._eventMediator.swap(t),a._visibility.updateStateData(t),a._stateEndManager.setCurrentDispatcher(t),a._offsetX=a._originalX-t.originalX,a._offsetY=a._originalY-t.originalY,a._currentStateData=t,a._modelListener.model.update(a.name)},_extra.slideObjects.states.changeCallback.addCallback(this.name,this._onStateChange),this._onAudioEnded=function(){a.dispatchEvent("audioended")},this._onAudioPaused=function(){_extra.movieStatus.isPlaying()&&_extra.movieStatus.isCurrentFrameWithinRange(a.data.startFrame,a.data.endFrame)&&_extra.w.setTimeout(function(){a._audioData.paused=!0,a.dispatchEvent("audioended")},150)},this._internalLockFocus=function(){var e;this._currentStateData.isInitialized&&((e=_extra.$(this._focusDiv)).hasOwnProperty("on")?e.on("keydown",this._focusHandler).focus():e.bind("keydown",this._focusHandler).focus())},this._focusHandler=function(e){9===e.keyCode&&(e.preventDefault(),_extra.$(a._focusDiv).focus())},this._internalUnlockFocus=function(){var e=_extra.$(this._focusDiv);e.hasOwnProperty("off")?e.off("keydown",this._focusHandler):e.unbind("keydown",this._focusHandler)}},t.prototype.initializeInitialState=function(){var e=this;this._currentStateData.isInitialized?this.onSlideObjectInitialized():(this._internalInitializationHandler=function(){e.onSlideObjectInitialized.call(e)},this._currentStateData.addEventListener("internalinitialization",this._internalInitializationHandler))},t.prototype.onSlideObjectInitialized=function(){this._internalInitializationHandler&&(this._currentStateData.removeEventListener("internalinitialization",this._internalInitializationHandler),delete this._internalInitializationHandler),this.lockFocus&&this._internalLockFocus(),this._originalX=this._currentStateData.originalX,this._originalY=this._currentStateData.originalY,this._listenForAudioEvents(),this._addModelListeners()},t.prototype._listenForAudioEvents=function(){if(this._data.hasAudio){var t=this,a=function(e){_extra.audioManager.audioDataCallback.removeCallback(t._data.audioID,a),t._audioData=e,t._audioTag=t._audioData.nativeAudio,t._audioTag.addEventListener("ended",t._onAudioEnded),t._audioTag.addEventListener("pause",t._onAudioPaused)};_extra.audioManager.audioDataCallback.addCallback(this._data.audioID,a)}},t.prototype._addModelListeners=function(){var a=this;function r(e){return!!e.toLowerCase&&("default"===(e=e.toLowerCase())||"reset"===e||"original"===e)}this._modelListener.addProperty(e,function(e,t){t?a._currentStateData.editCSS("pointer-events","auto"):a._currentStateData.editCSS("pointer-events","none")}),this._modelListener.addProperty("cursor",function(e,t){a._currentStateData.editCSS("cursor",t)}),this._modelListener.addProperty("x",function(e,t){r(t)&&(t=a._currentStateData.originalX+a._offsetX),"number"!=typeof t&&(t=_extra.w.parseFloat(t)),a._currentStateData.x=t-a._offsetX}),this._modelListener.addProperty("y",function(e,t){r(t)&&(t=a._currentStateData.originalY+a._offsetY),"number"!=typeof t&&(t=_extra.w.parseFloat(t)),a._currentStateData.y=t-a._offsetY}),this._modelListener.addProperty("width",function(e,t){a._currentStateData.width=t}),this._modelListener.addProperty("height",function(e,t){a._currentStateData.width=t}),this._modelListener.addProperty("lockFocus",function(e,t){a.lockFocus=t})},t.prototype.changeState=function(e){_extra.slideObjects.states.change(this.name,e)},t.prototype.unload=function(){for(var e in this.dispatchEvent("unload"),this._eventMediator.swap(null),this._stateEndManager.setCurrentDispatcher(null),this._modelListener.unload(),this._visibility=null,this.lockFocus=!1,this._interruptedClickEventHandler.unload(),this._internalInitializationHandler&&this._currentStateData.removeEventListener("internalinitialization",this._internalInitializationHandler),_extra.slideObjects.states.changeCallback.removeCallback(this.name,this._onStateChange),this._data.hasAudio&&this._audioTag&&(this._audioTag.removeEventListener("ended",this._onAudioEnded),this._audioTag.removeEventListener("pause",this._onAudioPaused)),this._data.stateDatas)this._data._stateDatas.hasOwnProperty(e)&&this._data.stateDatas[e].unload();this._data.clearStateDatas()},_extra.registerClass("BaseSlideObjectProxy",t,_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("ButtonProxy",["BaseSlideObjectProxy"],function(){"use strict";function e(e,t){_extra.classes.BaseSlideObjectProxy.call(this,e,t)}_extra.registerClass("ButtonProxy",e,"BaseSlideObjectProxy",_extra.CAPTIVATE),e.prototype.onSlideObjectInitialized=function(){this._focusDiv=_extra.w.document.body,e.superClass.onSlideObjectInitialized.call(this)}},_extra.CAPTIVATE),_extra.registerModule("TextEntryBoxProxy",["BaseSlideObjectProxy"],function(){"use strict";function e(e,t){_extra.classes.BaseSlideObjectProxy.call(this,e,t);var a=this;this._updateToVariable=!1,this._ignoreNextDefaultText=!1,this._onVariableChangeUpdate=function(){var e=_extra.variableManager.getVariableValue(a.data.variable);a._ignoreNextDefaultText&&(a._ignoreNextDefaultText=!1,e===a.data.defaultText)||a.value!==e&&(a.value=e)}}_extra.registerClass("TextEntryBoxProxy",e,"BaseSlideObjectProxy",_extra.CAPTIVATE),_extra.w.Object.defineProperty(e.prototype,"value",{get:function(){return this._inputField?this._inputField.value:null},set:function(e){this._inputField?this._inputField.value!==e&&(this._inputField.value=e,_extra.variableManager.setVariableValue(this.data.variable,e)):this._tempValue=e}}),_extra.w.Object.defineProperty(e.prototype,"updateToVariable",{get:function(){return this._updateToVariable},set:function(e){(this._updateToVariable=e)?_extra.variableManager.listenForVariableChange(this.data.variable,this._onVariableChangeUpdate):_extra.variableManager.stopListeningForVariableChange(this.data.variable,this._onVariableChangeUpdate)}}),e.prototype.onSlideObjectInitialized=function(){this._inputField=this.getInputFieldDiv(),this._focusDiv=this._inputField,e.superClass.onSlideObjectInitialized.call(this),this.hasOwnProperty("_tempValue")&&(this.value=this._tempValue,delete this._tempValue)},e.prototype.getInputFieldDiv=function(){var e=_extra.w.document.getElementById(this.name+"_inputField");return e||(e=_extra.w.document.getElementById(this.name+"sha_inputField")),e||_extra.log("Error: Was unable to locate the TEB input field"),e},e.prototype.unload=function(){_extra.variableManager.stopListeningForVariableChange(this.data.variable,this._onVariableChangeUpdate),e.superClass.unload.call(this)}},_extra.CAPTIVATE),_extra.registerModule("VideoProxy",["BaseSlideObjectProxy"],function(){"use strict";function e(e,t){_extra.classes.BaseSlideObjectProxy.call(this,e,t);var a=this;this._endVideoListener=function(){a.dispatchEvent("videoended")}}_extra.registerClass("VideoProxy",e,"BaseSlideObjectProxy",_extra.CAPTIVATE),e.prototype.onSlideObjectInitialized=function(){e.superClass.onSlideObjectInitialized.call(this),this._currentStateData.addEventListener("internalinitialization",this._getVideoTag),this._videoTag=this._currentStateData.primaryObject.contentDIV.firstChild.firstChild,this._videoTag.addEventListener("ended",this._endVideoListener)},e.prototype.unload=function(){this._videoTag&&this._videoTag.addEventListener("ended",this._endVideoListener),e.superClass.unload.call(this)}},_extra.CAPTIVATE),_extra.registerModule("WebObjectProxy",["BaseSlideObjectProxy"],function(){"use strict";function e(e,t){this._isLoaded=!1,this._hasCpMate=!1,_extra.captivate.useWidget7?this.element=_extra.w.document.getElementById("re-"+t.name+"c"):this.element=e,_extra.classes.BaseSlideObjectProxy.call(this,e,t)}_extra.registerClass("WebObjectProxy",e,"BaseSlideObjectProxy",_extra.CAPTIVATE),_extra.w.Object.defineProperty(e.prototype,"interactive",{get:function(){return this._interactive},set:function(e){this._interactive=e,this._currentStateData.primaryObject.upperDIV&&(this._currentStateData.primaryObject.upperDIV.style.pointerEvents=e?"none":"auto")}}),e.prototype.onSlideObjectInitialized=function(){e.superClass.onSlideObjectInitialized.call(this),this.iframe=_extra.w.document.getElementById("myFrame_"+this.name+"c"),this.interactive=this.interactive,this.handleLoadedEvent();var t=this;this.data.isSVG||["click","touchstart","touchend"].forEach(function(e){t.addEventListener(e,function(e){e.touches=[],document.dispatchEvent(e)})})},e.prototype.handleCpMate=function(){var t=this;this._hasCpMate=_extra.cpMate.hasRegistered(this.name),_extra.cpMate.listenForNotification(this.name,function(e){switch(t._hasCpMate=!0,e){case"animationready":console.log("ANIMATION READY in: "+t.name);break;default:_extra.log(t.name+" received an unexpected notification '"+e+"'")}})},e.prototype.handleLoadedEvent=function(){var e=this;function t(){e._isLoaded=!0,e.dispatchEvent(_extra.eventManager.events.LOADED)}!function(t,a,r,n){try{var i=t.first()[0].contentWindow,s="about:blank",o=function(){try{var e=t.contents();if(0===e.length)throw new _extra.w.Error("iframe inaccessible");a(e)}catch(e){r()}},e=function(){t.on("load.jqueryMark",function(){try{var e=t.attr("src").trim();i.location.href===s&&e!==s&&""!==e||(t.off("load.jqueryMark"),o())}catch(e){n()}})};if("complete"===i.document.readyState){var l=t.attr("src").trim();i.location.href===s&&l!==s&&""!==l?e():o()}else e()}catch(e){r()}}(_extra.w.$(this.iframe),t,function(){e.dispatchEvent(_extra.eventManager.events.ERROR),_extra.debugging.debug("iframe "+e.name+" failed to load")},t)},e.prototype.unload=function(){_extra.cpMate.broadcastTo(this.name,{action:"unload",parameters:[]}),this.iframe=null,this.element=null,e.superClass.unload.call(this)},_extra.w.Object.defineProperty(e.prototype,"isLoaded",{get:function(){return this._isLoaded}}),_extra.w.Object.defineProperty(e.prototype,"hasCpMate",{get:function(){return this._hasCpMate}})},_extra.CAPTIVATE),_extra.registerModule("gotoFrameLabel",["effectTypeFactory"],function(){"use strict";_extra.animationManager.effectTypes.registerEffectType({type:101,parameters:[{type:"number",subtract:100},{type:"string",replace:{101:"enter",102:"exit"}}],class:function(e,t){var a=this;function r(){_extra.cpMate.broadcastTo(a.slideObjectName,{action:"gotoFrameLabel",parameters:[e]})}this.enter=function(){"enter"===t&&r()},this.exit=function(){"exit"===t&&r()}}})}),_extra.registerModule("dataTypeConverters",["globalSlideObjectTypes"],function(){"use strict";_extra.dataTypes.convertSlideObjectType=function(e,t){var a=_extra.dataTypes.slideObjects;switch(e){case 12:return a.MOUSE;case 13:return a.CLICK_BOX;case 14:return a.HIGHLIGHT_BOX;case 15:return a.IMAGE;case 19:case 22:case 79:case 86:return a.CAPTION;case 24:case 10094:return a.TEXT_ENTRY_BOX;case 28:return a.ANIMATION;case 75:case 91:case 103:case 177:case 641:case 10119:case 10180:case 10182:return a.BUTTON;case 94:return a.REVIEW_AREA;case 98:return a.VIDEO;case 99:return a.ZOOM_AREA;case 133:return a.WIDGET;case 142:case 589:case 612:case 661:case 663:case 10166:case 10168:case 10170:case 10174:return a.SHAPE;case 652:return a.WEB_OBJECT;case 15728652:return a.MOUSE_CLICK;case 80:case 92:case 111:case 112:case 10088:case 683:case"radio":return a.UNKNOWN;default:return _extra.debugging.mode&&void 0!==e&&_extra.log(t+" has unknown type: "+e),a.UNKNOWN}}},_extra.CAPTIVATE),_extra.registerModule("globalSlideObjectTypes",function(){"use strict";_extra.dataTypes={slideObjects:{UNKNOWN:0,TEXT_ENTRY_BOX:1,CAPTION:2,SHAPE:3,HIGHLIGHT_BOX:4,BUTTON:5,WIDGET:6,WEB_OBJECT:7,MOUSE:8,ZOOM_AREA:9,ANIMATION:10,IMAGE:11,VIDEO:12,MOUSE_CLICK:13,CLICK_BOX:14,REVIEW_AREA:15},effects:{ALPHA:"alphaMultiplier"}}}),_extra.registerModule("slideObjectModelManager",["slideObjectManager_global","Model","slideObjectProxyAutoInstantiator"],function(){"use strict";_extra.slideObjects.model=new _extra.classes.Model;var r=_extra.slideObjects.model.write;_extra.slideObjects.model.write=function(e,t,a){r(e,t,a),_extra.slideObjects.proxyAutoInstantiator.check(e)||_extra.error("CV001",e)},_extra.slideObjects.proxyAutoInstantiator.registerModelLookup(_extra.slideObjects.model.hasDataFor)}),_extra.registerModule("registerStateMetaData",["slideObjectManager_global","SlideObjectStateManager","slideManager_global","stateManager_software"],function(){"use strict";var i={};_extra.slideObjects.states.doesSlideObjectHaveDownState=function(e){var t,a=i[_extra.slideManager.currentSlideID];return!(!a||!(t=a[e]))&&t.data.hasOwnProperty("d")},_extra.slideObjects.states.registerStateMetaData=function(e,t){var a,r,n=_extra.slideManager.currentSlideID;i[n]||(i[n]={}),(r=i[n])[e]&&_extra.error("AS003",e),(a=_extra.slideObjects.getSlideObjectByName(e))?r[e]=new _extra.classes.SlideObjectStateManager(a,t):_extra.error("Could not find slideObjectProxy for '"+e+"' in the registerStateMetaData module.")},_extra.slideObjects.states.isAutomaticallyChangingStates=function(e){var t,a,r;for(a in i)if(i.hasOwnProperty(a))for(r in t=i[a])if(t.hasOwnProperty(r)&&r===e)return!0;return!1},_extra.slideManager.enterSlideCallback.addCallback("*",function(e){var t,a,r;for(a in i)if(i.hasOwnProperty(a)&&a!==e){for(r in t=i[a])t.hasOwnProperty(r)&&t[r].unload();delete i[a]}}),_extra.slideObjects.enteredSlideChildObjectsCallbacks.addCallback("*",function(u){var e,t,a,r,n=_extra.dataManager.getSlideObjectDataByName(u),i={};function s(e){switch(e.toLowerCase()){case"down":case"mousedown":return"d";case"rollover":case"over":case"mouseover":return"r";case"normal":return"n";default:return null}}function o(e,t){var a,r,n={},i=!1,s=!1;function o(e){n.hasOwnProperty(e)?_extra.error("AS002",u,t,e):n[e]=null}function l(e,t){if(!_extra.w.isNaN(e))return _extra.w.parseInt(e);switch(e.toLowerCase()){case"true":return!0;case"false":return!1}if(!t){switch(e.toLowerCase()){case"not":e={modifier:"!"};break;case"gt":e={modifier:">"};break;case"lt":e={modifier:"<"};break;case"gte":e={modifier:">="};break;case"lte":e={modifier:"<="}}"object"==typeof e&&(s=i)}return e}for(var c=0;c<e.length;c+=1)r=e[c],s?(n[s].value=l(r,!0),s=!1):i?i=_extra.variableManager.hasVariable(r)?(o(r),r):(n[i]=l(r),null):(a&&(r=a+"_"+r,a=null),_extra.variableManager.hasVariable(r)?(o(r),i=r):c>=e.length-1?_extra.error("AS001",u,t,r):a=r);return _extra.w.Object.keys(n).length<=0?null:(s&&_extra.error("AS004",u,t,r),n)}for(var l=0;l<n.states.length;l+=1)"x_"===(e=n.states[l]).substr(0,2).toLowerCase()&&((t=e.split("_")).shift(),(a=s((r=t)[0]))?r.shift():1<r.length&&(a=s(r[r.length-1]))&&(r.length-=1),i[a=a||"n"]||(i[a]={}),i[a][e]=o(t,e));0<_extra.w.Object.keys(i).length&&_extra.slideObjects.states.registerStateMetaData(u,i)})}),_extra.registerModule("stateDrawnDetector",["stateManager_software"],function(){"use strict";_extra.slideObjects.states.callOnStateDrawn=function(e,t){function a(){t&&(t(),t=null)}var r,n,i=_extra.dataManager.getSlideObjectDataByName(e),s=(r=i,(n=_extra.captivate.api.getDisplayObjByCP_UID(r.uid))||(n=_extra.captivate.api.getDisplayObjByCP_UID(r._key)),n);s&&(_extra.addOneTimeHook(s,"drawComplete",a),_extra.executeOnNextFrame(function(){t&&(_extra.removeHook(s,"drawComplete",a),a())}))}},_extra.CAPTIVATE),_extra.registerModule("stateManager_software",["Callback","slideObjectManager_global","CallbackTriggerBox"],function(){"use strict";var r=new _extra.classes.CallbackTriggerBox(_extra.slideObjects.enterTimelineCallback);_extra.addHookAfter(_extra.captivate.api,"changeState",function(e,t){var a=_extra.dataManager.getSlideObjectDataByName(e);if(a&&a.hasState(t)){var r={slideObjectName:e,stateName:t};_extra.slideObjects.states.callOnStateDrawn(e,function(){_extra.slideObjects.states.changeCallback.sendToCallback("*",r),_extra.slideObjects.states.changeCallback.sendToCallback(e,r)})}}),_extra.slideObjects.states={change:function(e,a){_extra.slideObjects.enactFunctionOnSlideObjects(e,function(e){var t=function(){_extra.captivate.api.changeState(e,a)};_extra.slideManager.isSlideObjectOnSlideAndNotInTimeline(e)?r.add(e,t):(r.remove(e),t())})},fixMissingMouseOutIssue:function(e,r){_extra.addHookBefore(e,"HandleMouseEventOnStateItems",function(e,t){if("mouseout"===e){var a=_extra.slideObjects.getSlideObjectByName(this[r]);if(a)return}})},changeCallback:new _extra.classes.Callback}},_extra.CAPTIVATE),_extra.registerModule("commandVariableManager",["variableManager","stateManager_software","whiteSpaceManager"],function(){"use strict";return _extra.variableManager.commandVariables={},_extra.variableManager.parameterHandlers={sendParametersAsParameters:function(e,t){t.apply(_extra,e)},executeOncePerParameter:function(e,t){for(var a=0;a<e.length;a+=1)t(e[a])}},_extra.variableManager.registerCommandVariable=function(e,t,a){_extra.variableManager.commandVariables[e]||(a||(a=_extra.variableManager.parameterHandlers.executeOncePerParameter),_extra.variableManager.commandVariables[e]={callback:t,parameterHandler:a})},_extra.variableManager.prepareParameters=function(e){if("object"==typeof e){if(void 0===e.id)return null;e=e.id}return""!==e?"string"==typeof e?(e=_extra.variableManager.safelyRemoveWhiteSpace(e,"\0")).split("\0"):[e]:null},function(){var e;function t(e){var a,r;_extra.variableManager.hasVariable(e)&&(a=e,r=_extra.variableManager.commandVariables[n],_extra.variableManager.listenForVariableChange(a,function(){var e=_extra.variableManager.getVariableValue(a),t=_extra.variableManager.prepareParameters(e);_extra.debugging.debug("Variable changed: "+a),_extra.debugging.debug("           Value: "+e),t&&(r.parameterHandler(t,r.callback),_extra.variableManager.setVariableValue(a,""))}))}for(var n in _extra.variableManager.commandVariables)_extra.variableManager.commandVariables.hasOwnProperty(n)&&(t(e="xcmnd"+n),t("_"+e));_extra.variableManager.commandVariables=null,_extra.variableManager.registerCommandVariable=null,_extra.variableManager.parameterHandlers=null}}),_extra.registerModule("commandVariables_global",["xprefDocumentBackgroundColor","jsLoadManager","fontEmbedManager","processCommandVariableRegistration","localStorageManager","parameterParseSets"],function(){"use strict";var a="success",r=_extra.variableManager.parseSets,n=_extra.variableManager.parameterHandlers,i={parameterToQuery:function(e,t){e.query=t},parametersToQueryString:function(e,t,a){e.query=t,e.string=a}},s={createBasicSlideObjectData:function(e,t){return{commandName:e,updateData:i.parameterToQuery,parseSet:r.SP.CD.SOR,parseSetData:{query:void 0,output:t}}},createVariableCommandData:function(e,t){return{commandName:e,updateData:i.parameterToQuery,parseSet:r.SP.CD.VR,parseSetData:{query:void 0,output:t}}},createEventListenerObjectData:function(t,e){return{commandName:t,updateData:function(e,t,a,r,n){e.slideObject=t,e.event=a,e.interactiveObject=r,e.criteria=n},parameterHandler:n.sendParametersAsParameters,parseSet:r.MP.SOR_EVT_INT_CRI,parseSetData:{slideObject:void 0,event:void 0,interactiveObject:void 0,criteria:void 0,output:e,SOR:{exceptions:{invalidName:function(e){return _extra.error("CV030",e,t),_extra.variableManager.parseSets.SKIP_ERROR}}},EVT:{validation:_extra.eventManager.events,validationCase:"upper",exceptions:{invalidString:function(e){return _extra.error("CV031",e,t),_extra.variableManager.parseSets.SKIP_ERROR}}},CRI:{default:a}}}},createBaseGetterSetterData:function(e,t){return{commandName:e,updateData:function(e,t,a){e.slideObject=t,e.number=a},parameterHandler:n.sendParametersAsParameters,parseSet:r.MP.SOR_NR,parseSetData:{slideObject:void 0,number:void 0,get:t,SOR:{}}}},createScoreGetterSetterData:function(e,t,a){var r=s.createGetterSetterData(e,t,a);return r.parseSetData.SOR.requireInteractiveObject=!0,r.parseSetData.NR.exceptions.NaN=function(e){return"max"===(e=e.toLowerCase())||"maximum"===e||"top"===e||"full"===e||"topscore"===e?"max":"half"===e&&"half"},r},createGetterData:function(t,e){var a=s.createBaseGetterSetterData(t,e);return a.parseSetData.getOnly=!0,a.parseSetData.exceptions={illegalSet:function(e){return _extra.error("CV006",e,t),_extra.variableManager.parseSets.SKIP_ERROR}},a},createGetterSetterData:function(e,t,a){var r=s.createBaseGetterSetterData(e,t);return r.parseSetData.set=a,r.parseSetData.NR={exceptions:{NaN:function(e){return("default"===(e=e.toLowerCase())||"reset"===e||"original"===e)&&"reset"}}},r}};_extra.variableManager.processCommandVariableRegistration({Hide:s.createBasicSlideObjectData("hide",_extra.slideObjects.hide),Show:s.createBasicSlideObjectData("show",_extra.slideObjects.show),HideNonContentDivs:s.createBasicSlideObjectData("hide",_extra.slideObjects.hideNonContentDivs),ShowNonContentDivs:s.createBasicSlideObjectData("show",_extra.slideObjects.showNonContentDivs),Enable:s.createBasicSlideObjectData("enable",_extra.slideObjects.enable),Disable:s.createBasicSlideObjectData("disable",_extra.slideObjects.disable),EnableMouseEvents:s.createBasicSlideObjectData("enableMouseEvents",_extra.slideObjects.enableForMouse),DisableMouseEvents:s.createBasicSlideObjectData("disableMouseEvents",_extra.slideObjects.disableForMouse),PreventTabOut:s.createBasicSlideObjectData("preventTabOut",_extra.focusManager.lockFocusTo),AllowTabOut:s.createBasicSlideObjectData("allowTabOut",_extra.focusManager.unlockFocusFrom),Round:s.createVariableCommandData("round",_extra.variableManager.mathActions.round),Floor:s.createVariableCommandData("floor",_extra.variableManager.mathActions.floor),Ceil:s.createVariableCommandData("ceil",_extra.variableManager.mathActions.ceil),RoundTo:{commandName:"roundTo",parameterHandler:n.sendParametersAsParameters,updateData:function(e,t,a,r){e.variable=t,e.number=a,e.string=r},parseSet:r.MP.VR_NR_STR,parseSetData:{variable:void 0,number:void 0,string:void 0,output:_extra.variableManager.mathActions.roundTo,STR:{default:"normal",validation:{up:"up",upper:"up",ceil:"up",down:"down",floor:"down",normal:"normal",none:"normal",ordinary:"normal",null:"normal"}}}},Random:{commandName:"random",updateData:function(e,t,a,r){e.variable=t,e.number1=a,e.number2=r},parameterHandler:n.sendParametersAsParameters,parseSet:r.MP.VR_NR1_NR2,parseSetData:{variable:void 0,number1:void 0,number2:void 0,output:_extra.variableManager.mathActions.random,NR1:{default:1},NR2:{default:0}}},Reset:{commandName:"reset",updateData:i.parameterToQuery,parseSet:r.SP.CD.VR,parseSetData:{query:void 0,output:_extra.variableManager.reset,exceptions:{invalidName:function(e){return _extra.error("CV050",e),_extra.variableManager.parseSets.SKIP_ERROR}}}},FlushStorage:{commandName:"flushStorage",updateData:i.parameterToQuery,parseSet:r.SP.CD.VR,parseSetData:{query:void 0,output:_extra.variableManager.flushStorage,alternateQueryHandler:_extra.variableManager.enactFunctionOnStorageVariables,exceptions:{invalidName:function(e){var t=e.toLowerCase();return"local"===t||"session"===t||"all"===t?t:(_extra.error("CV060",e),_extra.variableManager.parseSets.SKIP_ERROR)}}}},CompleteSlide:{commandName:"completeSlide",updateData:i.parameterToQuery,parseSet:r.SP.CD.SLR,parseSetData:{query:void 0,output:_extra.TOCManager.completeSlide}},GotoSlide:{commandName:"gotoSlide",updateData:i.parameterToQuery,parseSet:r.SP.CD.SLR,parseSetData:{query:void 0,output:function(e){_extra.slideManager.gotoSlide(e-1)}}},GotoSlideAndPlay:{commandName:"gotoSlideAndPlay",updateData:i.parameterToQuery,parseSet:r.SP.CD.SLR,parseSetData:{query:void 0,output:function(e){_extra.slideManager.gotoSlideAndPlay(e-1)}}},LoadJSFromAction:s.createBasicSlideObjectData("loadJSFromAction",_extra.jsLoadManager.loadFromAction),EmbedFontFromAction:{commandName:"embedFontFromAction",parseSet:r.MP.STR_INT_CRI,parameterHandler:n.sendParametersAsParameters,updateData:function(e,t,a,r){e.string=t,e.interactiveObject=a,e.criteria=r},parseSetData:{string:void 0,interactiveObject:void 0,criteria:void 0,STR:{default:null},INT:{default:null},CRI:{default:a},output:_extra.fontEmbedManager.embedFromAction}},AddEventListener:s.createEventListenerObjectData("addEventListener",function(e,t,a,r){_extra.eventManager.addEventListener(e,t,a,r)}),RemoveEventListener:s.createEventListenerObjectData("removeEventListener",function(e,t,a,r){_extra.eventManager.removeEventListener(e,t,a,r)}),Alert:{commandName:"alert",parseSet:r.MP.STR1_STR2_INT_CRI,parameterHandler:n.sendParametersAsParameters,updateData:function(e,t,a,r,n){e.string1=t,e.string2=a,e.interactiveObject=r,e.criteria=n},parseSetData:{string1:void 0,string2:void 0,interactiveObject:void 0,criteria:void 0,STR2:{default:"CpExtra Alert"},INT:{default:null},CRI:{default:a},output:function(e,t,a,r){var n={message:e,title:t};a&&(n.firstButtonAction=function(){_extra.actionManager.callActionOn(a,r)}),_extra.alertManager.sendAlert(n)}}},Score:s.createScoreGetterSetterData("score",function(e,t){_extra.variableManager.setVariableValue(e,_extra.quizManager.getSlideObjectScore(t))},function(e,t){_extra.quizManager.setSlideObjectScore(e,t)}),MaxScore:s.createGetterData("maxScore",function(e,t){var a=_extra.quizManager.getSlideObjectQuestionData(t);a&&_extra.variableManager.setVariableValue(e,a.maxScore)}),PosX:s.createGetterSetterData("posX",function(e,t){_extra.variableManager.setVariableValue(e,_extra.slideObjects.getSlideObjectProperty(t,"x"))},function(e,t){_extra.slideObjects.model.write(e,"x",t)}),PosY:s.createGetterSetterData("posY",function(e,t){_extra.variableManager.setVariableValue(e,_extra.slideObjects.getSlideObjectProperty(t,"y"))},function(e,t){_extra.slideObjects.model.write(e,"y",t)}),Width:s.createGetterData("width",function(e,t){_extra.variableManager.setVariableValue(e,_extra.slideObjects.getSlideObjectProperty(t,"width"))}),Height:s.createGetterData("height",function(e,t){_extra.variableManager.setVariableValue(e,_extra.slideObjects.getSlideObjectProperty(t,"height"))}),ChangeState:{commandName:"changeState",updateData:i.parametersToQueryString,parameterHandler:n.sendParametersAsParameters,parseSet:r.MP.SOR_STR,parseSetData:{query:void 0,string:void 0,output:_extra.slideObjects.states.change}},SetCursor:{commandName:"setCursor",updateData:i.parametersToQueryString,parameterHandler:n.sendParametersAsParameters,parseSet:r.MP.SOR_STR,parseSetData:{query:void 0,string:void 0,output:_extra.slideObjects.setCursor,STR:{exceptions:{invalidString:function(e){return _extra.error("CV020",e),_extra.variableManager.parseSets.SKIP_ERROR}},validation:{auto:null,default:null,none:null,"context-menu":null,help:null,pointer:null,progress:null,wait:null,cell:null,crosshair:null,text:null,"vertical-text":null,alias:null,copy:null,move:null,"no-drop":null,"not-allowed":null,"all-scroll":null,"col-resize":null,"row-resize":null,"n-resize":null,"e-resize":null,"s-resize":null,"w-resize":null,"ne-resize":null,"nw-resize":null,"se-resize":null,"sw-resize":null,"ew-resize":null,"ns-resize":null,"nesw-resize":null,"nwse-resize":null,"zoom-in":null,"zoom-out":null,grab:null,grabbing:null}}}},CallActionOn:{commandName:"callActionOn",updateData:function(e,t,a){e.interactiveObject=t,e.criteria=a},parameterHandler:n.sendParametersAsParameters,parseSet:r.MP.INT_CRI,parseSetData:{query:void 0,string:void 0,output:_extra.actionManager.callActionOn,CRI:{default:a}}},MatchEntryToEffect:{commandName:"matchEntryToEffect",updateData:function(e,t,a,r){e.slideObject1=t,e.slideObject2=a,e.number=r},parameterHandler:n.sendParametersAsParameters,parseSet:r.MP.SOR1_SOR2_NR,parseSetData:{query:void 0,string:void 0,output:_extra.animationManager.matchEntryToEffect,SOR2:{noQueries:!0},NR:{default:1}}}})}),_extra.registerModule("parameterParser",["variableManager","queryManager","whiteSpaceManager"],function(){"use strict";var n={string:{null:function(e,t){return t.isSlideObject=!1,t.isVariable=!1,t.isQuery=!1,t.isNumber=!1,t.isBlank=!0,e},number:function(e,t){return t.value=_extra.w.parseFloat(e),t.isSlideObject=!1,t.isVariable=!1,t.isQuery=!1,t.isBlank=!1,e},explicitString:function(e,t){return"["===e.charAt(0)&&"]"===e.charAt(e.length-1)&&(e=e.substr(1,e.length-2),t.value=e,t.isString=!0),e},string:function(e,t,a){return t.isBlank=!1,e=n.string.explicitString(e,t),!t.isString&&(e=n.string.$variable(e,t),t.is$Variable)?e:(t.isSlideObject=_extra.slideObjects.hasSlideObjectInProject(e),t.isQuery=_extra.isQuery(e),t.isVariable=!t.isString&&_extra.variableManager.hasVariable(e),e=n.string.customType(e,t,a))},customType:function(e,t,a){return!a||t.isSlideObject||t.isVariable||t.isQuery||(t.isCustomType=a(e,t)),e},$variable:function(e,t){return"$$"===e.substr(0,2)&&"$$"===e.substr(e.length-2,2)&&(e=e.substr(2,e.length-4),t.isVariable=_extra.variableManager.hasVariable(e),t.is$Variable=!0,t.isSlideObject=!1,t.isQuery=!1,t.value=e,t.isVariable||_extra.error("PE001",e)),e},variable:function(e,t,a){var r=_extra.variableManager.getVariableValue(e);return void 0!==r&&r.replace&&(r=_extra.variableManager.safelyRemoveWhiteSpace(r)),t.variable=_extra.variableManager.parse.string(r,a,!0),e}}};_extra.variableManager.parse={string:function(e,t,a){var r={value:e,isNumber:!_extra.w.isNaN(e),isString:!1};return e=r.isNumber?n.string.number(e,r):e?n.string.string(e,r,t):n.string.null(e,r),r.isVariable&&!a&&(e=n.string.variable(e,r,t)),r},boolean:function(e){function t(e){return 0<e}switch(typeof e){case"number":return t(e);case"string":return isNaN(e)?!("false"===(e=e.toLowerCase())||"no"===e||"fail"===e||"failure"===e):t(_extra.w.parseFloat(e));default:return null}}}}),_extra.registerModule("parameterParseSets",["parameterParser","variableManager"],function(){"use strict";var o,a="success",r="failure",n="focuslost",s=function(e,t,a){!e.hasOwnProperty("default")||null!==e[t]&&void 0!==e[t]?a():e.output(e.default)},l=function(e,t,a){e.substituteParseResult?(e.parseResult=e.substituteParseResult,delete e.substituteParseResult):e.parseResult=_extra.variableManager.parse.string(e[t]),a&&e.parseResult.isVariable&&(e.parseResult=e.parseResult.variable)},c=function(e,t,a,r){void 0===e[t]&&(e[t]={}),e[t][r]=e[a]},i=function(e,t){var a;return e.output=function(e){a=e},t(e),a},u=function(e,t,a){var r=e.output;e.output=a,t(e),e.output=r},d=function(e){if(e.data.exceptions&&e.data.exceptions.hasOwnProperty(e.exceptionName)){var t=e.data.exceptions[e.exceptionName](e.issue);if(t===o.SKIP_ERROR)return;if(t)return void e.output(t)}e.fail()};_extra.variableManager.parseSets={SKIP_ERROR:{},SP:{CD:{SOR:function(a){function t(e,t){a.requireInteractiveObject&&!_extra.slideObjects.isInteractiveObject(e)?!0!==t&&d({data:a,exceptionName:"nonInteractive",issue:e,output:a.output,fail:function(){_extra.error("CV007",e)}}):a.output(e)}s(a,"query",function(){l(a,"query",!0),a.parseResult.isSlideObject?t(a.parseResult.value):a.parseResult.isQuery?a.noQueries?d({data:a,exceptionName:"illegalQuery",issue:a.parseResult.value,output:a.output,fail:function(){_extra.error("CV004",a.parseResult.value)}}):_extra.slideObjects.enactFunctionOnSlideObjects(a.parseResult.value,function(e){t(e,!0)}):d({data:a,exceptionName:"invalidName",issue:a.parseResult.value,output:a.output,fail:function(){_extra.error("CV001",a.parseResult.value)}})})},VR:function(a){function e(e,t){d({data:a,exceptionName:t,issue:a.parseResult.value,output:a.output,fail:function(){_extra.error(e,a.parseResult.value)}})}s(a,"query",function(){l(a,"query",!1),a.parseResult.is$Variable&&(a.parseResult=a.parseResult.variable),a.parseResult.isVariable?a.output(a.parseResult.value):a.parseResult.isQuery?a.alternateQueryHandler?a.alternateQueryHandler(a.parseResult.value,a.output):_extra.variableManager.enactFunctionOnVariables(a.parseResult.value,a.output):a.parseResult.isNumber?e("CV008","invalidNumber"):a.parseResult.isString&&_extra.variableManager.hasVariable(a.parseResult.value)?a.output(a.parseResult.value):e("CV002","invalidName")})},SLR:function(r){function t(e){var t=_extra.slideManager.getSlideIndexFromName(e);if(t&&-1<t.slide){var a=t.slide+1;if(!(a>_extra.slideManager.numSlides))return i(a),!0;_extra.error("CV072",a,_extra.slideManager.numSlides)}return!1}function n(e){if(_extra.w.isNaN(e)){var t=_extra.slideManager.getSlideIndexFromName(e);if(t)return t.slide+1;var a=null;return d({data:r,exceptionName:"invalidSlide",issue:e,output:function(e){a=e},fail:function(){_extra.error("CV071",e),a=null}}),a}return _extra.w.parseInt(e)}function i(e){e>_extra.slideManager.numSlides?d({data:r,exceptionName:"slideBeyondProject",issue:e,output:r.output,fail:function(){_extra.error("CV072",e,_extra.slideManager.numSlides)}}):r.output(e)}s(r,"slide",function(){l(r,"query",!1),r.parseResult.is$Variable&&(r.parseResult=r.parseResult.variable),t(r.parseResult.value)||(r.parseResult.isVariable&&(r.parseResult=r.parseResult.variable),r.parseResult.isNumber?i(r.parseResult.value):r.parseResult.isQuery?_extra.slideManager.enactFunctionOnSlides(r.parseResult.value,function(e){t(e)}):t(r.parseResult.value)||(r.parseResult.value.toLowerCase&&"all"===r.parseResult.value.toLowerCase()&&(r.parseResult.value="1-"+_extra.slideManager.numSlides),function(e){var t=e.split("-");switch(t.length){case 2:""!==t[0]&&""!==t[1]?function(e,t){if(e=n(e),t=n(t),null!==e&&null!==t){if(t<e){var a=e;e=t,t=a}for(var r=e;r<=t;)i(r),r+=1}}(t[0],t[1]):_extra.error("CV070",e);break;case 1:d({data:r,exceptionName:"invalidSlide",issue:e,output:i,fail:function(){_extra.error("CV071",e)}});break;default:_extra.error("CV070",e)}}(r.parseResult.value)))})},STR:function(n){s(n,"string",function(){var e=(l(n,"string",!0),n.parseResult.isNumber?n.parseResult.value.toString():n.parseResult.value);n.validation&&(t=e,a=function(e){switch(n.validationCase){case"upper":return e.toUpperCase();case"none":return e;default:return e.toLowerCase()}}(t),r=n.validation[a],void 0===r?d({data:n,exceptionName:"invalidString",issue:t,output:function(e){r=e},fail:function(){r=null,_extra.error("CV003",t)}}):null===n.validation[a]&&(r=a),e=r),e&&n.output(e);var t,a,r})},NR:function(e){s(e,"number",function(){l(e,"number",!0),e.parseResult.isNumber?e.output(e.parseResult.value):d({data:e,exceptionName:"NaN",issue:e.parseResult.value,output:e.output,fail:function(){_extra.error("CV005",e.parseResult.value)}})})}}},MP:{SOR_STR:function(a){!function(){c(a,"STR","string","string"),c(a,"SOR","query","query");var t,e=i(a.STR,o.SP.CD.STR);void 0!==e&&(t=e,a.SOR.output=function(e){a.output(e,t)},o.SP.CD.SOR(a.SOR))}()},SOR1_SOR2:function(s){function e(e){var t=[];return e.output=function(e){t.push(e)},o.SP.CD.SOR(e),t}c(s,"SOR1","slideObject1","query"),c(s,"SOR2","slideObject2","query"),function(e,t){for(var a=0;a<e.length;a+=1)for(var r=e[a],n=0;n<t.length;n+=1){var i=t[n];s.output(r,i)}}(e(s.SOR1),e(s.SOR2))},SOR1_SOR2_NR:function(t){!function(){c(t,"NR","number","number");var a,r,e=i(t.NR,o.SP.CD.NR);a=e,r=t.output,t.output=function(e,t){r(e,t,a)},o.MP.SOR1_SOR2(t)}()},INT_CRI:function(e){var t={};t.query=e.interactiveObject,t.string=e.criteria,t.output=e.output,c(e,"INT","interactiveObject","query"),e.INT.noQueries=!0,e.INT.requireInteractiveObject=!0,t.SOR=e.INT,c(e,"CRI","criteria","string"),e.CRI.validation={1:a,true:a,correct:a,success:a,0:r,false:r,fail:r,failure:r,lastattempt:r,last:r,last_attempt:r,focus:n,focuslost:n,focus_lost:n},e.CRI.exceptions||(e.CRI.exceptions={}),e.CRI.exceptions.invalidString||(e.CRI.exceptions.invalidString=function(e){return _extra.error("CV010",e),_extra.variableManager.parseSets.SKIP_ERROR}),t.STR=e.CRI,o.MP.SOR_STR(t)},STR_INT_CRI:function(e){var a,r={interactiveObject:void 0,string:void 0,criteria:void 0};c(e,"STR","string","string"),r.string=i(e.STR,o.SP.CD.STR),void 0!==r.string&&(a=e.output,u(e,o.MP.INT_CRI,function(e,t){a(r.string,e,t)}))},STR1_STR2_INT_CRI:function(e){var a,r={string1:void 0,string2:void 0,interactiveObject:void 0,criteria:void 0};c(e,"STR1","string1","string"),c(e,"STR2","string2","string"),r.string1=i(e.STR1,o.SP.CD.STR),r.string2=i(e.STR2,o.SP.CD.STR),void 0!==r.string1&&void 0!==r.string2&&(a=e.output,u(e,o.MP.INT_CRI,function(e,t){a(r.string1,r.string2,e,t)}))},SOR_EVT_INT_CRI:function(r){var e,a={slideObject:null,event:null,interactiveObject:null,criteria:null};!function(){for(var e,t=["SOR","EVT","INT","CRI"],a=0;a<t.length;a+=1)e=t[a],r.hasOwnProperty(e)||(r[e]={})}(),u(r,o.MP.INT_CRI,function(e,t){a.interactiveObject=e,a.criteria=t}),a.criteria&&a.interactiveObject&&(e={query:r.slideObject,string:r.event,STR:r.EVT,SOR:r.SOR,output:function(e,t){r.output(e,t,a.interactiveObject,a.criteria)}},o.MP.SOR_STR(e))},VR_NR:function(a){!function(){c(a,"VR","variable","query"),c(a,"NR","number","number");var t,e=i(a.NR,o.SP.CD.NR);_extra.w.isNaN(e)||(t=e,a.VR.output=function(e){a.output(e,t)},o.SP.CD.VR(a.VR))}()},VR_NR1_NR2:function(t){!function(){c(t,"NR2","number2","number");var e=i(t.NR2,o.SP.CD.NR);_extra.w.isNaN(e)||function(a){t.NR=t.NR1,t.number=t.number1;var r=t.output;u(t,o.MP.VR_NR,function(e,t){r(e,t,a)}),delete t.NR,delete t.number}(e)}()},VR_NR_STR:function(t){!function(){c(t,"STR","string","string");var a,r,e=i(t.STR,o.SP.CD.STR);e&&(a=e,r=t.output,u(t,o.MP.VR_NR,function(e,t){r(e,t,a)}))}()},SOR_NR:function(t){var a,r,e,n=_extra.variableManager.parse.string(t.slideObject),i=_extra.variableManager.parse.string(t.number);c(t,"SOR","slideObject","query"),t.SOR.substituteParseResult=n,c(t,"NR","number","number"),((t.NR.substituteParseResult=i).isSlideObject||i.isVariable&&i.variable.isSlideObject)&&(n.isVariable||n.isQuery)?(r=null,t.NR.output=function(e){r=e},t.NR.noQueries=!0,o.SP.CD.SOR(t.NR),null!==r&&(t.SOR.output=function(e){t.get(e,r)},o.SP.CD.VR(t.SOR))):t.getOnly?((e=n).isVariable&&(e=e.variable),e=e.value,d({data:t,exceptionName:"illegalSet",issue:e,output:null,fail:function(){_extra.error("CV006",e,"<i>unknown</i>")}})):(a=null,t.NR.output=function(e){a=e},o.SP.CD.NR(t.NR),null!==a&&(t.SOR.output=function(e){t.set(e,a)},o.SP.CD.SOR(t.SOR)))}}},o=_extra.variableManager.parseSets}),_extra.registerModule("processCommandVariableRegistration",["commandVariableManager"],function(){"use strict";_extra.variableManager.processCommandVariableRegistration=function(t){function a(e,t){function a(){t.updateData?(_extra.w.Array.prototype.unshift.call(arguments,t.parseSetData),t.updateData.apply(this,arguments),t.parseSet(t.parseSetData)):_extra.error("You forgot to add a data.updateData method")}t.commandName&&(_extra.variableManager.commands[t.commandName]=a,_extra.X[t.commandName]=a),_extra.variableManager.registerCommandVariable(e,a,t.parameterHandler)}!function(){for(var e in t)t.hasOwnProperty(e)&&a(e,t[e])}()}}),_extra.registerModule("cpExtraInfo",["infoVariableManager"],function(){"use strict";var e={suffix:"Version"},t={suffix:"Build"};_extra.infoManager.registerInfoVariable(e)&&_extra.variableManager.setVariableValue(e.name,_extra.X.version),_extra.infoManager.registerInfoVariable(t)&&_extra.variableManager.setVariableValue(t.name,_extra.X.build)}),_extra.registerModule("infoVariableManager",["variableManager"],function(){"use strict";return _extra.infoManager={infoVariables:{},registerInfoVariable:function(t){function e(e){return t.name=e,!!_extra.variableManager.hasVariable(t.name)&&(_extra.infoManager.infoVariables[t.name]=t,!0)}return!!e("xinfo"+t.suffix)||e("_"+t.name)}},function(){var e,t=function(e){var t=_extra.infoManager.infoVariables[e.variableName],a=e.newValue;t.setter(a)},a=function(e){return _extra.infoManager.infoVariables[e.variableName].getter()};for(var r in _extra.infoManager.infoVariables)_extra.infoManager.infoVariables.hasOwnProperty(r)&&((e=_extra.infoManager.infoVariables[r]).setter&&_extra.variableManager.listenForVariableChange(r,t),e.getter&&_extra.variableManager.listenForVariableRead(r,a))}}),_extra.registerModule("timeInfoVariables",["infoVariableManager","movieStatusManager","doubleDidgitPreferences"],function(){"use strict";var i={};function t(e){var t=_extra.w.Math.floor,a=t(e/_extra.movieStatus.FPS),r=t(a/60),n=t(r/60);return{seconds:a-=60*r,minutes:r-=60*n,hours:n}}function a(e,t){var a=i[e];a.exists&&(_extra.preferences.doubleDidgits[e]&&t<10&&(t="0"+t),_extra.variableManager.setVariableValue(a.name,_extra.w.String(t)))}function e(e){for(var t,a,r=!1,n=0;n<e.length;n+=1)(t={suffix:a=e[n]}).exists=_extra.infoManager.registerInfoVariable(t),t.exists&&(r=!0),i[a]=t;return r}_extra.preferences.calculateTotalProjectTime=function(){var e=t(_extra.movieStatus.totalFrames);a("ProjectTotalSeconds",e.seconds),a("ProjectTotalMinutes",e.minutes),a("ProjectTotalHours",e.hours)},_extra.preferences.calculateElapsedProjectTime=function(){var e=t(_extra.movieStatus.currentFrame);a("ProjectElapsedSeconds",e.seconds),a("ProjectElapsedMinutes",e.minutes),a("ProjectElapsedHours",e.hours)},e(["ProjectTotalHours","ProjectTotalMinutes","ProjectTotalSeconds"])&&_extra.preferences.calculateTotalProjectTime(),e(["ProjectElapsedHours","ProjectElapsedMinutes","ProjectElapsedSeconds"])&&_extra.eventManager.eventDispatcher.addEventListener("newframe",function(){_extra.preferences.calculateElapsedProjectTime()})}),_extra.registerModule("xinfoCurrentEvent",["infoVariableManager","eventManager","hookManager"],function(){"use strict";var t={suffix:"EventTarget"};_extra.infoManager.registerInfoVariable(t)&&_extra.addHookBefore(_extra.eventManager,"setEventTarget",function(e){_extra.variableManager.setVariableValue(t.name,e)})},_extra.CAPTIVATE),_extra.registerModule("xprefDocumentBackgroundColor",["preferenceManager"],function(){_extra.preferenceManager.registerPreferenceModule("DocumentBackgroundColor",{enable:function(){},disable:function(){},update:function(e){"string"==typeof e&&""!==e&&("#"!==e[0]&&(e="#"+e),_extra.$(".cpMainContainer").css("background-color",e))}})}),_extra.registerModule("xprefEnsureCpMateLoad",["movie","slideObjectManager_global","utils","preferenceManager","loadingScreenManager","whiteSpaceManager"],function(){"use strict";var e=_extra.slideObjects.enteredSlideChildObjectsCallbacks,n=_extra.utils,t=[],a=_extra.movie.reasonsForPause,r=n.equals(!1),i=n.unless(n.pipe(function(){return _extra.movie.lastReasonForPause},n.equals(_extra.movie.reasonsForPause.REASON_THAT_PREVENTS_CPMATE_LOAD_PAUSING)));var s=i(function(){_extra.movie.pause(a.XPREFENSURECPMATELOAD)}),o=i(function(){_extra.movie.play()}),l=n.pipe(_extra.loadingScreenManager.on,s),c=n.pipe(_extra.loadingScreenManager.off,o),u=n.ifElse(n.includes("@"),n.matchesQuery("@"),n.equals),d={enable:function(){!0},disable:function(){!1},update:function(e){r=n.pipe(n.removeWhiteSpace,n.split(","),n.map(u),n.anyPass)(e)},default:!1};function A(){return t}function f(e){t=e}var _=function(e){return n.pipe(n.append(e),n.tap(f),l)(A())},b=function(e){return n.pipe(n.without([e]),n.tap(f),n.when(n.pipe(n.length,n.equals(0)),c))(A())},g=function(t){return function(e){return _extra.cpMate.listenForNotification(t,e)}},p=n.complement(n.pipe(_extra.dataManager.getSlideObjectDataByName,n.prop("isCrossOrigin"))),x=n.allPass([p,function(e){return r(e)}]),h=n.when(x,n.pipe(_extra.slideObjects.getSlideObjectByName,n.unless(n.isNil,function(e){return t=n.pipe(n.always(e.name),n.tap(_),g,n.apply([n.when(n.equals("animationready"),n.pipe(n.always(e.name),b))])),a=e,r=n.pipe(n.always(a),n.tap(function(){a.removeEventListener("enter",t)}),n.unless(n.prop("isLoaded"),t)),a.addEventListener("enter",r);var t,a,r})));n.when(n.identity,function(){e.addCallback(_extra.dataTypes.slideObjects.WEB_OBJECT,h)})(_extra.preferenceManager.registerPreferenceModule("EnsureCpMateLoad",d))}),_extra.registerModule("xprefInitAction",["slideManager_global","preferenceManager"],function(){"use strict";var a="xprefInitAction",r=!1;_extra.slideManager.enterSlideCallback.addCallback("*",function e(){if(_extra.slideManager.enterSlideCallback.removeCallback("*",e),_extra.variableManager.hasVariable(a)){var t=_extra.variableManager.getVariableValue(a);(t=_extra.variableManager.prepareParameters(t))&&(_extra.variableManager.commands.callActionOn?_extra.variableManager.commands.callActionOn(t[0],t[1]):console.error("The command variables have not been initialized for some reason"))}r=!0,n.forEach(function(e){e()}),n=null});var n=[];_extra.preferenceManager.callAfterXprefInitAction=function(e){r?e():n.push(e)}}),_extra.registerModule("xprefOrientationChangeTransition",["utils","softwareInterfacesManager","commandVariableManager","preferenceManager"],function(){var e,t,a,r=_extra.utils.mergeRight({time:500,color:"#FFFFFF"}),n=r({});_extra.preferenceManager.registerPreferenceModule("OrientationChangeTransition",{enable:function(){},disable:function(){},update:function(e){var t=_extra.variableManager.prepareParameters(e),a={};t[0]&&(a.time=1e3*_extra.w.parseFloat(t[0])),t[1]&&(a.color=t[1]),n=r(a)}})&&(_extra.$("<style type='text/css'> .overlay{ position:fixed; z-index:999999; top: 0; left: 0; width: 100%; height:100%; background: #fff; display:none; }</style>").appendTo("head"),a=_extra.$("<div/>").addClass("overlay").appendTo("body"),e=a,t=function(t){var a=[];function r(){return 0!==a.length}function e(){var e=arguments;!r()&&t.predicate.apply(null,e)?t.original.apply(null,e):(r()||t.startTimer(),a.push(e))}return e.applyToOriginal=function(e){t.original.apply(null,e)},e.callAllWaitingArgs=function(){a.forEach(e.applyToOriginal),a=[]},e}({original:cp.__adjustWindow,predicate:function(e){return!e||"orientationchange"!==e.type},startTimer:function(){e.css("background-color",n.color).css("display","inline"),setTimeout(function(){e.fadeOut(n.time);try{t.callAllWaitingArgs()}catch(e){}},100)}}),cp.__adjustWindow=t)}),_extra.registerModule("xprefWakeLock",["slideObjectManager_global","utils"],function(){"use strict";var e,t=_extra.utils,a=!1;function r(){a&&(e&&e.disable(),(e=new _extra.w.NoSleep).enable())}var n={enable:function(){a=!0},disable:function(){a=!1,e&&e.disable()},default:!1};t.when(t.identity,function(){var e,t;e=window,t=function(){return function(a){var r={};function n(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=a,n.c=r,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(a,r,function(e){return t[e]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,a){var r=function(){function r(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,a){return t&&r(e.prototype,t),a&&r(e,a),e}}(),n=a(1),i=n.webm,s=n.mp4,o="undefined"!=typeof navigator&&parseFloat((""+(/CPU.*OS ([0-9_]{3,4})[0-9_]{0,1}|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))<10&&!window.MSStream,l="wakeLock"in navigator,c=function(){function a(){var e=this;if(function(e,t){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this),l){this._wakeLock=null;var t=function(){null!==e._wakeLock&&"visible"===document.visibilityState&&e.enable()};document.addEventListener("visibilitychange",t),document.addEventListener("fullscreenchange",t)}else o?this.noSleepTimer=null:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","No Sleep"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm",i),this._addSourceToVideo(this.noSleepVideo,"mp4",s),this.noSleepVideo.addEventListener("loadedmetadata",function(){e.noSleepVideo.duration<=1?e.noSleepVideo.setAttribute("loop",""):e.noSleepVideo.addEventListener("timeupdate",function(){.5<e.noSleepVideo.currentTime&&(e.noSleepVideo.currentTime=Math.random())})}))}return r(a,[{key:"_addSourceToVideo",value:function(e,t,a){var r=document.createElement("source");r.src=a,r.type="video/"+t,e.appendChild(r)}},{key:"enable",value:function(){var t=this;l?navigator.wakeLock.request("screen").then(function(e){t._wakeLock=e,t._wakeLock.addEventListener("release",function(){})}).catch(function(e){console.error(e.name+", "+e.message)}):o?(this.disable(),console.warn("\n        NoSleep enabled for older iOS devices. This can interrupt\n        active or long-running network requests from completing successfully.\n        See https://github.com/richtr/NoSleep.js/issues/15 for more details.\n      "),this.noSleepTimer=window.setInterval(function(){document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))},15e3)):this.noSleepVideo.play()}},{key:"disable",value:function(){l?(this._wakeLock.release(),this._wakeLock=null):o?this.noSleepTimer&&(console.warn("\n          NoSleep now disabled for older iOS devices.\n        "),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause()}}]),a}();e.exports=c},function(e,t,a){e.exports={webm:"data:video/webm;base64,GkXfo0AgQoaBAUL3gQFC8oEEQvOBCEKCQAR3ZWJtQoeBAkKFgQIYU4BnQI0VSalmQCgq17FAAw9CQE2AQAZ3aGFtbXlXQUAGd2hhbW15RIlACECPQAAAAAAAFlSua0AxrkAu14EBY8WBAZyBACK1nEADdW5khkAFVl9WUDglhohAA1ZQOIOBAeBABrCBCLqBCB9DtnVAIueBAKNAHIEAAIAwAQCdASoIAAgAAUAmJaQAA3AA/vz0AAA=",mp4:"data:video/mp4;base64, "}}])},"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NoSleep=t():e.NoSleep=t(),_extra.w.addEventListener("touchstart",r),_extra.w.addEventListener("mousedown",r)})(_extra.preferenceManager.registerPreferenceModule("WakeLock",n))}),_extra.registerModule("BaseSlideObjectDataProxy",function(){"use strict";function e(e,t,a){t&&(this._name=e,this._data=t,this._type=a,this._key=this._data.base.mdi,this._initialStateData=_extra.captivate.api.getDisplayObjByKey(this._key))}(e.prototype={get name(){return this._name},get baseItemName(){return this._data.base.bstin},get data(){return this._data},get accessibilityText(){return this._data.container.accstr},get originalX(){return this._data.container.b[0]},get originalY(){return this._data.container.b[1]},get originalWidth(){return this._data.container.b[2]-this.originalX},get originalHeight(){return this._data.container.b[3]-this.originalY},get startFrame(){return this._data.base.from},get endFrame(){return this._data.base.to},get slideName(){return this._data.base.apsn},get slideNumber(){return _extra.slideManager.getSlideDataFromId(this.slideName).number},get type(){return this._type},get uid(){return this._data.container.uid},get isBaseStateItem(){return-1===this._data.base.bstiid},get baseStateItemID(){return this._data.base.bstiid},get states(){if(!this._states){this._states=[];var e=this._data.base.stl;if(e)for(var t=0;t<e.length;t+=1)this._states.push(e[t].stn)}return this._states},get currentStateName(){return this.states.length<=0?"Normal":this.states[this._initialStateData.currentState]},get isInteractiveObject(){return this._data.base.hasOwnProperty("oca")||this.type===_extra.dataTypes.slideObjects.CLICK_BOX||this.type===_extra.dataTypes.slideObjects.BUTTON||this.type===_extra.dataTypes.slideObjects.TEXT_ENTRY_BOX},get successAction(){return this._data.base.oca},get failureAction(){return this._data.base.ofa},get hasAudio(){return void 0!==this._data.base.ia},get audioID(){return this._data.base.ia},get zIndex(){return this._data.base.zIndex},get stateDatas(){return this._stateDatas||(this._stateDatas=this.findStateData()),this._stateDatas},get effects(){if(!this._effects){var e=_extra.slideManager.getSlideDataFromId(this.slideName);e.hasEffects?this._effects=e.effects.getEffectsFor(this.name):this._effects=[]}return this._effects},get htmlText(){return this._data.base.vt},get text(){return _extra.$(this.htmlText).text()}}).findStateData=function(){var t,a=this,r={};return this._stateDatas=r,this._initialStateData?!this._initialStateData.states||this._initialStateData.states.length<=1?r.Normal=_extra.factories.createStateDataProxy(this.type,{stsi:[this.uid],stn:"Normal",stt:0,name:this.name}):this._initialStateData.states.forEach(function(e){t=_extra.factories.createStateDataProxy(a.type,e),r[t.name]=t}):_extra.log("Tried to find state data for '"+this.name+"', but _initialStateData has not been found"),r},e.prototype.clearStateDatas=function(){this._stateDatas=null},e.prototype.hasState=function(e){return-1<this.states.indexOf(e)},e.prototype.getBaseStateItemData=function(){return this.isBaseStateItem?null:_extra.dataManager.getSlideObjectDataByID(this.baseStateItemID)},e.prototype.getStateDataByInternalIndex=function(e){var t;for(var a in this.stateDatas)if(this.stateDatas.hasOwnProperty(a)&&(t=this.stateDatas[a]).internalIndex===e)return t;return null},e.prototype.getDataForState=function(e){return this.stateDatas[e]},_extra.registerClass("BaseSlideObjectDataProxy",e)}),_extra.registerModule("ImageDataProxy",["BaseSlideObjectDataProxy"],function(){"use strict";function e(e,t,a){_extra.classes.BaseSlideObjectDataProxy.call(this,e,t,a)}_extra.registerClass("ImageDataProxy",e,"BaseSlideObjectDataProxy",_extra.CAPTIVATE),_extra.w.Object.defineProperty(e.prototype,"serializedImageData",{get:function(){var t,e=this.data.container.ip;return _extra.captivate.movie.im.getImageDataURI(e,function(e){t=e}),t}}),e.prototype.getImageTag=function(){var e=new _extra.w.Image;return e.src=this.serializedImageData,e}},_extra.CAPTIVATE),_extra.registerModule("ShapeDataProxy",["BaseSlideObjectDataProxy"],function(){"use strict";function e(e,t,a){_extra.classes.BaseSlideObjectDataProxy.call(this,e,t,a)}_extra.registerClass("ShapeDataProxy",e,"BaseSlideObjectDataProxy",_extra.CAPTIVATE),_extra.w.Object.defineProperty(e.prototype,"strokeThickness",{get:function(){return this._data.container.sw}})},_extra.CAPTIVATE),_extra.registerModule("TextEntryBoxDataProxy",["BaseSlideObjectDataProxy"],function(){"use strict";function n(e,t,a){_extra.classes.BaseSlideObjectDataProxy.call(this,e,t,a),this._isResponsive="object"==typeof t.container.txt}function e(e,t,a){var r={get:t};a&&(r.set=a),_extra.w.Object.defineProperty(n.prototype,e,r)}_extra.registerClass("TextEntryBoxDataProxy",n,"BaseSlideObjectDataProxy",_extra.CAPTIVATE),e("inputDivName",function(){return this.name+"_inputField"}),e("variable",function(){return this._data.base.vn}),e("focusLostAction",function(){return this._data.base.ofla}),e("keycode",function(){return this._data.base.sc.k}),e("shiftKey",function(){return 0<this._data.base.sc.s}),e("altKey",function(){return 0<this._data.base.sc.a}),e("ctrlKey",function(){return 0<this._data.base.sc.c}),e("defaultText",function(){return this._isResponsive?this._data.container.txt[_extra.captivate.getResponsiveProjectWidth()]:this._data.container.txt},function(e){if(this._isResponsive)for(var t in this._data.container.txt)this._data.container.txt.hasOwnProperty(t)&&(this._data.container.txt[t]=e);else this._data.container.txt=e})},_extra.CAPTIVATE),_extra.registerModule("WebObjectDataProxy",["BaseSlideObjectDataProxy"],function(){"use strict";function e(e,t,a){_extra.classes.BaseSlideObjectDataProxy.call(this,e,t,a)}_extra.registerClass("WebObjectDataProxy",e,"BaseSlideObjectDataProxy",_extra.CAPTIVATE),_extra.w.Object.defineProperty(e.prototype,"url",{get:function(){return this._data.container.wou}}),_extra.w.Object.defineProperty(e.prototype,"isCrossOrigin",{get:function(){return 0<=this.url.indexOf("http")}}),_extra.w.Object.defineProperty(e.prototype,"isSVG",{get:function(){return 0<=this.url.indexOf(".svg")}})},_extra.CAPTIVATE),_extra.registerModule("ButtonStateDataProxy",["StateDataProxy"],function(){"use strict";_extra.registerClass("ButtonStateDataProxy",function(e){_extra.classes.StateDataProxy.call(this,e,function(e){_extra.slideObjects.states.fixMissingMouseOutIssue(e.rawData,"parentDivName")})},"StateDataProxy",_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("CaptionStateDataProxy",["StateDataProxy"],function(){"use strict";_extra.registerClass("CaptionStateDataProxy",function(e){_extra.classes.StateDataProxy.call(this,e,function(e){_extra.captivate.isResponsive?(e.drawMethodObject=e.rawData,e.drawMethodName="drawForResponsive",e.timeout=1):(e.drawMethodObject=e.canvasContext,e.drawMethodName="drawImage")})},"StateDataProxy",_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("ClickBoxStateDataProxy",["StateDataProxy"],function(){"use strict";_extra.registerClass("ClickBoxStateDataProxy",function(e){_extra.classes.StateDataProxy.call(this,e,function(e){})},"StateDataProxy",_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("HighlightBoxStateDataProxy",["StateDataProxy"],function(){"use strict";_extra.registerClass("HighlightBoxStateDataProxy",function(e){_extra.classes.StateDataProxy.call(this,e,function(e){_extra.captivate.isResponsive?(e.drawMethodObject=e.rawData,e.drawMethodName="drawForResponsive",e.timeout=1):(e.drawMethodObject=e.canvasContext,e.drawMethodName="drawImage")})},"StateDataProxy",_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("ShapeStateDataProxy",["StateDataProxy"],function(){"use strict";function n(e){_extra.classes.StateDataProxy.call(this,e,function(e){_extra.slideObjects.states.fixMissingMouseOutIssue(e.rawData,"parentId")})}_extra.registerClass("ShapeStateDataProxy",n,"StateDataProxy",_extra.CAPTIVATE);var t={0:0,1:2,2:20,3:6,4:7,5:10,6:13,7:16,8:19,9:22,10:25};n.prototype.calculateCContainerOffset=function(e){return _extra.captivate.isResponsive?t[e]:2*e},n.prototype.formatDataViaNativeController=function(e){var t,a=n.superClass.formatDataViaNativeController.call(this,e),r=_extra.dataManager.getSlideObjectDataByName(a.name);return t=a.originalX-r.originalX,t+=this.calculateCContainerOffset(r.strokeThickness),a.offsetX=t,a.offsetY=t,a}},_extra.CAPTIVATE),_extra.registerModule("StateDataProxy",["softwareInterfacesManager"],function(){"use strict";function e(e,t){this.hasOriginalPosition=!1,e&&(this._data=e,this.slideObjects=[],this.initializeSubSlideObjects(t),this.addEnterExitHandlers(),this.isInitialized&&this.calculateFirstSlideOriginalPosition())}(e.prototype={get name(){return this._data.stn},get x(){return this.getProperty({CSSProperty:"left",pixelOffset:this.primaryObject.offsetX})},set x(e){this.setProperty({value:e,writeToCSS:["l","lhV"],CSSProperty:"left",propertyToOffsetWithPrimaryObject:"originalX",pixelOffset:this.primaryObject.offsetX})},get y(){return this.getProperty({CSSProperty:"top",pixelOffset:this.primaryObject.offsetY})},set y(e){this.setProperty({value:e,writeToCSS:["t","lvV"],CSSProperty:"top",propertyToOffsetWithPrimaryObject:"originalY",pixelOffset:this.primaryObject.offsetY})},get width(){return this.removePXSuffix(this.primaryObject.upperDIV.style.width)},set width(e){this.doCSSPropertySet(e,"originalWidth","width")},get height(){return this.removePXSuffix(this.primaryObject.upperDIV.style.height)},set height(e){this.doCSSPropertySet(e,"originalHeight","height")},get originalX(){return this.primaryObject.originalX},get originalY(){return this.primaryObject.originalY},get internalIndex(){return this._data.stt},get isInitialized(){return this.primaryObject.rawData.isDrawn}}).initializeSubSlideObjects=function(e){for(var t,a,r,n=0;n<this._data.stsi.length;n+=1){if(r=this._data.stsi[n],t=_extra.captivate.api.getDisplayObjByCP_UID(r))a=this.formatDataViaNativeController(t);else{var i=_extra.dataManager.getSlideObjectDataByID(r);a=this.formatDataBySlideObjectData(i)}e&&e(a),this.slideObjects.push(a)}this.primaryObject=this.slideObjects[0]},e.prototype.formatDataBySlideObjectData=function(e){var t,a=_extra.dataManager.getSlideObjectDataByName(e.baseItemName),r=_extra.captivate.api.getDisplayObjByCP_UID(a.uid);return(t=this.formatDataViaNativeController(r)).originalWidth=e.originalWidth,t.originalHeight=e.originalHeight,t},e.prototype.formatDataViaNativeController=function(e){return{upperDIV:e.actualParent,contentDIV:e.element.parentNode,focusDIVId:e.parentDivName,originalX:_extra.slideObjects.locationManager.getOriginalX(e),originalY:_extra.slideObjects.locationManager.getOriginalY(e),offsetX:0,offsetY:0,originalWidth:e.bounds.maxX-e.bounds.minX,originalHeight:e.bounds.maxY-e.bounds.minY,canvasContext:e.element.getContext?e.element.getContext("2d"):null,name:e.divName||e.parentDivName,rawData:e,enterMethodName:"drawComplete",exitMethodName:"reset",isPositionedByPercentage:_extra.slideObjects.locationManager.isPositionedByPercentage(e)}},e.prototype.calculateFirstSlideOriginalPosition=function(){},e.prototype.addEnterExitHandlers=function(){var e=this;this.enterHandler=function(){e.calculateFirstSlideOriginalPosition(),e.dispatchEvent("internalinitialization")},this.exitHandler=function(){e.dispatchEvent("internalunload")},_extra.addOneTimeHook(this.primaryObject.rawData,this.primaryObject.enterMethodName,this.enterHandler),_extra.addOneTimeHook(this.primaryObject.rawData,this.primaryObject.exitMethodName,this.exitHandler)},e.prototype.getProperty=function(e){var t=_extra.w.parseFloat(this.primaryObject.upperDIV.style[e.CSSProperty]);return this.primaryObject.isPositionedByPercentage?this.convertPercentageToPixel(t,e.CSSProperty)+e.pixelOffset:t+e.pixelOffset},e.prototype.setProperty=function(e){if(e.value-=e.pixelOffset,_extra.captivate.isResponsive&&e.writeToCSS)for(var t=0;t<e.writeToCSS.length;t+=1)this.writeToCaptivateCSSRecord(e.writeToCSS[t],e.CSSProperty,e.value,e.propertyToOffsetWithPrimaryObject);this.doCSSPropertySet(e.value,e.propertyToOffsetWithPrimaryObject,e.CSSProperty)},e.prototype.removePXSuffix=function(e){return"px"===e.substr(e.length-2,2)&&(e=e.substr(0,e.length-2)),_extra.w.parseFloat(e)},e.prototype.doCSSPropertySet=function(a,r,n){var i=this.primaryObject[r],s=this;this.slideObjects.forEach(function(e){var t=a;t-=i-e[r],s.primaryObject.isPositionedByPercentage?t=s.convertPixelToPercentage(t,n)+"%":t+="px",_extra.cssManager.editCSSOn(e.upperDIV,n,t),_extra.cssManager.editCSSOn(e.contentDIV,n,t)})},e.prototype.writeToCaptivateCSSRecord=function(t,a,r,n){var i,s,o=this,l=this.primaryObject[n];this.slideObjects.forEach(function(e){s=r,s-=l-e[n],i=_extra.captivate.api.getResponsiveCSS(e.rawData.responsiveCSS),e.isPositionedByPercentage?i[t]=o.convertPixelToPercentage(s,a)+"%":i[t]=s+"px"})},e.prototype.convertPixelToPercentage=function(e,t,a,r){var n;return"left"===t?(a||(a=_extra.captivate.getProjectWidth()),n=a):"top"===t&&(r||(r=_extra.captivate.getProjectHeight()),n=r),e/n*100},e.prototype.convertPercentageToPixel=function(e,t){var a;return"left"===t?a=_extra.captivate.getProjectWidth():"top"===t&&(a=_extra.captivate.getProjectHeight()),e=_extra.w.Math.round(a*e),e/=100},e.prototype.addEventListener=function(t,a){this.slideObjects.forEach(function(e){e.upperDIV.addEventListener(t,a)})},e.prototype.removeEventListener=function(t,a){this.slideObjects.forEach(function(e){e.upperDIV.removeEventListener(t,a)})},e.prototype.dispatchEvent=function(e){this.primaryObject.upperDIV.dispatchEvent(_extra.createEvent(e))},e.prototype.setAttribute=function(t,a){this.slideObjects.forEach(function(e){e.upperDIV.setAttribute(t,a),e.contentDIV.setAttribute(t,a)})},e.prototype.addClass=function(t){this.slideObjects.forEach(function(e){_extra.cssManager.addClassTo(e.upperDIV,t),_extra.cssManager.addClassTo(e.contentDIV,t)})},e.prototype.removeClass=function(t){this.slideObjects.forEach(function(e){_extra.cssManager.removeClassFrom(e.upperDIV,t),_extra.cssManager.removeClassFrom(e.contentDIV,t)})},e.prototype.editCSS=function(t,a){this.slideObjects.forEach(function(e){_extra.cssManager.editCSSOn(e.upperDIV,t,a),_extra.cssManager.editCSSOn(e.contentDIV,t,a)})},e.prototype.unload=function(){this.primaryObject.rawData.virgin=!1,this.enterHandler&&this.exitHandler&&(_extra.removeHook(this.primaryObject.rawData,this.primaryObject.enterMethodName,this.enterHandler),_extra.removeHook(this.primaryObject.rawData,this.primaryObject.exitMethodName,this.exitHandler))},_extra.registerClass("StateDataProxy",e)},_extra.CAPTIVATE),_extra.registerModule("TextEntryBoxStateDataProxy",["StateDataProxy"],function(){"use strict";_extra.registerClass("TextEntryBoxStateDataProxy",function(e){var t=e.name;_extra.classes.StateDataProxy.call(this,e,function(e){e.name||(e.name=t),e.upperDIV=_extra.w.document.getElementById(e.name+"c"),e.upperDIV||(e.upperDIV=_extra.w.document.getElementById(e.name+"sha_inputField"))})},"StateDataProxy",_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("VideoStateDataProxy",["StateDataProxy"],function(){"use strict";_extra.registerClass("VideoStateDataProxy",function(e){_extra.classes.StateDataProxy.call(this,e,function(e){e.enterMethodName="addNativeVideoIfNeeded"})},"StateDataProxy",_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("WebObjectStateDataProxy",["StateDataProxy"],function(){"use strict";_extra.registerClass("WebObjectStateDataProxy",function(e){_extra.classes.StateDataProxy.call(this,e,function(e){e.enterMethodName="loadWebObject"})},"StateDataProxy",_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("WidgetStateDataProxy",["StateDataProxy"],function(){"use strict";_extra.registerClass("WidgetStateDataProxy",function(e){_extra.classes.StateDataProxy.call(this,e,function(e){e.upperDIV=e.contentDIV,e.enterMethodName="doActualWidgetLoad"})},"StateDataProxy",_extra.CAPTIVATE)},_extra.CAPTIVATE),_extra.registerModule("SlideObjectVisibilityManager",function(){"use strict";function e(e,t){this._upperContainerVisibility=null,this._slideObject=e,this.updateStateData(t)}e.prototype={get nonContentDivs(){return this._upperContainerVisibility},set nonContentDivs(e){this._upperContainerVisibility=e,this.update()},updateStateData:function(e){this._currentStateData=e,this.getVisiblityDIVs(),this.update()},getVisiblityDIVs:function(){this._visibilityDIVs=[],this._visibilityDIVs.push(this._currentStateData.primaryObject.upperDIV);var e=this._slideObject.name+"_vTxtHolder";_extra.utils.addIfDefined(_extra.w.document.getElementById(e),this._visibilityDIVs);var t="re-"+this._slideObject.name+"c";_extra.utils.addIfDefined(_extra.w.document.getElementById(t),this._visibilityDIVs)},update:function(){null!==this._upperContainerVisibility&&(this._upperContainerVisibility?this._visibilityDIVs.forEach(function(e){e.style.pointerEvents="auto"}):this._visibilityDIVs.forEach(function(e){e.style.pointerEvents="none"}))}},_extra.registerClass("SlideObjectVisibilityManager",e)});