File: D:/HostingSpaces/BOoms/pro-oils.be/wwwroot/wp-content/plugins/otter-blocks/build/build.js
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=24)}([function(e,t,n){e.exports=n(20)()},function(e,t){e.exports=React},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getObjectType=function(e){return Object.prototype.toString.call(e).slice(8,-1)};var o=function(e,n){return t.getObjectType(e)===n};t.default={array:Array.isArray,boolean:function(e){return!0===e||!1===e},date:function(e){return o(e,"Date")},domElement:function(e){return this.object(e)&&!this.plainObject(e)&&1===e.nodeType&&this.string(e.nodeName)&&["innerHTML","ownerDocument","style","attributes","nodeValue"].every((function(t){return t in e}))},function:function(e){return"function"==typeof e},generator:function(e){return this.iterable(e)&&this.function(e.next)&&this.function(e.throw)},iterable:function(e){return!this.nullOrUndefined(e)&&this.function(e[Symbol.iterator])},map:function(e){return o(e,"Map")},nan:function(e){return Number.isNaN(e)},null:function(e){return null===e},nullOrUndefined:function(e){return this.null(e)||this.undefined(e)},number:function(e){return"number"==typeof e},numericString:function(e){return"string"==typeof e&&e.length>0&&!Number.isNaN(Number(e))},object:function(e){return!this.nullOrUndefined(e)&&(this.function(e)||function(e){return"object"==typeof e}(e))},plainObject:function(e){var t;return o(e,"Object")&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))},promise:function(e){return o(e,"Promise")},regexp:function(e){return o(e,"RegExp")},set:function(e){return o(e,"Set")},string:function(e){return"string"==typeof e},symbol:function(e){return o(e,"Symbol")},undefined:function(e){return void 0===e},weakMap:function(e){return o(e,"WeakMap")},weakSet:function(e){return o(e,"WeakSet")}}},function(e,t,n){"use strict";
/**
* @license nested-property https://github.com/cosmosio/nested-property
*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 Olivier Scherrer <pode.fr@gmail.com>
*/e.exports={set:function(e,t,n){if(e&&"object"==typeof e){if("string"==typeof t&&""!==t){var o=t.split(".");return o.reduce((function(e,t,r){return e[t]=e[t]||{},o.length==r+1&&(e[t]=n),e[t]}),e)}return"number"==typeof t?(e[t]=n,e[t]):e}return e},get:function(e,t){return e&&"object"==typeof e?"string"==typeof t&&""!==t?t.split(".").reduce((function(e,t){return e&&e[t]}),e):"number"==typeof t?e[t]:e:e},has:function(e,t,n){return n=n||{},!(!e||"object"!=typeof e)&&("string"==typeof t&&""!==t?t.split(".").reduce((function(e,t,o,r){return o==r.length-1?n.own?!(!e||!e.hasOwnProperty(t)):!!(null!==e&&"object"==typeof e&&t in e):e&&e[t]}),e):"number"==typeof t&&t in e)},hasOwn:function(e,t,n){return this.has(e,t,n||{own:!0})},isIn:function(e,t,n,o){if(o=o||{},e&&"object"==typeof e){if("string"==typeof t&&""!==t){var r,i=t.split("."),a=!1;return r=!!i.reduce((function(e,t){return a=a||e===n||!!e&&e[t]===n,e&&e[t]}),e),o.validPath?a&&r:a}return!1}return!1}}},function(e,t,n){"use strict";var o=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function l(e,t){try{return t in e}catch(e){return!1}}function c(e,t,n){var o={};return n.isMergeableObject(e)&&s(e).forEach((function(t){o[t]=i(e[t],n)})),s(t).forEach((function(r){(function(e,t){return l(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(l(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(r,n)(e[r],t[r],n):o[r]=i(t[r],n))})),o}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||o,n.cloneUnlessOtherwiseSpecified=i;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):c(e,t,n):i(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var p=u;e.exports=p},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";var o=n(14),r=n.n(o),i=n(3),a=n.n(i);function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((function(e){return"number"==typeof e}))}t.a=function(e,t){if(!e||!t)throw new Error("Missing required parameters");return{changed:function(n){var o=a.a.get(e,n),i=a.a.get(t,n);return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((function(e){return Array.isArray(e)}))}(o,i)||function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((function(e){if(!e)return!1;var t=Object.getPrototypeOf(e);return"Object"===Object.prototype.toString.call(e).slice(8,-1)&&(null===t||t===Object.getPrototypeOf({}))}))}(o,i)?!!r.a.diff(o,i):o!==i},changedFrom:function(n,o,r){if(!n)throw new Error("Key parameter is required");var i=void 0!==o&&void 0!==r,s=a.a.get(e,n),l=a.a.get(t,n),c=Array.isArray(o)?o.includes(s):s===o,u=Array.isArray(r)?r.includes(l):l===r;return c&&(i?u:!i)},changedTo:function(n,o){if(!n)throw new Error("Key parameter is required");var r=a.a.get(e,n),i=a.a.get(t,n),s=Array.isArray(o)?!o.includes(r):r!==o,l=Array.isArray(o)?o.includes(i):i===o;return s&&l},increased:function(n){if(!n)throw new Error("Key parameter is required");return s(a.a.get(e,n),a.a.get(t,n))&&a.a.get(e,n)<a.a.get(t,n)},decreased:function(n){if(!n)throw new Error("Key parameter is required");return s(a.a.get(e,n),a.a.get(t,n))&&a.a.get(e,n)>a.a.get(t,n)}}}},function(e,t){var n="undefined"!=typeof window?window:{},o="undefined"!=typeof document?document:{documentElement:{}},r=void 0===n.pageYOffset?o.documentElement:null;e.exports=function(){return r||(e=window.pageYOffset,document.documentElement.scrollTop=e+1,r=window.pageYOffset>e?(document.documentElement.scrollTop=e,document.documentElement):document.scrollingElement||document.body);var e}},function(e,t,n){"use strict";e.exports=n(22)},function(e,t,n){var o;
/*!
Copyright (c) 2015 Jed Watson.
Based on code that is Copyright 2013-2015, Facebook, Inc.
All rights reserved.
*/!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},function(e,t,n){var o,r,i;r=[],void 0===(i="function"==typeof(o=function(){var e=/(auto|scroll)/,t=function(e,n){return null===e.parentNode?n:t(e.parentNode,n.concat([e]))},n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},o=function(t){return e.test(function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")}(t))};return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=t(e.parentNode,[]),r=0;r<n.length;r+=1)if(o(n[r]))return n[r];return document.scrollingElement||document.documentElement}}})?o.apply(t,r):o)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n,o){return"boolean"==typeof e?e:"function"==typeof e?e(t,n,o):!(!0!=!!e||!e)},r=function(e,t){return Object.hasOwnProperty.call(e,t)},i=function(e,t,n,o){return o?new Error(o):new Error("Required "+e[t]+" `"+t+"` was not specified in `"+n+"`.")};t.default=function(e,t,n){return function(e,t){if("function"!=typeof e)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(t&&"string"!=typeof t)throw new TypeError("The error message is optional, but must be a string if provided.")}(e,n),function(a,s,l){for(var c=arguments.length,u=Array(3<c?c-3:0),p=3;p<c;p++)u[p-3]=arguments[p];return o(t,a,s,l)?r(a,s)?e.apply(void 0,[a,s,l].concat(u)):i(a,s,l,n):e.apply(void 0,[a,s,l].concat(u))}}},function(e,t,n){"use strict";(function(e){
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.0
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var r=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),o))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:l(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?u:10===e?p:u||p}function d(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||o.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&d(a.firstElementChild)!==a?d(l):l;var c=h(e);return c.host?m(c.host,t):m(e,h(t).host)}function y(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[t]}return e[t]}function b(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+o+"Width"],10)}function g(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function v(e){var t=e.body,n=e.documentElement,o=f(10)&&getComputedStyle(n);return{height:g("Height",t,n,o),width:g("Width",t,n,o)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),O=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function T(e){return S({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=y(e,"top"),o=y(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?v(e.ownerDocument):{},s=i.width||e.clientWidth||r.width,l=i.height||e.clientHeight||r.height,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var p=a(e);c-=b(p,"x"),u-=b(p,"y"),r.width-=c,r.height-=u}return T(r)}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=f(10),r="HTML"===t.nodeName,i=k(e),s=k(t),c=l(e),u=a(t),p=parseFloat(u.borderTopWidth,10),d=parseFloat(u.borderLeftWidth,10);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=T({top:i.top-s.top-p,left:i.left-s.left-d,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!o&&r){var m=parseFloat(u.marginTop,10),b=parseFloat(u.marginLeft,10);h.top-=p-m,h.bottom-=p-m,h.left-=d-b,h.right-=d-b,h.marginTop=m,h.marginLeft=b}return(o&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=y(t,"top"),r=y(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}(h,t)),h}function P(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function C(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},u=r?P(e):m(e,c(t));if("viewport"===o)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=N(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:y(n),s=t?0:y(n,"left");return T({top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:r,height:i})}(u,r);else{var p=void 0;"scrollParent"===o?"BODY"===(p=l(s(t))).nodeName&&(p=e.ownerDocument.documentElement):p="window"===o?e.ownerDocument.documentElement:o;var f=N(p,u,r);if("HTML"!==p.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===a(t,"position"))return!0;var o=s(t);return!!o&&e(o)}(u))i=f;else{var d=v(e.ownerDocument),h=d.height,b=d.width;i.top+=f.top-f.marginTop,i.bottom=h+f.top,i.left+=f.left-f.marginLeft,i.right=b+f.left}}var g="number"==typeof(n=n||0);return i.left+=g?n:n.left||0,i.top+=g?n:n.top||0,i.right-=g?n:n.right||0,i.bottom-=g?n:n.bottom||0,i}function I(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=C(n,o,i,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return S({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function R(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return N(n,o?P(t):m(t,c(n)),o)}function x(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function _(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function j(e,t,n){n=n.split("-")[0];var o=x(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return r[a]=t[a]+t[l]/2-o[l]/2,r[s]=n===s?t[s]-o[c]:t[_(s)],r}function M(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function A(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=M(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=T(t.offsets.popper),t.offsets.reference=T(t.offsets.reference),t=n(t,e))})),t}function L(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=R(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=I(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=j(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=A(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function D(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function B(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var r=t[o],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function F(){return this.state.isDestroyed=!0,D(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[B("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function U(e,t,n,o){n.updateBound=o,q(e).addEventListener("resize",n.updateBound,{passive:!0});var r=l(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,o,{passive:!0}),i||e(l(a.parentNode),n,o,r),r.push(a)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function W(){this.state.eventsEnabled||(this.state=U(this.reference,this.options,this.state,this.scheduleUpdate))}function z(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function H(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function G(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&H(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var V=n&&/Firefox/i.test(navigator.userAgent);function Y(e,t,n){var o=M(e,(function(e){return e.name===t})),r=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!r){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}var K=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],$=K.slice(3);function X(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=$.indexOf(e),o=$.slice(n+1).concat($.slice(0,n));return t?o.reverse():o}var J={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Q(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(M(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,o){var r=(1===o?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=o}return T(s)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){H(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}var Z={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:O({},l,i[l]),end:O({},l,i[l]+i[c]-a[c])};e.offsets.popper=S({},a,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,r=e.offsets,i=r.popper,a=r.reference,s=o.split("-")[0],l=void 0;return l=H(+n)?[+n,0]:Q(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||d(e.instance.popper);e.instance.reference===n&&(n=d(n));var o=B("transform"),r=e.instance.popper.style,i=r.top,a=r.left,s=r[o];r.top="",r.left="",r[o]="";var l=C(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=a,r[o]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,p={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),O({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(o=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),O({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=S({},u,p[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(o[l])&&(e.offsets.popper[l]=i(o[l])-n[c]),n[l]>i(o[s])&&(e.offsets.popper[l]=i(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",p=c?"Top":"Left",f=p.toLowerCase(),d=c?"left":"top",h=c?"bottom":"right",m=x(o)[u];l[h]-m<s[f]&&(e.offsets.popper[f]-=s[f]-(l[h]-m)),l[f]+m>s[h]&&(e.offsets.popper[f]+=l[f]+m-s[h]),e.offsets.popper=T(e.offsets.popper);var y=l[f]+l[u]/2-m/2,b=a(e.instance.popper),g=parseFloat(b["margin"+p],10),v=parseFloat(b["border"+p+"Width"],10),w=y-e.offsets.popper[f]-g-v;return w=Math.max(Math.min(s[u]-m,w),0),e.arrowElement=o,e.offsets.arrow=(O(n={},f,Math.round(w)),O(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(D(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=C(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=_(o),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case J.FLIP:a=[o,r];break;case J.CLOCKWISE:a=X(o);break;case J.COUNTERCLOCKWISE:a=X(o,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(o!==s||a.length===l+1)return e;o=e.placement.split("-")[0],r=_(o);var c=e.offsets.popper,u=e.offsets.reference,p=Math.floor,f="left"===o&&p(c.right)>p(u.left)||"right"===o&&p(c.left)<p(u.right)||"top"===o&&p(c.bottom)>p(u.top)||"bottom"===o&&p(c.top)<p(u.bottom),d=p(c.left)<p(n.left),h=p(c.right)>p(n.right),m=p(c.top)<p(n.top),y=p(c.bottom)>p(n.bottom),b="left"===o&&d||"right"===o&&h||"top"===o&&m||"bottom"===o&&y,g=-1!==["top","bottom"].indexOf(o),v=!!t.flipVariations&&(g&&"start"===i&&d||g&&"end"===i&&h||!g&&"start"===i&&m||!g&&"end"===i&&y),w=!!t.flipVariationsByContent&&(g&&"start"===i&&h||g&&"end"===i&&d||!g&&"start"===i&&y||!g&&"end"===i&&m),E=v||w;(f||b||E)&&(e.flipped=!0,(f||b)&&(o=a[l+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=S({},e.offsets.popper,j(e.instance.popper,e.offsets.reference,e.placement)),e=A(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=i[n]-(s?r[a?"width":"height"]:0),e.placement=_(t),e.offsets.popper=T(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=M(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=M(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=d(e.instance.popper),l=k(s),c={position:r.position},u=function(e,t){var n=e.offsets,o=n.popper,r=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(r.width),c=i(o.width),u=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),f=t?u||p||l%2==c%2?i:a:s,d=t?i:s;return{left:f(l%2==1&&c%2==1&&!p&&t?o.left-1:o.left),top:d(o.top),bottom:d(o.bottom),right:f(o.right)}}(e,window.devicePixelRatio<2||!V),p="bottom"===n?"top":"bottom",f="right"===o?"left":"right",h=B("transform"),m=void 0,y=void 0;if(y="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&h)c[h]="translate3d("+m+"px, "+y+"px, 0)",c[p]=0,c[f]=0,c.willChange="transform";else{var b="bottom"===p?-1:1,g="right"===f?-1:1;c[p]=y*b,c[f]=m*g,c.willChange=p+", "+f}var v={"x-placement":e.placement};return e.attributes=S({},v,e.attributes),e.styles=S({},c,e.styles),e.arrowStyles=S({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return G(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&G(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){var i=R(r,t,e,n.positionFixed),a=I(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),G(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ee=function(){function e(t,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=r(this.update.bind(this)),this.options=S({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){o.options.modifiers[t]=S({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return S({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return E(e,[{key:"update",value:function(){return L.call(this)}},{key:"destroy",value:function(){return F.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return z.call(this)}}]),e}();ee.Utils=("undefined"!=typeof window?window:e).PopperUtils,ee.placements=K,ee.Defaults=Z,t.a=ee}).call(this,n(13))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var o,r;r=function(e){var t=["N","E","A","D"];function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function o(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function r(e,t,n){r.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function s(e,t,n){s.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function l(e,t,n){var o=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,o),e}function c(e){var t=typeof e;return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function u(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function p(e){var t=0,n=c(e);if("array"===n)return e.forEach((function(e){t+=p(e)})),t+u("[type: array, hash: "+t+"]");if("object"===n){for(var o in e)if(e.hasOwnProperty(o)){var r="[ type: object, key: "+o+", value hash: "+p(e[o])+"]";t+=u(r)}return t}return t+u("[ type: "+n+" ; value: "+e+"]")}function f(e,t,n,o,l,u,d,h){n=n||[],d=d||[];var m=(l=l||[]).slice(0);if(null!=u){if(o){if("function"==typeof o&&o(m,u))return;if("object"==typeof o){if(o.prefilter&&o.prefilter(m,u))return;if(o.normalize){var y=o.normalize(m,u,e,t);y&&(e=y[0],t=y[1])}}}m.push(u)}"regexp"===c(e)&&"regexp"===c(t)&&(e=e.toString(),t=t.toString());var b,g,v,w,E=typeof e,O=typeof t,S="undefined"!==E||d&&d.length>0&&d[d.length-1].lhs&&Object.getOwnPropertyDescriptor(d[d.length-1].lhs,u),T="undefined"!==O||d&&d.length>0&&d[d.length-1].rhs&&Object.getOwnPropertyDescriptor(d[d.length-1].rhs,u);if(!S&&T)n.push(new i(m,t));else if(!T&&S)n.push(new a(m,e));else if(c(e)!==c(t))n.push(new r(m,e,t));else if("date"===c(e)&&e-t!=0)n.push(new r(m,e,t));else if("object"===E&&null!==e&&null!==t){for(b=d.length-1;b>-1;--b)if(d[b].lhs===e){w=!0;break}if(w)e!==t&&n.push(new r(m,e,t));else{if(d.push({lhs:e,rhs:t}),Array.isArray(e)){for(h&&(e.sort((function(e,t){return p(e)-p(t)})),t.sort((function(e,t){return p(e)-p(t)}))),b=t.length-1,g=e.length-1;b>g;)n.push(new s(m,b,new i(void 0,t[b--])));for(;g>b;)n.push(new s(m,g,new a(void 0,e[g--])));for(;b>=0;--b)f(e[b],t[b],n,o,m,b,d,h)}else{var k=Object.keys(e),N=Object.keys(t);for(b=0;b<k.length;++b)v=k[b],(w=N.indexOf(v))>=0?(f(e[v],t[v],n,o,m,v,d,h),N[w]=null):f(e[v],void 0,n,o,m,v,d,h);for(b=0;b<N.length;++b)(v=N[b])&&f(void 0,t[v],n,o,m,v,d,h)}d.length=d.length-1}}else e!==t&&("number"===E&&isNaN(e)&&isNaN(t)||n.push(new r(m,e,t)))}function d(e,t,n,o,r){var i=[];if(f(e,t,i,o,null,null,null,r),n)for(var a=0;a<i.length;++a)n(i[a]);return i}function h(e,t,n,o){var r=d(e,t,o?function(e){e&&o.push(e)}:void 0,n);return o||(r.length?r:void 0)}function m(e,n,o){if(void 0===o&&n&&~t.indexOf(n.kind)&&(o=n),e&&o&&o.kind){for(var r=e,i=-1,a=o.path?o.path.length-1:0;++i<a;)void 0===r[o.path[i]]&&(r[o.path[i]]=void 0!==o.path[i+1]&&"number"==typeof o.path[i+1]?[]:{}),r=r[o.path[i]];switch(o.kind){case"A":o.path&&void 0===r[o.path[i]]&&(r[o.path[i]]=[]),function e(t,n,o){if(o.path&&o.path.length){var r,i=t[n],a=o.path.length-1;for(r=0;r<a;r++)i=i[o.path[r]];switch(o.kind){case"A":e(i[o.path[r]],o.index,o.item);break;case"D":delete i[o.path[r]];break;case"E":case"N":i[o.path[r]]=o.rhs}}else switch(o.kind){case"A":e(t[n],o.index,o.item);break;case"D":t=l(t,n);break;case"E":case"N":t[n]=o.rhs}return t}(o.path?r[o.path[i]]:r,o.index,o.item);break;case"D":delete r[o.path[i]];break;case"E":case"N":r[o.path[i]]=o.rhs}}}return n(r,o),n(i,o),n(a,o),n(s,o),Object.defineProperties(h,{diff:{value:h,enumerable:!0},orderIndependentDiff:{value:function(e,t,n,o){var r=o?function(e){e&&o.push(e)}:void 0,i=d(e,t,r,n,!0);return o||(i.length?i:void 0)},enumerable:!0},observableDiff:{value:d,enumerable:!0},orderIndependentObservableDiff:{value:function(e,t,n,o,r,i,a){return f(e,t,n,o,r,i,a,!0)},enumerable:!0},orderIndepHash:{value:p,enumerable:!0},applyDiff:{value:function(e,t,n){e&&t&&d(e,t,(function(o){n&&!n(e,t,o)||m(e,t,o)}))},enumerable:!0},applyChange:{value:m,enumerable:!0},revertChange:{value:function(e,t,n){if(e&&t&&n&&n.kind){var o,r,i=e;for(r=n.path.length-1,o=0;o<r;o++)void 0===i[n.path[o]]&&(i[n.path[o]]={}),i=i[n.path[o]];switch(n.kind){case"A":!function e(t,n,o){if(o.path&&o.path.length){var r,i=t[n],a=o.path.length-1;for(r=0;r<a;r++)i=i[o.path[r]];switch(o.kind){case"A":e(i[o.path[r]],o.index,o.item);break;case"D":case"E":i[o.path[r]]=o.lhs;break;case"N":delete i[o.path[r]]}}else switch(o.kind){case"A":e(t[n],o.index,o.item);break;case"D":case"E":t[n]=o.lhs;break;case"N":t=l(t,n)}return t}(i[n.path[o]],n.index,n.item);break;case"D":case"E":i[n.path[o]]=n.lhs;break;case"N":delete i[n.path[o]]}}},enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof $conflict},enumerable:!0}}),h.DeepDiff=h,e&&(e.DeepDiff=h),h}(this),void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o)},function(e,t){var n=new Error("Element already at target scroll position"),o=new Error("Scroll cancelled"),r=Math.min,i=Date.now;function a(e){return function(t,a,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=l);var p=i(),f=t[e],d=c.ease||s,h=isNaN(c.duration)?350:+c.duration,m=!1;return f===a?u(n,t[e]):requestAnimationFrame((function n(s){if(m)return u(o,t[e]);var l=i();var c=r(1,(l-p)/h);var y=d(c);t[e]=y*(a-f)+f;c<1?requestAnimationFrame(n):requestAnimationFrame((function(){u(null,t[e])}))})),function(){m=!0}}}function s(e){return.5*(1-Math.cos(Math.PI*e))}function l(){}e.exports={left:a("scrollLeft"),top:a("scrollTop")}},function(e,t,n){"use strict";(function(e){var o=n(1),r=n.n(o),i=n(0),a=n.n(i),s=n(11),l=n.n(s),c=n(12),u=n(4),p=n.n(u),f=n(2),d=n.n(f),h=n(6),m=n(5),y=n.n(m),b=n(9);function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(n,!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(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)}function k(e){return(k=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 P(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?C(e):t}var R={flip:{padding:20},preventOverflow:{padding:10}},x={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},_=n.n(b).a.canUseDOM,j=void 0!==y.a.createPortal;function M(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function A(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){d.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd())}function L(){}var D=function(e){function t(e){var n;return g(this,t),n=I(this,k(t).call(this,e)),_?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),e.zIndex&&(n.node.style.zIndex=e.zIndex),document.body.appendChild(n.node),n):I(n)}return T(t,e),w(t,[{key:"componentDidMount",value:function(){_&&(j||this.renderPortal())}},{key:"componentDidUpdate",value:function(){_&&(j||this.renderPortal())}},{key:"componentWillUnmount",value:function(){_&&this.node&&(j||y.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderPortal",value:function(){if(!_)return null;var e=this.props,t=e.children,n=e.setRef;return j?y.a.createPortal(t,this.node):(n(y.a.unstable_renderSubtreeIntoContainer(this,t.length>1?r.a.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,o=e.target;return t?this.renderPortal():o||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return j?this.renderReact16():null}}]),t}(r.a.Component);E(D,"propTypes",{children:a.a.oneOfType([a.a.element,a.a.array]),hasChildren:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),placement:a.a.string,setRef:a.a.func.isRequired,target:a.a.oneOfType([a.a.object,a.a.string]),zIndex:a.a.number});var B=function(e){function t(){return g(this,t),I(this,k(t).apply(this,arguments))}return T(t,e),w(t,[{key:"render",value:function(){var e,t=this.props,n=t.placement,o=t.setArrowRef,i=t.styles.arrow,a=i.color,s=i.display,l=i.length,c=i.margin,u=i.position,p=i.spread,f={display:s,position:u},d=p,h=l;return n.startsWith("top")?(e="0,0 ".concat(d/2,",").concat(h," ").concat(d,",0"),f.bottom=0,f.marginLeft=c,f.marginRight=c):n.startsWith("bottom")?(e="".concat(d,",").concat(h," ").concat(d/2,",0 0,").concat(h),f.top=0,f.marginLeft=c,f.marginRight=c):n.startsWith("left")?(h=p,e="0,0 ".concat(d=l,",").concat(h/2," 0,").concat(h),f.right=0,f.marginTop=c,f.marginBottom=c):n.startsWith("right")&&(h=p,e="".concat(d=l,",").concat(h," ").concat(d,",0 0,").concat(h/2),f.left=0,f.marginTop=c,f.marginBottom=c),r.a.createElement("div",{className:"__floater__arrow",style:this.parentStyle},r.a.createElement("span",{ref:o,style:f},r.a.createElement("svg",{width:d,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("polygon",{points:e,fill:a}))))}},{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,o={position:"absolute"};return t.startsWith("top")?(o.bottom=0,o.left=0,o.right=0,o.height=n):t.startsWith("bottom")?(o.left=0,o.right=0,o.top=0,o.height=n):t.startsWith("left")?(o.right=0,o.top=0,o.bottom=0):t.startsWith("right")&&(o.left=0,o.top=0),o}}]),t}(r.a.Component);E(B,"propTypes",{placement:a.a.string.isRequired,setArrowRef:a.a.func.isRequired,styles:a.a.object.isRequired});var F=function(e){var t=e.handleClick,n=e.styles,o=n.color,i=n.height,a=n.width,s=P(n,["color","height","width"]);return r.a.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},r.a.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.a.createElement("g",null,r.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))};F.propTypes={handleClick:a.a.func.isRequired,styles:a.a.object.isRequired};var q=function(e){var t=e.content,n=e.footer,o=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,l=e.title,c=e.styles,u={content:r.a.isValidElement(t)?t:r.a.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=r.a.isValidElement(l)?l:r.a.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=r.a.isValidElement(n)?n:r.a.createElement("div",{className:"__floater__footer",style:c.footer},n)),!s&&!a||d.a.boolean(i)||(u.close=r.a.createElement(F,{styles:c.close,handleClick:o})),r.a.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)};q.propTypes={content:a.a.node.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,open:a.a.bool,positionWrapper:a.a.bool.isRequired,showCloseButton:a.a.bool.isRequired,styles:a.a.object.isRequired,title:a.a.node};var U=function(e){function t(){return g(this,t),I(this,k(t).apply(this,arguments))}return T(t,e),w(t,[{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,o=e.hideArrow,i=e.setFloaterRef,a=e.status,s={},l=["__floater"];return t?r.a.isValidElement(t)?s.content=r.a.cloneElement(t,{closeFn:n}):s.content=t({closeFn:n}):s.content=r.a.createElement(q,this.props),a===x.OPEN&&l.push("__floater__open"),o||(s.arrow=r.a.createElement(B,this.props)),r.a.createElement("div",{ref:i,className:l.join(" "),style:this.style},r.a.createElement("div",{className:"__floater__body"},s.content,s.arrow))}},{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,o=e.placement,r=e.hideArrow,i=e.isPositioned,a=e.status,s=e.styles,l=s.arrow.length,c=s.floater,u=s.floaterCentered,p=s.floaterClosing,f=s.floaterOpening,d=s.floaterWithAnimation,h=s.floaterWithComponent,m={};return r||(o.startsWith("top")?m.padding="0 0 ".concat(l,"px"):o.startsWith("bottom")?m.padding="".concat(l,"px 0 0"):o.startsWith("left")?m.padding="0 ".concat(l,"px 0 0"):o.startsWith("right")&&(m.padding="0 0 0 ".concat(l,"px"))),[x.OPENING,x.OPEN].includes(a)&&(m=S({},m,{},f)),a===x.CLOSING&&(m=S({},m,{},p)),a!==x.OPEN||t||i||(m=S({},m,{},d)),"center"===o&&(m=S({},m,{},u)),n&&(m=S({},m,{},h)),S({},c,{},m)}}]),t}(r.a.Component);E(U,"propTypes",{component:a.a.oneOfType([a.a.func,a.a.element]),content:a.a.node,disableAnimation:a.a.bool.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,hideArrow:a.a.bool.isRequired,isPositioned:a.a.bool,open:a.a.bool,placement:a.a.string.isRequired,positionWrapper:a.a.bool.isRequired,setArrowRef:a.a.func.isRequired,setFloaterRef:a.a.func.isRequired,showCloseButton:a.a.bool,status:a.a.string.isRequired,styles:a.a.object.isRequired,title:a.a.node});var W=function(e){function t(){return g(this,t),I(this,k(t).apply(this,arguments))}return T(t,e),w(t,[{key:"render",value:function(){var e,t=this.props,n=t.children,o=t.handleClick,i=t.handleMouseEnter,a=t.handleMouseLeave,s=t.setChildRef,l=t.setWrapperRef,c=t.style,u=t.styles;if(n)if(1===r.a.Children.count(n))if(r.a.isValidElement(n)){var p=d.a.function(n.type)?"innerRef":"ref";e=r.a.cloneElement(r.a.Children.only(n),E({},p,s))}else e=r.a.createElement("span",null,n);else e=n;return e?r.a.createElement("span",{ref:l,style:S({},u,{},c),onClick:o,onMouseEnter:i,onMouseLeave:a},e):null}}]),t}(r.a.Component);E(W,"propTypes",{children:a.a.node,handleClick:a.a.func.isRequired,handleMouseEnter:a.a.func.isRequired,handleMouseLeave:a.a.func.isRequired,setChildRef:a.a.func.isRequired,setWrapperRef:a.a.func.isRequired,style:a.a.object,styles:a.a.object.isRequired});var z={zIndex:100};var H=["position","top","right","bottom","left"],G=function(t){function n(e){var t;return g(this,n),E(C(t=I(this,k(n).call(this,e))),"setArrowRef",(function(e){t.arrowRef=e})),E(C(t),"setChildRef",(function(e){t.childRef=e})),E(C(t),"setFloaterRef",(function(e){t.floaterRef||(t.floaterRef=e)})),E(C(t),"setWrapperRef",(function(e){t.wrapperRef=e})),E(C(t),"handleTransitionEnd",(function(){var e=t.state.status,n=t.props.callback;t.wrapperPopper&&t.wrapperPopper.instance.update(),t.setState({status:e===x.OPENING?x.OPEN:x.IDLE},(function(){var e=t.state.status;n(e===x.OPEN?"open":"close",t.props)}))})),E(C(t),"handleClick",(function(){var e=t.props,n=e.event,o=e.open;if(!d.a.boolean(o)){var r=t.state,i=r.positionWrapper,a=r.status;("click"===t.event||"hover"===t.event&&i)&&(A({title:"click",data:[{event:n,status:a===x.OPEN?"closing":"opening"}],debug:t.debug}),t.toggle())}})),E(C(t),"handleMouseEnter",(function(){var e=t.props,n=e.event,o=e.open;if(!d.a.boolean(o)&&!M()){var r=t.state.status;"hover"===t.event&&r===x.IDLE&&(A({title:"mouseEnter",data:[{key:"originalEvent",value:n}],debug:t.debug}),clearTimeout(t.eventDelayTimeout),t.toggle())}})),E(C(t),"handleMouseLeave",(function(){var e=t.props,n=e.event,o=e.eventDelay,r=e.open;if(!d.a.boolean(r)&&!M()){var i=t.state,a=i.status,s=i.positionWrapper;"hover"===t.event&&(A({title:"mouseLeave",data:[{key:"originalEvent",value:n}],debug:t.debug}),o?![x.OPENING,x.OPEN].includes(a)||s||t.eventDelayTimeout||(t.eventDelayTimeout=setTimeout((function(){delete t.eventDelayTimeout,t.toggle()}),1e3*o)):t.toggle(x.IDLE))}})),t.state={currentPlacement:e.placement,positionWrapper:e.wrapperOptions.position&&!!e.target,status:x.INIT,statusWrapper:x.INIT},t._isMounted=!1,_&&window.addEventListener("load",(function(){t.popper&&t.popper.instance.update(),t.wrapperPopper&&t.wrapperPopper.instance.update()})),t}return T(n,t),w(n,[{key:"componentDidMount",value:function(){if(_){var e=this.state.positionWrapper,t=this.props,n=t.children,o=t.open,r=t.target;this._isMounted=!0,A({title:"init",data:{hasChildren:!!n,hasTarget:!!r,isControlled:d.a.boolean(o),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.initPopper(),!n&&r&&d.a.boolean(o)}}},{key:"componentDidUpdate",value:function(e,t){if(_){var n,o=this.props,r=o.autoOpen,i=o.open,a=o.target,s=o.wrapperOptions,l=Object(h.a)(t,this.state),c=l.changedFrom,u=l.changedTo;if(e.open!==i)d.a.boolean(i)&&(n=i?x.OPENING:x.CLOSING),this.toggle(n);e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),u("status",x.IDLE)&&i?this.toggle(x.OPEN):c("status",x.INIT,x.IDLE)&&r&&this.toggle(x.OPEN),this.popper&&u("status",x.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",x.OPENING)||u("status",x.CLOSING))&&function(e,t,n){var o,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];o=function(r){n(r),function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,o)}(e,t,o)},function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,o)}(e,t,o,r)}(this.floaterRef,"transitionend",this.handleTransitionEnd)}}},{key:"componentWillUnmount",value:function(){_&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,o=this.props,r=o.disableFlip,i=o.getPopper,a=o.hideArrow,s=o.offset,l=o.placement,u=o.wrapperOptions,p="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l?this.setState({status:x.IDLE}):t&&this.floaterRef&&new c.a(t,this.floaterRef,{placement:l,modifiers:{arrow:S({enabled:!a,element:this.arrowRef},this.options.arrow),computeStyle:this.options.computeStyle,flip:S({enabled:!r,behavior:p},this.options.flip),keepTogether:this.options.keepTogether,hide:this.options.hide,inner:this.options.inner,offset:S({offset:"0, ".concat(s,"px")},this.options.offset),preventOverflow:this.options.preventOverflow,shift:this.options.shift},onCreate:function(t){e.popper=t,i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:x.IDLE}),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}}),n){var f=d.a.undefined(u.offset)?0:u.offset;new c.a(this.target,this.wrapperRef,{placement:u.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(f,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:x.IDLE}),i(t,"wrapper"),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===x.OPEN?x.CLOSING:x.OPENING;d.a.undefined(e)||(t=e),this.setState({status:t})}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,o=e.status,i=this.props,a=i.children,s=i.component,l=i.content,c=i.disableAnimation,u=i.footer,p=i.hideArrow,f=i.id,d=i.isPositioned,h=i.open,m=i.showCloseButton,y=i.style,b=i.target,g=i.title,v=r.a.createElement(W,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},a),w={};return n?w.wrapperInPortal=v:w.wrapperAsChildren=v,r.a.createElement("span",null,r.a.createElement(D,{hasChildren:!!a,id:f,placement:t,setRef:this.setFloaterRef,target:b,zIndex:this.styles.options.zIndex},r.a.createElement(U,{component:s,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:p||"center"===t,isPositioned:d,open:h,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:m,status:o,styles:this.styles,title:g}),w.wrapperInPortal),w.wrapperAsChildren)}},{key:"debug",get:function(){return this.props.debug||!!e.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&M()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return p()(R,e||{})}},{key:"styles",get:function(){var e,t=this,n=this.state,o=n.status,r=n.positionWrapper,i=n.statusWrapper,a=this.props.styles,s=p()(function(e){var t=p()(z,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative"},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);r&&(e=[x.IDLE].includes(o)&&[x.IDLE].includes(i)?this.wrapperPopper.styles:s.wrapperPosition,s.wrapper=S({},s.wrapper,{},e));if(this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=S({},s.wrapper,{},this.wrapperStyles):["relative","static"].includes(l.position)||(this.wrapperStyles={},r||(H.forEach((function(e){t.wrapperStyles[e]=l[e]})),s.wrapper=S({},s.wrapper,{},this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){if(!_)return null;var e=this.props.target;return e?d.a.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}}]),n}(r.a.Component);E(G,"propTypes",{autoOpen:a.a.bool,callback:a.a.func,children:a.a.node,component:l()(a.a.oneOfType([a.a.func,a.a.element]),(function(e){return!e.content})),content:l()(a.a.node,(function(e){return!e.component})),debug:a.a.bool,disableAnimation:a.a.bool,disableFlip:a.a.bool,disableHoverToClick:a.a.bool,event:a.a.oneOf(["hover","click"]),eventDelay:a.a.number,footer:a.a.node,getPopper:a.a.func,hideArrow:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),isPositioned:a.a.bool,offset:a.a.number,open:a.a.bool,options:a.a.object,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:a.a.bool,style:a.a.object,styles:a.a.object,target:a.a.oneOfType([a.a.object,a.a.string]),title:a.a.node,wrapperOptions:a.a.shape({offset:a.a.number,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:a.a.bool})}),E(G,"defaultProps",{autoOpen:!1,callback:L,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:L,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}}),t.a=G}).call(this,n(13))},function(e,t,n){var o;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&e.push(a)}else if("object"===i)for(var s in o)n.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=n(1)},function(e,t,n){e.exports=n(2)()},function(e,t,n){"use strict";var o=n(3);function r(){}e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},,function(e,t,n){"use strict";n.r(t);var o=n(0),r=n.n(o),i="notification-item",a={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center",TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center"},s={TOP:"top",BOTTOM:"bottom"},l={SUCCESS:"success",DANGER:"danger",INFO:"info",DEFAULT:"default",WARNING:"warning"},c="SLIDING_ANIMATION_EXIT",u="TOUCH_SLIDING_ANIMATION_EXIT",p="REMOVAL",f={TIMEOUT:1,CLICK:2,TOUCH:3,MANUAL:4},d={DISMISS_ICON_CLASS:"className property of dismissIcon option is required",DISMISS_ICON_CONTENT:"content property of dismissIcon option is required",DISMISS_ICON_STRING:"className property of dismissIcon option must be a String",DISMISS_ICON_INVALID:"content property of dismissIcon option must be a valid React element",ANIMATION_IN:"animationIn option must be an array",ANIMATION_OUT:"animationOut option must be an array",DISMISS_REQUIRED:"duration property of dismiss option is required",DISMISS_NUMBER:"duration property of dismiss option must be a Number",DISMISS_POSITIVE:"duration property of dismiss option must be a positive Number",TITLE_STRING:"title option must be a String.",MESSAGE_REQUIRED:"message option is required",MESSAGE_STRING:"message option must be a String",TYPE_REQUIRED:"type option is required",TYPE_STRING:"type option must be a String",TYPE_NOT_EXISTENT:"type option not found",CONTAINER_REQUIRED:"container option is required",CONTAINER_STRING:"container option must be a String",DISMISSABLE_CLICK_BOOL:"click property of dismissable option must be a Boolean",DISMISSABLE_TOUCH_BOOL:"touch property of dismissable option must be a Boolean",WIDTH_NUMBER:"width option must be a Number",INSERT_STRING:"insert option must be a String",TRANSITION_DURATION_NUMBER:"duration property of transition option must be a Number",TRANSITION_CUBICBEZIER_NUMBER:"cubicBezier property of transition option must be a String",TRANSITION_DELAY_NUMBER:"delay property of transition option must be a Number",TYPE_NOT_FOUND:"custom type not found"};function h(e){return e?"".concat(e,"px"):void 0}function m(e){return null==e}function y(e){return"string"==typeof e}function b(e){return"number"==typeof e}function g(e){return"boolean"==typeof e}function v(e){return!m(e)&&e.constructor===Array}function w(e,t){var n=t.duration,o=t.cubicBezier,r=t.delay,i=e||{};if(m(i.duration)&&(i.duration=n),m(i.cubicBezier)&&(i.cubicBezier=o),m(i.delay)&&(i.delay=r),!b(i.duration))throw new Error(d.TRANSITION_DURATION_NUMBER);if(!y(i.cubicBezier))throw new Error(d.TRANSITION_CUBICBEZIER_NUMBER);if(!b(i.delay))throw new Error(d.TRANSITION_DELAY_NUMBER);return i}function E(e){return e===a.BOTTOM_LEFT||e===a.BOTTOM_RIGHT||e===a.BOTTOM_CENTER}function O(e){return e===a.TOP_LEFT||e===a.TOP_RIGHT||e===a.TOP_CENTER}function S(e){var t=e.type,n=e.userDefinedTypes;if(e.content)return[i];if(!n)return function(e){switch(e.toLowerCase()){case l.DEFAULT:return[i,"notification-default"];case l.SUCCESS:return[i,"notification-success"];case l.DANGER:return[i,"notification-danger"];case l.WARNING:return[i,"notification-warning"];case l.INFO:return[i,"notification-info"];default:return[i]}}(t);var o=n.find((function(e){return e.name===t}));if(!o)throw new Error(d.TYPE_NOT_FOUND);return[i].concat(o.htmlClasses)}function T(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:500,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"linear",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"height";return"".concat(e,"ms ").concat(o," ").concat(t," ").concat(n,"ms")}function k(e){return T(e.slidingExit.duration,e.slidingExit.cubicBezier,e.slidingExit.delay,"all")}function N(e,t,n){var o,r,i=2*window.innerWidth,a=T((o=e.touchSlidingExit.swipe).duration,o.cubicBezier,o.delay,"left"),s=T((r=e.touchSlidingExit.fade).duration,r.cubicBezier,r.delay,"opacity");return{opacity:0,position:"relative",transition:"".concat(a,", ").concat(s),left:"".concat(0<=n-t?i:-i,"px")}}function P(e,t){return{height:"".concat(t,"px"),width:h(e.width),transition:T(e.slidingExit.duration,e.slidingExit.cubicBezier,e.slidingExit.delay)}}function C(e){return(C="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,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var j=function(e){function t(e){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this,(n=!(o=R(t).call(this,e))||"object"!==C(o)&&"function"!=typeof o?x(this):o).endOfSmartSliding=!1,n.onTransitionEnd=n.onTransitionEnd.bind(x(n)),n.onNotificationClick=n.onNotificationClick.bind(x(n)),n.setDismissTimeout=n.setDismissTimeout.bind(x(n)),n.onSmartSlidingEnd=n.onSmartSlidingEnd.bind(x(n)),n.onTouchSmartSlidingEnd=n.onTouchSmartSlidingEnd.bind(x(n)),n.onTouchStart=n.onTouchStart.bind(x(n)),n.onTouchMove=n.onTouchMove.bind(x(n)),n.onTouchEnd=n.onTouchEnd.bind(x(n)),n.rootDOM=r.a.createRef(),n.state=function(e){var t,n=e.notification,o=e.isFirstNotification,r=((t=n).insert===s.TOP&&O(t.container)||t.insert===s.BOTTOM&&E(t.container))&&!o,i={};return i.animatedElementClasses=S(n),i.rootElementStyle={height:"0",marginBottom:0,overflow:"hidden",width:h(n.width)},r?i.animatedElementClasses.push("notification-invisible"):n.animationIn&&0<n.animationIn.length&&n.animationIn.forEach((function(e){return i.animatedElementClasses.push(e)})),i.hasSliding=r,i}(e),n}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(t,r.a.Component),n=t,(o=[{key:"componentDidMount",value:function(){this.smartSliding(),this.setRemovalTimeout(this.props.notification.dismiss)}},{key:"componentWillUnmount",value:function(){this.timeoutId&&(this.timeoutId=clearTimeout(this.timeoutId))}},{key:"setDismissTimeout",value:function(e){var t=this;this.timeoutId=setTimeout((function(){var e=t.props,n=e.notification,o=e.toggleTimeoutRemoval;n.stage!==p&&n.stage!==u&&t.setState({rootElementStyle:P(n,t.rootDOM.current.scrollHeight)},(function(){return requestAnimationFrame((function(){return o(n)}))}))}),e)}},{key:"setRemovalTimeout",value:function(e){e&&0<e.duration&&this.setDismissTimeout(e.duration)}},{key:"onTransitionEnd",value:function(){var e=this.props.notification,t=e.animationIn,n=S(e);n.push("notification-visible"),n=n.concat(t||[]),this.setState({animatedElementClasses:n,rootElementStyle:{height:"auto",width:h(e.width)}})}},{key:"onTouchSmartSlidingEnd",value:function(e){e.stopPropagation(),e.target.isSameNode(this.rootDOM.current)&&(this.endOfSmartSliding&&this.props.toggleRemoval(this.props.notification),this.endOfSmartSliding=!0)}},{key:"onSmartSlidingEnd",value:function(){var e=this.props.notification;e.animationOut&&e.animationOut.length&&!this.endOfSmartSliding||this.props.toggleRemoval(e),this.endOfSmartSliding=!0}},{key:"smartSliding",value:function(){var e=this.props.notification,t=e.slidingEnter,n=S(e),o={transition:e.resized?void 0:T(t.duration,t.cubicBezier,t.delay),width:h(e.width),height:"".concat(this.rootDOM.current.scrollHeight,"px")};!e.resized&&e.animationIn&&0<e.animationIn.length&&e.animationIn.forEach((function(e){return n.push(e)})),this.setState({rootElementStyle:o,animatedElementClasses:n})}},{key:"onNotificationClick",value:function(){var e=this,t=this.props.notification,n=P(t,this.rootDOM.current.scrollHeight);this.setState({rootElementStyle:n},(function(){return requestAnimationFrame((function(){e.props.onClickHandler(t)}))}))}},{key:"onTouchStart",value:function(e){this.setState({startX:e.touches[0].pageX,currentX:e.touches[0].pageX})}},{key:"onTouchMove",value:function(e){var t,n,o=this.props,r=o.notification,i=o.toggleTouchEnd,a=e.touches[0].pageX-this.state.startX;t=a,n=Math.abs(t),.4*window.innerWidth<=n?this.setState({animatedElementClasses:S(r),rootElementStyle:P(r,this.rootDOM.current.scrollHeight)},(function(){requestAnimationFrame((function(){return i(r)}))})):this.setState({currentX:e.touches[0].pageX,childElementStyle:{position:"relative",left:"".concat(0+a,"px")}})}},{key:"onTouchEnd",value:function(){var e=this.props.notification.touchSlidingBack;this.setState({childElementStyle:{left:"0",position:"relative",transition:T(e.duration,e.cubicBezier,e.delay,"left")}})}},{key:"render",value:function(){var e=this.props.notification,t=this.state.childElementStyle,n=this.onAnimationEnd,o=null,i=!1,a=this.state.hasSliding?this.onTransitionEnd:null,s=function(e,t){var n,o,r,i,a,s,l,p,f,d=u,m=c,y=t.animatedElementClasses,b=t.rootElementStyle,g=t.currentX,v=t.startX;return e.stage===d?(i=g,a=v,s=S(r=e),{childElementStyle:N(r,a,i),animatedElementClasses:s,rootElementStyle:{height:0,marginBottom:0,transition:k(r),width:h(r.width)}}):e.stage===m?(p=(l=e).animationOut,f=S(l),p&&p.forEach((function(e){return f.push(e)})),{rootElementStyle:{height:0,marginBottom:0,transition:k(l),width:h(l.width)},animatedElementClasses:f}):(n=e.resized?(o=b,S(e)):(o=b,y),{rootElementStyle:o,animatedElementClasses:n})}(e,this.state),l=(s.animatedElementClasses||[]).join(" "),f=s.rootElementStyle;if(e.dismissable.click&&(o=this.onNotificationClick),e.stage===p?(n=null,f=P(e,this.rootDOM.current.scrollHeight)):e.stage===c?(n=this.onSmartSlidingEnd,a=this.onSmartSlidingEnd):e.stage===u&&(n=this.onTouchSmartSlidingEnd,a=this.onTouchSmartSlidingEnd,o=null,t=s.childElementStyle,i=!0),e.content)return r.a.createElement("div",{onTouchStart:i?null:this.onTouchStart,onTouchMove:i?null:this.onTouchMove,onTouchEnd:i?null:this.onTouchEnd,onTouchCancel:i?null:this.onTouchEnd,onClick:o,className:"notification-item-root",onAnimationEnd:n,onTransitionEnd:a,ref:this.rootDOM,style:f},r.a.createElement("div",{className:"".concat(l," notification-item-child"),style:t},e.content));var d,m,y,b=r.a.createElement("div",{className:"notification-close",onClick:this.onNotificationClick},r.a.createElement("span",null,"Ć")),g=e.dismissIcon?(d=e,m=this.onNotificationClick,d.dismissIcon?r.a.createElement("div",{className:d.dismissIcon.className,onClick:m},d.dismissIcon.content):r.a.createElement("div",{className:"notification-close",onClick:m},r.a.createElement("span",null,"Ć"))):b;return e.title&&(y=r.a.createElement("h4",{className:"notification-title"},e.title)),r.a.createElement("div",{onTouchStart:i?null:this.onTouchStart,onTouchMove:i?null:this.onTouchMove,onTouchEnd:i?null:this.onTouchEnd,onTouchCancel:i?null:this.onTouchEnd,onClick:o,className:"notification-item-root",onAnimationEnd:n,onTransitionEnd:a,ref:this.rootDOM,style:f},r.a.createElement("div",{className:"".concat(l," notification-item-child"),style:t},r.a.createElement("div",{className:"notification-content"},g,y,r.a.createElement("p",{className:"notification-message"},this.props.notification.message))))}}])&&I(n.prototype,o),t}(),M=n(1),A=n.n(M);function L(e){return(L="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 D(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function B(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n(4);var W=function(e){function t(e){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this,(n=!(o=F(t).call(this,e))||"object"!==L(o)&&"function"!=typeof o?q(this):o).state={isMobile:e.isMobile,breakpoint:e.breakpoint,notifications:[]},v(e.types)&&(n.state.userDefinedTypes=e.types),n.addNotification=n.addNotification.bind(q(n)),n.onNotificationClick=n.onNotificationClick.bind(q(n)),n.toggleRemoval=n.toggleRemoval.bind(q(n)),n.toggleTimeoutRemoval=n.toggleTimeoutRemoval.bind(q(n)),n.handleResize=n.handleResize.bind(q(n)),n.renderReactNotifications=n.renderReactNotifications.bind(q(n)),n.toggleTouchEnd=n.toggleTouchEnd.bind(q(n)),n}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(t,r.a.Component),n=t,(o=[{key:"componentDidMount",value:function(){var e=this;this.setState({width:window.innerWidth},(function(){window.addEventListener("resize",e.handleResize)}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"handleResize",value:function(){this.setState({width:window.innerWidth,notifications:this.state.notifications.map((function(e){return e.resized=!0,e}))})}},{key:"toggleTimeoutRemoval",value:function(e){var t=c,n=f.TIMEOUT;this.setState({notifications:this.state.notifications.map((function(o){return o.id===e.id&&(o.stage=t,o.removedBy=n),o}))})}},{key:"addNotification",value:function(e){var t=function(e,t){var n=e,o=n.insert,i=n.container,a=n.dismissIcon,s=n.animationIn,c=n.animationOut,u=n.slidingEnter,p=n.slidingExit,f=n.touchSlidingBack,h=n.touchSlidingExit,E=n.dismissable,O=n.dismiss,S=n.width,T=n.id;return n.id=T||Math.random().toString(36).substr(2,9),function(e){var t=e.content,n=e.title;if(!t&&!m(n)&&!y(n))throw new Error(d.TITLE_STRING)}(n),function(e){var t=e.content,n=e.message;if(!t){if(!n)throw new Error(d.MESSAGE_REQUIRED);if(!y(n))throw new Error(d.MESSAGE_STRING)}}(n),n.type=function(e,t){var n=e.content,o=e.type;if(!n){if(!o)throw new Error(d.TYPE_REQUIRED);if(!y(o))throw new Error(d.TYPE_STRING);if(!t&&o!==l.SUCCESS&&o!==l.DANGER&&o!==l.INFO&&o!==l.DEFAULT&&o!==l.WARNING)throw new Error(d.TYPE_NOT_EXISTENT);return o.toLowerCase()}}(n,t),t&&!n.content&&(n.userDefinedTypes=function(e,t){var n=e.type;if(!e.content&&n!==l.SUCCESS&&n!==l.DANGER&&n!==l.INFO&&n!==l.DEFAULT&&n!==l.WARNING&&t){if(!t.find((function(e){return e.name===n})))throw new Error(d.TYPE_NOT_FOUND);return t}}(n,t)),n.container=function(e){if(!e)throw new Error(d.CONTAINER_REQUIRED);if(!y(e))throw new Error(d.CONTAINER_STRING);return e.toLowerCase()}(i),n.insert=function(e){if(!e)return"top";if(!y(e))throw new Error(d.INSERT_STRING);return e.toLowerCase()}(o),n.dismissable=function(e){var t=e;if(!t)return{click:!0,touch:!0};if(m(t.click)&&(t.click=!0),m(t.touch)&&(t.touch=!0),!g(t.click))throw new Error(d.DISMISSABLE_CLICK_BOOL);if(!g(t.touch))throw new Error(d.DISMISSABLE_TOUCH_BOOL);return t}(E),function(e){if(!m(e)){var t=e.className,n=e.content;if(!t)throw new Error(d.DISMISS_ICON_CLASS);if(!y(t))throw new Error(d.DISMISS_ICON_STRING);if(!n)throw new Error(d.DISMISS_ICON_CONTENT);if(!r.a.isValidElement(n))throw new Error(d.DISMISS_ICON_INVALID)}}(a),n.animationIn=function(e){if(m(e))return[];if(!v(e))throw new Error(d.ANIMATION_IN);return e}(s),n.animationOut=function(e){if(m(e))return[];if(!v(e))throw new Error(d.ANIMATION_OUT);return e}(c),m(S)||(n.width=function(e){if(m(e))return 0;if(!b(e))throw new Error(d.WIDTH_NUMBER);return e}(S)),n.slidingEnter=w(u,{duration:600,cubicBezier:"linear",delay:0}),n.slidingExit=w(p,{duration:600,cubicBezier:"linear",delay:0}),n.touchSlidingBack=w(f,{duration:600,cubicBezier:"ease-in",delay:0}),n.touchSlidingExit=h||{},n.touchSlidingExit.swipe=w(n.touchSlidingExit.swipe||{},{duration:600,cubicBezier:"ease-in",delay:0}),n.touchSlidingExit.fade=w(n.touchSlidingExit.fade||{},{duration:300,cubicBezier:"ease-in",delay:0}),function(e){if(e){if(m(e.duration))throw new Error(d.DISMISS_REQUIRED);if(!b(e.duration))throw new Error(d.DISMISS_NUMBER);if(e.duration<0)throw new Error(d.DISMISS_POSITIVE)}}(O),n}(e,this.state.userDefinedTypes);return this.setState((function(e){return{notifications:t.insert===s.TOP?[t].concat(D(e.notifications)):[].concat(D(e.notifications),[t])}})),t.id}},{key:"removeNotification",value:function(e){var t=this;this.setState({notifications:this.state.notifications.map((function(t){return t.id===e&&(t.stage=p,t.removedBy=f.API),t}))},(function(){requestAnimationFrame((function(){t.setState({notifications:t.state.notifications.map((function(t){return t.id===e&&(t.stage=c,t.removedBy=f.API),t}))})}))}))}},{key:"onNotificationClick",value:function(e){var t=this,n=e.dismissable,o=e.dismissIcon;(n&&n.click||o)&&requestAnimationFrame((function(){t.setState({notifications:t.state.notifications.map((function(t){return t.id===e.id&&(t.stage=c,t.removedBy=f.CLICK),t}))})}))}},{key:"toggleTouchEnd",value:function(e){var t=u;this.setState({notifications:this.state.notifications.map((function(n){return n.id===e.id&&(n.stage=t,n.removedBy=f.TOUCH),n}))})}},{key:"toggleRemoval",value:function(e){var t=this;this.setState({notifications:this.state.notifications.filter((function(t){return t.id!==e.id}))},(function(){t.props.onNotificationRemoval&&t.props.onNotificationRemoval(e.id,e.removedBy)}))}},{key:"renderReactNotifications",value:function(e){var t=this;return e.map((function(n){return r.a.createElement(j,{key:n.id,notification:n,isFirstNotification:1===e.length,onClickHandler:t.onNotificationClick,toggleRemoval:t.toggleRemoval,toggleTimeoutRemoval:t.toggleTimeoutRemoval,toggleTouchEnd:t.toggleTouchEnd})}))}},{key:"render",value:function(){var e,t,n,o=this.state;if(this.props.isMobile&&o.width<=o.breakpoint){var i=(e=o.notifications,t=[],n=[],e.forEach((function(e){var o=e.container.toLowerCase();if(O(o))n.push(e);else{if(!E(o))throw new Error("Container ".concat(e.container," is not valid"));t.push(e)}})),{top:n,bottom:t}),s=this.renderReactNotifications(i.top),l=this.renderReactNotifications(i.bottom);return r.a.createElement("div",{className:"react-notification-root"},r.a.createElement("div",{className:"notification-container-mobile-top"},s),r.a.createElement("div",{className:"notification-container-mobile-bottom"},l))}var c,u,p,f,d,h,m,y=(c=o.notifications,u=[],p=[],f=[],d=[],h=[],m=[],c.forEach((function(e){var t=e.container.toLowerCase();if(t===a.TOP_LEFT)u.push(e);else if(t===a.TOP_RIGHT)p.push(e);else if(t===a.TOP_CENTER)f.push(e);else if(t===a.BOTTOM_LEFT)d.push(e);else if(t===a.BOTTOM_RIGHT)h.push(e);else{if(t!==a.BOTTOM_CENTER)throw new Error("Container ".concat(e.container," is not valid"));m.push(e)}})),{topLeft:u,topRight:p,topCenter:f,bottomLeft:d,bottomRight:h,bottomCenter:m}),b=this.renderReactNotifications(y.topLeft),g=this.renderReactNotifications(y.topRight),v=this.renderReactNotifications(y.topCenter),w=this.renderReactNotifications(y.bottomLeft),S=this.renderReactNotifications(y.bottomRight),T=this.renderReactNotifications(y.bottomCenter);return r.a.createElement("div",{className:"react-notification-root"},r.a.createElement("div",{className:"notification-container-top-left"},b),r.a.createElement("div",{className:"notification-container-top-right"},g),r.a.createElement("div",{className:"notification-container-bottom-left"},w),r.a.createElement("div",{className:"notification-container-bottom-right"},S),r.a.createElement("div",{className:"notification-container-top-center"},v),r.a.createElement("div",{className:"notification-container-bottom-center"},T))}}])&&B(n.prototype,o),t}();W.propTypes={isMobile:A.a.bool,breakpoint:A.a.number,types:A.a.array,onNotificationRemoval:A.a.func},W.defaultProps={isMobile:!0,breakpoint:768},t.default=W}])},function(e,t,n){},function(e,t,n){"use strict";var o=n(21);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
/** @license React v16.11.0
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,u=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,f=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116,g=o?Symbol.for("react.fundamental"):60117,v=o?Symbol.for("react.responder"):60118,w=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case p:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case c:return e;default:return t}}case b:case y:case i:return t}}}function O(e){return E(e)===f}t.typeOf=E,t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=b,t.Memo=y,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===g||e.$$typeof===v||e.$$typeof===w)},t.isAsyncMode=function(e){return O(e)||E(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===b},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(19);var o=n(1),r=n.n(o),i=n(0),a=n.n(i),s=n(6),l=n(2),c=n.n(l),u=n(5),p=n.n(u),f=n(9),d=n.n(f),h=n(15),m=n.n(h),y=n(7),b=n.n(y),g=n(10),v=n.n(g),w=n(8),E=n(4),O=n.n(E),S=n(16);function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function N(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function I(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(n,!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(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&&j(e,t)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?A(e):t}var D={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},B="tour:start",F="step:before",q="beacon",U="tooltip",W="step:after",z="tour:end",H="tour:status",G="error:target_not_found",V={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Y={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},K=d.a.canUseDOM,$=void 0!==u.createPortal;function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e;return"undefined"==typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.indexOf(" OPR/")>=0?t="opera":void 0!==window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function J(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Q(e){var t=[];return function e(n){if("string"==typeof n||"number"==typeof n)t.push(n);else if(Array.isArray(n))n.forEach((function(t){return e(t)}));else if(n&&n.props){var o=n.props.children;Array.isArray(o)?o.forEach((function(t){return e(t)})):e(o)}}(e),t.join(" ").trim()}function Z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ee(e){return e.disableBeacon||"center"===e.placement}function te(){return!["chrome","safari","firefox","opera"].includes(X())}function ne(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){c.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var oe={action:"",controlled:!1,index:0,lifecycle:V.INIT,size:0,status:Y.IDLE},re=["action","index","lifecycle","status"];function ie(e){var t=new Map,n=new Map;return new(function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o.continuous,i=void 0!==r&&r,a=o.stepIndex,s=o.steps,l=void 0===s?[]:s;T(this,e),P(this,"listener",void 0),P(this,"setSteps",(function(e){var o=t.getState(),r=o.size,i=o.status,a={size:e.length,status:i};n.set("steps",e),i===Y.WAITING&&!r&&e.length&&(a.status=Y.RUNNING),t.setState(a)})),P(this,"addListener",(function(e){t.listener=e})),P(this,"update",(function(e){if(n=e,o=re,!(c.a.plainObject(n)&&c.a.array(o)&&Object.keys(n).every((function(e){return o.includes(e)}))))throw new Error("State is not valid. Valid keys: ".concat(re.join(", ")));var n,o;t.setState(R({},t.getNextState(R({},t.getState(),{},e,{action:e.action||D.UPDATE}),!0)))})),P(this,"start",(function(e){var n=t.getState(),o=n.index,r=n.size;t.setState(R({},t.getNextState({action:D.START,index:c.a.number(e)?e:o},!0),{status:r?Y.RUNNING:Y.WAITING}))})),P(this,"stop",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.index,r=n.status;[Y.FINISHED,Y.SKIPPED].includes(r)||t.setState(R({},t.getNextState({action:D.STOP,index:o+(e?1:0)}),{status:Y.PAUSED}))})),P(this,"close",(function(){var e=t.getState(),n=e.index;e.status===Y.RUNNING&&t.setState(R({},t.getNextState({action:D.CLOSE,index:n+1})))})),P(this,"go",(function(e){var n=t.getState(),o=n.controlled,r=n.status;if(!o&&r===Y.RUNNING){var i=t.getSteps()[e];t.setState(R({},t.getNextState({action:D.GO,index:e}),{status:i?r:Y.FINISHED}))}})),P(this,"info",(function(){return t.getState()})),P(this,"next",(function(){var e=t.getState(),n=e.index;e.status===Y.RUNNING&&t.setState(t.getNextState({action:D.NEXT,index:n+1}))})),P(this,"open",(function(){t.getState().status===Y.RUNNING&&t.setState(R({},t.getNextState({action:D.UPDATE,lifecycle:V.TOOLTIP})))})),P(this,"prev",(function(){var e=t.getState(),n=e.index;e.status===Y.RUNNING&&t.setState(R({},t.getNextState({action:D.PREV,index:n-1})))})),P(this,"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.controlled;o||t.setState(R({},t.getNextState({action:D.RESET,index:0}),{status:e?Y.RUNNING:Y.READY}))})),P(this,"skip",(function(){t.getState().status===Y.RUNNING&&t.setState({action:D.SKIP,lifecycle:V.INIT,status:Y.SKIPPED})})),this.setState({action:D.INIT,controlled:c.a.number(a),continuous:i,index:c.a.number(a)?a:0,lifecycle:V.INIT,status:l.length?Y.READY:Y.IDLE},!0),this.setSteps(l)}return N(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getState(),r=R({},o,{},e),i=r.action,a=r.index,s=r.lifecycle,l=r.size,c=r.status;t.set("action",i),t.set("index",a),t.set("lifecycle",s),t.set("size",l),t.set("status",c),n&&(t.set("controlled",e.controlled),t.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(o)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:R({},oe)}},{key:"getNextState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getState(),o=n.action,r=n.controlled,i=n.index,a=n.size,s=n.status,l=c.a.number(e.index)?e.index:i,u=r&&!t?i:Math.min(Math.max(l,0),a);return{action:e.action||o,controlled:r,index:u,lifecycle:e.lifecycle||V.INIT,size:e.size||a,status:u===a?Y.FINISHED:e.status||s}}},{key:"hasUpdatedState",value:function(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}},{key:"getSteps",value:function(){var e=n.get("steps");return Array.isArray(e)?e:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),e}())(e)}function ae(e){return e?e.getBoundingClientRect():{}}function se(e){return"string"==typeof e?document.querySelector(e):e}function le(e,t,n){var o=v()(e);return o.isSameNode(b()())?n?document:b()():o.scrollHeight>o.offsetHeight||t?o:(o.style.overflow="initial",b()())}function ce(e,t){return!!e&&!le(e,t).isSameNode(b()())}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fixed";if(!(e&&e instanceof HTMLElement))return!1;var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&(function(e){return e&&1===e.nodeType?getComputedStyle(e):{}}(e).position===t||ue(e.parentNode,t))}function pe(e,t,n){if(!e)return 0;var o=v()(e),r=e.offsetTop;return ce(e,n)&&!function(e){return e.offsetParent!==document.body}(e)&&(r-=o.offsetTop),Math.floor(r-t)}var fe=function(e){function t(t,n,o,r,i,a){var s=r||"<<anonymous>>",l=a||o;if(null==n[o])return t?new Error("Required ".concat(i," `").concat(l,"` was not specified in `").concat(s,"`.")):null;for(var c=arguments.length,u=new Array(c>6?c-6:0),p=6;p<c;p++)u[p-6]=arguments[p];return e.apply(void 0,[n,o,s,i,l].concat(u))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}((function(e,t,n,o,i){var a=e[t],s=a;if(!r.a.isValidElement(a)&&Object(w.isValidElementType)(a)){s=r.a.createElement(s,{ref:function(){},step:{}})}if(c.a.string(a)||c.a.number(a)||!Object(w.isValidElementType)(a)||![w.Element,w.ForwardRef].includes(Object(w.typeOf)(s)))return new Error("Invalid ".concat(o," `").concat(i,"` supplied to `").concat(n,"`. Expected a React class or forwardRef."))})),de={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},he={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},me={borderRadius:4,position:"absolute"};var ye={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function be(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter((function(e){return t.includes(e)})).reduce((function(t,n){return t[n]=e[n],t}),{})}function ge(e,t){if(!e)return null;var n=O.a.all([be(t),ye.step,e],{isMergeableObject:c.a.plainObject}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=O()(de,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth<t.width?window.innerWidth-30:t.width);var o,r,i,a={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},s={beacon:R({},he,{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat((o=t.primaryColor,r=o.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),i?[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)]:[]).join(","),", 0.2)"),border:"2px solid ".concat(t.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:R({},he,{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:R({},he,{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:R({},he,{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:R({},he,{color:t.textColor,fontSize:14}),overlay:R({},a,{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:R({},a),overlayLegacyCenter:R({},a,{backgroundColor:t.overlayColor}),spotlight:R({},me,{backgroundColor:"gray"}),spotlightLegacy:R({},me,{boxShadow:"0 0 0 9999px ".concat(t.overlayColor,", ").concat(t.spotlightShadow)}),floaterStyles:{arrow:{color:t.arrowColor},options:{zIndex:t.zIndex}},options:t};return O()(s,e)}(O()(t.styles||{},e.styles||{})),r=ce(se(e.target),n.disableScrollParentFix),i=O.a.all([t.floaterProps||{},ye.floaterProps,n.floaterProps||{}]);return i.offset=n.offset,i.styles=O()(i.styles||{},o.floaterStyles||{}),delete o.floaterStyles,i.offset+=t.spotlightPadding||e.spotlightPadding,e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),r&&(i.options.preventOverflow.boundariesElement="window"),R({},n,{locale:O.a.all([ye.locale,t.locale||{},n.locale||{}]),floaterProps:i,styles:o})}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return c.a.plainObject(e)?!!e.target||(ne({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(ne({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function we(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return c.a.array(e)?e.every((function(e){return ve(e,t)})):(ne({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Ee=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(T(this,e),P(this,"element",void 0),P(this,"options",void 0),P(this,"canBeTabbed",(function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e,!0)})),P(this,"canHaveFocus",(function(e,t){var o=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(o)&&!e.getAttribute("disabled")||"a"===o&&e.getAttribute("href")||t)&&n.isVisible(e)})),P(this,"findValidTabElements",(function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)})),P(this,"handleKeyDown",(function(e){var t=n.options.keyCode,o=void 0===t?9:t;e.keyCode===o&&n.interceptTab(e)})),P(this,"interceptTab",(function(e){e.preventDefault();var t=n.findValidTabElements(),o=e.shiftKey;if(t.length){var r=t.indexOf(document.activeElement);-1===r||!o&&r+1===t.length?r=0:o&&0===r?r=t.length-1:r+=o?-1:1,t[r].focus()}})),P(this,"isHidden",(function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||(t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display"))})),P(this,"isVisible",(function(e){for(var t=e;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(n.isHidden(t))return!1;t=t.parentNode}return!0})),P(this,"removeScope",(function(){window.removeEventListener("keydown",n.handleKeyDown)})),P(this,"setFocus",(function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&t.focus()}})),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=o,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()},Oe=function(e){function t(e){var n;if(T(this,t),P(A(n=L(this,_(t).call(this,e))),"setBeaconRef",(function(e){n.beacon=e})),!e.beaconComponent){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.id="joyride-beacon-animation",r.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),o.appendChild(r)}return n}return x(t,e),N(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout((function(){c.a.domElement(e.beacon)&&t&&e.beacon.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById("joyride-beacon-animation");e&&e.parentNode.removeChild(e)}},{key:"render",value:function(){var e,t=this.props,n=t.beaconComponent,o=t.locale,i=t.onClickOrHover,a=t.styles,s={"aria-label":o.open,onClick:i,onMouseEnter:i,ref:this.setBeaconRef,title:o.open};if(n){var l=n;e=r.a.createElement(l,s)}else e=r.a.createElement("button",C({key:"JoyrideBeacon",className:"react-joyride__beacon",style:a.beacon,type:"button","data-test-id":"button-beacon"},s),r.a.createElement("span",{style:a.beaconInner}),r.a.createElement("span",{style:a.beaconOuter}));return e}}]),t}(r.a.Component);P(Oe,"propTypes",{beaconComponent:fe,locale:a.a.object.isRequired,onClickOrHover:a.a.func.isRequired,shouldFocus:a.a.bool.isRequired,styles:a.a.object.isRequired});var Se=function(e){var t=e.styles;return r.a.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})};Se.propTypes={styles:a.a.object.isRequired};var Te=function(e){function t(){var e,n;T(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(A(n=L(this,(e=_(t)).call.apply(e,[this].concat(r)))),"_isMounted",!1),P(A(n),"state",{mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:!0}),P(A(n),"handleMouseMove",(function(e){var t=n.state.mouseOverSpotlight,o=n.spotlightStyles,r=o.height,i=o.left,a=o.position,s=o.top,l=o.width,c="fixed"===a?e.clientY:e.pageY,u="fixed"===a?e.clientX:e.pageX,p=u>=i&&u<=i+l&&(c>=s&&c<=s+r);p!==t&&n.updateState({mouseOverSpotlight:p})})),P(A(n),"handleScroll",(function(){var e=se(n.props.target);n.scrollParent!==document?(n.state.isScrolling||n.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(n.scrollTimeout),n.scrollTimeout=setTimeout((function(){n.updateState({isScrolling:!1,showSpotlight:!0})}),50)):ue(e,"sticky")&&n.updateState({})})),P(A(n),"handleResize",(function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout((function(){n._isMounted&&n.forceUpdate()}),100)})),n}return x(t,e),N(t,[{key:"componentDidMount",value:function(){var e=this.props,t=(e.debug,e.disableScrolling,e.disableScrollParentFix),n=se(e.target);this.scrollParent=le(n,t,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,o=n.lifecycle,r=n.spotlightClicks,i=Object(s.a)(e,this.props),a=i.changed;(0,i.changedTo)("lifecycle",V.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((function(){t.state.isScrolling||t.updateState({showSpotlight:!0})}),100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(r&&o===V.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==V.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"updateState",value:function(e){this._isMounted&&this.setState(e)}},{key:"render",value:function(){var e=this.state,t=e.mouseOverSpotlight,n=e.showSpotlight,o=this.props,i=o.disableOverlay,a=o.lifecycle,s=o.onClickOverlay,l=o.placement,c=o.styles;if(i||a!==V.TOOLTIP)return null;var u=c.overlay;te()&&(u="center"===l?c.overlayLegacyCenter:c.overlayLegacy);var p,f,d,h=R({cursor:"pointer",height:(p=document,f=p.body,d=p.documentElement,f&&d?Math.max(f.scrollHeight,f.offsetHeight,d.clientHeight,d.scrollHeight,d.offsetHeight):0),pointerEvents:t?"none":"auto"},u),m="center"!==l&&n&&r.a.createElement(Se,{styles:this.spotlightStyles});if("safari"===X()){h.mixBlendMode,h.zIndex;var y=M(h,["mixBlendMode","zIndex"]);m=r.a.createElement("div",{style:R({},y)},m),delete h.backgroundColor}return r.a.createElement("div",{className:"react-joyride__overlay",style:h,onClick:s},m)}},{key:"spotlightStyles",get:function(){var e=this.state.showSpotlight,t=this.props,n=t.disableScrollParentFix,o=t.spotlightClicks,r=t.spotlightPadding,i=t.styles,a=se(t.target),s=ae(a),l=ue(a),c=function(e,t,n){var o=ae(e),r=le(e,n),i=ce(e,n),a=0;r instanceof HTMLElement&&(a=r.scrollTop);var s=o.top+(i||ue(e)?0:a);return Math.floor(s-t)}(a,r,n);return R({},te()?i.spotlightLegacy:i.spotlight,{height:Math.round(s.height+2*r),left:Math.round(s.left-r),opacity:e?1:0,pointerEvents:o?"none":"auto",position:l?"fixed":"absolute",top:c,transition:"opacity 0.2s",width:Math.round(s.width+2*r)})}}]),t}(r.a.Component);P(Te,"propTypes",{debug:a.a.bool.isRequired,disableOverlay:a.a.bool.isRequired,disableScrolling:a.a.bool.isRequired,disableScrollParentFix:a.a.bool.isRequired,lifecycle:a.a.string.isRequired,onClickOverlay:a.a.func.isRequired,placement:a.a.string.isRequired,spotlightClicks:a.a.bool.isRequired,spotlightPadding:a.a.number,styles:a.a.object.isRequired,target:a.a.oneOfType([a.a.object,a.a.string]).isRequired});var ke=function(e){var t=e.styles,n=M(e,["styles"]),o=t.color,i=t.height,a=t.width,s=M(t,["color","height","width"]);return r.a.createElement("button",C({style:s,type:"button"},n),r.a.createElement("svg",{width:"number"==typeof a?"".concat(a,"px"):a,height:"number"==typeof i?"".concat(i,"px"):i,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.a.createElement("g",null,r.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))};ke.propTypes={styles:a.a.object.isRequired};var Ne=function(e){function t(){return T(this,t),L(this,_(t).apply(this,arguments))}return x(t,e),N(t,[{key:"render",value:function(){var e=this.props,t=e.backProps,n=e.closeProps,o=e.continuous,i=e.index,a=e.isLastStep,s=e.primaryProps,l=e.size,c=e.skipProps,u=e.step,p=e.tooltipProps,f=u.content,d=u.hideBackButton,h=u.hideCloseButton,m=u.hideFooter,y=u.showProgress,b=u.showSkipButton,g=u.title,v=u.styles,w=u.locale,E=w.back,O=w.close,S=w.last,T=w.next,k=w.skip,N={primary:O};return o&&(N.primary=a?S:T,y&&(N.primary=r.a.createElement("span",null,N.primary," (",i+1,"/",l,")"))),b&&!a&&(N.skip=r.a.createElement("button",C({style:v.buttonSkip,type:"button","data-test-id":"button-skip","aria-live":"off"},c),k)),!d&&i>0&&(N.back=r.a.createElement("button",C({style:v.buttonBack,type:"button","data-test-id":"button-back"},t),E)),N.close=!h&&r.a.createElement(ke,C({styles:v.buttonClose,"data-test-id":"button-close"},n)),r.a.createElement("div",C({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:v.tooltip},p),r.a.createElement("div",{style:v.tooltipContainer},g&&r.a.createElement("h4",{style:v.tooltipTitle,"aria-label":g},g),r.a.createElement("div",{style:v.tooltipContent},f)),!m&&r.a.createElement("div",{style:v.tooltipFooter},r.a.createElement("div",{style:v.tooltipFooterSpacer},N.skip),N.back,r.a.createElement("button",C({style:v.buttonNext,type:"button","data-test-id":"button-primary"},s),N.primary)),N.close)}}]),t}(r.a.Component);P(Ne,"propTypes",{backProps:a.a.object.isRequired,closeProps:a.a.object.isRequired,continuous:a.a.bool.isRequired,index:a.a.number.isRequired,isLastStep:a.a.bool.isRequired,primaryProps:a.a.object.isRequired,size:a.a.number.isRequired,skipProps:a.a.object.isRequired,step:a.a.object.isRequired,tooltipProps:a.a.object.isRequired});var Pe=function(e){function t(){var e,n;T(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(A(n=L(this,(e=_(t)).call.apply(e,[this].concat(r)))),"handleClickBack",(function(e){e.preventDefault(),n.props.helpers.prev()})),P(A(n),"handleClickClose",(function(e){e.preventDefault(),n.props.helpers.close()})),P(A(n),"handleClickPrimary",(function(e){e.preventDefault();var t=n.props,o=t.continuous,r=t.helpers;o?r.next():r.close()})),P(A(n),"handleClickSkip",(function(e){e.preventDefault(),n.props.helpers.skip()})),P(A(n),"getElementsProps",(function(){var e=n.props,t=e.continuous,o=e.isLastStep,r=e.setTooltipRef,i=e.step,a=Q(i.locale.back),s=Q(i.locale.close),l=Q(i.locale.last),c=Q(i.locale.next),u=Q(i.locale.skip),p=t?c:s;return o&&(p=l),{backProps:{"aria-label":a,"data-action":"back",onClick:n.handleClickBack,role:"button",title:a},closeProps:{"aria-label":s,"data-action":"close",onClick:n.handleClickClose,role:"button",title:s},primaryProps:{"aria-label":p,"data-action":"primary",onClick:n.handleClickPrimary,role:"button",title:p},skipProps:{"aria-label":u,"data-action":"skip",onClick:n.handleClickSkip,role:"button",title:u},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})),n}return x(t,e),N(t,[{key:"render",value:function(){var e,t=this.props,n=t.continuous,o=t.index,i=t.isLastStep,a=t.size,s=t.step,l=(s.beaconComponent,s.tooltipComponent),c=M(s,["beaconComponent","tooltipComponent"]);if(l){var u=R({},this.getElementsProps(),{continuous:n,index:o,isLastStep:i,size:a,step:c}),p=l;e=r.a.createElement(p,u)}else e=r.a.createElement(Ne,C({},this.getElementsProps(),{continuous:n,index:o,isLastStep:i,size:a,step:s}));return e}}]),t}(r.a.Component);P(Pe,"propTypes",{continuous:a.a.bool.isRequired,helpers:a.a.object.isRequired,index:a.a.number.isRequired,isLastStep:a.a.bool.isRequired,setTooltipRef:a.a.func.isRequired,size:a.a.number.isRequired,step:a.a.object.isRequired});var Ce=function(e){function t(e){var n;return T(this,t),n=L(this,_(t).call(this,e)),K?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),document.body.appendChild(n.node),n):L(n)}return x(t,e),N(t,[{key:"componentDidMount",value:function(){K&&($||this.renderReact15())}},{key:"componentDidUpdate",value:function(){K&&($||this.renderReact15())}},{key:"componentWillUnmount",value:function(){K&&this.node&&($||p.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderReact15",value:function(){if(!K)return null;var e=this.props.children;return p.a.unstable_renderSubtreeIntoContainer(this,e,this.node),null}},{key:"renderReact16",value:function(){if(!K||!$)return null;var e=this.props.children;return p.a.createPortal(e,this.node)}},{key:"render",value:function(){return $?this.renderReact16():null}}]),t}(r.a.Component);P(Ce,"propTypes",{children:a.a.element,id:a.a.oneOfType([a.a.string,a.a.number])});var Ie=function(e){function t(){var e,n;T(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(A(n=L(this,(e=_(t)).call.apply(e,[this].concat(r)))),"scope",{removeScope:function(){}}),P(A(n),"handleClickHoverBeacon",(function(e){var t=n.props,o=t.step,r=t.update;"mouseenter"===e.type&&"hover"!==o.event||r({lifecycle:V.TOOLTIP})})),P(A(n),"handleClickOverlay",(function(){var e=n.props,t=e.helpers;e.step.disableOverlayClose||t.close()})),P(A(n),"setTooltipRef",(function(e){n.tooltip=e})),P(A(n),"setPopper",(function(e,t){var o=n.props,r=o.action,i=o.setPopper,a=o.update;"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e,i(e,t),n.beaconPopper&&n.tooltipPopper&&a({action:r===D.CLOSE?D.CLOSE:r,lifecycle:V.READY})})),n}return x(t,e),N(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.debug,n=e.index;ne({title:"step:".concat(n),data:[{key:"props",value:this.props}],debug:t})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.action,o=t.callback,r=t.continuous,i=t.controlled,a=t.debug,l=t.index,c=t.lifecycle,u=t.size,p=t.status,f=t.step,d=t.update,h=Object(s.a)(e,this.props),m=h.changed,y=h.changedTo,b=h.changedFrom,g={action:n,controlled:i,index:l,lifecycle:c,size:u,status:p},v=r&&n!==D.CLOSE&&(l>0||n===D.PREV),w=m("action")||m("index")||m("lifecycle")||m("status"),E=b("lifecycle",[V.TOOLTIP,V.INIT],V.INIT);if(y("action",[D.NEXT,D.PREV,D.SKIP,D.CLOSE])&&(E||i)&&o(R({},g,{index:e.index,lifecycle:V.COMPLETE,step:e.step,type:W})),w&&f){var O=se(f.target);!!O&&function(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),o=n.display,r=n.visibility;if("none"===o||"hidden"===r)return!1}t=t.parentNode}return!0}(O)?(b("status",Y.READY,Y.RUNNING)||b("lifecycle",V.INIT,V.READY))&&o(R({},g,{step:f,type:F})):(console.warn("Target not mounted",f),o(R({},g,{type:G,step:f})),i||d({index:l+([D.PREV].includes(n)?-1:1)}))}b("lifecycle",V.INIT,V.READY)&&d({lifecycle:ee(f)||v?V.TOOLTIP:V.BEACON}),m("index")&&ne({title:"step:".concat(c),data:[{key:"props",value:this.props}],debug:a}),y("lifecycle",V.BEACON)&&o(R({},g,{step:f,type:q})),y("lifecycle",V.TOOLTIP)&&(o(R({},g,{step:f,type:U})),this.scope=new Ee(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),b("lifecycle",[V.TOOLTIP,V.INIT],V.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.debug,o=e.helpers,i=e.index,a=e.lifecycle,s=e.shouldScroll,l=e.size,u=e.step,p=se(u.target);return ve(u)&&c.a.domElement(p)?r.a.createElement("div",{key:"JoyrideStep-".concat(i),className:"react-joyride__step"},r.a.createElement(Ce,{id:"react-joyride-portal"},r.a.createElement(Te,C({},u,{debug:n,lifecycle:a,onClickOverlay:this.handleClickOverlay}))),r.a.createElement(S.a,C({component:r.a.createElement(Pe,{continuous:t,helpers:o,index:i,isLastStep:i+1===l,setTooltipRef:this.setTooltipRef,size:l,step:u}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(i),isPositioned:u.isFixed||ue(p),open:this.open,placement:u.placement,target:u.target},u.floaterProps),r.a.createElement(Oe,{beaconComponent:u.beaconComponent,locale:u.locale,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:s,styles:u.styles}))):null}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!ee(t)&&n!==V.TOOLTIP)}}]),t}(r.a.Component);P(Ie,"propTypes",{action:a.a.string.isRequired,callback:a.a.func.isRequired,continuous:a.a.bool.isRequired,controlled:a.a.bool.isRequired,debug:a.a.bool.isRequired,helpers:a.a.object.isRequired,index:a.a.number.isRequired,lifecycle:a.a.string.isRequired,setPopper:a.a.func.isRequired,shouldScroll:a.a.bool.isRequired,size:a.a.number.isRequired,status:a.a.string.isRequired,step:a.a.shape({beaconComponent:fe,content:a.a.node.isRequired,disableBeacon:a.a.bool,disableOverlay:a.a.bool,disableOverlayClose:a.a.bool,disableScrolling:a.a.bool,disableScrollParentFix:a.a.bool,event:a.a.string,floaterProps:a.a.shape({options:a.a.object,styles:a.a.object,wrapperOptions:a.a.object}),hideBackButton:a.a.bool,hideCloseButton:a.a.bool,hideFooter:a.a.bool,isFixed:a.a.bool,locale:a.a.object,offset:a.a.number.isRequired,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),spotlightClicks:a.a.bool,spotlightPadding:a.a.number,styles:a.a.object,target:a.a.oneOfType([a.a.object,a.a.string]).isRequired,title:a.a.node,tooltipComponent:fe}).isRequired,update:a.a.func.isRequired});var Re=function(e){function t(e){var n;return T(this,t),P(A(n=L(this,_(t).call(this,e))),"initStore",(function(){var e=n.props,t=e.debug,o=e.getHelpers,r=e.run,i=e.stepIndex;n.store=new ie(R({},n.props,{controlled:r&&c.a.number(i)})),n.helpers=n.store.getHelpers();var a=n.store.addListener;return ne({title:"init",data:[{key:"props",value:n.props},{key:"state",value:n.state}],debug:t}),a(n.syncState),o(n.helpers),n.store.getState()})),P(A(n),"callback",(function(e){var t=n.props.callback;c.a.function(t)&&t(e)})),P(A(n),"handleKeyboard",(function(e){var t=n.state,o=t.index,r=t.lifecycle,i=n.props.steps[o],a=window.Event?e.which:e.keyCode;r===V.TOOLTIP&&27===a&&i&&!i.disableCloseOnEsc&&n.store.close()})),P(A(n),"syncState",(function(e){n.setState(e)})),P(A(n),"setPopper",(function(e,t){"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e})),n.state=n.initStore(),n}return x(t,e),N(t,[{key:"componentDidMount",value:function(){if(K){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,o=e.run,r=e.steps,i=this.store.start;we(r,n)&&o&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if(K){var n=this.state,r=n.action,i=n.controlled,a=n.index,l=n.lifecycle,u=n.status,p=this.props,f=p.debug,d=p.run,h=p.stepIndex,m=p.steps,y=e.steps,b=e.stepIndex,g=this.store,v=g.setSteps,w=g.reset,E=g.start,O=g.stop,S=g.update,T=Object(s.a)(e,this.props).changed,k=Object(s.a)(t,this.state),N=k.changed,P=k.changedFrom,C=k.changedTo,I=ge(m[a],this.props),x=!function e(t,n){var r,i=Object(o.isValidElement)(t)||Object(o.isValidElement)(n),a=c.a.undefined(t)||c.a.undefined(n);if(J(t)!==J(n)||i||a)return!1;if(c.a.domElement(t))return t.isSameNode(n);if(c.a.number(t))return t===n;if(c.a.function(t))return t.toString()===n.toString();for(var s in t)if(Z(t,s)){if(void 0===t[s]||void 0===n[s])return!1;if(r=J(t[s]),["object","array"].includes(r)&&e(t[s],n[s]))continue;if("function"===r&&e(t[s],n[s]))continue;if(t[s]!==n[s])return!1}for(var l in n)if(Z(n,l)&&void 0===t[l])return!1;return!0}(y,m),_=c.a.number(h)&&T("stepIndex");if(x&&(we(m,f)?v(m):console.warn("Steps are not valid",m)),T("run")&&(d?E(h):O()),_){var j=b<h?D.NEXT:D.PREV;r===D.STOP&&(j=D.START),[Y.FINISHED,Y.SKIPPED].includes(u)||S({action:r===D.CLOSE?D.CLOSE:j,index:h,lifecycle:V.INIT})}var M=R({},this.state,{index:a,step:I});if(C("action",[D.NEXT,D.PREV,D.SKIP,D.CLOSE])&&C("status",Y.PAUSED)){var A=ge(m[t.index],this.props);this.callback(R({},M,{index:t.index,lifecycle:V.COMPLETE,step:A,type:W}))}if(C("status",[Y.FINISHED,Y.SKIPPED])){var L=ge(m[t.index],this.props);i||this.callback(R({},M,{index:t.index,lifecycle:V.COMPLETE,step:L,type:W})),this.callback(R({},M,{type:z,step:L,index:t.index})),w()}else P("status",[Y.IDLE,Y.READY],Y.RUNNING)?this.callback(R({},M,{type:B})):N("status")?this.callback(R({},M,{type:H})):C("action",D.RESET)&&this.callback(R({},M,{type:H}));I&&(this.scrollToStep(t),"center"===I.placement&&u===Y.RUNNING&&l===V.INIT&&this.store.update({lifecycle:V.READY}))}}},{key:"componentWillUnmount",value:function(){this.props.disableCloseOnEsc||document.body.removeEventListener("keydown",this.handleKeyboard)}},{key:"scrollToStep",value:function(e){var t=this.state,n=t.index,o=t.lifecycle,r=t.status,i=this.props,a=i.debug,s=i.disableScrolling,l=i.disableScrollParentFix,c=i.scrollToFirstStep,u=i.scrollOffset,p=ge(i.steps[n],this.props);if(p){var f=se(p.target),d=!s&&(0!==n||c||o===V.TOOLTIP)&&"center"!==p.placement&&(!p.isFixed||!ue(f))&&e.lifecycle!==o&&[V.BEACON,V.TOOLTIP].includes(o);if(r===Y.RUNNING&&d){var h=ce(f,l),y=le(f,l),g=Math.floor(pe(f,u,l))||0;if(ne({title:"scrollToStep",data:[{key:"index",value:n},{key:"lifecycle",value:o},{key:"status",value:r}],debug:a}),o===V.BEACON&&this.beaconPopper){var v=this.beaconPopper,w=v.placement,E=v.popper;["bottom"].includes(w)||h||(g=Math.floor(E.top-u))}else if(o===V.TOOLTIP&&this.tooltipPopper){var O=this.tooltipPopper,S=O.flipped,T=O.placement,k=O.popper;!["top","right","left"].includes(T)||S||h?g-=p.spotlightPadding:g=Math.floor(k.top-u)}g=g>=0?g:0,r===Y.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b()();new Promise((function(n,o){var r=t.scrollTop,i=e>r?e-r:r-e;m.a.top(t,e,{duration:i<100?50:300},(function(e){return e&&"Element already at target scroll position"!==e.message?o(e):n()}))}))}(g,y)}}}},{key:"render",value:function(){if(!K)return null;var e,t=this.state,n=t.index,o=t.status,i=this.props,a=i.continuous,s=i.debug,l=i.disableScrolling,c=i.scrollToFirstStep,u=ge(i.steps[n],this.props);return o===Y.RUNNING&&u&&(e=r.a.createElement(Ie,C({},this.state,{callback:this.callback,continuous:a,debug:s,setPopper:this.setPopper,helpers:this.helpers,shouldScroll:!l&&(0!==n||c),step:u,update:this.store.update}))),r.a.createElement("div",{className:"react-joyride"},e)}}]),t}(r.a.Component);P(Re,"propTypes",{beaconComponent:fe,callback:a.a.func,continuous:a.a.bool,debug:a.a.bool,disableCloseOnEsc:a.a.bool,disableOverlay:a.a.bool,disableOverlayClose:a.a.bool,disableScrolling:a.a.bool,disableScrollParentFix:a.a.bool,floaterProps:a.a.shape({options:a.a.object,styles:a.a.object,wrapperOptions:a.a.object}),getHelpers:a.a.func,hideBackButton:a.a.bool,locale:a.a.object,run:a.a.bool,scrollOffset:a.a.number,scrollToFirstStep:a.a.bool,showProgress:a.a.bool,showSkipButton:a.a.bool,spotlightClicks:a.a.bool,spotlightPadding:a.a.number,stepIndex:a.a.number,steps:a.a.array,styles:a.a.object,tooltipComponent:fe}),P(Re,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var xe=Re;function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function Me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Le(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function De(e,t){return(De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Be=wp.i18n.__,Fe=wp.components,qe=Fe.Button,Ue=Fe.Modal,We=wp.element,ze=We.Component,He=We.Fragment,Ge=function(e){function t(){var e,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(o=Ae(t).apply(this,arguments))||"object"!==_e(o)&&"function"!=typeof o?Le(n):o).skipTour=e.skipTour.bind(Le(e)),e.state={isOpen:!0,runTour:!1,steps:[{target:".otter-step-one",content:Be("Howdy, I'm Ollie The Otter! I will help you configure your Otter experience. So let's start the magic!"),disableBeacon:!0},{target:".otter-step-two",content:Be("Jazz up your blocks with some sparkly custom CSS or Blocks Animation right inside the block. Here you can enable modules to enhance your experience with Block Editor.")},{target:".otter-step-three",content:Be("Section Block is the signature feature of Otter. It allows you to build beautiful layouts right inside the Block Editor. You can set Section Block as the default block for your new Pages.")},{target:".otter-step-four",content:Be("We love maps! Here you can set your Google Maps API key for Otter's Map Block.")},{target:".otter-step-five",content:Be("If you don't have an API key, you can register one by clicking here.")},{target:".otter-step-six",content:Be("If you ever need any help, we are a team of real Otter-lovers who would love to help you out.")},{target:".otter-step-seven",content:Be("And if you love what we do, please leave us a review at WordPress.org. Your review keeps us motivated to make awesome things.")},{target:".otter-step-one",content:Be("That's it for now! Hope you enjoy Otter and love it as much as we do.")}]},e}var n,o,r,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&De(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:(i=regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:wp.api.loadPromise.then((function(){t.settings=new wp.api.models.Settings}));case 1:case"end":return e.stop()}}),e)})),a=function(){var e=this,t=arguments;return new Promise((function(n,o){var r=i.apply(e,t);function a(e){je(r,n,o,a,s,"next",e)}function s(e){je(r,n,o,a,s,"throw",e)}a(void 0)}))},function(){return a.apply(this,arguments)})},{key:"skipTour",value:function(e){var t=this;if(this.state.isOpen&&this.setState({isOpen:!1}),"finished"===e||"skipped"===e){var n=new wp.api.models.Settings({themeisle_blocks_settings_tour:!1}).save();n.success((function(e,n){t.settings.fetch()})),n.error((function(e,t){console.warning(e.responseJSON.message)}))}}},{key:"render",value:function(){var e=this;return wp.element.createElement(He,null,this.state.isOpen&&wp.element.createElement(Ue,{title:Be("Welcome to Otter!"),isDismissable:!1,className:"otter-onboarding-modal"},wp.element.createElement("div",{className:"otter-onboarding-modal-content"},Be("Would you like to start the onboarding wizard which will help you personalize the plugin for yourself?")),wp.element.createElement("div",{className:"otter-onboarding-modal-action"},wp.element.createElement(qe,{isPrimary:!0,isLarge:!0,onClick:function(){return e.setState({isOpen:!1,runTour:!0})}},Be("Start")),wp.element.createElement(qe,{isDefault:!0,isLarge:!0,onClick:function(){return e.skipTour("skipped")}},Be("Skip")))),wp.element.createElement(xe,{continuous:!0,run:this.state.runTour,steps:this.state.steps,scrollToFirstStep:!0,showSkipButton:!0,locale:{back:Be("Back"),close:Be("Close"),last:Be("Finish"),next:Be("Next"),skip:Be("Skip")},callback:function(t){return e.skipTour(t.status)}}))}}])&&Me(n.prototype,o),r&&Me(n,r),t}(ze),Ve=n(17),Ye=n.n(Ve);function Ke(e){return(Ke="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 $e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Xe(e,t){return!t||"object"!==Ke(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qe(e,t){return(Qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ze=wp.i18n.__,et=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xe(this,Je(t).apply(this,arguments))}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qe(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){return wp.element.createElement("header",{className:"otter-header"},wp.element.createElement("div",{className:Ye()("otter-container","otter-step-one")},wp.element.createElement("div",{className:"otter-logo"},wp.element.createElement("img",{src:otterObj.assetsPath+"images/logo.png",title:Ze("Gutenberg Blocks and Template Library by Otter")}),wp.element.createElement("abbr",{title:"Version: ".concat(otterObj.version),className:"version"},otterObj.version))))}}])&&$e(n.prototype,o),r&&$e(n,r),t}(wp.element.Component),tt=n(18),nt=n.n(tt);n(23);function ot(e){return(ot="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 rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function at(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function st(e){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ct(e,t){return(ct=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ut=wp.i18n.__,pt=wp.components,ft=pt.BaseControl,dt=pt.Button,ht=pt.ExternalLink,mt=pt.PanelBody,yt=pt.PanelRow,bt=pt.Placeholder,gt=pt.Spinner,vt=pt.ToggleControl,wt=wp.element,Et=wt.Component,Ot=wt.Fragment,St=function(e){function t(){var e,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(o=st(t).apply(this,arguments))||"object"!==ot(o)&&"function"!=typeof o?lt(n):o).changeOptions=e.changeOptions.bind(lt(e)),e.addNotification=e.addNotification.bind(lt(e)),e.notificationDOMRef=React.createRef(),e.state={isAPILoaded:!1,isAPISaving:!1,notification:null,cssModule:!1,blocksAnimation:!1,isDefaultSection:!0,googleMapsAPI:""},e}var n,o,r,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ct(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:(i=regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:wp.api.loadPromise.then((function(){t.settings=new wp.api.models.Settings,!1===t.state.isAPILoaded&&t.settings.fetch().then((function(e){t.setState({cssModule:Boolean(e.themeisle_blocks_settings_css_module),blocksAnimation:Boolean(e.themeisle_blocks_settings_blocks_animation),isDefaultSection:Boolean(e.themeisle_blocks_settings_default_block),googleMapsAPI:e.themeisle_google_map_block_api_key,isAPILoaded:!0})}))}));case 1:case"end":return e.stop()}}),e)})),a=function(){var e=this,t=arguments;return new Promise((function(n,o){var r=i.apply(e,t);function a(e){it(r,n,o,a,s,"next",e)}function s(e){it(r,n,o,a,s,"throw",e)}a(void 0)}))},function(){return a.apply(this,arguments)})},{key:"changeOptions",value:function(e,t,n){var o=this;this.setState({isAPISaving:!0}),this.addNotification(ut("Updating settingsā¦"),"info");var r=new wp.api.models.Settings(rt({},e,n)).save();r.success((function(n,r){o.notificationDOMRef.current.removeNotification(o.state.notification),"success"===r&&(o.setState(rt({},t,n[e])),setTimeout((function(){o.addNotification(ut("Settings saved."),"success"),o.setState({isAPISaving:!1})}),800)),"error"===r&&setTimeout((function(){o.addNotification(ut("An unknown error occurred."),"danger"),o.setState({isAPISaving:!1})}),800),o.settings.fetch()})),r.error((function(e,t){o.notificationDOMRef.current.removeNotification(o.state.notification),setTimeout((function(){o.addNotification(e.responseJSON.message?e.responseJSON.message:ut("An unknown error occurred."),"danger"),o.setState({isAPISaving:!1})}),800)}))}},{key:"addNotification",value:function(e,t){var n=this.notificationDOMRef.current.addNotification({message:e,type:t,insert:"top",container:"top-right",slidingEnter:{duration:0,delay:0},dismiss:{duration:2e3},dismissable:{click:!0}});this.setState({notification:n})}},{key:"render",value:function(){var e=this;return this.state.isAPILoaded?wp.element.createElement(Ot,null,wp.element.createElement(nt.a,{ref:this.notificationDOMRef}),wp.element.createElement("div",{className:"otter-main"},wp.element.createElement("div",{className:"otter-step-two"},wp.element.createElement(mt,{title:ut("Modules")},wp.element.createElement(yt,null,wp.element.createElement(vt,{label:ut("Enable Custom CSS Module"),help:"Custom CSS module allows to add custom CSS to each block in Block Editor.",checked:this.state.cssModule,onChange:function(){return e.changeOptions("themeisle_blocks_settings_css_module","cssModule",!e.state.cssModule)}})),wp.element.createElement(yt,null,wp.element.createElement(vt,{label:ut("Enable Blocks Animation Module"),help:"Blocks Animation module allows to add CSS animations to each block in Block Editor.",checked:this.state.blocksAnimation,onChange:function(){return e.changeOptions("themeisle_blocks_settings_blocks_animation","blocksAnimation",!e.state.blocksAnimation)}})))),wp.element.createElement("div",{className:"otter-step-three"},wp.element.createElement(mt,{title:ut("Section")},wp.element.createElement(yt,null,wp.element.createElement(vt,{label:ut("Make Section your default block for Pages"),help:"Everytime you create a new page, Section block will be appended there by default.",checked:this.state.isDefaultSection,onChange:function(){return e.changeOptions("themeisle_blocks_settings_default_block","isDefaultSection",!e.state.isDefaultSection)}})))),wp.element.createElement("div",{className:"otter-step-four"},wp.element.createElement(mt,{title:ut("Maps")},wp.element.createElement(yt,null,wp.element.createElement(ft,{label:ut("Google Maps API"),help:"In order to use Google Maps block, you need to use Google Maps and Places API.",id:"otter-options-google-map-api",className:"otter-text-field"},wp.element.createElement("input",{type:"text",id:"otter-options-google-map-api",value:this.state.googleMapsAPI,placeholder:ut("Google Maps API Key"),disabled:this.state.isAPISaving,onChange:function(t){return e.setState({googleMapsAPI:t.target.value})}}),wp.element.createElement("div",{className:"otter-text-field-button-group"},wp.element.createElement(dt,{isPrimary:!0,isLarge:!0,disabled:this.state.isAPISaving,onClick:function(){return e.changeOptions("themeisle_google_map_block_api_key","googleMapsAPI",e.state.googleMapsAPI)}},ut("Save")),wp.element.createElement(ht,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key",className:"otter-step-five"},ut("Get API Key"))))))),wp.element.createElement(mt,null,wp.element.createElement("div",{className:"otter-info"},wp.element.createElement("h2",null,ut("Got a question for us?")),wp.element.createElement("p",null,ut("We would love to help you out if you need any help with Otter.")),wp.element.createElement("div",{className:"otter-info-button-group"},wp.element.createElement(dt,{isDefault:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks",className:"otter-step-six"},ut("Ask a question")),wp.element.createElement(dt,{isDefault:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks/reviews/#new-post",className:"otter-step-seven"},ut("Leave a review"))))))):wp.element.createElement(bt,null,wp.element.createElement(gt,null))}}])&&at(n.prototype,o),r&&at(n,r),t}(Et);function Tt(e){return(Tt="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 kt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Nt(e,t){return!t||"object"!==Tt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ct(e,t){return(Ct=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var It=wp.i18n.__,Rt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Nt(this,Pt(t).apply(this,arguments))}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ct(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){return wp.element.createElement("footer",{className:"otter-footer"},wp.element.createElement("div",{className:"otter-container"},It("No otters were harmed during the making of this plugin.")))}}])&&kt(n.prototype,o),r&&kt(n,r),t}(wp.element.Component);function xt(e){return(xt="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 _t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function jt(e,t){return!t||"object"!==xt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mt(e){return(Mt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function At(e,t){return(At=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Lt=wp.element,Dt=Lt.Component,Bt=Lt.Fragment,Ft=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),jt(this,Mt(t).apply(this,arguments))}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&At(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){return wp.element.createElement(Bt,null,Boolean(otterObj.showTour)&&wp.element.createElement(Ge,null),wp.element.createElement(et,null),wp.element.createElement(St,null),wp.element.createElement(Rt,null))}}])&&_t(n.prototype,o),r&&_t(n,r),t}(Dt);ReactDOM.render(wp.element.createElement(Ft,null),document.getElementById("otter"))}]);