/*! ds-bootstrap - v1.0.0.33225 - 2024-09-17 1:22am UTC * Copyright (c) 2024 ; Not Licensed */!function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,n){for(var i=0;i0&&n.traverseMenu(e,i.links)}))}},{key:"updateMenuStrings",value:function(){var e=l.getPath(this.frame,"navData.outline.links",[]);this.traverseMenu((function(e){e.displaytext=s.getUpdatedTextData("menuItem","".concat(e.translationId,"-Name"),e.displaytext)}),e)}},{key:"updateGlossaryStrings",value:function(){(this.frame.glossaryData||[]).forEach((function(e){var t=e.translationId;e.title=s.getUpdatedTextData("glossaryItem","".concat(t,"-Term"),e.title),e.content=s.getUpdatedTextData("glossaryItem","".concat(t,"-Definition"),e.content)}))}},{key:"updateResourcesStrings",value:function(){l.getPath(this.frame,"resourceData.resources",[]).forEach((function(e){var t=e.translationId;e.title=s.getUpdatedTextData("resourceItem","".concat(t,"-Title"),e.title)}))}},{key:"updateNoteStrings",value:function(){(this.frame.notesData||[]).forEach((function(e){var t=e.slideId,n=i.last(t.split(".")),r=s.getUpdatedTextData("slideNote","".concat(n,"-Note"));null!=r&&null!=DS.renderHtmlString&&(e.content=DS.renderHtmlString(r))}))}},{key:"updateReviewStrings",value:function(){this.updateMenuStrings(),this.updateGlossaryStrings(),this.updateResourcesStrings(),this.updateNoteStrings(),this.title.text=s.getUpdatedTextData("projectTitle","project-Title",this.title.text),this.notifyStringsUpdated()}},{key:"setLocalizationData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.frame.stringTables=e.stringTables,this.frame.navData=e.navData,this.frame.resourceData=e.resourceData,this.frame.glossaryData=e.glossaryData,this.frame.notesData=e.notesData,this.frame.controlStrings=e.controlStrings.reduce((function(e,t){var n=t.id,i=t.value;return e[n]=i,e}),{}),this.title.text=this.frame.controlStrings.title,t||this.notifyStringsUpdated()}},{key:"notifyStringsUpdated",value:function(){r.trigger(o.strings.UPDATE_STRINGS),r.trigger(o.navData.REFRESH_VIEW),r.trigger(o.glossary.REFRESH_VIEW),r.trigger(o.resources.REFRESH_VIEW),r.trigger(o.transcript.REFRESH_VIEW),r.trigger(o.frame.REFLOW)}},{key:"setupControlOptions",value:function(){var e=this.frame.controlOptions.sidebarOptions;this.sidebarOpts=e,this.bottomBarOpts=this.frame.controlOptions.bottomBarOptions,this.topTabs=e.tabs.linkRight||[],this.topTabsLeft=e.tabs.linkLeft||[],this.topTabsRight=e.tabs.linkRight||[],this.sidebarTabs=e.tabs.sidebar||[],this.outlineInSidebar=this.sidebarTabs.some((function(e){return"outline"===e.name})),this.buttonOptions=this.frame.controlOptions.buttonoptions,this.title={enabled:e.titleEnabled,text:e.titleText}}},{key:"optionChangesRequireMenuRefresh",value:function(e,t){return e.wrapListItems!==t.wrapListItems||e.autonumber!==t.autonumber}},{key:"onLayoutChanged",value:function(e,t){this.setLayout(e,t)}},{key:"hasTopLinks",value:function(){return 0!==this.topTabsLeft.length||0!==this.topTabsRight.length}},{key:"getControlString",value:function(e){return s.getUpdatedTextData("frameLink","".concat(e,"-Link"),l.getPath(this.frame,"controlStrings.".concat(e),null))}},{key:"getString",value:function(e){var t=this.currLayout.string_table,n=this.frame.stringTables[t].string[e];return null==n?(c.includes(e)||(c.push(e),console.warn("could not find ".concat(e," in string table ").concat(t))),e.replace("acc_","").replace(/_/g," ")):n}},{key:"setDocked",value:function(e,t,n){t===a.docked.NONE?(this.dockedStates[e]=null,delete this.dockedStates[e]):this.dockedStates[e]={dockedState:t,width:n};var i=Object.keys(this.dockedStates);0===i.length?this.dockSettings={dockedState:a.docked.NONE,width:0}:t!==a.docked.NONE?this.dockSettings={dockedState:t,width:n}:this.dockSettings=this.dockedStates[i[0]]}},{key:"getDockedWidth",value:function(){var e=this.dockSettings,t=e.dockedState,n=e.width;return t!==DS.constants.docked.NONE?n:0}},{key:"setLayout",value:function(e,t){this.currLayout=this.frame.layouts[e],this.currControlLayout=this.frame.controlLayouts[e],this.layouts[t]=this.currControlLayout,r.trigger(o.frameModel.LAYOUT_CHANGED,this.currControlLayout,t)}},{key:"getWndControlLayout",value:function(e){return this.layouts[e]||this.currControlLayout}},{key:"dir",value:function(e){if(null!=e)return this.rtl?e.reverse():e}}],u&&t(n.prototype,u),f&&t(n,f),Object.defineProperty(n,"prototype",{writable:!1}),e}(),f=u;function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0?n:0,e.y=e.top=0,e.x=e.left=t.l+n,e.update(!0),t.l=e.x+e.w},H=function(e,t,n){B(e),n=e.w>0?n:0,e.y=e.top=0,e.x=e.left=t.r-e.w-n,e.update(!0),t.r=e.x},N=function(e,t,n){B(e),n=e.h>0?n:0,e.x=e.left=0,e.y=e.top=t.t+n,e.update(!0),t.t=e.y+e.h},F=function(e,t,n){B(e),n=e.h>0?n:0,e.x=e.left=0,e.y=e.top=t.b-e.h-n,e.update(!0),t.b=e.y},V={l:M,r:H,t:N,b:F},W=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ViewLogic=t,this.params=n,this.nameKey=null!=n&&n.nameKey||t.nameKey,this.enabled=!0}var t,n,i;return t=e,n=[{key:"init",value:function(e){if(this.hasInited)console.warn("has already initialized",this);else{var t;this.hasInited=!0;var n=this.ViewLogic,i=this.params;null==i&&null!=n?i=n:null!=n&&(t=!0),w.isFunction(i)&&(i=i(this.nameSpace||e)),i.w=i.w||i.minW||100,i.h=i.h||i.minH||100,this.orientationProps(i,"x","y","w","h","scale"),(i=Object.assign({position:"absolute",x:0,y:0,minW:0,maxW:Number.MAX_SAFE_INTEGER,minH:0,maxH:Number.MAX_SAFE_INTEGER,wPad:0,scale:1,visibility:"reflow",visual:!0,bgColor:null,overflow:"hidden",origin:"center center",z:null,opacity:null,visible:!0,attrs:{},noContent:!0,calcTextSize:!1},i)).calcTextSize&&(i.noContent=!1),this.noContent=i.noContent,this.lastWidthByText=0,this.lastHeightByText=0,this.padLeft=i.padLeft||0,this.padRight=i.padRight||0,this.childDef=i.childDef,this.childViews=i.childViews,this.updateHook=i.updateHook,this.onCaptionChanged=i.onCaptionChanged,i.childViews=null,i.updateHook=null,i.childDef=null,i.nameKey=null,i.onCaptionChanged=null,Object.assign(this,i.methods),i.methods=null,this.createDynamicGetters(i),i.visual&&(this.el=document.createElement(i.tag||"div"),this.initAttributes(i.attrs),this.initStyles(i),"button"===i.tag&&(this.el.style.cursor="pointer"),this.initContent(i),i.add&&I.appendChild(this.el),this.hasInitialized=!0),this.initVisibility(i),this.initChildRefs(),t&&(this.viewLogic=new n(this))}}},{key:"orientationProp",value:function(e,t){var n="".concat(t,"l"),i="".concat(t,"p");null!=e[n]&&null!=e[i]&&(e[t]=function(){return C.isLandscape?this[n]:this[i]})}},{key:"orientationProps",value:function(e){for(var t=this,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:function(){return!0},t=0;return null!=this.children&&this.children.forEach((function(n){e(n)&&(n.update(),t+=n.w)})),t}},{key:"calcChildrensHeight",value:function(){var e=0;return null!=this.children&&this.children.forEach((function(t){t.update(),e+=t.h})),e}},{key:"positionChildren",value:function(e){var t=e.vertical,n=e.toTop,i=e.toLeft,r=e.pad,o=e.startPos,a=e.reverse,l=void 0!==a&&a,s=e.hook,c=void 0===s?w.noop:s,u=e.rtl,f=void 0!==u&&u,d=e.sizeToChildren,h=e.alignChild,y=t?n?F:N:i?H:M,b=Object.assign({l:o,r:o,t:o,b:o},e.bounds),v=l!==f?this.children.slice().reverse():this.children,g=p(t?["height","t"]:["width","l"],2),m=g[0],S=g[1],k=C.isLandscape?w.first:w.last;v.forEach((function(e){(e.beforeReflowHook||w.noop)();var t=h&&k(e.parentAlign);!e.visible&&"reflow"===e.visibility||"-"===t||(t?V[t](e,b,r):y(e,b,r),c(e))})),d&&(this[m]=b[S])}},{key:"flowChildren",value:function(e){(e=Object.assign({pad:0,sizeToChildren:!1,startPos:0,toLeft:!1,reverse:!1,fullUpdate:!1,rtl:!1,hook:function(){}},e)).fullUpdate?this.hasAllChildren()&&(this.positionChildren(e),this.updateSize()):this.positionChildren(e)}},{key:"isBlocked",value:function(){if(k.theme.isClassic)return!1;var e=Q.getTopNameSpace(),t=Q.getCurrentNameSpace(),n=Q.getBlocker(t.name);return null!=e&&null!=n&&n.visible}},{key:"setEnabled",value:function(e,t){this.enabled!=e&&(this.enabled=e,e?j(this.el,"cs-disabled"):T(this.el,"cs-disabled"),this.el.setAttribute("aria-disabled",!e));var n=this.el.getAttribute("data-tabindex");null!=n&&this.el.setAttribute("tabindex",t&&!e||this.isBlocked()?-1:n)}},{key:"setVisibility",value:function(e,t){var n=this.visible!==e,i=!1;return"no-reflow"===this.visibility?(this.el.style.visibility=e?"visible":"hidden",this.el.style.pointerEvents=e?"":"none"):"reflow"===this.visibility&&(this.el.style.display=e?"block":"none",i=!0),t&&(this.layoutDefaultVisible=e),this.visible=e,n&&E(this,"viewLogic.didChangeVisibility")&&this.viewLogic.didChangeVisibility(e),i}},{key:"childVisibilityChanged",value:function(){null!=this.childVisibilityChangedHook?this.childVisibilityChangedHook():null!=this.parent&&this.parent.childVisibilityChanged()}},{key:"update",value:function(e){null==this.beforeUpdateHook||e||this.beforeUpdateHook(),this.updateSize(),this.updateTrans(),null!=this.updateHook&&this.updateHook()}},{key:"updateChildren",value:function(e){this.children.forEach((function(t){t.update(),e&&t.updateChildren(e)}))}},{key:"doTextCalcs",value:function(){var e=1/S.getScale(),t=this.content.style.width,n=this.el.style.display;(DS.flagManager.multiLangSupport||DS.flagManager.aiCourseTranslation)&&(this.el.style.display="block",this.content.style.width="fit-content");var i=this.content.clientWidth*e,r=this.content.clientHeight*e;(DS.flagManager.multiLangSupport||DS.flagManager.aiCourseTranslation)&&(this.content.style.width=t,this.el.style.display=n),this.lastWidthByText=i+4+this.padLeft+this.padRight,this.lastHeightByText=r+4}},{key:"wasAppended",value:function(){var e=this;this.calcTextSize&&this.doTextCalcs(),null!=this.childViews&&this.childViews.forEach((function(t){"string"==typeof t&&(t=Q.getOrCreateView(t)),t.init(e.nameSpace),e.append(t)}))}},{key:"setChildNum",value:function(e){this.defaultChildNum=e}},{key:"hasAllChildren",value:function(){return this.hasInitialized&&this.children.length===this.defaultChildNum}},{key:"append",value:function(e,t){if(e.parent=this,this.children[w.camelCase(e.nameKey)]=e,t?this.children.unshift(e):this.children.push(e),this.noContent||e.outsideContent?this.el.appendChild(e.el):this.content.appendChild(e.el),e.wasAppended(),e.update(),null==e.nameSpace){for(var n=this;null!=n&&null==n.nameSpace;)n=n.parent;e.nameSpace=n.nameSpace,Q.hasNamespace(n.nameSpace)?Q.getNamespace(n.nameSpace)[e.nameKey]=e:console.warn("could not find namespace ".concat(n.nameSpace," when appending"))}}},{key:"destroy",value:function(){null!=this.children&&this.children.forEach((function(e){return e.destroy()})),null!=this.viewLogic&&this.viewLogic.teardown(),null!=this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.nameSpace=null}},{key:"startFloat",value:function(){this.floating=!0,this.lastFloatParent=this.el.parentNode,this.shouldReparent&&Q.getNamespace(this.nameSpace).wrapper.el.appendChild(this.el)}},{key:"endFloat",value:function(){this.floating&&(this.floating=!1,this.shouldReparent&&this.lastFloatParent.appendChild(this.el))}},{key:"right",value:function(){return this.floating?0:this.x+this.w}},{key:"bottom",value:function(){return this.floating?0:this.y+this.h}},{key:"getBox",value:function(){if(null==Q.getNamespace(this.nameSpace).wrapper)return null;var e=k.theme.isClassic&&Q.getNamespace(this.nameSpace).wrapper.dimScale||1,t=(Q.getNamespace(this.nameSpace).wrapper.scale||1)*e,n=this.x,i=this.y,r=this.w,o=this.h,a=this.offsets,l=(a=void 0===a?{}:a).l,s=void 0===l?0:l,c=a.t,u=this;for(n=(n+s)*t,i=(i+(void 0===c?0:c))*t;u=u.parent;){var f=null!=u.parent?t:1,d=u.offsets,h=(d=void 0===d?{}:d).l,p=void 0===h?0:h,y=d.t,b=void 0===y?0:y;n+=(u.x+p)*f,i+=(u.y+b)*f}return{x:n,y:i,w:r*=t,h:o*=t}}}],n&&b(t.prototype,n),i&&b(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();W.propFns={"fit-to-text-w":function(){return Math.max(this.minW,this.lastWidthByText)+this.wPad},"fit-to-text-h":function(){return Math.max(this.minH,this.lastHeightByText)},"vertical-center":function(){return this.parent.h/2-this.h/2},"horizontal-center":function(){return this.parent.w/2-this.w/2}},W.prop=function(e,t,n){if("number"==typeof n)e[t]=n;else if("string"==typeof n&&null!=W.propFns[n])Object.defineProperties(e,h({},t,{get:W.propFns[n],set:w.noop}));else if("string"==typeof n&&n.endsWith("%")){var i=parseFloat(n)/100,r=null!=A[t]?A[t]:t;Object.defineProperties(e,h({},t,{get:function(){return this.parent[r]?e.parent[r]*i:0},set:w.noop}))}else if(w.isFunction(n)){var o;if("w"===t||"h"===t){var a=n.bind(e),l=t.toUpperCase(),s=e["min".concat(l)],c=e["max".concat(l)];o=function(){var e=a();return ec&&(e=c),e}.bind(e)}else o=n;Object.defineProperties(e,h({},t,{get:o,set:w.noop}))}else e[t]=n;e[t]=n};var U={},z={},K={},Z=function(e){var t,n,i=d(e);return"string"===i?t=e:"object"===i?n=e[t=Object.keys(e)[0]]:console.warn("invalid view definition. ".concat(e," is a ").concat(d(e))),{viewName:t,children:n}},Q={nameSpaces:{},nsStack:[],getNamespace:function(e){return this.nameSpaces[e]},hasNamespace:function(e){return null!=this.nameSpaces[e]},setModel:function(e){return this.model=e,this},resetStates:function(e){var t=this.getNamespace(e);w.forEach(t,(function(e){return e&&e.setEnabled&&e.setEnabled(!0)}))},updateVisibility:function(e,t){var n=!1;for(var i in e){var r=this.nameSpaces[t][i];if(null!=r)r.setVisibility(e[i],!0)&&(n=!0)}return n},def:function(e,t,n){null==n?t.nameKey=e:n.nameKey=e;var i=new W(t,n);return null==U[e]?(U[e]=i,z[e]={ViewLogic:t,p:n},K[e]=0):console.warn("views connot share the same name ".concat(e)),i},addNameSpace:function(e){g=e,this.nameSpaces[g]=this.nameSpaces[g]||{name:e,topLevelElements:[],isAttached:!0,tabReachable:!0,detach:function(){this.isAttached=!1,this.topLevelElements.forEach((function(e){return I.removeChild(e.el)}))},reattach:function(){this.isAttached=!0,this.topLevelElements.forEach((function(e){return I.appendChild(e.el)}))},updateTabIndex:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=function(t){if(!t.dataset.leavealone){var n=t.getAttribute("data-tabindex");null==n&&(n=t.tabIndex,t.setAttribute("data-tabindex",n)),t.tabIndex=e.tabReachable?n:-1}};this.topLevelElements.forEach((function(r){var o=function(e,t){t?e.el.removeAttribute("aria-hidden"):e.el.setAttribute("aria-hidden",!0)};t&&(r.children.some((function(e){return"startoverlay"===e.nameKey}))?r.children.filter((function(e){return"startoverlay"!==e.nameKey})).forEach((function(t){return o(t,e.tabReachable)})):o(r,e.tabReachable)),r.el.querySelectorAll(n?"[tabIndex]:not(.acc-shadow-el):not(.slide-object)":"[tabIndex]").forEach((function(e){return i(e)})),"lightBoxClose"===r.nameKey&&i(r.el)}))}}},update:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){e.forEach((function(e){w.isFunction(e)?e():Array.isArray(e)?update(e,t):null==e||!e.update||e.noUpdate&&!t||(e.update(),t&&e.updateHtml())}))})),getViewConfig:function(e){var t=z[e];return{name:e,ViewLogic:t.ViewLogic,p:t.p}},getOrCreateView:function(e){if(++K[e]>1){var t=z[e],n=t.ViewLogic,i=t.p;return new W(n,i)}return U[e]},tree:function(e,t){for(var n=this,i=[],r=function t(i){if(null!==i){var r=Z(i),o=r.viewName,a=r.children,l=n.nameSpaces[e][o]=n.getOrCreateView(o);if(null!=l){if(l.nameSpace=e,E(a,"length")>0){l.setChildNum(a.length),l.hasChildren=!0;for(var s=0;se.length)&&(t=e.length);for(var n=0,i=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:"",r=se(t,i);if(null==ae[r]){var o=J.find((function(e){return e.selectorText===r}));null==o&&(oe=!oe,r=se(t,i),o=J.find((function(e){return e.selectorText===r}))||{}),ae[r]=o.style||{}}return ae[r][n]||""}}else{var ce=function(e,t){var n=document.createElement(e);return n.setAttribute("class",t),n},ue=/^\./,fe=/\./g;re.getColor=function(e,t,n){var i,r,o=(arguments.length>4&&void 0!==arguments[4]&&arguments[4]||t).split(/\s+/),a=Q.getNamespace(e).wrapper.el;o.forEach((function(e,t){if(ue.test(e))s=e.replace(fe," "),i=ce("div",s);else{var n=G(e.split(".")),o=n[0],l=n.slice(1);i=ce(o,l.join(" "))}var s;0===t&&(i.style.position="absolute",i.style.display="none",r=i),a.appendChild(i),a=i}));var l=window.getComputedStyle(i).getPropertyValue(n);return""===l&&"border-color"===n&&(l=window.getComputedStyle(i).getPropertyValue("border-top-color")),r.parentNode.removeChild(r),l||""}}var de=re;function he(e){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(e)}function pe(e,t){for(var n=0;n .mobile-load-title-overlay");null!=e&&e.parentNode.removeChild(e)}},{key:"getSpinLoader",value:function(){return document.querySelector("body > .slide-loader")}},{key:"onLoaderMute",value:function(){var e=this.getSpinLoader();null!=e&&(e.style.opacity=0)}},{key:"showLoaderDelayed",value:function(e){clearTimeout(this.loaderTimeout),this.loaderTimeout=setTimeout(this.onLoaderShow,e)}},{key:"onLoaderHide",value:function(){clearTimeout(this.loaderTimeout),this.getSpinLoader().style.display="none",we.addClass(document.getElementById("preso"),"hide-slide-loader"),Ce.trigger(Oe.app.HIDE_LOADER)}},{key:"onLoaderUnmute",value:function(){var e=this.getSpinLoader();null!=e&&(e.style.opacity=1)}},{key:"onLoaderShow",value:function(e){e>0?this.showLoaderDelayed(e):(this.getSpinLoader().style.display="block",we.removeClass(document.getElementById("preso"),"hide-slide-loader"),Ce.trigger(Oe.app.SHOW_LOADER))}}])&&pe(t.prototype,n),i&&pe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Le=DS,xe=Le.globalEventHelper.addWindowListener,Pe=Le.events,Te=Pe.ds,je=Te.FRAME_DATA_LOADED,_e=Te.PRESO_READY,De=Pe.window.STACKING_CHANGED,Ie=Pe.frame,Ae=Ie.MODEL_READY,Re=Ie.SCALE,Be=Pe.resume.SET_DATA,Me=Pe.startOverlay.READY,He=Pe.controlOptions.RESET,Ne=Pe.sidebar.ACTIVE_TAB_SET,Fe=Pe.renderTree.DESTROYED,Ve=Le.constants,We=(Ve.els.PRESO,Ve.refs.FRAME),Ue=Le.detection.theme,ze=Le.pubSub,Ke=Le.focusManager,Ze=(Le.flagManager,Le.playerGlobals),Qe=Le.stringTabler,Ge=Le.shortcutManager,qe=Le.dom,Ye={},Xe=function(e){var t=Q.nsStack.indexOf(e);t>=0&&Q.nsStack.splice(t,1)},$e=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Q.nsStack.forEach((function(t,n,i){t.tabReachable=n===i.length-1&&e,t.updateTabIndex()}))},Je=function(e){ye={createWindow:function(t){var n,i,r=this,o=Q.getNamespace(t),a=function(){return function(e){var t=Q.getNamespace(e),n=t.isAttached;t.reattach(),Xe(t),Q.nsStack.push(t),n||Ye[e].all();var i=Q.nsStack.length;Q.nsStack.forEach((function(e,t){var n=e.slide.el;t===i-1?(qe.addClass(n,"primary-slide"),qe.removeClass(n,"secondary-slide")):(qe.removeClass(n,"primary-slide"),qe.addClass(n,"secondary-slide"))})),$e(),ze.trigger(De,e)}(t)},l=function(e,n,i){if(e===t){var r=i?i.getWndBlockerBackground():"",a=Q.getBlocker(e);null!=a&&(a.setBackgroundColor(r),a.setVisibility(n)),o.tabReachable=!n,o.updateTabIndex(!1,!0)}};return null==o&&(Q.addNameSpace(t),i=e[t](be),n=_.flow(xe("resize",(function(){i.resize(),ze.trigger(Re)})),DS.pubSub.addListener(DS.events.utilityWindow.DOCKED,(function(){i.resize(),ze.trigger(Re)}))),t===We?be.setLayout(be.frame.default_layout,We):i.all(),o=Q.getNamespace(t),Ye[t]=i,o.moveToTop=a,Ue.isUnified&&(ze.on(DS.events.frameModel.BLOCKED_CHANGED,l),ze.on(DS.events.window.MAIN_CHANGED,(function(e,t){return l(t,!1)})))),a(),ze.on(He,(function e(){var t=function(){var e=[],t=Q.getNamespace(We).tabs.viewLogic.getSelectedTab();return t&&e.push(t.nameKey),_.each(Q.getNamespace(We).topTabs.children,(function(t){_.each(_.filter(t.children,"viewLogic.showing",!0),(function(t){return e.push(t.nameKey)}))})),e}();Xe(Q.getNamespace(We)),i.destroy(),DS.pubSub.trigger(Fe),Q.nameSpaces[We]=null,n(),ze.off(He,e),r.createWindow("_frame"),i.rerender(),t.forEach((function(e){ze.trigger(Ne,e)}))})),{id:t,el:o.slide.el,wndEl:o.wrapper.el,captionEl:(o.captionContainer||{}).el,x:function(){return o.wrapper.x},y:function(){return o.wrapper.y},close:function(){o.zoomBounds=null,o.detach(),Xe(o),Q.nsStack[Q.nsStack.length-1].moveToTop(),Ke.reCenter()},moveToTop:a,getWinScale:function(){return o.slide.winScale||1},getPinchZoomBounds:function(){return o.slide.pinchZoomBounds},onPinchZoom:Ye[t].pinchZoom?function(e){o.zoomBounds=e,Ye[t].pinchZoom()}:function(){},onWndBlockedChanged:l}},getSidebarPosition:function(){return be.sidebarOpts.sidebarPos},getDefaultLayout:function(){return ve.default_layout},getFonts:function(){return ve.fonts},getFontScale:function(){return be.frame.fontscale},getCaptionData:function(){var e=be.frame.controlOptions.controls,t={font:e.font,enabled:e.closed_captions},n=be.frame.controlOptions.ccOptions||{};return t.font=n.font,t.size=n.size,t.placement=n.placement,t.backgroundColor=n.backgroundColor,t.color=n.color,t.text=n.text,t},getNavData:function(){return be.frame.navData.outline.links},isReadOnlyOnce:function(){return ve.controlOptions.controls.readonlyOnce},topmostUnreachable:function(){return Q.nsStack},setAllAccVisibility:function(e){_.forEach(Q.nameSpaces,(function(t){var n=t.wrapper;e?n.el.removeAttribute("aria-hidden"):n.el.setAttribute("aria-hidden",!0)}))}},ze.on(Be,$e),ze.on(Me,(function(){$e(!1)})),Ze.player=ye},et=function(){ye.hasData=!0,ze.trigger(je,ye)},tt=DS,nt=tt.MicroScrollBar,it=tt.detection,rt=function(e){return null!=e&&2===e.split(".").length},ot=function(e,t){return e.some((function(e){var n=t[e.name];return null==n||"outline"===e.name&&n.enabled||!0===n}))};function at(e){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(e)}function lt(e,t){for(var n=0;n=u-10?f=u-10-c:f<=10&&(f=10);var d=a-(s+10);d<=10&&(d=a+s+10),st.style.left="".concat(f,"px"),st.style.top="".concat(d,"px")},hideTooltip:function(e){null==st||null!=e&&e!==dt||(st.style.display="none",st.innerText="",st.style.left=0,dt=void 0)},updateTooltip:function(e,t){var n=st.getBoundingClientRect().width;st.innerText=t,st.style.left="".concat(e-n/2,"px")},runObjHoverOut:function(){null!=dt?dt.onHoverOut():yt.hideTooltip()}},bt=yt;function vt(e){return vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vt(e)}function gt(e,t){for(var n=0;n
'}}));var Kt,Zt,Qt=DS,Gt=Qt.detection,qt=Qt.events,Yt=Qt.pubSub,Xt=function(){return document.getElementById("app-top")||document.body},$t=DS.utils.pxify,Jt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vt(e,t)}(o,e);var t,n,i,r=Wt(o);function o(e){var t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,e)).visualNode=((n=document.createElement("div")).className="skipnav transparent",n.innerText=Q.model.getString("acc_skipnavigation"),Xt().appendChild(n),window.requestAnimationFrame((function(){Zt=n.clientHeight,Kt=n.clientWidth,n.className="skipnav",null!=n.parentNode&&n.parentNode.removeChild(n)})),n),DS._.bindAll(Ut(t),"onButtonClick"),t.onClick(t.onButtonClick),t}return t=o,n=[{key:"onFocus",value:function(){if(!Gt.device.isMobile){DS.focusManager.takeFocusOff();var e=Q.getTopNameSpace().slide,t=e.getBox(),n=t.x,i=t.y,r=t.w,o=t.h;Object.assign(this.visualNode.style,{top:$t(i+o-Zt-50),left:$t(n+r-Kt-50)}),e.el.style.opacity=.6,Xt().appendChild(this.visualNode),Yt.trigger(qt.skipNav.FOCUSED)}}},{key:"onBlur",value:function(){var e=Q.getTopNameSpace().slide,t=this.visualNode.parentNode;e.el.style.opacity=1,null!=t&&t.removeChild(this.visualNode)}},{key:"onButtonClick",value:function(e){this.el.focus(),setTimeout((function(){DS.focusManager.onSlideStarted(null,DS.windowManager.getCurrentWindowSlide())}),100)}}],n&&Ft(t.prototype,n),i&&Ft(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(_t),en=Jt,tn="skipnav";function nn(e){return nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn(e)}function rn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==nn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==nn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Q.def(tn,en,(function(){var e=Q.model,t=e.getString("acc_skipnavigation");return{tag:"button",ariaStringId:"acc_skipnavigation",attrs:{id:tn,"aria-label":t,tabindex:0},visible:e.sidebarOpts.sidebarEnabled,x:-100,y:-100,w:1,h:1,html:t,methods:{updateDomStrings:function(){this.el.textContent=e.getString("acc_skipnavigation")}}}}));var on=DS,an=on._,ln=on.pubSub,sn=on.events,cn=on.detection,un=on.constants.MOBILE_UI_SIZE,fn="top ".concat(150,"ms ease-in-out");function dn(e){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(e)}function hn(e,t){for(var n=0;n
',noContent:!0}}));var In="logo";DS.flagManager;function An(e){return function(e){if(Array.isArray(e))return Rn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);nr/i.data.actualWidth()?(t.style.width="auto",t.style.height="100%"):(t.style.width="100%",t.style.height="auto")}}}));var Bn="sidebar",Mn=DS,Hn=Mn.utils,Nn=Mn.TweenLite,Fn=Mn.dom,Vn=Mn.events,Wn=Mn.pubSub,Un=Mn.detection;Q.def(Bn,(function(e){var t=Q.model,n=de.getColor(e,".cs-brandhighlight-bg","background-color",".cs-base.cs-custom-theme"),i=t.sidebarOpts.sidebarPos;Fn.addClass(document.body,"sidebar-".concat(i));var r=.25,o=function(){var e=t.dockSettings||{},n=e.dockedState,i=e.width,r=n!==DS.constants.docked.NONE,o=window.innerWidth-(r?i:0),a=Un.device.isPhone?.8*window.innerWidth:o/4;return Hn.clamp(245,400,a)},a=function(){return"left"===i?0:window.innerWidth-o()},l={x:a()},s=[];return{tag:"section",attrs:{id:Bn,class:"cs-left area-secondary-wrapper","aria-label":"sidebar"},overflow:"visible",visible:t.sidebarOpts.sidebarEnabled,pos:i,noContent:!1,shouldReparent:!1,xs:[0],data:{actualWidth:o},x:function(){var e=this,t=a();if(this.collapsed&&("left"===this.pos?t-=o():t+=o()),this.animate&&!this.animating){var n="left"===this.pos?-30:30;this.collapsed&&this.floating?(Fn.addClass(document.body,"sidebar-closing"),Nn.to(this.content,r,{opacity:0,x:n,ease:"power4.out",onComplete:function(){Fn.removeClass(document.body,"sidebar-closing"),Fn.addClass(document.body,"sidebar-closed")}})):(Fn[this.collapsed?"addClass":"removeClass"](document.body,"sidebar-closed"),Nn.set(this.content,{x:n,opacity:0}),Nn.to(this.content,r,{x:0,delay:.11,ease:"power2.out"}),Nn.to(this.content,r,{opacity:1,delay:.11,ease:"none",overwrite:!1}));var i=window.innerWidth,s=Nn.to(l,r,{x:t,onComplete:function(){e.animating=!1,e.animate=!1},onUpdate:function(){"right"===e.pos&&window.innerWidth!=i&&(s.kill(),e.animating=!1),Wn.trigger(Vn.frame.REFLOW),Wn.trigger(Vn.frame.SCALE)}});this.animating=!0}return this.animating||(l.x=t),this.floating?"right"===this.pos?(this.xs[0]=l.x-window.innerWidth,window.innerWidth):(this.xs[0]=l.x,0):(this.xs[0]=0,l.x)},w:function(){return this.visible?o():0},h:"100%",html:"\n \n
\n
\n
\n '),updateHook:function(){this.hasAllChildren()&&this[this.collapsed?"onSidebarHide":"onSidebarShow"]()},methods:{onSidebarHide:function(){this.onSidebarShow(),(s=An(this.el.querySelectorAll('[tabindex="0"]:not(#hamburger)'))).forEach((function(e){e.tabIndex=-1})),this.content.setAttribute("aria-hidden",!0)},onSidebarShow:function(){s.forEach((function(e){e.tabIndex=0})),this.content.removeAttribute("aria-hidden")}}}}));var zn=function(){return"no icon"},Kn={next:function(){return'\n \n \n '},prev:function(){return'\n \n \n \n'},submit:function(){return'\n \n\n \n\n '},replay:function(){return'\n \n '},play:function(){return'\n \n '},pause:function(){return'\n \n \n '},volume:function(e,t){var n=Math.min(1,e/5),i=Math.min(1,Math.max(0,e/5-.5));return'\n \n \n \n \n \n \n \n \n \n \n ')},captionsOn:function(e){return'\n \n '},captionsOff:function(e){return'\n \n \n \n \n '},captions:function(){return'\n \n \n \n \n \n '},carrot:function(e){return'\n \n \n \n \n ')},search:function(){return'\n \n \n \n \n \n \n \n '},searchClear:function(){return'\n \n \n \n \n \n \n \n \n \n '},filter:function(){return'\n \n '},close:function(){return'\n \n \n '},clear:function(){return'\n \n \n '},hamburger:function(){return'\n \n \n \n '},file:function(){return'\n \n \n \n \n \n \n \n '},link:function(e){return'\n \n \n ')},settings:function(){return'\n \n \n \n '},playbackSpeed:function(){return'\n \n \n \n '},track:function(e,t){return'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ')},downArrow:function(e,t){return'\n
\n ')},checkmark:function(){return'\n \n \n \n '},lock:function(){return'\n \n \n \n \n \n'},lockedViewed:function(){return'\n \n \n \n \n \n'},languagePicker:function(){return'\n\n \n\n '}},Zn={play:function(){return'\n \n '}},Qn=function(e){return DS.detection.env.isPerpetual?Kn[e]||zn:Zn[e]||Kn[e]||zn},Gn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return window.innerWidth-e<900};function qn(e){return qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qn(e)}function Yn(e,t){for(var n=0;na||t)?(this.sidebar.autoCollapsed=!0,this.sidebar.collapsed=!0,this.setExpandedAttr().animateSidebar()):this.sidebar.autoCollapsed&&!this.sidebar.floating&&this.prevWidth0&&void 0!==arguments[0])||arguments[0];this.sidebar.collapsed=!this.sidebar.collapsed,this.sidebar.collapsed||(this.sidebar.autoCollapsed=!1),t?(this.onBlur(),this.setExpandedAttr().animateSidebar(),setTimeout((function(){e.sidebar.collapsed?e.onFocus():e.sidebar.el.querySelector('[tabIndex="0"]').focus()}),250)):this.setExpandedAttr().animateSidebar(),ni.trigger(ii.hamburger.TOGGLE,this.sidebar.collapsed)}},{key:"teardown",value:function(){ui=this.sidebar.collapsed,ni.off(ii.sidebar.CLOSE),ni.off(ii.sidebar.OPEN)}}],n&&Yn(t.prototype,n),i&&Yn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(_t),pi=hi,yi="hamburger";Q.def(yi,pi,(function(e){var t=Q.model,n=Q.getNamespace(e).sidebar;return{tag:"button",ariaStringId:"sidebar_toggle",attrs:{id:yi,"aria-expanded":!t.sidebarOpts.closed,"aria-controls":"sidebar","aria-label":"".concat(t.getString("sidebar_toggle")),tabIndex:0},x:function(){return"left"===n.pos?n.data.actualWidth():-65},w:50,h:65,outsideContent:!0,html:'\n \n ")}}));var bi=10,vi=20,gi=1e3,mi=DS.detection.deviceView,wi="topBar";function Si(e){return Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Si(e)}function ki(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ci(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n\n '.concat('\n \n\n \n\n \n\n \n '),"\n
\n
\n ")}}}));var Vi=function(e,t){return'\n
\n
\n
')};function Wi(e){return Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wi(e)}function Ui(e,t){for(var n=0;n=0,a=i.xe.length)&&(t=e.length);for(var n=0,i=new Array(t);n0||!n.includes(this.currentTab)){var i=rr(n,1)[0];this.currentTab=i}if(null!=this.currentTab){this.currentTab.el.setAttribute("aria-selected",!0);var r=br.getCurrentWindow();null!=r&&null!=r.getId&&"_frame"!==r.getId()||(this.currentTab.el.tabIndex=0)}this.active=n}}},{key:"onFocus",value:function(e){this.isFocused||(this.isFocused=!0,this.getInitialActive().setCurrent(),Sr("keydown",this.onKeydown))}},{key:"onBlur",value:function(e){this.el.contains(e.relatedTarget)||(this.isFocused=!1,lr(fr(o.prototype),"onBlur",this).call(this),kr("keydown",this.onKeydown))}},{key:"onKeydown",value:function(e){var t=this.currentTab;pr.isActionKey(e.which)?(this.activeTab=this.currentTab,this.activateTab()):pr.isRightKey(e.which)?this.currentTab=this.getNextTab(this.currentTab.model.idx):pr.isLeftKey(e.which)?this.currentTab=this.getPrevTab(this.currentTab.model.idx):pr.isHomeKey(e.which)?this.currentTab=this.getFirstTab():pr.isEndKey(e.which)&&(this.currentTab=this.getLastTab()),t!==this.currentTab&&(null!=t&&(t.el.tabIndex=-1),this.setCurrent())}},{key:"activateTab",value:function(){null!=this.activeTab&&(hr.forEach(this.view.children,(function(e){return e.el.setAttribute("aria-selected",!1)})),this.activeTab.el.setAttribute("aria-selected",!0),this.activeTab.viewLogic.showPanel())}},{key:"setAsActive",value:function(e){this.activeTab=this.currentTab=e}},{key:"tabDidChangeVisibility",value:function(){this.view.visible&&(null!=this.activeTab&&this.activeTab.visible||(this.currentTab=this.activeTab=hr.first(this.getLiveChildren())),this.activateTab())}},{key:"setCurrent",value:function(){var e=this.currentTab;if(null!=e){e.el.tabIndex=0,e.el.focus();var t=e.getBox(),n=t.x,i=t.y,r=t.w,o=t.h;yr.setFocusRectOn(e.el,{left:n,top:i,width:r,height:o})}}},{key:"getInitialActive",value:function(){return this.currentTab=this.activeTab=this.getLiveChildren().find((function(e){return e.el===document.activeElement})),this}},{key:"getNextTab",value:function(e){var t=this.getLiveChildren(),n=t.findIndex((function(t){return t.model.idx===e}))+1;return n===t.length&&(n=0),t[n]}},{key:"getPrevTab",value:function(e){var t=this.getLiveChildren(),n=t.findIndex((function(t){return t.model.idx===e}))-1;return-1===n&&(n=t.length-1),t[n]}},{key:"getFirstTab",value:function(){return this.view.children.find((function(e){return e.viewLogic.isLive()}))}},{key:"getLastTab",value:function(){return this.view.children.slice().reverse().find((function(e){return e.viewLogic.isLive()}))}},{key:"getLiveChildren",value:function(){return this.view.children.filter((function(e){return e.viewLogic.isLive()}))}},{key:"getSelectedTab",value:function(){return this.view.children.find((function(e){return!0===e.viewLogic.isActive}))}},{key:"teardown",value:function(){vr.off(gr.sidebar.ACTIVE_TAB_SET),o.lastSelectedTab=this.getSelectedTab(),null!=this.removeResize&&this.removeResize()}}])&&ar(t.prototype,n),i&&ar(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(_t);function Er(e){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(e)}function Lr(e,t){for(var n=0;ne;c?$r.addClass(this.el,"overflow-tabs"):$r.removeClass(this.el,"overflow-tabs");for(var u=0;u-1&&n[r].viewLogic.onHide();this.el.style.display="block",null!=i.onPanelVisible&&i.onPanelVisible()}}},{key:"onHide",value:function(){this.el.style.display="none"}},{key:"isTopLink",value:function(){return null!=this.view.tabsId}},{key:"getTopTabsView",value:function(){return this.view.lnk.parent.parent}},{key:"teardown",value:function(){fo.off(DS.events.tab.SHOW,this.onShow)}}])&&io(t.prototype,n),i&&io(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(_t);function go(e){return go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(e)}function mo(e,t){for(var n=0;n\n
\n
\n \n \n
")},methods:{updateDomStrings:function(){this.viewLogic.searchInputEl.setAttribute("placeholder",e.getString("search")),this.viewLogic.searchClearLabelEl.setAttribute("aria-label",e.getString("close"))}},updateHook:function(){this.viewLogic.ensureEventSubscriptions()}}}));function ua(e){return ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ua(e)}function fa(e,t){for(var n=0;nt?e.scrollTop=r-t+10:ie.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0)&&this.searchResults.set(n.slideid,n.displaytext),null!=n.links&&this.traverseLinks(n.links)}}},{key:"getDefaultSate",value:function(e){var t=Qa.getCurrentWindow().getCurrentSlide().absoluteId===e||Ja.resolvePath(e).viewed,n=this.menuOptions.flow;if(t)switch(n){case"free":case"restricted":return Q.model.getString("acc_visited");case"locked":return"".concat(Q.model.getString("acc_visited"),", ").concat(Q.model.getString("acc_locked"))}else switch(n){case"free":return"";case"restricted":case"locked":return Q.model.getString("acc_locked")}}},{key:"performSearch",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(window.globals.HAS_SLIDE){this.term=t.toLowerCase(),this.items=null,this.noSearchTerm=""===t,this.searchResults=new Map,this.resultsEl.innerHTML="",this.slideTextEnabled=this.slideCheckEl.checked,this.notesEnabled=this.notesCheckEl.checked;var n=Q.model.frame.navData.links;null!=n&&this.traverseLinks(n),this.hasSlideBankSlides&&void 0===this.slideBankTextBySlideId&&this.loadSlideBankSearchData();var i=function(t){t.forEach((function(t){(t.text.toLowerCase().indexOf(e.term)>=0||t.title.toLowerCase().indexOf(e.term)>=0)&&e.searchResults.set(t.slideId,t.title)}))},r=!this.noSearchTerm;this.slideTextEnabled&&r&&i(this.slideTextBySlideId),this.hasSlideBankSlides&&r&&i(this.slideBankTextBySlideId),this.notesEnabled&&r&&i(this.notesBySlideId);hl.isIOS;var o=this.wrapListItems?"":"no-wrap",a=Qa.getCurrentWindow().getCurrentSlide().absoluteId,l=0;this.searchResults.forEach((function(t,n){0;var i=a===n?"cs-selected":"",r=document.createElement("li"),s=Ja.resolvePath(n).viewed?"cs-viewed":"",c=e.menuOptions.flow,u=e.getDefaultSate(n),f='\n \n "):f+="\n ".concat(t,"\n "),r.innerHTML=f,e.resultsEl.appendChild(r),l=-1}))}}},{key:"onClear",value:function(){var e=this,t=this.view.parent.children,n=t.outline,i=t.search;this.outlineUl=this.outlineUl||document.querySelector("#outline-content ul"),n.setVisibility(!0),qa.to(this.el,this.animationDuration,{alpha:0,onComplete:function(){qa.to(e.outlineUl,e.animationDuration,{alpha:1}),e.view.setVisibility(!1),i.children.bottomDiv.el.style.opacity=1,$a.isShowFocus&&e.el.contains(document.activeElement)&&n.el.focus()}}),this.term="",i.children.searchInput.el.value="",tl(document.body,"search-results-active"),Xa.trigger(Ya.search.UPDATE_PANEL)}},{key:"hasListItems",value:function(){return!_.isEmpty(this.getItems())}},{key:"getItems",value:function(){return this.items=this.items||Aa(this.el.querySelectorAll(".cs-listitem")),this.items}},{key:"activateItem",value:function(){this["locked"!==this.menuOptions.flow?"onClickLink":"onCarrotClick"]({target:this.currentItem})}},{key:"findIndexCb",value:function(e,t){return e===t}},{key:"getItemContent",value:function(){return this.currentItem}},{key:"onAfterVisible",value:function(){this.view.parent.children.outline.setVisibility(!1)}}]),n}(Da),bl=yl,vl="searchResults",gl=Q.def(vl,bl,(function(e){var t=Q.model,n=t.rtl?"rtl":"";return{attrs:{id:vl+"-content",class:"cs-menu cs-panel panel ".concat(n),tabindex:-1},z:2,x:0,y:68,w:"100%",overflow:"scroll",h:function(){return this.parent.h-58-2-bi},visible:!1,html:'\n \n
\n \n

\n '.concat(t.getString("search_results"),'\n

\n \n
\n\n
\n

').concat(t.getString("search_in"),'

\n \n \n
\n
\n
\n
    \n
    \n
    \n '),methods:{updateDomStrings:function(){this.viewLogic.titleEl.textContent=t.getString("search_results"),this.viewLogic.searchFilterLabelEl.textContent=t.getString("filter"),this.viewLogic.searchOptionsLabelEl.textContent=t.getString("search_in"),this.viewLogic.notesCheckLabelEl.textContent=t.getString("transcript_chk"),this.viewLogic.slideCheckLabelEl.textContent=t.getString("slide_text_chk")}}}}));function ml(e){return ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ml(e)}function wl(e){return function(e){if(Array.isArray(e))return Sl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Sl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0,i=this.el.querySelectorAll(e);Array.from(i).forEach((function(e){Array.from(e.parentNode.querySelectorAll("div")).slice(n).every((function(e){return Kl(e,"cs-viewed")}))&&(Zl(e,"cs-complete"),t.updateAriaLabel(e))}))}},{key:"updateVisitedSlides",value:function(e,t){null!=e&&(e.forEach(this.addSlideToVisited),this.visuallyUpdateLinks())}},{key:"getNextItem",value:function(e){var t,n=this,i=this.getItems(),r=i.findIndex((function(t){return n.findIndexCb(t,e)}));do{(r+=1)===i.length&&(r=0),t=i[r]}while(ql(t));return t}},{key:"getPrevItem",value:function(e){var t,n=this,i=this.getItems(),r=i.findIndex((function(t){return n.findIndexCb(t,e)}));do{-1==(r-=1)&&(r=i.length-1),t=i[r]}while(ql(t));return t}},{key:"addSlideToVisited",value:function(e){var t=e.absoluteId,n=e.getScene().absoluteId;this.visitedSlides.add(n).add(t)}},{key:"isCurrentLinkParent",value:function(e,t){return e.el===this.view.children[t].el&&e.el.getAttribute("data-has-links")&&!e.el.getAttribute("data-is-scene")}},{key:"onSelectFirstSlideLink",value:function(){var e=this.view.el.querySelector("ul > li > div:not(.is-scene)");if(null!=e){var t=e.getAttribute("data-ref");this.selectLink(e,t)}}},{key:"onSlideChanged",value:function(e){if(this.addSlideToVisited(e),!this.currentItem||zl(this.currentItem,"listitem").getAttribute("data-ref")!=e.absoluteId){var t=e.absoluteId,n=this.view.children[t];if(null==n){var i=e.getSlideDraw();null!=i&&(t=i.absoluteId,n=this.view.children[t])}null!=n&&this.selectLink(n.el,t)}}},{key:"selectLink",value:function(e,t){var n=this;this.onClickLink(e,!0),Ul(e,(function(i){i.classList.contains("item-collapsed")&&(n.isCurrentLinkParent(e,t)||(Ql(i,"item-collapsed"),i.setAttribute("aria-expanded",!0)))}),(function(e){return n.el===e}))}},{key:"collapsibleParents",value:function(e){var t=this;return Ul(e,(function(e){return e.classList.contains("item-collapsible")}),(function(e){return t.el===e}))}},{key:"collapseLastItem",value:function(e){var t=this;null!=this.lastExpandedEls&&this.menuOptions.autocollapse&&this.lastExpandedEls.forEach((function(n){n.contains(e)||Kl(n,"item-collapsed")||t.toggleScene(n)}))}},{key:"toggleScene",value:function(e){var t,n=Kl(e,"item-collapsed");if(t=n?"remove":"add",e.classList[t]("item-collapsed"),e.setAttribute("aria-expanded",n),Dl.theme.isUnified){var i=Array.from(e.querySelectorAll("div.listitem")),r=i[0];!function(e,t){if(!n){var i=e.slice(1).filter((function(e){return!Kl(e,"is-promoted-slide")&&!Kl(e,"is-scene")}));i.some((function(e){return Kl(e,"cs-viewed")}))&&Ql(t,"cs-unvisited"),i.every((function(e){return Kl(e,"cs-viewed")}))&&Zl(t,"cs-complete")}}(i,r),this.updateAriaLabel(r)}Il.trigger(Rl.menuLinksListItem.TOGGLE)}},{key:"updateAriaLabel",value:function(e){var t=[].slice.call(e.querySelector(".outline-states").children),n=e.getAttribute("data-slide-title"),i=e.children[0];t.some((function(e){if("none"!==window.getComputedStyle(e).display){var t=e.getAttribute("aria-label");return i.textContent=n+" "+t,!0}}))||(i.textContent=n)}},{key:"onCarrotClick",value:function(e){if(null!==e){var t=zl(e,"item-collapsible");this.toggleScene(t)}}},{key:"onClickLink",value:function(e,t){var n=this;if(e)if(Dl.theme.isUnified){var i=e.getAttribute("data-ref"),r=null!=i;if("restricted"!==this.menuOptions.flow||t||this.visitedSlides.has(i)){if(null!=this.currentItem&&e!==this.currentItem&&(this.currentItem.tabIndex=-1,Ql(this.currentItem,"hover")),this.currentItem=e,null!=i&&(this.collapseLastItem(e),this.lastExpandedEls=this.collapsibleParents(e),this.lastExpandedEls.forEach((function(e){var t=e.firstElementChild;i.includes(t.getAttribute("data-ref"))&&(Zl(t,"cs-viewed"),n.updateAriaLabel(t))}))),Kl(e,"listitem")){this.updateViewedState(e);var o=this.el.querySelector(".cs-selected");Kl(e,"is-scene")||(null!=o&&(Ql(o,"cs-selected"),this.updateAriaLabel(o)),Zl(e,"cs-selected"),window.requestAnimationFrame((function(){return n.updateAriaLabel(e)})))}else this.onCarrotClick(e);if(r&&!t){var a=Hl.getCurrentWindowSlide().absoluteId;i!=a&&(Il.trigger(Rl.request.NEXT_SLIDE,i),Dl.theme.isUnified&&Il.trigger(Rl.topEllipsesPanel.HIDE)),Dl.deviceView.isMobile&&(Il.trigger(Rl.tab.HIDE),(Dl.deviceView.isPhone||Dl.theme.isClassic)&&Il.trigger(Rl.sidebar.CLOSE))}null!=this.currentItem&&null!=this.focusor&&Fl(this.currentItem)}}else this.onClickLinkOld(e,t)}},{key:"onClickLinkOld",value:function(e,t){var n=e.getAttribute("data-ref"),i=null!=n,r=rt(n);if("UL"!==e.nodeName)if("restricted"!==this.menuOptions.flow||t||this.visitedSlides.has(n)){if(null!=this.currentItem&&e!==this.currentItem&&(this.currentItem.tabIndex=-1,Ql(this.currentItem,"hover")),this.currentItem=e,(r||Kl(e.parentNode,"item-collapsible"))&&this.toggleScene(e.parentNode),null!=n&&(this.collapseLastItem(e),this.lastExpandedEls=this.collapsibleParents(e),Array.from(this.lastExpandedEls).forEach((function(e){var t=e.firstElementChild;n.includes(t.getAttribute("data-ref"))&&Zl(t,"cs-viewed")}))),Kl(e,"listitem")){Zl(e,"cs-viewed");var o=this.el.querySelector(".cs-selected");null!=o&&Ql(o,"cs-selected"),Zl(e,"cs-selected")}else this.onCarrotClick(e);if(i&&!t){var a=Hl.getCurrentWindowSlide().absoluteId;r||n==a||(Il.trigger(Rl.request.NEXT_SLIDE,n),Dl.theme.isUnified&&Il.trigger(Rl.topEllipsesPanel.HIDE)),Dl.deviceView.isMobile&&(Il.trigger(Rl.tab.HIDE),(Dl.deviceView.isPhone||Dl.theme.isClassic)&&Il.trigger(Rl.sidebar.CLOSE))}null!=this.currentItem&&null!=this.focusor&&Fl(this.currentItem)}else Kl(e,"carrot")&&this.onCarrotClick(e)}},{key:"updateViewedState",value:function(e){Zl(e,"cs-viewed");var t=Gl(e).pop();if(!Kl(e,"is-scene")&&null!=t){var n=t.querySelector("div.listitem");Ql(n,"cs-unvisited")}this.updateAriaLabel(e)}},{key:"isExpanded",value:function(){return!!this.currentItem.dataset.hasLinks&&Kl(this.parentElement,"item-collapsed")}},{key:"onKeydown",value:function(e){var t=this.currentItem;if(Bl.isActionKey(e.which))this.activateItem(),Bl.isSpaceKey(e.which)&&e.preventDefault();else if(Bl.isRightKey(e.which)&&t.dataset.hasLinks)Kl(this.currentItem.parentNode,"item-collapsed")?this.onCarrotClick(this.currentItem.firstElementChild):this.currentItem=this.getNextItem(this.getItemContent());else if(Bl.isDownKey(e.which))this.currentItem=this.getNextItem(this.getItemContent());else if(Bl.isUpKey(e.which))this.currentItem=this.getPrevItem(this.getItemContent());else if(Bl.isLeftKey(e.which))if(t.dataset.hasLinks&&!Kl(t.parentNode,"item-collapsed"))this.onCarrotClick(this.currentItem.firstElementChild);else{var n=zl(this.currentItem,"item-collapsible");null!=n&&(this.currentItem=n.querySelector(".cs-listitem"))}else Bl.isHomeKey(e.which)?this.currentItem=this.getFirstItem():Bl.isEndKey(e.which)&&(this.currentItem=this.getLastItem());t!==this.currentItem&&(e.preventDefault(),Ql(t,"hover"),t.parentNode.tabIndex=-1,this.focusOnCurrent())}},{key:"focusOnCurrent",value:function(){this.centerOnFocused(),document.activeElement!==this.currentItem.parentNode&&(this.currentItem.parentNode.tabIndex=0,Zl(this.currentItem,"hover"),this.currentItem.parentNode.focus()),Fl(this.currentItem)}},{key:"hasListItems",value:function(){return!Al.isEmpty(Q.model.frame.navData.outline.links)}},{key:"getItems",value:function(){return this.links=this.links||wl(this.el.querySelectorAll(".cs-listitem")),this.links}},{key:"activateItem",value:function(){var e="locked"!==this.menuOptions.flow&&null==this.currentItem.dataset.isScene,t=e?"onClickLink":"onCarrotClick",n=e?this.currentItem:this.currentItem.querySelector(".carrot");this[t](n)}},{key:"findIndexCb",value:function(e,t){return e===t}},{key:"getItemContent",value:function(){return this.currentItem}},{key:"getTreeRootEl",value:function(){return this.el.querySelector("ul")}},{key:"getOffsetEl",value:function(){return Dl.deviceView.isMobile?this.el.parentNode:this.el}},{key:"getOffsetTop",value:function(e){return Dl.deviceView.isMobile?Al.first(Ul(e,(function(e){return"li"===e.nodeName.toLowerCase()}))).offsetTop:Cl(xl(o.prototype),"getOffsetTop",this).call(this,e)}},{key:"onShowTabItem",value:function(e,t){if("outline"===e&&null!=t){var n=this.getItems().find((function(e){return e.dataset.translationId===t}));null!=n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}}},{key:"scrollToCurrent",value:function(){var e=this;Dl.deviceView.isMobile&&(this.currentItem=this.getItems().find((function(t){return t.getAttribute("data-ref")===e.currentSlideId}))),Cl(xl(o.prototype),"scrollToCurrent",this).call(this)}},{key:"setDrawSlides",value:function(){var e=this;this.view.draws.forEach((function(t){var n=t.link,i=t.links,r=Ml.resolvePath(Nl(n.drawid)),o=function(){var t=n.spliceNum||1,o=r.slides();i.splice.apply(i,[n.index,t].concat(wl(o.map(e.createNewLink)))),n.spliceNum=o.length,e.view.updateHtml(),e.view.initChildRefs()};r.on(Rl.draw.RESET_COMPLETE,o),null!=r.slides()&&o()}))}},{key:"createNewLink",value:function(e){var t={kind:"slidelink",expand:!1,type:"slide"};return t.slideid=e.absoluteId,t.slidetitle=t.displaytext=e.get("title"),t}}],n&&kl(t.prototype,n),i&&kl(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Da),Xl=Yl,$l="rtl",Jl=function(){return Q.model.rtl?$l:""},es=function(e){Q.model.rtl&&!e.contains($l)?e.add($l):!Q.model.rtl&&e.contains($l)&&e.remove($l)},ts=DS.detection,ns="outline",is=function(e){for(var t="";e;)t=e.index+1+"."+t,e=null!=e.parent&&"slidelink"===e.parent.kind&&e.parent;return t+" "},rs=function(){var e=de.getColor(DS.constants.refs.FRAME,".cs-brandhighlight-bg","background-color",".cs-base.cs-custom-theme");if(null==Pl||jl!==!!Q.model.rtl||Tl!==e){var t=de.getColor(DS.constants.refs.FRAME,".cs-tabs.cs-selected","color");Pl=".item-collapsible:not(.item-collapsed) .is-scene {\n color: ".concat(t," !important;\n }\n \n .is-scene:not(.item-collapsed) .cs-icon-carrot * {\n fill: ").concat(t," !important;\n }"),jl=!!Q.model.rtl,Tl=e;var n=window.btoa("\n \n \n \n \n "));Pl+="\n .cs-listitem.cs-selected {\n background-position: ".concat(jl?"right":"left",' top !important;\n background-repeat: no-repeat !important;\n background-size: 6px 100% !important;\n background-image: url("data:image/svg+xml;base64,').concat(n,'") !important; \n }')}return Pl},os=Q.def(ns,Xl,(function(){var e=Q.model;return{tag:"nav",attrs:{id:ns+"-content",class:"is-scrollable cs-outline ".concat(Jl()),tabindex:-1,"aria-label":e.getString("outline-container")},y:function(){return null!=this.parent.children.search?this.parent.children.search.h+bi:bi},w:"100%",h:function(){return this.parent.h-(null!=this.parent.children.search?this.parent.children.search.h+bi:bi)},overflow:"auto",draws:[],html:function(){var t=this,n={},i=0;DS.flagManager.multiLangSupport&&this.el.querySelectorAll("[data-collapsible-id]").forEach((function(e){var t=e.dataset.collapsibleId;n[t]=!e.classList.contains("item-collapsed")}));var r=e.frame.navData.outline.links||[],o=e.frame.controlOptions.menuOptions,a=o.wrapListItems,l=o.autonumber,s=o.tooltips,c=o.flow;this.el.depth=0;var u=this.el;return u.innerHTML="\n \n "),function r(o,u,f){var d=document.createElement("ul");d.depth=u.depth+1,d.tabIndex=-1,null!=f?d.setAttribute("role","group"):(d.setAttribute("aria-label",e.getString("outline")),d.setAttribute("role","tree")),u.appendChild(d);for(var h=0;h\n ').concat(k).concat(y.displaytext," ").concat(S,"\n\n ").concat(b?Qn("carrot")("".concat(w?-1:1,"px")):"",'\n \n \n \n ");p.innerHTML=O,b&&(DS.flagManager.multiLangSupport&&p.setAttribute("data-collapsible-id",i),p.setAttribute("aria-expanded",y.expand),p.classList.add("item-collapsible"),null!=n[i]?n[i]||p.classList.add("item-collapsed"):y.expand||p.classList.add("item-collapsed"),r(y.links,p,y),i++)}}(r,u),u.innerHTML},updateHook:function(){var e=document.getElementById("sceneStyle");if(ts.browser.isIE){var t=document.createElement("style");t.setAttribute("id","dynamicStyle"),t.setAttribute("type","text/css"),t.cssText=rs(),document.head.querySelector("#dynamicStyle")||document.head.appendChild(t)}else null!=e&&(e.innerText=rs());es(this.el.classList)}}}));function as(e){return function(e){if(Array.isArray(e))return ls(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ls(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ls(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ls(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);ne.length)&&(t=e.length);for(var n=0,i=new Array(t);ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n0}},{key:"getItems",value:function(){return this.items=this.items||Ts(this.el.querySelectorAll(".resource a")),this.items}},{key:"activateItem",value:function(e){Ns(e.keyCode)&&DS.windowOpen.open({url:this.currentItem.dataset.url})}},{key:"getOffsetTop",value:function(e){return this.currentItem.offsetTop}},{key:"getFocusRectTarget",value:function(){return this.currentItem.parentNode}},{key:"onShowTabItem",value:function(e,t){if("resource"===e&&null!=t){var n=this.getItems().find((function(e){return e.dataset.translationId===t}));null!=n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}}}])&&_s(t.prototype,n),i&&_s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(xs);function Vs(e){return function(e){if(Array.isArray(e))return Ws(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ws(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ws(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ws(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n\n \n ")},updateHook:function(){es(this.el.classList)},methods:{onPanelVisible:function(){Vs(this.el.querySelectorAll(".resource")).forEach((function(e){var t=e.querySelector(".file-name").scrollHeight;e.clientHeight\n
    \n '.concat($s(e,"frame.glossaryData",[]).map((function(e,t){var n="glossary-def-".concat(t),i=DS.flagManager.aiCourseTranslation&&e.translationId;return'\n
    \n ").concat(e.title,'\n
    \n
    \n ").concat(e.content.toString().split(Js.LINE_BREAK_REGEX).map((function(e){return"

    ").concat(e,"

    ")})).join(""),"\n
    \n ")})).join(""),"\n
    \n ")},updateHook:function(){es(this.el.classList)}}}));function nc(e){return nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nc(e)}function ic(e,t){for(var n=0;n\n ',model:e.frame}}))},gc=DS.utils.getPath,mc=DS.constants.refs.FRAME,wc="sidebarPanels",Sc=(Q.def(wc,(function(e){var t=Q.getNamespace(e),n=t.sidebar,i=t.tabs,r=t.logo;return{attrs:{id:wc},x:0,z:1,y:function(){return i.bottom()},w:function(){return n.data.actualWidth()},h:function(){var e=r?r.h+bi:0;return n.h-i.h-e},childDef:function(){Sc(Q.model,e)}}})),function(e,t){gc(e,"sidebarTabs",[]).forEach((function(e,n){!function(e,t,n,i){var r=t.name,o=r+"Panel",a=0===n,l=Q.def(o,vo,{attrs:{id:o,class:"cs-menu cs-panel is-scrollable panel","aria-labelledby":r+"-tab",role:"tabpanel",tabindex:-1},visibility:"no-reflow",style:{display:a},x:0,y:0,w:"100%",h:"100%",html:""});l.init(),Q.getNamespace(mc).sidebarPanels.append(l);var s=vc[r];null!=s&&(s.nameSpace=i,s.init(),l.append(s))}(0,e,n,t)}))}),kc="topTabs";function Cc(e){return Cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cc(e)}function Oc(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];this.translationShown=e,this.el.style.border="1px solid ".concat(this.view.selectedBorderColor),this.el.setAttribute("aria-expanded",!0),Zc(this.el,"cs-selected"),Zc(this.el,"active"),this.view.panel.el.style.display="block",this.view.panel.viewLogic.focusChild(),Hc("mouseup",this.onCheckShouldHide),Vc.on(Wc.controlLayout.CHANGED,this.hidePanel),this.showing=!0}},{key:"hidePanel",value:function(){this.translationShown=!1,this.el.style.border="1px solid rgba(0, 0, 0, 0)",this.el.setAttribute("aria-expanded",!1),Qc(this.el,"cs-selected"),Qc(this.el,"active"),this.view.panel.el.style.display="none",Nc("mouseup",this.onCheckShouldHide),Vc.off(Wc.controlLayout.CHANGED,this.hidePanel),this.showing=!1}},{key:"onBlur",value:function(e){zc.presentation.isPreview()&&!window.globals.HAS_SLIDE||this.onCheckShouldHide({target:e.relatedTarget}),_c(Rc(o.prototype),"onBlur",this).call(this,e)}},{key:"onCheckShouldHide",value:function(e){null!=e.target&&(Bc(e.target,"panel")||this.el.contains(e.target))||this.hidePanel()}},{key:"isLive",value:function(){var e=Q.model.currControlLayout[this.model.name];return Uc.isObject(e)?e.enabled:e}},{key:"teardown",value:function(){Vc.off(Wc.controlLayout.CHANGED,this.hidePanel),Vc.off(Wc.sidebar.ACTIVE_TAB_SET)}}],n&&jc(t.prototype,n),i&&jc(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(_t),qc=Gc;function Yc(e){return Yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yc(e)}function Xc(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];au.trigger(ou.tabLink.SHOW_PANEL,this),lu.deviceView.isPhone&&cu.from(this.view.panel.el,.12,{left:"left"===Q.model.sidebarOpts.sidebarPos?30:-30}),gu(document.body,"nested-panel-shown"),this.el.setAttribute("aria-expanded",!0),this.el.classList.add("cs-selected","active"),this.view.panel.el.style.display="block",this.updatePanel(),t||this.view.panel.viewLogic.focusChild(),this.removeShowPanelListeners=ru.flow(hu("keydown",(function(t){return e.handleKeyDown(t)})),hu(wu,this.onCheckShouldHide)),au.on(ou.controlLayout.CHANGED,this.hidePanel),this.showing=!0,au.trigger(ou.tabLink.PANEL_SHOWN,this)}},{key:"handleKeyDown",value:function(e){su.isEscapeKey(e.which)&&(this.hidePanel(),this.el.focus(),uu.setFocusRectOn(this.el))}},{key:"hidePanel",value:function(e){au.trigger(ou.tabLink.HIDE_PANEL,this),!e&&lu.deviceView.isPhone&&this.view.panel.inEllipsis||($c(nu(o.prototype),"hidePanel",this).call(this),null!=this.removeShowPanelListeners&&this.removeShowPanelListeners(),mu(document.body,"nested-panel-shown"))}}],n&&Xc(t.prototype,n),i&&Xc(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(qc),ku=Su;function Cu(e){return function(e){if(Array.isArray(e))return Ou(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ou(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ou(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0){var t=e.shift();return Iu.unshift(t),t}},Bu=function(e){return e.reduce((function(e,t){return t.update(),e+(t.isTopLink?t.w:0)}),0)};function Mu(e){return function(e){if(Array.isArray(e))return Hu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Hu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hu(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n'.concat(a,"")},methods:{updateDomStrings:function(){var e="customlink"===r.name?i.getControlString(r.properties.data):i.getString(r.name);this.viewLogic.labelEl.textContent=e}},wPad:14,z:2,w:"fit-to-text-w",h:"fit-to-text-h",minH:23});h.init(),Q.getNamespace(xu)[e.id].append(h,!0),u||function(n,i,r,o){var a=o.name+"Panel",l="linksRight"===e.id,s=Q.getNamespace(n),c=(s.topBar,s.frame,s.sidebar),u=s.slide,f=(s.wrapper,s.topEllipsis,de.getColor(n,".cs-topmenu-item.active .cs-panel","border-top-color",".cs-base")),d=Lu.env.isFileProtocol||Lu.browser.isFF?"background-color":"background",h=de.getColor(n,".cs-topmenu-item.active .cs-panel",d),p=Q.getNamespace(n)[o.name+"Link"],y=Q.getNamespace(n),b=y.topEllipsisPanel,v=y.linksRight,g=Q.model.rtl,m=Q.def(a,vo,{attrs:{id:a,class:"cs-topmenu-item topmenu-item active cs-menu cs-panel panel top-tabs-drop topmenu-panel-align-".concat(l?"right":"left"),tabIndex:-1},style:{borderColor:f,background:h},w:Pu,h:function(){return this.height||200},z:u.z+1,visible:!1,lnk:i,tabsId:t,overflow:"visible",x:function(){var e=0;if(p.inEllipsis)return!g||Lu.deviceView.isPhone?"left"===c.pos?e=b.maxWidth-Pu+8:Lu.deviceView.isPhone||(e=(b.maxWidth-Pu)/2+8):"left"!==c.pos&&(e=-2),e;var t=(e=i.x+(i.w-Pu)/2)+Pu;return!p.inEllipsis&&t>v.w&&(e=v.w-Pu-20),e=Math.max(g?20:0,e),this.children.arrow.el.style.left="".concat(i.x-e+i.w/2-11,"px"),e},y:function(){return p.inEllipsis?0:this.lnk.h+10},html:Vi(h,f)});m.init(n),Q.getNamespace(xu)[e.id].append(m),i.panel=m;var w=vc[o.name];null!=w&&(w.init(n),m.append(w))}(n,h,0,r)}),r=function(e,t){[].concat(Cu(e.topTabsLeft),Cu(e.topTabsRight)).forEach((function(n,r){i(t,e,n,r)}))}}({id:"linksRight",dir:"Right",linkListName:"topTabsRight",x:function(){var e=Q.getNamespace(DS.constants.refs.FRAME),t=e.hamburger,n=e.title,i=e.sidebar,r=e.topEllipsis,o=0;return Q.model.rtl?(i.visible&&(o+=t.w),r.visible&&(o+=r.w,"right"===i.pos&&(o=r.w))):n.visible?o=n.right():i.visible&&(o=t.w),o+("right"===i.pos?0:vi)},methods:{tabWidths:function(){return Bu(this.children)},phoneUpdateHook:function(){if(0!==this.children.length||0!==Iu.length){var e=Q.getNamespace(this.nameSpace),t=e.topEllipsis,n=e.topEllipsisPanel;this.children.forEach((function(e){var i=n.children.links.el;null!=e.panel&&(e.panel.inEllipsis=!0,i.insertBefore(e.panel.el,i.firstChild),e.panel.update()),e.inEllipsis=!0,i.insertBefore(e.el,i.firstChild),t.setVisibility(!0)})),this.updateHook=DS._.noop}}},updateHook:function(){if(DS.detection.deviceView.isPhone)this.phoneUpdateHook();else{var e=this.children;if(Au||0!==this.children.length||DS.presentation.isPreview()||this.setVisibility(Iu.length>0||this.children.some((function(e){return e.visible}))),Au=!1,(0!==e.length||0!==Iu.length)&&null!=this.nameSpace){var t=Q.getNamespace(this.nameSpace),n=t.linksRight,i=t.topEllipsis,r=t.sidebar,o=t.topEllipsisPanel,a=this.w;if(Eu>a&&(Du=!0),Eu=a,Du&&Bu(e)>this.w)for(;Bu(e)>this.w;){var l=Ru(this.children);if(null!=l&&l.isTopLink){if(null!=l.el){var s=o.children.links.el;null!=l.panel&&(l.panel.inEllipsis=!0,s.insertBefore(l.panel.el,s.firstChild),l.panel.update()),l.inEllipsis=!0,s.insertBefore(l.el,s.firstChild)}i.setVisibility(!0)}}else if(Iu.length>0){var c=Bu(e),u=Iu[0];this.w>c+u.w&&(Iu.shift(),this.el.appendChild(u.el),null!=u.panel&&(u.panel.inEllipsis=!1,u.panel.update(),this.el.appendChild(u.panel.el)),this.children.unshift(u),u.inEllipsis=!1)}0===Iu.length&&i.visible&&i.setVisibility(!1),Du=!1;var f={toLeft:!0,startPos:n.w-bi,hook:function(e){null!=e.panel&&e.panel.update()}};"right"!==r.pos||Q.model.rtl?Q.model.rtl&&(f.toLeft=!1,f.startPos=0,f.reverse=!1):(f.toLeft=!1,f.startPos=0,f.reverse=!0),this.flowChildren(f)}}}});var Nu=DS,Fu=Nu.detection,Vu=Fu.deviceView,Wu=Fu.orientation,Uu=Nu.dom,zu="bottomBar";Q.def(zu,(function(e){var t=Q.getNamespace(e),n=t.frame,i=t.topBar,r=t.fullScreenClose,o=t.topEllipsis,a=t.playbackControls,l=t.playPause,s=t.seek,c=t.reset,u=(t.miscControls,t.captions),f=t.settings,d=t.playbackSpeed,h=t.fullScreenToggle,p=t.navControls,y=t.prev,b=t.next,v=t.submit;return{tag:"section",attrs:{id:zu},overflow:"visible",parentAlign:"rb",x:function(){return i.x},yl:function(){return Vu.isPhone?0:n.h-Ln},yp:function(){return n.h-Ln},w:function(){return i.w},updateHook:function(){this.hasAllChildren()&&(Vu.isPhone?this.updatePhoneLayout():this.updateTabletLayout())},childVisibilityChangedHook:function(){this.update()},methods:{updatePhoneLayout:function(){var e=Q.model.currControlLayout;s.setVisibility(e.seekbar&&(!Vu.isPhone||Wu.isLandscape)),Wu.isLandscape?this.updatePhoneLandscapeLayout():this.updatePhonePortraitLayout()},updatePhoneLandscapeLayout:function(){var e=this;this.revertOverflowVisibility();var t=20;null!=l&&l.w>0&&(t+=l.w),a.top=n.h-Ln+5,a.left=On,a.width=this.w-On,s.width=this.w-(t+En+40),this.updateChildren(!0);var i=50,c={visible:!0,parent:{visible:!0}},p=[r,o,u,f,d,h,c,y,b,v].filter((function(e){return e&&e.visible&&e.parent.visible})),g=p.indexOf(c),m=p.length-1<5;m?p.splice.apply(p,[g,1].concat(Mu(new Array(5-(p.length-1))))):p.splice(g,1),this.applyOverflowVisibility(p,5,[h,u]);var w=i*p.length,S=(this.parent.h-w)/p.length||1,k=S/2,C=m?S:(this.parent.h-(w+i))/(p.length+1)||1,O=k,E=!1;this.styleConfigs=[],p.forEach((function(t,n){null!=t?(n>0&&e.styleConfigs.push({id:_.kebabCase(t.attrs.id),x1:t.x,y1:k+(i-t.h)/2,x2:t.x,y2:O+(i-t.h)/2}),t.update()):m&&!E&&(E=!0,O-=i+C-10),k+=i+S,O+=i+C})),this.addReplayStyles()},updatePhonePortraitLayout:function(){var e=this;this.revertOverflowVisibility(),a.top=0,a.update();var t,n=Q.model.rtl?function(e){return e.reverse()}:function(e){return e},i={visible:!0,parent:{visible:!0}},r=[l,c,u,d,f,h,i,y,b,v].filter((function(e){return e&&e.visible&&e.parent.visible})),o=r.indexOf(i);r.length-1<5?(t=r).splice.apply(t,[o,1].concat(Mu(new Array(5-(r.length-1))))):r.splice(o,1);this.applyOverflowVisibility(r,6,[c,h,u]);var s=50*(r=n(r)).length,p=(this.w-s)/r.length||1,g=p/2;r.forEach((function(t,n){null!=t&&(t.left=g+(50-t.w)/2,t.top=(e.h-t.h)/2,t.update()),g+=50+p}))},updateTabletLayout:function(){var e=Q.model.rtl;if(s.width=0,p.update(),a.visible&&s.visible){var t=this.calcChildrensWidth()+On,n=e?1:0,i=(this.children.filter((function(e){return e.w>0})).length+n)*On;s.width=this.w-t-i}this.flowChildren({alignChild:!0,bounds:{t:0,b:this.h,l:0,r:this.w},rtl:!1,pad:On,reverse:!0})},addReplayStyles:function(){var e=this;null==this.styleDiv&&(this.styleDiv=document.createElement("div"),this.el.appendChild(this.styleDiv));var t=this.styleConfigs.map((function(e){var t=e.id,n=e.x1,i=e.y1,r=e.x2,o=e.y2;return[".is-landscape #".concat(t,":not(.lightboxed) { left: ").concat(n,"px !important; top: ").concat(i,"px !important; transform: unset !important; }"),".is-landscape.has-reset.timeline-paused #".concat(t,":not(.lightboxed) { left: ").concat(r,"px !important; top: ").concat(o,"px !important; transform: unset !important; }")].join(" ")}));this.styleDiv.innerHTML=""),window.requestAnimationFrame((function(){var t=e.styleConfigs.map((function(e){var t=e.id;e.x1,e.y1,e.x2,e.y2;return[".is-landscape.has-reset #".concat(t," { transition: top ease-out 200ms }")].join(" ")}));e.styleDiv.innerHTML+="")}))},applyOverflowVisibility:function(e,t,n){for(this.ctrlOverflow=[];e.length>t&&n.length>0;){var i=n.pop(),r=e.indexOf(i);r>=0&&(e.splice(r,1),i.setVisibility(!1),this.ctrlOverflow.push(i),Uu.addClass(this.el,"".concat(i.nameKey,"-overflow")))}return e},revertOverflowVisibility:function(){var e=this;null!=this.ctrlOverflow&&this.ctrlOverflow.forEach((function(t){t.setVisibility(t.layoutDefaultVisible),Uu.removeClass(e.el,"".concat(t.nameKey,"-overflow"))}))}},hp:function(){return Ln},hl:function(){return Vu.isPhone?n.h:Ln}}}));var Ku="navControls",Zu=DS.detection,Qu=Zu.deviceView;Zu.orientation;Q.def(Ku,(function(e){var t=Q.model.rtl,n=Q.getNamespace(e).frame;return{attrs:{id:Ku,role:"navigation","aria-label":"slide navigation"},overflow:"visible",parentAlign:function(){return Qu.isTablet?t?"l":"r":"rb"},wp:function(){return this.width||0},hp:Ln,wl:function(){return Qu.isPhone?En:this.wp},hl:function(){return Qu.isPhone?n.h:this.hp},yp:"vertical-center",yl:function(){return 0},xl:function(){return Qu.isPhone?this.parent.w-this.w:this.xp},xp:function(){return this.left||0},updateHook:function(){Qu.isTablet&&this.flowChildren({rtl:t,startPos:-10,pad:On,fullUpdate:!0,sizeToChildren:!0})}}}));var Gu="miscControls",qu=DS.detection.deviceView;function Yu(e){return Yu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yu(e)}function Xu(e,t){for(var n=0;n=1}},{key:"onChange",value:function(e){this.currTimeline.progress(this.progressBarEl.value/this.progressBarEl.max)}},{key:"onMouseDown",value:function(e){this.isUp=!1,this.removeEndListener=Lf(this.endEvent,this.onMouseUp),this.removeSeekListener=Lf(this.seekEvent,this.onSeek),this.currTimeline.onSeekStart(),this.onSeek(e)}},{key:"onMouseUp",value:function(e){this.onSeek(e),this.removeEndListener(),this.removeSeekListener(),this.isUp=!0,this.currTimeline.onSeekEnd()}},{key:"onKeydown",value:function(e){var t=e.which;Sf.isActionKey(t)?Pf.trigger(xf.player.TOGGLE_PLAYBACK):this.isSeekable()&&(Sf.isDownishKey(t)?this.seekBy(e,-100):Sf.isPageDownKey(t)?this.seekBy(e,-1e3):Sf.isUpishKey(t)?this.seekBy(e,100):Sf.isPageUpKey(t)&&this.seekBy(e,1e3))}},{key:"getViewBox",value:function(e){var t=this.view.getBox();return null!=e&&(t.x="focusin"===e.type?t.x+t.w/2:e.pageX,t.w=2),t}},{key:"onMouseMove",value:function(e){bt.updateTooltip(e.pageX,this.getTooltipString())}},{key:"setForFollowMouse",value:function(){this.el.addEventListener("mousemove",this.onMouseMove)}},{key:"stopFollowMouse",value:function(){this.el.removeEventListener("mousemove",this.onMouseMove)}},{key:"getTooltipString",value:function(e){if(null!=this.duration){this.view.getBox().x;var t=this.getSeekValue(kf.mouseX)*this.duration;null!=e&&"focusin"===e.type&&(t=Math.floor(wf.toSeconds(this.progressBarEl.value)));var n=wf.formatSecondsAsTime(t),i=wf.formatSecondsAsTime(this.duration);return"".concat(Tf(n)," / ").concat(Tf(i))}}}])&&uf(t.prototype,n),i&&uf(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(_t);function _f(e){return _f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_f(e)}function Df(e,t){for(var n=0;n=n&&(i=0),this.previewWidth=Math.min(e.w,t),this.prevProgWidth=Math.min(n,i),this.updatePreviewEls(),this.detailsId=window.requestAnimationFrame(this.animateProgressDetails)}}],n&&Df(t.prototype,n),i&&Df(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(jf),Kf=zf,Zf=(DS.detection.device.isMobile,"seek");function Qf(e){return Qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qf(e)}function Gf(e,t){for(var n=0;n\n #seek:before {\n border: 1px solid ".concat(r,";\n background-image: ").concat(o,';\n background-repeat: no-repeat !important;\n }\n \n\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n '),methods:{updateDomStrings:function(){this.viewLogic.progressBarEl.setAttribute("aria-label",t.getString("acc_slide_progress"))}}}}));var ed=DS,td=ed._,nd=ed.pubSub,id=ed.events,rd=ed.dom,od=ed.utils.pxify,ad=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yf(e,t)}(o,e);var t,n,i,r=Xf(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=r.call(this,e),td.bindAll($f(t),"onSlideStarted","onStartProgressDetails","onStopProgressDetails","animateProgressDetails"),nd.on(id.slide.STARTED,t.onSlideStarted),t.resetPreviewWidths(),t.isUserControlled&&(t.view.el.addEventListener("mouseenter",t.onStartProgressDetails),t.view.el.addEventListener("mouseleave",t.onStopProgressDetails)),t}return t=o,n=[{key:"onTick",value:function(e){qf(Jf(o.prototype),"onTick",this).call(this,e),this.progress=e}},{key:"resetPreviewWidths",value:function(){this.previewWidth=0,this.prevProgWidth=0}},{key:"onSlideStarted",value:function(){this.resetPreviewWidths()}},{key:"onStartProgressDetails",value:function(){this.animateProgressDetails()}},{key:"onStopProgressDetails",value:function(){window.cancelAnimationFrame(this.detailsId)}},{key:"updatePreviewEls",value:function(){this.progressPreviewEl.style.width=od(this.previewWidth),this.prevProgressPreviewEl.style.width=od(this.prevProgWidth)}},{key:"animateProgressDetails",value:function(){var e=this.view.getBox(),t=rd.mouseX-e.x,n=this.progress*e.w,i=n-e.w*(t/e.w);t>=n&&(i=0),this.previewWidth=Math.min(e.w,t),this.prevProgWidth=Math.min(n,i),this.updatePreviewEls(),this.detailsId=window.requestAnimationFrame(this.animateProgressDetails)}}],n&&Gf(t.prototype,n),i&&Gf(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(jf),ld=ad,sd=(DS.detection.device.isMobile,"floatingSeek");Q.def(sd,ld,(function(e){var t=Q.model,n=Q.model.frame.controlOptions.controls,i=n.readonly,r=de.getColor(e,".cs-seekcontrol","border-top-color"),o=de.getColor(e,".cs-seekcontrol","background-image").replace("(, ","(180deg,"),a=Q.getNamespace(e).slide;return{attrs:{id:sd,tabindex:-1,class:"progress-bar cs-seekcontrol ".concat(i?"read-only":"")},x:On,y:function(){return this.parent.h-Ln-15},z:2,overflow:"visible",w:function(){return this.parent.w-20},h:30,updateHook:function(){var e=this.el.offsetParent;if(DS.detection.deviceView.isMobile&&DS.detection.orientation.isLandscape&&null!=e){var t=a.el.getBoundingClientRect(),n=t.height+t.top,i=e.getBoundingClientRect(),r=this.children.floatingSeek.el.getBoundingClientRect(),o=i.top+r.top-this.el.getBoundingClientRect().top+r.height;this.el.style.top="".concat(n-o,"px"),this.el.style.width="".concat(t.width,"px"),this.el.style.left="".concat(t.left-i.left,"px"),this.el.style.transform="none"}},html:"\n \n\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n '),methods:{updateDomStrings:function(){this.viewLogic.progressBarEl.setAttribute("aria-label",t.getString("acc_slide_progress"))}}}}));var cd=function(){return"no icon"},ud={next:function(){return'\n \n \n '},prev:function(){return'\n \n \n \n'},submit:function(){return'\n \n \n '},replay:function(){return'\n \n '},play:function(){return'\n \n '},pause:function(){return'\n \n \n \n \n '},volume:function(e,t){var n=Math.min(1,e/5),i=Math.min(1,Math.max(0,e/5-.5));return'\n \n \n \n \n \n \n \n \n \n \n \n ')},captionsOn:function(e){return'\n \n '},captionsOff:function(e){return'\n \n \n \n \n '},captions:function(){return'\n \n \n \n \n \n '},carrot:function(e){return'\n \n \n \n \n ')},search:function(){return'\n \n \n \n \n \n \n \n '},searchClear:function(){return'\n \n \n \n \n \n \n \n \n \n '},filter:function(){return'\n \n '},close:function(){return'\n \n \n '},clear:function(){return'\n \n \n '},hamburger:function(){return'\n \n \n \n '},file:function(){return'\n \n \n \n \n \n \n \n '},link:function(e){return'\n \n \n ')},disableOrientation:function(){return'\n \n \n \n \n \n '},enterFullScreen:function(){return'\n \n \n \n \n \n \n '},exitFullScreen:function(){return'\n \n \n \n \n \n \n '},settings:function(){return'\n \n \n \n '},playbackSpeed:function(){return'\n \n \n \n '},track:function(e,t){return'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ')},downArrow:function(e,t){return'\n
    \n ')}},fd={play:function(){return'\n \n '}},dd=function(e){return DS.detection.env.isPerpetual?ud[e]||cd:fd[e]||ud[e]||cd};function hd(e){return hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hd(e)}function pd(e,t){for(var n=0;n\n \n\n \n\n \n \n\n ')},methods:{updateDomStrings:function(){this.el.setAttribute("aria-label",this.toggle?Q.model.getString("acc_pause"):Q.model.getString("acc_play"))}},calcTextSize:!0,y:"vertical-center",x:function(){return this.left||0},minH:34,minW:34,z:1}}));var Nd=DS,Fd=Nd._,Vd=Nd.events,Wd=Nd.pubSub,Ud=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Id(e,t)}(o,e);var t,n,i,r=Ad(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),Md(Rd(t=r.call(this,e)),"hasTooltip",!0),Md(Rd(t),"tooltipKey","acc_replay"),Fd.bindAll(Rd(t),"onClickBtn","onTimelineChanged"),t.onClick(t.onClickBtn),Wd.on(Vd.playbackControls.TIMELINE_CHANGED,t.onTimelineChanged),t}return t=o,(n=[{key:"onClickBtn",value:function(){this.resetTimeline()}},{key:"resetTimeline",value:function(){this.currTimeline.reset()}},{key:"onTimelineChanged",value:function(e){this.currTimeline=e}}])&&Dd(t.prototype,n),i&&Dd(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(_t),zd=DS.detection.deviceView,Kd="reset";function Zd(e){return Zd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zd(e)}function Qd(e,t){for(var n=0;n').concat(i.getString(e),""):"",o=n.includes("icon")||ah?''.concat(dd(i.rtl?lh[e]:e)(),""):"";return i.dir(t?[o,r]:[r,o]).join("\n")},calcTextSize:!0,wp:"fit-to-text-w",wl:function(){return ah?this.width||0:this.wp},yp:function(){return(this.parent.h-this.h)/2},yl:function(){return!ah||r?this.yp:this.top||0},xp:function(){return this.left||0},xl:function(){return r||!ah?this.xp:(this.parent.w-this.w)/2},methods:{shortcutActivated:function(){this.visible&&this.viewLogic.onClickBtn()},updateDomStrings:function(){null!=this.viewLogic.labelEl&&(this.viewLogic.labelEl.textContent=i.getString(e))}},overflow:"visible",padLeft:20,padRight:3.5,minW:30,minH:30}}))};function fh(e){return fh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fh(e)}function dh(e,t){for(var n=0;n\n #captions.cs-button:after {\n background: ".concat(e?t:"transparent",";\n }\n \n ").concat(dd("captions")(),"\n ")},xp:function(){return this.left||0},xl:function(){return jh.isPhone&&!n?(this.parent.w-this.w)/2:this.xp}}}));var Dh="title",Ih=DS,Ah=Ih.detection,Rh=Ih.utils;Q.def(Dh,_t,(function(e){var t,n=Q.model,i=Q.model.frame,r=Q.getNamespace(e),o=r.hamburger,a=r.sidebar,l="right"===a.pos&&!n.rtl,s=i.fontscale/100;t=1.23077*s*13+bi;var c=!Ah.deviceView.isPhone&&n.sidebarOpts.titleEnabled;return{simpleView:!0,id:Dh,tag:"h1",attrs:{class:"presentation-title cs-title"},overflow:"visible",x:function(){var e=a.visible?o.w:11,t=n.rtl?this.parent.w-this.w-11-11:11+e;return"right"===a.pos&&o.visible&&(t-=e),t},y:"vertical-center",calcTextSize:!0,w:"fit-to-text-w",h:22,html:function(){return"
    ".concat(c?n.title.text:"","
    ").concat(l?'
    '):"")},methods:{updateDomStrings:function(){c&&(this.viewLogic.labelEl.textContent=Rh.decodeHtml(n.title.text))}},visible:c}}));function Bh(e){return Bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bh(e)}function Mh(e,t){for(var n=0;n
    \n ")})).join("")},getIconConfigs:function(){return[{name:"captions",labelId:"acc_closed_captions",getIcon:function(){return"\n \n
    ').concat(dd("captions")(),"
    \n ")}},{name:"fullScreenToggle",labelId:"acc_enter_fullscreen",getIcon:function(){return'\n
    '.concat(dd("enterFullScreen")()).concat(dd("exitFullScreen")(),"
    \n ")}},{name:"reset",labelId:"acc_replay",getIcon:dd("replay")}]},getIconControls:function(){return this.getIconConfigs().map((function(e){var n=e.name,i=e.labelId,r=e.getIcon;return'\n \n ")})).join("")},updatePanelPosition:function(){if(null!=l){var e=this.children.settingsPanel.el;e.style.left=0;var t=e.getBoundingClientRect(),n=l.el.getBoundingClientRect(),i=0;t.right>n.right&&(i=n.right-(t.right+On)),t.left\n ').concat(dd("settings")(),'\n \n
    \n
    \n ').concat(this.getIconControls(),'\n
    \n
    \n ').concat(this.getToggleControls(),'\n
    \n
    \n
    \n ').concat(dd("downArrow")(n,i),"\n
    \n
    \n
    \n ");return e}}}));var ey=DS.appState,ty=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xp(e,t)}(o,e);var t,n,i,r=$p(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,e)).selectBtnEl.addEventListener("change",(function(e){t.handleSpeedChanged(e)})),t}return t=o,(n=[{key:"handleSpeedChanged",value:function(e){var t=Number(e.target.value);ey.setPlaybackSpeed(t),this.view.updateSelected(t)}}])&&Yp(t.prototype,n),i&&Yp(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(_t),ny=DS.detection,iy=ny.deviceView,ry=ny.device,oy=ny.os,ay="playbackSpeed",ly=String.fromCharCode(10003),sy=String.fromCharCode(160);Q.def(ay,ty,(function(e){var t=Q.model,n=de.getColor(e,".cs-button .cs-icon","fill");return{noUpdate:!0,attrs:{id:ay,class:"btn cs-button cs-settings"},overflow:"visible",w:30,parentAlign:"l",h:function(){return 30},xl:function(){return iy.isPhone?this.parent.w-En+(En-this.w)/2:this.xp},xp:function(){return this.left||0},y:"vertical-center",methods:{updateSelected:function(e){ry.isTablet&&oy.isAndroid&&this.el.querySelectorAll("option").forEach((function(t){var n=Number(t.value)===e?ly:sy;t.label="".concat(n," ").concat(t.label.substr(1))}))},getSpeedOptions:function(){var e=[{label:"2",value:2},{label:"1.75",value:1.75},{label:"1.5",value:1.5},{label:"1.25",value:1.25},{label:Q.model.getString("playback_speed_normal"),value:1,ref:"Normal"},{label:"0.75",value:.75},{label:"0.5",value:.5},{label:"0.25",value:.25}],t=DS.appState.getPlaybackSpeed();return e.map((function(e,n){var i=e.label,r=e.value,o=e.ref,a="";null!=o&&(a='data-ref="label'.concat(o,'"'));var l=r===t,s="";return DS.presentation.isPreview()&&(i="".concat(sy).concat(i).concat(sy),s='style="font-size: initial; color: black;"'),ry.isTablet&&oy.isAndroid&&(i=l?"".concat(ly," ").concat(i):"".concat(sy," ").concat(i)),"\n \n ")})).join("")},updateDomStrings:function(){this.viewLogic.labelNormalEl.textContent=t.getString("playback_speed_normal")}},html:function(){var e='\n \n ");return e}}}));var cy=function(){return"no icon"},uy={hamburger:function(){return'\n \n \n \n \n \n '},play:function(){return'\n \n '},next:function(){return'\n \n '},prev:function(){return'\n \n '},pause:function(){return'\n \n \n \n \n '},submit:function(){return'\n \n '},close:function(){return'\n \n \n '},captions:function(e){return'\n \n \n \n \n \n '},disableOrientation:function(){return'\n \n \n \n \n \n '},search:function(){return'\n \n \n \n \n '},enterFullScreen:function(){return'\n \n \n \n \n \n \n '},settings:function(){return'\n \n \n \n '},track:function(e){return'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ')},downArrow:function(){return'\n \n \n \n '}},fy=DS,dy=(fy.detection,fy.detection),hy=dy.orientation,py=dy.deviceView,yy="disableOverlay";function by(e){return by="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},by(e)}function vy(e,t){for(var n=0;n\n
    \n '.concat((t="disableOrientation",uy[t]||cy)(),'\n
    \n
    ').concat(e.getString("disabled_orientation"),"
    \n ");var t},add:!0}}));var ky=DS,Cy=ky.events,Oy=ky.pubSub,Ey=ky._,Ly=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gy(e,t)}(o,e);var t,n,i,r=my(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=r.call(this,e),Ey.bindAll(wy(t),"onEnterFullscreen"),t.onClick(t.onClickClose),t.view.setVisibility(!1),Oy.on(Cy.presentation.ENTER_FULLSCREEN,t.onEnterFullscreen),t}return t=o,(n=[{key:"onEnterFullscreen",value:function(){this.view.setVisibility(!0)}},{key:"onClickClose",value:function(e){var t=this;DS.utils.fullScreen.exit(),setTimeout((function(){Oy.trigger(Cy.presentation.EXIT_FULLSCREEN),t.view.setVisibility(!1)}),300)}}])&&vy(t.prototype,n),i&&vy(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(_t),xy=DS.constants.MOBILE_UI_SIZE,Py="fullScreenClose";function Ty(e){return Ty="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ty(e)}function jy(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n
    ',updateHook:function(){var e=this;window.requestAnimationFrame((function(){e.el.style["grid-template-columns"]=n(),e.el.style["grid-template-rows"]=i()}))},methods:{setBackgroundColor:function(e){this.el.childNodes.forEach((function(t){t.style.background=e}))}}}}));var ab=DS.constants.refs.FRAME,lb=DS.detection,sb=lb.deviceView,cb=sb.isPhone,ub=sb.isTablet,fb=lb.env.is360;function db(e){return db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},db(e)}function hb(e,t){for(var n=0;n')}}));var wb="lightBoxSlide";Q.def(wb,Cn,(function(e){var t=Q.getNamespace(e),n=t.lightBoxBottom,i=t.lightBoxWrapper;return{attrs:{class:"".concat(wb," window-slide ").concat(e,"-slide"),role:"dialog","aria-modal":!0},overflow:"visible",winScale:function(){return i.dimScale},pinchZoomBounds:function(){return{x:0,y:0,width:window.innerWidth,height:window.innerHeight-(null!=n?50:0)}},w:"100%",h:function(){return this.parent.h-(null!=n?50:0)},z:1,add:!0,html:'
    ',childViews:["captionContainer"],updateHook:function(){this.children.captionContainer.update()}}}));function Sb(e){return Sb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sb(e)}function kb(e,t){for(var n=0;n
    ',updateHook:function(){var e=this;window.requestAnimationFrame((function(){e.el.style["grid-template-columns"]=n(),e.el.style["grid-template-rows"]=i()}))},methods:{setBackgroundColor:function(e){this.el.childNodes.forEach((function(t){t.style.background=e}))}}}}));var Tb="LightboxWnd",jb=DS.utils.pxify,_b="lightBoxBottom";Q.def(_b,(function(e){return{tag:"nav",attrs:{id:_b,class:"option-pane"},methods:{getZoomBounds:function(){return Q.getNamespace(e).zoomBounds},getParentBB:function(){return null==this.cachedParentBB&&(this.cachedParentBB=this.parent.getBox(),null!=this.cachedParentBB&&(this.cachedParentBB.left=this.cachedParentBB.x,this.cachedParentBB.right=this.cachedParentBB.x+this.cachedParentBB.w,this.cachedParentBB.top=this.cachedParentBB.y,this.cachedParentBB.bottom=this.cachedParentBB.y+this.cachedParentBB.h)),this.cachedParentBB},shouldZoom:function(){return null!=this.getParentBB()&&null!=this.getZoomBounds()}},x:function(){if(this.shouldZoom()){var e=this.getZoomBounds(),t=this.getParentBB();return Math.floor(Math.max(e.left,0)-t.left)}return 0},y:function(){if(this.shouldZoom()){var e=this.getZoomBounds(),t=this.getParentBB();return t.h+(Math.min(e.bottom,window.innerHeight-50)-t.bottom)}return this.parent.y+this.parent.h-this.h},w:function(){if(this.shouldZoom()){var e=this.getZoomBounds();return Math.ceil(Math.min(e.right,window.innerWidth)-Math.max(e.left,0))}return this.parent.w},h:50,updateHook:function(){if(this.hasAllChildren()){this.flowChildren({alignChild:!0,bounds:{t:0,b:this.h,l:0,r:this.w},pad:4});var t=Q.getNamespace(e).wrapper.children.bottomBg.el;Object.assign(t.style,{left:jb(this.x),top:jb(this.y),width:jb(this.w),height:jb(this.h)}),this.cachedParentBB=null}},childVisibilityChangedHook:function(){this.update()}}}));var Db="lightBoxControlsBlocker";Q.def(Db,(function(e){var t=Q.getNamespace(e),n=t.lightBoxWrapper,i=t.lightBoxBottom,r=function(){return"".concat(n.x,"px ").concat(n.w,"px ").concat(window.innerWidth-n.x-n.w,"px")},o=function(){return"".concat(n.y,"px ").concat(n.h-i.h,"px ").concat(window.innerHeight-n.y-n.h+i.h,"px")};return{attrs:{id:Db,class:"frame-blocker-container"},x:0,y:0,z:gi,w:function(){return window.innerWidth},h:function(){return window.innerHeight},style:{"pointer-events":"none","grid-template-columns":r(),"grid-template-rows":o()},visible:!1,visibility:"no-reflow",html:'
    ',updateHook:function(){var e=this;window.requestAnimationFrame((function(){e.el.style["grid-template-columns"]=r(),e.el.style["grid-template-rows"]=o()}))},methods:{setBackgroundColor:function(e){this.el.childNodes.forEach((function(t){t.style.background=e}))}}}}));var Ib="LightboxControlsWnd",Ab="printWrapper";Q.def(Ab,(function(e){return{attrs:{id:Ab,class:"print-window"},w:0,h:0,style:{overflow:"visible",transformOrigin:"0 0",background:"transparent"},scale:1,x:0,y:0,add:!0}}));var Rb=DS.constants.printSettings,Bb="printSlide";Q.def(Bb,Cn,(function(e){var t=Q.model.slideWidth;return{attrs:{id:Bb,class:"cs-window window-slide ".concat(e,"-slide"),tabindex:-1},style:{overflow:"visible",transformOrigin:"0 0",background:"transparent",display:"none"},origin:"0 0",winScale:function(){return this.w/t},w:function(){var e=DS.detection.os,t=e.isAndroid,n=e.isIOS;return t?Rb.android.pageW:n?Rb.ios.pageW:Rb.desktop.pageW},h:0,x:0,y:0,z:1,html:'
    '}}));var Mb="PrintWindow",Hb="messageWindowWrapper";Q.def(Hb,(function(e){var t=Q.model,n=t.preso.display().windows().find({id:e}),i=Q.getNamespace(DS.constants.refs.FRAME),r=i.slide,o=i.wrapper;return{attrs:{id:Hb,class:"cs-base cs-".concat(t.frame.default_layout," fn-").concat(t.frame.default_layout)},w:.8*n.get("width"),h:n.get("height"),style:{overflow:"visible",transformOrigin:"0 0",background:"transparent"},scale:function(){return o.scale},x:function(){var e=o.scale;return o.x+(r.x+(r.w-this.w)/2)*e},y:function(){var e=o.scale;return o.y+(r.y+(r.h-this.h)/2)*e},add:!0}}));var Nb="messageWindowSlide";Q.def(Nb,Cn,(function(){return{attrs:{id:Nb,class:"cs-window","aria-labelledby":"slide-label-message",role:"alertdialog","aria-modal":!0,tabindex:-1},origin:"0 0",w:"100%",h:"100%",x:0,y:0,z:1,html:'
    '}}));Q.def("overlay",(function(){return{attrs:{class:"overlay overlay-message"},x:0,y:0,w:function(){return window.innerWidth},h:function(){return window.innerHeight},position:"fixed",add:!0}}));var Fb,Vb="MessageWnd";function Wb(e){return Wb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wb(e)}function Ub(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Wb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Wb(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Wb(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e,t){Je(e),function(e){var t=window.globalProvideData;if(window.globalProvideData=function(e,n){"frame"===e&&(null!=(ve=JSON.parse(n)).localization&&DS.flagManager.multiLangSupport?(DS.localizationManager.registerFrameLanguageData(ve.localization),DS.localizationManager.loadFrameData().then((function(e){ge=e,et()}))):et(),window.globalProvideData=t)},ze.on(_e,(function(e){new Ee,be=new f(ve,ge,e),Q.setModel(be),Qe.initialize(be),Ge.initialize((function(e){return be.getString(e)})),DS.frameModel=be,DS.views=Q,(DS.frameModel.frame.chromeless||DS.detection.env.hideFrame)&&qe.addClass(document.body,"chromeless"),ze.trigger(Ae)})),window.globals.useJson){var n=e.replace(".js",".json"),i=new XMLHttpRequest;return i.overrideMimeType("application/json"),i.onreadystatechange=function(){4===i.readyState&&200===i.status&&window.globalProvideData("frame",i.responseText.replace(/\\'/g,"'").replace(/\\"/g,'"'))},i.open("GET",n,!0),void i.send(null)}DS.loadScript(e)}(t)}((Ub(Fb={},ab,(function(e){var t,n,i=e.topTabsLeft,r=e.topTabsRight,o=e.sidebarOpts,a=o.timeEnabled,l=o.logoEnabled,s=o.html5_logo_url,c=e.frame.controlOptions.controls,u=c.closed_captions,f=c.settings,d=function(){return cb&&fb},h=Q.tree(ab,[{wrapper:["frameBlocker",e.frame.chromeless?"slide":{frame:[e.frame.chromeless?null:"sidebarOverlay","slide"].concat(rb(cb?["floatingSeek"]:[]),[{bottomBar:[{playbackControls:["playPause","seek","reset"]},{miscControls:[].concat(rb(u?["captions"]:[]),["playbackSpeed"],rb(f?["settings"]:[]))},{navControls:[].concat(rb(DS.utils.fullScreen.isSupported()?["fullScreenToggle"]:[]),["prev","next","submit"])}]},{sidebar:[].concat(rb(ub&&l&&s?["logo"]:[]),["hamburger","tabs","sidebarPanels"])},{topBar:["title",{topTabs:["arrowShadow","linksRight"]}].concat(rb(d()?["fullScreenClose"]:[]),[{topEllipsis:["topEllipsisPanel"]}],rb(a?["timer"]:[]))}])},e.frame.chromeless&&ub&&fb?"fullScreenToggle":null,e.frame.chromeless&&d()?"fullScreenClose":null]},"captionContainer"].concat(rb(fb?[]:["disableOverlay"])));t=document.querySelectorAll(".panel > div[id*=content]"),n=it.theme.isUnified?12:0,Array.from(t).forEach((function(e){var t=e.parentNode.id;if("outline-panel"!=t){var i=t.replace("-panel","");new nt(e,i,!1,n)}else{var r=e.querySelector("#outline-content"),o=e.querySelector("#search-results-content");null!=r&&new nt(r,"outline",!1,n),null!=o&&new nt(o,"search",!1,n)}}));var p=function(e){return function(t){return t.name===e}},y=function(e){return!i.some(p(e))&&!r.some(p(e))},b=function(e){return"customlink"===e.name},v=i.some(b)||r.some(b);DS.pubSub.on(DS.events.frameModel.LAYOUT_CHANGED,(function(t,n){if(n===ab){var i=function(e,t){var n=e.sidebarOpts.sidebarEnabled;return n&&(n=ot(e.sidebarTabs,t)),n}(e,t),r=ot([].concat(rb(e.topTabsRight),rb(e.topTabsLeft)),t),o={playPause:t.pauseplay,reset:t.seekbar,seek:t.seekbar,playbackControls:t.pauseplay||t.reset||t.seek,fullScreenToggle:t.fullScreenToggle||ub&&fb,playbackSpeed:t.playbackSpeedControl,next:t.next,prev:t.previous,submit:t.submit,skipnav:i||r,floatingSeek:t.seekbar&&t.pauseplay,volume:t.volume,glossaryTab:t.glossary,glossaryPanel:t.glossary&&y("glossary"),glossaryLink:t.glossary,resourcesTab:t.resources,resourcesPanel:t.resources&&y("resources"),resourcesLink:t.resources,outlineTab:t.outline.enabled,outlinePanel:t.outline.enabled&&y("outline"),outlineLink:t.outline.enabled,transcriptTab:t.transcript,transcriptPanel:t.transcript&&y("transcript"),transcriptLink:t.transcript,sidebar:i,bottomBar:!ub||e.bottomBarOpts.bottomBarEnabled,hasCustomLinks:v};DS.pubSub.trigger(DS.events.frame.LAYOUT_READY,o),Q.resetStates(ab),Q.updateVisibility(o,ab),Q.update(h)}})),DS.pubSub.on(DS.events.navcontrols.CHANGED,(function(e){var t=e.kind,n=e.name,i=e.visible,r=e.enable,o="toggle_window_control_visible"===t||"toggle_window_control"===t;"previous"===n&&(n="prev");var a=Q["enable_window_control"===t||"toggle_window_control"===t?"getTopNameSpace":"getFrameNameSpace"]()[n];null!=a&&(o?"toggle_window_control_visible"===t?(a.setVisibility(!a.visible),a.childVisibilityChanged()):a.setEnabled(!a.enabled):"set_window_control_visible"===t?(a.setVisibility(i),a.childVisibilityChanged()):a.setEnabled(r))}));var g=function(){Q.update(h);var e=Q.getNamespace(ab).sidebarPanels;e&&null!=e.children&&e.updateChildren(!0)};return ub&&DS.pubSub.on(DS.events.utilityWindow.DOCKED,(function(t,n){var i=n.dockedState,r=n.dockedWidth;e.setDocked(t,i,r),g(),DS.pubSub.trigger(DS.events.frame.SCALE);var o=DS.utils.getPath(Q.getNamespace(ab),"hamburger.viewLogic");null!=o&&o.onResize()})),DS.pubSub.on(DS.events.frame.REFLOW,g),{all:g,resize:g}})),Ub(Fb,Tb,(function(e){var t=Q.tree(Tb,["lightBoxBlocker","visibleOverlay",{lightBoxWrapper:["lightBoxSlide","lightBox"]},"lightBoxClose"]),n=Q.getNamespace(Tb);return n.slide=n.lightBoxSlide,n.wrapper=n.lightBoxWrapper,{all:function(){return Q.update(t)},resize:function(){n.isAttached&&Q.update(t)}}})),Ub(Fb,Ib,(function(e){var t=Q.tree(Ib,["lightBoxControlsBlocker","visibleOverlay",{lightBoxWrapper:["lightBoxSlide",{lightBox:[{lightBoxBottom:["submit","next","prev","captions"]}]}]},"lightBoxClose"]),n=Q.getNamespace(Ib);n.slide=n.lightBoxSlide,n.wrapper=n.lightBoxWrapper;var i=function(e,n){if(n===Ib){var i={next:e.next,prev:e.previous,submit:e.submit};Q.resetStates(Ib),Q.updateVisibility(i,Ib),Q.update(t)}};return DS.pubSub.on(DS.events.frameModel.LAYOUT_CHANGED,i),i(e.currControlLayout),{all:function(){return Q.update(t)},resize:function(){n.isAttached&&Q.update(t)},pinchZoom:function(){return n.lightBoxBottom.update()}}})),Ub(Fb,Mb,(function(e){Q.tree(Mb,[{printWrapper:["printSlide"]}]);var t=Q.getNamespace(Mb);return t.slide=t.printSlide,t.wrapper=t.printWrapper,{all:function(){},resize:function(){},pinchZoom:function(){}}})),Ub(Fb,Vb,(function(e){var t=Q.tree(Vb,["overlay",{messageWindowWrapper:["messageWindowSlide"]}]),n=Q.getNamespace(Vb);return n.slide=n.messageWindowSlide,n.wrapper=n.messageWindowWrapper,{all:function(){return Q.update(t)},resize:function(){n.isAttached&&(n.overlay.update(),n.messageWindowWrapper.update())}}})),Fb),"html5/data/js/frame.js")}();