From b88b810402769d5816a5ee4c642925e417047fed Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Wed, 3 Mar 2021 00:15:34 +0530 Subject: [PATCH 1/6] Ran build --- build/build.js | 2 +- composer.lock | 76 +++++++++++++++++++++++++++++++++++++++-------- package-lock.json | 16 +++------- 3 files changed, 69 insertions(+), 25 deletions(-) diff --git a/build/build.js b/build/build.js index 9f00a546d..395ae6588 100644 --- a/build/build.js +++ b/build/build.js @@ -1,2 +1,2 @@ /*! For license information please see build.js.LICENSE.txt */ -(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t0&&d[d.length-1].lhs&&Object.getOwnPropertyDescriptor(d[d.length-1].lhs,u),k="undefined"!==O||d&&d.length>0&&d[d.length-1].rhs&&Object.getOwnPropertyDescriptor(d[d.length-1].rhs,u);if(!S&&k)n.push(new i(m,t));else if(!k&&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(g=d.length-1;g>-1;--g)if(d[g].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)}))),g=t.length-1,b=e.length-1;g>b;)n.push(new s(m,g,new i(void 0,t[g--])));for(;b>g;)n.push(new s(m,b,new a(void 0,e[b--])));for(;g>=0;--g)f(e[g],t[g],n,o,m,g,d,h)}else{var N=Object.keys(e),T=Object.keys(t);for(g=0;g=0?(f(e[v],t[v],n,o,m,v,d,h),T[w]=null):f(e[v],void 0,n,o,m,v,d,h);for(g=0;g{"use strict";var t=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===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||r,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=o;var c=Array.isArray(n);return c===Array.isArray(e)?c?l.arrayMerge(e,n,l):function(e,t,n){var r={};return n.isMergeableObject(e)&&i(e).forEach((function(t){r[t]=o(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}(e,n,l):o(n,l)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var l=s;e.exports=l},875:(e,t,n)=>{var o;!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)}()},703:(e,t,n)=>{"use strict";var o=n(414);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}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectType=function(e){return Object.prototype.toString.call(e).slice(8,-1)};var n=function(e){return function(n){return t.getObjectType(n)===e}},o=function(e){return function(t){return typeof t===e}},r=function(e){switch(e){case null:return"null";case!0:case!1:return"boolean"}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"bigint":return"bigint";case"symbol":return"symbol"}return r.array(e)?"Array":r.function(e)?"Function":t.getObjectType(e)||"Object"};r.array=Array.isArray,r.arrayOf=function(e,t){return!(!r.array(e)&&!r.function(t))&&e.every((function(e){return t(e)}))},r.asyncFunction=n("AsyncFunction"),r.boolean=function(e){return!0===e||!1===e},r.date=n("Date"),r.defined=function(e){return!r.undefined(e)},r.domElement=function(e){return r.object(e)&&!r.plainObject(e)&&1===e.nodeType&&r.string(e.nodeName)&&["innerHTML","ownerDocument","style","attributes","nodeValue"].every((function(t){return t in e}))},r.empty=function(e){return r.string(e)&&0===e.length||r.array(e)&&0===e.length||r.object(e)&&!r.map(e)&&!r.set(e)&&0===Object.keys(e).length||r.set(e)&&0===e.size||r.map(e)&&0===e.size},r.error=n("Error"),r.function=n("Function"),r.generator=function(e){return r.iterable(e)&&r.function(e.next)&&r.function(e.throw)},r.generatorFunction=n("GeneratorFunction"),r.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},r.iterable=function(e){return!r.nullOrUndefined(e)&&r.function(e[Symbol.iterator])},r.map=n("Map"),r.nan=function(e){return Number.isNaN(e)},r.null=function(e){return null===e},r.nullOrUndefined=function(e){return r.null(e)||r.undefined(e)},r.number=function(e){return o("number")(e)&&!r.nan(e)},r.numericString=function(e){return r.string(e)&&e.length>0&&!Number.isNaN(Number(e))},r.object=function(e){return!r.nullOrUndefined(e)&&(r.function(e)||"object"==typeof e)},r.oneOf=function(e,t){return!!r.array(e)&&e.indexOf(t)>-1},r.plainObject=function(e){if("Object"!==t.getObjectType(e))return!1;var n=Object.getPrototypeOf(e);return null===n||n===Object.getPrototypeOf({})},r.promise=n("Promise"),r.propertyOf=function(e,t,n){if(!r.object(e)||!t)return!1;var o=e[t];return r.function(n)?n(o):r.defined(o)},r.regexp=n("RegExp"),r.set=n("Set"),r.string=o("string"),r.symbol=o("symbol"),r.undefined=o("undefined"),r.weakMap=n("WeakMap"),r.weakSet=n("WeakSet"),t.default=r},685:e=>{"use strict";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){const i=Number.isInteger(Number(o[r+1]));return e[t]=e[t]||(i?[]:{}),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}}},288:(e,t,n)=>{"use strict";var o=n(681),r=n(685);function i(){for(var e=[],t=0;t=0:s===o,u=Array.isArray(i)?i.indexOf(l)>=0:l===i;return c&&(a?u:!a)},changedTo:function(n,o){if(void 0===n)throw new Error("Key parameter is required");var i=r.get(e,n),a=r.get(t,n),s=Array.isArray(o)?o.indexOf(i)<0:i!==o,l=Array.isArray(o)?o.indexOf(a)>=0:a===o;return s&&l},increased:function(n){if(void 0===n)throw new Error("Key parameter is required");return i(r.get(e,n),r.get(t,n))&&r.get(e,n)r.get(t,n)}}}},903:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case u:case p:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case c:case f:case y:case m:case l:return e;default:return t}}case r:return t}}}t.Element=o,t.ForwardRef=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===g)},t.typeOf=E},481:(e,t,n)=>{"use strict";e.exports=n(903)},818:(e,t,n)=>{"use strict";e.exports=n(359)},359:(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=2)}([function(e,t){e.exports=n(804)},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return u}));var o=n(0),r=n.n(o);const i="notification__item";var a,s,l,c;!function(e){e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.BOTTOM_CENTER="bottom-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e.TOP_CENTER="top-center",e.CENTER="center",e.TOP_FULL="top-full",e.BOTTOM_FULL="bottom-full"}(a||(a={})),function(e){e.TOP="top",e.BOTTOM="bottom"}(s||(s={})),function(e){e.SUCCESS="success",e.DANGER="danger",e.INFO="info",e.DEFAULT="default",e.WARNING="warning"}(l||(l={})),function(e){e.TIMEOUT="timeout",e.CLICK="click",e.TOUCH="touch",e.MANUAL="manual"}(c||(c={}));var u=new class{constructor(){this.incrementCounter=()=>this.counter+=1,this.getCounter=()=>this.counter,this.counter=0,this.add=null}addNotification(e){this.incrementCounter();const t=function(e,t,n){const o=e,{id:r,type:i,insert:a,content:s,container:c,animationIn:f,animationOut:d,slidingEnter:h,slidingExit:m,touchRevert:g,touchSlidingExit:b,dismiss:v,width:w,onRemoval:E}=o;o.id=r||u.getCounter().toString(),o.type=s?null:i.toLowerCase(),t&&!s&&(o.userDefinedTypes=function(e,t){const{content:n,type:o}=e;if(!n&&o!==l.SUCCESS&&o!==l.DANGER&&o!==l.INFO&&o!==l.DEFAULT&&o!==l.WARNING&&t)return t}(o,t)),o.width=p(w)?n:w,o.container=c.toLowerCase(),o.insert=(a||"top").toLowerCase(),o.dismiss=function(e){const t=e,n={duration:0,click:!0,touch:!0,onScreen:!1,pauseOnHover:!1,waitForAnimation:!1,showIcon:!1};return t?(Object.keys(n).forEach((e=>{p(t[e])&&(t[e]=n[e])})),t):n}(v),o.animationIn=f||[],o.animationOut=d||[],o.onRemoval=E||(()=>{});const O=(e,t,n)=>({duration:e,timingFunction:t,delay:n});o.slidingEnter=y(h,O(600,"linear",0)),o.slidingExit=y(m,O(600,"linear",0)),o.touchRevert=y(g,O(600,"linear",0));const S=b||{},k=S.swipe||{},N=S.fade||{};return o.touchSlidingExit=S,o.touchSlidingExit.swipe=y(k,O(600,"linear",0)),o.touchSlidingExit.fade=y(N,O(300,"linear",0)),o}(e,this.types,this.defaultNotificationWidth);return this.add(t)}register(e){const{addNotification:t,removeNotification:n,removeAllNotifications:o,types:r,defaultNotificationWidth:i}=e;this.add=t,this.removeNotification=n,this.removeAllNotifications=o,this.defaultNotificationWidth=i,this.types=r}};const p=e=>null==e;function f(e){return e===a.BOTTOM_FULL||e===a.BOTTOM_LEFT||e===a.BOTTOM_RIGHT||e===a.BOTTOM_CENTER}function d(e){return e===a.TOP_FULL||e===a.TOP_LEFT||e===a.TOP_RIGHT||e===a.TOP_CENTER}function h(e){const{type:t,content:n,userDefinedTypes:o}=e,r=[i];if(n)return r;if(p(o))return function(e){switch(e){case l.DEFAULT:return[i,"notification__item--default"];case l.SUCCESS:return[i,"notification__item--success"];case l.DANGER:return[i,"notification__item--danger"];case l.WARNING:return[i,"notification__item--warning"];case l.INFO:return[i,"notification__item--info"];default:return[i]}}(t);const a=o.find((e=>e.name===t));return r.concat(a.htmlClasses)}function m({duration:e,timingFunction:t,delay:n},o){return`${e}ms ${o} ${t} ${n}ms`}function y(e,{duration:t,timingFunction:n,delay:o}){const r=e||{};return p(r.duration)&&(r.duration=t),p(r.timingFunction)&&(r.timingFunction=n),p(r.delay)&&(r.delay=o),r}class g{constructor(e,t){this.callback=e,this.remaining=t,this.resume()}pause(){clearTimeout(this.timerId),this.remaining-=Date.now()-this.start}resume(){this.start=Date.now(),clearTimeout(this.timerId),this.timerId=setTimeout(this.callback,this.remaining)}clear(){clearTimeout(this.timerId)}}class b extends r.a.Component{constructor(e){super(e),this.onClick=()=>{const{notification:{dismiss:e}}=this.props;(e.click||e.showIcon)&&this.removeNotification(c.CLICK)},this.onTouchStart=e=>{const{pageX:t}=e.touches[0];this.setState((({parentStyle:e})=>({startX:t,currentX:t,parentStyle:Object.assign(Object.assign({},e),{position:"relative"})})))},this.onTouchMove=e=>{const{pageX:t}=e.touches[0],{startX:n}=this.state,{toggleRemoval:o,notification:{id:r,onRemoval:i,slidingExit:a,touchSlidingExit:{swipe:s,fade:l}}}=this.props,u=t-n,{offsetWidth:p}=this.rootElementRef.current,f=window.innerWidth+p,d=(t-n>=0?f:-f)+"px";if(function(e,t){return Math.abs(e)>=.4*t}(u,p)){const e=m(s,"left"),t=m(l,"opacity"),n=()=>{o(r,(()=>i(r,c.TOUCH)))};return this.setState((({parentStyle:o})=>({touchEnabled:!1,parentStyle:Object.assign(Object.assign({},o),{left:d,opacity:0,transition:`${e}, ${t}`}),onTransitionEnd:()=>{this.setState((({parentStyle:e})=>({parentStyle:Object.assign(Object.assign({},e),{height:"0px",overflow:"hidden",transition:m(a,"height")}),onTransitionEnd:n})))}})))}return this.setState((({parentStyle:e})=>({currentX:t,parentStyle:Object.assign(Object.assign({},e),{left:0+u+"px"})})))},this.onTouchEnd=()=>{const{notification:{touchRevert:e}}=this.props;this.setState((({parentStyle:t})=>({parentStyle:Object.assign(Object.assign({},t),{left:0,transition:m(e,"left")})})))},this.onMouseEnter=()=>{this.timer?this.timer.pause():this.setState({animationPlayState:"paused"})},this.onMouseLeave=()=>{this.timer?this.timer.resume():this.setState({animationPlayState:"running"})},this.rootElementRef=r.a.createRef();const{defaultNotificationWidth:t,notification:n,isMobile:o}=e,{width:i,container:s}=n;this.state={parentStyle:{height:"0px",overflow:"hidden",width:(i||t)+"px"},htmlClassList:h(n),animationPlayState:"running",touchEnabled:!0};const l=-1!==[a.TOP_FULL,a.BOTTOM_FULL,a.TOP_CENTER,a.BOTTOM_CENTER,a.CENTER].indexOf(s);(o||l)&&(this.state.parentStyle.width="100%")}componentWillUnmount(){this.timer&&this.timer.clear()}componentDidMount(){const{notification:e,notificationsCount:t}=this.props,{dismiss:{duration:n,onScreen:o}}=e,r=function(e,t){return!(t<=1)&&t>1&&(e.insert===s.TOP&&d(e.container)||e.insert===s.BOTTOM&&f(e.container)||e.container===a.CENTER)}(e,t),{scrollHeight:i}=this.rootElementRef.current,l=()=>{n&&!o&&(this.timer=new g((()=>this.removeNotification(c.TIMEOUT)),n))};this.setState((({parentStyle:{width:t}})=>({parentStyle:{width:t,height:i+"px",transition:r?m(e.slidingEnter,"height"):"10ms height"},onTransitionEnd:l})),(()=>{requestAnimationFrame((()=>{this.setState((t=>({htmlClassList:[...e.animationIn,...t.htmlClassList]})))}))}))}componentDidUpdate({hasBeenRemoved:e}){this.props.hasBeenRemoved&&!e&&this.removeNotification(c.MANUAL)}removeNotification(e){const{notification:t,toggleRemoval:n}=this.props,{id:o,onRemoval:r,dismiss:{waitForAnimation:i}}=t,a=[...t.animationOut,...h(t)],s=()=>n(o,(()=>r(o,e))),l={height:"0px",overflow:"hidden",transition:m(t.slidingExit,"height")};return i?this.setState((({parentStyle:{width:e}})=>({htmlClassList:a,onAnimationEnd:()=>{this.setState({parentStyle:Object.assign({width:e},l),onTransitionEnd:s})}}))):this.setState((({parentStyle:{width:e}})=>({parentStyle:Object.assign({width:e},l),onTransitionEnd:s,htmlClassList:a})))}renderTimer(){const{notification:{dismiss:e}}=this.props,{duration:t,onScreen:n}=e,{animationPlayState:o}=this.state;if(!t||!n)return;const i={animationName:"timer",animationDuration:t+"ms",animationTimingFunction:"linear",animationFillMode:"forwards",animationDelay:"0",animationPlayState:o};return r.a.createElement("div",{className:"notification__timer"},r.a.createElement("div",{className:"notification__timer-filler",onAnimationEnd:()=>this.removeNotification(c.TIMEOUT),style:i}))}renderCustomContent(){const{htmlClassList:e}=this.state,{notification:{id:t,content:n,dismiss:{duration:o,pauseOnHover:i}}}=this.props,a=o>0&&i;return r.a.createElement("div",{className:""+[...e].join(" "),onMouseEnter:a?this.onMouseEnter:null,onMouseLeave:a?this.onMouseLeave:null},r.a.isValidElement(n)?n:r.a.createElement(n,Object.assign({},{id:t})))}renderNotification(){const{notification:{title:e,message:t,dismiss:{showIcon:n,duration:o,pauseOnHover:i}}}=this.props,{htmlClassList:a}=this.state,s=o>0&&i;return r.a.createElement("div",{className:""+[...a].join(" "),onMouseEnter:s?this.onMouseEnter:null,onMouseLeave:s?this.onMouseLeave:null},r.a.createElement("div",{className:"notification__content"},n&&r.a.createElement("div",{className:"notification__close",onClick:this.onClick}),e&&r.a.createElement("div",{className:"notification__title"},e),r.a.createElement("div",{className:"notification__message"},t),this.renderTimer()))}render(){const{notification:{content:e,dismiss:{click:t}}}=this.props,{parentStyle:n,onAnimationEnd:o,onTransitionEnd:i,touchEnabled:a}=this.state;return r.a.createElement("div",{ref:this.rootElementRef,onClick:t?this.onClick:null,className:"notification",style:n,onAnimationEnd:o,onTransitionEnd:i,onTouchStart:a?this.onTouchStart:null,onTouchMove:a?this.onTouchMove:null,onTouchEnd:a?this.onTouchEnd:null},e?this.renderCustomContent():this.renderNotification())}}var v=b;n(1);class w extends r.a.Component{constructor(e){super(e),this.handleResize=()=>{this.setState({windowWidth:window.innerWidth})},this.add=e=>(this.setState((({notifications:t})=>({notifications:"top"===e.insert?[e,...t]:[...t,e]}))),e.id),this.remove=e=>{this.setState((({notifications:t})=>({notifications:t.map((t=>(t.id===e&&(t.hasBeenRemoved=!0),t)))})))},this.removeAllNotifications=()=>{this.setState({notifications:this.state.notifications.map((e=>Object.assign(Object.assign({},e),{hasBeenRemoved:!0})))})},this.toggleRemoval=(e,t)=>{this.setState((({notifications:t})=>({notifications:t.filter((({id:t})=>t!==e))})),t)},this.state={isMobile:!!p(e.isMobile)||e.isMobile,breakpoint:p(e.breakpoint)?768:e.breakpoint,notifications:[],windowWidth:void 0}}componentDidMount(){const{types:e,defaultNotificationWidth:t}=this.props;u.register({addNotification:this.add,removeNotification:this.remove,removeAllNotifications:this.removeAllNotifications,defaultNotificationWidth:t||325,types:e}),this.setState({windowWidth:window.innerWidth}),window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}renderNotifications(e,t){return e.map((n=>r.a.createElement(v,{id:n.id,key:n.id,isMobile:t,defaultNotificationWidth:this.props.defaultNotificationWidth,notification:n,toggleRemoval:this.toggleRemoval,notificationsCount:e.length,hasBeenRemoved:n.hasBeenRemoved})))}renderMobileNotifications(e){const{className:t,id:n}=e,{notifications:o}=this.state,i=function(e){const t=[],n=[];return e.forEach((e=>{const{container:o}=e,{CENTER:r}=a;d(o)||o===r?t.push(e):f(o)&&n.push(e)})),{top:t,bottom:n}}(o),s=this.renderNotifications(i.top,!0),l=this.renderNotifications(i.bottom,!0);return r.a.createElement("div",{id:n,key:"mobile",className:"notifications-component "+(t||"")},r.a.createElement("div",{className:"notification-container--mobile-top"},s),r.a.createElement("div",{className:"notification-container--mobile-bottom"},l))}renderScreenNotifications(e){const{className:t,id:n}=e,{notifications:o}=this.state,i=function(e){const t=[],n=[],o=[],r=[],i=[],s=[],l=[],c=[],u=[];return e.forEach((e=>{const{container:p}=e;p===a.TOP_FULL?c.push(e):p===a.BOTTOM_FULL?u.push(e):p===a.TOP_LEFT?t.push(e):p===a.TOP_RIGHT?n.push(e):p===a.TOP_CENTER?o.push(e):p===a.BOTTOM_LEFT?r.push(e):p===a.BOTTOM_RIGHT?i.push(e):p===a.BOTTOM_CENTER?s.push(e):p===a.CENTER&&l.push(e)})),{topFull:c,bottomFull:u,topLeft:t,topRight:n,topCenter:o,bottomLeft:r,bottomRight:i,bottomCenter:s,center:l}}(o),s=this.renderNotifications(i.topFull,!1),l=this.renderNotifications(i.bottomFull,!1),c=this.renderNotifications(i.topLeft,!1),u=this.renderNotifications(i.topRight,!1),p=this.renderNotifications(i.topCenter,!1),f=this.renderNotifications(i.bottomLeft,!1),d=this.renderNotifications(i.bottomRight,!1),h=this.renderNotifications(i.bottomCenter,!1),m=this.renderNotifications(i.center,!1);return r.a.createElement("div",{id:n,key:"screen",className:"notifications-component "+(t||"")},r.a.createElement("div",{className:"notification-container--top-full"},s),r.a.createElement("div",{className:"notification-container--bottom-full"},l),r.a.createElement("div",{className:"notification-container--top-left"},c),r.a.createElement("div",{className:"notification-container--top-right"},u),r.a.createElement("div",{className:"notification-container--bottom-left"},f),r.a.createElement("div",{className:"notification-container--bottom-right"},d),r.a.createElement("div",{className:"notification-container--top-center"},p),r.a.createElement("div",{className:"notification-container--center"},r.a.createElement("div",{className:"flex-center"},m)),r.a.createElement("div",{className:"notification-container--bottom-center"},h))}render(){const{isMobile:e}=this.props,{windowWidth:t,breakpoint:n}=this.state;return e&&t<=n?this.renderMobileNotifications(this.props):this.renderScreenNotifications(this.props)}}var E=w;t.default=E}])},494:(e,t)=>{"use strict";var n=function(e,t,n,o){return"boolean"==typeof e?e:"function"==typeof e?e(t,n,o):!(1!=!!e||!e)},o=function(e,t){return Object.hasOwnProperty.call(e,t)},r=function(e,t,n,o){return o?new Error(o):new Error("Required "+e[t]+" `"+t+"` was not specified in `"+n+"`.")};t.Z=function(e,t,i){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,i),function(a,s,l){for(var c=arguments.length,u=Array(3{var t=new Error("Element already at target scroll position"),n=new Error("Scroll cancelled"),o=Math.min,r=Date.now;function i(e){return function(i,l,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=s);var p=r(),f=i[e],d=c.ease||a,h=isNaN(c.duration)?350:+c.duration,m=!1;return f===l?u(t,i[e]):requestAnimationFrame((function t(a){if(m)return u(n,i[e]);var s=r(),c=o(1,(s-p)/h),y=d(c);i[e]=y*(l-f)+f,c<1?requestAnimationFrame(t):requestAnimationFrame((function(){u(null,i[e])}))})),function(){m=!0}}}function a(e){return.5*(1-Math.cos(Math.PI*e))}function s(){}e.exports={left:i("scrollLeft"),top:i("scrollTop")}},274:function(e,t){var n,o;void 0===(o="function"==typeof(n=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{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},804:e=>{"use strict";e.exports=React}},t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(818),t=n.n(e),o=n(804),r=n.n(o),i=n(697),a=n.n(i),s=n(747),l=["innerHTML","ownerDocument","style","attributes","nodeValue"],c=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],u=["bigint","boolean","null","number","string","symbol","undefined"];function p(e){var t,n=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(t=n,c.includes(t)?n:void 0)}function f(e){return function(t){return p(t)===e}}function d(e){return function(t){return typeof t===e}}function h(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return h.array(e)?"Array":h.plainFunction(e)?"Function":p(e)||"Object"}h.array=Array.isArray,h.arrayOf=function(e,t){return!(!h.array(e)&&!h.function(t))&&e.every((function(e){return t(e)}))},h.asyncGeneratorFunction=function(e){return"AsyncGeneratorFunction"===p(e)},h.asyncFunction=f("AsyncFunction"),h.bigint=d("bigint"),h.boolean=function(e){return!0===e||!1===e},h.date=f("Date"),h.defined=function(e){return!h.undefined(e)},h.domElement=function(e){return h.object(e)&&!h.plainObject(e)&&1===e.nodeType&&h.string(e.nodeName)&&l.every((function(t){return t in e}))},h.empty=function(e){return h.string(e)&&0===e.length||h.array(e)&&0===e.length||h.object(e)&&!h.map(e)&&!h.set(e)&&0===Object.keys(e).length||h.set(e)&&0===e.size||h.map(e)&&0===e.size},h.error=f("Error"),h.function=d("function"),h.generator=function(e){return h.iterable(e)&&h.function(e.next)&&h.function(e.throw)},h.generatorFunction=f("GeneratorFunction"),h.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},h.iterable=function(e){return!h.nullOrUndefined(e)&&h.function(e[Symbol.iterator])},h.map=f("Map"),h.nan=function(e){return Number.isNaN(e)},h.null=function(e){return null===e},h.nullOrUndefined=function(e){return h.null(e)||h.undefined(e)},h.number=function(e){return d("number")(e)&&!h.nan(e)},h.numericString=function(e){return h.string(e)&&e.length>0&&!Number.isNaN(Number(e))},h.object=function(e){return!h.nullOrUndefined(e)&&(h.function(e)||"object"==typeof e)},h.oneOf=function(e,t){return!!h.array(e)&&e.indexOf(t)>-1},h.plainFunction=f("Function"),h.plainObject=function(e){if("Object"!==p(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},h.primitive=function(e){return h.null(e)||(t=typeof e,u.includes(t));var t},h.promise=f("Promise"),h.propertyOf=function(e,t,n){if(!h.object(e)||!t)return!1;var o=e[t];return h.function(n)?n(o):h.defined(o)},h.regexp=f("RegExp"),h.set=f("Set"),h.string=d("string"),h.symbol=d("symbol"),h.undefined=d("undefined"),h.weakMap=f("WeakMap"),h.weakSet=f("WeakSet");const m=h;function y(e,t,n){var o=n.actual,r=n.key,i=n.previous,a=n.type,s=k(e,r),l=k(t,r),c=[s,l].every(m.number)&&("increased"===a?sl);return m.undefined(o)||(c=c&&l===o),m.undefined(i)||(c=c&&s===i),c}function g(e,t,n){var o=n.key,r=n.type,i=n.value,a=k(e,o),l=k(t,o),c="added"===r?a:l,u="added"===r?l:a;return m.nullOrUndefined(i)?[a,l].every(m.array)?!u.every(O(c)):[a,l].every(m.plainObject)?function(e,t){return t.some((function(t){return e.indexOf(t)<0}))}(Object.keys(c),Object.keys(u)):![a,l].every((function(e){return m.primitive(e)&&m.defined(e)}))&&("added"===r?!m.defined(a)&&m.defined(l):m.defined(a)&&!m.defined(l)):m.defined(c)?!(!m.array(c)&&!m.plainObject(c))&&function(e,t,n){return!!S(e,t)&&([e,t].every(m.array)?!e.some(w(n))&&t.some(w(n)):[e,t].every(m.plainObject)?!Object.entries(e).some(v(n))&&Object.entries(t).some(v(n)):t===n)}(c,u,i):s(u,i)}function b(e,t,n){var o=(void 0===n?{}:n).key,r=k(e,o),i=k(t,o);if(!S(r,i))throw new TypeError("Inputs have different types");if(!function(){for(var e=[],t=0;t=0)return 1;return 0}(),W=F&&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()}),B))}};function U(e){return e&&"[object Function]"==={}.toString.call(e)}function H(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function z(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function G(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=H(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:G(z(e))}function q(e){return e&&e.referenceNode?e.referenceNode:e}var V=F&&!(!window.MSInputMethodContext||!document.documentMode),$=F&&/MSIE 10/.test(navigator.userAgent);function Y(e){return 11===e?V:10===e?$:V||$}function K(e){if(!e)return document.documentElement;for(var t=Y(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"===H(n,"position")?K(n):n:e?e.ownerDocument.documentElement:document.documentElement}function J(e){return null!==e.parentNode?J(e.parentNode):e}function X(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&&K(a.firstElementChild)!==a?K(l):l;var c=J(e);return c.host?X(c.host,t):X(e,J(t).host)}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var r=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||r;return i[n]}return e[n]}function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Z(t,"top"),r=Z(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}function ee(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function te(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Y(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function ne(e){var t=e.body,n=e.documentElement,o=Y(10)&&getComputedStyle(n);return{height:te("Height",t,n,o),width:te("Width",t,n,o)}}var oe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},re=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],o=Y(10),r="HTML"===t.nodeName,i=le(e),a=le(t),s=G(e),l=H(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=se({top:i.top-a.top-c,left:i.left-a.left-u,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!o&&r){var f=parseFloat(l.marginTop),d=parseFloat(l.marginLeft);p.top-=c-f,p.bottom-=c-f,p.left-=u-d,p.right-=u-d,p.marginTop=f,p.marginLeft=d}return(o&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(p=Q(p,t)),p}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=ce(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Z(n),s=t?0:Z(n,"left"),l={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:r,height:i};return se(l)}function pe(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===H(e,"position"))return!0;var n=z(e);return!!n&&pe(n)}function fe(e){if(!e||!e.parentElement||Y())return document.documentElement;for(var t=e.parentElement;t&&"none"===H(t,"transform");)t=t.parentElement;return t||document.documentElement}function de(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=r?fe(e):X(e,q(t));if("viewport"===o)i=ue(a,r);else{var s=void 0;"scrollParent"===o?"BODY"===(s=G(z(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===o?e.ownerDocument.documentElement:o;var l=ce(s,a,r);if("HTML"!==s.nodeName||pe(a))i=l;else{var c=ne(e.ownerDocument),u=c.height,p=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=p+l.left}}var f="number"==typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function he(e){return e.width*e.height}function me(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=de(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 ae({key:e},s[e],{area:he(s[e])})})).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 ye(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=o?fe(t):X(t,q(n));return ce(n,r,o)}function ge(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 be(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 ve(e,t,n){n=n.split("-")[0];var o=ge(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[be(s)],r}function we(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Ee(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.name===n}));var o=we(e,(function(e){return e.name===n}));return e.indexOf(o)}(e,0,n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&U(n)&&(t.offsets.popper=se(t.offsets.popper),t.offsets.reference=se(t.offsets.reference),t=n(t,e))})),t}function Oe(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=ye(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=me(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=ve(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Ee(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Se(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function ke(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o1&&void 0!==arguments[1]&&arguments[1],n=Ae.indexOf(e),o=Ae.slice(n+1).concat(Ae.slice(0,n));return t?o.reverse():o}var Fe={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:ie({},l,i[l]),end:ie({},l,i[l]+i[c]-a[c])};e.offsets.popper=ae({},a,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,o=t.offset,r=e.placement,i=e.offsets,a=i.popper,s=i.reference,l=r.split("-")[0];return n=Ie(+o)?[+o,0]:function(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(we(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 se(s)[t]/100*i}return"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){Ie(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}(o,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||K(e.instance.popper);e.instance.reference===n&&(n=K(n));var o=ke("transform"),r=e.instance.popper.style,i=r.top,a=r.left,s=r[o];r.top="",r.left="",r[o]="";var l=de(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&&(o=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),ie({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=ae({},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[s])&&(e.offsets.popper[l]=i(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!_e(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,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",p=u.toLowerCase(),f=l?"left":"top",d=l?"bottom":"right",h=ge(o)[c];s[d]-ha[d]&&(e.offsets.popper[p]+=s[p]+h-a[d]),e.offsets.popper=se(e.offsets.popper);var m=s[p]+s[c]/2-h/2,y=H(e.instance.popper),g=parseFloat(y["margin"+u]),b=parseFloat(y["border"+u+"Width"]),v=m-e.offsets.popper[p]-g-b;return v=Math.max(Math.min(a[c]-h,v),0),e.arrowElement=o,e.offsets.arrow=(ie(n={},p,Math.round(v)),ie(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Se(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=de(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=be(o),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[o,r];break;case"clockwise":a=De(o);break;case"counterclockwise":a=De(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=be(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.top)||"bottom"===o&&p(c.top)p(n.right),m=p(c.top)p(n.bottom),g="left"===o&&d||"right"===o&&h||"top"===o&&m||"bottom"===o&&y,b=-1!==["top","bottom"].indexOf(o),v=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&y),w=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&d||!b&&"start"===i&&y||!b&&"end"===i&&m),E=v||w;(f||g||E)&&(e.flipped=!0,(f||g)&&(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=ae({},e.offsets.popper,ve(e.instance.popper,e.offsets.reference,e.placement)),e=Ee(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=be(t),e.offsets.popper=se(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!_e(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=we(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};oe(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=W(this.update.bind(this)),this.options=ae({},e.Defaults,r),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(ae({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){o.options.modifiers[t]=ae({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return ae({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&U(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return re(e,[{key:"update",value:function(){return Oe.call(this)}},{key:"destroy",value:function(){return Ne.call(this)}},{key:"enableEventListeners",value:function(){return Pe.call(this)}},{key:"disableEventListeners",value:function(){return je.call(this)}}]),e}();Be.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,Be.placements=Me,Be.Defaults=Fe;const We=Be;var Ue=n(576),He=n(288);function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function et(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?Qe(e):t}var tt={flip:{padding:20},preventOverflow:{padding:10}},nt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},ot=P().canUseDOM,rt=void 0!==x().createPortal;function it(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function at(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){Ue.default.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd())}function st(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,o)}function lt(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,o)}function ct(){}var ut=function(e){function t(e){var n;return ze(this,t),n=et(this,Je(t).call(this,e)),ot?(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):et(n)}return Ke(t,e),qe(t,[{key:"componentDidMount",value:function(){ot&&(rt||this.renderPortal())}},{key:"componentDidUpdate",value:function(){ot&&(rt||this.renderPortal())}},{key:"componentWillUnmount",value:function(){ot&&this.node&&(rt||x().unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderPortal",value:function(){if(!ot)return null;var e=this.props,t=e.children,n=e.setRef;return rt?x().createPortal(t,this.node):(n(x().unstable_renderSubtreeIntoContainer(this,t.length>1?r().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||o||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return rt?this.renderReact16():null}}]),t}(r().Component);Ve(ut,"propTypes",{children:a().oneOfType([a().element,a().array]),hasChildren:a().bool,id:a().oneOfType([a().string,a().number]),placement:a().string,setRef:a().func.isRequired,target:a().oneOfType([a().object,a().string]),zIndex:a().number});var pt=function(e){function t(){return ze(this,t),et(this,Je(t).apply(this,arguments))}return Ke(t,e),qe(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().createElement("div",{className:"__floater__arrow",style:this.parentStyle},r().createElement("span",{ref:o,style:f},r().createElement("svg",{width:d,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r().createElement("polygon",{points:e,fill:a}))))}},{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,o={pointerEvents:"none",position:"absolute",width:"100%"};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().Component);Ve(pt,"propTypes",{placement:a().string.isRequired,setArrowRef:a().func.isRequired,styles:a().object.isRequired});var ft=function(e){var t=e.handleClick,n=e.styles,o=n.color,i=n.height,a=n.width,s=Ze(n,["color","height","width"]);return r().createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},r().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().createElement("g",null,r().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}))))};ft.propTypes={handleClick:a().func.isRequired,styles:a().object.isRequired};var dt=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().isValidElement(t)?t:r().createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=r().isValidElement(l)?l:r().createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=r().isValidElement(n)?n:r().createElement("div",{className:"__floater__footer",style:c.footer},n)),!s&&!a||Ue.default.boolean(i)||(u.close=r().createElement(ft,{styles:c.close,handleClick:o})),r().createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)};dt.propTypes={content:a().node.isRequired,footer:a().node,handleClick:a().func.isRequired,open:a().bool,positionWrapper:a().bool.isRequired,showCloseButton:a().bool.isRequired,styles:a().object.isRequired,title:a().node};var ht=function(e){function t(){return ze(this,t),et(this,Je(t).apply(this,arguments))}return Ke(t,e),qe(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().isValidElement(t)?s.content=r().cloneElement(t,{closeFn:n}):s.content=t({closeFn:n}):s.content=r().createElement(dt,this.props),a===nt.OPEN&&l.push("__floater__open"),o||(s.arrow=r().createElement(pt,this.props)),r().createElement("div",{ref:i,className:l.join(" "),style:this.style},r().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.status,a=e.styles,s=a.arrow.length,l=a.floater,c=a.floaterCentered,u=a.floaterClosing,p=a.floaterOpening,f=a.floaterWithAnimation,d=a.floaterWithComponent,h={};return r||(o.startsWith("top")?h.padding="0 0 ".concat(s,"px"):o.startsWith("bottom")?h.padding="".concat(s,"px 0 0"):o.startsWith("left")?h.padding="0 ".concat(s,"px 0 0"):o.startsWith("right")&&(h.padding="0 0 0 ".concat(s,"px"))),-1!==[nt.OPENING,nt.OPEN].indexOf(i)&&(h=Ye({},h,{},p)),i===nt.CLOSING&&(h=Ye({},h,{},u)),i!==nt.OPEN||t||(h=Ye({},h,{},f)),"center"===o&&(h=Ye({},h,{},c)),n&&(h=Ye({},h,{},d)),Ye({},l,{},h)}}]),t}(r().Component);Ve(ht,"propTypes",{component:a().oneOfType([a().func,a().element]),content:a().node,disableAnimation:a().bool.isRequired,footer:a().node,handleClick:a().func.isRequired,hideArrow:a().bool.isRequired,open:a().bool,placement:a().string.isRequired,positionWrapper:a().bool.isRequired,setArrowRef:a().func.isRequired,setFloaterRef:a().func.isRequired,showCloseButton:a().bool,status:a().string.isRequired,styles:a().object.isRequired,title:a().node});var mt=function(e){function t(){return ze(this,t),et(this,Je(t).apply(this,arguments))}return Ke(t,e),qe(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().Children.count(n))if(r().isValidElement(n)){var p=Ue.default.function(n.type)?"innerRef":"ref";e=r().cloneElement(r().Children.only(n),Ve({},p,s))}else e=r().createElement("span",null,n);else e=n;return e?r().createElement("span",{ref:l,style:Ye({},u,{},c),onClick:o,onMouseEnter:i,onMouseLeave:a},e):null}}]),t}(r().Component);Ve(mt,"propTypes",{children:a().node,handleClick:a().func.isRequired,handleMouseEnter:a().func.isRequired,handleMouseLeave:a().func.isRequired,setChildRef:a().func.isRequired,setWrapperRef:a().func.isRequired,style:a().object,styles:a().object.isRequired});var yt={zIndex:100},gt=["position","top","right","bottom","left"],bt=function(e){function t(e){var n;return ze(this,t),Ve(Qe(n=et(this,Je(t).call(this,e))),"setArrowRef",(function(e){n.arrowRef=e})),Ve(Qe(n),"setChildRef",(function(e){n.childRef=e})),Ve(Qe(n),"setFloaterRef",(function(e){n.floaterRef||(n.floaterRef=e)})),Ve(Qe(n),"setWrapperRef",(function(e){n.wrapperRef=e})),Ve(Qe(n),"handleTransitionEnd",(function(){var e=n.state.status,t=n.props.callback;n.wrapperPopper&&n.wrapperPopper.instance.update(),n.setState({status:e===nt.OPENING?nt.OPEN:nt.IDLE},(function(){var e=n.state.status;t(e===nt.OPEN?"open":"close",n.props)}))})),Ve(Qe(n),"handleClick",(function(){var e=n.props,t=e.event,o=e.open;if(!Ue.default.boolean(o)){var r=n.state,i=r.positionWrapper,a=r.status;("click"===n.event||"hover"===n.event&&i)&&(at({title:"click",data:[{event:t,status:a===nt.OPEN?"closing":"opening"}],debug:n.debug}),n.toggle())}})),Ve(Qe(n),"handleMouseEnter",(function(){var e=n.props,t=e.event,o=e.open;if(!Ue.default.boolean(o)&&!it()){var r=n.state.status;"hover"===n.event&&r===nt.IDLE&&(at({title:"mouseEnter",data:[{key:"originalEvent",value:t}],debug:n.debug}),clearTimeout(n.eventDelayTimeout),n.toggle())}})),Ve(Qe(n),"handleMouseLeave",(function(){var e=n.props,t=e.event,o=e.eventDelay,r=e.open;if(!Ue.default.boolean(r)&&!it()){var i=n.state,a=i.status,s=i.positionWrapper;"hover"===n.event&&(at({title:"mouseLeave",data:[{key:"originalEvent",value:t}],debug:n.debug}),o?-1===[nt.OPENING,nt.OPEN].indexOf(a)||s||n.eventDelayTimeout||(n.eventDelayTimeout=setTimeout((function(){delete n.eventDelayTimeout,n.toggle()}),1e3*o)):n.toggle(nt.IDLE))}})),n.state={currentPlacement:e.placement,positionWrapper:e.wrapperOptions.position&&!!e.target,status:nt.INIT,statusWrapper:nt.INIT},n._isMounted=!1,ot&&window.addEventListener("load",(function(){n.popper&&n.popper.instance.update(),n.wrapperPopper&&n.wrapperPopper.instance.update()})),n}return Ke(t,e),qe(t,[{key:"componentDidMount",value:function(){if(ot){var e=this.state.positionWrapper,t=this.props,n=t.children,o=t.open,r=t.target;this._isMounted=!0,at({title:"init",data:{hasChildren:!!n,hasTarget:!!r,isControlled:Ue.default.boolean(o),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.initPopper(),!n&&r&&Ue.default.boolean(o)}}},{key:"componentDidUpdate",value:function(e,t){if(ot){var n,o=this.props,r=o.autoOpen,i=o.open,a=o.target,s=o.wrapperOptions,l=(0,He.Z)(t,this.state),c=l.changedFrom,u=l.changedTo;e.open!==i&&(Ue.default.boolean(i)&&(n=i?nt.OPENING:nt.CLOSING),this.toggle(n)),e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(u("status",nt.IDLE)&&i||c("status",nt.INIT,nt.IDLE)&&r)&&this.toggle(nt.OPEN),this.popper&&u("status",nt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",nt.OPENING)||u("status",nt.CLOSING))&&function(e,t,n){var o;st(e,t,o=function(r){n(r),lt(e,t,o)},arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd)}}},{key:"componentWillUnmount",value:function(){ot&&(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,c=o.wrapperOptions,u="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:nt.IDLE});else if(t&&this.floaterRef){var p=this.options,f=p.arrow,d=p.flip,h=p.offset,m=Ze(p,["arrow","flip","offset"]);new We(t,this.floaterRef,{placement:l,modifiers:Ye({arrow:Ye({enabled:!a,element:this.arrowRef},f),flip:Ye({enabled:!r,behavior:u},d),offset:Ye({offset:"0, ".concat(s,"px")},h)},m),onCreate:function(t){e.popper=t,i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:nt.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})}})}if(n){var y=Ue.default.undefined(c.offset)?0:c.offset;new We(this.target,this.wrapperRef,{placement:c.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(y,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:nt.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===nt.OPEN?nt.CLOSING:nt.OPENING;Ue.default.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.open,h=i.showCloseButton,m=i.style,y=i.target,g=i.title,b=r().createElement(mt,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),v={};return n?v.wrapperInPortal=b:v.wrapperAsChildren=b,r().createElement("span",null,r().createElement(ut,{hasChildren:!!a,id:f,placement:t,setRef:this.setFloaterRef,target:y,zIndex:this.styles.options.zIndex},r().createElement(ht,{component:s,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:p||"center"===t,open:d,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:o,styles:this.styles,title:g}),v.wrapperInPortal),v.wrapperAsChildren)}},{key:"debug",get:function(){return this.props.debug||!!n.g.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&it()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return A()(tt,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=A()(function(e){var t=A()(yt,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",zIndex:10},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);if(r&&(e=-1===[nt.IDLE].indexOf(o)||-1===[nt.IDLE].indexOf(i)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=Ye({},s.wrapper,{},e)),this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=Ye({},s.wrapper,{},this.wrapperStyles):-1===["relative","static"].indexOf(l.position)&&(this.wrapperStyles={},r||(gt.forEach((function(e){t.wrapperStyles[e]=l[e]})),s.wrapper=Ye({},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(!ot)return null;var e=this.props.target;return e?Ue.default.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}}]),t}(r().Component);Ve(bt,"propTypes",{autoOpen:a().bool,callback:a().func,children:a().node,component:(0,D.Z)(a().oneOfType([a().func,a().element]),(function(e){return!e.content})),content:(0,D.Z)(a().node,(function(e){return!e.component})),debug:a().bool,disableAnimation:a().bool,disableFlip:a().bool,disableHoverToClick:a().bool,event:a().oneOf(["hover","click"]),eventDelay:a().number,footer:a().node,getPopper:a().func,hideArrow:a().bool,id:a().oneOfType([a().string,a().number]),offset:a().number,open:a().bool,options:a().object,placement: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().bool,style:a().object,styles:a().object,target:a().oneOfType([a().object,a().string]),title:a().node,wrapperOptions:a().shape({offset:a().number,placement: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().bool})}),Ve(bt,"defaultProps",{autoOpen:!1,callback:ct,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:ct,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});const vt=bt;function wt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function It(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rt(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?It(e):t}function Lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ct(e);if(t){var r=Ct(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Rt(this,n)}}var _t={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Mt="step:after",At="error:target_not_found",Dt={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Ft={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},Bt=P().canUseDOM,Wt=void 0!==T.createPortal;function Ut(){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 Ht(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function zt(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 Gt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qt(e,t){return!(!m.plainObject(e)||!m.array(t))&&Object.keys(e).every((function(e){return-1!==t.indexOf(e)}))}function Vt(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function $t(e){return e.disableBeacon||"center"===e.placement}function Yt(e,t){var n,r=(0,o.isValidElement)(e)||(0,o.isValidElement)(t),i=m.undefined(e)||m.undefined(t);if(Ht(e)!==Ht(t)||r||i)return!1;if(m.domElement(e))return e.isSameNode(t);if(m.number(e))return e===t;if(m.function(e))return e.toString()===t.toString();for(var a in e)if(Gt(e,a)){if(void 0===e[a]||void 0===t[a])return!1;if(n=Ht(e[a]),-1!==["object","array"].indexOf(n)&&Yt(e[a],t[a]))continue;if("function"===n&&Yt(e[a],t[a]))continue;if(e[a]!==t[a])return!1}for(var s in t)if(Gt(t,s)&&void 0===e[s])return!1;return!0}function Kt(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(Ut()))}function Jt(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){m.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 Xt={action:"",controlled:!1,index:0,lifecycle:Dt.INIT,size:0,status:Ft.IDLE},Zt=["action","index","lifecycle","status"];function Qt(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;wt(this,e),St(this,"listener",void 0),St(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===Ft.WAITING&&!r&&e.length&&(a.status=Ft.RUNNING),t.setState(a)})),St(this,"addListener",(function(e){t.listener=e})),St(this,"update",(function(e){if(!qt(e,Zt))throw new Error("State is not valid. Valid keys: ".concat(Zt.join(", ")));t.setState(Tt({},t.getNextState(Tt(Tt(Tt({},t.getState()),e),{},{action:e.action||_t.UPDATE}),!0)))})),St(this,"start",(function(e){var n=t.getState(),o=n.index,r=n.size;t.setState(Tt(Tt({},t.getNextState({action:_t.START,index:m.number(e)?e:o},!0)),{},{status:r?Ft.RUNNING:Ft.WAITING}))})),St(this,"stop",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.index,r=n.status;-1===[Ft.FINISHED,Ft.SKIPPED].indexOf(r)&&t.setState(Tt(Tt({},t.getNextState({action:_t.STOP,index:o+(e?1:0)})),{},{status:Ft.PAUSED}))})),St(this,"close",(function(){var e=t.getState(),n=e.index;e.status===Ft.RUNNING&&t.setState(Tt({},t.getNextState({action:_t.CLOSE,index:n+1})))})),St(this,"go",(function(e){var n=t.getState(),o=n.controlled,r=n.status;if(!o&&r===Ft.RUNNING){var i=t.getSteps()[e];t.setState(Tt(Tt({},t.getNextState({action:_t.GO,index:e})),{},{status:i?r:Ft.FINISHED}))}})),St(this,"info",(function(){return t.getState()})),St(this,"next",(function(){var e=t.getState(),n=e.index;e.status===Ft.RUNNING&&t.setState(t.getNextState({action:_t.NEXT,index:n+1}))})),St(this,"open",(function(){t.getState().status===Ft.RUNNING&&t.setState(Tt({},t.getNextState({action:_t.UPDATE,lifecycle:Dt.TOOLTIP})))})),St(this,"prev",(function(){var e=t.getState(),n=e.index;e.status===Ft.RUNNING&&t.setState(Tt({},t.getNextState({action:_t.PREV,index:n-1})))})),St(this,"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.controlled;o||t.setState(Tt(Tt({},t.getNextState({action:_t.RESET,index:0})),{},{status:e?Ft.RUNNING:Ft.READY}))})),St(this,"skip",(function(){t.getState().status===Ft.RUNNING&&t.setState({action:_t.SKIP,lifecycle:Dt.INIT,status:Ft.SKIPPED})})),this.setState({action:_t.INIT,controlled:m.number(a),continuous:i,index:m.number(a)?a:0,lifecycle:Dt.INIT,status:l.length?Ft.READY:Ft.IDLE},!0),this.setSteps(l)}return Ot(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getState(),r=Tt(Tt({},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")||""}:Tt({},Xt)}},{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=m.number(e.index)?e.index:i,c=r&&!t?i:Math.min(Math.max(l,0),a);return{action:e.action||o,controlled:r,index:c,lifecycle:e.lifecycle||Dt.INIT,size:e.size||a,status:c===a?Ft.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 en(){return document.scrollingElement||document.createElement("body")}function tn(e){return e?e.getBoundingClientRect():{}}function nn(e){return"string"==typeof e?document.querySelector(e):e}function on(e){return e&&1===e.nodeType?getComputedStyle(e):{}}function rn(e,t,n){var o=L()(e);return o.isSameNode(en())?n?document:en():o.scrollHeight>o.offsetHeight||t?o:(o.style.overflow="initial",en())}function an(e,t){return!!e&&!rn(e,t).isSameNode(en())}function sn(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&&(on(e).position===t||sn(e.parentNode,t))}function ln(e){return e instanceof HTMLElement?e.offsetParent instanceof HTMLElement?ln(e.offsetParent)+e.offsetTop:e.offsetTop:0}!function(e){function t(t,n,o,r,i,a){var s=r||"<>",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;p0&&void 0!==arguments[0]?arguments[0]:{},t=A()(cn,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth1&&void 0!==arguments[1]&&arguments[1];return m.plainObject(e)?!!e.target||(Jt({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Jt({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return m.array(e)?e.every((function(e){return mn(e,t)})):(Jt({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var gn=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(wt(this,e),St(this,"element",void 0),St(this,"options",void 0),St(this,"canBeTabbed",(function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e)})),St(this,"canHaveFocus",(function(e){var t=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(t)&&!e.getAttribute("disabled")||"a"===t&&!!e.getAttribute("href"))&&n.isVisible(e)})),St(this,"findValidTabElements",(function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)})),St(this,"handleKeyDown",(function(e){var t=n.options.keyCode,o=void 0===t?9:t;e.keyCode===o&&n.interceptTab(e)})),St(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()}})),St(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")})),St(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})),St(this,"removeScope",(function(){window.removeEventListener("keydown",n.handleKeyDown)})),St(this,"checkFocus",(function(e){document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((function(){return n.checkFocus(e)})))})),St(this,"setFocus",(function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&window.requestAnimationFrame((function(){return n.checkFocus(t)}))}})),!(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()},bn=function(e){xt(n,e);var t=Lt(n);function n(e){var o;if(wt(this,n),St(It(o=t.call(this,e)),"setBeaconRef",(function(e){o.beacon=e})),!e.beaconComponent){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.id="joyride-beacon-animation",i.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 ")),r.appendChild(i)}return o}return Ot(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout((function(){m.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().createElement(l,s)}else e=r().createElement("button",kt({key:"JoyrideBeacon",className:"react-joyride__beacon",style:a.beacon,type:"button"},s),r().createElement("span",{style:a.beaconInner}),r().createElement("span",{style:a.beaconOuter}));return e}}]),n}(r().Component),vn=function(e){var t=e.styles;return r().createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})},wn=function(e){xt(n,e);var t=Lt(n);function n(){var e;wt(this,n);for(var o=arguments.length,r=new Array(o),i=0;i=i&&u<=i+l&&c>=s&&c<=s+r;p!==n&&e.updateState({mouseOverSpotlight:p})})),St(It(e),"handleScroll",(function(){var t=nn(e.props.target);e.scrollParent!==document?(e.state.isScrolling||e.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(e.scrollTimeout),e.scrollTimeout=setTimeout((function(){e.updateState({isScrolling:!1,showSpotlight:!0})}),50)):sn(t,"sticky")&&e.updateState({})})),St(It(e),"handleResize",(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout((function(){e._isMounted&&e.forceUpdate()}),100)})),e}return Ot(n,[{key:"componentDidMount",value:function(){var e=this.props,t=(e.debug,e.disableScrolling,e.disableScrollParentFix),n=nn(e.target);this.scrollParent=rn(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=N(e,this.props).changed;i("lifecycle",Dt.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((function(){t.state.isScrolling||t.updateState({showSpotlight:!0})}),100)),(i("spotlightClicks")||i("disableOverlay")||i("lifecycle"))&&(r&&o===Dt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==Dt.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.disableOverlayClose,s=o.lifecycle,l=o.onClickOverlay,c=o.placement,u=o.styles;if(i||s!==Dt.TOOLTIP)return null;var p=u.overlay;Kt()&&(p="center"===c?u.overlayLegacyCenter:u.overlayLegacy);var f,d,h,m=Tt({cursor:a?"default":"pointer",height:(f=document,d=f.body,h=f.documentElement,d&&h?Math.max(d.scrollHeight,d.offsetHeight,h.clientHeight,h.scrollHeight,h.offsetHeight):0),pointerEvents:t?"none":"auto"},p),y="center"!==c&&n&&r().createElement(vn,{styles:this.spotlightStyles});if("safari"===Ut()){m.mixBlendMode,m.zIndex;var g=jt(m,["mixBlendMode","zIndex"]);y=r().createElement("div",{style:Tt({},g)},y),delete m.backgroundColor}return r().createElement("div",{className:"react-joyride__overlay",style:m,onClick:l},y)}},{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=nn(t.target),s=tn(a),l=sn(a),c=function(e,t,n){var o=tn(e),r=rn(e,n),i=an(e,n),a=0;r instanceof HTMLElement&&(a=r.scrollTop);var s=o.top+(i||sn(e)?0:a);return Math.floor(s-t)}(a,r,n);return Tt(Tt({},Kt()?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)})}}]),n}(r().Component),En=function(e){var t=e.styles,n=jt(e,["styles"]),o=t.color,i=t.height,a=t.width,s=jt(t,["color","height","width"]);return r().createElement("button",kt({style:s,type:"button"},n),r().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().createElement("g",null,r().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}))))},On=function(e){xt(n,e);var t=Lt(n);function n(){return wt(this,n),t.apply(this,arguments)}return Ot(n,[{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,g=u.showSkipButton,b=u.title,v=u.styles,w=u.locale,E=w.back,O=w.close,S=w.last,k=w.next,N=w.skip,T={primary:O};return o&&(T.primary=a?S:k,y&&(T.primary=r().createElement("span",null,T.primary," (",i+1,"/",l,")"))),g&&!a&&(T.skip=r().createElement("button",kt({style:v.buttonSkip,type:"button","aria-live":"off"},c),N)),!d&&i>0&&(T.back=r().createElement("button",kt({style:v.buttonBack,type:"button"},t),E)),T.close=!h&&r().createElement(En,kt({styles:v.buttonClose},n)),r().createElement("div",kt({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:v.tooltip},p),r().createElement("div",{style:v.tooltipContainer},b&&r().createElement("h4",{style:v.tooltipTitle,"aria-label":b},b),r().createElement("div",{style:v.tooltipContent},f)),!m&&r().createElement("div",{style:v.tooltipFooter},r().createElement("div",{style:v.tooltipFooterSpacer},T.skip),T.back,r().createElement("button",kt({style:v.buttonNext,type:"button"},s),T.primary)),T.close)}}]),n}(r().Component),Sn=function(e){xt(n,e);var t=Lt(n);function n(){var e;wt(this,n);for(var o=arguments.length,r=new Array(o),i=0;i0||n===_t.PREV),b=h("action")||h("index")||h("lifecycle")||h("status"),v=m("lifecycle",[Dt.TOOLTIP,Dt.INIT],Dt.INIT);if(h("action",[_t.NEXT,_t.PREV,_t.SKIP,_t.CLOSE])&&(v||i)&&o(Tt(Tt({},y),{},{index:e.index,lifecycle:Dt.COMPLETE,step:e.step,type:Mt})),b&&p){var w=nn(p.target),E=!!w;E&&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}(w)?(m("status",Ft.READY,Ft.RUNNING)||m("lifecycle",Dt.INIT,Dt.READY))&&o(Tt(Tt({},y),{},{step:p,type:"step:before"})):(console.warn(E?"Target not visible":"Target not mounted",p),o(Tt(Tt({},y),{},{type:At,step:p})),i||f({index:s+(-1!==[_t.PREV].indexOf(n)?-1:1)}))}m("lifecycle",Dt.INIT,Dt.READY)&&f({lifecycle:$t(p)||g?Dt.TOOLTIP:Dt.BEACON}),h("index")&&Jt({title:"step:".concat(l),data:[{key:"props",value:this.props}],debug:a}),h("lifecycle",Dt.BEACON)&&o(Tt(Tt({},y),{},{step:p,type:"beacon"})),h("lifecycle",Dt.TOOLTIP)&&(o(Tt(Tt({},y),{},{step:p,type:"tooltip"})),this.scope=new gn(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),m("lifecycle",[Dt.TOOLTIP,Dt.INIT],Dt.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,c=e.step,u=nn(c.target);return mn(c)&&m.domElement(u)?r().createElement("div",{key:"JoyrideStep-".concat(i),className:"react-joyride__step"},r().createElement(kn,{id:"react-joyride-portal"},r().createElement(wn,kt({},c,{debug:n,lifecycle:a,onClickOverlay:this.handleClickOverlay}))),r().createElement(vt,kt({component:r().createElement(Sn,{continuous:t,helpers:o,index:i,isLastStep:i+1===l,setTooltipRef:this.setTooltipRef,size:l,step:c}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(i),isPositioned:c.isFixed||sn(u),open:this.open,placement:c.placement,target:c.target},c.floaterProps),r().createElement(bn,{beaconComponent:c.beaconComponent,locale:c.locale,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:s,styles:c.styles}))):null}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!$t(t)&&n!==Dt.TOOLTIP)}}]),n}(r().Component),Tn=function(e){xt(n,e);var t=Lt(n);function n(e){var o;return wt(this,n),St(It(o=t.call(this,e)),"initStore",(function(){var e=o.props,t=e.debug,n=e.getHelpers,r=e.run,i=e.stepIndex;o.store=new Qt(Tt(Tt({},o.props),{},{controlled:r&&m.number(i)})),o.helpers=o.store.getHelpers();var a=o.store.addListener;return Jt({title:"init",data:[{key:"props",value:o.props},{key:"state",value:o.state}],debug:t}),a(o.syncState),n(o.helpers),o.store.getState()})),St(It(o),"callback",(function(e){var t=o.props.callback;m.function(t)&&t(e)})),St(It(o),"handleKeyboard",(function(e){var t=o.state,n=t.index,r=t.lifecycle,i=o.props.steps[n],a=window.Event?e.which:e.keyCode;r===Dt.TOOLTIP&&27===a&&i&&!i.disableCloseOnEsc&&o.store.close()})),St(It(o),"syncState",(function(e){o.setState(e)})),St(It(o),"setPopper",(function(e,t){"wrapper"===t?o.beaconPopper=e:o.tooltipPopper=e})),St(It(o),"shouldScroll",(function(e,t,n,o,r,i,a){return!e&&(0!==t||n||o===Dt.TOOLTIP)&&"center"!==r.placement&&(!r.isFixed||!sn(i))&&a.lifecycle!==o&&-1!==[Dt.BEACON,Dt.TOOLTIP].indexOf(o)})),o.state=o.initStore(),o}return Ot(n,[{key:"componentDidMount",value:function(){if(Bt){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,o=e.run,r=e.steps,i=this.store.start;yn(r,n)&&o&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if(Bt){var n=this.state,o=n.action,r=n.controlled,i=n.index,a=n.lifecycle,s=n.status,l=this.props,c=l.debug,u=l.run,p=l.stepIndex,f=l.steps,d=e.steps,h=e.stepIndex,y=this.store,g=y.setSteps,b=y.reset,v=y.start,w=y.stop,E=y.update,O=N(e,this.props).changed,S=N(t,this.state),k=S.changed,T=S.changedFrom,x=hn(f[i],this.props),C=!Yt(d,f),P=m.number(p)&&O("stepIndex"),j=nn(null==x?void 0:x.target);if(C&&(yn(f,c)?g(f):console.warn("Steps are not valid",f)),O("run")&&(u?v(p):w()),P){var I=h=0?g:0,r===Ft.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en(),n=arguments.length>2?arguments[2]:void 0;new Promise((function(o,r){var i=t.scrollTop,a=e>i?e-i:i-e;I().top(t,e,{duration:a<100?50:n},(function(e){return e&&"Element already at target scroll position"!==e.message?r(e):o()}))}))}(g,y,p)}}}},{key:"render",value:function(){if(!Bt)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=hn(i.steps[n],this.props);return o===Ft.RUNNING&&u&&(e=r().createElement(Nn,kt({},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().createElement("div",{className:"react-joyride"},e)}}]),n}(r().Component);St(Tn,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});const xn=Tn;function Cn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n{var e={184:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t0&&d[d.length-1].lhs&&Object.getOwnPropertyDescriptor(d[d.length-1].lhs,u),k="undefined"!==O||d&&d.length>0&&d[d.length-1].rhs&&Object.getOwnPropertyDescriptor(d[d.length-1].rhs,u);if(!S&&k)n.push(new i(m,t));else if(!k&&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(g=d.length-1;g>-1;--g)if(d[g].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)}))),g=t.length-1,b=e.length-1;g>b;)n.push(new s(m,g,new i(void 0,t[g--])));for(;b>g;)n.push(new s(m,b,new a(void 0,e[b--])));for(;g>=0;--g)f(e[g],t[g],n,o,m,g,d,h)}else{var N=Object.keys(e),T=Object.keys(t);for(g=0;g=0?(f(e[v],t[v],n,o,m,v,d,h),T[w]=null):f(e[v],void 0,n,o,m,v,d,h);for(g=0;g{"use strict";var t=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===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||r,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=o;var c=Array.isArray(n);return c===Array.isArray(e)?c?l.arrayMerge(e,n,l):function(e,t,n){var r={};return n.isMergeableObject(e)&&i(e).forEach((function(t){r[t]=o(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}(e,n,l):o(n,l)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var l=s;e.exports=l},875:(e,t,n)=>{var o;!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)}()},703:(e,t,n)=>{"use strict";var o=n(414);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}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectType=function(e){return Object.prototype.toString.call(e).slice(8,-1)};var n=function(e){return function(n){return t.getObjectType(n)===e}},o=function(e){return function(t){return typeof t===e}},r=function(e){switch(e){case null:return"null";case!0:case!1:return"boolean"}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"bigint":return"bigint";case"symbol":return"symbol"}return r.array(e)?"Array":r.function(e)?"Function":t.getObjectType(e)||"Object"};r.array=Array.isArray,r.arrayOf=function(e,t){return!(!r.array(e)&&!r.function(t))&&e.every((function(e){return t(e)}))},r.asyncFunction=n("AsyncFunction"),r.boolean=function(e){return!0===e||!1===e},r.date=n("Date"),r.defined=function(e){return!r.undefined(e)},r.domElement=function(e){return r.object(e)&&!r.plainObject(e)&&1===e.nodeType&&r.string(e.nodeName)&&["innerHTML","ownerDocument","style","attributes","nodeValue"].every((function(t){return t in e}))},r.empty=function(e){return r.string(e)&&0===e.length||r.array(e)&&0===e.length||r.object(e)&&!r.map(e)&&!r.set(e)&&0===Object.keys(e).length||r.set(e)&&0===e.size||r.map(e)&&0===e.size},r.error=n("Error"),r.function=n("Function"),r.generator=function(e){return r.iterable(e)&&r.function(e.next)&&r.function(e.throw)},r.generatorFunction=n("GeneratorFunction"),r.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},r.iterable=function(e){return!r.nullOrUndefined(e)&&r.function(e[Symbol.iterator])},r.map=n("Map"),r.nan=function(e){return Number.isNaN(e)},r.null=function(e){return null===e},r.nullOrUndefined=function(e){return r.null(e)||r.undefined(e)},r.number=function(e){return o("number")(e)&&!r.nan(e)},r.numericString=function(e){return r.string(e)&&e.length>0&&!Number.isNaN(Number(e))},r.object=function(e){return!r.nullOrUndefined(e)&&(r.function(e)||"object"==typeof e)},r.oneOf=function(e,t){return!!r.array(e)&&e.indexOf(t)>-1},r.plainObject=function(e){if("Object"!==t.getObjectType(e))return!1;var n=Object.getPrototypeOf(e);return null===n||n===Object.getPrototypeOf({})},r.promise=n("Promise"),r.propertyOf=function(e,t,n){if(!r.object(e)||!t)return!1;var o=e[t];return r.function(n)?n(o):r.defined(o)},r.regexp=n("RegExp"),r.set=n("Set"),r.string=o("string"),r.symbol=o("symbol"),r.undefined=o("undefined"),r.weakMap=n("WeakMap"),r.weakSet=n("WeakSet"),t.default=r},685:e=>{"use strict";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){const i=Number.isInteger(Number(o[r+1]));return e[t]=e[t]||(i?[]:{}),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}}},288:(e,t,n)=>{"use strict";var o=n(681),r=n(685);function i(){for(var e=[],t=0;t=0:s===o,u=Array.isArray(i)?i.indexOf(l)>=0:l===i;return c&&(a?u:!a)},changedTo:function(n,o){if(void 0===n)throw new Error("Key parameter is required");var i=r.get(e,n),a=r.get(t,n),s=Array.isArray(o)?o.indexOf(i)<0:i!==o,l=Array.isArray(o)?o.indexOf(a)>=0:a===o;return s&&l},increased:function(n){if(void 0===n)throw new Error("Key parameter is required");return i(r.get(e,n),r.get(t,n))&&r.get(e,n)r.get(t,n)}}}},921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case u:case p:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case c:case f:case y:case m:case l:return e;default:return t}}case r:return t}}}t.Element=o,t.ForwardRef=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===g)},t.typeOf=E},864:(e,t,n)=>{"use strict";e.exports=n(921)},818:(e,t,n)=>{"use strict";e.exports=n(359)},359:(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=2)}([function(e,t){e.exports=n(804)},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return u}));var o=n(0),r=n.n(o);const i="notification__item";var a,s,l,c;!function(e){e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.BOTTOM_CENTER="bottom-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e.TOP_CENTER="top-center",e.CENTER="center",e.TOP_FULL="top-full",e.BOTTOM_FULL="bottom-full"}(a||(a={})),function(e){e.TOP="top",e.BOTTOM="bottom"}(s||(s={})),function(e){e.SUCCESS="success",e.DANGER="danger",e.INFO="info",e.DEFAULT="default",e.WARNING="warning"}(l||(l={})),function(e){e.TIMEOUT="timeout",e.CLICK="click",e.TOUCH="touch",e.MANUAL="manual"}(c||(c={}));var u=new class{constructor(){this.incrementCounter=()=>this.counter+=1,this.getCounter=()=>this.counter,this.counter=0,this.add=null}addNotification(e){this.incrementCounter();const t=function(e,t,n){const o=e,{id:r,type:i,insert:a,content:s,container:c,animationIn:f,animationOut:d,slidingEnter:h,slidingExit:m,touchRevert:g,touchSlidingExit:b,dismiss:v,width:w,onRemoval:E}=o;o.id=r||u.getCounter().toString(),o.type=s?null:i.toLowerCase(),t&&!s&&(o.userDefinedTypes=function(e,t){const{content:n,type:o}=e;if(!n&&o!==l.SUCCESS&&o!==l.DANGER&&o!==l.INFO&&o!==l.DEFAULT&&o!==l.WARNING&&t)return t}(o,t)),o.width=p(w)?n:w,o.container=c.toLowerCase(),o.insert=(a||"top").toLowerCase(),o.dismiss=function(e){const t=e,n={duration:0,click:!0,touch:!0,onScreen:!1,pauseOnHover:!1,waitForAnimation:!1,showIcon:!1};return t?(Object.keys(n).forEach((e=>{p(t[e])&&(t[e]=n[e])})),t):n}(v),o.animationIn=f||[],o.animationOut=d||[],o.onRemoval=E||(()=>{});const O=(e,t,n)=>({duration:e,timingFunction:t,delay:n});o.slidingEnter=y(h,O(600,"linear",0)),o.slidingExit=y(m,O(600,"linear",0)),o.touchRevert=y(g,O(600,"linear",0));const S=b||{},k=S.swipe||{},N=S.fade||{};return o.touchSlidingExit=S,o.touchSlidingExit.swipe=y(k,O(600,"linear",0)),o.touchSlidingExit.fade=y(N,O(300,"linear",0)),o}(e,this.types,this.defaultNotificationWidth);return this.add(t)}register(e){const{addNotification:t,removeNotification:n,removeAllNotifications:o,types:r,defaultNotificationWidth:i}=e;this.add=t,this.removeNotification=n,this.removeAllNotifications=o,this.defaultNotificationWidth=i,this.types=r}};const p=e=>null==e;function f(e){return e===a.BOTTOM_FULL||e===a.BOTTOM_LEFT||e===a.BOTTOM_RIGHT||e===a.BOTTOM_CENTER}function d(e){return e===a.TOP_FULL||e===a.TOP_LEFT||e===a.TOP_RIGHT||e===a.TOP_CENTER}function h(e){const{type:t,content:n,userDefinedTypes:o}=e,r=[i];if(n)return r;if(p(o))return function(e){switch(e){case l.DEFAULT:return[i,"notification__item--default"];case l.SUCCESS:return[i,"notification__item--success"];case l.DANGER:return[i,"notification__item--danger"];case l.WARNING:return[i,"notification__item--warning"];case l.INFO:return[i,"notification__item--info"];default:return[i]}}(t);const a=o.find((e=>e.name===t));return r.concat(a.htmlClasses)}function m({duration:e,timingFunction:t,delay:n},o){return`${e}ms ${o} ${t} ${n}ms`}function y(e,{duration:t,timingFunction:n,delay:o}){const r=e||{};return p(r.duration)&&(r.duration=t),p(r.timingFunction)&&(r.timingFunction=n),p(r.delay)&&(r.delay=o),r}class g{constructor(e,t){this.callback=e,this.remaining=t,this.resume()}pause(){clearTimeout(this.timerId),this.remaining-=Date.now()-this.start}resume(){this.start=Date.now(),clearTimeout(this.timerId),this.timerId=setTimeout(this.callback,this.remaining)}clear(){clearTimeout(this.timerId)}}class b extends r.a.Component{constructor(e){super(e),this.onClick=()=>{const{notification:{dismiss:e}}=this.props;(e.click||e.showIcon)&&this.removeNotification(c.CLICK)},this.onTouchStart=e=>{const{pageX:t}=e.touches[0];this.setState((({parentStyle:e})=>({startX:t,currentX:t,parentStyle:Object.assign(Object.assign({},e),{position:"relative"})})))},this.onTouchMove=e=>{const{pageX:t}=e.touches[0],{startX:n}=this.state,{toggleRemoval:o,notification:{id:r,onRemoval:i,slidingExit:a,touchSlidingExit:{swipe:s,fade:l}}}=this.props,u=t-n,{offsetWidth:p}=this.rootElementRef.current,f=window.innerWidth+p,d=(t-n>=0?f:-f)+"px";if(function(e,t){return Math.abs(e)>=.4*t}(u,p)){const e=m(s,"left"),t=m(l,"opacity"),n=()=>{o(r,(()=>i(r,c.TOUCH)))};return this.setState((({parentStyle:o})=>({touchEnabled:!1,parentStyle:Object.assign(Object.assign({},o),{left:d,opacity:0,transition:`${e}, ${t}`}),onTransitionEnd:()=>{this.setState((({parentStyle:e})=>({parentStyle:Object.assign(Object.assign({},e),{height:"0px",overflow:"hidden",transition:m(a,"height")}),onTransitionEnd:n})))}})))}return this.setState((({parentStyle:e})=>({currentX:t,parentStyle:Object.assign(Object.assign({},e),{left:0+u+"px"})})))},this.onTouchEnd=()=>{const{notification:{touchRevert:e}}=this.props;this.setState((({parentStyle:t})=>({parentStyle:Object.assign(Object.assign({},t),{left:0,transition:m(e,"left")})})))},this.onMouseEnter=()=>{this.timer?this.timer.pause():this.setState({animationPlayState:"paused"})},this.onMouseLeave=()=>{this.timer?this.timer.resume():this.setState({animationPlayState:"running"})},this.rootElementRef=r.a.createRef();const{defaultNotificationWidth:t,notification:n,isMobile:o}=e,{width:i,container:s}=n;this.state={parentStyle:{height:"0px",overflow:"hidden",width:(i||t)+"px"},htmlClassList:h(n),animationPlayState:"running",touchEnabled:!0};const l=-1!==[a.TOP_FULL,a.BOTTOM_FULL,a.TOP_CENTER,a.BOTTOM_CENTER,a.CENTER].indexOf(s);(o||l)&&(this.state.parentStyle.width="100%")}componentWillUnmount(){this.timer&&this.timer.clear()}componentDidMount(){const{notification:e,notificationsCount:t}=this.props,{dismiss:{duration:n,onScreen:o}}=e,r=function(e,t){return!(t<=1)&&t>1&&(e.insert===s.TOP&&d(e.container)||e.insert===s.BOTTOM&&f(e.container)||e.container===a.CENTER)}(e,t),{scrollHeight:i}=this.rootElementRef.current,l=()=>{n&&!o&&(this.timer=new g((()=>this.removeNotification(c.TIMEOUT)),n))};this.setState((({parentStyle:{width:t}})=>({parentStyle:{width:t,height:i+"px",transition:r?m(e.slidingEnter,"height"):"10ms height"},onTransitionEnd:l})),(()=>{requestAnimationFrame((()=>{this.setState((t=>({htmlClassList:[...e.animationIn,...t.htmlClassList]})))}))}))}componentDidUpdate({hasBeenRemoved:e}){this.props.hasBeenRemoved&&!e&&this.removeNotification(c.MANUAL)}removeNotification(e){const{notification:t,toggleRemoval:n}=this.props,{id:o,onRemoval:r,dismiss:{waitForAnimation:i}}=t,a=[...t.animationOut,...h(t)],s=()=>n(o,(()=>r(o,e))),l={height:"0px",overflow:"hidden",transition:m(t.slidingExit,"height")};return i?this.setState((({parentStyle:{width:e}})=>({htmlClassList:a,onAnimationEnd:()=>{this.setState({parentStyle:Object.assign({width:e},l),onTransitionEnd:s})}}))):this.setState((({parentStyle:{width:e}})=>({parentStyle:Object.assign({width:e},l),onTransitionEnd:s,htmlClassList:a})))}renderTimer(){const{notification:{dismiss:e}}=this.props,{duration:t,onScreen:n}=e,{animationPlayState:o}=this.state;if(!t||!n)return;const i={animationName:"timer",animationDuration:t+"ms",animationTimingFunction:"linear",animationFillMode:"forwards",animationDelay:"0",animationPlayState:o};return r.a.createElement("div",{className:"notification__timer"},r.a.createElement("div",{className:"notification__timer-filler",onAnimationEnd:()=>this.removeNotification(c.TIMEOUT),style:i}))}renderCustomContent(){const{htmlClassList:e}=this.state,{notification:{id:t,content:n,dismiss:{duration:o,pauseOnHover:i}}}=this.props,a=o>0&&i;return r.a.createElement("div",{className:""+[...e].join(" "),onMouseEnter:a?this.onMouseEnter:null,onMouseLeave:a?this.onMouseLeave:null},r.a.isValidElement(n)?n:r.a.createElement(n,Object.assign({},{id:t})))}renderNotification(){const{notification:{title:e,message:t,dismiss:{showIcon:n,duration:o,pauseOnHover:i}}}=this.props,{htmlClassList:a}=this.state,s=o>0&&i;return r.a.createElement("div",{className:""+[...a].join(" "),onMouseEnter:s?this.onMouseEnter:null,onMouseLeave:s?this.onMouseLeave:null},r.a.createElement("div",{className:"notification__content"},n&&r.a.createElement("div",{className:"notification__close",onClick:this.onClick}),e&&r.a.createElement("div",{className:"notification__title"},e),r.a.createElement("div",{className:"notification__message"},t),this.renderTimer()))}render(){const{notification:{content:e,dismiss:{click:t}}}=this.props,{parentStyle:n,onAnimationEnd:o,onTransitionEnd:i,touchEnabled:a}=this.state;return r.a.createElement("div",{ref:this.rootElementRef,onClick:t?this.onClick:null,className:"notification",style:n,onAnimationEnd:o,onTransitionEnd:i,onTouchStart:a?this.onTouchStart:null,onTouchMove:a?this.onTouchMove:null,onTouchEnd:a?this.onTouchEnd:null},e?this.renderCustomContent():this.renderNotification())}}var v=b;n(1);class w extends r.a.Component{constructor(e){super(e),this.handleResize=()=>{this.setState({windowWidth:window.innerWidth})},this.add=e=>(this.setState((({notifications:t})=>({notifications:"top"===e.insert?[e,...t]:[...t,e]}))),e.id),this.remove=e=>{this.setState((({notifications:t})=>({notifications:t.map((t=>(t.id===e&&(t.hasBeenRemoved=!0),t)))})))},this.removeAllNotifications=()=>{this.setState({notifications:this.state.notifications.map((e=>Object.assign(Object.assign({},e),{hasBeenRemoved:!0})))})},this.toggleRemoval=(e,t)=>{this.setState((({notifications:t})=>({notifications:t.filter((({id:t})=>t!==e))})),t)},this.state={isMobile:!!p(e.isMobile)||e.isMobile,breakpoint:p(e.breakpoint)?768:e.breakpoint,notifications:[],windowWidth:void 0}}componentDidMount(){const{types:e,defaultNotificationWidth:t}=this.props;u.register({addNotification:this.add,removeNotification:this.remove,removeAllNotifications:this.removeAllNotifications,defaultNotificationWidth:t||325,types:e}),this.setState({windowWidth:window.innerWidth}),window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}renderNotifications(e,t){return e.map((n=>r.a.createElement(v,{id:n.id,key:n.id,isMobile:t,defaultNotificationWidth:this.props.defaultNotificationWidth,notification:n,toggleRemoval:this.toggleRemoval,notificationsCount:e.length,hasBeenRemoved:n.hasBeenRemoved})))}renderMobileNotifications(e){const{className:t,id:n}=e,{notifications:o}=this.state,i=function(e){const t=[],n=[];return e.forEach((e=>{const{container:o}=e,{CENTER:r}=a;d(o)||o===r?t.push(e):f(o)&&n.push(e)})),{top:t,bottom:n}}(o),s=this.renderNotifications(i.top,!0),l=this.renderNotifications(i.bottom,!0);return r.a.createElement("div",{id:n,key:"mobile",className:"notifications-component "+(t||"")},r.a.createElement("div",{className:"notification-container--mobile-top"},s),r.a.createElement("div",{className:"notification-container--mobile-bottom"},l))}renderScreenNotifications(e){const{className:t,id:n}=e,{notifications:o}=this.state,i=function(e){const t=[],n=[],o=[],r=[],i=[],s=[],l=[],c=[],u=[];return e.forEach((e=>{const{container:p}=e;p===a.TOP_FULL?c.push(e):p===a.BOTTOM_FULL?u.push(e):p===a.TOP_LEFT?t.push(e):p===a.TOP_RIGHT?n.push(e):p===a.TOP_CENTER?o.push(e):p===a.BOTTOM_LEFT?r.push(e):p===a.BOTTOM_RIGHT?i.push(e):p===a.BOTTOM_CENTER?s.push(e):p===a.CENTER&&l.push(e)})),{topFull:c,bottomFull:u,topLeft:t,topRight:n,topCenter:o,bottomLeft:r,bottomRight:i,bottomCenter:s,center:l}}(o),s=this.renderNotifications(i.topFull,!1),l=this.renderNotifications(i.bottomFull,!1),c=this.renderNotifications(i.topLeft,!1),u=this.renderNotifications(i.topRight,!1),p=this.renderNotifications(i.topCenter,!1),f=this.renderNotifications(i.bottomLeft,!1),d=this.renderNotifications(i.bottomRight,!1),h=this.renderNotifications(i.bottomCenter,!1),m=this.renderNotifications(i.center,!1);return r.a.createElement("div",{id:n,key:"screen",className:"notifications-component "+(t||"")},r.a.createElement("div",{className:"notification-container--top-full"},s),r.a.createElement("div",{className:"notification-container--bottom-full"},l),r.a.createElement("div",{className:"notification-container--top-left"},c),r.a.createElement("div",{className:"notification-container--top-right"},u),r.a.createElement("div",{className:"notification-container--bottom-left"},f),r.a.createElement("div",{className:"notification-container--bottom-right"},d),r.a.createElement("div",{className:"notification-container--top-center"},p),r.a.createElement("div",{className:"notification-container--center"},r.a.createElement("div",{className:"flex-center"},m)),r.a.createElement("div",{className:"notification-container--bottom-center"},h))}render(){const{isMobile:e}=this.props,{windowWidth:t,breakpoint:n}=this.state;return e&&t<=n?this.renderMobileNotifications(this.props):this.renderScreenNotifications(this.props)}}var E=w;t.default=E}])},494:(e,t)=>{"use strict";var n=function(e,t,n,o){return"boolean"==typeof e?e:"function"==typeof e?e(t,n,o):!(1!=!!e||!e)},o=function(e,t){return Object.hasOwnProperty.call(e,t)},r=function(e,t,n,o){return o?new Error(o):new Error("Required "+e[t]+" `"+t+"` was not specified in `"+n+"`.")};t.Z=function(e,t,i){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,i),function(a,s,l){for(var c=arguments.length,u=Array(3{var t=new Error("Element already at target scroll position"),n=new Error("Scroll cancelled"),o=Math.min,r=Date.now;function i(e){return function(i,l,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=s);var p=r(),f=i[e],d=c.ease||a,h=isNaN(c.duration)?350:+c.duration,m=!1;return f===l?u(t,i[e]):requestAnimationFrame((function t(a){if(m)return u(n,i[e]);var s=r(),c=o(1,(s-p)/h),y=d(c);i[e]=y*(l-f)+f,c<1?requestAnimationFrame(t):requestAnimationFrame((function(){u(null,i[e])}))})),function(){m=!0}}}function a(e){return.5*(1-Math.cos(Math.PI*e))}function s(){}e.exports={left:i("scrollLeft"),top:i("scrollTop")}},274:function(e,t){var n,o;void 0===(o="function"==typeof(n=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{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},804:e=>{"use strict";e.exports=React}},t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(818),t=n.n(e),o=n(804),r=n.n(o),i=n(697),a=n.n(i),s=n(747),l=["innerHTML","ownerDocument","style","attributes","nodeValue"],c=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],u=["bigint","boolean","null","number","string","symbol","undefined"];function p(e){var t,n=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(t=n,c.includes(t)?n:void 0)}function f(e){return function(t){return p(t)===e}}function d(e){return function(t){return typeof t===e}}function h(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return h.array(e)?"Array":h.plainFunction(e)?"Function":p(e)||"Object"}h.array=Array.isArray,h.arrayOf=function(e,t){return!(!h.array(e)&&!h.function(t))&&e.every((function(e){return t(e)}))},h.asyncGeneratorFunction=function(e){return"AsyncGeneratorFunction"===p(e)},h.asyncFunction=f("AsyncFunction"),h.bigint=d("bigint"),h.boolean=function(e){return!0===e||!1===e},h.date=f("Date"),h.defined=function(e){return!h.undefined(e)},h.domElement=function(e){return h.object(e)&&!h.plainObject(e)&&1===e.nodeType&&h.string(e.nodeName)&&l.every((function(t){return t in e}))},h.empty=function(e){return h.string(e)&&0===e.length||h.array(e)&&0===e.length||h.object(e)&&!h.map(e)&&!h.set(e)&&0===Object.keys(e).length||h.set(e)&&0===e.size||h.map(e)&&0===e.size},h.error=f("Error"),h.function=d("function"),h.generator=function(e){return h.iterable(e)&&h.function(e.next)&&h.function(e.throw)},h.generatorFunction=f("GeneratorFunction"),h.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},h.iterable=function(e){return!h.nullOrUndefined(e)&&h.function(e[Symbol.iterator])},h.map=f("Map"),h.nan=function(e){return Number.isNaN(e)},h.null=function(e){return null===e},h.nullOrUndefined=function(e){return h.null(e)||h.undefined(e)},h.number=function(e){return d("number")(e)&&!h.nan(e)},h.numericString=function(e){return h.string(e)&&e.length>0&&!Number.isNaN(Number(e))},h.object=function(e){return!h.nullOrUndefined(e)&&(h.function(e)||"object"==typeof e)},h.oneOf=function(e,t){return!!h.array(e)&&e.indexOf(t)>-1},h.plainFunction=f("Function"),h.plainObject=function(e){if("Object"!==p(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},h.primitive=function(e){return h.null(e)||(t=typeof e,u.includes(t));var t},h.promise=f("Promise"),h.propertyOf=function(e,t,n){if(!h.object(e)||!t)return!1;var o=e[t];return h.function(n)?n(o):h.defined(o)},h.regexp=f("RegExp"),h.set=f("Set"),h.string=d("string"),h.symbol=d("symbol"),h.undefined=d("undefined"),h.weakMap=f("WeakMap"),h.weakSet=f("WeakSet");const m=h;function y(e,t,n){var o=n.actual,r=n.key,i=n.previous,a=n.type,s=k(e,r),l=k(t,r),c=[s,l].every(m.number)&&("increased"===a?sl);return m.undefined(o)||(c=c&&l===o),m.undefined(i)||(c=c&&s===i),c}function g(e,t,n){var o=n.key,r=n.type,i=n.value,a=k(e,o),l=k(t,o),c="added"===r?a:l,u="added"===r?l:a;return m.nullOrUndefined(i)?[a,l].every(m.array)?!u.every(O(c)):[a,l].every(m.plainObject)?function(e,t){return t.some((function(t){return e.indexOf(t)<0}))}(Object.keys(c),Object.keys(u)):![a,l].every((function(e){return m.primitive(e)&&m.defined(e)}))&&("added"===r?!m.defined(a)&&m.defined(l):m.defined(a)&&!m.defined(l)):m.defined(c)?!(!m.array(c)&&!m.plainObject(c))&&function(e,t,n){return!!S(e,t)&&([e,t].every(m.array)?!e.some(w(n))&&t.some(w(n)):[e,t].every(m.plainObject)?!Object.entries(e).some(v(n))&&Object.entries(t).some(v(n)):t===n)}(c,u,i):s(u,i)}function b(e,t,n){var o=(void 0===n?{}:n).key,r=k(e,o),i=k(t,o);if(!S(r,i))throw new TypeError("Inputs have different types");if(!function(){for(var e=[],t=0;t=0)return 1;return 0}(),W=F&&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()}),B))}};function U(e){return e&&"[object Function]"==={}.toString.call(e)}function H(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function z(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function G(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=H(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:G(z(e))}function q(e){return e&&e.referenceNode?e.referenceNode:e}var V=F&&!(!window.MSInputMethodContext||!document.documentMode),$=F&&/MSIE 10/.test(navigator.userAgent);function Y(e){return 11===e?V:10===e?$:V||$}function K(e){if(!e)return document.documentElement;for(var t=Y(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"===H(n,"position")?K(n):n:e?e.ownerDocument.documentElement:document.documentElement}function J(e){return null!==e.parentNode?J(e.parentNode):e}function X(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&&K(a.firstElementChild)!==a?K(l):l;var c=J(e);return c.host?X(c.host,t):X(e,J(t).host)}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var r=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||r;return i[n]}return e[n]}function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Z(t,"top"),r=Z(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}function ee(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function te(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Y(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function ne(e){var t=e.body,n=e.documentElement,o=Y(10)&&getComputedStyle(n);return{height:te("Height",t,n,o),width:te("Width",t,n,o)}}var oe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},re=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],o=Y(10),r="HTML"===t.nodeName,i=le(e),a=le(t),s=G(e),l=H(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=se({top:i.top-a.top-c,left:i.left-a.left-u,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!o&&r){var f=parseFloat(l.marginTop),d=parseFloat(l.marginLeft);p.top-=c-f,p.bottom-=c-f,p.left-=u-d,p.right-=u-d,p.marginTop=f,p.marginLeft=d}return(o&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(p=Q(p,t)),p}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=ce(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Z(n),s=t?0:Z(n,"left"),l={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:r,height:i};return se(l)}function pe(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===H(e,"position"))return!0;var n=z(e);return!!n&&pe(n)}function fe(e){if(!e||!e.parentElement||Y())return document.documentElement;for(var t=e.parentElement;t&&"none"===H(t,"transform");)t=t.parentElement;return t||document.documentElement}function de(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=r?fe(e):X(e,q(t));if("viewport"===o)i=ue(a,r);else{var s=void 0;"scrollParent"===o?"BODY"===(s=G(z(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===o?e.ownerDocument.documentElement:o;var l=ce(s,a,r);if("HTML"!==s.nodeName||pe(a))i=l;else{var c=ne(e.ownerDocument),u=c.height,p=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=p+l.left}}var f="number"==typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function he(e){return e.width*e.height}function me(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=de(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 ae({key:e},s[e],{area:he(s[e])})})).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 ye(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=o?fe(t):X(t,q(n));return ce(n,r,o)}function ge(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 be(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 ve(e,t,n){n=n.split("-")[0];var o=ge(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[be(s)],r}function we(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Ee(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.name===n}));var o=we(e,(function(e){return e.name===n}));return e.indexOf(o)}(e,0,n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&U(n)&&(t.offsets.popper=se(t.offsets.popper),t.offsets.reference=se(t.offsets.reference),t=n(t,e))})),t}function Oe(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=ye(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=me(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=ve(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Ee(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Se(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function ke(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o1&&void 0!==arguments[1]&&arguments[1],n=Ae.indexOf(e),o=Ae.slice(n+1).concat(Ae.slice(0,n));return t?o.reverse():o}var Fe={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:ie({},l,i[l]),end:ie({},l,i[l]+i[c]-a[c])};e.offsets.popper=ae({},a,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,o=t.offset,r=e.placement,i=e.offsets,a=i.popper,s=i.reference,l=r.split("-")[0];return n=Ie(+o)?[+o,0]:function(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(we(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 se(s)[t]/100*i}return"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){Ie(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}(o,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||K(e.instance.popper);e.instance.reference===n&&(n=K(n));var o=ke("transform"),r=e.instance.popper.style,i=r.top,a=r.left,s=r[o];r.top="",r.left="",r[o]="";var l=de(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&&(o=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),ie({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=ae({},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[s])&&(e.offsets.popper[l]=i(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!_e(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,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",p=u.toLowerCase(),f=l?"left":"top",d=l?"bottom":"right",h=ge(o)[c];s[d]-ha[d]&&(e.offsets.popper[p]+=s[p]+h-a[d]),e.offsets.popper=se(e.offsets.popper);var m=s[p]+s[c]/2-h/2,y=H(e.instance.popper),g=parseFloat(y["margin"+u]),b=parseFloat(y["border"+u+"Width"]),v=m-e.offsets.popper[p]-g-b;return v=Math.max(Math.min(a[c]-h,v),0),e.arrowElement=o,e.offsets.arrow=(ie(n={},p,Math.round(v)),ie(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Se(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=de(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=be(o),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[o,r];break;case"clockwise":a=De(o);break;case"counterclockwise":a=De(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=be(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.top)||"bottom"===o&&p(c.top)p(n.right),m=p(c.top)p(n.bottom),g="left"===o&&d||"right"===o&&h||"top"===o&&m||"bottom"===o&&y,b=-1!==["top","bottom"].indexOf(o),v=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&y),w=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&d||!b&&"start"===i&&y||!b&&"end"===i&&m),E=v||w;(f||g||E)&&(e.flipped=!0,(f||g)&&(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=ae({},e.offsets.popper,ve(e.instance.popper,e.offsets.reference,e.placement)),e=Ee(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=be(t),e.offsets.popper=se(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!_e(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=we(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};oe(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=W(this.update.bind(this)),this.options=ae({},e.Defaults,r),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(ae({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){o.options.modifiers[t]=ae({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return ae({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&U(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return re(e,[{key:"update",value:function(){return Oe.call(this)}},{key:"destroy",value:function(){return Ne.call(this)}},{key:"enableEventListeners",value:function(){return Pe.call(this)}},{key:"disableEventListeners",value:function(){return je.call(this)}}]),e}();Be.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,Be.placements=Me,Be.Defaults=Fe;const We=Be;var Ue=n(576),He=n(288);function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function et(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?Qe(e):t}var tt={flip:{padding:20},preventOverflow:{padding:10}},nt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},ot=P().canUseDOM,rt=void 0!==x().createPortal;function it(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function at(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){Ue.default.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd())}function st(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,o)}function lt(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,o)}function ct(){}var ut=function(e){function t(e){var n;return ze(this,t),n=et(this,Je(t).call(this,e)),ot?(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):et(n)}return Ke(t,e),qe(t,[{key:"componentDidMount",value:function(){ot&&(rt||this.renderPortal())}},{key:"componentDidUpdate",value:function(){ot&&(rt||this.renderPortal())}},{key:"componentWillUnmount",value:function(){ot&&this.node&&(rt||x().unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderPortal",value:function(){if(!ot)return null;var e=this.props,t=e.children,n=e.setRef;return rt?x().createPortal(t,this.node):(n(x().unstable_renderSubtreeIntoContainer(this,t.length>1?r().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||o||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return rt?this.renderReact16():null}}]),t}(r().Component);Ve(ut,"propTypes",{children:a().oneOfType([a().element,a().array]),hasChildren:a().bool,id:a().oneOfType([a().string,a().number]),placement:a().string,setRef:a().func.isRequired,target:a().oneOfType([a().object,a().string]),zIndex:a().number});var pt=function(e){function t(){return ze(this,t),et(this,Je(t).apply(this,arguments))}return Ke(t,e),qe(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().createElement("div",{className:"__floater__arrow",style:this.parentStyle},r().createElement("span",{ref:o,style:f},r().createElement("svg",{width:d,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r().createElement("polygon",{points:e,fill:a}))))}},{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,o={pointerEvents:"none",position:"absolute",width:"100%"};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().Component);Ve(pt,"propTypes",{placement:a().string.isRequired,setArrowRef:a().func.isRequired,styles:a().object.isRequired});var ft=function(e){var t=e.handleClick,n=e.styles,o=n.color,i=n.height,a=n.width,s=Ze(n,["color","height","width"]);return r().createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},r().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().createElement("g",null,r().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}))))};ft.propTypes={handleClick:a().func.isRequired,styles:a().object.isRequired};var dt=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().isValidElement(t)?t:r().createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=r().isValidElement(l)?l:r().createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=r().isValidElement(n)?n:r().createElement("div",{className:"__floater__footer",style:c.footer},n)),!s&&!a||Ue.default.boolean(i)||(u.close=r().createElement(ft,{styles:c.close,handleClick:o})),r().createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)};dt.propTypes={content:a().node.isRequired,footer:a().node,handleClick:a().func.isRequired,open:a().bool,positionWrapper:a().bool.isRequired,showCloseButton:a().bool.isRequired,styles:a().object.isRequired,title:a().node};var ht=function(e){function t(){return ze(this,t),et(this,Je(t).apply(this,arguments))}return Ke(t,e),qe(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().isValidElement(t)?s.content=r().cloneElement(t,{closeFn:n}):s.content=t({closeFn:n}):s.content=r().createElement(dt,this.props),a===nt.OPEN&&l.push("__floater__open"),o||(s.arrow=r().createElement(pt,this.props)),r().createElement("div",{ref:i,className:l.join(" "),style:this.style},r().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.status,a=e.styles,s=a.arrow.length,l=a.floater,c=a.floaterCentered,u=a.floaterClosing,p=a.floaterOpening,f=a.floaterWithAnimation,d=a.floaterWithComponent,h={};return r||(o.startsWith("top")?h.padding="0 0 ".concat(s,"px"):o.startsWith("bottom")?h.padding="".concat(s,"px 0 0"):o.startsWith("left")?h.padding="0 ".concat(s,"px 0 0"):o.startsWith("right")&&(h.padding="0 0 0 ".concat(s,"px"))),-1!==[nt.OPENING,nt.OPEN].indexOf(i)&&(h=Ye({},h,{},p)),i===nt.CLOSING&&(h=Ye({},h,{},u)),i!==nt.OPEN||t||(h=Ye({},h,{},f)),"center"===o&&(h=Ye({},h,{},c)),n&&(h=Ye({},h,{},d)),Ye({},l,{},h)}}]),t}(r().Component);Ve(ht,"propTypes",{component:a().oneOfType([a().func,a().element]),content:a().node,disableAnimation:a().bool.isRequired,footer:a().node,handleClick:a().func.isRequired,hideArrow:a().bool.isRequired,open:a().bool,placement:a().string.isRequired,positionWrapper:a().bool.isRequired,setArrowRef:a().func.isRequired,setFloaterRef:a().func.isRequired,showCloseButton:a().bool,status:a().string.isRequired,styles:a().object.isRequired,title:a().node});var mt=function(e){function t(){return ze(this,t),et(this,Je(t).apply(this,arguments))}return Ke(t,e),qe(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().Children.count(n))if(r().isValidElement(n)){var p=Ue.default.function(n.type)?"innerRef":"ref";e=r().cloneElement(r().Children.only(n),Ve({},p,s))}else e=r().createElement("span",null,n);else e=n;return e?r().createElement("span",{ref:l,style:Ye({},u,{},c),onClick:o,onMouseEnter:i,onMouseLeave:a},e):null}}]),t}(r().Component);Ve(mt,"propTypes",{children:a().node,handleClick:a().func.isRequired,handleMouseEnter:a().func.isRequired,handleMouseLeave:a().func.isRequired,setChildRef:a().func.isRequired,setWrapperRef:a().func.isRequired,style:a().object,styles:a().object.isRequired});var yt={zIndex:100},gt=["position","top","right","bottom","left"],bt=function(e){function t(e){var n;return ze(this,t),Ve(Qe(n=et(this,Je(t).call(this,e))),"setArrowRef",(function(e){n.arrowRef=e})),Ve(Qe(n),"setChildRef",(function(e){n.childRef=e})),Ve(Qe(n),"setFloaterRef",(function(e){n.floaterRef||(n.floaterRef=e)})),Ve(Qe(n),"setWrapperRef",(function(e){n.wrapperRef=e})),Ve(Qe(n),"handleTransitionEnd",(function(){var e=n.state.status,t=n.props.callback;n.wrapperPopper&&n.wrapperPopper.instance.update(),n.setState({status:e===nt.OPENING?nt.OPEN:nt.IDLE},(function(){var e=n.state.status;t(e===nt.OPEN?"open":"close",n.props)}))})),Ve(Qe(n),"handleClick",(function(){var e=n.props,t=e.event,o=e.open;if(!Ue.default.boolean(o)){var r=n.state,i=r.positionWrapper,a=r.status;("click"===n.event||"hover"===n.event&&i)&&(at({title:"click",data:[{event:t,status:a===nt.OPEN?"closing":"opening"}],debug:n.debug}),n.toggle())}})),Ve(Qe(n),"handleMouseEnter",(function(){var e=n.props,t=e.event,o=e.open;if(!Ue.default.boolean(o)&&!it()){var r=n.state.status;"hover"===n.event&&r===nt.IDLE&&(at({title:"mouseEnter",data:[{key:"originalEvent",value:t}],debug:n.debug}),clearTimeout(n.eventDelayTimeout),n.toggle())}})),Ve(Qe(n),"handleMouseLeave",(function(){var e=n.props,t=e.event,o=e.eventDelay,r=e.open;if(!Ue.default.boolean(r)&&!it()){var i=n.state,a=i.status,s=i.positionWrapper;"hover"===n.event&&(at({title:"mouseLeave",data:[{key:"originalEvent",value:t}],debug:n.debug}),o?-1===[nt.OPENING,nt.OPEN].indexOf(a)||s||n.eventDelayTimeout||(n.eventDelayTimeout=setTimeout((function(){delete n.eventDelayTimeout,n.toggle()}),1e3*o)):n.toggle(nt.IDLE))}})),n.state={currentPlacement:e.placement,positionWrapper:e.wrapperOptions.position&&!!e.target,status:nt.INIT,statusWrapper:nt.INIT},n._isMounted=!1,ot&&window.addEventListener("load",(function(){n.popper&&n.popper.instance.update(),n.wrapperPopper&&n.wrapperPopper.instance.update()})),n}return Ke(t,e),qe(t,[{key:"componentDidMount",value:function(){if(ot){var e=this.state.positionWrapper,t=this.props,n=t.children,o=t.open,r=t.target;this._isMounted=!0,at({title:"init",data:{hasChildren:!!n,hasTarget:!!r,isControlled:Ue.default.boolean(o),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.initPopper(),!n&&r&&Ue.default.boolean(o)}}},{key:"componentDidUpdate",value:function(e,t){if(ot){var n,o=this.props,r=o.autoOpen,i=o.open,a=o.target,s=o.wrapperOptions,l=(0,He.Z)(t,this.state),c=l.changedFrom,u=l.changedTo;e.open!==i&&(Ue.default.boolean(i)&&(n=i?nt.OPENING:nt.CLOSING),this.toggle(n)),e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(u("status",nt.IDLE)&&i||c("status",nt.INIT,nt.IDLE)&&r)&&this.toggle(nt.OPEN),this.popper&&u("status",nt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",nt.OPENING)||u("status",nt.CLOSING))&&function(e,t,n){var o;st(e,t,o=function(r){n(r),lt(e,t,o)},arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd)}}},{key:"componentWillUnmount",value:function(){ot&&(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,c=o.wrapperOptions,u="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:nt.IDLE});else if(t&&this.floaterRef){var p=this.options,f=p.arrow,d=p.flip,h=p.offset,m=Ze(p,["arrow","flip","offset"]);new We(t,this.floaterRef,{placement:l,modifiers:Ye({arrow:Ye({enabled:!a,element:this.arrowRef},f),flip:Ye({enabled:!r,behavior:u},d),offset:Ye({offset:"0, ".concat(s,"px")},h)},m),onCreate:function(t){e.popper=t,i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:nt.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})}})}if(n){var y=Ue.default.undefined(c.offset)?0:c.offset;new We(this.target,this.wrapperRef,{placement:c.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(y,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:nt.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===nt.OPEN?nt.CLOSING:nt.OPENING;Ue.default.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.open,h=i.showCloseButton,m=i.style,y=i.target,g=i.title,b=r().createElement(mt,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),v={};return n?v.wrapperInPortal=b:v.wrapperAsChildren=b,r().createElement("span",null,r().createElement(ut,{hasChildren:!!a,id:f,placement:t,setRef:this.setFloaterRef,target:y,zIndex:this.styles.options.zIndex},r().createElement(ht,{component:s,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:p||"center"===t,open:d,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:o,styles:this.styles,title:g}),v.wrapperInPortal),v.wrapperAsChildren)}},{key:"debug",get:function(){return this.props.debug||!!n.g.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&it()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return A()(tt,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=A()(function(e){var t=A()(yt,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",zIndex:10},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);if(r&&(e=-1===[nt.IDLE].indexOf(o)||-1===[nt.IDLE].indexOf(i)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=Ye({},s.wrapper,{},e)),this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=Ye({},s.wrapper,{},this.wrapperStyles):-1===["relative","static"].indexOf(l.position)&&(this.wrapperStyles={},r||(gt.forEach((function(e){t.wrapperStyles[e]=l[e]})),s.wrapper=Ye({},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(!ot)return null;var e=this.props.target;return e?Ue.default.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}}]),t}(r().Component);Ve(bt,"propTypes",{autoOpen:a().bool,callback:a().func,children:a().node,component:(0,D.Z)(a().oneOfType([a().func,a().element]),(function(e){return!e.content})),content:(0,D.Z)(a().node,(function(e){return!e.component})),debug:a().bool,disableAnimation:a().bool,disableFlip:a().bool,disableHoverToClick:a().bool,event:a().oneOf(["hover","click"]),eventDelay:a().number,footer:a().node,getPopper:a().func,hideArrow:a().bool,id:a().oneOfType([a().string,a().number]),offset:a().number,open:a().bool,options:a().object,placement: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().bool,style:a().object,styles:a().object,target:a().oneOfType([a().object,a().string]),title:a().node,wrapperOptions:a().shape({offset:a().number,placement: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().bool})}),Ve(bt,"defaultProps",{autoOpen:!1,callback:ct,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:ct,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});const vt=bt;function wt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function It(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rt(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?It(e):t}function Lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ct(e);if(t){var r=Ct(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Rt(this,n)}}var _t={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Mt="step:after",At="error:target_not_found",Dt={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Ft={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},Bt=P().canUseDOM,Wt=void 0!==T.createPortal;function Ut(){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 Ht(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function zt(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 Gt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qt(e,t){return!(!m.plainObject(e)||!m.array(t))&&Object.keys(e).every((function(e){return-1!==t.indexOf(e)}))}function Vt(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function $t(e){return e.disableBeacon||"center"===e.placement}function Yt(e,t){var n,r=(0,o.isValidElement)(e)||(0,o.isValidElement)(t),i=m.undefined(e)||m.undefined(t);if(Ht(e)!==Ht(t)||r||i)return!1;if(m.domElement(e))return e.isSameNode(t);if(m.number(e))return e===t;if(m.function(e))return e.toString()===t.toString();for(var a in e)if(Gt(e,a)){if(void 0===e[a]||void 0===t[a])return!1;if(n=Ht(e[a]),-1!==["object","array"].indexOf(n)&&Yt(e[a],t[a]))continue;if("function"===n&&Yt(e[a],t[a]))continue;if(e[a]!==t[a])return!1}for(var s in t)if(Gt(t,s)&&void 0===e[s])return!1;return!0}function Kt(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(Ut()))}function Jt(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){m.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 Xt={action:"",controlled:!1,index:0,lifecycle:Dt.INIT,size:0,status:Ft.IDLE},Zt=["action","index","lifecycle","status"];function Qt(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;wt(this,e),St(this,"listener",void 0),St(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===Ft.WAITING&&!r&&e.length&&(a.status=Ft.RUNNING),t.setState(a)})),St(this,"addListener",(function(e){t.listener=e})),St(this,"update",(function(e){if(!qt(e,Zt))throw new Error("State is not valid. Valid keys: ".concat(Zt.join(", ")));t.setState(Tt({},t.getNextState(Tt(Tt(Tt({},t.getState()),e),{},{action:e.action||_t.UPDATE}),!0)))})),St(this,"start",(function(e){var n=t.getState(),o=n.index,r=n.size;t.setState(Tt(Tt({},t.getNextState({action:_t.START,index:m.number(e)?e:o},!0)),{},{status:r?Ft.RUNNING:Ft.WAITING}))})),St(this,"stop",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.index,r=n.status;-1===[Ft.FINISHED,Ft.SKIPPED].indexOf(r)&&t.setState(Tt(Tt({},t.getNextState({action:_t.STOP,index:o+(e?1:0)})),{},{status:Ft.PAUSED}))})),St(this,"close",(function(){var e=t.getState(),n=e.index;e.status===Ft.RUNNING&&t.setState(Tt({},t.getNextState({action:_t.CLOSE,index:n+1})))})),St(this,"go",(function(e){var n=t.getState(),o=n.controlled,r=n.status;if(!o&&r===Ft.RUNNING){var i=t.getSteps()[e];t.setState(Tt(Tt({},t.getNextState({action:_t.GO,index:e})),{},{status:i?r:Ft.FINISHED}))}})),St(this,"info",(function(){return t.getState()})),St(this,"next",(function(){var e=t.getState(),n=e.index;e.status===Ft.RUNNING&&t.setState(t.getNextState({action:_t.NEXT,index:n+1}))})),St(this,"open",(function(){t.getState().status===Ft.RUNNING&&t.setState(Tt({},t.getNextState({action:_t.UPDATE,lifecycle:Dt.TOOLTIP})))})),St(this,"prev",(function(){var e=t.getState(),n=e.index;e.status===Ft.RUNNING&&t.setState(Tt({},t.getNextState({action:_t.PREV,index:n-1})))})),St(this,"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.controlled;o||t.setState(Tt(Tt({},t.getNextState({action:_t.RESET,index:0})),{},{status:e?Ft.RUNNING:Ft.READY}))})),St(this,"skip",(function(){t.getState().status===Ft.RUNNING&&t.setState({action:_t.SKIP,lifecycle:Dt.INIT,status:Ft.SKIPPED})})),this.setState({action:_t.INIT,controlled:m.number(a),continuous:i,index:m.number(a)?a:0,lifecycle:Dt.INIT,status:l.length?Ft.READY:Ft.IDLE},!0),this.setSteps(l)}return Ot(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getState(),r=Tt(Tt({},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")||""}:Tt({},Xt)}},{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=m.number(e.index)?e.index:i,c=r&&!t?i:Math.min(Math.max(l,0),a);return{action:e.action||o,controlled:r,index:c,lifecycle:e.lifecycle||Dt.INIT,size:e.size||a,status:c===a?Ft.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 en(){return document.scrollingElement||document.createElement("body")}function tn(e){return e?e.getBoundingClientRect():{}}function nn(e){return"string"==typeof e?document.querySelector(e):e}function on(e){return e&&1===e.nodeType?getComputedStyle(e):{}}function rn(e,t,n){var o=L()(e);return o.isSameNode(en())?n?document:en():o.scrollHeight>o.offsetHeight||t?o:(o.style.overflow="initial",en())}function an(e,t){return!!e&&!rn(e,t).isSameNode(en())}function sn(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&&(on(e).position===t||sn(e.parentNode,t))}function ln(e){return e instanceof HTMLElement?e.offsetParent instanceof HTMLElement?ln(e.offsetParent)+e.offsetTop:e.offsetTop:0}!function(e){function t(t,n,o,r,i,a){var s=r||"<>",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;p0&&void 0!==arguments[0]?arguments[0]:{},t=A()(cn,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth1&&void 0!==arguments[1]&&arguments[1];return m.plainObject(e)?!!e.target||(Jt({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Jt({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return m.array(e)?e.every((function(e){return mn(e,t)})):(Jt({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var gn=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(wt(this,e),St(this,"element",void 0),St(this,"options",void 0),St(this,"canBeTabbed",(function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e)})),St(this,"canHaveFocus",(function(e){var t=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(t)&&!e.getAttribute("disabled")||"a"===t&&!!e.getAttribute("href"))&&n.isVisible(e)})),St(this,"findValidTabElements",(function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)})),St(this,"handleKeyDown",(function(e){var t=n.options.keyCode,o=void 0===t?9:t;e.keyCode===o&&n.interceptTab(e)})),St(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()}})),St(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")})),St(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})),St(this,"removeScope",(function(){window.removeEventListener("keydown",n.handleKeyDown)})),St(this,"checkFocus",(function(e){document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((function(){return n.checkFocus(e)})))})),St(this,"setFocus",(function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&window.requestAnimationFrame((function(){return n.checkFocus(t)}))}})),!(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()},bn=function(e){xt(n,e);var t=Lt(n);function n(e){var o;if(wt(this,n),St(It(o=t.call(this,e)),"setBeaconRef",(function(e){o.beacon=e})),!e.beaconComponent){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.id="joyride-beacon-animation",i.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 ")),r.appendChild(i)}return o}return Ot(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout((function(){m.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().createElement(l,s)}else e=r().createElement("button",kt({key:"JoyrideBeacon",className:"react-joyride__beacon",style:a.beacon,type:"button"},s),r().createElement("span",{style:a.beaconInner}),r().createElement("span",{style:a.beaconOuter}));return e}}]),n}(r().Component),vn=function(e){var t=e.styles;return r().createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})},wn=function(e){xt(n,e);var t=Lt(n);function n(){var e;wt(this,n);for(var o=arguments.length,r=new Array(o),i=0;i=i&&u<=i+l&&c>=s&&c<=s+r;p!==n&&e.updateState({mouseOverSpotlight:p})})),St(It(e),"handleScroll",(function(){var t=nn(e.props.target);e.scrollParent!==document?(e.state.isScrolling||e.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(e.scrollTimeout),e.scrollTimeout=setTimeout((function(){e.updateState({isScrolling:!1,showSpotlight:!0})}),50)):sn(t,"sticky")&&e.updateState({})})),St(It(e),"handleResize",(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout((function(){e._isMounted&&e.forceUpdate()}),100)})),e}return Ot(n,[{key:"componentDidMount",value:function(){var e=this.props,t=(e.debug,e.disableScrolling,e.disableScrollParentFix),n=nn(e.target);this.scrollParent=rn(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=N(e,this.props).changed;i("lifecycle",Dt.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((function(){t.state.isScrolling||t.updateState({showSpotlight:!0})}),100)),(i("spotlightClicks")||i("disableOverlay")||i("lifecycle"))&&(r&&o===Dt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==Dt.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.disableOverlayClose,s=o.lifecycle,l=o.onClickOverlay,c=o.placement,u=o.styles;if(i||s!==Dt.TOOLTIP)return null;var p=u.overlay;Kt()&&(p="center"===c?u.overlayLegacyCenter:u.overlayLegacy);var f,d,h,m=Tt({cursor:a?"default":"pointer",height:(f=document,d=f.body,h=f.documentElement,d&&h?Math.max(d.scrollHeight,d.offsetHeight,h.clientHeight,h.scrollHeight,h.offsetHeight):0),pointerEvents:t?"none":"auto"},p),y="center"!==c&&n&&r().createElement(vn,{styles:this.spotlightStyles});if("safari"===Ut()){m.mixBlendMode,m.zIndex;var g=jt(m,["mixBlendMode","zIndex"]);y=r().createElement("div",{style:Tt({},g)},y),delete m.backgroundColor}return r().createElement("div",{className:"react-joyride__overlay",style:m,onClick:l},y)}},{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=nn(t.target),s=tn(a),l=sn(a),c=function(e,t,n){var o=tn(e),r=rn(e,n),i=an(e,n),a=0;r instanceof HTMLElement&&(a=r.scrollTop);var s=o.top+(i||sn(e)?0:a);return Math.floor(s-t)}(a,r,n);return Tt(Tt({},Kt()?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)})}}]),n}(r().Component),En=function(e){var t=e.styles,n=jt(e,["styles"]),o=t.color,i=t.height,a=t.width,s=jt(t,["color","height","width"]);return r().createElement("button",kt({style:s,type:"button"},n),r().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().createElement("g",null,r().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}))))},On=function(e){xt(n,e);var t=Lt(n);function n(){return wt(this,n),t.apply(this,arguments)}return Ot(n,[{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,g=u.showSkipButton,b=u.title,v=u.styles,w=u.locale,E=w.back,O=w.close,S=w.last,k=w.next,N=w.skip,T={primary:O};return o&&(T.primary=a?S:k,y&&(T.primary=r().createElement("span",null,T.primary," (",i+1,"/",l,")"))),g&&!a&&(T.skip=r().createElement("button",kt({style:v.buttonSkip,type:"button","aria-live":"off"},c),N)),!d&&i>0&&(T.back=r().createElement("button",kt({style:v.buttonBack,type:"button"},t),E)),T.close=!h&&r().createElement(En,kt({styles:v.buttonClose},n)),r().createElement("div",kt({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:v.tooltip},p),r().createElement("div",{style:v.tooltipContainer},b&&r().createElement("h4",{style:v.tooltipTitle,"aria-label":b},b),r().createElement("div",{style:v.tooltipContent},f)),!m&&r().createElement("div",{style:v.tooltipFooter},r().createElement("div",{style:v.tooltipFooterSpacer},T.skip),T.back,r().createElement("button",kt({style:v.buttonNext,type:"button"},s),T.primary)),T.close)}}]),n}(r().Component),Sn=function(e){xt(n,e);var t=Lt(n);function n(){var e;wt(this,n);for(var o=arguments.length,r=new Array(o),i=0;i0||n===_t.PREV),b=h("action")||h("index")||h("lifecycle")||h("status"),v=m("lifecycle",[Dt.TOOLTIP,Dt.INIT],Dt.INIT);if(h("action",[_t.NEXT,_t.PREV,_t.SKIP,_t.CLOSE])&&(v||i)&&o(Tt(Tt({},y),{},{index:e.index,lifecycle:Dt.COMPLETE,step:e.step,type:Mt})),b&&p){var w=nn(p.target),E=!!w;E&&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}(w)?(m("status",Ft.READY,Ft.RUNNING)||m("lifecycle",Dt.INIT,Dt.READY))&&o(Tt(Tt({},y),{},{step:p,type:"step:before"})):(console.warn(E?"Target not visible":"Target not mounted",p),o(Tt(Tt({},y),{},{type:At,step:p})),i||f({index:s+(-1!==[_t.PREV].indexOf(n)?-1:1)}))}m("lifecycle",Dt.INIT,Dt.READY)&&f({lifecycle:$t(p)||g?Dt.TOOLTIP:Dt.BEACON}),h("index")&&Jt({title:"step:".concat(l),data:[{key:"props",value:this.props}],debug:a}),h("lifecycle",Dt.BEACON)&&o(Tt(Tt({},y),{},{step:p,type:"beacon"})),h("lifecycle",Dt.TOOLTIP)&&(o(Tt(Tt({},y),{},{step:p,type:"tooltip"})),this.scope=new gn(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),m("lifecycle",[Dt.TOOLTIP,Dt.INIT],Dt.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,c=e.step,u=nn(c.target);return mn(c)&&m.domElement(u)?r().createElement("div",{key:"JoyrideStep-".concat(i),className:"react-joyride__step"},r().createElement(kn,{id:"react-joyride-portal"},r().createElement(wn,kt({},c,{debug:n,lifecycle:a,onClickOverlay:this.handleClickOverlay}))),r().createElement(vt,kt({component:r().createElement(Sn,{continuous:t,helpers:o,index:i,isLastStep:i+1===l,setTooltipRef:this.setTooltipRef,size:l,step:c}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(i),isPositioned:c.isFixed||sn(u),open:this.open,placement:c.placement,target:c.target},c.floaterProps),r().createElement(bn,{beaconComponent:c.beaconComponent,locale:c.locale,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:s,styles:c.styles}))):null}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!$t(t)&&n!==Dt.TOOLTIP)}}]),n}(r().Component),Tn=function(e){xt(n,e);var t=Lt(n);function n(e){var o;return wt(this,n),St(It(o=t.call(this,e)),"initStore",(function(){var e=o.props,t=e.debug,n=e.getHelpers,r=e.run,i=e.stepIndex;o.store=new Qt(Tt(Tt({},o.props),{},{controlled:r&&m.number(i)})),o.helpers=o.store.getHelpers();var a=o.store.addListener;return Jt({title:"init",data:[{key:"props",value:o.props},{key:"state",value:o.state}],debug:t}),a(o.syncState),n(o.helpers),o.store.getState()})),St(It(o),"callback",(function(e){var t=o.props.callback;m.function(t)&&t(e)})),St(It(o),"handleKeyboard",(function(e){var t=o.state,n=t.index,r=t.lifecycle,i=o.props.steps[n],a=window.Event?e.which:e.keyCode;r===Dt.TOOLTIP&&27===a&&i&&!i.disableCloseOnEsc&&o.store.close()})),St(It(o),"syncState",(function(e){o.setState(e)})),St(It(o),"setPopper",(function(e,t){"wrapper"===t?o.beaconPopper=e:o.tooltipPopper=e})),St(It(o),"shouldScroll",(function(e,t,n,o,r,i,a){return!e&&(0!==t||n||o===Dt.TOOLTIP)&&"center"!==r.placement&&(!r.isFixed||!sn(i))&&a.lifecycle!==o&&-1!==[Dt.BEACON,Dt.TOOLTIP].indexOf(o)})),o.state=o.initStore(),o}return Ot(n,[{key:"componentDidMount",value:function(){if(Bt){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,o=e.run,r=e.steps,i=this.store.start;yn(r,n)&&o&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if(Bt){var n=this.state,o=n.action,r=n.controlled,i=n.index,a=n.lifecycle,s=n.status,l=this.props,c=l.debug,u=l.run,p=l.stepIndex,f=l.steps,d=e.steps,h=e.stepIndex,y=this.store,g=y.setSteps,b=y.reset,v=y.start,w=y.stop,E=y.update,O=N(e,this.props).changed,S=N(t,this.state),k=S.changed,T=S.changedFrom,x=hn(f[i],this.props),C=!Yt(d,f),P=m.number(p)&&O("stepIndex"),j=nn(null==x?void 0:x.target);if(C&&(yn(f,c)?g(f):console.warn("Steps are not valid",f)),O("run")&&(u?v(p):w()),P){var I=h=0?g:0,r===Ft.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en(),n=arguments.length>2?arguments[2]:void 0;new Promise((function(o,r){var i=t.scrollTop,a=e>i?e-i:i-e;I().top(t,e,{duration:a<100?50:n},(function(e){return e&&"Element already at target scroll position"!==e.message?r(e):o()}))}))}(g,y,p)}}}},{key:"render",value:function(){if(!Bt)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=hn(i.steps[n],this.props);return o===Ft.RUNNING&&u&&(e=r().createElement(Nn,kt({},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().createElement("div",{className:"react-joyride"},e)}}]),n}(r().Component);St(Tn,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});const xn=Tn;function Cn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n Date: Wed, 3 Mar 2021 00:18:18 +0530 Subject: [PATCH 2/6] Run lint --- class-otter-blocks.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/class-otter-blocks.php b/class-otter-blocks.php index 5c587f223..9eb962b9b 100644 --- a/class-otter-blocks.php +++ b/class-otter-blocks.php @@ -203,29 +203,29 @@ public function register_settings() { 'schema' => array( 'type' => 'object', 'properties' => array( - 'blocks' => array( + 'blocks' => array( 'type' => 'array', 'items' => array( 'type' => 'object', 'properties' => array( - 'name' => array( + 'name' => array( 'type' => 'string', ), - 'instances' => array( + 'instances' => array( 'type' => 'number', ), ), ), ), - 'templates' => array( + 'templates' => array( 'type' => 'array', 'items' => array( 'type' => 'object', 'properties' => array( - 'url' => array( + 'url' => array( 'type' => 'string', ), - 'instances' => array( + 'instances' => array( 'type' => 'number', ), ), @@ -235,7 +235,7 @@ public function register_settings() { ), ), 'default' => array( - 'blocks' => array(), + 'blocks' => array(), 'templates' => array(), ), ) From 771c0217333ab6f38b631326610c5ec7a8ac3266 Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Wed, 3 Mar 2021 00:22:53 +0530 Subject: [PATCH 3/6] Fix .releaserc --- .releaserc.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.releaserc.yml b/.releaserc.yml index e1d2947d6..40d20dd6a 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -23,5 +23,6 @@ plugins: - otter-blocks.php - readme.md - package.json + message: "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}" - - "@semantic-release/github" From 7948b10a05c31c35d57f4009b8da12fbddbaaf2d Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Wed, 3 Mar 2021 00:25:04 +0530 Subject: [PATCH 4/6] Fix PHPUnit test failing --- .github/workflows/test-php.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index 5c7d738ae..19ddb0294 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -39,9 +39,8 @@ jobs: env: MYSQL_ROOT_PASSWORD: root ports: - - 3306 - volumes: - - $HOME/mysql:/var/lib/mysql + - 3306/tcp + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - name: Setup PHP version uses: shivammathur/setup-php@v1 From b58106270f8e5348889d455d8ad9674c689a3549 Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Wed, 3 Mar 2021 00:31:30 +0530 Subject: [PATCH 5/6] Add port to PHPUnit file --- .github/workflows/test-php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index 19ddb0294..5ccb3b62d 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -52,7 +52,7 @@ jobs: uses: actions/checkout@v2 - name: Install WordPress Test Suite run: | - bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 5.2.2 + bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:3306 5.2.2 - name: Get Composer Cache Directory id: composer-cache run: | From 7ecf500de94c634572202201f21348cc86ed42d5 Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Wed, 3 Mar 2021 00:34:23 +0530 Subject: [PATCH 6/6] Add port to PHPUnit file --- .github/workflows/test-php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index 5ccb3b62d..0eba3b48b 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -52,7 +52,7 @@ jobs: uses: actions/checkout@v2 - name: Install WordPress Test Suite run: | - bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:3306 5.2.2 + bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:${{ job.services.mysql.ports['3306'] }} - name: Get Composer Cache Directory id: composer-cache run: |