Sindbad~EG File Manager

Current Path : /home/servydhq/rxpharmacydelivery.com/wp-content/plugins/chatway-live-chat/assets/js/
Upload File :
Current File : /home/servydhq/rxpharmacydelivery.com/wp-content/plugins/chatway-live-chat/assets/js/app.js

(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},988:(e,t,n)=>{var r=n(755),o=n(665).each;function i(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}i.prototype={constuctor:i,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;o(t,(function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";o(this.handlers,(function(t){t[e]()}))}},e.exports=i},177:(e,t,n)=>{var r=n(988),o=n(665),i=o.each,a=o.isFunction,s=o.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var o=this.queries,l=n&&this.browserIsIncapable;return o[e]||(o[e]=new r(e,l)),a(t)&&(t={match:t}),s(t)||(t=[t]),i(t,(function(t){a(t)&&(t={match:t}),o[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},755:e=>{function t(e){this.options=e,!e.deferSetup&&this.setup()}t.prototype={constructor:t,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=t},665:e=>{e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);}}},974:(e,t,n)=>{var r=n(177);e.exports=new r},973:(e,t,n)=>{var r=n(169),o=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,i){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",i<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,r){t+=o(n),r<e.length-1&&(t+=", ")})),t):o(e)}},296:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,f=Math.min,h=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function w(){var e=h();if(b(e))return x(e);s=setTimeout(w,function(e){var n=t-(e-l);return d?f(n,i-(e-c)):n}(e))}function x(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function S(){var e=h(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(w,t),u?y(e):a}(l);if(d)return s=setTimeout(w,t),y(l)}return void 0===s&&(s=setTimeout(w,t)),a}return t=g(t)||0,m(n)&&(u=!!n.leading,i=(d="maxWait"in n)?p(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},S.flush=function(){return void 0===s?a:x(h())},S}},418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},205:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.PrevArrow=t.NextArrow=void 0;var o=s(n(196)),i=s(n(184)),a=n(518);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=h(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function f(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:String(t)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function v(e){var t=y();return function(){var n,o=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}t.PrevArrow=function(e){m(n,e);var t=v(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?o.default.cloneElement(this.props.prevArrow,u(u({},n),r)):o.default.createElement("button",l({key:"0",type:"button"},n)," ","Previous")}}]),n}(o.default.PureComponent),t.NextArrow=function(e){m(n,e);var t=v(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,a.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?o.default.cloneElement(this.props.nextArrow,u(u({},n),r)):o.default.createElement("button",l({key:"1",type:"button"},n)," ","Next")}}]),n}(o.default.PureComponent)},492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(196))&&r.__esModule?r:{default:r},i={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return o.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return o.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};t.default=i},329:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var o=s(n(196)),i=s(n(184)),a=n(518);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:String(t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=f();return function(){var n,o=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}t.Dots=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(s,e);var t,n,r=p(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),r.apply(this,arguments)}return t=s,n=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,r=t.onMouseOver,s=t.onMouseLeave,c=t.infinite,d=t.slidesToScroll,p=t.slidesToShow,f=t.slideCount,h=t.currentSlide,m=(e={slideCount:f,slidesToScroll:d,slidesToShow:p,infinite:c}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,g={onMouseEnter:n,onMouseOver:r,onMouseLeave:s},v=[],y=0;y<m;y++){var b=(y+1)*d-1,w=c?b:(0,a.clamp)(b,0,f-1),x=w-(d-1),S=c?x:(0,a.clamp)(x,0,f-1),k=(0,i.default)({"slick-active":c?h>=S&&h<=w:h===S}),j={message:"dots",index:y,slidesToScroll:d,currentSlide:h},E=this.clickHandler.bind(this,j);v=v.concat(o.default.createElement("li",{key:y,className:k},o.default.cloneElement(this.props.customPaging(y),{onClick:E})))}return o.default.cloneElement(this.props.appendDots(v),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=u(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:this.props.dotsClass},g))}}],n&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.default.PureComponent)},66:(e,t,n)=>{"use strict";t.Z=void 0;var r,o=(r=n(798))&&r.__esModule?r:{default:r};t.Z=o.default},948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}},517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var r=p(n(196)),o=p(n(948)),i=p(n(296)),a=p(n(184)),s=n(518),l=n(740),c=n(329),u=n(205),d=p(n(33));function p(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,j(r.key),r)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){var t=x();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}(this,n)}}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function k(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:String(t)}t.InnerSlider=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(m,e);var t,n,p=b(m);function m(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),k(w(t=p.call(this,e)),"listRefHandler",(function(e){return t.list=e})),k(w(t),"trackRefHandler",(function(e){return t.track=e})),k(w(t),"adaptHeight",(function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,s.getHeight)(e)+"px"}})),k(w(t),"componentDidMount",(function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,s.getOnDemandLazySlides)(g(g({},t.props),t.state));e.length>0&&(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=g({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,(function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")})),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new d.default((function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout((function(){return t.onWindowResized()}),t.props.speed))):t.onWindowResized()})),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)})),k(w(t),"componentWillUnmount",(function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach((function(e){return clearTimeout(e)})),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()})),k(w(t),"componentDidUpdate",(function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var n=(0,s.getOnDemandLazySlides)(g(g({},t.props),t.state));n.length>0&&(t.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}})),t.props.onLazyLoad&&t.props.onLazyLoad(n))}t.adaptHeight();var o=g(g({listRef:t.list,trackRef:t.track},t.props),t.state),i=t.didPropsChange(e);i&&t.updateState(o,i,(function(){t.state.currentSlide>=r.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:r.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")}))})),k(w(t),"onWindowResized",(function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,i.default)((function(){return t.resizeWindow(e)}),50),t.debouncedResize()})),k(w(t),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var n=g(g({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(n,e,(function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")})),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}})),k(w(t),"updateState",(function(e,n,o){var i=(0,s.initializedState)(e);e=g(g(g({},e),i),{},{slideIndex:i.currentSlide});var a=(0,s.getTrackLeft)(e);e=g(g({},e),{},{left:a});var l=(0,s.getTrackCSS)(e);(n||r.default.Children.count(t.props.children)!==r.default.Children.count(e.children))&&(i.trackStyle=l),t.setState(i,o)})),k(w(t),"ssrInit",(function(){if(t.props.variableWidth){var e=0,n=0,o=[],i=(0,s.getPreClones)(g(g(g({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,s.getPostClones)(g(g(g({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach((function(t){o.push(t.props.style.width),e+=t.props.style.width}));for(var l=0;l<i;l++)n+=o[o.length-1-l],e+=o[o.length-1-l];for(var c=0;c<a;c++)e+=o[c];for(var u=0;u<t.state.currentSlide;u++)n+=o[u];var d={width:e+"px",left:-n+"px"};if(t.props.centerMode){var p="".concat(o[t.state.currentSlide],"px");d.left="calc(".concat(d.left," + (100% - ").concat(p,") / 2 ) ")}return{trackStyle:d}}var f=r.default.Children.count(t.props.children),h=g(g(g({},t.props),t.state),{},{slideCount:f}),m=(0,s.getPreClones)(h)+(0,s.getPostClones)(h)+f,v=100/t.props.slidesToShow*m,y=100/m,b=-y*((0,s.getPreClones)(h)+t.state.currentSlide)*v/100;return t.props.centerMode&&(b+=(100-y*v/100)/2),{slideWidth:y+"%",trackStyle:{width:v+"%",left:b+"%"}}})),k(w(t),"checkImagesLoad",(function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,r=0;Array.prototype.forEach.call(e,(function(e){var o=function(){return++r&&r>=n&&t.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=o,e.onerror=function(){o(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))}))})),k(w(t),"progressiveLazyLoad",(function(){for(var e=[],n=g(g({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+(0,s.getPostClones)(n);r++)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var o=t.state.currentSlide-1;o>=-(0,s.getPreClones)(n);o--)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)})),k(w(t),"slideHandler",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.props,o=r.asNavFor,i=r.beforeChange,a=r.onLazyLoad,l=r.speed,c=r.afterChange,u=t.state.currentSlide,d=(0,s.slideHandler)(g(g(g({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),p=d.state,f=d.nextState;if(p){i&&i(u,p.currentSlide);var h=p.lazyLoadedList.filter((function(e){return t.state.lazyLoadedList.indexOf(e)<0}));a&&h.length>0&&a(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),c&&c(u),delete t.animationEndCallback),t.setState(p,(function(){o&&t.asNavForIndex!==e&&(t.asNavForIndex=e,o.innerSlider.slideHandler(e)),f&&(t.animationEndCallback=setTimeout((function(){var e=f.animating,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(f,["animating"]);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),c&&c(p.currentSlide),delete t.animationEndCallback}))}),l))}))}})),k(w(t),"changeSlide",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=g(g({},t.props),t.state),o=(0,s.changeSlide)(r,e);if((0===o||o)&&(!0===n?t.slideHandler(o,n):t.slideHandler(o),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var i=t.list.querySelectorAll(".slick-current");i[0]&&i[0].focus()}})),k(w(t),"clickHandler",(function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0})),k(w(t),"keyHandler",(function(e){var n=(0,s.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})})),k(w(t),"selectHandler",(function(e){t.changeSlide(e)})),k(w(t),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),k(w(t),"enableBodyScroll",(function(){window.ontouchmove=null})),k(w(t),"swipeStart",(function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,s.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)})),k(w(t),"swipeMove",(function(e){var n=(0,s.swipeMove)(e,g(g(g({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))})),k(w(t),"swipeEnd",(function(e){var n=(0,s.swipeEnd)(e,g(g(g({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var r=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==r&&(t.slideHandler(r),t.props.verticalSwiping&&t.enableBodyScroll())}})),k(w(t),"touchEnd",(function(e){t.swipeEnd(e),t.clickable=!0})),k(w(t),"slickPrev",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"previous"})}),0))})),k(w(t),"slickNext",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"next"})}),0))})),k(w(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)}),0))})),k(w(t),"play",(function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,s.canGoNext)(g(g({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)})),k(w(t),"autoPlay",(function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})})),k(w(t),"pause",(function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})})),k(w(t),"onDotsOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(w(t),"onDotsLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(w(t),"onTrackOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(w(t),"onTrackLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(w(t),"onSlideFocus",(function(){return t.props.autoplay&&t.pause("focused")})),k(w(t),"onSlideBlur",(function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")})),k(w(t),"render",(function(){var e,n,o,i=(0,a.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),d=g(g({},t.props),t.state),p=(0,s.extractObject)(d,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),f=t.props.pauseOnHover;if(p=g(g({},p),{},{onMouseEnter:f?t.onTrackOver:null,onMouseLeave:f?t.onTrackLeave:null,onMouseOver:f?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var m=(0,s.extractObject)(d,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),v=t.props.pauseOnDotsHover;m=g(g({},m),{},{clickHandler:t.changeSlide,onMouseEnter:v?t.onDotsLeave:null,onMouseOver:v?t.onDotsOver:null,onMouseLeave:v?t.onDotsLeave:null}),e=r.default.createElement(c.Dots,m)}var y=(0,s.extractObject)(d,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);y.clickHandler=t.changeSlide,t.props.arrows&&(n=r.default.createElement(u.PrevArrow,y),o=r.default.createElement(u.NextArrow,y));var b=null;t.props.vertical&&(b={height:t.state.listHeight});var w=null;!1===t.props.vertical?!0===t.props.centerMode&&(w={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(w={padding:t.props.centerPadding+" 0px"});var x=g(g({},b),w),S=t.props.touchMove,k={className:"slick-list",style:x,onClick:t.clickHandler,onMouseDown:S?t.swipeStart:null,onMouseMove:t.state.dragging&&S?t.swipeMove:null,onMouseUp:S?t.swipeEnd:null,onMouseLeave:t.state.dragging&&S?t.swipeEnd:null,onTouchStart:S?t.swipeStart:null,onTouchMove:t.state.dragging&&S?t.swipeMove:null,onTouchEnd:S?t.touchEnd:null,onTouchCancel:t.state.dragging&&S?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},j={className:i,dir:"ltr",style:t.props.style};return t.props.unslick&&(k={className:"slick-list"},j={className:i}),r.default.createElement("div",j,t.props.unslick?"":n,r.default.createElement("div",h({ref:t.listRefHandler},k),r.default.createElement(l.Track,h({ref:t.trackRefHandler},p),t.props.children)),t.props.unslick?"":o,t.props.unslick?"":e)})),t.list=null,t.track=null,t.state=g(g({},o.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:r.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var n=t.ssrInit();return t.state=g(g({},t.state),n),t}return t=m,(n=[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n<o.length;n++){var i=o[n];if(!e.hasOwnProperty(i)){t=!0;break}if("object"!==f(e[i])&&"function"!=typeof e[i]&&!isNaN(e[i])&&e[i]!==this.props[i]){t=!0;break}}return t||r.default.Children.count(this.props.children)!==r.default.Children.count(e.children)}}])&&v(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(r.default.Component)},798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(196)),o=n(517),i=l(n(973)),a=l(n(492)),s=n(518);function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=v();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}(this,n)}}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:String(t)}var x=(0,s.canUseDOM)()&&n(974);t.default=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(c,e);var t,n,l=m(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),b(g(t=l.call(this,e)),"innerSliderRefHandler",(function(e){return t.innerSlider=e})),b(g(t),"slickPrev",(function(){return t.innerSlider.slickPrev()})),b(g(t),"slickNext",(function(){return t.innerSlider.slickNext()})),b(g(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)})),b(g(t),"slickPause",(function(){return t.innerSlider.pause("paused")})),b(g(t),"slickPlay",(function(){return t.innerSlider.autoPlay("play")})),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=c,(n=[{key:"media",value:function(e,t){x.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?(0,i.default)({minWidth:0,maxWidth:n}):(0,i.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,s.canUseDOM)()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=(0,i.default)({minWidth:t.slice(-1)[0]});(0,s.canUseDOM)()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){x.unregister(e.query,e.handler)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":p(p(p({},a.default),this.props),t[0].settings):p(p({},a.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var i=r.default.Children.toArray(this.props.children);i=i.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var l=[],c=null,d=0;d<i.length;d+=e.rows*e.slidesPerRow){for(var f=[],h=d;h<d+e.rows*e.slidesPerRow;h+=e.slidesPerRow){for(var m=[],g=h;g<h+e.slidesPerRow&&(e.variableWidth&&i[g].props.style&&(c=i[g].props.style.width),!(g>=i.length));g+=1)m.push(r.default.cloneElement(i[g],{key:100*d+10*h+g,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));f.push(r.default.createElement("div",{key:10*d+h},m))}e.variableWidth?l.push(r.default.createElement("div",{key:d,style:{width:c}},f)):l.push(r.default.createElement("div",{key:d},f))}if("unslick"===e){var v="regular slider "+(this.props.className||"");return r.default.createElement("div",{className:v},i)}return l.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),r.default.createElement(o.InnerSlider,u({style:this.props.style,ref:this.innerSliderRefHandler},(0,s.filterSettings)(e)),l)}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.default.Component)},740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var r=a(n(196)),o=a(n(184)),i=n(518);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){var t=f();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(this,n)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:String(t)}var b=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},w=function(e,t){return e.key||t};t.Track=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(s,e);var t,n,a=d(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(p(e=a.call.apply(a,[this].concat(n))),"node",null),v(p(e),"handleRef",(function(t){e.node=t})),e}return t=s,(n=[{key:"render",value:function(){var e=function(e){var t,n=[],a=[],s=[],l=r.default.Children.count(e.children),c=(0,i.lazyStartIndex)(e),u=(0,i.lazyEndIndex)(e);return r.default.Children.forEach(e.children,(function(d,p){var f,h={message:"children",index:p,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(p)>=0?d:r.default.createElement("div",null);var m=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(g(g({},e),{},{index:p})),v=f.props.className||"",y=b(g(g({},e),{},{index:p}));if(n.push(r.default.cloneElement(f,{key:"original"+w(f,p),"data-index":p,className:(0,o.default)(y,v),tabIndex:"-1","aria-hidden":!y["slick-active"],style:g(g({outline:"none"},f.props.style||{}),m),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}})),e.infinite&&!1===e.fade){var x=l-p;x<=(0,i.getPreClones)(e)&&((t=-x)>=c&&(f=d),y=b(g(g({},e),{},{index:t})),a.push(r.default.cloneElement(f,{key:"precloned"+w(f,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(y,v),"aria-hidden":!y["slick-active"],style:g(g({},f.props.style||{}),m),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}}))),(t=l+p)<u&&(f=d),y=b(g(g({},e),{},{index:t})),s.push(r.default.cloneElement(f,{key:"postcloned"+w(f,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(y,v),"aria-hidden":!y["slick-active"],style:g(g({},f.props.style||{}),m),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}}))}})),e.rtl?a.concat(n,s).reverse():a.concat(n,s)}(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return r.default.createElement("div",l({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(r.default.PureComponent)},518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkSpecKeys=t.checkNavigable=t.changeSlide=t.canUseDOM=t.canGoNext=void 0,t.clamp=c,t.extractObject=void 0,t.filterSettings=function(e){return M.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})},t.validSettings=t.swipeStart=t.swipeMove=t.swipeEnd=t.slidesOnRight=t.slidesOnLeft=t.slideHandler=t.siblingDirection=t.safePreventDefault=t.lazyStartIndex=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.keyHandler=t.initializedState=t.getWidth=t.getTrackLeft=t.getTrackCSS=t.getTrackAnimateCSS=t.getTotalSlides=t.getSwipeDirection=t.getSlideCount=t.getRequiredLazySlides=t.getPreClones=t.getPostClones=t.getOnDemandLazySlides=t.getNavigableIndexes=t.getHeight=void 0;var r=i(n(196)),o=i(n(492));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){var r,o,i,s;r=e,o=t,i=n[t],s=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o),(o="symbol"==a(s)?s:String(s))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return Math.max(t,Math.min(e,n))}var u=t.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},d=t.getOnDemandLazySlides=function(e){for(var t=[],n=p(e),r=f(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},p=(t.getRequiredLazySlides=function(e){for(var t=[],n=p(e),r=f(e),o=n;o<r;o++)t.push(o);return t},t.lazyStartIndex=function(e){return e.currentSlide-h(e)}),f=t.lazyEndIndex=function(e){return e.currentSlide+m(e)},h=t.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},m=t.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},g=t.getWidth=function(e){return e&&e.offsetWidth||0},v=t.getHeight=function(e){return e&&e.offsetHeight||0},y=t.getSwipeDirection=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},b=t.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},w=(t.extractObject=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},t.initializedState=function(e){var t,n=r.default.Children.count(e.children),o=e.listRef,i=Math.ceil(g(o)),a=e.trackRef&&e.trackRef.node,s=Math.ceil(g(a));if(e.vertical)t=i;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=i/100),t=Math.ceil((i-c)/e.slidesToShow)}var u=o&&v(o.querySelector('[data-index="0"]')),p=u*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var h=e.lazyLoadedList||[],m=d(l(l({},e),{},{currentSlide:f,lazyLoadedList:h})),y={slideCount:n,slideWidth:t,listWidth:i,trackWidth:s,currentSlide:f,slideHeight:u,listHeight:p,lazyLoadedList:h=h.concat(m)};return null===e.autoplaying&&e.autoplay&&(y.autoplaying="playing"),y},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,i=e.index,a=e.slideCount,s=e.lazyLoad,u=e.currentSlide,p=e.centerMode,f=e.slidesToScroll,h=e.slidesToShow,m=e.useCSS,g=e.lazyLoadedList;if(t&&n)return{};var v,y,w,x=i,S={},k={},C=o?i:c(i,0,a-1);if(r){if(!o&&(i<0||i>=a))return{};i<0?x=i+a:i>=a&&(x=i-a),s&&g.indexOf(x)<0&&(g=g.concat(x)),S={animating:!0,currentSlide:x,lazyLoadedList:g,targetSlide:x},k={animating:!1,targetSlide:x}}else v=x,x<0?(v=x+a,o?a%f!=0&&(v=a-a%f):v=0):!b(e)&&x>u?x=v=u:p&&x>=a?(x=o?a:a-1,v=o?0:a-1):x>=a&&(v=x-a,o?a%f!=0&&(v=0):v=a-h),!o&&x+h>=a&&(v=a-h),y=O(l(l({},e),{},{slideIndex:x})),w=O(l(l({},e),{},{slideIndex:v})),o||(y===w&&(x=v),y=w),s&&(g=g.concat(d(l(l({},e),{},{currentSlide:x})))),m?(S={animating:!0,currentSlide:v,trackStyle:E(l(l({},e),{},{left:y})),lazyLoadedList:g,targetSlide:C},k={animating:!1,currentSlide:v,trackStyle:j(l(l({},e),{},{left:w})),swipeLeft:null,targetSlide:C}):S={currentSlide:v,trackStyle:j(l(l({},e),{},{left:w})),lazyLoadedList:g,targetSlide:C};return{state:S,nextState:k}},t.changeSlide=function(e,t){var n,r,o,i,a=e.slidesToScroll,s=e.slidesToShow,c=e.slideCount,u=e.currentSlide,d=e.targetSlide,p=e.lazyLoad,f=e.infinite;if(n=c%a!=0?0:(c-u)%a,"previous"===t.message)i=u-(o=0===n?a:s-n),p&&!f&&(i=-1==(r=u-o)?c-1:r),f||(i=d-a);else if("next"===t.message)i=u+(o=0===n?a:n),p&&!f&&(i=(u+a)%c+n),f||(i=d+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,f){var h=L(l(l({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===h?i-=c:i<t.currentSlide&&"right"===h&&(i+=c)}}else"index"===t.message&&(i=Number(t.index));return i},t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&u(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,o=t.vertical,i=t.swipeToSlide,a=t.verticalSwiping,s=t.rtl,c=t.currentSlide,d=t.edgeFriction,p=t.edgeDragged,f=t.onEdge,h=t.swiped,m=t.swiping,g=t.slideCount,v=t.slidesToScroll,w=t.infinite,x=t.touchObject,S=t.swipeEvent,k=t.listHeight,E=t.listWidth;if(!n){if(r)return u(e);o&&i&&a&&u(e);var C,P={},T=O(t);x.curX=e.touches?e.touches[0].pageX:e.clientX,x.curY=e.touches?e.touches[0].pageY:e.clientY,x.swipeLength=Math.round(Math.sqrt(Math.pow(x.curX-x.startX,2)));var L=Math.round(Math.sqrt(Math.pow(x.curY-x.startY,2)));if(!a&&!m&&L>10)return{scrolling:!0};a&&(x.swipeLength=L);var _=(s?-1:1)*(x.curX>x.startX?1:-1);a&&(_=x.curY>x.startY?1:-1);var R=Math.ceil(g/v),M=y(t.touchObject,a),D=x.swipeLength;return w||(0===c&&("right"===M||"down"===M)||c+1>=R&&("left"===M||"up"===M)||!b(t)&&("left"===M||"up"===M))&&(D=x.swipeLength*d,!1===p&&f&&(f(M),P.edgeDragged=!0)),!h&&S&&(S(M),P.swiped=!0),C=o?T+D*(k/E)*_:s?T-D*_:T+D*_,a&&(C=T+D*_),P=l(l({},P),{},{touchObject:x,swipeLeft:C,trackStyle:j(l(l({},t),{},{left:C}))}),Math.abs(x.curX-x.startX)<.8*Math.abs(x.curY-x.startY)||x.swipeLength>10&&(P.swiping=!0,u(e)),P}},t.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,i=t.listWidth,a=t.touchThreshold,s=t.verticalSwiping,c=t.listHeight,d=t.swipeToSlide,p=t.scrolling,f=t.onSwipe,h=t.targetSlide,m=t.currentSlide,g=t.infinite;if(!n)return r&&u(e),{};var v=s?c/a:i/a,b=y(o,s),w={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(p)return w;if(!o.swipeLength)return w;if(o.swipeLength>v){var k,j;u(e),f&&f(b);var C=g?m:h;switch(b){case"left":case"up":j=C+S(t),k=d?x(t,j):j,w.currentDirection=0;break;case"right":case"down":j=C-S(t),k=d?x(t,j):j,w.currentDirection=1;break;default:k=C}w.triggerSlideHandler=k}else{var P=O(t);w.trackStyle=E(l(l({},t),{},{left:P}))}return w},t.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o}),x=t.checkNavigable=function(e,t){var n=w(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t},S=t.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(o).every((function(r){if(e.vertical){if(r.offsetTop+v(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+g(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},k=t.checkSpecKeys=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},j=t.getTrackCSS=function(e){var t,n;k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=T(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=l(l({},o),{},{WebkitTransform:i,transform:a,msTransform:s})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},E=t.getTrackAnimateCSS=function(e){k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=j(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},O=t.getTrackLeft=function(e){if(e.unslick)return 0;k(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,p=e.variableWidth,f=e.slideHeight,h=e.fade,m=e.vertical;if(h||1===e.slideCount)return 0;var g=0;if(i?(g=-C(e),s%c!=0&&r+c>s&&(g=-(r>s?l-(r-s):s%c)),a&&(g+=parseInt(l/2))):(s%c!=0&&r+c>s&&(g=l-s%c),a&&(g=parseInt(l/2))),t=m?r*f*-1+g*f:r*u*-1+g*u,!0===p){var v,y=o&&o.node;if(v=r+C(e),t=(n=y&&y.childNodes[v])?-1*n.offsetLeft:0,!0===a){v=i?r+C(e):r,n=y&&y.children[v],t=0;for(var b=0;b<v;b++)t-=y&&y.children[b]&&y.children[b].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},C=t.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},P=t.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},T=t.getTotalSlides=function(e){return 1===e.slideCount?1:C(e)+e.slideCount+P(e)},L=t.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+_(e)?"left":"right":e.targetSlide<e.currentSlide-R(e)?"right":"left"},_=t.slidesOnRight=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},R=t.slidesOnLeft=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0},M=(t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},t.validSettings=Object.keys(o.default))},251:(e,t,n)=>{"use strict";n(418);var r=n(196),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},893:(e,t,n)=>{"use strict";e.exports=n(251)},33:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function s(){a(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=v(0,0,0,0);function f(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+f(e["border-"+n+"-width"])}),0)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return o?m(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=d(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=f(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=f(r.width),l=f(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=h(r,"left","right")+i),Math.round(l+a)!==n&&(l-=h(r,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return v(o.left,o.top,s,l)}(e):p}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,r,o,i,a,s,l,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),u(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);u(this,{target:e,contentRect:c})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new r,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new w(t,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}}));const k=void 0!==i.ResizeObserver?i.ResizeObserver:S},169:e=>{e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},196:e=>{"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(893);const t=window.wp.element;var r,o=n(196),i=n.n(o);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));const s="popstate";function l(e,t){if(!1===e||null==e)throw new Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,n,r){return void 0===n&&(n=null),a({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?f(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function p(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function f(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function h(e,t,n,o){void 0===o&&(o={});let{window:i=document.defaultView,v5Compat:c=!1}=o,f=i.history,h=r.Pop,m=null,g=v();function v(){return(f.state||{idx:null}).idx}function y(){h=r.Pop;let e=v(),t=null==e?null:e-g;g=e,m&&m({action:h,location:w.location,delta:t})}function b(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:p(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,f.replaceState(a({},f.state,{idx:g}),""));let w={get action(){return h},get location(){return e(i,f)},listen(e){if(m)throw new Error("A history only accepts one active listener");return i.addEventListener(s,y),m=e,()=>{i.removeEventListener(s,y),m=null}},createHref:e=>t(i,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=r.Push;let o=d(w.location,e,t);n&&n(o,e),g=v()+1;let a=u(o,g),s=w.createHref(o);try{f.pushState(a,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(s)}c&&m&&m({action:h,location:w.location,delta:1})},replace:function(e,t){h=r.Replace;let o=d(w.location,e,t);n&&n(o,e),g=v();let i=u(o,g),a=w.createHref(o);f.replaceState(i,"",a),c&&m&&m({action:h,location:w.location,delta:0})},go:e=>f.go(e)};return w}var m;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(m||(m={}));const g=new Set(["lazy","caseSensitive","path","id","index","children"]);function v(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map(((e,o)=>{let i=[...n,o],s="string"==typeof e.id?e.id:i.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!r[s],'Found a route id collision on id "'+s+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=a({},e,t(e),{id:s});return r[s]=n,n}{let n=a({},e,t(e),{id:s,children:void 0});return r[s]=n,e.children&&(n.children=v(e.children,t,i,r)),n}}))}function y(e,t,n){void 0===n&&(n="/");let r=R(("string"==typeof t?f(t):t).pathname||"/",n);if(null==r)return null;let o=b(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e)i=T(o[e],_(r));return i}function b(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(l(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=z([r,a.relativePath]),c=n.concat(a);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),b(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:P(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of w(e.path))o(e,t,n);else o(e,t)})),t}function w(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=w(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const x=/^:\w+$/,S=3,k=2,j=1,E=10,O=-2,C=e=>"*"===e;function P(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=O),t&&(r+=k),n.filter((e=>!C(e))).reduce(((e,t)=>e+(x.test(t)?S:""===t?j:E)),r)}function T(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let e=0;e<n.length;++e){let a=n[e],s=e===n.length-1,l="/"===o?t:t.slice(o.length)||"/",c=L({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},l);if(!c)return null;Object.assign(r,c.params);let u=a.route;i.push({params:r,pathname:z([o,c.pathname]),pathnameBase:N(z([o,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(o=z([o,c.pathnameBase]))}return i}function L(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),c("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(r.push(t),"/([^\\/]+)")));return e.endsWith("*")?(r.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return c(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(s[n]||"",t),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function _(e){try{return decodeURI(e)}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function R(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function M(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function D(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function A(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=f(e):(o=a({},e),l(!o.pathname||!o.pathname.includes("?"),M("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),M("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),M("#","search","hash",o)));let i,s=""===e||""===o.pathname,c=s?"/":o.pathname;if(r||null==c)i=n;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?f(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:I(r),hash:W(o)}}(o,i),d=c&&"/"!==c&&c.endsWith("/"),p=(s||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!p||(u.pathname+="/"),u}const z=e=>e.join("/").replace(/\/\/+/g,"/"),N=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),I=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",W=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class F{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function H(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const B=["post","put","patch","delete"],U=new Set(B),$=["get",...B],q=new Set($),Y=new Set([301,302,303,307,308]),X=new Set([307,308]),V={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},G={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},K={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},J=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Z=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)});function Q(e,t,n,r,o,i,a){let s,l;if(null!=i&&"path"!==a){s=[];for(let e of t)if(s.push(e),e.route.id===i){l=e;break}}else s=t,l=t[t.length-1];let c=A(o||".",D(s).map((e=>e.pathnameBase)),R(e.pathname,n)||e.pathname,"path"===a);return null==o&&(c.search=e.search,c.hash=e.hash),null!=o&&""!==o&&"."!==o||!l||!l.route.index||Se(c.search)||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(c.pathname="/"===c.pathname?n:z([n,c.pathname])),p(c)}function ee(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&(o=r.formMethod,!q.has(o.toLowerCase())))return{path:n,error:fe(405,{method:r.formMethod})};var o;let i,a,s=()=>({path:n,error:fe(400,{type:"invalid-body"})}),c=r.formMethod||"get",u=e?c.toUpperCase():c.toLowerCase(),d=me(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!be(u))return s();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:u,formAction:d,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!be(u))return s();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:u,formAction:d,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return s()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),r.formData)i=se(r.formData),a=r.formData;else if(r.body instanceof FormData)i=se(r.body),a=r.body;else if(r.body instanceof URLSearchParams)i=r.body,a=le(i);else if(null==r.body)i=new URLSearchParams,a=new FormData;else try{i=new URLSearchParams(r.body),a=le(i)}catch(e){return s()}let h={formMethod:u,formAction:d,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:a,json:void 0,text:void 0};if(be(h.formMethod))return{path:n,submission:h};let m=f(n);return t&&m.search&&Se(m.search)&&i.append("index",""),m.search="?"+i,{path:p(m),submission:h}}function te(e,t,n,r,o,i,s,l,c,u,d,p,f,h){let m=h?Object.values(h)[0]:f?Object.values(f)[0]:void 0,g=e.createURL(t.location),v=e.createURL(o),b=h?Object.keys(h)[0]:void 0,w=function(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}(n,b).filter(((e,n)=>{if(e.route.lazy)return!0;if(null==e.route.loader)return!1;if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||s.some((t=>t===e.route.id)))return!0;let o=t.matches[n],l=e;return re(e,a({currentUrl:g,currentParams:o.params,nextUrl:v,nextParams:l.params},r,{actionResult:m,defaultShouldRevalidate:i||g.pathname+g.search===v.pathname+v.search||g.search!==v.search||ne(o,l)}))})),x=[];return c.forEach(((e,o)=>{if(!n.some((t=>t.route.id===e.routeId)))return;let s=y(d,e.path,p);if(!s)return void x.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let c=t.fetchers.get(o),f=c&&"idle"!==c.state&&void 0===c.data&&!u.has(o),h=ke(s,e.path);(l.includes(o)||f||re(h,a({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:m,defaultShouldRevalidate:i})))&&x.push({key:o,routeId:e.routeId,path:e.path,matches:s,match:h,controller:new AbortController})})),[w,x]}function ne(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function re(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function oe(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];l(o,"No route found in manifest");let i={};for(let e in r){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;c(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||g.has(e)||(i[e]=r[e])}Object.assign(o,i),Object.assign(o,a({},t(o),{lazy:void 0}))}async function ie(e,t,n,r,o,i,a,s){let c,u,d;void 0===s&&(s={});let p=e=>{let r,o=new Promise(((e,t)=>r=t));return d=()=>r(),t.signal.addEventListener("abort",d),Promise.race([e({request:t,params:n.params,context:s.requestContext}),o])};try{let r=n.route[e];if(n.route.lazy)if(r)u=(await Promise.all([p(r),oe(n.route,i,o)]))[0];else{if(await oe(n.route,i,o),r=n.route[e],!r){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw fe(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:m.data,data:void 0}}u=await p(r)}else{if(!r){let e=new URL(t.url);throw fe(404,{pathname:e.pathname+e.search})}u=await p(r)}l(void 0!==u,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){c=m.error,u=e}finally{d&&t.signal.removeEventListener("abort",d)}if(null!=(f=u)&&"number"==typeof f.status&&"string"==typeof f.statusText&&"object"==typeof f.headers&&void 0!==f.body){let e,o=u.status;if(Y.has(o)){let e=u.headers.get("Location");if(l(e,"Redirects returned/thrown from loaders/actions must have a Location header"),J.test(e)){if(!s.isStaticRequest){let n=new URL(t.url),r=e.startsWith("//")?new URL(n.protocol+e):new URL(e),o=null!=R(r.pathname,a);r.origin===n.origin&&o&&(e=r.pathname+r.search+r.hash)}}else e=Q(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,e);if(s.isStaticRequest)throw u.headers.set("Location",e),u;return{type:m.redirect,status:o,location:e,revalidate:null!==u.headers.get("X-Remix-Revalidate")}}if(s.isRouteRequest)throw{type:c||m.data,response:u};let i=u.headers.get("Content-Type");return e=i&&/\bapplication\/json\b/.test(i)?await u.json():await u.text(),c===m.error?{type:c,error:new F(o,u.statusText,e),headers:u.headers}:{type:m.data,data:e,statusCode:u.status,headers:u.headers}}var f,h,g;return c===m.error?{type:c,error:u}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(u)?{type:m.deferred,deferredData:u,statusCode:null==(h=u.init)?void 0:h.status,headers:(null==(g=u.init)?void 0:g.headers)&&new Headers(u.init.headers)}:{type:m.data,data:u}}function ae(e,t,n,r){let o=e.createURL(me(t)).toString(),i={signal:n};if(r&&be(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=se(r.formData):i.body=r.formData}return new Request(o,i)}function se(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function le(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ce(e,t,n,r,o,i,s,c){let{loaderData:u,errors:d}=function(e,t,n,r,o){let i,a={},s=null,c=!1,u={};return n.forEach(((n,d)=>{let p=t[d].route.id;if(l(!ye(n),"Cannot handle redirect results in processLoaderData"),ve(n)){let t=de(e,p),o=n.error;r&&(o=Object.values(r)[0],r=void 0),s=s||{},null==s[t.route.id]&&(s[t.route.id]=o),a[p]=void 0,c||(c=!0,i=H(n.error)?n.error.status:500),n.headers&&(u[p]=n.headers)}else ge(n)?(o.set(p,n.deferredData),a[p]=n.deferredData.data):a[p]=n.data,null==n.statusCode||200===n.statusCode||c||(i=n.statusCode),n.headers&&(u[p]=n.headers)})),r&&(s=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:s,statusCode:i||200,loaderHeaders:u}}(t,n,r,o,c);for(let t=0;t<i.length;t++){let{key:n,match:r,controller:o}=i[t];l(void 0!==s&&void 0!==s[t],"Did not find corresponding fetcher result");let c=s[t];if(!o||!o.signal.aborted)if(ve(c)){let t=de(e.matches,null==r?void 0:r.route.id);d&&d[t.route.id]||(d=a({},d,{[t.route.id]:c.error})),e.fetchers.delete(n)}else if(ye(c))l(!1,"Unhandled fetcher revalidation redirect");else if(ge(c))l(!1,"Unhandled fetcher deferred data");else{let t=Ce(c.data);e.fetchers.set(n,t)}}return{loaderData:u,errors:d}}function ue(e,t,n,r){let o=a({},t);for(let i of n){let n=i.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(o[n]=t[n]):void 0!==e[n]&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function de(e,t){let n=t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e];return n.reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function pe(e){let t=e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function fe(e,t){let{pathname:n,routeId:r,method:o,type:i}=void 0===t?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i?s="defer() is not supported in actions":"invalid-body"===i&&(s="Unable to encode submission body")):403===e?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):404===e?(a="Not Found",s='No route matches URL "'+n+'"'):405===e&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new F(e||500,a,new Error(s),!0)}function he(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ye(n))return n}}function me(e){return p(a({},"string"==typeof e?f(e):e,{hash:""}))}function ge(e){return e.type===m.deferred}function ve(e){return e.type===m.error}function ye(e){return(e&&e.type)===m.redirect}function be(e){return U.has(e.toLowerCase())}async function we(e,t,n,r,o,i){for(let a=0;a<n.length;a++){let s=n[a],c=t[a];if(!c)continue;let u=e.find((e=>e.route.id===c.route.id)),d=null!=u&&!ne(u,c)&&void 0!==(i&&i[c.route.id]);if(ge(s)&&(o||d)){let e=r[a];l(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await xe(s,e,o).then((e=>{e&&(n[a]=e||n[a])}))}}}async function xe(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:m.data,data:e.deferredData.unwrappedData}}catch(e){return{type:m.error,error:e}}return{type:m.data,data:e.deferredData.data}}}function Se(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function ke(e,t){let n="string"==typeof t?f(t).search:t.search;if(e[e.length-1].route.index&&Se(n||""))return e[e.length-1];let r=D(e);return r[r.length-1]}function je(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function Ee(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Oe(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Ce(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(this,arguments)}Symbol("deferred");const Te=o.createContext(null),Le=o.createContext(null),_e=o.createContext(null),Re=o.createContext(null),Me=o.createContext({outlet:null,matches:[],isDataRoute:!1}),De=o.createContext(null);function Ae(){return null!=o.useContext(Re)}function ze(){return Ae()||l(!1),o.useContext(Re).location}function Ne(e){o.useContext(_e).static||o.useLayoutEffect(e)}function Ie(){let{isDataRoute:e}=o.useContext(Me);return e?function(){let{router:e}=function(e){let t=o.useContext(Te);return t||l(!1),t}(Ye.UseNavigateStable),t=Ge(Xe.UseNavigateStable),n=o.useRef(!1);return Ne((()=>{n.current=!0})),o.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Pe({fromRouteId:t},o)))}),[e,t])}():function(){Ae()||l(!1);let e=o.useContext(Te),{basename:t,navigator:n}=o.useContext(_e),{matches:r}=o.useContext(Me),{pathname:i}=ze(),a=JSON.stringify(D(r).map((e=>e.pathnameBase))),s=o.useRef(!1);return Ne((()=>{s.current=!0})),o.useCallback((function(r,o){if(void 0===o&&(o={}),!s.current)return;if("number"==typeof r)return void n.go(r);let l=A(r,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:z([t,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)}),[t,n,a,i,e])}()}const We=o.createContext(null);function Fe(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=o.useContext(Me),{pathname:i}=ze(),a=JSON.stringify(D(r).map((e=>e.pathnameBase)));return o.useMemo((()=>A(e,JSON.parse(a),i,"path"===n)),[e,a,i,n])}function He(e,t,n){Ae()||l(!1);let{navigator:i}=o.useContext(_e),{matches:a}=o.useContext(Me),s=a[a.length-1],c=s?s.params:{},u=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let d,p=ze();if(t){var h;let e="string"==typeof t?f(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||l(!1),d=e}else d=p;let m=d.pathname||"/",g=y(e,{pathname:"/"===u?m:m.slice(u.length)||"/"}),v=function(e,t,n){var r;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let a=e,s=null==(r=n)?void 0:r.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||l(!1),a=a.slice(0,Math.min(a.length,e+1))}return a.reduceRight(((e,r,i)=>{let l=r.route.id?null==s?void 0:s[r.route.id]:null,c=null;n&&(c=r.route.errorElement||Ue);let u=t.concat(a.slice(0,i+1)),d=()=>{let t;return t=l?c:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(qe,{match:r,routeContext:{outlet:e,matches:u,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?o.createElement($e,{location:n.location,revalidation:n.revalidation,component:c,error:l,children:d(),routeContext:{outlet:null,matches:u,isDataRoute:!0}}):d()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:z([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:z([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,n);return t&&v?o.createElement(Re.Provider,{value:{location:Pe({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:r.Pop}},v):v}function Be(){let e=function(){var e;let t=o.useContext(De),n=Ve(Xe.UseRouteError),r=Ge(Xe.UseRouteError);return t||(null==(e=n.errors)?void 0:e[r])}(),t=H(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:r},n):null,null)}const Ue=o.createElement(Be,null);class $e extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?o.createElement(Me.Provider,{value:this.props.routeContext},o.createElement(De.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qe(e){let{routeContext:t,match:n,children:r}=e,i=o.useContext(Te);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(Me.Provider,{value:t},r)}var Ye,Xe;function Ve(e){let t=o.useContext(Le);return t||l(!1),t}function Ge(e){let t=function(e){let t=o.useContext(Me);return t||l(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||l(!1),n.route.id}function Ke(){return Ve(Xe.UseNavigation).navigation}function Je(){let e=Ve(Xe.UseActionData);return o.useContext(Me)||l(!1),Object.values((null==e?void 0:e.actionData)||{})[0]}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(Ye||(Ye={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(Xe||(Xe={}));const Ze=o.startTransition;function Qe(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=o.useState(n.state),{v7_startTransition:s}=r||{},l=o.useCallback((e=>{s&&Ze?Ze((()=>a(e))):a(e)}),[a,s]);o.useLayoutEffect((()=>n.subscribe(l)),[n,l]);let c=o.useMemo((()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[n]),u=n.basename||"/",d=o.useMemo((()=>({router:n,navigator:c,static:!1,basename:u})),[n,c,u]);return o.createElement(o.Fragment,null,o.createElement(Te.Provider,{value:d},o.createElement(Le.Provider,{value:i},o.createElement(ot,{basename:u,location:i.location,navigationType:i.historyAction,navigator:c},i.initialized?o.createElement(et,{routes:n.routes,state:i}):t))),null)}function et(e){let{routes:t,state:n}=e;return He(t,void 0,n)}function tt(e){let{to:t,replace:n,state:r,relative:i}=e;Ae()||l(!1);let{matches:a}=o.useContext(Me),{pathname:s}=ze(),c=Ie(),u=A(t,D(a).map((e=>e.pathnameBase)),s,"path"===i),d=JSON.stringify(u);return o.useEffect((()=>c(JSON.parse(d),{replace:n,state:r,relative:i})),[c,d,i,n,r]),null}function nt(e){return function(e){let t=o.useContext(Me).outlet;return t?o.createElement(We.Provider,{value:e},t):t}(e.context)}function rt(e){l(!1)}function ot(e){let{basename:t="/",children:n=null,location:i,navigationType:a=r.Pop,navigator:s,static:c=!1}=e;Ae()&&l(!1);let u=t.replace(/^\/*/,"/"),d=o.useMemo((()=>({basename:u,navigator:s,static:c})),[u,s,c]);"string"==typeof i&&(i=f(i));let{pathname:p="/",search:h="",hash:m="",state:g=null,key:v="default"}=i,y=o.useMemo((()=>{let e=R(p,u);return null==e?null:{location:{pathname:e,search:h,hash:m,state:g,key:v},navigationType:a}}),[u,p,h,m,g,v,a]);return null==y?null:o.createElement(_e.Provider,{value:d},o.createElement(Re.Provider,{children:n,value:y}))}var it;function at(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:o.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},st.apply(this,arguments)}function lt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(it||(it={})),new Promise((()=>{})),o.Component;const ct="get",ut="application/x-www-form-urlencoded";function dt(e){return null!=e&&"string"==typeof e.tagName}let pt=null;const ft=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ht(e){return null==e||ft.has(e)?e:null}const mt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],gt=["reloadDocument","replace","method","action","onSubmit","submit","relative","preventScrollReset"];function vt(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=st({},t,{errors:yt(t.errors)})),t}function yt(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new F(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){let t=new Error(r.message);t.stack="",n[e]=t}else n[e]=r;return n}o.startTransition;const bt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,wt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xt=o.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:a,replace:s,state:c,target:u,to:d,preventScrollReset:f}=e,h=lt(e,mt),{basename:m}=o.useContext(_e),g=!1;if("string"==typeof d&&wt.test(d)&&(n=d,bt))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=R(t.pathname,m);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:g=!0}catch(e){}let v=function(e,t){let{relative:n}=void 0===t?{}:t;Ae()||l(!1);let{basename:r,navigator:i}=o.useContext(_e),{hash:a,pathname:s,search:c}=Fe(e,{relative:n}),u=s;return"/"!==r&&(u="/"===s?r:z([r,s])),i.createHref({pathname:u,search:c,hash:a})}(d,{relative:i}),y=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:s}=void 0===t?{}:t,l=Ie(),c=ze(),u=Fe(e,{relative:s});return o.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:p(c)===p(u);l(e,{replace:n,state:i,preventScrollReset:a,relative:s})}}),[c,l,u,r,i,n,e,a,s])}(d,{replace:s,state:c,target:u,preventScrollReset:f,relative:i});return o.createElement("a",st({},h,{href:n||v,onClick:g||a?r:function(e){r&&r(e),e.defaultPrevented||y(e)},ref:t,target:u}))})),St=o.forwardRef(((e,t)=>{let n=Ot();return o.createElement(kt,st({},e,{submit:n,ref:t}))})),kt=o.forwardRef(((e,t)=>{let{reloadDocument:n,replace:r,method:i=ct,action:a,onSubmit:s,submit:c,relative:u,preventScrollReset:d}=e,f=lt(e,gt),h="get"===i.toLowerCase()?"get":"post",m=function(e,t){let{relative:n}=void 0===t?{}:t,{basename:r}=o.useContext(_e),i=o.useContext(Me);i||l(!1);let[a]=i.matches.slice(-1),s=st({},Fe(e||".",{relative:n})),c=ze();if(null==e&&(s.search=c.search,s.hash=c.hash,a.route.index)){let e=new URLSearchParams(s.search);e.delete("index"),s.search=e.toString()?"?"+e.toString():""}return e&&"."!==e||!a.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(s.pathname="/"===s.pathname?r:z([r,s.pathname])),p(s)}(a,{relative:u});return o.createElement("form",st({ref:t,method:h,action:m,onSubmit:n?s:e=>{if(s&&s(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null==t?void 0:t.getAttribute("formmethod"))||i;c(t||e.currentTarget,{method:n,replace:r,relative:u,preventScrollReset:d})}},f))}));var jt,Et;function Ot(){let{router:e}=function(e){let t=o.useContext(Te);return t||l(!1),t}(jt.UseSubmit),{basename:t}=o.useContext(_e),n=Ge(Xe.UseRouteId);return o.useCallback((function(r,o){void 0===o&&(o={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();let{action:i,method:a,encType:s,formData:l,body:c}=function(e,t){let n,r,o,i,a;if(dt(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?R(a,t):null,n=e.getAttribute("method")||ct,o=ht(e.getAttribute("enctype"))||ut,i=new FormData(e)}else if(function(e){return dt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return dt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?R(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||ct,o=ht(e.getAttribute("formenctype"))||ht(a.getAttribute("enctype"))||ut,i=new FormData(a,e),!function(){if(null===pt)try{new FormData(document.createElement("form"),0),pt=!1}catch(e){pt=!0}return pt}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?t+".":"";i.append(e+"x","0"),i.append(e+"y","0")}else t&&i.append(t,r)}}else{if(dt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ct,r=null,o=ut,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}(r,t);e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||a,formEncType:o.encType||s,replace:o.replace,fromRouteId:n})}),[e,t,n])}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(jt||(jt={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Et||(Et={}));const Ct=window.lodash;function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pt.apply(this,arguments)}function Tt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Lt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_t=Tt((function(e){return Lt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Rt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Mt=Math.abs,Dt=String.fromCharCode,At=Object.assign;function zt(e){return e.trim()}function Nt(e,t,n){return e.replace(t,n)}function It(e,t){return e.indexOf(t)}function Wt(e,t){return 0|e.charCodeAt(t)}function Ft(e,t,n){return e.slice(t,n)}function Ht(e){return e.length}function Bt(e){return e.length}function Ut(e,t){return t.push(e),e}var $t=1,qt=1,Yt=0,Xt=0,Vt=0,Gt="";function Kt(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:$t,column:qt,length:a,return:""}}function Jt(e,t){return At(Kt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Zt(){return Vt=Xt>0?Wt(Gt,--Xt):0,qt--,10===Vt&&(qt=1,$t--),Vt}function Qt(){return Vt=Xt<Yt?Wt(Gt,Xt++):0,qt++,10===Vt&&(qt=1,$t++),Vt}function en(){return Wt(Gt,Xt)}function tn(){return Xt}function nn(e,t){return Ft(Gt,e,t)}function rn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function on(e){return $t=qt=1,Yt=Ht(Gt=e),Xt=0,[]}function an(e){return Gt="",e}function sn(e){return zt(nn(Xt-1,un(91===e?e+2:40===e?e+1:e)))}function ln(e){for(;(Vt=en())&&Vt<33;)Qt();return rn(e)>2||rn(Vt)>3?"":" "}function cn(e,t){for(;--t&&Qt()&&!(Vt<48||Vt>102||Vt>57&&Vt<65||Vt>70&&Vt<97););return nn(e,tn()+(t<6&&32==en()&&32==Qt()))}function un(e){for(;Qt();)switch(Vt){case e:return Xt;case 34:case 39:34!==e&&39!==e&&un(Vt);break;case 40:41===e&&un(e);break;case 92:Qt()}return Xt}function dn(e,t){for(;Qt()&&e+Vt!==57&&(e+Vt!==84||47!==en()););return"/*"+nn(t,Xt-1)+"*"+Dt(47===e?e:Qt())}function pn(e){for(;!rn(en());)Qt();return nn(e,Xt)}var fn="-ms-",hn="-moz-",mn="-webkit-",gn="comm",vn="rule",yn="decl",bn="@keyframes";function wn(e,t){for(var n="",r=Bt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function xn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case yn:return e.return=e.return||e.value;case gn:return"";case bn:return e.return=e.value+"{"+wn(e.children,r)+"}";case vn:e.value=e.props.join(",")}return Ht(n=wn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Sn(e){return an(kn("",null,null,null,[""],e=on(e),0,[0],e))}function kn(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,S=r,k=b;g;)switch(h=y,y=Qt()){case 40:if(108!=h&&58==Wt(k,d-1)){-1!=It(k+=Nt(sn(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=sn(y);break;case 9:case 10:case 13:case 32:k+=ln(h);break;case 92:k+=cn(tn()-1,7);continue;case 47:switch(en()){case 42:case 47:Ut(En(dn(Qt(),tn()),t,n),l);break;default:k+="/"}break;case 123*m:s[c++]=Ht(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=Nt(k,/\f/g,"")),f>0&&Ht(k)-d&&Ut(f>32?On(k+";",r,n,d-1):On(Nt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Ut(S=jn(k,t,n,c,u,o,s,b,w=[],x=[],d),i),123===y)if(0===u)kn(k,t,S,S,w,i,d,s,x);else switch(99===p&&110===Wt(k,3)?100:p){case 100:case 108:case 109:case 115:kn(e,S,S,r&&Ut(jn(e,S,S,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:kn(k,S,S,S,[""],x,0,s,x)}}c=u=f=0,m=v=1,b=k="",d=a;break;case 58:d=1+Ht(k),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Zt())continue;switch(k+=Dt(y),y*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Ht(k)-1)*v,v=1;break;case 64:45===en()&&(k+=sn(Qt())),p=en(),u=d=Ht(b=k+=pn(tn())),y++;break;case 45:45===h&&2==Ht(k)&&(m=0)}}return i}function jn(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Bt(p),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Ft(e,d+1,d=Mt(m=a[h])),b=e;v<f;++v)(b=zt(m>0?p[v]+" "+y:Nt(y,/&\f/g,p[v])))&&(l[g++]=b);return Kt(e,t,n,0===o?vn:s,l,c,u)}function En(e,t,n){return Kt(e,t,n,gn,Dt(Vt),Ft(e,2,-2),0)}function On(e,t,n,r){return Kt(e,t,n,yn,Ft(e,0,r),Ft(e,r+1,-1),r)}var Cn=function(e,t,n){for(var r=0,o=0;r=o,o=en(),38===r&&12===o&&(t[n]=1),!rn(o);)Qt();return nn(e,Xt)},Pn=new WeakMap,Tn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Pn.get(n))&&!r){Pn.set(e,!0);for(var o=[],i=function(e,t){return an(function(e,t){var n=-1,r=44;do{switch(rn(r)){case 0:38===r&&12===en()&&(t[n]=1),e[n]+=Cn(Xt-1,t,n);break;case 2:e[n]+=sn(r);break;case 4:if(44===r){e[++n]=58===en()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Dt(r)}}while(r=Qt());return e}(on(e),t))}(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Ln=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Rn(e,t){switch(function(e,t){return 45^Wt(e,0)?(((t<<2^Wt(e,0))<<2^Wt(e,1))<<2^Wt(e,2))<<2^Wt(e,3):0}(e,t)){case 5103:return mn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return mn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mn+e+hn+e+fn+e+e;case 6828:case 4268:return mn+e+fn+e+e;case 6165:return mn+e+fn+"flex-"+e+e;case 5187:return mn+e+Nt(e,/(\w+).+(:[^]+)/,mn+"box-$1$2"+fn+"flex-$1$2")+e;case 5443:return mn+e+fn+"flex-item-"+Nt(e,/flex-|-self/,"")+e;case 4675:return mn+e+fn+"flex-line-pack"+Nt(e,/align-content|flex-|-self/,"")+e;case 5548:return mn+e+fn+Nt(e,"shrink","negative")+e;case 5292:return mn+e+fn+Nt(e,"basis","preferred-size")+e;case 6060:return mn+"box-"+Nt(e,"-grow","")+mn+e+fn+Nt(e,"grow","positive")+e;case 4554:return mn+Nt(e,/([^-])(transform)/g,"$1"+mn+"$2")+e;case 6187:return Nt(Nt(Nt(e,/(zoom-|grab)/,mn+"$1"),/(image-set)/,mn+"$1"),e,"")+e;case 5495:case 3959:return Nt(e,/(image-set\([^]*)/,mn+"$1$`$1");case 4968:return Nt(Nt(e,/(.+:)(flex-)?(.*)/,mn+"box-pack:$3"+fn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mn+e+e;case 4095:case 3583:case 4068:case 2532:return Nt(e,/(.+)-inline(.+)/,mn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ht(e)-1-t>6)switch(Wt(e,t+1)){case 109:if(45!==Wt(e,t+4))break;case 102:return Nt(e,/(.+:)(.+)-([^]+)/,"$1"+mn+"$2-$3$1"+hn+(108==Wt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~It(e,"stretch")?Rn(Nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Wt(e,t+1))break;case 6444:switch(Wt(e,Ht(e)-3-(~It(e,"!important")&&10))){case 107:return Nt(e,":",":"+mn)+e;case 101:return Nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mn+(45===Wt(e,14)?"inline-":"")+"box$3$1"+mn+"$2$3$1"+fn+"$2box$3")+e}break;case 5936:switch(Wt(e,t+11)){case 114:return mn+e+fn+Nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mn+e+fn+Nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mn+e+fn+Nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return mn+e+fn+e+e}return e}var Mn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case yn:e.return=Rn(e.value,e.length);break;case bn:return wn([Jt(e,{value:Nt(e.value,"@","@"+mn)})],r);case vn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return wn([Jt(e,{props:[Nt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return wn([Jt(e,{props:[Nt(t,/:(plac\w+)/,":"+mn+"input-$1")]}),Jt(e,{props:[Nt(t,/:(plac\w+)/,":-moz-$1")]}),Jt(e,{props:[Nt(t,/:(plac\w+)/,fn+"input-$1")]})],r)}return""}))}}],Dn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Mn,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,p=[xn,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[Tn,Ln].concat(i,p),u=Bt(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,wn(Sn(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Rt({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},An={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},zn=/[A-Z]|^ms/g,Nn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,In=function(e){return 45===e.charCodeAt(1)},Wn=function(e){return null!=e&&"boolean"!=typeof e},Fn=Tt((function(e){return In(e)?e:e.replace(zn,"-$&").toLowerCase()})),Hn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Nn,(function(e,t,n){return Un={name:t,styles:n,next:Un},t}))}return 1===An[e]||In(e)||"number"!=typeof t||0===t?t:t+"px"};function Bn(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Un={name:n.name,styles:n.styles,next:Un},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Un={name:r.name,styles:r.styles,next:Un},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Bn(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Wn(a)&&(r+=Fn(i)+":"+Hn(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Bn(e,t,a);switch(i){case"animation":case"animationName":r+=Fn(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Wn(a[l])&&(r+=Fn(i)+":"+Hn(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Un,i=n(e);return Un=o,Bn(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Un,$n=/label:\s*([^\s;\n{]+)\s*(;|$)/g,qn=!!o.useInsertionEffect&&o.useInsertionEffect,Yn=qn||function(e){return e()},Xn=(qn||o.useLayoutEffect,o.createContext("undefined"!=typeof HTMLElement?Dn({key:"css"}):null));Xn.Provider;var Vn=o.createContext({}),Gn=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Kn=_t,Jn=function(e){return"theme"!==e},Zn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Kn:Jn},Qn=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},er=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Gn(t,n,r),Yn((function(){return function(e,t,n){Gn(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},tr=function e(t,n){var r,i,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var l=Qn(t,n,a),c=l||Zn(s),u=!c("as");return function(){var d=arguments,p=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{p.push(d[0][0]);for(var f=d.length,h=1;h<f;h++)p.push(d[h],d[0][h])}var m,g=(m=function(e,t,n){var r,a,d,f,h=u&&e.as||s,m="",g=[],v=e;if(null==e.theme){for(var y in v={},e)v[y]=e[y];v.theme=o.useContext(Vn)}"string"==typeof e.className?(r=t.registered,a=g,d=e.className,f="",d.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):f+=e+" "})),m=f):null!=e.className&&(m=e.className+" ");var b=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Un=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Bn(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Bn(n,t,e[a]),r&&(o+=i[a]);$n.lastIndex=0;for(var s,l="";null!==(s=$n.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Un}}(p.concat(g),t.registered,v);m+=t.key+"-"+b.name,void 0!==i&&(m+=" "+i);var w=u&&void 0===l?Zn(h):c,x={};for(var S in e)u&&"as"===S||w(S)&&(x[S]=e[S]);return x.className=m,x.ref=n,o.createElement(o.Fragment,null,o.createElement(er,{cache:t,serialized:b,isStringTag:"string"==typeof h}),o.createElement(h,x))},(0,o.forwardRef)((function(e,t){var n=(0,o.useContext)(Xn);return m(e,n,t)})));return g.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=p,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,r){return e(t,Pt({},n,r,{shouldForwardProp:Qn(g,r,!0)})).apply(void 0,p)},g}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){tr[e]=tr(e)}));const nr=tr.picture`
    text-align: center;
    margin-bottom: 16px;
    display: block;
    width: 100%;

    @media (min-width: 850px) {
        position: absolute;
        top: -40px;
    }
`;function rr(){return(0,e.jsx)(nr,{children:(0,e.jsx)("img",{src:window.chatway.images+"chatway-logo.webp",loading:"lazy",alt:"chatway logo",width:112,height:29})})}const or=tr.h2((e=>Object.assign({color:"#282d3e",fontWeight:600,lineHeight:"40px",fontSize:"32px",margin:0,textAlign:"center",paddingBottom:"10px"},e.sx||{}))),ir=t=>{const n=t.as||"h2",r=or.withComponent(n);return(0,e.jsx)(r,Object.assign({},t,{children:t.children}))},ar=tr.p((e=>Object.assign({color:"#282d3e",fontWeight:400,lineHeight:"24px",fontSize:"14px",margin:0,textAlign:"center"},e.sx||{}))),sr=t=>{const n=t.as||"p",r=ar.withComponent(n);return(0,e.jsx)(r,Object.assign({},t,{children:t.children}))};function lr(){return(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"21",fill:"none",viewBox:"0 0 16 21",children:[(0,e.jsx)("mask",{id:"mask0_34039_11847",width:"14",height:"14",x:"1",y:"3",maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:(0,e.jsx)("path",{fill:"#000",d:"M8 3.529a6.67 6.67 0 0 1 6.666 6.667A6.67 6.67 0 0 1 8 16.862a6.67 6.67 0 0 1-6.667-6.666A6.67 6.67 0 0 1 8 3.529m-.667 8.667v1.333h1.333v-1.333zM8 6.862a.67.67 0 0 0-.667.667v2.667c0 .366.3.666.667.666.366 0 .666-.3.666-.666V7.529c0-.367-.3-.667-.666-.667"})}),(0,e.jsx)("g",{mask:"url(#mask0_34039_11847)",children:(0,e.jsx)("path",{fill:"#E00000",d:"M0 2.195h16v16H0z"})})]})}const cr=tr.div((e=>{const t=e.isFocused||e.error||e.value;return Object.assign(Object.assign({display:"flex",flexDirection:"column",gap:"4px",width:"1005",position:"relative"},e.sx||{}),{label:{fontSize:t?"12px":"16px",display:"inline-block",position:"absolute",left:"15px",top:t?"-8px":"19px",pointerEvents:"none",transition:".2s",zIndex:1,fontWeight:t?"600":"400",width:"fit-content",padding:"0 4px",color:e.error?"#E00000":e.isFocused?"#0446de":"rgba(40, 45, 62, 1)",backgroundColor:"white"},".chatway-input":{borderStyle:"solid",borderWidth:"1.4px",padding:"10px 16px",display:"inline-block",borderRadius:"8px",transition:".2s",width:"100%",backgroundColor:"transparent !important",borderColor:e.error?"#E00000":(e.value,"#e6e6f0"),color:e.error?"#E00000":"#282D3E",fontSize:"16px",boxShadow:"none","&:focus, &.is-focused":{borderColor:e.error?"#E00000":"#0446de",boxShadow:"none",outline:0},"&:hover:not(:focus, .is-focused)":{boxShadow:"none",borderColor:e.error?"#E00000":"rgba(4,70,222,.4)"},"&::placeholder":{color:e.error?"#ff45454d":"#E6E6F0"}},".error-message":{fontSize:"12px",display:"flex",gap:"4px",color:"#e00000",borderRadius:"8px",padding:"6px 16px",backgroundColor:"#FEF5F5"},".input-container":{display:"flex",alignItems:"center","&:has(.visible-btn) input":{paddingRight:"55px"}},".visible-btn":{backgroundColor:t?"white":"transparent"}})})),ur=n=>{const[r,o]=(0,t.useState)(n.isFocused||!1);return(0,e.jsxs)(cr,{error:n.error,sx:n.sx,isFocused:r,value:n.value,children:[(0,e.jsx)("label",{htmlFor:`${n.name}-field`,children:n.label}),(0,e.jsx)("div",{className:"input-container",children:t.Children.map(n.children,((e,i)=>{const a=e;return"input"!==a.type?a:(0,t.cloneElement)(a,Object.assign(Object.assign({},a.props||{}),{value:n.value,key:i,name:n.name,id:`${n.name}-field`,placeholder:"",autoFocus:r,autoComplete:"off",className:`${a.props.className} ${r?"is-focused":""}`,onChange(e){e.stopPropagation(),"function"==typeof n.onChange&&n.onChange(e.target.value),"function"==typeof n.clearError&&n.clearError()},onBlur(e){e.stopPropagation(),o(!1),"function"==typeof n.onBlur&&n.onBlur(e.target.value)},onFocus(e){e.stopPropagation(),o(!0),"function"==typeof n.onFocus&&n.onFocus(),"function"==typeof n.clearError&&n.clearError()}}))}))}),n.error&&(0,e.jsxs)("span",{className:"error-message",children:[(0,e.jsx)(lr,{}),n.errorMessage]})]})},dr=t=>(0,e.jsx)(ur,Object.assign({},t,{children:(0,e.jsx)("input",{type:"email","aria-required":"true",className:"chatway-input",onClick:e=>{"function"==typeof t.onClick&&t.onClick(e)},onKeyDown:e=>{"function"==typeof t.onKeyDown&&t.onKeyDown(e)}})}));function pr(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20",children:(0,e.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.67",d:"M8 15l5-5-5-5"})})}const fr=tr("button")((e=>Object.assign({backgroundColor:"#0446DE",border:0,transition:"background-color .2s",fontSize:"16px",lineHeight:"24px",padding:"10px 12px 10px 16px",color:"#fff",display:"flex",alignItems:"center",gap:"4px",justifyContent:"center",width:"100%",marginTop:"12px",borderRadius:"4px",cursor:"pointer",userSelect:"none","&:hover":{backgroundColor:"#0435a5"},span:{fontSize:"16px !important"}},e.disabled?{backgroundColor:"#99BBFC",pointerEvents:"none"}:{}))),hr=t=>(0,e.jsxs)(fr,{disabled:t.loading||t.disabled,type:"submit",children:[(0,e.jsx)("span",{children:t.loading?"Processing...":t.children}),!t.loading&&(0,e.jsx)(pr,{})]});function mr(e){if((0,Ct.isEmpty)(e))return"";const t=e;return void 0===t.message||"string"!=typeof t.message?"":t.message||""}const gr=tr(xt)`
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 22px;
    color: #0446de;
    display: inline-block;
    transition: color 0.2s;
    user-select: none;

    &:hover {
        color: #0446de;
        text-decoration: underline;
    }

    &:focus {
        color: #0446de;
    }
`,vr=tr.div`
    text-align: center;
    display: block;
`,yr=t=>(0,e.jsx)(vr,{children:(0,e.jsx)(gr,Object.assign({},t,{children:t.children}))});var br=Object.defineProperty,wr=(e,t,n)=>(((e,t,n)=>{t in e?br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class xr{extractDomain(){const[e,t]=this.value.split("@");return{username:e,domain:t}}isEmailComplete(){return this.config.domains.filter((e=>this.value.toLowerCase().includes(e.name))).length>0}getDomain(){const{domain:e}=this.extractDomain();return e&&this.config.domains.filter((t=>t.name.startsWith(e.toLowerCase())))[0]||!1}hasUppercaseCharacter(e){for(let t=0;t<e.length;t++)if(e[t]!==e[t].toLowerCase())return!0;return!1}}const Sr="auto-fill",kr="suggesation";class jr extends xr{constructor(e){super(),wr(this,"config"),wr(this,"value",""),this.config=e}dispatch(e,t){this.value=t;const{domain:n,username:r}=this.extractDomain();n&&r&&(e===Sr&&this.autoCompleteHandler(),e===kr&&this.checkSuggesation())}checkSuggesation(){const{domain:e}=this.extractDomain();if(!e||this.isEmailComplete())return;const t=this.config.domains.filter((t=>{if(t.name!==e.toLowerCase().trim()&&Array.isArray(t.misspelledVariations))return t.misspelledVariations.includes(e.toLowerCase())}))[0]||!1;t&&this.config.subscribe({type:kr,inValue:this.value,outValue:`${this.extractDomain().username}@${t.name}`})}autoCompleteHandler(){if(this.isEmailComplete())return;const{shouldShow:e,email:t}=this.getAutoCompleteEmail();e&&this.config.subscribe({type:Sr,inValue:this.value,outValue:t})}getAutoCompleteEmail(){const{domain:e,username:t}=this.extractDomain();if(!e||!t)return{shouldShow:!1,email:this.value};const n=this.getDomain();if(n&&e.length>=n.autoCompleteAfter&&e.length<=n.name.length){let r="";if(this.hasUppercaseCharacter(e)){const[,o]=n.name.split(e.toLowerCase());r=`${t}@${e}${o}`}else r=`${t}@${n.name}`;return{shouldShow:!0,email:r}}return{shouldShow:!1,email:this.value}}}const Er=tr.div`
    position: relative;
`,Or=tr.div`
    position: relative;
    z-index: 10;
`,Cr=tr.div`
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.2;
    width: 100%;
    height: 100%;
    pointer-events: none;
`,Pr=tr.p`
    font-size: 14px;
    margin-top: 4px;
    .suggesation-label {
        color: #ff424d;
        margin-right: 4px;
        dislay: inline-block;
    }

    .suggesation-text {
        color: #0bacdd;
        display: inline-block;
        cursor: pointer;
        text-decoration: underline;
        transition: color 0.2s ease-in-out;

        &:hover {
            color: #0a7596;
        }
    }
`,Tr=(0,o.forwardRef)(((t,n)=>{const r=(0,o.useRef)(null),[i,a]=(0,o.useState)(!1),[s,l]=(0,o.useState)(!1),[c,u]=(0,o.useState)(""),d=(0,o.useRef)(null);return(0,o.useLayoutEffect)((()=>{r.current=new jr({domains:[{name:"gmail.com",autoCompleteAfter:1,misspelledVariations:["gmial.com","gmai.com","gamil.com","gmal.com","gamil.com","gmail.cm","mgail.com","gmil.com","gmail.om","gmaill.com","gmi.com","gmail.co","gmal.com","gmali.com","gml.com","gmal.com","gmali.com","gma.com"]},{name:"yahoo.com",autoCompleteAfter:2},{name:"icloud.com",autoCompleteAfter:2},{name:"me.com",autoCompleteAfter:2},{name:"mac.com",autoCompleteAfter:2},{name:"outlook.com",autoCompleteAfter:2},{name:"protonmail.com",autoCompleteAfter:2},{name:"zohocorp.com",autoCompleteAfter:2},{name:"gmx.com",autoCompleteAfter:2},{name:"hotmail.com",autoCompleteAfter:2},{name:"aol.com",autoCompleteAfter:2},{name:"aoicorp.com",autoCompleteAfter:2},{name:"premio.io",autoCompleteAfter:2}],subscribe(e){u(e.outValue),"auto-fill"!==e.type||i||(a(!0),l(!1),t.onChange(e)),"suggesation"!==e.type||s||(a(!1),l(!0),d.current(e.outValue))}})}),[]),(0,o.useEffect)((()=>{r.current&&(t.onChange({}),a(!1),l(!1),r.current.dispatch("auto-fill",t.value))}),[t.value]),(0,o.useEffect)((()=>{n&&(n.current={onSubmit(e,t){d.current=t,r.current.dispatch("suggesation",e)}})}),[c]),(0,e.jsxs)(Er,{children:[(0,e.jsx)(Or,{children:t.children}),i&&(0,e.jsx)(Cr,{children:(0,e.jsx)(dr,{name:"email",value:c,label:"Enter Your Email"})}),s&&(0,e.jsxs)(Pr,{children:[(0,e.jsx)("span",{className:"suggesation-label",children:"Did you mean"}),(0,e.jsxs)("span",{className:"suggesation-text",onClick:e=>{e.preventDefault(),"function"==typeof t.acceptSuggesation&&t.acceptSuggesation({email:c})},children:[c,"?"]})]})]})})),Lr=(0,o.memo)(Tr);function _r(e){return Boolean(String(e).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/))}function Rr(){return(0,e.jsxs)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",children:[(0,e.jsx)("path",{stroke:"#73738a",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.25",d:"M.834 10s3.333-6.667 9.167-6.667c5.833 0 9.166 6.667 9.166 6.667s-3.333 6.667-9.166 6.667C4.167 16.667.834 10 .834 10z"}),(0,e.jsx)("path",{stroke:"#73738a",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.25",d:"M10 12.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"})]})}function Mr(){return(0,e.jsxs)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",children:[(0,e.jsx)("g",{stroke:"#73738a",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.25",clipPath:"url(#clip0_3727_22480)",children:(0,e.jsx)("path",{d:"M8.25 3.534a7.6 7.6 0 011.75-.2c5.834 0 9.167 6.666 9.167 6.666a15.412 15.412 0 01-1.8 2.659m-5.6-.892a2.5 2.5 0 11-3.533-3.533m6.717 6.716A8.392 8.392 0 0110 16.667C4.167 16.667.834 10 .834 10a15.375 15.375 0 014.217-4.95l9.9 9.9zM.834.833l18.333 18.334"})}),(0,e.jsx)("defs",{children:(0,e.jsx)("clipPath",{id:"clip0_3727_22480",children:(0,e.jsx)("path",{fill:"#fff",d:"M0 0H20V20H0z"})})})]})}const Dr=tr.div`
    position: relative;

    .forget-link {
        position: absolute;
        right: 0;
        top: -22px;
        font-size: 12px;
        color: #0446de;
    }

    .visible-btn {
        display: flex;
        align-items: center;
        height: 51px;
        width: 50px;
        position: absolute;
        right: 3px;
        z-index: 4;
        cursor: pointer;
        justify-content: center;
        border-radius: 0 8px 8px 0;
        border: 0;
    }
`,Ar=n=>{const[r,o]=(0,t.useState)("password");return(0,e.jsxs)(Dr,{children:[(0,e.jsx)("a",{className:"forget-link",target:"_blank",href:"https://go.chatway.app/forgot-password",children:"Forgot password?"}),(0,e.jsxs)(ur,Object.assign({},n,{children:[(0,e.jsx)("input",{"aria-required":"true",type:r,className:"chatway-input"}),(0,e.jsx)("button",{"aria-label":"Toggle password visibility",className:"visible-btn",type:"button",onClick:()=>{o((e=>"password"===e?"text":"password"))},children:"text"===r?(0,e.jsx)(Mr,{}):(0,e.jsx)(Rr,{})})]}))]})},zr=o.createContext(void 0),Nr=t=>{let{children:n}=t;const[r,i]=o.useState([]),a=e=>{const t=Math.random().toString(36).substr(2,9),n=Object.assign(Object.assign({},e),{id:t});return i((e=>[...e,n])),t},s={toasts:r,addToast:a,removeToast:e=>{i((t=>t.filter((t=>t.id!==e))))},success:(e,t)=>a({message:e,type:"success",duration:t}),error:(e,t)=>a({message:e,type:"error",duration:t}),info:(e,t)=>a({message:e,type:"info",duration:t}),warning:(e,t)=>a({message:e,type:"warning",duration:t})};return(0,e.jsx)(zr.Provider,{value:s,children:n})},Ir=window.ReactDOM;var Wr=n.n(Ir);const Fr=t=>{let{id:n,message:r,type:i,duration:a=5e3,onClose:s}=t;const[l,c]=o.useState(!1);o.useEffect((()=>{const e=setTimeout((()=>{u()}),a);return()=>clearTimeout(e)}),[a]);const u=()=>{c(!0),setTimeout((()=>{s(n)}),300)};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("style",{children:"\n          @keyframes slideIn {\n            from {\n              transform: translateX(100%);\n              opacity: 0;\n            }\n            to {\n              transform: translateX(0);\n              opacity: 1;\n            }\n          }\n          \n          @keyframes slideOut {\n            from {\n              transform: translateX(0);\n              opacity: 1;\n            }\n            to {\n              transform: translateX(100%);\n              opacity: 0;\n            }\n          }\n          \n          @keyframes progress {\n            from {\n              width: 100%;\n            }\n            to {\n              width: 0%;\n            }\n          }\n        "}),(0,e.jsxs)("div",{style:{position:"relative",borderRadius:"8px",padding:"12px 25px",maxWidth:"360px",fontSize:"16px",lineHeight:"20px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",animation:l?"slideOut 0.3s ease-in forwards":"slideIn 0.3s ease-out",overflow:"hidden",marginBottom:"10px",display:"flex",alignItems:"center",gap:"10px",background:"#ffffff",color:"#3c434a"},children:[(0,e.jsx)("div",{style:(()=>{const e={width:"5px",background:"#ff424d",position:"absolute",height:"calc(100% - 24px)",borderRadius:"4px",left:"10px"};switch(i){case"success":return Object.assign(Object.assign({},e),{background:"#5BE179"});case"error":return Object.assign(Object.assign({},e),{background:"#ff424d"});case"warning":return Object.assign(Object.assign({},e),{background:"#fff3cd"});case"info":return Object.assign(Object.assign({},e),{background:"#d1ecf1"});default:return Object.assign(Object.assign({},e),{background:"#f8d7da"})}})()}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:(()=>{switch(i){case"error":return'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-b4130152="" class="icon" style="" focusable="false" role="presentation" tabindex="-1"><circle cx="12" cy="12" r="12" fill="#FF424D"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M16.9497 8.46449C17.3403 8.07396 17.3403 7.4408 16.9497 7.05027C16.5592 6.65975 15.9261 6.65975 15.5355 7.05027L12 10.5858L8.46447 7.05027C8.07394 6.65975 7.44078 6.65975 7.05025 7.05027C6.65973 7.4408 6.65973 8.07396 7.05025 8.46449L10.5858 12L7.05025 15.5356C6.65973 15.9261 6.65973 16.5592 7.05025 16.9498C7.44078 17.3403 8.07394 17.3403 8.46447 16.9498L12 13.4142L15.5355 16.9498C15.9261 17.3403 16.5592 17.3403 16.9497 16.9498C17.3403 16.5592 17.3403 15.9261 16.9497 15.5356L13.4142 12L16.9497 8.46449Z" fill="white"></path></svg>';case"success":return'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" class="icon" data-svg-processing="true" data-v-b4130152=""><circle cx="12" cy="12" r="12" fill="#5BE179" data-v-b4130152=""></circle><path d="M6 12.1481L9.575 16L17 8" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-b4130152=""></path></svg>';default:return""}})()}}),(0,e.jsx)("button",{onClick:u,style:{position:"absolute",top:"8px",right:"8px",background:"none",border:"none",fontSize:"18px",cursor:"pointer",color:"inherit",opacity:.7,padding:"0",width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center"},"aria-label":"Close toast",children:"×"}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})]})]})},Hr=()=>{const{toasts:t,removeToast:n,addToast:r}=(()=>{const e=o.useContext(zr);if(!e)throw new Error("useToast must be used within a ToastProvider");return e})();return o.useEffect((()=>{const e=e=>{const{message:t,type:n,duration:o}=e.detail;r({message:t,type:n,duration:o})},o=e=>{const{id:r}=e.detail;r?n(r):t.forEach((e=>n(e.id)))};return window.addEventListener("showToast",e),window.addEventListener("hideToast",o),()=>{window.removeEventListener("showToast",e),window.removeEventListener("hideToast",o)}}),[r,n,t]),"undefined"==typeof window?null:(0,Ir.createPortal)((0,e.jsx)("div",{style:{position:"fixed",top:"60px",right:"15px",zIndex:9999,display:"flex",flexDirection:"column",gap:"10px",paddingLeft:"15px"},children:t.map((t=>(0,e.jsx)(Fr,{id:t.id,message:t.message,type:t.type,duration:t.duration,onClose:n},t.id)))}),document.body)};function Br(){return(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"406",height:"163",fill:"none",className:"hidden md:block absolute top-0 left-0",viewBox:"0 0 406 163",children:[(0,e.jsxs)("g",{fill:"#1D56D8",clipPath:"url(#clip0_6818_25415)",children:[(0,e.jsx)("path",{d:"M329.1-.82c40.808-9.372 82.883-59.495 76.195-81.18L-24.554-65.874-38 162.78c26.821-3.905 72.868-5.789 106.075-31.7 54.756-42.727 108.636-15.712 138.303-34.457 29.666-18.744 19.422-36.386 29.453-59.265C245.862 14.478 278.09 10.895 329.1-.82z"}),(0,e.jsx)("path",{d:"M329.527 8.688c-84.237 6.64-91.199 43.012-84.15 60.368 5.014 0 12.59-7.676 14.17-12.582 3.706-11.512 3.924-8.567 13.08-11.244 7.63-2.23 13.953 0 13.953-8.299 0-11.623 6.976-6.291 17.004-8.834 10.028-2.544 11.99-4.551 13.298-9.771 1.091-4.351 9.956-7.452 12.645-9.638z"})]}),(0,e.jsx)("defs",{children:(0,e.jsx)("clipPath",{id:"clip0_6818_25415",children:(0,e.jsx)("path",{fill:"#fff",d:"M0 0H406V163H0z"})})})]})}function Ur(){return(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"220",height:"206",fill:"none",className:"hidden md:block absolute bottom-0 right-0",viewBox:"0 0 220 206",children:[(0,e.jsxs)("g",{fill:"#1D56D8",clipPath:"url(#clip0_6818_25412)",children:[(0,e.jsx)("path",{d:"M46.43 153.113C21.79 161.885-3.613 208.795.425 229.089l259.526-15.092L268.071 0c-16.194 3.655-43.995 5.418-64.044 29.668-33.06 39.988-65.591 14.705-83.503 32.248-17.911 17.543-11.726 34.054-17.782 55.466-6.057 21.413-25.515 24.767-56.313 35.731z"}),(0,e.jsx)("path",{d:"M135.986 41.926c15.113 4.182 47.135 4.157 65.449-29.184-18.092 2.267-58.093 9.444-65.449 29.184z"})]}),(0,e.jsx)("defs",{children:(0,e.jsx)("clipPath",{id:"clip0_6818_25412",children:(0,e.jsx)("path",{fill:"#fff",d:"M0 0H220V206H0z"})})})]})}function $r(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",children:(0,e.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.25",d:"M12.5 15l-5-5 5-5"})})}const qr=tr.a`
    padding: 8px 16px 8px 8px;
    display: inline-flex;
    background-color: #ffffff1a;
    border-radius: 100px;
    column-gap: 0.25rem;
    align-self: flex-start;
    color: #fff;
    transition: all 0.2s ease-in-out;
    align-items: center;

    &:hover {
        color: #fff;
        background-color: #ffffff3d;
    }

    &:focus {
        outline: none;
        color: #fff;
        box-shadow: none;
    }
`;function Yr(){return(0,e.jsxs)(qr,{href:window.chatway.landingPage,target:"_blank","area-label":"visit chatway website",title:"Visit Chatway Website",children:[(0,e.jsx)($r,{}),(0,e.jsx)("span",{children:"Chatway website"})]})}const Xr=tr.p`
    text-align: center;
    color: #fff;
    font-size: 11px;
    line-height: 24px;
    padding: 0;
    background-color: #0443d4;
    display: inline-block;
    width: auto;
    margin: 0 auto;

    a {
        text-decoration: none;
        color: #fff;
        transition: 0.2s;
        font-size: 11px;

        &:hover {
            color: #fff;
            text-decoration: underline !important;
        }
    }
`,Vr=()=>(0,e.jsxs)(Xr,{className:"footer-terms",children:["By signing up, you agree to our"," ",(0,e.jsx)("a",{target:"_blank",href:window.chatway.termsOfService,title:"View Chatway Terms Of Use Page",children:"Terms Of Use"})," ","and"," ",(0,e.jsx)("a",{target:"_blank",href:window.chatway.privacyPolicy,title:"View Chatway Privacy Policy Page",children:"Privacy Policy"})]});var Gr=n(66);const Kr={dots:!0,infinite:!0,speed:800,arrows:!1,autoplaySpeed:5e3,slidesToShow:1,slidesToScroll:1,autoplay:!0,centerPadding:"60px",centerMode:!0,adaptiveHeight:!1,responsive:[{breakpoint:1160,settings:{centerPadding:"30px"}},{breakpoint:850,settings:{centerPadding:"60px"}}]},Jr=[{name:"Matias Yabar-Davila",designation:"Founder, Coach Social",content:"Smooth and easy. Simple interface and a good way to engage with potential customers.",image:window.chatway.images+"reviewer/1.png"},{name:"Mary",designation:"Founder of Orion's Corner",content:"This app is actually much easier to use than one I previously tried. It's very, very user-friendly and support has been extremely helpful. The price is excellent and I definitely am glad that I found this one. It's totally worth using and trying out.",image:window.chatway.images+"reviewer/2.png"},{name:"Asbjørn Kofoed-Nielsen",designation:"Founder of WDT Tool",content:"Added Chatway to my website in minutes, and I get notified on my email and phone app when customers ask questions on my website. Works great.",image:window.chatway.images+"reviewer/3.png"},{name:"Barak Liberman",designation:"Founder of Bridge Online Academy",content:"Game Changer. Chatway Live Chat is a great plugin. I've used to use a WhatsApp link, and since changing to Chatway Live Chat, I'm getting a lot more chat requests and, as a result, a lot more paying customers. I highly recommend it!",image:window.chatway.images+"reviewer/4.png"},{name:"Laslo Dosa",designation:"Founder of Avvo",content:"Simply the best live chat app that exists on Shopify. Beautiful design, easy customization, and instant messaging with customers through the app",image:window.chatway.images+"reviewer/5.png"},{name:"Elaine Faye Abueva",designation:"Founder LZ Marketing",content:"I highly recommend Chatway for online stores. They also notify via email when a new chat comes in",image:window.chatway.images+"reviewer/6.png"},{name:"Melanie Steele",designation:"Founder of For the Writer's Soul",content:"Hands down the best chat app. I've tried several other apps and they all had major issues. The Chatway app is all you will need. It's simple and easy to set up.",image:window.chatway.images+"reviewer/7.png"}],Zr=tr.img`
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 1.5px solid transparent;
    background-image: linear-gradient(180deg, #f69d01 0%, #f65901 100%);
    box-shadow: 0px 5.44px 16.33px 0px #f6640233;
`,Qr=tr.img`
    margin-bottom: 10px;
    margin-top: 4px;
`,eo=tr.div`
    background-color: #3e4252;
    box-shadow: 0px 8px 52px 0px #00000040;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    height: 100%;
`;function to(){return(0,e.jsx)("div",{children:(0,e.jsx)(Gr.Z,Object.assign({},Kr,{children:Jr.map(((t,n)=>(0,e.jsx)("div",{children:(0,e.jsxs)(eo,{children:[(0,e.jsx)(Zr,{src:t.image,alt:`Reviewer image ${n}`,width:"56",height:"56",loading:"lazy",draggable:!1}),(0,e.jsx)(ir,{as:"h3",sx:{fontSize:"14px",lineHeight:"20px",color:"white",fontWeight:"600",marginBottom:0,padding:0},children:t.name}),(0,e.jsx)(sr,{sx:{fontSize:"11px !important",color:"#E6E6F0",margin:0,padding:0},children:t.designation}),(0,e.jsx)(Qr,{src:window.chatway.images+"stars.svg",alt:"Stars"}),(0,e.jsx)(sr,{sx:{fontSize:"12px",lineHeight:"22px",fontWeight:"300 !important",color:"white",margin:0,fontStyle:"italic",paddingTop:"12px",textAlign:"left",borderTop:"1px solid #FFFFFF1A"},children:t.content})]})},n)))}))})}const no=tr.img`
    opacity: 0.6;
    margin: 0 10px;
`,ro=tr.div`
    padding-bottom: 20px;
`,oo=tr.div`
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;

    @media (max-width: 1080px) {
        transform: scale(0.8);
    }
`,io=[window.chatway.images+"client-logo/2.svg",window.chatway.images+"client-logo/1.svg?v1",window.chatway.images+"client-logo/3.svg",window.chatway.images+"client-logo/4.svg"];function ao(){return(0,e.jsxs)(ro,{children:[(0,e.jsxs)(ir,{sx:{color:"#E6E6F0",fontSize:"12px",fontWeight:400,lineHeight:"16px",paddingBottom:"16px"},children:["Trusted by"," ",(0,e.jsx)("strong",{style:{color:"#ffffffd4"},children:"40,000+"})," ","Businesses Worldwide 🚀"]}),(0,e.jsx)(oo,{children:io.map(((t,n)=>(0,e.jsx)(no,{src:t,alt:`Client logo ${n}`,loading:"lazy",draggable:!1},n)))})]})}const so=tr.aside`
    background-color: #282d3e;
    min-height: 500px;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;

    @media (max-width: 850px) {
        min-height: 400px;
    }
`,lo=tr.div`
    padding: 40px 0 10px 0;

    @media (min-height: 900px) {
        padding: 50px 0 30px 0;
    }
`;function co(){return(0,e.jsxs)(so,{children:[(0,e.jsxs)(lo,{children:[(0,e.jsxs)(sr,{sx:{color:"rgba(255, 255, 255, 0.8)",fontSize:"14px",lineHeight:"19px"},children:["Over"," ",(0,e.jsx)(sr,{as:"span",sx:{color:"#fff",fontWeight:"600 !important",fontSize:"18px !important",display:"inline-block"},children:"1,000+"})," ","Five-Star Reviews:"]}),(0,e.jsx)(to,{})]}),(0,e.jsx)(ao,{})]})}const uo=tr("div")`
    display: flex;
    flex-direction: column;
    justify-content: center;
    column-gap: 30px;
    padding: 32px;
`,po=tr("div")`
    max-width: 348px;
    margin: 0 auto;
    width: 100%;
    position: relative;
`,fo=t=>(0,e.jsx)(uo,{children:(0,e.jsx)(po,{children:t.children})}),ho=tr.div((e=>`\n        position: absolute;\n        ${e.y}: 0;\n        ${e.x}: 0;\n        z-index: -1;\n        \n        svg {\n            display: block\n        }\n\n        @media (max-width: 768px) {\n            display: none;\n        }\n    `));function mo(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",fill:"none",viewBox:"0 0 16 17",children:(0,e.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.333",d:"m8.883 7.617-5.256 5.256m.567-3.815L1.619 8.45a.372.372 0 0 1-.177-.624l2.047-2.048a.74.74 0 0 1 .52-.217l2.308-.02m2.908-2.642A16.7 16.7 0 0 1 13.6 7.275m-6.16 5.03.608 2.575a.372.372 0 0 0 .624.178l2.048-2.047a.74.74 0 0 0 .217-.52l.02-2.309m3.084-4.115.6-2.89a1.115 1.115 0 0 0-1.319-1.32l-2.89.601a4.46 4.46 0 0 0-2.246 1.213L5.815 6.042a5.95 5.95 0 0 0-1.679 3.344l-.008.055a2.584 2.584 0 0 0 2.931 2.93l.054-.008a5.95 5.95 0 0 0 3.344-1.68l2.371-2.37a4.46 4.46 0 0 0 1.214-2.246"})})}function go(){return(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"19",fill:"none",viewBox:"0 0 18 19",children:[(0,e.jsx)("rect",{width:"18",height:"18",y:"0.5",fill:"#fff",rx:"9"}),(0,e.jsx)("path",{stroke:"#0446DE",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M12.334 7 7.75 11.583 5.667 9.5"})]})}const vo=tr.div`
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    row-gap: 20px;
    min-height: var(--min-height);
    padding: 16px;
`,yo=tr.div`
    width: 890px;
    margin: 0 auto;
    @media (max-width: 1160px) {
        width: 800px;
    }

    @media (max-width: 1080px) {
        width: 700px;
    }

    @media (max-width: 850px) {
        width: 100%;
    }

    @media (max-height: 800px) and (max-width: 1281px) and (min-width: 850px) {
        transform: scale(0.92);
        transform-origin: top;
        margin-bottom: -30px;
    }
`,bo=tr.main`
    display: grid;
    grid-template-columns: 1fr 400px;
    align-self: center;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;

    @media (max-width: 1160px) {
        width: 800px;
        grid-template-columns: 1fr 350px;
    }

    @media (max-width: 1080px) {
        width: 700px;
        grid-template-columns: 1fr 350px;
    }

    @media (max-width: 850px) {
        width: 100%;
        grid-template-columns: 1fr;
    }
`,wo=tr.div`
    position: relative;
    display: inline-block;
`,xo=tr.div`
    position: absolute;
    bottom: calc(100% + 8px);
    color: #282d3e;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background: #ffffff;
    font-size: 12px;
    z-index: 9999;
    transition: opacity 0.2s ease;
    display: ${e=>{let{visible:t}=e;return t?"block":"none"}};
    pointer-events: none;
    transform: translateX(-50%);
    width: 250px;
    word-wrap: break-word;
    left: ${e=>{let{positionLeft:t}=e;return t}}px;
`,So=tr.div`
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 10px;
    height: 8px;
    background: white;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
`,ko=n=>{let{content:r,children:o}=n;const[i,a]=(0,t.useState)(!1),[s,l]=(0,t.useState)(0),c=(0,t.useRef)(null);return(0,t.useEffect)((()=>{if(i&&c.current){const e=c.current.getBoundingClientRect().width/2;l(e)}}),[i]),(0,e.jsxs)(wo,{ref:c,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[o,(0,e.jsxs)(xo,{visible:i,positionLeft:s,children:[r,(0,e.jsx)(So,{})]})]})},jo=tr.div`
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
`,Eo=tr.div`
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #fff;
    background-color: #0443d4;

    span {
        font-weight: 400;
    }
`,Oo=tr(Eo)`
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    padding-right: 10px;

    .icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.25);
    }

    .label {
        font-weight: 600 !important;
    }
`;function Co(){return(0,e.jsx)(yo,{children:(0,e.jsxs)(jo,{children:[(0,e.jsxs)(Oo,{children:[(0,e.jsx)("span",{className:"icon",children:(0,e.jsx)(mo,{})}),(0,e.jsx)("span",{className:"label",children:"Key Features:"})]}),(0,e.jsx)(ko,{content:"Install the Chatway plugin to handle chats right from your WordPress dashboard or the Chatway panel.",children:(0,e.jsxs)(Eo,{children:[(0,e.jsx)(go,{}),(0,e.jsx)("span",{children:"Manage inside & outside WordPress"})]})}),(0,e.jsx)(ko,{content:"Automatically sync logged in users data like email, ecommerce data orders, cart details, and more to personalize every conversation with real-time data.",children:(0,e.jsxs)(Eo,{children:[(0,e.jsx)(go,{}),(0,e.jsx)("span",{children:"Sync your visitors' data"})]})}),(0,e.jsx)(ko,{content:"Chat on the go with our mobile apps, available on both the App Store and Google Play.",children:(0,e.jsxs)(Eo,{children:[(0,e.jsx)(go,{}),(0,e.jsx)("span",{children:"Android & iOS apps"})]})})]})})}const Po=()=>{(e=>{const t=new CustomEvent("hideToast",{detail:{id:void 0}});window.dispatchEvent(t)})()},To=(e,t)=>function(e){const t=new CustomEvent("showToast",{detail:{message:e,type:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",duration:arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3}});window.dispatchEvent(t)}(e,"error",t),Lo=window.wp.apiFetch;var _o=n.n(Lo);function Ro(e){return _o()({path:window.chatway.internalEndpoint+"/user/save",method:"POST",data:e})}const Mo=function(e,t){return function(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,o=!n;let i;if(l(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=Z;let s,u={},p=v(e.routes,i,void 0,u),f=e.basename||"/",h=a({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),g=null,b=new Set,w=null,x=null,S=null,k=null!=e.hydrationData,j=y(p,e.history.location,f),E=null;if(null==j){let t=fe(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=pe(p);j=n,E={[r.id]:t}}let O,C,P=!(j.some((e=>e.route.lazy))||j.some((e=>e.route.loader))&&null==e.hydrationData),T={historyAction:e.history.action,location:e.history.location,matches:j,initialized:P,navigation:V,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},L=r.Pop,_=!1,M=!1,D=!1,A=[],z=[],N=new Map,I=0,W=-1,F=new Map,H=new Set,B=new Map,U=new Map,$=new Map,q=!1;function Y(e){T=a({},T,e),b.forEach((e=>e(T)))}function ne(t,n){var o,i;let l,c=null!=T.actionData&&null!=T.navigation.formMethod&&be(T.navigation.formMethod)&&"loading"===T.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:c?T.actionData:null;let u=n.loaderData?ue(T.loaderData,n.loaderData,n.matches||[],n.errors):T.loaderData,d=T.blockers;d.size>0&&(d=new Map(d),d.forEach(((e,t)=>d.set(t,K))));let f=!0===_||null!=T.navigation.formMethod&&be(T.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);s&&(p=s,s=void 0),M||L===r.Pop||(L===r.Push?e.history.push(t,t.state):L===r.Replace&&e.history.replace(t,t.state)),Y(a({},n,{actionData:l,loaderData:u,historyAction:L,location:t,initialized:!0,navigation:V,revalidation:"idle",restoreScrollPosition:Ie(t,n.matches||T.matches),preventScrollReset:f,blockers:d})),L=r.Pop,_=!1,M=!1,D=!1,A=[],z=[]}async function re(t,n,o){C&&C.abort(),C=null,L=t,M=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(w&&S){let n=Ne(e,t);w[n]=S()}}(T.location,T.matches),_=!0===(o&&o.preventScrollReset);let l=s||p,c=o&&o.overrideNavigation,d=y(l,n,f);if(!d){let e=fe(404,{pathname:n.pathname}),{matches:t,route:r}=pe(l);return ze(),void ne(n,{matches:t,loaderData:{},errors:{[r.id]:e}})}if(T.initialized&&!D&&(g=n,(h=T.location).pathname===g.pathname&&h.search===g.search&&(""===h.hash?""!==g.hash:h.hash===g.hash||""!==g.hash))&&!(o&&o.submission&&be(o.submission.formMethod)))return void ne(n,{matches:d});var h,g;C=new AbortController;let v,b,x=ae(e.history,n,C.signal,o&&o.submission);if(o&&o.pendingError)b={[de(d).route.id]:o.pendingError};else if(o&&o.submission&&be(o.submission.formMethod)){let e=await async function(e,t,n,o,a){void 0===a&&(a={}),me();let s,l=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,n);Y({navigation:l});let c=ke(o,t);if(c.route.action||c.route.lazy){if(s=await ie("action",e,c,o,u,i,f),e.signal.aborted)return{shortCircuited:!0}}else s={type:m.error,error:fe(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(ye(s)){let e;return e=a&&null!=a.replace?a.replace:s.location===T.location.pathname+T.location.search,await se(T,s,{submission:n,replace:e}),{shortCircuited:!0}}if(ve(s)){let e=de(o,c.route.id);return!0!==(a&&a.replace)&&(L=r.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:s.error}}}if(ge(s))throw fe(400,{type:"defer-action"});return{pendingActionData:{[c.route.id]:s.data}}}(x,n,o.submission,d,{replace:o.replace});if(e.shortCircuited)return;v=e.pendingActionData,b=e.pendingActionError,c=Ee(n,o.submission),x=new Request(x.url,{signal:x.signal})}let{shortCircuited:k,loaderData:j,errors:E}=await async function(t,n,r,o,i,l,c,u,d){let h=o||Ee(n,i),m=i||l||je(h),g=s||p,[v,y]=te(e.history,T,r,m,n,D,A,z,B,H,g,f,u,d);if(ze((e=>!(r&&r.some((t=>t.route.id===e)))||v&&v.some((t=>t.route.id===e)))),0===v.length&&0===y.length){let e=_e();return ne(n,a({matches:r,loaderData:{},errors:d||null},u?{actionData:u}:{},e?{fetchers:new Map(T.fetchers)}:{})),{shortCircuited:!0}}if(!M){y.forEach((e=>{let t=T.fetchers.get(e.key),n=Oe(void 0,t?t.data:void 0);T.fetchers.set(e.key,n)}));let e=u||T.actionData;Y(a({navigation:h},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},y.length>0?{fetchers:new Map(T.fetchers)}:{}))}W=++I,y.forEach((e=>{N.has(e.key)&&Te(e.key),e.controller&&N.set(e.key,e.controller)}));let b=()=>y.forEach((e=>Te(e.key)));C&&C.signal.addEventListener("abort",b);let{results:w,loaderResults:x,fetcherResults:S}=await le(T.matches,r,v,y,t);if(t.signal.aborted)return{shortCircuited:!0};C&&C.signal.removeEventListener("abort",b),y.forEach((e=>N.delete(e.key)));let k=he(w);if(k)return await se(T,k,{replace:c}),{shortCircuited:!0};let{loaderData:j,errors:E}=ce(T,r,v,x,d,y,S,U);U.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&U.delete(t)}))}));let O=_e(),P=Re(W);return a({loaderData:j,errors:E},O||P||y.length>0?{fetchers:new Map(T.fetchers)}:{})}(x,n,d,c,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,v,b);k||(C=null,ne(n,a({matches:d},v?{actionData:v}:{},{loaderData:j,errors:E})))}function oe(e){return T.fetchers.get(e)||G}async function se(o,i,s){let{submission:c,replace:u,isFetchActionRedirect:p}=void 0===s?{}:s;i.revalidate&&(D=!0);let h=d(o.location,i.location,a({_isRedirect:!0},p?{_isFetchActionRedirect:!0}:{}));if(l(h,"Expected a location on the redirect navigation"),J.test(i.location)&&n){let n=e.history.createURL(i.location),r=null==R(n.pathname,f);if(t.location.origin!==n.origin||r)return void(u?t.location.replace(i.location):t.location.assign(i.location))}C=null;let m=!0===u?r.Replace:r.Push,g=c||je(o.navigation);if(X.has(i.status)&&g&&be(g.formMethod))await re(m,h,{submission:a({},g,{formAction:i.location}),preventScrollReset:_});else if(p)await re(m,h,{overrideNavigation:Ee(h),fetcherSubmission:g,preventScrollReset:_});else{let e=Ee(h,g);await re(m,h,{overrideNavigation:e,preventScrollReset:_})}}async function le(t,n,r,o,a){let s=await Promise.all([...r.map((e=>ie("loader",a,e,n,u,i,f))),...o.map((t=>t.matches&&t.match&&t.controller?ie("loader",ae(e.history,t.path,t.controller.signal),t.match,t.matches,u,i,f):{type:m.error,error:fe(404,{pathname:t.path})}))]),l=s.slice(0,r.length),c=s.slice(r.length);return await Promise.all([we(t,r,l,l.map((()=>a.signal)),!1,T.loaderData),we(t,o.map((e=>e.match)),c,o.map((e=>e.controller?e.controller.signal:null)),!0)]),{results:s,loaderResults:l,fetcherResults:c}}function me(){D=!0,A.push(...ze()),B.forEach(((e,t)=>{N.has(t)&&(z.push(t),Te(t))}))}function Se(e,t,n){let r=de(T.matches,t);Pe(e),Y({errors:{[r.route.id]:n},fetchers:new Map(T.fetchers)})}function Pe(e){let t=T.fetchers.get(e);!N.has(e)||t&&"loading"===t.state&&F.has(e)||Te(e),B.delete(e),F.delete(e),H.delete(e),T.fetchers.delete(e)}function Te(e){let t=N.get(e);l(t,"Expected fetch controller: "+e),t.abort(),N.delete(e)}function Le(e){for(let t of e){let e=Ce(oe(t).data);T.fetchers.set(t,e)}}function _e(){let e=[],t=!1;for(let n of H){let r=T.fetchers.get(n);l(r,"Expected fetcher: "+n),"loading"===r.state&&(H.delete(n),e.push(n),t=!0)}return Le(e),t}function Re(e){let t=[];for(let[n,r]of F)if(r<e){let e=T.fetchers.get(n);l(e,"Expected fetcher: "+n),"loading"===e.state&&(Te(n),F.delete(n),t.push(n))}return Le(t),t.length>0}function Me(e){T.blockers.delete(e),$.delete(e)}function De(e,t){let n=T.blockers.get(e)||K;l("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(T.blockers);r.set(e,t),Y({blockers:r})}function Ae(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===$.size)return;$.size>1&&c(!1,"A router only supports one blocker at a time");let o=Array.from($.entries()),[i,a]=o[o.length-1],s=T.blockers.get(i);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function ze(e){let t=[];return U.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),U.delete(r))})),t}function Ne(e,t){if(x){let n=x(e,t.map((e=>function(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}(e,T.loaderData))));return n||e.key}return e.key}function Ie(e,t){if(w){let n=Ne(e,t),r=w[n];if("number"==typeof r)return r}return null}return O={get basename(){return f},get state(){return T},get routes(){return p},initialize:function(){return g=e.history.listen((t=>{let{action:n,location:r,delta:o}=t;if(q)return void(q=!1);c(0===$.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Ae({currentLocation:T.location,nextLocation:r,historyAction:n});return i&&null!=o?(q=!0,e.history.go(-1*o),void De(i,{state:"blocked",location:r,proceed(){De(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(o)},reset(){let e=new Map(T.blockers);e.set(i,K),Y({blockers:e})}})):re(n,r)})),T.initialized||re(r.Pop,T.location),O},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,n){if(w=e,S=t,x=n||null,!k&&T.navigation===V){k=!0;let e=Ie(T.location,T.matches);null!=e&&Y({restoreScrollPosition:e})}return()=>{w=null,S=null,x=null}},navigate:async function t(n,o){if("number"==typeof n)return void e.history.go(n);let i=Q(T.location,T.matches,f,h.v7_prependBasename,n,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:s,submission:l,error:c}=ee(h.v7_normalizeFormMethod,!1,i,o),u=T.location,p=d(T.location,s,o&&o.state);p=a({},p,e.history.encodeLocation(p));let m=o&&null!=o.replace?o.replace:void 0,g=r.Push;!0===m?g=r.Replace:!1===m||null!=l&&be(l.formMethod)&&l.formAction===T.location.pathname+T.location.search&&(g=r.Replace);let v=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,y=Ae({currentLocation:u,nextLocation:p,historyAction:g});if(!y)return await re(g,p,{submission:l,pendingError:c,preventScrollReset:v,replace:o&&o.replace});De(y,{state:"blocked",location:p,proceed(){De(y,{state:"proceeding",proceed:void 0,reset:void 0,location:p}),t(n,o)},reset(){let e=new Map(T.blockers);e.set(y,K),Y({blockers:e})}})},fetch:function(t,n,r,c){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");N.has(t)&&Te(t);let d=s||p,m=Q(T.location,T.matches,f,h.v7_prependBasename,r,n,null==c?void 0:c.relative),g=y(d,m,f);if(!g)return void Se(t,n,fe(404,{pathname:m}));let{path:v,submission:b,error:w}=ee(h.v7_normalizeFormMethod,!0,m,c);if(w)return void Se(t,n,w);let x=ke(g,v);_=!0===(c&&c.preventScrollReset),b&&be(b.formMethod)?async function(t,n,r,o,c,d){if(me(),B.delete(t),!o.route.action&&!o.route.lazy){let e=fe(405,{method:d.formMethod,pathname:r,routeId:n});return void Se(t,n,e)}let h=function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}(d,T.fetchers.get(t));T.fetchers.set(t,h),Y({fetchers:new Map(T.fetchers)});let m=new AbortController,g=ae(e.history,r,m.signal,d);N.set(t,m);let v=await ie("action",g,o,c,u,i,f);if(g.signal.aborted)return void(N.get(t)===m&&N.delete(t));if(ye(v)){N.delete(t),H.add(t);let e=Oe(d);return T.fetchers.set(t,e),Y({fetchers:new Map(T.fetchers)}),se(T,v,{submission:d,isFetchActionRedirect:!0})}if(ve(v))return void Se(t,n,v.error);if(ge(v))throw fe(400,{type:"defer-action"});let b=T.navigation.location||T.location,w=ae(e.history,b,m.signal),x=s||p,S="idle"!==T.navigation.state?y(x,T.navigation.location,f):T.matches;l(S,"Didn't find any matches after fetcher action");let k=++I;F.set(t,k);let j=Oe(d,v.data);T.fetchers.set(t,j);let[E,O]=te(e.history,T,S,d,b,D,A,z,B,H,x,f,{[o.route.id]:v.data},void 0);O.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=T.fetchers.get(t),r=Oe(void 0,n?n.data:void 0);T.fetchers.set(t,r),N.has(t)&&Te(t),e.controller&&N.set(t,e.controller)})),Y({fetchers:new Map(T.fetchers)});let P=()=>O.forEach((e=>Te(e.key)));m.signal.addEventListener("abort",P);let{results:_,loaderResults:R,fetcherResults:M}=await le(T.matches,S,E,O,w);if(m.signal.aborted)return;m.signal.removeEventListener("abort",P),F.delete(t),N.delete(t),O.forEach((e=>N.delete(e.key)));let $=he(_);if($)return se(T,$);let{loaderData:q,errors:X}=ce(T,T.matches,E,R,void 0,O,M,U);if(T.fetchers.has(t)){let e=Ce(v.data);T.fetchers.set(t,e)}let V=Re(k);"loading"===T.navigation.state&&k>W?(l(L,"Expected pending action"),C&&C.abort(),ne(T.navigation.location,{matches:S,loaderData:q,errors:X,fetchers:new Map(T.fetchers)})):(Y(a({errors:X,loaderData:ue(T.loaderData,q,S,X)},V||O.length>0?{fetchers:new Map(T.fetchers)}:{})),D=!1)}(t,n,v,x,g,b):(B.set(t,{routeId:n,path:v}),async function(t,n,r,o,a,s){let c=T.fetchers.get(t),d=Oe(s,c?c.data:void 0);T.fetchers.set(t,d),Y({fetchers:new Map(T.fetchers)});let p=new AbortController,h=ae(e.history,r,p.signal);N.set(t,p);let m=await ie("loader",h,o,a,u,i,f);if(ge(m)&&(m=await xe(m,h.signal,!0)||m),N.get(t)===p&&N.delete(t),h.signal.aborted)return;if(ye(m))return H.add(t),void await se(T,m);if(ve(m)){let e=de(T.matches,n);return T.fetchers.delete(t),void Y({fetchers:new Map(T.fetchers),errors:{[e.route.id]:m.error}})}l(!ge(m),"Unhandled fetcher deferred data");let g=Ce(m.data);T.fetchers.set(t,g),Y({fetchers:new Map(T.fetchers)})}(t,n,v,x,g,b))},revalidate:function(){me(),Y({revalidation:"loading"}),"submitting"!==T.navigation.state&&("idle"!==T.navigation.state?re(L||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation}):re(T.historyAction,T.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:oe,deleteFetcher:Pe,dispose:function(){g&&g(),b.clear(),C&&C.abort(),T.fetchers.forEach(((e,t)=>Pe(t))),T.blockers.forEach(((e,t)=>Me(t)))},getBlocker:function(e,t){let n=T.blockers.get(e)||K;return $.get(e)!==t&&$.set(e,t),n},deleteBlocker:Me,_internalFetchControllers:N,_internalActiveDeferreds:U,_internalSetRoutes:function(e){u={},s=v(e,i,void 0,u)}},O}({basename:void 0,future:st({},void 0,{v7_prependBasename:!0}),history:(n={window:void 0},void 0===n&&(n={}),h((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=f(e.location.hash.substr(1));return d("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:p(t))}),(function(e,t){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),n)),hydrationData:vt(),routes:e,mapRouteProperties:at}).initialize();var n}(function e(t,n){void 0===n&&(n=[]);let r=[];return o.Children.forEach(t,((t,i)=>{if(!o.isValidElement(t))return;let a=[...n,i];if(t.type===o.Fragment)return void r.push.apply(r,e(t.props.children,a));t.type!==rt&&l(!1),t.props.index&&t.props.children&&l(!1);let s={id:t.props.id||a.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(s.children=e(t.props.children,a)),r.push(s)})),r}((0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(rt,{path:"/",element:(0,e.jsx)((()=>(0,e.jsx)(Nr,{children:(0,e.jsxs)("div",{children:[(0,e.jsx)(ho,{x:"left",y:"top",children:(0,e.jsx)(Br,{})}),(0,e.jsxs)(vo,{children:[(0,e.jsx)(Yr,{}),(0,e.jsxs)(yo,{className:"main-container",children:[(0,e.jsxs)(bo,{children:[(0,e.jsx)(fo,{children:(0,e.jsx)(nt,{})}),(0,e.jsx)(co,{})]}),(0,e.jsx)(Co,{})]}),(0,e.jsx)(Vr,{})]}),(0,e.jsx)(ho,{x:"right",y:"bottom",children:(0,e.jsx)(Ur,{})}),(0,e.jsx)(Hr,{})]})})),{}),children:[(0,e.jsx)(rt,{path:"/",element:(0,e.jsx)(tt,{to:"register"})}),(0,e.jsx)(rt,{path:"register",element:(0,e.jsx)((function(){const[n,r]=(0,t.useState)({}),[o,i]=(0,t.useState)({email:""}),{state:a}=Ke(),s=Je(),[l,c]=(0,t.useState)({}),u=(0,t.useRef)(null),[d,p]=(0,t.useState)(!1);let f=Ot();(0,t.useEffect)((()=>{(0,Ct.isEmpty)(s)||(r(s),p(!1))}),[s]);const h=(e,t)=>{p(!1),i((n=>(n[e]=t,Object.assign({},n)))),(0,Ct.isEmpty)(t)&&r({}),(0,Ct.isEmpty)(t)||_r(t)||r({field:"email",message:"Please enter a valid email address",type:"error"})},m=(0,t.useMemo)((()=>!(0,Ct.isEmpty)(n)||(0,Ct.isEmpty)(o.email)||!_r(o.email)),[n,o]);return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(rr,{}),(0,e.jsx)(ir,{as:"h1",children:"Sign up for Free"}),(0,e.jsx)(sr,{sx:{marginBottom:"24px"},children:"Add live chat to your WordPress website"}),(0,e.jsxs)(St,{method:"post",onSubmit:e=>{e.preventDefault();let t=!0;u.current.onSubmit(o.email,(()=>{t=!1,p(!0)})),(t||d)&&f(e.currentTarget)},children:[(0,e.jsx)(Lr,{value:o.email,onChange:c,acceptSuggesation:i,ref:u,children:(0,e.jsx)(dr,{isFocused:!0,onChange:e=>h("email",e),onBlur:e=>h("email",e),name:"email",value:o.email,errorMessage:mr(n),label:"Enter Your Email",error:!(0,Ct.isEmpty)(n),clearError:()=>r({}),onKeyDown:e=>{9!==e.keyCode&&13!==e.keyCode&&32!==e.keyCode&&39!==e.keyCode||"auto-fill"!==l.type||(e.preventDefault(),e.stopPropagation(),i({email:l.outValue}),c({}))},onClick:e=>{"auto-fill"===l.type&&(e.preventDefault(),e.stopPropagation(),i({email:l.outValue}),c({}))}})}),(0,e.jsx)(hr,{disabled:m,loading:"submitting"===a,children:"Create Your Live Chat"}),(0,e.jsxs)(sr,{as:"div",sx:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",columnGap:"4px",marginTop:"20px",color:"#73738a"},children:["Already have an account?"," ",(0,e.jsx)(yr,{onMouseDown:e=>e.preventDefault(),to:"/login",children:"Sign in"})]})]})]})}),{}),action:function(e){let{request:t}=e;return n=this,r=void 0,i=function*(){Po(),t.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8");const e=(yield t.formData()).get("email")||"";if((0,Ct.isEmpty)(e))return{field:"email",type:"error",message:"You must fill this field"};try{const t=yield function(e){const t=window.chatway.remoteEndpoint+"/wordpress/register",n=new FormData;return n.append("email",e),n.append("domain",location.origin),new Promise(((e,r)=>{fetch(t,{method:"POST",headers:{Accept:"application/json"},redirect:"follow",body:n}).then((e=>{return t=this,n=void 0,o=function*(){if(!e.ok){const t=yield e.json();throw new Error(t.message)}return e.json()},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}l((o=o.apply(t,n||[])).next())}));var t,n,r,o})).then(e).catch(r)}))}(e);if(200==(yield Ro({user_identifier:t.data.id,token:t.data.attributes.access_token})).code)return window.location=window.chatway.dashboardUrl,null}catch(e){const t=e.message||"Something went wrong";To(t,5e3)}return null},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{l(i.next(e))}catch(e){t(e)}}function s(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,s)}l((i=i.apply(n,r||[])).next())}));var n,r,o,i}}),(0,e.jsx)(rt,{path:"login",element:(0,e.jsx)((function(){const[n,r]=(0,t.useState)({email:{},password:{}}),[o,i]=(0,t.useState)({email:"",password:""}),a=Je(),{state:s}=Ke();(0,t.useEffect)((()=>{(0,Ct.isEmpty)(a)||r(a)}),[a]);const l=(e,t)=>{i((n=>(n[e]=t,Object.assign({},n)))),(0,Ct.isEmpty)(t)&&r({email:{},password:{}}),"email"!==e||(0,Ct.isEmpty)(t)||_r(t)||r((t=>(t[e]={field:"email",message:"Please enter a valid email address",type:"error"},Object.assign({},t))))},c=(0,t.useMemo)((()=>!(0,Ct.isEmpty)(n.email)||!(0,Ct.isEmpty)(n.password)||(0,Ct.isEmpty)(o.email)||(0,Ct.isEmpty)(o.password)||!_r(o.email)),[n,o]);return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(rr,{}),(0,e.jsx)(ir,{as:"h1",sx:{marginBottom:"24px"},children:"Sign in to Chatway"}),(0,e.jsxs)(St,{method:"post",autoComplete:"off",children:[(0,e.jsx)("input",{"aria-label":"Email address",type:"text",name:"fake-email",autoComplete:"username",style:{display:"none"}}),(0,e.jsx)("input",{"aria-label":"Password",type:"password",name:"fake-password",autoComplete:"current-password",style:{display:"none"}}),(0,e.jsxs)("div",{style:{display:"grid",gap:"34px"},children:[(0,e.jsx)(dr,{isFocused:!0,onChange:e=>l("email",e),onBlur:e=>l("email",e),value:o.email,name:"email",errorMessage:mr(n.email),label:"Enter Your Email",error:!(0,Ct.isEmpty)(n.email),clearError:()=>r((e=>Object.assign(Object.assign({},e),{email:{}})))}),(0,e.jsx)(Ar,{onChange:e=>l("password",e),onBlur:e=>l("password",e),value:o.password,name:"password",errorMessage:mr(n.password),label:"Your Password",error:!(0,Ct.isEmpty)(n.password),clearError:()=>r((e=>Object.assign(Object.assign({},e),{password:{}})))})]}),(0,e.jsx)(hr,{loading:"submitting"===s,disabled:c,children:"Sign In"}),(0,e.jsxs)(sr,{as:"div",sx:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",columnGap:"4px",marginTop:"20px",color:"#73738a"},children:["Do not have an account?"," ",(0,e.jsx)(yr,{onMouseDown:e=>e.preventDefault(),to:"/register",children:"Register"})]})]})]})}),{}),action:function(e){let{request:t}=e;return n=this,r=void 0,i=function*(){Po(),t.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8");const e=yield t.formData(),n=e.get("email")||"",r=e.get("password")||"",o={};if((0,Ct.isEmpty)(n)&&(o.email={field:"email",type:"error",message:"You must fill this field"}),(0,Ct.isEmpty)(r)&&(o.password={field:"password",type:"error",message:"You must fill this field"}),!(0,Ct.isEmpty)(o))return o;try{const e=yield function(e){let{email:t,password:n}=e;const r=window.chatway.remoteEndpoint+"/wordpress/login",o=new FormData;return o.append("email",t),o.append("password",n),o.append("domain",location.origin),new Promise(((e,t)=>{fetch(r,{method:"POST",headers:{Accept:"application/json"},redirect:"follow",body:o}).then((e=>{return t=this,n=void 0,o=function*(){if(!e.ok){const t=yield e.json();return Promise.reject(t)}return e.json()},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}l((o=o.apply(t,n||[])).next())}));var t,n,r,o})).then(e).catch(t)}))}({email:n,password:r});if(200==(yield Ro({user_identifier:e.data.id,token:e.data.attributes.access_token})).code)return window.location=window.chatway.dashboardUrl,null}catch(o){const e=o.message||"Something went wrong";To(e,1e4)}return null},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{l(i.next(e))}catch(e){t(e)}}function s(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,s)}l((i=i.apply(n,r||[])).next())}));var n,r,o,i}}),(0,e.jsx)(rt,{path:"*",element:(0,e.jsx)(tt,{to:"register"})})]})}))),Do=Mo,Ao="chatway-portal-element";document.addEventListener("DOMContentLoaded",(()=>{const n=document.getElementById("chatway-wp-plugin-root");n&&("function"==typeof t.createRoot?(0,t.createRoot)(n).render((0,e.jsx)(t.StrictMode,{children:(0,e.jsx)(Qe,{router:Do})})):"function"==typeof t.render&&(0,t.render)((0,e.jsx)(t.StrictMode,{children:(0,e.jsx)(Qe,{router:Do})}),n))}));const zo=window.wp.hooks;function No(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Io(e,t){return Io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Io(e,t)}function Wo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Io(e,t)}function Fo(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Ho=i().createContext(null);var Bo=function(e){return e.scrollTop},Uo="unmounted",$o="exited",qo="entering",Yo="entered",Xo="exiting",Vo=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=$o,r.appearStatus=qo):o=Yo:o=t.unmountOnExit||t.mountOnEnter?Uo:$o,r.state={status:o},r.nextCallback=null,r}Wo(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Uo?{status:$o}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==qo&&n!==Yo&&(t=qo):n!==qo&&n!==Yo||(t=Xo)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===qo){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Wr().findDOMNode(this);n&&Bo(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$o&&this.setState({status:Uo})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Wr().findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:qo},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Yo},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:Yo},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Wr().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Xo},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:$o},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:$o},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Wr().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Uo)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,No(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i().createElement(Ho.Provider,{value:null},"function"==typeof n?n(e,r):i().cloneElement(i().Children.only(n),r))},t}(i().Component);function Go(){}Vo.contextType=Ho,Vo.propTypes={},Vo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Go,onEntering:Go,onEntered:Go,onExit:Go,onExiting:Go,onExited:Go},Vo.UNMOUNTED=Uo,Vo.EXITED=$o,Vo.ENTERING=qo,Vo.ENTERED=Yo,Vo.EXITING=Xo;const Ko=Vo;var Jo=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Fo(n.className,r):n.setAttribute("class",Fo(n.className&&n.className.baseVal||"",r)));var n,r}))},Zo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Wo(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Bo(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&Jo(e,r),o&&Jo(e,o),i&&Jo(e,i)},n.render=function(){var e=this.props,t=(e.classNames,No(e,["classNames"]));return i().createElement(Ko,Pt({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i().Component);Zo.defaultProps={classNames:""},Zo.propTypes={};const Qo=Zo,ei=tr.div`
    background-color: #121422cc;
    position: fixed;
    direction: ltr;
    top: 32px;
    z-index: 9999;
    width: calc(100% - var(--wp-sidebar-width));
    height: calc(100vh - 32px);
    left: var(--wp-sidebar-width);
    display: flex;
    align-items: center;
    justify-content: center;

    &.chatway-modal-enter {
        opacity: 0;

        > div {
            transform: translateY(40px);
            opacity: 0;
        }
    }

    &.chatway-modal-enter-active {
        opacity: 1;
        transition: opacity 200ms;

        > div {
            transform: translateY(0);
            opacity: 1;
            transition-delay: 200ms;
            transition:
                transform 400ms,
                opacity 400ms;
        }
    }

    &.chatway-modal-exit {
        opacity: 1;

        > div {
            transform: translateY(0);
            opacity: 1;
        }
    }

    &.chatway-modal-exit-active {
        transition: opacity 500ms;
        opacity: 0;
        transition-delay: 300ms;

        > div {
            transform: translateY(40px);
            opacity: 0;
            transition:
                transform 400ms,
                opacity 400ms;
        }
    }
`,ti=tr.div((e=>Object.assign({boxShadow:"0px 24px 48px -4.875px #282D3E",backgroundColor:"#fff",borderRadius:"8px",width:"424px"},e.sx?e.sx:{}))),ni=tr.div`
    padding: 16px 8px 8px 16px;
    border-bottom: 1px solid #e6e6f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;

    .modal-heading {
        color: #282d3e;
        line-height: 25px;
        font-weight: 600;
        margin: 0;
        padding: 0;
        font-size: 18px;
        position: relative;
        display: inline-flex;
        gap: 8px;
        align-items: center;

        &::before {
            background: linear-gradient(180deg, #f69d01 0%, #f65901 100%);
            width: 4px;
            height: 16px;
            content: '';
            display: block;
            border-radius: 1px;
        }
    }

    .close-btn {
        color: #73738a;
        background-color: transparent;
        border: 0;
        width: 18px;
        padding: 0;
        height: 18px;
        cursor: pointer;
        transition: color 0.2s;
        margin-top: -8px;

        &:hover {
            color: #000;
        }
    }
`,ri=tr.div`
    font-size: 16px;
    font-weight: 400;
    color: #282d3e;
    padding: 16px;
    min-height: 130px;
    line-height: 24px;

    strong {
        font-weight: 600;
    }
`,oi=tr.div`
    padding: 16px;
    display: flex;
    justify-content: flex-end;
    column-gap: 8px;
`,ii=tr.button((e=>Object.assign(Object.assign(Object.assign(Object.assign({padding:"6px 10px",lineHeight:"20px",borderRadius:"4px",fontSize:"14px",fontWeight:400,cursor:"pointer",transition:"background-color .2s, color .2s",border:0,userSelect:"none",display:"inline-block"},"red"===e.variant?{backgroundColor:"#FF424D",color:"#fff","&:hover":{backgroundColor:"#d5303a"}}:{}),"gray"===e.variant?{backgroundColor:"#F6F6F8",color:"#73738a","&:hover":{backgroundColor:"#eaeaea",color:"#3c3c3c"}}:{}),e.sx?e.sx:{}),e.loading?{pointerEvents:"none",filter:"grayscale(1)"}:{})));function ai(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:(0,e.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.33",d:"M12 4l-8 8M4 4l8 8"})})}const si=n=>{const r=(0,t.useRef)(null),o=(0,t.useRef)(null),i=(0,t.useCallback)((e=>{if(r.current&&"function"==typeof n.onOuterClick){const{pageX:t,pageY:o}=e,{x:i,y:a,width:s,height:l}=r.current.getBoundingClientRect();(t<i||t>i+s||o<a||o>a+l)&&n.onOuterClick()}}),[]);return(0,t.useEffect)((()=>(window.addEventListener("click",i),r.current||window.removeEventListener("click",i),()=>{window.removeEventListener("click",i)})),[r,n.visible]),(0,e.jsx)(Qo,{in:n.visible,timeout:600,classNames:"chatway-modal",unmountOnExit:!0,nodeRef:o,children:(0,e.jsx)(ei,{ref:o,className:"chatway-overlay",children:(0,e.jsx)(ti,{ref:r,children:n.children})})})};si.Header=function(t){return(0,e.jsxs)(ni,{children:[(0,e.jsx)("h2",{className:"modal-heading",children:t.children}),(0,e.jsx)("button",{className:"close-btn",onClick:()=>{"function"==typeof t.onClose&&t.onClose()},children:(0,e.jsx)(ai,{})})]})},si.Body=function(t){return(0,e.jsx)(ri,{children:t.children})},si.Footer=function(t){return(0,e.jsx)(oi,{children:t.children})},si.Button=function(t){return(0,e.jsx)(ii,{variant:t.variant,sx:t.sx,loading:t.loading,onClick:()=>{"function"==typeof t.onClick&&t.onClick()},children:t.loading?"loading...":t.children})};const li=si;function ci(){return e=this,t=void 0,r=function*(){const e=window.chatway.remoteEndpoint+"/wordpress/logout",t=`Bearer ${window.chatway.token}`;return yield fetch(e,{method:"POST",headers:{Authorization:t}}),_o()({path:window.chatway.internalEndpoint+"/user/logout",method:"GET"})},new((n=void 0)||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}));var e,t,n,r}document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("toplevel_page_chatway");e&&e.addEventListener("click",(e=>{if(e.target){const t=e.target.closest("a");if(t&&-1!==t.href.search("chatway-logout"))return e.preventDefault(),e.stopPropagation(),(0,zo.doAction)("chatway-logout-modal-visible",!0),!1;if(t&&-1!==t.href.search("chatway-full-screen"))return e.preventDefault(),e.stopPropagation(),queueMicrotask((()=>{window.open(window.chatway.fullScreenUrl,"_blank")})),!1;if(t&&-1!==t.href.search("chatway-need-help"))return e.preventDefault(),e.stopPropagation(),queueMicrotask((()=>{window.open(window.chatway.supportURL,"_blank")})),!1}}))}));const ui=()=>{const[n,r]=(0,t.useState)(!1),[o,i]=(0,t.useState)(!1);return(0,t.useEffect)((()=>((0,zo.addAction)("chatway-logout-modal-visible","portal-modal",r),()=>{(0,zo.removeAction)("chatway-logout-modal-visible","portal-modal")})),[]),(0,e.jsxs)(li,{visible:n,onOuterClick:()=>{o||r(!1)},children:[(0,e.jsx)(li.Header,{onClose:()=>{o||r(!1)},children:"Log Out?"}),(0,e.jsx)(li.Body,{children:"The Chatway code will be removed from your website and you'll logged out of your account. You can log in to a different account after logging out"}),(0,e.jsxs)(li.Footer,{children:[!o&&(0,e.jsx)(li.Button,{onClick:()=>r(!1),variant:"gray",children:"Cancel"}),(0,e.jsx)(li.Button,Object.assign({},o?{loading:"true"}:{},{onClick:()=>{return e=void 0,t=void 0,r=function*(){try{if(i(!0),200==(yield ci()).code)throw window.location=window.chatway.dashboardUrl,Error}catch(e){}},new((n=void 0)||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}));var e,t,n,r},variant:"red",sx:{fontWeight:"600 !important"},children:"Log Out"}))]})]})};document.addEventListener("DOMContentLoaded",(()=>{let n=document.createElement("div");n.setAttribute("id",Ao),document.body.appendChild(n),n=document.querySelector(`#${Ao}`),n&&("function"==typeof t.createRoot?(0,t.createRoot)(n).render((0,e.jsx)(t.StrictMode,{children:(0,e.jsx)(ui,{})})):"function"==typeof t.render&&(0,t.render)((0,e.jsx)(t.StrictMode,{children:(0,e.jsx)(ui,{})}),n))})),window.addEventListener("online",(()=>{document.querySelector(".chatway-dashboard")&&location.reload()})),window.addEventListener("DOMContentLoaded",(()=>{let e=document.querySelector(".chatway-dashboard-iframe");e&&(e.addEventListener("mouseenter",(()=>{document.body.style.overflow="hidden"})),e.addEventListener("mouseleave",(()=>{document.body.style.overflow="initial"})))})),window.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("wpadminbar");if(!e)return;const t=e=>{const{top:t,height:n}=e,r=n+t;let o=0;o=r<=0?0:r>=n?n:r,document.querySelector(":root").style.setProperty("--chatway-adminbar-height",`${o}px`)},n=new ResizeObserver((()=>{const n=e.getBoundingClientRect();t(n)})),r=new IntersectionObserver((e=>{e.forEach((e=>{const n=e.boundingClientRect;t(n)}))}),{threshold:[0,.25,.5,.75,1]});n.observe(e),r.observe(e)}));let di,pi=0;function fi(){var e,t,n,r,o,i,a,s,l;return i=this,a=void 0,l=function*(){const i=yield _o()({path:window.chatway.internalEndpoint+"/user/count",method:"GET"});if(200==i.code){const a=i.count;a>0?(null===(t=null===(e=document.getElementById("chatway-unread-count"))||void 0===e?void 0:e.classList)||void 0===t||t.remove("count-0"),null===(n=document.getElementById("chatway-count"))||void 0===n||(n.innerHTML=a)):null===(o=null===(r=document.getElementById("chatway-unread-count"))||void 0===r?void 0:r.classList)||void 0===o||o.add("count-0")}},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{o(l.next(e))}catch(e){t(e)}}function r(e){try{o(l.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof s?o:new s((function(e){e(o)}))).then(n,r)}o((l=l.apply(i,a||[])).next())}))}window.addEventListener("DOMContentLoaded",(()=>{di=setInterval((()=>{fi(),pi++,6==pi&&window.clearInterval(di)}),3e5)}));window.addEventListener("DOMContentLoaded",(()=>{window.addEventListener("message",(e=>{return t=void 0,n=void 0,o=function*(){if("chatway/logout_from_iframe"===e.data)try{if(200==(yield ci()).code)throw window.location=window.chatway.dashboardUrl,Error}catch(e){}},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}l((o=o.apply(t,n||[])).next())}));var t,n,r,o}))}))})()})();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists