pageflow 16.1.0 → 16.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +70 -194
- data/README.md +6 -5
- data/app/assets/images/pageflow/admin/icons/published_with_noindex.svg +4 -0
- data/app/assets/javascripts/pageflow/dist/ui.js +1 -0
- data/app/assets/stylesheets/pageflow/admin/active_admin_patches.scss +1 -1
- data/app/assets/stylesheets/pageflow/admin/entries.scss +4 -0
- data/app/assets/stylesheets/pageflow/admin/publication_state_indicator.scss +4 -0
- data/app/assets/stylesheets/pageflow/editor/base.scss +0 -1
- data/app/assets/stylesheets/pageflow/editor/drop_down_button.scss +55 -6
- data/app/assets/stylesheets/pageflow/editor/file_meta_data.scss +12 -1
- data/app/assets/stylesheets/pageflow/ui/forms.scss +3 -3
- data/app/assets/stylesheets/pageflow/{editor/wysihtml5.scss → ui/input/text_area_input.scss} +13 -1
- data/app/assets/stylesheets/pageflow/ui.scss +1 -0
- data/app/controllers/pageflow/editor/entry_publications_controller.rb +5 -1
- data/app/controllers/pageflow/editor/file_import_controller.rb +1 -1
- data/app/controllers/pageflow/entries_controller.rb +2 -2
- data/app/helpers/pageflow/entries_helper.rb +2 -0
- data/app/helpers/pageflow/meta_tags_helper.rb +2 -1
- data/app/helpers/pageflow/page_types_helper.rb +4 -4
- data/app/helpers/pageflow/revision_file_helper.rb +3 -3
- data/app/helpers/pageflow/social_share_helper.rb +2 -2
- data/app/models/concerns/pageflow/entry_publication_states.rb +9 -0
- data/app/models/concerns/pageflow/uploadable_file.rb +5 -0
- data/app/models/pageflow/account.rb +2 -2
- data/app/models/pageflow/entry.rb +7 -5
- data/app/models/pageflow/entry_at_revision.rb +2 -0
- data/app/models/pageflow/image_file.rb +20 -5
- data/app/models/pageflow/image_file_url_templates.rb +7 -1
- data/app/models/pageflow/revision.rb +6 -4
- data/app/models/pageflow/site.rb +2 -2
- data/app/models/pageflow/sitemaps.rb +1 -0
- data/app/models/pageflow/used_file.rb +8 -0
- data/app/views/components/pageflow/admin/extensible_attributes_table.rb +1 -7
- data/app/views/components/pageflow/admin/revisions_tab.rb +8 -0
- data/app/views/pageflow/editor/config/_seeds.json.jbuilder +1 -0
- data/app/views/pageflow/editor/entries/_entry.json.jbuilder +1 -0
- data/app/views/pageflow/editor/entry_publications/check.json.jbuilder +1 -0
- data/app/views/pageflow/image_files/_image_file.json.jbuilder +1 -0
- data/app/views/pageflow/meta_tags/_entry.html.erb +1 -0
- data/config/initializers/features.rb +2 -0
- data/config/initializers/paperclip.rb +4 -0
- data/config/locales/de.yml +50 -0
- data/config/locales/en.yml +49 -0
- data/db/migrate/20231024062501_add_output_presences_to_image_files.rb +5 -0
- data/db/migrate/20231128124523_add_noindex_to_revisions.rb +5 -0
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/editor.js +266 -151
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/frontend.js +8 -2
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/react-client.js +1 -1
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/react-server.js +1 -1
- data/entry_types/paged/app/controllers/pageflow_paged/entries_controller.rb +1 -1
- data/entry_types/paged/lib/pageflow_paged/engine.rb +7 -11
- data/entry_types/scrolled/app/controllers/pageflow_scrolled/entries_controller.rb +9 -3
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb +6 -6
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/packs_helper.rb +21 -37
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/themes_helper.rb +1 -3
- data/entry_types/scrolled/app/views/pageflow_scrolled/editor/entries/_head.html.erb +1 -6
- data/entry_types/scrolled/app/views/pageflow_scrolled/entries/show.html.erb +17 -17
- data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_entry.json.jbuilder +4 -0
- data/entry_types/scrolled/config/locales/de.yml +47 -11
- data/entry_types/scrolled/config/locales/en.yml +42 -10
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/install_generator.rb +22 -89
- data/entry_types/scrolled/lib/pageflow_scrolled/additional_packs.rb +2 -1
- data/entry_types/scrolled/lib/pageflow_scrolled/engine.rb +8 -12
- data/entry_types/scrolled/lib/pageflow_scrolled/plugin.rb +6 -0
- data/entry_types/scrolled/lib/pageflow_scrolled/web_app_manifest.rb +1 -1
- data/entry_types/scrolled/lib/tasks/pageflow_scrolled/dummy.rake +1 -1
- data/entry_types/scrolled/package/config/webpack.js +26 -0
- data/entry_types/scrolled/package/contentElements-editor.js +36 -23
- data/entry_types/scrolled/package/contentElements-frontend.css +1 -1
- data/entry_types/scrolled/package/contentElements-frontend.js +250 -94
- data/entry_types/scrolled/package/editor.js +331 -147
- data/entry_types/scrolled/package/frontend/{EditableInlineText.module-fa9e3aff.js → EditableInlineText.module-6ee0e024.js} +463 -275
- data/entry_types/scrolled/package/frontend/{PhonePlatformContext-10a1d600.js → PhonePlatformContext-b28d991a.js} +1 -1
- data/entry_types/scrolled/package/frontend/{ToggleFullscreenCornerButton-727cce0d.js → ToggleFullscreenCornerButton-8242f213.js} +1 -1
- data/entry_types/scrolled/package/frontend/{Viewer-169e14ca.js → Viewer-32cd1ac1.js} +4 -4
- data/entry_types/scrolled/package/frontend/{Viewer-ee1aa590.js → Viewer-6e4d14ed.js} +4 -4
- data/entry_types/scrolled/package/frontend/{arrowRight-92a34ccc.js → arrowRight-e42e6011.js} +2 -2
- data/entry_types/scrolled/package/frontend/{components-4a09bfa3.js → components-24363f97.js} +7 -6
- data/entry_types/scrolled/package/frontend/{i18n-ddd92820.js → i18n-71c39823.js} +84 -46
- data/entry_types/scrolled/package/frontend/{index-02378634.js → index-fc4b13e6.js} +3 -3
- data/entry_types/scrolled/package/frontend/index.css +1 -1
- data/entry_types/scrolled/package/frontend/index.js +90 -66
- data/entry_types/scrolled/package/frontend/{useContentElementEditorState-63045393.js → useContentElementEditorState-245f1986.js} +1 -1
- data/entry_types/scrolled/package/package.json +4 -3
- data/entry_types/scrolled/package/testHelpers.js +4 -2
- data/entry_types/scrolled/package/widgets/defaultNavigation.css +2 -2
- data/entry_types/scrolled/package/widgets/defaultNavigation.js +39 -4
- data/entry_types/scrolled/package/widgets/iconInlineFileRights.css +1 -0
- data/entry_types/scrolled/package/widgets/iconInlineFileRights.js +49 -0
- data/entry_types/scrolled/package/widgets/textInlineFileRights.css +1 -0
- data/entry_types/scrolled/package/widgets/textInlineFileRights.js +37 -0
- data/lib/generators/pageflow/resque/templates/resque.rake +1 -1
- data/lib/generators/pageflow/resque/templates/resque.rb +1 -1
- data/lib/generators/pageflow/routes/routes_generator.rb +1 -1
- data/lib/pageflow/configuration.rb +8 -1
- data/lib/pageflow/engine.rb +15 -58
- data/lib/pageflow/page_type.rb +1 -1
- data/lib/pageflow/paperclip_processors/webp.rb +63 -0
- data/lib/pageflow/rails_version.rb +2 -2
- data/lib/pageflow/user_mixin.rb +1 -1
- data/lib/pageflow/version.rb +1 -1
- data/package/config/jest/index.js +3 -1
- data/package/editor.js +272 -154
- data/package/frontend.js +8 -2
- data/package/ui.js +1 -0
- data/spec/factories/entries.rb +17 -0
- metadata +78 -56
@@ -19,4 +19,4 @@ pageflow="object"==typeof pageflow?pageflow:{},pageflow.react=function(e){var t=
|
|
19
19
|
*/Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case c:case s:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case y:case g:case u:return e;default:return t}}case i:return t}}}function O(e){return E(e)===p}t.typeOf=E,t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=y,t.Memo=g,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===s||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===m||e.$$typeof===b||e.$$typeof===w)},t.isAsyncMode=function(e){return O(e)||E(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===y},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=(l(i),l(n(28))),s=l(n(42)),c=l(n(402)),u=l(n(403));function l(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.measure=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.props.useClone;if(n.props.shouldMeasure){n._node.parentNode||n._setDOMNode();var r=n.getDimensions(n._node,e,t),o="function"==typeof n.props.children;n._propsToMeasure.some((function(e){if(r[e]!==n._lastDimensions[e])return n.props.onMeasure(r),o&&void 0!==n&&n.setState({dimensions:r}),n._lastDimensions=r,!0}))}},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new c.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){e.config;var t=e.whitelist,n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=s.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.useClone,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.cloneOptions;return(0,u.default)(e,r({margin:t,clone:n},o))}},{key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter((function(e){return n.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children;return i.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(i.Component);f.propTypes={whitelist:a.default.array,blacklist:a.default.array,includeMargin:a.default.bool,useClone:a.default.bool,cloneOptions:a.default.object,shouldMeasure:a.default.bool,onMeasure:a.default.func},f.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=f,e.exports=t.default},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}())}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},a=2;var s=20,c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function s(){n&&(n=!1,e()),r&&u()}function c(){i(s)}function u(){var e=Date.now();if(n){if(e-o<a)return;r=!0}else n=!0,r=!1,setTimeout(c,t);o=e}return u}(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},d=b(0,0,0,0);function h(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function g(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=p(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=h(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=h(r.width),c=h(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=v(r,"left","right")+i),Math.round(c+a)!==n&&(c-=v(r,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var u=Math.round(s+i)-t,l=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(l)&&(c-=l)}return b(o.left,o.top,s,c)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?y(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):g(e):d}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var w=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),E=function(e,t){var n,r,o,i,a,s,c,u=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),f(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);f(this,{target:e,contentRect:u})},O=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new w(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new E(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,P=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new O(t,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){P.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}}));var k=void 0!==o.ResizeObserver?o.ResizeObserver:P;t.default=k}.call(this,n(74))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.getBoundingClientRect(),r=void 0,a=void 0,s=void 0;if((n.width&&n.height||t.noCloneOnZeroDimension)&&!t.clone)t.margin&&(s=(0,i.default)(getComputedStyle(e)));else{var c=(0,o.default)(e,t);n=c.rect,s=c.margin}t.margin?(r=s.left+n.width+s.right,a=s.top+n.height+s.bottom):(r=n.width,a=n.height);return{width:r,height:a,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var o=r(n(404)),i=r(n(168));e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,o,a=e.parentNode,s=document.createElement("div"),c=e.cloneNode(!0),u=getComputedStyle(e);s.style.height=0,s.style.overflow="hidden",c.setAttribute("id",""),c.setAttribute("name",""),(t.display||u&&"none"===u.getPropertyValue("display"))&&(c.style.display=t.display||"block");(t.width||u&&!parseInt(u.getPropertyValue("width")))&&(c.style.width=t.width||"auto");(t.height||u&&!parseInt(u.getPropertyValue("height")))&&(c.style.height=t.height||"auto");return s.appendChild(c),a.appendChild(s),n=c.getBoundingClientRect(),r=c.offsetWidth,o=c.offsetHeight,a.removeChild(s),{rect:{width:r,height:o,top:n.top,right:n.right,bottom:n.bottom,left:n.left},margin:(0,i.default)(u)}};var r,o=n(168),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){var r,o;
|
20
20
|
/*! wavesurfer.js 1.4.0 (Thu, 22 Jun 2017 13:03:29 GMT)
|
21
21
|
* https://github.com/katspaugh/wavesurfer.js
|
22
|
-
* @license BSD-3-Clause */o=this,void 0===(r=function(){return o.WaveSurfer=function(){"use strict";var e={defaultParams:{audioContext:null,audioRate:1,autoCenter:!0,backend:"WebAudio",barHeight:1,closeAudioContext:!1,container:null,cursorColor:"#333",cursorWidth:1,dragSelection:!0,fallbackProgressHeight:4,fillParent:!0,forceDecode:!1,height:128,hideScrollbar:!1,interact:!0,loopSelection:!0,mediaContainer:null,mediaControls:!1,mediaType:"audio",minPxPerSec:20,partialRender:!1,pixelRatio:window.devicePixelRatio||screen.deviceXDPI/screen.logicalXDPI,progressColor:"#555",normalize:!1,removeMediaElementOnDestroy:!0,renderer:"MultiCanvas",scrollParent:!1,skipLength:2,splitChannels:!1,waveColor:"#999"},init:function(t){if(this.params=e.util.extend({},this.defaultParams,t),this.container="string"==typeof t.container?document.querySelector(this.params.container):this.params.container,!this.container)throw new Error("Container element not found");if(null==this.params.mediaContainer?this.mediaContainer=this.container:"string"==typeof this.params.mediaContainer?this.mediaContainer=document.querySelector(this.params.mediaContainer):this.mediaContainer=this.params.mediaContainer,!this.mediaContainer)throw new Error("Media Container element not found");this.savedVolume=0,this.isMuted=!1,this.tmpEvents=[],this.currentAjax=null,this.createDrawer(),this.createBackend(),this.createPeakCache(),this.isDestroyed=!1},createDrawer:function(){var t=this;this.drawer=Object.create(e.Drawer[this.params.renderer]),this.drawer.init(this.container,this.params),this.drawer.on("click",(function(e,n){setTimeout((function(){t.seekTo(n)}),0)})),this.drawer.on("scroll",(function(e){t.params.partialRender&&t.drawBuffer(),t.fireEvent("scroll",e)}))},createBackend:function(){var t=this;this.backend&&this.backend.destroy(),"AudioElement"==this.params.backend&&(this.params.backend="MediaElement"),"WebAudio"!=this.params.backend||e.WebAudio.supportsWebAudio()||(this.params.backend="MediaElement"),this.backend=Object.create(e[this.params.backend]),this.backend.init(this.params),this.backend.on("finish",(function(){t.fireEvent("finish")})),this.backend.on("play",(function(){t.fireEvent("play")})),this.backend.on("pause",(function(){t.fireEvent("pause")})),this.backend.on("audioprocess",(function(e){t.drawer.progress(t.backend.getPlayedPercents()),t.fireEvent("audioprocess",e)}))},createPeakCache:function(){this.params.partialRender&&(this.peakCache=Object.create(e.PeakCache),this.peakCache.init())},getDuration:function(){return this.backend.getDuration()},play:function(e,t){this.fireEvent("interaction",this.play.bind(this,e,t)),this.backend.play(e,t)},pause:function(){this.backend.isPaused()||this.backend.pause()},playPause:function(){this.backend.isPaused()?this.play():this.pause()},isPlaying:function(){return!this.backend.isPaused()},skipBackward:function(e){this.skip(-e||-this.params.skipLength)},skipForward:function(e){this.skip(e||this.params.skipLength)},skip:function(e){var t=this.getCurrentTime()||0,n=this.getDuration()||1;t=Math.max(0,Math.min(n,t+(e||0))),this.seekAndCenter(t/n)},seekAndCenter:function(e){this.seekTo(e),this.drawer.recenter(e)},seekTo:function(e){this.fireEvent("interaction",this.seekTo.bind(this,e));var t=this.backend.isPaused();t||this.backend.pause();var n=this.params.scrollParent;this.params.scrollParent=!1,this.backend.seekTo(e*this.getDuration()),this.drawer.progress(this.backend.getPlayedPercents()),t||this.backend.play(),this.params.scrollParent=n,this.fireEvent("seek",e)},stop:function(){this.pause(),this.seekTo(0),this.drawer.progress(0)},setVolume:function(e){this.backend.setVolume(e)},getVolume:function(){return this.backend.getVolume()},getCurrentTime:function(){return this.backend.getCurrentTime()},setCurrentTime:function(e){this.getDuration()>=e?this.seekTo(1):this.seekTo(e/this.getDuration())},setPlaybackRate:function(e){this.backend.setPlaybackRate(e)},getPlaybackRate:function(){return this.backend.getPlaybackRate()},toggleMute:function(){this.setMute(!this.isMuted)},setMute:function(e){e!==this.isMuted&&(e?(this.savedVolume=this.backend.getVolume(),this.backend.setVolume(0),this.isMuted=!0):(this.backend.setVolume(this.savedVolume),this.isMuted=!1))},getMute:function(){return this.isMuted},getFilters:function(){return this.backend.filters||[]},toggleScroll:function(){this.params.scrollParent=!this.params.scrollParent,this.drawBuffer()},toggleInteraction:function(){this.params.interact=!this.params.interact},getWaveColor:function(){return this.params.waveColor},setWaveColor:function(e){this.params.waveColor=e,this.drawBuffer()},getProgressColor:function(){return this.params.progressColor},setProgressColor:function(e){this.params.progressColor=e,this.drawBuffer()},getCursorColor:function(){return this.params.cursorColor},setCursorColor:function(e){this.params.cursorColor=e,this.drawer.updateCursor()},getHeight:function(){return this.params.height},setHeight:function(e){this.params.height=e,this.drawer.setHeight(e*this.params.pixelRatio)},drawBuffer:function(){var e=Math.round(this.getDuration()*this.params.minPxPerSec*this.params.pixelRatio),t=this.drawer.getWidth(),n=e,r=this.drawer.getScrollX(),o=Math.min(r+t,n);if(this.params.fillParent&&(!this.params.scrollParent||e<t)&&(r=0,o=n=t),this.params.partialRender)for(var i=this.peakCache.addRangeToPeakCache(n,r,o),a=0;a<i.length;a++)s=this.backend.getPeaks(n,i[a][0],i[a][1]),this.drawer.drawPeaks(s,n,i[a][0],i[a][1]);else{r=0,o=n;var s=this.backend.getPeaks(n,r,o);this.drawer.drawPeaks(s,n,r,o)}this.fireEvent("redraw",s,n)},zoom:function(e){this.params.minPxPerSec=e,this.params.scrollParent=!0,this.refresh(),this.drawer.recenter(this.getCurrentTime()/this.getDuration()),this.fireEvent("zoom",e)},refresh:function(){this.drawBuffer(),this.drawer.progress(this.backend.getPlayedPercents())},loadArrayBuffer:function(e){this.decodeArrayBuffer(e,function(e){this.isDestroyed||this.loadDecodedBuffer(e)}.bind(this))},loadDecodedBuffer:function(e){this.backend.load(e),this.drawBuffer(),this.fireEvent("ready")},loadBlob:function(e){var t=this,n=new FileReader;n.addEventListener("progress",(function(e){t.onProgress(e)})),n.addEventListener("load",(function(e){t.loadArrayBuffer(e.target.result)})),n.addEventListener("error",(function(){t.fireEvent("error","Error reading file")})),n.readAsArrayBuffer(e),this.empty()},load:function(e,t,n){switch(this.empty(),this.isMuted=!1,this.params.backend){case"WebAudio":return this.loadBuffer(e,t);case"MediaElement":return this.loadMediaElement(e,t,n)}},loadBuffer:function(e,t){var n=function(t){return t&&this.tmpEvents.push(this.once("ready",t)),this.getArrayBuffer(e,this.loadArrayBuffer.bind(this))}.bind(this);if(!t)return n();this.backend.setPeaks(t),this.drawBuffer(),this.tmpEvents.push(this.once("interaction",n))},loadMediaElement:function(e,t,n){var r=e;if("string"==typeof e)this.backend.load(r,this.mediaContainer,t,n);else{var o=e;this.backend.loadElt(o,t),r=o.src}this.tmpEvents.push(this.backend.once("canplay",function(){this.drawBuffer(),this.fireEvent("ready")}.bind(this)),this.backend.once("error",function(e){this.fireEvent("error",e)}.bind(this))),t&&this.backend.setPeaks(t),t&&!this.params.forceDecode||!this.backend.supportsWebAudio()||this.getArrayBuffer(r,function(e){this.decodeArrayBuffer(e,function(e){this.backend.buffer=e,this.backend.setPeaks(null),this.drawBuffer(),this.fireEvent("waveform-ready")}.bind(this))}.bind(this))},decodeArrayBuffer:function(e,t){this.arraybuffer=e,this.backend.decodeArrayBuffer(e,function(n){this.isDestroyed||this.arraybuffer!=e||(t(n),this.arraybuffer=null)}.bind(this),this.fireEvent.bind(this,"error","Error decoding audiobuffer"))},getArrayBuffer:function(t,n){var r=this,o=e.util.ajax({url:t,responseType:"arraybuffer"});return this.currentAjax=o,this.tmpEvents.push(o.on("progress",(function(e){r.onProgress(e)})),o.on("success",(function(e,t){n(e),r.currentAjax=null})),o.on("error",(function(e){r.fireEvent("error","XHR error: "+e.target.statusText),r.currentAjax=null}))),o},onProgress:function(e){if(e.lengthComputable)var t=e.loaded/e.total;else t=e.loaded/(e.loaded+1e6);this.fireEvent("loading",Math.round(100*t),e.target)},exportPCM:function(e,t,n,r){e=e||1024,r=r||0,t=t||1e4,n=n||!1;var o=this.backend.getPeaks(e,r),i=[].map.call(o,(function(e){return Math.round(e*t)/t})),a=JSON.stringify(i);return n||window.open("data:application/json;charset=utf-8,"+encodeURIComponent(a)),a},exportImage:function(e,t){return e||(e="image/png"),t||(t=1),this.drawer.getImage(e,t)},cancelAjax:function(){this.currentAjax&&(this.currentAjax.xhr.abort(),this.currentAjax=null)},clearTmpEvents:function(){this.tmpEvents.forEach((function(e){e.un()}))},empty:function(){this.backend.isPaused()||(this.stop(),this.backend.disconnectSource()),this.cancelAjax(),this.clearTmpEvents(),this.drawer.progress(0),this.drawer.setWidth(0),this.drawer.drawPeaks({length:this.drawer.getWidth()},0)},destroy:function(){this.fireEvent("destroy"),this.cancelAjax(),this.clearTmpEvents(),this.unAll(),this.backend.destroy(),this.drawer.destroy(),this.isDestroyed=!0},create:function(t){var n=Object.create(e);return n.init(t),n}};return e.util={requestAnimationFrame:(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){setTimeout(e,1e3/60)}).bind(window),frame:function(t){return function(){var n=this,r=arguments;e.util.requestAnimationFrame((function(){t.apply(n,r)}))}},extend:function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},debounce:function(e,t,n){var r,o,i,a=function(){i=null,n||e.apply(o,r)};return function(){o=this,r=arguments;var s=n&&!i;clearTimeout(i),(i=setTimeout(a,t))||(i=setTimeout(a,t)),s&&e.apply(o,r)}},min:function(e){var t=1/0;for(var n in e)e[n]<t&&(t=e[n]);return t},max:function(e){var t=-1/0;for(var n in e)e[n]>t&&(t=e[n]);return t},getId:function(){return"wavesurfer_"+Math.random().toString(32).substring(2)},ajax:function(t){var n=Object.create(e.Observer),r=new XMLHttpRequest,o=!1;return r.open(t.method||"GET",t.url,!0),r.responseType=t.responseType||"json",r.addEventListener("progress",(function(e){n.fireEvent("progress",e),e.lengthComputable&&e.loaded==e.total&&(o=!0)})),r.addEventListener("load",(function(e){o||n.fireEvent("progress",e),n.fireEvent("load",e),200==r.status||206==r.status?n.fireEvent("success",r.response,e):n.fireEvent("error",e)})),r.addEventListener("error",(function(e){n.fireEvent("error",e)})),r.send(),n.xhr=r,n}},e.Observer={on:function(e,t){this.handlers||(this.handlers={});var n=this.handlers[e];return n||(n=this.handlers[e]=[]),n.push(t),{name:e,callback:t,un:this.un.bind(this,e,t)}},un:function(e,t){if(this.handlers){var n=this.handlers[e];if(n)if(t)for(var r=n.length-1;r>=0;r--)n[r]==t&&n.splice(r,1);else n.length=0}},unAll:function(){this.handlers=null},once:function(e,t){var n=this,r=function(){t.apply(this,arguments),setTimeout((function(){n.un(e,r)}),0)};return this.on(e,r)},fireEvent:function(e){if(this.handlers){var t=this.handlers[e],n=Array.prototype.slice.call(arguments,1);t&&t.forEach((function(e){e.apply(null,n)}))}}},e.util.extend(e,e.Observer),e.WebAudio={scriptBufferSize:256,PLAYING_STATE:0,PAUSED_STATE:1,FINISHED_STATE:2,supportsWebAudio:function(){return!(!window.AudioContext&&!window.webkitAudioContext)},getAudioContext:function(){return e.WebAudio.audioContext||(e.WebAudio.audioContext=new(window.AudioContext||window.webkitAudioContext)),e.WebAudio.audioContext},getOfflineAudioContext:function(t){return e.WebAudio.offlineAudioContext||(e.WebAudio.offlineAudioContext=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,2,t)),e.WebAudio.offlineAudioContext},init:function(t){this.params=t,this.ac=t.audioContext||this.getAudioContext(),this.lastPlay=this.ac.currentTime,this.startPosition=0,this.scheduledPause=null,this.states=[Object.create(e.WebAudio.state.playing),Object.create(e.WebAudio.state.paused),Object.create(e.WebAudio.state.finished)],this.createVolumeNode(),this.createScriptNode(),this.createAnalyserNode(),this.setState(this.PAUSED_STATE),this.setPlaybackRate(this.params.audioRate),this.setLength(0)},disconnectFilters:function(){this.filters&&(this.filters.forEach((function(e){e&&e.disconnect()})),this.filters=null,this.analyser.connect(this.gainNode))},setState:function(e){this.state!==this.states[e]&&(this.state=this.states[e],this.state.init.call(this))},setFilter:function(){this.setFilters([].slice.call(arguments))},setFilters:function(e){this.disconnectFilters(),e&&e.length&&(this.filters=e,this.analyser.disconnect(),e.reduce((function(e,t){return e.connect(t),t}),this.analyser).connect(this.gainNode))},createScriptNode:function(){this.ac.createScriptProcessor?this.scriptNode=this.ac.createScriptProcessor(this.scriptBufferSize):this.scriptNode=this.ac.createJavaScriptNode(this.scriptBufferSize),this.scriptNode.connect(this.ac.destination)},addOnAudioProcess:function(){var e=this;this.scriptNode.onaudioprocess=function(){var t=e.getCurrentTime();t>=e.getDuration()?(e.setState(e.FINISHED_STATE),e.fireEvent("pause")):t>=e.scheduledPause?e.pause():e.state===e.states[e.PLAYING_STATE]&&e.fireEvent("audioprocess",t)}},removeOnAudioProcess:function(){this.scriptNode.onaudioprocess=null},createAnalyserNode:function(){this.analyser=this.ac.createAnalyser(),this.analyser.connect(this.gainNode)},createVolumeNode:function(){this.ac.createGain?this.gainNode=this.ac.createGain():this.gainNode=this.ac.createGainNode(),this.gainNode.connect(this.ac.destination)},setVolume:function(e){this.gainNode.gain.value=e},getVolume:function(){return this.gainNode.gain.value},decodeArrayBuffer:function(e,t,n){this.offlineAc||(this.offlineAc=this.getOfflineAudioContext(this.ac?this.ac.sampleRate:44100)),this.offlineAc.decodeAudioData(e,function(e){t(e)}.bind(this),n)},setPeaks:function(e){this.peaks=e},setLength:function(e){if(!this.mergedPeaks||e!=2*this.mergedPeaks.length-1+2){this.splitPeaks=[],this.mergedPeaks=[];for(var t=this.buffer?this.buffer.numberOfChannels:1,n=0;n<t;n++)this.splitPeaks[n]=[],this.splitPeaks[n][2*(e-1)]=0,this.splitPeaks[n][2*(e-1)+1]=0;this.mergedPeaks[2*(e-1)]=0,this.mergedPeaks[2*(e-1)+1]=0}},getPeaks:function(e,t,n){if(this.peaks)return this.peaks;t=t||0,n=n||e-1,this.setLength(e);for(var r=this.buffer.length/e,o=~~(r/10)||1,i=this.buffer.numberOfChannels,a=0;a<i;a++)for(var s=this.splitPeaks[a],c=this.buffer.getChannelData(a),u=t;u<=n;u++){for(var l=~~(u*r),f=~~(l+r),p=0,d=0,h=l;h<f;h+=o){var v=c[h];v>d&&(d=v),v<p&&(p=v)}s[2*u]=d,s[2*u+1]=p,(0==a||d>this.mergedPeaks[2*u])&&(this.mergedPeaks[2*u]=d),(0==a||p<this.mergedPeaks[2*u+1])&&(this.mergedPeaks[2*u+1]=p)}return this.params.splitChannels?this.splitPeaks:this.mergedPeaks},getPlayedPercents:function(){return this.state.getPlayedPercents.call(this)},disconnectSource:function(){this.source&&this.source.disconnect()},destroy:function(){this.isPaused()||this.pause(),this.unAll(),this.buffer=null,this.disconnectFilters(),this.disconnectSource(),this.gainNode.disconnect(),this.scriptNode.disconnect(),this.analyser.disconnect(),this.params.closeAudioContext&&("function"==typeof this.ac.close&&"closed"!=this.ac.state&&this.ac.close(),this.ac=null,this.params.audioContext?this.params.audioContext=null:e.WebAudio.audioContext=null,e.WebAudio.offlineAudioContext=null)},load:function(e){this.startPosition=0,this.lastPlay=this.ac.currentTime,this.buffer=e,this.createSource()},createSource:function(){this.disconnectSource(),this.source=this.ac.createBufferSource(),this.source.start=this.source.start||this.source.noteGrainOn,this.source.stop=this.source.stop||this.source.noteOff,this.source.playbackRate.value=this.playbackRate,this.source.buffer=this.buffer,this.source.connect(this.analyser)},isPaused:function(){return this.state!==this.states[this.PLAYING_STATE]},getDuration:function(){return this.buffer?this.buffer.duration:0},seekTo:function(e,t){if(this.buffer)return this.scheduledPause=null,null==e&&(e=this.getCurrentTime())>=this.getDuration()&&(e=0),null==t&&(t=this.getDuration()),this.startPosition=e,this.lastPlay=this.ac.currentTime,this.state===this.states[this.FINISHED_STATE]&&this.setState(this.PAUSED_STATE),{start:e,end:t}},getPlayedTime:function(){return(this.ac.currentTime-this.lastPlay)*this.playbackRate},play:function(e,t){if(this.buffer){this.createSource();var n=this.seekTo(e,t);e=n.start,t=n.end,this.scheduledPause=t,this.source.start(0,e,t-e),"suspended"==this.ac.state&&this.ac.resume&&this.ac.resume(),this.setState(this.PLAYING_STATE),this.fireEvent("play")}},pause:function(){this.scheduledPause=null,this.startPosition+=this.getPlayedTime(),this.source&&this.source.stop(0),this.setState(this.PAUSED_STATE),this.fireEvent("pause")},getCurrentTime:function(){return this.state.getCurrentTime.call(this)},getPlaybackRate:function(){return this.playbackRate},setPlaybackRate:function(e){e=e||1,this.isPaused()?this.playbackRate=e:(this.pause(),this.playbackRate=e,this.play())}},e.WebAudio.state={},e.WebAudio.state.playing={init:function(){this.addOnAudioProcess()},getPlayedPercents:function(){var e=this.getDuration();return this.getCurrentTime()/e||0},getCurrentTime:function(){return this.startPosition+this.getPlayedTime()}},e.WebAudio.state.paused={init:function(){this.removeOnAudioProcess()},getPlayedPercents:function(){var e=this.getDuration();return this.getCurrentTime()/e||0},getCurrentTime:function(){return this.startPosition}},e.WebAudio.state.finished={init:function(){this.removeOnAudioProcess(),this.fireEvent("finish")},getPlayedPercents:function(){return 1},getCurrentTime:function(){return this.getDuration()}},e.util.extend(e.WebAudio,e.Observer),e.MediaElement=Object.create(e.WebAudio),e.util.extend(e.MediaElement,{init:function(e){this.params=e,this.media={currentTime:0,duration:0,paused:!0,playbackRate:1,play:function(){},pause:function(){}},this.mediaType=e.mediaType.toLowerCase(),this.elementPosition=e.elementPosition,this.setPlaybackRate(this.params.audioRate),this.createTimer()},createTimer:function(){var e=this,t=function(){e.isPaused()||(e.fireEvent("audioprocess",e.getCurrentTime()),(window.requestAnimationFrame||window.webkitRequestAnimationFrame)(t))};this.on("play",t)},load:function(e,t,n,r){var o=document.createElement(this.mediaType);o.controls=this.params.mediaControls,o.autoplay=this.params.autoplay||!1,o.preload=null==r?"auto":r,o.src=e,o.style.width="100%";var i=t.querySelector(this.mediaType);i&&t.removeChild(i),t.appendChild(o),this._load(o,n)},loadElt:function(e,t){var n=e;n.controls=this.params.mediaControls,n.autoplay=this.params.autoplay||!1,this._load(n,t)},_load:function(e,t){var n=this;"function"==typeof e.load&&e.load(),e.addEventListener("error",(function(){n.fireEvent("error","Error loading media element")})),e.addEventListener("canplay",(function(){n.fireEvent("canplay")})),e.addEventListener("ended",(function(){n.fireEvent("finish")})),e.addEventListener("play",(function(){n.fireEvent("play")})),e.addEventListener("pause",(function(){n.fireEvent("pause")})),this.media=e,this.peaks=t,this.onPlayEnd=null,this.buffer=null,this.setPlaybackRate(this.playbackRate)},isPaused:function(){return!this.media||this.media.paused},getDuration:function(){var e=(this.buffer||this.media).duration;return e>=1/0&&(e=this.media.seekable.end(0)),e},getCurrentTime:function(){return this.media&&this.media.currentTime},getPlayedPercents:function(){return this.getCurrentTime()/this.getDuration()||0},getPlaybackRate:function(){return this.playbackRate||this.media.playbackRate},setPlaybackRate:function(e){this.playbackRate=e||1,this.media.playbackRate=this.playbackRate},seekTo:function(e){null!=e&&(this.media.currentTime=e),this.clearPlayEnd()},play:function(e,t){this.seekTo(e),this.media.play(),t&&this.setPlayEnd(t)},pause:function(){this.media&&this.media.pause(),this.clearPlayEnd()},setPlayEnd:function(e){var t=this;this.onPlayEnd=function(n){n>=e&&(t.pause(),t.seekTo(e))},this.on("audioprocess",this.onPlayEnd)},clearPlayEnd:function(){this.onPlayEnd&&(this.un("audioprocess",this.onPlayEnd),this.onPlayEnd=null)},getPeaks:function(t,n,r){return this.buffer?e.WebAudio.getPeaks.call(this,t,n,r):this.peaks||[]},getVolume:function(){return this.media.volume},setVolume:function(e){this.media.volume=e},destroy:function(){this.pause(),this.unAll(),this.params.removeMediaElementOnDestroy&&this.media&&this.media.parentNode&&this.media.parentNode.removeChild(this.media),this.media=null}}),e.AudioElement=e.MediaElement,e.Drawer={init:function(e,t){this.container=e,this.params=t,this.width=0,this.height=t.height*this.params.pixelRatio,this.lastPos=0,this.initDrawer(t),this.createWrapper(),this.createElements()},createWrapper:function(){this.wrapper=this.container.appendChild(document.createElement("wave")),this.style(this.wrapper,{display:"block",position:"relative",userSelect:"none",webkitUserSelect:"none",height:this.params.height+"px"}),(this.params.fillParent||this.params.scrollParent)&&this.style(this.wrapper,{width:"100%",overflowX:this.params.hideScrollbar?"hidden":"auto",overflowY:"hidden"}),this.setupWrapperEvents()},handleEvent:function(e,t){!t&&e.preventDefault();var n,r=e.targetTouches?e.targetTouches[0].clientX:e.clientX,o=this.wrapper.getBoundingClientRect(),i=this.width,a=this.getWidth();return!this.params.fillParent&&i<a?(n=(r-o.left)*this.params.pixelRatio/i||0)>1&&(n=1):n=(r-o.left+this.wrapper.scrollLeft)/this.wrapper.scrollWidth||0,n},setupWrapperEvents:function(){var e=this;this.wrapper.addEventListener("click",(function(t){var n=e.wrapper.offsetHeight-e.wrapper.clientHeight;if(0!=n){var r=e.wrapper.getBoundingClientRect();if(t.clientY>=r.bottom-n)return}e.params.interact&&e.fireEvent("click",t,e.handleEvent(t))})),this.wrapper.addEventListener("scroll",(function(t){e.fireEvent("scroll",t)}))},drawPeaks:function(e,t,n,r){this.setWidth(t)||this.clearWave(),this.params.barWidth?this.drawBars(e,0,n,r):this.drawWave(e,0,n,r)},style:function(e,t){return Object.keys(t).forEach((function(n){e.style[n]!==t[n]&&(e.style[n]=t[n])})),e},resetScroll:function(){null!==this.wrapper&&(this.wrapper.scrollLeft=0)},recenter:function(e){var t=this.wrapper.scrollWidth*e;this.recenterOnPosition(t,!0)},recenterOnPosition:function(e,t){var n=this.wrapper.scrollLeft,r=~~(this.wrapper.clientWidth/2),o=e-r,i=o-n,a=this.wrapper.scrollWidth-this.wrapper.clientWidth;0!=a&&(!t&&-r<=i&&i<r&&(o=n+(i=Math.max(-5,Math.min(5,i)))),(o=Math.max(0,Math.min(a,o)))!=n&&(this.wrapper.scrollLeft=o))},getScrollX:function(){return Math.round(this.wrapper.scrollLeft*this.params.pixelRatio)},getWidth:function(){return Math.round(this.container.clientWidth*this.params.pixelRatio)},setWidth:function(e){return this.width!=e&&(this.width=e,this.params.fillParent||this.params.scrollParent?this.style(this.wrapper,{width:""}):this.style(this.wrapper,{width:~~(this.width/this.params.pixelRatio)+"px"}),this.updateSize(),!0)},setHeight:function(e){return e!=this.height&&(this.height=e,this.style(this.wrapper,{height:~~(this.height/this.params.pixelRatio)+"px"}),this.updateSize(),!0)},progress:function(e){var t=1/this.params.pixelRatio,n=Math.round(e*this.width)*t;if(n<this.lastPos||n-this.lastPos>=t){if(this.lastPos=n,this.params.scrollParent&&this.params.autoCenter){var r=~~(this.wrapper.scrollWidth*e);this.recenterOnPosition(r)}this.updateProgress(n)}},destroy:function(){this.unAll(),this.wrapper&&(this.wrapper.parentNode==this.container&&this.container.removeChild(this.wrapper),this.wrapper=null)},initDrawer:function(){},createElements:function(){},updateCursor:function(){},updateSize:function(){},drawWave:function(e,t){},clearWave:function(){},updateProgress:function(e){}},e.util.extend(e.Drawer,e.Observer),e.Drawer.Canvas=Object.create(e.Drawer),e.util.extend(e.Drawer.Canvas,{createElements:function(){var e=this.wrapper.appendChild(this.style(document.createElement("canvas"),{position:"absolute",zIndex:1,left:0,top:0,bottom:0,pointerEvents:"none"}));if(this.waveCc=e.getContext("2d"),this.progressWave=this.wrapper.appendChild(this.style(document.createElement("wave"),{position:"absolute",zIndex:2,left:0,top:0,bottom:0,overflow:"hidden",width:"0",display:"none",boxSizing:"border-box",borderRightStyle:"solid",pointerEvents:"none"})),this.updateCursor(),this.params.waveColor!=this.params.progressColor){var t=this.progressWave.appendChild(document.createElement("canvas"));this.progressCc=t.getContext("2d")}},updateCursor:function(){this.style(this.progressWave,{borderRightWidth:this.params.cursorWidth+"px",borderRightColor:this.params.cursorColor})},updateSize:function(){var e=Math.round(this.width/this.params.pixelRatio);this.waveCc.canvas.width=this.width,this.waveCc.canvas.height=this.height,this.style(this.waveCc.canvas,{width:e+"px"}),this.style(this.progressWave,{display:"block"}),this.progressCc&&(this.progressCc.canvas.width=this.width,this.progressCc.canvas.height=this.height,this.style(this.progressCc.canvas,{width:e+"px"})),this.clearWave()},clearWave:function(){this.waveCc.clearRect(0,0,this.width,this.height),this.progressCc&&this.progressCc.clearRect(0,0,this.width,this.height)},drawBars:e.util.frame((function(t,n,r,o){var i=this;if(t[0]instanceof Array){var a=t;if(this.params.splitChannels)return this.setHeight(a.length*this.params.height*this.params.pixelRatio),void a.forEach((function(e,t){i.drawBars(e,t,r,o)}));t=a[0]}var s=1;[].some.call(t,(function(e){return e<0}))&&(s=2);var c=.5/this.params.pixelRatio,u=this.width,l=this.params.height*this.params.pixelRatio,f=l*n||0,p=l/2,d=t.length/s,h=this.params.barWidth*this.params.pixelRatio,v=Math.max(this.params.pixelRatio,~~(h/2)),g=h+v,y=1/this.params.barHeight;if(this.params.normalize){var m=e.util.max(t),b=e.util.min(t);y=-b>m?-b:m}var w=d/u;this.waveCc.fillStyle=this.params.waveColor,this.progressCc&&(this.progressCc.fillStyle=this.params.progressColor),[this.waveCc,this.progressCc].forEach((function(e){if(e)for(var n=r/w;n<o/w;n+=g){var i=t[Math.floor(n*w*s)]||0,a=Math.round(i/y*p);e.fillRect(n+c,p-a+f,h+c,2*a)}}),this)})),drawWave:e.util.frame((function(t,n,r,o){var i=this;if(t[0]instanceof Array){var a=t;if(this.params.splitChannels)return this.setHeight(a.length*this.params.height*this.params.pixelRatio),void a.forEach((function(e,t){i.drawWave(e,t,r,o)}));t=a[0]}if(![].some.call(t,(function(e){return e<0}))){for(var s=[],c=0,u=t.length;c<u;c++)s[2*c]=t[c],s[2*c+1]=-t[c];t=s}var l=.5/this.params.pixelRatio,f=this.params.height*this.params.pixelRatio,p=f*n||0,d=f/2,h=~~(t.length/2),v=1;this.params.fillParent&&this.width!=h&&(v=this.width/h);var g=1/this.params.barHeight;if(this.params.normalize){var y=e.util.max(t),m=e.util.min(t);g=-m>y?-m:y}this.waveCc.fillStyle=this.params.waveColor,this.progressCc&&(this.progressCc.fillStyle=this.params.progressColor),[this.waveCc,this.progressCc].forEach((function(e){if(e){for(e.beginPath(),e.moveTo(r*v+l,d+p),n=r;n<o;n++)i=Math.round(t[2*n]/g*d),e.lineTo(n*v+l,d-i+p);for(var n=o-1;n>=r;n--){var i=Math.round(t[2*n+1]/g*d);e.lineTo(n*v+l,d-i+p)}e.closePath(),e.fill(),e.fillRect(0,d+p-l,this.width,l)}}),this)})),updateProgress:function(e){this.style(this.progressWave,{width:e+"px"})},getImage:function(e,t){return this.waveCc.canvas.toDataURL(e,t)}}),e.Drawer.MultiCanvas=Object.create(e.Drawer),e.util.extend(e.Drawer.MultiCanvas,{initDrawer:function(e){if(this.maxCanvasWidth=null!=e.maxCanvasWidth?e.maxCanvasWidth:4e3,this.maxCanvasElementWidth=Math.round(this.maxCanvasWidth/this.params.pixelRatio),this.maxCanvasWidth<=1)throw"maxCanvasWidth must be greater than 1.";if(this.maxCanvasWidth%2==1)throw"maxCanvasWidth must be an even number.";this.hasProgressCanvas=this.params.waveColor!=this.params.progressColor,this.halfPixel=.5/this.params.pixelRatio,this.canvases=[]},createElements:function(){this.progressWave=this.wrapper.appendChild(this.style(document.createElement("wave"),{position:"absolute",zIndex:2,left:0,top:0,bottom:0,overflow:"hidden",width:"0",display:"none",boxSizing:"border-box",borderRightStyle:"solid",pointerEvents:"none"})),this.addCanvas(),this.updateCursor()},updateCursor:function(){this.style(this.progressWave,{borderRightWidth:this.params.cursorWidth+"px",borderRightColor:this.params.cursorColor})},updateSize:function(){for(var e=Math.round(this.width/this.params.pixelRatio),t=Math.ceil(e/this.maxCanvasElementWidth);this.canvases.length<t;)this.addCanvas();for(;this.canvases.length>t;)this.removeCanvas();this.canvases.forEach((function(e,t){var n=this.maxCanvasWidth+2*Math.ceil(this.params.pixelRatio/2);t==this.canvases.length-1&&(n=this.width-this.maxCanvasWidth*(this.canvases.length-1)),this.updateDimensions(e,n,this.height),this.clearWaveForEntry(e)}),this)},addCanvas:function(){var e={},t=this.maxCanvasElementWidth*this.canvases.length;e.wave=this.wrapper.appendChild(this.style(document.createElement("canvas"),{position:"absolute",zIndex:1,left:t+"px",top:0,bottom:0,height:"100%",pointerEvents:"none"})),e.waveCtx=e.wave.getContext("2d"),this.hasProgressCanvas&&(e.progress=this.progressWave.appendChild(this.style(document.createElement("canvas"),{position:"absolute",left:t+"px",top:0,bottom:0,height:"100%"})),e.progressCtx=e.progress.getContext("2d")),this.canvases.push(e)},removeCanvas:function(){var e=this.canvases.pop();e.wave.parentElement.removeChild(e.wave),this.hasProgressCanvas&&e.progress.parentElement.removeChild(e.progress)},updateDimensions:function(e,t,n){var r=Math.round(t/this.params.pixelRatio),o=Math.round(this.width/this.params.pixelRatio);e.start=e.waveCtx.canvas.offsetLeft/o||0,e.end=e.start+r/o,e.waveCtx.canvas.width=t,e.waveCtx.canvas.height=n,this.style(e.waveCtx.canvas,{width:r+"px"}),this.style(this.progressWave,{display:"block"}),this.hasProgressCanvas&&(e.progressCtx.canvas.width=t,e.progressCtx.canvas.height=n,this.style(e.progressCtx.canvas,{width:r+"px"}))},clearWave:function(){this.canvases.forEach((function(e){this.clearWaveForEntry(e)}),this)},clearWaveForEntry:function(e){e.waveCtx.clearRect(0,0,e.waveCtx.canvas.width,e.waveCtx.canvas.height),this.hasProgressCanvas&&e.progressCtx.clearRect(0,0,e.progressCtx.canvas.width,e.progressCtx.canvas.height)},drawBars:e.util.frame((function(t,n,r,o){if(t[0]instanceof Array){var i=t;if(this.params.splitChannels)return this.setHeight(i.length*this.params.height*this.params.pixelRatio),void i.forEach((function(e,t){this.drawBars(e,t,r,o)}),this);t=i[0]}var a=1;[].some.call(t,(function(e){return e<0}))&&(a=2);var s=this.width,c=this.params.height*this.params.pixelRatio,u=c*n||0,l=c/2,f=t.length/a,p=this.params.barWidth*this.params.pixelRatio,d=p+Math.max(this.params.pixelRatio,~~(p/2)),h=1/this.params.barHeight;if(this.params.normalize){var v=e.util.max(t),g=e.util.min(t);h=-g>v?-g:v}for(var y=f/s,m=r/y;m<o/y;m+=d){var b=t[Math.floor(m*y*a)]||0,w=Math.round(b/h*l);this.fillRect(m+this.halfPixel,l-w+u,p+this.halfPixel,2*w)}})),drawWave:e.util.frame((function(t,n,r,o){if(t[0]instanceof Array){var i=t;if(this.params.splitChannels)return this.setHeight(i.length*this.params.height*this.params.pixelRatio),void i.forEach((function(e,t){this.drawWave(e,t,r,o)}),this);t=i[0]}if(![].some.call(t,(function(e){return e<0}))){for(var a=[],s=0,c=t.length;s<c;s++)a[2*s]=t[s],a[2*s+1]=-t[s];t=a}var u=this.params.height*this.params.pixelRatio,l=u*n||0,f=u/2,p=1/this.params.barHeight;if(this.params.normalize){var d=e.util.max(t),h=e.util.min(t);p=-h>d?-h:d}this.drawLine(t,p,f,l,r,o);var v=t.length>0?0:this.params.fallbackProgressHeight;this.fillRect(0,f+l-this.halfPixel,this.width,this.halfPixel,v)})),drawLine:function(e,t,n,r,o,i){this.canvases.forEach((function(a){this.setFillStyles(a),this.drawLineToContext(a,a.waveCtx,e,t,n,r,o,i),this.drawLineToContext(a,a.progressCtx,e,t,n,r,o,i)}),this)},drawLineToContext:function(e,t,n,r,o,i,a,s){if(t){var c=n.length/2,u=1;this.params.fillParent&&this.width!=c&&(u=this.width/c);var l=Math.round(c*e.start),f=Math.round(c*e.end);if(!(l>s||f<a)){var p=Math.max(l,a),d=Math.min(f,s);for(t.beginPath(),t.moveTo((p-l)*u+this.halfPixel,o+i),g=p;g<d;g++){var h=n[2*g]||0,v=Math.round(h/r*o);t.lineTo((g-l)*u+this.halfPixel,o-v+i)}for(var g=d-1;g>=p;g--)h=n[2*g+1]||0,v=Math.round(h/r*o),t.lineTo((g-l)*u+this.halfPixel,o-v+i);t.closePath(),t.fill()}}},fillRect:function(e,t,n,r,o){o=o||0;for(var i=Math.floor(e/this.maxCanvasWidth),a=Math.min(Math.ceil((e+n)/this.maxCanvasWidth)+1,this.canvases.length),s=i;s<a;s++){var c=this.canvases[s],u=s*this.maxCanvasWidth,l={x1:Math.max(e,s*this.maxCanvasWidth),y1:t,x2:Math.min(e+n,s*this.maxCanvasWidth+c.waveCtx.canvas.width),y2:t+r};l.x1<l.x2&&(this.setFillStyles(c),this.fillRectToContext(c.waveCtx,l.x1-u,l.y1,l.x2-l.x1,l.y2-l.y1),this.fillRectToContext(c.progressCtx,l.x1-u,l.y1-o/2,l.x2-l.x1,l.y2-l.y1+o))}},fillRectToContext:function(e,t,n,r,o){e&&e.fillRect(t,n,r,o)},setFillStyles:function(e){e.waveCtx.fillStyle=this.params.waveColor,this.hasProgressCanvas&&(e.progressCtx.fillStyle=this.params.progressColor)},updateProgress:function(e){this.style(this.progressWave,{width:e+"px"})},getImage:function(e,t){var n=[];return this.canvases.forEach((function(r){n.push(r.wave.toDataURL(e,t))})),n.length>1?n:n[0]}}),e.Drawer.SplitWavePointPlot=Object.create(e.Drawer.Canvas),e.util.extend(e.Drawer.SplitWavePointPlot,{defaultPlotParams:{plotNormalizeTo:"whole",plotTimeStart:0,plotMin:0,plotMax:1,plotColor:"#f63",plotProgressColor:"#F00",plotPointHeight:2,plotPointWidth:2,plotSeparator:!0,plotSeparatorColor:"black",plotRangeDisplay:!1,plotRangeUnits:"",plotRangePrecision:4,plotRangeIgnoreOutliers:!1,plotRangeFontSize:12,plotRangeFontType:"Ariel",waveDrawMedianLine:!0,plotFileDelimiter:"\t"},plotTimeStart:0,plotTimeEnd:-1,plotArrayLoaded:!1,plotArray:[],plotPoints:[],plotMin:0,plotMax:1,initDrawer:function(e){var t=this;for(var n in this.defaultPlotParams)void 0===this.params[n]&&(this.params[n]=this.defaultPlotParams[n]);this.plotTimeStart=this.params.plotTimeStart,void 0!==this.params.plotTimeEnd&&(this.plotTimeEnd=this.params.plotTimeEnd),Array.isArray(e.plotArray)?(this.plotArray=e.plotArray,this.plotArrayLoaded=!0):this.loadPlotArrayFromFile(e.plotFileUrl,(function(e){t.plotArray=e,t.plotArrayLoaded=!0,t.fireEvent("plot_array_loaded")}),this.params.plotFileDelimiter)},drawPeaks:function(e,t,n,r){if(1==this.plotArrayLoaded)this.setWidth(t),this.splitChannels=!0,this.params.height=this.params.height/2,e[0]instanceof Array&&(e=e[0]),this.params.barWidth?this.drawBars(e,1,n,r):this.drawWave(e,1,n,r),this.params.height=2*this.params.height,this.calculatePlots(),this.drawPlots();else{var o=this;o.on("plot-array-loaded",(function(){o.drawPeaks(e,t,n,r)}))}},drawPlots:function(){var e=this.params.height*this.params.pixelRatio/2,t=.5/this.params.pixelRatio;for(var n in this.waveCc.fillStyle=this.params.plotColor,this.progressCc&&(this.progressCc.fillStyle=this.params.plotProgressColor),this.plotPoints){var r=parseInt(n),o=e-this.params.plotPointHeight-this.plotPoints[n]*(e-this.params.plotPointHeight),i=this.params.plotPointHeight;this.waveCc.fillRect(r,o,this.params.plotPointWidth,i),this.progressCc&&this.progressCc.fillRect(r,o,this.params.plotPointWidth,i)}this.params.plotSeparator&&(this.waveCc.fillStyle=this.params.plotSeparatorColor,this.waveCc.fillRect(0,e,this.width,t)),this.params.plotRangeDisplay&&this.displayPlotRange()},displayPlotRange:function(){var e=this.params.plotRangeFontSize*this.params.pixelRatio,t=this.plotMax.toPrecision(this.params.plotRangePrecision)+" "+this.params.plotRangeUnits,n=this.plotMin.toPrecision(this.params.plotRangePrecision)+" "+this.params.plotRangeUnits;this.waveCc.font=e.toString()+"px "+this.params.plotRangeFontType,this.waveCc.fillText(t,3,e),this.waveCc.fillText(n,3,this.height/2)},calculatePlots:function(){this.plotPoints={},this.calculatePlotTimeEnd();for(var e=[],t=-1,n=0,r=99999999999999,o=0,i=99999999999999,a=this.plotTimeEnd-this.plotTimeStart,s=0;s<this.plotArray.length;s++){var c=this.plotArray[s];if(c.value>n&&(n=c.value),c.value<r&&(r=c.value),c.time>=this.plotTimeStart&&c.time<=this.plotTimeEnd){var u=Math.round(this.width*(c.time-this.plotTimeStart)/a);if(e.push(c.value),u!==t&&e.length>0){var l=this.avg(e);l>o&&(o=l),l<i&&(i=l),this.plotPoints[t]=l,e=[]}t=u}}"whole"==this.params.plotNormalizeTo?(this.plotMin=r,this.plotMax=n):"values"==this.params.plotNormalizeTo?(this.plotMin=this.params.plotMin,this.plotMax=this.params.plotMax):(this.plotMin=i,this.plotMax=o),this.normalizeValues()},normalizeValues:function(){var e={};if("none"!==this.params.plotNormalizeTo){for(var t in this.plotPoints){var n=(this.plotPoints[t]-this.plotMin)/(this.plotMax-this.plotMin);n>1?this.params.plotRangeIgnoreOutliers||(e[t]=1):n<0?this.params.plotRangeIgnoreOutliers||(e[t]=0):e[t]=n}this.plotPoints=e}},loadPlotArrayFromFile:function(t,n,r){void 0===r&&(r="\t");var o=[],i={url:t,responseType:"text"};e.util.ajax(i).on("load",(function(e){if(200==e.currentTarget.status){for(var t=e.currentTarget.responseText.split("\n"),i=0;i<t.length;i++){var a=t[i].split(r);2==a.length&&o.push({time:parseFloat(a[0]),value:parseFloat(a[1])})}n(o)}}))},calculatePlotTimeEnd:function(){void 0!==this.params.plotTimeEnd?this.plotTimeEnd=this.params.plotTimeEnd:this.plotTimeEnd=this.plotArray[this.plotArray.length-1].time},avg:function(e){return e.reduce((function(e,t){return e+t}))/e.length}}),e.util.extend(e.Drawer.SplitWavePointPlot,e.Observer),e.PeakCache={init:function(){this.clearPeakCache()},clearPeakCache:function(){this.peakCacheRanges=[],this.peakCacheLength=-1},addRangeToPeakCache:function(e,t,n){e!=this.peakCacheLength&&(this.clearPeakCache(),this.peakCacheLength=e);for(var r=[],o=0;o<this.peakCacheRanges.length&&this.peakCacheRanges[o]<t;)o++;for(o%2==0&&r.push(t);o<this.peakCacheRanges.length&&this.peakCacheRanges[o]<=n;)r.push(this.peakCacheRanges[o]),o++;o%2==0&&r.push(n),r=r.filter((function(e,t,n){return 0==t?e!=n[t+1]:t==n.length-1?e!=n[t-1]:e!=n[t-1]&&e!=n[t+1]})),this.peakCacheRanges=this.peakCacheRanges.concat(r),this.peakCacheRanges=this.peakCacheRanges.sort((function(e,t){return e-t})).filter((function(e,t,n){return 0==t?e!=n[t+1]:t==n.length-1?e!=n[t-1]:e!=n[t-1]&&e!=n[t+1]}));var i=[];for(o=0;o<r.length;o+=2)i.push([r[o],r[o+1]]);return i},getCacheRanges:function(){for(var e=[],t=0;t<this.peakCacheRanges.length;t+=2)e.push([this.peakCacheRanges[t],this.peakCacheRanges[t+1]]);return e}},function(){var t=function(){var t=document.querySelectorAll("wavesurfer");Array.prototype.forEach.call(t,(function(t){var n=e.util.extend({container:t,backend:"MediaElement",mediaControls:!0},t.dataset);t.style.display="block";var r=e.create(n);if(t.dataset.peaks)var o=JSON.parse(t.dataset.peaks);r.load(t.dataset.url,o)}))};"complete"===document.readyState?t():window.addEventListener("load",t)}(),e}()}.apply(t,[]))||(e.exports=r)},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"updatePageAttribute",(function(){return E})),n.d(r,"updatePageLink",(function(){return O})),n.d(r,"updateSetting",(function(){return S}));var o={};n.r(o),n.d(o,"PageWrapper",(function(){return H})),n.d(o,"PageBackground",(function(){return V})),n.d(o,"PageBackgroundImage",(function(){return Rn})),n.d(o,"PageShadow",(function(){return Dn})),n.d(o,"PageForeground",(function(){return Nn})),n.d(o,"PageContent",(function(){return Hn})),n.d(o,"PageScroller",(function(){return Wn})),n.d(o,"PageHeader",(function(){return Vn})),n.d(o,"PageText",(function(){return qn})),n.d(o,"PageLink",(function(){return Kn})),n.d(o,"PageThumbnail",(function(){return tr})),n.d(o,"LazyLoadedPageThumbnail",(function(){return nr})),n.d(o,"PlayerControls",(function(){return Gr})),n.d(o,"CloseButton",(function(){return $r})),n.d(o,"MenuBar",(function(){return Ur})),n.d(o,"Icon",(function(){return dr})),n.d(o,"editorOnly",(function(){return Kr})),n.d(o,"withVisibilityWatching",(function(){return Vr})),n.d(o,"Draggable",(function(){return _r.a})),n.d(o,"Measure",(function(){return Tr.a}));var i={};n.r(i),n.d(i,"pageAttribute",(function(){return rn})),n.d(i,"pageAttributes",(function(){return on})),n.d(i,"pageIsActive",(function(){return sn})),n.d(i,"pageIsPrepared",(function(){return un})),n.d(i,"currentParentPageAttributes",(function(){return to})),n.d(i,"currentParentChapterAttributes",(function(){return eo})),n.d(i,"t",(function(){return Yr})),n.d(i,"setting",(function(){return no})),n.d(i,"file",(function(){return Xt})),n.d(i,"prop",(function(){return Yn})),n.d(i,"widgetAttributes",(function(){return io})),n.d(i,"editingWidget",(function(){return ao}));n(175),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(79),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(225),n(226),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(291),n(292),n(293),n(294),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(157),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(390),n(164);var a=n(4),s=(n(391),"PAGE_DID_ACTIVATE"),c="PAGE_WILL_ACTIVATE",u="PAGE_DID_DEACTIVATE",l="PAGE_WILL_DEACTIVATE",f="PAGE_DID_PRELOAD",p="PAGE_DID_PREPARE",d="PAGE_SCHEDULE_UNPREPARE",h="PAGE_DID_UNPREPARE",v="PAGE_DID_RESIZE",g="PAGE_ENHANCE",y="PAGE_CLEANUP",m="UPDATE_PAGE_ATTRIBUTE",b="UPDATE_PAGE_LINK";function w(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(h,e)}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.name,r=e.value;return x(m,t,{name:n,value:r})}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pageId,n=e.linkId,r=e.name,o=e.value;return x(b,t,{linkId:n,name:r,value:o})}function x(e,t){return{type:e,meta:{collectionName:"pages",itemId:t},payload:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}}}var P="SETTINGS_LOAD",k="SETTINGS_UPDATE";function _(e){var t=e.settings;return{type:P,payload:{settings:t}}}function S(e){var t=e.property,n=e.value;return{type:k,payload:{property:t,value:n}}}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),e}function A(e){return(A="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)}function I(e){return(I="function"==typeof Symbol&&"symbol"===A(Symbol.iterator)?function(e){return A(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":A(e)})(e)}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?M(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(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}}),t&&N(e,t)}var B=n(0),F=n.n(B),U=n(5),W=n.n(U),H=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){return React.createElement("div",{className:W()("content_and_background",this.props.className)},this.props.children)}}]),t}(B.Component);function V(e){return React.createElement("div",{className:(t=e,n=t.pageHasPlayerControls,W()("page_background",{"page_background-for_page_with_player_controls":n}))},e.children);var t,n}var q=n(169),G=n.n(q);function z(e){return!!G()(e).match(/^\s*$/)}function Y(e){return e.replace(/_[a-z]/g,(function(e){return e[1].toUpperCase()}))}Y.keys=function(e){return Object.keys(e).reduce((function(t,n){return t[Y(n)]=e[n],t}),{})},Y.deep=function(e){return Array.isArray(e)?e.map(Y.deep):"object"==typeof e&&e?Object.keys(e).reduce((function(t,n){return t[Y(n)]=Y.deep(e[n]),t}),{}):e},Y.concat=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).reduce((function(e,t){return e+t[0].toUpperCase()+t.slice(1)}))};var X=Y,$=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object.keys(e).reduce((function(t,r){return"function"==typeof e[r]?t[r]=e[r].apply(e,n):t[r]=e[r],t}),{})}},K=n(60),Q=n(120),J=Symbol("selectorFactory"),Z=Symbol("createSelector");function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return re((function(e,n){var r=t.slice(0,-1).map(ne),o=t.slice(-1)[0],i=Q.createSelector.apply(void 0,Object(K.a)(r).concat([o]));if(e===Z)return i;if(e)return i(e,n);throw"Missing state argument for selector."}))}function te(e,t){return re((function(){return Object(Q.createStructuredSelector)(function(e){return Object.keys(e).reduce((function(t,n){return t[n]=ne(e[n]),t}),{})}((t=e,Object.keys(t).reduce((function(e,n){return"function"==typeof t[n]?e[n]=t[n]:e[n]=function(){return t[n]},e}),{}))));var t}))}function ne(e){return"function"==typeof e&&e[J]?e(Z):e}function re(e){return e[J]=!0,e}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pageflow.browser;return t&&t.has(e)}function ie(e){return new Promise((function(t){var n=new Image;n.onload=t,n.onerror=t,n.src=e}))}var ae=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){var e=this;return F.a.createElement("div",{className:this.cssClass(),style:this.style(),ref:function(t){return e.element=t}},this.renderStructuredData())}},{key:"componentDidUpdate",value:function(e){this.props.loaded&&!e.loaded&&function(e){var t=window.getComputedStyle(e).getPropertyValue("background-image");if(t.match(/^url/))ie(t.replace(/^url\(['"]?/,"").replace(/['"]?\)$/,""))}(this.element)}},{key:"cssClass",value:function(){return W()(this.props.className,this.props.loaded?"load_image":null,this.imageCssClass())}},{key:"imageCssClass",value:function(){return["imageFiles"==this.props.fileCollection?"image":"video_poster",this.props.fileId||"none"].join("_")}},{key:"style",value:function(){return{backgroundPosition:"".concat(this.positionCoordinate(0),"% ").concat(this.positionCoordinate(1),"%")}}},{key:"positionCoordinate",value:function(e){var t=this.props.position[e];return void 0===t?50:t}},{key:"renderStructuredData",value:function(){if(this.props.structuredDataComponent){var e=this.props.structuredDataComponent;return F.a.createElement(e,{fileCollection:this.props.fileCollection,fileId:this.props.fileId})}}}]),t}(F.a.Component);ae.defaultProps={position:[50,50],fileCollection:"imageFiles"};var se=n(17),ce=Object(se.c)({isPreloaded:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case f:return!0;default:return e}},isPrepared:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case p:case c:return!0;case h:return!1;default:return e}},isActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case c:return!0;case l:return!1;default:return e}},isActivated:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case s:return!0;case l:return!1;default:return e}},initialScrollerPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c:return t.payload.position||"top";case l:return null;default:return e}}});var ue="COLLECTION_RESET",le="COLLECTION_ADD",fe="COLLECTION_CHANGE",pe="COLLECTION_REMOVE",de="COLLECTION_ORDER";function he(e){var t=e.collectionName,n=e.items;return{type:ue,meta:{collectionName:t},payload:{collectionName:t,items:n}}}function ve(e){var t=e.collectionName,n=e.attributes,r=e.order;return{type:le,meta:{collectionName:t},payload:{attributes:n,order:r}}}function ge(e){var t=e.collectionName,n=e.attributes;return{type:fe,meta:{collectionName:t},payload:{attributes:n}}}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case le:case fe:return t.payload.attributes;default:return e}}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var we=function(e){var t={};function n(n){return t[n]=t[n]||Object(se.c)({attributes:ye,state:Object(se.c)({custom:e[n]||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},common:ce})}),t[n]}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,o=ye(e.attributes,t);return n(o.type)(r(e,e.attributes,o),t)};function r(e,t,n){return t&&t.type!==n.type?be({},e,{state:be({},e.state,{custom:void 0})}):e}},Ee=n(2),Oe=n.n(Ee),xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;return function(t){if(n){if(!t[n])throw new Error("Cannot select from unknown namespace ".concat(n,"."));t=t[n]}return t[e].items||{}}};function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e,t,n){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,Object(a.a)({},_e(t),n))}function _e(e){return"__".concat(e,"_connectedId")}var Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.id;return function(t,o){var i=r,a=t;if(n){if(!t[n])throw new Error("Cannot select from unknown namespace ".concat(n,"."));a=t[n]}if(!a[e])throw new Error("Cannot select from unknown collection ".concat(e,"."));return"function"==typeof r&&(i=r(t,o)),(i=i||t[_e(e)])?a[e].items[i]:null}}};function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,r=void 0===n?"id":n,o=t.itemReducer,i=void 0===o?ye:o,s={order:[],items:{}};return function(){var t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,c=arguments.length>1?arguments[1]:void 0;if(!c.meta||c.meta.collectionName!=e)return o;switch(c.type){case ue:return{order:c.payload.items.map((function(e){return e[r]})),items:c.payload.items.reduce((function(e,t){return e[t[r]]=i(void 0,ve({collectioName:c.payload.collectioName,attributes:t})),e}),{})};case le:return{order:c.payload.order,items:je({},o.items,Object(a.a)({},c.payload.attributes[r],i(void 0,c)))};case fe:return n=c.payload.attributes[r],{order:o.order,items:je({},o.items,Object(a.a)({},n,i(o.items[n],c)))};case pe:return n=c.payload.attributes[r],delete(t=je({},o.items))[n],{order:c.payload.order,items:t};case de:return{items:o.items,order:c.payload.order};default:if(c.meta.itemId){var u=o.items[c.meta.itemId],l=i(u,c);if(l!==u)return{order:o.order,items:je({},o.items,Object(a.a)({},c.meta.itemId,l))}}return o}}};function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e,t,n){e.meta&&e.meta.collectionName==t&&!e.meta.itemId&&(e.meta=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.meta,{itemId:n}))}function Me(e,t){return e.meta&&e.meta.collectionName==t}function Re(e){return e.meta&&e.meta.itemId}var De=n(3),Ne=n(7);function Le(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Be=n(28),Fe=n.n(Be),Ue=Fe.a.shape({trySubscribe:Fe.a.func.isRequired,tryUnsubscribe:Fe.a.func.isRequired,notifyNestedSubs:Fe.a.func.isRequired,isSubscribed:Fe.a.func.isRequired}),We=Fe.a.shape({subscribe:Fe.a.func.isRequired,dispatch:Fe.a.func.isRequired,getState:Fe.a.func.isRequired});F.a.forwardRef;var He=function(e){var t;void 0===e&&(e="store");var n=e+"Subscription",r=function(t){Le(o,t);var r=o.prototype;function o(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return r.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},r.render=function(){return B.Children.only(this.props.children)},o}(B.Component);return r.propTypes={store:We.isRequired,children:Fe.a.element.isRequired},r.childContextTypes=((t={})[e]=We.isRequired,t[n]=Ue,t),r}();function Ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qe(){return(qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ge(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var ze=n(172),Ye=n.n(ze),Xe=n(96),$e=n.n(Xe),Ke=n(119),Qe=null,Je={notify:function(){}};var Ze=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=Je}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=Qe,e=Qe},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==Qe&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Je)},e}(),et=void 0!==F.a.forwardRef,tt=0,nt={};function rt(){}function ot(e,t){var n,r;void 0===t&&(t={});var o=t,i=o.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=o.methodName,c=void 0===s?"connectAdvanced":s,u=o.renderCountProp,l=void 0===u?void 0:u,f=o.shouldHandleStateChanges,p=void 0===f||f,d=o.storeKey,h=void 0===d?"store":d,v=o.withRef,g=void 0!==v&&v,y=Ge(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),m=h+"Subscription",b=tt++,w=((n={})[h]=We,n[m]=Ue,n),E=((r={})[m]=Ue,r);return function(t){$e()(Object(Ke.isValidElementType)(t),"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",r=a(n),o=qe({},y,{getDisplayName:a,methodName:c,renderCountProp:l,shouldHandleStateChanges:p,storeKey:h,withRef:g,displayName:r,wrappedComponentName:n,WrappedComponent:t}),i=function(n){function i(e,t){var o;return(o=n.call(this,e,t)||this).version=b,o.state={},o.renderCount=0,o.store=e[h]||t[h],o.propsMode=Boolean(e[h]),o.setWrappedInstance=o.setWrappedInstance.bind(Ve(Ve(o))),$e()(o.store,'Could not find "'+h+'" in either the context or props of "'+r+'". Either wrap the root component in a <Provider>, or explicitly pass "'+h+'" as a prop to "'+r+'".'),o.initSelector(),o.initSubscription(),o}Le(i,n);var a=i.prototype;return a.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[m]=t||this.context[m],e},a.componentDidMount=function(){p&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.componentWillReceiveProps=function(e){this.selector.run(e)},a.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=rt,this.store=null,this.selector.run=rt,this.selector.shouldComponentUpdate=!1},a.getWrappedInstance=function(){return $e()(g,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},a.setWrappedInstance=function(e){this.wrappedInstance=e},a.initSelector=function(){var t=e(this.store.dispatch,o);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.initSubscription=function(){if(p){var e=(this.propsMode?this.props:this.context)[m];this.subscription=new Ze(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(nt)):this.notifyNestedSubs()},a.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.addExtraProps=function(e){if(!(g||l||this.propsMode&&this.subscription))return e;var t=qe({},e);return g&&(t.ref=this.setWrappedInstance),l&&(t[l]=this.renderCount++),this.propsMode&&this.subscription&&(t[m]=this.subscription),t},a.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(B.createElement)(t,this.addExtraProps(e.props))},i}(B.Component);return et&&(i.prototype.UNSAFE_componentWillReceiveProps=i.prototype.componentWillReceiveProps,delete i.prototype.componentWillReceiveProps),i.WrappedComponent=t,i.displayName=r,i.childContextTypes=E,i.contextTypes=w,i.propTypes=w,Ye()(i,t)}}var it=Object.prototype.hasOwnProperty;function at(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function st(e,t){if(at(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!it.call(t,n[o])||!at(e[n[o]],t[n[o]]))return!1;return!0}function ct(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function ut(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function lt(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=ut(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=ut(o),o=r(t,n)),o},r}}var ft=[function(e){return"function"==typeof e?lt(e):void 0},function(e){return e?void 0:ct((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?ct((function(t){return Object(se.b)(e,t)})):void 0}];var pt=[function(e){return"function"==typeof e?lt(e):void 0},function(e){return e?void 0:ct((function(){return{}}))}];function dt(e,t,n){return qe({},n,e,t)}var ht=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var c=e(t,n,s);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return dt}}];function vt(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function gt(e,t,n,r,o){var i,a,s,c,u,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function h(o,d){var h,v,g=!f(d,a),y=!l(o,i);return i=o,a=d,g&&y?(s=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):g?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):y?(h=e(i,a),v=!p(h,s),s=h,v&&(u=n(s,c,a)),u):u}return function(o,l){return d?h(o,l):(s=e(i=o,a=l),c=t(r,a),u=n(s,c,a),d=!0,u)}}function yt(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Ge(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),s=r(e,i),c=o(e,i);return(i.pure?gt:vt)(a,s,c,e,i)}function mt(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function bt(e,t){return e===t}var wt,Et,Ot,xt,Pt,kt,_t,St,Tt,jt,Ct,At,It=(Ot=(Et=void 0===wt?{}:wt).connectHOC,xt=void 0===Ot?ot:Ot,Pt=Et.mapStateToPropsFactories,kt=void 0===Pt?pt:Pt,_t=Et.mapDispatchToPropsFactories,St=void 0===_t?ft:_t,Tt=Et.mergePropsFactories,jt=void 0===Tt?ht:Tt,Ct=Et.selectorFactory,At=void 0===Ct?yt:Ct,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,s=o.areStatesEqual,c=void 0===s?bt:s,u=o.areOwnPropsEqual,l=void 0===u?st:u,f=o.areStatePropsEqual,p=void 0===f?st:f,d=o.areMergedPropsEqual,h=void 0===d?st:d,v=Ge(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),g=mt(e,kt,"mapStateToProps"),y=mt(t,St,"mapDispatchToProps"),m=mt(n,jt,"mergeProps");return xt(At,qe({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:g,initMapDispatchToProps:y,initMergeProps:m,pure:a,areStatesEqual:c,areOwnPropsEqual:l,areStatePropsEqual:p,areMergedPropsEqual:h},v))});function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Rt=function(e){var t=function(t){function n(){return T(this,n),R(this,D(n).apply(this,arguments))}return L(n,t),C(n,[{key:"getChildContext",value:function(){return Object(a.a)({},_e(e),this.props.itemId)}},{key:"render",value:function(){return this.props.children}}]),n}(F.a.Component);return t.childContextTypes=Object(a.a)({},_e(e),F.a.PropTypes.number),t};function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Nt=function(e,t,n){var r=X.deep(e.reduce((function(e,n){if("object"==typeof n){var r=Object.keys(n)[0],o=n[r];e[r]=t[o]}else e[n]=t[n];return e}),{}));return n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{},X.deep(n)):r},Lt=function(e){var t=e.collection,n=e.dispatch,r=e.collectionName,o=e.idAttribute,i=void 0===o?"id":o,a=e.attributes,s=void 0===a?["id"]:a,c=e.includeConfiguration,u=void 0!==c&&c;n(he({collectionName:r,items:t.map(f)})),t.on("add",(function(e){e.isNew()||n(ve({collectionName:r,attributes:f(e)}))})),t.on("change:id",(function(e){n(ve({collectionName:r,attributes:f(e),order:t.pluck(i)}))})),t.on("change",(function(e){(function(e){return l.some((function(t){return e.hasChanged(t)}))})(e)&&n(ge({collectionName:r,attributes:f(e)}))})),u&&t.on("change:configuration",(function(e){n(ge({collectionName:r,attributes:f(e)}))})),t.on("remove",(function(e){setTimeout((function(){n(function(e){var t=e.collectionName,n=e.attributes,r=e.order;return{type:pe,meta:{collectionName:t},payload:{attributes:n,order:r}}}({collectionName:r,attributes:f(e),order:t.pluck(i)}))}),0)})),t.on("sort",(function(){n(function(e){var t=e.collectionName,n=e.order;return{type:de,meta:{collectionName:t},payload:{order:n}}}({collectionName:r,order:t.pluck(i)}))}));var l=s.map((function(e){return"object"==typeof e?function(e){return e[Object.keys(e)[0]]}(e):e}));function f(e){return Nt(s,e.attributes,u&&e.configuration.attributes)}},Bt=function(e){var t=e.collection,n=e.collectionName,r=e.dispatch,o=e.attributes,i=void 0===o?["id"]:o,a=e.includeConfiguration,s=void 0!==a&&a;r(he({collectionName:n,items:t.map((function(e){return Nt(i,e,s&&e.configuration)}))}))},Ft=n(50),Ut=n.n(Ft),Wt=function(e){var t=e.collection,n=e.collectionName,r=e.dispatch,o=e.idAttribute,i=e.attributes,a=e.includeConfiguration;(Ut.a.Collection&&t instanceof Ut.a.Collection?Lt:Bt)({collection:t,collectionName:n,dispatch:r,idAttribute:o,attributes:i,includeConfiguration:a})};function Ht(e){var t=e.candidates,n=e.page,r=e.fileExists;return t.find((function(e){if(e.condition&&!function(e,t){var n=t[X(e.attribute)];return e.negated?n!=e.value:n==e.value}(e.condition,n))return!1;var t=Vt(n,e);return r(X(e.collectionName),t)}))}function Vt(e,t){return"id"in t?t.id:e[X(t.attribute)]}function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gt=function(e,t,n){if(!t)return null;if(!n[e])throw new Error("No file url templates found for ".concat(e));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({urls:(t.variants||Object.keys(n[e])).reduce((function(r,o){var i=function(e,t,n,r){var o=r[e][n];if(o)return o.replace(":id_partition",(i=t.id,function(e,t){return e.replace(/./g,(function(e,t,n){return t&&(n.length-t)%3==0?"/"+e:e}))}((a=i,s=9,(Array(s).fill(0).join("")+a).slice(-s))))).replace(":basename",t.basename).replace(":pageflow_hls_qualities",(function(){return function(e){return["low","medium","high","fullhd","4k"].filter((function(t){return e.variants.includes(t)})).join(",")}(t)}));var i,a,s}(e,t,o,n);return i&&(r[o]=i),r}),{})},t)};function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Yt=function(e,t,n){if(!t)return null;if(!n[e])throw new Error("Could not find model type for collection name ".concat(e));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{collectionName:e,modelType:n[e]})};function Xt(e,t){return ee(Se(e,{namespace:"files"})(t),(function(e){return e.fileUrlTemplates}),(function(e){return e.modelTypes}),(function(t,n,r){return Kt(e,t,n,r)}))}function $t(){return ee((function(e){return e.files}),(function(e){return function(t,n){return n&&!!Se(t)({id:n})(e)}}))}function Kt(e,t,n,r){return Yt(e,Gt(e,t,n),r)}function Qt(e){var t=e.page;return function(e,n){var r="function"==typeof t?t(n):t;return r?e.pageTypes[X(r.type)]:null}}function Jt(e){var t=e.page,n=e.variant,r=void 0===n?"medium":n;return ee(t,$t(),(function(e){return e}),(function(e,t,n){if(e){var o=Ht({candidates:Qt({page:e})(n).thumbnailCandidates,page:e,fileExists:t});if(o){var i=Xt(X(o.collectionName),{id:Vt(e,o)});return"image_files"==o.collectionName?i(n).urls[r]:"video_files"==o.collectionName?i(n).urls["poster_".concat(r)]:void 0}}}))}var Zt=Se("pages"),en=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).namespace;return function(n){if(t){if(!n[t])throw new Error("Cannot select from unknown namespace ".concat(t,"."));n=n[t]}var r=n[e];return r.items[r.order[0]]}}("pages");function tn(){return ee(en,(function(e){return e&&e.attributes}))}function nn(e){return ee(en,(function(t){return t&&t.attributes[e]}))}function rn(e,t){return ee(Zt(t),(function(t){return t&&t.attributes[e]}))}function on(e){return ee(Zt(e),(function(e){return e&&e.attributes}))}function an(e,t){return ee(Zt(t),(function(t){return t&&t.state.custom[e]}))}function sn(e){return ln("isActive",e)}function cn(e){return ln("isPreloaded",e)}function un(e){return ln("isPrepared",e)}function ln(e,t){return ee(Zt(t),(function(t){return t&&t.state.common[e]}))}var fn=Oe.a.mark(dn),pn=Oe.a.mark(hn);function dn(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeLatest)([d,p,c],hn);case 2:case"end":return e.stop()}}),fn)}function hn(e){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.type!=d){t.next=5;break}return t.next=3,Object(De.call)(Ne.delay,5e3);case 3:return t.next=5,Object(De.put)(w());case 5:case"end":return t.stop()}}),pn)}var vn=Oe.a.mark(gn);function gn(e){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Ut.a.Collection){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Object(Ne.takeEvery)(m,Oe.a.mark((function t(n){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(mn,{pagesCollection:e,id:Re(n),name:n.payload.name,value:n.payload.value});case 2:case"end":return t.stop()}}),t)})));case 4:return t.next=6,Object(Ne.takeEvery)(b,Oe.a.mark((function t(n){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(yn,{pagesCollection:e,pageId:Re(n),linkId:n.payload.linkId,name:n.payload.name,value:n.payload.value});case 2:case"end":return t.stop()}}),t)})));case 6:case"end":return t.stop()}}),vn)}function yn(e){var t=e.pagesCollection,n=e.pageId,r=e.linkId,o=e.name,i=e.value,a=bn(t,n).pageLinks().get(r);if(!a)throw new Error("Could not find page link with id ".concat(r," in page with perma id ").concat(n,"."));a.set(o,i)}function mn(e){var t=e.pagesCollection,n=e.id,r=e.name,o=e.value;bn(t,n).configuration.set(r,o)}function bn(e,t){var n=e.where({perma_id:t})[0];if(!n)throw new Error("Could not find page with perma id ".concat(t,"."));return n}var wn=function(e){var t=e.pages,n=e.pageTypeSagas;return(Oe.a.mark((function e(){var r;return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(dn(),"t0",1);case 1:return e.delegateYield(gn(t),"t1",2);case 2:return e.next=4,Object(Ne.takeEvery)(g,Oe.a.mark((function e(){var t,o;return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(rn("type"));case 2:if(t=e.sent,!(o=n[t])){e.next=8;break}return e.next=7,Object(De.fork)(o);case 7:r=e.sent;case 8:case"end":return e.stop()}}),e)})));case 4:return e.next=6,Object(Ne.takeEvery)(y,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=3;break}return e.next=3,Object(De.cancel)(r);case 3:case"end":return e.stop()}}),e)})));case 6:case"end":return e.stop()}}),e)})))},En=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"getChildContext",value:function(){return{mediaContext:this.props.mediaContext}}},{key:"render",value:function(){return this.props.children}}]),t}(F.a.Component);En.childContextTypes={mediaContext:F.a.PropTypes.object};var On=n(42),xn=n.n(On),Pn=Rt("pages"),kn=function(e){var t=e.Component,n=e.store,r=e.selectTargetElement,o=void 0===r?function(e){return e[0]}:r;return{scroller:!1,enhance:function(e,r){xn.a.render(F.a.createElement(He,{store:n},F.a.createElement(Pn,{itemId:_n(e)},F.a.createElement(En,{mediaContext:{page:e.page("instance")}},F.a.createElement(t,null)))),o(e)),n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(g,e)}({id:_n(e)}))},preload:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(f,e)}({id:_n(e)}))},prepare:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(p,e)}({id:_n(e)}))},unprepare:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(d,e)}({id:_n(e)}))},activating:function(e,t,r){n.dispatch(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.position;return x(c,t,{position:n})}({id:_n(e),position:r.position}))},activated:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(s,e)}({id:_n(e)}))},deactivating:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(l,e)}({id:_n(e)}))},deactivated:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(u,e)}({id:_n(e)}))},resize:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(v,e)}({id:_n(e)}))},update:function(e,t){pageflow.commonPageCssClasses.updateCommonPageCssClasses(e,t)},cleanup:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(y,e)}({id:_n(e)})),xn.a.unmountComponentAtNode(e[0])}}};function _n(e){return parseInt(e.attr("id"),10)}function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tn(e,t){return Object.keys(t).reduce((function(n,r){return"function"==typeof e[r]?n[r]=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e[r].apply(this,o),t[r].apply(this,o)}:n[r]=t[r],n}),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}var jn,Cn,An={init:function(e){var t=e.pages,n=e.dispatch;Wt({collection:t,collectionName:"pages",dispatch:n,idAttribute:"perma_id",attributes:["perma_id",{type:"template"},"chapter_id"],includeConfiguration:!0})},createReducers:function(e){var t=e.pageTypes,n=(void 0===t?[]:t).reduce((function(e,t){var n=t.name,r=t.reducer;return e[n]=r,e}),{});return{pages:Ce("pages",{idAttribute:"permaId",itemReducer:we(n)})}},createMiddleware:function(){return function e(t){var n,r=t.getState,o=t.dispatch,i=(n=[],{subscribe:function(e){return n.push(e),function(){return function(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}(n,e)}},emit:function(e){for(var t=n.slice(),r=0,o=t.length;r<o;r++)t[r](e)}});return e.getState=r,e.dispatch=o,e.subscribe=i.subscribe,function(e){return function(t){var n=e(t);return i.emit(t),n}}}},createSaga:function(e){var t=e.pages,n=e.pageTypes,r=void 0===n?[]:n,o=e.middleware,i=r.reduce((function(e,t){var n=t.name,r=t.saga;return e[n]=r,e}),{});return function(e,t){var n=Oe.a.mark(l),r=Oe.a.mark(f),o=Oe.a.mark(p),i=Oe.a.mark(d),a=Oe.a.mark(h),s=t.itemSaga,c=t.middleware,u=xe(e);return l;function l(){var e;return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={},t.next=3,Object(Ne.takeEvery)([ue,le,pe],f,e);case 3:case"end":return t.stop()}}),n)}function f(e){var t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(De.select)(u);case 2:return t=n.sent,n.delegateYield(p(t,e),"t0",4);case 4:return n.delegateYield(d(t,e),"t1",5);case 5:case"end":return n.stop()}}),r)}function p(e,t){return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object.keys(t).map((function(n){if(!(n in e))return Object(De.cancel)(t[n])}));case 2:case"end":return n.stop()}}),o)}function d(e,t){var n;return Oe.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object.keys(e).map((function(e){if(!t[e])return Object(De.fork)(h,parseInt(e,10))}));case 2:n=r.sent,Object.keys(e).forEach((function(e,r){t[e]||(t[e]=n[r])}));case 4:case"end":return r.stop()}}),i)}function h(t){var n;return Oe.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Object(Ne.runSaga)(s(),{subscribe:function(n){return c.subscribe((function(r){Me(r,e)&&Re(r)!=t||n(r)}))},dispatch:function(n){Ie(n,e,t),c.dispatch(n)},getState:function(){return ke(c.getState(),e,t)}}),r.prev=1,r.next=4,Object(De.call)((function(){return n.done}));case 4:return r.prev=4,n.cancel(),r.finish(4);case 7:case"end":return r.stop()}}),a,null,[[1,,4,7]])}}("pages",{itemSaga:wn({pages:t,pageTypeSagas:i}),middleware:o})}},In=(Cn=_e(jn="pages"),function(e,t,n){var r=It(e?function(t,n){var r=e(ke(t,jn,n[Cn]),n);return"function"==typeof r?function(e,t){return r(ke(e,jn,t[Cn]),t)}:r}:null,t?function(e,n){var r=function(t){return Ie(t,jn,n[Cn]),e(t)};return"function"==typeof t?t(r,n):Object(se.b)(t,r)}:null,n);return function(e){var t=r(e),n=function(e){function n(){return T(this,n),R(this,D(n).apply(this,arguments))}return L(n,e),C(n,[{key:"render",value:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.props,Object(a.a)({},Cn,this.context[Cn]));return F.a.createElement(t,e)}}]),n}(F.a.Component);return n.contextTypes=Object(a.a)({},Cn,F.a.PropTypes.number),n}});var Mn=In(te({loaded:cn()}))(ae),Rn=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){var e=this.props.page,t=X.concat(this.props.propertyNamePrefix,this.props.propertyBaseName);return F.a.createElement(Mn,{fileId:e["".concat(t,"Id")],fileCollection:this.props.fileCollection,position:[e["".concat(t,"X")],e["".concat(t,"Y")]],className:"background background_image",structuredDataComponent:this.props.structuredDataComponent})}}]),t}(F.a.Component);Rn.defaultProps={propertyBaseName:"backgroundImage"};var Dn=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){return F.a.createElement("div",{className:"shadow_wrapper"},F.a.createElement("div",{className:W()("shadow",this.props.className),style:this.style()}))}},{key:"style",value:function(){if("gradientOpacity"in this.props.page)return{opacity:this.props.page.gradientOpacity/100}}}]),t}(F.a.Component),Nn=function(e){return F.a.createElement("div",{className:"content",onTouchStart:e.onInteraction,onMouseMove:e.onInteraction},e.children)},Ln=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){var e=this;return React.createElement("div",{className:"scroller-wrapper",ref:function(t){return e.wrapperElement=t}},React.createElement("div",{ref:function(t){return e.scrollerElement=t},className:W()("scroller",this.props.className),style:this.props.style},React.createElement("div",null,this.props.children)))}},{key:"componentDidMount",value:function(){if("undefined"!=typeof jQuery){var e=jQuery(this.scrollerElement);e.scroller({eventListenerTarget:this.wrapperElement}),this.scroller=e.scroller("instance")}}},{key:"componentDidUpdate",value:function(){this.scroller.refresh()}},{key:"enable",value:function(){this.scroller.enable(),this.scroller.afterAnimationHook()}},{key:"disable",value:function(){this.scroller.disable()}},{key:"resetPosition",value:function(e){this.scroller.resetPosition(e)}}]),t}(B.Component),Bn=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"componentWillReceiveProps",value:function(e){!this.props.enabled&&e.enabled?this.refs.scroller.enable():this.props.enabled&&!e.enabled&&this.refs.scroller.disable(),this.props.initialScrollerPosition!==e.initialScrollerPosition&&e.initialScrollerPosition&&this.refs.scroller.resetPosition({position:e.initialScrollerPosition})}},{key:"getChildContext",value:function(){var e=this;return this._pageScroller=this._pageScroller||{disable:function(){e.refs.scroller.disable()},enable:function(){e.refs.scroller.enable()}},{pageScroller:this._pageScroller}}},{key:"render",value:function(){return F.a.createElement(Ln,{ref:"scroller",className:(e=this.props,W()(e.className,{"scroller-clipped_bottom":!!e.marginBottom})),style:Fn(this.props)},F.a.createElement("div",{className:"content_wrapper"},this.props.children));var e}}]),t}(F.a.Component);function Fn(e){if(e.marginBottom)return{bottom:e.marginBottom}}Bn.childContextTypes={pageScroller:F.a.PropTypes.object};var Un,Wn=In(te({enabled:ln("isActivated",Un),initialScrollerPosition:function(e){return ln("initialScrollerPosition",e)}()}))(Bn),Hn=function(e){return React.createElement(Nn,null,React.createElement(Wn,null,e.children))},Vn=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){return F.a.createElement("h3",{className:"page_header"},F.a.createElement("span",{className:"page_header-tagline"},this.props.page.tagline),F.a.createElement("span",{className:"page_header-title"},this.props.page.title),F.a.createElement("span",{className:"page_header-subtitle"},this.props.page.subtitle))}}]),t}(F.a.Component);function qn(e){return F.a.createElement("div",{className:Gn(e)},F.a.createElement("div",{className:"paragraph",dangerouslySetInnerHTML:zn(e)}),e.children)}function Gn(e){return W()("page_text",Object(a.a)({},"page_text-margin_".concat(e.marginBottom),e.marginBottom!=qn.defaultProps.marginBottom))}function zn(e){return{__html:e.page.text}}function Yn(e){return function(t,n){var r=e.split(".");if(!(r[0]in n))throw new Error("Missing required prop ".concat(r[0],"."));return r.reduce((function(e,t){return e&&e[t]}),n)}}function Xn(e){return function(t,n,r){return oe(e,r)}}qn.defaultProps={marginBottom:"for_scroll_indicator_on_phone"};var $n=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){return F.a.createElement("a",{href:this._href(),className:this.props.className,onClick:this._handleClick.bind(this)},this.props.children)}},{key:"_href",value:function(){return this._targetPage()?"#"+this._targetPage().permaId:"#missing"}},{key:"_handleClick",value:function(e){this._targetPage()&&pageflow.slides.goToByPermaId(this._targetPage().permaId,{transition:this.props.pageLink.pageTransition}),e.preventDefault()}},{key:"_targetPage",value:function(){return this.props.targetPage}}]),t}(F.a.Component),Kn=It(te({targetPage:on({id:Yn("pageLink.targetPageId")})}))($n);function Qn(e){return React.createElement("div",{className:Jn(e)})}function Jn(e){return W()({load_image:e.lazy&&e.loaded},e.className,(t=e.pageType)?"is_".concat(t.name):"is_dangling",function(e){var t=Ht({candidates:Zn(e),page:e.page,fileExists:e.fileExists});if(t)return function(e,t){return[e.lazy?"lazy":null,t.cssClassPrefix,e.imageStyle,Vt(e.page,t)].filter(Boolean).join("_")}(e,t)}(e));var t}function Zn(e){return[er(e)].concat(Object(K.a)((t=e.pageType)?t.thumbnailCandidates:[]));var t}function er(e){return{id:e.customThumbnailId,cssClassPrefix:"pageflow_image_file",collectionName:"image_files"}}Qn.defaultProps={imageStyle:"navigation_thumbnail_large"};var tr=In(te({pageType:Qt({page:function(e){return e.page}}),fileExists:$t()}))(Qn),nr=In(te({loaded:cn(),lazy:!0}))(tr);function rr(e){return W()("add_info_box",{empty:or(e),title_empty:z(e.title),description_empty:z(e.description),"add_info_box-hidden_during_playback":e.hiddenDuringPlayback})}function or(e){return z(e.title)&&z(e.description)}var ir=function(e){return React.createElement("div",{className:rr(e)},function(e){if(!z(e.title))return React.createElement("h3",null,e.title)}(e),function(e){if(!z(e.description))return React.createElement("p",{dangerouslySetInnerHTML:{__html:e.description}})}(e))};function ar(e){return React.createElement("div",{className:W()("controls",e.className),"data-role":"player_controls",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}function sr(e){return F.a.createElement("svg",{className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height,viewBox:"".concat(e.viewBoxLeft," ").concat(e.viewBoxTop," ").concat(e.viewBoxWidth," ").concat(e.viewBoxHeight)},e.children)}sr.defaultProps={width:20,height:20,viewBoxLeft:0,viewBoxTop:0};var cr=sr,ur=function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:24,viewBoxHeight:24}),React.createElement("path",{d:"M21.312,14.056l-1.691-0.98c0,0-0.472-0.216-0.446-1.073c0,0-0.128-0.961,0.478-1.293l1.661-1.014 c0,0,0.546-0.245,0.313-0.818l-0.707-1.598c0,0-0.229-0.625-0.902-0.423l-1.93,0.615c0,0-0.666-0.009-1.078-0.458 c0,0-0.687-0.662-0.476-1.229l0.445-1.924c0,0,0.114-0.563-0.312-0.768l-1.995-0.757c0,0-0.43-0.026-0.562,0.305l-1.122,2.006 c0,0-0.524,0.437-1.248,0.292c0,0-0.752-0.072-0.928-0.253c0,0-1.135-1.916-1.19-2.015c0,0-0.21-0.437-0.65-0.262L7.144,3.176 c0,0-0.367,0.229-0.275,0.559l0.649,2.441c0,0-0.139,0.597-0.561,0.924c0,0-0.745,0.55-1.104,0.483L3.858,7.1 c0,0-0.578-0.207-0.805,0.294L2.306,9.232c0,0-0.143,0.38,0.251,0.616l1.96,1.123c0,0,0.624,0.286,0.441,1.38 c0,0,0.037,0.804-0.756,1.24c-0.793,0.437-1.476,0.875-1.476,0.875s-0.437,0.21-0.249,0.681c0.189,0.471,0.895,1.811,0.895,1.811 s0.131,0.336,0.762,0.091l1.723-0.466c0,0,0.5-0.151,1.031,0.319c0,0,0.741,0.504,0.687,0.919l-0.48,2.433 c0,0-0.157,0.411,0.312,0.676l1.929,0.733c0,0,0.538,0.052,0.68-0.389l0.84-1.532c0,0,0.278-0.669,1.177-0.625 c0,0,0.909-0.081,1.227,0.407l1.101,1.833c0,0,0.199,0.466,0.791,0.188l1.709-0.728c0,0,0.479-0.315,0.333-0.743l-0.533-1.853 c0,0-0.238-0.5,0.259-1.055c0,0,0.533-0.876,1.27-0.701l2.043,0.487c0,0,0.424,0.187,0.793-0.413l0.659-1.639 C21.685,14.901,21.886,14.313,21.312,14.056z M8.542,13.474c-0.824-1.931,0.073-4.166,2.004-4.989 c1.931-0.826,4.165,0.073,4.988,2.004c0.825,1.931-0.073,4.164-2.005,4.989C11.599,16.303,9.365,15.404,8.542,13.474z"}))},lr=function(e){return React.createElement(cr,Object.assign({},e,{viewBoxLeft:5,viewBoxTop:5,viewBoxWidth:145,viewBoxHeight:145}),React.createElement("path",{d:"m80 15c-35.88 0-65 29.12-65 65s29.12 65 65 65 65-29.12 65-65-29.12-65-65-65zm0 10c30.36 0 55 24.64 55 55s-24.64 55-55 55-55-24.64-55-55 24.64-55 55-55z"}),React.createElement("path",{d:"m57.373 18.231a9.3834 9.1153 0 1 1 -18.767 0 9.3834 9.1153 0 1 1 18.767 0z",transform:"matrix(1.1989 0 0 1.2342 21.214 28.75)"}),React.createElement("path",{d:"m90.665 110.96c-0.069 2.73 1.211 3.5 4.327 3.82l5.008 0.1v5.12h-39.073v-5.12l5.503-0.1c3.291-0.1 4.082-1.38 4.327-3.82v-30.813c0.035-4.879-6.296-4.113-10.757-3.968v-5.074l30.665-1.105"}))},fr={Checkmark:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("polygon",{points:"434.442,58.997 195.559,297.881 77.554,179.88 0,257.438 195.559,453.003 512,136.551 "}))},CircleWithNotch:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:1e3,viewBoxHeight:1e3}),React.createElement("path",{d:"M990,497.6c0,66.4-13,129.8-38.8,190.3c-25.9,60.5-60.7,112.7-104.4,156.4C803,888,750.9,922.8,690.3,948.7c-60.5,25.9-124,38.8-190.3,38.8s-129.8-12.9-190.3-38.8S197,888,153.3,844.3c-43.7-43.7-78.5-95.9-104.4-156.4C22.9,627.4,10,563.9,10,497.6c0-80.9,18.4-156.5,55.2-226.7c36.8-70.2,87.2-128,151.2-173.4s135.2-73.8,213.6-85v142.2c-80.6,16.4-147.4,56.7-200.4,120.9c-53,64.2-79.5,138.2-79.6,222c0,47.4,9.3,92.7,27.9,135.9c18.6,43.2,43.4,80.4,74.6,111.6c31.2,31.2,68.4,56.1,111.6,74.6c43.2,18.5,88.5,27.8,135.9,27.9c47.4,0,92.7-9.2,135.9-27.9C679,801,716.2,776.1,747.4,745c31.2-31.1,56-68.3,74.6-111.6c18.6-43.3,27.9-88.6,27.9-135.9c0-83.9-26.5-157.9-79.6-222C717.2,211.3,650.4,171,569.9,154.6V12.5c78.4,11.3,149.6,39.6,213.6,85c64,45.4,114.4,103.2,151.2,173.4c36.8,70.2,55.2,145.7,55.2,226.7H990z"}))},Disk:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:24,viewBoxHeight:24}),React.createElement("circle",{cx:"12",cy:"12",r:"12"}))},Gear:ur,Info:lr,Pause:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("path",{d:"M162.642 148.337h86.034v215.317h-86.034v-215.316z"}),React.createElement("path",{d:"M293.356 148.337h86.002v215.317h-86.002v-215.316z"}))},Play:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("path",{d:"M152.443 136.417l207.114 119.573-207.114 119.593z"}))},Subtitles:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:1200,viewBoxHeight:1200}),React.createElement("path",{transform:"translate(100,100)",d:"M893.4,599V500H401.1V599H893.4z M893.4,794.5v-98.9H695.5v98.9H893.4z M598.9,794.5v-98.9H106.6v98.9H598.9z M106.6,500V599h197.8V500H106.6z M893.4,106.7c26.1,0,48.7,10,67.9,29.9s28.8,42.9,28.8,69v588.9c0,26.1-9.6,49.1-28.8,69c-19.2,19.9-41.8,29.9-67.9,29.9H106.6c-26.1,0-48.7-10-67.9-29.9c-19.2-19.9-28.8-42.9-28.8-69V205.5c0-26.1,9.6-49.1,28.8-69s41.8-29.9,67.9-29.9H893.4z"}))}},pr={toggleInfoBox:fr.Info,mediaQuality:fr.Gear,textTracks:fr.Subtitles,activeMenuItem:fr.Checkmark,loadingSpinner:fr.CircleWithNotch,play:fr.Play,pause:fr.Pause};function dr(e){var t=pr[e.name];if(!t)throw new Error('No icon registered for "'.concat(e.name,'".'));return F.a.createElement(t,e)}var hr=function(e){return React.createElement("div",{className:"vjs-loading-spinner"},React.createElement(dr,{name:"loadingSpinner"}))},vr=function(e){return In(te({id:ee(sn(),(function(e){return e?"firstContent":void 0}))}))(e)};var gr=vr((function(e){return React.createElement("a",{className:yr(e),href:"#",tabIndex:"4",id:e.id,title:e.title,onClick:mr(e)},function(e){return e.iconName?React.createElement(dr,{name:e.iconName}):React.createElement("span",null)}(e))}));function yr(e){return W()("vjs-play-control",{"vjs-playing":e.isPlaying},{"player_controls-play_button-custom_icon":!!e.iconName})}function mr(e){return function(t){e.onClick&&e.onClick(t),t.preventDefault()}}function br(e){return React.createElement("div",{className:W()(e.className)},function(e){if(isNaN(e))return wr;var t=Math.floor(e)%60,n=Math.floor(e/60)%60,r=Math.floor(e/60/60);return r>0?"".concat(r,":").concat(Er(n),":").concat(Er(t)):"".concat(n,":").concat(Er(t))}(e.value))}var wr="-:--";function Er(e){return e<10?"0"+e:e}br.defaultProps={value:0};var Or=function(e){return React.createElement(br,{className:"vjs-current-time",value:e.currentTime})},xr=function(e){return React.createElement("div",{className:"vjs-time-divider"},"/")},Pr=function(e){return React.createElement(br,{className:"vjs-duration",value:e.duration})},kr=n(95),_r=n.n(kr),Sr=n(32),Tr=n.n(Sr),jr=37,Cr=39,Ar=function(e){function t(e,n){var r;return T(this,t),(r=R(this,D(t).call(this,e,n))).state={handleWidth:null,progressHolderWidth:null},r.measureProgressHolder=function(e){var t=e.width;r.setState({progressHolderWidth:t})},r.measureHandle=function(e){var t=e.width;r.setState({handleWidth:t})},r.handleStop=function(e,t){r.props.onSeek&&r.props.onSeek(r.positionToTime(t.x))},r.handleDrag=function(e,t){r.props.onScrub&&r.props.onScrub(r.positionToTime(t.x))},r.handleKeyDown=function(e){var t;e.keyCode==jr?t=Math.max(0,r.props.currentTime-1):e.keyCode==Cr&&(t=Math.min(r.props.currentTime+1,r.props.duration||1/0)),r.prop.onSeek&&r.props.onSeek(t)},r}return L(t,e),C(t,[{key:"positionToTime",value:function(e){return this.props.duration&&this.state.progressHolderWidth?Math.max(0,Math.min(1,e/this.state.progressHolderWidth))*this.props.duration:0}},{key:"render",value:function(){return F.a.createElement("div",{className:"vjs-progress-control",tabIndex:"4",onKeyDown:this.handleKeyDown},F.a.createElement(Tr.a,{whitelist:["width"],onMeasure:this.measureProgressHolder},F.a.createElement(kr.DraggableCore,{onStart:this.handleDrag,onDrag:this.handleDrag,onStop:this.handleStop},F.a.createElement("div",{className:"vjs-progress-holder"},F.a.createElement("div",{className:"vjs-load-progress",style:{width:Ir(this.loadProgress())}}),F.a.createElement("div",{className:"vjs-play-progress",style:{width:Ir(this.playProgress())}}),F.a.createElement(Tr.a,{whitelist:["width"],onMeasure:this.measureHandle},F.a.createElement("div",{className:"vjs-seek-handle",style:{left:this.handlePosition()}}))))))}},{key:"handlePosition",value:function(){return this.state.handleWidth&&this.state.progressHolderWidth?(this.state.progressHolderWidth-this.state.handleWidth)*this.playProgress():Ir(this.playProgress())}},{key:"loadProgress",value:function(){return this.props.duration>0?this.props.bufferedEnd/this.props.duration:0}},{key:"playProgress",value:function(){return this.props.duration>0?this.props.currentTime/this.props.duration:0}}]),t}(F.a.Component);function Ir(e){return e>0?100*e+"%":0}Ar.defaultProps={currentTime:0,bufferedEnd:0};var Mr=function(e){function t(e,n){var r;return T(this,t),(r=R(this,D(t).call(this,e,n))).state={subMenuVisible:!1},r.onLinkClick=function(e){e.preventDefault(),r.props.subMenuItems.length>0&&r.setState({subMenuVisible:!0}),r.props.onClick&&r.props.onClick()},r.onMouseEnter=function(){r.props.subMenuItems.length>0&&r.setState({subMenuVisible:!0}),r.props.onMouseEnter&&r.props.onMouseEnter()},r.onMouseLeave=function(){r.closeMenu(),r.props.onMouseEnter&&r.props.onMouseLeave()},r.onFocus=function(){clearTimeout(r.closeMenuTimeout)},r.onBlur=function(){clearTimeout(r.closeMenuTimeout),r.closeMenuTimeout=setTimeout((function(){r.closeMenu()}),100)},r.closeMenu=function(){r.setState({subMenuVisible:!1})},r}return L(t,React.Component),C(t,[{key:"render",value:function(){var e=this,t=this.props;return React.createElement("div",{className:Rr(t,this.state.subMenuVisible),ref:function(t){return e.wrapper=t},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,onBlur:this.onBlur},React.createElement("a",{className:Lr(t,"link"),href:"#",tabIndex:"4",title:t.title,onClick:this.onLinkClick},React.createElement(dr,{className:Lr(t,"icon"),name:t.iconName})),function(e,t){if(e.subMenuItems.length>0)return React.createElement("ul",{className:"player_controls-menu_bar_button_sub_menu"},function(e,t){return e.subMenuItems.map((function(n){return React.createElement("li",{className:Dr(n),key:n.value},React.createElement("a",{className:"player_controls-menu_bar_button_sub_menu_item_link",href:"#",tabIndex:"4",onClick:Nr(e,n.value,t)},function(e){if(e.active)return React.createElement(dr,{className:"player_controls-menu_bar_button_sub_menu_item_icon",name:"activeMenuItem"})}(n),n.label,function(e,t){if(t.annotation)return React.createElement("span",{className:Lr(e,"sub_menu_item_annotation")},t.annotation)}(e,n)))}))}(e,t))}(t,this.closeMenu))}}]),t}();function Rr(e,t){return W()({"player_controls-menu_bar_button-sub_menu_visible":t},Lr(e))}function Dr(e){return W()("player_controls-menu_bar_button_sub_menu_item",{"player_controls-menu_bar_button_sub_menu_item-active":e.active})}function Nr(e,t,n){return function(r){r.preventDefault(),n(),e.onSubMenuItemClick&&e.onSubMenuItemClick(t)}}function Lr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return W()(["player_controls-menu_bar_button"].concat(n).join("_"),[e.className].concat(n).join("_"))}function Br(e){return e.items.length<2?React.createElement("noscript",null):React.createElement(Mr,{className:"player_controls-quality_menu_button",title:e.buttonTitle,iconName:"mediaQuality",subMenuItems:e.items,onSubMenuItemClick:e.onItemClick})}function Fr(e){return e.items.length<2?React.createElement("noscript",null):React.createElement(Mr,{className:"player_controls-text_tracks_menu_button",title:e.buttonTitle,iconName:"textTracks",subMenuItems:e.items,onSubMenuItemClick:e.onItemClick})}function Ur(e){return React.createElement("div",{className:Wr(e)},function(e){return e.additionalButtons.map((function(t){return React.createElement(Mr,{title:t.label,iconName:t.iconName,className:t.className,key:t.name,onClick:Hr(e.onAdditionalButtonClick,t.name),onMouseEnter:Hr(e.onAdditionalButtonMouseEnter,t.name),onMouseLeave:Hr(e.onAdditionalButtonMouseLeave,t.name)})}))}(e),React.createElement(Fr,{buttonTitle:e.textTracksMenuButtonTitle,items:e.textTracksMenuItems,onItemClick:e.onTextTracksMenuItemClick}),React.createElement(Br,{buttonTitle:e.qualityMenuButtonTitle,items:e.qualityMenuItems,onItemClick:e.onQualityMenuItemClick}))}function Wr(e){return W()(e.className,"player_controls-menu_bar",{"player_controls-menu_bar-hidden_on_phone":e.hiddenOnPhone,"player_controls-menu_bar-stand_alone":e.standAlone,"player_controls-menu_bar-inverted":e.inverted})}function Hr(e,t){if(e)return function(){return e(t)}}function Vr(e){return function(t){function n(e){var t;return T(this,n),(t=R(this,D(n).call(this,e))).checkVisibility=function(){var e=window.getComputedStyle(t.element);t.lastVisibility!=e.visibility&&("visible"==e.visibility&&"none"!=e.display?t.props.onVisible&&t.props.onVisible():t.props.onHidden&&t.props.onHidden()),t.lastVisibility=e.visibility},t}return L(n,t),C(n,[{key:"componentDidMount",value:function(){this.element=xn.a.findDOMNode(this),this.updateInterval()}},{key:"componentDidUpdate",value:function(){this.updateInterval()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval),this.interval=null,this.element=null}},{key:"updateInterval",value:function(){this.props.watchVisibility&&!this.interval?this.interval=setInterval(this.checkVisibility,50):!this.props.watchVisibility&&this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"render",value:function(){return F.a.createElement(e,this.props)}}]),n}(F.a.Component)}function qr(e){return W()("vjs-control-bar",{with_quality_menu_present:e.qualityMenuItems&&e.qualityMenuItems.length>=2,with_text_tracks_menu_present:e.textTracksMenuItems&&e.textTracksMenuItems.length>=2})}Mr.defaultProps={subMenuItems:[]},Br.defaultProps={items:[]},Fr.defaultProps={items:[]},Ur.defaultProps={additionalButtons:[],standAlone:!0};var Gr=Vr((function(e){return F.a.createElement(ar,e,F.a.createElement("span",{className:"hint"},e.hint),F.a.createElement(ir,Object.assign({},e.infoBox,{hiddenDuringPlayback:e.infoBoxHiddenDuringPlayback})),F.a.createElement("div",{className:qr(e)},function(e){if(e.isLoading)return F.a.createElement(hr,e)}(e),F.a.createElement("div",{className:"play_button"},F.a.createElement(gr,{title:e.playButtonTitle,iconName:e.playButtonIconName,isPlaying:e.isPlaying,onClick:e.onPlayButtonClick})),function(e){if(e.hasProgress)return F.a.createElement("div",{className:"player_controls-progress"},F.a.createElement(Or,e),F.a.createElement(xr,null),F.a.createElement(Pr,e),F.a.createElement(Ar,e))}(e),F.a.createElement("div",{className:"control_bar_text"},e.controlBarText)),F.a.createElement(Ur,{standAlone:!1,additionalButtons:e.additionalMenuBarButtons,onAdditionalButtonClick:e.onAdditionalButtonClick,onAdditionalButtonMouseEnter:e.onAdditionalButtonMouseEnter,onAdditionalButtonMouseLeave:e.onAdditionalButtonMouseLeave,qualityMenuButtonTitle:e.qualityMenuButtonTitle,qualityMenuItems:e.qualityMenuItems,onQualityMenuItemClick:e.onQualityMenuItemClick,textTracksMenuButtonTitle:e.textTracksMenuButtonTitle,textTracksMenuItems:e.textTracksMenuItems,onTextTracksMenuItemClick:e.onTextTracksMenuItemClick}))}));function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Yr=ee(Xr,(function(e){return function(t,n){return I18n.t(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({locale:e},n))}}));function Xr(e){return e.i18n.locale}var $r=It(te({t:Yr}))((function(e){return React.createElement("div",{className:"close_button text_hidden_only",tabIndex:"4",title:e.t("pageflow.public.close"),onClick:e.onClick},React.createElement("div",{className:"label"},e.t("pageflow.public.close")))})),Kr=function(e){return PAGEFLOW_EDITOR?e:function(){return!1}},Qr=Se("chapters");var Jr=Qr,Zr=Se("storylines");function eo(){return function(e,t){var n=to()(e,t);return n?Jr({id:n.chapterId})(e,t):null}}function to(){return function(e,t){return on({id:function(e,t){return ee(Zr(t),(function(t){return t&&t[e]}))}("parentPagePermaId",{id:function(e,t){return ee(Qr(t),(function(t){return t&&t[e]}))}("storylineId",{id:rn("chapterId",{id:e.currentPageId})(e,t)})(e,t)})(e,t)})(e,t)}}function no(e){var t=e.property;return function(e){return e.settings[t]}}var ro=Se("widgets");function oo(e,t){var n=t.role;return ee(ro({id:n}),(function(t){return t&&t[e]}))}function io(e){var t=e.role;return ee(ro({id:t}),(function(e){return e}))}function ao(e){var t=e.role;return ee(ro({id:t}),(function(e){return!(!e||!e.editing)}))}var so=function(e){return W()({is_playing:e.shouldPlay,is_playing_delayed:e.hasBeenPlayingJustNow,is_paused:!e.shouldPlay})},co="MEDIA_TOGGLE_PLAYING",uo="MEDIA_PLAY",lo="MEDIA_PLAY_AND_FADE_IN",fo="MEDIA_PAUSE",po="MEDIA_FADE_OUT_AND_PAUSE",ho="CHANGE_VOLUME_FACTOR",vo="MEDIA_PLAY_FAILED",go="MEDIA_PLAYING_MUTED",yo="MEDIA_SCRUB_TO",mo="MEDIA_SEEK_TO",bo="MEDIA_PREBUFFER",wo="MEDIA_PREBUFFERED",Eo="MEDIA_ABORT_PREBUFFERING",Oo="MEDIA_BUFFER_UNDERRUN",xo="MEDIA_BUFFER_UNDERRUN_CONTINUE",Po="MEDIA_META_DATA_LOADED",ko="MEDIA_PROGRESS",_o="MEDIA_PLAYING",So="MEDIA_PAUSED",To="MEDIA_TIME_UPDATE",jo="MEDIA_ENDED",Co="MEDIA_SEEKING",Ao="MEDIA_SEEKED",Io="MEDIA_WAITING",Mo="MEDIA_HAS_NOT_BEEN_PLAYING_FOR_A_MOMENT",Ro="MEDIA_USER_INTERACTION",Do="MEDIA_USER_IDLE",No="MEDIA_CONTROLS_ENTERED",Lo="MEDIA_CONTROLS_LEFT",Bo="MEDIA_FOCUS_ENTERED_CONTROLS",Fo="MEDIA_FOCUS_LEFT_CONTROLS",Uo="MEDIA_CONTROLS_HIDDEN",Wo="SHOW_INFO_BOX_DURING_PLAYBACK",Ho="HIDE_INFO_BOX_DURING_PLAYBACK",Vo="TOGGLE_INFO_BOX_DURING_PLAYBACK",qo="MEDIA_SAVE_MEDIA_ELEMENT_ID",Go="MEDIA_DISCARD_MEDIA_ELEMENT_ID";function zo(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope,t=void 0===e?"default":e;return{togglePlaying:function(){return n(co)},play:function(){return n(uo)},playAndFadeIn:function(e){var t=e.fadeDuration;return n(lo,{fadeDuration:t})},pause:function(){return n(fo)},fadeOutAndPause:function(e){var t=e.fadeDuration;return n(po,{fadeDuration:t})},changeVolumeFactor:function(e,t){var r=t.fadeDuration;return n(ho,{volumeFactor:e,fadeDuration:r})},playFailed:function(){return n(vo)},playingMuted:function(){return n(go)},scrubTo:function(e){return n(yo,{time:e})},seekTo:function(e){return n(mo,{time:e})},prebuffer:function(){return n(bo)},prebuffered:function(){return n(wo)},abortPrebuffering:function(){return n(Eo)},bufferUnderrun:function(){return n(Oo)},bufferUnderrunContinue:function(){return n(xo)},playing:function(){return n(_o)},paused:function(){return n(So)},timeUpdate:function(e){var t=e.currentTime,r=e.duration;return n(To,{currentTime:t,duration:r})},metaDataLoaded:function(e){var t=e.currentTime,r=e.duration;return n(Po,{currentTime:t,duration:r})},progress:function(e){var t=e.bufferedEnd;return n(ko,{bufferedEnd:t})},ended:function(){return n(jo)},seeking:function(){return n(Co)},seeked:function(){return n(Ao)},waiting:function(){return n(Io)},hasNotBeenPlayingForAMoment:function(e){return n(Mo)},userInteraction:function(){return n(Ro)},userIdle:function(){return n(Do)},controlsEntered:function(){return n(No)},controlsLeft:function(){return n(Lo)},focusEnteredControls:function(){return n(Bo)},focusLeftControls:function(){return n(Fo)},controlsHidden:function(){return n(Uo)},showInfoBoxDuringPlayback:function(){return n(Wo)},hideInfoBoxDuringPlayback:function(){return n(Ho)},toggleInfoBoxDuringPlayback:function(){return n(Vo)},saveMediaElementId:function(e){return n(qo,{id:e})},discardMediaElementId:function(){return n(Go)}};function n(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:e,meta:{collectionName:"pages",mediaScope:t},payload:n}}}function Yo(e){return S({property:"textTrack",value:e?{srclang:e.srclang,kind:e.kind}:{}})}function Xo(e){return e.backgroundMedia.muted}function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ko(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope;return an("media.".concat(void 0===e?"default":e))}function Qo(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope,t=void 0===e?"default":e;return function(e){return Object(se.b)(zo({scope:t}),e)}}function Jo(e){var t=e.file,n=e.defaultTextTrackFileId,r=void 0===n?function(){}:n;return ee(no({property:"textTrack"}),no({property:"volume"}),Yr,Xr,function(e,t){var n=t.parent;return ee(xe(e,{namespace:"files"}),n,(function(e){return e.fileUrlTemplates}),(function(e){return e.modelTypes}),(function(t,n,r,o){return n?Object.keys(t).reduce((function(i,a){var s=t[a];return s.id&&s.parentFileId==n.id&&s.parentFileModelType==n.modelType&&i.push(Kt(e,s,r,o)),i}),[]):[]}))}("textTrackFiles",{parent:t}),r,(function(e,t,n,r,o,i){e=e||{};var s=o.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({displayLabel:Zo(e,n)},e)})),c=function(e,t,n,r){if(t){var o=e.find((function(e){return e.permaId==t}));if(o)return o}var i=e.find((function(e){return"subtitles"==e.kind&&e.srclang==n})),a=0==r&&e.find((function(e){return"captions"==e.kind}));return i||a}(s,i,r,t);return{files:s.sort((function(e,t){return(e.displayLabel||"").localeCompare(t.displayLabel||"")})),autoFile:c,activeFileId:ei(s,c,e),mode:"off"==e.kind?"off":e.kind?"user":"auto"}}))}function Zo(e,t){return e.label||t("pageflow.public.languages."+e.srclang||!1,{defaultValue:t("pageflow.public.languages.unknown")})}function ei(e,t,n){if("off"==n.kind)return null;var r=e.find((function(e){return e.srclang==n.srclang&&e.kind==n.kind}));return r?r.id:t&&t.id}function ti(e){return ee(e.autoplayWhenBackgroundMediaMuted,ni({id:e.id}),Xo,(function(e,t,n){return t&&(!n||e)}))}function ni(e){return ee(rn("autoplay",e),(function(e){return!1!==e}))}function ri(e){var t=e.playerActions,n=e.playerState,r=e.playerControlsComponent;return F.a.createElement(r,Object.assign({hasProgress:!0,controlBarText:e.controlBarText,isLoading:n.isLoading||n.bufferUnderrun,isPlaying:n.shouldPlay,currentTime:void 0!==n.scrubbingAt?n.scrubbingAt:n.currentTime,bufferedEnd:n.bufferedEnd,duration:n.duration,mediaElementId:n.mediaElementId,onPlayButtonClick:t.togglePlaying,onScrub:t.scrubTo,onSeek:t.seekTo,onMouseEnter:t.controlsEntered,onMouseLeave:t.controlsLeft,onFocus:t.focusEnteredControls,onBlur:t.focusLeftControls,watchVisibility:n.isPlaying,onHidden:t.controlsHidden,additionalMenuBarButtons:ai(e),infoBoxHiddenDuringPlayback:si(e),onAdditionalButtonMouseEnter:t.showInfoBoxDuringPlayback,onAdditionalButtonMouseLeave:t.hideInfoBoxDuringPlayback,onAdditionalButtonClick:t.toggleInfoBoxDuringPlayback,qualityMenuItems:ui(e.qualities,e.file,e.activeQuality,e.t),qualityMenuButtonTitle:e.t("pageflow.public.media_quality"),onQualityMenuItemClick:e.updateVideoQualitySetting,textTracksMenuItems:ci(e.textTracks,e.t),textTracksMenuButtonTitle:e.t("pageflow.public.text_tracks"),onTextTracksMenuItemClick:function(t){"off"==t?e.updateTextTrackSettings({kind:"off"}):e.updateTextTrackSettings(e.textTracks.files.find((function(e){return e.id==t})))}},e,{className:ii(n)}))}ri.defaultProps={playerControlsComponent:Gr,qualities:[],textTracks:{files:[]}};var oi=It(te({activeQuality:no({property:"videoQuality"}),t:Yr}),{updateTextTrackSettings:Yo,updateVideoQualitySetting:function(e){return S({property:"videoQuality",value:e})}})(ri);function ii(e){return W()(so(e))}function ai(e){var t=e.t;return or(e.infoBox)?[]:[{name:"toggleInfoBox",className:"player_controls-toggle_info_box_menu_button",label:t("pageflow.public.toggle_info_box"),iconName:"toggleInfoBox"}]}function si(e){var t=e.playerState;return void 0===t.infoBoxHiddenDuringPlayback?!!e.textTracks.activeFileId:t.infoBoxHiddenDuringPlayback}function ci(e,t){if(!e.files.length)return[];var n={value:"off",label:t("pageflow.public.text_track_modes.none"),active:"off"==e.mode};return[{value:"auto",label:e.autoFile?t("pageflow.public.text_track_modes.auto",{label:e.autoFile.displayLabel}):t("pageflow.public.text_track_modes.auto_off"),active:"auto"==e.mode},n].concat(e.files.map((function(t){return{value:t.id,label:t.displayLabel,active:"user"==e.mode&&t.id==e.activeFileId}})))}function ui(e,t,n,r){return n=n||"auto",function(e,t){if(!t)return[];return e.filter((function(e){return!!t.urls[e]||"auto"==e}))}(e,t).map((function(e){return{value:e,label:r("pageflow.public.video_qualities.labels.".concat(e)),annotation:r("pageflow.public.video_qualities.annotations.".concat(e),{defaultValue:""}),active:e==n}}))}function li(e){return function(t){return t.entry[e]}}function fi(e){var t=e.entrySlug,n=e.file,r="videoFiles"==n.collectionName?"videos":"audio";return"/".concat(t,"/").concat(r,"/").concat(n.id)}var pi=It(te({t:Yr,entrySlug:li("slug")}))((function(e){return e.file?React.createElement("p",{className:"non_js_video"},React.createElement("a",{href:fi(e),target:"_blank"},(n=(t=e).file,r=t.t,o="videoFiles"==n.collectionName?"video":"audio",r("pageflow.public.open_".concat(o))))):React.createElement("noscript",null);var t,n,r,o})),di=ee(an("media.pageScrollerMargin"),(function(e){return e&&e.bottom}));function hi(e){var t=e.page,n=e.playerState,r={title:t.additionalTitle,description:t.additionalDescription};return React.createElement(H,{className:yi(e.className,gi(e),e.textTracks,n)},React.createElement(V,{pageHasPlayerControls:!0},e.children,React.createElement(Dn,{page:t,className:so(n)})),React.createElement(Nn,{onInteraction:function(){return n.userIsIdle&&e.playerActions.userInteraction()},classNames:so(n)},React.createElement(oi,{file:e.file,textTracks:e.textTracks,playerState:n,playerActions:e.playerActions,qualities:e.qualities,controlBarText:e.controlBarText,infoBox:r,playerControlsComponent:e.playerControlsComponent}),React.createElement(Wn,{className:so(n),marginBottom:e.dynamicPageScrollerMargin&&e.pageScrollerMarginBottom},React.createElement(Vn,{page:t}),React.createElement(na,{page:t}),React.createElement(qn,{page:t,marginBottom:e.dynamicPageScrollerMargin?"none":"for_player_controls"},React.createElement(pi,{file:e.file})))))}hi.defaultProps={playerControlsCanOverlapPageText:!0};var vi=In(te({pageScrollerMarginBottom:di,textTracks:Jo({file:Yn("file"),defaultTextTrackFileId:Yn("page.defaultTextTrackFileId")}),hasAutoplaySupport:Xn("autoplay support"),shouldAutoplay:ti({id:Yn("page.permaId"),autoplayWhenBackgroundMediaMuted:Yn("autoplayWhenBackgroundMediaMuted")})}))(hi);function gi(e){return e.shouldAutoplay&&e.hasAutoplaySupport&&!e.playerState.playFailed}function yi(e,t,n,r){return W()(e,{has_text_tracks:!!n.activeFileId,is_idle:r.isPlaying&&r.userIsIdle,is_control_bar_focused:r.focusInsideControls,is_control_bar_hovered:r.userHoveringControls,is_control_bar_hidden:r.controlsHidden,unplayed:r.unplayed&&!t,should_play:r.shouldPlay,has_played:r.hasPlayed})}var mi=In(te({pageIsPrepared:un(),pageIsPreloaded:cn(),atmoDuringPlayback:rn("atmoDuringPlayback"),defaultTextTrackFileId:rn("defaultTextTrackFileId")}))((function(e){if(e.file&&e.file.isReady){var t=e.structuredDataComponent||function(){return null};return React.createElement("div",{style:{height:"100%"}},function(e){if(e.pageIsPrepared){var t=e.playerComponent;return React.createElement(t,{file:e.file,posterImageFile:e.posterImageFile,playerState:e.playerState,playerActions:e.playerActions,atmoDuringPlayback:e.atmoDuringPlayback,fit:e.fit,position:e.position,loop:e.loop,muted:e.muted,playsInline:e.playsInline,defaultTextTrackFileId:e.defaultTextTrackFileId,textTracksEnabled:e.textTracksEnabled,textTrackPosition:e.textTrackPosition})}if(e.preloadComponent&&e.pageIsPreloaded){var n=e.preloadComponent;return React.createElement(n,{file:e.file,posterImageFile:e.posterImageFile})}return React.createElement("noscript",null)}(e),React.createElement(t,{file:e.file}))}return React.createElement("noscript",null)})),bi=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){var e=this;return F.a.createElement("div",{ref:function(t){return e.containerElement=t},dangerouslySetInnerHTML:this.mediaTagHTML()})}},{key:"shouldComponentUpdate",value:function(e){return e.tagName!==this.props.tagName||e.poster!==this.props.poster||e.loop!==this.props.loop||e.muted!==this.props.muted||e.playsInline!==this.props.playsInline||!wi(e.sources,this.props.sources)||!wi(e.tracks,this.props.tracks)}},{key:"componentDidMount",value:function(){this.triggerOnSetup()}},{key:"componentWillUpdate",value:function(){this.triggerOnDispose()}},{key:"componentDidUpdate",value:function(){this.triggerOnSetup()}},{key:"componentWillUnmount",value:function(){this.triggerOnDispose()}},{key:"triggerOnSetup",value:function(){this.props.onSetup&&this.props.onSetup(this.containerElement.firstElementChild)}},{key:"triggerOnDispose",value:function(){this.props.onDispose&&this.props.onDispose()}},{key:"mediaTagHTML",value:function(){var e=document.createElement("div"),t=document.createElement(this.props.tagName);return t.setAttribute("preload","none"),t.setAttribute("crossorigin","anonymous"),t.setAttribute("alt",this.props.alt),this.props.poster&&t.setAttribute("data-poster",this.props.poster),this.props.loop&&t.setAttribute("loop","true"),this.props.muted&&t.setAttribute("muted","true"),this.props.playsInline&&t.setAttribute("playsinline","true"),this.props.sources.forEach((function(e){var n=document.createElement("source");n.setAttribute("src",e.src),n.setAttribute("type",e.type),t.appendChild(n)})),this.props.tracks.forEach((function(e){var n=document.createElement("track");n.setAttribute("src",e.src),n.setAttribute("id",e.id),n.setAttribute("kind",e.kind),n.setAttribute("srclang",e.srclang),n.setAttribute("label",e.label),t.appendChild(n)})),e.appendChild(t),{__html:e.innerHTML.replace('preload="none"','preload="auto"')}}}]),t}(F.a.Component);function wi(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(Object.keys(r).length!==Object.keys(o).length)return!1;for(var i in r)if(r[i]!==o[i])return!1}return!0}function Ei(e,t){t.emulateTextTracksDisplay;var n=t.atmoSettings,r=t.mediaContext,o=t.playsInline,i="audio"==e.tagName.toLowerCase(),a=new pageflow.VideoPlayer(e,{controlBar:!1,loadingSpinner:!1,bigPlayButton:!1,errorDisplay:!1,textTrackSettings:!1,poster:e.getAttribute("data-poster"),html5:{nativeCaptions:!i&&pageflow.browser.has("iphone platform")},bufferUnderrunWaiting:!0,useSlimPlayerControlsDuringPhonePlayback:!o&&!i,fullscreenDuringPhonePlayback:!o&&!i,fallbackToMutedAutoplay:!i,volumeFading:!0,hooks:pageflow.atmo.createMediaPlayerHooks(n),mediaEvents:!0,context:r});return a.textTrackSettings={getValues:function(){return{}}},a.addClass("video-js"),a.addClass("player"),a}bi.defaultProps={tagName:"video",sources:[],tracks:[]};var Oi=function(e,t){e.on("loadedmetadata",(function(){return t.metaDataLoaded({currentTime:e.currentTime(),duration:e.duration()})})),e.on("progress",(function(){return t.progress({bufferedEnd:e.bufferedEnd()})})),e.on("play",t.playing),e.on("playfailed",t.playFailed),e.on("playmuted",t.playingMuted),e.on("pause",t.paused),e.on("waiting",t.waiting),e.on("seeking",t.seeking),e.on("seeked",t.seeked),e.on("bufferunderrun",t.bufferUnderrun),e.on("bufferunderruncontinue",t.bufferUnderrunContinue),e.on("timeupdate",(function(){return t.timeUpdate({currentTime:e.currentTime(),duration:e.duration()})})),e.on("ended",t.ended)};function xi(e,t,n){e.one("timeupdate",(function(){Pi(e,null,t(),n())}))}function Pi(e,t,n,r){t!=n&&function(e,t){[].slice.call(e.textTracks()).forEach((function(e){e.id=="text_track_file_".concat(t)?e.mode="showing":e.mode="disabled"}))}(e,n),function(e,t){e.updateCueLineSettings(t)}(e,r)}function ki(e){return function(t){return t.features.indexOf(e)>=0}}var _i,Si=function(e){var t=e.tagName,n=e.sources,r=e.poster,o=void 0===r?function(){}:r,i=e.emulateTextTracksDisplay,a=void 0!==i&&i,s=e.createPlayer,c=void 0===s?Ei:s,u=function(e){function r(e,n){var o;return T(this,r),(o=R(this,D(r).call(this,e,n))).displaysTextTracksInNativePlayer=o.props.hasNativeVideoPlayer&&"video"==t,o.initiallyMuted=o.props.muted,o.updateAtmoSettings(),o.setupMediaTag=function(t){o.player=c(t,{emulateTextTracksDisplay:a,atmoSettings:o.atmoSettings,mediaContext:o.context.mediaContext,playsInline:e.playsInline}),o.player.ready((function(){var e,n,r,i,a,s;o.props.playerActions.saveMediaElementId(t.id),e=o.player,n=function(){return o.props.playerState},r=o.props.playerActions,i=o.prevFileId,a=o.props.file.id,s=n(),a===i&&s.currentTime>0&&e.currentTime(s.currentTime),s.shouldPrebuffer&&e.prebuffer().then(r.prebuffered,(function(){})),s.isPlaying&&e.play(),e.on("canplay",(function(){n().shouldPlay&&e.paused()&&e.play()})),o.displaysTextTracksInNativePlayer||function(e,t,n){e.on("pause",(function(){xi(e,t,n)})),e.textTracks().on("addtrack",(function(){Pi(e,null,t(),n())})),Pi(e,null,t(),n()),xi(e,t,n)}(o.player,(function(){return o.props.textTracks.activeFileId}),(function(){return o.props.textTrackPosition})),Oi(o.player,o.props.playerActions),o.prevFileId=o.props.file.id}),!0)},o.disposeMediaTag=function(){o.player.dispose(),o.player=null,o.props.playerActions.discardMediaElementId()},o}return L(r,e),C(r,[{key:"componentDidUpdate",value:function(e){var t=this;this.player&&(this.player.ready((function(){var n,r,o;n=t.player,r=e.muted,o=t.props.muted,r!==o&&n.muted(o),function(e,t,n,r){t!==n&&e.changeVolumeFactor(n,r)}(t.player,e.playerState.volumeFactor,t.props.playerState.volumeFactor,t.props.playerState.volumeFactorFadeDuration),function(e,t,n,r){!t.shouldPrebuffer&&n.shouldPrebuffer&&e.prebuffer().then((function(){return setTimeout(r.prebuffered,0)})),!t.shouldPlay&&n.shouldPlay?n.fadeDuration?e.playAndFadeIn(n.fadeDuration):e.play():t.shouldPlay&&!n.shouldPlay&&n.isPlaying&&(n.fadeDuration?e.fadeOutAndPause(n.fadeDuration):e.pause()),void 0!==n.shouldSeekTo&&n.shouldSeekTo!==t.shouldSeekTo&&e.currentTime(n.shouldSeekTo)}(t.player,e.playerState,t.props.playerState,t.props.playerActions)}),!0),this.displaysTextTracksInNativePlayer||Pi(this.player,e.textTracks.activeFileId,this.props.textTracks.activeFileId,this.props.textTrackPosition),this.updateAtmoSettings())}},{key:"updateAtmoSettings",value:function(){this.atmoSettings=this.atmoSettings||{},this.atmoSettings.atmo_during_playback=this.props.atmoDuringPlayback}},{key:"render",value:function(){return F.a.createElement(bi,{tagName:t,sources:n(this.props.file,this.props.quality,{hasHighBandwidth:this.props.hasHighBandwidth,forceBestQuality:this.props.forceBestQuality,forceFullhdQuality:this.props.forceFullhdQuality}),tracks:(e=this.props.textTracks.files,r=this.props.textTracksEnabled,r?e.filter((function(e){return e.isReady})).map((function(e){return{id:"text_track_file_".concat(e.id),kind:e.kind,label:e.displayLabel,srclang:e.srclang,src:e.urls.vtt}})):[]),poster:o(this.props.file,this.props.posterImageFile),loop:this.props.loop,muted:this.initiallyMuted,playsInline:this.props.playsInline,alt:this.props.file.alt,onSetup:this.setupMediaTag,onDispose:this.disposeMediaTag});var e,r}}]),r}(F.a.Component);u.contextTypes={mediaContext:F.a.PropTypes.object},u.defaultProps={textTracksEnabled:!0,textTracks:{files:[]}};var l=It(te({textTracks:Jo({file:Yn("file"),defaultTextTrackFileId:Yn("defaultTextTrackFileId")}),quality:no({property:"videoQuality"}),hasNativeVideoPlayer:Xn("native video player"),hasHighBandwidth:Xn("high bandwidth"),forceBestQuality:ki("force_best_video_quality"),forceFullhdQuality:ki("force_fullhd_video_quality"),textTrackPosition:ji}),{updateTextTrackSettings:Yo})(u);return l.WrappedComponent=u,l},Ti=(_i="slimPlayerControls",function(e){return e.widgetPresence[_i]});function ji(e,t){var n=t.playerState,r=t.textTrackPosition;return r||(Ti(e)?n.controlsHidden?"auto.lazy":"auto.translated":n.controlsHidden?"auto.lazy":"top")}var Ci=Si({tagName:"audio",sources:function(e){return[{type:"audio/ogg",src:"".concat(e.urls.ogg,"?u=1")},{type:"audio/mp4",src:"".concat(e.urls.m4a,"?u=1")},{type:"audio/mp3",src:"".concat(e.urls.mp3,"?u=1")}]},emulateTextTracksDisplay:!0});function Ai(e,t){return t&&t.match(/^\/\//)?"".concat(e,":").concat(t):t}function Ii(e){var t=Math.round(e/1e3)%60,n=Math.floor(e/1e3/60)%60,r=Math.floor(e/1e3/60/60),o="PT";return r>0&&(o+="".concat(r,"H")),n>0&&(o+="".concat(n,"M")),(t>0||0==n&&0==r)&&(o+="".concat(t,"S")),o}var Mi=It(te({isEnabled:ki("structured_data")}))((function(e){var t=e.data;return e.isEnabled?React.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}}):null}));var Ri=It(te({entryPublishedAt:li("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt,r={"@context":"http://schema.org","@type":"AudioObject",name:t.basename,description:t.alt,url:Ai("https",t.urls.mp3),duration:Ii(t.durationInMs),datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Mi,{data:r})}));function Di(e){return React.createElement(mi,Object.assign({},e,{playerComponent:Ci,structuredDataComponent:Ri}))}var Ni=function(e,t,n,r){if(r&&r.height&&t&&"contain"!=t){var o,i,a,s=e.width/e.height;if("width"==(r.width/r.height>s?"width":"height")?(o=(i=r.height)*s,a=r.width/o):(i=(o=r.width)/s,a=r.height/i),!("smart_contain"==t&&a>1.2)){var c=o*a,u=i*a,l=void 0!==n[0]&&"cover"==t?n[0]:50,f=void 0!==n[1]&&"cover"==t?n[1]:50;return{left:(r.width-c)*l/100,top:(r.height-u)*f/100,width:c,height:u}}}};function Li(e,t){if(e&&t){var n=Math.max(0,-e.left),r=Math.max(0,e.width-t.width+e.left),o=Math.max(0,-e.top),i=Math.max(0,e.height-t.height+e.top);return["cue_offset","cue_offset_".concat(Math.ceil(i/10)),"cue_margin_left_".concat(Math.ceil(n/10)),"cue_margin_right_".concat(Math.ceil(r/10)),"cue_margin_top_".concat(Math.ceil(o/10)),"cue_margin_bottom_".concat(Math.ceil(i/10))].join(" ")}}function Bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fi(e){return F.a.createElement(Tr.a,{whitelist:["width","height"],cloneOptions:{noCloneOnZeroDimension:!0}},(function(t){return function(e,t){var n=Ni(e.videoFile,e.fit,e.position,t);return F.a.createElement("div",{className:"uncropped_media_wrapper"},F.a.createElement("div",{className:Li(n,t),style:Ui(n)},e.children))}(e,t)}))}function Ui(e){return e&&function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({position:"absolute"},e)}var Wi=Si({tagName:"video",sources:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.hasHighBandwidth,o=n.forceBestQuality,i=n.forceFullhdQuality;if(t=t||"auto",o)return[{type:"video/mp4",src:e.urls["4k"]||e.urls.fullhd||e.urls.high}];if(i)return[{type:"video/mp4",src:e.urls.fullhd||e.urls.high}];if("auto"==t){var a=r?"high":"medium",s=[{type:"application/x-mpegURL",src:"".concat(e.urls["hls-playlist"],"?u=1")},{type:"video/mp4",src:"".concat(e.urls[a],"?u=1")}];return e.urls["dash-playlist"]&&(s=[{type:"application/dash+xml",src:"".concat(e.urls["dash-playlist"])}].concat(s)),s}return e.urls[t]||(t="high"),[{type:"video/mp4",src:"".concat(e.urls[t],"?u=1")}]},poster:qi});function Hi(e){return F.a.createElement(Fi,{videoFile:e.file,fit:e.fit,position:e.position},F.a.createElement(Wi,{file:e.file,posterImageFile:e.posterImageFile,playerState:e.playerState,playerActions:e.playerActions,atmoDuringPlayback:e.atmoDuringPlayback,defaultTextTrackFileId:e.defaultTextTrackFileId,textTracksEnabled:e.textTracksEnabled,loop:e.loop,muted:e.muted,playsInline:e.playsInline}))}var Vi=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.file,n=e.posterImageFile,r=e.preloadImage,o=qi(t,n);o&&r(o)}},{key:"render",value:function(){return null}}]),t}(F.a.Component);function qi(e,t){var n=oe("mobile platform")?"medium":"large";return t?t.urls[n]:e.urls["poster_".concat(n)]}Vi.defaultProps={preloadImage:ie};var Gi=It(te({entryPublishedAt:li("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt,r={"@context":"http://schema.org","@type":"VideoObject",name:t.basename,description:t.alt,url:Ai("https",t.urls.high),thumbnailUrl:Ai("https",t.urls.poster_medium),width:t.width,height:t.height,duration:Ii(t.durationInMs),datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Mi,{data:r})}));var zi=It(te({file:Xt("videoFiles",{id:Yn("videoFileId")}),posterImageFile:Xt("imageFiles",{id:Yn("posterImageFileId")}),muted:function(e,t){return t.muted||Xo(e)}}))((function(e){return React.createElement(mi,Object.assign({},e,{playerComponent:Hi,preloadComponent:Vi,structuredDataComponent:Gi}))}));function Yi(e){var t=e.page,n=X.concat(e.propertyNamePrefix,e.videoPropertyBaseName),r=X.concat(e.propertyNamePrefix,e.posterImagePropertyBaseName);return React.createElement(zi,{videoFileId:t["".concat(n,"Id")],posterImageFileId:t["".concat(r,"Id")],playerState:e.playerState,playerActions:e.playerActions,fit:e.fit,position:[t["".concat(n,"X")],t["".concat(n,"Y")]],textTracksEnabled:e.textTracksEnabled,loop:e.loop,muted:e.muted,playsInline:e.playsInline})}function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Yi.defaultProps={videoPropertyBaseName:"videoFile",posterImagePropertyBaseName:"posterImage",fit:"smart_contain"};var Ki=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"getChildContext",value:function(){return{mediaContext:$i({},this.context.mediaContext,{playbackMode:this.props.playbackMode,playerDescription:this.props.playerDescription})}}},{key:"render",value:function(){return this.props.children}}]),t}(F.a.Component);Ki.contextTypes={mediaContext:F.a.PropTypes.object},Ki.childContextTypes={mediaContext:F.a.PropTypes.object};var Qi=It(te({fileExists:$t()}))((function(e){var t=function(e){return(t=e.propertyNamePrefix,[{propertyBaseName:X.concat(t,"mobilePosterImage"),collection:"imageFiles"},{propertyBaseName:X.concat(t,"posterImage"),collection:"imageFiles"},{propertyBaseName:X.concat(t,"videoFile"),collection:"videoFiles"}]).find((function(t){return e.fileExists(t.collection,e.page["".concat(t.propertyBaseName,"Id")])}));var t}(e);return t?React.createElement(Rn,{page:e.page,propertyBaseName:t.propertyBaseName,fileCollection:t.collection}):React.createElement("noscript",null)}));var Ji=It(te({fileExists:$t(),hasMobilePlatform:Xn("mobile platform"),hasAutoplaySupport:Xn("autoplay support")}))((function(e){return e.hasMobilePlatform&&function(e){var t=X.concat(e.propertyNamePrefix,"mobilePosterImageId");return e.fileExists("imageFiles",e.page[t])}(e)?React.createElement(Qi,{page:e.page,propertyNamePrefix:e.propertyNamePrefix}):React.createElement(Ki,{playbackMode:"loop",playerDescription:"Background Video Player"},React.createElement(Yi,Object.assign({loop:!0,fit:"cover",muted:!e.hasAutoplaySupport,playsInline:!0,textTracksEnabled:!1},e)))}));var Zi=It(te({file:Xt("imageFiles",{id:Yn("fileId")}),entryPublishedAt:li("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt;if(t){var r={"@context":"http://schema.org","@type":"ImageObject",name:t.basename,description:t.alt,url:Ai("https",t.urls.large),width:t.width,height:t.height,datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Mi,{data:r})}return null}));var ea=In(te({page:on(),playerState:Ko({scope:"background"})}),$({playerActions:Qo({scope:"background"})}))((function(e){var t=e.page,n=e.playerState,r=e.playerActions,o=e.propertyNamePrefix;return"video"==t[X.concat(o,"backgroundType")]?React.createElement(Ji,{page:t,playerState:n,playerActions:r,propertyNamePrefix:o}):React.createElement(Rn,{page:t,propertyNamePrefix:o,structuredDataComponent:Zi})}));function ta(e){return React.createElement(V,null,React.createElement(ea,{propertyNamePrefix:e.propertyNamePrefix}),React.createElement(Dn,{page:e.page}))}var na=It(te({isEntryReady:function(e){return!!e.entry.isReady}}))((function(e){var t=e.page;return e.isEntryReady?"video"==t.backgroundType||"video"==t.type?React.createElement(ra,{videoId:t.videoFileId,posterImageId:t.posterImageId}):React.createElement(oa,{imageId:t.backgroundImageId}):null})),ra=It(te({videoFile:Xt("videoFiles",{id:Yn("videoId")}),posterImageFile:Xt("imageFiles",{id:Yn("posterImageId")})}))((function(e){var t=e.videoFile,n=e.posterImageFile;return n?React.createElement(ia,{file:n}):React.createElement(ia,{file:t})})),oa=In(te({file:Xt("imageFiles",{id:Yn("imageId")}),pageIsPrepared:un()}))(ia);function ia(e){var t=e.file;return t&&t.isReady&&un?React.createElement("img",{src:t.urls.print,alt:t.alt,className:"print_image"}):React.createElement("noscript",null)}function aa(e){return React.createElement("div",{className:"waveform_player_controls-info_box"},function(e){if(!z(e.title))return React.createElement("h3",{className:sa(e)},e.title)}(e),function(e){if(!z(e.description))return React.createElement("p",{className:"waveform_player_controls-info_box-description",dangerouslySetInnerHTML:{__html:e.description}})}(e))}function sa(e){var t=!z(e.title)&&!z(e.description);return W()("waveform_player_controls-info_box-title",{"waveform_player_controls-info_box-title-with_separator":t})}var ca="MEDIA_PAGE_SCROLLER_MARGIN_SET_BOTTOM";var ua=In(null,{setPageScrollerMarginBottom:function(e){return{type:ca,payload:{value:e},meta:{collectionName:"pages"}}}})((function(e){return React.createElement(Tr.a,{whitelist:["height"],onMeasure:function(t){var n=t.height;return e.setPageScrollerMarginBottom(n)}},React.createElement("div",{className:"waveform_player_controls-container"},e.children))}));var la=vr((function(e){return React.createElement("a",{href:"#",className:fa(e),id:e.id,tabIndex:"4",title:e.title,onClick:pa(e)},React.createElement(dr,{name:e.isPlaying?"pause":"play"}))}));function fa(e){return W()("waveform_player_controls-play_button",{"waveform_player_controls-play_button-inverted":e.inverted})}function pa(e){return function(t){t.preventDefault(),e.onClick&&e.onClick()}}var da=n(173),ha=n.n(da),va="rgba(170, 170, 170, 1)",ga="rgba(0, 0, 0, 0.5)",ya="#fff",ma="#888";var ba=In(te({pageIsPrepared:un(),waveformColor:rn("waveformColor"),mainColor:function(e){return e.theme.mainColor}}))((function(e){return e.pageIsPrepared&&e.mediaElementId?React.createElement(Tr.a,{whitelist:["height"]},(function(t){var n=t.height;return React.createElement("div",{className:"waveform_player_controls-wave"},React.createElement("div",{className:"waveform_player_controls-wave_wrapper"},React.createElement(ha.a,{mediaElt:"#".concat(e.mediaElementId),options:{normalize:!0,removeMediaElementOnDestroy:!1,hideScrollbar:!0,progressColor:e.waveformColor||e.mainColor,waveColor:e.inverted?ga:va,cursorColor:e.inverted?ma:ya,height:n}}),React.createElement(la,{isPlaying:e.isPlaying,title:e.playButtonTitle,inverted:e.inverted,onClick:e.onPlayButtonClick})))})):null}));function wa(e){return React.createElement("div",{className:"waveform_player_controls-times_display"},React.createElement(br,{value:e.currentTime,className:"waveform_player_controls-times_display-current_time"}),"/",React.createElement(br,{value:e.duration,className:"waveform_player_controls-times_display-duration"}))}var Ea=In(te({inverted:rn("invert")}))((function(e){return React.createElement("div",{className:Oa(e)},React.createElement(ua,null,React.createElement(ba,{isPlaying:e.isPlaying,inverted:e.inverted,playButtonTitle:e.playButtonTitle,mediaElementId:e.mediaElementId,onPlayButtonClick:e.onPlayButtonClick}),React.createElement(wa,{currentTime:e.currentTime,duration:e.duration}),React.createElement(aa,e.infoBox)),React.createElement(Ur,{inverted:e.inverted,qualityMenuButtonTitle:e.qualityMenuButtonTitle,qualityMenuItems:e.qualityMenuItems,onQualityMenuItemClick:e.onQualityMenuItemClick,textTracksMenuButtonTitle:e.textTracksMenuButtonTitle,textTracksMenuItems:e.textTracksMenuItems,hiddenOnPhone:!e.isPlaying,onTextTracksMenuItemClick:e.onTextTracksMenuItemClick}))}));function Oa(e){return W()("waveform_player_controls",{"waveform_player_controls-inverted":e.inverted})}var xa="HOTKEY_SPACE",Pa="HOTKEY_TAB";function ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scope,n=void 0===t?"default":t;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.meta&&t.meta.mediaScope&&t.meta.mediaScope!==n)return e;switch(t.type){case c:return _a({},e,{hasPlayed:!1,unplayed:!0,infoBoxHiddenDuringPlayback:void 0,userIsIdle:!1});case l:return _a({},e,{shouldPrebuffer:!1});case uo:return _a({},e,{shouldPlay:!0,playFailed:!1,hasBeenPlayingJustNow:!0,unplayed:!1,fadeDuration:null,isLoading:!0});case _o:return _a({},e,{shouldPlay:!0,isPlaying:!0});case vo:return _a({},e,{shouldPlay:!1,playFailed:!0,hasBeenPlayingJustNow:!1,unplayed:!0,fadeDuration:null,isLoading:!1});case lo:return _a({},e,{shouldPlay:!0,hasBeenPlayingJustNow:!0,fadeDuration:t.payload.fadeDuration,isLoading:!0});case fo:return _a({},e,{shouldPlay:!1,fadeDuration:null,isLoading:!1});case So:return e.bufferUnderrun?_a({},e,{isPlaying:!1,hasPlayed:!0}):_a({},e,{shouldPlay:!1,isPlaying:!1,fadeDuration:null,isLoading:!1});case po:return _a({},e,{shouldPlay:!1,fadeDuration:t.payload.fadeDuration,isLoading:!1});case ho:return _a({},e,{volumeFactor:t.payload.volumeFactor,volumeFactorFadeDuration:t.payload.fadeDuration});case bo:return _a({},e,{shouldPrebuffer:!0});case wo:return _a({},e,{shouldPrebuffer:!1});case Io:return _a({},e,{isLoading:!0});case Oo:return _a({},e,{bufferUnderrun:!0});case xo:return _a({},e,{bufferUnderrun:!1});case yo:return _a({},e,{scrubbingAt:t.payload.time});case mo:return _a({},e,{shouldSeekTo:t.payload.time});case Co:return _a({},e,{isLoading:!0});case Ao:return _a({},e,{scrubbingAt:void 0,isLoading:!1});case Po:return _a({},e,{currentTime:t.payload.currentTime,duration:t.payload.duration});case ko:return _a({},e,{bufferedEnd:t.payload.bufferedEnd});case To:return _a({},e,{currentTime:t.payload.currentTime,duration:t.payload.duration,isLoading:!1});case jo:return _a({},e,{shouldPlay:!1,isPlaying:!1});case Mo:return _a({},e,{hasBeenPlayingJustNow:!1});case Pa:case Ro:return _a({},e,{userIsIdle:!1,controlsHidden:!1});case Do:return _a({},e,{userIsIdle:!0});case No:return _a({},e,{userHoveringControls:!0});case Lo:return _a({},e,{userHoveringControls:!1});case Bo:return _a({},e,{focusInsideControls:!0});case Fo:return _a({},e,{focusInsideControls:!1});case Uo:return _a({},e,{controlsHidden:!0,infoBoxHiddenDuringPlayback:!0});case Ho:return _a({},e,{infoBoxHiddenDuringPlayback:!0});case Wo:return _a({},e,{infoBoxHiddenDuringPlayback:!1});case Vo:return _a({},e,{infoBoxHiddenDuringPlayback:!e.infoBoxHiddenDuringPlayback});case qo:return _a({},e,{mediaElementId:t.payload.id});case Go:return _a({},e,{mediaElementId:null});default:return e}}};function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ca=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ca:return ja({},e,{bottom:t.payload.value});default:return e}},Aa=Oe.a.mark(Ma),Ia=Oe.a.mark(Ra);function Ma(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)([xa,co],Ra,zo());case 2:case"end":return e.stop()}}),Aa)}function Ra(e){var t,n;return Oe.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.play,n=e.pause,r.next=3,Object(De.select)(Ko());case 3:if(!r.sent.shouldPlay){r.next=9;break}return r.next=7,Object(De.put)(n());case 7:r.next=13;break;case 9:return r.next=11,Object(De.call)((function(){return pageflow.backgroundMedia.unmute()}));case 11:return r.next=13,Object(De.put)(t());case 13:case"end":return r.stop()}}),Ia)}var Da=Oe.a.mark(La),Na=Oe.a.mark(Ba);function La(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)([vo,go],Ba);case 2:case"end":return e.stop()}}),Da)}function Ba(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return pageflow.backgroundMedia.mute()}));case 2:case"end":return e.stop()}}),Na)}var Fa="BACKGROUND_MEDIA_MUTE",Ua="BACKGROUND_MEDIA_UNMUTE";function Wa(){return{type:Ua}}var Ha=Oe.a.mark(Ka),Va=Oe.a.mark(Qa),qa=Oe.a.mark(Ja),Ga=Oe.a.mark(Za),za=zo(),Ya=za.play,Xa=za.prebuffer,$a=za.waiting;function Ka(e){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(Ne.takeEvery)(s,Oe.a.mark((function t(n){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,[Object(De.race)({task:Object(De.call)(Ja,e),cancel:Object(De.take)(l)}),Object(De.race)({task:Object(De.call)(Qa,e),cancel:Object(De.take)(l)})];case 2:case"end":return t.stop()}}),t)})));case 2:case"end":return t.stop()}}),Ha)}function Qa(e){var t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=e.retryOnUnmute,!n.t0){n.next=5;break}return n.next=4,Object(De.select)(ni());case 4:n.t0=n.sent;case 5:if(!n.t0){n.next=12;break}return n.next=8,Object(De.race)({unmute:Object(De.take)(Ua),cancel:Object(De.take)(l)});case 8:if(t=n.sent,!t.unmute){n.next=12;break}return n.delegateYield(Ja(e),"t1",12);case 12:case"end":return n.stop()}}),Va)}function Ja(e){var t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.delegateYield(Za(e),"t0",1);case 1:if(!(t=n.t0)){n.next=5;break}return n.next=5,Object(De.put)($a());case 5:return n.next=7,[Object(De.take)(wo),Object(De.put)(Xa())];case 7:if(!t){n.next=12;break}return n.next=10,Object(De.call)(Ne.delay,1e3);case 10:return n.next=12,Object(De.put)(Ya());case 12:case"end":return n.stop()}}),qa)}function Za(e){var t,n,r;return Oe.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.canAutoplay,n=e.autoplayWhenBackgroundMediaMuted,o.next=3,Object(De.select)(ti({autoplayWhenBackgroundMediaMuted:function(){return n}}));case 3:return r=o.sent,o.abrupt("return",r&&t);case 5:case"end":return o.stop()}}),Ga)}var es=Oe.a.mark(ts);function ts(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(uo,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(sn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(ns);case 5:case"end":return e.stop()}}),e)})));case 2:return e.next=4,Object(Ne.takeEvery)([fo,jo],Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(sn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(rs);case 5:case"end":return e.stop()}}),e)})));case 4:case"end":return e.stop()}}),es)}function ns(){pageflow.events.trigger("scroll_indicator:disable")}function rs(){pageflow.events.trigger("scroll_indicator:enable")}var os=Oe.a.mark(is);function is(){var e,t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=zo(),t=e.hasNotBeenPlayingForAMoment,n.next=3,Object(Ne.takeEvery)([fo,jo],Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.race)({task:Object(De.call)(Oe.a.mark((function e(n){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)(Ne.delay,700);case 2:return e.next=4,Object(De.put)(t(!1));case 4:case"end":return e.stop()}}),e)}))),cancel:Object(De.take)(_o)});case 2:case"end":return e.stop()}}),e)})));case 3:case"end":return n.stop()}}),os)}var as=Oe.a.mark(cs),ss=Oe.a.mark(us);function cs(){var e,t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=zo(),t=e.userIdle,n.next=3,Object(Ne.takeLatest)([uo,Ro,Pa],us,t);case 3:case"end":return n.stop()}}),as)}function us(e){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(Ne.delay,3e3);case 2:return t.next=4,Object(De.put)(e());case 4:case"end":return t.stop()}}),ss)}var ls=Oe.a.mark(fs);function fs(){var e,t,n,r,o=arguments;return Oe.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},t=e.scope,n=zo({scope:t}),r=n.fadeOutAndPause,i.next=4,Object(Ne.takeEvery)(u,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.put)(r({fadeDuration:400}));case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return i.stop()}}),ls)}var ps=Oe.a.mark(ds);function ds(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(jo,Oe.a.mark((function e(){var t,n;return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(rn("autoChangePageOnEnded"));case 2:return t=e.sent,e.next=5,Object(De.select)(sn());case 5:if(n=e.sent,!t||!n){e.next=9;break}return e.next=9,Object(De.call)(hs);case 9:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),ps)}function hs(){pageflow.slides.next()}var vs=Oe.a.mark(ms);function gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ms(){var e,t,n=arguments;return Oe.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t=[Ma(),La(),ts()],e.playsInNativePlayer&&e.playsInNativePlayer()||t.push([ds(),fs(),is()]),oe("mobile platform")||t.push([Ka(ys({},e,{canAutoplay:oe("autoplay support")}))]),e.hideControls&&t.push([cs()]),r.next=7,t;case 7:case"end":return r.stop()}}),vs)}var bs=Oe.a.mark(Os),ws=Oe.a.mark(xs),Es=Oe.a.mark(Ps);function Os(){var e,t,n,r=arguments;return Oe.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},t=e.scope,n=zo({scope:t}),o.next=4,Object(Ne.takeEvery)(c,Oe.a.mark((function e(t){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,[Object(De.race)({task:[Object(De.put)(n.prebuffer()),Object(De.call)(xs,n),Object(De.call)(Ps,n)],cancel:Object(De.take)(l)})];case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return o.stop()}}),bs)}function xs(e){var t,n;return Oe.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.prebuffer,t=e.changeVolumeFactor,n=e.play,r.next=3,Object(De.put)(t(0,{fadeDuration:0}));case 3:return r.next=5,Object(De.take)(wo);case 5:return r.next=7,Object(De.put)(n());case 7:case"end":return r.stop()}}),ws)}function Ps(e){var t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.changeVolumeFactor,n.next=3,[Object(De.take)(wo),Object(De.take)(s)];case 3:return n.next=5,Object(De.put)(t(1,{fadeDuration:1e3}));case 5:case"end":return n.stop()}}),Es)}function ks(e){return{reducers:{"media.default":Sa({scope:"default"}),"media.pageScrollerMargin":Ca},saga:Oe.a.mark((function t(){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ms(e);case 2:case"end":return t.stop()}}),t)}))}}var _s={reducers:{"media.background":Sa({scope:"background"})},saga:Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,[Os({scope:"background"}),fs({scope:"background"}),La()];case 2:case"end":return e.stop()}}),e)}))};var Ss=function(e){function t(e,n){var r;return T(this,t),(r=R(this,D(t).call(this,e,n))).onPlayButtonClick=function(){pageflow.hideText.activate(),r.props.onEnterBackground&&r.props.onEnterBackground()},r.onCloseButtonClick=function(){pageflow.hideText.deactivate(),r.props.onLeaveBackground&&r.props.onLeaveBackground()},r}return L(t,e),C(t,[{key:"render",value:function(){var e=this.props.page;return F.a.createElement(H,{className:W()({unplayed:!this.props.textHasBeenHidden},"hide_content_with_text")},F.a.createElement($r,{onClick:this.onCloseButtonClick}),F.a.createElement(Ur,{additionalButtons:this.props.additionalMenuBarButtons,onAdditionalButtonClick:this.props.onAdditionalButtonClick,qualityMenuButtonTitle:this.props.qualityMenuButtonTitle,qualityMenuItems:this.props.qualityMenuItems,onQualityMenuItemClick:this.props.onQualityMenuItemClick,hiddenOnPhone:this.props.textHasBeenHidden&&!this.props.textIsHidden}),F.a.createElement(V,{pageHasPlayerControls:!0},F.a.createElement("div",{className:"uncropped_media_wrapper"},this.props.children),F.a.createElement(Dn,{page:e})),F.a.createElement(Nn,null,F.a.createElement(Gr,{playButtonTitle:"Starten",playButtonIconName:this.props.playButtonIconName,controlBarText:e.controlBarText||this.props.defaultControlBarText,onPlayButtonClick:this.onPlayButtonClick,infoBox:{title:e.additionalTitle,description:e.additionalDescription}}),F.a.createElement(Wn,null,F.a.createElement(Vn,{page:e}),F.a.createElement(qn,{page:e}))))}}]),t}(F.a.Component),Ts=In(te({textIsHidden:function(e){return e.hideText.isActive},textHasBeenHidden:function(e){return e.hideText.hasBeenActive}}))(Ss),js="HIDE_TEXT_ACTIVATE",Cs="HIDE_TEXT_DEACTIVATE";var As=Oe.a.mark(Is);function Is(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(Cs,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(sn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(Ms);case 5:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),As)}function Ms(){pageflow.events.trigger("scroll_indicator:enable")}var Rs={name:"interactivePageBackground",saga:Is};function Ds(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bs=new function(){var e=[];this.register=function(t,n){var r=n.component,o=n.reduxModules,i=void 0===o?[]:o,a=Ds(n,["component","reduxModules"]);r||u("Requires component option to be present"),Array.isArray(i)||u("Expected reduxModules option to be an array.");var s=[],c=i.reduce((function(e,t){return"object"==typeof t&&3==new Set(Object.keys(t).concat(["name","reducers","saga"])).size||u("Expected redux module to be object with name, reducers and saga properties at most."),t.reducers&&"object"!=typeof t.reducers&&u("Expected reducers property of ".concat(t.name," reduxModule to be object.")),t.saga&&s.push(t.saga),Ls({},e,{},t.reducers)}),{});function u(e){throw new Error("".concat(e," Check registerPageType call of ").concat(t," page type."))}e.push(Ls({name:t,component:r,reducer:Object.keys(c).length?Object(se.c)(c):void 0,saga:Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.map((function(e){return e()}));case 2:case"end":return e.stop()}}),e)}))},a))},this.forEach=function(){return e.forEach.apply(e,arguments)},this.reduce=function(){return e.reduce.apply(e,arguments)},this.findByName=function(t){return e.find((function(e){var n=e.name;e.component;return n==t}))}},Fs=Bs.register;function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hs=new function(){var e=[];this.register=function(t,n){var r=n.component;e.push({name:t,component:r})},this.findByName=function(t){var n=e.find((function(e){return e.name==t}));if(!n)throw'Widget type with name "'.concat(t,'" not found.');return n},this.forEach=function(){e.forEach.apply(e,arguments)}},Vs=Hs.register,qs=n(174),Gs={muted:!1},zs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gs,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Fa:return{muted:!0};case Ua:return{muted:!1};default:return e}};function Ys(e){var t=e.t,n=e.muted,r=e.unmute;return n?F.a.createElement("div",{className:"background_media_unmute_button"},F.a.createElement("a",{title:t("pageflow.public.mute_off"),onClick:function(){new pageflow.AudioPlayer([{src:pageflow.assetUrls.unmuteSound,type:"audio/mpeg"}],{codecs:["mp3"]}).play(),r()},href:"#"})):null}var Xs={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||(n.on("background_media:mute",(function(e){return r({type:Fa})})),n.on("background_media:unmute",(function(e){return r(Wa())})))},createReducers:function(){return{backgroundMedia:zs}},createSaga:function(e){var t=e.backgroundMedia;return(Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(Ua,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return t.unmute()}));case 2:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),e)})))}};function $s(e){return e.cookieNotice.visible}function Ks(e){return e.site.privacy_link_url}var Qs="COOKIE_NOTICE_REQUEST",Js="COOKIE_NOTICE_DISMISS";function Zs(){return{type:Js}}function ec(e){var t=e.isCookieNoticeVisible,n=e.editing,r=e.t,o=e.dismiss;return t||n?F.a.createElement("div",{className:"cookie_notice_bar"},F.a.createElement("div",{className:"cookie_notice_bar-content"},function(e){var t=e.privacyLinkUrl,n=e.t,r=e.locale,o=n("pageflow.public.cookie_notice_html",{privacyLinkUrl:"".concat(t,"?lang=").concat(r)});return F.a.createElement("span",{className:"cookie_notice_bar-text",dangerouslySetInnerHTML:{__html:o}})}(e),F.a.createElement("a",{className:"cookie_notice_bar-dismiss",onClick:o},r("pageflow.public.dismiss_cookie_notice")))):F.a.createElement("noscript",null)}function tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rc=function(e){var t={dismissed:e.hasBeenDismissed,visible:!1};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Qs:return e.dismissed?e:nc({},e,{visible:!0});case Js:return{dismissed:!0,visible:!1};default:return e}}},oc={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||n.on("cookie_notice:request",(function(){return r({type:Qs})}))},createReducers:function(e){var t=e.cookies;return{cookieNotice:rc({hasBeenDismissed:t&&t.hasItem("cookie_notice_dismissed")})}},createSaga:function(e){var t=e.widgetsApi,n=e.cookies;return(Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(Qs,Oe.a.mark((function e(){var n;return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)($s);case 2:if(!e.sent){e.next=10;break}return e.next=5,Object(De.cps)(ic,t);case 5:return n=e.sent,e.next=8,Object(De.take)(Js);case 8:return e.next=10,Object(De.call)(n);case 10:case"end":return e.stop()}}),e)})));case 2:return e.next=4,Object(Ne.takeEvery)(Js,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){n.setItem("cookie_notice_dismissed",!0)}));case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return e.stop()}}),e)})))}};function ic(e,t){e.use({name:"cookie_notice_bar_visible",insteadOf:"cookie_notice_bar"},(function(e){return t(null,e)}))}var ac={createReducers:function(e){var t=e.enabledFeatureNames;return{features:function(){return t}}}},sc="SITE_INIT";var cc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case sc:return t.payload.site;default:return e}},uc={init:function(e){var t=e.site;(0,e.dispatch)(function(e){return{type:sc,payload:{site:e}}}(t))},createReducers:function(){return{site:cc}}},lc={init:function(e){var t=e.storylines,n=e.dispatch;Wt({collection:t,collectionName:"storylines",dispatch:n,attributes:["id"],includeConfiguration:!0})},createReducers:function(){return{storylines:Ce("storylines")}}},fc={init:function(e){var t=e.chapters,n=e.dispatch;Wt({collection:t,collectionName:"chapters",dispatch:n,attributes:["id","title","position","storyline_id"]})},createReducers:function(){return{chapters:Ce("chapters")}}},pc="PAGE_TYPES_INIT";var dc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pc:return t.payload.pageTypes;default:return e}},hc={createReducers:function(){return{pageTypes:dc}},init:function(e){var t=e.pageTypesSeed;(0,e.dispatch)(function(e){var t=e.pageTypes;return{type:pc,payload:{pageTypes:t}}}({pageTypes:X.deep(t)}))}},vc="CURRENT_PAGE_CHANGE";var gc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case vc:return t.payload.id;default:return e}},yc=function(e,t){e.on("page:change",(function(e){return t(function(e){var t=e.id;return{type:vc,payload:{id:t}}}({id:e.getPermaId()}))}))},mc={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||yc(n,r)},createReducers:function(){return{currentPageId:gc}}},bc={init:function(e){var t=e.files,n=e.dispatch;Object.keys(t).forEach((function(e){Wt({collection:t[e],collectionName:X(e),dispatch:n,idAttribute:"perma_id",attributes:["id","perma_id","basename","variants","is_ready","parent_file_id","parent_file_model_type","width","height","duration_in_ms","rights","created_at"],includeConfiguration:!0})}))},createReducers:function(e){var t=e.files,n=e.fileUrlTemplates,r=void 0===n?{}:n,o=e.modelTypes,i=void 0===o?{}:o;return r=X.keys(r),i=X.keys(i),{files:Object(se.c)(Object.keys(t).reduce((function(e,t){return e[t=X(t)]=Ce(t,{idAttribute:"permaId"}),e}),{})),fileUrlTemplates:function(e){return r},modelTypes:function(e){return i}}}},wc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case P:return t.payload.settings;default:return e}},Ec={init:function(e){var t=e.isServerSide,n=e.settings,r=e.dispatch;t||(r(_({settings:n.toJSON()})),n.on("change",(function(){return r(_({settings:n.toJSON()}))})))},createReducers:function(){return{settings:wc}},createSaga:function(e){var t=e.settings;return(Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(k,Oe.a.mark((function e(n){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)([t,t.set],n.payload.property,n.payload.value);case 2:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),e)})))}};var Oc="I18N_INIT";var xc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Oc:return{locale:t.payload.locale};default:return e}},Pc={createReducers:function(){return{i18n:xc}},init:function(e){var t=e.locale;(0,e.dispatch)(function(e){var t=e.locale;return{type:Oc,payload:{locale:t}}}({locale:t}))}},kc="ENTRY_UPDATE",_c="ENTRY_READY";function Sc(e){var t=e.entry;return{type:kc,payload:{entry:t}}}function Tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case kc:return jc({},e,{},t.payload.entry);case _c:return jc({},e,{isReady:!0});default:return e}},Ac={init:function(e){var t=e.entry,n=e.dispatch,r=e.events;e.isServerSide||r.once("ready",(function(){return n({type:_c})})),Ut.a.Model&&t instanceof Ut.a.Model?function(e){var t=e.entry,n=e.dispatch;Ic({entry:t,dispatch:n}),t.metadata.on("change:title",(function(){Ic({entry:t,dispatch:n})}))}({entry:t,dispatch:n}):function(e){var t=e.entry;(0,e.dispatch)(Sc({entry:{slug:t.slug,title:t.title,publishedAt:t.published_at}}))}({entry:t,dispatch:n})},createReducers:function(){return{entry:Cc}}};function Ic(e){var t=e.entry;(0,e.dispatch)(Sc({entry:{slug:t.get("slug"),title:t.metadata.get("title")||t.get("entry_title"),publishedAt:null}}))}var Mc={init:function(e){var t=e.isServerSide,n=e.window,r=e.getState,o=e.dispatch;t||n.addEventListener("keydown",(function(e){var t=r().currentPageId;32==e.keyCode?o(function(e){var t=e.currentPageId;return x(xa,t)}({currentPageId:t})):9==e.keyCode&&o(function(e){var t=e.currentPageId;return x(Pa,t)}({currentPageId:t}))}))}},Rc=function(e,t){e.on("activate",(function(e){return t({type:js})})),e.on("deactivate",(function(e){return t({type:Cs})}))};function Dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lc={isActive:!1,hasBeenActive:!1},Bc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case js:return{isActive:!0,hasBeenActive:!0};case Cs:return Nc({},e,{isActive:!1});case vc:return Nc({},e,{hasBeenActive:!1});default:return e}},Fc={init:function(e){var t=e.isServerSide,n=e.hideText,r=e.dispatch;t||Rc(n,r)},createReducers:function(){return{hideText:Bc}}},Uc={init:function(e){var t=e.widgets,n=e.dispatch;Wt({collection:t,collectionName:"widgets",dispatch:n,attributes:["role","type_name","editing"],includeConfiguration:!0})},createReducers:function(){return{widgets:Ce("widgets",{idAttribute:"role"})}}};var Wc="WIDGETS_LOAD";var Hc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Wc:return t.payload.widgets;default:return e}},Vc={init:function(e){var t=e.isServerSide,n=e.events,r=e.widgetsApi,o=e.dispatch;function i(){o(function(e){var t=e.widgets;return{type:Wc,payload:{widgets:t}}}({widgets:{classicPlayerControls:r.isPresent("classic_player_controls"),slimPlayerControls:r.isPresent("slim_player_controls")}}))}t||(n.on("widgets:update",i),i())},createReducers:function(){return{widgetPresence:Hc}}},qc="THEME_INIT";var Gc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case qc:return t.payload;default:return e}},zc={createReducers:function(){return{theme:Gc}},init:function(e){var t,n=e.dispatch;if(!e.isServerSide){var r=document.getElementById("theme_probe-main_color");n((t={mainColor:window.getComputedStyle(r)["background-color"]},{type:qc,payload:t}))}}};function Yc(e){return e.consent.uiVisible}function Xc(e){return e.consent.requestedVendors}var $c=function(e){return React.createElement(cr,Object.assign({},e,{viewBoxLeft:60,viewBoxTop:170,viewBoxWidth:90,viewBoxHeight:157}),React.createElement("path",{fill:"currentColor",d:"m 150.00015,296.99993 a 50,50 0 0 0 50.00004,-50.00005 50,50 0 0 0 -50.00004,-50.00004 H 50.000048 A 50,50 0 0 0 0,246.99988 50,50 0 0 0 50.000048,296.99993 Z"}),React.createElement("circle",{cx:"-150.0002",cy:"-246.99979",fill:"#fff",r:"40",transform:"scale(-1)"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"M 87,227 50,264 34,246"}))},Kc=function(e){return React.createElement(cr,Object.assign({},e,{viewBoxLeft:60,viewBoxTop:170,viewBoxWidth:90,viewBoxHeight:157}),React.createElement("path",{fill:"currentColor",d:"M 188.97656 744.56641 A 188.97638 188.97638 0 0 0 0 933.54297 A 188.97638 188.97638 0 0 0 188.97656 1122.5195 L 566.92969 1122.5195 A 188.97638 188.97638 0 0 0 755.90625 933.54297 A 188.97638 188.97638 0 0 0 566.92969 744.56641 L 188.97656 744.56641 z ",transform:"scale(0.26458333)"}),React.createElement("circle",{id:"path3721-7",cx:"50",cy:"247",fill:"#ffffff",r:"40"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"m 110.10252,271.89748 49.79539,-49.79494"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"M 159.89746,271.89748 110.10252,222.10209"}))},Qc=function(e){function t(e){var n;return T(this,t),(n=R(this,D(t).call(this,e))).state={checked:e.defaultChecked},n.handleClick=n.onClick.bind(M(n)),n}return L(t,e),C(t,[{key:"onClick",value:function(){var e=!this.state.checked;this.setState({checked:e}),this.props.onChange({target:{checked:e}})}},{key:"render",value:function(){var e=this.state.checked,t=e?$c:Kc;return F.a.createElement("button",{id:this.props.id,className:this.props.className,role:"switch","aria-checked":e,onClick:this.handleClick},F.a.createElement(t,{width:50,height:35}))}}]),t}(F.a.Component),Jc=function(e){function t(e){var n;return T(this,t),(n=R(this,D(t).call(this,e))).state={},n.handleVendorInfoClick=n.onVendorInfoClick.bind(M(n)),n}return L(t,e),C(t,[{key:"onVendorInfoClick",value:function(e){this.setState(Object(a.a)({},e,!this.state[e]))}},{key:"render",value:function(){return F.a.createElement("div",{className:"consent_vendor_list"},this.renderVendors())}},{key:"renderVendors",value:function(){var e=this;return this.props.vendors.length?this.props.vendors.map((function(t){var n="consent_vendor_list-vendor_".concat(t.name);return F.a.createElement("div",{key:n,className:"consent_vendor_list-vendor"},F.a.createElement("label",{htmlFor:n},t.displayName),F.a.createElement(Qc,{id:n,className:"consent_vendor_list-toggle",defaultChecked:"accepted"===t.state,onChange:function(n){return e.props.onVendorInputChange(t.name,n)}}),F.a.createElement("button",{className:"consent_vendor_list-expand_vendor",title:e.props.t("pageflow.public.consent_expand_vendor"),onClick:function(){return e.handleVendorInfoClick(t.name)}},F.a.createElement(lr,{width:20,height:20})),e.renderVendorDescription(t))})):F.a.createElement("div",{className:"consent_vendor_list-blank"},this.props.t("pageflow.public.consent_no_vendors"))}},{key:"renderVendorDescription",value:function(e){return this.state[e.name]?F.a.createElement("p",{dangerouslySetInnerHTML:{__html:e.description}}):null}}]),t}(F.a.Component),Zc="CONSENT_REQUEST",eu="CONSENT_DENY_ALL",tu="CONSENT_ACCEPT_ALL",nu="CONSENT_SAVE";function ru(e){var t=e.vendors;return{type:Zc,payload:{vendors:t}}}function ou(){return{type:eu}}function iu(){return{type:tu}}function au(e){return{type:nu,payload:e}}function su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?su(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uu=function(e){function t(e){var n;return T(this,t),(n=R(this,D(t).call(this,e))).state={checked:{}},n.handleSaveButtonClick=n.onSaveButtonClick.bind(M(n)),n.handleAcceptAllButtonClick=n.onAcceptAllButtonClick.bind(M(n)),n.handleDenyAllAllButtonClick=n.onDenyAllButtonClick.bind(M(n)),n.handleVendorInputChange=n.onVendorInputChange.bind(M(n)),n}return L(t,e),C(t,[{key:"onSaveButtonClick",value:function(){var e=this;if(!this.props.editing){var t=this.props.requestedVendors.reduce((function(t,n){var r=n.name;return cu({},t,Object(a.a)({},r,e.state.checked[r]||!1))}),{});this.props.save(t)}}},{key:"onAcceptAllButtonClick",value:function(){this.props.editing||this.props.acceptAll()}},{key:"onDenyAllButtonClick",value:function(){this.props.editing||this.props.denyAll()}},{key:"onVendorInputChange",value:function(e,t){this.setState({checked:cu({},this.state.checked,Object(a.a)({},e,t.target.checked))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.editing,r=t.t,o=t.requestedVendors;return t.visible||n?F.a.createElement("div",{className:W()("consent_bar",{"consent_bar-expanded":this.state.showVendorBox})},F.a.createElement("div",{className:"consent_bar-content"},function(e){var t=e.privacyLinkUrl,n=e.t,r=e.locale,o=e.requestedVendors.map((function(e){return e.name})).join(","),i=n("pageflow.public.consent_prompt_html",{privacyLinkUrl:"".concat(t,"?lang=").concat(r,"&vendors=").concat(o,"#consent")});return F.a.createElement("span",{className:"consent_bar-text",dangerouslySetInnerHTML:{__html:i}})}(this.props),F.a.createElement("div",{className:"consent_bar-vendor_box"},F.a.createElement("h3",null,r("pageflow.public.consent_settings")),F.a.createElement(Jc,{vendors:o,t:r,onVendorInputChange:this.handleVendorInputChange}),F.a.createElement("button",{className:"consent_bar-save",onClick:this.handleSaveButtonClick},r("pageflow.public.consent_save"))),F.a.createElement("div",{className:"consent_bar-buttons"},F.a.createElement("button",{className:"consent_bar-configure",onClick:function(){return e.setState({showVendorBox:!e.state.showVendorBox})}},F.a.createElement(ur,{width:10,height:10}),r("pageflow.public.consent_configure")),F.a.createElement("div",{className:"consent_bar-decision_buttons"},F.a.createElement("button",{className:"consent_bar-deny_all",onClick:this.handleDenyAllAllButtonClick},r("pageflow.public.consent_deny_all")),F.a.createElement("button",{className:"consent_bar-accept_all",onClick:this.handleAcceptAllButtonClick},r("pageflow.public.consent_accept_all")))))):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function lu(e){var t=e&&e.match(/vendors=([^&]+)/);return t?t[1].split(","):[]}var fu={createReducers:function(){return{consent:(e={uiVisible:!1,requestedVendors:[]},function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Zc:return{requestedVendors:n.payload.vendors,uiVisible:!0};case tu:case eu:case nu:return{uiVisible:!1};default:return t}})};var e},createSaga:function(e){e.widgetsApi;var t=e.consent;return(Oe.a.mark((function e(){var n,r,o,i,a;return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return t.requested()}));case 2:return n=e.sent,r=n.acceptAll,o=n.denyAll,i=n.save,a=n.vendors,e.next=9,Object(De.put)(ru({vendors:a}));case 9:return e.next=11,Object(Ne.takeEvery)(tu,(function(){r()}));case 11:return e.next=13,Object(Ne.takeEvery)(eu,(function(){o()}));case 13:return e.next=15,Object(Ne.takeEvery)(nu,(function(e){i(e.payload)}));case 15:case"end":return e.stop()}}),e)})))}};function pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var du=function(e){var t=!!e.storylines,n=!e.settings,r=e.seed,o=t?e:r,i={isServerSide:n,locale:r.locale,entry:o.entry,enabledFeatureNames:r.enabled_feature_names,fileUrlTemplates:r.file_url_templates,modelTypes:r.file_model_types,pageTypesSeed:r.page_types,pageTypes:Bs,site:r.site,files:o.files||{},storylines:o.storylines,chapters:o.chapters,pages:o.pages,widgets:t?e.entry.widgets:r.widgets,cookies:e.cookies,hideText:e.hideText,events:e.events,settings:e.settings,widgetsApi:e.widgets,backgroundMedia:e.backgroundMedia,consent:e.consent,window:n?null:window},s=Object(qs.a)([Xs,oc,ac,Pc,uc,Ac,mc,lc,fc,An,bc,Ec,Fc,Uc,Vc,hc,Mc,zc,fu],i);return n||(Bs.forEach((function(t){return e.pageType.register(t.name,function(e){return Tn(kn(e),e.mixin||{})}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{Component:t.component,store:s})))})),Hs.forEach((function(t){var n=t.name,r=t.component;return e.widgetTypes.register(n,function(e,t){return{enhance:function(n){xn.a.render(React.createElement(He,{store:t},React.createElement(e,null)),n[0])}}}(r,s))}))),s},hu=Rt("pages"),vu=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"componentWillMount",value:function(){this.store=du({seed:this.props.resolverSeed}),this.pageComponent=Bs.findByName(this.props.pageType).component}},{key:"render",value:function(e){var t=this.pageComponent;return F.a.createElement(He,{store:this.store},F.a.createElement(hu,{itemId:this.props.pageId},F.a.createElement(t,null)))}}]),t}(F.a.Component),gu=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"componentWillMount",value:function(){this.store=du({seed:this.props.resolverSeed}),this.widgetComponent=Hs.findByName(this.props.widgetTypeName).component}},{key:"render",value:function(e){var t=this.widgetComponent;return F.a.createElement(He,{store:this.store},F.a.createElement(t,null))}}]),t}(F.a.Component),yu=Rt("pages"),mu=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"componentWillMount",value:function(){this.store=du({seed:this.props.resolverSeed})}},{key:"render",value:function(e){return F.a.createElement(He,{store:this.store},F.a.createElement(yu,{itemId:this.props.pageId},F.a.createElement(ea,null)))}}]),t}(F.a.Component);function bu(e){var t=e.page.audioPlayerControlsVariant;return React.createElement(vi,{className:"audio_page supports_text_position_center",page:e.page,file:e.audioFile,playerState:e.playerState,playerActions:e.playerActions,controlBarText:e.t("pageflow.public.start_audio"),playerControlsComponent:wu(t),dynamicPageScrollerMargin:"waveform"==t,autoplayWhenBackgroundMediaMuted:!1},React.createElement(ea,null),React.createElement(Ki,{playbackMode:!1===e.page.autoplay?"manual":"autoplay",playerDescription:"Audio Page Player"},React.createElement(Di,{file:e.audioFile,playerState:e.playerState,playerActions:e.playerActions,textTrackPosition:Eu(t)})))}function wu(e){return"waveform"==e?Ea:Gr}function Eu(e){if("waveform"==e)return"top"}function Ou(e){var t=e.page;return React.createElement(H,{className:"supports_text_position_center"},React.createElement(ta,{page:t}),React.createElement(Nn,null,React.createElement(Wn,null,React.createElement(Vn,{page:t}),React.createElement(na,{page:t}),React.createElement(qn,{page:t}))))}var xu=["auto","4k","fullhd","medium"];function Pu(e){return React.createElement(vi,{className:"video_page supports_text_position_center",page:e.page,file:e.videoFile,qualities:xu,playerState:e.playerState,playerActions:e.playerActions,controlBarText:e.t("pageflow.public.start_video"),autoplayWhenBackgroundMediaMuted:!0},React.createElement(Ki,{playbackMode:!1===e.page.autoplay?"manual":"autoplay",playerDescription:"Video Page Player"},React.createElement(Yi,{page:e.page,playerState:e.playerState,playerActions:e.playerActions,fit:e.page.contain?"contain":"smart_contain"})),React.createElement(Qi,{page:e.page}))}var ku={position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#3b5159"},_u=function(e){function t(e){var n;return T(this,t),(n=R(this,D(t).call(this,e))).state={fading:!1,hidden:!1},n}return L(t,e),C(t,[{key:"componentDidMount",value:function(){var e=this;PAGEFLOW_EDITOR?this.setState({hidden:!0}):this.fadeTimeout=setTimeout((function(){pageflow.ready.then((function(){e.setState({fading:!0}),e.hiddenTimeout=setTimeout((function(){e.setState({hidden:!0})}),1e3)}))}),1e3)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.fadeTimeout),clearTimeout(this.hiddenTimeout)}},{key:"render",value:function(){var e=this.props.editing,t=this.state,n=t.hidden,r=t.fading;return e||!n?F.a.createElement("div",{className:W()("loading_spinner",{fade:!e&&r}),onTouchMove:Su,style:ku},F.a.createElement("div",{className:"loading_inner"},F.a.createElement("div",{className:"left_circle"}),F.a.createElement("div",{className:"right_circle"}),F.a.createElement("div",{className:"loading_spinner_inner"},F.a.createElement("div",null)))):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function Su(e){e.preventDefault()}var Tu=function(e){function t(e){var n;return T(this,t),(n=R(this,D(t).call(this,e))).state={hidden:!1,animating:!1},n}return L(t,e),C(t,[{key:"componentDidMount",value:function(){var e=this;PAGEFLOW_EDITOR?this.setState({hidden:!0,animating:!0}):(this.setState({animating:!0}),pageflow.delayedStart.waitFor((function(t){e.resolveDelayedStart=t})))}},{key:"hideOrLoop",value:function(e){var t=this;e.target===e.currentTarget&&(PAGEFLOW_EDITOR?(this.setState({animating:!1}),setTimeout((function(){t.setState({animating:!0})}),1e3)):(this.setState({hidden:!0}),this.resolveDelayedStart()))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hiddenTimeout)}},{key:"render",value:function(){var e=this,t=this.props.editing,n=this.state,r=n.hidden,o=n.animating,i=Au(this.props),a=F.a.createElement("div",{className:W()("media_loading_spinner-logo",{"media_loading_spinner-logo-invert":i})});return this.props.removeLogo&&(a=""),t||!r?F.a.createElement("div",{className:W()("media_loading_spinner",{"media_loading_spinner-fade":o},{"media_loading_spinner-invert":i}),onAnimationEnd:function(t){return e.hideOrLoop(t)},onTouchMove:ju,style:Iu(this.props)},a,F.a.createElement("div",{className:"media_loading_spinner-image",style:Cu(this.props)}),this.props.children):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function ju(e){e.preventDefault()}function Cu(e){var t=e.firstPageBackgroundImageUrlMedium,n=e.firstPageBackgroundImageUrlLarge,r=e.backgroundImage,o=e.blurStrength,i=e.backgroundImageX,a=e.backgroundImageY,s={x:null!=i?i:50,y:null!=a?a:50},c=0===o?r?r.urls.large:n:r?r.urls.medium:t;if(c){var u={backgroundImage:'url("'.concat(c,'")'),filter:"blur("+o+"px)"};return r&&(u.backgroundPosition="".concat(s.x,"% ").concat(s.y,"%")),u}}function Au(e){return e.backgroundImage||null!=e.invert?e.invert:e.firstPageInvert}function Iu(e){return{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:100,backgroundColor:Au(e)?"#fff":"#000",animationDelay:void 0!==e.animationDuration?e.animationDuration+"s":void 0}}var Mu=It(te({editing:ao({role:"loading_spinner"}),firstPageInvert:nn("invert"),firstPageBackgroundImageUrlMedium:Jt({variant:"medium",page:tn()}),firstPageBackgroundImageUrlLarge:Jt({variant:"large",page:tn()}),backgroundImage:Xt("imageFiles",{id:oo("customBackgroundImageId",{role:"loading_spinner"})}),backgroundImageX:oo("customBackgroundImageX",{role:"loading_spinner"}),backgroundImageY:oo("customBackgroundImageY",{role:"loading_spinner"}),invert:oo("invert",{role:"loading_spinner"}),removeLogo:oo("removeLogo",{role:"loading_spinner"}),blurStrength:oo("blurStrength",{role:"loading_spinner"}),animationDuration:oo("animationDuration",{role:"loading_spinner"})}))(Tu);var Ru=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.subtitle,r=e.entryTitle,o=Au(this.props),i=void 0!==this.props.animationDuration?this.props.animationDuration+"s":void 0;return F.a.createElement(Mu,null,F.a.createElement("div",{className:W()("media_loading_spinner-titles",{"media_loading_spinner-invert":o}),style:{animationDuration:i}},F.a.createElement("div",{className:"media_loading_spinner-title"},t||r),F.a.createElement("div",{className:"media_loading_spinner-subtitle"},n)))}}]),t}(F.a.Component);var Du=n(97),Nu=n.n(Du);function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Fs("background_image",{component:In(te({page:on()}))(Ou),reduxModules:[_s]}),Fs("video",{component:In(te({page:on(),videoFile:Xt("videoFiles",{id:rn("videoFileId")}),playerState:Ko(),t:Yr}),$({playerActions:Qo()}))(Pu),reduxModules:[ks({hideControls:!0,autoplayWhenBackgroundMediaMuted:!0,playsInNativePlayer:Xn("native video player")})]}),Fs("audio",{component:In(te({page:on(),audioFile:Xt("audioFiles",{id:rn("audioFileId")}),playerState:Ko(),t:Yr}),$({playerActions:Qo()}))(bu),reduxModules:[ks({retryOnUnmute:!0}),_s]}),Vs("cookie_notice_bar",{component:It(te({isCookieNoticeVisible:$s,privacyLinkUrl:Ks,editing:ao({role:"cookie_notice"}),t:Yr,locale:Xr}),{dismiss:Zs})(ec)}),Vs("consent_bar",{component:It(te({privacyLinkUrl:Ks,editing:ao({role:"cookie_notice"}),t:Yr,locale:Xr,requestedVendors:Xc,visible:Yc}),{acceptAll:iu,denyAll:ou,save:au})(uu)}),Vs("unmute_button",{component:It(te({t:Yr,muted:Xo}),{unmute:Wa})(Ys)}),Vs("classic_loading_spinner",{component:It(te({editing:ao({role:"loading_spinner"})}))(_u)}),Vs("title_loading_spinner",{component:It(te({firstPageInvert:nn("invert"),backgroundImage:Xt("imageFiles",{id:oo("customBackgroundImageId",{role:"loading_spinner"})}),entryTitle:li("title"),title:oo("title",{role:"loading_spinner"}),subtitle:oo("subtitle",{role:"loading_spinner"}),removeLogo:oo("removeLogo",{role:"loading_spinner"}),invert:oo("invert",{role:"loading_spinner"}),animationDuration:oo("animationDuration",{role:"loading_spinner"})}))(Ru)}),Vs("media_loading_spinner",{component:Mu}),Nu.a.events&&Nu.a.events.on("seed:loaded",(function(){return du(Nu.a)}));t.default={components:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ConsentSettings:function(e){var t=e.consent,n=e.t,r=e.queryString,o=t.relevantVendors({include:lu(r)});return F.a.createElement("div",null,F.a.createElement(Jc,{vendors:o,t:n,onVendorInputChange:function(e,n){n.target.checked?t.accept(e):t.deny(e)}}))},MediaPageBackground:ta,PageWithInteractiveBackground:Ts},o),actions:r,selectors:i,registerPageType:Fs,registerPageTypeWithDefaultBackground:function(e,t){Fs(e,{component:ea,selectTargetElement:function(e){return e.find(".page_background_asset")[0]},mixin:Ws({scroller:!0},t),reduxModules:[_s]})},registerWidgetType:Vs,mediaReduxModule:ks,mediaPageBackgroundReduxModule:_s,pageWithInteractiveBackgroundReduxModule:Rs,iconMapping:pr,SvgIcon:cr,classNames:W.a,connect:It,connectInPage:In,combineReducers:se.c,combine:$,ServerSidePage:vu,ServerSideWidget:gu,ServerSidePageBackgroundAsset:mu}}]).default;
|
22
|
+
* @license BSD-3-Clause */o=this,void 0===(r=function(){return o.WaveSurfer=function(){"use strict";var e={defaultParams:{audioContext:null,audioRate:1,autoCenter:!0,backend:"WebAudio",barHeight:1,closeAudioContext:!1,container:null,cursorColor:"#333",cursorWidth:1,dragSelection:!0,fallbackProgressHeight:4,fillParent:!0,forceDecode:!1,height:128,hideScrollbar:!1,interact:!0,loopSelection:!0,mediaContainer:null,mediaControls:!1,mediaType:"audio",minPxPerSec:20,partialRender:!1,pixelRatio:window.devicePixelRatio||screen.deviceXDPI/screen.logicalXDPI,progressColor:"#555",normalize:!1,removeMediaElementOnDestroy:!0,renderer:"MultiCanvas",scrollParent:!1,skipLength:2,splitChannels:!1,waveColor:"#999"},init:function(t){if(this.params=e.util.extend({},this.defaultParams,t),this.container="string"==typeof t.container?document.querySelector(this.params.container):this.params.container,!this.container)throw new Error("Container element not found");if(null==this.params.mediaContainer?this.mediaContainer=this.container:"string"==typeof this.params.mediaContainer?this.mediaContainer=document.querySelector(this.params.mediaContainer):this.mediaContainer=this.params.mediaContainer,!this.mediaContainer)throw new Error("Media Container element not found");this.savedVolume=0,this.isMuted=!1,this.tmpEvents=[],this.currentAjax=null,this.createDrawer(),this.createBackend(),this.createPeakCache(),this.isDestroyed=!1},createDrawer:function(){var t=this;this.drawer=Object.create(e.Drawer[this.params.renderer]),this.drawer.init(this.container,this.params),this.drawer.on("click",(function(e,n){setTimeout((function(){t.seekTo(n)}),0)})),this.drawer.on("scroll",(function(e){t.params.partialRender&&t.drawBuffer(),t.fireEvent("scroll",e)}))},createBackend:function(){var t=this;this.backend&&this.backend.destroy(),"AudioElement"==this.params.backend&&(this.params.backend="MediaElement"),"WebAudio"!=this.params.backend||e.WebAudio.supportsWebAudio()||(this.params.backend="MediaElement"),this.backend=Object.create(e[this.params.backend]),this.backend.init(this.params),this.backend.on("finish",(function(){t.fireEvent("finish")})),this.backend.on("play",(function(){t.fireEvent("play")})),this.backend.on("pause",(function(){t.fireEvent("pause")})),this.backend.on("audioprocess",(function(e){t.drawer.progress(t.backend.getPlayedPercents()),t.fireEvent("audioprocess",e)}))},createPeakCache:function(){this.params.partialRender&&(this.peakCache=Object.create(e.PeakCache),this.peakCache.init())},getDuration:function(){return this.backend.getDuration()},play:function(e,t){this.fireEvent("interaction",this.play.bind(this,e,t)),this.backend.play(e,t)},pause:function(){this.backend.isPaused()||this.backend.pause()},playPause:function(){this.backend.isPaused()?this.play():this.pause()},isPlaying:function(){return!this.backend.isPaused()},skipBackward:function(e){this.skip(-e||-this.params.skipLength)},skipForward:function(e){this.skip(e||this.params.skipLength)},skip:function(e){var t=this.getCurrentTime()||0,n=this.getDuration()||1;t=Math.max(0,Math.min(n,t+(e||0))),this.seekAndCenter(t/n)},seekAndCenter:function(e){this.seekTo(e),this.drawer.recenter(e)},seekTo:function(e){this.fireEvent("interaction",this.seekTo.bind(this,e));var t=this.backend.isPaused();t||this.backend.pause();var n=this.params.scrollParent;this.params.scrollParent=!1,this.backend.seekTo(e*this.getDuration()),this.drawer.progress(this.backend.getPlayedPercents()),t||this.backend.play(),this.params.scrollParent=n,this.fireEvent("seek",e)},stop:function(){this.pause(),this.seekTo(0),this.drawer.progress(0)},setVolume:function(e){this.backend.setVolume(e)},getVolume:function(){return this.backend.getVolume()},getCurrentTime:function(){return this.backend.getCurrentTime()},setCurrentTime:function(e){this.getDuration()>=e?this.seekTo(1):this.seekTo(e/this.getDuration())},setPlaybackRate:function(e){this.backend.setPlaybackRate(e)},getPlaybackRate:function(){return this.backend.getPlaybackRate()},toggleMute:function(){this.setMute(!this.isMuted)},setMute:function(e){e!==this.isMuted&&(e?(this.savedVolume=this.backend.getVolume(),this.backend.setVolume(0),this.isMuted=!0):(this.backend.setVolume(this.savedVolume),this.isMuted=!1))},getMute:function(){return this.isMuted},getFilters:function(){return this.backend.filters||[]},toggleScroll:function(){this.params.scrollParent=!this.params.scrollParent,this.drawBuffer()},toggleInteraction:function(){this.params.interact=!this.params.interact},getWaveColor:function(){return this.params.waveColor},setWaveColor:function(e){this.params.waveColor=e,this.drawBuffer()},getProgressColor:function(){return this.params.progressColor},setProgressColor:function(e){this.params.progressColor=e,this.drawBuffer()},getCursorColor:function(){return this.params.cursorColor},setCursorColor:function(e){this.params.cursorColor=e,this.drawer.updateCursor()},getHeight:function(){return this.params.height},setHeight:function(e){this.params.height=e,this.drawer.setHeight(e*this.params.pixelRatio)},drawBuffer:function(){var e=Math.round(this.getDuration()*this.params.minPxPerSec*this.params.pixelRatio),t=this.drawer.getWidth(),n=e,r=this.drawer.getScrollX(),o=Math.min(r+t,n);if(this.params.fillParent&&(!this.params.scrollParent||e<t)&&(r=0,o=n=t),this.params.partialRender)for(var i=this.peakCache.addRangeToPeakCache(n,r,o),a=0;a<i.length;a++)s=this.backend.getPeaks(n,i[a][0],i[a][1]),this.drawer.drawPeaks(s,n,i[a][0],i[a][1]);else{r=0,o=n;var s=this.backend.getPeaks(n,r,o);this.drawer.drawPeaks(s,n,r,o)}this.fireEvent("redraw",s,n)},zoom:function(e){this.params.minPxPerSec=e,this.params.scrollParent=!0,this.refresh(),this.drawer.recenter(this.getCurrentTime()/this.getDuration()),this.fireEvent("zoom",e)},refresh:function(){this.drawBuffer(),this.drawer.progress(this.backend.getPlayedPercents())},loadArrayBuffer:function(e){this.decodeArrayBuffer(e,function(e){this.isDestroyed||this.loadDecodedBuffer(e)}.bind(this))},loadDecodedBuffer:function(e){this.backend.load(e),this.drawBuffer(),this.fireEvent("ready")},loadBlob:function(e){var t=this,n=new FileReader;n.addEventListener("progress",(function(e){t.onProgress(e)})),n.addEventListener("load",(function(e){t.loadArrayBuffer(e.target.result)})),n.addEventListener("error",(function(){t.fireEvent("error","Error reading file")})),n.readAsArrayBuffer(e),this.empty()},load:function(e,t,n){switch(this.empty(),this.isMuted=!1,this.params.backend){case"WebAudio":return this.loadBuffer(e,t);case"MediaElement":return this.loadMediaElement(e,t,n)}},loadBuffer:function(e,t){var n=function(t){return t&&this.tmpEvents.push(this.once("ready",t)),this.getArrayBuffer(e,this.loadArrayBuffer.bind(this))}.bind(this);if(!t)return n();this.backend.setPeaks(t),this.drawBuffer(),this.tmpEvents.push(this.once("interaction",n))},loadMediaElement:function(e,t,n){var r=e;if("string"==typeof e)this.backend.load(r,this.mediaContainer,t,n);else{var o=e;this.backend.loadElt(o,t),r=o.src}this.tmpEvents.push(this.backend.once("canplay",function(){this.drawBuffer(),this.fireEvent("ready")}.bind(this)),this.backend.once("error",function(e){this.fireEvent("error",e)}.bind(this))),t&&this.backend.setPeaks(t),t&&!this.params.forceDecode||!this.backend.supportsWebAudio()||this.getArrayBuffer(r,function(e){this.decodeArrayBuffer(e,function(e){this.backend.buffer=e,this.backend.setPeaks(null),this.drawBuffer(),this.fireEvent("waveform-ready")}.bind(this))}.bind(this))},decodeArrayBuffer:function(e,t){this.arraybuffer=e,this.backend.decodeArrayBuffer(e,function(n){this.isDestroyed||this.arraybuffer!=e||(t(n),this.arraybuffer=null)}.bind(this),this.fireEvent.bind(this,"error","Error decoding audiobuffer"))},getArrayBuffer:function(t,n){var r=this,o=e.util.ajax({url:t,responseType:"arraybuffer"});return this.currentAjax=o,this.tmpEvents.push(o.on("progress",(function(e){r.onProgress(e)})),o.on("success",(function(e,t){n(e),r.currentAjax=null})),o.on("error",(function(e){r.fireEvent("error","XHR error: "+e.target.statusText),r.currentAjax=null}))),o},onProgress:function(e){if(e.lengthComputable)var t=e.loaded/e.total;else t=e.loaded/(e.loaded+1e6);this.fireEvent("loading",Math.round(100*t),e.target)},exportPCM:function(e,t,n,r){e=e||1024,r=r||0,t=t||1e4,n=n||!1;var o=this.backend.getPeaks(e,r),i=[].map.call(o,(function(e){return Math.round(e*t)/t})),a=JSON.stringify(i);return n||window.open("data:application/json;charset=utf-8,"+encodeURIComponent(a)),a},exportImage:function(e,t){return e||(e="image/png"),t||(t=1),this.drawer.getImage(e,t)},cancelAjax:function(){this.currentAjax&&(this.currentAjax.xhr.abort(),this.currentAjax=null)},clearTmpEvents:function(){this.tmpEvents.forEach((function(e){e.un()}))},empty:function(){this.backend.isPaused()||(this.stop(),this.backend.disconnectSource()),this.cancelAjax(),this.clearTmpEvents(),this.drawer.progress(0),this.drawer.setWidth(0),this.drawer.drawPeaks({length:this.drawer.getWidth()},0)},destroy:function(){this.fireEvent("destroy"),this.cancelAjax(),this.clearTmpEvents(),this.unAll(),this.backend.destroy(),this.drawer.destroy(),this.isDestroyed=!0},create:function(t){var n=Object.create(e);return n.init(t),n}};return e.util={requestAnimationFrame:(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){setTimeout(e,1e3/60)}).bind(window),frame:function(t){return function(){var n=this,r=arguments;e.util.requestAnimationFrame((function(){t.apply(n,r)}))}},extend:function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},debounce:function(e,t,n){var r,o,i,a=function(){i=null,n||e.apply(o,r)};return function(){o=this,r=arguments;var s=n&&!i;clearTimeout(i),(i=setTimeout(a,t))||(i=setTimeout(a,t)),s&&e.apply(o,r)}},min:function(e){var t=1/0;for(var n in e)e[n]<t&&(t=e[n]);return t},max:function(e){var t=-1/0;for(var n in e)e[n]>t&&(t=e[n]);return t},getId:function(){return"wavesurfer_"+Math.random().toString(32).substring(2)},ajax:function(t){var n=Object.create(e.Observer),r=new XMLHttpRequest,o=!1;return r.open(t.method||"GET",t.url,!0),r.responseType=t.responseType||"json",r.addEventListener("progress",(function(e){n.fireEvent("progress",e),e.lengthComputable&&e.loaded==e.total&&(o=!0)})),r.addEventListener("load",(function(e){o||n.fireEvent("progress",e),n.fireEvent("load",e),200==r.status||206==r.status?n.fireEvent("success",r.response,e):n.fireEvent("error",e)})),r.addEventListener("error",(function(e){n.fireEvent("error",e)})),r.send(),n.xhr=r,n}},e.Observer={on:function(e,t){this.handlers||(this.handlers={});var n=this.handlers[e];return n||(n=this.handlers[e]=[]),n.push(t),{name:e,callback:t,un:this.un.bind(this,e,t)}},un:function(e,t){if(this.handlers){var n=this.handlers[e];if(n)if(t)for(var r=n.length-1;r>=0;r--)n[r]==t&&n.splice(r,1);else n.length=0}},unAll:function(){this.handlers=null},once:function(e,t){var n=this,r=function(){t.apply(this,arguments),setTimeout((function(){n.un(e,r)}),0)};return this.on(e,r)},fireEvent:function(e){if(this.handlers){var t=this.handlers[e],n=Array.prototype.slice.call(arguments,1);t&&t.forEach((function(e){e.apply(null,n)}))}}},e.util.extend(e,e.Observer),e.WebAudio={scriptBufferSize:256,PLAYING_STATE:0,PAUSED_STATE:1,FINISHED_STATE:2,supportsWebAudio:function(){return!(!window.AudioContext&&!window.webkitAudioContext)},getAudioContext:function(){return e.WebAudio.audioContext||(e.WebAudio.audioContext=new(window.AudioContext||window.webkitAudioContext)),e.WebAudio.audioContext},getOfflineAudioContext:function(t){return e.WebAudio.offlineAudioContext||(e.WebAudio.offlineAudioContext=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,2,t)),e.WebAudio.offlineAudioContext},init:function(t){this.params=t,this.ac=t.audioContext||this.getAudioContext(),this.lastPlay=this.ac.currentTime,this.startPosition=0,this.scheduledPause=null,this.states=[Object.create(e.WebAudio.state.playing),Object.create(e.WebAudio.state.paused),Object.create(e.WebAudio.state.finished)],this.createVolumeNode(),this.createScriptNode(),this.createAnalyserNode(),this.setState(this.PAUSED_STATE),this.setPlaybackRate(this.params.audioRate),this.setLength(0)},disconnectFilters:function(){this.filters&&(this.filters.forEach((function(e){e&&e.disconnect()})),this.filters=null,this.analyser.connect(this.gainNode))},setState:function(e){this.state!==this.states[e]&&(this.state=this.states[e],this.state.init.call(this))},setFilter:function(){this.setFilters([].slice.call(arguments))},setFilters:function(e){this.disconnectFilters(),e&&e.length&&(this.filters=e,this.analyser.disconnect(),e.reduce((function(e,t){return e.connect(t),t}),this.analyser).connect(this.gainNode))},createScriptNode:function(){this.ac.createScriptProcessor?this.scriptNode=this.ac.createScriptProcessor(this.scriptBufferSize):this.scriptNode=this.ac.createJavaScriptNode(this.scriptBufferSize),this.scriptNode.connect(this.ac.destination)},addOnAudioProcess:function(){var e=this;this.scriptNode.onaudioprocess=function(){var t=e.getCurrentTime();t>=e.getDuration()?(e.setState(e.FINISHED_STATE),e.fireEvent("pause")):t>=e.scheduledPause?e.pause():e.state===e.states[e.PLAYING_STATE]&&e.fireEvent("audioprocess",t)}},removeOnAudioProcess:function(){this.scriptNode.onaudioprocess=null},createAnalyserNode:function(){this.analyser=this.ac.createAnalyser(),this.analyser.connect(this.gainNode)},createVolumeNode:function(){this.ac.createGain?this.gainNode=this.ac.createGain():this.gainNode=this.ac.createGainNode(),this.gainNode.connect(this.ac.destination)},setVolume:function(e){this.gainNode.gain.value=e},getVolume:function(){return this.gainNode.gain.value},decodeArrayBuffer:function(e,t,n){this.offlineAc||(this.offlineAc=this.getOfflineAudioContext(this.ac?this.ac.sampleRate:44100)),this.offlineAc.decodeAudioData(e,function(e){t(e)}.bind(this),n)},setPeaks:function(e){this.peaks=e},setLength:function(e){if(!this.mergedPeaks||e!=2*this.mergedPeaks.length-1+2){this.splitPeaks=[],this.mergedPeaks=[];for(var t=this.buffer?this.buffer.numberOfChannels:1,n=0;n<t;n++)this.splitPeaks[n]=[],this.splitPeaks[n][2*(e-1)]=0,this.splitPeaks[n][2*(e-1)+1]=0;this.mergedPeaks[2*(e-1)]=0,this.mergedPeaks[2*(e-1)+1]=0}},getPeaks:function(e,t,n){if(this.peaks)return this.peaks;t=t||0,n=n||e-1,this.setLength(e);for(var r=this.buffer.length/e,o=~~(r/10)||1,i=this.buffer.numberOfChannels,a=0;a<i;a++)for(var s=this.splitPeaks[a],c=this.buffer.getChannelData(a),u=t;u<=n;u++){for(var l=~~(u*r),f=~~(l+r),p=0,d=0,h=l;h<f;h+=o){var v=c[h];v>d&&(d=v),v<p&&(p=v)}s[2*u]=d,s[2*u+1]=p,(0==a||d>this.mergedPeaks[2*u])&&(this.mergedPeaks[2*u]=d),(0==a||p<this.mergedPeaks[2*u+1])&&(this.mergedPeaks[2*u+1]=p)}return this.params.splitChannels?this.splitPeaks:this.mergedPeaks},getPlayedPercents:function(){return this.state.getPlayedPercents.call(this)},disconnectSource:function(){this.source&&this.source.disconnect()},destroy:function(){this.isPaused()||this.pause(),this.unAll(),this.buffer=null,this.disconnectFilters(),this.disconnectSource(),this.gainNode.disconnect(),this.scriptNode.disconnect(),this.analyser.disconnect(),this.params.closeAudioContext&&("function"==typeof this.ac.close&&"closed"!=this.ac.state&&this.ac.close(),this.ac=null,this.params.audioContext?this.params.audioContext=null:e.WebAudio.audioContext=null,e.WebAudio.offlineAudioContext=null)},load:function(e){this.startPosition=0,this.lastPlay=this.ac.currentTime,this.buffer=e,this.createSource()},createSource:function(){this.disconnectSource(),this.source=this.ac.createBufferSource(),this.source.start=this.source.start||this.source.noteGrainOn,this.source.stop=this.source.stop||this.source.noteOff,this.source.playbackRate.value=this.playbackRate,this.source.buffer=this.buffer,this.source.connect(this.analyser)},isPaused:function(){return this.state!==this.states[this.PLAYING_STATE]},getDuration:function(){return this.buffer?this.buffer.duration:0},seekTo:function(e,t){if(this.buffer)return this.scheduledPause=null,null==e&&(e=this.getCurrentTime())>=this.getDuration()&&(e=0),null==t&&(t=this.getDuration()),this.startPosition=e,this.lastPlay=this.ac.currentTime,this.state===this.states[this.FINISHED_STATE]&&this.setState(this.PAUSED_STATE),{start:e,end:t}},getPlayedTime:function(){return(this.ac.currentTime-this.lastPlay)*this.playbackRate},play:function(e,t){if(this.buffer){this.createSource();var n=this.seekTo(e,t);e=n.start,t=n.end,this.scheduledPause=t,this.source.start(0,e,t-e),"suspended"==this.ac.state&&this.ac.resume&&this.ac.resume(),this.setState(this.PLAYING_STATE),this.fireEvent("play")}},pause:function(){this.scheduledPause=null,this.startPosition+=this.getPlayedTime(),this.source&&this.source.stop(0),this.setState(this.PAUSED_STATE),this.fireEvent("pause")},getCurrentTime:function(){return this.state.getCurrentTime.call(this)},getPlaybackRate:function(){return this.playbackRate},setPlaybackRate:function(e){e=e||1,this.isPaused()?this.playbackRate=e:(this.pause(),this.playbackRate=e,this.play())}},e.WebAudio.state={},e.WebAudio.state.playing={init:function(){this.addOnAudioProcess()},getPlayedPercents:function(){var e=this.getDuration();return this.getCurrentTime()/e||0},getCurrentTime:function(){return this.startPosition+this.getPlayedTime()}},e.WebAudio.state.paused={init:function(){this.removeOnAudioProcess()},getPlayedPercents:function(){var e=this.getDuration();return this.getCurrentTime()/e||0},getCurrentTime:function(){return this.startPosition}},e.WebAudio.state.finished={init:function(){this.removeOnAudioProcess(),this.fireEvent("finish")},getPlayedPercents:function(){return 1},getCurrentTime:function(){return this.getDuration()}},e.util.extend(e.WebAudio,e.Observer),e.MediaElement=Object.create(e.WebAudio),e.util.extend(e.MediaElement,{init:function(e){this.params=e,this.media={currentTime:0,duration:0,paused:!0,playbackRate:1,play:function(){},pause:function(){}},this.mediaType=e.mediaType.toLowerCase(),this.elementPosition=e.elementPosition,this.setPlaybackRate(this.params.audioRate),this.createTimer()},createTimer:function(){var e=this,t=function(){e.isPaused()||(e.fireEvent("audioprocess",e.getCurrentTime()),(window.requestAnimationFrame||window.webkitRequestAnimationFrame)(t))};this.on("play",t)},load:function(e,t,n,r){var o=document.createElement(this.mediaType);o.controls=this.params.mediaControls,o.autoplay=this.params.autoplay||!1,o.preload=null==r?"auto":r,o.src=e,o.style.width="100%";var i=t.querySelector(this.mediaType);i&&t.removeChild(i),t.appendChild(o),this._load(o,n)},loadElt:function(e,t){var n=e;n.controls=this.params.mediaControls,n.autoplay=this.params.autoplay||!1,this._load(n,t)},_load:function(e,t){var n=this;"function"==typeof e.load&&e.load(),e.addEventListener("error",(function(){n.fireEvent("error","Error loading media element")})),e.addEventListener("canplay",(function(){n.fireEvent("canplay")})),e.addEventListener("ended",(function(){n.fireEvent("finish")})),e.addEventListener("play",(function(){n.fireEvent("play")})),e.addEventListener("pause",(function(){n.fireEvent("pause")})),this.media=e,this.peaks=t,this.onPlayEnd=null,this.buffer=null,this.setPlaybackRate(this.playbackRate)},isPaused:function(){return!this.media||this.media.paused},getDuration:function(){var e=(this.buffer||this.media).duration;return e>=1/0&&(e=this.media.seekable.end(0)),e},getCurrentTime:function(){return this.media&&this.media.currentTime},getPlayedPercents:function(){return this.getCurrentTime()/this.getDuration()||0},getPlaybackRate:function(){return this.playbackRate||this.media.playbackRate},setPlaybackRate:function(e){this.playbackRate=e||1,this.media.playbackRate=this.playbackRate},seekTo:function(e){null!=e&&(this.media.currentTime=e),this.clearPlayEnd()},play:function(e,t){this.seekTo(e),this.media.play(),t&&this.setPlayEnd(t)},pause:function(){this.media&&this.media.pause(),this.clearPlayEnd()},setPlayEnd:function(e){var t=this;this.onPlayEnd=function(n){n>=e&&(t.pause(),t.seekTo(e))},this.on("audioprocess",this.onPlayEnd)},clearPlayEnd:function(){this.onPlayEnd&&(this.un("audioprocess",this.onPlayEnd),this.onPlayEnd=null)},getPeaks:function(t,n,r){return this.buffer?e.WebAudio.getPeaks.call(this,t,n,r):this.peaks||[]},getVolume:function(){return this.media.volume},setVolume:function(e){this.media.volume=e},destroy:function(){this.pause(),this.unAll(),this.params.removeMediaElementOnDestroy&&this.media&&this.media.parentNode&&this.media.parentNode.removeChild(this.media),this.media=null}}),e.AudioElement=e.MediaElement,e.Drawer={init:function(e,t){this.container=e,this.params=t,this.width=0,this.height=t.height*this.params.pixelRatio,this.lastPos=0,this.initDrawer(t),this.createWrapper(),this.createElements()},createWrapper:function(){this.wrapper=this.container.appendChild(document.createElement("wave")),this.style(this.wrapper,{display:"block",position:"relative",userSelect:"none",webkitUserSelect:"none",height:this.params.height+"px"}),(this.params.fillParent||this.params.scrollParent)&&this.style(this.wrapper,{width:"100%",overflowX:this.params.hideScrollbar?"hidden":"auto",overflowY:"hidden"}),this.setupWrapperEvents()},handleEvent:function(e,t){!t&&e.preventDefault();var n,r=e.targetTouches?e.targetTouches[0].clientX:e.clientX,o=this.wrapper.getBoundingClientRect(),i=this.width,a=this.getWidth();return!this.params.fillParent&&i<a?(n=(r-o.left)*this.params.pixelRatio/i||0)>1&&(n=1):n=(r-o.left+this.wrapper.scrollLeft)/this.wrapper.scrollWidth||0,n},setupWrapperEvents:function(){var e=this;this.wrapper.addEventListener("click",(function(t){var n=e.wrapper.offsetHeight-e.wrapper.clientHeight;if(0!=n){var r=e.wrapper.getBoundingClientRect();if(t.clientY>=r.bottom-n)return}e.params.interact&&e.fireEvent("click",t,e.handleEvent(t))})),this.wrapper.addEventListener("scroll",(function(t){e.fireEvent("scroll",t)}))},drawPeaks:function(e,t,n,r){this.setWidth(t)||this.clearWave(),this.params.barWidth?this.drawBars(e,0,n,r):this.drawWave(e,0,n,r)},style:function(e,t){return Object.keys(t).forEach((function(n){e.style[n]!==t[n]&&(e.style[n]=t[n])})),e},resetScroll:function(){null!==this.wrapper&&(this.wrapper.scrollLeft=0)},recenter:function(e){var t=this.wrapper.scrollWidth*e;this.recenterOnPosition(t,!0)},recenterOnPosition:function(e,t){var n=this.wrapper.scrollLeft,r=~~(this.wrapper.clientWidth/2),o=e-r,i=o-n,a=this.wrapper.scrollWidth-this.wrapper.clientWidth;0!=a&&(!t&&-r<=i&&i<r&&(o=n+(i=Math.max(-5,Math.min(5,i)))),(o=Math.max(0,Math.min(a,o)))!=n&&(this.wrapper.scrollLeft=o))},getScrollX:function(){return Math.round(this.wrapper.scrollLeft*this.params.pixelRatio)},getWidth:function(){return Math.round(this.container.clientWidth*this.params.pixelRatio)},setWidth:function(e){return this.width!=e&&(this.width=e,this.params.fillParent||this.params.scrollParent?this.style(this.wrapper,{width:""}):this.style(this.wrapper,{width:~~(this.width/this.params.pixelRatio)+"px"}),this.updateSize(),!0)},setHeight:function(e){return e!=this.height&&(this.height=e,this.style(this.wrapper,{height:~~(this.height/this.params.pixelRatio)+"px"}),this.updateSize(),!0)},progress:function(e){var t=1/this.params.pixelRatio,n=Math.round(e*this.width)*t;if(n<this.lastPos||n-this.lastPos>=t){if(this.lastPos=n,this.params.scrollParent&&this.params.autoCenter){var r=~~(this.wrapper.scrollWidth*e);this.recenterOnPosition(r)}this.updateProgress(n)}},destroy:function(){this.unAll(),this.wrapper&&(this.wrapper.parentNode==this.container&&this.container.removeChild(this.wrapper),this.wrapper=null)},initDrawer:function(){},createElements:function(){},updateCursor:function(){},updateSize:function(){},drawWave:function(e,t){},clearWave:function(){},updateProgress:function(e){}},e.util.extend(e.Drawer,e.Observer),e.Drawer.Canvas=Object.create(e.Drawer),e.util.extend(e.Drawer.Canvas,{createElements:function(){var e=this.wrapper.appendChild(this.style(document.createElement("canvas"),{position:"absolute",zIndex:1,left:0,top:0,bottom:0,pointerEvents:"none"}));if(this.waveCc=e.getContext("2d"),this.progressWave=this.wrapper.appendChild(this.style(document.createElement("wave"),{position:"absolute",zIndex:2,left:0,top:0,bottom:0,overflow:"hidden",width:"0",display:"none",boxSizing:"border-box",borderRightStyle:"solid",pointerEvents:"none"})),this.updateCursor(),this.params.waveColor!=this.params.progressColor){var t=this.progressWave.appendChild(document.createElement("canvas"));this.progressCc=t.getContext("2d")}},updateCursor:function(){this.style(this.progressWave,{borderRightWidth:this.params.cursorWidth+"px",borderRightColor:this.params.cursorColor})},updateSize:function(){var e=Math.round(this.width/this.params.pixelRatio);this.waveCc.canvas.width=this.width,this.waveCc.canvas.height=this.height,this.style(this.waveCc.canvas,{width:e+"px"}),this.style(this.progressWave,{display:"block"}),this.progressCc&&(this.progressCc.canvas.width=this.width,this.progressCc.canvas.height=this.height,this.style(this.progressCc.canvas,{width:e+"px"})),this.clearWave()},clearWave:function(){this.waveCc.clearRect(0,0,this.width,this.height),this.progressCc&&this.progressCc.clearRect(0,0,this.width,this.height)},drawBars:e.util.frame((function(t,n,r,o){var i=this;if(t[0]instanceof Array){var a=t;if(this.params.splitChannels)return this.setHeight(a.length*this.params.height*this.params.pixelRatio),void a.forEach((function(e,t){i.drawBars(e,t,r,o)}));t=a[0]}var s=1;[].some.call(t,(function(e){return e<0}))&&(s=2);var c=.5/this.params.pixelRatio,u=this.width,l=this.params.height*this.params.pixelRatio,f=l*n||0,p=l/2,d=t.length/s,h=this.params.barWidth*this.params.pixelRatio,v=Math.max(this.params.pixelRatio,~~(h/2)),g=h+v,y=1/this.params.barHeight;if(this.params.normalize){var m=e.util.max(t),b=e.util.min(t);y=-b>m?-b:m}var w=d/u;this.waveCc.fillStyle=this.params.waveColor,this.progressCc&&(this.progressCc.fillStyle=this.params.progressColor),[this.waveCc,this.progressCc].forEach((function(e){if(e)for(var n=r/w;n<o/w;n+=g){var i=t[Math.floor(n*w*s)]||0,a=Math.round(i/y*p);e.fillRect(n+c,p-a+f,h+c,2*a)}}),this)})),drawWave:e.util.frame((function(t,n,r,o){var i=this;if(t[0]instanceof Array){var a=t;if(this.params.splitChannels)return this.setHeight(a.length*this.params.height*this.params.pixelRatio),void a.forEach((function(e,t){i.drawWave(e,t,r,o)}));t=a[0]}if(![].some.call(t,(function(e){return e<0}))){for(var s=[],c=0,u=t.length;c<u;c++)s[2*c]=t[c],s[2*c+1]=-t[c];t=s}var l=.5/this.params.pixelRatio,f=this.params.height*this.params.pixelRatio,p=f*n||0,d=f/2,h=~~(t.length/2),v=1;this.params.fillParent&&this.width!=h&&(v=this.width/h);var g=1/this.params.barHeight;if(this.params.normalize){var y=e.util.max(t),m=e.util.min(t);g=-m>y?-m:y}this.waveCc.fillStyle=this.params.waveColor,this.progressCc&&(this.progressCc.fillStyle=this.params.progressColor),[this.waveCc,this.progressCc].forEach((function(e){if(e){for(e.beginPath(),e.moveTo(r*v+l,d+p),n=r;n<o;n++)i=Math.round(t[2*n]/g*d),e.lineTo(n*v+l,d-i+p);for(var n=o-1;n>=r;n--){var i=Math.round(t[2*n+1]/g*d);e.lineTo(n*v+l,d-i+p)}e.closePath(),e.fill(),e.fillRect(0,d+p-l,this.width,l)}}),this)})),updateProgress:function(e){this.style(this.progressWave,{width:e+"px"})},getImage:function(e,t){return this.waveCc.canvas.toDataURL(e,t)}}),e.Drawer.MultiCanvas=Object.create(e.Drawer),e.util.extend(e.Drawer.MultiCanvas,{initDrawer:function(e){if(this.maxCanvasWidth=null!=e.maxCanvasWidth?e.maxCanvasWidth:4e3,this.maxCanvasElementWidth=Math.round(this.maxCanvasWidth/this.params.pixelRatio),this.maxCanvasWidth<=1)throw"maxCanvasWidth must be greater than 1.";if(this.maxCanvasWidth%2==1)throw"maxCanvasWidth must be an even number.";this.hasProgressCanvas=this.params.waveColor!=this.params.progressColor,this.halfPixel=.5/this.params.pixelRatio,this.canvases=[]},createElements:function(){this.progressWave=this.wrapper.appendChild(this.style(document.createElement("wave"),{position:"absolute",zIndex:2,left:0,top:0,bottom:0,overflow:"hidden",width:"0",display:"none",boxSizing:"border-box",borderRightStyle:"solid",pointerEvents:"none"})),this.addCanvas(),this.updateCursor()},updateCursor:function(){this.style(this.progressWave,{borderRightWidth:this.params.cursorWidth+"px",borderRightColor:this.params.cursorColor})},updateSize:function(){for(var e=Math.round(this.width/this.params.pixelRatio),t=Math.ceil(e/this.maxCanvasElementWidth);this.canvases.length<t;)this.addCanvas();for(;this.canvases.length>t;)this.removeCanvas();this.canvases.forEach((function(e,t){var n=this.maxCanvasWidth+2*Math.ceil(this.params.pixelRatio/2);t==this.canvases.length-1&&(n=this.width-this.maxCanvasWidth*(this.canvases.length-1)),this.updateDimensions(e,n,this.height),this.clearWaveForEntry(e)}),this)},addCanvas:function(){var e={},t=this.maxCanvasElementWidth*this.canvases.length;e.wave=this.wrapper.appendChild(this.style(document.createElement("canvas"),{position:"absolute",zIndex:1,left:t+"px",top:0,bottom:0,height:"100%",pointerEvents:"none"})),e.waveCtx=e.wave.getContext("2d"),this.hasProgressCanvas&&(e.progress=this.progressWave.appendChild(this.style(document.createElement("canvas"),{position:"absolute",left:t+"px",top:0,bottom:0,height:"100%"})),e.progressCtx=e.progress.getContext("2d")),this.canvases.push(e)},removeCanvas:function(){var e=this.canvases.pop();e.wave.parentElement.removeChild(e.wave),this.hasProgressCanvas&&e.progress.parentElement.removeChild(e.progress)},updateDimensions:function(e,t,n){var r=Math.round(t/this.params.pixelRatio),o=Math.round(this.width/this.params.pixelRatio);e.start=e.waveCtx.canvas.offsetLeft/o||0,e.end=e.start+r/o,e.waveCtx.canvas.width=t,e.waveCtx.canvas.height=n,this.style(e.waveCtx.canvas,{width:r+"px"}),this.style(this.progressWave,{display:"block"}),this.hasProgressCanvas&&(e.progressCtx.canvas.width=t,e.progressCtx.canvas.height=n,this.style(e.progressCtx.canvas,{width:r+"px"}))},clearWave:function(){this.canvases.forEach((function(e){this.clearWaveForEntry(e)}),this)},clearWaveForEntry:function(e){e.waveCtx.clearRect(0,0,e.waveCtx.canvas.width,e.waveCtx.canvas.height),this.hasProgressCanvas&&e.progressCtx.clearRect(0,0,e.progressCtx.canvas.width,e.progressCtx.canvas.height)},drawBars:e.util.frame((function(t,n,r,o){if(t[0]instanceof Array){var i=t;if(this.params.splitChannels)return this.setHeight(i.length*this.params.height*this.params.pixelRatio),void i.forEach((function(e,t){this.drawBars(e,t,r,o)}),this);t=i[0]}var a=1;[].some.call(t,(function(e){return e<0}))&&(a=2);var s=this.width,c=this.params.height*this.params.pixelRatio,u=c*n||0,l=c/2,f=t.length/a,p=this.params.barWidth*this.params.pixelRatio,d=p+Math.max(this.params.pixelRatio,~~(p/2)),h=1/this.params.barHeight;if(this.params.normalize){var v=e.util.max(t),g=e.util.min(t);h=-g>v?-g:v}for(var y=f/s,m=r/y;m<o/y;m+=d){var b=t[Math.floor(m*y*a)]||0,w=Math.round(b/h*l);this.fillRect(m+this.halfPixel,l-w+u,p+this.halfPixel,2*w)}})),drawWave:e.util.frame((function(t,n,r,o){if(t[0]instanceof Array){var i=t;if(this.params.splitChannels)return this.setHeight(i.length*this.params.height*this.params.pixelRatio),void i.forEach((function(e,t){this.drawWave(e,t,r,o)}),this);t=i[0]}if(![].some.call(t,(function(e){return e<0}))){for(var a=[],s=0,c=t.length;s<c;s++)a[2*s]=t[s],a[2*s+1]=-t[s];t=a}var u=this.params.height*this.params.pixelRatio,l=u*n||0,f=u/2,p=1/this.params.barHeight;if(this.params.normalize){var d=e.util.max(t),h=e.util.min(t);p=-h>d?-h:d}this.drawLine(t,p,f,l,r,o);var v=t.length>0?0:this.params.fallbackProgressHeight;this.fillRect(0,f+l-this.halfPixel,this.width,this.halfPixel,v)})),drawLine:function(e,t,n,r,o,i){this.canvases.forEach((function(a){this.setFillStyles(a),this.drawLineToContext(a,a.waveCtx,e,t,n,r,o,i),this.drawLineToContext(a,a.progressCtx,e,t,n,r,o,i)}),this)},drawLineToContext:function(e,t,n,r,o,i,a,s){if(t){var c=n.length/2,u=1;this.params.fillParent&&this.width!=c&&(u=this.width/c);var l=Math.round(c*e.start),f=Math.round(c*e.end);if(!(l>s||f<a)){var p=Math.max(l,a),d=Math.min(f,s);for(t.beginPath(),t.moveTo((p-l)*u+this.halfPixel,o+i),g=p;g<d;g++){var h=n[2*g]||0,v=Math.round(h/r*o);t.lineTo((g-l)*u+this.halfPixel,o-v+i)}for(var g=d-1;g>=p;g--)h=n[2*g+1]||0,v=Math.round(h/r*o),t.lineTo((g-l)*u+this.halfPixel,o-v+i);t.closePath(),t.fill()}}},fillRect:function(e,t,n,r,o){o=o||0;for(var i=Math.floor(e/this.maxCanvasWidth),a=Math.min(Math.ceil((e+n)/this.maxCanvasWidth)+1,this.canvases.length),s=i;s<a;s++){var c=this.canvases[s],u=s*this.maxCanvasWidth,l={x1:Math.max(e,s*this.maxCanvasWidth),y1:t,x2:Math.min(e+n,s*this.maxCanvasWidth+c.waveCtx.canvas.width),y2:t+r};l.x1<l.x2&&(this.setFillStyles(c),this.fillRectToContext(c.waveCtx,l.x1-u,l.y1,l.x2-l.x1,l.y2-l.y1),this.fillRectToContext(c.progressCtx,l.x1-u,l.y1-o/2,l.x2-l.x1,l.y2-l.y1+o))}},fillRectToContext:function(e,t,n,r,o){e&&e.fillRect(t,n,r,o)},setFillStyles:function(e){e.waveCtx.fillStyle=this.params.waveColor,this.hasProgressCanvas&&(e.progressCtx.fillStyle=this.params.progressColor)},updateProgress:function(e){this.style(this.progressWave,{width:e+"px"})},getImage:function(e,t){var n=[];return this.canvases.forEach((function(r){n.push(r.wave.toDataURL(e,t))})),n.length>1?n:n[0]}}),e.Drawer.SplitWavePointPlot=Object.create(e.Drawer.Canvas),e.util.extend(e.Drawer.SplitWavePointPlot,{defaultPlotParams:{plotNormalizeTo:"whole",plotTimeStart:0,plotMin:0,plotMax:1,plotColor:"#f63",plotProgressColor:"#F00",plotPointHeight:2,plotPointWidth:2,plotSeparator:!0,plotSeparatorColor:"black",plotRangeDisplay:!1,plotRangeUnits:"",plotRangePrecision:4,plotRangeIgnoreOutliers:!1,plotRangeFontSize:12,plotRangeFontType:"Ariel",waveDrawMedianLine:!0,plotFileDelimiter:"\t"},plotTimeStart:0,plotTimeEnd:-1,plotArrayLoaded:!1,plotArray:[],plotPoints:[],plotMin:0,plotMax:1,initDrawer:function(e){var t=this;for(var n in this.defaultPlotParams)void 0===this.params[n]&&(this.params[n]=this.defaultPlotParams[n]);this.plotTimeStart=this.params.plotTimeStart,void 0!==this.params.plotTimeEnd&&(this.plotTimeEnd=this.params.plotTimeEnd),Array.isArray(e.plotArray)?(this.plotArray=e.plotArray,this.plotArrayLoaded=!0):this.loadPlotArrayFromFile(e.plotFileUrl,(function(e){t.plotArray=e,t.plotArrayLoaded=!0,t.fireEvent("plot_array_loaded")}),this.params.plotFileDelimiter)},drawPeaks:function(e,t,n,r){if(1==this.plotArrayLoaded)this.setWidth(t),this.splitChannels=!0,this.params.height=this.params.height/2,e[0]instanceof Array&&(e=e[0]),this.params.barWidth?this.drawBars(e,1,n,r):this.drawWave(e,1,n,r),this.params.height=2*this.params.height,this.calculatePlots(),this.drawPlots();else{var o=this;o.on("plot-array-loaded",(function(){o.drawPeaks(e,t,n,r)}))}},drawPlots:function(){var e=this.params.height*this.params.pixelRatio/2,t=.5/this.params.pixelRatio;for(var n in this.waveCc.fillStyle=this.params.plotColor,this.progressCc&&(this.progressCc.fillStyle=this.params.plotProgressColor),this.plotPoints){var r=parseInt(n),o=e-this.params.plotPointHeight-this.plotPoints[n]*(e-this.params.plotPointHeight),i=this.params.plotPointHeight;this.waveCc.fillRect(r,o,this.params.plotPointWidth,i),this.progressCc&&this.progressCc.fillRect(r,o,this.params.plotPointWidth,i)}this.params.plotSeparator&&(this.waveCc.fillStyle=this.params.plotSeparatorColor,this.waveCc.fillRect(0,e,this.width,t)),this.params.plotRangeDisplay&&this.displayPlotRange()},displayPlotRange:function(){var e=this.params.plotRangeFontSize*this.params.pixelRatio,t=this.plotMax.toPrecision(this.params.plotRangePrecision)+" "+this.params.plotRangeUnits,n=this.plotMin.toPrecision(this.params.plotRangePrecision)+" "+this.params.plotRangeUnits;this.waveCc.font=e.toString()+"px "+this.params.plotRangeFontType,this.waveCc.fillText(t,3,e),this.waveCc.fillText(n,3,this.height/2)},calculatePlots:function(){this.plotPoints={},this.calculatePlotTimeEnd();for(var e=[],t=-1,n=0,r=99999999999999,o=0,i=99999999999999,a=this.plotTimeEnd-this.plotTimeStart,s=0;s<this.plotArray.length;s++){var c=this.plotArray[s];if(c.value>n&&(n=c.value),c.value<r&&(r=c.value),c.time>=this.plotTimeStart&&c.time<=this.plotTimeEnd){var u=Math.round(this.width*(c.time-this.plotTimeStart)/a);if(e.push(c.value),u!==t&&e.length>0){var l=this.avg(e);l>o&&(o=l),l<i&&(i=l),this.plotPoints[t]=l,e=[]}t=u}}"whole"==this.params.plotNormalizeTo?(this.plotMin=r,this.plotMax=n):"values"==this.params.plotNormalizeTo?(this.plotMin=this.params.plotMin,this.plotMax=this.params.plotMax):(this.plotMin=i,this.plotMax=o),this.normalizeValues()},normalizeValues:function(){var e={};if("none"!==this.params.plotNormalizeTo){for(var t in this.plotPoints){var n=(this.plotPoints[t]-this.plotMin)/(this.plotMax-this.plotMin);n>1?this.params.plotRangeIgnoreOutliers||(e[t]=1):n<0?this.params.plotRangeIgnoreOutliers||(e[t]=0):e[t]=n}this.plotPoints=e}},loadPlotArrayFromFile:function(t,n,r){void 0===r&&(r="\t");var o=[],i={url:t,responseType:"text"};e.util.ajax(i).on("load",(function(e){if(200==e.currentTarget.status){for(var t=e.currentTarget.responseText.split("\n"),i=0;i<t.length;i++){var a=t[i].split(r);2==a.length&&o.push({time:parseFloat(a[0]),value:parseFloat(a[1])})}n(o)}}))},calculatePlotTimeEnd:function(){void 0!==this.params.plotTimeEnd?this.plotTimeEnd=this.params.plotTimeEnd:this.plotTimeEnd=this.plotArray[this.plotArray.length-1].time},avg:function(e){return e.reduce((function(e,t){return e+t}))/e.length}}),e.util.extend(e.Drawer.SplitWavePointPlot,e.Observer),e.PeakCache={init:function(){this.clearPeakCache()},clearPeakCache:function(){this.peakCacheRanges=[],this.peakCacheLength=-1},addRangeToPeakCache:function(e,t,n){e!=this.peakCacheLength&&(this.clearPeakCache(),this.peakCacheLength=e);for(var r=[],o=0;o<this.peakCacheRanges.length&&this.peakCacheRanges[o]<t;)o++;for(o%2==0&&r.push(t);o<this.peakCacheRanges.length&&this.peakCacheRanges[o]<=n;)r.push(this.peakCacheRanges[o]),o++;o%2==0&&r.push(n),r=r.filter((function(e,t,n){return 0==t?e!=n[t+1]:t==n.length-1?e!=n[t-1]:e!=n[t-1]&&e!=n[t+1]})),this.peakCacheRanges=this.peakCacheRanges.concat(r),this.peakCacheRanges=this.peakCacheRanges.sort((function(e,t){return e-t})).filter((function(e,t,n){return 0==t?e!=n[t+1]:t==n.length-1?e!=n[t-1]:e!=n[t-1]&&e!=n[t+1]}));var i=[];for(o=0;o<r.length;o+=2)i.push([r[o],r[o+1]]);return i},getCacheRanges:function(){for(var e=[],t=0;t<this.peakCacheRanges.length;t+=2)e.push([this.peakCacheRanges[t],this.peakCacheRanges[t+1]]);return e}},function(){var t=function(){var t=document.querySelectorAll("wavesurfer");Array.prototype.forEach.call(t,(function(t){var n=e.util.extend({container:t,backend:"MediaElement",mediaControls:!0},t.dataset);t.style.display="block";var r=e.create(n);if(t.dataset.peaks)var o=JSON.parse(t.dataset.peaks);r.load(t.dataset.url,o)}))};"complete"===document.readyState?t():window.addEventListener("load",t)}(),e}()}.apply(t,[]))||(e.exports=r)},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"updatePageAttribute",(function(){return E})),n.d(r,"updatePageLink",(function(){return O})),n.d(r,"updateSetting",(function(){return S}));var o={};n.r(o),n.d(o,"PageWrapper",(function(){return H})),n.d(o,"PageBackground",(function(){return V})),n.d(o,"PageBackgroundImage",(function(){return Rn})),n.d(o,"PageShadow",(function(){return Dn})),n.d(o,"PageForeground",(function(){return Nn})),n.d(o,"PageContent",(function(){return Hn})),n.d(o,"PageScroller",(function(){return Wn})),n.d(o,"PageHeader",(function(){return Vn})),n.d(o,"PageText",(function(){return qn})),n.d(o,"PageLink",(function(){return Kn})),n.d(o,"PageThumbnail",(function(){return tr})),n.d(o,"LazyLoadedPageThumbnail",(function(){return nr})),n.d(o,"PlayerControls",(function(){return Gr})),n.d(o,"CloseButton",(function(){return $r})),n.d(o,"MenuBar",(function(){return Ur})),n.d(o,"Icon",(function(){return dr})),n.d(o,"editorOnly",(function(){return Kr})),n.d(o,"withVisibilityWatching",(function(){return Vr})),n.d(o,"Draggable",(function(){return _r.a})),n.d(o,"Measure",(function(){return Tr.a}));var i={};n.r(i),n.d(i,"pageAttribute",(function(){return rn})),n.d(i,"pageAttributes",(function(){return on})),n.d(i,"pageIsActive",(function(){return sn})),n.d(i,"pageIsPrepared",(function(){return un})),n.d(i,"currentParentPageAttributes",(function(){return to})),n.d(i,"currentParentChapterAttributes",(function(){return eo})),n.d(i,"t",(function(){return Yr})),n.d(i,"setting",(function(){return no})),n.d(i,"file",(function(){return Xt})),n.d(i,"prop",(function(){return Yn})),n.d(i,"widgetAttributes",(function(){return io})),n.d(i,"editingWidget",(function(){return ao}));n(175),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(79),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(225),n(226),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(291),n(292),n(293),n(294),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(157),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(390),n(164);var a=n(4),s=(n(391),"PAGE_DID_ACTIVATE"),c="PAGE_WILL_ACTIVATE",u="PAGE_DID_DEACTIVATE",l="PAGE_WILL_DEACTIVATE",f="PAGE_DID_PRELOAD",p="PAGE_DID_PREPARE",d="PAGE_SCHEDULE_UNPREPARE",h="PAGE_DID_UNPREPARE",v="PAGE_DID_RESIZE",g="PAGE_ENHANCE",y="PAGE_CLEANUP",m="UPDATE_PAGE_ATTRIBUTE",b="UPDATE_PAGE_LINK";function w(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(h,e)}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.name,r=e.value;return x(m,t,{name:n,value:r})}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pageId,n=e.linkId,r=e.name,o=e.value;return x(b,t,{linkId:n,name:r,value:o})}function x(e,t){return{type:e,meta:{collectionName:"pages",itemId:t},payload:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}}}var P="SETTINGS_LOAD",k="SETTINGS_UPDATE";function _(e){var t=e.settings;return{type:P,payload:{settings:t}}}function S(e){var t=e.property,n=e.value;return{type:k,payload:{property:t,value:n}}}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),e}function A(e){return(A="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)}function I(e){return(I="function"==typeof Symbol&&"symbol"===A(Symbol.iterator)?function(e){return A(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":A(e)})(e)}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?M(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(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}}),t&&N(e,t)}var B=n(0),F=n.n(B),U=n(5),W=n.n(U),H=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){return React.createElement("div",{className:W()("content_and_background",this.props.className)},this.props.children)}}]),t}(B.Component);function V(e){return React.createElement("div",{className:(t=e,n=t.pageHasPlayerControls,W()("page_background",{"page_background-for_page_with_player_controls":n}))},e.children);var t,n}var q=n(169),G=n.n(q);function z(e){return!!G()(e).match(/^\s*$/)}function Y(e){return e.replace(/_[a-z]/g,(function(e){return e[1].toUpperCase()}))}Y.keys=function(e){return Object.keys(e).reduce((function(t,n){return t[Y(n)]=e[n],t}),{})},Y.deep=function(e){return Array.isArray(e)?e.map(Y.deep):"object"==typeof e&&e?Object.keys(e).reduce((function(t,n){return t[Y(n)]=Y.deep(e[n]),t}),{}):e},Y.concat=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).reduce((function(e,t){return e+t[0].toUpperCase()+t.slice(1)}))};var X=Y,$=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object.keys(e).reduce((function(t,r){return"function"==typeof e[r]?t[r]=e[r].apply(e,n):t[r]=e[r],t}),{})}},K=n(60),Q=n(120),J=Symbol("selectorFactory"),Z=Symbol("createSelector");function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return re((function(e,n){var r=t.slice(0,-1).map(ne),o=t.slice(-1)[0],i=Q.createSelector.apply(void 0,Object(K.a)(r).concat([o]));if(e===Z)return i;if(e)return i(e,n);throw"Missing state argument for selector."}))}function te(e,t){return re((function(){return Object(Q.createStructuredSelector)(function(e){return Object.keys(e).reduce((function(t,n){return t[n]=ne(e[n]),t}),{})}((t=e,Object.keys(t).reduce((function(e,n){return"function"==typeof t[n]?e[n]=t[n]:e[n]=function(){return t[n]},e}),{}))));var t}))}function ne(e){return"function"==typeof e&&e[J]?e(Z):e}function re(e){return e[J]=!0,e}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pageflow.browser;return t&&t.has(e)}function ie(e){return new Promise((function(t){var n=new Image;n.onload=t,n.onerror=t,n.src=e}))}var ae=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){var e=this;return F.a.createElement("div",{className:this.cssClass(),style:this.style(),ref:function(t){return e.element=t}},this.renderStructuredData())}},{key:"componentDidUpdate",value:function(e){this.props.loaded&&!e.loaded&&function(e){var t=window.getComputedStyle(e).getPropertyValue("background-image");if(t.match(/^url/))ie(t.replace(/^url\(['"]?/,"").replace(/['"]?\)$/,""))}(this.element)}},{key:"cssClass",value:function(){return W()(this.props.className,this.props.loaded?"load_image":null,this.imageCssClass())}},{key:"imageCssClass",value:function(){return["imageFiles"==this.props.fileCollection?"image":"video_poster",this.props.fileId||"none"].join("_")}},{key:"style",value:function(){return{backgroundPosition:"".concat(this.positionCoordinate(0),"% ").concat(this.positionCoordinate(1),"%")}}},{key:"positionCoordinate",value:function(e){var t=this.props.position[e];return void 0===t?50:t}},{key:"renderStructuredData",value:function(){if(this.props.structuredDataComponent){var e=this.props.structuredDataComponent;return F.a.createElement(e,{fileCollection:this.props.fileCollection,fileId:this.props.fileId})}}}]),t}(F.a.Component);ae.defaultProps={position:[50,50],fileCollection:"imageFiles"};var se=n(17),ce=Object(se.c)({isPreloaded:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case f:return!0;default:return e}},isPrepared:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case p:case c:return!0;case h:return!1;default:return e}},isActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case c:return!0;case l:return!1;default:return e}},isActivated:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case s:return!0;case l:return!1;default:return e}},initialScrollerPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c:return t.payload.position||"top";case l:return null;default:return e}}});var ue="COLLECTION_RESET",le="COLLECTION_ADD",fe="COLLECTION_CHANGE",pe="COLLECTION_REMOVE",de="COLLECTION_ORDER";function he(e){var t=e.collectionName,n=e.items;return{type:ue,meta:{collectionName:t},payload:{collectionName:t,items:n}}}function ve(e){var t=e.collectionName,n=e.attributes,r=e.order;return{type:le,meta:{collectionName:t},payload:{attributes:n,order:r}}}function ge(e){var t=e.collectionName,n=e.attributes;return{type:fe,meta:{collectionName:t},payload:{attributes:n}}}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case le:case fe:return t.payload.attributes;default:return e}}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var we=function(e){var t={};function n(n){return t[n]=t[n]||Object(se.c)({attributes:ye,state:Object(se.c)({custom:e[n]||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},common:ce})}),t[n]}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,o=ye(e.attributes,t);return n(o.type)(r(e,e.attributes,o),t)};function r(e,t,n){return t&&t.type!==n.type?be({},e,{state:be({},e.state,{custom:void 0})}):e}},Ee=n(2),Oe=n.n(Ee),xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;return function(t){if(n){if(!t[n])throw new Error("Cannot select from unknown namespace ".concat(n,"."));t=t[n]}return t[e].items||{}}};function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e,t,n){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,Object(a.a)({},_e(t),n))}function _e(e){return"__".concat(e,"_connectedId")}var Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.id;return function(t,o){var i=r,a=t;if(n){if(!t[n])throw new Error("Cannot select from unknown namespace ".concat(n,"."));a=t[n]}if(!a[e])throw new Error("Cannot select from unknown collection ".concat(e,"."));return"function"==typeof r&&(i=r(t,o)),(i=i||t[_e(e)])?a[e].items[i]:null}}};function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,r=void 0===n?"id":n,o=t.itemReducer,i=void 0===o?ye:o,s={order:[],items:{}};return function(){var t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,c=arguments.length>1?arguments[1]:void 0;if(!c.meta||c.meta.collectionName!=e)return o;switch(c.type){case ue:return{order:c.payload.items.map((function(e){return e[r]})),items:c.payload.items.reduce((function(e,t){return e[t[r]]=i(void 0,ve({collectioName:c.payload.collectioName,attributes:t})),e}),{})};case le:return{order:c.payload.order,items:je({},o.items,Object(a.a)({},c.payload.attributes[r],i(void 0,c)))};case fe:return n=c.payload.attributes[r],{order:o.order,items:je({},o.items,Object(a.a)({},n,i(o.items[n],c)))};case pe:return n=c.payload.attributes[r],delete(t=je({},o.items))[n],{order:c.payload.order,items:t};case de:return{items:o.items,order:c.payload.order};default:if(c.meta.itemId){var u=o.items[c.meta.itemId],l=i(u,c);if(l!==u)return{order:o.order,items:je({},o.items,Object(a.a)({},c.meta.itemId,l))}}return o}}};function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e,t,n){e.meta&&e.meta.collectionName==t&&!e.meta.itemId&&(e.meta=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.meta,{itemId:n}))}function Me(e,t){return e.meta&&e.meta.collectionName==t}function Re(e){return e.meta&&e.meta.itemId}var De=n(3),Ne=n(7);function Le(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Be=n(28),Fe=n.n(Be),Ue=Fe.a.shape({trySubscribe:Fe.a.func.isRequired,tryUnsubscribe:Fe.a.func.isRequired,notifyNestedSubs:Fe.a.func.isRequired,isSubscribed:Fe.a.func.isRequired}),We=Fe.a.shape({subscribe:Fe.a.func.isRequired,dispatch:Fe.a.func.isRequired,getState:Fe.a.func.isRequired});F.a.forwardRef;var He=function(e){var t;void 0===e&&(e="store");var n=e+"Subscription",r=function(t){Le(o,t);var r=o.prototype;function o(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return r.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},r.render=function(){return B.Children.only(this.props.children)},o}(B.Component);return r.propTypes={store:We.isRequired,children:Fe.a.element.isRequired},r.childContextTypes=((t={})[e]=We.isRequired,t[n]=Ue,t),r}();function Ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qe(){return(qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ge(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var ze=n(172),Ye=n.n(ze),Xe=n(96),$e=n.n(Xe),Ke=n(119),Qe=null,Je={notify:function(){}};var Ze=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=Je}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=Qe,e=Qe},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==Qe&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Je)},e}(),et=void 0!==F.a.forwardRef,tt=0,nt={};function rt(){}function ot(e,t){var n,r;void 0===t&&(t={});var o=t,i=o.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=o.methodName,c=void 0===s?"connectAdvanced":s,u=o.renderCountProp,l=void 0===u?void 0:u,f=o.shouldHandleStateChanges,p=void 0===f||f,d=o.storeKey,h=void 0===d?"store":d,v=o.withRef,g=void 0!==v&&v,y=Ge(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),m=h+"Subscription",b=tt++,w=((n={})[h]=We,n[m]=Ue,n),E=((r={})[m]=Ue,r);return function(t){$e()(Object(Ke.isValidElementType)(t),"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",r=a(n),o=qe({},y,{getDisplayName:a,methodName:c,renderCountProp:l,shouldHandleStateChanges:p,storeKey:h,withRef:g,displayName:r,wrappedComponentName:n,WrappedComponent:t}),i=function(n){function i(e,t){var o;return(o=n.call(this,e,t)||this).version=b,o.state={},o.renderCount=0,o.store=e[h]||t[h],o.propsMode=Boolean(e[h]),o.setWrappedInstance=o.setWrappedInstance.bind(Ve(Ve(o))),$e()(o.store,'Could not find "'+h+'" in either the context or props of "'+r+'". Either wrap the root component in a <Provider>, or explicitly pass "'+h+'" as a prop to "'+r+'".'),o.initSelector(),o.initSubscription(),o}Le(i,n);var a=i.prototype;return a.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[m]=t||this.context[m],e},a.componentDidMount=function(){p&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.componentWillReceiveProps=function(e){this.selector.run(e)},a.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=rt,this.store=null,this.selector.run=rt,this.selector.shouldComponentUpdate=!1},a.getWrappedInstance=function(){return $e()(g,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},a.setWrappedInstance=function(e){this.wrappedInstance=e},a.initSelector=function(){var t=e(this.store.dispatch,o);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.initSubscription=function(){if(p){var e=(this.propsMode?this.props:this.context)[m];this.subscription=new Ze(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(nt)):this.notifyNestedSubs()},a.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.addExtraProps=function(e){if(!(g||l||this.propsMode&&this.subscription))return e;var t=qe({},e);return g&&(t.ref=this.setWrappedInstance),l&&(t[l]=this.renderCount++),this.propsMode&&this.subscription&&(t[m]=this.subscription),t},a.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(B.createElement)(t,this.addExtraProps(e.props))},i}(B.Component);return et&&(i.prototype.UNSAFE_componentWillReceiveProps=i.prototype.componentWillReceiveProps,delete i.prototype.componentWillReceiveProps),i.WrappedComponent=t,i.displayName=r,i.childContextTypes=E,i.contextTypes=w,i.propTypes=w,Ye()(i,t)}}var it=Object.prototype.hasOwnProperty;function at(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function st(e,t){if(at(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!it.call(t,n[o])||!at(e[n[o]],t[n[o]]))return!1;return!0}function ct(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function ut(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function lt(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=ut(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=ut(o),o=r(t,n)),o},r}}var ft=[function(e){return"function"==typeof e?lt(e):void 0},function(e){return e?void 0:ct((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?ct((function(t){return Object(se.b)(e,t)})):void 0}];var pt=[function(e){return"function"==typeof e?lt(e):void 0},function(e){return e?void 0:ct((function(){return{}}))}];function dt(e,t,n){return qe({},n,e,t)}var ht=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var c=e(t,n,s);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return dt}}];function vt(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function gt(e,t,n,r,o){var i,a,s,c,u,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function h(o,d){var h,v,g=!f(d,a),y=!l(o,i);return i=o,a=d,g&&y?(s=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):g?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):y?(h=e(i,a),v=!p(h,s),s=h,v&&(u=n(s,c,a)),u):u}return function(o,l){return d?h(o,l):(s=e(i=o,a=l),c=t(r,a),u=n(s,c,a),d=!0,u)}}function yt(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Ge(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),s=r(e,i),c=o(e,i);return(i.pure?gt:vt)(a,s,c,e,i)}function mt(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function bt(e,t){return e===t}var wt,Et,Ot,xt,Pt,kt,_t,St,Tt,jt,Ct,At,It=(Ot=(Et=void 0===wt?{}:wt).connectHOC,xt=void 0===Ot?ot:Ot,Pt=Et.mapStateToPropsFactories,kt=void 0===Pt?pt:Pt,_t=Et.mapDispatchToPropsFactories,St=void 0===_t?ft:_t,Tt=Et.mergePropsFactories,jt=void 0===Tt?ht:Tt,Ct=Et.selectorFactory,At=void 0===Ct?yt:Ct,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,s=o.areStatesEqual,c=void 0===s?bt:s,u=o.areOwnPropsEqual,l=void 0===u?st:u,f=o.areStatePropsEqual,p=void 0===f?st:f,d=o.areMergedPropsEqual,h=void 0===d?st:d,v=Ge(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),g=mt(e,kt,"mapStateToProps"),y=mt(t,St,"mapDispatchToProps"),m=mt(n,jt,"mergeProps");return xt(At,qe({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:g,initMapDispatchToProps:y,initMergeProps:m,pure:a,areStatesEqual:c,areOwnPropsEqual:l,areStatePropsEqual:p,areMergedPropsEqual:h},v))});function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Rt=function(e){var t=function(t){function n(){return T(this,n),R(this,D(n).apply(this,arguments))}return L(n,t),C(n,[{key:"getChildContext",value:function(){return Object(a.a)({},_e(e),this.props.itemId)}},{key:"render",value:function(){return this.props.children}}]),n}(F.a.Component);return t.childContextTypes=Object(a.a)({},_e(e),F.a.PropTypes.number),t};function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Nt=function(e,t,n){var r=X.deep(e.reduce((function(e,n){if("object"==typeof n){var r=Object.keys(n)[0],o=n[r];e[r]=t[o]}else e[n]=t[n];return e}),{}));return n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{},X.deep(n)):r},Lt=function(e){var t=e.collection,n=e.dispatch,r=e.collectionName,o=e.idAttribute,i=void 0===o?"id":o,a=e.attributes,s=void 0===a?["id"]:a,c=e.includeConfiguration,u=void 0!==c&&c;n(he({collectionName:r,items:t.map(f)})),t.on("add",(function(e){e.isNew()||n(ve({collectionName:r,attributes:f(e)}))})),t.on("change:id",(function(e){n(ve({collectionName:r,attributes:f(e),order:t.pluck(i)}))})),t.on("change",(function(e){(function(e){return l.some((function(t){return e.hasChanged(t)}))})(e)&&n(ge({collectionName:r,attributes:f(e)}))})),u&&t.on("change:configuration",(function(e){n(ge({collectionName:r,attributes:f(e)}))})),t.on("remove",(function(e){setTimeout((function(){n(function(e){var t=e.collectionName,n=e.attributes,r=e.order;return{type:pe,meta:{collectionName:t},payload:{attributes:n,order:r}}}({collectionName:r,attributes:f(e),order:t.pluck(i)}))}),0)})),t.on("sort",(function(){n(function(e){var t=e.collectionName,n=e.order;return{type:de,meta:{collectionName:t},payload:{order:n}}}({collectionName:r,order:t.pluck(i)}))}));var l=s.map((function(e){return"object"==typeof e?function(e){return e[Object.keys(e)[0]]}(e):e}));function f(e){return Nt(s,e.attributes,u&&e.configuration.attributes)}},Bt=function(e){var t=e.collection,n=e.collectionName,r=e.dispatch,o=e.attributes,i=void 0===o?["id"]:o,a=e.includeConfiguration,s=void 0!==a&&a;r(he({collectionName:n,items:t.map((function(e){return Nt(i,e,s&&e.configuration)}))}))},Ft=n(50),Ut=n.n(Ft),Wt=function(e){var t=e.collection,n=e.collectionName,r=e.dispatch,o=e.idAttribute,i=e.attributes,a=e.includeConfiguration;(Ut.a.Collection&&t instanceof Ut.a.Collection?Lt:Bt)({collection:t,collectionName:n,dispatch:r,idAttribute:o,attributes:i,includeConfiguration:a})};function Ht(e){var t=e.candidates,n=e.page,r=e.fileExists;return t.find((function(e){if(e.condition&&!function(e,t){var n=t[X(e.attribute)];return e.negated?n!=e.value:n==e.value}(e.condition,n))return!1;var t=Vt(n,e);return r(X(e.collectionName),t)}))}function Vt(e,t){return"id"in t?t.id:e[X(t.attribute)]}function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gt=function(e,t,n){if(!t)return null;if(!n[e])throw new Error("No file url templates found for ".concat(e));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({urls:(t.variants||Object.keys(n[e])).reduce((function(r,o){var i=function(e,t,n,r){var o=r[e][n];if(o)return o.replace(":id_partition",(i=t.id,function(e,t){return e.replace(/./g,(function(e,t,n){return t&&(n.length-t)%3==0?"/"+e:e}))}((a=i,s=9,(Array(s).fill(0).join("")+a).slice(-s))))).replace(":basename",t.basename).replace(":processed_extension",t.processedExtension).replace(":pageflow_hls_qualities",(function(){return function(e){return["low","medium","high","fullhd","4k"].filter((function(t){return e.variants.includes(t)})).join(",")}(t)}));var i,a,s}(e,t,o,n);return i&&(r[o]=i),r}),{})},t)};function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Yt=function(e,t,n){if(!t)return null;if(!n[e])throw new Error("Could not find model type for collection name ".concat(e));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{collectionName:e,modelType:n[e]})};function Xt(e,t){return ee(Se(e,{namespace:"files"})(t),(function(e){return e.fileUrlTemplates}),(function(e){return e.modelTypes}),(function(t,n,r){return Kt(e,t,n,r)}))}function $t(){return ee((function(e){return e.files}),(function(e){return function(t,n){return n&&!!Se(t)({id:n})(e)}}))}function Kt(e,t,n,r){return Yt(e,Gt(e,t,n),r)}function Qt(e){var t=e.page;return function(e,n){var r="function"==typeof t?t(n):t;return r?e.pageTypes[X(r.type)]:null}}function Jt(e){var t=e.page,n=e.variant,r=void 0===n?"medium":n;return ee(t,$t(),(function(e){return e}),(function(e,t,n){if(e){var o=Ht({candidates:Qt({page:e})(n).thumbnailCandidates,page:e,fileExists:t});if(o){var i=Xt(X(o.collectionName),{id:Vt(e,o)});return"image_files"==o.collectionName?i(n).urls[r]:"video_files"==o.collectionName?i(n).urls["poster_".concat(r)]:void 0}}}))}var Zt=Se("pages"),en=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).namespace;return function(n){if(t){if(!n[t])throw new Error("Cannot select from unknown namespace ".concat(t,"."));n=n[t]}var r=n[e];return r.items[r.order[0]]}}("pages");function tn(){return ee(en,(function(e){return e&&e.attributes}))}function nn(e){return ee(en,(function(t){return t&&t.attributes[e]}))}function rn(e,t){return ee(Zt(t),(function(t){return t&&t.attributes[e]}))}function on(e){return ee(Zt(e),(function(e){return e&&e.attributes}))}function an(e,t){return ee(Zt(t),(function(t){return t&&t.state.custom[e]}))}function sn(e){return ln("isActive",e)}function cn(e){return ln("isPreloaded",e)}function un(e){return ln("isPrepared",e)}function ln(e,t){return ee(Zt(t),(function(t){return t&&t.state.common[e]}))}var fn=Oe.a.mark(dn),pn=Oe.a.mark(hn);function dn(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeLatest)([d,p,c],hn);case 2:case"end":return e.stop()}}),fn)}function hn(e){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.type!=d){t.next=5;break}return t.next=3,Object(De.call)(Ne.delay,5e3);case 3:return t.next=5,Object(De.put)(w());case 5:case"end":return t.stop()}}),pn)}var vn=Oe.a.mark(gn);function gn(e){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Ut.a.Collection){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Object(Ne.takeEvery)(m,Oe.a.mark((function t(n){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(mn,{pagesCollection:e,id:Re(n),name:n.payload.name,value:n.payload.value});case 2:case"end":return t.stop()}}),t)})));case 4:return t.next=6,Object(Ne.takeEvery)(b,Oe.a.mark((function t(n){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(yn,{pagesCollection:e,pageId:Re(n),linkId:n.payload.linkId,name:n.payload.name,value:n.payload.value});case 2:case"end":return t.stop()}}),t)})));case 6:case"end":return t.stop()}}),vn)}function yn(e){var t=e.pagesCollection,n=e.pageId,r=e.linkId,o=e.name,i=e.value,a=bn(t,n).pageLinks().get(r);if(!a)throw new Error("Could not find page link with id ".concat(r," in page with perma id ").concat(n,"."));a.set(o,i)}function mn(e){var t=e.pagesCollection,n=e.id,r=e.name,o=e.value;bn(t,n).configuration.set(r,o)}function bn(e,t){var n=e.where({perma_id:t})[0];if(!n)throw new Error("Could not find page with perma id ".concat(t,"."));return n}var wn=function(e){var t=e.pages,n=e.pageTypeSagas;return(Oe.a.mark((function e(){var r;return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(dn(),"t0",1);case 1:return e.delegateYield(gn(t),"t1",2);case 2:return e.next=4,Object(Ne.takeEvery)(g,Oe.a.mark((function e(){var t,o;return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(rn("type"));case 2:if(t=e.sent,!(o=n[t])){e.next=8;break}return e.next=7,Object(De.fork)(o);case 7:r=e.sent;case 8:case"end":return e.stop()}}),e)})));case 4:return e.next=6,Object(Ne.takeEvery)(y,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=3;break}return e.next=3,Object(De.cancel)(r);case 3:case"end":return e.stop()}}),e)})));case 6:case"end":return e.stop()}}),e)})))},En=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"getChildContext",value:function(){return{mediaContext:this.props.mediaContext}}},{key:"render",value:function(){return this.props.children}}]),t}(F.a.Component);En.childContextTypes={mediaContext:F.a.PropTypes.object};var On=n(42),xn=n.n(On),Pn=Rt("pages"),kn=function(e){var t=e.Component,n=e.store,r=e.selectTargetElement,o=void 0===r?function(e){return e[0]}:r;return{scroller:!1,enhance:function(e,r){xn.a.render(F.a.createElement(He,{store:n},F.a.createElement(Pn,{itemId:_n(e)},F.a.createElement(En,{mediaContext:{page:e.page("instance")}},F.a.createElement(t,null)))),o(e)),n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(g,e)}({id:_n(e)}))},preload:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(f,e)}({id:_n(e)}))},prepare:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(p,e)}({id:_n(e)}))},unprepare:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(d,e)}({id:_n(e)}))},activating:function(e,t,r){n.dispatch(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.position;return x(c,t,{position:n})}({id:_n(e),position:r.position}))},activated:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(s,e)}({id:_n(e)}))},deactivating:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(l,e)}({id:_n(e)}))},deactivated:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(u,e)}({id:_n(e)}))},resize:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(v,e)}({id:_n(e)}))},update:function(e,t){pageflow.commonPageCssClasses.updateCommonPageCssClasses(e,t)},cleanup:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return x(y,e)}({id:_n(e)})),xn.a.unmountComponentAtNode(e[0])}}};function _n(e){return parseInt(e.attr("id"),10)}function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tn(e,t){return Object.keys(t).reduce((function(n,r){return"function"==typeof e[r]?n[r]=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e[r].apply(this,o),t[r].apply(this,o)}:n[r]=t[r],n}),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}var jn,Cn,An={init:function(e){var t=e.pages,n=e.dispatch;Wt({collection:t,collectionName:"pages",dispatch:n,idAttribute:"perma_id",attributes:["perma_id",{type:"template"},"chapter_id"],includeConfiguration:!0})},createReducers:function(e){var t=e.pageTypes,n=(void 0===t?[]:t).reduce((function(e,t){var n=t.name,r=t.reducer;return e[n]=r,e}),{});return{pages:Ce("pages",{idAttribute:"permaId",itemReducer:we(n)})}},createMiddleware:function(){return function e(t){var n,r=t.getState,o=t.dispatch,i=(n=[],{subscribe:function(e){return n.push(e),function(){return function(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}(n,e)}},emit:function(e){for(var t=n.slice(),r=0,o=t.length;r<o;r++)t[r](e)}});return e.getState=r,e.dispatch=o,e.subscribe=i.subscribe,function(e){return function(t){var n=e(t);return i.emit(t),n}}}},createSaga:function(e){var t=e.pages,n=e.pageTypes,r=void 0===n?[]:n,o=e.middleware,i=r.reduce((function(e,t){var n=t.name,r=t.saga;return e[n]=r,e}),{});return function(e,t){var n=Oe.a.mark(l),r=Oe.a.mark(f),o=Oe.a.mark(p),i=Oe.a.mark(d),a=Oe.a.mark(h),s=t.itemSaga,c=t.middleware,u=xe(e);return l;function l(){var e;return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={},t.next=3,Object(Ne.takeEvery)([ue,le,pe],f,e);case 3:case"end":return t.stop()}}),n)}function f(e){var t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(De.select)(u);case 2:return t=n.sent,n.delegateYield(p(t,e),"t0",4);case 4:return n.delegateYield(d(t,e),"t1",5);case 5:case"end":return n.stop()}}),r)}function p(e,t){return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object.keys(t).map((function(n){if(!(n in e))return Object(De.cancel)(t[n])}));case 2:case"end":return n.stop()}}),o)}function d(e,t){var n;return Oe.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object.keys(e).map((function(e){if(!t[e])return Object(De.fork)(h,parseInt(e,10))}));case 2:n=r.sent,Object.keys(e).forEach((function(e,r){t[e]||(t[e]=n[r])}));case 4:case"end":return r.stop()}}),i)}function h(t){var n;return Oe.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Object(Ne.runSaga)(s(),{subscribe:function(n){return c.subscribe((function(r){Me(r,e)&&Re(r)!=t||n(r)}))},dispatch:function(n){Ie(n,e,t),c.dispatch(n)},getState:function(){return ke(c.getState(),e,t)}}),r.prev=1,r.next=4,Object(De.call)((function(){return n.done}));case 4:return r.prev=4,n.cancel(),r.finish(4);case 7:case"end":return r.stop()}}),a,null,[[1,,4,7]])}}("pages",{itemSaga:wn({pages:t,pageTypeSagas:i}),middleware:o})}},In=(Cn=_e(jn="pages"),function(e,t,n){var r=It(e?function(t,n){var r=e(ke(t,jn,n[Cn]),n);return"function"==typeof r?function(e,t){return r(ke(e,jn,t[Cn]),t)}:r}:null,t?function(e,n){var r=function(t){return Ie(t,jn,n[Cn]),e(t)};return"function"==typeof t?t(r,n):Object(se.b)(t,r)}:null,n);return function(e){var t=r(e),n=function(e){function n(){return T(this,n),R(this,D(n).apply(this,arguments))}return L(n,e),C(n,[{key:"render",value:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.props,Object(a.a)({},Cn,this.context[Cn]));return F.a.createElement(t,e)}}]),n}(F.a.Component);return n.contextTypes=Object(a.a)({},Cn,F.a.PropTypes.number),n}});var Mn=In(te({loaded:cn()}))(ae),Rn=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){var e=this.props.page,t=X.concat(this.props.propertyNamePrefix,this.props.propertyBaseName);return F.a.createElement(Mn,{fileId:e["".concat(t,"Id")],fileCollection:this.props.fileCollection,position:[e["".concat(t,"X")],e["".concat(t,"Y")]],className:"background background_image",structuredDataComponent:this.props.structuredDataComponent})}}]),t}(F.a.Component);Rn.defaultProps={propertyBaseName:"backgroundImage"};var Dn=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){return F.a.createElement("div",{className:"shadow_wrapper"},F.a.createElement("div",{className:W()("shadow",this.props.className),style:this.style()}))}},{key:"style",value:function(){if("gradientOpacity"in this.props.page)return{opacity:this.props.page.gradientOpacity/100}}}]),t}(F.a.Component),Nn=function(e){return F.a.createElement("div",{className:"content",onTouchStart:e.onInteraction,onMouseMove:e.onInteraction},e.children)},Ln=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){var e=this;return React.createElement("div",{className:"scroller-wrapper",ref:function(t){return e.wrapperElement=t}},React.createElement("div",{ref:function(t){return e.scrollerElement=t},className:W()("scroller",this.props.className),style:this.props.style},React.createElement("div",null,this.props.children)))}},{key:"componentDidMount",value:function(){if("undefined"!=typeof jQuery){var e=jQuery(this.scrollerElement);e.scroller({eventListenerTarget:this.wrapperElement}),this.scroller=e.scroller("instance")}}},{key:"componentDidUpdate",value:function(){this.scroller.refresh()}},{key:"enable",value:function(){this.scroller.enable(),this.scroller.afterAnimationHook()}},{key:"disable",value:function(){this.scroller.disable()}},{key:"resetPosition",value:function(e){this.scroller.resetPosition(e)}}]),t}(B.Component),Bn=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"componentWillReceiveProps",value:function(e){!this.props.enabled&&e.enabled?this.refs.scroller.enable():this.props.enabled&&!e.enabled&&this.refs.scroller.disable(),this.props.initialScrollerPosition!==e.initialScrollerPosition&&e.initialScrollerPosition&&this.refs.scroller.resetPosition({position:e.initialScrollerPosition})}},{key:"getChildContext",value:function(){var e=this;return this._pageScroller=this._pageScroller||{disable:function(){e.refs.scroller.disable()},enable:function(){e.refs.scroller.enable()}},{pageScroller:this._pageScroller}}},{key:"render",value:function(){return F.a.createElement(Ln,{ref:"scroller",className:(e=this.props,W()(e.className,{"scroller-clipped_bottom":!!e.marginBottom})),style:Fn(this.props)},F.a.createElement("div",{className:"content_wrapper"},this.props.children));var e}}]),t}(F.a.Component);function Fn(e){if(e.marginBottom)return{bottom:e.marginBottom}}Bn.childContextTypes={pageScroller:F.a.PropTypes.object};var Un,Wn=In(te({enabled:ln("isActivated",Un),initialScrollerPosition:function(e){return ln("initialScrollerPosition",e)}()}))(Bn),Hn=function(e){return React.createElement(Nn,null,React.createElement(Wn,null,e.children))},Vn=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){return F.a.createElement("h3",{className:"page_header"},F.a.createElement("span",{className:"page_header-tagline"},this.props.page.tagline),F.a.createElement("span",{className:"page_header-title"},this.props.page.title),F.a.createElement("span",{className:"page_header-subtitle"},this.props.page.subtitle))}}]),t}(F.a.Component);function qn(e){return F.a.createElement("div",{className:Gn(e)},F.a.createElement("div",{className:"paragraph",dangerouslySetInnerHTML:zn(e)}),e.children)}function Gn(e){return W()("page_text",Object(a.a)({},"page_text-margin_".concat(e.marginBottom),e.marginBottom!=qn.defaultProps.marginBottom))}function zn(e){return{__html:e.page.text}}function Yn(e){return function(t,n){var r=e.split(".");if(!(r[0]in n))throw new Error("Missing required prop ".concat(r[0],"."));return r.reduce((function(e,t){return e&&e[t]}),n)}}function Xn(e){return function(t,n,r){return oe(e,r)}}qn.defaultProps={marginBottom:"for_scroll_indicator_on_phone"};var $n=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){return F.a.createElement("a",{href:this._href(),className:this.props.className,onClick:this._handleClick.bind(this)},this.props.children)}},{key:"_href",value:function(){return this._targetPage()?"#"+this._targetPage().permaId:"#missing"}},{key:"_handleClick",value:function(e){this._targetPage()&&pageflow.slides.goToByPermaId(this._targetPage().permaId,{transition:this.props.pageLink.pageTransition}),e.preventDefault()}},{key:"_targetPage",value:function(){return this.props.targetPage}}]),t}(F.a.Component),Kn=It(te({targetPage:on({id:Yn("pageLink.targetPageId")})}))($n);function Qn(e){return React.createElement("div",{className:Jn(e)})}function Jn(e){return W()({load_image:e.lazy&&e.loaded},e.className,(t=e.pageType)?"is_".concat(t.name):"is_dangling",function(e){var t=Ht({candidates:Zn(e),page:e.page,fileExists:e.fileExists});if(t)return function(e,t){return[e.lazy?"lazy":null,t.cssClassPrefix,e.imageStyle,Vt(e.page,t)].filter(Boolean).join("_")}(e,t)}(e));var t}function Zn(e){return[er(e)].concat(Object(K.a)((t=e.pageType)?t.thumbnailCandidates:[]));var t}function er(e){return{id:e.customThumbnailId,cssClassPrefix:"pageflow_image_file",collectionName:"image_files"}}Qn.defaultProps={imageStyle:"navigation_thumbnail_large"};var tr=In(te({pageType:Qt({page:function(e){return e.page}}),fileExists:$t()}))(Qn),nr=In(te({loaded:cn(),lazy:!0}))(tr);function rr(e){return W()("add_info_box",{empty:or(e),title_empty:z(e.title),description_empty:z(e.description),"add_info_box-hidden_during_playback":e.hiddenDuringPlayback})}function or(e){return z(e.title)&&z(e.description)}var ir=function(e){return React.createElement("div",{className:rr(e)},function(e){if(!z(e.title))return React.createElement("h3",null,e.title)}(e),function(e){if(!z(e.description))return React.createElement("p",{dangerouslySetInnerHTML:{__html:e.description}})}(e))};function ar(e){return React.createElement("div",{className:W()("controls",e.className),"data-role":"player_controls",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}function sr(e){return F.a.createElement("svg",{className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height,viewBox:"".concat(e.viewBoxLeft," ").concat(e.viewBoxTop," ").concat(e.viewBoxWidth," ").concat(e.viewBoxHeight)},e.children)}sr.defaultProps={width:20,height:20,viewBoxLeft:0,viewBoxTop:0};var cr=sr,ur=function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:24,viewBoxHeight:24}),React.createElement("path",{d:"M21.312,14.056l-1.691-0.98c0,0-0.472-0.216-0.446-1.073c0,0-0.128-0.961,0.478-1.293l1.661-1.014 c0,0,0.546-0.245,0.313-0.818l-0.707-1.598c0,0-0.229-0.625-0.902-0.423l-1.93,0.615c0,0-0.666-0.009-1.078-0.458 c0,0-0.687-0.662-0.476-1.229l0.445-1.924c0,0,0.114-0.563-0.312-0.768l-1.995-0.757c0,0-0.43-0.026-0.562,0.305l-1.122,2.006 c0,0-0.524,0.437-1.248,0.292c0,0-0.752-0.072-0.928-0.253c0,0-1.135-1.916-1.19-2.015c0,0-0.21-0.437-0.65-0.262L7.144,3.176 c0,0-0.367,0.229-0.275,0.559l0.649,2.441c0,0-0.139,0.597-0.561,0.924c0,0-0.745,0.55-1.104,0.483L3.858,7.1 c0,0-0.578-0.207-0.805,0.294L2.306,9.232c0,0-0.143,0.38,0.251,0.616l1.96,1.123c0,0,0.624,0.286,0.441,1.38 c0,0,0.037,0.804-0.756,1.24c-0.793,0.437-1.476,0.875-1.476,0.875s-0.437,0.21-0.249,0.681c0.189,0.471,0.895,1.811,0.895,1.811 s0.131,0.336,0.762,0.091l1.723-0.466c0,0,0.5-0.151,1.031,0.319c0,0,0.741,0.504,0.687,0.919l-0.48,2.433 c0,0-0.157,0.411,0.312,0.676l1.929,0.733c0,0,0.538,0.052,0.68-0.389l0.84-1.532c0,0,0.278-0.669,1.177-0.625 c0,0,0.909-0.081,1.227,0.407l1.101,1.833c0,0,0.199,0.466,0.791,0.188l1.709-0.728c0,0,0.479-0.315,0.333-0.743l-0.533-1.853 c0,0-0.238-0.5,0.259-1.055c0,0,0.533-0.876,1.27-0.701l2.043,0.487c0,0,0.424,0.187,0.793-0.413l0.659-1.639 C21.685,14.901,21.886,14.313,21.312,14.056z M8.542,13.474c-0.824-1.931,0.073-4.166,2.004-4.989 c1.931-0.826,4.165,0.073,4.988,2.004c0.825,1.931-0.073,4.164-2.005,4.989C11.599,16.303,9.365,15.404,8.542,13.474z"}))},lr=function(e){return React.createElement(cr,Object.assign({},e,{viewBoxLeft:5,viewBoxTop:5,viewBoxWidth:145,viewBoxHeight:145}),React.createElement("path",{d:"m80 15c-35.88 0-65 29.12-65 65s29.12 65 65 65 65-29.12 65-65-29.12-65-65-65zm0 10c30.36 0 55 24.64 55 55s-24.64 55-55 55-55-24.64-55-55 24.64-55 55-55z"}),React.createElement("path",{d:"m57.373 18.231a9.3834 9.1153 0 1 1 -18.767 0 9.3834 9.1153 0 1 1 18.767 0z",transform:"matrix(1.1989 0 0 1.2342 21.214 28.75)"}),React.createElement("path",{d:"m90.665 110.96c-0.069 2.73 1.211 3.5 4.327 3.82l5.008 0.1v5.12h-39.073v-5.12l5.503-0.1c3.291-0.1 4.082-1.38 4.327-3.82v-30.813c0.035-4.879-6.296-4.113-10.757-3.968v-5.074l30.665-1.105"}))},fr={Checkmark:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("polygon",{points:"434.442,58.997 195.559,297.881 77.554,179.88 0,257.438 195.559,453.003 512,136.551 "}))},CircleWithNotch:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:1e3,viewBoxHeight:1e3}),React.createElement("path",{d:"M990,497.6c0,66.4-13,129.8-38.8,190.3c-25.9,60.5-60.7,112.7-104.4,156.4C803,888,750.9,922.8,690.3,948.7c-60.5,25.9-124,38.8-190.3,38.8s-129.8-12.9-190.3-38.8S197,888,153.3,844.3c-43.7-43.7-78.5-95.9-104.4-156.4C22.9,627.4,10,563.9,10,497.6c0-80.9,18.4-156.5,55.2-226.7c36.8-70.2,87.2-128,151.2-173.4s135.2-73.8,213.6-85v142.2c-80.6,16.4-147.4,56.7-200.4,120.9c-53,64.2-79.5,138.2-79.6,222c0,47.4,9.3,92.7,27.9,135.9c18.6,43.2,43.4,80.4,74.6,111.6c31.2,31.2,68.4,56.1,111.6,74.6c43.2,18.5,88.5,27.8,135.9,27.9c47.4,0,92.7-9.2,135.9-27.9C679,801,716.2,776.1,747.4,745c31.2-31.1,56-68.3,74.6-111.6c18.6-43.3,27.9-88.6,27.9-135.9c0-83.9-26.5-157.9-79.6-222C717.2,211.3,650.4,171,569.9,154.6V12.5c78.4,11.3,149.6,39.6,213.6,85c64,45.4,114.4,103.2,151.2,173.4c36.8,70.2,55.2,145.7,55.2,226.7H990z"}))},Disk:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:24,viewBoxHeight:24}),React.createElement("circle",{cx:"12",cy:"12",r:"12"}))},Gear:ur,Info:lr,Pause:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("path",{d:"M162.642 148.337h86.034v215.317h-86.034v-215.316z"}),React.createElement("path",{d:"M293.356 148.337h86.002v215.317h-86.002v-215.316z"}))},Play:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("path",{d:"M152.443 136.417l207.114 119.573-207.114 119.593z"}))},Subtitles:function(e){return React.createElement(cr,Object.assign({},e,{viewBoxWidth:1200,viewBoxHeight:1200}),React.createElement("path",{transform:"translate(100,100)",d:"M893.4,599V500H401.1V599H893.4z M893.4,794.5v-98.9H695.5v98.9H893.4z M598.9,794.5v-98.9H106.6v98.9H598.9z M106.6,500V599h197.8V500H106.6z M893.4,106.7c26.1,0,48.7,10,67.9,29.9s28.8,42.9,28.8,69v588.9c0,26.1-9.6,49.1-28.8,69c-19.2,19.9-41.8,29.9-67.9,29.9H106.6c-26.1,0-48.7-10-67.9-29.9c-19.2-19.9-28.8-42.9-28.8-69V205.5c0-26.1,9.6-49.1,28.8-69s41.8-29.9,67.9-29.9H893.4z"}))}},pr={toggleInfoBox:fr.Info,mediaQuality:fr.Gear,textTracks:fr.Subtitles,activeMenuItem:fr.Checkmark,loadingSpinner:fr.CircleWithNotch,play:fr.Play,pause:fr.Pause};function dr(e){var t=pr[e.name];if(!t)throw new Error('No icon registered for "'.concat(e.name,'".'));return F.a.createElement(t,e)}var hr=function(e){return React.createElement("div",{className:"vjs-loading-spinner"},React.createElement(dr,{name:"loadingSpinner"}))},vr=function(e){return In(te({id:ee(sn(),(function(e){return e?"firstContent":void 0}))}))(e)};var gr=vr((function(e){return React.createElement("a",{className:yr(e),href:"#",tabIndex:"4",id:e.id,title:e.title,onClick:mr(e)},function(e){return e.iconName?React.createElement(dr,{name:e.iconName}):React.createElement("span",null)}(e))}));function yr(e){return W()("vjs-play-control",{"vjs-playing":e.isPlaying},{"player_controls-play_button-custom_icon":!!e.iconName})}function mr(e){return function(t){e.onClick&&e.onClick(t),t.preventDefault()}}function br(e){return React.createElement("div",{className:W()(e.className)},function(e){if(isNaN(e))return wr;var t=Math.floor(e)%60,n=Math.floor(e/60)%60,r=Math.floor(e/60/60);return r>0?"".concat(r,":").concat(Er(n),":").concat(Er(t)):"".concat(n,":").concat(Er(t))}(e.value))}var wr="-:--";function Er(e){return e<10?"0"+e:e}br.defaultProps={value:0};var Or=function(e){return React.createElement(br,{className:"vjs-current-time",value:e.currentTime})},xr=function(e){return React.createElement("div",{className:"vjs-time-divider"},"/")},Pr=function(e){return React.createElement(br,{className:"vjs-duration",value:e.duration})},kr=n(95),_r=n.n(kr),Sr=n(32),Tr=n.n(Sr),jr=37,Cr=39,Ar=function(e){function t(e,n){var r;return T(this,t),(r=R(this,D(t).call(this,e,n))).state={handleWidth:null,progressHolderWidth:null},r.measureProgressHolder=function(e){var t=e.width;r.setState({progressHolderWidth:t})},r.measureHandle=function(e){var t=e.width;r.setState({handleWidth:t})},r.handleStop=function(e,t){r.props.onSeek&&r.props.onSeek(r.positionToTime(t.x))},r.handleDrag=function(e,t){r.props.onScrub&&r.props.onScrub(r.positionToTime(t.x))},r.handleKeyDown=function(e){var t;e.keyCode==jr?t=Math.max(0,r.props.currentTime-1):e.keyCode==Cr&&(t=Math.min(r.props.currentTime+1,r.props.duration||1/0)),r.prop.onSeek&&r.props.onSeek(t)},r}return L(t,e),C(t,[{key:"positionToTime",value:function(e){return this.props.duration&&this.state.progressHolderWidth?Math.max(0,Math.min(1,e/this.state.progressHolderWidth))*this.props.duration:0}},{key:"render",value:function(){return F.a.createElement("div",{className:"vjs-progress-control",tabIndex:"4",onKeyDown:this.handleKeyDown},F.a.createElement(Tr.a,{whitelist:["width"],onMeasure:this.measureProgressHolder},F.a.createElement(kr.DraggableCore,{onStart:this.handleDrag,onDrag:this.handleDrag,onStop:this.handleStop},F.a.createElement("div",{className:"vjs-progress-holder"},F.a.createElement("div",{className:"vjs-load-progress",style:{width:Ir(this.loadProgress())}}),F.a.createElement("div",{className:"vjs-play-progress",style:{width:Ir(this.playProgress())}}),F.a.createElement(Tr.a,{whitelist:["width"],onMeasure:this.measureHandle},F.a.createElement("div",{className:"vjs-seek-handle",style:{left:this.handlePosition()}}))))))}},{key:"handlePosition",value:function(){return this.state.handleWidth&&this.state.progressHolderWidth?(this.state.progressHolderWidth-this.state.handleWidth)*this.playProgress():Ir(this.playProgress())}},{key:"loadProgress",value:function(){return this.props.duration>0?this.props.bufferedEnd/this.props.duration:0}},{key:"playProgress",value:function(){return this.props.duration>0?this.props.currentTime/this.props.duration:0}}]),t}(F.a.Component);function Ir(e){return e>0?100*e+"%":0}Ar.defaultProps={currentTime:0,bufferedEnd:0};var Mr=function(e){function t(e,n){var r;return T(this,t),(r=R(this,D(t).call(this,e,n))).state={subMenuVisible:!1},r.onLinkClick=function(e){e.preventDefault(),r.props.subMenuItems.length>0&&r.setState({subMenuVisible:!0}),r.props.onClick&&r.props.onClick()},r.onMouseEnter=function(){r.props.subMenuItems.length>0&&r.setState({subMenuVisible:!0}),r.props.onMouseEnter&&r.props.onMouseEnter()},r.onMouseLeave=function(){r.closeMenu(),r.props.onMouseEnter&&r.props.onMouseLeave()},r.onFocus=function(){clearTimeout(r.closeMenuTimeout)},r.onBlur=function(){clearTimeout(r.closeMenuTimeout),r.closeMenuTimeout=setTimeout((function(){r.closeMenu()}),100)},r.closeMenu=function(){r.setState({subMenuVisible:!1})},r}return L(t,React.Component),C(t,[{key:"render",value:function(){var e=this,t=this.props;return React.createElement("div",{className:Rr(t,this.state.subMenuVisible),ref:function(t){return e.wrapper=t},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,onBlur:this.onBlur},React.createElement("a",{className:Lr(t,"link"),href:"#",tabIndex:"4",title:t.title,onClick:this.onLinkClick},React.createElement(dr,{className:Lr(t,"icon"),name:t.iconName})),function(e,t){if(e.subMenuItems.length>0)return React.createElement("ul",{className:"player_controls-menu_bar_button_sub_menu"},function(e,t){return e.subMenuItems.map((function(n){return React.createElement("li",{className:Dr(n),key:n.value},React.createElement("a",{className:"player_controls-menu_bar_button_sub_menu_item_link",href:"#",tabIndex:"4",onClick:Nr(e,n.value,t)},function(e){if(e.active)return React.createElement(dr,{className:"player_controls-menu_bar_button_sub_menu_item_icon",name:"activeMenuItem"})}(n),n.label,function(e,t){if(t.annotation)return React.createElement("span",{className:Lr(e,"sub_menu_item_annotation")},t.annotation)}(e,n)))}))}(e,t))}(t,this.closeMenu))}}]),t}();function Rr(e,t){return W()({"player_controls-menu_bar_button-sub_menu_visible":t},Lr(e))}function Dr(e){return W()("player_controls-menu_bar_button_sub_menu_item",{"player_controls-menu_bar_button_sub_menu_item-active":e.active})}function Nr(e,t,n){return function(r){r.preventDefault(),n(),e.onSubMenuItemClick&&e.onSubMenuItemClick(t)}}function Lr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return W()(["player_controls-menu_bar_button"].concat(n).join("_"),[e.className].concat(n).join("_"))}function Br(e){return e.items.length<2?React.createElement("noscript",null):React.createElement(Mr,{className:"player_controls-quality_menu_button",title:e.buttonTitle,iconName:"mediaQuality",subMenuItems:e.items,onSubMenuItemClick:e.onItemClick})}function Fr(e){return e.items.length<2?React.createElement("noscript",null):React.createElement(Mr,{className:"player_controls-text_tracks_menu_button",title:e.buttonTitle,iconName:"textTracks",subMenuItems:e.items,onSubMenuItemClick:e.onItemClick})}function Ur(e){return React.createElement("div",{className:Wr(e)},function(e){return e.additionalButtons.map((function(t){return React.createElement(Mr,{title:t.label,iconName:t.iconName,className:t.className,key:t.name,onClick:Hr(e.onAdditionalButtonClick,t.name),onMouseEnter:Hr(e.onAdditionalButtonMouseEnter,t.name),onMouseLeave:Hr(e.onAdditionalButtonMouseLeave,t.name)})}))}(e),React.createElement(Fr,{buttonTitle:e.textTracksMenuButtonTitle,items:e.textTracksMenuItems,onItemClick:e.onTextTracksMenuItemClick}),React.createElement(Br,{buttonTitle:e.qualityMenuButtonTitle,items:e.qualityMenuItems,onItemClick:e.onQualityMenuItemClick}))}function Wr(e){return W()(e.className,"player_controls-menu_bar",{"player_controls-menu_bar-hidden_on_phone":e.hiddenOnPhone,"player_controls-menu_bar-stand_alone":e.standAlone,"player_controls-menu_bar-inverted":e.inverted})}function Hr(e,t){if(e)return function(){return e(t)}}function Vr(e){return function(t){function n(e){var t;return T(this,n),(t=R(this,D(n).call(this,e))).checkVisibility=function(){var e=window.getComputedStyle(t.element);t.lastVisibility!=e.visibility&&("visible"==e.visibility&&"none"!=e.display?t.props.onVisible&&t.props.onVisible():t.props.onHidden&&t.props.onHidden()),t.lastVisibility=e.visibility},t}return L(n,t),C(n,[{key:"componentDidMount",value:function(){this.element=xn.a.findDOMNode(this),this.updateInterval()}},{key:"componentDidUpdate",value:function(){this.updateInterval()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval),this.interval=null,this.element=null}},{key:"updateInterval",value:function(){this.props.watchVisibility&&!this.interval?this.interval=setInterval(this.checkVisibility,50):!this.props.watchVisibility&&this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"render",value:function(){return F.a.createElement(e,this.props)}}]),n}(F.a.Component)}function qr(e){return W()("vjs-control-bar",{with_quality_menu_present:e.qualityMenuItems&&e.qualityMenuItems.length>=2,with_text_tracks_menu_present:e.textTracksMenuItems&&e.textTracksMenuItems.length>=2})}Mr.defaultProps={subMenuItems:[]},Br.defaultProps={items:[]},Fr.defaultProps={items:[]},Ur.defaultProps={additionalButtons:[],standAlone:!0};var Gr=Vr((function(e){return F.a.createElement(ar,e,F.a.createElement("span",{className:"hint"},e.hint),F.a.createElement(ir,Object.assign({},e.infoBox,{hiddenDuringPlayback:e.infoBoxHiddenDuringPlayback})),F.a.createElement("div",{className:qr(e)},function(e){if(e.isLoading)return F.a.createElement(hr,e)}(e),F.a.createElement("div",{className:"play_button"},F.a.createElement(gr,{title:e.playButtonTitle,iconName:e.playButtonIconName,isPlaying:e.isPlaying,onClick:e.onPlayButtonClick})),function(e){if(e.hasProgress)return F.a.createElement("div",{className:"player_controls-progress"},F.a.createElement(Or,e),F.a.createElement(xr,null),F.a.createElement(Pr,e),F.a.createElement(Ar,e))}(e),F.a.createElement("div",{className:"control_bar_text"},e.controlBarText)),F.a.createElement(Ur,{standAlone:!1,additionalButtons:e.additionalMenuBarButtons,onAdditionalButtonClick:e.onAdditionalButtonClick,onAdditionalButtonMouseEnter:e.onAdditionalButtonMouseEnter,onAdditionalButtonMouseLeave:e.onAdditionalButtonMouseLeave,qualityMenuButtonTitle:e.qualityMenuButtonTitle,qualityMenuItems:e.qualityMenuItems,onQualityMenuItemClick:e.onQualityMenuItemClick,textTracksMenuButtonTitle:e.textTracksMenuButtonTitle,textTracksMenuItems:e.textTracksMenuItems,onTextTracksMenuItemClick:e.onTextTracksMenuItemClick}))}));function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Yr=ee(Xr,(function(e){return function(t,n){return I18n.t(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({locale:e},n))}}));function Xr(e){return e.i18n.locale}var $r=It(te({t:Yr}))((function(e){return React.createElement("div",{className:"close_button text_hidden_only",tabIndex:"4",title:e.t("pageflow.public.close"),onClick:e.onClick},React.createElement("div",{className:"label"},e.t("pageflow.public.close")))})),Kr=function(e){return PAGEFLOW_EDITOR?e:function(){return!1}},Qr=Se("chapters");var Jr=Qr,Zr=Se("storylines");function eo(){return function(e,t){var n=to()(e,t);return n?Jr({id:n.chapterId})(e,t):null}}function to(){return function(e,t){return on({id:function(e,t){return ee(Zr(t),(function(t){return t&&t[e]}))}("parentPagePermaId",{id:function(e,t){return ee(Qr(t),(function(t){return t&&t[e]}))}("storylineId",{id:rn("chapterId",{id:e.currentPageId})(e,t)})(e,t)})(e,t)})(e,t)}}function no(e){var t=e.property;return function(e){return e.settings[t]}}var ro=Se("widgets");function oo(e,t){var n=t.role;return ee(ro({id:n}),(function(t){return t&&t[e]}))}function io(e){var t=e.role;return ee(ro({id:t}),(function(e){return e}))}function ao(e){var t=e.role;return ee(ro({id:t}),(function(e){return!(!e||!e.editing)}))}var so=function(e){return W()({is_playing:e.shouldPlay,is_playing_delayed:e.hasBeenPlayingJustNow,is_paused:!e.shouldPlay})},co="MEDIA_TOGGLE_PLAYING",uo="MEDIA_PLAY",lo="MEDIA_PLAY_AND_FADE_IN",fo="MEDIA_PAUSE",po="MEDIA_FADE_OUT_AND_PAUSE",ho="CHANGE_VOLUME_FACTOR",vo="MEDIA_PLAY_FAILED",go="MEDIA_PLAYING_MUTED",yo="MEDIA_SCRUB_TO",mo="MEDIA_SEEK_TO",bo="MEDIA_PREBUFFER",wo="MEDIA_PREBUFFERED",Eo="MEDIA_ABORT_PREBUFFERING",Oo="MEDIA_BUFFER_UNDERRUN",xo="MEDIA_BUFFER_UNDERRUN_CONTINUE",Po="MEDIA_META_DATA_LOADED",ko="MEDIA_PROGRESS",_o="MEDIA_PLAYING",So="MEDIA_PAUSED",To="MEDIA_TIME_UPDATE",jo="MEDIA_ENDED",Co="MEDIA_SEEKING",Ao="MEDIA_SEEKED",Io="MEDIA_WAITING",Mo="MEDIA_HAS_NOT_BEEN_PLAYING_FOR_A_MOMENT",Ro="MEDIA_USER_INTERACTION",Do="MEDIA_USER_IDLE",No="MEDIA_CONTROLS_ENTERED",Lo="MEDIA_CONTROLS_LEFT",Bo="MEDIA_FOCUS_ENTERED_CONTROLS",Fo="MEDIA_FOCUS_LEFT_CONTROLS",Uo="MEDIA_CONTROLS_HIDDEN",Wo="SHOW_INFO_BOX_DURING_PLAYBACK",Ho="HIDE_INFO_BOX_DURING_PLAYBACK",Vo="TOGGLE_INFO_BOX_DURING_PLAYBACK",qo="MEDIA_SAVE_MEDIA_ELEMENT_ID",Go="MEDIA_DISCARD_MEDIA_ELEMENT_ID";function zo(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope,t=void 0===e?"default":e;return{togglePlaying:function(){return n(co)},play:function(){return n(uo)},playAndFadeIn:function(e){var t=e.fadeDuration;return n(lo,{fadeDuration:t})},pause:function(){return n(fo)},fadeOutAndPause:function(e){var t=e.fadeDuration;return n(po,{fadeDuration:t})},changeVolumeFactor:function(e,t){var r=t.fadeDuration;return n(ho,{volumeFactor:e,fadeDuration:r})},playFailed:function(){return n(vo)},playingMuted:function(){return n(go)},scrubTo:function(e){return n(yo,{time:e})},seekTo:function(e){return n(mo,{time:e})},prebuffer:function(){return n(bo)},prebuffered:function(){return n(wo)},abortPrebuffering:function(){return n(Eo)},bufferUnderrun:function(){return n(Oo)},bufferUnderrunContinue:function(){return n(xo)},playing:function(){return n(_o)},paused:function(){return n(So)},timeUpdate:function(e){var t=e.currentTime,r=e.duration;return n(To,{currentTime:t,duration:r})},metaDataLoaded:function(e){var t=e.currentTime,r=e.duration;return n(Po,{currentTime:t,duration:r})},progress:function(e){var t=e.bufferedEnd;return n(ko,{bufferedEnd:t})},ended:function(){return n(jo)},seeking:function(){return n(Co)},seeked:function(){return n(Ao)},waiting:function(){return n(Io)},hasNotBeenPlayingForAMoment:function(e){return n(Mo)},userInteraction:function(){return n(Ro)},userIdle:function(){return n(Do)},controlsEntered:function(){return n(No)},controlsLeft:function(){return n(Lo)},focusEnteredControls:function(){return n(Bo)},focusLeftControls:function(){return n(Fo)},controlsHidden:function(){return n(Uo)},showInfoBoxDuringPlayback:function(){return n(Wo)},hideInfoBoxDuringPlayback:function(){return n(Ho)},toggleInfoBoxDuringPlayback:function(){return n(Vo)},saveMediaElementId:function(e){return n(qo,{id:e})},discardMediaElementId:function(){return n(Go)}};function n(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:e,meta:{collectionName:"pages",mediaScope:t},payload:n}}}function Yo(e){return S({property:"textTrack",value:e?{srclang:e.srclang,kind:e.kind}:{}})}function Xo(e){return e.backgroundMedia.muted}function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ko(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope;return an("media.".concat(void 0===e?"default":e))}function Qo(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope,t=void 0===e?"default":e;return function(e){return Object(se.b)(zo({scope:t}),e)}}function Jo(e){var t=e.file,n=e.defaultTextTrackFileId,r=void 0===n?function(){}:n;return ee(no({property:"textTrack"}),no({property:"volume"}),Yr,Xr,function(e,t){var n=t.parent;return ee(xe(e,{namespace:"files"}),n,(function(e){return e.fileUrlTemplates}),(function(e){return e.modelTypes}),(function(t,n,r,o){return n?Object.keys(t).reduce((function(i,a){var s=t[a];return s.id&&s.parentFileId==n.id&&s.parentFileModelType==n.modelType&&i.push(Kt(e,s,r,o)),i}),[]):[]}))}("textTrackFiles",{parent:t}),r,(function(e,t,n,r,o,i){e=e||{};var s=o.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({displayLabel:Zo(e,n)},e)})),c=function(e,t,n,r){if(t){var o=e.find((function(e){return e.permaId==t}));if(o)return o}var i=e.find((function(e){return"subtitles"==e.kind&&e.srclang==n})),a=0==r&&e.find((function(e){return"captions"==e.kind}));return i||a}(s,i,r,t);return{files:s.sort((function(e,t){return(e.displayLabel||"").localeCompare(t.displayLabel||"")})),autoFile:c,activeFileId:ei(s,c,e),mode:"off"==e.kind?"off":e.kind?"user":"auto"}}))}function Zo(e,t){return e.label||t("pageflow.public.languages."+e.srclang||!1,{defaultValue:t("pageflow.public.languages.unknown")})}function ei(e,t,n){if("off"==n.kind)return null;var r=e.find((function(e){return e.srclang==n.srclang&&e.kind==n.kind}));return r?r.id:t&&t.id}function ti(e){return ee(e.autoplayWhenBackgroundMediaMuted,ni({id:e.id}),Xo,(function(e,t,n){return t&&(!n||e)}))}function ni(e){return ee(rn("autoplay",e),(function(e){return!1!==e}))}function ri(e){var t=e.playerActions,n=e.playerState,r=e.playerControlsComponent;return F.a.createElement(r,Object.assign({hasProgress:!0,controlBarText:e.controlBarText,isLoading:n.isLoading||n.bufferUnderrun,isPlaying:n.shouldPlay,currentTime:void 0!==n.scrubbingAt?n.scrubbingAt:n.currentTime,bufferedEnd:n.bufferedEnd,duration:n.duration,mediaElementId:n.mediaElementId,onPlayButtonClick:t.togglePlaying,onScrub:t.scrubTo,onSeek:t.seekTo,onMouseEnter:t.controlsEntered,onMouseLeave:t.controlsLeft,onFocus:t.focusEnteredControls,onBlur:t.focusLeftControls,watchVisibility:n.isPlaying,onHidden:t.controlsHidden,additionalMenuBarButtons:ai(e),infoBoxHiddenDuringPlayback:si(e),onAdditionalButtonMouseEnter:t.showInfoBoxDuringPlayback,onAdditionalButtonMouseLeave:t.hideInfoBoxDuringPlayback,onAdditionalButtonClick:t.toggleInfoBoxDuringPlayback,qualityMenuItems:ui(e.qualities,e.file,e.activeQuality,e.t),qualityMenuButtonTitle:e.t("pageflow.public.media_quality"),onQualityMenuItemClick:e.updateVideoQualitySetting,textTracksMenuItems:ci(e.textTracks,e.t),textTracksMenuButtonTitle:e.t("pageflow.public.text_tracks"),onTextTracksMenuItemClick:function(t){"off"==t?e.updateTextTrackSettings({kind:"off"}):e.updateTextTrackSettings(e.textTracks.files.find((function(e){return e.id==t})))}},e,{className:ii(n)}))}ri.defaultProps={playerControlsComponent:Gr,qualities:[],textTracks:{files:[]}};var oi=It(te({activeQuality:no({property:"videoQuality"}),t:Yr}),{updateTextTrackSettings:Yo,updateVideoQualitySetting:function(e){return S({property:"videoQuality",value:e})}})(ri);function ii(e){return W()(so(e))}function ai(e){var t=e.t;return or(e.infoBox)?[]:[{name:"toggleInfoBox",className:"player_controls-toggle_info_box_menu_button",label:t("pageflow.public.toggle_info_box"),iconName:"toggleInfoBox"}]}function si(e){var t=e.playerState;return void 0===t.infoBoxHiddenDuringPlayback?!!e.textTracks.activeFileId:t.infoBoxHiddenDuringPlayback}function ci(e,t){if(!e.files.length)return[];var n={value:"off",label:t("pageflow.public.text_track_modes.none"),active:"off"==e.mode};return[{value:"auto",label:e.autoFile?t("pageflow.public.text_track_modes.auto",{label:e.autoFile.displayLabel}):t("pageflow.public.text_track_modes.auto_off"),active:"auto"==e.mode},n].concat(e.files.map((function(t){return{value:t.id,label:t.displayLabel,active:"user"==e.mode&&t.id==e.activeFileId}})))}function ui(e,t,n,r){return n=n||"auto",function(e,t){if(!t)return[];return e.filter((function(e){return!!t.urls[e]||"auto"==e}))}(e,t).map((function(e){return{value:e,label:r("pageflow.public.video_qualities.labels.".concat(e)),annotation:r("pageflow.public.video_qualities.annotations.".concat(e),{defaultValue:""}),active:e==n}}))}function li(e){return function(t){return t.entry[e]}}function fi(e){var t=e.entrySlug,n=e.file,r="videoFiles"==n.collectionName?"videos":"audio";return"/".concat(t,"/").concat(r,"/").concat(n.id)}var pi=It(te({t:Yr,entrySlug:li("slug")}))((function(e){return e.file?React.createElement("p",{className:"non_js_video"},React.createElement("a",{href:fi(e),target:"_blank"},(n=(t=e).file,r=t.t,o="videoFiles"==n.collectionName?"video":"audio",r("pageflow.public.open_".concat(o))))):React.createElement("noscript",null);var t,n,r,o})),di=ee(an("media.pageScrollerMargin"),(function(e){return e&&e.bottom}));function hi(e){var t=e.page,n=e.playerState,r={title:t.additionalTitle,description:t.additionalDescription};return React.createElement(H,{className:yi(e.className,gi(e),e.textTracks,n)},React.createElement(V,{pageHasPlayerControls:!0},e.children,React.createElement(Dn,{page:t,className:so(n)})),React.createElement(Nn,{onInteraction:function(){return n.userIsIdle&&e.playerActions.userInteraction()},classNames:so(n)},React.createElement(oi,{file:e.file,textTracks:e.textTracks,playerState:n,playerActions:e.playerActions,qualities:e.qualities,controlBarText:e.controlBarText,infoBox:r,playerControlsComponent:e.playerControlsComponent}),React.createElement(Wn,{className:so(n),marginBottom:e.dynamicPageScrollerMargin&&e.pageScrollerMarginBottom},React.createElement(Vn,{page:t}),React.createElement(na,{page:t}),React.createElement(qn,{page:t,marginBottom:e.dynamicPageScrollerMargin?"none":"for_player_controls"},React.createElement(pi,{file:e.file})))))}hi.defaultProps={playerControlsCanOverlapPageText:!0};var vi=In(te({pageScrollerMarginBottom:di,textTracks:Jo({file:Yn("file"),defaultTextTrackFileId:Yn("page.defaultTextTrackFileId")}),hasAutoplaySupport:Xn("autoplay support"),shouldAutoplay:ti({id:Yn("page.permaId"),autoplayWhenBackgroundMediaMuted:Yn("autoplayWhenBackgroundMediaMuted")})}))(hi);function gi(e){return e.shouldAutoplay&&e.hasAutoplaySupport&&!e.playerState.playFailed}function yi(e,t,n,r){return W()(e,{has_text_tracks:!!n.activeFileId,is_idle:r.isPlaying&&r.userIsIdle,is_control_bar_focused:r.focusInsideControls,is_control_bar_hovered:r.userHoveringControls,is_control_bar_hidden:r.controlsHidden,unplayed:r.unplayed&&!t,should_play:r.shouldPlay,has_played:r.hasPlayed})}var mi=In(te({pageIsPrepared:un(),pageIsPreloaded:cn(),atmoDuringPlayback:rn("atmoDuringPlayback"),defaultTextTrackFileId:rn("defaultTextTrackFileId")}))((function(e){if(e.file&&e.file.isReady){var t=e.structuredDataComponent||function(){return null};return React.createElement("div",{style:{height:"100%"}},function(e){if(e.pageIsPrepared){var t=e.playerComponent;return React.createElement(t,{file:e.file,posterImageFile:e.posterImageFile,playerState:e.playerState,playerActions:e.playerActions,atmoDuringPlayback:e.atmoDuringPlayback,fit:e.fit,position:e.position,loop:e.loop,muted:e.muted,playsInline:e.playsInline,defaultTextTrackFileId:e.defaultTextTrackFileId,textTracksEnabled:e.textTracksEnabled,textTrackPosition:e.textTrackPosition})}if(e.preloadComponent&&e.pageIsPreloaded){var n=e.preloadComponent;return React.createElement(n,{file:e.file,posterImageFile:e.posterImageFile})}return React.createElement("noscript",null)}(e),React.createElement(t,{file:e.file}))}return React.createElement("noscript",null)})),bi=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){var e=this;return F.a.createElement("div",{ref:function(t){return e.containerElement=t},dangerouslySetInnerHTML:this.mediaTagHTML()})}},{key:"shouldComponentUpdate",value:function(e){return e.tagName!==this.props.tagName||e.poster!==this.props.poster||e.loop!==this.props.loop||e.muted!==this.props.muted||e.playsInline!==this.props.playsInline||!wi(e.sources,this.props.sources)||!wi(e.tracks,this.props.tracks)}},{key:"componentDidMount",value:function(){this.triggerOnSetup()}},{key:"componentWillUpdate",value:function(){this.triggerOnDispose()}},{key:"componentDidUpdate",value:function(){this.triggerOnSetup()}},{key:"componentWillUnmount",value:function(){this.triggerOnDispose()}},{key:"triggerOnSetup",value:function(){this.props.onSetup&&this.props.onSetup(this.containerElement.firstElementChild)}},{key:"triggerOnDispose",value:function(){this.props.onDispose&&this.props.onDispose()}},{key:"mediaTagHTML",value:function(){var e=document.createElement("div"),t=document.createElement(this.props.tagName);return t.setAttribute("preload","none"),t.setAttribute("crossorigin","anonymous"),t.setAttribute("alt",this.props.alt),this.props.poster&&t.setAttribute("data-poster",this.props.poster),this.props.loop&&t.setAttribute("loop","true"),this.props.muted&&t.setAttribute("muted","true"),this.props.playsInline&&t.setAttribute("playsinline","true"),this.props.sources.forEach((function(e){var n=document.createElement("source");n.setAttribute("src",e.src),n.setAttribute("type",e.type),t.appendChild(n)})),this.props.tracks.forEach((function(e){var n=document.createElement("track");n.setAttribute("src",e.src),n.setAttribute("id",e.id),n.setAttribute("kind",e.kind),n.setAttribute("srclang",e.srclang),n.setAttribute("label",e.label),t.appendChild(n)})),e.appendChild(t),{__html:e.innerHTML.replace('preload="none"','preload="auto"')}}}]),t}(F.a.Component);function wi(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(Object.keys(r).length!==Object.keys(o).length)return!1;for(var i in r)if(r[i]!==o[i])return!1}return!0}function Ei(e,t){t.emulateTextTracksDisplay;var n=t.atmoSettings,r=t.mediaContext,o=t.playsInline,i="audio"==e.tagName.toLowerCase(),a=new pageflow.VideoPlayer(e,{controlBar:!1,loadingSpinner:!1,bigPlayButton:!1,errorDisplay:!1,textTrackSettings:!1,poster:e.getAttribute("data-poster"),html5:{nativeCaptions:!i&&pageflow.browser.has("iphone platform")},bufferUnderrunWaiting:!0,useSlimPlayerControlsDuringPhonePlayback:!o&&!i,fullscreenDuringPhonePlayback:!o&&!i,fallbackToMutedAutoplay:!i,volumeFading:!0,hooks:pageflow.atmo.createMediaPlayerHooks(n),mediaEvents:!0,context:r});return a.textTrackSettings={getValues:function(){return{}}},a.addClass("video-js"),a.addClass("player"),a}bi.defaultProps={tagName:"video",sources:[],tracks:[]};var Oi=function(e,t){e.on("loadedmetadata",(function(){return t.metaDataLoaded({currentTime:e.currentTime(),duration:e.duration()})})),e.on("progress",(function(){return t.progress({bufferedEnd:e.bufferedEnd()})})),e.on("play",t.playing),e.on("playfailed",t.playFailed),e.on("playmuted",t.playingMuted),e.on("pause",t.paused),e.on("waiting",t.waiting),e.on("seeking",t.seeking),e.on("seeked",t.seeked),e.on("bufferunderrun",t.bufferUnderrun),e.on("bufferunderruncontinue",t.bufferUnderrunContinue),e.on("timeupdate",(function(){return t.timeUpdate({currentTime:e.currentTime(),duration:e.duration()})})),e.on("ended",t.ended)};function xi(e,t,n){e.one("timeupdate",(function(){Pi(e,null,t(),n())}))}function Pi(e,t,n,r){t!=n&&function(e,t){[].slice.call(e.textTracks()).forEach((function(e){e.id=="text_track_file_".concat(t)?e.mode="showing":e.mode="disabled"}))}(e,n),function(e,t){e.updateCueLineSettings(t)}(e,r)}function ki(e){return function(t){return t.features.indexOf(e)>=0}}var _i,Si=function(e){var t=e.tagName,n=e.sources,r=e.poster,o=void 0===r?function(){}:r,i=e.emulateTextTracksDisplay,a=void 0!==i&&i,s=e.createPlayer,c=void 0===s?Ei:s,u=function(e){function r(e,n){var o;return T(this,r),(o=R(this,D(r).call(this,e,n))).displaysTextTracksInNativePlayer=o.props.hasNativeVideoPlayer&&"video"==t,o.initiallyMuted=o.props.muted,o.updateAtmoSettings(),o.setupMediaTag=function(t){o.player=c(t,{emulateTextTracksDisplay:a,atmoSettings:o.atmoSettings,mediaContext:o.context.mediaContext,playsInline:e.playsInline}),o.player.ready((function(){var e,n,r,i,a,s;o.props.playerActions.saveMediaElementId(t.id),e=o.player,n=function(){return o.props.playerState},r=o.props.playerActions,i=o.prevFileId,a=o.props.file.id,s=n(),a===i&&s.currentTime>0&&e.currentTime(s.currentTime),s.shouldPrebuffer&&e.prebuffer().then(r.prebuffered,(function(){})),s.isPlaying&&e.play(),e.on("canplay",(function(){n().shouldPlay&&e.paused()&&e.play()})),o.displaysTextTracksInNativePlayer||function(e,t,n){e.on("pause",(function(){xi(e,t,n)})),e.textTracks().on("addtrack",(function(){Pi(e,null,t(),n())})),Pi(e,null,t(),n()),xi(e,t,n)}(o.player,(function(){return o.props.textTracks.activeFileId}),(function(){return o.props.textTrackPosition})),Oi(o.player,o.props.playerActions),o.prevFileId=o.props.file.id}),!0)},o.disposeMediaTag=function(){o.player.dispose(),o.player=null,o.props.playerActions.discardMediaElementId()},o}return L(r,e),C(r,[{key:"componentDidUpdate",value:function(e){var t=this;this.player&&(this.player.ready((function(){var n,r,o;n=t.player,r=e.muted,o=t.props.muted,r!==o&&n.muted(o),function(e,t,n,r){t!==n&&e.changeVolumeFactor(n,r)}(t.player,e.playerState.volumeFactor,t.props.playerState.volumeFactor,t.props.playerState.volumeFactorFadeDuration),function(e,t,n,r){!t.shouldPrebuffer&&n.shouldPrebuffer&&e.prebuffer().then((function(){return setTimeout(r.prebuffered,0)})),!t.shouldPlay&&n.shouldPlay?n.fadeDuration?e.playAndFadeIn(n.fadeDuration):e.play():t.shouldPlay&&!n.shouldPlay&&n.isPlaying&&(n.fadeDuration?e.fadeOutAndPause(n.fadeDuration):e.pause()),void 0!==n.shouldSeekTo&&n.shouldSeekTo!==t.shouldSeekTo&&e.currentTime(n.shouldSeekTo)}(t.player,e.playerState,t.props.playerState,t.props.playerActions)}),!0),this.displaysTextTracksInNativePlayer||Pi(this.player,e.textTracks.activeFileId,this.props.textTracks.activeFileId,this.props.textTrackPosition),this.updateAtmoSettings())}},{key:"updateAtmoSettings",value:function(){this.atmoSettings=this.atmoSettings||{},this.atmoSettings.atmo_during_playback=this.props.atmoDuringPlayback}},{key:"render",value:function(){return F.a.createElement(bi,{tagName:t,sources:n(this.props.file,this.props.quality,{hasHighBandwidth:this.props.hasHighBandwidth,forceBestQuality:this.props.forceBestQuality,forceFullhdQuality:this.props.forceFullhdQuality}),tracks:(e=this.props.textTracks.files,r=this.props.textTracksEnabled,r?e.filter((function(e){return e.isReady})).map((function(e){return{id:"text_track_file_".concat(e.id),kind:e.kind,label:e.displayLabel,srclang:e.srclang,src:e.urls.vtt}})):[]),poster:o(this.props.file,this.props.posterImageFile),loop:this.props.loop,muted:this.initiallyMuted,playsInline:this.props.playsInline,alt:this.props.file.alt,onSetup:this.setupMediaTag,onDispose:this.disposeMediaTag});var e,r}}]),r}(F.a.Component);u.contextTypes={mediaContext:F.a.PropTypes.object},u.defaultProps={textTracksEnabled:!0,textTracks:{files:[]}};var l=It(te({textTracks:Jo({file:Yn("file"),defaultTextTrackFileId:Yn("defaultTextTrackFileId")}),quality:no({property:"videoQuality"}),hasNativeVideoPlayer:Xn("native video player"),hasHighBandwidth:Xn("high bandwidth"),forceBestQuality:ki("force_best_video_quality"),forceFullhdQuality:ki("force_fullhd_video_quality"),textTrackPosition:ji}),{updateTextTrackSettings:Yo})(u);return l.WrappedComponent=u,l},Ti=(_i="slimPlayerControls",function(e){return e.widgetPresence[_i]});function ji(e,t){var n=t.playerState,r=t.textTrackPosition;return r||(Ti(e)?n.controlsHidden?"auto.lazy":"auto.translated":n.controlsHidden?"auto.lazy":"top")}var Ci=Si({tagName:"audio",sources:function(e){return[{type:"audio/ogg",src:"".concat(e.urls.ogg,"?u=1")},{type:"audio/mp4",src:"".concat(e.urls.m4a,"?u=1")},{type:"audio/mp3",src:"".concat(e.urls.mp3,"?u=1")}]},emulateTextTracksDisplay:!0});function Ai(e,t){return t&&t.match(/^\/\//)?"".concat(e,":").concat(t):t}function Ii(e){var t=Math.round(e/1e3)%60,n=Math.floor(e/1e3/60)%60,r=Math.floor(e/1e3/60/60),o="PT";return r>0&&(o+="".concat(r,"H")),n>0&&(o+="".concat(n,"M")),(t>0||0==n&&0==r)&&(o+="".concat(t,"S")),o}var Mi=It(te({isEnabled:ki("structured_data")}))((function(e){var t=e.data;return e.isEnabled?React.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}}):null}));var Ri=It(te({entryPublishedAt:li("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt,r={"@context":"http://schema.org","@type":"AudioObject",name:t.basename,description:t.alt,url:Ai("https",t.urls.mp3),duration:Ii(t.durationInMs),datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Mi,{data:r})}));function Di(e){return React.createElement(mi,Object.assign({},e,{playerComponent:Ci,structuredDataComponent:Ri}))}var Ni=function(e,t,n,r){if(r&&r.height&&t&&"contain"!=t){var o,i,a,s=e.width/e.height;if("width"==(r.width/r.height>s?"width":"height")?(o=(i=r.height)*s,a=r.width/o):(i=(o=r.width)/s,a=r.height/i),!("smart_contain"==t&&a>1.2)){var c=o*a,u=i*a,l=void 0!==n[0]&&"cover"==t?n[0]:50,f=void 0!==n[1]&&"cover"==t?n[1]:50;return{left:(r.width-c)*l/100,top:(r.height-u)*f/100,width:c,height:u}}}};function Li(e,t){if(e&&t){var n=Math.max(0,-e.left),r=Math.max(0,e.width-t.width+e.left),o=Math.max(0,-e.top),i=Math.max(0,e.height-t.height+e.top);return["cue_offset","cue_offset_".concat(Math.ceil(i/10)),"cue_margin_left_".concat(Math.ceil(n/10)),"cue_margin_right_".concat(Math.ceil(r/10)),"cue_margin_top_".concat(Math.ceil(o/10)),"cue_margin_bottom_".concat(Math.ceil(i/10))].join(" ")}}function Bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fi(e){return F.a.createElement(Tr.a,{whitelist:["width","height"],cloneOptions:{noCloneOnZeroDimension:!0}},(function(t){return function(e,t){var n=Ni(e.videoFile,e.fit,e.position,t);return F.a.createElement("div",{className:"uncropped_media_wrapper"},F.a.createElement("div",{className:Li(n,t),style:Ui(n)},e.children))}(e,t)}))}function Ui(e){return e&&function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({position:"absolute"},e)}var Wi=Si({tagName:"video",sources:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.hasHighBandwidth,o=n.forceBestQuality,i=n.forceFullhdQuality;if(t=t||"auto",o)return[{type:"video/mp4",src:e.urls["4k"]||e.urls.fullhd||e.urls.high}];if(i)return[{type:"video/mp4",src:e.urls.fullhd||e.urls.high}];if("auto"==t){var a=r?"high":"medium",s=[{type:"application/x-mpegURL",src:"".concat(e.urls["hls-playlist"],"?u=1")},{type:"video/mp4",src:"".concat(e.urls[a],"?u=1")}];return e.urls["dash-playlist"]&&(s=[{type:"application/dash+xml",src:"".concat(e.urls["dash-playlist"])}].concat(s)),s}return e.urls[t]||(t="high"),[{type:"video/mp4",src:"".concat(e.urls[t],"?u=1")}]},poster:qi});function Hi(e){return F.a.createElement(Fi,{videoFile:e.file,fit:e.fit,position:e.position},F.a.createElement(Wi,{file:e.file,posterImageFile:e.posterImageFile,playerState:e.playerState,playerActions:e.playerActions,atmoDuringPlayback:e.atmoDuringPlayback,defaultTextTrackFileId:e.defaultTextTrackFileId,textTracksEnabled:e.textTracksEnabled,loop:e.loop,muted:e.muted,playsInline:e.playsInline}))}var Vi=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.file,n=e.posterImageFile,r=e.preloadImage,o=qi(t,n);o&&r(o)}},{key:"render",value:function(){return null}}]),t}(F.a.Component);function qi(e,t){var n=oe("mobile platform")?"medium":"large";return t?t.urls[n]:e.urls["poster_".concat(n)]}Vi.defaultProps={preloadImage:ie};var Gi=It(te({entryPublishedAt:li("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt,r={"@context":"http://schema.org","@type":"VideoObject",name:t.basename,description:t.alt,url:Ai("https",t.urls.high),thumbnailUrl:Ai("https",t.urls.poster_medium),width:t.width,height:t.height,duration:Ii(t.durationInMs),datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Mi,{data:r})}));var zi=It(te({file:Xt("videoFiles",{id:Yn("videoFileId")}),posterImageFile:Xt("imageFiles",{id:Yn("posterImageFileId")}),muted:function(e,t){return t.muted||Xo(e)}}))((function(e){return React.createElement(mi,Object.assign({},e,{playerComponent:Hi,preloadComponent:Vi,structuredDataComponent:Gi}))}));function Yi(e){var t=e.page,n=X.concat(e.propertyNamePrefix,e.videoPropertyBaseName),r=X.concat(e.propertyNamePrefix,e.posterImagePropertyBaseName);return React.createElement(zi,{videoFileId:t["".concat(n,"Id")],posterImageFileId:t["".concat(r,"Id")],playerState:e.playerState,playerActions:e.playerActions,fit:e.fit,position:[t["".concat(n,"X")],t["".concat(n,"Y")]],textTracksEnabled:e.textTracksEnabled,loop:e.loop,muted:e.muted,playsInline:e.playsInline})}function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Yi.defaultProps={videoPropertyBaseName:"videoFile",posterImagePropertyBaseName:"posterImage",fit:"smart_contain"};var Ki=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"getChildContext",value:function(){return{mediaContext:$i({},this.context.mediaContext,{playbackMode:this.props.playbackMode,playerDescription:this.props.playerDescription})}}},{key:"render",value:function(){return this.props.children}}]),t}(F.a.Component);Ki.contextTypes={mediaContext:F.a.PropTypes.object},Ki.childContextTypes={mediaContext:F.a.PropTypes.object};var Qi=It(te({fileExists:$t()}))((function(e){var t=function(e){return(t=e.propertyNamePrefix,[{propertyBaseName:X.concat(t,"mobilePosterImage"),collection:"imageFiles"},{propertyBaseName:X.concat(t,"posterImage"),collection:"imageFiles"},{propertyBaseName:X.concat(t,"videoFile"),collection:"videoFiles"}]).find((function(t){return e.fileExists(t.collection,e.page["".concat(t.propertyBaseName,"Id")])}));var t}(e);return t?React.createElement(Rn,{page:e.page,propertyBaseName:t.propertyBaseName,fileCollection:t.collection}):React.createElement("noscript",null)}));var Ji=It(te({fileExists:$t(),hasMobilePlatform:Xn("mobile platform"),hasAutoplaySupport:Xn("autoplay support")}))((function(e){return e.hasMobilePlatform&&function(e){var t=X.concat(e.propertyNamePrefix,"mobilePosterImageId");return e.fileExists("imageFiles",e.page[t])}(e)?React.createElement(Qi,{page:e.page,propertyNamePrefix:e.propertyNamePrefix}):React.createElement(Ki,{playbackMode:"loop",playerDescription:"Background Video Player"},React.createElement(Yi,Object.assign({loop:!0,fit:"cover",muted:!e.hasAutoplaySupport,playsInline:!0,textTracksEnabled:!1},e)))}));var Zi=It(te({file:Xt("imageFiles",{id:Yn("fileId")}),entryPublishedAt:li("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt;if(t){var r={"@context":"http://schema.org","@type":"ImageObject",name:t.basename,description:t.alt,url:Ai("https",t.urls.large),width:t.width,height:t.height,datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Mi,{data:r})}return null}));var ea=In(te({page:on(),playerState:Ko({scope:"background"})}),$({playerActions:Qo({scope:"background"})}))((function(e){var t=e.page,n=e.playerState,r=e.playerActions,o=e.propertyNamePrefix;return"video"==t[X.concat(o,"backgroundType")]?React.createElement(Ji,{page:t,playerState:n,playerActions:r,propertyNamePrefix:o}):React.createElement(Rn,{page:t,propertyNamePrefix:o,structuredDataComponent:Zi})}));function ta(e){return React.createElement(V,null,React.createElement(ea,{propertyNamePrefix:e.propertyNamePrefix}),React.createElement(Dn,{page:e.page}))}var na=It(te({isEntryReady:function(e){return!!e.entry.isReady}}))((function(e){var t=e.page;return e.isEntryReady?"video"==t.backgroundType||"video"==t.type?React.createElement(ra,{videoId:t.videoFileId,posterImageId:t.posterImageId}):React.createElement(oa,{imageId:t.backgroundImageId}):null})),ra=It(te({videoFile:Xt("videoFiles",{id:Yn("videoId")}),posterImageFile:Xt("imageFiles",{id:Yn("posterImageId")})}))((function(e){var t=e.videoFile,n=e.posterImageFile;return n?React.createElement(ia,{file:n}):React.createElement(ia,{file:t})})),oa=In(te({file:Xt("imageFiles",{id:Yn("imageId")}),pageIsPrepared:un()}))(ia);function ia(e){var t=e.file;return t&&t.isReady&&un?React.createElement("img",{src:t.urls.print,alt:t.alt,className:"print_image"}):React.createElement("noscript",null)}function aa(e){return React.createElement("div",{className:"waveform_player_controls-info_box"},function(e){if(!z(e.title))return React.createElement("h3",{className:sa(e)},e.title)}(e),function(e){if(!z(e.description))return React.createElement("p",{className:"waveform_player_controls-info_box-description",dangerouslySetInnerHTML:{__html:e.description}})}(e))}function sa(e){var t=!z(e.title)&&!z(e.description);return W()("waveform_player_controls-info_box-title",{"waveform_player_controls-info_box-title-with_separator":t})}var ca="MEDIA_PAGE_SCROLLER_MARGIN_SET_BOTTOM";var ua=In(null,{setPageScrollerMarginBottom:function(e){return{type:ca,payload:{value:e},meta:{collectionName:"pages"}}}})((function(e){return React.createElement(Tr.a,{whitelist:["height"],onMeasure:function(t){var n=t.height;return e.setPageScrollerMarginBottom(n)}},React.createElement("div",{className:"waveform_player_controls-container"},e.children))}));var la=vr((function(e){return React.createElement("a",{href:"#",className:fa(e),id:e.id,tabIndex:"4",title:e.title,onClick:pa(e)},React.createElement(dr,{name:e.isPlaying?"pause":"play"}))}));function fa(e){return W()("waveform_player_controls-play_button",{"waveform_player_controls-play_button-inverted":e.inverted})}function pa(e){return function(t){t.preventDefault(),e.onClick&&e.onClick()}}var da=n(173),ha=n.n(da),va="rgba(170, 170, 170, 1)",ga="rgba(0, 0, 0, 0.5)",ya="#fff",ma="#888";var ba=In(te({pageIsPrepared:un(),waveformColor:rn("waveformColor"),mainColor:function(e){return e.theme.mainColor}}))((function(e){return e.pageIsPrepared&&e.mediaElementId?React.createElement(Tr.a,{whitelist:["height"]},(function(t){var n=t.height;return React.createElement("div",{className:"waveform_player_controls-wave"},React.createElement("div",{className:"waveform_player_controls-wave_wrapper"},React.createElement(ha.a,{mediaElt:"#".concat(e.mediaElementId),options:{normalize:!0,removeMediaElementOnDestroy:!1,hideScrollbar:!0,progressColor:e.waveformColor||e.mainColor,waveColor:e.inverted?ga:va,cursorColor:e.inverted?ma:ya,height:n}}),React.createElement(la,{isPlaying:e.isPlaying,title:e.playButtonTitle,inverted:e.inverted,onClick:e.onPlayButtonClick})))})):null}));function wa(e){return React.createElement("div",{className:"waveform_player_controls-times_display"},React.createElement(br,{value:e.currentTime,className:"waveform_player_controls-times_display-current_time"}),"/",React.createElement(br,{value:e.duration,className:"waveform_player_controls-times_display-duration"}))}var Ea=In(te({inverted:rn("invert")}))((function(e){return React.createElement("div",{className:Oa(e)},React.createElement(ua,null,React.createElement(ba,{isPlaying:e.isPlaying,inverted:e.inverted,playButtonTitle:e.playButtonTitle,mediaElementId:e.mediaElementId,onPlayButtonClick:e.onPlayButtonClick}),React.createElement(wa,{currentTime:e.currentTime,duration:e.duration}),React.createElement(aa,e.infoBox)),React.createElement(Ur,{inverted:e.inverted,qualityMenuButtonTitle:e.qualityMenuButtonTitle,qualityMenuItems:e.qualityMenuItems,onQualityMenuItemClick:e.onQualityMenuItemClick,textTracksMenuButtonTitle:e.textTracksMenuButtonTitle,textTracksMenuItems:e.textTracksMenuItems,hiddenOnPhone:!e.isPlaying,onTextTracksMenuItemClick:e.onTextTracksMenuItemClick}))}));function Oa(e){return W()("waveform_player_controls",{"waveform_player_controls-inverted":e.inverted})}var xa="HOTKEY_SPACE",Pa="HOTKEY_TAB";function ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scope,n=void 0===t?"default":t;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.meta&&t.meta.mediaScope&&t.meta.mediaScope!==n)return e;switch(t.type){case c:return _a({},e,{hasPlayed:!1,unplayed:!0,infoBoxHiddenDuringPlayback:void 0,userIsIdle:!1});case l:return _a({},e,{shouldPrebuffer:!1});case uo:return _a({},e,{shouldPlay:!0,playFailed:!1,hasBeenPlayingJustNow:!0,unplayed:!1,fadeDuration:null,isLoading:!0});case _o:return _a({},e,{shouldPlay:!0,isPlaying:!0});case vo:return _a({},e,{shouldPlay:!1,playFailed:!0,hasBeenPlayingJustNow:!1,unplayed:!0,fadeDuration:null,isLoading:!1});case lo:return _a({},e,{shouldPlay:!0,hasBeenPlayingJustNow:!0,fadeDuration:t.payload.fadeDuration,isLoading:!0});case fo:return _a({},e,{shouldPlay:!1,fadeDuration:null,isLoading:!1});case So:return e.bufferUnderrun?_a({},e,{isPlaying:!1,hasPlayed:!0}):_a({},e,{shouldPlay:!1,isPlaying:!1,fadeDuration:null,isLoading:!1});case po:return _a({},e,{shouldPlay:!1,fadeDuration:t.payload.fadeDuration,isLoading:!1});case ho:return _a({},e,{volumeFactor:t.payload.volumeFactor,volumeFactorFadeDuration:t.payload.fadeDuration});case bo:return _a({},e,{shouldPrebuffer:!0});case wo:return _a({},e,{shouldPrebuffer:!1});case Io:return _a({},e,{isLoading:!0});case Oo:return _a({},e,{bufferUnderrun:!0});case xo:return _a({},e,{bufferUnderrun:!1});case yo:return _a({},e,{scrubbingAt:t.payload.time});case mo:return _a({},e,{shouldSeekTo:t.payload.time});case Co:return _a({},e,{isLoading:!0});case Ao:return _a({},e,{scrubbingAt:void 0,isLoading:!1});case Po:return _a({},e,{currentTime:t.payload.currentTime,duration:t.payload.duration});case ko:return _a({},e,{bufferedEnd:t.payload.bufferedEnd});case To:return _a({},e,{currentTime:t.payload.currentTime,duration:t.payload.duration,isLoading:!1});case jo:return _a({},e,{shouldPlay:!1,isPlaying:!1});case Mo:return _a({},e,{hasBeenPlayingJustNow:!1});case Pa:case Ro:return _a({},e,{userIsIdle:!1,controlsHidden:!1});case Do:return _a({},e,{userIsIdle:!0});case No:return _a({},e,{userHoveringControls:!0});case Lo:return _a({},e,{userHoveringControls:!1});case Bo:return _a({},e,{focusInsideControls:!0});case Fo:return _a({},e,{focusInsideControls:!1});case Uo:return _a({},e,{controlsHidden:!0,infoBoxHiddenDuringPlayback:!0});case Ho:return _a({},e,{infoBoxHiddenDuringPlayback:!0});case Wo:return _a({},e,{infoBoxHiddenDuringPlayback:!1});case Vo:return _a({},e,{infoBoxHiddenDuringPlayback:!e.infoBoxHiddenDuringPlayback});case qo:return _a({},e,{mediaElementId:t.payload.id});case Go:return _a({},e,{mediaElementId:null});default:return e}}};function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ca=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ca:return ja({},e,{bottom:t.payload.value});default:return e}},Aa=Oe.a.mark(Ma),Ia=Oe.a.mark(Ra);function Ma(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)([xa,co],Ra,zo());case 2:case"end":return e.stop()}}),Aa)}function Ra(e){var t,n;return Oe.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.play,n=e.pause,r.next=3,Object(De.select)(Ko());case 3:if(!r.sent.shouldPlay){r.next=9;break}return r.next=7,Object(De.put)(n());case 7:r.next=13;break;case 9:return r.next=11,Object(De.call)((function(){return pageflow.backgroundMedia.unmute()}));case 11:return r.next=13,Object(De.put)(t());case 13:case"end":return r.stop()}}),Ia)}var Da=Oe.a.mark(La),Na=Oe.a.mark(Ba);function La(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)([vo,go],Ba);case 2:case"end":return e.stop()}}),Da)}function Ba(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return pageflow.backgroundMedia.mute()}));case 2:case"end":return e.stop()}}),Na)}var Fa="BACKGROUND_MEDIA_MUTE",Ua="BACKGROUND_MEDIA_UNMUTE";function Wa(){return{type:Ua}}var Ha=Oe.a.mark(Ka),Va=Oe.a.mark(Qa),qa=Oe.a.mark(Ja),Ga=Oe.a.mark(Za),za=zo(),Ya=za.play,Xa=za.prebuffer,$a=za.waiting;function Ka(e){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(Ne.takeEvery)(s,Oe.a.mark((function t(n){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,[Object(De.race)({task:Object(De.call)(Ja,e),cancel:Object(De.take)(l)}),Object(De.race)({task:Object(De.call)(Qa,e),cancel:Object(De.take)(l)})];case 2:case"end":return t.stop()}}),t)})));case 2:case"end":return t.stop()}}),Ha)}function Qa(e){var t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=e.retryOnUnmute,!n.t0){n.next=5;break}return n.next=4,Object(De.select)(ni());case 4:n.t0=n.sent;case 5:if(!n.t0){n.next=12;break}return n.next=8,Object(De.race)({unmute:Object(De.take)(Ua),cancel:Object(De.take)(l)});case 8:if(t=n.sent,!t.unmute){n.next=12;break}return n.delegateYield(Ja(e),"t1",12);case 12:case"end":return n.stop()}}),Va)}function Ja(e){var t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.delegateYield(Za(e),"t0",1);case 1:if(!(t=n.t0)){n.next=5;break}return n.next=5,Object(De.put)($a());case 5:return n.next=7,[Object(De.take)(wo),Object(De.put)(Xa())];case 7:if(!t){n.next=12;break}return n.next=10,Object(De.call)(Ne.delay,1e3);case 10:return n.next=12,Object(De.put)(Ya());case 12:case"end":return n.stop()}}),qa)}function Za(e){var t,n,r;return Oe.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.canAutoplay,n=e.autoplayWhenBackgroundMediaMuted,o.next=3,Object(De.select)(ti({autoplayWhenBackgroundMediaMuted:function(){return n}}));case 3:return r=o.sent,o.abrupt("return",r&&t);case 5:case"end":return o.stop()}}),Ga)}var es=Oe.a.mark(ts);function ts(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(uo,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(sn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(ns);case 5:case"end":return e.stop()}}),e)})));case 2:return e.next=4,Object(Ne.takeEvery)([fo,jo],Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(sn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(rs);case 5:case"end":return e.stop()}}),e)})));case 4:case"end":return e.stop()}}),es)}function ns(){pageflow.events.trigger("scroll_indicator:disable")}function rs(){pageflow.events.trigger("scroll_indicator:enable")}var os=Oe.a.mark(is);function is(){var e,t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=zo(),t=e.hasNotBeenPlayingForAMoment,n.next=3,Object(Ne.takeEvery)([fo,jo],Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.race)({task:Object(De.call)(Oe.a.mark((function e(n){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)(Ne.delay,700);case 2:return e.next=4,Object(De.put)(t(!1));case 4:case"end":return e.stop()}}),e)}))),cancel:Object(De.take)(_o)});case 2:case"end":return e.stop()}}),e)})));case 3:case"end":return n.stop()}}),os)}var as=Oe.a.mark(cs),ss=Oe.a.mark(us);function cs(){var e,t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=zo(),t=e.userIdle,n.next=3,Object(Ne.takeLatest)([uo,Ro,Pa],us,t);case 3:case"end":return n.stop()}}),as)}function us(e){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(Ne.delay,3e3);case 2:return t.next=4,Object(De.put)(e());case 4:case"end":return t.stop()}}),ss)}var ls=Oe.a.mark(fs);function fs(){var e,t,n,r,o=arguments;return Oe.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},t=e.scope,n=zo({scope:t}),r=n.fadeOutAndPause,i.next=4,Object(Ne.takeEvery)(u,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.put)(r({fadeDuration:400}));case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return i.stop()}}),ls)}var ps=Oe.a.mark(ds);function ds(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(jo,Oe.a.mark((function e(){var t,n;return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(rn("autoChangePageOnEnded"));case 2:return t=e.sent,e.next=5,Object(De.select)(sn());case 5:if(n=e.sent,!t||!n){e.next=9;break}return e.next=9,Object(De.call)(hs);case 9:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),ps)}function hs(){pageflow.slides.next()}var vs=Oe.a.mark(ms);function gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ms(){var e,t,n=arguments;return Oe.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t=[Ma(),La(),ts()],e.playsInNativePlayer&&e.playsInNativePlayer()||t.push([ds(),fs(),is()]),oe("mobile platform")||t.push([Ka(ys({},e,{canAutoplay:oe("autoplay support")}))]),e.hideControls&&t.push([cs()]),r.next=7,t;case 7:case"end":return r.stop()}}),vs)}var bs=Oe.a.mark(Os),ws=Oe.a.mark(xs),Es=Oe.a.mark(Ps);function Os(){var e,t,n,r=arguments;return Oe.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},t=e.scope,n=zo({scope:t}),o.next=4,Object(Ne.takeEvery)(c,Oe.a.mark((function e(t){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,[Object(De.race)({task:[Object(De.put)(n.prebuffer()),Object(De.call)(xs,n),Object(De.call)(Ps,n)],cancel:Object(De.take)(l)})];case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return o.stop()}}),bs)}function xs(e){var t,n;return Oe.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.prebuffer,t=e.changeVolumeFactor,n=e.play,r.next=3,Object(De.put)(t(0,{fadeDuration:0}));case 3:return r.next=5,Object(De.take)(wo);case 5:return r.next=7,Object(De.put)(n());case 7:case"end":return r.stop()}}),ws)}function Ps(e){var t;return Oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.changeVolumeFactor,n.next=3,[Object(De.take)(wo),Object(De.take)(s)];case 3:return n.next=5,Object(De.put)(t(1,{fadeDuration:1e3}));case 5:case"end":return n.stop()}}),Es)}function ks(e){return{reducers:{"media.default":Sa({scope:"default"}),"media.pageScrollerMargin":Ca},saga:Oe.a.mark((function t(){return Oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ms(e);case 2:case"end":return t.stop()}}),t)}))}}var _s={reducers:{"media.background":Sa({scope:"background"})},saga:Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,[Os({scope:"background"}),fs({scope:"background"}),La()];case 2:case"end":return e.stop()}}),e)}))};var Ss=function(e){function t(e,n){var r;return T(this,t),(r=R(this,D(t).call(this,e,n))).onPlayButtonClick=function(){pageflow.hideText.activate(),r.props.onEnterBackground&&r.props.onEnterBackground()},r.onCloseButtonClick=function(){pageflow.hideText.deactivate(),r.props.onLeaveBackground&&r.props.onLeaveBackground()},r}return L(t,e),C(t,[{key:"render",value:function(){var e=this.props.page;return F.a.createElement(H,{className:W()({unplayed:!this.props.textHasBeenHidden},"hide_content_with_text")},F.a.createElement($r,{onClick:this.onCloseButtonClick}),F.a.createElement(Ur,{additionalButtons:this.props.additionalMenuBarButtons,onAdditionalButtonClick:this.props.onAdditionalButtonClick,qualityMenuButtonTitle:this.props.qualityMenuButtonTitle,qualityMenuItems:this.props.qualityMenuItems,onQualityMenuItemClick:this.props.onQualityMenuItemClick,hiddenOnPhone:this.props.textHasBeenHidden&&!this.props.textIsHidden}),F.a.createElement(V,{pageHasPlayerControls:!0},F.a.createElement("div",{className:"uncropped_media_wrapper"},this.props.children),F.a.createElement(Dn,{page:e})),F.a.createElement(Nn,null,F.a.createElement(Gr,{playButtonTitle:"Starten",playButtonIconName:this.props.playButtonIconName,controlBarText:e.controlBarText||this.props.defaultControlBarText,onPlayButtonClick:this.onPlayButtonClick,infoBox:{title:e.additionalTitle,description:e.additionalDescription}}),F.a.createElement(Wn,null,F.a.createElement(Vn,{page:e}),F.a.createElement(qn,{page:e}))))}}]),t}(F.a.Component),Ts=In(te({textIsHidden:function(e){return e.hideText.isActive},textHasBeenHidden:function(e){return e.hideText.hasBeenActive}}))(Ss),js="HIDE_TEXT_ACTIVATE",Cs="HIDE_TEXT_DEACTIVATE";var As=Oe.a.mark(Is);function Is(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(Cs,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(sn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(Ms);case 5:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),As)}function Ms(){pageflow.events.trigger("scroll_indicator:enable")}var Rs={name:"interactivePageBackground",saga:Is};function Ds(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bs=new function(){var e=[];this.register=function(t,n){var r=n.component,o=n.reduxModules,i=void 0===o?[]:o,a=Ds(n,["component","reduxModules"]);r||u("Requires component option to be present"),Array.isArray(i)||u("Expected reduxModules option to be an array.");var s=[],c=i.reduce((function(e,t){return"object"==typeof t&&3==new Set(Object.keys(t).concat(["name","reducers","saga"])).size||u("Expected redux module to be object with name, reducers and saga properties at most."),t.reducers&&"object"!=typeof t.reducers&&u("Expected reducers property of ".concat(t.name," reduxModule to be object.")),t.saga&&s.push(t.saga),Ls({},e,{},t.reducers)}),{});function u(e){throw new Error("".concat(e," Check registerPageType call of ").concat(t," page type."))}e.push(Ls({name:t,component:r,reducer:Object.keys(c).length?Object(se.c)(c):void 0,saga:Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.map((function(e){return e()}));case 2:case"end":return e.stop()}}),e)}))},a))},this.forEach=function(){return e.forEach.apply(e,arguments)},this.reduce=function(){return e.reduce.apply(e,arguments)},this.findByName=function(t){return e.find((function(e){var n=e.name;e.component;return n==t}))}},Fs=Bs.register;function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hs=new function(){var e=[];this.register=function(t,n){var r=n.component;e.push({name:t,component:r})},this.findByName=function(t){var n=e.find((function(e){return e.name==t}));if(!n)throw'Widget type with name "'.concat(t,'" not found.');return n},this.forEach=function(){e.forEach.apply(e,arguments)}},Vs=Hs.register,qs=n(174),Gs={muted:!1},zs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gs,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Fa:return{muted:!0};case Ua:return{muted:!1};default:return e}};function Ys(e){var t=e.t,n=e.muted,r=e.unmute;return n?F.a.createElement("div",{className:"background_media_unmute_button"},F.a.createElement("a",{title:t("pageflow.public.mute_off"),onClick:function(){new pageflow.AudioPlayer([{src:pageflow.assetUrls.unmuteSound,type:"audio/mpeg"}],{codecs:["mp3"]}).play(),r()},href:"#"})):null}var Xs={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||(n.on("background_media:mute",(function(e){return r({type:Fa})})),n.on("background_media:unmute",(function(e){return r(Wa())})))},createReducers:function(){return{backgroundMedia:zs}},createSaga:function(e){var t=e.backgroundMedia;return(Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(Ua,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return t.unmute()}));case 2:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),e)})))}};function $s(e){return e.cookieNotice.visible}function Ks(e){return e.site.privacy_link_url}var Qs="COOKIE_NOTICE_REQUEST",Js="COOKIE_NOTICE_DISMISS";function Zs(){return{type:Js}}function ec(e){var t=e.isCookieNoticeVisible,n=e.editing,r=e.t,o=e.dismiss;return t||n?F.a.createElement("div",{className:"cookie_notice_bar"},F.a.createElement("div",{className:"cookie_notice_bar-content"},function(e){var t=e.privacyLinkUrl,n=e.t,r=e.locale,o=n("pageflow.public.cookie_notice_html",{privacyLinkUrl:"".concat(t,"?lang=").concat(r)});return F.a.createElement("span",{className:"cookie_notice_bar-text",dangerouslySetInnerHTML:{__html:o}})}(e),F.a.createElement("a",{className:"cookie_notice_bar-dismiss",onClick:o},r("pageflow.public.dismiss_cookie_notice")))):F.a.createElement("noscript",null)}function tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rc=function(e){var t={dismissed:e.hasBeenDismissed,visible:!1};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Qs:return e.dismissed?e:nc({},e,{visible:!0});case Js:return{dismissed:!0,visible:!1};default:return e}}},oc={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||n.on("cookie_notice:request",(function(){return r({type:Qs})}))},createReducers:function(e){var t=e.cookies;return{cookieNotice:rc({hasBeenDismissed:t&&t.hasItem("cookie_notice_dismissed")})}},createSaga:function(e){var t=e.widgetsApi,n=e.cookies;return(Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(Qs,Oe.a.mark((function e(){var n;return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)($s);case 2:if(!e.sent){e.next=10;break}return e.next=5,Object(De.cps)(ic,t);case 5:return n=e.sent,e.next=8,Object(De.take)(Js);case 8:return e.next=10,Object(De.call)(n);case 10:case"end":return e.stop()}}),e)})));case 2:return e.next=4,Object(Ne.takeEvery)(Js,Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){n.setItem("cookie_notice_dismissed",!0)}));case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return e.stop()}}),e)})))}};function ic(e,t){e.use({name:"cookie_notice_bar_visible",insteadOf:"cookie_notice_bar"},(function(e){return t(null,e)}))}var ac={createReducers:function(e){var t=e.enabledFeatureNames;return{features:function(){return t}}}},sc="SITE_INIT";var cc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case sc:return t.payload.site;default:return e}},uc={init:function(e){var t=e.site;(0,e.dispatch)(function(e){return{type:sc,payload:{site:e}}}(t))},createReducers:function(){return{site:cc}}},lc={init:function(e){var t=e.storylines,n=e.dispatch;Wt({collection:t,collectionName:"storylines",dispatch:n,attributes:["id"],includeConfiguration:!0})},createReducers:function(){return{storylines:Ce("storylines")}}},fc={init:function(e){var t=e.chapters,n=e.dispatch;Wt({collection:t,collectionName:"chapters",dispatch:n,attributes:["id","title","position","storyline_id"]})},createReducers:function(){return{chapters:Ce("chapters")}}},pc="PAGE_TYPES_INIT";var dc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pc:return t.payload.pageTypes;default:return e}},hc={createReducers:function(){return{pageTypes:dc}},init:function(e){var t=e.pageTypesSeed;(0,e.dispatch)(function(e){var t=e.pageTypes;return{type:pc,payload:{pageTypes:t}}}({pageTypes:X.deep(t)}))}},vc="CURRENT_PAGE_CHANGE";var gc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case vc:return t.payload.id;default:return e}},yc=function(e,t){e.on("page:change",(function(e){return t(function(e){var t=e.id;return{type:vc,payload:{id:t}}}({id:e.getPermaId()}))}))},mc={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||yc(n,r)},createReducers:function(){return{currentPageId:gc}}},bc={init:function(e){var t=e.files,n=e.dispatch;Object.keys(t).forEach((function(e){Wt({collection:t[e],collectionName:X(e),dispatch:n,idAttribute:"perma_id",attributes:["id","perma_id","basename","processed_extension","variants","is_ready","parent_file_id","parent_file_model_type","width","height","duration_in_ms","rights","created_at"],includeConfiguration:!0})}))},createReducers:function(e){var t=e.files,n=e.fileUrlTemplates,r=void 0===n?{}:n,o=e.modelTypes,i=void 0===o?{}:o;return r=X.keys(r),i=X.keys(i),{files:Object(se.c)(Object.keys(t).reduce((function(e,t){return e[t=X(t)]=Ce(t,{idAttribute:"permaId"}),e}),{})),fileUrlTemplates:function(e){return r},modelTypes:function(e){return i}}}},wc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case P:return t.payload.settings;default:return e}},Ec={init:function(e){var t=e.isServerSide,n=e.settings,r=e.dispatch;t||(r(_({settings:n.toJSON()})),n.on("change",(function(){return r(_({settings:n.toJSON()}))})))},createReducers:function(){return{settings:wc}},createSaga:function(e){var t=e.settings;return(Oe.a.mark((function e(){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Ne.takeEvery)(k,Oe.a.mark((function e(n){return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)([t,t.set],n.payload.property,n.payload.value);case 2:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),e)})))}};var Oc="I18N_INIT";var xc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Oc:return{locale:t.payload.locale};default:return e}},Pc={createReducers:function(){return{i18n:xc}},init:function(e){var t=e.locale;(0,e.dispatch)(function(e){var t=e.locale;return{type:Oc,payload:{locale:t}}}({locale:t}))}},kc="ENTRY_UPDATE",_c="ENTRY_READY";function Sc(e){var t=e.entry;return{type:kc,payload:{entry:t}}}function Tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case kc:return jc({},e,{},t.payload.entry);case _c:return jc({},e,{isReady:!0});default:return e}},Ac={init:function(e){var t=e.entry,n=e.dispatch,r=e.events;e.isServerSide||r.once("ready",(function(){return n({type:_c})})),Ut.a.Model&&t instanceof Ut.a.Model?function(e){var t=e.entry,n=e.dispatch;Ic({entry:t,dispatch:n}),t.metadata.on("change:title",(function(){Ic({entry:t,dispatch:n})}))}({entry:t,dispatch:n}):function(e){var t=e.entry;(0,e.dispatch)(Sc({entry:{slug:t.slug,title:t.title,publishedAt:t.published_at}}))}({entry:t,dispatch:n})},createReducers:function(){return{entry:Cc}}};function Ic(e){var t=e.entry;(0,e.dispatch)(Sc({entry:{slug:t.get("slug"),title:t.metadata.get("title")||t.get("entry_title"),publishedAt:null}}))}var Mc={init:function(e){var t=e.isServerSide,n=e.window,r=e.getState,o=e.dispatch;t||n.addEventListener("keydown",(function(e){var t=r().currentPageId;32==e.keyCode?o(function(e){var t=e.currentPageId;return x(xa,t)}({currentPageId:t})):9==e.keyCode&&o(function(e){var t=e.currentPageId;return x(Pa,t)}({currentPageId:t}))}))}},Rc=function(e,t){e.on("activate",(function(e){return t({type:js})})),e.on("deactivate",(function(e){return t({type:Cs})}))};function Dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lc={isActive:!1,hasBeenActive:!1},Bc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case js:return{isActive:!0,hasBeenActive:!0};case Cs:return Nc({},e,{isActive:!1});case vc:return Nc({},e,{hasBeenActive:!1});default:return e}},Fc={init:function(e){var t=e.isServerSide,n=e.hideText,r=e.dispatch;t||Rc(n,r)},createReducers:function(){return{hideText:Bc}}},Uc={init:function(e){var t=e.widgets,n=e.dispatch;Wt({collection:t,collectionName:"widgets",dispatch:n,attributes:["role","type_name","editing"],includeConfiguration:!0})},createReducers:function(){return{widgets:Ce("widgets",{idAttribute:"role"})}}};var Wc="WIDGETS_LOAD";var Hc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Wc:return t.payload.widgets;default:return e}},Vc={init:function(e){var t=e.isServerSide,n=e.events,r=e.widgetsApi,o=e.dispatch;function i(){o(function(e){var t=e.widgets;return{type:Wc,payload:{widgets:t}}}({widgets:{classicPlayerControls:r.isPresent("classic_player_controls"),slimPlayerControls:r.isPresent("slim_player_controls")}}))}t||(n.on("widgets:update",i),i())},createReducers:function(){return{widgetPresence:Hc}}},qc="THEME_INIT";var Gc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case qc:return t.payload;default:return e}},zc={createReducers:function(){return{theme:Gc}},init:function(e){var t,n=e.dispatch;if(!e.isServerSide){var r=document.getElementById("theme_probe-main_color");n((t={mainColor:window.getComputedStyle(r)["background-color"]},{type:qc,payload:t}))}}};function Yc(e){return e.consent.uiVisible}function Xc(e){return e.consent.requestedVendors}var $c=function(e){return React.createElement(cr,Object.assign({},e,{viewBoxLeft:60,viewBoxTop:170,viewBoxWidth:90,viewBoxHeight:157}),React.createElement("path",{fill:"currentColor",d:"m 150.00015,296.99993 a 50,50 0 0 0 50.00004,-50.00005 50,50 0 0 0 -50.00004,-50.00004 H 50.000048 A 50,50 0 0 0 0,246.99988 50,50 0 0 0 50.000048,296.99993 Z"}),React.createElement("circle",{cx:"-150.0002",cy:"-246.99979",fill:"#fff",r:"40",transform:"scale(-1)"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"M 87,227 50,264 34,246"}))},Kc=function(e){return React.createElement(cr,Object.assign({},e,{viewBoxLeft:60,viewBoxTop:170,viewBoxWidth:90,viewBoxHeight:157}),React.createElement("path",{fill:"currentColor",d:"M 188.97656 744.56641 A 188.97638 188.97638 0 0 0 0 933.54297 A 188.97638 188.97638 0 0 0 188.97656 1122.5195 L 566.92969 1122.5195 A 188.97638 188.97638 0 0 0 755.90625 933.54297 A 188.97638 188.97638 0 0 0 566.92969 744.56641 L 188.97656 744.56641 z ",transform:"scale(0.26458333)"}),React.createElement("circle",{id:"path3721-7",cx:"50",cy:"247",fill:"#ffffff",r:"40"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"m 110.10252,271.89748 49.79539,-49.79494"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"M 159.89746,271.89748 110.10252,222.10209"}))},Qc=function(e){function t(e){var n;return T(this,t),(n=R(this,D(t).call(this,e))).state={checked:e.defaultChecked},n.handleClick=n.onClick.bind(M(n)),n}return L(t,e),C(t,[{key:"onClick",value:function(){var e=!this.state.checked;this.setState({checked:e}),this.props.onChange({target:{checked:e}})}},{key:"render",value:function(){var e=this.state.checked,t=e?$c:Kc;return F.a.createElement("button",{id:this.props.id,className:this.props.className,role:"switch","aria-checked":e,onClick:this.handleClick},F.a.createElement(t,{width:50,height:35}))}}]),t}(F.a.Component),Jc=function(e){function t(e){var n;return T(this,t),(n=R(this,D(t).call(this,e))).state={},n.handleVendorInfoClick=n.onVendorInfoClick.bind(M(n)),n}return L(t,e),C(t,[{key:"onVendorInfoClick",value:function(e){this.setState(Object(a.a)({},e,!this.state[e]))}},{key:"render",value:function(){return F.a.createElement("div",{className:"consent_vendor_list"},this.renderVendors())}},{key:"renderVendors",value:function(){var e=this;return this.props.vendors.length?this.props.vendors.map((function(t){var n="consent_vendor_list-vendor_".concat(t.name);return F.a.createElement("div",{key:n,className:"consent_vendor_list-vendor"},F.a.createElement("label",{htmlFor:n},t.displayName),F.a.createElement(Qc,{id:n,className:"consent_vendor_list-toggle",defaultChecked:"accepted"===t.state,onChange:function(n){return e.props.onVendorInputChange(t.name,n)}}),F.a.createElement("button",{className:"consent_vendor_list-expand_vendor",title:e.props.t("pageflow.public.consent_expand_vendor"),onClick:function(){return e.handleVendorInfoClick(t.name)}},F.a.createElement(lr,{width:20,height:20})),e.renderVendorDescription(t))})):F.a.createElement("div",{className:"consent_vendor_list-blank"},this.props.t("pageflow.public.consent_no_vendors"))}},{key:"renderVendorDescription",value:function(e){return this.state[e.name]?F.a.createElement("p",{dangerouslySetInnerHTML:{__html:e.description}}):null}}]),t}(F.a.Component),Zc="CONSENT_REQUEST",eu="CONSENT_DENY_ALL",tu="CONSENT_ACCEPT_ALL",nu="CONSENT_SAVE";function ru(e){var t=e.vendors;return{type:Zc,payload:{vendors:t}}}function ou(){return{type:eu}}function iu(){return{type:tu}}function au(e){return{type:nu,payload:e}}function su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?su(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uu=function(e){function t(e){var n;return T(this,t),(n=R(this,D(t).call(this,e))).state={checked:{}},n.handleSaveButtonClick=n.onSaveButtonClick.bind(M(n)),n.handleAcceptAllButtonClick=n.onAcceptAllButtonClick.bind(M(n)),n.handleDenyAllAllButtonClick=n.onDenyAllButtonClick.bind(M(n)),n.handleVendorInputChange=n.onVendorInputChange.bind(M(n)),n}return L(t,e),C(t,[{key:"onSaveButtonClick",value:function(){var e=this;if(!this.props.editing){var t=this.props.requestedVendors.reduce((function(t,n){var r=n.name;return cu({},t,Object(a.a)({},r,e.state.checked[r]||!1))}),{});this.props.save(t)}}},{key:"onAcceptAllButtonClick",value:function(){this.props.editing||this.props.acceptAll()}},{key:"onDenyAllButtonClick",value:function(){this.props.editing||this.props.denyAll()}},{key:"onVendorInputChange",value:function(e,t){this.setState({checked:cu({},this.state.checked,Object(a.a)({},e,t.target.checked))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.editing,r=t.t,o=t.requestedVendors;return t.visible||n?F.a.createElement("div",{className:W()("consent_bar",{"consent_bar-expanded":this.state.showVendorBox})},F.a.createElement("div",{className:"consent_bar-content"},function(e){var t=e.privacyLinkUrl,n=e.t,r=e.locale,o=e.requestedVendors.map((function(e){return e.name})).join(","),i=n("pageflow.public.consent_prompt_html",{privacyLinkUrl:"".concat(t,"?lang=").concat(r,"&vendors=").concat(o,"#consent")});return F.a.createElement("span",{className:"consent_bar-text",dangerouslySetInnerHTML:{__html:i}})}(this.props),F.a.createElement("div",{className:"consent_bar-vendor_box"},F.a.createElement("h3",null,r("pageflow.public.consent_settings")),F.a.createElement(Jc,{vendors:o,t:r,onVendorInputChange:this.handleVendorInputChange}),F.a.createElement("button",{className:"consent_bar-save",onClick:this.handleSaveButtonClick},r("pageflow.public.consent_save"))),F.a.createElement("div",{className:"consent_bar-buttons"},F.a.createElement("button",{className:"consent_bar-configure",onClick:function(){return e.setState({showVendorBox:!e.state.showVendorBox})}},F.a.createElement(ur,{width:10,height:10}),r("pageflow.public.consent_configure")),F.a.createElement("div",{className:"consent_bar-decision_buttons"},F.a.createElement("button",{className:"consent_bar-deny_all",onClick:this.handleDenyAllAllButtonClick},r("pageflow.public.consent_deny_all")),F.a.createElement("button",{className:"consent_bar-accept_all",onClick:this.handleAcceptAllButtonClick},r("pageflow.public.consent_accept_all")))))):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function lu(e){var t=e&&e.match(/vendors=([^&]+)/);return t?t[1].split(","):[]}var fu={createReducers:function(){return{consent:(e={uiVisible:!1,requestedVendors:[]},function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Zc:return{requestedVendors:n.payload.vendors,uiVisible:!0};case tu:case eu:case nu:return{uiVisible:!1};default:return t}})};var e},createSaga:function(e){e.widgetsApi;var t=e.consent;return(Oe.a.mark((function e(){var n,r,o,i,a;return Oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return t.requested()}));case 2:return n=e.sent,r=n.acceptAll,o=n.denyAll,i=n.save,a=n.vendors,e.next=9,Object(De.put)(ru({vendors:a}));case 9:return e.next=11,Object(Ne.takeEvery)(tu,(function(){r()}));case 11:return e.next=13,Object(Ne.takeEvery)(eu,(function(){o()}));case 13:return e.next=15,Object(Ne.takeEvery)(nu,(function(e){i(e.payload)}));case 15:case"end":return e.stop()}}),e)})))}};function pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var du=function(e){var t=!!e.storylines,n=!e.settings,r=e.seed,o=t?e:r,i={isServerSide:n,locale:r.locale,entry:o.entry,enabledFeatureNames:r.enabled_feature_names,fileUrlTemplates:r.file_url_templates,modelTypes:r.file_model_types,pageTypesSeed:r.page_types,pageTypes:Bs,site:r.site,files:o.files||{},storylines:o.storylines,chapters:o.chapters,pages:o.pages,widgets:t?e.entry.widgets:r.widgets,cookies:e.cookies,hideText:e.hideText,events:e.events,settings:e.settings,widgetsApi:e.widgets,backgroundMedia:e.backgroundMedia,consent:e.consent,window:n?null:window},s=Object(qs.a)([Xs,oc,ac,Pc,uc,Ac,mc,lc,fc,An,bc,Ec,Fc,Uc,Vc,hc,Mc,zc,fu],i);return n||(Bs.forEach((function(t){return e.pageType.register(t.name,function(e){return Tn(kn(e),e.mixin||{})}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{Component:t.component,store:s})))})),Hs.forEach((function(t){var n=t.name,r=t.component;return e.widgetTypes.register(n,function(e,t){return{enhance:function(n){xn.a.render(React.createElement(He,{store:t},React.createElement(e,null)),n[0])}}}(r,s))}))),s},hu=Rt("pages"),vu=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"componentWillMount",value:function(){this.store=du({seed:this.props.resolverSeed}),this.pageComponent=Bs.findByName(this.props.pageType).component}},{key:"render",value:function(e){var t=this.pageComponent;return F.a.createElement(He,{store:this.store},F.a.createElement(hu,{itemId:this.props.pageId},F.a.createElement(t,null)))}}]),t}(F.a.Component),gu=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"componentWillMount",value:function(){this.store=du({seed:this.props.resolverSeed}),this.widgetComponent=Hs.findByName(this.props.widgetTypeName).component}},{key:"render",value:function(e){var t=this.widgetComponent;return F.a.createElement(He,{store:this.store},F.a.createElement(t,null))}}]),t}(F.a.Component),yu=Rt("pages"),mu=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"componentWillMount",value:function(){this.store=du({seed:this.props.resolverSeed})}},{key:"render",value:function(e){return F.a.createElement(He,{store:this.store},F.a.createElement(yu,{itemId:this.props.pageId},F.a.createElement(ea,null)))}}]),t}(F.a.Component);function bu(e){var t=e.page.audioPlayerControlsVariant;return React.createElement(vi,{className:"audio_page supports_text_position_center",page:e.page,file:e.audioFile,playerState:e.playerState,playerActions:e.playerActions,controlBarText:e.t("pageflow.public.start_audio"),playerControlsComponent:wu(t),dynamicPageScrollerMargin:"waveform"==t,autoplayWhenBackgroundMediaMuted:!1},React.createElement(ea,null),React.createElement(Ki,{playbackMode:!1===e.page.autoplay?"manual":"autoplay",playerDescription:"Audio Page Player"},React.createElement(Di,{file:e.audioFile,playerState:e.playerState,playerActions:e.playerActions,textTrackPosition:Eu(t)})))}function wu(e){return"waveform"==e?Ea:Gr}function Eu(e){if("waveform"==e)return"top"}function Ou(e){var t=e.page;return React.createElement(H,{className:"supports_text_position_center"},React.createElement(ta,{page:t}),React.createElement(Nn,null,React.createElement(Wn,null,React.createElement(Vn,{page:t}),React.createElement(na,{page:t}),React.createElement(qn,{page:t}))))}var xu=["auto","4k","fullhd","medium"];function Pu(e){return React.createElement(vi,{className:"video_page supports_text_position_center",page:e.page,file:e.videoFile,qualities:xu,playerState:e.playerState,playerActions:e.playerActions,controlBarText:e.t("pageflow.public.start_video"),autoplayWhenBackgroundMediaMuted:!0},React.createElement(Ki,{playbackMode:!1===e.page.autoplay?"manual":"autoplay",playerDescription:"Video Page Player"},React.createElement(Yi,{page:e.page,playerState:e.playerState,playerActions:e.playerActions,fit:e.page.contain?"contain":"smart_contain"})),React.createElement(Qi,{page:e.page}))}var ku={position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#3b5159"},_u=function(e){function t(e){var n;return T(this,t),(n=R(this,D(t).call(this,e))).state={fading:!1,hidden:!1},n}return L(t,e),C(t,[{key:"componentDidMount",value:function(){var e=this;PAGEFLOW_EDITOR?this.setState({hidden:!0}):this.fadeTimeout=setTimeout((function(){pageflow.ready.then((function(){e.setState({fading:!0}),e.hiddenTimeout=setTimeout((function(){e.setState({hidden:!0})}),1e3)}))}),1e3)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.fadeTimeout),clearTimeout(this.hiddenTimeout)}},{key:"render",value:function(){var e=this.props.editing,t=this.state,n=t.hidden,r=t.fading;return e||!n?F.a.createElement("div",{className:W()("loading_spinner",{fade:!e&&r}),onTouchMove:Su,style:ku},F.a.createElement("div",{className:"loading_inner"},F.a.createElement("div",{className:"left_circle"}),F.a.createElement("div",{className:"right_circle"}),F.a.createElement("div",{className:"loading_spinner_inner"},F.a.createElement("div",null)))):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function Su(e){e.preventDefault()}var Tu=function(e){function t(e){var n;return T(this,t),(n=R(this,D(t).call(this,e))).state={hidden:!1,animating:!1},n}return L(t,e),C(t,[{key:"componentDidMount",value:function(){var e=this;PAGEFLOW_EDITOR?this.setState({hidden:!0,animating:!0}):(this.setState({animating:!0}),pageflow.delayedStart.waitFor((function(t){e.resolveDelayedStart=t})))}},{key:"hideOrLoop",value:function(e){var t=this;e.target===e.currentTarget&&(PAGEFLOW_EDITOR?(this.setState({animating:!1}),setTimeout((function(){t.setState({animating:!0})}),1e3)):(this.setState({hidden:!0}),this.resolveDelayedStart()))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hiddenTimeout)}},{key:"render",value:function(){var e=this,t=this.props.editing,n=this.state,r=n.hidden,o=n.animating,i=Au(this.props),a=F.a.createElement("div",{className:W()("media_loading_spinner-logo",{"media_loading_spinner-logo-invert":i})});return this.props.removeLogo&&(a=""),t||!r?F.a.createElement("div",{className:W()("media_loading_spinner",{"media_loading_spinner-fade":o},{"media_loading_spinner-invert":i}),onAnimationEnd:function(t){return e.hideOrLoop(t)},onTouchMove:ju,style:Iu(this.props)},a,F.a.createElement("div",{className:"media_loading_spinner-image",style:Cu(this.props)}),this.props.children):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function ju(e){e.preventDefault()}function Cu(e){var t=e.firstPageBackgroundImageUrlMedium,n=e.firstPageBackgroundImageUrlLarge,r=e.backgroundImage,o=e.blurStrength,i=e.backgroundImageX,a=e.backgroundImageY,s={x:null!=i?i:50,y:null!=a?a:50},c=0===o?r?r.urls.large:n:r?r.urls.medium:t;if(c){var u={backgroundImage:'url("'.concat(c,'")'),filter:"blur("+o+"px)"};return r&&(u.backgroundPosition="".concat(s.x,"% ").concat(s.y,"%")),u}}function Au(e){return e.backgroundImage||null!=e.invert?e.invert:e.firstPageInvert}function Iu(e){return{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:100,backgroundColor:Au(e)?"#fff":"#000",animationDelay:void 0!==e.animationDuration?e.animationDuration+"s":void 0}}var Mu=It(te({editing:ao({role:"loading_spinner"}),firstPageInvert:nn("invert"),firstPageBackgroundImageUrlMedium:Jt({variant:"medium",page:tn()}),firstPageBackgroundImageUrlLarge:Jt({variant:"large",page:tn()}),backgroundImage:Xt("imageFiles",{id:oo("customBackgroundImageId",{role:"loading_spinner"})}),backgroundImageX:oo("customBackgroundImageX",{role:"loading_spinner"}),backgroundImageY:oo("customBackgroundImageY",{role:"loading_spinner"}),invert:oo("invert",{role:"loading_spinner"}),removeLogo:oo("removeLogo",{role:"loading_spinner"}),blurStrength:oo("blurStrength",{role:"loading_spinner"}),animationDuration:oo("animationDuration",{role:"loading_spinner"})}))(Tu);var Ru=function(e){function t(){return T(this,t),R(this,D(t).apply(this,arguments))}return L(t,e),C(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.subtitle,r=e.entryTitle,o=Au(this.props),i=void 0!==this.props.animationDuration?this.props.animationDuration+"s":void 0;return F.a.createElement(Mu,null,F.a.createElement("div",{className:W()("media_loading_spinner-titles",{"media_loading_spinner-invert":o}),style:{animationDuration:i}},F.a.createElement("div",{className:"media_loading_spinner-title"},t||r),F.a.createElement("div",{className:"media_loading_spinner-subtitle"},n)))}}]),t}(F.a.Component);var Du=n(97),Nu=n.n(Du);function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Fs("background_image",{component:In(te({page:on()}))(Ou),reduxModules:[_s]}),Fs("video",{component:In(te({page:on(),videoFile:Xt("videoFiles",{id:rn("videoFileId")}),playerState:Ko(),t:Yr}),$({playerActions:Qo()}))(Pu),reduxModules:[ks({hideControls:!0,autoplayWhenBackgroundMediaMuted:!0,playsInNativePlayer:Xn("native video player")})]}),Fs("audio",{component:In(te({page:on(),audioFile:Xt("audioFiles",{id:rn("audioFileId")}),playerState:Ko(),t:Yr}),$({playerActions:Qo()}))(bu),reduxModules:[ks({retryOnUnmute:!0}),_s]}),Vs("cookie_notice_bar",{component:It(te({isCookieNoticeVisible:$s,privacyLinkUrl:Ks,editing:ao({role:"cookie_notice"}),t:Yr,locale:Xr}),{dismiss:Zs})(ec)}),Vs("consent_bar",{component:It(te({privacyLinkUrl:Ks,editing:ao({role:"cookie_notice"}),t:Yr,locale:Xr,requestedVendors:Xc,visible:Yc}),{acceptAll:iu,denyAll:ou,save:au})(uu)}),Vs("unmute_button",{component:It(te({t:Yr,muted:Xo}),{unmute:Wa})(Ys)}),Vs("classic_loading_spinner",{component:It(te({editing:ao({role:"loading_spinner"})}))(_u)}),Vs("title_loading_spinner",{component:It(te({firstPageInvert:nn("invert"),backgroundImage:Xt("imageFiles",{id:oo("customBackgroundImageId",{role:"loading_spinner"})}),entryTitle:li("title"),title:oo("title",{role:"loading_spinner"}),subtitle:oo("subtitle",{role:"loading_spinner"}),removeLogo:oo("removeLogo",{role:"loading_spinner"}),invert:oo("invert",{role:"loading_spinner"}),animationDuration:oo("animationDuration",{role:"loading_spinner"})}))(Ru)}),Vs("media_loading_spinner",{component:Mu}),Nu.a.events&&Nu.a.events.on("seed:loaded",(function(){return du(Nu.a)}));t.default={components:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ConsentSettings:function(e){var t=e.consent,n=e.t,r=e.queryString,o=t.relevantVendors({include:lu(r)});return F.a.createElement("div",null,F.a.createElement(Jc,{vendors:o,t:n,onVendorInputChange:function(e,n){n.target.checked?t.accept(e):t.deny(e)}}))},MediaPageBackground:ta,PageWithInteractiveBackground:Ts},o),actions:r,selectors:i,registerPageType:Fs,registerPageTypeWithDefaultBackground:function(e,t){Fs(e,{component:ea,selectTargetElement:function(e){return e.find(".page_background_asset")[0]},mixin:Ws({scroller:!0},t),reduxModules:[_s]})},registerWidgetType:Vs,mediaReduxModule:ks,mediaPageBackgroundReduxModule:_s,pageWithInteractiveBackgroundReduxModule:Rs,iconMapping:pr,SvgIcon:cr,classNames:W.a,connect:It,connectInPage:In,combineReducers:se.c,combine:$,ServerSidePage:vu,ServerSideWidget:gu,ServerSidePageBackgroundAsset:mu}}]).default;
|