@kindly/react-chat 2.37.1 → 2.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
13
13
  See the Apache Version 2.0 License for specific language governing permissions
14
14
  and limitations under the License.
15
15
  ***************************************************************************** */
16
- var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function c(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}var l=n(0);var u=0,d="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(e){return window.requestAnimationFrame(e)}:function(e){var t=Date.now(),n=Math.max(0,16.7-(t-u));u=t+n,setTimeout((function(){return e(u)}),n)},f=1/60*1e3,p=!0,h=!1,m=!1,g={delta:0,timestamp:0},b=["read","update","preRender","render","postRender"],v=function(e){return h=e},y=b.reduce((function(e,t){var n,r,o,a,i,s,c,l,u;return e[t]=(n=v,r=[],o=[],a=0,i=!1,s=0,c=new WeakSet,l=new WeakSet,u={cancel:function(e){var t=o.indexOf(e);c.add(e),-1!==t&&o.splice(t,1)},process:function(e){var t,d;if(i=!0,r=(t=[o,r])[0],(o=t[1]).length=0,a=r.length)for(s=0;s<a;s++)(d=r[s])(e),!0!==l.has(d)||c.has(d)||(u.schedule(d),n(!0));i=!1},schedule:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=n&&i,u=s?r:o;c.delete(e),t&&l.add(e),-1===u.indexOf(e)&&(u.push(e),s&&(a=r.length))}}),e}),{}),w=b.reduce((function(e,t){var n=y[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),h||k(),n.schedule(e,t,r),e},e}),{}),x=b.reduce((function(e,t){return e[t]=y[t].cancel,e}),{}),O=function(e){return y[e].process(g)},E=function(e){h=!1,g.delta=p?f:Math.max(Math.min(e-g.timestamp,40),1),p||(f=g.delta),g.timestamp=e,m=!0,b.forEach(O),m=!1,h&&(p=!1,d(E))},k=function(){h=!0,p=!0,m||d(E)},_=function(){return g},C=w,j=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},T=function(e){return e%1?Number(e.toFixed(5)):e},S=/(-)?(\d[\d\.]*)/g,I=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,A=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i,N={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},P=i(i({},N),{transform:j(0,1)}),M=i(i({},N),{default:1}),R=function(e){return{test:function(t){return"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},L=R("deg"),D=R("%"),B=R("px"),z=R("vh"),F=R("vw"),U=i(i({},D),{parse:function(e){return D.parse(e)/100},transform:function(e){return D.transform(100*e)}}),H=j(0,255),$=function(e){return void 0!==e.red},V=function(e){return void 0!==e.hue};var q=function(e){return function(t){if("string"!=typeof t)return t;for(var n={},r=function(e){return e.substring(e.indexOf("(")+1,e.lastIndexOf(")"))}(t).replace(/(,|\/)/g," ").split(/ \s*/),o=0;o<4;o++)n[e[o]]=void 0!==r[o]?parseFloat(r[o]):1;return n}},G=i(i({},N),{transform:function(e){return Math.round(H(e))}});function W(e,t){return e.startsWith(t)&&A.test(e)}var Y={test:function(e){return"string"==typeof e?W(e,"rgb"):$(e)},parse:q(["red","green","blue","alpha"]),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,a=void 0===o?1:o;return function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha;return"rgba("+t+", "+n+", "+r+", "+(void 0===o?1:o)+")"}({red:G.transform(t),green:G.transform(n),blue:G.transform(r),alpha:T(P.transform(a))})}},K={test:function(e){return"string"==typeof e?W(e,"hsl"):V(e)},parse:q(["hue","saturation","lightness","alpha"]),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,a=void 0===o?1:o;return function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha;return"hsla("+t+", "+n+", "+r+", "+(void 0===o?1:o)+")"}({hue:Math.round(t),saturation:D.transform(T(n)),lightness:D.transform(T(r)),alpha:T(P.transform(a))})}},X=i(i({},Y),{test:function(e){return"string"==typeof e&&W(e,"#")},parse:function(e){var t="",n="",r="";return e.length>4?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),t+=t,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),J={test:function(e){return"string"==typeof e&&A.test(e)||$(e)||V(e)},parse:function(e){return Y.test(e)?Y.parse(e):K.test(e)?K.parse(e):X.test(e)?X.parse(e):e},transform:function(e){return $(e)?Y.transform(e):V(e)?K.transform(e):e}},Q=function(e){return"number"==typeof e?0:e},Z={test:function(e){if("string"!=typeof e||!isNaN(e))return!1;var t=0,n=e.match(S),r=e.match(I);return n&&(t+=n.length),r&&(t+=r.length),t>0},parse:function(e){var t=e,n=[],r=t.match(I);r&&(t=t.replace(I,"${c}"),n.push.apply(n,r.map(J.parse)));var o=t.match(S);return o&&n.push.apply(n,o.map(N.parse)),n},createTransformer:function(e){var t=e,n=0,r=e.match(I),o=r?r.length:0;if(r)for(var a=0;a<o;a++)t=t.replace(r[a],"${c}"),n++;var i=t.match(S),s=i?i.length:0;if(i)for(a=0;a<s;a++)t=t.replace(i[a],"${n}"),n++;return function(e){for(var r=t,a=0;a<n;a++)r=r.replace(a<o?"${c}":"${n}",a<o?J.transform(e[a]):T(e[a]));return r}},getAnimatableNone:function(e){var t=Z.parse(e);return Z.createTransformer(e)(t.map(Q))}},ee=function(e){return function(t){return 1-e(1-t)}},te=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},ne=ee,re=te,oe=function(e){return function(t){return Math.pow(t,e)}},ae=function(e){return function(t){return t*t*((e+1)*t-e)}},ie=function(e){var t=ae(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}},se=function(e){return e},ce=oe(2),le=ee(ce),ue=te(ce),de=function(e){return 1-Math.sin(Math.acos(e))},fe=ee(de),pe=te(fe),he=ae(1.525),me=ee(he),ge=te(he),be=ie(1.525),ve=function(e){var t=e*e;return e<4/11?7.5625*t:e<8/11?9.075*t-9.9*e+3.4:e<.9?4356/361*t-35442/1805*e+16061/1805:10.8*e*e-20.52*e+10.72},ye=function(e){return 1-ve(1-e)},we=function(e){return e<.5?.5*(1-ve(1-2*e)):.5*ve(2*e-1)+.5},xe="undefined"!=typeof Float32Array,Oe=function(e,t){return 1-3*t+3*e},Ee=function(e,t){return 3*t-6*e},ke=function(e){return 3*e},_e=function(e,t,n){return 3*Oe(t,n)*e*e+2*Ee(t,n)*e+ke(t)},Ce=function(e,t,n){return((Oe(t,n)*e+Ee(t,n))*e+ke(t))*e};function je(e,t,n,r){var o=xe?new Float32Array(11):new Array(11),a=function(t){for(var r,a,i,s=0,c=1;10!==c&&o[c]<=t;++c)s+=.1;return--c,r=(t-o[c])/(o[c+1]-o[c]),(i=_e(a=s+.1*r,e,n))>=.001?function(t,r){for(var o=0,a=0;o<8;++o){if(0===(a=_e(r,e,n)))return r;r-=(Ce(r,e,n)-t)/a}return r}(t,a):0===i?a:function(t,r,o){var a,i,s=0;do{(a=Ce(i=r+(o-r)/2,e,n)-t)>0?o=i:r=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,s,s+.1)};!function(){for(var t=0;t<11;++t)o[t]=Ce(.1*t,e,n)}();return function(o){return e===t&&n===r?o:0===o?0:1===o?1:Ce(a(o),t,r)}}var Te={x:0,y:0,z:0},Se=function(e){return"number"==typeof e},Ie=function(e){return function(t,n,r){return void 0!==r?e(t,n,r):function(r){return e(t,n,r)}}},Ae=Ie((function(e,t,n){return Math.min(Math.max(n,e),t)})),Ne=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Pe=function(e){return Ne(e)&&e.hasOwnProperty("z")},Me=function(e,t){return Math.abs(e-t)},Re=function(e,t){if(void 0===t&&(t=Te),Se(e)&&Se(t))return Me(e,t);if(Ne(e)&&Ne(t)){var n=Me(e.x,t.x),r=Me(e.y,t.y),o=Pe(e)&&Pe(t)?Me(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}return 0},Le=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},De=function(e,t,n){return-n*e+n*t+e},Be=function(){return(Be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ze=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Fe=[X,Y,K],Ue=function(e){return Fe.find((function(t){return t.test(e)}))},He=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},$e=function(e,t){var n=Ue(e),r=Ue(t);He(e),He(t),n.transform,r.transform;var o=n.parse(e),a=r.parse(t),i=Be({},o),s=n===K?De:ze;return function(e){for(var t in i)"alpha"!==t&&(i[t]=s(o[t],a[t],e));return i.alpha=De(o.alpha,a.alpha,e),n.transform(i)}},Ve=function(e,t){return function(n){return t(e(n))}},qe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(Ve)};function Ge(e,t){return Se(e)?function(n){return De(e,t,n)}:J.test(e)?$e(e,t):Ke(e,t)}var We=function(e,t){var n=e.slice(),r=n.length,o=e.map((function(e,n){return Ge(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=o[t](e);return n}};function Ye(e){for(var t=Z.parse(e),n=t.length,r=0,o=0,a=0,i=0;i<n;i++)r||"number"==typeof t[i]?r++:void 0!==t[i].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}var Ke=function(e,t){var n=Z.createTransformer(t),r=Ye(e),o=Ye(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&(r.numNumbers,o.numNumbers),qe(We(r.parsed,o.parsed),n)};var Xe,Je=function(e){return e},Qe=function(e){return void 0===e&&(e=Je),Ie((function(t,n,r){var o=n-r,a=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?n+a:n-a}))},Ze=(Qe(),Qe(Math.sqrt),function(e,t){return t?e*(1e3/t):0}),et=(Ie((function(e,t,n){var r=t-e;return((n-e)%r+r)%r+e})),Ae(0,1),function(e){var t=e.onRead,n=e.onRender,r=e.uncachedValues,o=void 0===r?new Set:r,a=e.useCache,i=void 0===a||a;return function(e){void 0===e&&(e={});var r=s(e,[]),a={},c=[],l=!1;function u(e,t){e.startsWith("--")&&(r.hasCSSVariable=!0);var n=a[e];a[e]=t,a[e]!==n&&(-1===c.indexOf(e)&&c.push(e),l||(l=!0,C.render(d.render)))}var d={get:function(e,n){return void 0===n&&(n=!1),!n&&i&&!o.has(e)&&void 0!==a[e]?a[e]:t(e,r)},set:function(e,t){if("string"==typeof e)u(e,t);else for(var n in e)u(n,e[n]);return this},render:function(e){return void 0===e&&(e=!1),(l||!0===e)&&(n(a,r,c),l=!1,c.length=0),this}};return d}}),tt=/([a-z])([A-Z])/g,nt=function(e){return e.replace(tt,"$1-$2").toLowerCase()},rt=new Map,ot=new Map,at=["Webkit","Moz","O","ms",""],it=at.length,st="undefined"!=typeof document,ct=function(e,t){return ot.set(e,nt(t))},lt=function(e,t){void 0===t&&(t=!1);var n=t?ot:rt;return n.has(e)||(st?function(e){Xe=Xe||document.createElement("div");for(var t=0;t<it;t++){var n=at[t],r=""===n,o=r?e:n+e.charAt(0).toUpperCase()+e.slice(1);if(o in Xe.style||r){if(r&&"clipPath"===e&&ot.has(e))return;rt.set(e,o),ct(e,(r?"":"-")+nt(o))}}}(e):function(e){ct(e,e)}(e)),n.get(e)||e},ut=["","X","Y","Z"],dt=["translate","scale","rotate","skew","transformPerspective"].reduce((function(e,t){return ut.reduce((function(e,n){return e.push(t+n),e}),e)}),["x","y","z"]),ft=dt.reduce((function(e,t){return e[t]=!0,e}),{});function pt(e){return!0===ft[e]}function ht(e,t){return dt.indexOf(e)-dt.indexOf(t)}var mt=new Set(["originX","originY","originZ"]);function gt(e){return mt.has(e)}var bt=i(i({},N),{transform:Math.round}),vt={color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,size:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,rotate:L,rotateX:L,rotateY:L,rotateZ:L,scale:M,scaleX:M,scaleY:M,scaleZ:M,skew:L,skewX:L,skewY:L,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,opacity:P,originX:U,originY:U,originZ:B,zIndex:bt,fillOpacity:P,strokeOpacity:P,numOctaves:bt},yt=function(e){return vt[e]},wt=function(e,t){return t&&"number"==typeof e?t.transform(e):e},xt=new Set(["scrollLeft","scrollTop"]),Ot=new Set(["scrollLeft","scrollTop","transform"]),Et={x:"translateX",y:"translateY",z:"translateZ"};function kt(e){return"function"==typeof e}function _t(e,t,n,r,o,a,i,s){void 0===t&&(t=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===a&&(a=[]),void 0===i&&(i=!1),void 0===s&&(s=!0);var c=!0,l=!1,u=!1;for(var d in e){var f=e[d],p=yt(d),h=wt(f,p);pt(d)?(l=!0,r[d]=h,a.push(d),c&&(p.default&&f!==p.default||!p.default&&0!==f)&&(c=!1)):gt(d)?(o[d]=h,u=!0):Ot.has(d)&&kt(h)||(n[lt(d,i)]=h)}return(l||"function"==typeof e.transform)&&(n.transform=function(e,t,n,r,o,a){void 0===a&&(a=!0);var i="",s=!1;n.sort(ht);for(var c=n.length,l=0;l<c;l++){var u=n[l];i+=(Et[u]||u)+"("+t[u]+") ",s="z"===u||s}return!s&&o?i+="translateZ(0)":i=i.trim(),kt(e.transform)?i=e.transform(t,r?"":i):a&&r&&(i="none"),i}(e,r,a,c,t,s)),u&&(n.transformOrigin=(o.originX||"50%")+" "+(o.originY||"50%")+" "+(o.originZ||0)),n}function Ct(e){var t=void 0===e?{}:e,n=t.enableHardwareAcceleration,r=void 0===n||n,o=t.isDashCase,a=void 0===o||o,i=t.allowTransformNone,s=void 0===i||i,c={},l={},u={},d=[];return function(e){return d.length=0,_t(e,r,c,l,u,d,a,s),c}}var jt=et({onRead:function(e,t){var n=t.element,r=t.preparseOutput,o=yt(e);if(pt(e))return o&&o.default||0;if(xt.has(e))return n[e];var a=window.getComputedStyle(n,null).getPropertyValue(lt(e,!0))||0;return r&&o&&o.test(a)&&o.parse?o.parse(a):a},onRender:function(e,t,n){var r=t.element,o=t.buildStyles,a=t.hasCSSVariable;if(Object.assign(r.style,o(e)),a)for(var i=n.length,s=0;s<i;s++){var c=n[s];c.startsWith("--")&&r.style.setProperty(c,e[c])}-1!==n.indexOf("scrollLeft")&&(r.scrollLeft=e.scrollLeft),-1!==n.indexOf("scrollTop")&&(r.scrollTop=e.scrollTop)},uncachedValues:xt});var Tt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues"]),St=function(e,t){return B.transform(e*t)},It={x:0,y:0,width:0,height:0};function At(e,t,n){return"string"==typeof e?e:B.transform(t+n*e)}var Nt={enableHardwareAcceleration:!1,isDashCase:!1};function Pt(e,t,n,r,o,a){void 0===t&&(t=It),void 0===r&&(r=Ct(Nt)),void 0===o&&(o={style:{}}),void 0===a&&(a=!0);var i=e.attrX,c=e.attrY,l=e.originX,u=e.originY,d=e.pathLength,f=e.pathSpacing,p=void 0===f?1:f,h=e.pathOffset,m=void 0===h?0:h,g=r(s(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]));for(var b in g){if("transform"===b)o.style.transform=g[b];else o[a&&!Tt.has(b)?nt(b):b]=g[b]}return(void 0!==l||void 0!==u||g.transform)&&(o.style.transformOrigin=function(e,t,n){return At(t,e.x,e.width)+" "+At(n,e.y,e.height)}(t,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==i&&(o.x=i),void 0!==c&&(o.y=c),void 0!==n&&void 0!==d&&(o[a?"stroke-dashoffset":"strokeDashoffset"]=St(-m,n),o[a?"stroke-dasharray":"strokeDasharray"]=St(d,n)+" "+St(p,n)),o}function Mt(e,t,n){void 0===n&&(n=!0);var r={style:{}},o=Ct(Nt);return function(a){return Pt(a,e,t,o,r,n)}}var Rt=et({onRead:function(e,t){var n=t.element;if(pt(e=Tt.has(e)?e:nt(e))){var r=yt(e);return r&&r.default||0}return n.getAttribute(e)},onRender:function(e,t){var n=t.element,r=(0,t.buildAttrs)(e);for(var o in r)"style"===o?Object.assign(n.style,r.style):n.setAttribute(o,r[o])}}),Lt=et({useCache:!1,onRead:function(e){return"scrollTop"===e?window.pageYOffset:window.pageXOffset},onRender:function(e){var t=e.scrollTop,n=void 0===t?0:t,r=e.scrollLeft,o=void 0===r?0:r;return window.scrollTo(o,n)}}),Dt=new WeakMap,Bt=function(e,t){var n,r,o,a;return e===window?n=Lt(e):!function(e){return e instanceof HTMLElement||"function"==typeof e.click}(e)?function(e){return e instanceof SVGElement||"ownerSVGElement"in e}(e)&&(o=function(e){try{return function(e){return"function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}(e)}catch(e){return{x:0,y:0,width:0,height:0}}}(r=e),a=function(e){return"path"===e.tagName}(r)&&r.getTotalLength?r.getTotalLength():void 0,n=Rt({element:r,buildAttrs:Mt(o,a)})):n=function(e,t){void 0===t&&(t={});var n=t.enableHardwareAcceleration,r=t.allowTransformNone,o=s(t,["enableHardwareAcceleration","allowTransformNone"]);return jt(i({element:e,buildStyles:Ct({enableHardwareAcceleration:n,allowTransformNone:r}),preparseOutput:!0},o))}(e,t),Dt.set(e,n),n};var zt=function(e,t){return function(e,t){return Dt.has(e)?Dt.get(e):Bt(e,t)}("string"==typeof e?document.querySelector(e):e,t)},Ft=function(){return function(e,t){var n=this,r=e.middleware,o=e.onComplete;this.isActive=!0,this.update=function(e){n.observer.update&&n.updateObserver(e)},this.complete=function(){n.observer.complete&&n.isActive&&n.observer.complete(),n.onComplete&&n.onComplete(),n.isActive=!1},this.error=function(e){n.observer.error&&n.isActive&&n.observer.error(e),n.isActive=!1},this.observer=t,this.updateObserver=function(e){return t.update(e)},this.onComplete=o,t.update&&r&&r.length&&r.forEach((function(e){return n.updateObserver=e(n.updateObserver,n.complete)}))}}(),Ut=function(e,t,n){var r=t.middleware;return new Ft({middleware:r,onComplete:n},"function"==typeof e?{update:e}:e)},Ht=function(){function e(e){void 0===e&&(e={}),this.props=e}return e.prototype.create=function(t){return new e(t)},e.prototype.start=function(e){void 0===e&&(e={});var t=!1,n={stop:function(){}},r=this.props,o=r.init,a=s(r,["init"]),c=o(Ut(e,a,(function(){t=!0,n.stop()})));return n=c?i({},n,c):n,t&&n.stop(),n},e.prototype.applyMiddleware=function(e){return this.create(i({},this.props,{middleware:this.props.middleware?[e].concat(this.props.middleware):[e]}))},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=1===e.length?e[0]:qe.apply(void 0,e);return this.applyMiddleware((function(e){return function(t){return e(n(t))}}))},e}(),$t=function(e){return new Ht({init:e})},Vt=[B,D,L,z,F],qt=function(e){return Vt.find((function(t){return t.test(e)}))},Gt=function(e,t){return e(t)},Wt=function(e,t){var n=t.from,r=t.to,o=s(t,["from","to"]),a=qt(n)||qt(r),c=a.transform,l=a.parse;return e(i({},o,{from:"string"==typeof n?l(n):n,to:"string"==typeof r?l(r):r})).pipe(c)},Yt=function(e){return function(t,n){var r=n.from,o=n.to,a=s(n,["from","to"]);return t(i({},a,{from:0,to:1})).pipe(e(r,o))}},Kt=Yt($e),Xt=Yt(Ke),Jt=function(e,t){var n=function(e){var t=Object.keys(e),n=function(t,n){return void 0!==t&&!e[n](t)};return{getVectorKeys:function(e){return t.reduce((function(t,r){return n(e[r],r)&&t.push(r),t}),[])},testVectorProps:function(e){return e&&t.some((function(t){return n(e[t],t)}))}}}(t),r=n.testVectorProps,o=n.getVectorKeys;return function(t){if(!r(t))return e(t);var n=o(t),a=t[n[0]];return Qt(a)(e,t,n)}},Qt=function(e){return"number"==typeof e?Gt:function(e){return Boolean(qt(e))}(e)?Wt:J.test(e)?Kt:Z.test(e)?Xt:Gt},Zt=Jt((function(e){return void 0===e&&(e={}),$t((function(t){var n=t.complete,r=t.update,o=e.velocity,a=void 0===o?0:o,i=e.from,s=void 0===i?0:i,c=e.power,l=void 0===c?.8:c,u=e.timeConstant,d=void 0===u?350:u,f=e.restDelta,p=void 0===f?.5:f,h=e.modifyTarget,m=0,g=l*a,b=Math.round(s+g),v=void 0===h?b:h(b),y=C.update((function(e){var t=e.delta;m+=t;var o=-g*Math.exp(-m/d),a=o>p||o<-p;r(a?v+o:v),a||(x.update(y),n())}),!0);return{stop:function(){return x.update(y)}}}))}),{from:N.test,modifyTarget:function(e){return"function"==typeof e},velocity:N.test}),en=Jt((function(e){return void 0===e&&(e={}),$t((function(t){var n=t.update,r=t.complete,o=e.velocity,a=void 0===o?0:o,i=e.from,s=void 0===i?0:i,c=e.to,l=void 0===c?0:c,u=e.stiffness,d=void 0===u?100:u,f=e.damping,p=void 0===f?10:f,h=e.mass,m=void 0===h?1:h,g=e.restSpeed,b=void 0===g?.01:g,v=e.restDelta,y=void 0===v?.01:v,w=a?-a/1e3:0,O=0,E=l-s,k=s,_=k,j=C.update((function(e){var t=e.delta;O+=t;var o=p/(2*Math.sqrt(d*m)),i=Math.sqrt(d/m)/1e3;if(_=k,o<1){var s=Math.exp(-o*i*O),c=i*Math.sqrt(1-o*o);k=l-s*((w+o*i*E)/c*Math.sin(c*O)+E*Math.cos(c*O))}else{s=Math.exp(-i*O);k=l-s*(E+(w+i*E)*O)}a=Ze(k-_,t);var u=Math.abs(a)<=b,f=Math.abs(l-k)<=y;u&&f?(n(k=l),x.update(j),r()):n(k)}),!0);return{stop:function(){return x.update(j)}}}))}),{from:N.test,to:N.test,stiffness:N.test,damping:N.test,mass:N.test,velocity:N.test}),tn=Jt((function(e){var t=e.from,n=void 0===t?0:t,r=e.velocity,o=void 0===r?0:r,a=e.min,s=e.max,c=e.power,l=void 0===c?.8:c,u=e.timeConstant,d=void 0===u?700:u,f=e.bounceStiffness,p=void 0===f?500:f,h=e.bounceDamping,m=void 0===h?10:h,g=e.restDelta,b=void 0===g?1:g,v=e.modifyTarget;return $t((function(e){var t,r=e.update,c=e.complete,u=n,f=n,h=!1,g=function(e){return void 0!==a&&e<=a},y=function(e){return void 0!==s&&e>=s},w=function(e){return g(e)||y(e)},x=function(e){r(e),u=f,o=Ze((f=e)-u,_().delta),t&&!h&&function(e,t){return g(e)&&t<0||y(e)&&t>0}(e,o)&&E({from:e,velocity:o})},O=function(e,n){t&&t.stop(),t=e.start({update:x,complete:function(){n?n():c()}})},E=function(e){h=!0,O(en(i({},e,{to:g(e.from)?a:s,stiffness:p,damping:m,restDelta:b})))};if(w(n))E({from:n,velocity:o});else if(0!==o){var k=Zt({from:n,velocity:o,timeConstant:d,power:l,restDelta:w(n)?20:b,modifyTarget:v});O(k,(function(){w(f)?E({from:f,velocity:o}):c()}))}else c();return{stop:function(){return t&&t.stop()}}}))}),{from:N.test,velocity:N.test,min:N.test,max:N.test,damping:N.test,stiffness:N.test,modifyTarget:function(e){return"function"==typeof e}}),nn=Jt((function(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.ease,i=void 0===a?se:a,s=e.reverseEase;return void 0!==s&&s&&(i=ne(i)),$t((function(e){var t=e.update;return{seek:function(e){return t(e)}}})).pipe(i,(function(e){return De(n,o,e)}))}),{ease:function(e){return"function"==typeof e},from:N.test,to:N.test}),rn=Ae(0,1),on=function(e){return void 0===e&&(e={}),$t((function(t){var n,r=t.update,o=t.complete,a=e.duration,i=void 0===a?300:a,s=e.ease,c=void 0===s?le:s,l=e.flip,u=void 0===l?0:l,d=e.loop,f=void 0===d?0:d,p=e.yoyo,h=void 0===p?0:p,m=e.repeatDelay,g=void 0===m?0:m,b=e.from,v=void 0===b?0:b,y=e.to,w=void 0===y?1:y,O=e.elapsed,E=void 0===O?0:O,k=e.flipCount,_=void 0===k?0:k,j=e.yoyoCount,T=void 0===j?0:j,S=e.loopCount,I=void 0===S?0:S,A=nn({from:v,to:w,ease:c}).start(r),N=0,P=!1,M=function(e){var t;void 0===e&&(e=!1),A=nn({from:v=(t=[w,v])[0],to:w=t[1],ease:c,reverseEase:e}).start(r)},R=function(){N=rn(Le(0,i,E)),A.seek(N)},L=function(){P=!0,n=C.update((function(e){var t,r=e.delta;E+=r,R(),!(t=P&&E>i+g)||(!t||f||u||h)&&(E=E-i-g,f&&I<f?(I++,1):u&&_<u?(_++,M(),1):h&&T<h&&(T++,M(T%2!=0),1))||(x.update(n),o&&C.update(o,!1,!0))}),!0)},D=function(){P=!1,n&&x.update(n)};return L(),{isActive:function(){return P},getElapsed:function(){return Ae(0,i,E)},getProgress:function(){return N},stop:function(){D()},pause:function(){return D(),this},resume:function(){return P||L(),this},seek:function(e){return E=De(0,i,e),C.update(R,!1,!0),this},reverse:function(){return M(),this}}}))},an=Ae(0,1),sn=function(e){var t=e.easings,n=e.ease,r=void 0===n?se:n,o=e.times,a=e.values,c=s(e,["easings","ease","times","values"]);t=Array.isArray(t)?t:function(e,t){return e.map((function(){return t||le})).splice(0,e.length-1)}(a,t),o=o||function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(a);var l=t.map((function(e,t){return nn({from:a[t],to:a[t+1],ease:e})}));return on(i({},c,{ease:r})).applyMiddleware((function(e){return function(e,t,n){var r=e.length,o=r-1,a=o-1,i=t.map((function(e){return e.start(n)}));return function(t){t<=e[0]&&i[0].seek(0),t>=e[o]&&i[a].seek(1);for(var n=1;n<r&&!(e[n]>t||n===o);n++);var s=Le(e[n-1],e[n],t);i[n-1].seek(an(s))}}(o,l,e)}))},cn=function(e,t,n){return $t((function(r){var o=r.update,a=t.split(" ").map((function(t){return e.addEventListener(t,o,n),t}));return{stop:function(){return a.forEach((function(t){return e.removeEventListener(t,o,n)}))}}}))},ln=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},un=function(e,t){return void 0===t&&(t={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),t.clientX=t.x=e.clientX,t.clientY=t.y=e.clientY,t.pageX=e.pageX,t.pageY=e.pageY,t},dn=[ln()];if("undefined"!=typeof document){cn(document,"touchstart touchmove",{passive:!0,capture:!0}).start((function(e){var t=e.touches;!0;var n=t.length;dn.length=0;for(var r=0;r<n;r++){var o=t[r];dn.push(un(o))}}))}var fn=ln();if("undefined"!=typeof document){cn(document,"mousedown mousemove",!0).start((function(e){!0,un(e,fn)}))}var pn=function(e){return $t((function(t){var n=t.complete,r=setTimeout(n,e);return{stop:function(){return clearTimeout(r)}}}))},hn=function(){function e(e,t){var n,r=this,o=void 0===t?{}:t,a=o.transformer,i=o.parent;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),r.prev=r.current,r.current=r.transformer?r.transformer(e):e,r.updateSubscribers&&r.prev!==r.current&&r.updateSubscribers.forEach(r.notifySubscriber),r.children&&r.children.forEach(r.setChild),t&&r.renderSubscribers&&r.renderSubscribers.forEach(r.notifySubscriber);var n=_(),o=n.delta,a=n.timestamp;r.lastUpdated!==a&&(r.timeDelta=o,r.lastUpdated=a,C.postRender(r.scheduleVelocityCheck))},this.notifySubscriber=function(e){e(r.current)},this.scheduleVelocityCheck=function(){return C.postRender(r.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==r.lastUpdated&&(r.prev=r.current)},this.setChild=function(e){return e.set(r.current)},this.parent=i,this.transformer=a,this.set(e,!1),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return e.prototype.addChild=function(t){void 0===t&&(t={});var n=new e(this.current,i({parent:this},t));return this.children||(this.children=new Set),this.children.add(n),n},e.prototype.removeChild=function(e){this.children&&this.children.delete(e)},e.prototype.subscribeTo=function(e,t){var n=this,r=function(){return t(n.current)};return e.add(r),function(){return e.delete(r)}},e.prototype.onChange=function(e){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,e)},e.prototype.onRenderRequest=function(e){return this.renderSubscribers||(this.renderSubscribers=new Set),this.notifySubscriber(e),this.subscribeTo(this.renderSubscribers,e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getVelocity=function(){return this.canTrackVelocity?Ze(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.parent&&this.parent.removeChild(this),this.stop()},e}();function mn(e,t){return new hn(e,t)}function gn(e){var t=Object(l.useRef)(null);return null===t.current&&(t.current=e()),t.current}var bn,vn=function(e){return e instanceof hn},yn=et({onRead:function(){return null},onRender:function(e,t){return(0,t.onUpdate)(e)}}),wn=function(){function e(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return e.prototype.has=function(e){return this.values.has(e)},e.prototype.set=function(e,t){this.values.set(e,t),this.hasMounted&&this.bindValueToOutput(e,t)},e.prototype.get=function(e,t){var n=this.values.get(e);return void 0===n&&void 0!==t&&(n=new hn(t),this.set(e,n)),n},e.prototype.forEach=function(e){return this.values.forEach(e)},e.prototype.bindValueToOutput=function(e,t){var n=this,r=t.onRenderRequest((function(t){return n.output&&n.output(e,t)})),o=t.onChange((function(t){n.onUpdate&&n.onUpdate.set(e,t)}));this.unsubscribers.has(e)&&this.unsubscribers.get(e)(),this.unsubscribers.set(e,(function(){r(),o()}))},e.prototype.setOnUpdate=function(e){this.onUpdate=void 0,e&&(this.onUpdate=yn({onUpdate:e}))},e.prototype.setTransformTemplate=function(e){this.transformTemplate!==e&&(this.transformTemplate=e,this.updateTransformTemplate())},e.prototype.getTransformTemplate=function(){return this.transformTemplate},e.prototype.updateTransformTemplate=function(){this.output&&this.output("transform",this.transformTemplate)},e.prototype.mount=function(e){var t=this;this.hasMounted=!0,e&&(this.output=e),this.values.forEach((function(e,n){return t.bindValueToOutput(n,e)})),this.updateTransformTemplate()},e.prototype.unmount=function(){var e=this;this.values.forEach((function(t,n){var r=e.unsubscribers.get(n);r&&r()}))},e}(),xn=new Set(["dragOriginX","dragOriginY"]),On=function(e){var t=gn((function(){var t=new wn;for(var n in e)vn(e[n])&&!xn.has(n)&&t.set(n,e[n]);return t}));return t.setOnUpdate(e.onUpdate),t.setTransformTemplate(e.transformTemplate),t},En=null,kn=function(){return null!==En},_n=function(){En=[]},Cn=function(){En&&En.forEach((function(e){return e.render()})),En=null},jn=function(e){En&&En.push(e)},Tn=Object(l.memo)((function(e){var t=e.innerRef,n=e.values,r=e.isStatic;return Object(l.useEffect)((function(){t.current,Element;var e=zt(t.current,{preparseOutput:!1,enableHardwareAcceleration:!r});return n.mount((function(t,n){e.set(t,n),kn()&&jn(e)})),function(){return n.unmount()}}),[]),null})),Sn=(bn=function(e){return e.get()},function(e){var t={};return e.forEach((function(e,n){return t[n]=bn(e)})),t}),In=new Set(["originX","originY","originZ"]),An=function(e){return In.has(e)},Nn=function(e,t,n){var r=Sn(e),o=e.getTransformTemplate();return o&&(r.transform=t.transform?o({},t.transform):o),_t(i(i({},t),r),!n)},Pn=function(e){return Array.isArray(e)},Mn=function(e){return Pn(e)?e[e.length-1]||0:e},Rn=[N,B,D,L,F,z,{test:function(e){return"auto"===e},parse:function(e){return e}}],Ln=c(Rn,[J,Z]),Dn=function(e){return function(t){return t.test(e)}},Bn=function(e){return Rn.find(Dn(e))},zn=function(e){return Ln.find(Dn(e))},Fn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Un=function(e){return{type:"spring",stiffness:700,damping:0===e?100:35}},Hn=function(){return{ease:"linear",duration:.3}},$n=function(e){return{type:"keyframes",duration:.8,values:e}},Vn={x:Fn,y:Fn,z:Fn,rotate:Fn,rotateX:Fn,rotateY:Fn,rotateZ:Fn,scaleX:Un,scaleY:Un,scale:Un,opacity:Hn,backgroundColor:Hn,color:Hn,default:Un},qn=function(e){var t=e.to,n=e.duration;return $t((function(e){var r=e.update,o=e.complete;r(t),n?pn(n).start({complete:o}):o()}))},Gn=function(e){return Array.isArray(e)?(e.length,je(e[0],e[1],e[2],e[3])):"string"==typeof e?r[e]:e},Wn=function(e){return Array.isArray(e)&&"number"!=typeof e[0]},Yn=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Z.test(t)||t.startsWith("url(")))},Kn=function(e){return 1e3*e},Xn={tween:on,spring:en,keyframes:sn,inertia:tn,just:qn},Jn={tween:function(e){if(e.ease){var t=Wn(e.ease)?e.ease[0]:e.ease;e.ease=Gn(t)}return e},keyframes:function(e){var t=e.from,n=(e.to,e.velocity,s(e,["from","to","velocity"]));if(n.values&&null===n.values[0]){var r=c(n.values);r[0]=t,n.values=r}return n.ease&&(n.easings=Wn(n.ease)?n.ease.map(Gn):Gn(n.ease)),n.ease=se,n}},Qn=function(e,t,n){var r=n?n.delay:0;if(void 0===n||!function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection;var t=s(e,["when","delay","delayChildren","staggerChildren","staggerDirection"]);return Object.keys(t).length}(n))return i({delay:r},function(e,t){var n;return n=Pn(t)?$n:Vn[e]||Vn.default,i({to:t},n(t))}(e,t));var o=n[e]||n.default||n;return!1===o.type?{delay:o.hasOwnProperty("delay")?o.delay:r,to:Pn(t)?t[t.length-1]:t,type:"just"}:Pn(t)?i(i({values:t,duration:.8,delay:r,ease:"linear"},o),{type:"keyframes"}):i({type:"tween",to:t,delay:r},o)},Zn=function(e,t,n,r){var o,a=t.get(),c=Yn(e,a),l=Yn(e,n),u=Qn(e,n,r),d=u.type,f=void 0===d?"tween":d,p=s(u,["type"]),h=c&&l?Xn[f]:qn,m=function(e,t){return Jn[e]?Jn[e](t):t}(f,i({from:a,velocity:t.getVelocity()},p));return((o=m).hasOwnProperty("duration")||o.hasOwnProperty("repeatDelay"))&&(m.duration&&(m.duration=Kn(m.duration)),m.repeatDelay&&(m.repeatDelay=Kn(m.repeatDelay))),[h,m]};function er(e,t,n,r){var o=r.delay,a=void 0===o?0:o,i=s(r,["delay"]);return t.start((function(r){var o,c=Zn(e,t,n,i),l=c[0],u=c[1],d=u.delay,f=s(u,["delay"]);void 0!==d&&(a=d);var p=function(){var e=l(f);o=e.start({update:function(e){return t.set(e)},complete:r})};return a?o=pn(Kn(a)).start({complete:p}):p(),function(){o&&o.stop()}}))}var tr=function(){function e(e){var t=this,n=e.values,r=e.readValueFromSource,o=e.makeTargetAnimatable;this.props={},this.variants={},this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.activeOverrides=new Set,this.isAnimating=new Set,this.hasValue=function(e){return!t.values.has(e)},this.values=n,this.readValueFromSource=r,this.makeTargetAnimatable=o,this.values.forEach((function(e,n){return t.baseTarget[n]=e.get()}))}return e.prototype.setProps=function(e){this.props=e},e.prototype.setVariants=function(e){e&&(this.variants=e)},e.prototype.setDefaultTransition=function(e){e&&(this.defaultTransition=e)},e.prototype.setValues=function(e,t){var n=this,r=void 0===t?{}:t,o=r.isActive,a=void 0===o?new Set:o,s=r.priority,c=this.resolveVariant(e),l=c.target,u=c.transitionEnd;return l=this.transformValues(i(i({},l),u)),Object.keys(l).forEach((function(e){if(!a.has(e)&&(a.add(e),l)){var t=Mn(l[e]);if(n.values.has(e)){var r=n.values.get(e);r&&r.set(t)}else n.values.set(e,mn(t));s||(n.baseTarget[e]=t)}}))},e.prototype.transformValues=function(e){var t=this.props.transformValues;return t?t(e):e},e.prototype.checkForNewValues=function(e){var t=Object.keys(e).filter(this.hasValue),n=t.length;if(n)for(var r=0;r<n;r++){var o=t[r],a=e[o],i=null;Array.isArray(a)&&(i=a[0]),null===i&&(i=this.readValueFromSource(o)),"string"==typeof i&&/^\d*\.?\d+$/.test(i)?i=parseFloat(i):!zn(i)&&Z.test(a)&&(i=Z.getAnimatableNone(a)),this.values.set(o,mn(i)),this.baseTarget[o]=i}},e.prototype.resolveVariant=function(e){if(!e)return{target:void 0,transition:void 0,transitionEnd:void 0};var t,n;"function"==typeof e&&(e=e(this.props.custom,(t=this.values,n={},t.forEach((function(e,t){return n[t]=e.get()})),n),function(e){var t={};return e.forEach((function(e,n){return t[n]=e.getVelocity()})),t}(this.values)));var r=e.transition;return{transition:void 0===r?this.defaultTransition:r,transitionEnd:e.transitionEnd,target:s(e,["transition","transitionEnd"])}},e.prototype.getHighestPriority=function(){return this.activeOverrides.size?Math.max.apply(Math,Array.from(this.activeOverrides)):0},e.prototype.setOverride=function(e,t){this.overrides[t]=e,this.children&&this.children.forEach((function(n){return n.setOverride(e,t)}))},e.prototype.startOverride=function(e){var t=this.overrides[e];if(t)return this.start(t,{priority:e})},e.prototype.clearOverride=function(e){var t=this;if(this.children&&this.children.forEach((function(t){return t.clearOverride(e)})),this.overrides[e]){this.activeOverrides.delete(e);var n=this.getHighestPriority();if(this.resetIsAnimating(),n)this.overrides[n]&&this.startOverride(n);var r=this.resolvedOverrides[e];if(r){var o={};for(var a in this.baseTarget)void 0!==r[a]&&(o[a]=this.baseTarget[a]);this.onStart(),this.animate(o).then((function(){return t.onComplete()}))}}},e.prototype.apply=function(e){return Array.isArray(e)?this.applyVariantLabels(e):"string"==typeof e?this.applyVariantLabels([e]):void this.setValues(e)},e.prototype.applyVariantLabels=function(e){var t=this,n=new Set;c(e).reverse().forEach((function(r){var o=t.resolveVariant(t.variants[r]),a=o.target,i=o.transitionEnd;i&&t.setValues(i,{isActive:n}),a&&t.setValues(a,{isActive:n}),t.children&&t.children.size&&t.children.forEach((function(t){return t.applyVariantLabels(e)}))}))},e.prototype.start=function(e,t){var n,r,o=this;return void 0===t&&(t={}),t.priority&&this.activeOverrides.add(t.priority),this.resetIsAnimating(t.priority),r=e,n=Array.isArray(r)?this.animateVariantLabels(e,t):"string"==typeof e?this.animateVariant(e,t):this.animate(e,t),this.onStart(),n.then((function(){return o.onComplete()}))},e.prototype.animate=function(e,t){var n=this,r=void 0===t?{}:t,o=r.delay,a=void 0===o?0:o,s=r.priority,c=void 0===s?0:s,l=r.transitionOverride,u=this.resolveVariant(e),d=u.target,f=u.transition,p=u.transitionEnd;if(l&&(f=l),!d)return Promise.resolve();if(d=this.transformValues(d),p&&(p=this.transformValues(p)),this.checkForNewValues(d),this.makeTargetAnimatable){var h=this.makeTargetAnimatable(d,p);d=h.target,p=h.transitionEnd}c&&(this.resolvedOverrides[c]=d),this.checkForNewValues(d);var m=[];for(var g in d){var b=this.values.get(g);if(b&&d&&void 0!==d[g]){var v=d[g];c||(this.baseTarget[g]=Mn(v)),this.isAnimating.has(g)||(this.isAnimating.add(g),m.push(er(g,b,v,i({delay:a},f))))}}var y=Promise.all(m);return p?y.then((function(){n.setValues(p,{priority:c})})):y},e.prototype.animateVariantLabels=function(e,t){var n=this,r=c(e).reverse().map((function(e){return n.animateVariant(e,t)}));return Promise.all(r)},e.prototype.animateVariant=function(e,t){var n=this,r=!1,o=0,a=0,i=1,s=t&&t.priority||0,c=this.variants[e],l=c?function(){return n.animate(c,t)}:function(){return Promise.resolve()},u=this.children?function(){return n.animateChildren(e,o,a,i,s)}:function(){return Promise.resolve()};if(c&&this.children){var d=this.resolveVariant(c).transition;d&&(r=d.when||r,o=d.delayChildren||o,a=d.staggerChildren||a,i=d.staggerDirection||i)}if(r){var f="beforeChildren"===r?[l,u]:[u,l],p=f[1];return(0,f[0])().then(p)}return Promise.all([l(),u()])},e.prototype.animateChildren=function(e,t,n,r,o){if(void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===o&&(o=0),!this.children)return Promise.resolve();var a=[],i=(this.children.size-1)*n,s=1===r?function(e){return e*n}:function(e){return i-e*n};return Array.from(this.children).forEach((function(n,r){var i=n.animateVariant(e,{priority:o,delay:t+s(r)});a.push(i)})),Promise.all(a)},e.prototype.onStart=function(){var e=this.props.onAnimationStart;e&&e()},e.prototype.onComplete=function(){var e=this.props.onAnimationComplete;e&&e()},e.prototype.checkOverrideIsAnimating=function(e){for(var t=this.overrides.length,n=e+1;n<t;n++){var r=this.resolvedOverrides[n];if(r)for(var o in r)this.isAnimating.add(o)}},e.prototype.resetIsAnimating=function(e){void 0===e&&(e=0),this.isAnimating.clear(),e<this.getHighestPriority()&&this.checkOverrideIsAnimating(e),this.children&&this.children.forEach((function(t){return t.resetIsAnimating(e)}))},e.prototype.stop=function(){this.values.forEach((function(e){return e.stop()}))},e.prototype.addChild=function(e){this.children||(this.children=new Set),this.children.add(e),this.overrides.forEach((function(t,n){t&&e.setOverride(t,n)}))},e.prototype.removeChild=function(e){this.children&&this.children.delete(e)},e.prototype.resetChildren=function(){this.children&&this.children.clear()},e}();var nr=function(){function e(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set}return e.prototype.setVariants=function(e){this.variants=e,this.componentControls.forEach((function(t){return t.setVariants(e)}))},e.prototype.setDefaultTransition=function(e){this.defaultTransition=e,this.componentControls.forEach((function(t){return t.setDefaultTransition(e)}))},e.prototype.subscribe=function(e){var t=this;return this.componentControls.add(e),this.variants&&e.setVariants(this.variants),this.defaultTransition&&e.setDefaultTransition(this.defaultTransition),function(){return t.componentControls.delete(e)}},e.prototype.start=function(e,t){var n=this;if(this.hasMounted){var r=[];return this.componentControls.forEach((function(n){var o=n.start(e,{transitionOverride:t});r.push(o)})),Promise.all(r)}return new Promise((function(r){n.pendingAnimations.push({animation:[e,t],resolve:r})}))},e.prototype.set=function(e){return this.hasMounted,this.componentControls.forEach((function(t){return t.apply(e)}))},e.prototype.stop=function(){this.componentControls.forEach((function(e){return e.stop()}))},e.prototype.mount=function(){var e=this;this.hasMounted=!0,this.pendingAnimations.forEach((function(t){var n=t.animation,r=t.resolve;return e.start.apply(e,n).then(r)}))},e.prototype.unmount=function(){this.hasMounted=!1,this.stop()},e}(),rr=Object(l.createContext)(null),or=Object(l.createContext)({static:!1}),ar=function(e){return"string"==typeof e||Array.isArray(e)},ir=function(e){return e instanceof nr},sr=function(e,t,n,r,o){void 0===r&&(r=!1);var a,i,s=o.initial,c=o.animate,u=o.variants,d=o.whileTap,f=o.whileHover,p=Object(l.useContext)(rr);void 0!==(null===(a=p)||void 0===a?void 0:a.initial)&&(s=p.initial),!1!==s||ir(c)?"boolean"!=typeof s&&(i=s):i=c;var h=Object(l.useRef)(!1),m=u||ar(c)||ar(d)||ar(f)||ir(c),g=ar(i)?i:e.initial,b=ar(c)?c:e.animate,v=r?g:null,y=m&&ar(b)?b:null,w=Object(l.useMemo)((function(){return{controls:m?t:e.controls,initial:g,animate:b,values:n,hasMounted:h,isReducedMotion:e.isReducedMotion}}),[v,y,e.isReducedMotion]);return w.static=r,function(e,t){void 0===t&&(t=!1);var n=Object(l.useRef)(!0);(!t||t&&n.current)&&e(),n.current=!1}((function(){var n=i||e.initial;n&&t.apply(n)}),!r),Object(l.useEffect)((function(){h.current=!0}),[]),w};function cr(e,t,n){var r=t.variants,o=t.transition,a=Object(l.useContext)(or).controls,i=Object(l.useContext)(rr),c=gn((function(){return new tr(e)}));return i&&!i.isPresent||(c.resetChildren(),c.setProps(t),c.setVariants(r),c.setDefaultTransition(o)),Object(l.useEffect)((function(){n&&a&&a.addChild(c)})),Object(l.useEffect)((function(){return function(){t.onAnimationComplete;var e=s(t,["onAnimationComplete"]);c.setProps(e),a&&a.removeChild(c)}}),[]),c}var lr=function(e){var t=e.animate,n=e.variants,r=e.inherit;return(void 0===r||r)&&!!n&&(!t||t instanceof nr)};var ur=function(e){var t=e.getValueControlsConfig,n=e.loadFunctionalityComponents,r=e.renderComponent;return Object(l.forwardRef)((function(e,o){var a=function(e){var t=e&&"function"!=typeof e?e:Object(l.useRef)(null);return e&&"function"==typeof e&&Object(l.useEffect)((function(){return e(t.current),function(){return e(null)}}),[]),t}(o),i=Object(l.useContext)(or),s=i.static||e.static||!1,c=On(e),u=function(e,t,n,r){void 0===t&&(t={});var o={},a=Object(l.useRef)({}).current;for(var i in t){var s=t[i];if(vn(s))e.set(i,s);else if(n||!pt(i)&&!An(i))o[i]=s;else{if(e.has(i)){if(s!==a[i])e.get(i).set(s)}else e.set(i,mn(s));a[i]=s}}return r?r(o):o}(c,e.style,s,e.transformValues),d=lr(e),f=cr(gn((function(){return t(a,c)})),e,d),p=sr(i,f,c,s,e),h=s?null:n(a,c,e,i,f,d),m=r(a,u,c,e,s);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(or.Provider,{value:p},m),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Tn,{innerRef:a,values:c,isStatic:s}),h))}))},dr=["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],fr=Object(l.createContext)({transformPagePoint:function(e){return e}});function pr(e){return Object(l.useEffect)((function(){return function(){return e()}}),[])}function hr(e,t,n,r){if(n)return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function mr(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function gr(e){return!!e.touches}var br={pageX:0,pageY:0};function vr(e){var t=e.pageX,n=void 0===t?0:t,r=e.pageY;return{x:n,y:void 0===r?0:r}}function yr(e){return{point:gr(e)?(t=e,n=t.touches[0]||t.changedTouches[0]||br,{x:n.pageX,y:n.pageY}):vr(e)};var t,n}var wr,xr=function(e,t){if(void 0===t&&(t=!1),e){var n=function(t){return e(t,yr(t))};return t?function(e){if(e)return function(t){var n=t instanceof MouseEvent;(!n||n&&0===t.button)&&e(t)}}(n):n}},Or="undefined"!=typeof window,Er={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},kr={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function _r(e){return Or&&null===window.onpointerdown?e:Or&&null===window.ontouchstart?kr[e]:Or&&null===window.onmousedown?Er[e]:e}function Cr(e,t,n,r){return hr(e,_r(t),xr(n,"pointerdown"===t),r)}function jr(e,t,n,r){return function(e,t,n,r){Object(l.useEffect)((function(){var o=e.current;if(n&&o)return hr(o,t,n,r)}),[e,t,n,r])}(e,_r(t),xr(n,"pointerdown"===t),r)}!function(e){e.subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.relativeTo=function(e){var t;return function(n){var r=n.x,o=n.y,a=void 0!==t?t:t="string"==typeof e?document.getElementById(e):e;if(a){var i=a.getBoundingClientRect();return{x:r-i.left-window.scrollX,y:o-i.top-window.scrollY}}}}}(wr||(wr={}));var Tr=!1;"undefined"!=typeof window&&document.addEventListener("touchmove",(function(e){Tr&&e.preventDefault()}),{passive:!1});var Sr=function(){return Tr=!1},Ir=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=Nr(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Re(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=_().timestamp;r.history.push(i(i({},o),{timestamp:a}));var s=r.handlers,c=s.onStart,l=s.onMove;t||(c&&c(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},!(gr(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Ar(yr(e),this.transformPagePoint),s=a.point,c=_().timestamp;this.history=[i(i({},s),{timestamp:c})];var l=t.onSessionStart;l&&l(e,Nr(a,this.history));var u=Cr(window,"pointermove",(function(e,t){return r.handlePointerMove(e,t)})),d=Cr(window,"pointerup",(function(e,t){return r.handlePointerUp(e,t)}));this.removeListeners=function(){u&&u(),d&&d()}}}return e.prototype.handlePointerMove=function(e,t){this.lastMoveEvent=e,this.lastMoveEventInfo=Ar(t,this.transformPagePoint),mr(e)&&0===e.buttons?this.handlePointerUp(e,t):C.update(this.updatePoint,!0)},e.prototype.handlePointerUp=function(e,t){this.end();var n=this.handlers.onEnd;if(n){var r=Nr(Ar(t,this.transformPagePoint),this.history);n&&n(e,r)}},e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),x.update(this.updatePoint),Sr()},e}();function Ar(e,t){return t?{point:t(e.point)}:e}function Nr(e,t){var n=e.point;return{point:n,delta:wr.subtract(n,Mr(t)),offset:wr.subtract(n,Pr(t)),velocity:Rr(t,.1)}}function Pr(e){return e[0]}function Mr(e){return e[e.length-1]}function Rr(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Mr(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Kn(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}var Lr=function(e,t){return!!t&&(e===t||Lr(e,t.parentElement))},Dr=["whileHover","whileTap","whileDrag"],Br=function(e){return Dr.indexOf(e)+1};function zr(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Fr=zr("dragHorizontal"),Ur=zr("dragVertical");function Hr(e){var t=!1;if("y"===e)t=Ur();else if("x"===e)t=Fr();else{var n=Fr(),r=Ur();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}var $r=Br("whileTap");var Vr=Br("whileHover"),qr=function(e){return function(t,n){mr(t)&&e(t,n)}};function Gr(e,t){!function(e,t){var n=e.onPan,r=e.onPanStart,o=e.onPanEnd,a=e.onPanSessionStart,i=n||r||o||a,s=Object(l.useRef)(null),c=Object(l.useContext)(fr).transformPagePoint,u={onSessionStart:a,onStart:r,onMove:n,onEnd:function(e,t){s.current=null,o&&o(e,t)}};Object(l.useEffect)((function(){null!==s.current&&s.current.updateHandlers(u)})),jr(t,"pointerdown",i&&function(e){s.current=new Ir(e,u,{transformPagePoint:c})}),pr((function(){return s.current&&s.current.end()}))}(e,t),function(e,t){var n=e.onTap,r=e.onTapStart,o=e.onTapCancel,a=e.whileTap,i=e.controls,s=n||r||o||a,c=Object(l.useRef)(!1),u=Object(l.useRef)(null);function d(){u.current&&u.current(),u.current=null}a&&i&&i.setOverride(a,$r);var f=Object(l.useRef)(null);f.current=function(e,r){var s=t.current;if(d(),c.current&&s){c.current=!1,i&&a&&i.clearOverride($r);var l=Hr(!0);l&&(l(),Lr(s,e.target)?n&&n(e,r):o&&o(e,r))}},jr(t,"pointerdown",s?function(e,n){d(),u.current=Cr(window,"pointerup",(function(e,t){return f.current(e,t)})),t.current&&!c.current&&(c.current=!0,r&&r(e,n),i&&a&&i.startOverride($r))}:void 0),pr(d)}(e,t),function(e,t){var n=e.whileHover,r=e.onHoverStart,o=e.onHoverEnd,a=e.controls;n&&a&&a.setOverride(n,Vr),jr(t,"pointerenter",qr((function(e,t){r&&r(e,t),n&&a&&a.startOverride(Vr)}))),jr(t,"pointerleave",qr((function(e,t){o&&o(e,t),n&&a&&a.clearOverride(Vr)})))}(e,t)}var Wr=function(e){return function(t){return e(t),null}},Yr=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileTap","whileHover","onHoverStart","onHoverEnd"],Kr={key:"gestures",shouldRender:function(e){return Yr.some((function(t){return e.hasOwnProperty(t)}))},Component:Wr((function(e){var t=e.innerRef;Gr(s(e,["innerRef"]),t)}))},Xr=function(e){return"object"==typeof e&&e.hasOwnProperty("current")},Jr=function(e){return e},Qr=function(){function e(e){var t=e.ref,n=e.values,r=e.controls;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.props={transformPagePoint:Jr},this.point={},this.origin={x:mn(0),y:mn(0)},this.openGlobalLock=null,this.panSession=null,this.prevConstraintsBox={width:0,height:0,x:0,y:0},this.ref=t,this.values=n,this.controls=r}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor;void 0!==r&&r&&this.snapToCursor(e);var o=this.props.transformPagePoint;this.panSession=new Ir(e,{onSessionStart:function(){Tr=!0,Zr((function(e){var t=n.point[e];t&&t.stop()}))},onStart:function(e,t){if(n.constraintsNeedResolution){var r=n.props,o=r.dragConstraints,a=r.transformPagePoint;n.constraints=ro(o,n.ref,n.point,a),n.applyConstraintsToPoint()}Zr((function(e){var t=n.point[e];t&&n.origin[e].set(t.get())}));var i=n.props,s=i.drag,c=i.dragPropagation;if(!s||c||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Hr(s),n.openGlobalLock)){n.isDragging=!0,n.currentDirection=null;var l=n.props.onDragStart;l&&l(e,eo(t,n.point))}},onMove:function(e,t){var r=n.props,o=r.dragPropagation,a=r.dragDirectionLock;if(o||n.openGlobalLock){var i=t.offset;if(a&&null===n.currentDirection){if(n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(i),null!==n.currentDirection){var s=n.props.onDirectionLock;s&&s(n.currentDirection)}}else{n.updatePoint("x",i),n.updatePoint("y",i);var c=n.props.onDrag;c&&c(e,eo(t,n.point))}}},onEnd:function(e,t){n.stop(e,t)}},{transformPagePoint:o})},e.prototype.cancelDrag=function(){Sr(),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null)},e.prototype.stop=function(e,t){var n;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var r=this.isDragging;if(this.cancelDrag(),r){var o=this.props,a=o.dragMomentum,i=o.dragElastic,s=o.onDragEnd;if(a||i){var c=t.velocity;this.animateDragEnd(c)}else this.recordBoxInfo(this.constraints);s&&s(e,eo(t,this.point))}},e.prototype.recordBoxInfo=function(e){if(e){var t=e.right,n=e.left,r=e.bottom,o=e.top;this.prevConstraintsBox.width=(t||0)-(n||0),this.prevConstraintsBox.height=(r||0)-(o||0)}this.point.x&&(this.prevConstraintsBox.x=this.point.x.get()),this.point.y&&(this.prevConstraintsBox.y=this.point.y.get())},e.prototype.snapToCursor=function(e){var t=this,n=this.props.transformPagePoint,r=yr(e).point,o=oo(this.ref,n),a=o.width/2+o.left+window.scrollX,i=o.height/2+o.top+window.scrollY,s={x:r.x-a,y:r.y-i};Zr((function(e){var n=t.point[e];n&&t.origin[e].set(n.get())})),this.updatePoint("x",s),this.updatePoint("y",s)},e.prototype.setPoint=function(e,t){this.point[e]=t},e.prototype.updatePoint=function(e,t){var n=this.props,r=n.drag,o=n.dragElastic,a=this.point[e];if(no(e,r,this.currentDirection)&&a){var i=io(e,this.origin[e].get()+t[e],this.constraints,o);a.set(i)}},e.prototype.updateProps=function(e){var t=this,n=e.drag,r=void 0!==n&&n,o=e.dragDirectionLock,a=void 0!==o&&o,c=e.dragPropagation,l=void 0!==c&&c,u=e.dragConstraints,d=void 0!==u&&u,f=e.dragElastic,p=void 0===f||f,h=e.dragMomentum,m=void 0===h||h,g=s(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=i({drag:r,dragDirectionLock:a,dragPropagation:l,dragConstraints:d,dragElastic:p,dragMomentum:m},g);var b=g._dragValueX,v=g._dragValueY,y=g.dragOriginX,w=g.dragOriginY;y&&(this.origin.x=y),w&&(this.origin.y=w),Zr((function(e){if(no(e,r,t.currentDirection)){var n="x"===e?b:v;t.setPoint(e,n||t.values.get(e,0))}})),this.constraintsNeedResolution=Xr(d),this.constraints=this.constraintsNeedResolution?this.constraints||!1:d},e.prototype.applyConstraintsToPoint=function(e){var t=this;return void 0===e&&(e=this.constraints),Zr((function(n){var r=t.point[n];r&&!r.isAnimating()&&io(n,r,e,0)}))},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,r=n.drag,o=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,c=n._dragValueX,l=n._dragValueY,u=n._dragTransitionControls,d=Zr((function(n){var d;if(no(n,r,t.currentDirection)){var f=t.constraints?to(n,t.constraints):{},p=a?200:1e6,h=a?40:1e7,m=u||t.controls,g=i(i({type:"inertia",velocity:o?e[n]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1},s),f),b="x"===n?c:l;return b?er(n,b,0,g):m.start(((d={})[n]=0,d.transition=g,d))}}));return Promise.all(d).then((function(){t.recordBoxInfo(t.constraints),t.scalePoint();var e=t.props.onDragTransitionEnd;e&&e()}))},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.transformPagePoint;if(Xr(n)){var o=oo(n,r),a=oo(this.ref,r),i=function(t,n){var r=e.point[t];if(r){if(r.isAnimating())return r.stop(),void e.recordBoxInfo();var i=e.prevConstraintsBox[n]?(o[n]-a[n])/e.prevConstraintsBox[n]:1;r.set(e.prevConstraintsBox[t]*i)}};i("x","width"),i("y","height")}},e.prototype.mount=function(e){var t=this,n=Cr(e,"pointerdown",(function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=hr(window,"resize",(function(){return t.scalePoint()}));if(this.constraintsNeedResolution){var o=this.props,a=o.dragConstraints,i=o.transformPagePoint,s=ro(a,this.ref,this.point,i);this.applyConstraintsToPoint(s),this.recordBoxInfo(s)}else!this.isDragging&&this.constraints&&this.applyConstraintsToPoint();return function(){n&&n(),r&&r(),t.cancelDrag()}},e}();function Zr(e){return[e("x"),e("y")]}function eo(e,t){return i(i({},e),{point:{x:t.x?t.x.get():0,y:t.y?t.y.get():0}})}function to(e,t){var n=t.top,r=t.right,o=t.bottom,a=t.left;return"x"===e?{min:a,max:r}:{min:n,max:o}}function no(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}function ro(e,t,n,r){null!==e.current&&t.current;var o=oo(e,r),a=oo(t,r),i=o.left-a.left+ao(n.x),s=o.top-a.top+ao(n.y);return{top:s,left:i,right:o.width-a.width+i,bottom:o.height-a.height+s}}function oo(e,t){var n=e.current.getBoundingClientRect(),r=t({x:n.left,y:n.top}),o=r.x,a=r.y,i=t({x:n.width,y:n.height});return{left:o,top:a,width:i.x,height:i.y}}function ao(e){return e?e.get():0}function io(e,t,n,r){var o=t instanceof hn?t.get():t;if(!n)return o;var a=to(e,n),i=a.min,s=a.max;return void 0!==i&&o<i?o=r?so(i,o,r):Math.max(i,o):void 0!==s&&o>s&&(o=r?so(s,o,r):Math.min(s,o)),t instanceof hn&&t.set(o),o}function so(e,t,n){return De(e,t,"number"==typeof n?n:.35)}var co={key:"drag",shouldRender:function(e){return!!e.drag},Component:Wr((function(e){var t=e.innerRef,n=e.values,r=e.controls;return function(e,t,n,r){var o=e.dragControls,a=Object(l.useContext)(fr).transformPagePoint,s=gn((function(){return new Qr({ref:t,values:n,controls:r})}));s.updateProps(i(i({},e),{transformPagePoint:a})),Object(l.useEffect)((function(){return o&&o.subscribe(s)}),[s]),Object(l.useEffect)((function(){return s.mount(t.current)}),[])}(s(e,["innerRef","values","controls"]),t,n,r)}))};function lo(e){return"string"==typeof e&&e.startsWith("var(--")}var uo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function fo(e,t,n){void 0===n&&(n=1);var r=function(e){var t=uo.exec(e);return t?[t[1],t[2]]:[,]}(e),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i||(lo(a)?fo(a,t,n+1):a)}}var po,ho=new Set(["width","height","top","left","right","bottom","x","y"]),mo=function(e){return ho.has(e)},go=function(e,t){e.set(t,!1),e.set(t)},bo=function(e){return e===N||e===B};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(po||(po={}));var vo=function(e,t){return parseFloat(e.split(", ")[t])},yo=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return vo(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?vo(i[1],e):0}},wo=new Set(["x","y","z"]),xo=dt.filter((function(e){return!wo.has(e)}));var Oo={width:function(e){return e.width},height:function(e){return e.height},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.height,r=t.top;return parseFloat(r)+n},right:function(e,t){var n=e.width,r=t.left;return parseFloat(r)+n},x:yo(4,13),y:yo(5,14)},Eo=function(e,t,n,r){void 0===r&&(r={}),n=i({},n),r=i({},r);var o=t.current,a=zt(o),s=Object.keys(n).filter(mo),c=[],l=!1,u=s.reduce((function(t,o){var i=e.get(o);if(!i)return t;var s,u=i.get(),d=n[o],f=Bn(u);if(Pn(d))for(var p=d.length,h=null===d[0]?1:0;h<p;h++)s?Bn(d[h]):(s=Bn(d[h]))===f||bo(f)&&bo(s);else s=Bn(d);if(f!==s)if(bo(f)&&bo(s)){var m=i.get();"string"==typeof m&&i.set(parseFloat(m)),"string"==typeof d?n[o]=parseFloat(d):Array.isArray(d)&&s===B&&(n[o]=d.map(parseFloat))}else l||(c=function(e,t){var n=[];return xo.forEach((function(t){var r=e.get(t);void 0!==r&&(n.push([t,r.get()]),r.set(t.startsWith("scale")?1:0))})),n.length&&t.render(),n}(e,a),l=!0),t.push(o),r[o]=void 0!==r[o]?r[o]:n[o],go(i,d);return t}),[]);if(u.length){var d=function(e,t,n,r,o){var a=n.getBoundingClientRect(),i=getComputedStyle(n),s=i.display,c={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===s&&r.set("display",e.display||"block"),r.render();var l=n.getBoundingClientRect();return o.forEach((function(n){var r=t.get(n);go(r,Oo[n](a,c)),e[n]=Oo[n](l,i)})),e}(n,e,o,a,u);return c.length&&c.forEach((function(t){var n=t[0],r=t[1];e.get(n).set(r)})),a.render(),{target:d,transitionEnd:r}}return{target:n,transitionEnd:r}};function ko(e,t,n,r){return function(e){return Object.keys(e).some(mo)}(n)?Eo(e,t,n,r):{target:n,transitionEnd:r}}var _o=function(e,t){return function(n,r){var o=function(e,t,n,r){var o=s(n,[]),a=t.current;if(!(a instanceof HTMLElement))return{target:o,transitionEnd:r};for(var c in r&&(r=i({},r)),e.forEach((function(e){var t=e.get();if(lo(t)){var n=fo(t,a);n&&e.set(n)}})),o){var l=o[c];if(lo(l)){var u=fo(l,a);u&&(o[c]=u,r&&void 0===r[c]&&(r[c]=l))}}return{target:o,transitionEnd:r}}(e,t,n,r);return n=o.target,r=o.transitionEnd,ko(e,t,n,r)}};var Co,jo,To=Object(l.createContext)(null);!function(e){e.Prepare="prepare",e.Read="read",e.Render="render"}(jo||(jo={}));var So=[jo.Prepare,jo.Read,jo.Render].reduce((function(e,t){return e[t]=[],e}),{}),Io=!1;function Ao(e){for(var t=e.length,n=0;n<t;n++)e[n]();e.length=0}var No=function(e){return function(t){t&&(Io=!0,So[e].push(t))}},Po=((Co={})[jo.Prepare]=No(jo.Prepare),Co[jo.Read]=No(jo.Read),Co[jo.Render]=No(jo.Render),Co.flush=function(){Io&&(Ao(So.prepare),Ao(So.read),Ao(So.render),Io=!1)},Co);var Mo={duration:.8,ease:[.45,.05,.19,1]},Ro={type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10};var Lo={id:"x",size:"width",min:"left",max:"right",origin:"originX"},Do={id:"y",size:"height",min:"top",max:"bottom",origin:"originY"};function Bo(e,t){return(e+t)/2}function zo(e,t,n){var r,o=e[n.size]-t[n.size],a=.5;return o&&(e[n.min]===t[n.min]?a=0:e[n.max]===t[n.max]&&(a=1)),(r={})[n.size]=o,r[n.origin]=a,r[n.id]=.5===a?Bo(e[n.min],e[n.max])-Bo(t[n.min],t[n.max]):0,r}var Fo={getLayout:function(e){return e.offset},measure:function(e){var t=e.offsetLeft,n=e.offsetTop,r=e.offsetWidth,o=e.offsetHeight;return{left:t,top:n,right:t+r,bottom:n+o,width:r,height:o}}},Uo={getLayout:function(e){return e.boundingBox},measure:function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top,width:t.width,height:t.height,right:t.right,bottom:t.bottom}}};function Ho(e){return window.getComputedStyle(e).position}function $o(e){return"width"===e||"height"===e}var Vo,qo={key:"layout",shouldRender:function(e){var t=e.positionTransition,n=e.layoutTransition;return"undefined"!=typeof window&&!(!t&&!n)},Component:function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.innerRef,n=e.positionTransition,r=e.values,o=e.controls,a=t.current;if(function(e){return e instanceof HTMLElement}(a)){var s,c,l,u=function(e){var t=e.layoutTransition,n=e.positionTransition;return t||n}(this.props),d=!!n,f=Ho(a),p={offset:Fo.measure(a),boundingBox:Uo.measure(a)};return Po.prepare((function(){s=a.style.transform,a.style.transform=""})),Po.read((function(){c={offset:Fo.measure(a),boundingBox:Uo.measure(a)};var e=Ho(a);l=function(e,t,n){return n&&e===t?Fo:Uo}(f,e,d)})),Po.render((function(){var e=function(e,t){return i(i({},zo(e,t,Lo)),zo(e,t,Do))}(l.getLayout(p),l.getLayout(c));if(e.x||e.y||e.width||e.height){zt(a).set({originX:e.originX,originY:e.originY}),_n();var t={},n={},f=function(e){return"function"==typeof e}(u)?u({delta:e}):u;h("left","x",0,e.x),h("top","y",0,e.y),d||(h("width","scaleX",1,p.boundingBox.width/c.boundingBox.width),h("height","scaleY",1,p.boundingBox.height/c.boundingBox.height)),t.transition=n,f&&o.start(t),Cn()}else s&&(a.style.transform=s);function h(o,a,s,c){var u=$o(o)?o:a;if(e[u]){var p="boolean"==typeof f?i({},function(e){return e?Ro:Mo}(d)):f,h=r.get(a,s),m=h.getVelocity();n[a]=p[a]?i({},p[a]):i({},p),void 0===n[a].velocity&&(n[a].velocity=m||0),t[a]=s;var g=$o(o)||l!==Fo?0:h.get();h.set(c+g)}}})),null}},t.prototype.componentDidUpdate=function(){Po.flush()},t.prototype.render=function(){return null},t.contextType=To,t}(l.Component)},Go=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","static","positionTransition","layoutTransition","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragElastic","dragMomentum","dragPropagation","dragTransition","_dragValueX","_dragValueY","_dragTransitionControls","dragOriginX","dragOriginY","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileHover","whileTap","onHoverEnd","onHoverStart"]);function Wo(e){return Go.has(e)}!function(e){e.Target="Target",e.VariantLabel="VariantLabel",e.AnimationSubscription="AnimationSubscription"}(Vo||(Vo={}));function Yo(e,t){void 0===t&&(t=!1);e.transition;var n=e.transitionEnd,r=s(e,["transition","transitionEnd"]);return t?i(i({},r),n):r}var Ko,Xo,Jo=function(e){var t,n=e instanceof hn?e.get():e;return Array.from(new Set((t=n)?Array.isArray(t)?t:[t]:[]))};var Qo=((Ko={})[Vo.Target]=Wr((function(e){return function(e,t,n,r){var o=Object(l.useRef)(!0),a=Object(l.useRef)(null);a.current||(a.current=Yo(e,!0)),Object(l.useEffect)((function(){var s,c,l={},u=Yo(e),d=Yo(e,!0);for(var f in u){var p=o.current&&(!n.has(f)||n.get(f).get()!==d[f]),h=null!==d[f],m=(s=a.current[f],void 0!==(c=d[f])&&(Array.isArray(s)&&Array.isArray(c)?!function(e,t){if(null===t)return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(c,s):s!==c));h&&(m||p)&&(l[f]=u[f])}o.current=!1,a.current=i(i({},a.current),d),Object.keys(l).length&&t.start(i(i({},l),{transition:e.transition||r,transitionEnd:e.transitionEnd}))}),[e])}(e.animate,e.controls,e.values,e.transition)})),Ko[Vo.VariantLabel]=Wr((function(e){var t=e.animate,n=e.inherit,r=void 0===n||n,o=e.controls;return function(e,t,n,r){var o=Jo(t),a=Object(l.useContext)(or),i=a.hasMounted&&a.hasMounted.current,s=Object(l.useRef)(!1);Object(l.useEffect)((function(){var t,c,l=!1;n?(l=!!i,o=Jo(a.animate)):l=s.current||(t=Jo(e),c=o,t.join(",")!==c.join(",")),l&&r.start(o),s.current=!0}),[o.join(",")])}(e.initial,t,r,o)})),Ko[Vo.AnimationSubscription]=Wr((function(e){return function(e,t){var n=Object(l.useMemo)((function(){return e.subscribe(t)}),[e]);Object(l.useEffect)((function(){return function(){n&&n()}}),[n])}(e.animate,e.controls)})),Ko),Zo=function(e){return e.animate instanceof nr},ea=["initial","animate","whileTap","whileHover"],ta=((Xo={})[Vo.Target]=function(e){return!(void 0===e.animate||(t=e.animate,Array.isArray(t)||"string"==typeof t)||Zo(e));var t},Xo[Vo.VariantLabel]=function(e){return void 0!==e.variants||ea.some((function(t){return"string"==typeof e[t]}))},Xo[Vo.AnimationSubscription]=Zo,Xo);var na={key:"exit",shouldRender:function(e){return!!e.exit&&!lr(e)},Component:Wr((function(e){var t,n=e.animate,r=e.controls,o=e.exit,a=function(){var e=Object(l.useContext)(rr);if(null===e)return[!0];var t=e.isPresent,n=e.onExitComplete,r=e.register;return Object(l.useEffect)(r,[]),!t&&n?[!1,n]:[!0]}(),s=a[0],c=a[1],u=Object(l.useContext)(rr),d=Object(l.useRef)(!1),f=void 0!==(null===(t=u)||void 0===t?void 0:t.custom)?u.custom:e.custom;Object(l.useEffect)((function(){s?!d.current||!n||n instanceof nr||r.start(n):(!d.current&&o&&(r.setProps(i(i({},e),{custom:f})),r.start(o).then(c)),d.current=!0),s&&(d.current=!1)}),[s])}))},ra=function(e){return!Wo(e)};try{var oa=n(110).default;ra=function(e){return e.startsWith("on")?!Wo(e):oa(e)}}catch(e){}var aa=[qo,co,Kr,na],ia=aa.length;function sa(e){var t="string"==typeof e,n=t&&-1!==dr.indexOf(e);return{renderComponent:function(r,o,a,s,c){var u=t?function(e){var t={};for(var n in e)ra(n)&&(t[n]=e[n]);return t}(s):s,d=n?function(e,t){var n=Pt(Sn(e),void 0,void 0,void 0,void 0,!1);return n.style=i(i({},t),n.style),n}(a,o):function(e,t,n,r){var o={style:Nn(e,t,n)};return r&&(o.style.userSelect="none",o.draggable=!1),o}(a,o,c,!!s.drag);return Object(l.createElement)(e,i(i(i({},u),{ref:r}),d))},loadFunctionalityComponents:function(e,t,n,r,o,a){var s=[],c=function(e){var t=void 0;for(var n in Vo)ta[n](e)&&(t=n);return t?Qo[t]:void 0}(n);c&&s.push(Object(l.createElement)(c,{key:"animation",initial:n.initial,animate:n.animate,variants:n.variants,transition:n.transition,controls:o,inherit:a,values:t}));for(var u=0;u<ia;u++){var d=aa[u],f=d.shouldRender,p=d.key,h=d.Component;f(n,r)&&s.push(Object(l.createElement)(h,i({key:p},n,{parentContext:r,values:t,controls:o,innerRef:e})))}return s},getValueControlsConfig:function(e,t){return{values:t,readValueFromSource:function(t){return zt(e.current).get(t)},makeTargetAnimatable:_o(t,e)}}}}var ca=["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","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","webview"].reduce((function(e,t){var n=sa(t);return e[t]=ur(n),e}),{}),la=dr.reduce((function(e,t){return e[t]=ur(sa(t)),e}),{}),ua=i(i({custom:function(e){return ur(sa(e))}},ca),la);function da(e){return gn((function(){return mn(e)}))}function fa(){return{scrollX:mn(0),scrollY:mn(0),scrollXProgress:mn(0),scrollYProgress:mn(0)}}"undefined"!=typeof window?l.useLayoutEffect:l.useEffect;fa();!function(){function e(){this.componentControls=new Set}e.prototype.subscribe=function(e){var t=this;return this.componentControls.add(e),function(){return t.componentControls.delete(e)}},e.prototype.start=function(e,t){this.componentControls.forEach((function(n){n.start(e.nativeEvent||e,t)}))}}();var pa=mn(null);if("undefined"!=typeof window)if(window.matchMedia){var ha=window.matchMedia("(prefers-reduced-motion)"),ma=function(){return pa.set(ha.matches)};ha.addListener(ma),ma()}else pa.set(!1)},function(e,t,n){var r=n(195),o=n(196);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var s=0;s<16;++s)t[a+s]=i[s];return t||o(i)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";t.a=(e,t)=>Boolean((e=>{const t=e.replace(/\./g,"\\.").replace(/\*/g,".").replace(/\//g,"\\/").replace(/\?/g,"\\?");return new RegExp(t,"i")})(t).test(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n(50),o=n.n(r);const a="kindly-chat-browser-id",i=()=>{const e=localStorage.getItem(a);if(!e){const e=o()();return localStorage.setItem(a,e),e}return e}},function(e){e.exports=JSON.parse('{"a":"2.37.1"}')},function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"n",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"k",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"j",(function(){return y})),n.d(t,"i",(function(){return w})),n.d(t,"o",(function(){return x})),n.d(t,"a",(function(){return O})),n.d(t,"m",(function(){return E})),n.d(t,"b",(function(){return k}));var r=n(18),o=n(5),a=n(80),i=n(2),s=n(69),c=n(9);const l=(e,t)=>{if(e.feedbackFormType===o.r.NONE)return!1;if(e.feedbackFormType===o.r.EXTERNAL_LINK){var n,r,a;const{feedbackForm:o}=e;return(null===(n=o.external_link_url)||void 0===n?void 0:n[t])&&((null===(r=o.external_link_headline)||void 0===r?void 0:r[t])||(null===(a=o.external_link_text)||void 0===a?void 0:a[t]))}return!0},u=e=>(t,n)=>{const{chatHasStarted:r}=n().chatbubble;t({type:i.rb,botKey:e}),r&&t(Object(s.a)())},d=function(e){let{skipRestart:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(n,r)=>{const{botKey:o,chatHasStarted:a}=r().chatbubble;n({type:i.db,code:e}),!t&&a&&n(Object(c.d)(o,!0))}},f=()=>e=>{e({type:i.n})},p=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(t,n)=>{const{bot:o,chatbubble:{currentLanguage:a,botKey:s,optionsScreenOpen:u},connection:{token:d},feedback:{feedbackFormOpen:f},messages:{chatMessages:p},agent:{hasHadHandover:h}}=n(),m=o.noFeedbackAfterHandover&&h;u&&t({type:i.q}),!e&&l(o,a)&&!f&&p&&!m&&p.length>1&&setTimeout(()=>t({type:i.L,token:d}),o.fullscreenMode?0:1500),t(Object(c.d)(s,e));try{Object(r.disconnect)()}catch(e){console.error(e)}}},h=()=>e=>{e({type:i.N})},m=()=>(e,t)=>{const{optionsScreenOpen:n}=t().chatbubble;n&&e({type:i.q})},g=()=>(e,t)=>{const{token:n,feedbackFormOpen:r}=t().feedback;(n||r)&&e({type:i.o}),e({type:i.Y,chatHasStarted:!0})},b=()=>(e,t)=>{const{pushMessages:n,alerts:r,bot:a,chatbubble:s,nudge:c}=t();n.show&&e({type:i.B}),c.show&&e({type:i.A}),(r.showTabNotification||r.showBubbleNotification)&&e({type:i.z}),e({type:i.K}),s.chatHasStarted||a.welcomePage&&a.welcomePageType!==o.s.NONE||e({type:i.Y,chatHasStarted:!0})},v=()=>(e,t)=>{const{active:n,previouslyPoppedUp:r}=t().chatbubble;n||r||(e(b()),e({type:i.Q}))},y=()=>e=>{e({type:i.ib,userIsIdle:!0}),Object(a.b)()},w=e=>(t,n)=>{const{userIsIdle:r}=n().chatbubble;r&&(t({type:i.ib,userIsIdle:!1}),Object(a.a)(e))},x=e=>(t,n)=>{var r,o;const{chatbubble:{contactDetailsButton:a}}=n();(null==a||null===(r=a.contact_details)||void 0===r?void 0:r.contact_type)===(null==e||null===(o=e.contact_details)||void 0===o?void 0:o.contact_type)?t({type:i.D}):t({type:i.kb,button:e})},O=e=>t=>{t({type:i.f,button:e})},E=e=>t=>{0===e.length?t({type:i.k}):t({type:i.X,files:e})},k=()=>e=>{e({type:i.g})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d}));var r=n(1),o=n(6),a=n(42);const i=r.c.label.withConfig({displayName:"styles__CheckboxContainer",componentId:"sc-1ot9z69-0"})(["display:inline-flex;cursor:pointer;"]),s=r.c.svg.withConfig({displayName:"styles__CheckboxIcon",componentId:"sc-1ot9z69-1"})(["fill:none;stroke:white;stroke-width:2px;"]),c=r.c.div.withConfig({displayName:"styles__StyledCheckbox",componentId:"sc-1ot9z69-2"})(["display:inline-block;width:16px;height:16px;border-radius:3px;transition:all 150ms;background:",";",";","{visibility:hidden;}"],e=>{let{theme:{buttonBackground:t}}=e;return t},e=>{let{theme:{buttonBackground:t}}=e;return Object(a.b)(t)?"filter: brightness(0.7);":"filter: opacity(0.3);"},s),l=r.c.input.attrs({type:"checkbox"}).withConfig({displayName:"styles__HiddenCheckbox",componentId:"sc-1ot9z69-3"})(["height:16px;width:16px;opacity:0;position:absolute;&:focus ~ ","{box-shadow:0 0 0 3px ",";}&:checked ~ ","{background:",";filter:opacity(1);","{visibility:visible;}}"],c,e=>{let{theme:{buttonBackground:t}}=e;return t},c,e=>{let{theme:{buttonBackground:t}}=e;return t},s),u=r.c.div.withConfig({displayName:"styles__CheckboxLabel",componentId:"sc-1ot9z69-4"})(["margin-left:12px;font-size:",";font-weight:400;"],o.d.fontSizeP),d=r.c.div.withConfig({displayName:"styles__CheckboxWrapper",componentId:"sc-1ot9z69-5"})(["margin-top:12px;"])},function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return g.a})),n.d(t,"b",(function(){return b.a}));var r=n(70),o=(n(4),n(0)),a=n.n(o),i=n(36),s=n(1),c=n(6);const l=s.c.div.withConfig({displayName:"styles__MaxLengthWrapper",componentId:"sc-bl0zra-0"})(["position:absolute;top:50%;transform:translateY(-50%);right:8px;font-size:",";color:",";"],c.d.fontSize12,c.h.textColorLight);var u=e=>{let{fieldName:t,maxLength:n,control:r}=e;const o=Object(i.d)({control:r,name:t});return a.a.createElement(l,null,`${o.length}/${n}`)},d=n(27);const f=s.c.div.withConfig({displayName:"styles__InputWrapper",componentId:"sc-1cahfhf-0"})(["position:relative;display:flex;"]),p=s.c.input.withConfig({displayName:"styles__Input",componentId:"sc-1cahfhf-1"})(["background-color:",";color:",";padding:",";border-radius:18px;border:1px solid transparent;outline:none;flex:1;&::placeholder{opacity:0.42;}&:invalid{border:1px solid ",";}"],e=>{let{theme:t}=e;return t.inputBackground},e=>{let{theme:t}=e;return t.inputText},e=>{let{hasRightAdornment:t}=e;return t?"10px 56px 10px 16px":"10px 16px"},c.a.errorColor),h=e=>{let{autoComplete:t,name:n,type:r,register:o,validators:i,getValues:s,control:c,id:l,currentLanguage:h,...m}=e;const g=null==i?void 0:i.reduce((e,t)=>t.maxLength?t.maxLength:0,0);return a.a.createElement(f,null,a.a.createElement(p,Object.assign({autoComplete:t,name:n,type:r,hasRightAdornment:g,id:l||`input__${r}_${n}`},o&&{...o(n,Object(d.a)(i,h))},m)),!!g&&c&&n&&a.a.createElement(u,{fieldName:n,control:c,maxLength:g}))};h.defaultProps={getValues:()=>{},register:null,autoComplete:"off",id:null,validators:null,currentLanguage:"en"};var m=h,g=n(96),b=n(95)},function(e,t,n){"use strict";var r=n(4),o=n.n(r);o.a.oneOfType([o.a.node,o.a.arrayOf(o.a.node)])},function(e,t,n){"use strict";var r=n(4),o=n.n(r),a=n(5),i=n(122);o.a.shape({message:o.a.string,from_bot:o.a.bool,image_carousel:o.a.arrayOf(o.a.object),thon_image_above_text:o.a.bool,exchange_type:o.a.string,exchange_id:o.a.string,avatar:o.a.string,sender:o.a.oneOf(Object.values(a.l)),skill_subscription_id:o.a.number,bot_id:o.a.number,score:o.a.number,title:o.a.string,reply_candidates:i.a,is_followup:o.a.bool,handler:o.a.oneOf(Object.values(a.f)),corrected_message:o.a.string,new_context:o.a.objectOf(o.a.string)})},function(e,t,n){e.exports=n(177)},function(e,t,n){"use strict";t.a=()=>{}},function(e,t,n){"use strict";var r=n(240);t.a=e=>"number"==typeof e?new Date(e):Object(r.a)(e)},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return s}));var r=n(123),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function i(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,l=t,u=[],d=u,f=!1;function p(){d===u&&(d=u.slice())}function h(){if(f)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(f)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=d.indexOf(e);d.splice(n,1),u=null}}}function g(e){if(!i(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,l=c(l,e)}finally{f=!1}for(var t=u=d,n=0;n<t.length;n++){(0,t[n])()}return e}function b(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,g({type:a.REPLACE})}function v(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e}return g({type:a.INIT}),(o={dispatch:g,subscribe:m,getState:h,replaceReducer:b})[r.a]=v,o}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},a=0;a<s.length;a++){var l=s[a],u=n[l],d=e[l],f=u(d,t);if(void 0===f){var p=c(l,t);throw new Error(p)}o[l]=f,r=r||f!==d}return(r=r||s.length!==Object.keys(e).length)?o:e}}function u(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return h({},n,{dispatch:r=m.apply(void 0,a)(n.dispatch)})}}}},function(e,t,n){var r=n(28);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){var r=n(66),o=n(113),a=n(91);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(51);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(64);e.exports=function(e){if(r(e))return e;throw TypeError(String(e)+" is not an object")}},function(e,t,n){"use strict";var r=n(4),o=n.n(r),a=n(5),i=n(85);t.a=o.a.shape(Object(i.a)(e=>({[e]:o.a.func}),Object.values(a.b)))},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return f}));var r=n(18),o=n(5),a=n(2),i=n(30),s=n(9);const c=()=>(e,t)=>{const{connected:n}=t().connection;n||e({type:a.r})},l=()=>(e,t)=>{const{connected:n}=t().connection;n&&e({type:a.w})},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=JSON.parse(window.localStorage.getItem("pusherTransportEncrypted"));t.indexOf("ws")<0&&n&&"ws"!==n.transport&&window.localStorage.removeItem("pusherTransportEncrypted"),Object(r.startConfiguration)({auth:{...Object(s.a)({token:e},{withVersion:!0})},disabledTransports:t}),Object(s.e)(e)},d=function(){let{triggerDialogueSlug:e,languageCode:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return async(n,c)=>{const{local:{context:l},chatbubble:{botKey:d,currentLanguage:f,disabledTransports:p},environment:{PAT_HOST:h,VERSION:m},bot:{includeDisabledLanguages:g}}=c(),b={context:l,language_code:t||f,trigger_dialogue_slug:e,include_disabled_languages:g,version:m},v=await n(Object(s.f)({method:"post",url:`${h}/chatbubble/${o.j}/connect`,params:b,...Object(s.a)({botKey:d},{withCurrentUrl:!0})}));if(!v)return;const{pusherConnected:y}=c().connection;if(y)try{Object(r.disconnect)()}catch(e){console.warn(e)}const{token:w,chat_id:x,created:O,all_greetings_hide_input:E}=v.data;n({type:a.J,token:w}),n({type:a.H,chatId:x,allGreetingsHideInput:E}),n({type:a.hb,startedAt:O}),n(Object(s.c)((new Date).toISOString())),u(w,p),n(Object(i.a)())}},f=e=>t=>t({type:a.s,triggerConfig:e})},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(22),i=n(56);const s=e=>{let{name:t,label:n,style:r,register:s,id:c,...l}=e;return o.a.createElement(i.a,{htmlFor:c||t&&`${a.a.CHECKBOX}_${t}`},o.a.createElement(i.e,Object.assign({name:t,type:a.a.CHECKBOX,id:c||t&&`${a.a.CHECKBOX}_${t}`},s&&{...s(t)},l)),o.a.createElement(i.f,null,o.a.createElement(i.b,{viewBox:"0 0 24 24"},o.a.createElement("polyline",{points:"20 6 9 17 4 12"}))),o.a.createElement(i.c,null,n&&n))};s.defaultProps={style:{},register:null,id:null},t.a=s},function(e,t,n){"use strict";n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return x})),n.d(t,"f",(function(){return O})),n.d(t,"h",(function(){return E})),n.d(t,"d",(function(){return C})),n.d(t,"i",(function(){return j})),n.d(t,"a",(function(){return A})),n.d(t,"e",(function(){return N})),n.d(t,"g",(function(){return M}));var r=n(50),o=n.n(r),a=n(22),i=n(5),s=n(17),c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(e).reduce((e,n)=>{let[r,o]=n;return{...e,...Object(s.a)(r,t)?{}:{[r]:o}}},{})}},l=function(){let{status:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!(e>=200&&e<=299)},u=n(48),d=n(2),f=n(94),p=n(30),h=n(55),m=n(69),g=n(78),b=n(9),v=n(44);const y=e=>{const{PAT_HOST:t}=e().environment,{local:n,chatbubble:{botKey:r},connection:{token:o},messages:{forms:a}}=e();return{token:o,PAT_HOST:t,botKey:r,local:n,forms:a}},w=(e,t,n)=>(r,o)=>{const{botKey:a}=y(o);r(Object(b.d)(a,!0)),localStorage.setItem("kindly-chat-restart-message",JSON.stringify({message:e,exchangeId:t,newContext:n}))},x=(e,t)=>async(n,r)=>{const{PAT_HOST:o,token:a}=y(r),s=await n(Object(p.b)()),{headers:c}=Object(b.a)({token:a},{withCurrentUrl:!0,extra:s}),u={message:e,temporaryId:t},f=await n(Object(b.f)({method:"post",url:`${o}/chatbubble/${i.j}/message/`,data:u,headers:c},{onError:e=>{var r;n({type:d.Ab,temporaryId:t,status:null==e||null===(r=e.response)||void 0===r?void 0:r.status})}}));l(f)||(n({type:d.Ab,...f.data}),n(Object(v.e)()))},O=e=>t=>{t({type:d.ab,formData:e})},E=function(e,t,n){let{responsePromise:r,tempId:s}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=arguments.length>4?arguments[4]:void 0;return async(u,f)=>{const{PAT_HOST:h,token:m,local:g,forms:w}=y(f);w&&Object.values(w).forEach(e=>{(null==e?void 0:e.formSubmitState)===a.b.ACTIVE&&u(O({...e,formSubmitState:a.b.UNANSWERED}))});const x=s||o()();u({type:d.I,data:{id:x,created:(new Date).toISOString(),message:e,buttonType:c}}),u(Object(b.c)((new Date).toISOString()));const E=await u(Object(p.b)()),{headers:k}=Object(b.a)({token:m},{withCurrentUrl:!0,extra:E}),_={message:e,exchange_id:t,temporaryId:x,new_context:{...g.context,...n||{}}},C=r?await r:await u(Object(b.f)({method:"post",url:`${h}/chatbubble/${i.j}/message/`,data:_,headers:k},{onError:e=>{var t;console.error(`/chatbubble/${i.j}/message returned ${e.response.status}`),u({type:d.Ab,temporaryId:x,status:null==e||null===(t=e.response)||void 0===t?void 0:t.status}),u({type:d.i,isTyping:!1})}}));l(C)||(u({type:d.Ab,...C.data}),u(Object(v.e)()))}},k=e=>({...e,temporaryId:o()()}),_=e=>{let{temporaryId:t}=e;return t},C=()=>async(e,t)=>{var n;const{bot:{id:r},chatbubble:{chatId:a,attachments:s},connection:{token:u},environment:{PAT_HOST:f}}=t(),h=await e(Object(p.b)()),{headers:m}=Object(b.a)({token:u},{extra:h}),g=o()(),v=s.files.map(k).map(c("file"));e({type:d.G,data:{attachments:v}}),e({type:d.k}),e({type:d.I,data:{id:g,created:(new Date).toISOString(),attachment_ids:v.map(_),message:""}}),e(Object(b.c)((new Date).toISOString()));const y=(t,n)=>{var r;e({type:d.Ab,temporaryId:g,status:null==t||null===(r=t.response)||void 0===r?void 0:r.status}),n?e({type:d.zb,attachment:{...n,status:i.a.ERROR}}):v.forEach(t=>e({type:d.zb,attachment:{...t,status:i.a.ERROR}}))},w=v.map(c("file","url")),x=`${f}/chatbubble/${i.j}/attachment/create`,O={attachments:w,temporaryChatMessageId:g},E=await e(Object(b.f)({method:"post",url:x,data:O,headers:m},{onError:e=>y(e)}));if(l(E)||!Array.isArray(null==E||null===(n=E.data)||void 0===n?void 0:n.attachments))return;const[C,j]=E.data.attachments.reduce((t,n)=>{let[r,o]=t,{id:a,temporary_id:i,upload_url:s}=n;return e({type:d.zb,attachment:{temporaryId:i,id:a}}),[[...r,a],[...o,s]]},[[],[]]),T={"x-goog-upload-bot-id":r,"x-goog-upload-chat-id":a},S=(I=s.files,A=j,"number"!=typeof(null==I?void 0:I.length)||I.length!==(null==A?void 0:A.length)?(console.error("Trying to zip non-array of arrays of unequal length"),[]):I.map((e,t)=>[e,A[t]])).map(async t=>{let[{file:n,...r},o]=t;const a=await(e=>new Promise((t,n)=>{const r=new FileReader;r.readAsArrayBuffer(e),r.onload=()=>t(r.result),r.onabort=()=>n(new Error(r.error))}))(n),i={...T,"Content-Type":n.type};return await e(Object(b.f)({method:"put",url:o,data:a,headers:i},{onError:e=>y(e,r)}))});var I,A;if((await Promise.all(S)).some(l))return;const N=`${f}/chatbubble/${i.j}/attachment/uploads-complete`,P={attachmentIds:C,temporaryChatMessageId:g,exchangeId:s.exchangeId};e(Object(b.c)((new Date).toISOString())),e(Object(b.f)({method:"post",url:N,data:P,headers:m},{onError:e=>y(e)}))},j=function(e){let{openChat:t,languageCode:n,tempId:r,responsePromise:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async(s,c)=>{const{connection:{token:u},chatbubble:{currentLanguage:f}}=c(),{PAT_HOST:p}=c().environment;if(!u){const r={triggerDialogueSlug:e,languageCode:n,openChat:t};return s(Object(m.c)(r)),s(Object(h.g)()),void(t&&s(Object(h.k)()))}if(n&&n!==f){const e="Tried to trigger a dialogue in another language on an existing chat";s(Object(b.b)({message:e,level:"error",extra:{languageCode:n,currentLanguage:f}}))}const g=r||o()();s({type:d.xb,data:{id:g,created:(new Date).toISOString(),exchangeId:e}}),s(Object(b.c)((new Date).toISOString()));const y={exchange_id:e,temporaryId:g},{headers:w}=Object(b.a)({token:u},{withCurrentUrl:!0}),x=a?await a:await s(Object(b.f)({method:"post",url:`${p}/chatbubble/${i.j}/trigger/`,data:y,headers:w}));l(x)||(t&&s(Object(h.k)()),s(Object(v.e)()))}},T=(e,t)=>!!t.find(t=>{let{buttons:n=[]}=t;return!!n.find(t=>{let{language_code:n,button_type:r}=t;return n===e&&Object(u.a)(r)===i.b.HANDOVER_REQUEST})}),S=(e,t)=>n=>{n({type:d.j,buttonClick:{chatMessageId:e.id,buttonId:t.id,time:(new Date).toISOString()}})},I=(e,t,n)=>async(r,o)=>{const{connection:{token:a},environment:{PAT_HOST:s,VERSION:c}}=o(),l=await r(Object(p.b)()),{headers:u}=Object(b.a)({token:a},{withCurrentUrl:!0,extra:l}),d={button:t,chatMessage:e,temporaryId:n,version:c},f=(null==(h=t.button_type)?void 0:h.toLowerCase())===i.b.PRIVACY_EXPORT.toLowerCase()?Object(g.c)():{};var h;return r(Object(b.f)({method:"post",url:`${s}/chatbubble/${i.j}/button/click/`,data:d,headers:u,...f}))},A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return async(a,s)=>{const{environment:{VERSION:c},messages:{chatMessages:l},chatbubble:{currentLanguage:p},local:m}=s(),v=Object(u.a)(e.button_type),y=o()(),w={};r.length>0&&r.forEach(e=>{var r,o,s;if(e.button_type===i.b.SLIDER.toLowerCase()&&null!==(r=e.slider_details)&&void 0!==r&&r.value)w[null===(o=e.label)||void 0===o?void 0:o.toLowerCase()]=null===(s=e.slider_details)||void 0===s?void 0:s.value,a(S(a,t));else if(e.button_type===i.b.CHECKBOX.toLowerCase()){n.find(t=>t.id===e.id)?(w[e.value]=e.value,a(S(t,e)),a(I(t,e,y))):w[e.value]=""}else w[e.value]=""});const x=a(I(t,{...e,new_context:{...m.context,...w||{}}},y));switch(a({type:d.j,buttonClick:{chatMessageId:t.id,buttonId:e.id||e._id,time:(new Date).toISOString()}}),v){case i.b.QUICK_REPLY:{const n={responsePromise:x,tempId:y};a(E(e.value,t.exchange_id,e.new_context,n,e.button_type));break}case i.b.HANDOVER_REQUEST:if(!T(p,l)){const e={version:c};a(Object(b.b)({message:"Requested handover with no button",level:"error",extra:e}))}a(Object(f.b)(x));break;case i.b.DIALOGUE_TRIGGER:case i.b.SUGGESTION_DIALOGUE_TRIGGER:a(j(e.value,{tempId:y,responsePromise:x}));break;case i.b.PRIVACY_EXPORT:a(Object(g.b)({responsePromise:x}));break;case i.b.PRIVACY_DELETE:a(Object(g.a)({responsePromise:x}));break;case i.b.CONTACT_DETAILS:a(Object(h.o)(e));break;case i.b.UPLOAD_ATTACHMENT:a(Object(h.a)(e))}}},N=(e,t)=>async(n,r)=>{const{connection:{token:a},environment:{PAT_HOST:s,VERSION:c}}=r(),u=o()(),f=e.contact_details.contact_type,h={...e,button_type:i.b.edit_contact_details};n({type:d.I,data:{id:u,created:(new Date).toISOString(),message:t,buttons:[h],isContactDetails:!0}});const m=await n(Object(p.b)()),{headers:g}=Object(b.a)({token:a},{withCurrentUrl:!0,extra:m}),v={contactType:f,value:t,version:c,buttons:[h],temporaryId:u},y=await n(Object(b.f)({method:"post",url:`${s}/chatbubble/${i.j}/button/contact-details/`,data:v,headers:g}));l(y)||n({type:d.Ab,...y.data})},P=((e,t,n)=>{let r,o=[];return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];n&&o.push(i),clearTimeout(r),r=setTimeout(()=>{n||e(...i);const t=o.slice(1).reduce((e,t)=>n(t,e),o[0]);e(...t),o=[]},t)}})(async(e,t,n)=>{let{id:r,index:o}=e;const{connection:{token:a},environment:{PAT_HOST:s,VERSION:c}}=n(),l=await t(Object(p.b)()),{headers:u}=Object(b.a)({token:a},{withCurrentUrl:!0,extra:l}),f={chatMessageId:r,version:c};t({type:d.eb,id:r,index:o}),t(Object(b.f)({method:"patch",url:`${s}/chatbubble/${i.j}/message-seen`,data:f,headers:u}))},1500,(e,t)=>{const[{index:n}]=e,[{index:r}]=t;return n>r?e:t}),M=(e,t)=>(n,r)=>P({id:e,index:t},n,r)},function(e,t,n){"use strict";e.exports=n(175)},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));const r=["load","message"],o="See https://docs.kindly.ai/api/chat#handlers for how to switch.";const a=(e,t,n,a)=>{var i,s;if(-1!==r.indexOf(e)&&Boolean(a)&&function(e,t,n){const r=`on${t.charAt(0).toUpperCase()+t.slice(1)}`;if("function"!=typeof e)return void console.warn(`Provided setting '${r}' is not a function.`);console.warn(`kindlyOptions.${r} is deprecated in favor of standard event handlers. ${o}`);const a=Object.values(n);try{e(...a)}catch(e){console.error(e)}}(a,e,t),"API"!==n)return;if(null===(i=window)||void 0===i||null===(s=i.kindlyChat)||void 0===s||!s.APIRoot)return void console.warn("No APIRoot when rendered using kindly-chat API");"message"===e&&window.kindlyChat.APIRoot.dispatchEvent(new CustomEvent("onMessage",{detail:t}));const c=`kindly:${e}`;window.kindlyChat.APIRoot.dispatchEvent(new CustomEvent(c,{detail:t,bubbles:!0}))};function i(e,t,n,r){e&&a("message",{newMessage:e,chatLog:t},r,n)}function s(e){a("load",{settings:e},null==e?void 0:e.renderedBy,null==e?void 0:e.onLoad)}const c=(e,t,n,r,a,i,s)=>{let c=!1;const l=null==e?void 0:e[n];if(l){console.warn(`kindlyOptions.buttonHandlers is deprecated in favor of standard event handlers. ${o}`);try{c=Boolean(l(t,r,a,i,n))}catch(e){console.error(e)}}return"API"===s&&(c=!window.kindlyChat.APIRoot.dispatchEvent(new CustomEvent("kindly:buttonclick",{detail:{button:r,lastMessage:a,chatLog:i,buttonType:n},bubbles:!0,cancelable:!0}))),c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n(17),o=n(2);const a={TAKEOVER:"takeover",MESSAGE:"message"},i=e=>(t,n)=>{const{dismissedMessages:i}=n().pushMessages,{autopopupTime:s,enabled:c,title:l,message:u}=e;if(!c||Object(r.a)(l,i))return;const d={type:o.ob,pushMessageTitle:l,pushMessageType:a.MESSAGE,pushMessageText:u};s&&0!==s?setTimeout(()=>t(d),s):t(d)},s=()=>(e,t)=>{const{show:n}=t().pushMessages;n&&e({type:o.B})}},function(e,t,n){"use strict";var r=n(0);t.a=(e,t)=>{const n=Object(r.useRef)();return Object(r.useCallback)(r=>{new Date-n.current<t||(e(r),n.current=new Date)},[t,e])}},function(e,t,n){"use strict";t.a=e=>{const t=(null!=e?e:"").toLowerCase();return"external_link"===t?"link":"handover_request"===t?"takeover_request":t}},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(3),i=n(73),s=n(10),c=e=>{let{styles:t={},...n}=e;return o.a.createElement("svg",Object.assign({viewBox:"0 0 1792 1792",xmlns:"https://www.w3.org/2000/svg"},n),o.a.createElement("path",{d:"M1408 928v320q0 119-84.5 203.5T1120 1536H288q-119 0-203.5-84.5T0 1248V416q0-119 84.5-203.5T288 128h704q14 0 23 9t9 23v64q0 14-9 23t-23 9H288q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113V928q0-14 9-23t23-9h64q14 0 23 9t9 23zm384-864v512q0 26-19 45t-45 19-45-19l-176-176-652 652q-10 10-23 10t-23-10L695 983q-10-10-10-23t10-23l652-652-176-176q-19-19-19-45t19-45 45-19h512q26 0 45 19t19 45z",fill:"#fff"}))},l=n(5),u=n(75),d=(n(121),n(59),n(8)),f=n(7),p=n(105),h=n(81),m=n(17),g=n(48),b=n(21),v=n(70),y=n(96);const w=n(1).c.div.withConfig({displayName:"styles__CheckboxWrapper",componentId:"sc-sn3ww8-0"})(["position:absolute;left:12px;top:50%;transform:translateY(-40%);"]),{EXTERNAL_LINK:x,EMAIL:O,PHONE:E,CHECKBOX:k,SLIDER:_}=l.b,C=e=>{let{button:t,setCheckboxValue:n,checked:l,chatMessage:C,disabled:j=!1,handlers:T=null,hasSuggestion:S=!1,isNudge:I=!1,onClick:A=null,submitButtonsList:N}=e;const P=Object(a.c)(),M=Object(g.a)(t.button_type),{chatMessages:R,buttonClicks:L}=Object(a.d)(f.m)||[],D=Object(a.d)(f.e)||[],B=Object(m.a)(M,[x,E,O]),z=Object(m.a)(M,[k]),F=Object(m.a)(M,[_]),U=Boolean(l.find(e=>e.id===t.id)),H=Object(r.useRef)(N);let $="";M===E&&($="tel:"),M===O&&($="mailto:");const V=e=>{const n=parseFloat(e);var r;n&&Array.isArray(H.current)&&(null===(r=H.current)||void 0===r||r.map(e=>e.id===t.id?(e.slider_details.value=n,e):e))},q=Object(r.useCallback)(e=>{if(e.preventDefault(),Object(i.a)(e,T,M,Object(p.a)(t),Object(h.a)(C||{}),R.map(h.a),null==D?void 0:D.renderedBy))return;"function"==typeof A&&A(),P(Object(d.g)(t,C,l,H.current));const{href:n,target:r}=e.target;if(n){const e=Boolean(r);setTimeout(()=>{e?window.open(n,r):window.location.href=n},250)}},[M,C,R,t,P,T,l,H,A,null==D?void 0:D.renderedBy]),G=Object(u.a)(q,3e3),W=(null!=L?L:[]).find(e=>{let{chatMessageId:n,buttonId:r}=e;return n===(null==C?void 0:C.id)&&r===t.id}),Y=Object(r.useCallback)(()=>{n(t)},[t,n]);return Object(r.useEffect)(()=>{W&&z&&!U&&n(t)},[W,z,t,n,U]),F&&null!=t&&t.slider_details?o.a.createElement("div",null,o.a.createElement(y.a,{name:`slider_${t.id}`,onChange:V,from:t.slider_details.from_value,to:t.slider_details.to_value,value:t.slider_details.value,step:t.slider_details.step_value,affix:t.slider_details.affix,affixValue:t.slider_details.affix_value})):o.a.createElement(b.b,Object.assign({truncateText:S,cy:"message-button",color:!z,type:"button"},B&&{href:`${$}${M===x?(K=t.value,K.match(/^https?:\/\//i)?K:`http://${K}`):t.value}`},B&&{target:`${M!==x||I?"_self":"_blank"}`},z&&{style:{backgroundColor:"transparent",background:"transparent"}},{icon:M===x&&I&&o.a.createElement(s.b,{fill:"#FFF",width:10,height:16})||M===x&&!I&&o.a.createElement(c,{width:14,height:14}),disabled:j,onClick:e=>{z?Y():G(e)},hasBeenClicked:W}),z&&o.a.createElement(w,null,o.a.createElement(v.a,{onChange:Y,checked:U})),t.label);var K};C.defaultProps={checked:[]};t.a=C},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d}));var r=n(159),o=n.n(r),a=n(5);function i(e){if(!e)return null;const t=e.match(/filename="(.+)"/);return t&&2===t.length?t[1]:null}var s=n(2),c=n(9);const l=()=>({transformResponse:e=>e,responseType:"text"}),u=function(){let{responsePromise:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"html";return async(n,r)=>{var s;let u=e?await e:null;if(!u){const{connection:{token:e},environment:{PAT_HOST:o}}=r(),i=`${o}/chatbubble/${a.j}/privacy/export/${t}`,{headers:s}=Object(c.a)({token:e}),d=l();u=await n(Object(c.f)({method:"get",url:i,...d,headers:s}))}if(200!==(null===(s=u)||void 0===s?void 0:s.status))return;const{headers:d,data:f}=u,p=i(d["content-disposition"])||"export.json",h=new Blob([f],{type:d["content-type"]});o()(h,p)}},d=function(){let{responsePromise:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return async(t,n)=>{const{connection:{token:r},chatbubble:{botKey:o},environment:{PAT_HOST:i}}=n(),l=`${i}/chatbubble/${a.j}/privacy/delete/`,u=e?await e:await t(Object(c.f)({method:"delete",url:l,...Object(c.a)({token:r})}));200===(null==u?void 0:u.status)&&(setTimeout(()=>t(Object(c.d)(o)),5e3),t({type:s.v}),t({type:s.V}))}}},function(e,t,n){"use strict";var r=n(72),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=c(t),m=c(n),g=0;g<i.length;++g){var b=i[g];if(!(a[b]||r&&r[b]||m&&m[b]||s&&s[b])){var v=f(n,b);try{l(t,b,v)}catch(e){}}}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n(158);let o,a;const i=e=>(t,n)=>{const{SAGE_WS_HOST:i}=n().environment;if(!o||!o.isConnected())try{o=new r.Socket(`${i}/chatbubble/socket`),o.connect()}catch(e){console.warn("Could not connect to sage socket",e)}try{a=o.channel(`chatbubble_active:${e}`),a.join()}catch(e){console.warn("Could not join active channel",e)}},s=()=>{if(o&&a)try{a.leave()}catch(e){console.warn("Could not leave active channel",e)}if(o)try{o.disconnect()}catch(e){console.warn("Could not disconnect from sage socket",e)}}},function(e,t,n){"use strict";var r=n(105);t.a=e=>{let{buttons:t=[],...n}=e;return{...n,buttons:t.map(r.a)}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(1),o=n(6);const a=r.c.div.withConfig({displayName:"styles__FormWrapper",componentId:"sc-147n8gc-0"})(["padding:12px;box-shadow:0px 0px 1px rgba(0,0,0,0.24),0px 2px 6px rgba(0,0,0,0.04);border-radius:6px;margin:3px 0 2px;"]),i=r.c.form.withConfig({displayName:"styles__Form",componentId:"sc-147n8gc-1"})(["display:flex;flex-direction:column;flex:1;"]),s=r.c.div.withConfig({displayName:"styles__FormTitle",componentId:"sc-147n8gc-2"})(["font-size:",";font-weight:500;display:flex;align-items:center;& > svg{margin-right:4px;}"],o.d.fontSizeP),c=r.c.div.withConfig({displayName:"styles__FormActionsWrapper",componentId:"sc-147n8gc-3"})(["display:flex;flex-direction:row;align-self:flex-end;justify-content:flex-end;margin-top:36px;& > button{&:last-child{margin-left:12px;}}"])},function(e,t){e.exports={}},function(e,t,n){var r=n(120),o=n(28),a=n(135),i=n(40)("toStringTag"),s="Arguments"==a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:s?a(t):"Object"==(r=a(t))&&o(t.callee)?"Arguments":r}},function(e,t,n){"use strict";t.a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce((t,n)=>({...t,...e(n)}),{})}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){var r=n(205),o=n(136);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(114),o=n(39),a=n(28),i=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(65);e.exports=function(e,t,n,o){o&&o.enumerable?e[t]=n:r(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));const r="v2",o=Object.freeze(["agent","alerts","bot","chatbubble","feedback","privacy","websocketFallback","lightbox","nudge"])},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(5),o=n(2),a=n(9),i=n(44);const s=e=>async t=>{const n=await e;200===(null==n?void 0:n.status)&&(t({type:o.vb,...n.data,requestedTakeover:!0}),t(Object(i.e)()))},c=()=>(e,t)=>{const{connection:{token:n},environment:{PAT_HOST:i}}=t();e(Object(a.f)({method:"post",url:`${i}/chatbubble/${r.j}/takeover_cancel/`,...Object(a.a)({token:n})})),e({type:o.ub})},l=()=>(e,t)=>{const{connection:{token:n},environment:{PAT_HOST:i}}=t();e({type:o.Cb}),e(Object(a.f)({method:"post",url:`${i}/chatbubble/${r.j}/user_started_typing/`,...Object(a.a)({token:n})}))},u=()=>(e,t)=>{const{connection:{token:n},environment:{PAT_HOST:i}}=t();e({type:o.Db}),e(Object(a.f)({method:"post",url:`${i}/chatbubble/${r.j}/user_stopped_typing/`,...Object(a.a)({token:n})}))}},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(36),i=n(22),s=n(35),c=n(27),l=n(70),u=n(56);t.a=e=>{let{name:t,control:n,list:d,validators:f,formId:p,register:h,setError:m,clearErrors:g,currentLanguage:b}=e;const v=Object(a.d)({control:n,name:d.map(e=>Object(s.a)({...e,type:i.a.CHECKBOX},p))}),y=Object(a.c)({control:n,name:d.map(e=>Object(s.a)({...e,type:i.a.CHECKBOX},p))});return Object(r.useEffect)(()=>{if(f)for(let e=0;e<f.length;e+=1){Object.keys(f[e]).forEach(n=>{var r;"texts"!==n&&(n&&(v.some(e=>!!e)?g(t):m(t,{type:n,message:y.isDirty||y.isSubmitted?null===(r=Object(c.b)(f[e].texts,b))||void 0===r?void 0:r.message:""})))})}},[v,f,m,g,p,d,t,b,y]),d.map(e=>{var t;return o.a.createElement(u.d,{key:`${e.slug}_${e.order}`},o.a.createElement(l.a,{register:h,value:e.value,label:null===(t=Object(c.b)(e.texts,b))||void 0===t?void 0:t.label,name:Object(s.a)({...e,type:i.a.CHECKBOX},p)}))}).sort(e=>e.order)}},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(5),i=n(1);const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.replace("#","");3===n.length&&(n=`${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`);const r=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),a=parseInt(n.substring(4,6),16);return t>1&&t<=100&&(t/=100),`rgba(${r},${o},${a},${t})`},c=i.c.div.withConfig({displayName:"styles__SliderWrapper",componentId:"sc-1isvbdy-0"})(["margin:6px 0;display:flex;flex-direction:column;position:relative;padding:12px 12px 16px 12px;width:100%;border-radius:6px;border:",";"],e=>{let{theme:t}=e;return`1px solid ${t.botMessageBackground}`}),l=i.c.div.withConfig({displayName:"styles__SliderAffix",componentId:"sc-1isvbdy-1"})(["padding:0px 8px;font-size:14px;"]),u=i.c.div.withConfig({displayName:"styles__SliderInfoContainer",componentId:"sc-1isvbdy-2"})(["position:relative;flex:1;display:flex;align-items:center;flex-direction:row;margin-bottom:28px;"]),d=i.c.span.withConfig({displayName:"styles__SliderInfo",componentId:"sc-1isvbdy-3"})(["display:flex;padding:4px;align-items:center;justify-content:center;font-size:14px;"]),f=i.c.div.withConfig({displayName:"styles__SliderContainer",componentId:"sc-1isvbdy-4"})(["position:relative;display:flex;flex:1;"]),p=Object(i.b)(["height:20px;width:20px;border-radius:50%;background:",";cursor:pointer;appearance:none;margin-top:-8px;border:1px solid ",";"],e=>{let{theme:t}=e;return t.buttonBackground},e=>{let{theme:t}=e;return t.buttonText}),h=(e,t,n)=>(e-n)/(t-n)*100,m=i.c.input.attrs(e=>{let{theme:t,value:n,max:r,min:o}=e;return{style:{background:`linear-gradient(to right, ${t.buttonBackground} 0%, ${t.buttonBackground} ${h(n,r,o)}%, ${s(t.buttonBackground,.4)} ${h(n,r,o)}%, ${s(t.buttonBackground,.4)} 100%)`}}}).withConfig({displayName:"styles__Slider",componentId:"sc-1isvbdy-5"})(["cursor:pointer;&[type='range']{appearance:none;width:100%;border-radius:25px;height:6px;&::-webkit-slider-thumb{","}&::-moz-range-thumb{","}&::-webkit-slider-runnable-track{width:100%;height:6px;cursor:pointer;border-radius:25px;}}"],p,p),g=e=>{let{from:t,to:n,value:i,affix:s,affixValue:p,step:h=1,onChange:g,name:b,field:v}=e;const[y,w]=Object(r.useState)(((e,t,n)=>t<e?e+n:t)(h,i,t));return o.a.createElement(c,null,o.a.createElement(u,null,s===a.n.PREFIX&&o.a.createElement(l,null,p),o.a.createElement(d,null,y),s===a.n.SUFFIX&&o.a.createElement(l,null,p)),o.a.createElement(f,null,o.a.createElement(m,{type:"range",name:b,step:h,min:t,max:n,value:y,onChange:e=>{var t;null!=e&&null!==(t=e.target)&&void 0!==t&&t.value&&(g&&g(e.target.value),null!=v&&v.onChange&&v.onChange(e),w(e.target.value))}})))};g.defaultProps={value:1};t.a=g},function(e,t,n){"use strict";var r=n(17);t.a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object.entries(e).reduce((e,n)=>{let[o,a]=n;return{...e,...Object(r.a)(o,t)?{[o]:a}:{}}},{})}},function(e,t,n){"use strict";const r=e=>{let{buttonId:t,chatMessageId:n}=e;return`button-click-${n}-${t}`};t.a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t=>!e.find(e=>r(t)===r(e))}},function(e,t,n){"use strict";t.a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.reduce((e,n)=>{var r;return{...e,[t(n)]:[...null!==(r=e[t(n)])&&void 0!==r?r:[],n]}},{})}},function(e,t,n){"use strict";t.a=e=>t=>{let{id:n,chatbubble_temporary_id:r}=t;return!e.find(e=>{let{id:t}=e;return n===t||r===t})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="SET_NEW_CONTEXT"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));let r=null;async function o(){try{if(!r){const{default:e}=await Promise.resolve().then(n.t.bind(null,238,7));r=new Audio(e)}await r.play()}catch(e){console.error("Could not play notification sound:",e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(25),o=n(20),a=n(14);function i(e,t){Object(a.a)(2,arguments);var n=Object(o.a)(e).getTime(),i=Object(r.a)(t);return new Date(n+i)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(3),a=n(7);function i(){const{nudges:e}=Object(o.d)(a.d);return Object(r.useMemo)(()=>{var t,n,r,o,a;return[...null!==(t=null==e?void 0:e.form_nudges)&&void 0!==t?t:[],...null!==(n=null==e?void 0:e.custom_nudges)&&void 0!==n?n:[],...null!==(r=null==e?void 0:e.product_nudges)&&void 0!==r?r:[],...null!==(o=null==e?void 0:e.text_nudges)&&void 0!==o?o:[],...null!==(a=null==e?void 0:e.multiple_choice_nudges)&&void 0!==a?a:[]]},[e])}},function(e,t,n){"use strict";var r=n(48),o=n(76);t.a=e=>{let{button_type:t,...n}=e;return{...n,button_type:Object(o.a)(t),category:Object(r.a)(t)}}},function(e,t,n){"use strict";var r=n(0);function o(e){return e.touches||e.originalEvent.touches}let a=null;t.a=e=>{let{setIndex:t,index:n,carousel:i}=e;return{handleTouchStart:Object(r.useCallback)(e=>{const t=o(e)[0];a=t.clientX},[]),handleTouchMove:Object(r.useCallback)(e=>{if(!a)return;const r=o(e)[0].clientX;t(a-r>5?n+1:n-1,i),a=null},[i,n,t]),handleTouchEnd:Object(r.useCallback)(()=>{a=null},[])}}},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(36),i=n(57);const s=[i.c.name,i.a.name,i.d.name,a.a.name,i.b.name];var c=n(6);const l=e=>{let{width:t,height:n,color:r}=e;return o.a.createElement("svg",{width:n,height:t,viewBox:"0 0 24 24",fill:"none"},o.a.createElement("path",{d:"M4.952 16.354l5.263-10.497c.738-1.472 2.839-1.472 3.576 0l5.258 10.497a2 2 0 01-1.788 2.896H6.741a2 2 0 01-1.789-2.896z",stroke:r,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.a.createElement("path",{d:"M12 10v2",stroke:r,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),o.a.createElement("path",{d:"M12.5 16a.5.5 0 11-1 0 .5.5 0 011 0z",stroke:r}))};l.defaultProps={width:24,height:24,color:"#333"};var u=l,d=n(1);const f=d.c.div.withConfig({displayName:"style__FormError",componentId:"sc-13lpm2f-0"})(["display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;font-size:12px;margin-top:4px;right:0;left:auto;color:",";max-height:",";opacity:",";transition:max-height 1s ease,opacity 240ms ease ",";"],c.a.errorColor,e=>{let{show:t}=e;return t?"120px":"0px"},e=>{let{show:t}=e;return t?1:0},e=>{let{show:t}=e;return t?"480ms":0});var p=e=>{var t,n;let{name:i,control:s}=e;const l=Object(r.useRef)(null),{errors:d}=Object(a.c)({name:i,control:s});if(d){var p,h;if(null!=d&&null!==(p=d[i])&&void 0!==p&&p.ref&&!l.current)if(d[i].ref instanceof HTMLElement)l.current=d[i].ref;else[l.current]=document.getElementsByName(null===(h=d[i].ref)||void 0===h?void 0:h.name);if(l.current){var m,g;if(null!=d&&d[i])null===(g=l.current)||void 0===g||g.setCustomValidity(d[i].message||" ");else if((null===(m=l.current)||void 0===m?void 0:m.name)===i){var b;null===(b=l.current)||void 0===b||b.setCustomValidity("")}setTimeout(()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.checkValidity()})}}return o.a.createElement(f,{show:null===(t=d[i])||void 0===t?void 0:t.message},o.a.createElement(u,{width:16,height:16,color:c.a.errorColor}),null===(n=d[i])||void 0===n?void 0:n.message)};const h=d.c.div.withConfig({displayName:"styles__InputWrapper",componentId:"sc-1cfm2l6-0"})(["display:flex;flex-direction:column;margin-top:16px;position:relative;"]),m=d.c.label.withConfig({displayName:"styles__Label",componentId:"sc-1cfm2l6-1"})(["font-size:",";margin:4px 0;font-weight:500;"],c.d.fontSize12),g=d.c.div.withConfig({displayName:"styles__HelpText",componentId:"sc-1cfm2l6-2"})(["font-weight:400;line-height:16px;margin-top:4px;font-size:",";color:",";"],c.d.fontSize12,c.h.textColorLight),b=e=>{var t;let{type:n,name:r,className:a,children:i,label:c,htmlFor:l,control:u,helperText:d}=e;return(null==i||!i.length||i.length>1)&&console.error(`InputWrapper is expecting one child node. Received ${i.length}`),null!=s&&s.includes(null===(t=i[0].type)||void 0===t?void 0:t.name)||console.error(`InputWrapper child can only be one of the following: ${s.join(", ")}`),o.a.createElement(h,{className:a},c&&o.a.createElement(m,{htmlFor:l||`input__${n}_${r}`},c),i,o.a.createElement(p,{control:u,name:r}),d&&o.a.createElement(g,null,d))};b.defaultProps={type:null,name:null,label:null,htmlFor:null,helperText:null};t.a=b},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(3),i=(n(58),n(8)),s=n(10),c=n(21),l=n(37),u=n(1),d=n(6);const f=Object(u.b)(["border-radius:100px;background-color:",";"],d.a.grayColor),p=u.c.div.withConfig({displayName:"styles__ErrorContent",componentId:"sc-1lhoync-0"})(["height:100%;width:100%;display:grid;background-color:#fff;grid-template-rows:55px 1fr 70px;"]),h=u.c.div.withConfig({displayName:"styles__ErrorHeader",componentId:"sc-1lhoync-1"})(["padding:10px 20px;display:grid;align-items:center;grid-template-columns:30px 1fr 40px;box-shadow:0px 3px 4px -1px ",";"],d.a.shadowColor),m=u.c.div.withConfig({displayName:"styles__ErrorName",componentId:"sc-1lhoync-2"})(["height:20px;width:110px;margin-left:20px;",""],f),g=u.c.div.withConfig({displayName:"styles__ErrorContainer",componentId:"sc-1lhoync-3"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:210px;margin:auto;"]),b=u.c.span.withConfig({displayName:"styles__ErrorText",componentId:"sc-1lhoync-4"})(["font-size:14px;margin:16px 0 24px 0;",";"],e=>e.heading&&"font-size: 19px; font-weight: 400; \n margin: 0"),v=u.c.div.withConfig({displayName:"styles__ErrorCircle",componentId:"sc-1lhoync-5"})(["height:","px;min-width:","px;",""],e=>e.size,e=>e.size,f),y=u.c.div.withConfig({displayName:"styles__ErrorComposer",componentId:"sc-1lhoync-6"})(["display:flex;align-items:center;padding:15px 0;margin:0 20px;border-top:1px solid ",";"],d.a.grayColor),w=u.c.div.withConfig({displayName:"styles__ErrorInput",componentId:"sc-1lhoync-7"})(["height:40px;width:100%;margin-right:20px;",""],f);var x=()=>{const e=Object(a.c)(),t=Object(r.useCallback)(()=>{e(Object(i.v)())},[e]);return o.a.createElement(p,null,o.a.createElement(h,null,o.a.createElement(v,{size:30}),o.a.createElement(m,null),o.a.createElement(l.b,{"aria-label":"Close chat",title:"Close chat",type:"button",onClick:t,"data-cy":"close-chat-button"},o.a.createElement(s.e,{width:25,height:25}))),o.a.createElement(g,null,o.a.createElement(b,{heading:!0},"Oh no..."),o.a.createElement(b,null,"We were unable to load the chat. Please refresh or try again later."),o.a.createElement(c.b,{onClick:t,color:!0},"Refresh chat")),o.a.createElement(y,null,o.a.createElement(w,null),o.a.createElement(v,{size:40})))};class O extends r.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return e?{hasError:!0}:{}}componentDidCatch(e,t){var n;const{dispatch:r,errorPoint:o}=this.props,a=`Component tree crashed ${o}: ${e.message}`,s={errorName:e.name,errorMessage:e.message,errorStack:e.stack,point:o,componentStack:null==t||null===(n=t.componentStack)||void 0===n?void 0:n.trim()};r(Object(i.B)({message:a,error:e,extra:s,level:"error"}))}render(){const{hasError:e}=this.state,{children:t,displayError:n}=this.props;return e&&n?o.a.createElement(x,null):e?null:t}}O.defaultProps={displayError:!0};t.a=Object(a.b)()(O)},function(e,t,n){"use strict";var r=n(25),o=n(103),a=n(14);var i=n(240),s=n(20);t.a=e=>{let{messageSentTime:t,persistStateLifespan:n}=e;if(t){if(-1===n)return!0;if(0!==n){return function(e,t){Object(a.a)(2,arguments);var n=Object(s.a)(e),r=Object(s.a)(t);return n.getTime()>r.getTime()}(function(e,t){Object(a.a)(2,arguments);var n=Object(r.a)(t);return Object(o.a)(e,1e3*n)}(Object(i.a)(t),n),new Date)}}return!1}},function(e,t,n){"use strict";n.r(t);var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.default=o},function(e,t,n){"use strict";(function(t){var r=n(32),o=n(182),a=n(128),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(c=n(129)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l}).call(this,n(87))},function(e,t,n){var r=n(39),o=n(209),a=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=a},function(e,t,n){var r=n(66),o=n(138),a=n(67),i=n(140),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=i(t),a(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports={}},function(e,t,n){var r=n(28),o=n(213);e.exports=function(e){if(r(e))return e;throw TypeError(o(e)+" is not a function")}},function(e,t,n){var r=n(145),o=n(147),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},function(e,t){e.exports={}},function(e,t,n){var r,o=n(67),a=n(220),i=n(153),s=n(117),c=n(226),l=n(139),u=n(116),d=u("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&r?h(r):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(r);for(var n=i.length;n--;)delete m.prototype[i[n]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[d]=e):n=m(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(120),o=n(113).f,a=n(65),i=n(46),s=n(228),c=n(40)("toStringTag");e.exports=function(e,t,n,l){if(e){var u=n?e:e.prototype;i(u,c)||o(u,c,{configurable:!0,value:t}),l&&!r&&a(u,"toString",s)}}},function(e,t,n){var r={};r[n(40)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(4),o=n.n(r),a=n(5),i=n(76);o.a.shape({button_type:o.a.oneOf([...Object.values(a.b),...Object.values(a.b).map(i.a)]).isRequired,is_active:o.a.bool,label:o.a.string.isRequired,value:o.a.string,new_context:o.a.object,index:o.a.number,language_code:o.a.string})},function(e,t,n){"use strict";var r=n(4),o=n.n(r);t.a=o.a.arrayOf(o.a.shape({selected:o.a.bool.isRequired,_id:o.a.string.isRequired,score:o.a.number.isRequired,sample:o.a.string.isRequired}))},function(e,t,n){"use strict";(function(e,r){var o,a=n(156);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var i=Object(a.a)(o);t.a=i}).call(this,n(86),n(176)(e))},,function(e,t){e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(32);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),a=i.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(32),o=n(183),a=n(184),i=n(127),s=n(185),c=n(188),l=n(189),u=n(130);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,p=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(m+":"+g)}var b=s(e.baseURL,e.url);function v(){if(h){var r="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,n,a),h=null}}if(h.open(e.method.toUpperCase(),i(b,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(v)},h.onabort=function(){h&&(n(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var y=(e.withCredentials||l(b))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;y&&(f[e.xsrfHeaderName]=y)}"setRequestHeader"in h&&r.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),d||(d=null),h.send(d)}))}},function(e,t,n){"use strict";var r=n(128);e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(32);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(a,l),r.forEach(i,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=o.concat(a).concat(i).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,l),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=n(88),o=n(206),a=n(83),i=n(137),s=n(215),c=i.set,l=i.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r,o,a,i=n(207),s=n(39),c=n(64),l=n(65),u=n(46),d=n(112),f=n(116),p=n(117),h=s.WeakMap;if(i||d.state){var m=d.state||(d.state=new h),g=m.get,b=m.has,v=m.set;r=function(e,t){if(b.call(m,e))throw new TypeError("Object already initialized");return t.facade=e,v.call(m,e,t),t},o=function(e){return g.call(m,e)||{}},a=function(e){return b.call(m,e)}}else{var y=f("state");p[y]=!0,r=function(e,t){if(u(e,y))throw new TypeError("Object already initialized");return t.facade=e,l(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},a=function(e){return u(e,y)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(66),o=n(51),a=n(139);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(39),o=n(64),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,n){var r=n(210),o=n(141);e.exports=function(e){var t=r(e,"string");return o(t)?t:String(t)}},function(e,t,n){var r=n(28),o=n(89),a=n(142);e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&Object(e)instanceof t}},function(e,t,n){var r=n(143);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(211),o=n(51);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){var r=n(115);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},function(e,t,n){var r=n(90),o=n(112);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(136);e.exports=function(e){return Object(r(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){"use strict";var r=n(39),o=n(28),a=n(216).f,i=n(218),s=n(114),c=n(149),l=n(65),u=n(46),d=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,f,p,h,m,g,b,v,y=e.target,w=e.global,x=e.stat,O=e.proto,E=w?r:x?r[y]:(r[y]||{}).prototype,k=w?s:s[y]||l(s,y,{})[y],_=k.prototype;for(p in t)n=!i(w?p:y+(x?".":"#")+p,e.forced)&&E&&u(E,p),m=k[p],n&&(g=e.noTargetGet?(v=a(E,p))&&v.value:E[p]),h=n&&g?g:t[p],n&&typeof m==typeof h||(b=e.bind&&n?c(h,r):e.wrap&&n?d(h):O&&o(h)?c(Function.call,h):h,(e.sham||h&&h.sham||m&&m.sham)&&l(b,"sham",!0),l(k,p,b),O&&(u(s,f=y+"Prototype")||l(s,f,{}),l(s[f],p,h),e.real&&_&&!_[p]&&l(_,p,h)))}},function(e,t,n){var r=n(115);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(151).IteratorPrototype,o=n(118),a=n(91),i=n(119),s=n(83),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:a(1,n)}),i(e,l,!1,!0),s[l]=c,e}},function(e,t,n){"use strict";var r,o,a,i=n(51),s=n(28),c=n(118),l=n(154),u=n(92),d=n(40),f=n(90),p=d("iterator"),h=!1;[].keys&&("next"in(a=[].keys())?(o=l(l(a)))!==Object.prototype&&(r=o):h=!0),null==r||i((function(){var e={};return r[p].call(e)!==e}))?r={}:f&&(r=c(r)),s(r[p])||u(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(46),o=n(28),a=n(146),i=n(116),s=n(227),c=i("IE_PROTO"),l=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof Object?l:null}},function(e,t,n){var r=n(84),o=n(144),a=n(83),i=n(40)("iterator");e.exports=function(e){if(null!=e)return o(e,i)||o(e,"@@iterator")||a[r(e)]}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var r=n(93),o=n(97);t.a=t=>{let{level:n="info",error:a,message:i,reduxState:s,extra:c}=t;if(!(i||null!=a&&a.message))return console.error("Attempted to log without message"),null;const l=Object(o.a)(s||{},r.b),u={version:e.env.VERSION,release:e.env.IS_PURE_BUILD?`${e.env.VERSION}-pure`:e.env.VERSION,userAgent:navigator.userAgent,state:s?JSON.stringify(l):void 0,...c},d={message:null==a?void 0:a.message,name:null==a?void 0:a.name,stack:null==a?void 0:a.stack,code:null==a?void 0:a.code,signal:null==a?void 0:a.signal};return{message:null!=i?i:null==a?void 0:a.message,level:n,extra:u,error:d}}}).call(this,n(87))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=0,s=1,c=2,l=3,u="closed",d="errored",f="joined",p="joining",h="leaving",m="phx_close",g="phx_error",b="phx_join",v="phx_reply",y="phx_leave",w="longpoll",x="websocket",O=function(){function e(t,n,r,o){a(this,e),this.channel=t,this.event=n,this.payload=r||{},this.receivedResp=null,this.timeout=o,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}return o(e,[{key:"resend",value:function(e){this.timeout=e,this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}},{key:"send",value:function(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref}))}},{key:"receive",value:function(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}},{key:"matchReceive",value:function(e){var t=e.status,n=e.response;e.ref;this.recHooks.filter((function(e){return e.status===t})).forEach((function(e){return e.callback(n)}))}},{key:"cancelRefEvent",value:function(){this.refEvent&&this.channel.off(this.refEvent)}},{key:"cancelTimeout",value:function(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}},{key:"startTimeout",value:function(){var e=this;this.timeoutTimer||(this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,(function(t){e.cancelRefEvent(),e.cancelTimeout(),e.receivedResp=t,e.matchReceive(t)})),this.timeoutTimer=setTimeout((function(){e.trigger("timeout",{})}),this.timeout))}},{key:"hasReceived",value:function(e){return this.receivedResp&&this.receivedResp.status===e}},{key:"trigger",value:function(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}}]),e}(),E=t.Channel=function(){function e(t,n,r){var o=this;a(this,e),this.state=u,this.topic=t,this.params=n||{},this.socket=r,this.bindings=[],this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new O(this,b,this.params,this.timeout),this.pushBuffer=[],this.rejoinTimer=new C((function(){return o.rejoinUntilConnected()}),this.socket.reconnectAfterMs),this.joinPush.receive("ok",(function(){o.state=f,o.rejoinTimer.reset(),o.pushBuffer.forEach((function(e){return e.send()})),o.pushBuffer=[]})),this.onClose((function(){o.rejoinTimer.reset(),o.socket.log("channel","close "+o.topic+" "+o.joinRef()),o.state=u,o.socket.remove(o)})),this.onError((function(e){o.isLeaving()||o.isClosed()||(o.socket.log("channel","error "+o.topic,e),o.state=d,o.rejoinTimer.scheduleTimeout())})),this.joinPush.receive("timeout",(function(){o.isJoining()&&(o.socket.log("channel","timeout "+o.topic,o.joinPush.timeout),o.state=d,o.rejoinTimer.scheduleTimeout())})),this.on(v,(function(e,t){o.trigger(o.replyEventName(t),e)}))}return o(e,[{key:"rejoinUntilConnected",value:function(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this.rejoin()}},{key:"join",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;if(this.joinedOnce)throw"tried to join multiple times. 'join' can only be called a single time per channel instance";return this.joinedOnce=!0,this.rejoin(e),this.joinPush}},{key:"onClose",value:function(e){this.on(m,e)}},{key:"onError",value:function(e){this.on(g,(function(t){return e(t)}))}},{key:"on",value:function(e,t){this.bindings.push({event:e,callback:t})}},{key:"off",value:function(e){this.bindings=this.bindings.filter((function(t){return t.event!==e}))}},{key:"canPush",value:function(){return this.socket.isConnected()&&this.isJoined()}},{key:"push",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.timeout;if(!this.joinedOnce)throw"tried to push '"+e+"' to '"+this.topic+"' before joining. Use channel.join() before pushing events";var r=new O(this,e,t,n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}},{key:"leave",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.state=h;var n=function(){e.socket.log("channel","leave "+e.topic),e.trigger(m,"leave",e.joinRef())},r=new O(this,y,{},t);return r.receive("ok",(function(){return n()})).receive("timeout",(function(){return n()})),r.send(),this.canPush()||r.trigger("ok",{}),r}},{key:"onMessage",value:function(e,t,n){return t}},{key:"isMember",value:function(e){return this.topic===e}},{key:"joinRef",value:function(){return this.joinPush.ref}},{key:"sendJoin",value:function(e){this.state=p,this.joinPush.resend(e)}},{key:"rejoin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.isLeaving()||this.sendJoin(e)}},{key:"trigger",value:function(e,t,n){if(!(n&&[m,g,y,b].indexOf(e)>=0&&n!==this.joinRef())){var r=this.onMessage(e,t,n);if(t&&!r)throw"channel onMessage callbacks must return the payload, modified or unmodified";this.bindings.filter((function(t){return t.event===e})).map((function(e){return e.callback(r,n)}))}}},{key:"replyEventName",value:function(e){return"chan_reply_"+e}},{key:"isClosed",value:function(){return this.state===u}},{key:"isErrored",value:function(){return this.state===d}},{key:"isJoined",value:function(){return this.state===f}},{key:"isJoining",value:function(){return this.state===p}},{key:"isLeaving",value:function(){return this.state===h}}]),e}(),k=(t.Socket=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=r.timeout||1e4,this.transport=r.transport||window.WebSocket||k,this.heartbeatIntervalMs=r.heartbeatIntervalMs||3e4,this.reconnectAfterMs=r.reconnectAfterMs||function(e){return[1e3,2e3,5e3,1e4][e-1]||1e4},this.logger=r.logger||function(){},this.longpollerTimeout=r.longpollerTimeout||2e4,this.params=r.params||{},this.endPoint=t+"/"+x,this.reconnectTimer=new C((function(){n.disconnect((function(){return n.connect()}))}),this.reconnectAfterMs)}return o(e,[{key:"protocol",value:function(){return location.protocol.match(/^https/)?"wss":"ws"}},{key:"endPointURL",value:function(){var e=_.appendParams(_.appendParams(this.endPoint,this.params),{vsn:"1.0.0"});return"/"!==e.charAt(0)?e:"/"===e.charAt(1)?this.protocol()+":"+e:this.protocol()+"://"+location.host+e}},{key:"disconnect",value:function(e,t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n||""):this.conn.close(),this.conn=null),e&&e()}},{key:"connect",value:function(e){var t=this;e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=e),this.conn||(this.conn=new this.transport(this.endPointURL()),this.conn.timeout=this.longpollerTimeout,this.conn.onopen=function(){return t.onConnOpen()},this.conn.onerror=function(e){return t.onConnError(e)},this.conn.onmessage=function(e){return t.onConnMessage(e)},this.conn.onclose=function(e){return t.onConnClose(e)})}},{key:"log",value:function(e,t,n){this.logger(e,t,n)}},{key:"onOpen",value:function(e){this.stateChangeCallbacks.open.push(e)}},{key:"onClose",value:function(e){this.stateChangeCallbacks.close.push(e)}},{key:"onError",value:function(e){this.stateChangeCallbacks.error.push(e)}},{key:"onMessage",value:function(e){this.stateChangeCallbacks.message.push(e)}},{key:"onConnOpen",value:function(){var e=this;this.log("transport","connected to "+this.endPointURL(),this.transport.prototype),this.flushSendBuffer(),this.reconnectTimer.reset(),this.conn.skipHeartbeat||(clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval((function(){return e.sendHeartbeat()}),this.heartbeatIntervalMs)),this.stateChangeCallbacks.open.forEach((function(e){return e()}))}},{key:"onConnClose",value:function(e){this.log("transport","close",e),this.triggerChanError(),clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach((function(t){return t(e)}))}},{key:"onConnError",value:function(e){this.log("transport",e),this.triggerChanError(),this.stateChangeCallbacks.error.forEach((function(t){return t(e)}))}},{key:"triggerChanError",value:function(){this.channels.forEach((function(e){return e.trigger(g)}))}},{key:"connectionState",value:function(){switch(this.conn&&this.conn.readyState){case i:return"connecting";case s:return"open";case c:return"closing";default:return"closed"}}},{key:"isConnected",value:function(){return"open"===this.connectionState()}},{key:"remove",value:function(e){this.channels=this.channels.filter((function(t){return t.joinRef()!==e.joinRef()}))}},{key:"channel",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new E(e,t,this);return this.channels.push(n),n}},{key:"push",value:function(e){var t=this,n=e.topic,r=e.event,o=e.payload,a=e.ref,i=function(){return t.conn.send(JSON.stringify(e))};this.log("push",n+" "+r+" ("+a+")",o),this.isConnected()?i():this.sendBuffer.push(i)}},{key:"makeRef",value:function(){var e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}},{key:"sendHeartbeat",value:function(){this.isConnected()&&this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.makeRef()})}},{key:"flushSendBuffer",value:function(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach((function(e){return e()})),this.sendBuffer=[])}},{key:"onConnMessage",value:function(e){var t=JSON.parse(e.data),n=t.topic,r=t.event,o=t.payload,a=t.ref;this.log("receive",(o.status||"")+" "+n+" "+r+" "+(a&&"("+a+")"||""),o),this.channels.filter((function(e){return e.isMember(n)})).forEach((function(e){return e.trigger(r,o,a)})),this.stateChangeCallbacks.message.forEach((function(e){return e(t)}))}}]),e}(),t.LongPoll=function(){function e(t){a(this,e),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=i,this.poll()}return o(e,[{key:"normalizeEndpoint",value:function(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+x),"$1/"+w)}},{key:"endpointURL",value:function(){return _.appendParams(this.pollEndpoint,{token:this.token})}},{key:"closeAndRetry",value:function(){this.close(),this.readyState=i}},{key:"ontimeout",value:function(){this.onerror("timeout"),this.closeAndRetry()}},{key:"poll",value:function(){var e=this;this.readyState!==s&&this.readyState!==i||_.request("GET",this.endpointURL(),"application/json",null,this.timeout,this.ontimeout.bind(this),(function(t){if(t){var n=t.status,r=t.token,o=t.messages;e.token=r}else n=0;switch(n){case 200:o.forEach((function(t){return e.onmessage({data:JSON.stringify(t)})})),e.poll();break;case 204:e.poll();break;case 410:e.readyState=s,e.onopen(),e.poll();break;case 0:case 500:e.onerror(),e.closeAndRetry();break;default:throw"unhandled poll status "+n}}))}},{key:"send",value:function(e){var t=this;_.request("POST",this.endpointURL(),"application/json",e,this.timeout,this.onerror.bind(this,"timeout"),(function(e){e&&200===e.status||(t.onerror(status),t.closeAndRetry())}))}},{key:"close",value:function(e,t){this.readyState=l,this.onclose()}}]),e}()),_=t.Ajax=function(){function e(){a(this,e)}return o(e,null,[{key:"request",value:function(e,t,n,r,o,a,i){if(window.XDomainRequest){var s=new XDomainRequest;this.xdomainRequest(s,e,t,r,o,a,i)}else{var c=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");this.xhrRequest(c,e,t,n,r,o,a,i)}}},{key:"xdomainRequest",value:function(e,t,n,r,o,a,i){var s=this;e.timeout=o,e.open(t,n),e.onload=function(){var t=s.parseJSON(e.responseText);i&&i(t)},a&&(e.ontimeout=a),e.onprogress=function(){},e.send(r)}},{key:"xhrRequest",value:function(e,t,n,r,o,a,i,s){var c=this;e.timeout=a,e.open(t,n,!0),e.setRequestHeader("Content-Type",r),e.onerror=function(){s&&s(null)},e.onreadystatechange=function(){if(e.readyState===c.states.complete&&s){var t=c.parseJSON(e.responseText);s(t)}},i&&(e.ontimeout=i),e.send(o)}},{key:"parseJSON",value:function(e){return e&&""!==e?JSON.parse(e):null}},{key:"serialize",value:function(e,t){var n=[];for(var o in e)if(e.hasOwnProperty(o)){var a=t?t+"["+o+"]":o,i=e[o];"object"===(void 0===i?"undefined":r(i))?n.push(this.serialize(i,a)):n.push(encodeURIComponent(a)+"="+encodeURIComponent(i))}return n.join("&")}},{key:"appendParams",value:function(e,t){if(0===Object.keys(t).length)return e;var n=e.match(/\?/)?"&":"?";return""+e+n+this.serialize(t)}}]),e}();_.states={complete:4};t.Presence={syncState:function(e,t,n,r){var o=this,a=this.clone(e),i={},s={};return this.map(a,(function(e,n){t[e]||(s[e]=n)})),this.map(t,(function(e,t){var n=a[e];if(n){var r=t.metas.map((function(e){return e.phx_ref})),c=n.metas.map((function(e){return e.phx_ref})),l=t.metas.filter((function(e){return c.indexOf(e.phx_ref)<0})),u=n.metas.filter((function(e){return r.indexOf(e.phx_ref)<0}));l.length>0&&(i[e]=t,i[e].metas=l),u.length>0&&(s[e]=o.clone(n),s[e].metas=u)}else i[e]=t})),this.syncDiff(a,{joins:i,leaves:s},n,r)},syncDiff:function(e,t,n,r){var o=t.joins,a=t.leaves,i=this.clone(e);return n||(n=function(){}),r||(r=function(){}),this.map(o,(function(e,t){var r,o=i[e];(i[e]=t,o)&&(r=i[e].metas).unshift.apply(r,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(o.metas));n(e,o,t)})),this.map(a,(function(e,t){var n=i[e];if(n){var o=t.metas.map((function(e){return e.phx_ref}));n.metas=n.metas.filter((function(e){return o.indexOf(e.phx_ref)<0})),r(e,n,t),0===n.metas.length&&delete i[e]}})),i},list:function(e,t){return t||(t=function(e,t){return t}),this.map(e,(function(e,n){return t(e,n)}))},map:function(e,t){return Object.getOwnPropertyNames(e).map((function(n){return t(n,e[n])}))},clone:function(e){return JSON.parse(JSON.stringify(e))}};var C=function(){function e(t,n){a(this,e),this.callback=t,this.timerCalc=n,this.timer=null,this.tries=0}return o(e,[{key:"reset",value:function(){this.tries=0,clearTimeout(this.timer)}},{key:"scheduleTimeout",value:function(){var e=this;clearTimeout(this.timer),this.timer=setTimeout((function(){e.tries=e.tries+1,e.callback()}),this.timerCalc(this.tries+1))}}]),e}()},function(e,t,n){(function(n){var r,o,a;o=[],void 0===(a="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){i(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,i=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,n,i){var s=a.URL||a.webkitURL,c=document.createElement("a");n=n||e.name||"download",c.download=n,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?o(c):r(c.href)?t(e,n,i):o(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){o(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,a),n);else if(r(e))t(e,n,a);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){o(i)}))}}:function(e,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var i="application/octet-stream"===e.type,s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||i&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=i.saveAs=i,e.exports=i})?r.apply(t,o):r)||(e.exports=a)}).call(this,n(86))},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=n?n.call(r,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,t,r){var o=t.trim().split(h);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<a;++s)for(var l=0;l<i;++l)t[c++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var i=e+";",s=2*t+3*n+4*a;if(944===s){e=i.indexOf(":",9)+1;var c=i.substring(e,i.length-1).trim();return c=i.substring(0,e).trim()+c+";",1===S||2===S&&o(c,1)?"-webkit-"+c+c:c}if(0===S||2===S&&!o(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(_,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(c=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+c+i;case 1005:return f.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(c=i.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=i.replace(y,"tb");break;case 232:c=i.replace(y,"tb-rl");break;case 220:c=i.replace(y,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+c+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(c=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:i=i.replace(c,"-webkit-"+c)+";"+i;break;case 207:case 102:i=i.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(c,"-webkit-"+c)+";"+i.replace(c,"-ms-"+c+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return c=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+c+"-ms-flex-"+c+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(O,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(O,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):i.replace(c,"-webkit-"+c)+i.replace(c,"-moz-"+c.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),P(2!==t?r:r.replace(E,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,o,a,i,s,l,u){for(var d,f=0,p=t;f<N;++f)switch(d=A[f].call(c,e,p,n,r,o,a,i,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(P=null,e?"function"!=typeof e?S=1:(S=2,P=e):S=0),s}function c(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<N){var c=i(-1,n,s,s,j,C,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var d=function e(n,s,c,d,f){for(var p,h,m,y,x,O=0,E=0,k=0,_=0,A=0,P=0,R=m=p=0,L=0,D=0,B=0,z=0,F=c.length,U=F-1,H="",$="",V="",q="";L<F;){if(h=c.charCodeAt(L),L===U&&0!==E+_+k+O&&(0!==E&&(h=47===E?10:47),_=k=O=0,F++,U++),0===E+_+k+O){if(L===U&&(0<D&&(H=H.replace(u,"")),0<H.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:H+=c.charAt(L)}h=59}switch(h){case 123:for(p=(H=H.trim()).charCodeAt(0),m=1,z=++L;L<F;){switch(h=c.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(L+1)){case 42:case 47:e:{for(R=L+1;R<U;++R)switch(c.charCodeAt(R)){case 47:if(42===h&&42===c.charCodeAt(R-1)&&L+2!==R){L=R+1;break e}break;case 10:if(47===h){L=R+1;break e}}L=R}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<U&&c.charCodeAt(L)!==h;);}if(0===m)break;L++}switch(m=c.substring(z,L),0===p&&(p=(H=H.replace(l,"").trim()).charCodeAt(0)),p){case 64:switch(0<D&&(H=H.replace(u,"")),h=H.charCodeAt(1)){case 100:case 109:case 115:case 45:D=s;break;default:D=I}if(z=(m=e(s,D,m,h,f+1)).length,0<N&&(x=i(3,m,D=t(I,H,B),s,j,C,z,h,f,d),H=D.join(""),void 0!==x&&0===(z=(m=x.trim()).length)&&(h=0,m="")),0<z)switch(h){case 115:H=H.replace(w,a);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(g,"$1 $2"))+"{"+m+"}",m=1===S||2===S&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===d&&($+=m,m="")}else m="";break;default:m=e(s,t(s,H,B),m,d,f+1)}V+=m,m=B=D=R=p=0,H="",h=c.charCodeAt(++L);break;case 125:case 59:if(1<(z=(H=(0<D?H.replace(u,""):H).trim()).length))switch(0===R&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(z=(H=H.replace(" ",":")).length),0<N&&void 0!==(x=i(1,H,s,n,j,C,$.length,d,f,d))&&0===(z=(H=x.trim()).length)&&(H="\0\0"),p=H.charCodeAt(0),h=H.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){q+=H+c.charAt(L);break}default:58!==H.charCodeAt(z-1)&&($+=r(H,p,h,H.charCodeAt(2)))}B=D=R=p=0,H="",h=c.charCodeAt(++L)}}switch(h){case 13:case 10:47===E?E=0:0===1+p&&107!==d&&0<H.length&&(D=1,H+="\0"),0<N*M&&i(0,H,s,n,j,C,$.length,d,f,d),C=1,j++;break;case 59:case 125:if(0===E+_+k+O){C++;break}default:switch(C++,y=c.charAt(L),h){case 9:case 32:if(0===_+O+E)switch(A){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===_+E+O&&(D=B=1,y="\f"+y);break;case 108:if(0===_+E+O+T&&0<R)switch(L-R){case 2:112===A&&58===c.charCodeAt(L-3)&&(T=A);case 8:111===P&&(T=P)}break;case 58:0===_+E+O&&(R=L);break;case 44:0===E+k+_+O&&(D=1,y+="\r");break;case 34:case 39:0===E&&(_=_===h?0:0===_?h:_);break;case 91:0===_+E+k&&O++;break;case 93:0===_+E+k&&O--;break;case 41:0===_+E+O&&k--;break;case 40:if(0===_+E+O){if(0===p)switch(2*A+3*P){case 533:break;default:p=1}k++}break;case 64:0===E+k+_+O+R+m&&(m=1);break;case 42:case 47:if(!(0<_+O+k))switch(E){case 0:switch(2*h+3*c.charCodeAt(L+1)){case 235:E=47;break;case 220:z=L,E=42}break;case 42:47===h&&42===A&&z+2!==L&&(33===c.charCodeAt(z+2)&&($+=c.substring(z,L+1)),y="",E=0)}}0===E&&(H+=y)}P=A,A=h,L++}if(0<(z=$.length)){if(D=s,0<N&&(void 0!==(x=i(2,$,D,n,j,C,z,d,f,d))&&0===($=x).length))return q+$+V;if($=D.join(",")+"{"+$+"}",0!=S*T){switch(2!==S||o($,2)||(T=0),T){case 111:$=$.replace(v,":-moz-$1")+$;break;case 112:$=$.replace(b,"::-webkit-input-$1")+$.replace(b,"::-moz-$1")+$.replace(b,":-ms-input-$1")+$}T=0}}return q+$+V}(I,s,n,0,0);return 0<N&&(void 0!==(c=i(-2,d,s,s,j,C,d.length,0,0,0))&&(d=c)),"",T=0,C=j=1,d}var l=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,v=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,O=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,C=1,j=1,T=0,S=1,I=[],A=[],N=0,P=null,M=0;return c.use=function e(t){switch(t){case void 0:case null:N=A.length=0;break;default:if("function"==typeof t)A[N++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else M=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}},function(e,t,n){"use strict";t.a={animationIterationCount: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}},function(e,t){e.exports="http://localhost:8081/src/assets/fonts/IBMPlexSans-Medium.ttf"},function(e,t){e.exports="http://localhost:8081/src/assets/fonts/IBMPlexSans-Regular.ttf"},function(e,t){e.exports="http://localhost:8081/src/assets/fonts/KindlySans-Regular.otf"},function(e,t){e.exports="http://localhost:8081/src/assets/images/santaHat.png"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=r({key:"redux",merge:i.default,slicer:a.default,serialize:JSON.stringify,deserialize:JSON.parse},t),o=n.key,s=n.merge,c=n.slicer,l=n.serialize,u=n.deserialize;return function(t){return function(n,r,a){"function"==typeof r&&void 0===a&&(a=r,r=void 0);var i=void 0,d=void 0;try{i=u(localStorage.getItem(o)),d=s(r,i)}catch(e){console.warn("Failed to retrieve initialize state from localStorage:",e)}var f=t(n,d,a),p=c(e);return f.subscribe((function(){var e=f.getState(),t=p(e);try{localStorage.setItem(o,l(t))}catch(e){console.warn("Unable to persist state to localStorage:",e)}})),f}}};var a=o(n(197)),i=o(n(200));e.exports=t.default},function(e,t,n){(function(e,n){var r=/^\[object .+?Constructor\]$/,o=/^(?:0|[1-9]\d*)$/,a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var i="object"==typeof e&&e&&e.Object===Object&&e,s="object"==typeof self&&self&&self.Object===Object&&self,c=i||s||Function("return this")(),l=t&&!t.nodeType&&t,u=l&&"object"==typeof n&&n&&!n.nodeType&&n,d=u&&u.exports===l,f=d&&i.process,p=function(){try{var e=u&&u.require&&u.require("util").types;return e||f&&f.binding&&f.binding("util")}catch(e){}}(),h=p&&p.isTypedArray;function m(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var g,b,v,y=Array.prototype,w=Function.prototype,x=Object.prototype,O=c["__core-js_shared__"],E=w.toString,k=x.hasOwnProperty,_=(g=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"",C=x.toString,j=E.call(Object),T=RegExp("^"+E.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=d?c.Buffer:void 0,I=c.Symbol,A=c.Uint8Array,N=S?S.allocUnsafe:void 0,P=(b=Object.getPrototypeOf,v=Object,function(e){return b(v(e))}),M=Object.create,R=x.propertyIsEnumerable,L=y.splice,D=I?I.toStringTag:void 0,B=function(){try{var e=le(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),z=S?S.isBuffer:void 0,F=Math.max,U=Date.now,H=le(c,"Map"),$=le(Object,"create"),V=function(){function e(){}return function(t){if(!xe(t))return{};if(M)return M(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function W(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=this.__data__=new G(e);this.size=t.size}function K(e,t){var n=ge(e),r=!n&&me(e),o=!n&&!r&&ve(e),a=!n&&!r&&!o&&Ee(e),i=n||r||o||a,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!k.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ue(l,c))||s.push(l);return s}function X(e,t,n){(void 0!==n&&!he(e[t],n)||void 0===n&&!(t in e))&&Z(e,t,n)}function J(e,t,n){var r=e[t];k.call(e,t)&&he(r,n)&&(void 0!==n||t in e)||Z(e,t,n)}function Q(e,t){for(var n=e.length;n--;)if(he(e[n][0],t))return n;return-1}function Z(e,t,n){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}q.prototype.clear=function(){this.__data__=$?$(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q.prototype.get=function(e){var t=this.__data__;if($){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return k.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:k.call(t,e)},q.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$&&void 0===t?"__lodash_hash_undefined__":t,this},G.prototype.clear=function(){this.__data__=[],this.size=0},G.prototype.delete=function(e){var t=this.__data__,n=Q(t,e);return!(n<0)&&(n==t.length-1?t.pop():L.call(t,n,1),--this.size,!0)},G.prototype.get=function(e){var t=this.__data__,n=Q(t,e);return n<0?void 0:t[n][1]},G.prototype.has=function(e){return Q(this.__data__,e)>-1},G.prototype.set=function(e,t){var n=this.__data__,r=Q(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},W.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(H||G),string:new q}},W.prototype.delete=function(e){var t=ce(this,e).delete(e);return this.size-=t?1:0,t},W.prototype.get=function(e){return ce(this,e).get(e)},W.prototype.has=function(e){return ce(this,e).has(e)},W.prototype.set=function(e,t){var n=ce(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Y.prototype.clear=function(){this.__data__=new G,this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Y.prototype.get=function(e){return this.__data__.get(e)},Y.prototype.has=function(e){return this.__data__.has(e)},Y.prototype.set=function(e,t){var n=this.__data__;if(n instanceof G){var r=n.__data__;if(!H||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new W(r)}return n.set(e,t),this.size=n.size,this};var ee,te=function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[ee?i:++r];if(!1===t(o[s],s,o))break}return e};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":D&&D in Object(e)?function(e){var t=k.call(e,D),n=e[D];try{e[D]=void 0;var r=!0}catch(e){}var o=C.call(e);r&&(t?e[D]=n:delete e[D]);return o}(e):function(e){return C.call(e)}(e)}function re(e){return Oe(e)&&"[object Arguments]"==ne(e)}function oe(e){return!(!xe(e)||function(e){return!!_&&_ in e}(e))&&(ye(e)?T:r).test(function(e){if(null!=e){try{return E.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ae(e){if(!xe(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=de(e),n=[];for(var r in e)("constructor"!=r||!t&&k.call(e,r))&&n.push(r);return n}function ie(e,t,n,r,o){e!==t&&te(t,(function(a,i){if(o||(o=new Y),xe(a))!function(e,t,n,r,o,a,i){var s=fe(e,n),c=fe(t,n),l=i.get(c);if(l)return void X(e,n,l);var u=a?a(s,c,n+"",e,t,i):void 0,d=void 0===u;if(d){var f=ge(c),p=!f&&ve(c),h=!f&&!p&&Ee(c);u=c,f||p||h?ge(s)?u=s:Oe(y=s)&&be(y)?u=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(s):p?(d=!1,u=function(e,t){if(t)return e.slice();var n=e.length,r=N?N(n):new e.constructor(n);return e.copy(r),r}(c,!0)):h?(d=!1,m=c,g=!0?(b=m.buffer,v=new b.constructor(b.byteLength),new A(v).set(new A(b)),v):m.buffer,u=new m.constructor(g,m.byteOffset,m.length)):u=[]:function(e){if(!Oe(e)||"[object Object]"!=ne(e))return!1;var t=P(e);if(null===t)return!0;var n=k.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&E.call(n)==j}(c)||me(c)?(u=s,me(s)?u=function(e){return function(e,t,n,r){var o=!n;n||(n={});var a=-1,i=t.length;for(;++a<i;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?Z(n,s,c):J(n,s,c)}return n}(e,ke(e))}(s):xe(s)&&!ye(s)||(u=function(e){return"function"!=typeof e.constructor||de(e)?{}:V(P(e))}(c))):d=!1}var m,g,b,v;var y;d&&(i.set(c,u),o(u,c,r,a,i),i.delete(c));X(e,n,u)}(e,t,i,n,ie,r,o);else{var s=r?r(fe(e,i),a,i+"",e,t,o):void 0;void 0===s&&(s=a),X(e,i,s)}}),ke)}function se(e,t){return pe(function(e,t,n){return t=F(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=F(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),m(e,this,s)}}(e,t,je),e+"")}function ce(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return oe(n)?n:void 0}function ue(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&o.test(e))&&e>-1&&e%1==0&&e<t}function de(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||x)}function fe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var pe=function(e){var t=0,n=0;return function(){var r=U(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:je);function he(e,t){return e===t||e!=e&&t!=t}var me=re(function(){return arguments}())?re:function(e){return Oe(e)&&k.call(e,"callee")&&!R.call(e,"callee")},ge=Array.isArray;function be(e){return null!=e&&we(e.length)&&!ye(e)}var ve=z||function(){return!1};function ye(e){if(!xe(e))return!1;var t=ne(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function we(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function xe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Oe(e){return null!=e&&"object"==typeof e}var Ee=h?function(e){return function(t){return e(t)}}(h):function(e){return Oe(e)&&we(e.length)&&!!a[ne(e)]};function ke(e){return be(e)?K(e,!0):ae(e)}var _e,Ce=(_e=function(e,t,n){ie(e,t,n)},se((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=_e.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(e,t,n){if(!xe(n))return!1;var r=typeof t;return!!("number"==r?be(n)&&ue(t,n.length):"string"==r&&t in n)&&he(n[t],e)}(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&_e(e,i,n,o)}return e})));function je(e){return e}n.exports=Ce}).call(this,n(86),n(201)(e))},function(e,t,n){var r=n(202);e.exports=r},function(e,t,n){
16
+ var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function c(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}var l=n(0);var u=0,d="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(e){return window.requestAnimationFrame(e)}:function(e){var t=Date.now(),n=Math.max(0,16.7-(t-u));u=t+n,setTimeout((function(){return e(u)}),n)},f=1/60*1e3,p=!0,h=!1,m=!1,g={delta:0,timestamp:0},b=["read","update","preRender","render","postRender"],v=function(e){return h=e},y=b.reduce((function(e,t){var n,r,o,a,i,s,c,l,u;return e[t]=(n=v,r=[],o=[],a=0,i=!1,s=0,c=new WeakSet,l=new WeakSet,u={cancel:function(e){var t=o.indexOf(e);c.add(e),-1!==t&&o.splice(t,1)},process:function(e){var t,d;if(i=!0,r=(t=[o,r])[0],(o=t[1]).length=0,a=r.length)for(s=0;s<a;s++)(d=r[s])(e),!0!==l.has(d)||c.has(d)||(u.schedule(d),n(!0));i=!1},schedule:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=n&&i,u=s?r:o;c.delete(e),t&&l.add(e),-1===u.indexOf(e)&&(u.push(e),s&&(a=r.length))}}),e}),{}),w=b.reduce((function(e,t){var n=y[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),h||k(),n.schedule(e,t,r),e},e}),{}),x=b.reduce((function(e,t){return e[t]=y[t].cancel,e}),{}),O=function(e){return y[e].process(g)},E=function(e){h=!1,g.delta=p?f:Math.max(Math.min(e-g.timestamp,40),1),p||(f=g.delta),g.timestamp=e,m=!0,b.forEach(O),m=!1,h&&(p=!1,d(E))},k=function(){h=!0,p=!0,m||d(E)},_=function(){return g},C=w,j=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},T=function(e){return e%1?Number(e.toFixed(5)):e},S=/(-)?(\d[\d\.]*)/g,I=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,A=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i,N={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},P=i(i({},N),{transform:j(0,1)}),M=i(i({},N),{default:1}),R=function(e){return{test:function(t){return"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},L=R("deg"),D=R("%"),B=R("px"),z=R("vh"),F=R("vw"),U=i(i({},D),{parse:function(e){return D.parse(e)/100},transform:function(e){return D.transform(100*e)}}),H=j(0,255),$=function(e){return void 0!==e.red},V=function(e){return void 0!==e.hue};var q=function(e){return function(t){if("string"!=typeof t)return t;for(var n={},r=function(e){return e.substring(e.indexOf("(")+1,e.lastIndexOf(")"))}(t).replace(/(,|\/)/g," ").split(/ \s*/),o=0;o<4;o++)n[e[o]]=void 0!==r[o]?parseFloat(r[o]):1;return n}},G=i(i({},N),{transform:function(e){return Math.round(H(e))}});function W(e,t){return e.startsWith(t)&&A.test(e)}var Y={test:function(e){return"string"==typeof e?W(e,"rgb"):$(e)},parse:q(["red","green","blue","alpha"]),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,a=void 0===o?1:o;return function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha;return"rgba("+t+", "+n+", "+r+", "+(void 0===o?1:o)+")"}({red:G.transform(t),green:G.transform(n),blue:G.transform(r),alpha:T(P.transform(a))})}},K={test:function(e){return"string"==typeof e?W(e,"hsl"):V(e)},parse:q(["hue","saturation","lightness","alpha"]),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,a=void 0===o?1:o;return function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha;return"hsla("+t+", "+n+", "+r+", "+(void 0===o?1:o)+")"}({hue:Math.round(t),saturation:D.transform(T(n)),lightness:D.transform(T(r)),alpha:T(P.transform(a))})}},X=i(i({},Y),{test:function(e){return"string"==typeof e&&W(e,"#")},parse:function(e){var t="",n="",r="";return e.length>4?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),t+=t,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),J={test:function(e){return"string"==typeof e&&A.test(e)||$(e)||V(e)},parse:function(e){return Y.test(e)?Y.parse(e):K.test(e)?K.parse(e):X.test(e)?X.parse(e):e},transform:function(e){return $(e)?Y.transform(e):V(e)?K.transform(e):e}},Q=function(e){return"number"==typeof e?0:e},Z={test:function(e){if("string"!=typeof e||!isNaN(e))return!1;var t=0,n=e.match(S),r=e.match(I);return n&&(t+=n.length),r&&(t+=r.length),t>0},parse:function(e){var t=e,n=[],r=t.match(I);r&&(t=t.replace(I,"${c}"),n.push.apply(n,r.map(J.parse)));var o=t.match(S);return o&&n.push.apply(n,o.map(N.parse)),n},createTransformer:function(e){var t=e,n=0,r=e.match(I),o=r?r.length:0;if(r)for(var a=0;a<o;a++)t=t.replace(r[a],"${c}"),n++;var i=t.match(S),s=i?i.length:0;if(i)for(a=0;a<s;a++)t=t.replace(i[a],"${n}"),n++;return function(e){for(var r=t,a=0;a<n;a++)r=r.replace(a<o?"${c}":"${n}",a<o?J.transform(e[a]):T(e[a]));return r}},getAnimatableNone:function(e){var t=Z.parse(e);return Z.createTransformer(e)(t.map(Q))}},ee=function(e){return function(t){return 1-e(1-t)}},te=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},ne=ee,re=te,oe=function(e){return function(t){return Math.pow(t,e)}},ae=function(e){return function(t){return t*t*((e+1)*t-e)}},ie=function(e){var t=ae(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}},se=function(e){return e},ce=oe(2),le=ee(ce),ue=te(ce),de=function(e){return 1-Math.sin(Math.acos(e))},fe=ee(de),pe=te(fe),he=ae(1.525),me=ee(he),ge=te(he),be=ie(1.525),ve=function(e){var t=e*e;return e<4/11?7.5625*t:e<8/11?9.075*t-9.9*e+3.4:e<.9?4356/361*t-35442/1805*e+16061/1805:10.8*e*e-20.52*e+10.72},ye=function(e){return 1-ve(1-e)},we=function(e){return e<.5?.5*(1-ve(1-2*e)):.5*ve(2*e-1)+.5},xe="undefined"!=typeof Float32Array,Oe=function(e,t){return 1-3*t+3*e},Ee=function(e,t){return 3*t-6*e},ke=function(e){return 3*e},_e=function(e,t,n){return 3*Oe(t,n)*e*e+2*Ee(t,n)*e+ke(t)},Ce=function(e,t,n){return((Oe(t,n)*e+Ee(t,n))*e+ke(t))*e};function je(e,t,n,r){var o=xe?new Float32Array(11):new Array(11),a=function(t){for(var r,a,i,s=0,c=1;10!==c&&o[c]<=t;++c)s+=.1;return--c,r=(t-o[c])/(o[c+1]-o[c]),(i=_e(a=s+.1*r,e,n))>=.001?function(t,r){for(var o=0,a=0;o<8;++o){if(0===(a=_e(r,e,n)))return r;r-=(Ce(r,e,n)-t)/a}return r}(t,a):0===i?a:function(t,r,o){var a,i,s=0;do{(a=Ce(i=r+(o-r)/2,e,n)-t)>0?o=i:r=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,s,s+.1)};!function(){for(var t=0;t<11;++t)o[t]=Ce(.1*t,e,n)}();return function(o){return e===t&&n===r?o:0===o?0:1===o?1:Ce(a(o),t,r)}}var Te={x:0,y:0,z:0},Se=function(e){return"number"==typeof e},Ie=function(e){return function(t,n,r){return void 0!==r?e(t,n,r):function(r){return e(t,n,r)}}},Ae=Ie((function(e,t,n){return Math.min(Math.max(n,e),t)})),Ne=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Pe=function(e){return Ne(e)&&e.hasOwnProperty("z")},Me=function(e,t){return Math.abs(e-t)},Re=function(e,t){if(void 0===t&&(t=Te),Se(e)&&Se(t))return Me(e,t);if(Ne(e)&&Ne(t)){var n=Me(e.x,t.x),r=Me(e.y,t.y),o=Pe(e)&&Pe(t)?Me(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}return 0},Le=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},De=function(e,t,n){return-n*e+n*t+e},Be=function(){return(Be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ze=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Fe=[X,Y,K],Ue=function(e){return Fe.find((function(t){return t.test(e)}))},He=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},$e=function(e,t){var n=Ue(e),r=Ue(t);He(e),He(t),n.transform,r.transform;var o=n.parse(e),a=r.parse(t),i=Be({},o),s=n===K?De:ze;return function(e){for(var t in i)"alpha"!==t&&(i[t]=s(o[t],a[t],e));return i.alpha=De(o.alpha,a.alpha,e),n.transform(i)}},Ve=function(e,t){return function(n){return t(e(n))}},qe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(Ve)};function Ge(e,t){return Se(e)?function(n){return De(e,t,n)}:J.test(e)?$e(e,t):Ke(e,t)}var We=function(e,t){var n=e.slice(),r=n.length,o=e.map((function(e,n){return Ge(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=o[t](e);return n}};function Ye(e){for(var t=Z.parse(e),n=t.length,r=0,o=0,a=0,i=0;i<n;i++)r||"number"==typeof t[i]?r++:void 0!==t[i].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}var Ke=function(e,t){var n=Z.createTransformer(t),r=Ye(e),o=Ye(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&(r.numNumbers,o.numNumbers),qe(We(r.parsed,o.parsed),n)};var Xe,Je=function(e){return e},Qe=function(e){return void 0===e&&(e=Je),Ie((function(t,n,r){var o=n-r,a=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?n+a:n-a}))},Ze=(Qe(),Qe(Math.sqrt),function(e,t){return t?e*(1e3/t):0}),et=(Ie((function(e,t,n){var r=t-e;return((n-e)%r+r)%r+e})),Ae(0,1),function(e){var t=e.onRead,n=e.onRender,r=e.uncachedValues,o=void 0===r?new Set:r,a=e.useCache,i=void 0===a||a;return function(e){void 0===e&&(e={});var r=s(e,[]),a={},c=[],l=!1;function u(e,t){e.startsWith("--")&&(r.hasCSSVariable=!0);var n=a[e];a[e]=t,a[e]!==n&&(-1===c.indexOf(e)&&c.push(e),l||(l=!0,C.render(d.render)))}var d={get:function(e,n){return void 0===n&&(n=!1),!n&&i&&!o.has(e)&&void 0!==a[e]?a[e]:t(e,r)},set:function(e,t){if("string"==typeof e)u(e,t);else for(var n in e)u(n,e[n]);return this},render:function(e){return void 0===e&&(e=!1),(l||!0===e)&&(n(a,r,c),l=!1,c.length=0),this}};return d}}),tt=/([a-z])([A-Z])/g,nt=function(e){return e.replace(tt,"$1-$2").toLowerCase()},rt=new Map,ot=new Map,at=["Webkit","Moz","O","ms",""],it=at.length,st="undefined"!=typeof document,ct=function(e,t){return ot.set(e,nt(t))},lt=function(e,t){void 0===t&&(t=!1);var n=t?ot:rt;return n.has(e)||(st?function(e){Xe=Xe||document.createElement("div");for(var t=0;t<it;t++){var n=at[t],r=""===n,o=r?e:n+e.charAt(0).toUpperCase()+e.slice(1);if(o in Xe.style||r){if(r&&"clipPath"===e&&ot.has(e))return;rt.set(e,o),ct(e,(r?"":"-")+nt(o))}}}(e):function(e){ct(e,e)}(e)),n.get(e)||e},ut=["","X","Y","Z"],dt=["translate","scale","rotate","skew","transformPerspective"].reduce((function(e,t){return ut.reduce((function(e,n){return e.push(t+n),e}),e)}),["x","y","z"]),ft=dt.reduce((function(e,t){return e[t]=!0,e}),{});function pt(e){return!0===ft[e]}function ht(e,t){return dt.indexOf(e)-dt.indexOf(t)}var mt=new Set(["originX","originY","originZ"]);function gt(e){return mt.has(e)}var bt=i(i({},N),{transform:Math.round}),vt={color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,size:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,rotate:L,rotateX:L,rotateY:L,rotateZ:L,scale:M,scaleX:M,scaleY:M,scaleZ:M,skew:L,skewX:L,skewY:L,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,opacity:P,originX:U,originY:U,originZ:B,zIndex:bt,fillOpacity:P,strokeOpacity:P,numOctaves:bt},yt=function(e){return vt[e]},wt=function(e,t){return t&&"number"==typeof e?t.transform(e):e},xt=new Set(["scrollLeft","scrollTop"]),Ot=new Set(["scrollLeft","scrollTop","transform"]),Et={x:"translateX",y:"translateY",z:"translateZ"};function kt(e){return"function"==typeof e}function _t(e,t,n,r,o,a,i,s){void 0===t&&(t=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===a&&(a=[]),void 0===i&&(i=!1),void 0===s&&(s=!0);var c=!0,l=!1,u=!1;for(var d in e){var f=e[d],p=yt(d),h=wt(f,p);pt(d)?(l=!0,r[d]=h,a.push(d),c&&(p.default&&f!==p.default||!p.default&&0!==f)&&(c=!1)):gt(d)?(o[d]=h,u=!0):Ot.has(d)&&kt(h)||(n[lt(d,i)]=h)}return(l||"function"==typeof e.transform)&&(n.transform=function(e,t,n,r,o,a){void 0===a&&(a=!0);var i="",s=!1;n.sort(ht);for(var c=n.length,l=0;l<c;l++){var u=n[l];i+=(Et[u]||u)+"("+t[u]+") ",s="z"===u||s}return!s&&o?i+="translateZ(0)":i=i.trim(),kt(e.transform)?i=e.transform(t,r?"":i):a&&r&&(i="none"),i}(e,r,a,c,t,s)),u&&(n.transformOrigin=(o.originX||"50%")+" "+(o.originY||"50%")+" "+(o.originZ||0)),n}function Ct(e){var t=void 0===e?{}:e,n=t.enableHardwareAcceleration,r=void 0===n||n,o=t.isDashCase,a=void 0===o||o,i=t.allowTransformNone,s=void 0===i||i,c={},l={},u={},d=[];return function(e){return d.length=0,_t(e,r,c,l,u,d,a,s),c}}var jt=et({onRead:function(e,t){var n=t.element,r=t.preparseOutput,o=yt(e);if(pt(e))return o&&o.default||0;if(xt.has(e))return n[e];var a=window.getComputedStyle(n,null).getPropertyValue(lt(e,!0))||0;return r&&o&&o.test(a)&&o.parse?o.parse(a):a},onRender:function(e,t,n){var r=t.element,o=t.buildStyles,a=t.hasCSSVariable;if(Object.assign(r.style,o(e)),a)for(var i=n.length,s=0;s<i;s++){var c=n[s];c.startsWith("--")&&r.style.setProperty(c,e[c])}-1!==n.indexOf("scrollLeft")&&(r.scrollLeft=e.scrollLeft),-1!==n.indexOf("scrollTop")&&(r.scrollTop=e.scrollTop)},uncachedValues:xt});var Tt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues"]),St=function(e,t){return B.transform(e*t)},It={x:0,y:0,width:0,height:0};function At(e,t,n){return"string"==typeof e?e:B.transform(t+n*e)}var Nt={enableHardwareAcceleration:!1,isDashCase:!1};function Pt(e,t,n,r,o,a){void 0===t&&(t=It),void 0===r&&(r=Ct(Nt)),void 0===o&&(o={style:{}}),void 0===a&&(a=!0);var i=e.attrX,c=e.attrY,l=e.originX,u=e.originY,d=e.pathLength,f=e.pathSpacing,p=void 0===f?1:f,h=e.pathOffset,m=void 0===h?0:h,g=r(s(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]));for(var b in g){if("transform"===b)o.style.transform=g[b];else o[a&&!Tt.has(b)?nt(b):b]=g[b]}return(void 0!==l||void 0!==u||g.transform)&&(o.style.transformOrigin=function(e,t,n){return At(t,e.x,e.width)+" "+At(n,e.y,e.height)}(t,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==i&&(o.x=i),void 0!==c&&(o.y=c),void 0!==n&&void 0!==d&&(o[a?"stroke-dashoffset":"strokeDashoffset"]=St(-m,n),o[a?"stroke-dasharray":"strokeDasharray"]=St(d,n)+" "+St(p,n)),o}function Mt(e,t,n){void 0===n&&(n=!0);var r={style:{}},o=Ct(Nt);return function(a){return Pt(a,e,t,o,r,n)}}var Rt=et({onRead:function(e,t){var n=t.element;if(pt(e=Tt.has(e)?e:nt(e))){var r=yt(e);return r&&r.default||0}return n.getAttribute(e)},onRender:function(e,t){var n=t.element,r=(0,t.buildAttrs)(e);for(var o in r)"style"===o?Object.assign(n.style,r.style):n.setAttribute(o,r[o])}}),Lt=et({useCache:!1,onRead:function(e){return"scrollTop"===e?window.pageYOffset:window.pageXOffset},onRender:function(e){var t=e.scrollTop,n=void 0===t?0:t,r=e.scrollLeft,o=void 0===r?0:r;return window.scrollTo(o,n)}}),Dt=new WeakMap,Bt=function(e,t){var n,r,o,a;return e===window?n=Lt(e):!function(e){return e instanceof HTMLElement||"function"==typeof e.click}(e)?function(e){return e instanceof SVGElement||"ownerSVGElement"in e}(e)&&(o=function(e){try{return function(e){return"function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}(e)}catch(e){return{x:0,y:0,width:0,height:0}}}(r=e),a=function(e){return"path"===e.tagName}(r)&&r.getTotalLength?r.getTotalLength():void 0,n=Rt({element:r,buildAttrs:Mt(o,a)})):n=function(e,t){void 0===t&&(t={});var n=t.enableHardwareAcceleration,r=t.allowTransformNone,o=s(t,["enableHardwareAcceleration","allowTransformNone"]);return jt(i({element:e,buildStyles:Ct({enableHardwareAcceleration:n,allowTransformNone:r}),preparseOutput:!0},o))}(e,t),Dt.set(e,n),n};var zt=function(e,t){return function(e,t){return Dt.has(e)?Dt.get(e):Bt(e,t)}("string"==typeof e?document.querySelector(e):e,t)},Ft=function(){return function(e,t){var n=this,r=e.middleware,o=e.onComplete;this.isActive=!0,this.update=function(e){n.observer.update&&n.updateObserver(e)},this.complete=function(){n.observer.complete&&n.isActive&&n.observer.complete(),n.onComplete&&n.onComplete(),n.isActive=!1},this.error=function(e){n.observer.error&&n.isActive&&n.observer.error(e),n.isActive=!1},this.observer=t,this.updateObserver=function(e){return t.update(e)},this.onComplete=o,t.update&&r&&r.length&&r.forEach((function(e){return n.updateObserver=e(n.updateObserver,n.complete)}))}}(),Ut=function(e,t,n){var r=t.middleware;return new Ft({middleware:r,onComplete:n},"function"==typeof e?{update:e}:e)},Ht=function(){function e(e){void 0===e&&(e={}),this.props=e}return e.prototype.create=function(t){return new e(t)},e.prototype.start=function(e){void 0===e&&(e={});var t=!1,n={stop:function(){}},r=this.props,o=r.init,a=s(r,["init"]),c=o(Ut(e,a,(function(){t=!0,n.stop()})));return n=c?i({},n,c):n,t&&n.stop(),n},e.prototype.applyMiddleware=function(e){return this.create(i({},this.props,{middleware:this.props.middleware?[e].concat(this.props.middleware):[e]}))},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=1===e.length?e[0]:qe.apply(void 0,e);return this.applyMiddleware((function(e){return function(t){return e(n(t))}}))},e}(),$t=function(e){return new Ht({init:e})},Vt=[B,D,L,z,F],qt=function(e){return Vt.find((function(t){return t.test(e)}))},Gt=function(e,t){return e(t)},Wt=function(e,t){var n=t.from,r=t.to,o=s(t,["from","to"]),a=qt(n)||qt(r),c=a.transform,l=a.parse;return e(i({},o,{from:"string"==typeof n?l(n):n,to:"string"==typeof r?l(r):r})).pipe(c)},Yt=function(e){return function(t,n){var r=n.from,o=n.to,a=s(n,["from","to"]);return t(i({},a,{from:0,to:1})).pipe(e(r,o))}},Kt=Yt($e),Xt=Yt(Ke),Jt=function(e,t){var n=function(e){var t=Object.keys(e),n=function(t,n){return void 0!==t&&!e[n](t)};return{getVectorKeys:function(e){return t.reduce((function(t,r){return n(e[r],r)&&t.push(r),t}),[])},testVectorProps:function(e){return e&&t.some((function(t){return n(e[t],t)}))}}}(t),r=n.testVectorProps,o=n.getVectorKeys;return function(t){if(!r(t))return e(t);var n=o(t),a=t[n[0]];return Qt(a)(e,t,n)}},Qt=function(e){return"number"==typeof e?Gt:function(e){return Boolean(qt(e))}(e)?Wt:J.test(e)?Kt:Z.test(e)?Xt:Gt},Zt=Jt((function(e){return void 0===e&&(e={}),$t((function(t){var n=t.complete,r=t.update,o=e.velocity,a=void 0===o?0:o,i=e.from,s=void 0===i?0:i,c=e.power,l=void 0===c?.8:c,u=e.timeConstant,d=void 0===u?350:u,f=e.restDelta,p=void 0===f?.5:f,h=e.modifyTarget,m=0,g=l*a,b=Math.round(s+g),v=void 0===h?b:h(b),y=C.update((function(e){var t=e.delta;m+=t;var o=-g*Math.exp(-m/d),a=o>p||o<-p;r(a?v+o:v),a||(x.update(y),n())}),!0);return{stop:function(){return x.update(y)}}}))}),{from:N.test,modifyTarget:function(e){return"function"==typeof e},velocity:N.test}),en=Jt((function(e){return void 0===e&&(e={}),$t((function(t){var n=t.update,r=t.complete,o=e.velocity,a=void 0===o?0:o,i=e.from,s=void 0===i?0:i,c=e.to,l=void 0===c?0:c,u=e.stiffness,d=void 0===u?100:u,f=e.damping,p=void 0===f?10:f,h=e.mass,m=void 0===h?1:h,g=e.restSpeed,b=void 0===g?.01:g,v=e.restDelta,y=void 0===v?.01:v,w=a?-a/1e3:0,O=0,E=l-s,k=s,_=k,j=C.update((function(e){var t=e.delta;O+=t;var o=p/(2*Math.sqrt(d*m)),i=Math.sqrt(d/m)/1e3;if(_=k,o<1){var s=Math.exp(-o*i*O),c=i*Math.sqrt(1-o*o);k=l-s*((w+o*i*E)/c*Math.sin(c*O)+E*Math.cos(c*O))}else{s=Math.exp(-i*O);k=l-s*(E+(w+i*E)*O)}a=Ze(k-_,t);var u=Math.abs(a)<=b,f=Math.abs(l-k)<=y;u&&f?(n(k=l),x.update(j),r()):n(k)}),!0);return{stop:function(){return x.update(j)}}}))}),{from:N.test,to:N.test,stiffness:N.test,damping:N.test,mass:N.test,velocity:N.test}),tn=Jt((function(e){var t=e.from,n=void 0===t?0:t,r=e.velocity,o=void 0===r?0:r,a=e.min,s=e.max,c=e.power,l=void 0===c?.8:c,u=e.timeConstant,d=void 0===u?700:u,f=e.bounceStiffness,p=void 0===f?500:f,h=e.bounceDamping,m=void 0===h?10:h,g=e.restDelta,b=void 0===g?1:g,v=e.modifyTarget;return $t((function(e){var t,r=e.update,c=e.complete,u=n,f=n,h=!1,g=function(e){return void 0!==a&&e<=a},y=function(e){return void 0!==s&&e>=s},w=function(e){return g(e)||y(e)},x=function(e){r(e),u=f,o=Ze((f=e)-u,_().delta),t&&!h&&function(e,t){return g(e)&&t<0||y(e)&&t>0}(e,o)&&E({from:e,velocity:o})},O=function(e,n){t&&t.stop(),t=e.start({update:x,complete:function(){n?n():c()}})},E=function(e){h=!0,O(en(i({},e,{to:g(e.from)?a:s,stiffness:p,damping:m,restDelta:b})))};if(w(n))E({from:n,velocity:o});else if(0!==o){var k=Zt({from:n,velocity:o,timeConstant:d,power:l,restDelta:w(n)?20:b,modifyTarget:v});O(k,(function(){w(f)?E({from:f,velocity:o}):c()}))}else c();return{stop:function(){return t&&t.stop()}}}))}),{from:N.test,velocity:N.test,min:N.test,max:N.test,damping:N.test,stiffness:N.test,modifyTarget:function(e){return"function"==typeof e}}),nn=Jt((function(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.ease,i=void 0===a?se:a,s=e.reverseEase;return void 0!==s&&s&&(i=ne(i)),$t((function(e){var t=e.update;return{seek:function(e){return t(e)}}})).pipe(i,(function(e){return De(n,o,e)}))}),{ease:function(e){return"function"==typeof e},from:N.test,to:N.test}),rn=Ae(0,1),on=function(e){return void 0===e&&(e={}),$t((function(t){var n,r=t.update,o=t.complete,a=e.duration,i=void 0===a?300:a,s=e.ease,c=void 0===s?le:s,l=e.flip,u=void 0===l?0:l,d=e.loop,f=void 0===d?0:d,p=e.yoyo,h=void 0===p?0:p,m=e.repeatDelay,g=void 0===m?0:m,b=e.from,v=void 0===b?0:b,y=e.to,w=void 0===y?1:y,O=e.elapsed,E=void 0===O?0:O,k=e.flipCount,_=void 0===k?0:k,j=e.yoyoCount,T=void 0===j?0:j,S=e.loopCount,I=void 0===S?0:S,A=nn({from:v,to:w,ease:c}).start(r),N=0,P=!1,M=function(e){var t;void 0===e&&(e=!1),A=nn({from:v=(t=[w,v])[0],to:w=t[1],ease:c,reverseEase:e}).start(r)},R=function(){N=rn(Le(0,i,E)),A.seek(N)},L=function(){P=!0,n=C.update((function(e){var t,r=e.delta;E+=r,R(),!(t=P&&E>i+g)||(!t||f||u||h)&&(E=E-i-g,f&&I<f?(I++,1):u&&_<u?(_++,M(),1):h&&T<h&&(T++,M(T%2!=0),1))||(x.update(n),o&&C.update(o,!1,!0))}),!0)},D=function(){P=!1,n&&x.update(n)};return L(),{isActive:function(){return P},getElapsed:function(){return Ae(0,i,E)},getProgress:function(){return N},stop:function(){D()},pause:function(){return D(),this},resume:function(){return P||L(),this},seek:function(e){return E=De(0,i,e),C.update(R,!1,!0),this},reverse:function(){return M(),this}}}))},an=Ae(0,1),sn=function(e){var t=e.easings,n=e.ease,r=void 0===n?se:n,o=e.times,a=e.values,c=s(e,["easings","ease","times","values"]);t=Array.isArray(t)?t:function(e,t){return e.map((function(){return t||le})).splice(0,e.length-1)}(a,t),o=o||function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(a);var l=t.map((function(e,t){return nn({from:a[t],to:a[t+1],ease:e})}));return on(i({},c,{ease:r})).applyMiddleware((function(e){return function(e,t,n){var r=e.length,o=r-1,a=o-1,i=t.map((function(e){return e.start(n)}));return function(t){t<=e[0]&&i[0].seek(0),t>=e[o]&&i[a].seek(1);for(var n=1;n<r&&!(e[n]>t||n===o);n++);var s=Le(e[n-1],e[n],t);i[n-1].seek(an(s))}}(o,l,e)}))},cn=function(e,t,n){return $t((function(r){var o=r.update,a=t.split(" ").map((function(t){return e.addEventListener(t,o,n),t}));return{stop:function(){return a.forEach((function(t){return e.removeEventListener(t,o,n)}))}}}))},ln=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},un=function(e,t){return void 0===t&&(t={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),t.clientX=t.x=e.clientX,t.clientY=t.y=e.clientY,t.pageX=e.pageX,t.pageY=e.pageY,t},dn=[ln()];if("undefined"!=typeof document){cn(document,"touchstart touchmove",{passive:!0,capture:!0}).start((function(e){var t=e.touches;!0;var n=t.length;dn.length=0;for(var r=0;r<n;r++){var o=t[r];dn.push(un(o))}}))}var fn=ln();if("undefined"!=typeof document){cn(document,"mousedown mousemove",!0).start((function(e){!0,un(e,fn)}))}var pn=function(e){return $t((function(t){var n=t.complete,r=setTimeout(n,e);return{stop:function(){return clearTimeout(r)}}}))},hn=function(){function e(e,t){var n,r=this,o=void 0===t?{}:t,a=o.transformer,i=o.parent;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),r.prev=r.current,r.current=r.transformer?r.transformer(e):e,r.updateSubscribers&&r.prev!==r.current&&r.updateSubscribers.forEach(r.notifySubscriber),r.children&&r.children.forEach(r.setChild),t&&r.renderSubscribers&&r.renderSubscribers.forEach(r.notifySubscriber);var n=_(),o=n.delta,a=n.timestamp;r.lastUpdated!==a&&(r.timeDelta=o,r.lastUpdated=a,C.postRender(r.scheduleVelocityCheck))},this.notifySubscriber=function(e){e(r.current)},this.scheduleVelocityCheck=function(){return C.postRender(r.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==r.lastUpdated&&(r.prev=r.current)},this.setChild=function(e){return e.set(r.current)},this.parent=i,this.transformer=a,this.set(e,!1),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return e.prototype.addChild=function(t){void 0===t&&(t={});var n=new e(this.current,i({parent:this},t));return this.children||(this.children=new Set),this.children.add(n),n},e.prototype.removeChild=function(e){this.children&&this.children.delete(e)},e.prototype.subscribeTo=function(e,t){var n=this,r=function(){return t(n.current)};return e.add(r),function(){return e.delete(r)}},e.prototype.onChange=function(e){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,e)},e.prototype.onRenderRequest=function(e){return this.renderSubscribers||(this.renderSubscribers=new Set),this.notifySubscriber(e),this.subscribeTo(this.renderSubscribers,e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getVelocity=function(){return this.canTrackVelocity?Ze(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.parent&&this.parent.removeChild(this),this.stop()},e}();function mn(e,t){return new hn(e,t)}function gn(e){var t=Object(l.useRef)(null);return null===t.current&&(t.current=e()),t.current}var bn,vn=function(e){return e instanceof hn},yn=et({onRead:function(){return null},onRender:function(e,t){return(0,t.onUpdate)(e)}}),wn=function(){function e(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return e.prototype.has=function(e){return this.values.has(e)},e.prototype.set=function(e,t){this.values.set(e,t),this.hasMounted&&this.bindValueToOutput(e,t)},e.prototype.get=function(e,t){var n=this.values.get(e);return void 0===n&&void 0!==t&&(n=new hn(t),this.set(e,n)),n},e.prototype.forEach=function(e){return this.values.forEach(e)},e.prototype.bindValueToOutput=function(e,t){var n=this,r=t.onRenderRequest((function(t){return n.output&&n.output(e,t)})),o=t.onChange((function(t){n.onUpdate&&n.onUpdate.set(e,t)}));this.unsubscribers.has(e)&&this.unsubscribers.get(e)(),this.unsubscribers.set(e,(function(){r(),o()}))},e.prototype.setOnUpdate=function(e){this.onUpdate=void 0,e&&(this.onUpdate=yn({onUpdate:e}))},e.prototype.setTransformTemplate=function(e){this.transformTemplate!==e&&(this.transformTemplate=e,this.updateTransformTemplate())},e.prototype.getTransformTemplate=function(){return this.transformTemplate},e.prototype.updateTransformTemplate=function(){this.output&&this.output("transform",this.transformTemplate)},e.prototype.mount=function(e){var t=this;this.hasMounted=!0,e&&(this.output=e),this.values.forEach((function(e,n){return t.bindValueToOutput(n,e)})),this.updateTransformTemplate()},e.prototype.unmount=function(){var e=this;this.values.forEach((function(t,n){var r=e.unsubscribers.get(n);r&&r()}))},e}(),xn=new Set(["dragOriginX","dragOriginY"]),On=function(e){var t=gn((function(){var t=new wn;for(var n in e)vn(e[n])&&!xn.has(n)&&t.set(n,e[n]);return t}));return t.setOnUpdate(e.onUpdate),t.setTransformTemplate(e.transformTemplate),t},En=null,kn=function(){return null!==En},_n=function(){En=[]},Cn=function(){En&&En.forEach((function(e){return e.render()})),En=null},jn=function(e){En&&En.push(e)},Tn=Object(l.memo)((function(e){var t=e.innerRef,n=e.values,r=e.isStatic;return Object(l.useEffect)((function(){t.current,Element;var e=zt(t.current,{preparseOutput:!1,enableHardwareAcceleration:!r});return n.mount((function(t,n){e.set(t,n),kn()&&jn(e)})),function(){return n.unmount()}}),[]),null})),Sn=(bn=function(e){return e.get()},function(e){var t={};return e.forEach((function(e,n){return t[n]=bn(e)})),t}),In=new Set(["originX","originY","originZ"]),An=function(e){return In.has(e)},Nn=function(e,t,n){var r=Sn(e),o=e.getTransformTemplate();return o&&(r.transform=t.transform?o({},t.transform):o),_t(i(i({},t),r),!n)},Pn=function(e){return Array.isArray(e)},Mn=function(e){return Pn(e)?e[e.length-1]||0:e},Rn=[N,B,D,L,F,z,{test:function(e){return"auto"===e},parse:function(e){return e}}],Ln=c(Rn,[J,Z]),Dn=function(e){return function(t){return t.test(e)}},Bn=function(e){return Rn.find(Dn(e))},zn=function(e){return Ln.find(Dn(e))},Fn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Un=function(e){return{type:"spring",stiffness:700,damping:0===e?100:35}},Hn=function(){return{ease:"linear",duration:.3}},$n=function(e){return{type:"keyframes",duration:.8,values:e}},Vn={x:Fn,y:Fn,z:Fn,rotate:Fn,rotateX:Fn,rotateY:Fn,rotateZ:Fn,scaleX:Un,scaleY:Un,scale:Un,opacity:Hn,backgroundColor:Hn,color:Hn,default:Un},qn=function(e){var t=e.to,n=e.duration;return $t((function(e){var r=e.update,o=e.complete;r(t),n?pn(n).start({complete:o}):o()}))},Gn=function(e){return Array.isArray(e)?(e.length,je(e[0],e[1],e[2],e[3])):"string"==typeof e?r[e]:e},Wn=function(e){return Array.isArray(e)&&"number"!=typeof e[0]},Yn=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Z.test(t)||t.startsWith("url(")))},Kn=function(e){return 1e3*e},Xn={tween:on,spring:en,keyframes:sn,inertia:tn,just:qn},Jn={tween:function(e){if(e.ease){var t=Wn(e.ease)?e.ease[0]:e.ease;e.ease=Gn(t)}return e},keyframes:function(e){var t=e.from,n=(e.to,e.velocity,s(e,["from","to","velocity"]));if(n.values&&null===n.values[0]){var r=c(n.values);r[0]=t,n.values=r}return n.ease&&(n.easings=Wn(n.ease)?n.ease.map(Gn):Gn(n.ease)),n.ease=se,n}},Qn=function(e,t,n){var r=n?n.delay:0;if(void 0===n||!function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection;var t=s(e,["when","delay","delayChildren","staggerChildren","staggerDirection"]);return Object.keys(t).length}(n))return i({delay:r},function(e,t){var n;return n=Pn(t)?$n:Vn[e]||Vn.default,i({to:t},n(t))}(e,t));var o=n[e]||n.default||n;return!1===o.type?{delay:o.hasOwnProperty("delay")?o.delay:r,to:Pn(t)?t[t.length-1]:t,type:"just"}:Pn(t)?i(i({values:t,duration:.8,delay:r,ease:"linear"},o),{type:"keyframes"}):i({type:"tween",to:t,delay:r},o)},Zn=function(e,t,n,r){var o,a=t.get(),c=Yn(e,a),l=Yn(e,n),u=Qn(e,n,r),d=u.type,f=void 0===d?"tween":d,p=s(u,["type"]),h=c&&l?Xn[f]:qn,m=function(e,t){return Jn[e]?Jn[e](t):t}(f,i({from:a,velocity:t.getVelocity()},p));return((o=m).hasOwnProperty("duration")||o.hasOwnProperty("repeatDelay"))&&(m.duration&&(m.duration=Kn(m.duration)),m.repeatDelay&&(m.repeatDelay=Kn(m.repeatDelay))),[h,m]};function er(e,t,n,r){var o=r.delay,a=void 0===o?0:o,i=s(r,["delay"]);return t.start((function(r){var o,c=Zn(e,t,n,i),l=c[0],u=c[1],d=u.delay,f=s(u,["delay"]);void 0!==d&&(a=d);var p=function(){var e=l(f);o=e.start({update:function(e){return t.set(e)},complete:r})};return a?o=pn(Kn(a)).start({complete:p}):p(),function(){o&&o.stop()}}))}var tr=function(){function e(e){var t=this,n=e.values,r=e.readValueFromSource,o=e.makeTargetAnimatable;this.props={},this.variants={},this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.activeOverrides=new Set,this.isAnimating=new Set,this.hasValue=function(e){return!t.values.has(e)},this.values=n,this.readValueFromSource=r,this.makeTargetAnimatable=o,this.values.forEach((function(e,n){return t.baseTarget[n]=e.get()}))}return e.prototype.setProps=function(e){this.props=e},e.prototype.setVariants=function(e){e&&(this.variants=e)},e.prototype.setDefaultTransition=function(e){e&&(this.defaultTransition=e)},e.prototype.setValues=function(e,t){var n=this,r=void 0===t?{}:t,o=r.isActive,a=void 0===o?new Set:o,s=r.priority,c=this.resolveVariant(e),l=c.target,u=c.transitionEnd;return l=this.transformValues(i(i({},l),u)),Object.keys(l).forEach((function(e){if(!a.has(e)&&(a.add(e),l)){var t=Mn(l[e]);if(n.values.has(e)){var r=n.values.get(e);r&&r.set(t)}else n.values.set(e,mn(t));s||(n.baseTarget[e]=t)}}))},e.prototype.transformValues=function(e){var t=this.props.transformValues;return t?t(e):e},e.prototype.checkForNewValues=function(e){var t=Object.keys(e).filter(this.hasValue),n=t.length;if(n)for(var r=0;r<n;r++){var o=t[r],a=e[o],i=null;Array.isArray(a)&&(i=a[0]),null===i&&(i=this.readValueFromSource(o)),"string"==typeof i&&/^\d*\.?\d+$/.test(i)?i=parseFloat(i):!zn(i)&&Z.test(a)&&(i=Z.getAnimatableNone(a)),this.values.set(o,mn(i)),this.baseTarget[o]=i}},e.prototype.resolveVariant=function(e){if(!e)return{target:void 0,transition:void 0,transitionEnd:void 0};var t,n;"function"==typeof e&&(e=e(this.props.custom,(t=this.values,n={},t.forEach((function(e,t){return n[t]=e.get()})),n),function(e){var t={};return e.forEach((function(e,n){return t[n]=e.getVelocity()})),t}(this.values)));var r=e.transition;return{transition:void 0===r?this.defaultTransition:r,transitionEnd:e.transitionEnd,target:s(e,["transition","transitionEnd"])}},e.prototype.getHighestPriority=function(){return this.activeOverrides.size?Math.max.apply(Math,Array.from(this.activeOverrides)):0},e.prototype.setOverride=function(e,t){this.overrides[t]=e,this.children&&this.children.forEach((function(n){return n.setOverride(e,t)}))},e.prototype.startOverride=function(e){var t=this.overrides[e];if(t)return this.start(t,{priority:e})},e.prototype.clearOverride=function(e){var t=this;if(this.children&&this.children.forEach((function(t){return t.clearOverride(e)})),this.overrides[e]){this.activeOverrides.delete(e);var n=this.getHighestPriority();if(this.resetIsAnimating(),n)this.overrides[n]&&this.startOverride(n);var r=this.resolvedOverrides[e];if(r){var o={};for(var a in this.baseTarget)void 0!==r[a]&&(o[a]=this.baseTarget[a]);this.onStart(),this.animate(o).then((function(){return t.onComplete()}))}}},e.prototype.apply=function(e){return Array.isArray(e)?this.applyVariantLabels(e):"string"==typeof e?this.applyVariantLabels([e]):void this.setValues(e)},e.prototype.applyVariantLabels=function(e){var t=this,n=new Set;c(e).reverse().forEach((function(r){var o=t.resolveVariant(t.variants[r]),a=o.target,i=o.transitionEnd;i&&t.setValues(i,{isActive:n}),a&&t.setValues(a,{isActive:n}),t.children&&t.children.size&&t.children.forEach((function(t){return t.applyVariantLabels(e)}))}))},e.prototype.start=function(e,t){var n,r,o=this;return void 0===t&&(t={}),t.priority&&this.activeOverrides.add(t.priority),this.resetIsAnimating(t.priority),r=e,n=Array.isArray(r)?this.animateVariantLabels(e,t):"string"==typeof e?this.animateVariant(e,t):this.animate(e,t),this.onStart(),n.then((function(){return o.onComplete()}))},e.prototype.animate=function(e,t){var n=this,r=void 0===t?{}:t,o=r.delay,a=void 0===o?0:o,s=r.priority,c=void 0===s?0:s,l=r.transitionOverride,u=this.resolveVariant(e),d=u.target,f=u.transition,p=u.transitionEnd;if(l&&(f=l),!d)return Promise.resolve();if(d=this.transformValues(d),p&&(p=this.transformValues(p)),this.checkForNewValues(d),this.makeTargetAnimatable){var h=this.makeTargetAnimatable(d,p);d=h.target,p=h.transitionEnd}c&&(this.resolvedOverrides[c]=d),this.checkForNewValues(d);var m=[];for(var g in d){var b=this.values.get(g);if(b&&d&&void 0!==d[g]){var v=d[g];c||(this.baseTarget[g]=Mn(v)),this.isAnimating.has(g)||(this.isAnimating.add(g),m.push(er(g,b,v,i({delay:a},f))))}}var y=Promise.all(m);return p?y.then((function(){n.setValues(p,{priority:c})})):y},e.prototype.animateVariantLabels=function(e,t){var n=this,r=c(e).reverse().map((function(e){return n.animateVariant(e,t)}));return Promise.all(r)},e.prototype.animateVariant=function(e,t){var n=this,r=!1,o=0,a=0,i=1,s=t&&t.priority||0,c=this.variants[e],l=c?function(){return n.animate(c,t)}:function(){return Promise.resolve()},u=this.children?function(){return n.animateChildren(e,o,a,i,s)}:function(){return Promise.resolve()};if(c&&this.children){var d=this.resolveVariant(c).transition;d&&(r=d.when||r,o=d.delayChildren||o,a=d.staggerChildren||a,i=d.staggerDirection||i)}if(r){var f="beforeChildren"===r?[l,u]:[u,l],p=f[1];return(0,f[0])().then(p)}return Promise.all([l(),u()])},e.prototype.animateChildren=function(e,t,n,r,o){if(void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===o&&(o=0),!this.children)return Promise.resolve();var a=[],i=(this.children.size-1)*n,s=1===r?function(e){return e*n}:function(e){return i-e*n};return Array.from(this.children).forEach((function(n,r){var i=n.animateVariant(e,{priority:o,delay:t+s(r)});a.push(i)})),Promise.all(a)},e.prototype.onStart=function(){var e=this.props.onAnimationStart;e&&e()},e.prototype.onComplete=function(){var e=this.props.onAnimationComplete;e&&e()},e.prototype.checkOverrideIsAnimating=function(e){for(var t=this.overrides.length,n=e+1;n<t;n++){var r=this.resolvedOverrides[n];if(r)for(var o in r)this.isAnimating.add(o)}},e.prototype.resetIsAnimating=function(e){void 0===e&&(e=0),this.isAnimating.clear(),e<this.getHighestPriority()&&this.checkOverrideIsAnimating(e),this.children&&this.children.forEach((function(t){return t.resetIsAnimating(e)}))},e.prototype.stop=function(){this.values.forEach((function(e){return e.stop()}))},e.prototype.addChild=function(e){this.children||(this.children=new Set),this.children.add(e),this.overrides.forEach((function(t,n){t&&e.setOverride(t,n)}))},e.prototype.removeChild=function(e){this.children&&this.children.delete(e)},e.prototype.resetChildren=function(){this.children&&this.children.clear()},e}();var nr=function(){function e(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set}return e.prototype.setVariants=function(e){this.variants=e,this.componentControls.forEach((function(t){return t.setVariants(e)}))},e.prototype.setDefaultTransition=function(e){this.defaultTransition=e,this.componentControls.forEach((function(t){return t.setDefaultTransition(e)}))},e.prototype.subscribe=function(e){var t=this;return this.componentControls.add(e),this.variants&&e.setVariants(this.variants),this.defaultTransition&&e.setDefaultTransition(this.defaultTransition),function(){return t.componentControls.delete(e)}},e.prototype.start=function(e,t){var n=this;if(this.hasMounted){var r=[];return this.componentControls.forEach((function(n){var o=n.start(e,{transitionOverride:t});r.push(o)})),Promise.all(r)}return new Promise((function(r){n.pendingAnimations.push({animation:[e,t],resolve:r})}))},e.prototype.set=function(e){return this.hasMounted,this.componentControls.forEach((function(t){return t.apply(e)}))},e.prototype.stop=function(){this.componentControls.forEach((function(e){return e.stop()}))},e.prototype.mount=function(){var e=this;this.hasMounted=!0,this.pendingAnimations.forEach((function(t){var n=t.animation,r=t.resolve;return e.start.apply(e,n).then(r)}))},e.prototype.unmount=function(){this.hasMounted=!1,this.stop()},e}(),rr=Object(l.createContext)(null),or=Object(l.createContext)({static:!1}),ar=function(e){return"string"==typeof e||Array.isArray(e)},ir=function(e){return e instanceof nr},sr=function(e,t,n,r,o){void 0===r&&(r=!1);var a,i,s=o.initial,c=o.animate,u=o.variants,d=o.whileTap,f=o.whileHover,p=Object(l.useContext)(rr);void 0!==(null===(a=p)||void 0===a?void 0:a.initial)&&(s=p.initial),!1!==s||ir(c)?"boolean"!=typeof s&&(i=s):i=c;var h=Object(l.useRef)(!1),m=u||ar(c)||ar(d)||ar(f)||ir(c),g=ar(i)?i:e.initial,b=ar(c)?c:e.animate,v=r?g:null,y=m&&ar(b)?b:null,w=Object(l.useMemo)((function(){return{controls:m?t:e.controls,initial:g,animate:b,values:n,hasMounted:h,isReducedMotion:e.isReducedMotion}}),[v,y,e.isReducedMotion]);return w.static=r,function(e,t){void 0===t&&(t=!1);var n=Object(l.useRef)(!0);(!t||t&&n.current)&&e(),n.current=!1}((function(){var n=i||e.initial;n&&t.apply(n)}),!r),Object(l.useEffect)((function(){h.current=!0}),[]),w};function cr(e,t,n){var r=t.variants,o=t.transition,a=Object(l.useContext)(or).controls,i=Object(l.useContext)(rr),c=gn((function(){return new tr(e)}));return i&&!i.isPresent||(c.resetChildren(),c.setProps(t),c.setVariants(r),c.setDefaultTransition(o)),Object(l.useEffect)((function(){n&&a&&a.addChild(c)})),Object(l.useEffect)((function(){return function(){t.onAnimationComplete;var e=s(t,["onAnimationComplete"]);c.setProps(e),a&&a.removeChild(c)}}),[]),c}var lr=function(e){var t=e.animate,n=e.variants,r=e.inherit;return(void 0===r||r)&&!!n&&(!t||t instanceof nr)};var ur=function(e){var t=e.getValueControlsConfig,n=e.loadFunctionalityComponents,r=e.renderComponent;return Object(l.forwardRef)((function(e,o){var a=function(e){var t=e&&"function"!=typeof e?e:Object(l.useRef)(null);return e&&"function"==typeof e&&Object(l.useEffect)((function(){return e(t.current),function(){return e(null)}}),[]),t}(o),i=Object(l.useContext)(or),s=i.static||e.static||!1,c=On(e),u=function(e,t,n,r){void 0===t&&(t={});var o={},a=Object(l.useRef)({}).current;for(var i in t){var s=t[i];if(vn(s))e.set(i,s);else if(n||!pt(i)&&!An(i))o[i]=s;else{if(e.has(i)){if(s!==a[i])e.get(i).set(s)}else e.set(i,mn(s));a[i]=s}}return r?r(o):o}(c,e.style,s,e.transformValues),d=lr(e),f=cr(gn((function(){return t(a,c)})),e,d),p=sr(i,f,c,s,e),h=s?null:n(a,c,e,i,f,d),m=r(a,u,c,e,s);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(or.Provider,{value:p},m),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Tn,{innerRef:a,values:c,isStatic:s}),h))}))},dr=["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],fr=Object(l.createContext)({transformPagePoint:function(e){return e}});function pr(e){return Object(l.useEffect)((function(){return function(){return e()}}),[])}function hr(e,t,n,r){if(n)return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function mr(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function gr(e){return!!e.touches}var br={pageX:0,pageY:0};function vr(e){var t=e.pageX,n=void 0===t?0:t,r=e.pageY;return{x:n,y:void 0===r?0:r}}function yr(e){return{point:gr(e)?(t=e,n=t.touches[0]||t.changedTouches[0]||br,{x:n.pageX,y:n.pageY}):vr(e)};var t,n}var wr,xr=function(e,t){if(void 0===t&&(t=!1),e){var n=function(t){return e(t,yr(t))};return t?function(e){if(e)return function(t){var n=t instanceof MouseEvent;(!n||n&&0===t.button)&&e(t)}}(n):n}},Or="undefined"!=typeof window,Er={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},kr={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function _r(e){return Or&&null===window.onpointerdown?e:Or&&null===window.ontouchstart?kr[e]:Or&&null===window.onmousedown?Er[e]:e}function Cr(e,t,n,r){return hr(e,_r(t),xr(n,"pointerdown"===t),r)}function jr(e,t,n,r){return function(e,t,n,r){Object(l.useEffect)((function(){var o=e.current;if(n&&o)return hr(o,t,n,r)}),[e,t,n,r])}(e,_r(t),xr(n,"pointerdown"===t),r)}!function(e){e.subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.relativeTo=function(e){var t;return function(n){var r=n.x,o=n.y,a=void 0!==t?t:t="string"==typeof e?document.getElementById(e):e;if(a){var i=a.getBoundingClientRect();return{x:r-i.left-window.scrollX,y:o-i.top-window.scrollY}}}}}(wr||(wr={}));var Tr=!1;"undefined"!=typeof window&&document.addEventListener("touchmove",(function(e){Tr&&e.preventDefault()}),{passive:!1});var Sr=function(){return Tr=!1},Ir=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=Nr(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Re(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=_().timestamp;r.history.push(i(i({},o),{timestamp:a}));var s=r.handlers,c=s.onStart,l=s.onMove;t||(c&&c(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},!(gr(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Ar(yr(e),this.transformPagePoint),s=a.point,c=_().timestamp;this.history=[i(i({},s),{timestamp:c})];var l=t.onSessionStart;l&&l(e,Nr(a,this.history));var u=Cr(window,"pointermove",(function(e,t){return r.handlePointerMove(e,t)})),d=Cr(window,"pointerup",(function(e,t){return r.handlePointerUp(e,t)}));this.removeListeners=function(){u&&u(),d&&d()}}}return e.prototype.handlePointerMove=function(e,t){this.lastMoveEvent=e,this.lastMoveEventInfo=Ar(t,this.transformPagePoint),mr(e)&&0===e.buttons?this.handlePointerUp(e,t):C.update(this.updatePoint,!0)},e.prototype.handlePointerUp=function(e,t){this.end();var n=this.handlers.onEnd;if(n){var r=Nr(Ar(t,this.transformPagePoint),this.history);n&&n(e,r)}},e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),x.update(this.updatePoint),Sr()},e}();function Ar(e,t){return t?{point:t(e.point)}:e}function Nr(e,t){var n=e.point;return{point:n,delta:wr.subtract(n,Mr(t)),offset:wr.subtract(n,Pr(t)),velocity:Rr(t,.1)}}function Pr(e){return e[0]}function Mr(e){return e[e.length-1]}function Rr(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Mr(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Kn(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}var Lr=function(e,t){return!!t&&(e===t||Lr(e,t.parentElement))},Dr=["whileHover","whileTap","whileDrag"],Br=function(e){return Dr.indexOf(e)+1};function zr(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Fr=zr("dragHorizontal"),Ur=zr("dragVertical");function Hr(e){var t=!1;if("y"===e)t=Ur();else if("x"===e)t=Fr();else{var n=Fr(),r=Ur();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}var $r=Br("whileTap");var Vr=Br("whileHover"),qr=function(e){return function(t,n){mr(t)&&e(t,n)}};function Gr(e,t){!function(e,t){var n=e.onPan,r=e.onPanStart,o=e.onPanEnd,a=e.onPanSessionStart,i=n||r||o||a,s=Object(l.useRef)(null),c=Object(l.useContext)(fr).transformPagePoint,u={onSessionStart:a,onStart:r,onMove:n,onEnd:function(e,t){s.current=null,o&&o(e,t)}};Object(l.useEffect)((function(){null!==s.current&&s.current.updateHandlers(u)})),jr(t,"pointerdown",i&&function(e){s.current=new Ir(e,u,{transformPagePoint:c})}),pr((function(){return s.current&&s.current.end()}))}(e,t),function(e,t){var n=e.onTap,r=e.onTapStart,o=e.onTapCancel,a=e.whileTap,i=e.controls,s=n||r||o||a,c=Object(l.useRef)(!1),u=Object(l.useRef)(null);function d(){u.current&&u.current(),u.current=null}a&&i&&i.setOverride(a,$r);var f=Object(l.useRef)(null);f.current=function(e,r){var s=t.current;if(d(),c.current&&s){c.current=!1,i&&a&&i.clearOverride($r);var l=Hr(!0);l&&(l(),Lr(s,e.target)?n&&n(e,r):o&&o(e,r))}},jr(t,"pointerdown",s?function(e,n){d(),u.current=Cr(window,"pointerup",(function(e,t){return f.current(e,t)})),t.current&&!c.current&&(c.current=!0,r&&r(e,n),i&&a&&i.startOverride($r))}:void 0),pr(d)}(e,t),function(e,t){var n=e.whileHover,r=e.onHoverStart,o=e.onHoverEnd,a=e.controls;n&&a&&a.setOverride(n,Vr),jr(t,"pointerenter",qr((function(e,t){r&&r(e,t),n&&a&&a.startOverride(Vr)}))),jr(t,"pointerleave",qr((function(e,t){o&&o(e,t),n&&a&&a.clearOverride(Vr)})))}(e,t)}var Wr=function(e){return function(t){return e(t),null}},Yr=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileTap","whileHover","onHoverStart","onHoverEnd"],Kr={key:"gestures",shouldRender:function(e){return Yr.some((function(t){return e.hasOwnProperty(t)}))},Component:Wr((function(e){var t=e.innerRef;Gr(s(e,["innerRef"]),t)}))},Xr=function(e){return"object"==typeof e&&e.hasOwnProperty("current")},Jr=function(e){return e},Qr=function(){function e(e){var t=e.ref,n=e.values,r=e.controls;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.props={transformPagePoint:Jr},this.point={},this.origin={x:mn(0),y:mn(0)},this.openGlobalLock=null,this.panSession=null,this.prevConstraintsBox={width:0,height:0,x:0,y:0},this.ref=t,this.values=n,this.controls=r}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor;void 0!==r&&r&&this.snapToCursor(e);var o=this.props.transformPagePoint;this.panSession=new Ir(e,{onSessionStart:function(){Tr=!0,Zr((function(e){var t=n.point[e];t&&t.stop()}))},onStart:function(e,t){if(n.constraintsNeedResolution){var r=n.props,o=r.dragConstraints,a=r.transformPagePoint;n.constraints=ro(o,n.ref,n.point,a),n.applyConstraintsToPoint()}Zr((function(e){var t=n.point[e];t&&n.origin[e].set(t.get())}));var i=n.props,s=i.drag,c=i.dragPropagation;if(!s||c||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Hr(s),n.openGlobalLock)){n.isDragging=!0,n.currentDirection=null;var l=n.props.onDragStart;l&&l(e,eo(t,n.point))}},onMove:function(e,t){var r=n.props,o=r.dragPropagation,a=r.dragDirectionLock;if(o||n.openGlobalLock){var i=t.offset;if(a&&null===n.currentDirection){if(n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(i),null!==n.currentDirection){var s=n.props.onDirectionLock;s&&s(n.currentDirection)}}else{n.updatePoint("x",i),n.updatePoint("y",i);var c=n.props.onDrag;c&&c(e,eo(t,n.point))}}},onEnd:function(e,t){n.stop(e,t)}},{transformPagePoint:o})},e.prototype.cancelDrag=function(){Sr(),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null)},e.prototype.stop=function(e,t){var n;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var r=this.isDragging;if(this.cancelDrag(),r){var o=this.props,a=o.dragMomentum,i=o.dragElastic,s=o.onDragEnd;if(a||i){var c=t.velocity;this.animateDragEnd(c)}else this.recordBoxInfo(this.constraints);s&&s(e,eo(t,this.point))}},e.prototype.recordBoxInfo=function(e){if(e){var t=e.right,n=e.left,r=e.bottom,o=e.top;this.prevConstraintsBox.width=(t||0)-(n||0),this.prevConstraintsBox.height=(r||0)-(o||0)}this.point.x&&(this.prevConstraintsBox.x=this.point.x.get()),this.point.y&&(this.prevConstraintsBox.y=this.point.y.get())},e.prototype.snapToCursor=function(e){var t=this,n=this.props.transformPagePoint,r=yr(e).point,o=oo(this.ref,n),a=o.width/2+o.left+window.scrollX,i=o.height/2+o.top+window.scrollY,s={x:r.x-a,y:r.y-i};Zr((function(e){var n=t.point[e];n&&t.origin[e].set(n.get())})),this.updatePoint("x",s),this.updatePoint("y",s)},e.prototype.setPoint=function(e,t){this.point[e]=t},e.prototype.updatePoint=function(e,t){var n=this.props,r=n.drag,o=n.dragElastic,a=this.point[e];if(no(e,r,this.currentDirection)&&a){var i=io(e,this.origin[e].get()+t[e],this.constraints,o);a.set(i)}},e.prototype.updateProps=function(e){var t=this,n=e.drag,r=void 0!==n&&n,o=e.dragDirectionLock,a=void 0!==o&&o,c=e.dragPropagation,l=void 0!==c&&c,u=e.dragConstraints,d=void 0!==u&&u,f=e.dragElastic,p=void 0===f||f,h=e.dragMomentum,m=void 0===h||h,g=s(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=i({drag:r,dragDirectionLock:a,dragPropagation:l,dragConstraints:d,dragElastic:p,dragMomentum:m},g);var b=g._dragValueX,v=g._dragValueY,y=g.dragOriginX,w=g.dragOriginY;y&&(this.origin.x=y),w&&(this.origin.y=w),Zr((function(e){if(no(e,r,t.currentDirection)){var n="x"===e?b:v;t.setPoint(e,n||t.values.get(e,0))}})),this.constraintsNeedResolution=Xr(d),this.constraints=this.constraintsNeedResolution?this.constraints||!1:d},e.prototype.applyConstraintsToPoint=function(e){var t=this;return void 0===e&&(e=this.constraints),Zr((function(n){var r=t.point[n];r&&!r.isAnimating()&&io(n,r,e,0)}))},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,r=n.drag,o=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,c=n._dragValueX,l=n._dragValueY,u=n._dragTransitionControls,d=Zr((function(n){var d;if(no(n,r,t.currentDirection)){var f=t.constraints?to(n,t.constraints):{},p=a?200:1e6,h=a?40:1e7,m=u||t.controls,g=i(i({type:"inertia",velocity:o?e[n]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1},s),f),b="x"===n?c:l;return b?er(n,b,0,g):m.start(((d={})[n]=0,d.transition=g,d))}}));return Promise.all(d).then((function(){t.recordBoxInfo(t.constraints),t.scalePoint();var e=t.props.onDragTransitionEnd;e&&e()}))},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.transformPagePoint;if(Xr(n)){var o=oo(n,r),a=oo(this.ref,r),i=function(t,n){var r=e.point[t];if(r){if(r.isAnimating())return r.stop(),void e.recordBoxInfo();var i=e.prevConstraintsBox[n]?(o[n]-a[n])/e.prevConstraintsBox[n]:1;r.set(e.prevConstraintsBox[t]*i)}};i("x","width"),i("y","height")}},e.prototype.mount=function(e){var t=this,n=Cr(e,"pointerdown",(function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=hr(window,"resize",(function(){return t.scalePoint()}));if(this.constraintsNeedResolution){var o=this.props,a=o.dragConstraints,i=o.transformPagePoint,s=ro(a,this.ref,this.point,i);this.applyConstraintsToPoint(s),this.recordBoxInfo(s)}else!this.isDragging&&this.constraints&&this.applyConstraintsToPoint();return function(){n&&n(),r&&r(),t.cancelDrag()}},e}();function Zr(e){return[e("x"),e("y")]}function eo(e,t){return i(i({},e),{point:{x:t.x?t.x.get():0,y:t.y?t.y.get():0}})}function to(e,t){var n=t.top,r=t.right,o=t.bottom,a=t.left;return"x"===e?{min:a,max:r}:{min:n,max:o}}function no(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}function ro(e,t,n,r){null!==e.current&&t.current;var o=oo(e,r),a=oo(t,r),i=o.left-a.left+ao(n.x),s=o.top-a.top+ao(n.y);return{top:s,left:i,right:o.width-a.width+i,bottom:o.height-a.height+s}}function oo(e,t){var n=e.current.getBoundingClientRect(),r=t({x:n.left,y:n.top}),o=r.x,a=r.y,i=t({x:n.width,y:n.height});return{left:o,top:a,width:i.x,height:i.y}}function ao(e){return e?e.get():0}function io(e,t,n,r){var o=t instanceof hn?t.get():t;if(!n)return o;var a=to(e,n),i=a.min,s=a.max;return void 0!==i&&o<i?o=r?so(i,o,r):Math.max(i,o):void 0!==s&&o>s&&(o=r?so(s,o,r):Math.min(s,o)),t instanceof hn&&t.set(o),o}function so(e,t,n){return De(e,t,"number"==typeof n?n:.35)}var co={key:"drag",shouldRender:function(e){return!!e.drag},Component:Wr((function(e){var t=e.innerRef,n=e.values,r=e.controls;return function(e,t,n,r){var o=e.dragControls,a=Object(l.useContext)(fr).transformPagePoint,s=gn((function(){return new Qr({ref:t,values:n,controls:r})}));s.updateProps(i(i({},e),{transformPagePoint:a})),Object(l.useEffect)((function(){return o&&o.subscribe(s)}),[s]),Object(l.useEffect)((function(){return s.mount(t.current)}),[])}(s(e,["innerRef","values","controls"]),t,n,r)}))};function lo(e){return"string"==typeof e&&e.startsWith("var(--")}var uo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function fo(e,t,n){void 0===n&&(n=1);var r=function(e){var t=uo.exec(e);return t?[t[1],t[2]]:[,]}(e),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i||(lo(a)?fo(a,t,n+1):a)}}var po,ho=new Set(["width","height","top","left","right","bottom","x","y"]),mo=function(e){return ho.has(e)},go=function(e,t){e.set(t,!1),e.set(t)},bo=function(e){return e===N||e===B};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(po||(po={}));var vo=function(e,t){return parseFloat(e.split(", ")[t])},yo=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return vo(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?vo(i[1],e):0}},wo=new Set(["x","y","z"]),xo=dt.filter((function(e){return!wo.has(e)}));var Oo={width:function(e){return e.width},height:function(e){return e.height},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.height,r=t.top;return parseFloat(r)+n},right:function(e,t){var n=e.width,r=t.left;return parseFloat(r)+n},x:yo(4,13),y:yo(5,14)},Eo=function(e,t,n,r){void 0===r&&(r={}),n=i({},n),r=i({},r);var o=t.current,a=zt(o),s=Object.keys(n).filter(mo),c=[],l=!1,u=s.reduce((function(t,o){var i=e.get(o);if(!i)return t;var s,u=i.get(),d=n[o],f=Bn(u);if(Pn(d))for(var p=d.length,h=null===d[0]?1:0;h<p;h++)s?Bn(d[h]):(s=Bn(d[h]))===f||bo(f)&&bo(s);else s=Bn(d);if(f!==s)if(bo(f)&&bo(s)){var m=i.get();"string"==typeof m&&i.set(parseFloat(m)),"string"==typeof d?n[o]=parseFloat(d):Array.isArray(d)&&s===B&&(n[o]=d.map(parseFloat))}else l||(c=function(e,t){var n=[];return xo.forEach((function(t){var r=e.get(t);void 0!==r&&(n.push([t,r.get()]),r.set(t.startsWith("scale")?1:0))})),n.length&&t.render(),n}(e,a),l=!0),t.push(o),r[o]=void 0!==r[o]?r[o]:n[o],go(i,d);return t}),[]);if(u.length){var d=function(e,t,n,r,o){var a=n.getBoundingClientRect(),i=getComputedStyle(n),s=i.display,c={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===s&&r.set("display",e.display||"block"),r.render();var l=n.getBoundingClientRect();return o.forEach((function(n){var r=t.get(n);go(r,Oo[n](a,c)),e[n]=Oo[n](l,i)})),e}(n,e,o,a,u);return c.length&&c.forEach((function(t){var n=t[0],r=t[1];e.get(n).set(r)})),a.render(),{target:d,transitionEnd:r}}return{target:n,transitionEnd:r}};function ko(e,t,n,r){return function(e){return Object.keys(e).some(mo)}(n)?Eo(e,t,n,r):{target:n,transitionEnd:r}}var _o=function(e,t){return function(n,r){var o=function(e,t,n,r){var o=s(n,[]),a=t.current;if(!(a instanceof HTMLElement))return{target:o,transitionEnd:r};for(var c in r&&(r=i({},r)),e.forEach((function(e){var t=e.get();if(lo(t)){var n=fo(t,a);n&&e.set(n)}})),o){var l=o[c];if(lo(l)){var u=fo(l,a);u&&(o[c]=u,r&&void 0===r[c]&&(r[c]=l))}}return{target:o,transitionEnd:r}}(e,t,n,r);return n=o.target,r=o.transitionEnd,ko(e,t,n,r)}};var Co,jo,To=Object(l.createContext)(null);!function(e){e.Prepare="prepare",e.Read="read",e.Render="render"}(jo||(jo={}));var So=[jo.Prepare,jo.Read,jo.Render].reduce((function(e,t){return e[t]=[],e}),{}),Io=!1;function Ao(e){for(var t=e.length,n=0;n<t;n++)e[n]();e.length=0}var No=function(e){return function(t){t&&(Io=!0,So[e].push(t))}},Po=((Co={})[jo.Prepare]=No(jo.Prepare),Co[jo.Read]=No(jo.Read),Co[jo.Render]=No(jo.Render),Co.flush=function(){Io&&(Ao(So.prepare),Ao(So.read),Ao(So.render),Io=!1)},Co);var Mo={duration:.8,ease:[.45,.05,.19,1]},Ro={type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10};var Lo={id:"x",size:"width",min:"left",max:"right",origin:"originX"},Do={id:"y",size:"height",min:"top",max:"bottom",origin:"originY"};function Bo(e,t){return(e+t)/2}function zo(e,t,n){var r,o=e[n.size]-t[n.size],a=.5;return o&&(e[n.min]===t[n.min]?a=0:e[n.max]===t[n.max]&&(a=1)),(r={})[n.size]=o,r[n.origin]=a,r[n.id]=.5===a?Bo(e[n.min],e[n.max])-Bo(t[n.min],t[n.max]):0,r}var Fo={getLayout:function(e){return e.offset},measure:function(e){var t=e.offsetLeft,n=e.offsetTop,r=e.offsetWidth,o=e.offsetHeight;return{left:t,top:n,right:t+r,bottom:n+o,width:r,height:o}}},Uo={getLayout:function(e){return e.boundingBox},measure:function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top,width:t.width,height:t.height,right:t.right,bottom:t.bottom}}};function Ho(e){return window.getComputedStyle(e).position}function $o(e){return"width"===e||"height"===e}var Vo,qo={key:"layout",shouldRender:function(e){var t=e.positionTransition,n=e.layoutTransition;return"undefined"!=typeof window&&!(!t&&!n)},Component:function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.innerRef,n=e.positionTransition,r=e.values,o=e.controls,a=t.current;if(function(e){return e instanceof HTMLElement}(a)){var s,c,l,u=function(e){var t=e.layoutTransition,n=e.positionTransition;return t||n}(this.props),d=!!n,f=Ho(a),p={offset:Fo.measure(a),boundingBox:Uo.measure(a)};return Po.prepare((function(){s=a.style.transform,a.style.transform=""})),Po.read((function(){c={offset:Fo.measure(a),boundingBox:Uo.measure(a)};var e=Ho(a);l=function(e,t,n){return n&&e===t?Fo:Uo}(f,e,d)})),Po.render((function(){var e=function(e,t){return i(i({},zo(e,t,Lo)),zo(e,t,Do))}(l.getLayout(p),l.getLayout(c));if(e.x||e.y||e.width||e.height){zt(a).set({originX:e.originX,originY:e.originY}),_n();var t={},n={},f=function(e){return"function"==typeof e}(u)?u({delta:e}):u;h("left","x",0,e.x),h("top","y",0,e.y),d||(h("width","scaleX",1,p.boundingBox.width/c.boundingBox.width),h("height","scaleY",1,p.boundingBox.height/c.boundingBox.height)),t.transition=n,f&&o.start(t),Cn()}else s&&(a.style.transform=s);function h(o,a,s,c){var u=$o(o)?o:a;if(e[u]){var p="boolean"==typeof f?i({},function(e){return e?Ro:Mo}(d)):f,h=r.get(a,s),m=h.getVelocity();n[a]=p[a]?i({},p[a]):i({},p),void 0===n[a].velocity&&(n[a].velocity=m||0),t[a]=s;var g=$o(o)||l!==Fo?0:h.get();h.set(c+g)}}})),null}},t.prototype.componentDidUpdate=function(){Po.flush()},t.prototype.render=function(){return null},t.contextType=To,t}(l.Component)},Go=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","static","positionTransition","layoutTransition","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragElastic","dragMomentum","dragPropagation","dragTransition","_dragValueX","_dragValueY","_dragTransitionControls","dragOriginX","dragOriginY","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileHover","whileTap","onHoverEnd","onHoverStart"]);function Wo(e){return Go.has(e)}!function(e){e.Target="Target",e.VariantLabel="VariantLabel",e.AnimationSubscription="AnimationSubscription"}(Vo||(Vo={}));function Yo(e,t){void 0===t&&(t=!1);e.transition;var n=e.transitionEnd,r=s(e,["transition","transitionEnd"]);return t?i(i({},r),n):r}var Ko,Xo,Jo=function(e){var t,n=e instanceof hn?e.get():e;return Array.from(new Set((t=n)?Array.isArray(t)?t:[t]:[]))};var Qo=((Ko={})[Vo.Target]=Wr((function(e){return function(e,t,n,r){var o=Object(l.useRef)(!0),a=Object(l.useRef)(null);a.current||(a.current=Yo(e,!0)),Object(l.useEffect)((function(){var s,c,l={},u=Yo(e),d=Yo(e,!0);for(var f in u){var p=o.current&&(!n.has(f)||n.get(f).get()!==d[f]),h=null!==d[f],m=(s=a.current[f],void 0!==(c=d[f])&&(Array.isArray(s)&&Array.isArray(c)?!function(e,t){if(null===t)return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(c,s):s!==c));h&&(m||p)&&(l[f]=u[f])}o.current=!1,a.current=i(i({},a.current),d),Object.keys(l).length&&t.start(i(i({},l),{transition:e.transition||r,transitionEnd:e.transitionEnd}))}),[e])}(e.animate,e.controls,e.values,e.transition)})),Ko[Vo.VariantLabel]=Wr((function(e){var t=e.animate,n=e.inherit,r=void 0===n||n,o=e.controls;return function(e,t,n,r){var o=Jo(t),a=Object(l.useContext)(or),i=a.hasMounted&&a.hasMounted.current,s=Object(l.useRef)(!1);Object(l.useEffect)((function(){var t,c,l=!1;n?(l=!!i,o=Jo(a.animate)):l=s.current||(t=Jo(e),c=o,t.join(",")!==c.join(",")),l&&r.start(o),s.current=!0}),[o.join(",")])}(e.initial,t,r,o)})),Ko[Vo.AnimationSubscription]=Wr((function(e){return function(e,t){var n=Object(l.useMemo)((function(){return e.subscribe(t)}),[e]);Object(l.useEffect)((function(){return function(){n&&n()}}),[n])}(e.animate,e.controls)})),Ko),Zo=function(e){return e.animate instanceof nr},ea=["initial","animate","whileTap","whileHover"],ta=((Xo={})[Vo.Target]=function(e){return!(void 0===e.animate||(t=e.animate,Array.isArray(t)||"string"==typeof t)||Zo(e));var t},Xo[Vo.VariantLabel]=function(e){return void 0!==e.variants||ea.some((function(t){return"string"==typeof e[t]}))},Xo[Vo.AnimationSubscription]=Zo,Xo);var na={key:"exit",shouldRender:function(e){return!!e.exit&&!lr(e)},Component:Wr((function(e){var t,n=e.animate,r=e.controls,o=e.exit,a=function(){var e=Object(l.useContext)(rr);if(null===e)return[!0];var t=e.isPresent,n=e.onExitComplete,r=e.register;return Object(l.useEffect)(r,[]),!t&&n?[!1,n]:[!0]}(),s=a[0],c=a[1],u=Object(l.useContext)(rr),d=Object(l.useRef)(!1),f=void 0!==(null===(t=u)||void 0===t?void 0:t.custom)?u.custom:e.custom;Object(l.useEffect)((function(){s?!d.current||!n||n instanceof nr||r.start(n):(!d.current&&o&&(r.setProps(i(i({},e),{custom:f})),r.start(o).then(c)),d.current=!0),s&&(d.current=!1)}),[s])}))},ra=function(e){return!Wo(e)};try{var oa=n(110).default;ra=function(e){return e.startsWith("on")?!Wo(e):oa(e)}}catch(e){}var aa=[qo,co,Kr,na],ia=aa.length;function sa(e){var t="string"==typeof e,n=t&&-1!==dr.indexOf(e);return{renderComponent:function(r,o,a,s,c){var u=t?function(e){var t={};for(var n in e)ra(n)&&(t[n]=e[n]);return t}(s):s,d=n?function(e,t){var n=Pt(Sn(e),void 0,void 0,void 0,void 0,!1);return n.style=i(i({},t),n.style),n}(a,o):function(e,t,n,r){var o={style:Nn(e,t,n)};return r&&(o.style.userSelect="none",o.draggable=!1),o}(a,o,c,!!s.drag);return Object(l.createElement)(e,i(i(i({},u),{ref:r}),d))},loadFunctionalityComponents:function(e,t,n,r,o,a){var s=[],c=function(e){var t=void 0;for(var n in Vo)ta[n](e)&&(t=n);return t?Qo[t]:void 0}(n);c&&s.push(Object(l.createElement)(c,{key:"animation",initial:n.initial,animate:n.animate,variants:n.variants,transition:n.transition,controls:o,inherit:a,values:t}));for(var u=0;u<ia;u++){var d=aa[u],f=d.shouldRender,p=d.key,h=d.Component;f(n,r)&&s.push(Object(l.createElement)(h,i({key:p},n,{parentContext:r,values:t,controls:o,innerRef:e})))}return s},getValueControlsConfig:function(e,t){return{values:t,readValueFromSource:function(t){return zt(e.current).get(t)},makeTargetAnimatable:_o(t,e)}}}}var ca=["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","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","webview"].reduce((function(e,t){var n=sa(t);return e[t]=ur(n),e}),{}),la=dr.reduce((function(e,t){return e[t]=ur(sa(t)),e}),{}),ua=i(i({custom:function(e){return ur(sa(e))}},ca),la);function da(e){return gn((function(){return mn(e)}))}function fa(){return{scrollX:mn(0),scrollY:mn(0),scrollXProgress:mn(0),scrollYProgress:mn(0)}}"undefined"!=typeof window?l.useLayoutEffect:l.useEffect;fa();!function(){function e(){this.componentControls=new Set}e.prototype.subscribe=function(e){var t=this;return this.componentControls.add(e),function(){return t.componentControls.delete(e)}},e.prototype.start=function(e,t){this.componentControls.forEach((function(n){n.start(e.nativeEvent||e,t)}))}}();var pa=mn(null);if("undefined"!=typeof window)if(window.matchMedia){var ha=window.matchMedia("(prefers-reduced-motion)"),ma=function(){return pa.set(ha.matches)};ha.addListener(ma),ma()}else pa.set(!1)},function(e,t,n){var r=n(195),o=n(196);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var s=0;s<16;++s)t[a+s]=i[s];return t||o(i)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";t.a=(e,t)=>Boolean((e=>{const t=e.replace(/\./g,"\\.").replace(/\*/g,".").replace(/\//g,"\\/").replace(/\?/g,"\\?");return new RegExp(t,"i")})(t).test(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n(50),o=n.n(r);const a="kindly-chat-browser-id",i=()=>{const e=localStorage.getItem(a);if(!e){const e=o()();return localStorage.setItem(a,e),e}return e}},function(e){e.exports=JSON.parse('{"a":"2.37.2"}')},function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"n",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"k",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"j",(function(){return y})),n.d(t,"i",(function(){return w})),n.d(t,"o",(function(){return x})),n.d(t,"a",(function(){return O})),n.d(t,"m",(function(){return E})),n.d(t,"b",(function(){return k}));var r=n(18),o=n(5),a=n(80),i=n(2),s=n(69),c=n(9);const l=(e,t)=>{if(e.feedbackFormType===o.r.NONE)return!1;if(e.feedbackFormType===o.r.EXTERNAL_LINK){var n,r,a;const{feedbackForm:o}=e;return(null===(n=o.external_link_url)||void 0===n?void 0:n[t])&&((null===(r=o.external_link_headline)||void 0===r?void 0:r[t])||(null===(a=o.external_link_text)||void 0===a?void 0:a[t]))}return!0},u=e=>(t,n)=>{const{chatHasStarted:r}=n().chatbubble;t({type:i.rb,botKey:e}),r&&t(Object(s.a)())},d=function(e){let{skipRestart:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(n,r)=>{const{botKey:o,chatHasStarted:a}=r().chatbubble;n({type:i.db,code:e}),!t&&a&&n(Object(c.d)(o,!0))}},f=()=>e=>{e({type:i.n})},p=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(t,n)=>{const{bot:o,chatbubble:{currentLanguage:a,botKey:s,optionsScreenOpen:u},connection:{token:d},feedback:{feedbackFormOpen:f},messages:{chatMessages:p},agent:{hasHadHandover:h}}=n(),m=o.noFeedbackAfterHandover&&h;u&&t({type:i.q}),!e&&l(o,a)&&!f&&p&&!m&&p.length>1&&setTimeout(()=>t({type:i.L,token:d}),o.fullscreenMode?0:1500),t(Object(c.d)(s,e));try{Object(r.disconnect)()}catch(e){console.error(e)}}},h=()=>e=>{e({type:i.N})},m=()=>(e,t)=>{const{optionsScreenOpen:n}=t().chatbubble;n&&e({type:i.q})},g=()=>(e,t)=>{const{token:n,feedbackFormOpen:r}=t().feedback;(n||r)&&e({type:i.o}),e({type:i.Y,chatHasStarted:!0})},b=()=>(e,t)=>{const{pushMessages:n,alerts:r,bot:a,chatbubble:s,nudge:c}=t();n.show&&e({type:i.B}),c.show&&e({type:i.A}),(r.showTabNotification||r.showBubbleNotification)&&e({type:i.z}),e({type:i.K}),s.chatHasStarted||a.welcomePage&&a.welcomePageType!==o.s.NONE||e({type:i.Y,chatHasStarted:!0})},v=()=>(e,t)=>{const{active:n,previouslyPoppedUp:r}=t().chatbubble;n||r||(e(b()),e({type:i.Q}))},y=()=>e=>{e({type:i.ib,userIsIdle:!0}),Object(a.b)()},w=e=>(t,n)=>{const{userIsIdle:r}=n().chatbubble;r&&(t({type:i.ib,userIsIdle:!1}),Object(a.a)(e))},x=e=>(t,n)=>{var r,o;const{chatbubble:{contactDetailsButton:a}}=n();(null==a||null===(r=a.contact_details)||void 0===r?void 0:r.contact_type)===(null==e||null===(o=e.contact_details)||void 0===o?void 0:o.contact_type)?t({type:i.D}):t({type:i.kb,button:e})},O=e=>t=>{t({type:i.f,button:e})},E=e=>t=>{0===e.length?t({type:i.k}):t({type:i.X,files:e})},k=()=>e=>{e({type:i.g})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d}));var r=n(1),o=n(6),a=n(42);const i=r.c.label.withConfig({displayName:"styles__CheckboxContainer",componentId:"sc-1ot9z69-0"})(["display:inline-flex;cursor:pointer;"]),s=r.c.svg.withConfig({displayName:"styles__CheckboxIcon",componentId:"sc-1ot9z69-1"})(["fill:none;stroke:white;stroke-width:2px;"]),c=r.c.div.withConfig({displayName:"styles__StyledCheckbox",componentId:"sc-1ot9z69-2"})(["display:inline-block;width:16px;height:16px;border-radius:3px;background:",";",";","{visibility:hidden;}"],e=>{let{theme:{buttonBackground:t}}=e;return t},e=>{let{theme:{buttonBackground:t}}=e;return Object(a.b)(t)?"filter: brightness(0.7);":"filter: opacity(0.3);"},s),l=r.c.input.attrs({type:"checkbox"}).withConfig({displayName:"styles__HiddenCheckbox",componentId:"sc-1ot9z69-3"})(["height:16px;width:16px;opacity:0;position:absolute;&:checked ~ ","{background:",";filter:opacity(1);","{visibility:visible;}animation:"," 150ms ease;}"],c,e=>{let{theme:{buttonBackground:t}}=e;return t},s,e=>{let{theme:{buttonBackground:t}}=e;return(e=>Object(r.d)(["50%{box-shadow:0 0 0 3px ",";}"],e))(t)}),u=r.c.div.withConfig({displayName:"styles__CheckboxLabel",componentId:"sc-1ot9z69-4"})(["margin-left:12px;font-size:",";font-weight:400;"],o.d.fontSizeP),d=r.c.div.withConfig({displayName:"styles__CheckboxWrapper",componentId:"sc-1ot9z69-5"})(["margin-top:12px;"])},function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return g.a})),n.d(t,"b",(function(){return b.a}));var r=n(70),o=(n(4),n(0)),a=n.n(o),i=n(36),s=n(1),c=n(6);const l=s.c.div.withConfig({displayName:"styles__MaxLengthWrapper",componentId:"sc-bl0zra-0"})(["position:absolute;top:50%;transform:translateY(-50%);right:8px;font-size:",";color:",";"],c.d.fontSize12,c.h.textColorLight);var u=e=>{let{fieldName:t,maxLength:n,control:r}=e;const o=Object(i.d)({control:r,name:t});return a.a.createElement(l,null,`${o.length}/${n}`)},d=n(27);const f=s.c.div.withConfig({displayName:"styles__InputWrapper",componentId:"sc-1cahfhf-0"})(["position:relative;display:flex;"]),p=s.c.input.withConfig({displayName:"styles__Input",componentId:"sc-1cahfhf-1"})(["background-color:",";color:",";padding:",";border-radius:18px;border:1px solid transparent;outline:none;flex:1;&::placeholder{opacity:0.42;}&:invalid{border:1px solid ",";}"],e=>{let{theme:t}=e;return t.inputBackground},e=>{let{theme:t}=e;return t.inputText},e=>{let{hasRightAdornment:t}=e;return t?"10px 56px 10px 16px":"10px 16px"},c.a.errorColor),h=e=>{let{autoComplete:t,name:n,type:r,register:o,validators:i,getValues:s,control:c,id:l,currentLanguage:h,...m}=e;const g=null==i?void 0:i.reduce((e,t)=>t.maxLength?t.maxLength:0,0);return a.a.createElement(f,null,a.a.createElement(p,Object.assign({autoComplete:t,name:n,type:r,hasRightAdornment:g,id:l||`input__${r}_${n}`},o&&{...o(n,Object(d.a)(i,h))},m)),!!g&&c&&n&&a.a.createElement(u,{fieldName:n,control:c,maxLength:g}))};h.defaultProps={getValues:()=>{},register:null,autoComplete:"off",id:null,validators:null,currentLanguage:"en"};var m=h,g=n(96),b=n(95)},function(e,t,n){"use strict";var r=n(4),o=n.n(r);o.a.oneOfType([o.a.node,o.a.arrayOf(o.a.node)])},function(e,t,n){"use strict";var r=n(4),o=n.n(r),a=n(5),i=n(122);o.a.shape({message:o.a.string,from_bot:o.a.bool,image_carousel:o.a.arrayOf(o.a.object),thon_image_above_text:o.a.bool,exchange_type:o.a.string,exchange_id:o.a.string,avatar:o.a.string,sender:o.a.oneOf(Object.values(a.l)),skill_subscription_id:o.a.number,bot_id:o.a.number,score:o.a.number,title:o.a.string,reply_candidates:i.a,is_followup:o.a.bool,handler:o.a.oneOf(Object.values(a.f)),corrected_message:o.a.string,new_context:o.a.objectOf(o.a.string)})},function(e,t,n){e.exports=n(177)},function(e,t,n){"use strict";t.a=()=>{}},function(e,t,n){"use strict";var r=n(240);t.a=e=>"number"==typeof e?new Date(e):Object(r.a)(e)},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return s}));var r=n(123),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function i(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,l=t,u=[],d=u,f=!1;function p(){d===u&&(d=u.slice())}function h(){if(f)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(f)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=d.indexOf(e);d.splice(n,1),u=null}}}function g(e){if(!i(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,l=c(l,e)}finally{f=!1}for(var t=u=d,n=0;n<t.length;n++){(0,t[n])()}return e}function b(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,g({type:a.REPLACE})}function v(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e}return g({type:a.INIT}),(o={dispatch:g,subscribe:m,getState:h,replaceReducer:b})[r.a]=v,o}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},a=0;a<s.length;a++){var l=s[a],u=n[l],d=e[l],f=u(d,t);if(void 0===f){var p=c(l,t);throw new Error(p)}o[l]=f,r=r||f!==d}return(r=r||s.length!==Object.keys(e).length)?o:e}}function u(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return h({},n,{dispatch:r=m.apply(void 0,a)(n.dispatch)})}}}},function(e,t,n){var r=n(28);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){var r=n(66),o=n(113),a=n(91);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(51);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(64);e.exports=function(e){if(r(e))return e;throw TypeError(String(e)+" is not an object")}},function(e,t,n){"use strict";var r=n(4),o=n.n(r),a=n(5),i=n(85);t.a=o.a.shape(Object(i.a)(e=>({[e]:o.a.func}),Object.values(a.b)))},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return f}));var r=n(18),o=n(5),a=n(2),i=n(30),s=n(9);const c=()=>(e,t)=>{const{connected:n}=t().connection;n||e({type:a.r})},l=()=>(e,t)=>{const{connected:n}=t().connection;n&&e({type:a.w})},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=JSON.parse(window.localStorage.getItem("pusherTransportEncrypted"));t.indexOf("ws")<0&&n&&"ws"!==n.transport&&window.localStorage.removeItem("pusherTransportEncrypted"),Object(r.startConfiguration)({auth:{...Object(s.a)({token:e},{withVersion:!0})},disabledTransports:t}),Object(s.e)(e)},d=function(){let{triggerDialogueSlug:e,languageCode:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return async(n,c)=>{const{local:{context:l},chatbubble:{botKey:d,currentLanguage:f,disabledTransports:p},environment:{PAT_HOST:h,VERSION:m},bot:{includeDisabledLanguages:g}}=c(),b={context:l,language_code:t||f,trigger_dialogue_slug:e,include_disabled_languages:g,version:m},v=await n(Object(s.f)({method:"post",url:`${h}/chatbubble/${o.j}/connect`,params:b,...Object(s.a)({botKey:d},{withCurrentUrl:!0})}));if(!v)return;const{pusherConnected:y}=c().connection;if(y)try{Object(r.disconnect)()}catch(e){console.warn(e)}const{token:w,chat_id:x,created:O,all_greetings_hide_input:E}=v.data;n({type:a.J,token:w}),n({type:a.H,chatId:x,allGreetingsHideInput:E}),n({type:a.hb,startedAt:O}),n(Object(s.c)((new Date).toISOString())),u(w,p),n(Object(i.a)())}},f=e=>t=>t({type:a.s,triggerConfig:e})},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(22),i=n(56);const s=e=>{let{name:t,label:n,register:r,id:s,...c}=e;return o.a.createElement(i.a,{htmlFor:s||t&&`${a.a.CHECKBOX}_${t}`},o.a.createElement(i.e,Object.assign({name:t,type:a.a.CHECKBOX,id:s||t&&`${a.a.CHECKBOX}_${t}`},r&&{...r(t)},c)),o.a.createElement(i.f,null,o.a.createElement(i.b,{viewBox:"0 0 24 24"},o.a.createElement("polyline",{points:"20 6 9 17 4 12"}))),o.a.createElement(i.c,null,n&&n))};s.defaultProps={register:null,id:null},t.a=s},function(e,t,n){"use strict";n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return x})),n.d(t,"f",(function(){return O})),n.d(t,"h",(function(){return E})),n.d(t,"d",(function(){return C})),n.d(t,"i",(function(){return j})),n.d(t,"a",(function(){return A})),n.d(t,"e",(function(){return N})),n.d(t,"g",(function(){return M}));var r=n(50),o=n.n(r),a=n(22),i=n(5),s=n(17),c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(e).reduce((e,n)=>{let[r,o]=n;return{...e,...Object(s.a)(r,t)?{}:{[r]:o}}},{})}},l=function(){let{status:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!(e>=200&&e<=299)},u=n(48),d=n(2),f=n(94),p=n(30),h=n(55),m=n(69),g=n(78),b=n(9),v=n(44);const y=e=>{const{PAT_HOST:t}=e().environment,{local:n,chatbubble:{botKey:r},connection:{token:o},messages:{forms:a}}=e();return{token:o,PAT_HOST:t,botKey:r,local:n,forms:a}},w=(e,t,n)=>(r,o)=>{const{botKey:a}=y(o);r(Object(b.d)(a,!0)),localStorage.setItem("kindly-chat-restart-message",JSON.stringify({message:e,exchangeId:t,newContext:n}))},x=(e,t)=>async(n,r)=>{const{PAT_HOST:o,token:a}=y(r),s=await n(Object(p.b)()),{headers:c}=Object(b.a)({token:a},{withCurrentUrl:!0,extra:s}),u={message:e,temporaryId:t},f=await n(Object(b.f)({method:"post",url:`${o}/chatbubble/${i.j}/message/`,data:u,headers:c},{onError:e=>{var r;n({type:d.Ab,temporaryId:t,status:null==e||null===(r=e.response)||void 0===r?void 0:r.status})}}));l(f)||(n({type:d.Ab,...f.data}),n(Object(v.e)()))},O=e=>t=>{t({type:d.ab,formData:e})},E=function(e,t,n){let{responsePromise:r,tempId:s}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=arguments.length>4?arguments[4]:void 0;return async(u,f)=>{const{PAT_HOST:h,token:m,local:g,forms:w}=y(f);w&&Object.values(w).forEach(e=>{(null==e?void 0:e.formSubmitState)===a.b.ACTIVE&&u(O({...e,formSubmitState:a.b.UNANSWERED}))});const x=s||o()();u({type:d.I,data:{id:x,created:(new Date).toISOString(),message:e,buttonType:c}}),u(Object(b.c)((new Date).toISOString()));const E=await u(Object(p.b)()),{headers:k}=Object(b.a)({token:m},{withCurrentUrl:!0,extra:E}),_={message:e,exchange_id:t,temporaryId:x,new_context:{...g.context,...n||{}}},C=r?await r:await u(Object(b.f)({method:"post",url:`${h}/chatbubble/${i.j}/message/`,data:_,headers:k},{onError:e=>{var t;console.error(`/chatbubble/${i.j}/message returned ${e.response.status}`),u({type:d.Ab,temporaryId:x,status:null==e||null===(t=e.response)||void 0===t?void 0:t.status}),u({type:d.i,isTyping:!1})}}));l(C)||(u({type:d.Ab,...C.data}),u(Object(v.e)()))}},k=e=>({...e,temporaryId:o()()}),_=e=>{let{temporaryId:t}=e;return t},C=()=>async(e,t)=>{var n;const{bot:{id:r},chatbubble:{chatId:a,attachments:s},connection:{token:u},environment:{PAT_HOST:f}}=t(),h=await e(Object(p.b)()),{headers:m}=Object(b.a)({token:u},{extra:h}),g=o()(),v=s.files.map(k).map(c("file"));e({type:d.G,data:{attachments:v}}),e({type:d.k}),e({type:d.I,data:{id:g,created:(new Date).toISOString(),attachment_ids:v.map(_),message:""}}),e(Object(b.c)((new Date).toISOString()));const y=(t,n)=>{var r;e({type:d.Ab,temporaryId:g,status:null==t||null===(r=t.response)||void 0===r?void 0:r.status}),n?e({type:d.zb,attachment:{...n,status:i.a.ERROR}}):v.forEach(t=>e({type:d.zb,attachment:{...t,status:i.a.ERROR}}))},w=v.map(c("file","url")),x=`${f}/chatbubble/${i.j}/attachment/create`,O={attachments:w,temporaryChatMessageId:g},E=await e(Object(b.f)({method:"post",url:x,data:O,headers:m},{onError:e=>y(e)}));if(l(E)||!Array.isArray(null==E||null===(n=E.data)||void 0===n?void 0:n.attachments))return;const[C,j]=E.data.attachments.reduce((t,n)=>{let[r,o]=t,{id:a,temporary_id:i,upload_url:s}=n;return e({type:d.zb,attachment:{temporaryId:i,id:a}}),[[...r,a],[...o,s]]},[[],[]]),T={"x-goog-upload-bot-id":r,"x-goog-upload-chat-id":a},S=(I=s.files,A=j,"number"!=typeof(null==I?void 0:I.length)||I.length!==(null==A?void 0:A.length)?(console.error("Trying to zip non-array of arrays of unequal length"),[]):I.map((e,t)=>[e,A[t]])).map(async t=>{let[{file:n,...r},o]=t;const a=await(e=>new Promise((t,n)=>{const r=new FileReader;r.readAsArrayBuffer(e),r.onload=()=>t(r.result),r.onabort=()=>n(new Error(r.error))}))(n),i={...T,"Content-Type":n.type};return await e(Object(b.f)({method:"put",url:o,data:a,headers:i},{onError:e=>y(e,r)}))});var I,A;if((await Promise.all(S)).some(l))return;const N=`${f}/chatbubble/${i.j}/attachment/uploads-complete`,P={attachmentIds:C,temporaryChatMessageId:g,exchangeId:s.exchangeId};e(Object(b.c)((new Date).toISOString())),e(Object(b.f)({method:"post",url:N,data:P,headers:m},{onError:e=>y(e)}))},j=function(e){let{openChat:t,languageCode:n,tempId:r,responsePromise:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async(s,c)=>{const{connection:{token:u},chatbubble:{currentLanguage:f}}=c(),{PAT_HOST:p}=c().environment;if(!u){const r={triggerDialogueSlug:e,languageCode:n,openChat:t};return s(Object(m.c)(r)),s(Object(h.g)()),void(t&&s(Object(h.k)()))}if(n&&n!==f){const e="Tried to trigger a dialogue in another language on an existing chat";s(Object(b.b)({message:e,level:"error",extra:{languageCode:n,currentLanguage:f}}))}const g=r||o()();s({type:d.xb,data:{id:g,created:(new Date).toISOString(),exchangeId:e}}),s(Object(b.c)((new Date).toISOString()));const y={exchange_id:e,temporaryId:g},{headers:w}=Object(b.a)({token:u},{withCurrentUrl:!0}),x=a?await a:await s(Object(b.f)({method:"post",url:`${p}/chatbubble/${i.j}/trigger/`,data:y,headers:w}));l(x)||(t&&s(Object(h.k)()),s(Object(v.e)()))}},T=(e,t)=>!!t.find(t=>{let{buttons:n=[]}=t;return!!n.find(t=>{let{language_code:n,button_type:r}=t;return n===e&&Object(u.a)(r)===i.b.HANDOVER_REQUEST})}),S=(e,t)=>n=>{n({type:d.j,buttonClick:{chatMessageId:e.id,buttonId:t.id,time:(new Date).toISOString()}})},I=(e,t,n)=>async(r,o)=>{const{connection:{token:a},environment:{PAT_HOST:s,VERSION:c}}=o(),l=await r(Object(p.b)()),{headers:u}=Object(b.a)({token:a},{withCurrentUrl:!0,extra:l}),d={button:t,chatMessage:e,temporaryId:n,version:c},f=(null==(h=t.button_type)?void 0:h.toLowerCase())===i.b.PRIVACY_EXPORT.toLowerCase()?Object(g.c)():{};var h;return r(Object(b.f)({method:"post",url:`${s}/chatbubble/${i.j}/button/click/`,data:d,headers:u,...f}))},A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return async(a,s)=>{const{environment:{VERSION:c},messages:{chatMessages:l},chatbubble:{currentLanguage:p},local:m}=s(),v=Object(u.a)(e.button_type),y=o()(),w={};r.length>0&&r.forEach(e=>{var r,o,s;if(e.button_type===i.b.SLIDER.toLowerCase()&&null!==(r=e.slider_details)&&void 0!==r&&r.value)w[null===(o=e.label)||void 0===o?void 0:o.toLowerCase()]=null===(s=e.slider_details)||void 0===s?void 0:s.value,a(S(a,t));else if(e.button_type===i.b.CHECKBOX.toLowerCase()){n.find(t=>t.id===e.id)?(w[e.value]=e.value,a(S(t,e)),a(I(t,e,y))):w[e.value]=""}else w[e.value]=""});const x=a(I(t,{...e,new_context:{...m.context,...w||{}}},y));switch(a({type:d.j,buttonClick:{chatMessageId:t.id,buttonId:e.id||e._id,time:(new Date).toISOString()}}),v){case i.b.QUICK_REPLY:{const n={responsePromise:x,tempId:y};a(E(e.value,t.exchange_id,e.new_context,n,e.button_type));break}case i.b.HANDOVER_REQUEST:if(!T(p,l)){const e={version:c};a(Object(b.b)({message:"Requested handover with no button",level:"error",extra:e}))}a(Object(f.b)(x));break;case i.b.DIALOGUE_TRIGGER:case i.b.SUGGESTION_DIALOGUE_TRIGGER:a(j(e.value,{tempId:y,responsePromise:x}));break;case i.b.PRIVACY_EXPORT:a(Object(g.b)({responsePromise:x}));break;case i.b.PRIVACY_DELETE:a(Object(g.a)({responsePromise:x}));break;case i.b.CONTACT_DETAILS:a(Object(h.o)(e));break;case i.b.UPLOAD_ATTACHMENT:a(Object(h.a)(e))}}},N=(e,t)=>async(n,r)=>{const{connection:{token:a},environment:{PAT_HOST:s,VERSION:c}}=r(),u=o()(),f=e.contact_details.contact_type,h={...e,button_type:i.b.edit_contact_details};n({type:d.I,data:{id:u,created:(new Date).toISOString(),message:t,buttons:[h],isContactDetails:!0}});const m=await n(Object(p.b)()),{headers:g}=Object(b.a)({token:a},{withCurrentUrl:!0,extra:m}),v={contactType:f,value:t,version:c,buttons:[h],temporaryId:u},y=await n(Object(b.f)({method:"post",url:`${s}/chatbubble/${i.j}/button/contact-details/`,data:v,headers:g}));l(y)||n({type:d.Ab,...y.data})},P=((e,t,n)=>{let r,o=[];return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];n&&o.push(i),clearTimeout(r),r=setTimeout(()=>{n||e(...i);const t=o.slice(1).reduce((e,t)=>n(t,e),o[0]);e(...t),o=[]},t)}})(async(e,t,n)=>{let{id:r,index:o}=e;const{connection:{token:a},environment:{PAT_HOST:s,VERSION:c}}=n(),l=await t(Object(p.b)()),{headers:u}=Object(b.a)({token:a},{withCurrentUrl:!0,extra:l}),f={chatMessageId:r,version:c};t({type:d.eb,id:r,index:o}),t(Object(b.f)({method:"patch",url:`${s}/chatbubble/${i.j}/message-seen`,data:f,headers:u}))},1500,(e,t)=>{const[{index:n}]=e,[{index:r}]=t;return n>r?e:t}),M=(e,t)=>(n,r)=>P({id:e,index:t},n,r)},function(e,t,n){"use strict";e.exports=n(175)},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));const r=["load","message"],o="See https://docs.kindly.ai/api/chat#handlers for how to switch.";const a=(e,t,n,a)=>{var i,s;if(-1!==r.indexOf(e)&&Boolean(a)&&function(e,t,n){const r=`on${t.charAt(0).toUpperCase()+t.slice(1)}`;if("function"!=typeof e)return void console.warn(`Provided setting '${r}' is not a function.`);console.warn(`kindlyOptions.${r} is deprecated in favor of standard event handlers. ${o}`);const a=Object.values(n);try{e(...a)}catch(e){console.error(e)}}(a,e,t),"API"!==n)return;if(null===(i=window)||void 0===i||null===(s=i.kindlyChat)||void 0===s||!s.APIRoot)return void console.warn("No APIRoot when rendered using kindly-chat API");"message"===e&&window.kindlyChat.APIRoot.dispatchEvent(new CustomEvent("onMessage",{detail:t}));const c=`kindly:${e}`;window.kindlyChat.APIRoot.dispatchEvent(new CustomEvent(c,{detail:t,bubbles:!0}))};function i(e,t,n,r){e&&a("message",{newMessage:e,chatLog:t},r,n)}function s(e){a("load",{settings:e},null==e?void 0:e.renderedBy,null==e?void 0:e.onLoad)}const c=(e,t,n,r,a,i,s)=>{let c=!1;const l=null==e?void 0:e[n];if(l){console.warn(`kindlyOptions.buttonHandlers is deprecated in favor of standard event handlers. ${o}`);try{c=Boolean(l(t,r,a,i,n))}catch(e){console.error(e)}}return"API"===s&&(c=!window.kindlyChat.APIRoot.dispatchEvent(new CustomEvent("kindly:buttonclick",{detail:{button:r,lastMessage:a,chatLog:i,buttonType:n},bubbles:!0,cancelable:!0}))),c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n(17),o=n(2);const a={TAKEOVER:"takeover",MESSAGE:"message"},i=e=>(t,n)=>{const{dismissedMessages:i}=n().pushMessages,{autopopupTime:s,enabled:c,title:l,message:u}=e;if(!c||Object(r.a)(l,i))return;const d={type:o.ob,pushMessageTitle:l,pushMessageType:a.MESSAGE,pushMessageText:u};s&&0!==s?setTimeout(()=>t(d),s):t(d)},s=()=>(e,t)=>{const{show:n}=t().pushMessages;n&&e({type:o.B})}},function(e,t,n){"use strict";var r=n(0);t.a=(e,t)=>{const n=Object(r.useRef)();return Object(r.useCallback)(r=>{new Date-n.current<t||(e(r),n.current=new Date)},[t,e])}},function(e,t,n){"use strict";t.a=e=>{const t=(null!=e?e:"").toLowerCase();return"external_link"===t?"link":"handover_request"===t?"takeover_request":t}},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(3),i=n(73),s=n(10),c=e=>{let{styles:t={},...n}=e;return o.a.createElement("svg",Object.assign({viewBox:"0 0 1792 1792",xmlns:"https://www.w3.org/2000/svg"},n),o.a.createElement("path",{d:"M1408 928v320q0 119-84.5 203.5T1120 1536H288q-119 0-203.5-84.5T0 1248V416q0-119 84.5-203.5T288 128h704q14 0 23 9t9 23v64q0 14-9 23t-23 9H288q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113V928q0-14 9-23t23-9h64q14 0 23 9t9 23zm384-864v512q0 26-19 45t-45 19-45-19l-176-176-652 652q-10 10-23 10t-23-10L695 983q-10-10-10-23t10-23l652-652-176-176q-19-19-19-45t19-45 45-19h512q26 0 45 19t19 45z",fill:"#fff"}))},l=n(5),u=n(75),d=(n(121),n(59),n(8)),f=n(7),p=n(105),h=n(81),m=n(17),g=n(48),b=n(21),v=n(70),y=n(96);const w=n(1).c.div.withConfig({displayName:"styles__CheckboxWrapper",componentId:"sc-sn3ww8-0"})(["position:absolute;left:12px;top:50%;transform:translateY(-40%);"]),{EXTERNAL_LINK:x,EMAIL:O,PHONE:E,CHECKBOX:k,SLIDER:_}=l.b,C=e=>{let{button:t,setCheckboxValue:n,checked:l,chatMessage:C,disabled:j=!1,handlers:T=null,hasSuggestion:S=!1,isNudge:I=!1,onClick:A=null,submitButtonsList:N}=e;const P=Object(a.c)(),M=Object(g.a)(t.button_type),{chatMessages:R,buttonClicks:L}=Object(a.d)(f.m)||[],D=Object(a.d)(f.e)||[],B=Object(m.a)(M,[x,E,O]),z=Object(m.a)(M,[k]),F=Object(m.a)(M,[_]),U=Boolean(l.find(e=>e.id===t.id)),H=Object(r.useRef)(N);let $="";M===E&&($="tel:"),M===O&&($="mailto:");const V=e=>{const n=parseFloat(e);var r;n&&Array.isArray(H.current)&&(null===(r=H.current)||void 0===r||r.map(e=>e.id===t.id?(e.slider_details.value=n,e):e))},q=Object(r.useCallback)(e=>{if(e.preventDefault(),Object(i.a)(e,T,M,Object(p.a)(t),Object(h.a)(C||{}),R.map(h.a),null==D?void 0:D.renderedBy))return;"function"==typeof A&&A(),P(Object(d.g)(t,C,l,H.current));const{href:n,target:r}=e.target;if(n){const e=Boolean(r);setTimeout(()=>{e?window.open(n,r):window.location.href=n},250)}},[M,C,R,t,P,T,l,H,A,null==D?void 0:D.renderedBy]),G=Object(u.a)(q,3e3),W=(null!=L?L:[]).find(e=>{let{chatMessageId:n,buttonId:r}=e;return n===(null==C?void 0:C.id)&&r===t.id}),Y=Object(r.useCallback)(()=>{n(t)},[t,n]);return Object(r.useEffect)(()=>{W&&z&&!U&&n(t)},[W,z,t,n,U]),F&&null!=t&&t.slider_details?o.a.createElement("div",null,o.a.createElement(y.a,{name:`slider_${t.id}`,onChange:V,from:t.slider_details.from_value,to:t.slider_details.to_value,value:t.slider_details.value,step:t.slider_details.step_value,affix:t.slider_details.affix,affixValue:t.slider_details.affix_value})):o.a.createElement(b.b,Object.assign({truncateText:S,cy:"message-button",color:!z,type:"button"},B&&{href:`${$}${M===x?(K=t.value,K.match(/^https?:\/\//i)?K:`http://${K}`):t.value}`},B&&{target:`${M!==x||I?"_self":"_blank"}`},z&&{style:{backgroundColor:"transparent",background:"transparent"},role:"checkbox","aria-label":t.label,"aria-checked":U},{icon:M===x&&I&&o.a.createElement(s.b,{fill:"#FFF",width:10,height:16})||M===x&&!I&&o.a.createElement(c,{width:14,height:14}),disabled:j,onClick:e=>{z?Y():G(e)},hasBeenClicked:W}),z&&o.a.createElement(w,null,o.a.createElement(v.a,{disabled:!0,"aria-disabled":!0,name:`checkbox-${t.id}`,checked:U})),t.label);var K};C.defaultProps={checked:[]};t.a=C},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d}));var r=n(159),o=n.n(r),a=n(5);function i(e){if(!e)return null;const t=e.match(/filename="(.+)"/);return t&&2===t.length?t[1]:null}var s=n(2),c=n(9);const l=()=>({transformResponse:e=>e,responseType:"text"}),u=function(){let{responsePromise:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"html";return async(n,r)=>{var s;let u=e?await e:null;if(!u){const{connection:{token:e},environment:{PAT_HOST:o}}=r(),i=`${o}/chatbubble/${a.j}/privacy/export/${t}`,{headers:s}=Object(c.a)({token:e}),d=l();u=await n(Object(c.f)({method:"get",url:i,...d,headers:s}))}if(200!==(null===(s=u)||void 0===s?void 0:s.status))return;const{headers:d,data:f}=u,p=i(d["content-disposition"])||"export.json",h=new Blob([f],{type:d["content-type"]});o()(h,p)}},d=function(){let{responsePromise:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return async(t,n)=>{const{connection:{token:r},chatbubble:{botKey:o},environment:{PAT_HOST:i}}=n(),l=`${i}/chatbubble/${a.j}/privacy/delete/`,u=e?await e:await t(Object(c.f)({method:"delete",url:l,...Object(c.a)({token:r})}));200===(null==u?void 0:u.status)&&(setTimeout(()=>t(Object(c.d)(o)),5e3),t({type:s.v}),t({type:s.V}))}}},function(e,t,n){"use strict";var r=n(72),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=c(t),m=c(n),g=0;g<i.length;++g){var b=i[g];if(!(a[b]||r&&r[b]||m&&m[b]||s&&s[b])){var v=f(n,b);try{l(t,b,v)}catch(e){}}}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n(158);let o,a;const i=e=>(t,n)=>{const{SAGE_WS_HOST:i}=n().environment;if(!o||!o.isConnected())try{o=new r.Socket(`${i}/chatbubble/socket`),o.connect()}catch(e){console.warn("Could not connect to sage socket",e)}try{a=o.channel(`chatbubble_active:${e}`),a.join()}catch(e){console.warn("Could not join active channel",e)}},s=()=>{if(o&&a)try{a.leave()}catch(e){console.warn("Could not leave active channel",e)}if(o)try{o.disconnect()}catch(e){console.warn("Could not disconnect from sage socket",e)}}},function(e,t,n){"use strict";var r=n(105);t.a=e=>{let{buttons:t=[],...n}=e;return{...n,buttons:t.map(r.a)}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(1),o=n(6);const a=r.c.div.withConfig({displayName:"styles__FormWrapper",componentId:"sc-147n8gc-0"})(["padding:12px;box-shadow:0px 0px 1px rgba(0,0,0,0.24),0px 2px 6px rgba(0,0,0,0.04);border-radius:6px;margin:3px 0 2px;"]),i=r.c.form.withConfig({displayName:"styles__Form",componentId:"sc-147n8gc-1"})(["display:flex;flex-direction:column;flex:1;"]),s=r.c.div.withConfig({displayName:"styles__FormTitle",componentId:"sc-147n8gc-2"})(["font-size:",";font-weight:500;display:flex;align-items:center;& > svg{margin-right:4px;}"],o.d.fontSizeP),c=r.c.div.withConfig({displayName:"styles__FormActionsWrapper",componentId:"sc-147n8gc-3"})(["display:flex;flex-direction:row;align-self:flex-end;justify-content:flex-end;margin-top:36px;& > button{&:last-child{margin-left:12px;}}"])},function(e,t){e.exports={}},function(e,t,n){var r=n(120),o=n(28),a=n(135),i=n(40)("toStringTag"),s="Arguments"==a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:s?a(t):"Object"==(r=a(t))&&o(t.callee)?"Arguments":r}},function(e,t,n){"use strict";t.a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce((t,n)=>({...t,...e(n)}),{})}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){var r=n(205),o=n(136);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(114),o=n(39),a=n(28),i=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(65);e.exports=function(e,t,n,o){o&&o.enumerable?e[t]=n:r(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));const r="v2",o=Object.freeze(["agent","alerts","bot","chatbubble","feedback","privacy","websocketFallback","lightbox","nudge"])},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(5),o=n(2),a=n(9),i=n(44);const s=e=>async t=>{const n=await e;200===(null==n?void 0:n.status)&&(t({type:o.vb,...n.data,requestedTakeover:!0}),t(Object(i.e)()))},c=()=>(e,t)=>{const{connection:{token:n},environment:{PAT_HOST:i}}=t();e(Object(a.f)({method:"post",url:`${i}/chatbubble/${r.j}/takeover_cancel/`,...Object(a.a)({token:n})})),e({type:o.ub})},l=()=>(e,t)=>{const{connection:{token:n},environment:{PAT_HOST:i}}=t();e({type:o.Cb}),e(Object(a.f)({method:"post",url:`${i}/chatbubble/${r.j}/user_started_typing/`,...Object(a.a)({token:n})}))},u=()=>(e,t)=>{const{connection:{token:n},environment:{PAT_HOST:i}}=t();e({type:o.Db}),e(Object(a.f)({method:"post",url:`${i}/chatbubble/${r.j}/user_stopped_typing/`,...Object(a.a)({token:n})}))}},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(36),i=n(22),s=n(35),c=n(27),l=n(70),u=n(56);t.a=e=>{let{name:t,control:n,list:d,validators:f,formId:p,register:h,setError:m,clearErrors:g,currentLanguage:b}=e;const v=Object(a.d)({control:n,name:d.map(e=>Object(s.a)({...e,type:i.a.CHECKBOX},p))}),y=Object(a.c)({control:n,name:d.map(e=>Object(s.a)({...e,type:i.a.CHECKBOX},p))});return Object(r.useEffect)(()=>{if(f)for(let e=0;e<f.length;e+=1){Object.keys(f[e]).forEach(n=>{var r;"texts"!==n&&(n&&(v.some(e=>!!e)?g(t):m(t,{type:n,message:y.isDirty||y.isSubmitted?null===(r=Object(c.b)(f[e].texts,b))||void 0===r?void 0:r.message:""})))})}},[v,f,m,g,p,d,t,b,y]),d.map(e=>{var t;return o.a.createElement(u.d,{key:`${e.slug}_${e.order}`},o.a.createElement(l.a,{register:h,value:e.value,label:null===(t=Object(c.b)(e.texts,b))||void 0===t?void 0:t.label,name:Object(s.a)({...e,type:i.a.CHECKBOX},p)}))}).sort(e=>e.order)}},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(5),i=n(1);const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.replace("#","");3===n.length&&(n=`${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`);const r=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),a=parseInt(n.substring(4,6),16);return t>1&&t<=100&&(t/=100),`rgba(${r},${o},${a},${t})`},c=i.c.div.withConfig({displayName:"styles__SliderWrapper",componentId:"sc-1isvbdy-0"})(["margin:6px 0;display:flex;flex-direction:column;position:relative;padding:12px 12px 16px 12px;width:100%;border-radius:6px;border:",";"],e=>{let{theme:t}=e;return`1px solid ${t.botMessageBackground}`}),l=i.c.div.withConfig({displayName:"styles__SliderAffix",componentId:"sc-1isvbdy-1"})(["padding:0px 8px;font-size:14px;"]),u=i.c.div.withConfig({displayName:"styles__SliderInfoContainer",componentId:"sc-1isvbdy-2"})(["position:relative;flex:1;display:flex;align-items:center;flex-direction:row;margin-bottom:28px;"]),d=i.c.span.withConfig({displayName:"styles__SliderInfo",componentId:"sc-1isvbdy-3"})(["display:flex;padding:4px;align-items:center;justify-content:center;font-size:14px;"]),f=i.c.div.withConfig({displayName:"styles__SliderContainer",componentId:"sc-1isvbdy-4"})(["position:relative;display:flex;flex:1;"]),p=Object(i.b)(["height:20px;width:20px;border-radius:50%;background:",";cursor:pointer;appearance:none;margin-top:-8px;border:1px solid ",";"],e=>{let{theme:t}=e;return t.buttonBackground},e=>{let{theme:t}=e;return t.buttonText}),h=(e,t,n)=>(e-n)/(t-n)*100,m=i.c.input.attrs(e=>{let{theme:t,value:n,max:r,min:o}=e;return{style:{background:`linear-gradient(to right, ${t.buttonBackground} 0%, ${t.buttonBackground} ${h(n,r,o)}%, ${s(t.buttonBackground,.4)} ${h(n,r,o)}%, ${s(t.buttonBackground,.4)} 100%)`}}}).withConfig({displayName:"styles__Slider",componentId:"sc-1isvbdy-5"})(["cursor:pointer;&[type='range']{appearance:none;width:100%;border-radius:25px;height:6px;&::-webkit-slider-thumb{","}&::-moz-range-thumb{","}&::-webkit-slider-runnable-track{width:100%;height:6px;cursor:pointer;border-radius:25px;}}"],p,p),g=e=>{let{from:t,to:n,value:i,affix:s,affixValue:p,step:h=1,onChange:g,name:b,field:v}=e;const[y,w]=Object(r.useState)(((e,t,n)=>t<e?e+n:t)(h,i,t));return o.a.createElement(c,null,o.a.createElement(u,null,s===a.n.PREFIX&&o.a.createElement(l,null,p),o.a.createElement(d,null,y),s===a.n.SUFFIX&&o.a.createElement(l,null,p)),o.a.createElement(f,null,o.a.createElement(m,{type:"range",name:b,step:h,min:t,max:n,value:y,onChange:e=>{var t;null!=e&&null!==(t=e.target)&&void 0!==t&&t.value&&(g&&g(e.target.value),null!=v&&v.onChange&&v.onChange(e),w(e.target.value))}})))};g.defaultProps={value:1};t.a=g},function(e,t,n){"use strict";var r=n(17);t.a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object.entries(e).reduce((e,n)=>{let[o,a]=n;return{...e,...Object(r.a)(o,t)?{[o]:a}:{}}},{})}},function(e,t,n){"use strict";const r=e=>{let{buttonId:t,chatMessageId:n}=e;return`button-click-${n}-${t}`};t.a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t=>!e.find(e=>r(t)===r(e))}},function(e,t,n){"use strict";t.a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.reduce((e,n)=>{var r;return{...e,[t(n)]:[...null!==(r=e[t(n)])&&void 0!==r?r:[],n]}},{})}},function(e,t,n){"use strict";t.a=e=>t=>{let{id:n,chatbubble_temporary_id:r}=t;return!e.find(e=>{let{id:t}=e;return n===t||r===t})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="SET_NEW_CONTEXT"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));let r=null;async function o(){try{if(!r){const{default:e}=await Promise.resolve().then(n.t.bind(null,238,7));r=new Audio(e)}await r.play()}catch(e){console.error("Could not play notification sound:",e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(25),o=n(20),a=n(14);function i(e,t){Object(a.a)(2,arguments);var n=Object(o.a)(e).getTime(),i=Object(r.a)(t);return new Date(n+i)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(3),a=n(7);function i(){const{nudges:e}=Object(o.d)(a.d);return Object(r.useMemo)(()=>{var t,n,r,o,a;return[...null!==(t=null==e?void 0:e.form_nudges)&&void 0!==t?t:[],...null!==(n=null==e?void 0:e.custom_nudges)&&void 0!==n?n:[],...null!==(r=null==e?void 0:e.product_nudges)&&void 0!==r?r:[],...null!==(o=null==e?void 0:e.text_nudges)&&void 0!==o?o:[],...null!==(a=null==e?void 0:e.multiple_choice_nudges)&&void 0!==a?a:[]]},[e])}},function(e,t,n){"use strict";var r=n(48),o=n(76);t.a=e=>{let{button_type:t,...n}=e;return{...n,button_type:Object(o.a)(t),category:Object(r.a)(t)}}},function(e,t,n){"use strict";var r=n(0);function o(e){return e.touches||e.originalEvent.touches}let a=null;t.a=e=>{let{setIndex:t,index:n,carousel:i}=e;return{handleTouchStart:Object(r.useCallback)(e=>{const t=o(e)[0];a=t.clientX},[]),handleTouchMove:Object(r.useCallback)(e=>{if(!a)return;const r=o(e)[0].clientX;t(a-r>5?n+1:n-1,i),a=null},[i,n,t]),handleTouchEnd:Object(r.useCallback)(()=>{a=null},[])}}},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(36),i=n(57);const s=[i.c.name,i.a.name,i.d.name,a.a.name,i.b.name];var c=n(6);const l=e=>{let{width:t,height:n,color:r}=e;return o.a.createElement("svg",{width:n,height:t,viewBox:"0 0 24 24",fill:"none"},o.a.createElement("path",{d:"M4.952 16.354l5.263-10.497c.738-1.472 2.839-1.472 3.576 0l5.258 10.497a2 2 0 01-1.788 2.896H6.741a2 2 0 01-1.789-2.896z",stroke:r,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.a.createElement("path",{d:"M12 10v2",stroke:r,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),o.a.createElement("path",{d:"M12.5 16a.5.5 0 11-1 0 .5.5 0 011 0z",stroke:r}))};l.defaultProps={width:24,height:24,color:"#333"};var u=l,d=n(1);const f=d.c.div.withConfig({displayName:"style__FormError",componentId:"sc-13lpm2f-0"})(["display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;font-size:12px;margin-top:4px;right:0;left:auto;color:",";max-height:",";opacity:",";transition:max-height 1s ease,opacity 240ms ease ",";"],c.a.errorColor,e=>{let{show:t}=e;return t?"120px":"0px"},e=>{let{show:t}=e;return t?1:0},e=>{let{show:t}=e;return t?"480ms":0});var p=e=>{var t,n;let{name:i,control:s}=e;const l=Object(r.useRef)(null),{errors:d}=Object(a.c)({name:i,control:s});if(d){var p,h;if(null!=d&&null!==(p=d[i])&&void 0!==p&&p.ref&&!l.current)if(d[i].ref instanceof HTMLElement)l.current=d[i].ref;else[l.current]=document.getElementsByName(null===(h=d[i].ref)||void 0===h?void 0:h.name);if(l.current){var m,g;if(null!=d&&d[i])null===(g=l.current)||void 0===g||g.setCustomValidity(d[i].message||" ");else if((null===(m=l.current)||void 0===m?void 0:m.name)===i){var b;null===(b=l.current)||void 0===b||b.setCustomValidity("")}setTimeout(()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.checkValidity()})}}return o.a.createElement(f,{show:null===(t=d[i])||void 0===t?void 0:t.message},o.a.createElement(u,{width:16,height:16,color:c.a.errorColor}),null===(n=d[i])||void 0===n?void 0:n.message)};const h=d.c.div.withConfig({displayName:"styles__InputWrapper",componentId:"sc-1cfm2l6-0"})(["display:flex;flex-direction:column;margin-top:16px;position:relative;"]),m=d.c.label.withConfig({displayName:"styles__Label",componentId:"sc-1cfm2l6-1"})(["font-size:",";margin:4px 0;font-weight:500;"],c.d.fontSize12),g=d.c.div.withConfig({displayName:"styles__HelpText",componentId:"sc-1cfm2l6-2"})(["font-weight:400;line-height:16px;margin-top:4px;font-size:",";color:",";"],c.d.fontSize12,c.h.textColorLight),b=e=>{var t;let{type:n,name:r,className:a,children:i,label:c,htmlFor:l,control:u,helperText:d}=e;return(null==i||!i.length||i.length>1)&&console.error(`InputWrapper is expecting one child node. Received ${i.length}`),null!=s&&s.includes(null===(t=i[0].type)||void 0===t?void 0:t.name)||console.error(`InputWrapper child can only be one of the following: ${s.join(", ")}`),o.a.createElement(h,{className:a},c&&o.a.createElement(m,{htmlFor:l||`input__${n}_${r}`},c),i,o.a.createElement(p,{control:u,name:r}),d&&o.a.createElement(g,null,d))};b.defaultProps={type:null,name:null,label:null,htmlFor:null,helperText:null};t.a=b},function(e,t,n){"use strict";n(4);var r=n(0),o=n.n(r),a=n(3),i=(n(58),n(8)),s=n(10),c=n(21),l=n(37),u=n(1),d=n(6);const f=Object(u.b)(["border-radius:100px;background-color:",";"],d.a.grayColor),p=u.c.div.withConfig({displayName:"styles__ErrorContent",componentId:"sc-1lhoync-0"})(["height:100%;width:100%;display:grid;background-color:#fff;grid-template-rows:55px 1fr 70px;"]),h=u.c.div.withConfig({displayName:"styles__ErrorHeader",componentId:"sc-1lhoync-1"})(["padding:10px 20px;display:grid;align-items:center;grid-template-columns:30px 1fr 40px;box-shadow:0px 3px 4px -1px ",";"],d.a.shadowColor),m=u.c.div.withConfig({displayName:"styles__ErrorName",componentId:"sc-1lhoync-2"})(["height:20px;width:110px;margin-left:20px;",""],f),g=u.c.div.withConfig({displayName:"styles__ErrorContainer",componentId:"sc-1lhoync-3"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:210px;margin:auto;"]),b=u.c.span.withConfig({displayName:"styles__ErrorText",componentId:"sc-1lhoync-4"})(["font-size:14px;margin:16px 0 24px 0;",";"],e=>e.heading&&"font-size: 19px; font-weight: 400; \n margin: 0"),v=u.c.div.withConfig({displayName:"styles__ErrorCircle",componentId:"sc-1lhoync-5"})(["height:","px;min-width:","px;",""],e=>e.size,e=>e.size,f),y=u.c.div.withConfig({displayName:"styles__ErrorComposer",componentId:"sc-1lhoync-6"})(["display:flex;align-items:center;padding:15px 0;margin:0 20px;border-top:1px solid ",";"],d.a.grayColor),w=u.c.div.withConfig({displayName:"styles__ErrorInput",componentId:"sc-1lhoync-7"})(["height:40px;width:100%;margin-right:20px;",""],f);var x=()=>{const e=Object(a.c)(),t=Object(r.useCallback)(()=>{e(Object(i.v)())},[e]);return o.a.createElement(p,null,o.a.createElement(h,null,o.a.createElement(v,{size:30}),o.a.createElement(m,null),o.a.createElement(l.b,{"aria-label":"Close chat",title:"Close chat",type:"button",onClick:t,"data-cy":"close-chat-button"},o.a.createElement(s.e,{width:25,height:25}))),o.a.createElement(g,null,o.a.createElement(b,{heading:!0},"Oh no..."),o.a.createElement(b,null,"We were unable to load the chat. Please refresh or try again later."),o.a.createElement(c.b,{onClick:t,color:!0},"Refresh chat")),o.a.createElement(y,null,o.a.createElement(w,null),o.a.createElement(v,{size:40})))};class O extends r.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return e?{hasError:!0}:{}}componentDidCatch(e,t){var n;const{dispatch:r,errorPoint:o}=this.props,a=`Component tree crashed ${o}: ${e.message}`,s={errorName:e.name,errorMessage:e.message,errorStack:e.stack,point:o,componentStack:null==t||null===(n=t.componentStack)||void 0===n?void 0:n.trim()};r(Object(i.B)({message:a,error:e,extra:s,level:"error"}))}render(){const{hasError:e}=this.state,{children:t,displayError:n}=this.props;return e&&n?o.a.createElement(x,null):e?null:t}}O.defaultProps={displayError:!0};t.a=Object(a.b)()(O)},function(e,t,n){"use strict";var r=n(25),o=n(103),a=n(14);var i=n(240),s=n(20);t.a=e=>{let{messageSentTime:t,persistStateLifespan:n}=e;if(t){if(-1===n)return!0;if(0!==n){return function(e,t){Object(a.a)(2,arguments);var n=Object(s.a)(e),r=Object(s.a)(t);return n.getTime()>r.getTime()}(function(e,t){Object(a.a)(2,arguments);var n=Object(r.a)(t);return Object(o.a)(e,1e3*n)}(Object(i.a)(t),n),new Date)}}return!1}},function(e,t,n){"use strict";n.r(t);var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.default=o},function(e,t,n){"use strict";(function(t){var r=n(32),o=n(182),a=n(128),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(c=n(129)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l}).call(this,n(87))},function(e,t,n){var r=n(39),o=n(209),a=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=a},function(e,t,n){var r=n(66),o=n(138),a=n(67),i=n(140),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=i(t),a(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports={}},function(e,t,n){var r=n(28),o=n(213);e.exports=function(e){if(r(e))return e;throw TypeError(o(e)+" is not a function")}},function(e,t,n){var r=n(145),o=n(147),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},function(e,t){e.exports={}},function(e,t,n){var r,o=n(67),a=n(220),i=n(153),s=n(117),c=n(226),l=n(139),u=n(116),d=u("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&r?h(r):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(r);for(var n=i.length;n--;)delete m.prototype[i[n]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[d]=e):n=m(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(120),o=n(113).f,a=n(65),i=n(46),s=n(228),c=n(40)("toStringTag");e.exports=function(e,t,n,l){if(e){var u=n?e:e.prototype;i(u,c)||o(u,c,{configurable:!0,value:t}),l&&!r&&a(u,"toString",s)}}},function(e,t,n){var r={};r[n(40)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(4),o=n.n(r),a=n(5),i=n(76);o.a.shape({button_type:o.a.oneOf([...Object.values(a.b),...Object.values(a.b).map(i.a)]).isRequired,is_active:o.a.bool,label:o.a.string.isRequired,value:o.a.string,new_context:o.a.object,index:o.a.number,language_code:o.a.string})},function(e,t,n){"use strict";var r=n(4),o=n.n(r);t.a=o.a.arrayOf(o.a.shape({selected:o.a.bool.isRequired,_id:o.a.string.isRequired,score:o.a.number.isRequired,sample:o.a.string.isRequired}))},function(e,t,n){"use strict";(function(e,r){var o,a=n(156);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var i=Object(a.a)(o);t.a=i}).call(this,n(86),n(176)(e))},,function(e,t){e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(32);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),a=i.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(32),o=n(183),a=n(184),i=n(127),s=n(185),c=n(188),l=n(189),u=n(130);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,p=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(m+":"+g)}var b=s(e.baseURL,e.url);function v(){if(h){var r="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,n,a),h=null}}if(h.open(e.method.toUpperCase(),i(b,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(v)},h.onabort=function(){h&&(n(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var y=(e.withCredentials||l(b))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;y&&(f[e.xsrfHeaderName]=y)}"setRequestHeader"in h&&r.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),d||(d=null),h.send(d)}))}},function(e,t,n){"use strict";var r=n(128);e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(32);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(a,l),r.forEach(i,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=o.concat(a).concat(i).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,l),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=n(88),o=n(206),a=n(83),i=n(137),s=n(215),c=i.set,l=i.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r,o,a,i=n(207),s=n(39),c=n(64),l=n(65),u=n(46),d=n(112),f=n(116),p=n(117),h=s.WeakMap;if(i||d.state){var m=d.state||(d.state=new h),g=m.get,b=m.has,v=m.set;r=function(e,t){if(b.call(m,e))throw new TypeError("Object already initialized");return t.facade=e,v.call(m,e,t),t},o=function(e){return g.call(m,e)||{}},a=function(e){return b.call(m,e)}}else{var y=f("state");p[y]=!0,r=function(e,t){if(u(e,y))throw new TypeError("Object already initialized");return t.facade=e,l(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},a=function(e){return u(e,y)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(66),o=n(51),a=n(139);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(39),o=n(64),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,n){var r=n(210),o=n(141);e.exports=function(e){var t=r(e,"string");return o(t)?t:String(t)}},function(e,t,n){var r=n(28),o=n(89),a=n(142);e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&Object(e)instanceof t}},function(e,t,n){var r=n(143);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(211),o=n(51);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){var r=n(115);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},function(e,t,n){var r=n(90),o=n(112);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(136);e.exports=function(e){return Object(r(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){"use strict";var r=n(39),o=n(28),a=n(216).f,i=n(218),s=n(114),c=n(149),l=n(65),u=n(46),d=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,f,p,h,m,g,b,v,y=e.target,w=e.global,x=e.stat,O=e.proto,E=w?r:x?r[y]:(r[y]||{}).prototype,k=w?s:s[y]||l(s,y,{})[y],_=k.prototype;for(p in t)n=!i(w?p:y+(x?".":"#")+p,e.forced)&&E&&u(E,p),m=k[p],n&&(g=e.noTargetGet?(v=a(E,p))&&v.value:E[p]),h=n&&g?g:t[p],n&&typeof m==typeof h||(b=e.bind&&n?c(h,r):e.wrap&&n?d(h):O&&o(h)?c(Function.call,h):h,(e.sham||h&&h.sham||m&&m.sham)&&l(b,"sham",!0),l(k,p,b),O&&(u(s,f=y+"Prototype")||l(s,f,{}),l(s[f],p,h),e.real&&_&&!_[p]&&l(_,p,h)))}},function(e,t,n){var r=n(115);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(151).IteratorPrototype,o=n(118),a=n(91),i=n(119),s=n(83),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:a(1,n)}),i(e,l,!1,!0),s[l]=c,e}},function(e,t,n){"use strict";var r,o,a,i=n(51),s=n(28),c=n(118),l=n(154),u=n(92),d=n(40),f=n(90),p=d("iterator"),h=!1;[].keys&&("next"in(a=[].keys())?(o=l(l(a)))!==Object.prototype&&(r=o):h=!0),null==r||i((function(){var e={};return r[p].call(e)!==e}))?r={}:f&&(r=c(r)),s(r[p])||u(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(46),o=n(28),a=n(146),i=n(116),s=n(227),c=i("IE_PROTO"),l=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof Object?l:null}},function(e,t,n){var r=n(84),o=n(144),a=n(83),i=n(40)("iterator");e.exports=function(e){if(null!=e)return o(e,i)||o(e,"@@iterator")||a[r(e)]}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var r=n(93),o=n(97);t.a=t=>{let{level:n="info",error:a,message:i,reduxState:s,extra:c}=t;if(!(i||null!=a&&a.message))return console.error("Attempted to log without message"),null;const l=Object(o.a)(s||{},r.b),u={version:e.env.VERSION,release:e.env.IS_PURE_BUILD?`${e.env.VERSION}-pure`:e.env.VERSION,userAgent:navigator.userAgent,state:s?JSON.stringify(l):void 0,...c},d={message:null==a?void 0:a.message,name:null==a?void 0:a.name,stack:null==a?void 0:a.stack,code:null==a?void 0:a.code,signal:null==a?void 0:a.signal};return{message:null!=i?i:null==a?void 0:a.message,level:n,extra:u,error:d}}}).call(this,n(87))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=0,s=1,c=2,l=3,u="closed",d="errored",f="joined",p="joining",h="leaving",m="phx_close",g="phx_error",b="phx_join",v="phx_reply",y="phx_leave",w="longpoll",x="websocket",O=function(){function e(t,n,r,o){a(this,e),this.channel=t,this.event=n,this.payload=r||{},this.receivedResp=null,this.timeout=o,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}return o(e,[{key:"resend",value:function(e){this.timeout=e,this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}},{key:"send",value:function(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref}))}},{key:"receive",value:function(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}},{key:"matchReceive",value:function(e){var t=e.status,n=e.response;e.ref;this.recHooks.filter((function(e){return e.status===t})).forEach((function(e){return e.callback(n)}))}},{key:"cancelRefEvent",value:function(){this.refEvent&&this.channel.off(this.refEvent)}},{key:"cancelTimeout",value:function(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}},{key:"startTimeout",value:function(){var e=this;this.timeoutTimer||(this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,(function(t){e.cancelRefEvent(),e.cancelTimeout(),e.receivedResp=t,e.matchReceive(t)})),this.timeoutTimer=setTimeout((function(){e.trigger("timeout",{})}),this.timeout))}},{key:"hasReceived",value:function(e){return this.receivedResp&&this.receivedResp.status===e}},{key:"trigger",value:function(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}}]),e}(),E=t.Channel=function(){function e(t,n,r){var o=this;a(this,e),this.state=u,this.topic=t,this.params=n||{},this.socket=r,this.bindings=[],this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new O(this,b,this.params,this.timeout),this.pushBuffer=[],this.rejoinTimer=new C((function(){return o.rejoinUntilConnected()}),this.socket.reconnectAfterMs),this.joinPush.receive("ok",(function(){o.state=f,o.rejoinTimer.reset(),o.pushBuffer.forEach((function(e){return e.send()})),o.pushBuffer=[]})),this.onClose((function(){o.rejoinTimer.reset(),o.socket.log("channel","close "+o.topic+" "+o.joinRef()),o.state=u,o.socket.remove(o)})),this.onError((function(e){o.isLeaving()||o.isClosed()||(o.socket.log("channel","error "+o.topic,e),o.state=d,o.rejoinTimer.scheduleTimeout())})),this.joinPush.receive("timeout",(function(){o.isJoining()&&(o.socket.log("channel","timeout "+o.topic,o.joinPush.timeout),o.state=d,o.rejoinTimer.scheduleTimeout())})),this.on(v,(function(e,t){o.trigger(o.replyEventName(t),e)}))}return o(e,[{key:"rejoinUntilConnected",value:function(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this.rejoin()}},{key:"join",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;if(this.joinedOnce)throw"tried to join multiple times. 'join' can only be called a single time per channel instance";return this.joinedOnce=!0,this.rejoin(e),this.joinPush}},{key:"onClose",value:function(e){this.on(m,e)}},{key:"onError",value:function(e){this.on(g,(function(t){return e(t)}))}},{key:"on",value:function(e,t){this.bindings.push({event:e,callback:t})}},{key:"off",value:function(e){this.bindings=this.bindings.filter((function(t){return t.event!==e}))}},{key:"canPush",value:function(){return this.socket.isConnected()&&this.isJoined()}},{key:"push",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.timeout;if(!this.joinedOnce)throw"tried to push '"+e+"' to '"+this.topic+"' before joining. Use channel.join() before pushing events";var r=new O(this,e,t,n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}},{key:"leave",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.state=h;var n=function(){e.socket.log("channel","leave "+e.topic),e.trigger(m,"leave",e.joinRef())},r=new O(this,y,{},t);return r.receive("ok",(function(){return n()})).receive("timeout",(function(){return n()})),r.send(),this.canPush()||r.trigger("ok",{}),r}},{key:"onMessage",value:function(e,t,n){return t}},{key:"isMember",value:function(e){return this.topic===e}},{key:"joinRef",value:function(){return this.joinPush.ref}},{key:"sendJoin",value:function(e){this.state=p,this.joinPush.resend(e)}},{key:"rejoin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.isLeaving()||this.sendJoin(e)}},{key:"trigger",value:function(e,t,n){if(!(n&&[m,g,y,b].indexOf(e)>=0&&n!==this.joinRef())){var r=this.onMessage(e,t,n);if(t&&!r)throw"channel onMessage callbacks must return the payload, modified or unmodified";this.bindings.filter((function(t){return t.event===e})).map((function(e){return e.callback(r,n)}))}}},{key:"replyEventName",value:function(e){return"chan_reply_"+e}},{key:"isClosed",value:function(){return this.state===u}},{key:"isErrored",value:function(){return this.state===d}},{key:"isJoined",value:function(){return this.state===f}},{key:"isJoining",value:function(){return this.state===p}},{key:"isLeaving",value:function(){return this.state===h}}]),e}(),k=(t.Socket=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=r.timeout||1e4,this.transport=r.transport||window.WebSocket||k,this.heartbeatIntervalMs=r.heartbeatIntervalMs||3e4,this.reconnectAfterMs=r.reconnectAfterMs||function(e){return[1e3,2e3,5e3,1e4][e-1]||1e4},this.logger=r.logger||function(){},this.longpollerTimeout=r.longpollerTimeout||2e4,this.params=r.params||{},this.endPoint=t+"/"+x,this.reconnectTimer=new C((function(){n.disconnect((function(){return n.connect()}))}),this.reconnectAfterMs)}return o(e,[{key:"protocol",value:function(){return location.protocol.match(/^https/)?"wss":"ws"}},{key:"endPointURL",value:function(){var e=_.appendParams(_.appendParams(this.endPoint,this.params),{vsn:"1.0.0"});return"/"!==e.charAt(0)?e:"/"===e.charAt(1)?this.protocol()+":"+e:this.protocol()+"://"+location.host+e}},{key:"disconnect",value:function(e,t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n||""):this.conn.close(),this.conn=null),e&&e()}},{key:"connect",value:function(e){var t=this;e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=e),this.conn||(this.conn=new this.transport(this.endPointURL()),this.conn.timeout=this.longpollerTimeout,this.conn.onopen=function(){return t.onConnOpen()},this.conn.onerror=function(e){return t.onConnError(e)},this.conn.onmessage=function(e){return t.onConnMessage(e)},this.conn.onclose=function(e){return t.onConnClose(e)})}},{key:"log",value:function(e,t,n){this.logger(e,t,n)}},{key:"onOpen",value:function(e){this.stateChangeCallbacks.open.push(e)}},{key:"onClose",value:function(e){this.stateChangeCallbacks.close.push(e)}},{key:"onError",value:function(e){this.stateChangeCallbacks.error.push(e)}},{key:"onMessage",value:function(e){this.stateChangeCallbacks.message.push(e)}},{key:"onConnOpen",value:function(){var e=this;this.log("transport","connected to "+this.endPointURL(),this.transport.prototype),this.flushSendBuffer(),this.reconnectTimer.reset(),this.conn.skipHeartbeat||(clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval((function(){return e.sendHeartbeat()}),this.heartbeatIntervalMs)),this.stateChangeCallbacks.open.forEach((function(e){return e()}))}},{key:"onConnClose",value:function(e){this.log("transport","close",e),this.triggerChanError(),clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach((function(t){return t(e)}))}},{key:"onConnError",value:function(e){this.log("transport",e),this.triggerChanError(),this.stateChangeCallbacks.error.forEach((function(t){return t(e)}))}},{key:"triggerChanError",value:function(){this.channels.forEach((function(e){return e.trigger(g)}))}},{key:"connectionState",value:function(){switch(this.conn&&this.conn.readyState){case i:return"connecting";case s:return"open";case c:return"closing";default:return"closed"}}},{key:"isConnected",value:function(){return"open"===this.connectionState()}},{key:"remove",value:function(e){this.channels=this.channels.filter((function(t){return t.joinRef()!==e.joinRef()}))}},{key:"channel",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new E(e,t,this);return this.channels.push(n),n}},{key:"push",value:function(e){var t=this,n=e.topic,r=e.event,o=e.payload,a=e.ref,i=function(){return t.conn.send(JSON.stringify(e))};this.log("push",n+" "+r+" ("+a+")",o),this.isConnected()?i():this.sendBuffer.push(i)}},{key:"makeRef",value:function(){var e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}},{key:"sendHeartbeat",value:function(){this.isConnected()&&this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.makeRef()})}},{key:"flushSendBuffer",value:function(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach((function(e){return e()})),this.sendBuffer=[])}},{key:"onConnMessage",value:function(e){var t=JSON.parse(e.data),n=t.topic,r=t.event,o=t.payload,a=t.ref;this.log("receive",(o.status||"")+" "+n+" "+r+" "+(a&&"("+a+")"||""),o),this.channels.filter((function(e){return e.isMember(n)})).forEach((function(e){return e.trigger(r,o,a)})),this.stateChangeCallbacks.message.forEach((function(e){return e(t)}))}}]),e}(),t.LongPoll=function(){function e(t){a(this,e),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=i,this.poll()}return o(e,[{key:"normalizeEndpoint",value:function(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+x),"$1/"+w)}},{key:"endpointURL",value:function(){return _.appendParams(this.pollEndpoint,{token:this.token})}},{key:"closeAndRetry",value:function(){this.close(),this.readyState=i}},{key:"ontimeout",value:function(){this.onerror("timeout"),this.closeAndRetry()}},{key:"poll",value:function(){var e=this;this.readyState!==s&&this.readyState!==i||_.request("GET",this.endpointURL(),"application/json",null,this.timeout,this.ontimeout.bind(this),(function(t){if(t){var n=t.status,r=t.token,o=t.messages;e.token=r}else n=0;switch(n){case 200:o.forEach((function(t){return e.onmessage({data:JSON.stringify(t)})})),e.poll();break;case 204:e.poll();break;case 410:e.readyState=s,e.onopen(),e.poll();break;case 0:case 500:e.onerror(),e.closeAndRetry();break;default:throw"unhandled poll status "+n}}))}},{key:"send",value:function(e){var t=this;_.request("POST",this.endpointURL(),"application/json",e,this.timeout,this.onerror.bind(this,"timeout"),(function(e){e&&200===e.status||(t.onerror(status),t.closeAndRetry())}))}},{key:"close",value:function(e,t){this.readyState=l,this.onclose()}}]),e}()),_=t.Ajax=function(){function e(){a(this,e)}return o(e,null,[{key:"request",value:function(e,t,n,r,o,a,i){if(window.XDomainRequest){var s=new XDomainRequest;this.xdomainRequest(s,e,t,r,o,a,i)}else{var c=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");this.xhrRequest(c,e,t,n,r,o,a,i)}}},{key:"xdomainRequest",value:function(e,t,n,r,o,a,i){var s=this;e.timeout=o,e.open(t,n),e.onload=function(){var t=s.parseJSON(e.responseText);i&&i(t)},a&&(e.ontimeout=a),e.onprogress=function(){},e.send(r)}},{key:"xhrRequest",value:function(e,t,n,r,o,a,i,s){var c=this;e.timeout=a,e.open(t,n,!0),e.setRequestHeader("Content-Type",r),e.onerror=function(){s&&s(null)},e.onreadystatechange=function(){if(e.readyState===c.states.complete&&s){var t=c.parseJSON(e.responseText);s(t)}},i&&(e.ontimeout=i),e.send(o)}},{key:"parseJSON",value:function(e){return e&&""!==e?JSON.parse(e):null}},{key:"serialize",value:function(e,t){var n=[];for(var o in e)if(e.hasOwnProperty(o)){var a=t?t+"["+o+"]":o,i=e[o];"object"===(void 0===i?"undefined":r(i))?n.push(this.serialize(i,a)):n.push(encodeURIComponent(a)+"="+encodeURIComponent(i))}return n.join("&")}},{key:"appendParams",value:function(e,t){if(0===Object.keys(t).length)return e;var n=e.match(/\?/)?"&":"?";return""+e+n+this.serialize(t)}}]),e}();_.states={complete:4};t.Presence={syncState:function(e,t,n,r){var o=this,a=this.clone(e),i={},s={};return this.map(a,(function(e,n){t[e]||(s[e]=n)})),this.map(t,(function(e,t){var n=a[e];if(n){var r=t.metas.map((function(e){return e.phx_ref})),c=n.metas.map((function(e){return e.phx_ref})),l=t.metas.filter((function(e){return c.indexOf(e.phx_ref)<0})),u=n.metas.filter((function(e){return r.indexOf(e.phx_ref)<0}));l.length>0&&(i[e]=t,i[e].metas=l),u.length>0&&(s[e]=o.clone(n),s[e].metas=u)}else i[e]=t})),this.syncDiff(a,{joins:i,leaves:s},n,r)},syncDiff:function(e,t,n,r){var o=t.joins,a=t.leaves,i=this.clone(e);return n||(n=function(){}),r||(r=function(){}),this.map(o,(function(e,t){var r,o=i[e];(i[e]=t,o)&&(r=i[e].metas).unshift.apply(r,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(o.metas));n(e,o,t)})),this.map(a,(function(e,t){var n=i[e];if(n){var o=t.metas.map((function(e){return e.phx_ref}));n.metas=n.metas.filter((function(e){return o.indexOf(e.phx_ref)<0})),r(e,n,t),0===n.metas.length&&delete i[e]}})),i},list:function(e,t){return t||(t=function(e,t){return t}),this.map(e,(function(e,n){return t(e,n)}))},map:function(e,t){return Object.getOwnPropertyNames(e).map((function(n){return t(n,e[n])}))},clone:function(e){return JSON.parse(JSON.stringify(e))}};var C=function(){function e(t,n){a(this,e),this.callback=t,this.timerCalc=n,this.timer=null,this.tries=0}return o(e,[{key:"reset",value:function(){this.tries=0,clearTimeout(this.timer)}},{key:"scheduleTimeout",value:function(){var e=this;clearTimeout(this.timer),this.timer=setTimeout((function(){e.tries=e.tries+1,e.callback()}),this.timerCalc(this.tries+1))}}]),e}()},function(e,t,n){(function(n){var r,o,a;o=[],void 0===(a="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){i(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,i=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,n,i){var s=a.URL||a.webkitURL,c=document.createElement("a");n=n||e.name||"download",c.download=n,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?o(c):r(c.href)?t(e,n,i):o(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){o(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,a),n);else if(r(e))t(e,n,a);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){o(i)}))}}:function(e,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var i="application/octet-stream"===e.type,s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||i&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=i.saveAs=i,e.exports=i})?r.apply(t,o):r)||(e.exports=a)}).call(this,n(86))},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=n?n.call(r,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,t,r){var o=t.trim().split(h);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<a;++s)for(var l=0;l<i;++l)t[c++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var i=e+";",s=2*t+3*n+4*a;if(944===s){e=i.indexOf(":",9)+1;var c=i.substring(e,i.length-1).trim();return c=i.substring(0,e).trim()+c+";",1===S||2===S&&o(c,1)?"-webkit-"+c+c:c}if(0===S||2===S&&!o(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(_,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(c=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+c+i;case 1005:return f.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(c=i.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=i.replace(y,"tb");break;case 232:c=i.replace(y,"tb-rl");break;case 220:c=i.replace(y,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+c+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(c=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:i=i.replace(c,"-webkit-"+c)+";"+i;break;case 207:case 102:i=i.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(c,"-webkit-"+c)+";"+i.replace(c,"-ms-"+c+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return c=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+c+"-ms-flex-"+c+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(O,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(O,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):i.replace(c,"-webkit-"+c)+i.replace(c,"-moz-"+c.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),P(2!==t?r:r.replace(E,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,o,a,i,s,l,u){for(var d,f=0,p=t;f<N;++f)switch(d=A[f].call(c,e,p,n,r,o,a,i,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(P=null,e?"function"!=typeof e?S=1:(S=2,P=e):S=0),s}function c(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<N){var c=i(-1,n,s,s,j,C,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var d=function e(n,s,c,d,f){for(var p,h,m,y,x,O=0,E=0,k=0,_=0,A=0,P=0,R=m=p=0,L=0,D=0,B=0,z=0,F=c.length,U=F-1,H="",$="",V="",q="";L<F;){if(h=c.charCodeAt(L),L===U&&0!==E+_+k+O&&(0!==E&&(h=47===E?10:47),_=k=O=0,F++,U++),0===E+_+k+O){if(L===U&&(0<D&&(H=H.replace(u,"")),0<H.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:H+=c.charAt(L)}h=59}switch(h){case 123:for(p=(H=H.trim()).charCodeAt(0),m=1,z=++L;L<F;){switch(h=c.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(L+1)){case 42:case 47:e:{for(R=L+1;R<U;++R)switch(c.charCodeAt(R)){case 47:if(42===h&&42===c.charCodeAt(R-1)&&L+2!==R){L=R+1;break e}break;case 10:if(47===h){L=R+1;break e}}L=R}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<U&&c.charCodeAt(L)!==h;);}if(0===m)break;L++}switch(m=c.substring(z,L),0===p&&(p=(H=H.replace(l,"").trim()).charCodeAt(0)),p){case 64:switch(0<D&&(H=H.replace(u,"")),h=H.charCodeAt(1)){case 100:case 109:case 115:case 45:D=s;break;default:D=I}if(z=(m=e(s,D,m,h,f+1)).length,0<N&&(x=i(3,m,D=t(I,H,B),s,j,C,z,h,f,d),H=D.join(""),void 0!==x&&0===(z=(m=x.trim()).length)&&(h=0,m="")),0<z)switch(h){case 115:H=H.replace(w,a);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(g,"$1 $2"))+"{"+m+"}",m=1===S||2===S&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===d&&($+=m,m="")}else m="";break;default:m=e(s,t(s,H,B),m,d,f+1)}V+=m,m=B=D=R=p=0,H="",h=c.charCodeAt(++L);break;case 125:case 59:if(1<(z=(H=(0<D?H.replace(u,""):H).trim()).length))switch(0===R&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(z=(H=H.replace(" ",":")).length),0<N&&void 0!==(x=i(1,H,s,n,j,C,$.length,d,f,d))&&0===(z=(H=x.trim()).length)&&(H="\0\0"),p=H.charCodeAt(0),h=H.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){q+=H+c.charAt(L);break}default:58!==H.charCodeAt(z-1)&&($+=r(H,p,h,H.charCodeAt(2)))}B=D=R=p=0,H="",h=c.charCodeAt(++L)}}switch(h){case 13:case 10:47===E?E=0:0===1+p&&107!==d&&0<H.length&&(D=1,H+="\0"),0<N*M&&i(0,H,s,n,j,C,$.length,d,f,d),C=1,j++;break;case 59:case 125:if(0===E+_+k+O){C++;break}default:switch(C++,y=c.charAt(L),h){case 9:case 32:if(0===_+O+E)switch(A){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===_+E+O&&(D=B=1,y="\f"+y);break;case 108:if(0===_+E+O+T&&0<R)switch(L-R){case 2:112===A&&58===c.charCodeAt(L-3)&&(T=A);case 8:111===P&&(T=P)}break;case 58:0===_+E+O&&(R=L);break;case 44:0===E+k+_+O&&(D=1,y+="\r");break;case 34:case 39:0===E&&(_=_===h?0:0===_?h:_);break;case 91:0===_+E+k&&O++;break;case 93:0===_+E+k&&O--;break;case 41:0===_+E+O&&k--;break;case 40:if(0===_+E+O){if(0===p)switch(2*A+3*P){case 533:break;default:p=1}k++}break;case 64:0===E+k+_+O+R+m&&(m=1);break;case 42:case 47:if(!(0<_+O+k))switch(E){case 0:switch(2*h+3*c.charCodeAt(L+1)){case 235:E=47;break;case 220:z=L,E=42}break;case 42:47===h&&42===A&&z+2!==L&&(33===c.charCodeAt(z+2)&&($+=c.substring(z,L+1)),y="",E=0)}}0===E&&(H+=y)}P=A,A=h,L++}if(0<(z=$.length)){if(D=s,0<N&&(void 0!==(x=i(2,$,D,n,j,C,z,d,f,d))&&0===($=x).length))return q+$+V;if($=D.join(",")+"{"+$+"}",0!=S*T){switch(2!==S||o($,2)||(T=0),T){case 111:$=$.replace(v,":-moz-$1")+$;break;case 112:$=$.replace(b,"::-webkit-input-$1")+$.replace(b,"::-moz-$1")+$.replace(b,":-ms-input-$1")+$}T=0}}return q+$+V}(I,s,n,0,0);return 0<N&&(void 0!==(c=i(-2,d,s,s,j,C,d.length,0,0,0))&&(d=c)),"",T=0,C=j=1,d}var l=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,v=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,O=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,C=1,j=1,T=0,S=1,I=[],A=[],N=0,P=null,M=0;return c.use=function e(t){switch(t){case void 0:case null:N=A.length=0;break;default:if("function"==typeof t)A[N++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else M=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}},function(e,t,n){"use strict";t.a={animationIterationCount: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}},function(e,t){e.exports="http://localhost:8081/src/assets/fonts/IBMPlexSans-Medium.ttf"},function(e,t){e.exports="http://localhost:8081/src/assets/fonts/IBMPlexSans-Regular.ttf"},function(e,t){e.exports="http://localhost:8081/src/assets/fonts/KindlySans-Regular.otf"},function(e,t){e.exports="http://localhost:8081/src/assets/images/santaHat.png"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=r({key:"redux",merge:i.default,slicer:a.default,serialize:JSON.stringify,deserialize:JSON.parse},t),o=n.key,s=n.merge,c=n.slicer,l=n.serialize,u=n.deserialize;return function(t){return function(n,r,a){"function"==typeof r&&void 0===a&&(a=r,r=void 0);var i=void 0,d=void 0;try{i=u(localStorage.getItem(o)),d=s(r,i)}catch(e){console.warn("Failed to retrieve initialize state from localStorage:",e)}var f=t(n,d,a),p=c(e);return f.subscribe((function(){var e=f.getState(),t=p(e);try{localStorage.setItem(o,l(t))}catch(e){console.warn("Unable to persist state to localStorage:",e)}})),f}}};var a=o(n(197)),i=o(n(200));e.exports=t.default},function(e,t,n){(function(e,n){var r=/^\[object .+?Constructor\]$/,o=/^(?:0|[1-9]\d*)$/,a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var i="object"==typeof e&&e&&e.Object===Object&&e,s="object"==typeof self&&self&&self.Object===Object&&self,c=i||s||Function("return this")(),l=t&&!t.nodeType&&t,u=l&&"object"==typeof n&&n&&!n.nodeType&&n,d=u&&u.exports===l,f=d&&i.process,p=function(){try{var e=u&&u.require&&u.require("util").types;return e||f&&f.binding&&f.binding("util")}catch(e){}}(),h=p&&p.isTypedArray;function m(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var g,b,v,y=Array.prototype,w=Function.prototype,x=Object.prototype,O=c["__core-js_shared__"],E=w.toString,k=x.hasOwnProperty,_=(g=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"",C=x.toString,j=E.call(Object),T=RegExp("^"+E.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=d?c.Buffer:void 0,I=c.Symbol,A=c.Uint8Array,N=S?S.allocUnsafe:void 0,P=(b=Object.getPrototypeOf,v=Object,function(e){return b(v(e))}),M=Object.create,R=x.propertyIsEnumerable,L=y.splice,D=I?I.toStringTag:void 0,B=function(){try{var e=le(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),z=S?S.isBuffer:void 0,F=Math.max,U=Date.now,H=le(c,"Map"),$=le(Object,"create"),V=function(){function e(){}return function(t){if(!xe(t))return{};if(M)return M(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function W(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=this.__data__=new G(e);this.size=t.size}function K(e,t){var n=ge(e),r=!n&&me(e),o=!n&&!r&&ve(e),a=!n&&!r&&!o&&Ee(e),i=n||r||o||a,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!k.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ue(l,c))||s.push(l);return s}function X(e,t,n){(void 0!==n&&!he(e[t],n)||void 0===n&&!(t in e))&&Z(e,t,n)}function J(e,t,n){var r=e[t];k.call(e,t)&&he(r,n)&&(void 0!==n||t in e)||Z(e,t,n)}function Q(e,t){for(var n=e.length;n--;)if(he(e[n][0],t))return n;return-1}function Z(e,t,n){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}q.prototype.clear=function(){this.__data__=$?$(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q.prototype.get=function(e){var t=this.__data__;if($){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return k.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:k.call(t,e)},q.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$&&void 0===t?"__lodash_hash_undefined__":t,this},G.prototype.clear=function(){this.__data__=[],this.size=0},G.prototype.delete=function(e){var t=this.__data__,n=Q(t,e);return!(n<0)&&(n==t.length-1?t.pop():L.call(t,n,1),--this.size,!0)},G.prototype.get=function(e){var t=this.__data__,n=Q(t,e);return n<0?void 0:t[n][1]},G.prototype.has=function(e){return Q(this.__data__,e)>-1},G.prototype.set=function(e,t){var n=this.__data__,r=Q(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},W.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(H||G),string:new q}},W.prototype.delete=function(e){var t=ce(this,e).delete(e);return this.size-=t?1:0,t},W.prototype.get=function(e){return ce(this,e).get(e)},W.prototype.has=function(e){return ce(this,e).has(e)},W.prototype.set=function(e,t){var n=ce(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Y.prototype.clear=function(){this.__data__=new G,this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Y.prototype.get=function(e){return this.__data__.get(e)},Y.prototype.has=function(e){return this.__data__.has(e)},Y.prototype.set=function(e,t){var n=this.__data__;if(n instanceof G){var r=n.__data__;if(!H||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new W(r)}return n.set(e,t),this.size=n.size,this};var ee,te=function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[ee?i:++r];if(!1===t(o[s],s,o))break}return e};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":D&&D in Object(e)?function(e){var t=k.call(e,D),n=e[D];try{e[D]=void 0;var r=!0}catch(e){}var o=C.call(e);r&&(t?e[D]=n:delete e[D]);return o}(e):function(e){return C.call(e)}(e)}function re(e){return Oe(e)&&"[object Arguments]"==ne(e)}function oe(e){return!(!xe(e)||function(e){return!!_&&_ in e}(e))&&(ye(e)?T:r).test(function(e){if(null!=e){try{return E.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ae(e){if(!xe(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=de(e),n=[];for(var r in e)("constructor"!=r||!t&&k.call(e,r))&&n.push(r);return n}function ie(e,t,n,r,o){e!==t&&te(t,(function(a,i){if(o||(o=new Y),xe(a))!function(e,t,n,r,o,a,i){var s=fe(e,n),c=fe(t,n),l=i.get(c);if(l)return void X(e,n,l);var u=a?a(s,c,n+"",e,t,i):void 0,d=void 0===u;if(d){var f=ge(c),p=!f&&ve(c),h=!f&&!p&&Ee(c);u=c,f||p||h?ge(s)?u=s:Oe(y=s)&&be(y)?u=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(s):p?(d=!1,u=function(e,t){if(t)return e.slice();var n=e.length,r=N?N(n):new e.constructor(n);return e.copy(r),r}(c,!0)):h?(d=!1,m=c,g=!0?(b=m.buffer,v=new b.constructor(b.byteLength),new A(v).set(new A(b)),v):m.buffer,u=new m.constructor(g,m.byteOffset,m.length)):u=[]:function(e){if(!Oe(e)||"[object Object]"!=ne(e))return!1;var t=P(e);if(null===t)return!0;var n=k.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&E.call(n)==j}(c)||me(c)?(u=s,me(s)?u=function(e){return function(e,t,n,r){var o=!n;n||(n={});var a=-1,i=t.length;for(;++a<i;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?Z(n,s,c):J(n,s,c)}return n}(e,ke(e))}(s):xe(s)&&!ye(s)||(u=function(e){return"function"!=typeof e.constructor||de(e)?{}:V(P(e))}(c))):d=!1}var m,g,b,v;var y;d&&(i.set(c,u),o(u,c,r,a,i),i.delete(c));X(e,n,u)}(e,t,i,n,ie,r,o);else{var s=r?r(fe(e,i),a,i+"",e,t,o):void 0;void 0===s&&(s=a),X(e,i,s)}}),ke)}function se(e,t){return pe(function(e,t,n){return t=F(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=F(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),m(e,this,s)}}(e,t,je),e+"")}function ce(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return oe(n)?n:void 0}function ue(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&o.test(e))&&e>-1&&e%1==0&&e<t}function de(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||x)}function fe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var pe=function(e){var t=0,n=0;return function(){var r=U(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:je);function he(e,t){return e===t||e!=e&&t!=t}var me=re(function(){return arguments}())?re:function(e){return Oe(e)&&k.call(e,"callee")&&!R.call(e,"callee")},ge=Array.isArray;function be(e){return null!=e&&we(e.length)&&!ye(e)}var ve=z||function(){return!1};function ye(e){if(!xe(e))return!1;var t=ne(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function we(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function xe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Oe(e){return null!=e&&"object"==typeof e}var Ee=h?function(e){return function(t){return e(t)}}(h):function(e){return Oe(e)&&we(e.length)&&!!a[ne(e)]};function ke(e){return be(e)?K(e,!0):ae(e)}var _e,Ce=(_e=function(e,t,n){ie(e,t,n)},se((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=_e.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(e,t,n){if(!xe(n))return!1;var r=typeof t;return!!("number"==r?be(n)&&ue(t,n.length):"string"==r&&t in n)&&he(n[t],e)}(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&_e(e,i,n,o)}return e})));function je(e){return e}n.exports=Ce}).call(this,n(86),n(201)(e))},function(e,t,n){var r=n(202);e.exports=r},function(e,t,n){
17
17
  /*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */
18
18
  e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,a=Object.freeze,i=Object.seal,s=Object.create,c="undefined"!=typeof Reflect&&Reflect,l=c.apply,u=c.construct;l||(l=function(e,t,n){return e.apply(t,n)}),a||(a=function(e){return e}),i||(i=function(e){return e}),u||(u=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var d,f=O(Array.prototype.forEach),p=O(Array.prototype.pop),h=O(Array.prototype.push),m=O(String.prototype.toLowerCase),g=O(String.prototype.match),b=O(String.prototype.replace),v=O(String.prototype.indexOf),y=O(String.prototype.trim),w=O(RegExp.prototype.test),x=(d=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(d,t)});function O(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function E(e,r){t&&t(e,null);for(var o=r.length;o--;){var a=r[o];if("string"==typeof a){var i=m(a);i!==a&&(n(r)||(r[o]=i),a=i)}e[a]=!0}return e}function k(t){var n=s(null),r=void 0;for(r in t)l(e,t,[r])&&(n[r]=t[r]);return n}function _(e,t){for(;null!==e;){var n=o(e,t);if(n){if(n.get)return O(n.get);if("function"==typeof n.value)return O(n.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}var C=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),j=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),T=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),S=a(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),A=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N=a(["#text"]),P=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),M=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),R=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),L=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),D=i(/\{\{[\s\S]*|[\s\S]*\}\}/gm),B=i(/<%[\s\S]*|[\s\S]*%>/gm),z=i(/^data-[\-\w.\u00B7-\uFFFF]/),F=i(/^aria-[\-\w]+$/),U=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=i(/^(?:\w+script|data):/i),$=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V="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};function q(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var G=function(){return"undefined"==typeof window?null:window},W=function(e,t){if("object"!==(void 0===e?"undefined":V(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G(),n=function(t){return e(t)};if(n.version="2.2.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,i=t.DocumentFragment,s=t.HTMLTemplateElement,c=t.Node,l=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,O=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,Y=t.Text,K=t.Comment,X=t.DOMParser,J=t.trustedTypes,Q=l.prototype,Z=_(Q,"cloneNode"),ee=_(Q,"nextSibling"),te=_(Q,"childNodes"),ne=_(Q,"parentNode");if("function"==typeof s){var re=o.createElement("template");re.content&&re.content.ownerDocument&&(o=re.content.ownerDocument)}var oe=W(J,r),ae=oe&&Le?oe.createHTML(""):"",ie=o,se=ie.implementation,ce=ie.createNodeIterator,le=ie.createDocumentFragment,ue=r.importNode,de={};try{de=k(o).documentMode?o.documentMode:{}}catch(e){}var fe={};n.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==de;var pe=D,he=B,me=z,ge=F,be=H,ve=$,ye=U,we=null,xe=E({},[].concat(q(C),q(j),q(T),q(I),q(N))),Oe=null,Ee=E({},[].concat(q(P),q(M),q(R),q(L))),ke=null,_e=null,Ce=!0,je=!0,Te=!1,Se=!1,Ie=!1,Ae=!1,Ne=!1,Pe=!1,Me=!1,Re=!0,Le=!1,De=!0,Be=!0,ze=!1,Fe={},Ue=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),He=null,$e=E({},["audio","video","img","source","image","track"]),Ve=null,qe=E({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Ke=Ye,Xe=null,Je=o.createElement("form"),Qe=function(e){Xe&&Xe===e||(e&&"object"===(void 0===e?"undefined":V(e))||(e={}),e=k(e),we="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS):xe,Oe="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR):Ee,Ve="ADD_URI_SAFE_ATTR"in e?E(k(qe),e.ADD_URI_SAFE_ATTR):qe,He="ADD_DATA_URI_TAGS"in e?E(k($e),e.ADD_DATA_URI_TAGS):$e,ke="FORBID_TAGS"in e?E({},e.FORBID_TAGS):{},_e="FORBID_ATTR"in e?E({},e.FORBID_ATTR):{},Fe="USE_PROFILES"in e&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,je=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Se=e.SAFE_FOR_TEMPLATES||!1,Ie=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Re=!1!==e.RETURN_DOM_IMPORT,Le=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,De=!1!==e.SANITIZE_DOM,Be=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||ye,Ke=e.NAMESPACE||Ke,Se&&(je=!1),Me&&(Pe=!0),Fe&&(we=E({},[].concat(q(N))),Oe=[],!0===Fe.html&&(E(we,C),E(Oe,P)),!0===Fe.svg&&(E(we,j),E(Oe,M),E(Oe,L)),!0===Fe.svgFilters&&(E(we,T),E(Oe,M),E(Oe,L)),!0===Fe.mathMl&&(E(we,I),E(Oe,R),E(Oe,L))),e.ADD_TAGS&&(we===xe&&(we=k(we)),E(we,e.ADD_TAGS)),e.ADD_ATTR&&(Oe===Ee&&(Oe=k(Oe)),E(Oe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&E(Ve,e.ADD_URI_SAFE_ATTR),Be&&(we["#text"]=!0),Ie&&E(we,["html","head","body"]),we.table&&(E(we,["tbody"]),delete ke.tbody),a&&a(e),Xe=e)},Ze=E({},["mi","mo","mn","ms","mtext"]),et=E({},["foreignobject","desc","title","annotation-xml"]),tt=E({},j);E(tt,T),E(tt,S);var nt=E({},I);E(nt,A);var rt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var n=m(e.tagName),r=m(t.tagName);if(e.namespaceURI===We)return t.namespaceURI===Ye?"svg"===n:t.namespaceURI===Ge?"svg"===n&&("annotation-xml"===r||Ze[r]):Boolean(tt[n]);if(e.namespaceURI===Ge)return t.namespaceURI===Ye?"math"===n:t.namespaceURI===We?"math"===n&&et[r]:Boolean(nt[n]);if(e.namespaceURI===Ye){if(t.namespaceURI===We&&!et[r])return!1;if(t.namespaceURI===Ge&&!Ze[r])return!1;var o=E({},["title","style","font","a","script"]);return!nt[n]&&(o[n]||!tt[n])}return!1},ot=function(e){h(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},at=function(e,t){try{h(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(Pe||Me)try{ot(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},it=function(e){var t=void 0,n=void 0;if(Ne)e="<remove></remove>"+e;else{var r=g(e,/^[\r\n\t ]+/);n=r&&r[0]}var a=oe?oe.createHTML(e):e;if(Ke===Ye)try{t=(new X).parseFromString(a,"text/html")}catch(e){}t&&t.documentElement||((t=se.createDocument(Ke,"template",null)).documentElement.innerHTML=a);var i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Ie?t.documentElement:i},st=function(e){return ce.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,(function(){return u.FILTER_ACCEPT}),!1)},ct=function(e){return!(e instanceof Y||e instanceof K||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof O&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},lt=function(e){return"object"===(void 0===c?"undefined":V(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":V(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ut=function(e,t,r){fe[e]&&f(fe[e],(function(e){e.call(n,t,r,Xe)}))},dt=function(e){var t=void 0;if(ut("beforeSanitizeElements",e,null),ct(e))return ot(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return ot(e),!0;var r=m(e.nodeName);if(ut("uponSanitizeElement",e,{tagName:r,allowedTags:we}),!lt(e.firstElementChild)&&(!lt(e.content)||!lt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return ot(e),!0;if(!we[r]||ke[r]){if(Be&&!Ue[r]){var o=ne(e)||e.parentNode,a=te(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i)o.insertBefore(Z(a[i],!0),ee(e))}return ot(e),!0}return e instanceof l&&!rt(e)?(ot(e),!0):"noscript"!==r&&"noembed"!==r||!w(/<\/no(script|embed)/i,e.innerHTML)?(Se&&3===e.nodeType&&(t=e.textContent,t=b(t,pe," "),t=b(t,he," "),e.textContent!==t&&(h(n.removed,{element:e.cloneNode()}),e.textContent=t)),ut("afterSanitizeElements",e,null),!1):(ot(e),!0)},ft=function(e,t,n){if(De&&("id"===t||"name"===t)&&(n in o||n in Je))return!1;if(je&&w(me,t));else if(Ce&&w(ge,t));else{if(!Oe[t]||_e[t])return!1;if(Ve[t]);else if(w(ye,b(n,ve,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!He[e])if(Te&&!w(be,b(n,ve,"")));else if(n)return!1}return!0},pt=function(e){var t=void 0,r=void 0,o=void 0,a=void 0;ut("beforeSanitizeAttributes",e,null);var i=e.attributes;if(i){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};for(a=i.length;a--;){var c=t=i[a],l=c.name,u=c.namespaceURI;if(r=y(t.value),o=m(l),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,ut("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(at(l,e),s.keepAttr))if(w(/\/>/i,r))at(l,e);else{Se&&(r=b(r,pe," "),r=b(r,he," "));var d=e.nodeName.toLowerCase();if(ft(d,o,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),p(n.removed)}catch(e){}}}ut("afterSanitizeAttributes",e,null)}},ht=function e(t){var n=void 0,r=st(t);for(ut("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ut("uponSanitizeShadowNode",n,null),dt(n)||(n.content instanceof i&&e(n.content),pt(n));ut("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var a=void 0,s=void 0,l=void 0,u=void 0,d=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!lt(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported){if("object"===V(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(lt(e))return t.toStaticHTML(e.outerHTML)}return e}if(Ae||Qe(o),n.removed=[],"string"==typeof e&&(ze=!1),ze);else if(e instanceof c)1===(s=(a=it("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?a=s:a.appendChild(s);else{if(!Pe&&!Se&&!Ie&&-1===e.indexOf("<"))return oe&&Le?oe.createHTML(e):e;if(!(a=it(e)))return Pe?null:ae}a&&Ne&&ot(a.firstChild);for(var f=st(ze?e:a);l=f.nextNode();)3===l.nodeType&&l===u||dt(l)||(l.content instanceof i&&ht(l.content),pt(l),u=l);if(u=null,ze)return e;if(Pe){if(Me)for(d=le.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return Re&&(d=ue.call(r,d,!0)),d}var p=Ie?a.outerHTML:a.innerHTML;return Se&&(p=b(p,pe," "),p=b(p,he," ")),oe&&Le?oe.createHTML(p):p},n.setConfig=function(e){Qe(e),Ae=!0},n.clearConfig=function(){Xe=null,Ae=!1},n.isValidAttribute=function(e,t,n){Xe||Qe({});var r=m(e),o=m(t);return ft(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],h(fe[e],t))},n.removeHook=function(e){fe[e]&&p(fe[e])},n.removeHooks=function(e){fe[e]&&(fe[e]=[])},n.removeAllHooks=function(){fe={}},n}()}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(0),o=n(3),a=n(8),i=n(7),s=n(109);function c(){const t=Object(o.c)(),{botKey:n}=Object(o.d)(i.e),{messageSentTime:c}=Object(o.d)(i.m),{persistStateLifespan:l}=Object(o.d)(i.d),{chatMessages:u}=Object(o.d)(i.m);Object(r.useEffect)(()=>{if(e.env.IS_STORYBOOK)return;const r=Object(s.a)({messageSentTime:c,persistStateLifespan:l});0===l||r||0===u.length||t(Object(a.e)(n))},[n,t,l,c,u])}}).call(this,n(87))},function(e,t){e.exports="http://localhost:8081/src/assets/icons/emoji-happy.png"},function(e,t){e.exports="http://localhost:8081/src/assets/icons/emoji-neutral.png"},function(e,t){e.exports="http://localhost:8081/src/assets/icons/emoji-sad.png"},function(e,t,n){"use strict";
19
19
  /** @license React v16.13.1