UNPKG

@afiniti/video-player

Version:

React component for Afiniti's Video Learning Environment

6 lines 252 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("prop-types"),o=require("gsap"),i=require("react-markdown"),r=require("react-dom"),n=require("react-slick");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l(e),d=l(t),s=l(o),_=l(i),u=l(r),c=l(n);function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t,o){return t&&p(e.prototype,t),o&&p(e,o),e}function h(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}function g(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&&w(e,t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t){if(null==e)return{};var o,i,r=function(e,t){if(null==e)return{};var o,i,r={},n=Object.keys(e);for(i=0;i<n.length;i++)o=n[i],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)o=n[i],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?b(e):t}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,i=v(e);if(t){var r=v(this).constructor;o=Reflect.construct(i,arguments,r)}else o=i.apply(this,arguments);return E(this,o)}}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var o=[],i=!0,r=!1,n=void 0;try{for(var l,a=e[Symbol.iterator]();!(i=(l=a.next()).done)&&(o.push(l.value),!t||o.length!==t);i=!0);}catch(e){r=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw n}}return o}(e,t)||A(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||A(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){if(e){if("string"==typeof e)return O(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=new Array(t);o<t;o++)i[o]=e[o];return i}var C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function q(e,t,o){return e(o={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&o.path)}},o.exports),o.exports}function N(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var W=N(a.default),M=N((function(e,t,o,i){var r=o?o.call(i,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),d=0;d<n.length;d++){var s=n[d];if(!a(s))return!1;var _=e[s],u=t[s];if(!1===(r=o?o.call(i,_,u,s):void 0)||void 0===r&&_!==u)return!1}return!0}));function I(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var R=!("undefined"==typeof window||!window.document||!window.document.createElement);var z=function(e,t,o){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==o&&"function"!=typeof o)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(i){if("function"!=typeof i)throw new Error("Expected WrappedComponent to be a React component.");var r,n=[];function l(){r=e(n.map((function(e){return e.props}))),d.canUseDOM?t(r):o&&(r=o(r))}var d=function(e){var t,o;function a(){return e.apply(this,arguments)||this}o=e,(t=a).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o,a.peek=function(){return r},a.rewind=function(){if(a.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=r;return r=void 0,n=[],e};var d=a.prototype;return d.shouldComponentUpdate=function(e){return!M(e,this.props)},d.componentWillMount=function(){n.push(this),l()},d.componentDidUpdate=function(){l()},d.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),l()},d.render=function(){return W.createElement(i,this.props)},a}(a.default.Component);return I(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(i)+")"),I(d,"canUseDOM",R),d}},L=Array.isArray,B=Object.keys,j=Object.prototype.hasOwnProperty,F="undefined"!=typeof Element;function G(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var o,i,r,n=L(e),l=L(t);if(n&&l){if((i=e.length)!=t.length)return!1;for(o=i;0!=o--;)if(!G(e[o],t[o]))return!1;return!0}if(n!=l)return!1;var a=e instanceof Date,d=t instanceof Date;if(a!=d)return!1;if(a&&d)return e.getTime()==t.getTime();var s=e instanceof RegExp,_=t instanceof RegExp;if(s!=_)return!1;if(s&&_)return e.toString()==t.toString();var u=B(e);if((i=u.length)!==B(t).length)return!1;for(o=i;0!=o--;)if(!j.call(t,u[o]))return!1;if(F&&e instanceof Element&&t instanceof Element)return e===t;for(o=i;0!=o--;)if(!("_owner"===(r=u[o])&&e.$$typeof||G(e[r],t[r])))return!1;return!0}return e!=e&&t!=t}var V=function(e,t){try{return G(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},D=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable; /* object-assign (c) Sindre Sorhus @license MIT */function U(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var Q=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var o,i,r=U(e),n=1;n<arguments.length;n++){for(var l in o=Object(arguments[n]))H.call(o,l)&&(r[l]=o[l]);if(D){i=D(o);for(var a=0;a<i.length;a++)Y.call(o,i[a])&&(r[i[a]]=o[i[a]])}}return r},X=q((function(e,t){t.__esModule=!0,t.ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"};var o=t.TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};t.VALID_TAG_NAMES=Object.keys(o).map((function(e){return o[e]})),t.TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src"};var i=t.REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"};t.HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},t.HTML_TAG_MAP=Object.keys(i).reduce((function(e,t){return e[i[t]]=t,e}),{}),t.SELF_CLOSING_TAGS=[o.NOSCRIPT,o.SCRIPT,o.STYLE],t.HELMET_ATTRIBUTE="data-react-helmet"})),J=q((function(e,t){t.__esModule=!0,t.warn=t.requestAnimationFrame=t.reducePropsToState=t.mapStateOnServer=t.handleClientStateChange=t.convertReactPropstoHtmlAttributes=void 0;var o="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},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},r=l(a.default),n=l(Q);function l(e){return e&&e.__esModule?e:{default:e}}var d,s=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},_=function(e){var t=f(e,X.TAG_NAMES.TITLE),o=f(e,X.HELMET_PROPS.TITLE_TEMPLATE);if(o&&t)return o.replace(/%s/g,(function(){return t}));var i=f(e,X.HELMET_PROPS.DEFAULT_TITLE);return t||i||void 0},u=function(e){return f(e,X.HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},c=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return i({},e,t)}),{})},m=function(e,t){return t.filter((function(e){return void 0!==e[X.TAG_NAMES.BASE]})).map((function(e){return e[X.TAG_NAMES.BASE]})).reverse().reduce((function(t,o){if(!t.length)for(var i=Object.keys(o),r=0;r<i.length;r++){var n=i[r].toLowerCase();if(-1!==e.indexOf(n)&&o[n])return t.concat(o)}return t}),[])},p=function(e,t,i){var r={};return i.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&w("Helmet: "+e+' should be of type "Array". Instead found type "'+o(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,o){var i={};o.filter((function(e){for(var o=void 0,n=Object.keys(e),l=0;l<n.length;l++){var a=n[l],d=a.toLowerCase();-1===t.indexOf(d)||o===X.TAG_PROPERTIES.REL&&"canonical"===e[o].toLowerCase()||d===X.TAG_PROPERTIES.REL&&"stylesheet"===e[d].toLowerCase()||(o=d),-1===t.indexOf(a)||a!==X.TAG_PROPERTIES.INNER_HTML&&a!==X.TAG_PROPERTIES.CSS_TEXT&&a!==X.TAG_PROPERTIES.ITEM_PROP||(o=a)}if(!o||!e[o])return!1;var s=e[o].toLowerCase();return r[o]||(r[o]={}),i[o]||(i[o]={}),!r[o][s]&&(i[o][s]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var l=Object.keys(i),a=0;a<l.length;a++){var d=l[a],s=(0,n.default)({},r[d],i[d]);r[d]=s}return e}),[]).reverse()},f=function(e,t){for(var o=e.length-1;o>=0;o--){var i=e[o];if(i.hasOwnProperty(t))return i[t]}return null},h=(d=Date.now(),function(e){var t=Date.now();t-d>16?(d=t,e(t)):setTimeout((function(){h(e)}),0)}),x=function(e){return clearTimeout(e)},g="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||h:C.requestAnimationFrame||h,v="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||x:C.cancelAnimationFrame||x,w=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},y=null,b=function(e,t){var o=e.baseTag,i=e.bodyAttributes,r=e.htmlAttributes,n=e.linkTags,l=e.metaTags,a=e.noscriptTags,d=e.onChangeClientState,s=e.scriptTags,_=e.styleTags,u=e.title,c=e.titleAttributes;k(X.TAG_NAMES.BODY,i),k(X.TAG_NAMES.HTML,r),T(u,c);var m={baseTag:S(X.TAG_NAMES.BASE,o),linkTags:S(X.TAG_NAMES.LINK,n),metaTags:S(X.TAG_NAMES.META,l),noscriptTags:S(X.TAG_NAMES.NOSCRIPT,a),scriptTags:S(X.TAG_NAMES.SCRIPT,s),styleTags:S(X.TAG_NAMES.STYLE,_)},p={},f={};Object.keys(m).forEach((function(e){var t=m[e],o=t.newTags,i=t.oldTags;o.length&&(p[e]=o),i.length&&(f[e]=m[e].oldTags)})),t&&t(),d(e,p,f)},E=function(e){return Array.isArray(e)?e.join(""):e},T=function(e,t){void 0!==e&&document.title!==e&&(document.title=E(e)),k(X.TAG_NAMES.TITLE,t)},k=function(e,t){var o=document.getElementsByTagName(e)[0];if(o){for(var i=o.getAttribute(X.HELMET_ATTRIBUTE),r=i?i.split(","):[],n=[].concat(r),l=Object.keys(t),a=0;a<l.length;a++){var d=l[a],s=t[d]||"";o.getAttribute(d)!==s&&o.setAttribute(d,s),-1===r.indexOf(d)&&r.push(d);var _=n.indexOf(d);-1!==_&&n.splice(_,1)}for(var u=n.length-1;u>=0;u--)o.removeAttribute(n[u]);r.length===n.length?o.removeAttribute(X.HELMET_ATTRIBUTE):o.getAttribute(X.HELMET_ATTRIBUTE)!==l.join(",")&&o.setAttribute(X.HELMET_ATTRIBUTE,l.join(","))}},S=function(e,t){var o=document.head||document.querySelector(X.TAG_NAMES.HEAD),i=o.querySelectorAll(e+"["+X.HELMET_ATTRIBUTE+"]"),r=Array.prototype.slice.call(i),n=[],l=void 0;return t&&t.length&&t.forEach((function(t){var o=document.createElement(e);for(var i in t)if(t.hasOwnProperty(i))if(i===X.TAG_PROPERTIES.INNER_HTML)o.innerHTML=t.innerHTML;else if(i===X.TAG_PROPERTIES.CSS_TEXT)o.styleSheet?o.styleSheet.cssText=t.cssText:o.appendChild(document.createTextNode(t.cssText));else{var a=void 0===t[i]?"":t[i];o.setAttribute(i,a)}o.setAttribute(X.HELMET_ATTRIBUTE,"true"),r.some((function(e,t){return l=t,o.isEqualNode(e)}))?r.splice(l,1):n.push(o)})),r.forEach((function(e){return e.parentNode.removeChild(e)})),n.forEach((function(e){return o.appendChild(e)})),{oldTags:r,newTags:n}},A=function(e){return Object.keys(e).reduce((function(t,o){var i=void 0!==e[o]?o+'="'+e[o]+'"':""+o;return t?t+" "+i:i}),"")},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[X.REACT_TAG_MAP[o]||o]=e[o],t}),t)},P=function(e,t,o){switch(e){case X.TAG_NAMES.TITLE:return{toComponent:function(){return e=t.title,o=t.titleAttributes,(i={key:e})[X.HELMET_ATTRIBUTE]=!0,n=O(o,i),[r.default.createElement(X.TAG_NAMES.TITLE,n,e)];var e,o,i,n},toString:function(){return function(e,t,o,i){var r=A(o),n=E(t);return r?"<"+e+" "+X.HELMET_ATTRIBUTE+'="true" '+r+">"+s(n,i)+"</"+e+">":"<"+e+" "+X.HELMET_ATTRIBUTE+'="true">'+s(n,i)+"</"+e+">"}(e,t.title,t.titleAttributes,o)}};case X.ATTRIBUTE_NAMES.BODY:case X.ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return O(t)},toString:function(){return A(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,o){var i,n=((i={key:o})[X.HELMET_ATTRIBUTE]=!0,i);return Object.keys(t).forEach((function(e){var o=X.REACT_TAG_MAP[e]||e;if(o===X.TAG_PROPERTIES.INNER_HTML||o===X.TAG_PROPERTIES.CSS_TEXT){var i=t.innerHTML||t.cssText;n.dangerouslySetInnerHTML={__html:i}}else n[o]=t[e]})),r.default.createElement(e,n)}))}(e,t)},toString:function(){return function(e,t,o){return t.reduce((function(t,i){var r=Object.keys(i).filter((function(e){return!(e===X.TAG_PROPERTIES.INNER_HTML||e===X.TAG_PROPERTIES.CSS_TEXT)})).reduce((function(e,t){var r=void 0===i[t]?t:t+'="'+s(i[t],o)+'"';return e?e+" "+r:r}),""),n=i.innerHTML||i.cssText||"",l=-1===X.SELF_CLOSING_TAGS.indexOf(e);return t+"<"+e+" "+X.HELMET_ATTRIBUTE+'="true" '+r+(l?"/>":">"+n+"</"+e+">")}),"")}(e,t,o)}}}};t.convertReactPropstoHtmlAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[X.HTML_TAG_MAP[o]||o]=e[o],t}),t)},t.handleClientStateChange=function(e){y&&v(y),e.defer?y=g((function(){b(e,(function(){y=null}))})):(b(e),y=null)},t.mapStateOnServer=function(e){var t=e.baseTag,o=e.bodyAttributes,i=e.encode,r=e.htmlAttributes,n=e.linkTags,l=e.metaTags,a=e.noscriptTags,d=e.scriptTags,s=e.styleTags,_=e.title,u=void 0===_?"":_,c=e.titleAttributes;return{base:P(X.TAG_NAMES.BASE,t,i),bodyAttributes:P(X.ATTRIBUTE_NAMES.BODY,o,i),htmlAttributes:P(X.ATTRIBUTE_NAMES.HTML,r,i),link:P(X.TAG_NAMES.LINK,n,i),meta:P(X.TAG_NAMES.META,l,i),noscript:P(X.TAG_NAMES.NOSCRIPT,a,i),script:P(X.TAG_NAMES.SCRIPT,d,i),style:P(X.TAG_NAMES.STYLE,s,i),title:P(X.TAG_NAMES.TITLE,{title:u,titleAttributes:c},i)}},t.reducePropsToState=function(e){return{baseTag:m([X.TAG_PROPERTIES.HREF],e),bodyAttributes:c(X.ATTRIBUTE_NAMES.BODY,e),defer:f(e,X.HELMET_PROPS.DEFER),encode:f(e,X.HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:c(X.ATTRIBUTE_NAMES.HTML,e),linkTags:p(X.TAG_NAMES.LINK,[X.TAG_PROPERTIES.REL,X.TAG_PROPERTIES.HREF],e),metaTags:p(X.TAG_NAMES.META,[X.TAG_PROPERTIES.NAME,X.TAG_PROPERTIES.CHARSET,X.TAG_PROPERTIES.HTTPEQUIV,X.TAG_PROPERTIES.PROPERTY,X.TAG_PROPERTIES.ITEM_PROP],e),noscriptTags:p(X.TAG_NAMES.NOSCRIPT,[X.TAG_PROPERTIES.INNER_HTML],e),onChangeClientState:u(e),scriptTags:p(X.TAG_NAMES.SCRIPT,[X.TAG_PROPERTIES.SRC,X.TAG_PROPERTIES.INNER_HTML],e),styleTags:p(X.TAG_NAMES.STYLE,[X.TAG_PROPERTIES.CSS_TEXT],e),title:_(e),titleAttributes:c(X.ATTRIBUTE_NAMES.TITLE,e)}},t.requestAnimationFrame=g,t.warn=w})),K=q((function(e,t){t.__esModule=!0,t.Helmet=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),r=_(a.default),n=_(d.default),l=_(z),s=_(V);function _(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var o={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i]);return o}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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}var p,f,h,x=(0,l.default)(J.reducePropsToState,J.handleClientStateChange,J.mapStateOnServer)((function(){return null})),g=(p=x,h=f=function(e){function t(){return c(this,t),m(this,e.apply(this,arguments))}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),t.prototype.shouldComponentUpdate=function(e){return!(0,s.default)(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case X.TAG_NAMES.SCRIPT:case X.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case X.TAG_NAMES.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,i=e.child,r=e.arrayTypeChildren,n=e.newChildProps,l=e.nestedChildren;return o({},r,((t={})[i.type]=[].concat(r[i.type]||[],[o({},n,this.mapNestedChildrenToProps(i,l))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,i,r=e.child,n=e.newProps,l=e.newChildProps,a=e.nestedChildren;switch(r.type){case X.TAG_NAMES.TITLE:return o({},n,((t={})[r.type]=a,t.titleAttributes=o({},l),t));case X.TAG_NAMES.BODY:return o({},n,{bodyAttributes:o({},l)});case X.TAG_NAMES.HTML:return o({},n,{htmlAttributes:o({},l)})}return o({},n,((i={})[r.type]=o({},l),i))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var i=o({},t);return Object.keys(e).forEach((function(t){var r;i=o({},i,((r={})[t]=e[t],r))})),i},t.prototype.warnOnInvalidChildren=function(e,t){if("production"!==process.env.NODE_ENV){if(!X.VALID_TAG_NAMES.some((function(t){return e.type===t})))return"function"==typeof e.type?(0,J.warn)("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information."):(0,J.warn)("Only elements types "+X.VALID_TAG_NAMES.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information.");if(t&&"string"!=typeof t&&(!Array.isArray(t)||t.some((function(e){return"string"!=typeof e}))))throw new Error("Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information.")}return!0},t.prototype.mapChildrenToProps=function(e,t){var o=this,i={};return r.default.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,n=r.children,l=u(r,["children"]),a=(0,J.convertReactPropstoHtmlAttributes)(l);switch(o.warnOnInvalidChildren(e,n),e.type){case X.TAG_NAMES.LINK:case X.TAG_NAMES.META:case X.TAG_NAMES.NOSCRIPT:case X.TAG_NAMES.SCRIPT:case X.TAG_NAMES.STYLE:i=o.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:a,nestedChildren:n});break;default:t=o.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:n})}}})),t=this.mapArrayTypeChildrenToProps(i,t)},t.prototype.render=function(){var e=this.props,t=e.children,i=u(e,["children"]),n=o({},i);return t&&(n=this.mapChildrenToProps(t,n)),r.default.createElement(p,n)},i(t,null,[{key:"canUseDOM",set:function(e){p.canUseDOM=e}}]),t}(r.default.Component),f.propTypes={base:n.default.object,bodyAttributes:n.default.object,children:n.default.oneOfType([n.default.arrayOf(n.default.node),n.default.node]),defaultTitle:n.default.string,defer:n.default.bool,encodeSpecialCharacters:n.default.bool,htmlAttributes:n.default.object,link:n.default.arrayOf(n.default.object),meta:n.default.arrayOf(n.default.object),noscript:n.default.arrayOf(n.default.object),onChangeClientState:n.default.func,script:n.default.arrayOf(n.default.object),style:n.default.arrayOf(n.default.object),title:n.default.string,titleAttributes:n.default.object,titleTemplate:n.default.string},f.defaultProps={defer:!0,encodeSpecialCharacters:!0},f.peek=p.peek,f.rewind=function(){var e=p.rewind();return e||(e=(0,J.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},h);g.renderStatic=g.rewind,t.Helmet=g,t.default=g})),Z="https://api-eu-central-1.graphcms.com/v2/cjy9rcfxp0m8601d2unozm6mt/master",$=null,ee=function(e){return fetch($,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e})}).then((function(e){return e.json()})).then((function(e){return{data:e.data}})).catch((function(){}))},te=q((function(e,t){function o(e){try{return m.insertRule(e,m.cssRules.length)}catch(e){console.warn("react-reveal - animation failed")}}function i(){s||(t.globalHide=s=!0,window.removeEventListener("scroll",i,!0),o("."+r+" { opacity: 0; }"),window.removeEventListener("orientationchange",i,!0),window.document.removeEventListener("visibilitychange",i))}Object.defineProperty(t,"__esModule",{value:!0}),t.insertRule=o,t.cascade=function(e,t,o,i,r){var n=Math.log(i),l=(Math.log(r)-n)/(o-t);return Math.exp(n+l*(e-t))},t.animation=function(e){if(!m)return"";var t="@keyframes "+(p+u)+"{"+e+"}",o=c[e];return o?""+p+o:(m.insertRule(t,m.cssRules.length),c[e]=u,""+p+u++)},t.hideAll=i,t.default=function(e){var o=e.ssrFadeout;t.fadeOutEnabled=o};var r=t.namespace="react-reveal";t.defaults={duration:1e3,delay:0,count:1};var n=t.ssr=!0,l=t.observerMode=!1,a=t.raf=function(e){return window.setTimeout(e,66)},d=t.disableSsr=function(){return t.ssr=n=!1};t.fadeOutEnabled=!1,t.ssrFadeout=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t.fadeOutEnabled=e};var s=t.globalHide=!1;t.ie10=!1;var _=t.collapseend=void 0,u=1,c={},m=!1,p=r+"-"+Math.floor(1e15*Math.random())+"-";if("undefined"!=typeof window&&"nodejs"!==window.name&&window.document&&"undefined"!=typeof navigator){t.observerMode=l="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&/\{\s*\[native code\]\s*\}/.test(""+IntersectionObserver),t.raf=a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||a,t.ssr=n=window.document.querySelectorAll("div[data-reactroot]").length>0,-1!==navigator.appVersion.indexOf("MSIE 10")&&(t.ie10=!0),n&&"performance"in window&&"timing"in window.performance&&"domContentLoadedEventEnd"in window.performance.timing&&window.performance.timing.domLoading&&Date.now()-window.performance.timing.domLoading<300&&(t.ssr=n=!1),n&&window.setTimeout(d,1500),l||(t.collapseend=_=document.createEvent("Event"),_.initEvent("collapseend",!0,!0));var f=document.createElement("style");document.head.appendChild(f),f.sheet&&f.sheet.cssRules&&f.sheet.insertRule&&(m=f.sheet,window.addEventListener("scroll",i,!0),window.addEventListener("orientationchange",i,!0),window.document.addEventListener("visibilitychange",i))}})),oe=P(te),ie=q((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var o="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},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,r=!1,n=void 0;try{for(var l,a=e[Symbol.iterator]();!(i=(l=a.next()).done)&&(o.push(l.value),!t||o.length!==t);i=!0);}catch(e){r=!0,n=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw n}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),l=function(e){return e&&e.__esModule?e:{default:e}}(a.default),s=(0,d.default.shape)({make:d.default.func,duration:d.default.number.isRequired,delay:d.default.number.isRequired,forever:d.default.bool,count:d.default.number.isRequired,style:d.default.object.isRequired,reverse:d.default.bool}),_={collapse:d.default.bool,collapseEl:d.default.element,cascade:d.default.bool,wait:d.default.number,force:d.default.bool,disabled:d.default.bool,appear:d.default.bool,enter:d.default.bool,exit:d.default.bool,fraction:d.default.number,refProp:d.default.string,innerRef:d.default.func,onReveal:d.default.func,unmountOnExit:d.default.bool,mountOnEnter:d.default.bool,inEffect:s.isRequired,outEffect:(0,d.default.oneOfType)([s,(0,d.default.oneOf)([!1])]).isRequired,ssrReveal:d.default.bool,collapseOnly:d.default.bool,ssrFadeout:d.default.bool},u={transitionGroup:d.default.object},c=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=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,o));return i.isOn=void 0===e.when||!!e.when,i.state={collapse:e.collapse?t.getInitialCollapseStyle(e):void 0,style:{opacity:i.isOn&&!e.ssrReveal||!e.outEffect?void 0:0}},i.savedChild=!1,i.isShown=!1,te.observerMode?i.handleObserve=i.handleObserve.bind(i):(i.revealHandler=i.makeHandler(i.reveal),i.resizeHandler=i.makeHandler(i.resize)),i.saveRef=i.saveRef.bind(i),i}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),n(t,[{key:"saveRef",value:function(e){this.childRef&&this.childRef(e),this.props.innerRef&&this.props.innerRef(e),this.el!==e&&(this.el=e&&"offsetHeight"in e?e:void 0,this.observe(this.props,!0))}},{key:"invisible",value:function(){this&&this.el&&(this.savedChild=!1,this.isShown||(this.setState({hasExited:!0,collapse:this.props.collapse?r({},this.state.collapse,{visibility:"hidden"}):null,style:{opacity:0}}),!te.observerMode&&this.props.collapse&&window.document.dispatchEvent(te.collapseend)))}},{key:"animationEnd",value:function(e,t,o){var i=this,r=o.forever,n=o.count,l=o.delay,a=o.duration;if(!r){this.animationEndTimeout=window.setTimeout((function(){i&&i.el&&(i.animationEndTimeout=void 0,e.call(i))}),l+(a+(t?a:0)*n))}}},{key:"getDimensionValue",value:function(){return this.el.offsetHeight+parseInt(window.getComputedStyle(this.el,null).getPropertyValue("margin-top"),10)+parseInt(window.getComputedStyle(this.el,null).getPropertyValue("margin-bottom"),10)}},{key:"collapse",value:function(e,t,o){var i=o.duration+(t.cascade?o.duration:0),r=this.isOn?this.getDimensionValue():0,n=void 0,l=void 0;if(t.collapseOnly)n=o.duration/3,l=o.delay;else{var a=i>>2,d=a>>1;n=a,l=o.delay+(this.isOn?0:i-a-d),e.style.animationDuration=i-a+(this.isOn?d:-d)+"ms",e.style.animationDelay=o.delay+(this.isOn?a-d:0)+"ms"}return e.collapse={height:r,transition:"height "+n+"ms ease "+l+"ms",overflow:t.collapseOnly?"hidden":void 0},e}},{key:"animate",value:function(e){if(this&&this.el&&(this.unlisten(),this.isShown!==this.isOn)){this.isShown=this.isOn;var t=!this.isOn&&e.outEffect,o=e[t?"outEffect":"inEffect"],i="style"in o&&o.style.animationName||void 0,n=void 0;e.collapseOnly?n={hasAppeared:!0,hasExited:!1,style:{opacity:1}}:((e.outEffect||this.isOn)&&o.make&&(i=o.make),n={hasAppeared:!0,hasExited:!1,collapse:void 0,style:r({},o.style,{animationDuration:o.duration+"ms",animationDelay:o.delay+"ms",animationIterationCount:o.forever?"infinite":o.count,opacity:1,animationName:i}),className:o.className}),this.setState(e.collapse?this.collapse(n,e,o):n),t?(this.savedChild=l.default.cloneElement(this.getChild()),this.animationEnd(this.invisible,e.cascade,o)):this.savedChild=!1,this.onReveal(e)}}},{key:"onReveal",value:function(e){e.onReveal&&this.isOn&&(this.onRevealTimeout&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)),e.wait?this.onRevealTimeout=window.setTimeout(e.onReveal,e.wait):e.onReveal())}},{key:"componentWillUnmount",value:function(){this.unlisten(),te.ssr&&(0,te.disableSsr)()}},{key:"handleObserve",value:function(e,t){i(e,1)[0].intersectionRatio>0&&(t.disconnect(),this.observer=null,this.reveal(this.props,!0))}},{key:"observe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.el&&te.observerMode){if(this.observer){if(!t)return;this.observer.disconnect()}else if(t)return;this.observer=new IntersectionObserver(this.handleObserve,{threshold:e.fraction}),this.observer.observe(this.el)}}},{key:"reveal",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];te.globalHide||(0,te.hideAll)(),this&&this.el&&(e||(e=this.props),te.ssr&&(0,te.disableSsr)(),this.isOn&&this.isShown&&void 0!==e.spy?(this.isShown=!1,this.setState({style:{}}),window.setTimeout((function(){return t.reveal(e)}),200)):o||this.inViewport(e)||e.force?this.animate(e):te.observerMode?this.observe(e):this.listen())}},{key:"componentDidMount",value:function(){var e=this;if(this.el&&!this.props.disabled){this.props.collapseOnly||("make"in this.props.inEffect&&this.props.inEffect.make(!1,this.props),void 0!==this.props.when&&this.props.outEffect&&"make"in this.props.outEffect&&this.props.outEffect.make(!0,this.props));var o=this.context.transitionGroup,i=o&&!o.isMounting?!("enter"in this.props&&!1===this.props.enter):this.props.appear;return this.isOn&&((void 0!==this.props.when||void 0!==this.props.spy)&&!i||te.ssr&&!te.fadeOutEnabled&&!this.props.ssrFadeout&&this.props.outEffect&&!this.props.ssrReveal&&t.getTop(this.el)<window.pageYOffset+window.innerHeight)?(this.isShown=!0,this.setState({hasAppeared:!0,collapse:this.props.collapse?{height:this.getDimensionValue()}:this.state.collapse,style:{opacity:1}}),void this.onReveal(this.props)):te.ssr&&(te.fadeOutEnabled||this.props.ssrFadeout)&&this.props.outEffect&&t.getTop(this.el)<window.pageYOffset+window.innerHeight?(this.setState({style:{opacity:0,transition:"opacity 1000ms 1000ms"}}),void window.setTimeout((function(){return e.reveal(e.props,!0)}),2e3)):void(this.isOn&&(this.props.force?this.animate(this.props):this.reveal(this.props)))}}},{key:"cascade",value:function(e){var t=this,i=void 0;i="string"==typeof e?e.split("").map((function(e,t){return l.default.createElement("span",{key:t,style:{display:"inline-block",whiteSpace:"pre"}},e)})):l.default.Children.toArray(e);var n=this.props[this.isOn||!this.props.outEffect?"inEffect":"outEffect"],a=n.duration,d=n.reverse,s=i.length,_=2*a;this.props.collapse&&(_=parseInt(this.state.style.animationDuration,10),a=_/2);var u=d?s:0;return i.map((function(e){return"object"===(void 0===e?"undefined":o(e))&&e?l.default.cloneElement(e,{style:r({},e.props.style,t.state.style,{animationDuration:Math.round((0,te.cascade)(d?u--:u++,0,s,a,_))+"ms"})}):e}))}},{key:"componentWillReceiveProps",value:function(e){void 0!==e.when&&(this.isOn=!!e.when),e.fraction!==this.props.fraction&&this.observe(e,!0),!this.isOn&&e.onExited&&"exit"in e&&!1===e.exit?e.onExited():e.disabled||(e.collapse&&!this.props.collapse&&(this.setState({style:{},collapse:t.getInitialCollapseStyle(e)}),this.isShown=!1),e.when===this.props.when&&e.spy===this.props.spy||this.reveal(e),this.onRevealTimeout&&!this.isOn&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)))}},{key:"getChild",value:function(){if(this.savedChild&&!this.props.disabled)return this.savedChild;if("object"===o(this.props.children)){var e=l.default.Children.only(this.props.children);return"type"in e&&"string"==typeof e.type||"ref"!==this.props.refProp?e:l.default.createElement("div",null,e)}return l.default.createElement("div",null,this.props.children)}},{key:"render",value:function(){var e;e=this.state.hasAppeared?!this.props.unmountOnExit||!this.state.hasExited||this.isOn:!this.props.mountOnEnter||this.isOn;var t=this.getChild();"function"==typeof t.ref&&(this.childRef=t.ref);var o=!1,i=t.props,n=i.style,a=i.className,d=i.children,s=this.props.disabled?a:(this.props.outEffect?te.namespace:"")+(this.state.className?" "+this.state.className:"")+(a?" "+a:"")||void 0,_=void 0;"function"==typeof this.state.style.animationName&&(this.state.style.animationName=this.state.style.animationName(!this.isOn,this.props)),this.props.cascade&&!this.props.disabled&&d&&this.state.style.animationName?(o=this.cascade(d),_=r({},n,{opacity:1})):_=this.props.disabled?n:r({},n,this.state.style);var u=r({},this.props.props,function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}({className:s,style:_},this.props.refProp,this.saveRef)),c=l.default.cloneElement(t,u,e?o||d:void 0);return void 0!==this.props.collapse?this.props.collapseEl?l.default.cloneElement(this.props.collapseEl,{style:r({},this.props.collapseEl.style,this.props.disabled?void 0:this.state.collapse),children:c}):l.default.createElement("div",{style:this.props.disabled?void 0:this.state.collapse,children:c}):c}},{key:"makeHandler",value:function(e){var t=this,o=function(){e.call(t,t.props),t.ticking=!1};return function(){t.ticking||((0,te.raf)(o),t.ticking=!0)}}},{key:"inViewport",value:function(e){if(!this.el||window.document.hidden)return!1;var o=this.el.offsetHeight,i=window.pageYOffset-t.getTop(this.el),r=Math.min(o,window.innerHeight)*(te.globalHide?e.fraction:0);return i>r-window.innerHeight&&i<o-r}},{key:"resize",value:function(e){this&&this.el&&this.isOn&&this.inViewport(e)&&(this.unlisten(),this.isShown=this.isOn,this.setState({hasExited:!this.isOn,hasAppeared:!0,collapse:void 0,style:{opacity:this.isOn||!e.outEffect?1:0}}),this.onReveal(e))}},{key:"listen",value:function(){te.observerMode||this.isListener||(this.isListener=!0,window.addEventListener("scroll",this.revealHandler,{passive:!0}),window.addEventListener("orientationchange",this.revealHandler,{passive:!0}),window.document.addEventListener("visibilitychange",this.revealHandler,{passive:!0}),window.document.addEventListener("collapseend",this.revealHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler,{passive:!0}))}},{key:"unlisten",value:function(){!te.observerMode&&this.isListener&&(window.removeEventListener("scroll",this.revealHandler,{passive:!0}),window.removeEventListener("orientationchange",this.revealHandler,{passive:!0}),window.document.removeEventListener("visibilitychange",this.revealHandler,{passive:!0}),window.document.removeEventListener("collapseend",this.revealHandler,{passive:!0}),window.removeEventListener("resize",this.resizeHandler,{passive:!0}),this.isListener=!1),this.onRevealTimeout&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)),this.animationEndTimeout&&(this.animationEndTimeout=window.clearTimeout(this.animationEndTimeout))}}],[{key:"getInitialCollapseStyle",value:function(e){return{height:0,visibility:e.when?void 0:"hidden"}}},{key:"getTop",value:function(e){for(;void 0===e.offsetTop;)e=e.parentNode;for(var t=e.offsetTop;e.offsetParent;t+=e.offsetTop)e=e.offsetParent;return t}}]),t}(l.default.Component);c.propTypes=_,c.defaultProps={fraction:.2,refProp:"ref"},c.contextTypes=u,c.displayName="RevealBase",t.default=c,e.exports=t.default})),re=q((function(e,t){function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e};t.default=function(e,t,o,l){return"in"in e&&(e.when=e.in),r.default.Children.count(l)<2?r.default.createElement(n.default,i({},e,{inEffect:t,outEffect:o,children:l})):(l=r.default.Children.map(l,(function(l){return r.default.createElement(n.default,i({},e,{inEffect:t,outEffect:o,children:l}))})),"Fragment"in r.default?r.default.createElement(r.default.Fragment,null,l):r.default.createElement("span",null,l))};var r=o(a.default),n=o(ie);e.exports=t.default})),ne=P(q((function(e,t){function o(e,t){var o={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i]);return o}function i(e,t){var o=t.distance,i=t.left,r=t.right,n=t.up,l=t.down,a=t.top,d=t.bottom,_=t.big,u=t.mirror,c=t.opposite,m=(o?o.toString():0)+((i?1:0)|(r?2:0)|(a||l?4:0)|(d||n?8:0)|(u?16:0)|(c?32:0)|(e?64:0)|(_?128:0));if(s.hasOwnProperty(m))return s[m];var p=i||r||n||l||a||d,f=void 0,h=void 0;if(p){if(!u!=!(e&&c)){var x=[r,i,d,a,l,n];i=x[0],r=x[1],a=x[2],d=x[3],n=x[4],l=x[5]}var g=o||(_?"2000px":"100%");f=i?"-"+g:r?g:"0",h=l||a?"-"+g:n||d?g:"0"}return s[m]=(0,te.animation)((e?"to":"from")+" {opacity: 0;"+(p?" transform: translate3d("+f+", "+h+", 0);":"")+"}\n "+(e?"from":"to")+" {opacity: 1;transform: none;} "),s[m]}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te.defaults,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.children,n=(e.out,e.forever),a=e.timeout,d=e.duration,s=void 0===d?te.defaults.duration:d,_=e.delay,u=void 0===_?te.defaults.delay:_,c=e.count,m=void 0===c?te.defaults.count:c,p=o(e,["children","out","forever","timeout","duration","delay","count"]),f={make:i,duration:void 0===a?s:a,delay:u,forever:n,count:m,style:{animationFillMode:"both"},reverse:p.left};return t?(0,l.default)(p,f,f,r):f}Object.defineProperty(t,"__esModule",{value:!0});var n,l=(n=re)&&n.__esModule?n:{default:n},a={out:d.default.bool,left:d.default.bool,right:d.default.bool,top:d.default.bool,bottom:d.default.bool,big:d.default.bool,mirror:d.default.bool,opposite:d.default.bool,duration:d.default.number,timeout:d.default.number,distance:d.default.string,delay:d.default.number,count:d.default.number,forever:d.default.bool},s={};r.propTypes=a,t.default=r,e.exports=t.default})));function le(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}var ae={videoBtn:"index-module_videoBtn__1i9XK"};function de(){return(de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}le(".index-module_videoBtn__1i9XK{display:flex;flex-direction:column}.index-module_videoBtn__1i9XK svg{left:1px}");var se=e.createElement("path",{d:"M38.25 0v357l280.5-178.5z",fill:"#fff"});function _e(t){return e.createElement("svg",de({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 357 357",width:357,height:357},t),se)}var ue=function(){return a.default.createElement(_e,null)},ce=function(e){var t=e.title,o=e.type,i=e.description,r=e.slug,n=e.callback;return a.default.createElement("button",{type:"button",className:ae.videoBtn,onClick:function(){return n(o,r)}},a.default.createElement("div",{className:"iconTitle"},a.default.createElement("span",{className:"icon"},a.default.createElement(ue,null)),a.default.createElement("h4",{className:ae.title},t)),a.default.createElement("p",{className:ae.videoDescription},i))};ce.propTypes={title:d.default.string.isRequired,type:d.default.string.isRequired,slug:d.default.string.isRequired,description:d.default.string.isRequired,callback:d.default.func.isRequired};var me=function(e){var t=e.path,o=e.handle,i=e.resizeWidth,r=e.type,n=void 0===r?"":r,l=""===n?"":"/output=format:".concat(n);return"".concat(t,"/resize=w:").concat(i).concat(l,"/quality=value:80/compress/").concat(o)},pe=function(e){var t,o,i=e.path,r=e.handle,n=e.width,l=e.breakpointWidths,a=e.hiDPIMultiplier,d=e.type,s=Math.round(n*a),_="".concat(me({path:i,handle:r,resizeWidth:s,type:d})," ").concat(s,"w");return t=[n].concat(S(l)).sort((function(e,t){return t-e})).filter((function(e){return n>=e})).map((function(e){return"".concat(me({path:i,handle:r,resizeWidth:s=e,type:d})," ").concat(e,"w")})),(o=[_].concat(S(t)),S(new Set(o))).join(",")},fe="index-module_picture__dh9m4",he="index-module_picture_objectFit__2aT80",xe="index-module_objectFitFallback__2p1x_";le(".index-module_picture__dh9m4 img{width:100%;height:auto}.index-module_picture_objectFit__2aT80{width:100%;height:100%}.index-module_picture_objectFit__2aT80 img{width:100%;height:100%;object-fit:cover;max-width:none;object-position:50% 25%}.index-module_objectFitFallback__2p1x_{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50%}.index-module_objectFitPicture__3zTdc{top:0;left:0;width:100%;height:100%;position:absolute}");var ge=function(t){var o=t.width,i=t.breakpointWidths,r=t.alt,n=t.sizes,l=t.hiDPIMultiplier,d=t.path,s=t.className,_=t.handle,u=t.objectFitMode,c=pe({path:d,handle:_,width:o,breakpointWidths:i,hiDPIMultiplier:l,type:"webp"}),m=pe({path:d,handle:_,width:o,breakpointWidths:i,hiDPIMultiplier:l}),p=o,f=!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"img";if("undefined"!=typeof document){return void 0!==document.createElement(e).style.objectFit}return!0}()&&u;return a.default.createElement(e.Fragment,null,!f&&a.default.createElement("picture",{className:"".concat(fe," \n ").concat(u?he:"","\n ").concat(s,"\n ")},a.default.createElement("source",{srcSet:c,sizes:n,type:"image/webp"}),a.default.createElement("source",{srcSet:m,sizes:n,type:"image/jpeg"}),a.default.createElement("img",{src:me({path:d,handle:_,resizeWidth:p}),alt:r})),f&&a.default.createElement("div",{className:"\n ".concat(f?xe:"","\n ").concat(s,"\n "),style:{backgroundImage:"url(".concat(me({path:d,handle:_,resizeWidth:p}),")")}}))};ge.propTypes={width:d.default.number,breakpointWidths:d.default.array,alt:d.default.string,sizes:d.default.string,hiDPIMultiplier:d.default.number,path:d.default.string,className:d.default.string,handle:d.default.string.isRequired,objectFitMode:d.default.bool},ge.defaultProps={width:1400,breakpointWidths:[320,640,1024],alt:"",sizes:"100vw",hiDPIMultiplier:1.5,path:"//media.graphassets.com",className:"",objectFitMode:!1};var ve="index-module_profileBtn__1cV4R",we="index-module_profileIcon__1mfpd",ye="index-module_introduction__5Mg1n",be="index-module_icon__23N3U";function Ee(){return(Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}le(".index-module_profileBtn__1cV4R .index-module_profileIcon__1mfpd{width:30px;height:30px;border-radius:50%;margin-right:10px;display:flex;justify-content:center;align-items:center;border:1px solid #fff}.index-module_profileBtn__1cV4R .index-module_profileIcon__1mfpd svg{width:12px;height:12px;position:relative;fill:#fff}.index-module_profileBtn__1cV4R{width:100%;display:flex;flex-wrap:wrap;align-items:center}.index-module_profileBtn__1cV4R .index-module_introduction__5Mg1n{display:flex;flex-direction:column;width:calc(100% - 72px)}.index-module_profileBtn__1cV4R .index-module_icon__23N3U{width:60px;height:60px;overflow:hidden;border-radius:50%;margin-right:12px}@media (max-width:767px){.index-module_profileBtn__1cV4R .index-module_introduction__5Mg1n{width:calc(100% - 57px)}.index-module_profileBtn__1cV4R .index-module_introduction__5Mg1n span{width:unset!important}.index-module_profileBtn__1cV4R .index-module_icon__23N3U{width:45px;height:45px}}");var Te=e.createElement("path",{d:"M175 171.173c38.914 0 70.463-38.318 70.463-85.586C245.463 38.318 235.105 0 175 0s-70.465 38.318-70.465 85.587c0 47.268 31.549 85.586 70.465 85.586zM41.909 301.853c-.012-2.882-.024-.812 0 0zm266.176 2.251c.038-.789.013-5.474 0 0z"}),ke=e.createElement("path",{d:"M307.935 298.397c-1.305-82.342-12.059-105.805-94.352-120.657 0 0-11.584 14.761-38.584 14.761s-38.586-14.761-38.586-14.761C55.018 192.43 43.61 215.545 42.11 295.722c-.123 6.547-.18 6.891-.202 6.131.005 1.424.011 4.058.011 8.651 0 0 19.592 39.496 133.08 39.496 113.486 0 133.08-39.496 133.08-39.496 0-2.951.002-5.003.005-6.399-.022.47-.066-.441-.149-5.708z"});function Se(t){return e.createElement("svg",Ee({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 350 350"},t),Te,ke)}var Ae=function(){return a.default.createElement(Se,null)},Oe=function(e){var t=e.title,o=e.type,i=e.description,r=e.icon,n=e.slug,l=e.callback;return a.default.createElement("button",{type:"button",className:ve,onClick:function(){return l(o,n)}},r?a.default.createElement(ge,{className:be,handle:r,width:60,alt:t,objectFitMode:!0,isLazy:!1}):a.default.createElement("span",{className:we},a.default.createElement(Ae,null)),a.default.createElement("div",{className:ye},a.default.createElement("h4",null,t),a.default.createElement("span",null,i)))};Oe.propTypes={icon:d.default.string,type:d.default.string.isRequired,title:d.default.string.isRequired,slug:d.default.string.isRequired,description:d.default.string.isRequired,callback:d.default.func.isRequired},Oe.defaultProps={icon:""};var Ce={contentBtn:"index-module_contentBtn__2FN8k"};function Pe(){return(Pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}le(".index-module_contentBtn__2FN8k{display:flex;flex-direction:column;flex-wrap:wrap;flex-direction:unset}");var qe=e.createElement("path",{d:"M469.874 29.312H17.155C7.671 29.312 0 36.987 0 46.467v69.405c0 9.48 7.671 17.157 17.155 17.157h452.719c9.48 0 17.151-7.677 17.151-17.157V46.467c0-9.48-7.671-17.155-17.151-17.155zm0 162.344H17.155C7.671 191.656 0 199.329 0 208.809v69.407c0 9.482 7.671 17.155 17.155 17.155h452.719c9.48 0 17.151-7.673 17.151-17.155v-69.407c0-9.48-7.671-17.153-17.151-17.153zM226.357 353.998H17.155C7.671 353.998 0 361.672 0 371.151v69.407c0 9.482 7.671 17.155 17.155 17.155h209.202c9.484 0 17.155-7.673 17.155-17.155v-69.407c.001-9.479-7.67-17.153-17.155-17.153z"});function Ne(t){return e.createElement("svg",Pe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 487.025 487.025"},t),qe)}function We(){return(We=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}var Me=e.createElement("path",{d:"M12.912 6.343L10.284 8.97a3.715 3.715 0 01-5.255 0 3.712 3.712 0 01-.564-.749L5.686 7c.058-.059.13-.092.199-.132.084.289.231.562.458.789a1.86 1.86 0 002.627 0l2.628-2.627a1.86 1.86 0 000-2.628 1.86 1.86 0 00-2.628 0l-.934.935a4.662 4.662 0 00-2.37-.258l1.99-1.99a3.716 3.716 0 015.256 5.254zm-6.948 4.32l-.935.936a1.861 1.861 0 01-2.627 0 1.86 1.86 0 010-2.629l2.627-2.627a1.859 1.859 0 012.628 0c.226.227.374.5.459.7