@seamly/web-ui 20.3.0 → 20.5.0

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.
Files changed (48) hide show
  1. package/build/dist/lib/index.debug.js +61 -94
  2. package/build/dist/lib/index.debug.min.js +1 -1
  3. package/build/dist/lib/index.debug.min.js.LICENSE.txt +4 -16
  4. package/build/dist/lib/index.js +467 -3965
  5. package/build/dist/lib/index.min.js +1 -1
  6. package/build/dist/lib/index.min.js.LICENSE.txt +0 -5
  7. package/build/dist/lib/standalone.js +432 -3865
  8. package/build/dist/lib/standalone.min.js +1 -1
  9. package/build/dist/lib/style-guide.js +267 -191
  10. package/build/dist/lib/style-guide.min.js +1 -1
  11. package/build/dist/lib/styles.css +1 -1
  12. package/package.json +2 -4
  13. package/src/.DS_Store +0 -0
  14. package/src/javascripts/api/index.js +17 -1
  15. package/src/javascripts/domains/config/reducer.js +2 -0
  16. package/src/javascripts/domains/forms/provider.js +14 -6
  17. package/src/javascripts/domains/store/state-reducer.js +1 -0
  18. package/src/javascripts/domains/visibility/actions.js +2 -0
  19. package/src/javascripts/domains/visibility/hooks.js +60 -1
  20. package/src/javascripts/domains/visibility/reducer.js +5 -0
  21. package/src/javascripts/domains/visibility/selectors.js +5 -0
  22. package/src/javascripts/domains/visibility/utils.js +5 -1
  23. package/src/javascripts/index.js +1 -0
  24. package/src/javascripts/style-guide/components/app.js +2 -0
  25. package/src/javascripts/style-guide/states.js +55 -50
  26. package/src/javascripts/ui/components/conversation/conversation.js +9 -10
  27. package/src/javascripts/ui/components/conversation/event/card-component.js +1 -2
  28. package/src/javascripts/ui/components/conversation/event/conversation-suggestions.js +19 -9
  29. package/src/javascripts/ui/components/conversation/event/cta.js +1 -2
  30. package/src/javascripts/ui/components/conversation/event/image.js +11 -3
  31. package/src/javascripts/ui/components/conversation/event/participant.js +2 -11
  32. package/src/javascripts/ui/components/conversation/event/splash.js +1 -3
  33. package/src/javascripts/ui/components/conversation/event/text.js +9 -9
  34. package/src/javascripts/ui/components/entry/text-entry/text-entry-form.js +6 -0
  35. package/src/javascripts/ui/components/layout/chat.js +52 -48
  36. package/src/javascripts/ui/components/suggestions/suggestions-list.js +12 -14
  37. package/src/javascripts/ui/components/view/deprecated-view.js +16 -11
  38. package/src/javascripts/ui/components/view/index.js +2 -2
  39. package/src/javascripts/ui/components/view/inline-view.js +13 -8
  40. package/src/javascripts/ui/hooks/seamly-entry-hooks.js +3 -2
  41. package/src/javascripts/ui/hooks/seamly-state-hooks.js +7 -3
  42. package/src/javascripts/ui/hooks/use-seamly-chat.js +41 -29
  43. package/src/javascripts/ui/hooks/use-seamly-commands.js +16 -4
  44. package/src/javascripts/ui/utils/seamly-utils.js +24 -7
  45. package/src/stylesheets/5-components/_message-count.scss +5 -2
  46. package/CHANGELOG.md +0 -729
  47. package/src/javascripts/lib/parse-body.js +0 -10
  48. package/src/javascripts/ui/components/conversation/event/hooks/use-text-rendering.js +0 -35
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see standalone.min.js.LICENSE.txt */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(function(){return function(){var t={6419:function(t,e,n){t.exports=n(7698)},1511:function(t,e,n){t.exports=n(3363)},1128:function(t,e,n){t.exports=n(7784)},4103:function(t,e,n){t.exports=n(8196)},7766:function(t,e,n){t.exports=n(8065)},62:function(t,e,n){t.exports=n(9455)},4494:function(t,e,n){t.exports=n(9743)},116:function(t,e,n){t.exports=n(1955)},2462:function(t,e,n){t.exports=n(6064)},4473:function(t,e,n){t.exports=n(1577)},6423:function(t,e,n){t.exports=n(4913)},8914:function(t,e,n){t.exports=n(6279)},8580:function(t,e,n){t.exports=n(3778)},1643:function(t,e,n){t.exports=n(9373)},2991:function(t,e,n){t.exports=n(1798)},2366:function(t,e,n){t.exports=n(2527)},7093:function(t,e,n){t.exports=n(8427)},3649:function(t,e,n){t.exports=n(2073)},7149:function(t,e,n){t.exports=n(5286)},7302:function(t,e,n){t.exports=n(2856)},5843:function(t,e,n){t.exports=n(6361)},9340:function(t,e,n){t.exports=n(8933)},925:function(t,e,n){t.exports=n(5838)},1942:function(t,e,n){t.exports=n(3383)},4943:function(t,e,n){t.exports=n(4471)},368:function(t,e,n){t.exports=n(7396)},3978:function(t,e,n){t.exports=n(1910)},6295:function(t,e,n){t.exports=n(6209)},4074:function(t,e,n){t.exports=n(9427)},9649:function(t,e,n){t.exports=n(2857)},8604:function(t,e,n){n(4477)},4310:function(t,e,n){t.exports=n(9534)},1611:function(t,e,n){t.exports=n(6507)},6902:function(t,e,n){t.exports=n(3059)},455:function(t,e,n){t.exports=n(7795)},1238:function(t,e,n){t.exports=n(6877)},4198:function(t,e,n){t.exports=n(4888)},3476:function(t,e,n){t.exports=n(7460)},1581:function(t,e,n){t.exports=n(3474)},3032:function(t,e,n){t.exports=n(7989)},6384:function(t,e,n){t.exports=n(5519)},5420:function(t,e,n){t.exports=n(2547)},8341:function(t,e,n){t.exports=n(6509)},9996:function(t,e,n){t.exports=n(2209)},1445:function(t,e,n){t.exports=n(4122)},5683:function(t,e,n){t.exports=n(9447)},2088:function(t,e,n){t.exports=n(269)},4341:function(t,e,n){t.exports=n(3685)},3263:function(t,e,n){t.exports=n(4710)},9356:function(t,e,n){t.exports=n(3799)},2574:function(t,e,n){"use strict";var r=n(5420),o=n(9996),i=n(6419),a=n(1511),s=n(3649);function c(t,e){var n;if(t){if("string"==typeof t)return l(t,e);var r=s(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?i(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(){this._defaults=[]}for(var p=function(){var t=h[f];u.prototype[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this._defaults.push({fn:t,args:n}),this}},f=0,h=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];f<h.length;f++)p();u.prototype._setDefaults=function(t){var e,n,s=function(t,e){var n=void 0!==r&&o(t)||t["@@iterator"];if(!n){if(a(t)||(n=c(t))){n&&(t=n);var i=0,s=function(){};return{s:s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,u=!0,p=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){p=!0,l=t},f:function(){try{u||null==n.return||n.return()}finally{if(p)throw l}}}}(this._defaults);try{for(s.s();!(e=s.n()).done;){var u=e.value;t[u.fn].apply(t,function(t){if(a(t))return l(t)}(n=u.args)||function(t){if(void 0!==r&&null!=o(t)||null!=t["@@iterator"])return i(t)}(n)||c(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}catch(t){s.e(t)}finally{s.f()}},t.exports=u},1766:function(t,e,n){"use strict";var r,o=n(5420),i=n(8341),a=n(9996),s=n(1511),c=n(3649),l=n(6419),u=n(5843),p=n(7766),f=n(1643),h=n(3032),d=n(4103);function v(t){return v="function"==typeof o&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t},v(t)}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}"undefined"!=typeof window?r=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),r=void 0):r=self;var g=n(8767),m=n(4445),b=n(2501),_=n(8842),w=n(6244),x=w.isObject,E=w.mixin,T=w.hasOwn,S=n(1253),k=n(2574);function O(){}t.exports=function(t,n){return"function"==typeof n?new e.Request("GET",t).end(n):1===arguments.length?new e.Request("GET",t):new e.Request(t,n)};var A=e=t.exports;e.Request=L,A.getXHR=function(){if(r.XMLHttpRequest&&(!r.location||"file:"!==r.location.protocol))return new XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};var C=u("")?function(t){return u(t).call(t)}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function I(t){if(!x(t))return t;var e=[];for(var n in t)T(t,n)&&N(e,n,t[n]);return e.join("&")}function N(t,e,n){if(void 0!==n)if(null!==n)if(s(n)){var r,i=function(t,e){var n=void 0!==o&&a(t)||t["@@iterator"];if(!n){if(s(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return y(t,e);var r=c(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?l(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,p=!0,f=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return p=t.done,t},e:function(t){f=!0,u=t},f:function(){try{p||null==n.return||n.return()}finally{if(f)throw u}}}}(n);try{for(i.s();!(r=i.n()).done;)N(t,e,r.value)}catch(t){i.e(t)}finally{i.f()}}else if(x(n))for(var u in n){var f;T(n,u)&&N(t,p(f="".concat(e,"[")).call(f,u,"]"),n[u])}else t.push(encodeURI(e)+"="+encodeURIComponent(n));else t.push(encodeURI(e))}function R(t){for(var e,n,r={},o=t.split("&"),i=0,a=o.length;i<a;++i)e=o[i],-1===(n=f(e).call(e,"="))?r[decodeURIComponent(e)]="":r[decodeURIComponent(c(e).call(e,0,n))]=decodeURIComponent(c(e).call(e,n+1));return r}function j(t){return/[/+]json($|[^-\w])/i.test(t)}function P(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,n,r,o,i=t.split(/\r?\n/),a={},s=0,l=i.length;s<l;++s)n=i[s],-1!==(e=f(n).call(n,":"))&&(r=c(n).call(n,0,e).toLowerCase(),o=C(c(n).call(n,e+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function L(t,e){var n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,r=null;try{r=new P(n)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,n.xhr?(e.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,e.status=n.xhr.status?n.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),n.callback(e)}n.emit("response",r);try{n._isResponseOK(r)||(t=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=r,t.status=t.status||r.status,n.callback(t,r)):n.callback(null,r)}))}A.serializeObject=I,A.parseString=R,A.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},A.serialize={"application/x-www-form-urlencoded":b.stringify,"application/json":m},A.parse={"application/x-www-form-urlencoded":R,"application/json":JSON.parse},E(P.prototype,S.prototype),P.prototype._parseBody=function(t){var e=A.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&j(this.type)&&(e=A.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},P.prototype.toError=function(){var t,e,n=this.req,r=n.method,o=n.url,i=p(t=p(e="cannot ".concat(r," ")).call(e,o," (")).call(t,this.status,")"),a=new Error(i);return a.status=this.status,a.method=r,a.url=o,a},A.Response=P,g(L.prototype),E(L.prototype,_.prototype),L.prototype.type=function(t){return this.set("Content-Type",A.types[t]||t),this},L.prototype.accept=function(t){return this.set("Accept",A.types[t]||t),this},L.prototype.auth=function(t,e,n){1===arguments.length&&(e=""),"object"===v(e)&&null!==e&&(n=e,e=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var r=n.encoder?n.encoder:function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,n,r)},L.prototype.query=function(t){return"string"!=typeof t&&(t=I(t)),t&&this._query.push(t),this},L.prototype.attach=function(t,e,n){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,n||e.name)}return this},L.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},L.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),n(t,e)},L.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},L.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},L.prototype.ca=L.prototype.agent,L.prototype.buffer=L.prototype.ca,L.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},L.prototype.pipe=L.prototype.write,L.prototype._isHost=function(t){return t&&"object"===v(t)&&!s(t)&&"[object Object]"!==Object.prototype.toString.call(t)},L.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||O,this._finalizeQueryString(),this._end()},L.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=h((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},L.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=A.getXHR();var e=this.xhr,n=this._formData||this._data;this._setTimeouts(),e.addEventListener("readystatechange",(function(){var n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}}));var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(t._uploadTimeoutTimer)),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.addEventListener("progress",d(r).call(r,null,"download")),e.upload&&e.upload.addEventListener("progress",d(r).call(r,null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||A.serialize[o?o.split(";")[0]:""];!i&&j(o)&&(i=A.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&T(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===n?null:n)},A.agent=function(){return new k};for(var D=function(){var t=M[U];k.prototype[t.toLowerCase()]=function(e,n){var r=new A.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}},U=0,M=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];U<M.length;U++)D();function $(t,e,n){var r=A("DELETE",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}k.prototype.del=k.prototype.delete,A.get=function(t,e,n){var r=A("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},A.head=function(t,e,n){var r=A("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},A.options=function(t,e,n){var r=A("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},A.del=$,A.delete=$,A.patch=function(t,e,n){var r=A("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},A.post=function(t,e,n){var r=A("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},A.put=function(t,e,n){var r=A("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},8842:function(t,e,n){"use strict";var r=n(5420),o=n(8341),i=n(6384),a=n(3476),s=n(1511),c=n(7766),l=n(5843),u=n(8580),p=n(1643),f=n(3649),h=n(7302),d=n(3032);function v(t){return v="function"==typeof r&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t},v(t)}var y=n(3695),g=n(6244),m=g.isObject,b=g.hasOwn;function _(){}t.exports=_,_.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},_.prototype.parse=function(t){return this._parser=t,this},_.prototype.responseType=function(t){return this._responseType=t,this},_.prototype.serialize=function(t){return this._serializer=t,this},_.prototype.timeout=function(t){if(!t||"object"!==v(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(b(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},_.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var w=new i(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),x=new i([408,413,429,500,502,503,504,521,522,524]);_.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(e&&e.status&&x.has(e.status))return!0;if(t){if(t.code&&w.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},_.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},_.prototype.then=function(t,e){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new a((function(t,e){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)e(n.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=n.status,t.method=n.method,t.url=n.url,e(t)}})),r.end((function(n,r){n?e(n):t(r)}))}))}return this._fullfilledPromise.then(t,e)},_.prototype.catch=function(t){return this.then(void 0,t)},_.prototype.use=function(t){return t(this),this},_.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},_.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},_.prototype.get=function(t){return this._header[t.toLowerCase()]},_.prototype.getHeader=_.prototype.get,_.prototype.set=function(t,e){if(m(t)){for(var n in t)b(t,n)&&this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},_.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},_.prototype.field=function(t,e,n){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(m(t)){for(var r in t)b(t,r)&&this.field(r,t[r]);return this}if(s(e)){for(var o in e)b(e,o)&&this.field(t,e[o]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),n?this._getFormData().append(t,e,n):this._getFormData().append(t,e),this},_.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(y.gte(process.version,"v13.0.0")&&y.lt(process.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");y.gte(process.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},_.prototype._auth=function(t,e,n,r){var o;switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r(c(o="".concat(t,":")).call(o,e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},_.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},_.prototype.redirects=function(t){return this._maxRedirects=t,this},_.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},_.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},_.prototype.send=function(t){var e=m(t),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)s(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&m(this._data))for(var r in t)b(t,r)&&(this._data[r]=t[r]);else if("string"==typeof t){var o,i;n||this.type("form"),(n=this._header["content-type"])&&(n=l(o=n.toLowerCase()).call(o)),this._data="application/x-www-form-urlencoded"===n?this._data?c(i="".concat(this._data,"&")).call(i,t):t:(this._data||"")+t}else this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},_.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},_.prototype._finalizeQueryString=function(){var t,e=this._query.join("&");if(e&&(this.url+=(u(t=this.url).call(t,"?")?"&":"?")+e),this._query.length=0,this._sort){var n,r=p(n=this.url).call(n,"?");if(r>=0){var o,i,a=f(o=this.url).call(o,r+1).split("&");"function"==typeof this._sort?h(a).call(a,this._sort):h(a).call(a),this.url=f(i=this.url).call(i,0,r)+"?"+a.join("&")}}},_.prototype._appendQueryString=function(){console.warn("Unsupported")},_.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error("".concat(t+e,"ms exceeded"));r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},_.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=d((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=d((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},1253:function(t,e,n){"use strict";var r=n(925),o=n(6244);function i(){}t.exports=i,i.prototype.get=function(t){return this.header[t.toLowerCase()]},i.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=o.type(e);var n=o.params(e);for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(this[r]=n[r]);this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},i.prototype._setStatusProperties=function(t){var e=r(t/100);this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},6244:function(t,e,n){"use strict";var r=n(5420),o=n(8341),i=n(9996),a=n(1511),s=n(3649),c=n(6419);function l(t){return l="function"==typeof r&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t},l(t)}function u(t,e){var n=void 0!==r&&i(t)||t["@@iterator"];if(!n){if(a(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return p(t,e);var r=s(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?c(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,l=function(){};return{s:l,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,f=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return f=t.done,t},e:function(t){h=!0,u=t},f:function(){try{f||null==n.return||n.return()}finally{if(h)throw u}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){var e,n={},r=u(t.split(/ *; */));try{for(r.s();!(e=r.n()).done;){var o=e.value.split(/ *= */),i=o.shift(),a=o.shift();i&&a&&(n[i]=a)}}catch(t){r.e(t)}finally{r.f()}return n},e.parseLinks=function(t){var e,n={},r=u(t.split(/ *, */));try{for(r.s();!(e=r.n()).done;){var o,i,a=e.value.split(/ *; */),c=s(o=a[0]).call(o,1,-1);n[s(i=a[1].split(/ *= */)[1]).call(i,1,-1)]=c}}catch(t){r.e(t)}finally{r.f()}return n},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t},e.isObject=function(t){return null!==t&&"object"===l(t)},e.hasOwn=Object.hasOwn||function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(t),e)},e.mixin=function(t,n){for(var r in n)e.hasOwn(n,r)&&(t[r]=n[r])}},3718:function(t){"use strict";var e=String.prototype.replace,n=/%20/g,r="RFC3986";t.exports={default:r,formatters:{RFC1738:function(t){return e.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:r}},2501:function(t,e,n){"use strict";var r=n(4383),o=n(4409),i=n(3718);t.exports={formats:i,parse:o,stringify:r}},4409:function(t,e,n){"use strict";var r=n(1511),o=n(4198),i=n(1643),a=n(3649),s=n(7766),c=n(4943),l=n(6902),u=n(4753),p=Object.prototype.hasOwnProperty,f=r,h={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:u.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},d=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(o(e,10))}))},v=function(t,e){return t&&"string"==typeof t&&e.comma&&i(t).call(t,",")>-1?t.split(","):t},y=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,l=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(i),f=u?a(i).call(i,0,u.index):i,h=[];if(f){if(!n.plainObjects&&p.call(Object.prototype,f)&&!n.allowPrototypes)return;h.push(f)}for(var d=0;n.depth>0&&null!==(u=l.exec(i))&&d<n.depth;){var y;if(d+=1,!n.plainObjects&&p.call(Object.prototype,a(y=u[1]).call(y,1,-1))&&!n.allowPrototypes)return;h.push(u[1])}return u&&h.push("["+a(i).call(i,u.index)+"]"),function(t,e,n,r){for(var i=r?e:v(e,n),l=t.length-1;l>=0;--l){var u,p=t[l];if("[]"===p&&n.parseArrays){var f;u=s(f=[]).call(f,i)}else{u=n.plainObjects?c(null):{};var h="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?a(p).call(p,1,-1):p,d=o(h,10);n.parseArrays||""!==h?!isNaN(d)&&p!==h&&String(d)===h&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(u=[])[d]=i:"__proto__"!==h&&(u[h]=i):u={0:i}}i=u}return i}(h,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return h;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?h.charset:t.charset;return{allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:h.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:h.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:h.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:h.comma,decoder:"function"==typeof t.decoder?t.decoder:h.decoder,delimiter:"string"==typeof t.delimiter||u.isRegExp(t.delimiter)?t.delimiter:h.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:h.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:h.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:h.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:h.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?c(null):{};for(var r="string"==typeof t?function(t,e){var n,r={},o=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,s=e.parameterLimit===1/0?void 0:e.parameterLimit,c=o.split(e.delimiter,s),l=-1,y=e.charset;if(e.charsetSentinel)for(n=0;n<c.length;++n){var g;0===i(g=c[n]).call(g,"utf8=")&&("utf8=%E2%9C%93"===c[n]?y="utf-8":"utf8=%26%2310003%3B"===c[n]&&(y="iso-8859-1"),l=n,n=c.length)}for(n=0;n<c.length;++n)if(n!==l){var m,b,_=c[n],w=i(_).call(_,"]="),x=-1===w?i(_).call(_,"="):w+1;-1===x?(m=e.decoder(_,h.decoder,y,"key"),b=e.strictNullHandling?null:""):(m=e.decoder(a(_).call(_,0,x),h.decoder,y,"key"),b=u.maybeMap(v(a(_).call(_,x+1),e),(function(t){return e.decoder(t,h.decoder,y,"value")}))),b&&e.interpretNumericEntities&&"iso-8859-1"===y&&(b=d(b)),i(_).call(_,"[]=")>-1&&(b=f(b)?[b]:b),p.call(r,m)?r[m]=u.combine(r[m],b):r[m]=b}return r}(t,n):t,o=n.plainObjects?c(null):{},s=l(r),g=0;g<s.length;++g){var m=s[g],b=y(m,r[m],n,"string"==typeof t);o=u.merge(o,b,n)}return!0===n.allowSparse?o:u.compact(o)}},4383:function(t,e,n){"use strict";var r=n(1511),o=n(6902),i=n(7302),a=n(116),s=n(7478),c=n(4753),l=n(3718),u=Object.prototype.hasOwnProperty,p={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},f=r,h=String.prototype.split,d=Array.prototype.push,v=function(t,e){d.apply(t,f(e)?e:[e])},y=Date.prototype.toISOString,g=l.default,m={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:c.encode,encodeValuesOnly:!1,format:g,formatter:l.formatters[g],indices:!1,serializeDate:function(t){return y.call(t)},skipNulls:!1,strictNullHandling:!1},b={},_=function t(e,n,r,a,l,u,p,d,y,g,_,w,x,E,T){for(var S,k=e,O=T,A=0,C=!1;void 0!==(O=O.get(b))&&!C;){var I=O.get(e);if(A+=1,void 0!==I){if(I===A)throw new RangeError("Cyclic object value");C=!0}void 0===O.get(b)&&(A=0)}if("function"==typeof p?k=p(n,k):k instanceof Date?k=g(k):"comma"===r&&f(k)&&(k=c.maybeMap(k,(function(t){return t instanceof Date?g(t):t}))),null===k){if(a)return u&&!x?u(n,m.encoder,E,"key",_):n;k=""}if("string"==typeof(S=k)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||c.isBuffer(k)){if(u){var N=x?n:u(n,m.encoder,E,"key",_);if("comma"===r&&x){for(var R=h.call(String(k),","),j="",P=0;P<R.length;++P)j+=(0===P?"":",")+w(u(R[P],m.encoder,E,"value",_));return[w(N)+(f(k)&&1===R.length?"[]":"")+"="+j]}return[w(N)+"="+w(u(k,m.encoder,E,"value",_))]}return[w(n)+"="+w(String(k))]}var L,D=[];if(void 0===k)return D;if("comma"===r&&f(k))L=[{value:k.length>0?k.join(",")||null:void 0}];else if(f(p))L=p;else{var U=o(k);L=d?i(U).call(U,d):U}for(var M="comma"===r&&f(k)&&1===k.length?n+"[]":n,$=0;$<L.length;++$){var z=L[$],F="object"==typeof z&&void 0!==z.value?z.value:k[z];if(!l||null!==F){var B=f(k)?"function"==typeof r?r(M,z):M:M+(y?"."+z:"["+z+"]");T.set(e,A);var H=s();H.set(b,T),v(D,t(F,B,r,a,l,u,p,d,y,g,_,w,x,E,H))}}return D};t.exports=function(t,e){var n,r=t,c=function(t){if(!t)return m;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||m.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=l.default;if(void 0!==t.format){if(!u.call(l.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=l.formatters[n],o=a(m);return("function"==typeof a(t)||f(a(t)))&&(o=a(t)),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:m.addQueryPrefix,allowDots:void 0===t.allowDots?m.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:m.charsetSentinel,delimiter:void 0===t.delimiter?m.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:m.encode,encoder:"function"==typeof t.encoder?t.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:m.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:m.skipNulls,sort:"function"==typeof i(t)?i(t):null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:m.strictNullHandling}}(e);"function"==typeof a(c)?r=a(c)("",r):f(a(c))&&(n=a(c));var h,d=[];if("object"!=typeof r||null===r)return"";h=e&&e.arrayFormat in p?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var y=p[h];n||(n=o(r)),i(c)&&i(n).call(n,i(c));for(var g=s(),b=0;b<n.length;++b){var w=n[b];c.skipNulls&&null===r[w]||v(d,_(r[w],w,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,a(c),i(c),c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var x=d.join(c.delimiter),E=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),x.length>0?E+x:""}},4753:function(t,e,n){"use strict";var r=n(1511),o=n(4943),i=n(7766),a=n(8914),s=n(2366),c=n(6902),l=n(5420),u=n(4198),p=n(3649),f=n(1643),h=n(3718),d=Object.prototype.hasOwnProperty,v=r,y=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),g=function(t,e){for(var n=e&&e.plainObjects?o(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:g,assign:function(t,e){var n;return s(n=c(e)).call(n,(function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){var n;return i(n=[]).call(n,t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],i=o.obj[o.prop],a=c(i),s=0;s<a.length;++s){var l=a[s],u=i[l];"object"==typeof u&&null!==u&&-1===f(n).call(n,u)&&(e.push({obj:i,prop:l}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(v(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,r,o){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=l.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+u(p(t).call(t,2),16)+"%3B"}));for(var a="",s=0;s<i.length;++s){var c=i.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===h.RFC1738&&(40===c||41===c)?a+=i.charAt(s):c<128?a+=y[c]:c<2048?a+=y[192|c>>6]+y[128|63&c]:c<55296||c>=57344?a+=y[224|c>>12]+y[128|c>>6&63]+y[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(s)),a+=y[240|c>>18]+y[128|c>>12&63]+y[128|c>>6&63]+y[128|63&c])}return a},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(v(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){var o,l;if(!n)return e;if("object"!=typeof n){if(v(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!d.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return i(l=[e]).call(l,n);var u=e;return v(e)&&!v(n)&&(u=g(e,r)),v(e)&&v(n)?(a(n).call(n,(function(n,o){if(d.call(e,o)){var i=e[o];i&&"object"==typeof i&&n&&"object"==typeof n?e[o]=t(i,n,r):e.push(n)}else e[o]=n})),e):s(o=c(n)).call(o,(function(e,o){var i=n[o];return d.call(e,o)?e[o]=t(e[o],i,r):e[o]=i,e}),u)}}},1905:function(t){t.exports=()=>()=>null},2698:function(t){t.exports=null},1924:function(t,e,n){"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&i(t,".prototype.")>-1?o(n):n}},5559:function(t,e,n){"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(t){l=null}t.exports=function(t){var e=s(r,a,arguments);if(c&&l){var n=c(e,"length");n.configurable&&l(e,"length",{value:1+u(0,t.length-(arguments.length-1))})}return e};var p=function(){return s(r,i,arguments)};l?l(t.exports,"apply",{value:p}):t.exports.apply=p},8767:function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<r.length;o++)if((n=r[o])===e||n.fn===e){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},6820:function(t,e,n){var r=n(6243);t.exports=r},93:function(t,e,n){var r=n(8196);t.exports=r},5684:function(t,e,n){var r=n(9373);t.exports=r},5362:function(t,e,n){var r=n(3383);t.exports=r},3536:function(t,e,n){var r=n(1910);t.exports=r},3151:function(t,e,n){var r=n(9534);t.exports=r},5012:function(t,e,n){var r=n(3059);t.exports=r},4493:function(t,e,n){n(7971),n(3242);var r=n(4058);t.exports=r.Array.from},4034:function(t,e,n){n(2737);var r=n(4058);t.exports=r.Array.isArray},5367:function(t,e,n){n(5906);var r=n(5703);t.exports=r("Array").concat},1459:function(t,e,n){n(8851);var r=n(5703);t.exports=r("Array").every},6172:function(t,e,n){n(290);var r=n(5703);t.exports=r("Array").fill},2383:function(t,e,n){n(1501);var r=n(5703);t.exports=r("Array").filter},9:function(t,e,n){n(4929);var r=n(5703);t.exports=r("Array").findIndex},7671:function(t,e,n){n(833);var r=n(5703);t.exports=r("Array").find},4373:function(t,e,n){n(4944),n(1107);var r=n(5703);t.exports=r("Array").flat},9324:function(t,e,n){n(2437);var r=n(5703);t.exports=r("Array").forEach},991:function(t,e,n){n(7690);var r=n(5703);t.exports=r("Array").includes},8700:function(t,e,n){n(9076);var r=n(5703);t.exports=r("Array").indexOf},3866:function(t,e,n){n(8787);var r=n(5703);t.exports=r("Array").map},2999:function(t,e,n){n(1876);var r=n(5703);t.exports=r("Array").reduce},5573:function(t,e,n){n(1490);var r=n(5703);t.exports=r("Array").reverse},4900:function(t,e,n){n(186);var r=n(5703);t.exports=r("Array").slice},3824:function(t,e,n){n(6026);var r=n(5703);t.exports=r("Array").some},2948:function(t,e,n){n(4115);var r=n(5703);t.exports=r("Array").sort},1103:function(t,e,n){n(5160);var r=n(4058);t.exports=r.Date.now},7700:function(t,e,n){n(3381);var r=n(5703);t.exports=r("Function").bind},3830:function(t,e,n){n(6274),n(7971);var r=n(2902);t.exports=r},6246:function(t,e,n){var r=n(7046),o=n(7700),i=Function.prototype;t.exports=function(t){var e=t.bind;return t===i||r(i,t)&&e===i.bind?o:e}},6043:function(t,e,n){var r=n(7046),o=n(5367),i=Array.prototype;t.exports=function(t){var e=t.concat;return t===i||r(i,t)&&e===i.concat?o:e}},3160:function(t,e,n){var r=n(7046),o=n(1459),i=Array.prototype;t.exports=function(t){var e=t.every;return t===i||r(i,t)&&e===i.every?o:e}},446:function(t,e,n){var r=n(7046),o=n(6172),i=Array.prototype;t.exports=function(t){var e=t.fill;return t===i||r(i,t)&&e===i.fill?o:e}},2480:function(t,e,n){var r=n(7046),o=n(2383),i=Array.prototype;t.exports=function(t){var e=t.filter;return t===i||r(i,t)&&e===i.filter?o:e}},7147:function(t,e,n){var r=n(7046),o=n(9),i=Array.prototype;t.exports=function(t){var e=t.findIndex;return t===i||r(i,t)&&e===i.findIndex?o:e}},2236:function(t,e,n){var r=n(7046),o=n(7671),i=Array.prototype;t.exports=function(t){var e=t.find;return t===i||r(i,t)&&e===i.find?o:e}},8098:function(t,e,n){var r=n(7046),o=n(4373),i=Array.prototype;t.exports=function(t){var e=t.flat;return t===i||r(i,t)&&e===i.flat?o:e}},8557:function(t,e,n){var r=n(7046),o=n(991),i=n(1631),a=Array.prototype,s=String.prototype;t.exports=function(t){var e=t.includes;return t===a||r(a,t)&&e===a.includes?o:"string"==typeof t||t===s||r(s,t)&&e===s.includes?i:e}},4570:function(t,e,n){var r=n(7046),o=n(8700),i=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===i||r(i,t)&&e===i.indexOf?o:e}},8287:function(t,e,n){var r=n(7046),o=n(3866),i=Array.prototype;t.exports=function(t){var e=t.map;return t===i||r(i,t)&&e===i.map?o:e}},8025:function(t,e,n){var r=n(7046),o=n(2999),i=Array.prototype;t.exports=function(t){var e=t.reduce;return t===i||r(i,t)&&e===i.reduce?o:e}},1060:function(t,e,n){var r=n(7046),o=n(5573),i=Array.prototype;t.exports=function(t){var e=t.reverse;return t===i||r(i,t)&&e===i.reverse?o:e}},9601:function(t,e,n){var r=n(7046),o=n(4900),i=Array.prototype;t.exports=function(t){var e=t.slice;return t===i||r(i,t)&&e===i.slice?o:e}},8299:function(t,e,n){var r=n(7046),o=n(3824),i=Array.prototype;t.exports=function(t){var e=t.some;return t===i||r(i,t)&&e===i.some?o:e}},9355:function(t,e,n){var r=n(7046),o=n(2948),i=Array.prototype;t.exports=function(t){var e=t.sort;return t===i||r(i,t)&&e===i.sort?o:e}},2774:function(t,e,n){var r=n(7046),o=n(3348),i=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===i||r(i,t)&&e===i.trim?o:e}},4426:function(t,e,n){n(2619);var r=n(4058),o=n(9730);r.JSON||(r.JSON={stringify:JSON.stringify}),t.exports=function(t,e,n){return o(r.JSON.stringify,null,arguments)}},9179:function(t,e,n){n(8103);var r=n(4058);t.exports=r.Math.trunc},5999:function(t,e,n){n(9221);var r=n(4058);t.exports=r.Object.assign},5254:function(t,e,n){n(3882);var r=n(4058).Object;t.exports=function(t,e){return r.create(t,e)}},7702:function(t,e,n){n(4979);var r=n(4058).Object,o=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(o.sham=!0)},8171:function(t,e,n){n(6450);var r=n(4058).Object,o=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(o.sham=!0)},3081:function(t,e,n){n(1078);var r=n(4058);t.exports=r.Object.entries},286:function(t,e,n){n(6924);var r=n(4058).Object,o=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(o.sham=!0)},2766:function(t,e,n){n(8482);var r=n(4058);t.exports=r.Object.getOwnPropertyDescriptors},3288:function(t,e,n){n(9816);var r=n(4058).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},498:function(t,e,n){n(5824);var r=n(4058);t.exports=r.Object.getOwnPropertySymbols},3966:function(t,e,n){n(7405);var r=n(4058);t.exports=r.Object.getPrototypeOf},8494:function(t,e,n){n(1724);var r=n(4058);t.exports=r.Object.keys},8430:function(t,e,n){n(6614);var r=n(4058);t.exports=r.Object.values},7579:function(t,e,n){n(9718);var r=n(4058);t.exports=r.parseFloat},8524:function(t,e,n){n(4038);var r=n(4058);t.exports=r.parseInt},2956:function(t,e,n){n(7627),n(6274),n(5967),n(8881),n(4560),n(7206),n(4349),n(7971);var r=n(4058);t.exports=r.Promise},6998:function(t,e,n){n(6274),n(5967),n(9008),n(7971);var r=n(4058);t.exports=r.Set},1631:function(t,e,n){n(1035);var r=n(5703);t.exports=r("String").includes},3348:function(t,e,n){n(7398);var r=n(5703);t.exports=r("String").trim},7473:function(t,e,n){n(5906),n(5967),n(5824),n(8555),n(2615),n(1732),n(5903),n(1825),n(8394),n(5915),n(1437),n(9791),n(9911),n(4315),n(3131),n(4714),n(659),n(9120),n(5327),n(1502);var r=n(4058);t.exports=r.Symbol},4227:function(t,e,n){n(6274),n(5967),n(7971),n(1825);var r=n(1477);t.exports=r.f("iterator")},2209:function(t,e,n){t.exports=n(478)},4122:function(t,e,n){t.exports=n(9097)},9447:function(t,e,n){t.exports=n(628)},269:function(t,e,n){t.exports=n(6936)},3685:function(t,e,n){t.exports=n(621)},4710:function(t,e,n){t.exports=n(4904)},3799:function(t,e,n){t.exports=n(2093)},478:function(t,e,n){var r=n(6820);t.exports=r},9097:function(t,e,n){var r=n(93);t.exports=r},628:function(t,e,n){var r=n(5684);t.exports=r},6936:function(t,e,n){var r=n(5362);t.exports=r},621:function(t,e,n){var r=n(3536);t.exports=r},4904:function(t,e,n){var r=n(3151);t.exports=r},2093:function(t,e,n){var r=n(5012);t.exports=r},4883:function(t,e,n){var r=n(7475),o=n(9826),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},174:function(t,e,n){var r=n(4284),o=n(9826),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a constructor")}},1851:function(t,e,n){var r=n(7475),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},8479:function(t){t.exports=function(){}},5743:function(t,e,n){var r=n(7046),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw o("Incorrect invocation")}},6059:function(t,e,n){var r=n(941),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},7135:function(t,e,n){var r=n(5981);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},1860:function(t,e,n){"use strict";var r=n(9678),o=n(9413),i=n(623);t.exports=function(t){for(var e=r(this),n=i(e),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);l>s;)e[s++]=t;return e}},6837:function(t,e,n){"use strict";var r=n(3610).forEach,o=n(4194)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},1354:function(t,e,n){"use strict";var r=n(6843),o=n(8834),i=n(9678),a=n(5196),s=n(6782),c=n(4284),l=n(623),u=n(5449),p=n(429),f=n(2902),h=Array;t.exports=function(t){var e=i(t),n=c(this),d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v;y&&(v=r(v,d>2?arguments[2]:void 0));var g,m,b,_,w,x,E=f(e),T=0;if(!E||this===h&&s(E))for(g=l(e),m=n?new this(g):h(g);g>T;T++)x=y?v(e[T],T):e[T],u(m,T,x);else for(w=(_=p(e,E)).next,m=n?new this:[];!(b=o(w,_)).done;T++)x=y?a(_,v,[b.value,T],!0):b.value,u(m,T,x);return m.length=T,m}},1692:function(t,e,n){var r=n(4529),o=n(9413),i=n(623),a=function(t){return function(e,n,a){var s,c=r(e),l=i(c),u=o(a,l);if(t&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3610:function(t,e,n){var r=n(6843),o=n(5329),i=n(7026),a=n(9678),s=n(623),c=n(4692),l=o([].push),u=function(t){var e=1==t,n=2==t,o=3==t,u=4==t,p=6==t,f=7==t,h=5==t||p;return function(d,v,y,g){for(var m,b,_=a(d),w=i(_),x=r(v,y),E=s(w),T=0,S=g||c,k=e?S(d,E):n||f?S(d,0):void 0;E>T;T++)if((h||T in w)&&(b=x(m=w[T],T,_),t))if(e)k[T]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return T;case 2:l(k,m)}else switch(t){case 4:return!1;case 7:l(k,m)}return p?-1:o||u?u:k}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},568:function(t,e,n){var r=n(5981),o=n(9813),i=n(3385),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},4194:function(t,e,n){"use strict";var r=n(5981);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},6499:function(t,e,n){var r=n(4883),o=n(9678),i=n(7026),a=n(623),s=TypeError,c=function(t){return function(e,n,c,l){r(n);var u=o(e),p=i(u),f=a(u),h=t?f-1:0,d=t?-1:1;if(c<2)for(;;){if(h in p){l=p[h],h+=d;break}if(h+=d,t?h<0:f<=h)throw s("Reduce of empty array with no initial value")}for(;t?h>=0:f>h;h+=d)h in p&&(l=n(l,p[h],h,u));return l}};t.exports={left:c(!1),right:c(!0)}},5790:function(t,e,n){var r=n(9413),o=n(623),i=n(5449),a=Array,s=Math.max;t.exports=function(t,e,n){for(var c=o(t),l=r(e,c),u=r(void 0===n?c:n,c),p=a(s(u-l,0)),f=0;l<u;l++,f++)i(p,f,t[l]);return p.length=f,p}},3765:function(t,e,n){var r=n(5329);t.exports=r([].slice)},1388:function(t,e,n){var r=n(5790),o=Math.floor,i=function(t,e){var n=t.length,c=o(n/2);return n<8?a(t,e):s(t,i(r(t,0,c),e),i(r(t,c),e),e)},a=function(t,e){for(var n,r,o=t.length,i=1;i<o;){for(r=i,n=t[i];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var o=e.length,i=n.length,a=0,s=0;a<o||s<i;)t[a+s]=a<o&&s<i?r(e[a],n[s])<=0?e[a++]:n[s++]:a<o?e[a++]:n[s++];return t};t.exports=i},5693:function(t,e,n){var r=n(1052),o=n(4284),i=n(941),a=n(9813)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===s||r(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},4692:function(t,e,n){var r=n(5693);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},5196:function(t,e,n){var r=n(6059),o=n(7609);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},1385:function(t,e,n){var r=n(9813)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},2532:function(t,e,n){var r=n(5329),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},9697:function(t,e,n){var r=n(2885),o=n(7475),i=n(2532),a=n(9813)("toStringTag"),s=Object,c="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:c?i(e):"Object"==(r=i(e))&&o(e.callee)?"Arguments":r}},8694:function(t,e,n){var r=n(5329),o=Error,i=r("".replace),a=String(o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,s,"");return t}},5616:function(t,e,n){"use strict";var r=n(5988).f,o=n(9290),i=n(4380),a=n(6843),s=n(5743),c=n(3091),l=n(7771),u=n(4431),p=n(5746),f=n(1647).fastKey,h=n(5402),d=h.set,v=h.getterFor;t.exports={getConstructor:function(t,e,n,l){var u=t((function(t,r){s(t,h),d(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),p||(t.size=0),null!=r&&c(r,t[l],{that:t,AS_ENTRIES:n})})),h=u.prototype,y=v(e),g=function(t,e,n){var r,o,i=y(t),a=m(t,e);return a?a.value=n:(i.last=a={index:o=f(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},m=function(t,e){var n,r=y(t),o=f(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(h,{clear:function(){for(var t=y(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,p?t.size=0:this.size=0},delete:function(t){var e=this,n=y(e),r=m(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),p?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=y(this),r=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),i(h,n?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),p&&r(h,"size",{get:function(){return y(this).size}}),u},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);l(t,e,(function(t,e){d(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(e)}}},4683:function(t,e,n){"use strict";var r=n(6887),o=n(1899),i=n(1647),a=n(5981),s=n(2029),c=n(3091),l=n(5743),u=n(7475),p=n(941),f=n(904),h=n(5988).f,d=n(3610).forEach,v=n(5746),y=n(5402),g=y.set,m=y.getterFor;t.exports=function(t,e,n){var y,b=-1!==t.indexOf("Map"),_=-1!==t.indexOf("Weak"),w=b?"set":"add",x=o[t],E=x&&x.prototype,T={};if(v&&u(x)&&(_||E.forEach&&!a((function(){(new x).entries().next()})))){var S=(y=e((function(e,n){g(l(e,S),{type:t,collection:new x}),null!=n&&c(n,e[w],{that:e,AS_ENTRIES:b})}))).prototype,k=m(t);d(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in E)||_&&"clear"==t||s(S,t,(function(n,r){var o=k(this).collection;if(!e&&_&&!p(n))return"get"==t&&void 0;var i=o[t](0===n?0:n,r);return e?this:i}))})),_||h(S,"size",{configurable:!0,get:function(){return k(this).collection.size}})}else y=n.getConstructor(e,t,b,w),i.enable();return f(y,t,!1,!0),T[t]=y,r({global:!0,forced:!0},T),_||n.setStrong(y,t,b),y}},3489:function(t,e,n){var r=n(953),o=n(1136),i=n(9677),a=n(5988);t.exports=function(t,e,n){for(var s=o(e),c=a.f,l=i.f,u=0;u<s.length;u++){var p=s[u];r(t,p)||n&&r(n,p)||c(t,p,l(e,p))}}},7772:function(t,e,n){var r=n(9813)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},4160:function(t,e,n){var r=n(5981);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},1046:function(t,e,n){"use strict";var r=n(5143).IteratorPrototype,o=n(9290),i=n(1887),a=n(904),s=n(2077),c=function(){return this};t.exports=function(t,e,n,l){var u=e+" Iterator";return t.prototype=o(r,{next:i(+!l,n)}),a(t,u,!1,!0),s[u]=c,t}},2029:function(t,e,n){var r=n(5746),o=n(5988),i=n(1887);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},1887:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5449:function(t,e,n){"use strict";var r=n(3894),o=n(5988),i=n(1887);t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},5929:function(t,e,n){var r=n(2029);t.exports=function(t,e,n,o){return o&&o.enumerable?t[e]=n:r(t,e,n),t}},4380:function(t,e,n){var r=n(5929);t.exports=function(t,e,n){for(var o in e)n&&n.unsafe&&t[o]?t[o]=e[o]:r(t,o,e[o],n);return t}},5609:function(t,e,n){var r=n(1899),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},7771:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(2529),a=n(9417),s=n(7475),c=n(1046),l=n(249),u=n(8929),p=n(904),f=n(2029),h=n(5929),d=n(9813),v=n(2077),y=n(5143),g=a.PROPER,m=a.CONFIGURABLE,b=y.IteratorPrototype,_=y.BUGGY_SAFARI_ITERATORS,w=d("iterator"),x="keys",E="values",T="entries",S=function(){return this};t.exports=function(t,e,n,a,d,y,k){c(n,e,a);var O,A,C,I=function(t){if(t===d&&L)return L;if(!_&&t in j)return j[t];switch(t){case x:case E:case T:return function(){return new n(this,t)}}return function(){return new n(this)}},N=e+" Iterator",R=!1,j=t.prototype,P=j[w]||j["@@iterator"]||d&&j[d],L=!_&&P||I(d),D="Array"==e&&j.entries||P;if(D&&(O=l(D.call(new t)))!==Object.prototype&&O.next&&(i||l(O)===b||(u?u(O,b):s(O[w])||h(O,w,S)),p(O,N,!0,!0),i&&(v[N]=S)),g&&d==E&&P&&P.name!==E&&(!i&&m?f(j,"name",E):(R=!0,L=function(){return o(P,this)})),d)if(A={values:I(E),keys:y?L:I(x),entries:I(T)},k)for(C in A)(_||R||!(C in j))&&h(j,C,A[C]);else r({target:e,proto:!0,forced:_||R},A);return i&&!k||j[w]===L||h(j,w,L,{name:d}),v[e]=L,A}},6349:function(t,e,n){var r=n(4058),o=n(953),i=n(1477),a=n(5988).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},5863:function(t,e,n){"use strict";var r=n(9826),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw o("Cannot delete property "+r(e)+" of "+r(t))}},5746:function(t,e,n){var r=n(5981);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},1333:function(t,e,n){var r=n(1899),o=n(941),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},6796:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},3281:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},4342:function(t,e,n){var r=n(2861).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},3321:function(t){t.exports="object"==typeof window&&"object"!=typeof Deno},7797:function(t,e,n){var r=n(2861);t.exports=/MSIE|Trident/.test(r)},4470:function(t,e,n){var r=n(2861),o=n(1899);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},2749:function(t,e,n){var r=n(2861);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},6049:function(t,e,n){var r=n(2532),o=n(1899);t.exports="process"==r(o.process)},8045:function(t,e,n){var r=n(2861);t.exports=/web0s(?!.*chrome)/i.test(r)},2861:function(t,e,n){var r=n(626);t.exports=r("navigator","userAgent")||""},3385:function(t,e,n){var r,o,i=n(1899),a=n(2861),s=i.process,c=i.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(o=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},8938:function(t,e,n){var r=n(2861).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},5703:function(t,e,n){var r=n(4058);t.exports=function(t){return r[t+"Prototype"]}},6759:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8780:function(t,e,n){var r=n(5981),o=n(1887);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},6887:function(t,e,n){"use strict";var r=n(1899),o=n(9730),i=n(5329),a=n(7475),s=n(9677).f,c=n(7252),l=n(4058),u=n(6843),p=n(2029),f=n(953),h=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,o,d,v,y,g,m,b,_=t.target,w=t.global,x=t.stat,E=t.proto,T=w?r:x?r[_]:(r[_]||{}).prototype,S=w?l:l[_]||p(l,_,{})[_],k=S.prototype;for(d in e)n=!c(w?d:_+(x?".":"#")+d,t.forced)&&T&&f(T,d),y=S[d],n&&(g=t.dontCallGetSet?(b=s(T,d))&&b.value:T[d]),v=n&&g?g:e[d],n&&typeof y==typeof v||(m=t.bind&&n?u(v,r):t.wrap&&n?h(v):E&&a(v)?i(v):v,(t.sham||v&&v.sham||y&&y.sham)&&p(m,"sham",!0),p(S,d,m),E&&(f(l,o=_+"Prototype")||p(l,o,{}),p(l[o],d,v),t.real&&k&&!k[d]&&p(k,d,v)))}},5981:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},3092:function(t,e,n){"use strict";var r=n(1052),o=n(623),i=n(6796),a=n(6843),s=function(t,e,n,c,l,u,p,f){for(var h,d,v=l,y=0,g=!!p&&a(p,f);y<c;)y in n&&(h=g?g(n[y],y,e):n[y],u>0&&r(h)?(d=o(h),v=s(t,e,h,d,v,u-1)-1):(i(v+1),t[v]=h),v++),y++;return v};t.exports=s},5602:function(t,e,n){var r=n(5981);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9730:function(t,e,n){var r=n(8285),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},6843:function(t,e,n){var r=n(5329),o=n(4883),i=n(8285),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},8285:function(t,e,n){var r=n(5981);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8308:function(t,e,n){"use strict";var r=n(5329),o=n(4883),i=n(941),a=n(953),s=n(3765),c=n(8285),l=Function,u=r([].concat),p=r([].join),f={},h=function(t,e,n){if(!a(f,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";f[e]=l("C,a","return new C("+p(r,",")+")")}return f[e](t,n)};t.exports=c?l.bind:function(t){var e=o(this),n=e.prototype,r=s(arguments,1),a=function(){var n=u(r,s(arguments));return this instanceof a?h(e,n.length,n):e.apply(t,n)};return i(n)&&(a.prototype=n),a}},8834:function(t,e,n){var r=n(8285),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},9417:function(t,e,n){var r=n(5746),o=n(953),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,l=s&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},5329:function(t,e,n){var r=n(8285),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},626:function(t,e,n){var r=n(4058),o=n(1899),i=n(7475),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t])||a(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},2902:function(t,e,n){var r=n(9697),o=n(4229),i=n(2077),a=n(9813)("iterator");t.exports=function(t){if(null!=t)return o(t,a)||o(t,"@@iterator")||i[r(t)]}},429:function(t,e,n){var r=n(8834),o=n(4883),i=n(6059),a=n(9826),s=n(2902),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(o(n))return i(r(n,t));throw c(a(t)+" is not iterable")}},4229:function(t,e,n){var r=n(4883);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},1899:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},953:function(t,e,n){var r=n(5329),o=n(9678),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},7748:function(t){t.exports={}},4845:function(t,e,n){var r=n(1899);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},5463:function(t,e,n){var r=n(626);t.exports=r("document","documentElement")},2840:function(t,e,n){var r=n(5746),o=n(5981),i=n(1333);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7026:function(t,e,n){var r=n(5329),o=n(5981),i=n(2532),a=Object,s=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?s(t,""):a(t)}:a},1302:function(t,e,n){var r=n(5329),o=n(7475),i=n(3030),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},3794:function(t,e,n){var r=n(941),o=n(2029);t.exports=function(t,e){r(e)&&"cause"in e&&o(t,"cause",e.cause)}},1647:function(t,e,n){var r=n(6887),o=n(5329),i=n(7748),a=n(941),s=n(953),c=n(5988).f,l=n(946),u=n(684),p=n(1584),f=n(9418),h=n(5602),d=!1,v=f("meta"),y=0,g=function(t){c(t,v,{value:{objectID:"O"+y++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},d=!0;var t=l.f,e=o([].splice),n={};n[v]=1,t(n).length&&(l.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===v){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,v)){if(!p(t))return"F";if(!e)return"E";g(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!p(t))return!0;if(!e)return!1;g(t)}return t[v].weakData},onFreeze:function(t){return h&&d&&p(t)&&!s(t,v)&&g(t),t}};i[v]=!0},5402:function(t,e,n){var r,o,i,a=n(8019),s=n(1899),c=n(5329),l=n(941),u=n(2029),p=n(953),f=n(3030),h=n(4262),d=n(7748),v="Object already initialized",y=s.TypeError,g=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new g),b=c(m.get),_=c(m.has),w=c(m.set);r=function(t,e){if(_(m,t))throw new y(v);return e.facade=t,w(m,t,e),e},o=function(t){return b(m,t)||{}},i=function(t){return _(m,t)}}else{var x=h("state");d[x]=!0,r=function(t,e){if(p(t,x))throw new y(v);return e.facade=t,u(t,x,e),e},o=function(t){return p(t,x)?t[x]:{}},i=function(t){return p(t,x)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return n}}}},6782:function(t,e,n){var r=n(9813),o=n(2077),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},1052:function(t,e,n){var r=n(2532);t.exports=Array.isArray||function(t){return"Array"==r(t)}},7475:function(t){t.exports=function(t){return"function"==typeof t}},4284:function(t,e,n){var r=n(5329),o=n(5981),i=n(7475),a=n(9697),s=n(626),c=n(1302),l=function(){},u=[],p=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=r(f.exec),d=!f.exec(l),v=function(t){if(!i(t))return!1;try{return p(l,u,t),!0}catch(t){return!1}},y=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(f,c(t))}catch(t){return!0}};y.sham=!0,t.exports=!p||o((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?y:v},7252:function(t,e,n){var r=n(5981),o=n(7475),i=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==u||n!=l&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},941:function(t,e,n){var r=n(7475);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},2529:function(t){t.exports=!0},685:function(t,e,n){var r=n(941),o=n(2532),i=n(9813)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},6664:function(t,e,n){var r=n(626),o=n(7475),i=n(7046),a=n(2302),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},3091:function(t,e,n){var r=n(6843),o=n(8834),i=n(6059),a=n(9826),s=n(6782),c=n(623),l=n(7046),u=n(429),p=n(2902),f=n(7609),h=TypeError,d=function(t,e){this.stopped=t,this.result=e},v=d.prototype;t.exports=function(t,e,n){var y,g,m,b,_,w,x,E=n&&n.that,T=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),O=r(e,E),A=function(t){return y&&f(y,"normal",t),new d(!0,t)},C=function(t){return T?(i(t),k?O(t[0],t[1],A):O(t[0],t[1])):k?O(t,A):O(t)};if(S)y=t;else{if(!(g=p(t)))throw h(a(t)+" is not iterable");if(s(g)){for(m=0,b=c(t);b>m;m++)if((_=C(t[m]))&&l(v,_))return _;return new d(!1)}y=u(t,g)}for(w=y.next;!(x=o(w,y)).done;){try{_=C(x.value)}catch(t){f(y,"throw",t)}if("object"==typeof _&&_&&l(v,_))return _}return new d(!1)}},7609:function(t,e,n){var r=n(8834),o=n(6059),i=n(4229);t.exports=function(t,e,n){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return o(a),n}},5143:function(t,e,n){"use strict";var r,o,i,a=n(5981),s=n(7475),c=n(9290),l=n(249),u=n(5929),p=n(9813),f=n(2529),h=p("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):d=!0),null==r||a((function(){var t={};return r[h].call(t)!==t}))?r={}:f&&(r=c(r)),s(r[h])||u(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},2077:function(t){t.exports={}},623:function(t,e,n){var r=n(3057);t.exports=function(t){return r(t.length)}},5331:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},6132:function(t,e,n){var r,o,i,a,s,c,l,u,p=n(1899),f=n(6843),h=n(9677).f,d=n(2941).set,v=n(2749),y=n(4470),g=n(8045),m=n(6049),b=p.MutationObserver||p.WebKitMutationObserver,_=p.document,w=p.process,x=p.Promise,E=h(p,"queueMicrotask"),T=E&&E.value;T||(r=function(){var t,e;for(m&&(t=w.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},v||m||g||!b||!_?!y&&x&&x.resolve?((l=x.resolve(void 0)).constructor=x,u=f(l.then,l),a=function(){u(r)}):m?a=function(){w.nextTick(r)}:(d=f(d,p),a=function(){d(r)}):(s=!0,c=_.createTextNode(""),new b(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),t.exports=T||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},5366:function(t,e,n){var r=n(2497);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},2497:function(t,e,n){var r=n(3385),o=n(5981);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8019:function(t,e,n){var r=n(1899),o=n(7475),i=n(1302),a=r.WeakMap;t.exports=o(a)&&/native code/.test(i(a))},9520:function(t,e,n){"use strict";var r=n(4883),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},4649:function(t,e,n){var r=n(5803);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},344:function(t,e,n){var r=n(685),o=TypeError;t.exports=function(t){if(r(t))throw o("The method doesn't accept regular expressions");return t}},4018:function(t,e,n){var r=n(1899),o=n(5981),i=n(5329),a=n(5803),s=n(4853).trim,c=n(3483),l=i("".charAt),u=r.parseFloat,p=r.Symbol,f=p&&p.iterator,h=1/u(c+"-0")!=-1/0||f&&!o((function(){u(Object(f))}));t.exports=h?function(t){var e=s(a(t)),n=u(e);return 0===n&&"-"==l(e,0)?-0:n}:u},9806:function(t,e,n){var r=n(1899),o=n(5981),i=n(5329),a=n(5803),s=n(4853).trim,c=n(3483),l=r.parseInt,u=r.Symbol,p=u&&u.iterator,f=/^[+-]?0x/i,h=i(f.exec),d=8!==l(c+"08")||22!==l(c+"0x16")||p&&!o((function(){l(Object(p))}));t.exports=d?function(t,e){var n=s(a(t));return l(n,e>>>0||(h(f,n)?16:10))}:l},4420:function(t,e,n){"use strict";var r=n(5746),o=n(5329),i=n(8834),a=n(5981),s=n(4771),c=n(7857),l=n(6760),u=n(9678),p=n(7026),f=Object.assign,h=Object.defineProperty,d=o([].concat);t.exports=!f||a((function(){if(r&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||s(f({},e)).join("")!=o}))?function(t,e){for(var n=u(t),o=arguments.length,a=1,f=c.f,h=l.f;o>a;)for(var v,y=p(arguments[a++]),g=f?d(s(y),f(y)):s(y),m=g.length,b=0;m>b;)v=g[b++],r&&!i(h,y,v)||(n[v]=y[v]);return n}:f},9290:function(t,e,n){var r,o=n(6059),i=n(9938),a=n(6759),s=n(7748),c=n(5463),l=n(1333),u=n(4262)("IE_PROTO"),p=function(){},f=function(t){return"<script>"+t+"<\/script>"},h=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;d="undefined"!=typeof document?document.domain&&r?h(r):((e=l("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):h(r);for(var n=a.length;n--;)delete d.prototype[a[n]];return d()};s[u]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[u]=t):n=d(),void 0===e?n:i.f(n,e)}},9938:function(t,e,n){var r=n(5746),o=n(3937),i=n(5988),a=n(6059),s=n(4529),c=n(4771);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),o=c(e),l=o.length,u=0;l>u;)i.f(t,n=o[u++],r[n]);return t}},5988:function(t,e,n){var r=n(5746),o=n(2840),i=n(3937),a=n(6059),s=n(3894),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor;e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=u(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},9677:function(t,e,n){var r=n(5746),o=n(8834),i=n(6760),a=n(1887),s=n(4529),c=n(3894),l=n(953),u=n(2840),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=s(t),e=c(e),u)try{return p(t,e)}catch(t){}if(l(t,e))return a(!o(i.f,t,e),t[e])}},684:function(t,e,n){var r=n(2532),o=n(4529),i=n(946).f,a=n(5790),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(o(t))}},946:function(t,e,n){var r=n(5629),o=n(6759).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},7857:function(t,e){e.f=Object.getOwnPropertySymbols},249:function(t,e,n){var r=n(953),o=n(7475),i=n(9678),a=n(4262),s=n(4160),c=a("IE_PROTO"),l=Object,u=l.prototype;t.exports=s?l.getPrototypeOf:function(t){var e=i(t);if(r(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof l?u:null}},1584:function(t,e,n){var r=n(5981),o=n(941),i=n(2532),a=n(7135),s=Object.isExtensible,c=r((function(){s(1)}));t.exports=c||a?function(t){return!!o(t)&&(!a||"ArrayBuffer"!=i(t))&&(!s||s(t))}:s},7046:function(t,e,n){var r=n(5329);t.exports=r({}.isPrototypeOf)},5629:function(t,e,n){var r=n(5329),o=n(953),i=n(4529),a=n(1692).indexOf,s=n(7748),c=r([].push);t.exports=function(t,e){var n,r=i(t),l=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&c(u,n);for(;e.length>l;)o(r,n=e[l++])&&(~a(u,n)||c(u,n));return u}},4771:function(t,e,n){var r=n(5629),o=n(6759);t.exports=Object.keys||function(t){return r(t,o)}},6760:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},8929:function(t,e,n){var r=n(5329),o=n(6059),i=n(1851);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},8810:function(t,e,n){var r=n(5746),o=n(5329),i=n(4771),a=n(4529),s=o(n(6760).f),c=o([].push),l=function(t){return function(e){for(var n,o=a(e),l=i(o),u=l.length,p=0,f=[];u>p;)n=l[p++],r&&!s(o,n)||c(f,t?[n,o[n]]:o[n]);return f}};t.exports={entries:l(!0),values:l(!1)}},5623:function(t,e,n){"use strict";var r=n(2885),o=n(9697);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},9811:function(t,e,n){var r=n(8834),o=n(7475),i=n(941),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},1136:function(t,e,n){var r=n(626),o=n(5329),i=n(946),a=n(7857),s=n(6059),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?c(e,n(t)):e}},4058:function(t){t.exports={}},2:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},7742:function(t,e,n){var r=n(1899),o=n(6991),i=n(7475),a=n(7252),s=n(1302),c=n(9813),l=n(3321),u=n(2529),p=n(3385),f=o&&o.prototype,h=c("species"),d=!1,v=i(r.PromiseRejectionEvent),y=a("Promise",(function(){var t=s(o),e=t!==String(o);if(!e&&66===p)return!0;if(u&&(!f.catch||!f.finally))return!0;if(p>=51&&/native code/.test(t))return!1;var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[h]=r,!(d=n.then((function(){}))instanceof r)||!e&&l&&!v}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:d}},6991:function(t,e,n){var r=n(1899);t.exports=r.Promise},6584:function(t,e,n){var r=n(6059),o=n(941),i=n(9520);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},1542:function(t,e,n){var r=n(6991),o=n(1385),i=n(7742).CONSTRUCTOR;t.exports=i||!o((function(t){r.all(t).then(void 0,(function(){}))}))},8397:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},8219:function(t){var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},7620:function(t,e,n){var r=n(1899),o=n(9730),i=n(7475),a=n(2861),s=n(3765),c=n(8348),l=/MSIE .\./.test(a),u=r.Function,p=function(t){return l?function(e,n){var r=c(arguments.length,1)>2,a=i(e)?e:u(e),l=r?s(arguments,2):void 0;return t(r?function(){o(a,this,l)}:a,n)}:t};t.exports={setTimeout:p(r.setTimeout),setInterval:p(r.setInterval)}},4431:function(t,e,n){"use strict";var r=n(626),o=n(5988),i=n(9813),a=n(5746),s=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},904:function(t,e,n){var r=n(2885),o=n(5988).f,i=n(2029),a=n(953),s=n(5623),c=n(9813)("toStringTag");t.exports=function(t,e,n,l){if(t){var u=n?t:t.prototype;a(u,c)||o(u,c,{configurable:!0,value:e}),l&&!r&&i(u,"toString",s)}}},4262:function(t,e,n){var r=n(8726),o=n(9418),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},3030:function(t,e,n){var r=n(1899),o=n(5609),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},8726:function(t,e,n){var r=n(2529),o=n(3030);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.8",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE",source:"https://github.com/zloirock/core-js"})},487:function(t,e,n){var r=n(6059),o=n(174),i=n(9813)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},4620:function(t,e,n){var r=n(5329),o=n(2435),i=n(5803),a=n(8219),s=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(t){return function(e,n){var r,u,p=i(a(e)),f=o(n),h=p.length;return f<0||f>=h?t?"":void 0:(r=c(p,f))<55296||r>56319||f+1===h||(u=c(p,f+1))<56320||u>57343?t?s(p,f):r:t?l(p,f,f+2):u-56320+(r-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},3093:function(t,e,n){var r=n(9417).PROPER,o=n(5981),i=n(3483);t.exports=function(t){return o((function(){return!!i[t]()||"​…᠎"!=="​…᠎"[t]()||r&&i[t].name!==t}))}},4853:function(t,e,n){var r=n(5329),o=n(8219),i=n(5803),a=n(3483),s=r("".replace),c="["+a+"]",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),p=function(t){return function(e){var n=i(o(e));return 1&t&&(n=s(n,l,"")),2&t&&(n=s(n,u,"")),n}};t.exports={start:p(1),end:p(2),trim:p(3)}},9630:function(t,e,n){var r=n(8834),o=n(626),i=n(9813),a=n(5929);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=i("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1})}},2941:function(t,e,n){var r,o,i,a,s=n(1899),c=n(9730),l=n(6843),u=n(7475),p=n(953),f=n(5981),h=n(5463),d=n(3765),v=n(1333),y=n(8348),g=n(2749),m=n(6049),b=s.setImmediate,_=s.clearImmediate,w=s.process,x=s.Dispatch,E=s.Function,T=s.MessageChannel,S=s.String,k=0,O={};try{r=s.location}catch(t){}var A=function(t){if(p(O,t)){var e=O[t];delete O[t],e()}},C=function(t){return function(){A(t)}},I=function(t){A(t.data)},N=function(t){s.postMessage(S(t),r.protocol+"//"+r.host)};b&&_||(b=function(t){y(arguments.length,1);var e=u(t)?t:E(t),n=d(arguments,1);return O[++k]=function(){c(e,void 0,n)},o(k),k},_=function(t){delete O[t]},m?o=function(t){w.nextTick(C(t))}:x&&x.now?o=function(t){x.now(C(t))}:T&&!g?(a=(i=new T).port2,i.port1.onmessage=I,o=l(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(N)?(o=N,s.addEventListener("message",I,!1)):o="onreadystatechange"in v("script")?function(t){h.appendChild(v("script")).onreadystatechange=function(){h.removeChild(this),A(t)}}:function(t){setTimeout(C(t),0)}),t.exports={set:b,clear:_}},9413:function(t,e,n){var r=n(2435),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},4529:function(t,e,n){var r=n(7026),o=n(8219);t.exports=function(t){return r(o(t))}},2435:function(t,e,n){var r=n(5331);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},3057:function(t,e,n){var r=n(2435),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},9678:function(t,e,n){var r=n(8219),o=Object;t.exports=function(t){return o(r(t))}},6935:function(t,e,n){var r=n(8834),o=n(941),i=n(6664),a=n(4229),s=n(9811),c=n(9813),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,c=a(t,u);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!o(n)||i(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},3894:function(t,e,n){var r=n(6935),o=n(6664);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},2885:function(t,e,n){var r={};r[n(9813)("toStringTag")]="z",t.exports="[object z]"===String(r)},5803:function(t,e,n){var r=n(9697),o=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},9826:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9418:function(t,e,n){var r=n(5329),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},2302:function(t,e,n){var r=n(2497);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3937:function(t,e,n){var r=n(5746),o=n(5981);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8348:function(t){var e=TypeError;t.exports=function(t,n){if(t<n)throw e("Not enough arguments");return t}},1477:function(t,e,n){var r=n(9813);e.f=r},9813:function(t,e,n){var r=n(1899),o=n(8726),i=n(953),a=n(9418),s=n(2497),c=n(2302),l=o("wks"),u=r.Symbol,p=u&&u.for,f=c?u:u&&u.withoutSetter||a;t.exports=function(t){if(!i(l,t)||!s&&"string"!=typeof l[t]){var e="Symbol."+t;s&&i(u,t)?l[t]=u[t]:l[t]=c&&p?p(e):f(e)}return l[t]}},3483:function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},9812:function(t,e,n){"use strict";var r=n(6887),o=n(7046),i=n(249),a=n(8929),s=n(3489),c=n(9290),l=n(2029),u=n(1887),p=n(8694),f=n(3794),h=n(3091),d=n(4649),v=n(9813),y=n(8780),g=v("toStringTag"),m=Error,b=[].push,_=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,s=o(w,this);a?n=a(new m,s?i(this):w):(n=s?this:c(w),l(n,g,"Error")),void 0!==e&&l(n,"message",d(e)),y&&l(n,"stack",p(n.stack,1)),f(n,r);var u=[];return h(t,b,{that:u}),l(n,"errors",u),n};a?a(_,m):s(_,m,{name:!0});var w=_.prototype=c(m.prototype,{constructor:u(1,_),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:_})},7627:function(t,e,n){n(9812)},5906:function(t,e,n){"use strict";var r=n(6887),o=n(5981),i=n(1052),a=n(941),s=n(9678),c=n(623),l=n(6796),u=n(5449),p=n(4692),f=n(568),h=n(9813),d=n(3385),v=h("isConcatSpreadable"),y=d>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),g=f("concat"),m=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,arity:1,forced:!y||!g},{concat:function(t){var e,n,r,o,i,a=s(this),f=p(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(m(i=-1===e?a:arguments[e]))for(o=c(i),l(h+o),n=0;n<o;n++,h++)n in i&&u(f,h,i[n]);else l(h+1),u(f,h++,i);return f.length=h,f}})},8851:function(t,e,n){"use strict";var r=n(6887),o=n(3610).every;r({target:"Array",proto:!0,forced:!n(4194)("every")},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},290:function(t,e,n){var r=n(6887),o=n(1860),i=n(8479);r({target:"Array",proto:!0},{fill:o}),i("fill")},1501:function(t,e,n){"use strict";var r=n(6887),o=n(3610).filter;r({target:"Array",proto:!0,forced:!n(568)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},4929:function(t,e,n){"use strict";var r=n(6887),o=n(3610).findIndex,i=n(8479),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},833:function(t,e,n){"use strict";var r=n(6887),o=n(3610).find,i=n(8479),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},4944:function(t,e,n){"use strict";var r=n(6887),o=n(3092),i=n(9678),a=n(623),s=n(2435),c=n(4692);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=i(this),n=a(e),r=c(e,0);return r.length=o(r,e,e,n,0,void 0===t?1:s(t)),r}})},2437:function(t,e,n){"use strict";var r=n(6887),o=n(6837);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},3242:function(t,e,n){var r=n(6887),o=n(1354);r({target:"Array",stat:!0,forced:!n(1385)((function(t){Array.from(t)}))},{from:o})},7690:function(t,e,n){"use strict";var r=n(6887),o=n(1692).includes,i=n(5981),a=n(8479);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},9076:function(t,e,n){"use strict";var r=n(6887),o=n(5329),i=n(1692).indexOf,a=n(4194),s=o([].indexOf),c=!!s&&1/s([1],1,-0)<0,l=a("indexOf");r({target:"Array",proto:!0,forced:c||!l},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return c?s(this,t,e)||0:i(this,t,e)}})},2737:function(t,e,n){n(6887)({target:"Array",stat:!0},{isArray:n(1052)})},6274:function(t,e,n){"use strict";var r=n(4529),o=n(8479),i=n(2077),a=n(5402),s=n(5988).f,c=n(7771),l=n(2529),u=n(5746),p="Array Iterator",f=a.set,h=a.getterFor(p);t.exports=c(Array,"Array",(function(t,e){f(this,{type:p,target:r(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");var d=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&u&&"values"!==d.name)try{s(d,"name",{value:"values"})}catch(t){}},8787:function(t,e,n){"use strict";var r=n(6887),o=n(3610).map;r({target:"Array",proto:!0,forced:!n(568)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},1876:function(t,e,n){"use strict";var r=n(6887),o=n(6499).left,i=n(4194),a=n(3385),s=n(6049);r({target:"Array",proto:!0,forced:!i("reduce")||!s&&a>79&&a<83},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},1490:function(t,e,n){"use strict";var r=n(6887),o=n(5329),i=n(1052),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},186:function(t,e,n){"use strict";var r=n(6887),o=n(1052),i=n(4284),a=n(941),s=n(9413),c=n(623),l=n(4529),u=n(5449),p=n(9813),f=n(568),h=n(3765),d=f("slice"),v=p("species"),y=Array,g=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var n,r,p,f=l(this),d=c(f),m=s(t,d),b=s(void 0===e?d:e,d);if(o(f)&&(n=f.constructor,(i(n)&&(n===y||o(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===y||void 0===n))return h(f,m,b);for(r=new(void 0===n?y:n)(g(b-m,0)),p=0;m<b;m++,p++)m in f&&u(r,p,f[m]);return r.length=p,r}})},6026:function(t,e,n){"use strict";var r=n(6887),o=n(3610).some;r({target:"Array",proto:!0,forced:!n(4194)("some")},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},4115:function(t,e,n){"use strict";var r=n(6887),o=n(5329),i=n(4883),a=n(9678),s=n(623),c=n(5863),l=n(5803),u=n(5981),p=n(1388),f=n(4194),h=n(4342),d=n(7797),v=n(3385),y=n(8938),g=[],m=o(g.sort),b=o(g.push),_=u((function(){g.sort(void 0)})),w=u((function(){g.sort(null)})),x=f("sort"),E=!u((function(){if(v)return v<70;if(!(h&&h>3)){if(d)return!0;if(y)return y<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:e+r,v:n})}for(g.sort((function(t,e){return e.v-t.v})),r=0;r<g.length;r++)e=g[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:_||!w||!x||!E},{sort:function(t){void 0!==t&&i(t);var e=a(this);if(E)return void 0===t?m(e):m(e,t);var n,r,o=[],u=s(e);for(r=0;r<u;r++)r in e&&b(o,e[r]);for(p(o,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:l(e)>l(n)?1:-1}}(t)),n=o.length,r=0;r<n;)e[r]=o[r++];for(;r<u;)c(e,r++);return e}})},1107:function(t,e,n){n(8479)("flat")},5160:function(t,e,n){var r=n(6887),o=n(5329),i=Date,a=o(i.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return a(new i)}})},3381:function(t,e,n){var r=n(6887),o=n(8308);r({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},2619:function(t,e,n){var r=n(6887),o=n(626),i=n(9730),a=n(8834),s=n(5329),c=n(5981),l=n(1052),u=n(7475),p=n(941),f=n(6664),h=n(3765),d=n(2497),v=o("JSON","stringify"),y=s(/./.exec),g=s("".charAt),m=s("".charCodeAt),b=s("".replace),_=s(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,E=/^[\uDC00-\uDFFF]$/,T=!d||c((function(){var t=o("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),S=c((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),k=function(t,e){var n=h(arguments),r=e;if((p(e)||void 0!==t)&&!f(t))return l(e)||(e=function(t,e){if(u(r)&&(e=a(r,this,t,e)),!f(e))return e}),n[1]=e,i(v,null,n)},O=function(t,e,n){var r=g(n,e-1),o=g(n,e+1);return y(x,t)&&!y(E,o)||y(E,t)&&!y(x,r)?"\\u"+_(m(t,0),16):t};v&&r({target:"JSON",stat:!0,arity:3,forced:T||S},{stringify:function(t,e,n){var r=h(arguments),o=i(T?k:v,null,r);return S&&"string"==typeof o?b(o,w,O):o}})},9120:function(t,e,n){var r=n(1899);n(904)(r.JSON,"JSON",!0)},5327:function(){},8103:function(t,e,n){n(6887)({target:"Math",stat:!0},{trunc:n(5331)})},9221:function(t,e,n){var r=n(6887),o=n(4420);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},3882:function(t,e,n){n(6887)({target:"Object",stat:!0,sham:!n(5746)},{create:n(9290)})},4979:function(t,e,n){var r=n(6887),o=n(5746),i=n(9938).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},6450:function(t,e,n){var r=n(6887),o=n(5746),i=n(5988).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},1078:function(t,e,n){var r=n(6887),o=n(8810).entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},6924:function(t,e,n){var r=n(6887),o=n(5981),i=n(4529),a=n(9677).f,s=n(5746),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},8482:function(t,e,n){var r=n(6887),o=n(5746),i=n(1136),a=n(4529),s=n(9677),c=n(5449);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),o=s.f,l=i(r),u={},p=0;l.length>p;)void 0!==(n=o(r,e=l[p++]))&&c(u,e,n);return u}})},9816:function(t,e,n){var r=n(6887),o=n(5981),i=n(684).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},7144:function(t,e,n){var r=n(6887),o=n(2497),i=n(5981),a=n(7857),s=n(9678);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},7405:function(t,e,n){var r=n(6887),o=n(5981),i=n(9678),a=n(249),s=n(4160);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(i(t))}})},1724:function(t,e,n){var r=n(6887),o=n(9678),i=n(4771);r({target:"Object",stat:!0,forced:n(5981)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},5967:function(){},6614:function(t,e,n){var r=n(6887),o=n(8810).values;r({target:"Object",stat:!0},{values:function(t){return o(t)}})},9718:function(t,e,n){var r=n(6887),o=n(4018);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},4038:function(t,e,n){var r=n(6887),o=n(9806);r({global:!0,forced:parseInt!=o},{parseInt:o})},4560:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(4883),a=n(9520),s=n(2),c=n(3091);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=a.f(e),r=n.resolve,l=n.reject,u=s((function(){var n=i(e.resolve),a=[],s=0,l=1;c(t,(function(t){var i=s++,c=!1;l++,o(n,e,t).then((function(t){c||(c=!0,a[i]={status:"fulfilled",value:t},--l||r(a))}),(function(t){c||(c=!0,a[i]={status:"rejected",reason:t},--l||r(a))}))})),--l||r(a)}));return u.error&&l(u.value),n.promise}})},6890:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(4883),a=n(9520),s=n(2),c=n(3091);r({target:"Promise",stat:!0,forced:n(1542)},{all:function(t){var e=this,n=a.f(e),r=n.resolve,l=n.reject,u=s((function(){var n=i(e.resolve),a=[],s=0,u=1;c(t,(function(t){var i=s++,c=!1;u++,o(n,e,t).then((function(t){c||(c=!0,a[i]=t,--u||r(a))}),l)})),--u||r(a)}));return u.error&&l(u.value),n.promise}})},7206:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(4883),a=n(626),s=n(9520),c=n(2),l=n(3091),u="No one promise resolved";r({target:"Promise",stat:!0},{any:function(t){var e=this,n=a("AggregateError"),r=s.f(e),p=r.resolve,f=r.reject,h=c((function(){var r=i(e.resolve),a=[],s=0,c=1,h=!1;l(t,(function(t){var i=s++,l=!1;c++,o(r,e,t).then((function(t){l||h||(h=!0,p(t))}),(function(t){l||h||(l=!0,a[i]=t,--c||f(new n(a,u)))}))})),--c||f(new n(a,u))}));return h.error&&f(h.value),r.promise}})},3376:function(t,e,n){"use strict";var r=n(6887),o=n(2529),i=n(7742).CONSTRUCTOR,a=n(6991),s=n(626),c=n(7475),l=n(5929),u=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&c(a)){var p=s("Promise").prototype.catch;u.catch!==p&&l(u,"catch",p,{unsafe:!0})}},6934:function(t,e,n){"use strict";var r,o,i,a=n(6887),s=n(2529),c=n(6049),l=n(1899),u=n(8834),p=n(5929),f=n(8929),h=n(904),d=n(4431),v=n(4883),y=n(7475),g=n(941),m=n(5743),b=n(487),_=n(2941).set,w=n(6132),x=n(4845),E=n(2),T=n(8397),S=n(5402),k=n(6991),O=n(7742),A=n(9520),C="Promise",I=O.CONSTRUCTOR,N=O.REJECTION_EVENT,R=O.SUBCLASSING,j=S.getterFor(C),P=S.set,L=k&&k.prototype,D=k,U=L,M=l.TypeError,$=l.document,z=l.process,F=A.f,B=F,H=!!($&&$.createEvent&&l.dispatchEvent),V="unhandledrejection",q=function(t){var e;return!(!g(t)||!y(e=t.then))&&e},W=function(t,e){var n,r,o,i=e.value,a=1==e.state,s=a?t.ok:t.fail,c=t.resolve,l=t.reject,p=t.domain;try{s?(a||(2===e.rejection&&Q(e),e.rejection=1),!0===s?n=i:(p&&p.enter(),n=s(i),p&&(p.exit(),o=!0)),n===t.promise?l(M("Promise-chain cycle")):(r=q(n))?u(r,n,c,l):c(n)):l(i)}catch(t){p&&!o&&p.exit(),l(t)}},G=function(t,e){t.notified||(t.notified=!0,w((function(){for(var n,r=t.reactions;n=r.get();)W(n,t);t.notified=!1,e&&!t.rejection&&Y(t)})))},K=function(t,e,n){var r,o;H?((r=$.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},!N&&(o=l["on"+t])?o(r):t===V&&x("Unhandled promise rejection",n)},Y=function(t){u(_,l,(function(){var e,n=t.facade,r=t.value;if(J(t)&&(e=E((function(){c?z.emit("unhandledRejection",r,n):K(V,n,r)})),t.rejection=c||J(t)?2:1,e.error))throw e.value}))},J=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){u(_,l,(function(){var e=t.facade;c?z.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)}))},Z=function(t,e,n){return function(r){t(e,r,n)}},X=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,G(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw M("Promise can't be resolved itself");var r=q(e);r?w((function(){var n={done:!1};try{u(r,e,Z(tt,n,t),Z(X,n,t))}catch(e){X(n,e,t)}})):(t.value=e,t.state=1,G(t,!1))}catch(e){X({done:!1},e,t)}}};if(I&&(U=(D=function(t){m(this,U),v(t),u(r,this);var e=j(this);try{t(Z(tt,e),Z(X,e))}catch(t){X(e,t)}}).prototype,(r=function(t){P(this,{type:C,done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:0,value:void 0})}).prototype=p(U,"then",(function(t,e){var n=j(this),r=F(b(this,D));return n.parent=!0,r.ok=!y(t)||t,r.fail=y(e)&&e,r.domain=c?z.domain:void 0,0==n.state?n.reactions.add(r):w((function(){W(r,n)})),r.promise})),o=function(){var t=new r,e=j(t);this.promise=t,this.resolve=Z(tt,e),this.reject=Z(X,e)},A.f=F=function(t){return t===D||void 0===t?new o(t):B(t)},!s&&y(k)&&L!==Object.prototype)){i=L.then,R||p(L,"then",(function(t,e){var n=this;return new D((function(t,e){u(i,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete L.constructor}catch(t){}f&&f(L,U)}a({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:D}),h(D,C,!1,!0),d(C)},4349:function(t,e,n){"use strict";var r=n(6887),o=n(2529),i=n(6991),a=n(5981),s=n(626),c=n(7475),l=n(487),u=n(6584),p=n(5929),f=i&&i.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=l(this,s("Promise")),n=c(t);return this.then(n?function(n){return u(e,t()).then((function(){return n}))}:t,n?function(n){return u(e,t()).then((function(){throw n}))}:t)}}),!o&&c(i)){var h=s("Promise").prototype.finally;f.finally!==h&&p(f,"finally",h,{unsafe:!0})}},8881:function(t,e,n){n(6934),n(6890),n(3376),n(5921),n(4069),n(4482)},5921:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(4883),a=n(9520),s=n(2),c=n(3091);r({target:"Promise",stat:!0,forced:n(1542)},{race:function(t){var e=this,n=a.f(e),r=n.reject,l=s((function(){var a=i(e.resolve);c(t,(function(t){o(a,e,t).then(n.resolve,r)}))}));return l.error&&r(l.value),n.promise}})},4069:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(9520);r({target:"Promise",stat:!0,forced:n(7742).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return o(e.reject,void 0,t),e.promise}})},4482:function(t,e,n){"use strict";var r=n(6887),o=n(626),i=n(2529),a=n(6991),s=n(7742).CONSTRUCTOR,c=n(6584),l=o("Promise"),u=i&&!s;r({target:"Promise",stat:!0,forced:i||s},{resolve:function(t){return c(u&&this===l?a:this,t)}})},1502:function(){},2266:function(t,e,n){"use strict";n(4683)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(5616))},9008:function(t,e,n){n(2266)},1035:function(t,e,n){"use strict";var r=n(6887),o=n(5329),i=n(344),a=n(8219),s=n(5803),c=n(7772),l=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~l(s(a(this)),s(i(t)),arguments.length>1?arguments[1]:void 0)}})},7971:function(t,e,n){"use strict";var r=n(4620).charAt,o=n(5803),i=n(5402),a=n(7771),s="String Iterator",c=i.set,l=i.getterFor(s);a(String,"String",(function(t){c(this,{type:s,string:o(t),index:0})}),(function(){var t,e=l(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},7398:function(t,e,n){"use strict";var r=n(6887),o=n(4853).trim;r({target:"String",proto:!0,forced:n(3093)("trim")},{trim:function(){return o(this)}})},8555:function(t,e,n){n(6349)("asyncIterator")},8616:function(t,e,n){"use strict";var r=n(6887),o=n(1899),i=n(8834),a=n(5329),s=n(2529),c=n(5746),l=n(2497),u=n(5981),p=n(953),f=n(7046),h=n(6059),d=n(4529),v=n(3894),y=n(5803),g=n(1887),m=n(9290),b=n(4771),_=n(946),w=n(684),x=n(7857),E=n(9677),T=n(5988),S=n(9938),k=n(6760),O=n(5929),A=n(8726),C=n(4262),I=n(7748),N=n(9418),R=n(9813),j=n(1477),P=n(6349),L=n(9630),D=n(904),U=n(5402),M=n(3610).forEach,$=C("hidden"),z="Symbol",F=U.set,B=U.getterFor(z),H=Object.prototype,V=o.Symbol,q=V&&V.prototype,W=o.TypeError,G=o.QObject,K=E.f,Y=T.f,J=w.f,Q=k.f,Z=a([].push),X=A("symbols"),tt=A("op-symbols"),et=A("wks"),nt=!G||!G.prototype||!G.prototype.findChild,rt=c&&u((function(){return 7!=m(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=K(H,e);r&&delete H[e],Y(t,e,n),r&&t!==H&&Y(H,e,r)}:Y,ot=function(t,e){var n=X[t]=m(q);return F(n,{type:z,tag:t,description:e}),c||(n.description=e),n},it=function(t,e,n){t===H&&it(tt,e,n),h(t);var r=v(e);return h(n),p(X,r)?(n.enumerable?(p(t,$)&&t[$][r]&&(t[$][r]=!1),n=m(n,{enumerable:g(0,!1)})):(p(t,$)||Y(t,$,g(1,{})),t[$][r]=!0),rt(t,r,n)):Y(t,r,n)},at=function(t,e){h(t);var n=d(e),r=b(n).concat(ut(n));return M(r,(function(e){c&&!i(st,n,e)||it(t,e,n[e])})),t},st=function(t){var e=v(t),n=i(Q,this,e);return!(this===H&&p(X,e)&&!p(tt,e))&&(!(n||!p(this,e)||!p(X,e)||p(this,$)&&this[$][e])||n)},ct=function(t,e){var n=d(t),r=v(e);if(n!==H||!p(X,r)||p(tt,r)){var o=K(n,r);return!o||!p(X,r)||p(n,$)&&n[$][r]||(o.enumerable=!0),o}},lt=function(t){var e=J(d(t)),n=[];return M(e,(function(t){p(X,t)||p(I,t)||Z(n,t)})),n},ut=function(t){var e=t===H,n=J(e?tt:d(t)),r=[];return M(n,(function(t){!p(X,t)||e&&!p(H,t)||Z(r,X[t])})),r};l||(V=function(){if(f(q,this))throw W("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=N(t),n=function(t){this===H&&i(n,tt,t),p(this,$)&&p(this[$],e)&&(this[$][e]=!1),rt(this,e,g(1,t))};return c&&nt&&rt(H,e,{configurable:!0,set:n}),ot(e,t)},O(q=V.prototype,"toString",(function(){return B(this).tag})),O(V,"withoutSetter",(function(t){return ot(N(t),t)})),k.f=st,T.f=it,S.f=at,E.f=ct,_.f=w.f=lt,x.f=ut,j.f=function(t){return ot(R(t),t)},c&&(Y(q,"description",{configurable:!0,get:function(){return B(this).description}}),s||O(H,"propertyIsEnumerable",st,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),M(b(et),(function(t){P(t)})),r({target:z,stat:!0,forced:!l},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(t,e){return void 0===e?m(t):at(m(t),e)},defineProperty:it,defineProperties:at,getOwnPropertyDescriptor:ct}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:lt}),L(),D(V,z),I[$]=!0},2615:function(){},4523:function(t,e,n){var r=n(6887),o=n(626),i=n(953),a=n(5803),s=n(8726),c=n(5366),l=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=a(t);if(i(l,e))return l[e];var n=o("Symbol")(e);return l[e]=n,u[n]=e,n}})},1732:function(t,e,n){n(6349)("hasInstance")},5903:function(t,e,n){n(6349)("isConcatSpreadable")},1825:function(t,e,n){n(6349)("iterator")},5824:function(t,e,n){n(8616),n(4523),n(8608),n(2619),n(7144)},8608:function(t,e,n){var r=n(6887),o=n(953),i=n(6664),a=n(9826),s=n(8726),c=n(5366),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!i(t))throw TypeError(a(t)+" is not a symbol");if(o(l,t))return l[t]}})},5915:function(t,e,n){n(6349)("matchAll")},8394:function(t,e,n){n(6349)("match")},1437:function(t,e,n){n(6349)("replace")},9791:function(t,e,n){n(6349)("search")},9911:function(t,e,n){n(6349)("species")},4315:function(t,e,n){n(6349)("split")},3131:function(t,e,n){var r=n(6349),o=n(9630);r("toPrimitive"),o()},4714:function(t,e,n){var r=n(626),o=n(6349),i=n(904);o("toStringTag"),i(r("Symbol"),"Symbol")},659:function(t,e,n){n(6349)("unscopables")},7634:function(t,e,n){n(6274);var r=n(3281),o=n(1899),i=n(9697),a=n(2029),s=n(2077),c=n(9813)("toStringTag");for(var l in r){var u=o[l],p=u&&u.prototype;p&&i(p)!==c&&a(p,c,l),s[l]=s.Array}},9229:function(t,e,n){var r=n(6887),o=n(1899),i=n(7620).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},7749:function(t,e,n){var r=n(6887),o=n(1899),i=n(7620).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},1249:function(t,e,n){n(9229),n(7749)},7698:function(t,e,n){var r=n(4493);t.exports=r},3363:function(t,e,n){var r=n(4034);t.exports=r},9216:function(t,e,n){var r=n(9324);t.exports=r},7784:function(t,e,n){var r=n(1103);t.exports=r},6243:function(t,e,n){var r=n(3830);n(7634),t.exports=r},8196:function(t,e,n){var r=n(6246);t.exports=r},8065:function(t,e,n){var r=n(6043);t.exports=r},9455:function(t,e,n){var r=n(3160);t.exports=r},9743:function(t,e,n){var r=n(446);t.exports=r},1955:function(t,e,n){var r=n(2480);t.exports=r},6064:function(t,e,n){var r=n(7147);t.exports=r},1577:function(t,e,n){var r=n(2236);t.exports=r},4913:function(t,e,n){var r=n(8098);t.exports=r},6279:function(t,e,n){n(7634);var r=n(9697),o=n(953),i=n(7046),a=n(9216),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===s||i(s,t)&&e===s.forEach||o(c,r(t))?a:e}},3778:function(t,e,n){var r=n(8557);t.exports=r},9373:function(t,e,n){var r=n(4570);t.exports=r},1798:function(t,e,n){var r=n(8287);t.exports=r},2527:function(t,e,n){var r=n(8025);t.exports=r},8427:function(t,e,n){var r=n(1060);t.exports=r},2073:function(t,e,n){var r=n(9601);t.exports=r},5286:function(t,e,n){var r=n(8299);t.exports=r},2856:function(t,e,n){var r=n(9355);t.exports=r},6361:function(t,e,n){var r=n(2774);t.exports=r},8933:function(t,e,n){var r=n(4426);t.exports=r},5838:function(t,e,n){var r=n(9179);t.exports=r},3383:function(t,e,n){var r=n(5999);t.exports=r},4471:function(t,e,n){var r=n(5254);t.exports=r},7396:function(t,e,n){var r=n(7702);t.exports=r},1910:function(t,e,n){var r=n(8171);t.exports=r},6209:function(t,e,n){var r=n(3081);t.exports=r},9427:function(t,e,n){var r=n(286);t.exports=r},2857:function(t,e,n){var r=n(2766);t.exports=r},4477:function(t,e,n){var r=n(3288);t.exports=r},9534:function(t,e,n){var r=n(498);t.exports=r},6507:function(t,e,n){var r=n(3966);t.exports=r},3059:function(t,e,n){var r=n(8494);t.exports=r},7795:function(t,e,n){var r=n(8430);t.exports=r},6877:function(t,e,n){var r=n(7579);t.exports=r},4888:function(t,e,n){var r=n(8524);t.exports=r},7460:function(t,e,n){var r=n(2956);n(7634),t.exports=r},3474:function(t,e,n){n(1249);var r=n(4058);t.exports=r.setInterval},7989:function(t,e,n){n(1249);var r=n(4058);t.exports=r.setTimeout},5519:function(t,e,n){var r=n(6998);n(7634),t.exports=r},2547:function(t,e,n){var r=n(7473);n(7634),t.exports=r},6509:function(t,e,n){var r=n(4227);n(7634),t.exports=r},4289:function(t,e,n){"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,c=n(1044)(),l=s&&c,u=function(t,e,n,r){var o;(!(e in t)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(l?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},p=function(t,e){var n=arguments.length>2?arguments[2]:{},i=r(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var s=0;s<i.length;s+=1)u(t,i[s],e[i[s]],n[i[s]])};p.supportsDescriptors=!!l,t.exports=p},4445:function(t){t.exports=a,a.default=a,a.stable=u,a.stableStringify=u;var e="[...]",n="[Circular]",r=[],o=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(t,e,n,a){var s;void 0===a&&(a=i()),c(t,"",0,[],void 0,0,a);try{s=0===o.length?JSON.stringify(t,e,n):JSON.stringify(t,f(e),n)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var l=r.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return s}function s(t,e,n,i){var a=Object.getOwnPropertyDescriptor(i,n);void 0!==a.get?a.configurable?(Object.defineProperty(i,n,{value:t}),r.push([i,n,e,a])):o.push([e,n,t]):(i[n]=t,r.push([i,n,e]))}function c(t,r,o,i,a,l,u){var p;if(l+=1,"object"==typeof t&&null!==t){for(p=0;p<i.length;p++)if(i[p]===t)return void s(n,t,r,a);if(void 0!==u.depthLimit&&l>u.depthLimit)return void s(e,t,r,a);if(void 0!==u.edgesLimit&&o+1>u.edgesLimit)return void s(e,t,r,a);if(i.push(t),Array.isArray(t))for(p=0;p<t.length;p++)c(t[p],p,p,i,t,l,u);else{var f=Object.keys(t);for(p=0;p<f.length;p++){var h=f[p];c(t[h],h,p,i,t,l,u)}}i.pop()}}function l(t,e){return t<e?-1:t>e?1:0}function u(t,e,n,a){void 0===a&&(a=i());var s,c=p(t,"",0,[],void 0,0,a)||t;try{s=0===o.length?JSON.stringify(c,e,n):JSON.stringify(c,f(e),n)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var l=r.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return s}function p(t,o,i,a,c,u,f){var h;if(u+=1,"object"==typeof t&&null!==t){for(h=0;h<a.length;h++)if(a[h]===t)return void s(n,t,o,c);try{if("function"==typeof t.toJSON)return}catch(t){return}if(void 0!==f.depthLimit&&u>f.depthLimit)return void s(e,t,o,c);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void s(e,t,o,c);if(a.push(t),Array.isArray(t))for(h=0;h<t.length;h++)p(t[h],h,h,a,t,u,f);else{var d={},v=Object.keys(t).sort(l);for(h=0;h<v.length;h++){var y=v[h];p(t[y],y,h,a,t,u,f),d[y]=t[y]}if(void 0===c)return d;r.push([c,o,t]),c[o]=d}a.pop()}}function f(t){return t=void 0!==t?t:function(t,e){return e},function(e,n){if(o.length>0)for(var r=0;r<o.length;r++){var i=o[r];if(i[1]===e&&i[0]===n){n=i[2],o.splice(r,1);break}}return t.call(this,e,n)}}},7648:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(e+i);for(var a,s=n.call(arguments,1),c=function(){if(this instanceof a){var e=i.apply(this,s.concat(n.call(arguments)));return Object(e)===e?e:this}return i.apply(t,s.concat(n.call(arguments)))},l=Math.max(0,i.length-s.length),u=[],p=0;p<l;p++)u.push("$"+p);if(a=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var f=function(){};f.prototype=i.prototype,a.prototype=new f,f.prototype=null}return a}},8612:function(t,e,n){"use strict";var r=n(7648);t.exports=Function.prototype.bind||r},210:function(t,e,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(t){c=null}var l=function(){throw new a},u=c?function(){try{return l}catch(t){try{return c(arguments,"callee").get}catch(t){return l}}}():l,p=n(1405)(),f=Object.getPrototypeOf||function(t){return t.__proto__},h={},d="undefined"==typeof Uint8Array?r:f(Uint8Array),v={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},y=function t(e){var n;if("%AsyncFunction%"===e)n=s("async function () {}");else if("%GeneratorFunction%"===e)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=s("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(n=f(o.prototype))}return v[e]=n,n},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=n(8612),b=n(7642),_=m.call(Function.call,Array.prototype.concat),w=m.call(Function.apply,Array.prototype.splice),x=m.call(Function.call,String.prototype.replace),E=m.call(Function.call,String.prototype.slice),T=m.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,O=function(t){var e=E(t,0,1),n=E(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return x(t,S,(function(t,e,n,o){r[r.length]=n?x(o,k,"$1"):e||t})),r},A=function(t,e){var n,r=t;if(b(g,r)&&(r="%"+(n=g[r])[0]+"%"),b(v,r)){var i=v[r];if(i===h&&(i=y(r)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/g,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=O(t),r=n.length>0?n[0]:"",i=A("%"+r+"%",e),s=i.name,l=i.value,u=!1,p=i.alias;p&&(r=p[0],w(n,_([0,1],p)));for(var f=1,h=!0;f<n.length;f+=1){var d=n[f],y=E(d,0,1),g=E(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(u=!0),b(v,s="%"+(r+="."+d)+"%"))l=v[s];else if(null!=l){if(!(d in l)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(c&&f+1>=n.length){var m=c(l,d);l=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:l[d]}else h=b(l,d),l=l[d];h&&!u&&(v[s]=l)}}return l}},1221:function(t){"use strict";"undefined"!=typeof self?t.exports=self:"undefined"!=typeof window?t.exports=window:t.exports=Function("return this")()},2503:function(t,e,n){"use strict";var r=n(4289),o=n(1221),i=n(2168),a=n(9471),s=i(),c=function(){return s};r(c,{getPolyfill:i,implementation:o,shim:a}),t.exports=c},2168:function(t,e,n){"use strict";var r=n(1221);t.exports=function(){return"object"==typeof n.g&&n.g&&n.g.Math===Math&&n.g.Array===Array?n.g:r}},9471:function(t,e,n){"use strict";var r=n(4289),o=n(2168);t.exports=function(){var t=o();if(r.supportsDescriptors){var e=Object.getOwnPropertyDescriptor(t,"globalThis");e&&(!e.configurable||!e.enumerable&&e.writable&&globalThis===t)||Object.defineProperty(t,"globalThis",{configurable:!0,enumerable:!1,value:t,writable:!0})}else"object"==typeof globalThis&&globalThis===t||(t.globalThis=t);return t}},1044:function(t,e,n){"use strict";var r=n(210)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(t){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},1405:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},5419:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7642:function(t,e,n){"use strict";var r=n(8612);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},679:function(t){t.exports=function(t){var e={},n=[];(t=t||this).on=function(n,r,o){return(e[n]=e[n]||[]).push([r,o]),t},t.off=function(r,o){r||(e={});for(var i=e[r]||n,a=i.length=o?i.length:0;a--;)o==i[a][0]&&i.splice(a,1);return t},t.emit=function(r){for(var o,i=e[r]||n,a=i.length>0?i.slice(0,i.length):i,s=0;o=a[s++];)o[0].apply(o[1],n.slice.call(arguments,1));return t}}},631:function(t,e,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,v=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,m=String.prototype.slice,b=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,x=RegExp.prototype.test,E=Array.prototype.concat,T=Array.prototype.join,S=Array.prototype.slice,k=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,N="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,j=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function P(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||x.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-k(-t):k(t);if(r!==t){var o=String(r),i=m.call(e,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,n,"$&_")}var L=n(4654),D=L.custom,U=B(D)?D:null;function M(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function $(t){return b.call(String(t),/"/g,"&quot;")}function z(t){return!("[object Array]"!==q(t)||N&&"object"==typeof t&&N in t)}function F(t){return!("[object RegExp]"!==q(t)||N&&"object"==typeof t&&N in t)}function B(t){if(I)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,o){var s=n||{};if(V(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!V(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=s.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return G(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var _=String(e);return v?P(e,_):_}if("bigint"==typeof e){var x=String(e)+"n";return v?P(e,x):x}var k=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=k&&k>0&&"object"==typeof e)return z(e)?"[Array]":"[Object]";var A,D=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=T.call(Array(t.indent+1)," ")}return{base:n,prev:T.call(Array(e+1),n)}}(s,r);if(void 0===o)o=[];else if(W(o,e)>=0)return"[Circular]";function H(e,n,i){if(n&&(o=S.call(o)).push(n),i){var a={depth:s.depth};return V(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,r+1,o)}return t(e,s,r+1,o)}if("function"==typeof e&&!F(e)){var K=function(t){if(t.name)return t.name;var e=g.call(y.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),tt=X(e,H);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(tt.length>0?" { "+T.call(tt,", ")+" }":"")}if(B(e)){var et=I?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(e);return"object"!=typeof e||I?et:Y(et)}if((A=e)&&"object"==typeof A&&("undefined"!=typeof HTMLElement&&A instanceof HTMLElement||"string"==typeof A.nodeName&&"function"==typeof A.getAttribute)){for(var nt="<"+w.call(String(e.nodeName)),rt=e.attributes||[],ot=0;ot<rt.length;ot++)nt+=" "+rt[ot].name+"="+M($(rt[ot].value),"double",s);return nt+=">",e.childNodes&&e.childNodes.length&&(nt+="..."),nt+"</"+w.call(String(e.nodeName))+">"}if(z(e)){if(0===e.length)return"[]";var it=X(e,H);return D&&!function(t){for(var e=0;e<t.length;e++)if(W(t[e],"\n")>=0)return!1;return!0}(it)?"["+Z(it,D)+"]":"[ "+T.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==q(t)||N&&"object"==typeof t&&N in t)}(e)){var at=X(e,H);return"cause"in Error.prototype||!("cause"in e)||R.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+T.call(at,", ")+" }":"{ ["+String(e)+"] "+T.call(E.call("[cause]: "+H(e.cause),at),", ")+" }"}if("object"==typeof e&&c){if(U&&"function"==typeof e[U]&&L)return L(e,{depth:k-r});if("symbol"!==c&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var st=[];return a.call(e,(function(t,n){st.push(H(n,e,!0)+" => "+H(t,e))})),Q("Map",i.call(e),st,D)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ct=[];return u.call(e,(function(t){ct.push(H(t,e))})),Q("Set",l.call(e),ct,D)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return J("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return J("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(t){}return!1}(e))return J("WeakRef");if(function(t){return!("[object Number]"!==q(t)||N&&"object"==typeof t&&N in t)}(e))return Y(H(Number(e)));if(function(t){if(!t||"object"!=typeof t||!O)return!1;try{return O.call(t),!0}catch(t){}return!1}(e))return Y(H(O.call(e)));if(function(t){return!("[object Boolean]"!==q(t)||N&&"object"==typeof t&&N in t)}(e))return Y(d.call(e));if(function(t){return!("[object String]"!==q(t)||N&&"object"==typeof t&&N in t)}(e))return Y(H(String(e)));if(!function(t){return!("[object Date]"!==q(t)||N&&"object"==typeof t&&N in t)}(e)&&!F(e)){var lt=X(e,H),ut=j?j(e)===Object.prototype:e instanceof Object||e.constructor===Object,pt=e instanceof Object?"":"null prototype",ft=!ut&&N&&Object(e)===e&&N in e?m.call(q(e),8,-1):pt?"Object":"",ht=(ut||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ft||pt?"["+T.call(E.call([],ft||[],pt||[]),": ")+"] ":"");return 0===lt.length?ht+"{}":D?ht+"{"+Z(lt,D)+"}":ht+"{ "+T.call(lt,", ")+" }"}return String(e)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function V(t,e){return H.call(t,e)}function q(t){return v.call(t)}function W(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function G(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return G(m.call(t,0,e.maxStringLength),e)+r}return M(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",e)}function K(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+_.call(e.toString(16))}function Y(t){return"Object("+t+")"}function J(t){return t+" { ? }"}function Q(t,e,n,r){return t+" ("+e+") {"+(r?Z(n,r):T.call(n,", "))+"}"}function Z(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+T.call(t,","+n)+"\n"+e.prev}function X(t,e){var n=z(t),r=[];if(n){r.length=t.length;for(var o=0;o<t.length;o++)r[o]=V(t,o)?e(t[o],t):""}var i,a="function"==typeof A?A(t):[];if(I){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in t)V(t,c)&&(n&&String(Number(c))===c&&c<t.length||I&&i["$"+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(e(c,t)+": "+e(t[c],t)):r.push(c+": "+e(t[c],t))));if("function"==typeof A)for(var l=0;l<a.length;l++)R.call(t,a[l])&&r.push("["+e(a[l])+"]: "+e(t[a[l]],t));return r}},8987:function(t,e,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1414),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{p(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===i.call(t),r=a(t),s=e&&"[object String]"===i.call(t),f=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=l&&n;if(s&&t.length>0&&!o.call(t,0))for(var v=0;v<t.length;++v)f.push(String(v));if(r&&t.length>0)for(var y=0;y<t.length;++y)f.push(String(y));else for(var g in t)d&&"prototype"===g||!o.call(t,g)||f.push(String(g));if(c)for(var m=function(t){if("undefined"==typeof window||!h)return p(t);try{return p(t)}catch(t){return!1}}(t),b=0;b<u.length;++b)m&&"constructor"===u[b]||!o.call(t,u[b])||f.push(u[b]);return f}}t.exports=r},2215:function(t,e,n){"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,a=i?function(t){return i(t)}:n(8987),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?s(r.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},1414:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var n=e.call(t),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),r}},7478:function(t,e,n){"use strict";var r=n(210),o=n(1924),i=n(631),a=r("%TypeError%"),s=r("%WeakMap%",!0),c=r("%Map%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),v=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+i(t))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return l(t,r)}else if(c){if(e)return f(e,r)}else if(n)return function(t,e){var n=v(t,e);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return p(t,r)}else if(c){if(e)return d(e,r)}else if(n)return function(t,e){return!!v(t,e)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new s),u(t,r,o)):c?(e||(e=new c),h(e,r,o)):(n||(n={key:{},next:null}),function(t,e,n){var r=v(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,o))}};return r}},1839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n=t.Symbol;if("function"==typeof n)if(n.observable)e=n.observable;else{e=n.for("https://github.com/benlesh/symbol-observable");try{n.observable=e}catch(t){}}else e="@@observable";return e}},868:function(t,e,n){t.exports=n(1839)},3813:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.NO_IL=e.NO=e.MemoryStream=e.Stream=void 0;var i=n(868),a=n(2503),s=i.default(a.getPolyfill()),c={};function l(){}function u(t){for(var e=t.length,n=Array(e),r=0;r<e;++r)n[r]=t[r];return n}function p(t,e,n){try{return t.f(e)}catch(t){return n._e(t),c}}e.NO=c;var f={_n:l,_e:l,_c:l};function h(t){t._start=function(t){t.next=t._n,t.error=t._e,t.complete=t._c,this.start(t)},t._stop=t.stop}e.NO_IL=f;var d=function(){function t(t,e){this._stream=t,this._listener=e}return t.prototype.unsubscribe=function(){this._stream._remove(this._listener)},t}(),v=function(){function t(t){this._listener=t}return t.prototype.next=function(t){this._listener._n(t)},t.prototype.error=function(t){this._listener._e(t)},t.prototype.complete=function(){this._listener._c()},t}(),y=function(){function t(t){this.type="fromObservable",this.ins=t,this.active=!1}return t.prototype._start=function(t){this.out=t,this.active=!0,this._sub=this.ins.subscribe(new v(t)),this.active||this._sub.unsubscribe()},t.prototype._stop=function(){this._sub&&this._sub.unsubscribe(),this.active=!1},t}(),g=function(){function t(t){this.type="merge",this.insArr=t,this.out=c,this.ac=0}return t.prototype._start=function(t){this.out=t;var e=this.insArr,n=e.length;this.ac=n;for(var r=0;r<n;r++)e[r]._add(this)},t.prototype._stop=function(){for(var t=this.insArr,e=t.length,n=0;n<e;n++)t[n]._remove(this);this.out=c},t.prototype._n=function(t){var e=this.out;e!==c&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){if(--this.ac<=0){var t=this.out;if(t===c)return;t._c()}},t}(),m=function(){function t(t,e,n){this.i=t,this.out=e,this.p=n,n.ils.push(this)}return t.prototype._n=function(t){var e=this.p,n=this.out;if(n!==c&&e.up(t,this.i)){var r=u(e.vals);n._n(r)}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.p;t.out!==c&&0==--t.Nc&&t.out._c()},t}(),b=function(){function t(t){this.type="combine",this.insArr=t,this.out=c,this.ils=[],this.Nc=this.Nn=0,this.vals=[]}return t.prototype.up=function(t,e){var n=this.vals[e],r=this.Nn?n===c?--this.Nn:this.Nn:0;return this.vals[e]=t,0===r},t.prototype._start=function(t){this.out=t;var e=this.insArr,n=this.Nc=this.Nn=e.length,r=this.vals=new Array(n);if(0===n)t._n([]),t._c();else for(var o=0;o<n;o++)r[o]=c,e[o]._add(new m(o,t,this))},t.prototype._stop=function(){for(var t=this.insArr,e=t.length,n=this.ils,r=0;r<e;r++)t[r]._remove(n[r]);this.out=c,this.ils=[],this.vals=[]},t}(),_=function(){function t(t){this.type="fromArray",this.a=t}return t.prototype._start=function(t){for(var e=this.a,n=0,r=e.length;n<r;n++)t._n(e[n]);t._c()},t.prototype._stop=function(){},t}(),w=function(){function t(t){this.type="fromPromise",this.on=!1,this.p=t}return t.prototype._start=function(t){var e=this;this.on=!0,this.p.then((function(n){e.on&&(t._n(n),t._c())}),(function(e){t._e(e)})).then(l,(function(t){setTimeout((function(){throw t}))}))},t.prototype._stop=function(){this.on=!1},t}(),x=function(){function t(t){this.type="periodic",this.period=t,this.intervalID=-1,this.i=0}return t.prototype._start=function(t){var e=this;this.intervalID=setInterval((function(){t._n(e.i++)}),this.period)},t.prototype._stop=function(){-1!==this.intervalID&&clearInterval(this.intervalID),this.intervalID=-1,this.i=0},t}(),E=function(){function t(t,e){this.type="debug",this.ins=t,this.out=c,this.s=l,this.l="","string"==typeof e?this.l=e:"function"==typeof e&&(this.s=e)}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=this.s,r=this.l;if(n!==l)try{n(t)}catch(t){e._e(t)}else r?console.log(r+":",t):console.log(t);e._n(t)}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),T=function(){function t(t,e){this.type="drop",this.ins=e,this.out=c,this.max=t,this.dropped=0}return t.prototype._start=function(t){this.out=t,this.dropped=0,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;e!==c&&this.dropped++>=this.max&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),S=function(){function t(t,e){this.out=t,this.op=e}return t.prototype._n=function(){this.op.end()},t.prototype._e=function(t){this.out._e(t)},t.prototype._c=function(){this.op.end()},t}(),k=function(){function t(t,e){this.type="endWhen",this.ins=e,this.out=c,this.o=t,this.oil=f}return t.prototype._start=function(t){this.out=t,this.o._add(this.oil=new S(t,this)),this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.o._remove(this.oil),this.out=c,this.oil=f},t.prototype.end=function(){var t=this.out;t!==c&&t._c()},t.prototype._n=function(t){var e=this.out;e!==c&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){this.end()},t}(),O=function(){function t(t,e){this.type="filter",this.ins=e,this.out=c,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=p(this,t,e);n!==c&&n&&e._n(t)}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),A=function(){function t(t,e){this.out=t,this.op=e}return t.prototype._n=function(t){this.out._n(t)},t.prototype._e=function(t){this.out._e(t)},t.prototype._c=function(){this.op.inner=c,this.op.less()},t}(),C=function(){function t(t){this.type="flatten",this.ins=t,this.out=c,this.open=!0,this.inner=c,this.il=f}return t.prototype._start=function(t){this.out=t,this.open=!0,this.inner=c,this.il=f,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.inner!==c&&this.inner._remove(this.il),this.out=c,this.open=!0,this.inner=c,this.il=f},t.prototype.less=function(){var t=this.out;t!==c&&(this.open||this.inner!==c||t._c())},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=this.inner,r=this.il;n!==c&&r!==f&&n._remove(r),(this.inner=t)._add(this.il=new A(e,this))}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){this.open=!1,this.less()},t}(),I=function(){function t(t,e,n){var r=this;this.type="fold",this.ins=n,this.out=c,this.f=function(e){return t(r.acc,e)},this.acc=this.seed=e}return t.prototype._start=function(t){this.out=t,this.acc=this.seed,t._n(this.acc),this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c,this.acc=this.seed},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=p(this,t,e);n!==c&&e._n(this.acc=n)}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),N=function(){function t(t){this.type="last",this.ins=t,this.out=c,this.has=!1,this.val=c}return t.prototype._start=function(t){this.out=t,this.has=!1,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c,this.val=c},t.prototype._n=function(t){this.has=!0,this.val=t},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&(this.has?(t._n(this.val),t._c()):t._e(new Error("last() failed because input stream completed")))},t}(),R=function(){function t(t,e){this.type="map",this.ins=e,this.out=c,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=p(this,t,e);n!==c&&e._n(n)}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),j=function(){function t(t){this.type="remember",this.ins=t,this.out=c}return t.prototype._start=function(t){this.out=t,this.ins._add(t)},t.prototype._stop=function(){this.ins._remove(this.out),this.out=c},t}(),P=function(){function t(t,e){this.type="replaceError",this.ins=e,this.out=c,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;e!==c&&e._n(t)},t.prototype._e=function(t){var e=this.out;if(e!==c)try{this.ins._remove(this),(this.ins=this.f(t))._add(this)}catch(t){e._e(t)}},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),L=function(){function t(t,e){this.type="startWith",this.ins=t,this.out=c,this.val=e}return t.prototype._start=function(t){this.out=t,this.out._n(this.val),this.ins._add(t)},t.prototype._stop=function(){this.ins._remove(this.out),this.out=c},t}(),D=function(){function t(t,e){this.type="take",this.ins=e,this.out=c,this.max=t,this.taken=0}return t.prototype._start=function(t){this.out=t,this.taken=0,this.max<=0?t._c():this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=++this.taken;n<this.max?e._n(t):n===this.max&&(e._n(t),e._c())}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),U=function(){function t(t){this._prod=t||c,this._ils=[],this._stopID=c,this._dl=c,this._d=!1,this._target=null,this._err=c}return t.prototype._n=function(t){var e=this._ils,n=e.length;if(this._d&&this._dl._n(t),1==n)e[0]._n(t);else{if(0==n)return;for(var r=u(e),o=0;o<n;o++)r[o]._n(t)}},t.prototype._e=function(t){if(this._err===c){this._err=t;var e=this._ils,n=e.length;if(this._x(),this._d&&this._dl._e(t),1==n)e[0]._e(t);else{if(0==n)return;for(var r=u(e),o=0;o<n;o++)r[o]._e(t)}if(!this._d&&0==n)throw this._err}},t.prototype._c=function(){var t=this._ils,e=t.length;if(this._x(),this._d&&this._dl._c(),1==e)t[0]._c();else{if(0==e)return;for(var n=u(t),r=0;r<e;r++)n[r]._c()}},t.prototype._x=function(){0!==this._ils.length&&(this._prod!==c&&this._prod._stop(),this._err=c,this._ils=[])},t.prototype._stopNow=function(){this._prod._stop(),this._err=c,this._stopID=c},t.prototype._add=function(t){var e=this._target;if(e)return e._add(t);var n=this._ils;if(n.push(t),!(n.length>1))if(this._stopID!==c)clearTimeout(this._stopID),this._stopID=c;else{var r=this._prod;r!==c&&r._start(this)}},t.prototype._remove=function(t){var e=this,n=this._target;if(n)return n._remove(t);var r=this._ils,o=r.indexOf(t);o>-1&&(r.splice(o,1),this._prod!==c&&r.length<=0?(this._err=c,this._stopID=setTimeout((function(){return e._stopNow()}))):1===r.length&&this._pruneCycles())},t.prototype._pruneCycles=function(){this._hasNoSinks(this,[])&&this._remove(this._ils[0])},t.prototype._hasNoSinks=function(t,e){if(-1!==e.indexOf(t))return!0;if(t.out===this)return!0;if(t.out&&t.out!==c)return this._hasNoSinks(t.out,e.concat(t));if(t._ils){for(var n=0,r=t._ils.length;n<r;n++)if(!this._hasNoSinks(t._ils[n],e.concat(t)))return!1;return!0}return!1},t.prototype.ctor=function(){return this instanceof M?M:t},t.prototype.addListener=function(t){t._n=t.next||l,t._e=t.error||l,t._c=t.complete||l,this._add(t)},t.prototype.removeListener=function(t){this._remove(t)},t.prototype.subscribe=function(t){return this.addListener(t),new d(this,t)},t.prototype[s]=function(){return this},t.create=function(e){if(e){if("function"!=typeof e.start||"function"!=typeof e.stop)throw new Error("producer requires both start and stop functions");h(e)}return new t(e)},t.createWithMemory=function(t){return t&&h(t),new M(t)},t.never=function(){return new t({_start:l,_stop:l})},t.empty=function(){return new t({_start:function(t){t._c()},_stop:l})},t.throw=function(e){return new t({_start:function(t){t._e(e)},_stop:l})},t.from=function(e){if("function"==typeof e[s])return t.fromObservable(e);if("function"==typeof e.then)return t.fromPromise(e);if(Array.isArray(e))return t.fromArray(e);throw new TypeError("Type of input to from() must be an Array, Promise, or Observable")},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.fromArray(e)},t.fromArray=function(e){return new t(new _(e))},t.fromPromise=function(e){return new t(new w(e))},t.fromObservable=function(e){if(void 0!==e.endWhen)return e;var n="function"==typeof e[s]?e[s]():e;return new t(new y(n))},t.periodic=function(e){return new t(new x(e))},t.prototype._map=function(t){return new(this.ctor())(new R(t,this))},t.prototype.map=function(t){return this._map(t)},t.prototype.mapTo=function(t){var e=this.map((function(){return t}));return e._prod.type="mapTo",e},t.prototype.filter=function(e){var n,r,o=this._prod;return new t(o instanceof O?new O((n=o.f,r=e,function(t){return n(t)&&r(t)}),o.ins):new O(e,this))},t.prototype.take=function(t){return new(this.ctor())(new D(t,this))},t.prototype.drop=function(e){return new t(new T(e,this))},t.prototype.last=function(){return new t(new N(this))},t.prototype.startWith=function(t){return new M(new L(this,t))},t.prototype.endWhen=function(t){return new(this.ctor())(new k(t,this))},t.prototype.fold=function(t,e){return new M(new I(t,e,this))},t.prototype.replaceError=function(t){return new(this.ctor())(new P(t,this))},t.prototype.flatten=function(){return new t(new C(this))},t.prototype.compose=function(t){return t(this)},t.prototype.remember=function(){return new M(new j(this))},t.prototype.debug=function(t){return new(this.ctor())(new E(this,t))},t.prototype.imitate=function(t){if(t instanceof M)throw new Error("A MemoryStream was given to imitate(), but it only supports a Stream. Read more about this restriction here: https://github.com/staltz/xstream#faq");this._target=t;for(var e=this._ils,n=e.length,r=0;r<n;r++)t._add(e[r]);this._ils=[]},t.prototype.shamefullySendNext=function(t){this._n(t)},t.prototype.shamefullySendError=function(t){this._e(t)},t.prototype.shamefullySendComplete=function(){this._c()},t.prototype.setDebugListener=function(t){t?(this._d=!0,t._n=t.next||l,t._e=t.error||l,t._c=t.complete||l,this._dl=t):(this._d=!1,this._dl=c)},t.merge=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(new g(e))},t.combine=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(new b(e))},t}();e.Stream=U;var M=function(t){function e(e){var n=t.call(this,e)||this;return n._has=!1,n}return o(e,t),e.prototype._n=function(e){this._v=e,this._has=!0,t.prototype._n.call(this,e)},e.prototype._add=function(t){var e=this._target;if(e)return e._add(t);var n=this._ils;if(n.push(t),n.length>1)this._has&&t._n(this._v);else if(this._stopID!==c)this._has&&t._n(this._v),clearTimeout(this._stopID),this._stopID=c;else if(this._has)t._n(this._v);else{var r=this._prod;r!==c&&r._start(this)}},e.prototype._stopNow=function(){this._has=!1,t.prototype._stopNow.call(this)},e.prototype._x=function(){this._has=!1,t.prototype._x.call(this)},e.prototype.map=function(t){return this._map(t)},e.prototype.mapTo=function(e){return t.prototype.mapTo.call(this,e)},e.prototype.take=function(e){return t.prototype.take.call(this,e)},e.prototype.endWhen=function(e){return t.prototype.endWhen.call(this,e)},e.prototype.replaceError=function(e){return t.prototype.replaceError.call(this,e)},e.prototype.remember=function(){return this},e.prototype.debug=function(e){return t.prototype.debug.call(this,e)},e}(U);e.MemoryStream=M;var $=U;e.default=$},4654:function(){},3695:function(){}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{API:function(){return od},AgentInfo:function(){return Ed},Chat:function(){return Hc},ChatFrame:function(){return Cf},ComponentFilter:function(){return Vp},Conversation:function(){return qp},DeprecatedToggleButton:function(){return Sd},DeprecatedView:function(){return Nd},Engine:function(){return gd},EntryContainer:function(){return gf},EventParticipant:function(){return el},ExternalApi:function(){return xd},Header:function(){return Td},Icon:function(){return Es},Interrupt:function(){return Vc},MessageContainer:function(){return al},SeamlyApiContext:function(){return si},SeamlyEventBusContext:function(){return ci},SeamlyGeneralError:function(){return ha},SeamlyLiveRegionContext:function(){return Ua},SeamlyOfflineError:function(){return va},StoreProvider:function(){return Ce},Text:function(){return _u},View:function(){return Uf},calculateVisibility:function(){return Io},className:function(){return ai},createReduxStore:function(){return He},default:function(){return Rd},eventTypes:function(){return Nn},getUrlParams:function(){return yn},getUrlSearchString:function(){return gn},randomId:function(){return Jt},seamlyActions:function(){return Kn},useChoicePrompt:function(){return ul},useDispatch:function(){return hi},useEvents:function(){return go},useGeneratedId:function(){return Ia},useI18n:function(){return Li},useSeamlyChat:function(){return Ya},useSeamlyCommands:function(){return Da},useSeamlyConfig:function(){return Ke},useSeamlyEventStream:function(){return is},useSeamlyIdleDetachCountdown:function(){return ns},useSeamlyMessageContainerClassNames:function(){return vi},useSeamlyOptions:function(){return Qi},useSeamlyVisibility:function(){return Sa},useTranslatedEventData:function(){return ds},useTranslations:function(){return hs},useTranslationsContainer:function(){return vs},visibilityStates:function(){return be}}),n(2698);var t=n(1511),e=n.n(t),o=n(4103),i=n.n(o),a=n(4310),s=n.n(a),c=n(4074),l=n.n(c),u=n(9649),p=n.n(u),f=n(368),h=n.n(f),d=n(3978),v=n.n(d),y=n(4341);function g(t,e,n){return e in t?y(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=n(2991),b=n.n(m),_=n(116),w=n.n(_),x=n(8914),E=n.n(x),T=n(6902),S=n.n(T),k=n(455),O=n.n(k),A=n(7149),C=n.n(A),I=n(6295),N=n.n(I),R=n(3263),j=n(5683),P=n(9356);function L(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=P(t);for(r=0;r<i.length;r++)n=i[r],j(e).call(e,n)>=0||(o[n]=t[n]);return o}(t,e);if(R){var i=R(t);for(r=0;r<i.length;r++)n=i[r],j(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var D,U,M,$,z,F,B,H={},V=[],q=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function W(t,e){for(var n in e)t[n]=e[n];return t}function G(t){var e=t.parentNode;e&&e.removeChild(t)}function K(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++M:o};return null==o&&null!=U.vnode&&U.vnode(i),i}function Y(t){return t.children}function J(t,e){this.props=t,this.context=e}function Q(t,e){if(null==e)return t.__?Q(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?Q(t):null}function Z(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return Z(t)}}function X(t){(!t.__d&&(t.__d=!0)&&$.push(t)&&!tt.__r++||F!==U.debounceRendering)&&((F=U.debounceRendering)||z)(tt)}function tt(){for(var t;tt.__r=$.length;)t=$.sort((function(t,e){return t.__v.__b-e.__v.__b})),$=[],t.some((function(t){var e,n,r,o,i,a;t.__d&&(i=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=W({},o)).__v=o.__v+1,lt(a,o,r,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Q(o):i,o.__h),ut(n,o),o.__e!=i&&Z(o)))}))}function et(t,e,n,r,o,i,a,s,c,l){var u,p,f,h,d,v,y,g=r&&r.__k||V,m=g.length;for(n.__k=[],u=0;u<e.length;u++)if(null!=(h=n.__k[u]=null==(h=e[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?K(null,h,null,null,h):Array.isArray(h)?K(Y,{children:h},null,null,null):h.__b>0?K(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=g[u])||f&&h.key==f.key&&h.type===f.type)g[u]=void 0;else for(p=0;p<m;p++){if((f=g[p])&&h.key==f.key&&h.type===f.type){g[p]=void 0;break}f=null}lt(t,h,f=f||H,o,i,a,s,c,l),d=h.__e,(p=h.ref)&&f.ref!=p&&(y||(y=[]),f.ref&&y.push(f.ref,null,h),y.push(p,h.__c||d,h)),null!=d?(null==v&&(v=d),"function"==typeof h.type&&h.__k===f.__k?h.__d=c=nt(h,c,t):c=ot(t,h,f,g,d,c),"function"==typeof n.type&&(n.__d=c)):c&&f.__e==c&&c.parentNode!=t&&(c=Q(f))}for(n.__e=v,u=m;u--;)null!=g[u]&&("function"==typeof n.type&&null!=g[u].__e&&g[u].__e==n.__d&&(n.__d=Q(r,u+1)),ht(g[u],g[u]));if(y)for(u=0;u<y.length;u++)ft(y[u],y[++u],y[++u])}function nt(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?nt(r,e,n):ot(n,r,r,o,r.__e,e));return e}function rt(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){rt(t,e)})):e.push(t)),e}function ot(t,e,n,r,o,i){var a,s,c;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),a=null;else{for(s=i,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function it(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||q.test(e)?n:n+"px"}function at(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||it(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||it(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?ct:st,i):t.removeEventListener(e,i?ct:st,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function st(t){this.l[t.type+!1](U.event?U.event(t):t)}function ct(t){this.l[t.type+!0](U.event?U.event(t):t)}function lt(t,e,n,r,o,i,a,s,c){var l,u,p,f,h,d,v,y,g,m,b,_=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(c=n.__h,s=e.__e=n.__e,e.__h=null,i=[s]),(l=U.__b)&&l(e);try{t:if("function"==typeof _){if(y=e.props,g=(l=_.contextType)&&r[l.__c],m=l?g?g.props.value:l.__:r,n.__c?v=(u=e.__c=n.__c).__=u.__E:("prototype"in _&&_.prototype.render?e.__c=u=new _(y,m):(e.__c=u=new J(y,m),u.constructor=_,u.render=dt),g&&g.sub(u),u.props=y,u.state||(u.state={}),u.context=m,u.__n=r,p=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=_.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=W({},u.__s)),W(u.__s,_.getDerivedStateFromProps(y,u.__s))),f=u.props,h=u.state,p)null==_.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==_.getDerivedStateFromProps&&y!==f&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(y,m),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(y,u.__s,m)||e.__v===n.__v){u.props=y,u.state=u.__s,e.__v!==n.__v&&(u.__d=!1),u.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),u.__h.length&&a.push(u);break t}null!=u.componentWillUpdate&&u.componentWillUpdate(y,u.__s,m),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(f,h,d)}))}u.context=m,u.props=y,u.state=u.__s,(l=U.__r)&&l(e),u.__d=!1,u.__v=e,u.__P=t,l=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(r=W(W({},r),u.getChildContext())),p||null==u.getSnapshotBeforeUpdate||(d=u.getSnapshotBeforeUpdate(f,h)),b=null!=l&&l.type===Y&&null==l.key?l.props.children:l,et(t,Array.isArray(b)?b:[b],e,n,r,o,i,a,s,c),u.base=e.__e,e.__h=null,u.__h.length&&a.push(u),v&&(u.__E=u.__=null),u.__e=!1}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=pt(n.__e,e,n,r,o,i,a,c);(l=U.diffed)&&l(e)}catch(t){e.__v=null,(c||null!=i)&&(e.__e=s,e.__h=!!c,i[i.indexOf(s)]=null),U.__e(t,e,n)}}function ut(t,e){U.__c&&U.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){U.__e(t,e.__v)}}))}function pt(t,e,n,r,o,i,a,s){var c,l,u,p=n.props,f=e.props,h=e.type,d=0;if("svg"===h&&(o=!0),null!=i)for(;d<i.length;d++)if((c=i[d])&&"setAttribute"in c==!!h&&(h?c.localName===h:3===c.nodeType)){t=c,i[d]=null;break}if(null==t){if(null===h)return document.createTextNode(f);t=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),i=null,s=!1}if(null===h)p===f||s&&t.data===f||(t.data=f);else{if(i=i&&D.call(t.childNodes),l=(p=n.props||H).dangerouslySetInnerHTML,u=f.dangerouslySetInnerHTML,!s){if(null!=i)for(p={},d=0;d<t.attributes.length;d++)p[t.attributes[d].name]=t.attributes[d].value;(u||l)&&(u&&(l&&u.__html==l.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||at(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||at(t,i,e[i],n[i],r)}(t,f,p,o,s),u)e.__k=[];else if(d=e.props.children,et(t,Array.isArray(d)?d:[d],e,n,r,o&&"foreignObject"!==h,i,a,i?i[0]:n.__k&&Q(n,0),s),null!=i)for(d=i.length;d--;)null!=i[d]&&G(i[d]);s||("value"in f&&void 0!==(d=f.value)&&(d!==t.value||"progress"===h&&!d||"option"===h&&d!==p.value)&&at(t,"value",d,p.value,!1),"checked"in f&&void 0!==(d=f.checked)&&d!==t.checked&&at(t,"checked",d,p.checked,!1))}return t}function ft(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){U.__e(t,n)}}function ht(t,e,n){var r,o;if(U.unmount&&U.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||ft(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){U.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&ht(r[o],e,"function"!=typeof t.type);n||null==t.__e||G(t.__e),t.__e=t.__d=void 0}function dt(t,e,n){return this.constructor(t,n)}function vt(t,e,n){var r,o,i;U.__&&U.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],lt(e,t=(!r&&n||e).__k=function(t,e,n){var r,o,i,a={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?D.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return K(t,a,r,o,null)}(Y,null,[t]),o||H,H,void 0!==e.ownerSVGElement,!r&&n?[n]:o?null:e.firstChild?D.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r),ut(i,t)}function yt(t,e){var n={__c:e="__cC"+B++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(X)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}D=V.slice,U={__e:function(t,e,n,r){for(var o,i,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},M=0,J.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=W({},this.state),"function"==typeof t&&(t=t(W({},n),this.props)),t&&W(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),X(this))},J.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),X(this))},J.prototype.render=Y,$=[],z="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tt.__r=0,B=0;var gt,mt,bt,_t=n(679),wt=n.n(_t),xt=0,Et=[],Tt=U.__b,St=U.__r,kt=U.diffed,Ot=U.__c,At=U.unmount;function Ct(t,e){U.__h&&U.__h(mt,t,xt||e),xt=0;var n=mt.__H||(mt.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function It(t){return xt=1,Nt(Ht,t)}function Nt(t,e,n){var r=Ct(gt++,2);return r.t=t,r.__c||(r.__=[n?n(e):Ht(void 0,e),function(t){var e=r.t(r.__[0],t);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=mt),r.__}function Rt(t,e){var n=Ct(gt++,3);!U.__s&&Bt(n.__H,e)&&(n.__=t,n.__H=e,mt.__H.__h.push(n))}function jt(t,e){var n=Ct(gt++,4);!U.__s&&Bt(n.__H,e)&&(n.__=t,n.__H=e,mt.__h.push(n))}function Pt(t){return xt=5,Lt((function(){return{current:t}}),[])}function Lt(t,e){var n=Ct(gt++,7);return Bt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Dt(t,e){return xt=8,Lt((function(){return t}),e)}function Ut(t){var e=mt.context[t.__c],n=Ct(gt++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(mt)),e.props.value):t.__}function Mt(){for(var t;t=Et.shift();)if(t.__P)try{t.__H.__h.forEach(zt),t.__H.__h.forEach(Ft),t.__H.__h=[]}catch(e){t.__H.__h=[],U.__e(e,t.__v)}}U.__b=function(t){mt=null,Tt&&Tt(t)},U.__r=function(t){St&&St(t),gt=0;var e=(mt=t.__c).__H;e&&(e.__h.forEach(zt),e.__h.forEach(Ft),e.__h=[])},U.diffed=function(t){kt&&kt(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==Et.push(e)&&bt===U.requestAnimationFrame||((bt=U.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),$t&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);$t&&(e=requestAnimationFrame(n))})(Mt)),mt=null},U.__c=function(t,e){e.some((function(t){try{t.__h.forEach(zt),t.__h=t.__h.filter((function(t){return!t.__||Ft(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],U.__e(n,t.__v)}})),Ot&&Ot(t,e)},U.unmount=function(t){At&&At(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{zt(t)}catch(t){e=t}})),e&&U.__e(e,n.__v))};var $t="function"==typeof requestAnimationFrame;function zt(t){var e=mt,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),mt=e}function Ft(t){var e=mt;t.__c=t.__(),mt=e}function Bt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Ht(t,e){return"function"==typeof e?e(t):e}var Vt=n(1942),qt=n.n(Vt),Wt=n(3649),Gt=n.n(Wt),Kt=n(1128),Yt=n.n(Kt);function Jt(){var t;return"_"+(Number(Gt()(t=String(Math.random())).call(t,2))+Yt()()+Math.round(performance.now())).toString(36)}function Qt(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zt(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Qt(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Qt(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Xt="//";function te(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/";return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return e(t+n+r,...i)}}function ee(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>({payload:t});const n=function(){return Zt({type:t},e(...arguments))};return n.toString=()=>String(t),n.match=e=>(null==e?void 0:e.type)===String(t),n}function ne(t){const e=[];for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];E()(r).call(r,(t=>{var n;const r=typeof t;if("string"===r)return e.push([t]);"object"!==r||t instanceof Array||E()(n=S()(t)).call(n,(n=>e.push([n,t[n]])))}));const i=te(t,ee,"/");return b()(e).call(e,(t=>i(...t)))}function re(t,e){const[n,r,o]=ne(t,{pending:(t,e)=>({meta:{arg:t,requestId:e,status:"pending"}}),fulfilled:(t,e,n)=>({payload:e,meta:{arg:t,requestId:n,status:"fulfilled"}}),rejected:(t,e,n)=>({error:e,meta:{arg:t,requestId:n,status:"rejected",error:String(e)}})});return qt()((i=>(a,s,c)=>{const l=Jt(),u=(async()=>{let t;try{a(n(i,l));const o=e(i,{dispatch:a,getState:s,extra:c}),u=await o;t=r(i,u,l)}catch(e){t=o(i,e,l)}return a(t),t})();return qt()(u,{type:t,arg:i,requestId:l})}),{type:t,pending:n,fulfilled:r,rejected:o})}function oe(t){return{createAction:te(t,ee,Xt),createActions:te(t,ne,Xt),createThunk:te(t,re,Xt),createReducer:(e,n)=>function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,r=arguments.length>1?arguments[1]:void 0;const o=null==e?void 0:e[null==r?void 0:r.type];return o?o(t,r):t};return r.toString=()=>t,r}(t,e,n),selectState:e=>e[t]}}const{createAction:ie,createThunk:ae,createReducer:se,selectState:ce}=oe("config"),le=ie("initialize",(t=>({config:t}))),ue=ie("update",(t=>({config:t}))),pe=ie("setPreChatEvents",(t=>({events:t})));var fe="NOT_FOUND",he=function(t,e){return t===e};function de(t,e){var n,r,o="object"==typeof e?e:{equalityCheck:e},i=o.equalityCheck,a=void 0===i?he:i,s=o.maxSize,c=void 0===s?1:s,l=o.resultEqualityCheck,u=function(t){return function(e,n){if(null===e||null===n||e.length!==n.length)return!1;for(var r=e.length,o=0;o<r;o++)if(!t(e[o],n[o]))return!1;return!0}}(a),p=1===c?(n=u,{get:function(t){return r&&n(r.key,t)?r.value:fe},put:function(t,e){r={key:t,value:e}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}):function(t,e){var n=[];function r(t){var r=n.findIndex((function(n){return e(t,n.key)}));if(r>-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return fe}return{get:r,put:function(e,o){r(e)===fe&&(n.unshift({key:e,value:o}),n.length>t&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(c,u);function f(){var e=p.get(arguments);if(e===fe){if(e=t.apply(null,arguments),l){var n=p.getEntries(),r=n.find((function(t){return l(t.value,e)}));r&&(e=r.value)}p.put(arguments,e)}return e}return f.clearCache=function(){return p.clear()},f}function ve(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every((function(t){return"function"==typeof t}))){var n=e.map((function(t){return"function"==typeof t?"function "+(t.name||"unnamed")+"()":typeof t})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return e}function ye(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i,a=0,s={memoizeOptions:void 0},c=r.pop();if("object"==typeof c&&(s=c,c=r.pop()),"function"!=typeof c)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof c+"]");var l=s,u=l.memoizeOptions,p=void 0===u?n:u,f=Array.isArray(p)?p:[p],h=ve(r),d=t.apply(void 0,[function(){return a++,c.apply(null,arguments)}].concat(f)),v=t((function(){for(var t=[],e=h.length,n=0;n<e;n++)t.push(h[n].apply(null,arguments));return i=d.apply(null,t)}));return Object.assign(v,{resultFunc:c,memoizedResultFunc:d,dependencies:h,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),v};return o}var ge=ye(de);const me="visibility",be={hidden:"hidden",minimized:"minimized",open:"open",initialize:null};function _e(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function we(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=_e(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=_e(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const xe=ge(ce,(t=>{let e=we({visible:"inline"===(null==t?void 0:t.layoutMode)?be.open:be.minimized,appContainerClassNames:t.appContainerClassNames||[]},t);return"function"==typeof e.appContainerClassNames&&(e=we(we({},e),{},{appContainerClassNames:e.appContainerClassNames(e)})),e})),Ee=yt(void 0);var Te=Ee;const{Provider:Se,Consumer:ke}=Ee;var Oe=0;function Ae(t,e,n,r,o){var i,a,s={};for(a in e)"ref"==a?i=e[a]:s[a]=e[a];var c={type:t,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Oe,__source:o,__self:r};if("function"==typeof t&&(i=t.defaultProps))for(a in i)void 0===s[a]&&(s[a]=i[a]);return U.vnode&&U.vnode(c),c}function Ce(t){let{store:e,children:n}=t;return Ae(Se,{value:e,children:n})}function Ie(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Re(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ne(Object(n),!0).forEach((function(e){Ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function je(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Pe="function"==typeof Symbol&&Symbol.observable||"@@observable",Le=function(){return Math.random().toString(36).substring(7).split("").join(".")},De={INIT:"@@redux/INIT"+Le(),REPLACE:"@@redux/REPLACE"+Le(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Le()}};function Ue(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Me(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(je(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(je(1));return n(Me)(t,e)}if("function"!=typeof t)throw new Error(je(2));var o=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function u(){if(c)throw new Error(je(3));return i}function p(t){if("function"!=typeof t)throw new Error(je(4));if(c)throw new Error(je(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(je(6));e=!1,l();var n=s.indexOf(t);s.splice(n,1),a=null}}}function f(t){if(!Ue(t))throw new Error(je(7));if(void 0===t.type)throw new Error(je(8));if(c)throw new Error(je(9));try{c=!0,i=o(i,t)}finally{c=!1}for(var e=a=s,n=0;n<e.length;n++)(0,e[n])();return t}function h(t){if("function"!=typeof t)throw new Error(je(10));o=t,f({type:De.REPLACE})}function d(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(je(11));function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[Pe]=function(){return this},t}return f({type:De.INIT}),(r={dispatch:f,subscribe:p,getState:u,replaceReducer:h})[Pe]=d,r}function $e(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var o=e[r];"function"==typeof t[o]&&(n[o]=t[o])}var i,a=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:De.INIT}))throw new Error(je(12));if(void 0===n(void 0,{type:De.PROBE_UNKNOWN_ACTION()}))throw new Error(je(13))}))}(n)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var c=a[s],l=n[c],u=t[c],p=l(u,e);if(void 0===p)throw e&&e.type,new Error(je(14));o[c]=p,r=r||p!==u}return(r=r||a.length!==Object.keys(t).length)?o:t}}function ze(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Fe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error(je(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return r=ze.apply(void 0,i)(n.dispatch),Re(Re({},n),{},{dispatch:r})}}}let Be=ze;function He(){let{reducers:t={},initialState:e={},middlewares:n=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Me($e(t),e,Be(Fe(...n)))}function Ve(){return Ut(Te)}function qe(){return Ve().dispatch}function We(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=Ve(),[,r]=Nt((t=>t+1),0),o=Pt(),i=Dt(t,e),a=Pt(),s=Pt(),c=n.getState();return a.current===i&&s.current===c||(s.current=c,o.current=i(s.current),a.current=i),jt((()=>n.subscribe((()=>{var t;if(n.getState()===s.current)return;const e=null===(t=a.current)||void 0===t?void 0:t.call(a,n.getState());e!==o.current&&(o.current=e,r())}))),[n]),o.current}const Ge=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=Dt((n=>t(n,e)),n);return We(r,n)};function Ke(){return We(xe)}function Ye(){const{startChatIcon:t}=We(xe);return t}const Je="cvco",Qe="2",Ze="seamly-client-participant";var Xe=n(3032),tn=n.n(Xe),en=n(1238),nn=n.n(en),rn=n(1643),on=n.n(rn),an=n(2366),sn=n.n(an),cn=n(8580),ln=n.n(cn);function un(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function pn(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=un(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=un(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const fn=(t,e)=>{let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a=this;let s=!1;return clearTimeout(n),n=tn()((()=>{n=null,s||t.apply(a,o),s=!1}),e),e=>{s=!0,e&&t.apply(a,o)}}},hn=t=>Math.ceil(t/1e3),dn=t=>{const e=Math.floor(t/60);return{minutes:e,seconds:t-60*e}},vn=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===t)return"0 Bytes";const n=1024,r=e<0?0:e,o=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(t)/Math.log(n));return nn()((t/n**i).toFixed(r))+" "+o[i]},yn=()=>{const{search:t}=window.location;if(!t)return{};const e=Gt()(t).call(t,on()(t).call(t,"?")+1).split("&");return sn()(e).call(e,((t,e)=>{const[n,r]=e.split("=");return pn(pn({},t),{},{[n]:decodeURIComponent(r)})}),{})},gn=t=>{var e;return sn()(e=S()(t)).call(e,((e,n)=>`${e}${e?"&":""}${n}=${encodeURIComponent(t[n])}`),"")},mn={27:"Escape",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown"},bn={Escape:"Escape",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"},_n=t=>t.code?bn[t.code]:mn[t.keyCode],wn=t=>{t&&t.focus()},xn=(t,e)=>{t&&(t.contains(document.activeElement)||t===document.activeElement)&&e()};var En=n(7302),Tn=n.n(En),Sn=n(7093),kn=n.n(Sn),On=n(4473),An=n.n(On);function Cn(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function In(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Cn(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Cn(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Nn={info:"info",message:"message",participant:"participant",system:"system"},Rn="text",jn="text",Pn="upload",Ln="received",Dn="read",Un="custom",Mn="typing",$n="read",zn="detach_service",Fn="set_topic",Bn="set_translation",Hn="click_cta",Vn="assertive",qn="polite",Wn={new_topic:"newTopic",new_translation:"newTranslation"},Gn="uploads",Kn={ADD_EVENT:"ADD_EVENT",CLEAR_EVENTS:"CLEAR_EVENTS",SET_HISTORY:"SET_HISTORY",SET_EVENTS_READ:"SET_EVENTS_READ",ACK_EVENT:"ACK_EVENT",SET_IS_LOADING:"SET_IS_LOADING",CLEAR_PARTICIPANTS:"CLEAR_PARTICIPANTS",SET_PARTICIPANT:"SET_PARTICIPANT",SET_HEADER_TITLE:"SET_HEADER_TITLE",SET_HEADER_SUB_TITLE:"SET_HEADER_SUB_TITLE",RESET_HISTORY_LOADED_FLAG:"RESET_HISTORY_LOADED_FLAG",SET_ACTIVE_SERVICE:"SET_ACTIVE_SERVICE",INIT_IDLE_DETACH_COUNTDOWN:"INIT_IDLE_DETACH_COUNTDOWN",DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:"DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER",STOP_IDLE_DETACH_COUNTDOWN_COUNTER:"STOP_IDLE_DETACH_COUNTDOWN_COUNTER",CLEAR_IDLE_DETACH_COUNTDOWN:"CLEAR_IDLE_DETACH_COUNTDOWN",INIT_RESUME_CONVERSATION_PROMPT:"INIT_RESUME_CONVERSATION_PROMPT",CLEAR_RESUME_CONVERSATION_PROMPT:"CLEAR_RESUME_CONVERSATION_PROMPT",SET_SERVICE_DATA_ITEM:"SET_SERVICE_DATA_ITEM",SET_FEATURES:"SET_FEATURES",SET_FEATURE_ENABLED_STATE:"SET_FEATURE_ENABLED_STATE",CLEAR_FEATURES:"CLEAR_FEATURES",SET_INITIAL_STATE:"SET_INITIAL_STATE",SET_USER_SELECTED_OPTIONS:"SET_USER_SELECTED_OPTIONS",SET_USER_SELECTED_OPTION:"SET_USER_SELECTED_OPTION",SHOW_OPTION:"SHOW_OPTION",HIDE_OPTION:"HIDE_OPTION",SET_SERVICE_ENTRY_METADATA:"SET_SERVICE_ENTRY_METADATA",SET_BLOCK_AUTO_ENTRY_SWITCH:"SET_BLOCK_AUTO_ENTRY_SWITCH",SET_ACTIVE_ENTRY_TYPE:"SET_ACTIVE_ENTRY_TYPE",SET_USER_ENTRY_TYPE:"SET_USER_ENTRY_TYPE",REGISTER_UPLOAD:"REGISTER_UPLOAD",SET_UPLOAD_PROGRESS:"SET_UPLOAD_PROGRESS",SET_UPLOAD_COMPLETE:"SET_UPLOAD_COMPLETE",SET_UPLOAD_ERROR:"SET_UPLOAD_ERROR",CLEAR_UPLOAD:"CLEAR_UPLOAD",CLEAR_ALL_UPLOADS:"CLEAR_ALL_UPLOADS",SET_SEAMLY_CONTAINER_ELEMENT:"SET_SEAMLY_CONTAINER_ELEMENT"},Yn="navigate",{ADD_EVENT:Jn,CLEAR_EVENTS:Qn,SET_HISTORY:Zn,SET_EVENTS_READ:Xn,ACK_EVENT:tr,SET_IS_LOADING:er,CLEAR_PARTICIPANTS:nr,SET_PARTICIPANT:rr,SET_HEADER_TITLE:or,SET_HEADER_SUB_TITLE:ir,RESET_HISTORY_LOADED_FLAG:ar,SET_ACTIVE_SERVICE:sr,INIT_IDLE_DETACH_COUNTDOWN:cr,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:lr,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:ur,CLEAR_IDLE_DETACH_COUNTDOWN:pr,INIT_RESUME_CONVERSATION_PROMPT:fr,CLEAR_RESUME_CONVERSATION_PROMPT:hr,SET_SERVICE_DATA_ITEM:dr,SET_FEATURES:vr,SET_FEATURE_ENABLED_STATE:yr,CLEAR_FEATURES:gr,SET_INITIAL_STATE:mr,SET_USER_SELECTED_OPTION:br,SET_USER_SELECTED_OPTIONS:_r,SHOW_OPTION:wr,HIDE_OPTION:xr,SET_BLOCK_AUTO_ENTRY_SWITCH:Er,SET_USER_ENTRY_TYPE:Tr,SET_ACTIVE_ENTRY_TYPE:Sr,SET_SERVICE_ENTRY_METADATA:kr,REGISTER_UPLOAD:Or,SET_UPLOAD_PROGRESS:Ar,SET_UPLOAD_COMPLETE:Cr,SET_UPLOAD_ERROR:Ir,CLEAR_UPLOAD:Nr,CLEAR_ALL_UPLOADS:Rr,SET_SEAMLY_CONTAINER_ELEMENT:jr}=Kn,Pr=t=>{let{type:e,payload:n}=t;return e===Nn.message&&!n.fromClient||e===Nn.info&&n.type===Rn},Lr=t=>Tn()(t).call(t,((t,e)=>{let{payload:{occurredAt:n}}=t,{payload:{occurredAt:r}}=e;return n-r})),Dr=(t,e)=>{switch(e.type){case nr:return{participants:{},currentAgent:""};case rr:if(!t)return{participants:{},currentAgent:""};const{participants:n}=t||{participants:{}},{id:r,avatar:o,name:i,introduction:a}=e.participant,s=n[r],c=In(In({},n),{},{[r]:s?In(In(In(In({},s),o?{avatar:o}:{}),i?{name:i}:{}),a?{introduction:a}:{}):e.participant});return In(In({},t),{},{participants:c,currentAgent:t.currentAgent===r||e.fromClient?t.currentAgent:r});default:return t}},Ur=(t,e)=>{switch(e.type){case or:return In(In({},t),{},{title:e.title});case ir:return In(In({},t),{},{subTitle:e.title});default:return t}},Mr=(t,e)=>{const{entry:n}=e,{blockAutoEntrySwitch:r}=t;if(!n)return In(In({},t),{},{optionsOverride:{}});const{type:o,options:i}=n;let a=t.active;return r||o===t.userSelected||(a=o),In(In({},t),{},{active:a,optionsOverride:In(In({},t.optionsOverride),{},{[o]:i||{}})})},$r=(t,e)=>{var n,r,o,i,a,s,c,l,u,p;switch(e.type){case Jn:const{type:f,payload:h}=e.event,d=t.options.features.hasOwnProperty(Gn),v=Mr(t.entryMeta,h);let y=In({},t.options);if(d&&(f===Nn.message||f===Nn.participant)&&!h.fromClient){const{type:t}=h.entry||{};y=In(In({},y),{},{features:In(In({},y.features),{},{uploads:In(In({},y.features.uploads),{},{enabledFromEntry:t===Pn})})})}const g=Pr(e.event),m=An()(n=t.events).call(n,(t=>t.payload.id===h.id));return m?t:In(In({},t),{},{entryMeta:d||v.active!==Pn?v:In({},t.entryMeta),options:y,unreadEvents:g?t.unreadEvents+1:t.unreadEvents,events:[...t.events,In(In({},e.event),{},{payload:In(In({},g&&{messageStatus:h.fromClient?Dn:Ln}),h)})]});case tr:if(!e.event.payload.transactionId)return console.warn("ACK received without transaction ID."),t;const _=An()(r=t.events).call(r,(t=>t.payload.transactionId===e.event.payload.transactionId)),{id:x,occurredAt:E}=e.event.payload;return _?In(In({},t),{},{events:Lr(b()(o=t.events).call(o,(t=>t.payload.id===_.payload.id?In(In({},t),{},{payload:In(In({},t.payload),{},{id:x,occurredAt:E})}):t)))}):t;case Qn:return In(In({},t),{},{unreadEvents:0,events:[]});case Xn:return In(In({},t),{},{unreadEvents:0,events:b()(i=t.events).call(i,(t=>{var n;return-1!==on()(n=e.ids).call(n,t.payload.id)?In(In({},t),{},{payload:In(In({},t.payload),t.payload.messageStatus===Ln&&{messageStatus:Dn})}):t}))});case Zn:const{events:T,participants:S,activeServiceSessionId:k,activeServiceSettings:O={},serviceData:A,resumeConversationPrompt:C}=e.history,I=((t,e)=>{var n;const r=kn()(n=w()(e).call(e,(e=>!(An()(t).call(t,(t=>t.payload.id===e.payload.id))||"participant"===e.type&&!e.payload.participant.introduction)))).call(n);return Lr([...r,...t])})(t.events,T),N=In(In({},t.participantInfo.participants),S),R=An()(a=kn()(s=Gt()(I).call(I)).call(s)).call(a,(t=>("message"===t.type||"participant"===t.type)&&!t.payload.fromClient));let j=null;R&&("message"===R.type&&(j=R.payload.participant),"participant"===R.type&&(j=R.payload.participant.id));const{entry:P,uploads:L}=O,D=Mr(In(In(In({},t.entryMeta),P),{},{active:P.default||Rn,options:In({},P&&P.options?P.options:{})}),I[I.length-1].payload);let U=In({},t.options.features);const M=U.hasOwnProperty(Gn);if(M){const{payload:t}=R,{type:e}=t.entry||{};U=In(In({},U),{},{uploads:{enabled:!(!L||!L.enabled),enabledFromEntry:e===Pn}})}const $=In(In({},t),{},{unreadEvents:w()(I).call(I,(t=>"message"===t.type&&t.payload.messageStatus===Ln)).length,events:w()(I).call(I,(t=>"participant"!==t.type||!!t.payload.participant.introduction)),participantInfo:In(In(In({},t.participantInfo),j?Dr(t.participantInfo,{type:rr,participant:N[j]}):{}),{},{participants:N}),historyLoaded:!0,serviceInfo:In(In({},t.serviceInfo),{},{activeServiceSessionId:k}),serviceData:A||{},options:In(In({},t.options),{},{features:U}),entryMeta:M||D.active!==Pn?D:In({},t.entryMeta),resumeConversationPrompt:C||!1});return j&&($.headerTitles=Ur(t.headerTitles,{type:ir,title:N[j].name})),$;case ar:return In(In({},t),{},{historyLoaded:!1});case er:return In(In({},t),{},{isLoading:e.isLoading});case cr:const{delaySeconds:z,delayTime:F}=e;return In(In({},t),{},{idleDetachCountdown:{hasCountdown:!0,isActive:!0,wasStopped:!1,count:z,remaining:z,timer:F}});case lr:const{idleDetachCountdown:B}=t,{remaining:H}=B,V=H-1;return In(In({},t),{},{idleDetachCountdown:In(In({},t.idleDetachCountdown),{},{remaining:V,timer:dn(V)})});case ur:return In(In({},t),{},{idleDetachCountdown:In(In({},t.idleDetachCountdown),{},{isActive:!1,wasStopped:!0})});case pr:return In(In({},t),{},{idleDetachCountdown:{hasCountdown:!1,isActive:!1}});case fr:return In(In({},t),{},{resumeConversationPrompt:!0});case hr:return In(In({},t),{},{resumeConversationPrompt:!1});case rr:case nr:return In(In({},t),{},{participantInfo:Dr(t.participantInfo,e)});case sr:return t.serviceInfo.activeServiceSessionId!==e.activeServiceSessionId?In(In({},t),{},{serviceInfo:In(In({},t.serviceInfo),{},{activeServiceSessionId:e.activeServiceSessionId})}):t;case or:case ir:return In(In({},t),{},{headerTitles:Ur(t.headerTitles,e)});case mr:return In(In({},t),{},{initialState:e.initialState});case dr:return In(In({},t),{},{serviceData:In(In({},t.serviceData),{},{[e.payload.type]:e.payload})});case vr:return In(In({},t),{},{options:In(In({},t.options),{},{features:e.features})});case yr:return t.options.features.hasOwnProperty(e.key)?In(In({},t),{},{options:In(In({},t.options),{},{features:In(In({},t.options.features),{},{[e.key]:In(In({},t.options.features[e.key]||{}),{},{enabled:e.enabled})})})}):t;case gr:return In(In({},t),{},{options:In(In({},t.options),{},{features:{}})});case wr:return In(In({},t),{},{options:In(In({},t.options),{},{panelActive:!0,optionActive:e.optionName})});case xr:return In(In({},t),{},{options:In(In({},t.options),{},{panelActive:!1,optionActive:""})});case _r:return In(In({},t),{},{options:In(In({},t.options),{},{userSelectedOptions:e.options})});case br:const{option:q,value:W}=e;return In(In({},t),{},{options:In(In({},t.options),{},{userSelectedOptions:In(In({},t.options.userSelectedOptions),{},{[q]:W})})});case Er:const{value:G}=e;return In(In({},t),{},{entryMeta:In(In({},t.entryMeta),{},{blockAutoEntrySwitch:G})});case kr:const{entryMeta:K}=e;return In(In({},t),{},{entryMeta:In(In(In({},t.entryMeta),K),{},{active:K.default,options:In({},K.options||{}),overrideOptions:{}})});case Sr:const{entryType:Y}=e;return In(In({},t),{},{entryMeta:In(In({},t.entryMeta),{},{active:Y})});case Tr:const{entryType:J}=e;return In(In({},t),{},{entryMeta:In(In({},t.entryMeta),{},{userSelected:J})});case Or:return In(In({},t),{},{currentUploads:[...t.currentUploads,{id:e.fileId,name:e.fileName,progress:1,uploading:!0,complete:!1,error:"",uploadHandle:e.uploadHandle}]});case Ar:return In(In({},t),{},{currentUploads:b()(c=t.currentUploads).call(c,(t=>t.id===e.fileId?In(In({},t),{},{progress:e.progress,uploading:100!==e.progress,uploadHandle:100===e.progress?null:t.uploadHandle}):t))});case Ir:return In(In({},t),{},{currentUploads:b()(l=t.currentUploads).call(l,(t=>t.id===e.fileId?In(In({},t),{},{error:e.errorText,progress:0,uploading:!1,uploadHandle:null}):t))});case Cr:return In(In({},t),{},{currentUploads:b()(u=t.currentUploads).call(u,(t=>t.id===e.fileId?In(In({},t),{},{complete:!0}):t))});case Nr:return In(In({},t),{},{currentUploads:w()(p=t.currentUploads).call(p,(t=>t.id!==e.fileId))});case Rr:return In(In({},t),{},{currentUploads:[]});case jr:return In(In({},t),{},{seamlyContainerElement:e.element});default:return t}};var zr=n(3476),Fr=n.n(zr);const{createAction:Br,createThunk:Hr,createReducer:Vr,selectState:qr}=oe("i18n"),Wr=ge(qr,(t=>t.translations)),Gr=ge(qr,(t=>t.initialLocale)),Kr=ge(qr,(t=>t.locale)),Yr=Br("setInitialLocale",(t=>({locale:t}))),Jr=function(){let t=!1;const e=[],n=async()=>{if(!t)for(;e.length;){const n=e.shift();t=!0,await n().catch((()=>{})),t=!1}};return{next:n,runExclusively:async t=>{const r=new(Fr())(((n,r)=>{e.push((async()=>{try{n(await t())}catch(t){r(t)}}))}));return n(),r}}}(),Qr=Hr("setLocale",(async(t,e)=>{let{getState:n,extra:{api:r}}=e;return Jr.runExclusively((()=>{if(t!==Kr(n()))return r.getTranslations(t)}))})),{createActions:Zr,createReducer:Xr,selectState:to}=oe("translations"),[eo,no]=Zr("translate",{enable:t=>({locale:t}),disable:()=>({})}),[ro,oo]=Zr("event",{enable:t=>({payloadId:t}),disable:t=>({payloadId:t})}),{createAction:io,createThunk:ao,createReducer:so,selectState:co}=oe("app"),lo=ge(co,(t=>t.userHasResponded));function uo(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function po(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=uo(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=uo(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const fo=t=>t.state,ho=()=>We(fo),vo=ge(fo,xe,lo,((t,e,n)=>{var r;let{events:o,serviceData:i}=t;if(n||"inline"===e.layoutMode||!i.suggestion||null===(r=i.suggestion)||void 0===r||!r.body.length)return o;const a={type:"service_data",payload:i.suggestion};return[...o,a]})),yo=ge(vo,xe,((t,e)=>{var n;const{enabled:r,threshold:o}=(null==e||null===(n=e.messages)||void 0===n?void 0:n.timeIndicator)??{};if(!r)return t;const i=[];let a=null;return E()(t).call(t,((t,e)=>{if(0===e)i.push(po(po({},t),{},{timeIndicator:t.payload.occurredAt}));else{const e=a&&hn(t.payload.occurredAt-a.payload.occurredAt)>=o?t.payload.occurredAt:void 0;i.push(po(po({},t),{},{timeIndicator:e}))}a=t})),i})),go=()=>We(yo,[]),mo=()=>ho().headerTitles,bo=()=>ho().unreadEvents,_o=()=>ho().skiplinkTargetId,wo=ge(yo,(t=>{var e;const n=w()(t).call(t,(t=>"message"===t.type));return null===(e=n[n.length-1])||void 0===e?void 0:e.payload.id})),xo=()=>{const{participants:t,currentAgent:e}=ho().participantInfo;return e?t[e]:null},Eo=t=>ho().serviceData[t],To=()=>{const{layoutMode:t}=Ke();return{isInline:"inline"===t,isWindow:"window"===t,isResolving:!t}},{createAction:So,createActions:ko,createThunk:Oo,createReducer:Ao,selectState:Co}=oe("visibility"),Io=t=>{let{hasResponded:e,previousVisibility:n,requestedVisibility:r,config:o}=t;const{defaults:i,layoutMode:a,hideOnNoUserResponse:s}=o,{visible:c}=i||{};if("window"===a&&s&&r!==be.open)return e?r||n||be.open:be.hidden;if("inline"===a&&e&&!r)return n||be.open;const l=be.minimized;return r||n||c||l},No=ge(Co,(t=>t.visibility));function Ro(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function jo(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Ro(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Ro(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Po=So("setFromStorage",(t=>({visibility:t}))),Lo=[be.open,be.minimized,be.hidden],Do=Oo("set",((t,e)=>{let{getState:n,extra:{api:r,eventBus:o}}=e;const i=n(),a=No(i),s=lo(i),c=r.hasConversation(),l=xe(i),{visibilityCallback:u=Io,layoutMode:p}=l,{unreadEvents:f}=fo(i),h=u({hasConversation:c,hasResponded:s,previousVisibility:a,requestedVisibility:t,config:l});if(ln()(Lo).call(Lo,h)){if(a!==h)return r.store.set(me,jo(jo({},r.store.get(me)||{}),{},{[p]:t})),t&&o.emit("ui.visible",t,{visibility:t,hasConversation:c,hasResponded:s,unreadMessageCount:f}),h}else console.error('The visibilityCallback function should return "open", "minimized" or "hidden".')})),Uo=Oo("initialize",(async(t,e)=>{var n;let{dispatch:r,getState:o,extra:{api:i}}=e;const{layoutMode:a}=xe(o()),s=null===(n=i.store.get(me))||void 0===n?void 0:n[a];s&&r(Po(s)),r(Do(be.initialize))}));class Mo extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,Mo),this.name="SeamlyUnavailableError",this.langKey="errors.seamlyUnavailable"}}var $o=n(1611),zo=n.n($o);class Fo extends Error{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(...n),Error.captureStackTrace&&Error.captureStackTrace(this,zo()(this)),this.originalError=t,null!=t&&t.payload&&(this.originalEvent=t,this.originalError=t.payload.error,this.message=`Event of type ${t.payload.type} encountered`),null!=t&&t.error&&(this.originalError=t.error)}}class Bo extends Fo{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(t,...n),this.name="SeamlySessionExpiredError",this.action="reset"}}const{createAction:Ho,createReducer:Vo,selectState:qo}=oe("interrupt"),Wo=Ho("set",(t=>({error:t}))),Go=Ho("clear"),Ko=io("setHasResponded",(t=>({hasResponded:t}))),Yo=ao("initialize",(async(t,e)=>{var n;let{dispatch:r,extra:{api:o,config:i}}=e;r(le(i));let a=null==i||null===(n=i.context)||void 0===n?void 0:n.locale;try{const{features:t,defaultLocale:e,preChat:n,agentParticipant:i,userParticipant:s,startChatIcon:c}=await o.getConfig();r({type:Kn.SET_FEATURES,features:t}),a=a||e,r(Yr(a)),r(pe(b()(n).call(n,(t=>({type:"message",payload:t}))))),r(ue({agentParticipant:i,userParticipant:s,startChatIcon:c})),null!=i&&i.name&&r({type:Kn.SET_HEADER_SUB_TITLE,title:i.name})}catch(t){throw new Mo}try{if(o.hasConversation()){var s;const t=await o.getConversationIntitialState();r({type:Kn.SET_INITIAL_STATE,initialState:t}),a=(null===(s=t.translation)||void 0===s?void 0:s.locale)||a,"userResponded"in t&&r(Ko(t.userResponded))}else{var c,l;null!=i&&null!==(c=i.context)&&void 0!==c&&c.topic&&o.send("action",{type:Fn,body:{name:i.context.topic,fallbackMessage:i.context.topic}}),null!=i&&null!==(l=i.context)&&void 0!==l&&l.translationLocale&&(a=i.context.translationLocale,o.send("action",{type:Bn,body:{enabled:!0,locale:a}}),r(eo(a)))}}catch(t){if(t instanceof Bo)throw t;throw new Mo}finally{await r(Qr(a)),r(Uo())}})),Jo=ao("reset",(async(t,e)=>{let{dispatch:n,extra:{api:r}}=e;try{await r.disconnect(),await r.clearStore(),n(Yo())}catch(t){n(Wo(t))}})),Qo=["messages"];function Zo(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xo(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Zo(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Zo(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const ti=Xo(Xo({},{namespace:"default",layoutMode:"window",messages:{agent:{showAvatar:!1,showName:!1},user:{showAvatar:!1,showName:!1},timeIndicator:{enabled:!1,threshold:36e5}}}),{},{hideOnNoUserResponse:!1,showDisclaimer:!1,showFaq:!1,customComponents:{},defaults:{},preChatEvents:[]}),ei=["hideOnNoUserResponse","showDisclaimer","showFaq","namespace","customComponents","defaults","layoutMode","api","zIndex","context","appContainerClassNames","messages","visible","visibilityCallback","errorCallback","agentParticipant","userParticipant","startChatIcon"],ni=(t,e)=>{let{config:n}=e;const r=((t,e)=>sn()(e).call(e,((e,n)=>(n in t&&(e[n]=t[n]),e)),{}))(n,ei),{messages:o}=r,i=L(r,Qo);let a=t;return S()(i).length>0&&(a=Xo(Xo({},a),i)),o&&(a=Xo(Xo({},a),{},{messages:Xo(Xo({},a.messages),o)})),a};var ri=se({[le]:(t,e)=>ni(t,e),[ue]:(t,e)=>ni(t,e),[Yo.pending]:()=>ti,[pe]:(t,e)=>{let{events:n}=e;return Xo(Xo({},t),{},{preChatEvents:n})}},ti),oi=n(6423),ii=n.n(oi);const ai=function(){for(var t,e,n,r,o,i,a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return b()(t=w()(e=ii()(n=b()(r=w()(o=b()(i=ii()(s).call(s)).call(i,(t=>{var e;return"object"==typeof t?b()(e=N()(t)).call(e,(t=>{let[e,n]=t;return n?e:""})).join(" "):t}))).call(o,(t=>"string"==typeof t))).call(r,(t=>t.split(" ")))).call(n)).call(e,(t=>t.length))).call(t,(t=>on()(t).call(t,Je)>-1?t:[Je,t].join("-"))).join(" ")},si=yt(null),ci=yt(""),li=()=>Ut(si),ui=()=>li().store||{},pi=()=>{const{get:t}=ui();return t?t("conversationUrl"):null},fi=()=>!!pi();var hi=qe;const di=()=>Ke().appContainerClassNames,vi=t=>{const{fromClient:e}=t.payload,n=["message"];return"info"===t.type?n.push("message--source-info"):e?n.push("message--source-user"):n.push("message--source-agent"),n};function yi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function gi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return yi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yi(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _i(t){return t.reduce((function(t,e){return t.concat(Array.isArray(e)?_i(e):e)}),[])}function wi(t){var e={};return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.length?r.map((function(t){return null===t?"null":void 0===t?"undefined":"function"==typeof t?t.toString():t instanceof Date?t.toISOString():JSON.stringify(t)})).join("|"):"_(no-args)_";if(Object.prototype.hasOwnProperty.call(e,i))return e[i];var a=t.apply(void 0,r);return e[i]=a,a}}function xi(t){for(var e=function(t){return/\s/.test(t)},n=[],r={},o=0,i=null,a=!1,s=0;s<t.length;){if(a&&(e(t[s])||"{"===t[s]))a=!1,i=t.slice(o,s),"{"===t[s]&&s--;else if(!a&&!e(t[s])){var c="{"===t[s];if(i&&c){var l=Ei(t,s);if(-1===l)throw new Error('Unbalanced curly braces in string: "'.concat(t,'"'));r[i]=t.slice(s+1,l),s=l,i=null}else i&&(n.push(i),i=null),a=!0,o=s}s++}return a&&(i=t.slice(o)),i&&n.push(i),{args:n,cases:r}}function Ei(t,e){for(var n=0,r=e+1;r<t.length;r++){var o=t.charAt(r);if("}"===o){if(0===n)return r;n--}else"{"===o&&n++}return-1}function Ti(t){return Si(t.slice(1,-1),",",3)}function Si(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(!t)return r;if(1===n)return r.push(t),r;var o=t.indexOf(e);if(-1===o)return r.push(t),r;var i=t.substring(0,o).trim(),a=t.substring(o+e.length+1).trim();return r.push(i),Si(a,e,n-1,r)}var ki,Oi=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};mi(this,t),Ie(this,"format",wi((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _i(n.process(t,e)).join("")}))),this.locale=e,this.typeHandlers=r}var e,n;return e=t,n=[{key:"process",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return[];var n=t.indexOf("{");if(-1!==n){var r=Ei(t,n);if(-1===r)throw new Error('Unbalanced curly braces in string: "'.concat(t,'"'));var o=t.substring(n,r+1);if(o){var i=[],a=t.substring(0,n);a&&i.push(a);var s=Ti(o),c=gi(s,3),l=c[0],u=c[1],p=c[2],f=e[l];null==f&&(f="");var h=u&&this.typeHandlers[u];i.push(h?h(f,p,this.locale,e,this.process.bind(this)):f);var d=t.substring(r+1);return d&&i.push(this.process(d,e)),i}}return[t]}}],n&&bi(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ai(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ci(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ai(Object(n),!0).forEach((function(e){Ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ii=0,Ni="other";function Ri(t,e){for(var n=0,r="",o=0,i={};n<t.length;){if("#"!==t[n]||o)r+=t[n];else{var a="__hashToken".concat(Ii++);r+="{".concat(a,", number}"),i[a]=e}"{"===t[n]?o++:"}"===t[n]&&o--,n++}return{caseBody:r,numberValues:i}}var ji="other";const Pi=new Oi("en-GB",{plural:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=xi(e),a=i.args,s=i.cases,c=parseInt(t);a.forEach((function(t){t.startsWith("offset:")&&(c-=parseInt(t.slice("offset:".length)))}));var l=[];if("PluralRules"in Intl){void 0!==ki&&ki.resolvedOptions().locale===n||(ki=new Intl.PluralRules(n));var u=ki.select(c);u!==Ni&&l.push(u)}1===c&&l.push("one"),l.push("=".concat(c),Ni);for(var p=0;p<l.length;p++){var f=l[p];if(f in s){var h=Ri(s[f],c),d=h.caseBody,v=h.numberValues;return o(d,Ci(Ci({},r),v))}}return t},select:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=xi(e),i=o.cases;return t in i?r(i[t],n):ji in i?r(i.other,n):t}});function Li(){const t=We(Wr),e=We(Kr),n=We(Gr),r=Dt((function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t[n];return o?Pi.format(o,r):(console.warn(`Translation key: ${n} is missing in locale: ${e}`),null)}),[t,e]);return{t:r,locale:e,initialLocale:n}}function Di(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ui(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Di(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Di(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Mi={translations:{"errors.configError.message":"We are sorry this happened, please retry at a later time.","errors.configError.srText":"A chat configuration error occurred. Our apologies, please retry at a later time.","errors.configError.title":"Chat configuration error.","errors.general.buttonText":"Restart chat","errors.general.message":"Do you want to start a new chat session?","errors.general.srText":"Something went wrong with the chat session. You can restart the chat.","errors.general.title":"Something went wrong","errors.seamlyOffline.message":"There might be a problem with your or our network connection. The chat session should resume as soon the connection is available again.","errors.seamlyOffline.srText":"The chat has connection issues. There might be a problem with your or our network connection. The chat session should resume as soon as the connection is available again.","errors.seamlyOffline.title":"Connection issues","errors.seamlyUnavailable.buttonText":"Try again","errors.seamlyUnavailable.message":"The server could not be reached. Try again in a little while.","errors.seamlyUnavailable.srText":"The chat server could not be reached. Try again in a little while.","errors.seamlyUnavailable.title":"Server unavailable"},isLoading:!1,initialLocale:void 0};var $i=Vr({[Yr]:(t,e)=>{let{locale:n}=e;return Ui(Ui({},t),{},{initialLocale:n})},[Qr.pending]:t=>Ui(Ui({},t),{},{isLoading:!0}),[Qr.fulfilled]:(t,e)=>{var n,r;let{payload:o,meta:{arg:i}}=e;return Ui(Ui({},t),{},o?{isLoading:!1,locale:i,translations:sn()(n=Tn()(r=S()(o)).call(r)).call(n,((t,e)=>Ui(Ui({},t),{},{[e]:o[e]})),{})}:{isLoading:!1})},[Qr.rejected]:t=>Ui(Ui({},t),{},{isLoading:!1}),[Yo.pending]:()=>Mi},Mi);const{SET_SEAMLY_CONTAINER_ELEMENT:zi}=Kn,Fi=t=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{const e="string"==typeof t?document.getElementById(t):t;wn(e)}))}))},Bi=()=>{const{seamlyContainerElement:t}=ho(),e=hi();return[t,Dt((t=>{e({type:zi,element:t})}),[e])]},Hi=t=>Dt((()=>{Fi(t)}),[t]),Vi=()=>{const t=_o();return Hi(t)};function qi(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wi(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=qi(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=qi(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const{SET_USER_SELECTED_OPTION:Gi,SET_USER_SELECTED_OPTIONS:Ki,SHOW_OPTION:Yi,HIDE_OPTION:Ji}=Kn,Qi=()=>{var t,e;const{t:n}=Li(),{options:r}=ho(),{panelActive:o,optionActive:i,userSelectedOptions:a,features:s}=r,{cobrowsing:c,sendTranscript:l}=s,u={cobrowsing:c,sendTranscript:l},p=b()(t=w()(e=S()(u)).call(e,(t=>u[t]))).call(t,(t=>({name:t,title:n(`options.${t}.menuTitle`),available:u[t].enabled}))),f=c||l,h=hi(),{get:d,set:v}=ui();return{allowOptionSelection:f,userSelectedOptions:a,features:s,menuOptions:p,initUserSelectedOptions:Dt((()=>{const t=d("options")||{};h({type:Ki,options:t})}),[d,h]),setUserSelectedOptions:Dt((t=>{h({type:Ki,options:t}),v("options",t)}),[v,h]),setUserSelectedOption:Dt(((t,e)=>{const n=d("options")||{};v("options",Wi(Wi({},n),{},{[t]:e})),h({type:Gi,option:t,value:e})}),[h,d,v]),showOption:t=>{h({type:Yi,optionName:t})},hideOption:()=>{h({type:Ji})},panelActive:o,optionActive:i}},Zi=()=>{const{optionsButtonId:t}=ho();return{id:t,focusButton:Hi(t)}};var Xi=n(62),ta=n.n(Xi),ea=yt({});function na(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ra(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=na(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=na(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const{CLEAR_ALL_UPLOADS:oa}=Kn,ia=()=>{const{showFileUpload:t,entryMeta:{options:e,optionsOverride:n},options:{features:{uploads:r}}}=ho(),{allowedMimeTypes:o,maxSize:i}=n.upload||{},{enabled:a,enabledFromEntry:s}=r||{},{allowedMimeTypes:c,maxSize:l}=ra(ra(ra({},e.upload||{allowedMimeTypes:[],maxSize:0}),o?{allowedMimeTypes:o}:{}),i?{maxSize:i}:{});return{showFileUpload:t,accountAllowsUploads:!!r,serviceAllowsUploads:s||a,allowedMimeTypes:c,maxSize:l}},aa=()=>{const{currentUploads:t}=ho(),e=hi(),n=Ut(ea);return{uploadFile:Dt((t=>{n(t)}),[n]),clearUploads:Dt((()=>{e({type:oa})}),[e]),currentUploads:t,isUploading:C()(t).call(t,(t=>t.uploading)),isComplete:ta()(t).call(t,(t=>t.complete))}};var sa=n(5843),ca=n.n(sa);const la=ge(qo,(t=>{let{error:e}=t;return e}));function ua(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function pa(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=ua(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=ua(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function fa(){const{t:t}=Li(),e=We(la);return{hasInterrupt:Boolean(e),meta:Lt((()=>{if(!e)return{};const{langKey:n,action:r}=e,o=t(`${n}.title`),i=t(`${n}.message`),a=t(`${n}.srText`),s=t(`${n}.buttonText`);return pa(pa(pa(pa({},n?{title:o,message:i,srText:a}:{}),r?{action:r}:{}),r&&n?{buttonText:s}:{}),{},{originalError:e})}),[t,e]),error:e}}class ha extends Fo{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(t,...n),this.name="SeamlyGeneralError",this.langKey="errors.general",this.action="reset"}}class da extends Fo{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(t,...n),this.name="SeamlyConfigurationError",this.langKey="errors.configError"}}class va extends Fo{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(t,...n),this.name="SeamlyOfflineError",this.langKey="errors.seamlyOffline"}}class ya extends Fo{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(t,...n),this.name="SeamlyUnauthorizedError",this.langKey="errors.general",this.action="reset"}}const ga=[ha,da,Bo,va,ya,Mo];function ma(t){let{api:e}=t;return()=>t=>n=>{const{error:r}=n;if(r){if(!C()(ga).call(ga,(t=>r instanceof t)))throw r;"reset"===r.action&&e.disconnect().then((()=>{e.clearStore()}))}return t(n)}}function ba(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function _a(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=ba(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=ba(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const wa={error:void 0},xa=(t,e)=>{let{error:n}=e;return _a(_a({},t),{},{error:n})};var Ea=Vo({[Wo]:xa,[Yo.rejected]:xa,[Go]:()=>wa,[Yo.pending]:()=>wa},wa);function Ta(){return We(lo)}const Sa=()=>{const t=qe(),e=We(No);return{isVisible:!!e&&e!==be.hidden,isOpen:e===be.open,isMinimized:e===be.minimized,visible:e,setVisibility:Dt((e=>t(Do(e))),[t])}};function ka(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Oa(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=ka(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=ka(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Aa={visibility:be.initialize};var Ca=Ao({[Po]:(t,e)=>{let{visibility:n}=e;return Oa(Oa({},t),{},{visibility:n})},[Do.fulfilled]:(t,e)=>{let{payload:n}=e;return n?Oa(Oa({},t),{},{visibility:n}):t}},Aa);const Ia=()=>{const[t]=It((()=>Jt()));return t},Na=t=>{const e=Pt();e.current=t;const n="function"==typeof t;return Lt((()=>n?function(){return e.current(...arguments)}:void 0),[n])};function Ra(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ja(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Ra(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Ra(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const{ADD_EVENT:Pa,SET_INITIAL_STATE:La}=Kn;var Da=()=>{const t=li(),e=Ke(),n=hi(),r=Ut(ci),o=Ta(),i=fi(),{visible:a}=Sa(),s=bo(),c=Dt((function(){r.emit(...arguments)}),[r]),l=Na((()=>{t.sendContext(e.context||{}),c("ui.beforeStart",{visibility:a,hasConversation:i,hasResponded:o,unreadMessageCount:s}),t.send("start"),c("ui.start",{visibility:a,hasConversation:i,hasResponded:o,unreadMessageCount:s})})),u=Dt((async()=>{n(Jo())}),[n]),p=Dt((t=>({type:t,id:Jt(),transactionId:Jt(),participant:Ze,fromClient:!0,occurredAt:1e3*Yt()(),meta:{}})),[]),f=Dt((t=>ja(ja({},p("text")),{},{body:{text:t}})),[p]),h=Dt((e=>{let{body:r,config:o={}}=e;if(""===ca()(r).call(r))return;const i=ja(ja({},f(r)),o);t.send("message",i),c("message",i),n({type:Pa,event:{type:"message",payload:i}})}),[t,n,c,f]),d=Dt((t=>{n({type:Pa,event:{type:"message",payload:f(t)}})}),[n,f]),v=Dt(((t,e,r,o,i,a,s)=>{n({type:Pa,event:{type:"message",payload:{type:"upload",id:t,transactionId:e,participant:Ze,fromClient:!0,occurredAt:r,meta:{},body:{contentType:o,filename:i,filesize:a,url:s}}}})}),[n]),y=Dt((t=>{const e={body:{subtype:t,type:"divider"},fromClient:!1,fromHistory:!0,id:Jt(),transactionId:Jt(),type:"divider"};n({type:Pa,event:{type:"info",payload:e}})}),[n]),g=Dt((e=>{let{type:n,subtype:r}=e;const o={type:n,subtype:r,id:Jt(),transactionId:Jt(),participant:Ze,fromClient:!0};t.send("info",o)}),[t]),m=Dt((e=>{if(!e)return;t.send("action",e);const{type:n}=e;n!==Mn&&n!==$n&&c(`action.${n}`,e)}),[t,c]),b=Dt((e=>{t.sendContext(e)}),[t]),_=Dt((()=>t.connected?Fr().reject(new Error("The API is already connected")):t.connect().then((t=>{t&&n({type:La,initialState:t})})).catch((t=>{n(Wo(t))}))),[t,n]);return{connect:_,start:l,sendMessage:h,sendInfo:g,sendAction:m,sendContext:b,reset:u,emitEvent:c,addMessageBubble:d,addUploadBubble:v,addDivider:y,apiConfigReady:t.configReady}};const Ua=yt(null),Ma=()=>{const t=Ut(Ua);return{sendPolite:Dt((e=>{t({ariaLive:qn,messageText:e})}),[t]),sendAssertive:Dt((e=>{t({ariaLive:Vn,messageText:e})}),[t])}};var $a=yt(null),za=()=>Ut($a),Fa=n(1581),Ba=n.n(Fa);function Ha(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const{SET_BLOCK_AUTO_ENTRY_SWITCH:Va,SET_ACTIVE_ENTRY_TYPE:qa,SET_USER_ENTRY_TYPE:Wa}=Kn,Ga=()=>{const{default:t,active:e,userSelected:n,options:r}=ho().entryMeta,o=hi(),i=n||e||t,a=r[i]||{},s=Dt((t=>{o({type:Va,value:t})}),[o]),c=Dt((t=>{o({type:qa,entryType:t})}),[o]),l=Dt((t=>{o({type:Wa,entryType:t})}),[o]),u=Dt((()=>{n?l(null):c(t)}),[n,t,l,c]);return{activeEntry:i,activeEntryOptions:a,setActiveEntryType:c,setUserEntryType:l,cancelEntrySelection:u,setBlockAutoEntrySwitch:s}},{SET_IS_LOADING:Ka}=Kn;var Ya=()=>{const{t:t}=Li(),{layoutMode:e}=Ke(),{isOpen:n,isVisible:r,setVisibility:o}=Sa(),i=hi(),a=go(),s=Pt(null),{start:c,connect:l,apiConfigReady:u}=Da(),p=fi(),f=Pt(null),h=Pt(null),{sendAssertive:d}=Ma(),v=Pt(!1),y=a.length>0;return Rt((()=>{r&&tn()((()=>{d(t("window.srTexts.onLoad"))}),500)}),[r,d,t]),Rt((()=>{if(r!==h.current)return f.current=n,void(h.current=r);null!==f.current&&d(t(n?"window.srTexts.onOpen":"window.srTexts.onClose")),f.current=n,h.current=r}),[n,r,d,t]),Rt((()=>{s.current=tn()((()=>{i({type:Ka,isLoading:!0})}),500)}),[i]),Rt((()=>{y&&(clearTimeout(s.current),i({type:Ka,isLoading:!1}))}),[y,i]),Rt((()=>{p&&u||(v.current=!1)}),[p,u]),Rt((()=>{("window"!==e||n||p)&&!v.current&&u&&(p&&(clearTimeout(s.current),i({type:Ka,isLoading:!1})),l().then((()=>{c()})),v.current=!0)}),[n,p,u,c,l,i,e]),{openChat:()=>{o(be.open)},closeChat:()=>{o(be.minimized)}}};function Ja(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qa(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Ja(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Ja(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const{CLEAR_IDLE_DETACH_COUNTDOWN:Za,INIT_IDLE_DETACH_COUNTDOWN:Xa,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:ts,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:es}=Kn;var ns=()=>{const t=hi(),{idleDetachCountdown:e}=ho(),{isOpen:n}=Sa(),r=Pt({});r.current={hasCountdown:e.hasCountdown,isActive:e.isActive,remaining:e.remaining,wasStopped:e.wasStopped,isOpen:n};const{emitEvent:o,sendAction:i}=Da(),{t:a}=Li(),{sendAssertive:s,sendPolite:c}=Ma(),l=Dt((t=>{const{isOpen:e}=r.current;e&&s(t)}),[s]),u=Dt((t=>{const{isOpen:e}=r.current;e&&c(t)}),[c]),p=Dt((e=>{const n=(t=>Math.ceil(t/1e3))(e),r=dn(n);t({type:Xa,delaySeconds:n,delayTime:r}),o("idleTimer.start"),l(`${a("idleDetachWarning.countdownTitle")} ${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",r)}`)}),[t,o,l,a]),f=Dt(((e,n)=>{const{hasCountdown:s,wasStopped:c}=r.current;s&&(e||(n||i({type:zn}),l(a("idleDetachWarning.notifyTransferText"))),c||o("idleTimer.stop"),t({type:Za}))}),[t,i,o,l,a]),h=Dt((()=>{const{remaining:e}=r.current;if(e<=0)return;const n=e-1;n%10==0&&l(`${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",dn(n))}`),t({type:ts})}),[t,l,a]),d=Dt((()=>{const{isActive:e,remaining:n}=r.current;e&&(t({type:es}),n&&(o("idleTimer.stop"),u(a("idleDetachWarning.srCountDownStoppedText"))))}),[t,o,u,a]);return Qa(Qa({},e),{},{initCountdown:p,endCountdown:f,decrementCountdown:h,stopCountdown:d})};const{CLEAR_RESUME_CONVERSATION_PROMPT:rs}=Kn;var os=()=>{const t=hi(),e=ho().resumeConversationPrompt,{sendAction:n}=Da(),{t:r}=Li(),{sendAssertive:o}=Ma();return{continueChat:()=>{n({type:"dismiss",body:{type:"resume_conversation_prompt"}}),t({type:rs})},hasPrompt:e,restartChat:()=>{o(r("resumeConversationPrompt.srNotifyRestartText")),n({type:zn}),t({type:rs})}}};const is=(t,e)=>{const n=li();Rt((()=>{var r;n.stream&&(e?w()(r=n.stream()).call(r,e).subscribe({next:t}):n.stream().subscribe({next:t}))}),[n,t,e])};function as(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ss(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=as(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=as(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var cs=so({[Ko]:(t,e)=>{let{hasResponded:n}=e;return ss(ss({},t),{},{userHasResponded:n})}},{userHasResponded:!1});const ls=(t,e)=>(n,r)=>r[t]||e,us=to,ps=ge(us,(t=>t.originalPayloadIds)),fs=ge(ps,ls("payloadId"),((t,e)=>!ln()(t).call(t,e)));function hs(){const{sendAction:t}=Da(),e=qe(),n=Na((n=>{t({type:Bn,body:{enabled:!0,locale:n}}),e(eo(n))})),r=Na((()=>{t({type:Bn,body:{enabled:!1}}),e(no())})),{languages:o,isActive:i,isAvailable:a,currentLocale:s}=We(us,[]);return{languages:o,isActive:i,isAvailable:a,currentLocale:s,enableTranslations:n,disableTranslations:r}}function ds(){var t,e,n;let{payload:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=null==r?void 0:r.id;let i,a;"participant"===(null==r?void 0:r.type)?(i=r.participant.introduction,a=r.participant.translatedIntroduction):(i=null==r?void 0:r.body,a=null==r?void 0:r.translatedBody);const s=!!a,c=Ge(fs,{payloadId:o},[o]),l=qe(),u=Na((()=>{l(c?oo(o):ro(o))}));return[s&&c?null===(t=a)||void 0===t?void 0:t.data:i,{hasTranslation:s,isTranslated:c&&s,toggleTranslation:u,translatedBy:null===(e=a)||void 0===e?void 0:e.translatedBy,locale:null===(n=a)||void 0===n?void 0:n.locale}]}function vs(){const t=We(us,[]).containerId;return{id:t,focusContainer:Hi(t)}}function ys(t){const{languages:e}=hs();return Lt((()=>{var n;return null==e||null===(n=An()(e).call(e,(e=>e.locale===t)))||void 0===n?void 0:n.nativeName}),[t,e])}function gs(){return t=>{let{dispatch:e,getState:n}=t;return t=>r=>{var o,i,a,s,c,l,u;const p=t(r);switch(r.type){case String(Kn.SET_HISTORY):null!==(o=r.history)&&void 0!==o&&null!==(i=o.translation)&&void 0!==i&&i.enabled&&e(eo(r.history.translation.locale));break;case String(Kn.SET_INITIAL_STATE):null!==(a=r.initialState)&&void 0!==a&&null!==(s=a.translation)&&void 0!==s&&s.enabled&&(e(eo(r.initialState.translation.locale)),e(Qr(r.locale)));break;case String(Kn.ADD_EVENT):"info"===r.event.type&&"new_translation"===(null===(c=r.event)||void 0===c||null===(l=c.payload)||void 0===l||null===(u=l.body)||void 0===u?void 0:u.subtype)&&r.event.payload.body.translationEnabled&&e(Qr(r.event.payload.body.translationLocale));break;case String(no):const t=Gr(n());e(Qr(t))}return p}}}function ms(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function bs(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=ms(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=ms(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const _s={isActive:!1,currentLocale:void 0,isAvailable:!1,languages:[],originalPayloadIds:[],containerId:Jt()};var ws=Xr({[Kn.SET_FEATURES]:(t,e)=>{var n;const r=null==e||null===(n=e.features)||void 0===n?void 0:n.translation;return r?bs(bs({},t),{},{isAvailable:!0===r.enabled,languages:r.languages||[]}):t},[Kn.CLEAR_FEATURES]:()=>_s,[eo]:(t,e)=>{let{locale:n}=e;return bs(bs({},t),{},{isActive:!0,currentLocale:n})},[no]:t=>bs(bs({},t),{},{isActive:!1,currentLocale:void 0}),[ro]:(t,e)=>{var n,r;let{payloadId:o}=e;return ln()(n=t.originalPayloadIds).call(n,o)?bs(bs({},t),{},{originalPayloadIds:w()(r=t.originalPayloadIds).call(r,(t=>t!==o))}):t},[oo]:(t,e)=>{var n;let{payloadId:r}=e;return ln()(n=t.originalPayloadIds).call(n,r)?t:bs(bs({},t),{},{originalPayloadIds:[...t.originalPayloadIds,r]})},[Yo.pending]:()=>_s},_s);const xs={send32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M6.714,14.985l17.837-7.906c0.681-0.302,1.414,0.301,1.25,1.027L22.273,23.59\tc-0.13,0.566-0.751,0.865-1.275,0.613l-3.623-1.752l-2.334,2.287c-0.572,0.562-1.538,0.156-1.538-0.645V21.01\tc0-0.217,0.078-0.43,0.222-0.594l7.676-8.841l-10.414,7.472l-4.351-2.445C5.987,16.236,6.033,15.287,6.714,14.985L6.714,14.985z"/></svg>',balloon32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M24,10.824v10.375c0,1.104-0.896,2-2,2h-4.694l-4.931,3.625v-3.625H10c-1.104,0-2-0.896-2-2V10.824\tc0-1.104,0.896-2,2-2h12C23.104,8.824,24,9.719,24,10.824z"/></svg>',newTopic32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><path fill="#4A48C1" d="M16,8.593l2.407,4.573l5.093,0.876l-3.604,3.702l0.74,5.115L16,20.574l-4.634,2.285l0.739-5.115L8.5,14.042\tl5.094-0.876L16,8.593z"/></svg>',newTranslation16:'<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 16 16"><path fill="#4A48C1" d="M8,0C3.6,0,0,3.6,0,8s3.6,8,8,8s8-3.6,8-8S12.4,0,8,0z M14.1,7.1h-1.4c-0.1-1.5-0.4-2.9-1-4\tC13,4,13.9,5.4,14.1,7.1z M7.1,2.1v5H5C5.2,4.7,6.1,2.9,7.1,2.1z M7.1,8.9v5c-1-0.7-1.9-2.5-2.1-5H7.1z M8.9,13.9v-5H11\tC10.8,11.3,9.9,13.2,8.9,13.9z M8.9,7.1v-5c1,0.7,1.9,2.5,2.1,5H8.9z M4.2,3.1c-0.5,1.1-0.9,2.5-1,4H1.9C2.1,5.4,3,4,4.2,3.1z M1.9,8.9h1.4c0.1,1.5,0.4,2.9,1,4C3,12,2.1,10.5,1.9,8.9z M11.8,12.9c0.5-1.1,0.9-2.5,1-4h1.4C13.9,10.5,13,12,11.8,12.9z"/></svg>',newTranslation32:'<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 32 32"><path fill="#4A48C1" d="M16,7c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4.1,9-9S20.9,7,16,7z M22.9,15h-1.6c-0.1-1.7-0.5-3.3-1.1-4.5\tC21.6,11.5,22.6,13.1,22.9,15z M15,9.4V15h-2.3C12.9,12.3,13.9,10.2,15,9.4z M15,17v5.6c-1.1-0.8-2.1-2.9-2.3-5.6H15z M17,22.6V17\th2.3C19.1,19.8,18.1,21.8,17,22.6z M17,15V9.4c1.1,0.8,2.1,2.9,2.3,5.6H17z M11.8,10.4c-0.6,1.3-1,2.8-1.1,4.5H9.1\tC9.4,13.1,10.4,11.5,11.8,10.4z M9.1,17h1.6c0.1,1.7,0.5,3.3,1.1,4.5C10.4,20.5,9.4,18.9,9.1,17z M20.2,21.5c0.6-1.3,1-2.8,1.1-4.5\th1.6C22.6,18.8,21.6,20.5,20.2,21.5z"/></svg>',avatar32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#003A5D" d="M0,4.717C0,2.112,2.112,0,4.717,0h22.566C29.888,0,32,2.112,32,4.717v22.566C32,29.887,29.888,32,27.283,32 H4.717C2.113,32,0,29.887,0,27.283V4.717z"/><path fill="#FFF" d="M10.103,14.901c-1.107,0-2.004-0.897-2.004-2.004s0.897-2.005,2.004-2.005c1.107,0,2.005,0.897,2.005,2.005 C12.108,14.004,11.211,14.901,10.103,14.901z M16,14.901c1.107,0,2.005-0.897,2.005-2.004S17.108,10.892,16,10.892 c-1.108,0-2.005,0.897-2.005,2.005C13.995,14.004,14.892,14.901,16,14.901z M21.896,10.892c-1.106,0-2.004,0.897-2.004,2.005 c0,1.107,0.896,2.004,2.004,2.004c1.109,0,2.005-0.897,2.005-2.004C23.901,11.789,23.005,10.892,21.896,10.892z M21.408,18.207 H10.783C11.83,23.973,20.361,23.973,21.408,18.207z"/></svg>',chevronDown8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M-0.001,2.876c0-0.247,0.091-0.494,0.273-0.688c0.38-0.401,1.013-0.418,1.414-0.039l1.938,1.834\tc0.199,0.188,0.547,0.188,0.746,0L6.31,2.15c0.401-0.379,1.034-0.362,1.414,0.04c0.379,0.401,0.361,1.034-0.04,1.414L5.745,5.437\tC4.782,6.35,3.213,6.35,2.249,5.436L0.311,3.603C0.103,3.406-0.001,3.142-0.001,2.876z"/></svg>',chevronDown32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M16,20.425c-0.782,0-1.563-0.291-2.159-0.874l-6.541-6.408c-0.395-0.387-0.401-1.02-0.015-1.414\tc0.387-0.394,1.021-0.4,1.414-0.015l6.541,6.408c0.42,0.409,1.102,0.409,1.52-0.001l6.541-6.407c0.396-0.386,1.028-0.38,1.414,0.015\tc0.387,0.395,0.381,1.027-0.014,1.414l-6.541,6.407C17.563,20.133,16.782,20.425,16,20.425z"/></svg>',chevronRight8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M2.875,7.998c-0.247,0-0.494-0.091-0.688-0.273c-0.401-0.38-0.418-1.013-0.039-1.414l1.834-1.938\tc0.188-0.199,0.188-0.547,0-0.746l-1.835-1.94c-0.379-0.401-0.362-1.034,0.04-1.414s1.034-0.361,1.414,0.04l1.834,1.939\tc0.913,0.963,0.913,2.532-0.001,3.496L3.601,7.686C3.405,7.894,3.14,7.998,2.875,7.998z"/></svg>',chevronRight16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#4A48C1" d="M6.5,13c-0.247,0-0.494-0.091-0.687-0.273c-0.401-0.38-0.419-1.013-0.04-1.414L8.22,8.727\tc0.373-0.394,0.373-1.06,0-1.454L5.773,4.687c-0.379-0.401-0.362-1.034,0.04-1.414c0.4-0.378,1.034-0.362,1.414,0.04l2.446,2.586\tc1.096,1.159,1.096,3.043,0,4.203l-2.446,2.586C7.03,12.896,6.765,13,6.5,13z"/></svg>',close8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M7.705,7.729C7.511,7.923,7.255,8.02,7,8.02c-0.257,0-0.514-0.099-0.709-0.295L4,5.423L1.709,7.725\tC1.513,7.921,1.257,8.02,1,8.02c-0.255,0-0.51-0.097-0.706-0.291c-0.391-0.39-0.393-1.022-0.003-1.414l2.298-2.309l-2.27-2.28\tC-0.07,1.334-0.068,0.701,0.323,0.311c0.392-0.389,1.024-0.387,1.415,0.003L4,2.587l2.263-2.274C6.653-0.077,7.287-0.079,7.677,0.31\tC8.068,0.7,8.07,1.333,7.681,1.725l-2.27,2.281l2.298,2.309C8.099,6.705,8.097,7.339,7.705,7.729z"/></svg>',close16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#4A48C1" d="M12.709,11.295L9.411,7.982l3.262-3.276c0.39-0.392,0.388-1.024-0.004-1.414\tc-0.39-0.39-1.023-0.388-1.414,0.003L8,6.564L4.746,3.295C4.357,2.904,3.724,2.903,3.332,3.292C2.94,3.682,2.939,4.315,3.329,4.707\tl3.261,3.275l-3.298,3.313c-0.39,0.391-0.388,1.024,0.003,1.414C3.49,12.903,3.745,13,4,13c0.257,0,0.513-0.099,0.708-0.295L8,9.399\tl3.291,3.306C11.486,12.901,11.743,13,12,13c0.255,0,0.511-0.097,0.705-0.291C13.097,12.319,13.099,11.686,12.709,11.295z"/></svg>',enlarge32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M24,9v6.5c0,0.552-0.447,1-1,1s-1-0.448-1-1v-4.086L11.414,22H15.5c0.552,0,1,0.447,1,1s-0.448,1-1,1H9\tc-0.13,0-0.26-0.026-0.382-0.077c-0.245-0.102-0.439-0.296-0.541-0.541C8.026,23.26,8,23.13,8,23v-6.5c0-0.552,0.448-1,1-1\ts1,0.448,1,1v4.085L20.586,10H16.5c-0.552,0-1-0.448-1-1s0.448-1,1-1H23c0.13,0,0.26,0.026,0.382,0.077\tc0.245,0.102,0.439,0.296,0.541,0.541C23.974,8.74,24,8.87,24,9z"/></svg>',options32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M26.1,21.383c0.334-0.625,0.602-1.279,0.812-1.949L32,18.609V13.51l-5.058-0.846\tc-0.208-0.67-0.468-1.325-0.795-1.956l3.009-4.145l-3.604-3.634L21.38,5.903c-0.626-0.333-1.276-0.602-1.948-0.81L18.609,0\tl-5.098,0.001l-0.847,5.061c-0.669,0.203-1.326,0.465-1.957,0.794L6.562,2.847L2.929,6.449l2.973,4.171\tC5.569,11.247,5.3,11.9,5.091,12.569L0,13.373v5.099l5.06,0.866c0.204,0.669,0.467,1.324,0.796,1.955l-3.009,4.146l3.601,3.635\tl4.171-2.975c0.627,0.335,1.282,0.603,1.951,0.811L13.372,32h5.118l0.849-5.057c0.668-0.207,1.323-0.469,1.953-0.795l4.144,3.01\tl3.639-3.604L26.1,21.383z M19.01,19.035c-1.675,1.663-4.381,1.652-6.041-0.025c-1.662-1.675-1.649-4.381,0.024-6.042\tc1.676-1.661,4.382-1.648,6.043,0.025C20.699,14.67,20.686,17.377,19.01,19.035z"/></svg>',file32:'<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" x="0px" y="0px" version="1.1" viewBox="0 0 32 32"><path fill="#4A48C1" d="M16,28.5c-3.6,0-6.5-3-6.5-6.6V9.6c0-0.6,0.4-1,1-1s1,0.4,1,1v12.3c0,2.5,2,4.6,4.5,4.6\tc2.5,0,4.5-2.1,4.5-4.6V8.3c0-1.5-1.2-2.8-2.7-2.8c-1.5,0-2.7,1.3-2.7,2.8v13.5c0,0.6,0.5,1.1,1,1.1c0.6,0,1-0.5,1-1.1v-10\tc0-0.6,0.4-1,1-1s1,0.4,1,1v10c0,1.7-1.4,3.1-3,3.1s-3-1.4-3-3.1V8.3c0-2.6,2.1-4.8,4.7-4.8c2.6,0,4.7,2.2,4.7,4.8v13.6\tC22.5,25.5,19.6,28.5,16,28.5z"/></svg>',upload32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M9.488,13.481c-0.391-0.391-0.391-1.023,0-1.414l5.805-5.805c0.026-0.026,0.06-0.036,0.088-0.058\tc0.073-0.06,0.146-0.119,0.235-0.156c0.246-0.103,0.522-0.103,0.769,0c0.093,0.039,0.171,0.101,0.249,0.165\tc0.023,0.02,0.053,0.027,0.074,0.049l5.805,5.805c0.391,0.391,0.391,1.023,0,1.414c-0.195,0.195-0.451,0.293-0.707,0.293\ts-0.512-0.098-0.707-0.293L17,9.383V20.33c0,0.553-0.447,1-1,1c-0.552,0-1-0.447-1-1V9.383l-4.098,4.098\tC10.512,13.872,9.879,13.872,9.488,13.481z M22.819,24.031H9.181c-0.552,0-1,0.447-1,1s0.448,1,1,1h13.639c0.553,0,1-0.447,1-1\tS23.372,24.031,22.819,24.031z"/></svg>',download16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#FFF" d="M3.175,7.726c-0.413-0.367-0.45-0.999-0.083-1.412c0.367-0.413,0.999-0.45,1.412-0.083L7,8.45V1.5\tc0-0.552,0.448-1,1-1c0.553,0,1,0.448,1,1v6.95l2.496-2.219c0.412-0.367,1.044-0.331,1.411,0.083\tc0.367,0.413,0.33,1.045-0.083,1.412l-4.16,3.698c-0.047,0.041-0.103,0.062-0.154,0.094c-0.047,0.028-0.089,0.064-0.141,0.085\tC8.25,11.649,8.125,11.677,8,11.677c-0.126,0-0.25-0.027-0.369-0.074c-0.05-0.021-0.09-0.055-0.136-0.083\tc-0.053-0.031-0.111-0.053-0.159-0.096L3.175,7.726z M12.018,13.5H3.983c-0.552,0-1,0.447-1,1s0.448,1,1,1h8.035\tc0.553,0,1-0.447,1-1S12.57,13.5,12.018,13.5z"/></svg>',error16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#ad001f" d="M15.744,13.104L9.097,1.47c-0.604-1.055-1.59-1.055-2.193,0L0.256,13.104\tc-0.604,1.056-0.102,1.919,1.113,1.919H14.63C15.847,15.022,16.348,14.159,15.744,13.104z M7,5.045c0-0.552,0.448-1,1-1s1,0.448,1,1\tv3.656c0,0.552-0.448,1-1,1s-1-0.448-1-1V5.045z M8,13.212c-0.748,0-1.354-0.607-1.354-1.354c0-0.748,0.606-1.354,1.354-1.354\ts1.354,0.606,1.354,1.354C9.354,12.604,8.748,13.212,8,13.212z"/></svg>',arrowLeft16:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">\n<path fill="#5053A4" d="M13.6,8c0,0.6-0.4,1-1,1h-7l2.2,2.5c0.4,0.4,0.3,1-0.1,1.4c-0.2,0.2-0.4,0.2-0.7,0.2c-0.3,0-0.6-0.1-0.8-0.3\n\tL2.6,8.6c0,0-0.1-0.1-0.1-0.2c0,0-0.1-0.1-0.1-0.1c0-0.1-0.1-0.2-0.1-0.3c0,0,0,0,0,0c0,0,0,0,0,0c0-0.1,0-0.3,0.1-0.4\n\tc0,0,0.1-0.1,0.1-0.1c0-0.1,0.1-0.1,0.1-0.2l3.7-4.1c0.4-0.4,1-0.4,1.4-0.1c0.4,0.4,0.4,1,0.1,1.4L5.6,7h7C13.2,7,13.6,7.4,13.6,8z"\n\t/>\n</svg>\n',arrowRight16:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">\n<path fill="#5053A4" d="M2.4,8.1c0-0.6,0.4-1,1-1h7L8.1,4.5c-0.4-0.4-0.3-1,0.1-1.4c0.2-0.2,0.4-0.2,0.7-0.2c0.3,0,0.6,0.1,0.8,0.3\n\tl3.7,4.2c0,0,0.1,0.1,0.1,0.2c0,0,0.1,0.1,0.1,0.1c0,0.1,0.1,0.2,0.1,0.3c0,0,0,0,0,0c0,0,0,0,0,0c0,0.1,0,0.3-0.1,0.4\n\tc0,0-0.1,0.1-0.1,0.1c0,0.1-0.1,0.1-0.1,0.2l-3.7,4.1c-0.4,0.4-1,0.4-1.4,0.1c-0.4-0.4-0.4-1-0.1-1.4l2.2-2.4h-7\n\tC2.8,9.1,2.4,8.6,2.4,8.1z"/>\n</svg>\n'};var Es=t=>{let{name:e,size:n="32",className:r,alt:o}=t;const i=`${e}${n}`;return Ae(Y,{children:[Ae("div",{"aria-hidden":"true",className:r||ai("icon"),dangerouslySetInnerHTML:{__html:xs[i]}}),o&&Ae("span",{className:ai("visually-hidden"),children:o})]})},Ts=n(4198),Ss=n.n(Ts);const ks={visible:ai("transition--visible"),in:ai("transition--in"),visuallyHidden:ai("visually-hidden")},Os=O()(ks),As={notRendered:"notRendered",rendered:"rendered",visuallyHidden:"visuallyHidden"};var Cs=t=>{var e;let{children:n,isActive:r,timeout:o,transitionStartState:i=As.notRendered,onInTransitionComplete:a,onOutTransitionComplete:s}=t;const c=Pt(!1),l=o?Ss()(o,10):300,u=Na(a),p=Na(s),f=i===As.visuallyHidden,[h,d]=It((()=>f?[ks.visuallyHidden]:[])),v="notRendered"!==i||h.length>0;return Rt((()=>{let t=null,e=null;return c.current&&!r&&(d([ks.visible]),t=tn()((()=>{d([...f?[ks.visuallyHidden]:[]]),p&&(e=requestAnimationFrame((()=>{p()})))}),l)),!c.current&&r&&(d([ks.visible]),e=requestAnimationFrame((()=>{e=requestAnimationFrame((()=>{d([ks.visible,ks.in]),u&&(t=tn()((()=>{u()}),l))}))}))),c.current=r,()=>{clearTimeout(t),cancelAnimationFrame(e)}}),[r,f,l,u,p]),v&&b()(e=rt(n)).call(e,(t=>{var e;const{className:n=""}=t.props;return function(t,e,n){var r,o,i,a=W({},t.props);for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];return arguments.length>2&&(a.children=arguments.length>3?D.call(arguments,2):n),K(t.type,a,r||t.key,o||t.ref,null)}(t,{className:[...w()(e=n.split(" ")).call(e,(t=>!ln()(Os).call(Os,t))),...h].join(" ")})}))},Is=t=>{let{className:e,children:n,onCancel:r,headingText:o,cancelButtonText:i,disableButtonFocusing:a,cancelButtonRef:s,position:c="right"}=t;const l=Pt(null),u=Ia(),{hideOption:p}=Qi(),{focusButton:f}=Zi();return Rt((()=>{wn(l.current)}),[]),Ae("section",{className:ai("options",{"options--right":"left"!==c,"options--left":"left"===c},e),"aria-labelledby":u,tabIndex:"-1",ref:l,children:Ae("div",{className:ai("options__body"),children:[Ae("h2",{id:u,className:ai("options__title"),children:o}),Ae("button",{type:"button",onClick:()=>{r&&r(),p(),a||f()},"aria-describedby":u,className:ai("button","options__close"),ref:t=>{s&&(s.current=t)},children:[Ae(Es,{name:"close",size:"16"}),Ae("span",{children:i})]}),Ae("div",{className:ai("options__wrapper"),children:n})]})})};const{createActions:Ns,createReducer:Rs,selectState:js}=oe("forms"),[Ps,Ls]=Ns("form",{register:(t,e)=>({formId:t,persistData:e}),deregister:t=>({formId:t})}),[Ds,Us,Ms,$s]=Ns("control",{register:(t,e)=>({formId:t,name:e}),deregister:(t,e)=>({formId:t,name:e}),updateValue:(t,e,n)=>({formId:t,name:e,value:n}),updateTouched:(t,e,n)=>({formId:t,name:e,touched:n})}),zs=ge(js,ls("formId"),((t,e)=>t[e])),Fs=ge(zs,(t=>(null==t?void 0:t.controls)||{})),Bs=ge(Fs,(t=>{var e;const n={};return E()(e=N()(t)).call(e,(t=>{let[e,{value:r}]=t;n[e]=r})),n})),Hs=ge(Fs,ls("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.value})),Vs=ge(Fs,ls("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.touched})),qs=yt({});var Ws=qs;const{Provider:Gs,Consumer:Ks}=qs;function Ys(){return Ut(Ws)}function Js(t){const e=qe(),{formId:n,updateControlValue:r,updateControlTouched:o,errors:i}=Ys(),a=!!Ge(zs,{formId:n},[n]),s=Pt();s.current=a;const c=Ge(Hs,{formId:n,name:t},[n,t]),l=Ge(Vs,{formId:n,name:t},[n,t]),u=null==i?void 0:i[t],p=!u;Rt((()=>{s.current&&e(Ds(n,t))}),[a,n,t,e]),jt((()=>()=>{e(Us(n,t))}),[a,n,t,e]);const f=Dt((e=>r(t,e.target.value)),[t,r]),h=Dt((()=>{o(t,!0)}),[o,t]);return[Lt((()=>({name:t,onInput:f,onBlur:h,value:c})),[t,f,h,c]),Lt((()=>({isValid:p,error:u,touched:l})),[p,u,l])]}const Qs=["children","formId","persistData","onError","onSubmit","validationSchema"];function Zs(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xs(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Zs(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Zs(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function tc(t){let{children:n,formId:r,persistData:o,onError:i,onSubmit:a,validationSchema:s}=t,c=L(t,Qs);const l=qe(),u=Ge(Bs,{formId:r},[r]),[p,f]=It(!1),[h,d]=It({}),{isValid:v,errors:y}=function(t,n){const r=Lt((()=>function(t){var n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return sn()(n=N()(r)).call(n,((n,r)=>{let[o,i]=r;i&&!e()(i)&&(i=[i]);for(let e=0;e<(null===(a=i)||void 0===a?void 0:a.length);e++){var a;if(!i[e].fn(t[o],i[e].compareValue)){n[o]=i[e].errorText;break}}return n}),{})}(t,n)),[t,n]);return{isValid:0===S()(r).length,errors:r}}(u,s),g=Lt((()=>Xs(Xs({},y),h)),[y,h]);jt((()=>{l(Ps(r,o))}),[r,o,l]),Rt((()=>()=>{l(Ls(r))}),[r,o,l]);const m=Dt(((t,e)=>{l(Ms(r,t,e))}),[r,l]),b=Dt(((t,e)=>{l($s(r,t,e))}),[l,r]),_=Dt(((t,e)=>{d((n=>Xs(Xs({},n),{},{[t]:e})))}),[d]),w=Dt((t=>{var e;t.preventDefault();const n="true"===(null===(e=t.submitter)||void 0===e?void 0:e.ariaDisabled);f(!n),!n&&v&&a(u,{updateControlValue:m,setError:_})}),[v,a,u,m,_]);Rt((()=>{i&&i({errors:g,isSubmitted:p,isValid:0===S()(g).length})}),[p,g,i]);const x=Lt((()=>({formId:r,values:u,errors:g,isValid:0===S()(g).length,isSubmitted:p,handleSubmit:w,validationSchema:s,updateControlValue:m,updateControlTouched:b})),[r,u,g,p,w,s,m,b]);return r?a?Ae(Gs,Xs(Xs({},c),{},{value:x,children:n})):(console.error('"onSubmit" is required.'),null):(console.error('"formId" is required.'),null)}function ec(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function nc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=ec(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=ec(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const rc={},oc={controls:{}},ic={value:"",touched:!1};function ac(t,e,n,r){var o;const i=(null===(o=t[e])||void 0===o?void 0:o.controls[n])||ic;return nc(nc({},t),{},{[e]:nc(nc({},t[e]),{},{controls:nc(nc({},t[e].controls),{},{[n]:nc(nc({},i),r)})})})}var sc=Rs({[Ps]:(t,e)=>{let{formId:n,persistData:r}=e;const o=r?t[n]??nc(nc({},oc),{},{persistData:r}):nc(nc({},oc),{},{persistData:r});return nc(nc({},t),{},{[n]:o})},[Ls]:(t,e)=>{var n;let{formId:r}=e;const o=nc({},t);return null!==(n=o[r])&&void 0!==n&&n.persistData||delete o[r],o},[Ds]:(t,e)=>{let{name:n,formId:r}=e;return ac(t,r,n)},[Us]:(t,e)=>{let{formId:n,name:r}=e;const o=t[n];if(!o)return t;if(o.persistData)return t;const i=nc({},o.controls);return delete i[r],nc(nc({},t),{},{[n]:nc(nc({},o),{},{controls:i})})},[Ms]:(t,e)=>{let{formId:n,name:r,value:o}=e;return ac(t,n,r,{value:o})},[$s]:(t,e)=>{let{formId:n,name:r,touched:o}=e;return ac(t,n,r,{touched:o})},[Yo.pending]:()=>rc},rc);const{REGISTER_FORM:cc,DE_REGISTER_FORM:lc,REGISTER:uc,DE_REGISTER:pc,SET_VALUE:fc,SET_VALIDITY:hc,SET_STATE:dc,SET_SUBMITTED:vc,SET_PERSIST_FORM_DATA:yc}={REGISTER_FORM:"REGISTER_FORM",DE_REGISTER_FORM:"DE_REGISTER_FORM",REGISTER:"REGISTER",DE_REGISTER:"DEREGISTER",SET_VALUE:"SET_VALUE",SET_VALIDITY:"SET_VALIDITY",SET_STATE:"SET_STATE",SET_SUBMITTED:"SET_SUBMITTED",SET_PERSIST_FORM_DATA:"SET_PERSIST_FORM_DATA"},gc=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{fn:t,errorText:e,compareValue:n}},mc=(t,e)=>{let n=!0;for(let r=0;r<t.length;r++)t[r].size>e&&(n=!1);return n},bc=t=>!(null==t||!t.length)>0,_c=t=>{const e=t&&ca()(t).call(t);return!(!e||!e.match(/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i))},wc=t=>!!t,xc=["className","disableValidationClasses"];function Ec(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var Tc=function(t){let{className:e,disableValidationClasses:n}=t,r=L(t,xc);const{handleSubmit:o,isValid:i,isSubmitted:a}=function(){const{handleSubmit:t,isSubmitted:e,isValid:n}=Ys();return{handleSubmit:t,isSubmitted:e,isValid:n}}(),s=["form"];return!n&&a&&(s.push("form--submitted"),i?s.push("form--valid"):s.push("form--invalid")),Ae("form",function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Ec(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Ec(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({onSubmit:o,className:ai([...s,e])},r))};function Sc(t){let{id:e,error:n}=t;const[r,o]=It(!1);return Rt((()=>{const t=tn()((()=>o(!0)),300);return()=>clearTimeout(t)}),[]),Ae("div",{className:ai("error"),"aria-live":"assertive","aria-atomic":"true",children:r&&n&&Ae("span",{id:e,className:ai("error__message"),children:[Ae(Es,{name:"error",size:"16"}),n]})})}var kc=t=>{let{contentHint:e,id:n,labelText:r,labelClass:o=ai("label"),validity:i,errorText:a,children:s}=t;return Ae(Y,{children:[Ae("label",{htmlFor:n,className:o,children:r}),e&&Ae("span",{id:`${n}-content-hint`,className:ai("input__content-hint"),children:e}),Ae(Sc,{id:`${n}-error`,error:!i&&a}),s]})};const Oc=["id","name","labelText","labelClass","contentHint","aria-describedby","options"];function Ac(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Cc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Ac(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Ac(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Ic=t=>{let{id:e,name:n,labelText:r,labelClass:o,contentHint:i,"aria-describedby":a,options:s=[]}=t,c=L(t,Oc);const{isSubmitted:l}=Ys(),[u,{error:p}]=Js(n),f=l&&p,h=[];return a&&h.push(a),i&&h.push(`${e}-content-hint`),f&&h.push(`${e}-error`),Ae(kc,{id:e,contentHint:i,validity:!f,errorText:p,labelText:r,labelClass:o,children:Ae("select",Cc(Cc(Cc({id:e,name:n,"aria-invalid":f?"true":"false","aria-describedby":h.join(" ")||null},u),c),{},{children:b()(s).call(s,(t=>Ae("option",{value:t.value,children:t.label},t.value)))}))})},Nc=function(t){let{controlName:e,descriptionId:n}=t;const{t:r}=Li(),{isActive:o,languages:i,currentLocale:a}=hs(),{locale:s}=Li(),c=ys(a),l=Lt((()=>{var t;return[{value:"",label:r("translations.settings.defaultOptionLabel")},...b()(t=w()(i).call(i,(t=>t.locale.toLowerCase()!==String(s).toLowerCase()))).call(t,(t=>({value:t.locale,label:t.nativeName})))]}),[r,i,s]);return Ae(Tc,{noValidate:"true",className:ai("options__form"),children:[Ae("p",{className:ai("options__description"),id:n,children:r("translations.settings.description")}),o?Ae(Y,{children:[Ae("h3",{children:r("translations.settings.currentTranslationLabel")}),Ae("p",{className:ai("options__active-language"),children:c})]}):Ae(Ic,{name:e,type:"text",className:ai("input__select"),"aria-describedby":n,labelClass:ai("label"),labelText:r("translations.settings.inputLabel"),options:l,defaultValue:a||""}),Ae("div",{className:ai("options__actions"),children:Ae("button",{type:"submit",className:ai("button","button--primary","options__submit"),children:r(o?"translations.settings.endButtonText":"translations.settings.startButtonText")})})]})};const Rc="translation-settings",jc="locale";var Pc=function(t){let{onClose:e}=t;const[n,r]=It(void 0),{t:o}=Li(),{isActive:i,enableTranslations:a,disableTranslations:s}=hs(),c=Ia(),{focusContainer:l}=vs(),u=Dt((t=>{let{isValid:e,isSubmitted:n}=t;r(n&&!e?"options--error":void 0)}),[r]),p=Pt(0),f=Lt((()=>(p.current+=1,i?{}:{[jc]:gc(wc,o("translations.settings.noLocaleText"))})),[i,o]);return Ae(Is,{className:n,onCancel:e,formName:Rc,headingText:o("translations.settings.title"),cancelButtonText:o("translations.settings.cancelButtonText"),position:"left",disableButtonFocusing:!0,children:Ae(tc,{onSubmit:t=>{let{locale:n}=t;i?s():(a(n),e(),l())},formId:Rc,validationSchema:f,onError:u,children:Ae(Nc,{controlName:jc,descriptionId:c})},p.current)})};function Lc(){const{t:t,locale:e}=Li(),[n,r]=It(!1),o=Pt(null),i=Ia(),a=ys(e);return Ae("div",{className:ai("translations__container"),onKeyDown:t=>{n&&_n(t)===bn.Escape&&(r(!1),wn(o.current))},children:[Ae(Cs,{transitionStartState:As.notRendered,isActive:n,children:Ae("div",{className:ai("options__dialog"),role:"dialog",children:Ae(Pc,{onClose:()=>{r(!1)}})})}),Ae("button",{type:"button",className:ai(["button","button--secondary","chat__options__button"]),id:i,onClick:()=>{r((t=>!t))},onKeyDown:t=>{_n(t)===bn.ArrowDown&&(r(!0),t.preventDefault())},ref:o,"aria-haspopup":"dialog","aria-expanded":n.toString(),children:[Ae(Es,{name:"newTranslation",size:"16"}),Ae("span",{className:ai("button__text"),children:t("translations.settings.openButtonText",{hasLanguage:!!a,language:a})})]})]})}function Dc(t){let{id:e,label:n,onButtonClick:r,buttonText:o,srButtonText:i,type:a}=t;const s=Ia();return Ae("section",{className:ai("chat-status",a&&`chat-status--${a}`),id:e,tabIndex:"-1","aria-labelledby":s,children:[Ae("h2",{className:ai("chat-status__title"),id:s,children:n}),Ae("button",{type:"button",className:ai("button","button--tertiary"),onClick:r,children:[Ae("span",{"aria-hidden":i?"true":void 0,children:o}),i&&Ae("span",{className:ai("visually-hidden"),children:i})]})]})}function Uc(){const{t:t}=Li(),{id:e}=vs(),{hasInterrupt:n}=fa(),{isActive:r,disableTranslations:o,currentLocale:i}=hs(),a=ys(i),s=Vi(),c=Dt((()=>{o(),s()}),[o,s]);return!r||n?null:Ae(Dc,{type:"translations",id:e,label:t("translations.status.label",{language:a}),onButtonClick:c,buttonText:t("translations.status.stopText"),srButtonText:t("translations.status.srStopText")})}const Mc=t=>`suggestions__item--${String(t).toLowerCase().replace(/[^a-z0-9_\\-]/,"")}`;var $c=t=>{let{id:e,categories:n=[],question:r,onClick:o,hasIcon:i}=t;const a=Lt((()=>["suggestions__item",...b()(n).call(n,Mc)]),[n]),s=Dt((()=>{o&&o({id:e,question:r})}),[e,r,o]);return Ae("li",{className:ai(a),children:Ae("button",{type:"button",onClick:s,className:ai("button","button--primary"),children:[i&&Ae(Es,{name:"chevronRight",size:"8"}),r]})})};function zc(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var Fc=t=>{let{className:e,suggestions:n=[],onClickSuggestion:r,hasIcon:o=!0}=t;return Ae("ul",{className:ai("suggestions__list",e),children:b()(n).call(n,(t=>Ae($c,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=zc(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=zc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({hasIcon:o,onClick:r},t),t.id)))})},Bc=t=>{let{isAside:e}=t;const{layoutMode:n}=Ke(),{t:r}=Li(),{sendAction:o,addMessageBubble:i}=Da(),{isOpen:a,setVisibility:s}=Sa(),c=Ia(),l=Vi(),u=Pt(null),{sendPolite:p}=Ma(),{hasInterrupt:f}=fa(),{hasCountdown:h,endCountdown:d}=ns(),{hasPrompt:v,continueChat:y}=os(),g=Ta(),m=Eo("suggestion"),[b]=ds({payload:m}),_=Lt((()=>m&&!f?b:[]),[m,f,b]),w=Pt(null),x=Pt(!1),E=Pt([]),T=!!_.length,S="inline"===n?(g||a)&&!e:g,k=Pt(S),O=T&&!S,A=T?_:E.current;E.current=A;const C=Dt((t=>{let{id:e,question:n}=t;h&&d(!0),v&&y(),o({type:Un,originMessage:m.id,body:{type:"faqclick",body:{faqId:e,faqQuestion:n}}}),i(n),a||s(be.open),l()}),[i,y,d,l,h,v,m,o,s,a]);Rt((()=>{if(w.current!==_&&!S){if(T){const t=x.current?r("suggestions.srUpdatedText"):r("suggestions.srAvailableText");tn()((()=>{p(t)}),30)}else x.current&&p(r("suggestions.srUnavailableText"));w.current=_}!k.current&&S?(xn(u.current,l),p(r("suggestions.srUnavailableText"))):!T&&x.current&&xn(u.current,l),x.current=T,k.current=S}),[_,T,S,l,p,r]);const I=r("suggestions.headingText"),N=r("suggestions.footerText"),R=I?"section":"div";return Ae(Cs,{isActive:O,transitionStartState:As.notRendered,children:Ae(R,{className:ai("suggestions"),"aria-labelledby":I?c:null,ref:u,children:[I&&Ae("p",{id:c,className:ai("suggestions__heading"),children:I}),!!A.length&&Ae(Fc,{suggestions:A,onClickSuggestion:C}),N&&!a&&Ae("p",{className:ai("suggestions__footer"),children:N})]})})},Hc=t=>{let{children:e,className:n=""}=t;const{isOpen:r,isVisible:o,setVisibility:i}=Sa(),{namespace:a,layoutMode:s}=Ke(),{isInline:c}=To(),l=di(),u=Ta(),{t:p}=Li(),f=["chat",`chat--layout-${s}`,`namespace--${a}`,...l,n];return r||"app"===s||f.push("chat--collapsed"),u&&f.push("chat--user-responded"),o&&Ae("section",{className:ai(f),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!c&&r&&i(be.minimized)},tabIndex:"-1","aria-label":p("chat.srLabel"),children:[Ae("div",{className:ai("chat-wrapper"),children:e}),"inline"===s&&r&&Ae(Bc,{isAside:!0})]})},Vc=t=>{let{originalError:e,title:n,message:r,buttonText:o,action:i,srText:a}=t;const s=Da(),c=Ia(),{sendPolite:l}=Ma(),u=Vi(),p=e instanceof Bo;return Rt((()=>{p&&s[i]()}),[i,s,p]),Rt((()=>{!p&&a&&tn()((()=>{l(a)}),200)}),[l,a,p]),!p&&Ae("section",{className:ai("interrupt"),"aria-labelledby":c,children:Ae("div",{className:ai("interrupt__body"),children:[Ae("h2",{id:c,className:ai("interrupt__title"),children:n}),Ae("p",{className:ai("interrupt__message"),children:r}),o&&i&&Ae("div",{className:ai("interrupt__actions"),children:Ae("button",{type:"button",className:ai("button","button--primary"),onClick:()=>{s[i](),u()},children:o})})]})})},qc=()=>{const{t:t}=Li(),{showDisclaimer:e}=Ke();return e&&Ae("div",{className:ai("disclaimer"),tabIndex:"0",children:[Ae("h2",{className:ai("disclaimer__title"),children:t("disclaimer.title")}),Ae("div",{className:ai("disclaimer__message"),dangerouslySetInnerHTML:{__html:t("disclaimer.content")}})]})},Wc=yt({}),Gc=t=>{const e=Ut(Wc);let n=null;"choice_prompt"===t.payload.type&&(n=e[t.type][t.payload.body.prompt.type]);const r=e[t.type][t.payload.type]||e.fallback;return[r&&"function"!=typeof r?r[t.payload.body.type]||e.fallback:r,n]};function Kc(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Kc(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Kc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Jc(t){let{children:e,childrenHTML:n,className:r,graphicSrc:o,graphicType:i="icon",iconName:a,iconSize:s,iconClassName:c,dividerType:l}=t;const u=Boolean(a||o),p=n?{dangerouslySetInnerHTML:{__html:n}}:{children:e};return Ae("div",{className:ai("divider",l&&`divider--type-${l}`,r),children:[u&&Ae("span",{className:ai("divider__graphic"),children:a?Ae(Es,{name:a,size:s,className:c}):Ae("img",{src:o,className:ai({icon:"icon"===i,avatar:"avatar"===i},c)})}),Ae("div",Yc({className:ai("divider__body")},p))]})}const Qc={month:"long",day:"numeric",year:"numeric"},Zc={hour:"numeric",minute:"numeric"};var Xc=t=>{let{event:e}=t;const n=(()=>{const[t,e]=Nt((t=>t+1),0);return Dt((()=>{tn()((()=>{e()}))}),[])})(),{date:r,time:o,timeUntilMidnight:i,srText:a}=(t=>{var e;const{t:n}=Li(),r=Ke(),o=(null==r||null===(e=r.context)||void 0===e?void 0:e.locale)??[],i=new Date(t),a=new Date,s=new Date(a);s.setHours(24,0,0,0);const c=s-a,l=i.toString(),u=new Intl.DateTimeFormat(o,Zc).format(i);let p=((t,e)=>{const n=new Date(e).setHours(0,0,0,0),r=t.getTime(),o=864e5;return r>=n+o?t:r>n?"today":r>n-o?"yesterday":t})(i,a);switch(p){case"today":p=n("dateTime.today");break;case"yesterday":p=n("dateTime.yesterday");break;default:p=new Intl.DateTimeFormat(o,Qc).format(i)}return{date:p,srText:n("dateTime.srText",{date:p,time:u}),time:u,fullDateTime:l,timeUntilMidnight:c}})(hn(e.timeIndicator));return Rt((()=>{const t=tn()((()=>{n()}),i);return()=>{clearTimeout(t)}}),[n,i]),Ae(Jc,{dividerType:"time-indicator",children:[Ae("p",{className:ai("divider__time"),"aria-hidden":"true",children:[Ae("span",{children:r}),Ae("span",{children:o})]}),Ae("p",{className:ai("visually-hidden"),children:a})]})},tl=t=>{let{event:e,newParticipant:n}=t;const[r,o]=Gc(e);if(!r)return null;const i=["conversation__item"];return"info"===e.type?i.push("conversation__item--source-info"):e.payload.fromClient?i.push("conversation__item--source-user"):i.push("conversation__item--source-agent"),n&&i.push("conversation__item--new-participant"),Ae("li",{className:ai(i),children:[e.timeIndicator&&Ae(Xc,{event:e}),Ae(r,{event:e,children:Ae(o,{event:e})})]})},el=t=>{let{eventPayload:e}=t;const{t:n}=Li(),{fromClient:r,participant:o}=e,i=(t=>ho().participantInfo.participants[t])(o)||{},{messages:a}=Ke(),s=r?n("participants.user.name"):i&&i.name,{showAvatar:c,showName:l}=a[r?"user":"agent"]||{};if(!c&&!l)return null;const u=[];return c&&s&&i.avatar&&u.push(Ae("span",{className:ai("message__avatar"),children:Ae("img",{src:i.avatar,className:ai("avatar"),alt:""})})),l&&u.push(Ae("span",{className:ai("message__author-name"),children:s})),u.length>0&&Ae("div",{className:ai("message__author"),children:u})},nl=()=>{const{id:t}=xo()||{};return Ae("li",{className:ai("conversation__item","conversation__item--source-agent"),children:Ae("div",{className:ai("message","message--source-agent","message--type-loading"),children:[Ae(el,{eventPayload:{fromClient:!1,participant:t}}),Ae("div",{className:ai("message__body"),children:Ae("span",{className:ai("loader"),children:[Ae("span",{className:ai("loader__part","one")}),Ae("span",{className:ai("loader__part","two")}),Ae("span",{className:ai("loader__part","three")}),Ae("span",{className:ai("loader__part","four")})]})})]})})};const rl=["showParticipant","showTranslationToggle","event","type","modifiers","children","bodyProps","info"];function ol(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function il(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=ol(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=ol(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var al=function(t){let{showParticipant:e=!0,showTranslationToggle:n=!0,event:r,type:o,modifiers:i,children:a,bodyProps:s={},info:c}=t,l=L(t,rl);const u=vi(r),{t:p}=Li(),[,{hasTranslation:f,isTranslated:h,toggleTranslation:d,locale:v}]=ds(r);var y;(o&&u.push("message--type-"+o),i)&&("string"==typeof i&&(i=w()(y=i.split(" ")).call(y,(t=>t.length))),E()(i).call(i,(t=>{u.push("message--"+t)})));return h&&u.push("message--is-translated"),f&&u.push("message--has-translation"),h&&(s=il(il({},s),{},{lang:v})),Ae(Y,{children:Ae("div",il(il({className:ai(u)},l),{},{children:[e&&Ae(el,{eventPayload:r.payload}),Ae("div",il(il({className:ai("message__body")},s),{},{children:a})),c&&Ae("div",{"aria-hidden":"true",className:ai("message__info"),children:c}),n&&f&&Ae("div",{className:ai("message__translation-info"),children:Ae("button",{className:ai("message__translation-toggle","button","button--secondary"),onClick:d,children:p(h?"translations.toggle.hideButtonText":"translations.toggle.showButtonText")})})]}))})};const sl=["event","children"];function cl(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ll(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=cl(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=cl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const ul=t=>{const{payload:e}=t,[n,r]=It(!1),{sendAction:o,addMessageBubble:i,addDivider:a}=Da(),{activeServiceSessionId:s}=ho().serviceInfo,c=We(wo),[l]=ds(t),{service:u}=e,p=Lt((()=>{var e;return ll(ll({},t),{},{payload:ll(ll({},t.payload),{},{body:null===(e=t.payload.body)||void 0===e?void 0:e.prompt,translatedBody:t.payload.translatedBody&&ll(ll({},t.payload.translatedBody),{},{data:t.payload.translatedBody.data.prompt})})})}),[t]),f=l.chooseAgain&&s===u.serviceSessionId&&e.id!==c;return Rt((()=>{r(e.id===c)}),[e,c]),{body:l,subEvent:p,showOptions:n,chooseAgain:f,onChoiceClickHandler:t=>{f&&a("new_topic"),i(t.text),o({type:"pick_choice",originMessage:e.id,choice:{id:t.id,text:t.text,chooseAgain:f}}),r(!1)},onChooseAgainClickHandler:()=>{r((t=>!t))}}};let pl={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const fl=/[&<>"']/,hl=/[&<>"']/g,dl=/[<>"']|&(?!#?\w+;)/,vl=/[<>"']|&(?!#?\w+;)/g,yl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gl=t=>yl[t];function ml(t,e){if(e){if(fl.test(t))return t.replace(hl,gl)}else if(dl.test(t))return t.replace(vl,gl);return t}const bl=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function _l(t){return t.replace(bl,((t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const wl=/(^|[^\[])\^/g;function xl(t,e){t="string"==typeof t?t:t.source,e=e||"";const n={replace:(e,r)=>(r=(r=r.source||r).replace(wl,"$1"),t=t.replace(e,r),n),getRegex:()=>new RegExp(t,e)};return n}const El=/[^\w:]/g,Tl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Sl(t,e,n){if(t){let t;try{t=decodeURIComponent(_l(n)).replace(El,"").toLowerCase()}catch(t){return null}if(0===t.indexOf("javascript:")||0===t.indexOf("vbscript:")||0===t.indexOf("data:"))return null}e&&!Tl.test(n)&&(n=function(t,e){kl[" "+t]||(Ol.test(t)?kl[" "+t]=t+"/":kl[" "+t]=jl(t,"/",!0));const n=-1===(t=kl[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(Al,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(Cl,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n}const kl={},Ol=/^[^:]+:\/*[^/]*$/,Al=/^([^:]+:)[\s\S]*$/,Cl=/^([^:]+:\/*[^/]*)[\s\S]*$/,Il={exec:function(){}};function Nl(t){let e,n,r=1;for(;r<arguments.length;r++)for(n in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Rl(t,e){const n=t.replace(/\|/g,((t,e,n)=>{let r=!1,o=e;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function jl(t,e,n){const r=t.length;if(0===r)return"";let o=0;for(;o<r;){const i=t.charAt(r-o-1);if(i!==e||n){if(i===e||!n)break;o++}else o++}return t.slice(0,r-o)}function Pl(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Ll(t,e){if(e<1)return"";let n="";for(;e>1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}function Dl(t,e,n,r){const o=e.href,i=e.title?ml(e.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){r.state.inLink=!0;const t={type:"link",raw:n,href:o,title:i,text:a,tokens:r.inlineTokens(a,[])};return r.state.inLink=!1,t}return{type:"image",raw:n,href:o,title:i,text:ml(a)}}class Ul{constructor(t){this.options=t||pl}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const t=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:jl(t,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const t=e[0],n=function(t,e){const n=t.match(/^(\s+)(?:```)/);if(null===n)return e;const r=n[1];return e.split("\n").map((t=>{const e=t.match(/^\s+/);if(null===e)return t;const[n]=e;return n.length>=r.length?t.slice(r.length):t})).join("\n")}(t,e[3]||"");return{type:"code",raw:t,lang:e[2]?e[2].trim():e[2],text:n}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(/#$/.test(t)){const e=jl(t,"#");this.options.pedantic?t=e.trim():e&&!/ $/.test(e)||(t=e.trim())}const n={type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const t=e[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(t,[]),text:t}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n,r,o,i,a,s,c,l,u,p,f,h,d=e[1].trim();const v=d.length>1,y={type:"list",raw:"",ordered:v,start:v?+d.slice(0,-1):"",loose:!1,items:[]};d=v?`\\d{1,9}\\${d.slice(-1)}`:`\\${d}`,this.options.pedantic&&(d=v?d:"[*+-]");const g=new RegExp(`^( {0,3}${d})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;t&&(h=!1,e=g.exec(t))&&!this.rules.block.hr.test(t);){if(n=e[0],t=t.substring(n.length),l=e[2].split("\n",1)[0],u=t.split("\n",1)[0],this.options.pedantic?(i=2,f=l.trimLeft()):(i=e[2].search(/[^ ]/),i=i>4?1:i,f=l.slice(i),i+=e[1].length),s=!1,!l&&/^ *$/.test(u)&&(n+=u+"\n",t=t.substring(u.length+1),h=!0),!h){const e=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),o=new RegExp(`^( {0,${Math.min(3,i-1)}})(\`\`\`|~~~)`);for(;t&&(p=t.split("\n",1)[0],l=p,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!o.test(l))&&!this.rules.block.heading.test(l)&&!e.test(l)&&!r.test(t);){if(l.search(/[^ ]/)>=i||!l.trim())f+="\n"+l.slice(i);else{if(s)break;f+="\n"+l}s||l.trim()||(s=!0),n+=p+"\n",t=t.substring(p.length+1)}}y.loose||(c?y.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(f),r&&(o="[ ] "!==r[0],f=f.replace(/^\[[ xX]\] +/,""))),y.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:f}),y.raw+=n}y.items[y.items.length-1].raw=n.trimRight(),y.items[y.items.length-1].text=f.trimRight(),y.raw=y.raw.trimRight();const m=y.items.length;for(a=0;a<m;a++){this.lexer.state.top=!1,y.items[a].tokens=this.lexer.blockTokens(y.items[a].text,[]);const t=y.items[a].tokens.filter((t=>"space"===t.type)),e=t.every((t=>{const e=t.raw.split("");let n=0;for(const t of e)if("\n"===t&&(n+=1),n>1)return!0;return!1}));!y.loose&&t.length&&e&&(y.loose=!0,y.items[a].loose=!0)}return y}}html(t){const e=this.rules.block.html.exec(t);if(e){const t={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(t.type="paragraph",t.text=this.options.sanitizer?this.options.sanitizer(e[0]):ml(e[0]),t.tokens=[],this.lexer.inline(t.text,t.tokens)),t}}def(t){const e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}}table(t){const e=this.rules.block.table.exec(t);if(e){const t={type:"table",header:Rl(e[1]).map((t=>({text:t}))),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=e[0];let n,r,o,i,a=t.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(t.align[n])?t.align[n]="right":/^ *:-+: *$/.test(t.align[n])?t.align[n]="center":/^ *:-+ *$/.test(t.align[n])?t.align[n]="left":t.align[n]=null;for(a=t.rows.length,n=0;n<a;n++)t.rows[n]=Rl(t.rows[n],t.header.length).map((t=>({text:t})));for(a=t.header.length,r=0;r<a;r++)t.header[r].tokens=[],this.lexer.inline(t.header[r].text,t.header[r].tokens);for(a=t.rows.length,r=0;r<a;r++)for(i=t.rows[r],o=0;o<i.length;o++)i[o].tokens=[],this.lexer.inline(i[o].text,i[o].tokens);return t}}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e){const t={type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:[]};return this.lexer.inline(t.text,t.tokens),t}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const t={type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1],tokens:[]};return this.lexer.inline(t.text,t.tokens),t}}text(t){const e=this.rules.block.text.exec(t);if(e){const t={type:"text",raw:e[0],text:e[0],tokens:[]};return this.lexer.inline(t.text,t.tokens),t}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:ml(e[1])}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):ml(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const t=e[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;const e=jl(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{const t=function(t,e){if(-1===t.indexOf(e[1]))return-1;const n=t.length;let r=0,o=0;for(;o<n;o++)if("\\"===t[o])o++;else if(t[o]===e[0])r++;else if(t[o]===e[1]&&(r--,r<0))return o;return-1}(e[2],"()");if(t>-1){const n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){const t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);t&&(n=t[1],r=t[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(t)?n.slice(1):n.slice(1,-1)),Dl(e,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},e[0],this.lexer)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=(n[2]||n[1]).replace(/\s+/g," ");if(t=e[t.toLowerCase()],!t||!t.href){const t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return Dl(n,t,n[0],this.lexer)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrong.lDelim.exec(t);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let o,i,a=n,s=0;const c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+n);null!=(r=c.exec(e));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(a-=i,a>0)continue;if(i=Math.min(i,i+a+s),Math.min(n,i)%2){const e=t.slice(1,n+r.index+i);return{type:"em",raw:t.slice(0,n+r.index+i+1),text:e,tokens:this.lexer.inlineTokens(e,[])}}const e=t.slice(2,n+r.index+i-1);return{type:"strong",raw:t.slice(0,n+r.index+i+1),text:e,tokens:this.lexer.inlineTokens(e,[])}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(/\n/g," ");const n=/[^ ]/.test(t),r=/^ /.test(t)&&/ $/.test(t);return n&&r&&(t=t.substring(1,t.length-1)),t=ml(t,!0),{type:"codespan",raw:e[0],text:t}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}}autolink(t,e){const n=this.rules.inline.autolink.exec(t);if(n){let t,r;return"@"===n[2]?(t=ml(this.options.mangle?e(n[1]):n[1]),r="mailto:"+t):(t=ml(n[1]),r=t),{type:"link",raw:n[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(t,e){let n;if(n=this.rules.inline.url.exec(t)){let t,r;if("@"===n[2])t=ml(this.options.mangle?e(n[0]):n[0]),r="mailto:"+t;else{let e;do{e=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(e!==n[0]);t=ml(n[0]),r="www."===n[1]?"http://"+t:t}return{type:"link",raw:n[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t,e){const n=this.rules.inline.text.exec(t);if(n){let t;return t=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):ml(n[0]):n[0]:ml(this.options.smartypants?e(n[0]):n[0]),{type:"text",raw:n[0],text:t}}}}const Ml={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Il,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Ml.def=xl(Ml.def).replace("label",Ml._label).replace("title",Ml._title).getRegex(),Ml.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ml.listItemStart=xl(/^( *)(bull) */).replace("bull",Ml.bullet).getRegex(),Ml.list=xl(Ml.list).replace(/bull/g,Ml.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ml.def.source+")").getRegex(),Ml._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ml._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ml.html=xl(Ml.html,"i").replace("comment",Ml._comment).replace("tag",Ml._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ml.paragraph=xl(Ml._paragraph).replace("hr",Ml.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ml._tag).getRegex(),Ml.blockquote=xl(Ml.blockquote).replace("paragraph",Ml.paragraph).getRegex(),Ml.normal=Nl({},Ml),Ml.gfm=Nl({},Ml.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ml.gfm.table=xl(Ml.gfm.table).replace("hr",Ml.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ml._tag).getRegex(),Ml.gfm.paragraph=xl(Ml._paragraph).replace("hr",Ml.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ml.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ml._tag).getRegex(),Ml.pedantic=Nl({},Ml.normal,{html:xl("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ml._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Il,paragraph:xl(Ml.normal._paragraph).replace("hr",Ml.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ml.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const $l={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Il,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Il,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function zl(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Fl(t){let e,n,r="";const o=t.length;for(e=0;e<o;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}$l._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",$l.punctuation=xl($l.punctuation).replace(/punctuation/g,$l._punctuation).getRegex(),$l.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,$l.escapedEmSt=/\\\*|\\_/g,$l._comment=xl(Ml._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),$l.emStrong.lDelim=xl($l.emStrong.lDelim).replace(/punct/g,$l._punctuation).getRegex(),$l.emStrong.rDelimAst=xl($l.emStrong.rDelimAst,"g").replace(/punct/g,$l._punctuation).getRegex(),$l.emStrong.rDelimUnd=xl($l.emStrong.rDelimUnd,"g").replace(/punct/g,$l._punctuation).getRegex(),$l._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,$l._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$l._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,$l.autolink=xl($l.autolink).replace("scheme",$l._scheme).replace("email",$l._email).getRegex(),$l._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$l.tag=xl($l.tag).replace("comment",$l._comment).replace("attribute",$l._attribute).getRegex(),$l._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$l._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,$l._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$l.link=xl($l.link).replace("label",$l._label).replace("href",$l._href).replace("title",$l._title).getRegex(),$l.reflink=xl($l.reflink).replace("label",$l._label).replace("ref",Ml._label).getRegex(),$l.nolink=xl($l.nolink).replace("ref",Ml._label).getRegex(),$l.reflinkSearch=xl($l.reflinkSearch,"g").replace("reflink",$l.reflink).replace("nolink",$l.nolink).getRegex(),$l.normal=Nl({},$l),$l.pedantic=Nl({},$l.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:xl(/^!?\[(label)\]\((.*?)\)/).replace("label",$l._label).getRegex(),reflink:xl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$l._label).getRegex()}),$l.gfm=Nl({},$l.normal,{escape:xl($l.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),$l.gfm.url=xl($l.gfm.url,"i").replace("email",$l.gfm._extended_email).getRegex(),$l.breaks=Nl({},$l.gfm,{br:xl($l.br).replace("{2,}","*").getRegex(),text:xl($l.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Bl{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||pl,this.options.tokenizer=this.options.tokenizer||new Ul,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={block:Ml.normal,inline:$l.normal};this.options.pedantic?(e.block=Ml.pedantic,e.inline=$l.pedantic):this.options.gfm&&(e.block=Ml.gfm,this.options.breaks?e.inline=$l.breaks:e.inline=$l.gfm),this.tokenizer.rules=e}static get rules(){return{block:Ml,inline:$l}}static lex(t,e){return new Bl(e).lex(t)}static lexInline(t,e){return new Bl(e).inlineTokens(t)}lex(t){let e;for(t=t.replace(/\r\n|\r/g,"\n"),this.blockTokens(t,this.tokens);e=this.inlineQueue.shift();)this.inlineTokens(e.src,e.tokens);return this.tokens}blockTokens(t,e=[]){let n,r,o,i;for(t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,((t,e,n)=>e+" ".repeat(n.length)));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),1===n.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?e.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else{if(o=t,this.options.extensions&&this.options.extensions.startBlock){let e=1/0;const n=t.slice(1);let r;this.options.extensions.startBlock.forEach((function(t){r=t.call({lexer:this},n),"number"==typeof r&&r>=0&&(e=Math.min(e,r))})),e<1/0&&e>=0&&(o=t.substring(0,e+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o)))r=e[e.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(n),i=o.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),r=e[e.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(n);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e){this.inlineQueue.push({src:t,tokens:e})}inlineTokens(t,e=[]){let n,r,o,i,a,s,c=t;if(this.tokens.links){const t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(c));)t.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,i.index)+"["+Ll("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,i.index)+"["+Ll("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,i.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(a||(s=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))))if(n=this.tokenizer.escape(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.tag(t))t=t.substring(n.raw.length),r=e[e.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);else if(n=this.tokenizer.link(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(n.raw.length),r=e[e.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);else if(n=this.tokenizer.emStrong(t,c,s))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.codespan(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.br(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.del(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.autolink(t,Fl))t=t.substring(n.raw.length),e.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(t,Fl))){if(o=t,this.options.extensions&&this.options.extensions.startInline){let e=1/0;const n=t.slice(1);let r;this.options.extensions.startInline.forEach((function(t){r=t.call({lexer:this},n),"number"==typeof r&&r>=0&&(e=Math.min(e,r))})),e<1/0&&e>=0&&(o=t.substring(0,e+1))}if(n=this.tokenizer.inlineText(o,zl))t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0,r=e[e.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}else t=t.substring(n.raw.length),e.push(n);return e}}class Hl{constructor(t){this.options=t||pl}code(t,e,n){const r=(e||"").match(/\S*/)[0];if(this.options.highlight){const e=this.options.highlight(t,r);null!=e&&e!==t&&(n=!0,t=e)}return t=t.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+ml(r,!0)+'">'+(n?t:ml(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:ml(t,!0))+"</code></pre>\n"}blockquote(t){return`<blockquote>\n${t}</blockquote>\n`}html(t){return t}heading(t,e,n,r){return this.options.headerIds?`<h${e} id="${this.options.headerPrefix+r.slug(n)}">${t}</h${e}>\n`:`<h${e}>${t}</h${e}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(t,e,n){const r=e?"ol":"ul";return"<"+r+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"</"+r+">\n"}listitem(t){return`<li>${t}</li>\n`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p>\n`}table(t,e){return e&&(e=`<tbody>${e}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"}tablerow(t){return`<tr>\n${t}</tr>\n`}tablecell(t,e){const n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,e,n){if(null===(t=Sl(this.options.sanitize,this.options.baseUrl,t)))return n;let r='<a href="'+ml(t)+'"';return e&&(r+=' title="'+e+'"'),r+=">"+n+"</a>",r}image(t,e,n){if(null===(t=Sl(this.options.sanitize,this.options.baseUrl,t)))return n;let r=`<img src="${t}" alt="${n}"`;return e&&(r+=` title="${e}"`),r+=this.options.xhtml?"/>":">",r}text(t){return t}}class Vl{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,n){return""+n}image(t,e,n){return""+n}br(){return""}}class ql{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let n=t,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[t];do{r++,n=t+"-"+r}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=r,this.seen[n]=0),n}slug(t,e={}){const n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}class Wl{constructor(t){this.options=t||pl,this.options.renderer=this.options.renderer||new Hl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Vl,this.slugger=new ql}static parse(t,e){return new Wl(e).parse(t)}static parseInline(t,e){return new Wl(e).parseInline(t)}parse(t,e=!0){let n,r,o,i,a,s,c,l,u,p,f,h,d,v,y,g,m,b,_,w="";const x=t.length;for(n=0;n<x;n++)if(p=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(_=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==_||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))w+=_||"";else switch(p.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(p.tokens),p.depth,_l(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(l="",c="",i=p.header.length,r=0;r<i;r++)c+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(l+=this.renderer.tablerow(c),u="",i=p.rows.length,r=0;r<i;r++){for(s=p.rows[r],c="",a=s.length,o=0;o<a;o++)c+=this.renderer.tablecell(this.parseInline(s[o].tokens),{header:!1,align:p.align[o]});u+=this.renderer.tablerow(c)}w+=this.renderer.table(l,u);continue;case"blockquote":u=this.parse(p.tokens),w+=this.renderer.blockquote(u);continue;case"list":for(f=p.ordered,h=p.start,d=p.loose,i=p.items.length,u="",r=0;r<i;r++)y=p.items[r],g=y.checked,m=y.task,v="",y.task&&(b=this.renderer.checkbox(g),d?y.tokens.length>0&&"paragraph"===y.tokens[0].type?(y.tokens[0].text=b+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&"text"===y.tokens[0].tokens[0].type&&(y.tokens[0].tokens[0].text=b+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:b}):v+=b),v+=this.parse(y.tokens,d),u+=this.renderer.listitem(v,m,g);w+=this.renderer.list(u,f,h);continue;case"html":w+=this.renderer.html(p.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<x&&"text"===t[n+1].type;)p=t[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);w+=e?this.renderer.paragraph(u):u;continue;default:{const t='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(t);throw new Error(t)}}return w}parseInline(t,e){e=e||this.renderer;let n,r,o,i="";const a=t.length;for(n=0;n<a;n++)if(r=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(o=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=o||"";else switch(r.type){case"escape":case"text":i+=e.text(r.text);break;case"html":i+=e.html(r.text);break;case"link":i+=e.link(r.href,r.title,this.parseInline(r.tokens,e));break;case"image":i+=e.image(r.href,r.title,r.text);break;case"strong":i+=e.strong(this.parseInline(r.tokens,e));break;case"em":i+=e.em(this.parseInline(r.tokens,e));break;case"codespan":i+=e.codespan(r.text);break;case"br":i+=e.br();break;case"del":i+=e.del(this.parseInline(r.tokens,e));break;default:{const t='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(t);throw new Error(t)}}return i}}function Gl(t,e,n){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof e&&(n=e,e=null),Pl(e=Nl({},Gl.defaults,e||{})),n){const r=e.highlight;let o;try{o=Bl.lex(t,e)}catch(t){return n(t)}const i=function(t){let i;if(!t)try{e.walkTokens&&Gl.walkTokens(o,e.walkTokens),i=Wl.parse(o,e)}catch(e){t=e}return e.highlight=r,t?n(t):n(null,i)};if(!r||r.length<3)return i();if(delete e.highlight,!o.length)return i();let a=0;return Gl.walkTokens(o,(function(t){"code"===t.type&&(a++,setTimeout((()=>{r(t.text,t.lang,(function(e,n){if(e)return i(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),a--,0===a&&i()}))}),0))})),void(0===a&&i())}try{const n=Bl.lex(t,e);return e.walkTokens&&Gl.walkTokens(n,e.walkTokens),Wl.parse(n,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+ml(t.message+"",!0)+"</pre>";throw t}}Gl.options=Gl.setOptions=function(t){var e;return Nl(Gl.defaults,t),e=Gl.defaults,pl=e,Gl},Gl.getDefaults=function(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},Gl.defaults=pl,Gl.use=function(...t){const e=Nl({},...t),n=Gl.defaults.extensions||{renderers:{},childTokens:{}};let r;t.forEach((t=>{if(t.extensions&&(r=!0,t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if(t.renderer){const e=n.renderers?n.renderers[t.name]:null;n.renderers[t.name]=e?function(...n){let r=t.renderer.apply(this,n);return!1===r&&(r=e.apply(this,n)),r}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");n[t.level]?n[t.level].unshift(t.tokenizer):n[t.level]=[t.tokenizer],t.start&&("block"===t.level?n.startBlock?n.startBlock.push(t.start):n.startBlock=[t.start]:"inline"===t.level&&(n.startInline?n.startInline.push(t.start):n.startInline=[t.start]))}t.childTokens&&(n.childTokens[t.name]=t.childTokens)}))),t.renderer){const n=Gl.defaults.renderer||new Hl;for(const e in t.renderer){const r=n[e];n[e]=(...o)=>{let i=t.renderer[e].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}e.renderer=n}if(t.tokenizer){const n=Gl.defaults.tokenizer||new Ul;for(const e in t.tokenizer){const r=n[e];n[e]=(...o)=>{let i=t.tokenizer[e].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}e.tokenizer=n}if(t.walkTokens){const n=Gl.defaults.walkTokens;e.walkTokens=function(e){t.walkTokens.call(this,e),n&&n.call(this,e)}}r&&(e.extensions=n),Gl.setOptions(e)}))},Gl.walkTokens=function(t,e){for(const n of t)switch(e.call(Gl,n),n.type){case"table":for(const t of n.header)Gl.walkTokens(t.tokens,e);for(const t of n.rows)for(const n of t)Gl.walkTokens(n.tokens,e);break;case"list":Gl.walkTokens(n.items,e);break;default:Gl.defaults.extensions&&Gl.defaults.extensions.childTokens&&Gl.defaults.extensions.childTokens[n.type]?Gl.defaults.extensions.childTokens[n.type].forEach((function(t){Gl.walkTokens(n[t],e)})):n.tokens&&Gl.walkTokens(n.tokens,e)}},Gl.parseInline=function(t,e){if(null==t)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");Pl(e=Nl({},Gl.defaults,e||{}));try{const n=Bl.lexInline(t,e);return e.walkTokens&&Gl.walkTokens(n,e.walkTokens),Wl.parseInline(n,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+ml(t.message+"",!0)+"</pre>";throw t}},Gl.Parser=Wl,Gl.parser=Wl.parse,Gl.Renderer=Hl,Gl.TextRenderer=Vl,Gl.Lexer=Bl,Gl.lexer=Bl.lex,Gl.Tokenizer=Ul,Gl.Slugger=ql,Gl.parse=Gl,Gl.options,Gl.setOptions,Gl.use,Gl.walkTokens,Gl.parseInline,Wl.parse,Bl.lex;var Kl=t=>{try{return Gl(t)}catch(e){return console.log("Could not parse message",t,e),""}},Yl=t=>{const{sendAction:e}=Da();return n=>{n.target&&n.target.dataset.linkId&&e({type:"navigate",originMessage:t,link:{id:n.target.dataset.linkId,url:n.target.getAttribute("href")}})}},Jl=Object.prototype.toString,Ql=Array.isArray||function(t){return"[object Array]"===Jl.call(t)};function Zl(t){return"function"==typeof t}function Xl(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function tu(t,e){return null!=t&&"object"==typeof t&&e in t}var eu=RegExp.prototype.test,nu=/\S/;var ru={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},ou=/\s*/,iu=/\s+/,au=/\s*=/,su=/\s*\}/,cu=/#|\^|\/|>|\{|&|=|!/;function lu(t){this.string=t,this.tail=t,this.pos=0}function uu(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function pu(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}lu.prototype.eos=function(){return""===this.tail},lu.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},lu.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=e.length,e},uu.prototype.push=function(t){return new uu(t,this)},uu.prototype.lookup=function(t){var e,n,r,o=this.cache;if(o.hasOwnProperty(t))e=o[t];else{for(var i,a,s,c=this,l=!1;c;){if(t.indexOf(".")>0)for(i=c.view,a=t.split("."),s=0;null!=i&&s<a.length;)s===a.length-1&&(l=tu(i,a[s])||(n=i,r=a[s],null!=n&&"object"!=typeof n&&n.hasOwnProperty&&n.hasOwnProperty(r))),i=i[a[s++]];else i=c.view[t],l=tu(c.view,t);if(l){e=i;break}c=c.parent}o[t]=e}return Zl(e)&&(e=e.call(this.view)),e},pu.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},pu.prototype.parse=function(t,e){var n=this.templateCache,r=t+":"+(e||fu.tags).join(":"),o=void 0!==n,i=o?n.get(r):void 0;return null==i&&(i=function(t,e){if(!t)return[];var n,r,o,i,a=!1,s=[],c=[],l=[],u=!1,p=!1,f="",h=0;function d(){if(u&&!p)for(;l.length;)delete c[l.pop()];else l=[];u=!1,p=!1}function v(t){if("string"==typeof t&&(t=t.split(iu,2)),!Ql(t)||2!==t.length)throw new Error("Invalid tags: "+t);n=new RegExp(Xl(t[0])+"\\s*"),r=new RegExp("\\s*"+Xl(t[1])),o=new RegExp("\\s*"+Xl("}"+t[1]))}v(e||fu.tags);for(var y,g,m,b,_,w,x=new lu(t);!x.eos();){if(y=x.pos,m=x.scanUntil(n))for(var E=0,T=m.length;E<T;++E)i=b=m.charAt(E),function(t,e){return eu.call(t,e)}(nu,i)?(p=!0,a=!0,f+=" "):(l.push(c.length),f+=b),c.push(["text",b,y,y+1]),y+=1,"\n"===b&&(d(),f="",h=0,a=!1);if(!x.scan(n))break;if(u=!0,g=x.scan(cu)||"name",x.scan(ou),"="===g?(m=x.scanUntil(au),x.scan(au),x.scanUntil(r)):"{"===g?(m=x.scanUntil(o),x.scan(su),x.scanUntil(r),g="&"):m=x.scanUntil(r),!x.scan(r))throw new Error("Unclosed tag at "+x.pos);if(_=">"==g?[g,m,y,x.pos,f,h,a]:[g,m,y,x.pos],h++,c.push(_),"#"===g||"^"===g)s.push(_);else if("/"===g){if(!(w=s.pop()))throw new Error('Unopened section "'+m+'" at '+y);if(w[1]!==m)throw new Error('Unclosed section "'+w[1]+'" at '+y)}else"name"===g||"{"===g||"&"===g?p=!0:"="===g&&v(m)}if(d(),w=s.pop())throw new Error('Unclosed section "'+w[1]+'" at '+x.pos);return function(t){for(var e,n=[],r=n,o=[],i=0,a=t.length;i<a;++i)switch((e=t[i])[0]){case"#":case"^":r.push(e),o.push(e),r=e[4]=[];break;case"/":o.pop()[5]=e[2],r=o.length>0?o[o.length-1][4]:n;break;default:r.push(e)}return n}(function(t){for(var e,n,r=[],o=0,i=t.length;o<i;++o)(e=t[o])&&("text"===e[0]&&n&&"text"===n[0]?(n[1]+=e[1],n[3]=e[3]):(r.push(e),n=e));return r}(c))}(t,e),o&&n.set(r,i)),i},pu.prototype.render=function(t,e,n,r){var o=this.getConfigTags(r),i=this.parse(t,o),a=e instanceof uu?e:new uu(e,void 0);return this.renderTokens(i,a,n,t,r)},pu.prototype.renderTokens=function(t,e,n,r,o){for(var i,a,s,c="",l=0,u=t.length;l<u;++l)s=void 0,"#"===(a=(i=t[l])[0])?s=this.renderSection(i,e,n,r,o):"^"===a?s=this.renderInverted(i,e,n,r,o):">"===a?s=this.renderPartial(i,e,n,o):"&"===a?s=this.unescapedValue(i,e):"name"===a?s=this.escapedValue(i,e,o):"text"===a&&(s=this.rawValue(i)),void 0!==s&&(c+=s);return c},pu.prototype.renderSection=function(t,e,n,r,o){var i=this,a="",s=e.lookup(t[1]);if(s){if(Ql(s))for(var c=0,l=s.length;c<l;++c)a+=this.renderTokens(t[4],e.push(s[c]),n,r,o);else if("object"==typeof s||"string"==typeof s||"number"==typeof s)a+=this.renderTokens(t[4],e.push(s),n,r,o);else if(Zl(s)){if("string"!=typeof r)throw new Error("Cannot use higher-order sections without the original template");null!=(s=s.call(e.view,r.slice(t[3],t[5]),(function(t){return i.render(t,e,n,o)})))&&(a+=s)}else a+=this.renderTokens(t[4],e,n,r,o);return a}},pu.prototype.renderInverted=function(t,e,n,r,o){var i=e.lookup(t[1]);if(!i||Ql(i)&&0===i.length)return this.renderTokens(t[4],e,n,r,o)},pu.prototype.indentPartial=function(t,e,n){for(var r=e.replace(/[^ \t]/g,""),o=t.split("\n"),i=0;i<o.length;i++)o[i].length&&(i>0||!n)&&(o[i]=r+o[i]);return o.join("\n")},pu.prototype.renderPartial=function(t,e,n,r){if(n){var o=this.getConfigTags(r),i=Zl(n)?n(t[1]):n[t[1]];if(null!=i){var a=t[6],s=t[5],c=t[4],l=i;0==s&&c&&(l=this.indentPartial(i,c,a));var u=this.parse(l,o);return this.renderTokens(u,e,n,l,r)}}},pu.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(null!=n)return n},pu.prototype.escapedValue=function(t,e,n){var r=this.getConfigEscape(n)||fu.escape,o=e.lookup(t[1]);if(null!=o)return"number"==typeof o&&r===fu.escape?String(o):r(o)},pu.prototype.rawValue=function(t){return t[1]},pu.prototype.getConfigTags=function(t){return Ql(t)?t:t&&"object"==typeof t?t.tags:void 0},pu.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!Ql(t)?t.escape:void 0};var fu={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){hu.templateCache=t},get templateCache(){return hu.templateCache}},hu=new pu;fu.clearCache=function(){return hu.clearCache()},fu.parse=function(t,e){return hu.parse(t,e)},fu.render=function(t,e,n,r){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(Ql(o=t)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)');var o;return hu.render(t,e,n,r)},fu.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return ru[t]}))},fu.Scanner=lu,fu.Context=uu,fu.Writer=pu;var du=fu;du.escape=function(t){return t};const vu=t=>`<a href='${t.url}' data-link-id='${t.id}' ${t.newTab?'target="_blank"':""}>${t.name}</a>`;function yu(t){var e;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={};E()(e=N()(n)).call(e,(t=>{let[e,n]=t;switch(n.type){case"link":r[e]=vu(n);break;case"text":r[e]=n.value}}),{});const o=du.escape;du.escape=function(t){return t};const i=du.render(t,r);return du.escape=o,i}const gu=["event"];function mu(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function bu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=mu(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=mu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var _u=t=>{let{event:e}=t,n=L(t,gu);const[r]=ds(e),o=Yl(e.payload.id),i=Lt((()=>e.payload.fromClient?{children:Ae("p",{children:r.text})}:{bodyProps:{dangerouslySetInnerHTML:{__html:yu(Kl(r.text),r.variables)}}}),[r,e]);return Ae(al,bu(bu({type:"text",event:e,onClick:o},n),i))},wu=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],xu=wu.join(","),Eu="undefined"==typeof Element,Tu=Eu?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Su=!Eu&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},ku=function(t,e,n){var r=Array.prototype.slice.apply(t.querySelectorAll(xu));return e&&Tu.call(t,xu)&&r.unshift(t),r.filter(n)},Ou=function t(e,n,r){for(var o=[],i=Array.from(e);i.length;){var a=i.shift();if("SLOT"===a.tagName){var s=a.assignedElements(),c=t(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,c):o.push({scope:a,candidates:c})}else{Tu.call(a,xu)&&r.filter(a)&&(n||!e.includes(a))&&o.push(a);var l=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!r.shadowRootFilter||r.shadowRootFilter(a);if(l&&u){var p=t(!0===l?a.children:l.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scope:a,candidates:p})}else i.unshift.apply(i,a.children)}}return o},Au=function(t,e){return t.tabIndex<0&&(e||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},Cu=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Iu=function(t){return"INPUT"===t.tagName},Nu=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height;return 0===n&&0===r},Ru=function(t,e){return!(e.disabled||function(t){return Iu(t)&&"hidden"===t.type}(e)||function(t,e){var n=e.displayCheck,r=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var o=Tu.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Tu.call(o,"details:not([open]) *"))return!0;var i=Su(t).host,a=(null==i?void 0:i.ownerDocument.contains(i))||t.ownerDocument.contains(t);if(n&&"full"!==n){if("non-zero-area"===n)return Nu(t)}else{if("function"==typeof r){for(var s=t;t;){var c=t.parentElement,l=Su(t);if(c&&!c.shadowRoot&&!0===r(c))return Nu(t);t=t.assignedSlot?t.assignedSlot:c||l===t.ownerDocument?c:l.host}t=s}if(a)return!t.getClientRects().length}return!1}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var r=e.children.item(n);if("LEGEND"===r.tagName)return!!Tu.call(e,"fieldset[disabled] *")||!r.contains(t)}return!0}e=e.parentElement}return!1}(e))},ju=function(t,e){return!(function(t){return function(t){return Iu(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||Su(t),r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var o=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!o||o===t}(t)}(e)||Au(e)<0||!Ru(t,e))},Pu=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Lu=function t(e){var n=[],r=[];return e.forEach((function(e,o){var i=!!e.scope,a=i?e.scope:e,s=Au(a,i),c=i?t(e.candidates):a;0===s?i?n.push.apply(n,c):n.push(a):r.push({documentOrder:o,tabIndex:s,item:e,isScope:i,content:c})})),r.sort(Cu).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},Du=function(t,e){var n;return n=(e=e||{}).getShadowRoot?Ou([t],e.includeContainer,{filter:ju.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Pu}):ku(t,e.includeContainer,ju.bind(null,e)),Lu(n)},Uu=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Tu.call(t,xu)&&ju(e,t)},Mu=wu.concat("iframe").join(","),$u=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Tu.call(t,Mu)&&Ru(e,t)};function zu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zu(Object(n),!0).forEach((function(e){Bu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hu,Vu=(Hu=[],{activateTrap:function(t){if(Hu.length>0){var e=Hu[Hu.length-1];e!==t&&e.pause()}var n=Hu.indexOf(t);-1===n||Hu.splice(n,1),Hu.push(t)},deactivateTrap:function(t){var e=Hu.indexOf(t);-1!==e&&Hu.splice(e,1),Hu.length>0&&Hu[Hu.length-1].unpause()}}),qu=function(t){return setTimeout(t,0)},Wu=function(t,e){var n=-1;return t.every((function(t,r){return!e(t)||(n=r,!1)})),n},Gu=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"function"==typeof t?t.apply(void 0,n):t},Ku=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target};function Yu(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ju(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Yu(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Yu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Qu=t=>{var e;let{children:n,onClose:r,"aria-label":o,"aria-labelledby":i,fallBackFocusRef:a}=t;const s=Ia(),c=Pt(null),l=Pt(null),[u,p]=It(!1);return Rt((()=>{return u&&(l.current=(t=c.current,e={initialFocus:a&&a.current?a.current:null},r=(null==e?void 0:e.document)||document,o=Fu({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},e),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(t,e,n){return t&&void 0!==t[e]?t[e]:o[n||e]},p=function(t){return i.containerGroups.findIndex((function(e){var n=e.container,r=e.tabbableNodes;return n.contains(t)||r.find((function(e){return e===t}))}))},f=function(t){var e=o[t];if("function"==typeof e){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e=e.apply(void 0,i)}if(!0===e&&(e=void 0),!e){if(void 0===e||!1===e)return e;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var s=e;if("string"==typeof e&&!(s=r.querySelector(e)))throw new Error("`".concat(t,"` as selector refers to no known node"));return s},h=function(){var t=f("initialFocus");if(!1===t)return!1;if(void 0===t)if(p(r.activeElement)>=0)t=r.activeElement;else{var e=i.tabbableGroups[0];t=e&&e.firstTabbableNode||f("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},d=function(){if(i.containerGroups=i.containers.map((function(t){var e,n,r=Du(t,o.tabbableOptions),i=(e=t,(n=(n=o.tabbableOptions)||{}).getShadowRoot?Ou([e],n.includeContainer,{filter:Ru.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):ku(e,n.includeContainer,Ru.bind(null,n)));return{container:t,tabbableNodes:r,focusableNodes:i,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(e){return e===t}));if(!(n<0))return e?i.slice(n+1).find((function(t){return Uu(t,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(t){return Uu(t,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(t){return t.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},v=function t(e){!1!==e&&e!==r.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(h()))},y=function(t){var e=f("setReturnFocus",t);return e||!1!==e&&t},g=function(t){var e=Ku(t);p(e)>=0||(Gu(o.clickOutsideDeactivates,t)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!$u(e,o.tabbableOptions)}):Gu(o.allowOutsideClick,t)||t.preventDefault())},m=function(t){var e=Ku(t),n=p(e)>=0;n||e instanceof Document?n&&(i.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),v(i.mostRecentlyFocusedNode||h()))},b=function(t){if(function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t)&&!1!==Gu(o.escapeDeactivates,t))return t.preventDefault(),void n.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){var e=Ku(t);d();var n=null;if(i.tabbableGroups.length>0){var r=p(e),a=r>=0?i.containerGroups[r]:void 0;if(r<0)n=t.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var s=Wu(i.tabbableGroups,(function(t){var n=t.firstTabbableNode;return e===n}));if(s<0&&(a.container===e||$u(e,o.tabbableOptions)&&!Uu(e,o.tabbableOptions)&&!a.nextTabbableNode(e,!1))&&(s=r),s>=0){var c=0===s?i.tabbableGroups.length-1:s-1;n=i.tabbableGroups[c].lastTabbableNode}}else{var l=Wu(i.tabbableGroups,(function(t){var n=t.lastTabbableNode;return e===n}));if(l<0&&(a.container===e||$u(e,o.tabbableOptions)&&!Uu(e,o.tabbableOptions)&&!a.nextTabbableNode(e))&&(l=r),l>=0){var u=l===i.tabbableGroups.length-1?0:l+1;n=i.tabbableGroups[u].firstTabbableNode}}}else n=f("fallbackFocus");n&&(t.preventDefault(),v(n))}(t)},_=function(t){var e=Ku(t);p(e)>=0||Gu(o.clickOutsideDeactivates,t)||Gu(o.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},w=function(){if(i.active)return Vu.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?qu((function(){v(h())})):v(h()),r.addEventListener("focusin",m,!0),r.addEventListener("mousedown",g,{capture:!0,passive:!1}),r.addEventListener("touchstart",g,{capture:!0,passive:!1}),r.addEventListener("click",_,{capture:!0,passive:!1}),r.addEventListener("keydown",b,{capture:!0,passive:!1}),n},x=function(){if(i.active)return r.removeEventListener("focusin",m,!0),r.removeEventListener("mousedown",g,!0),r.removeEventListener("touchstart",g,!0),r.removeEventListener("click",_,!0),r.removeEventListener("keydown",b,!0),n},(n={get active(){return i.active},get paused(){return i.paused},activate:function(t){if(i.active)return this;var e=s(t,"onActivate"),n=s(t,"onPostActivate"),o=s(t,"checkCanFocusTrap");o||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,e&&e();var a=function(){o&&d(),w(),n&&n()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(t){if(!i.active)return this;var e=Fu({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},t);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,x(),i.active=!1,i.paused=!1,Vu.deactivateTrap(n);var r=s(e,"onDeactivate"),a=s(e,"onPostDeactivate"),c=s(e,"checkCanReturnFocus"),l=s(e,"returnFocus","returnFocusOnDeactivate");r&&r();var u=function(){qu((function(){l&&v(y(i.nodeFocusedBeforeActivation)),a&&a()}))};return l&&c?(c(y(i.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,x()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,d(),w(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return i.containers=e.map((function(t){return"string"==typeof t?r.querySelector(t):t})),i.active&&d(),this}}).updateContainerElements(t),n),l.current.activate()),()=>{l.current&&l.current.deactivate()};var t,e,n,r,o,i,s,p,f,h,d,v,y,g,m,b,_,w,x}),[u,a]),Rt((()=>{const t=(()=>{var t;const e=[],n=[];return E()(t=document.querySelectorAll('body > *:not([role="dialog"])')).call(t,(t=>{const r=t.getAttribute("aria-hidden");null!==r&&"false"!==r||(e.push(r),n.push(t),t.setAttribute("aria-hidden","true"))})),()=>{E()(n).call(n,((t,n)=>{const r=e[n];null===r?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",r)}))}})();return()=>{t()}}),[u]),Rt((()=>{u&&c.current.addEventListener("keydown",(t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&r()}))}),[u,r]),jt((()=>{const t=document.getElementsByTagName("body")[0],e=document.createElement("div");return e.setAttribute("id",s),e.setAttribute("role","dialog"),e.setAttribute("data-nosnippet","true"),e.setAttribute("aria-modal","true"),o&&e.setAttribute("aria-label",o),i&&e.setAttribute("aria-labelledby",i),t.appendChild(e),c.current=e,p(!0),()=>{c.current&&(t.removeChild(c.current),c.current=null)}}),[o,i,s]),"function"==typeof n?n({onClose:r,modalRenderFn:t=>c.current&&vt(t,c.current)}):c.current&&vt(b()(e=rt(n)).call(e,(t=>(t.props=Ju(Ju({},t.props),{},{onClose:r}),t))),c.current)},Zu=t=>{let{url:e,description:n,onClose:r}=t;const{zIndex:o,layoutMode:i,namespace:a}=Ke(),s=za(),c=di(),l=Pt(null),{t:u}=Li(),p=["modal",`app--layout-${i}`,`namespace--${a}`,...c],f=t=>{t.stopPropagation()},h=()=>{r()},d=o?{zIndex:o+1}:void 0;return Ae(Qu,{onClose:r,"aria-label":u("lightbox.heading"),fallBackFocusRef:l,children:t=>{let{onClose:r,modalRenderFn:o}=t;return o((t=>Ae("div",{className:ai(p),onClick:h,style:d,children:Ae("div",{className:ai("modal__float"),tabIndex:"-1",onMouseDown:s,onKeyDown:s,onTouchStart:s,onMouseMove:s,onWheel:s,onPointerDown:s,onPointerMove:s,ref:l,children:[Ae("div",{className:ai("modal__inner"),onClick:f,children:Ae("img",{className:ai("modal__image"),src:e,alt:n})}),Ae("button",{type:"button",className:ai("modal__close"),onClick:t,children:[Ae(Es,{name:"close",size:"16"}),u("lightbox.closeLabel")]})]})}))(r))}})},Xu=t=>{let{description:e,url:n}=t;const{t:r}=Li(),[o,i]=It(!1);return Ae(Y,{children:[Ae("button",{type:"button",className:ai("modal__enlarge"),onClick:()=>{i(!0)},children:[r("message.image.srTextEnlargeButtonLabel",{description:e}),Ae(Es,{name:"enlarge",size:"32"})]}),o&&Ae(Zu,{url:n,description:e,onClose:()=>{i(!1)}})]})};const tp=["event","descriptorId"];function ep(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function np(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=ep(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=ep(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const rp=["event","descriptorId"];function op(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ip(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=op(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=op(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const ap={[Wn.new_topic]:"newtopic"};const sp=["event"];function cp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const lp={default:t=>{let{event:e}=t;const{t:n}=Li(),{subtype:r}=e.payload.body;return Ae(Jc,{dividerType:ap[Wn[r]],iconName:Wn[r],children:Ae("p",{children:n(`dividerKeys.${Wn[r]}`)})})},[Wn.new_translation]:t=>{let{event:e}=t;const{t:n}=Li(),{translationEnabled:r,translationLocale:o,text:i}=e.payload.body,{enableTranslations:a}=hs(),s=ys(o);return Ae(Jc,{iconName:"newTranslation",dividerType:"newtranslation",children:[Ae("p",{className:ai("divider__title"),children:n(r?"translations.divider.startText":"translations.divider.stopText",{language:s})}),r?Ae("p",{children:i}):Ae("button",{className:ai("button","button--secondary"),onClick:()=>{a(o)},children:n("translations.divider.restartButtonText")})]})}};const up=["event"];function pp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function fp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=pp(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=pp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const hp=["event"];function dp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function vp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=dp(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=dp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const yp=["event"];function gp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function mp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=gp(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=gp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const bp=t=>{let{children:e,url:n,target:r}=t;return n?Ae("a",{href:n,download:!0,target:r||void 0,className:ai(["download","download-link"]),children:e}):Ae("span",{className:ai("download"),children:e})};var _p=n(4494),wp=n.n(_p);function xp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ep(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=xp(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=xp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Tp=t=>{let{id:e,action:n,buttonText:r,description:o,hasFocus:i,image:a,title:s,isCarouselItem:c}=t;const l=Pt(null),{sendMessage:u,sendAction:p,emitEvent:f}=Da(),h=Ia(),d=Pt(),v=n.type===Yn?"a":"button",y=Dt((()=>f("action.click_card",{type:Hn,originMessage:e,action:n})),[f,e,n]),g=Dt((()=>{if(y(),"ask"===n.type)u({body:n.ask});else if("topic"===n.type){const{topic:t,fallbackMessage:e}=n;p({type:Fn,body:{name:t,fallbackMessage:e}})}}),[u,n,p,y]),m=Lt((()=>n.type===Yn?{href:n.link,rel:"noopener noreferrer",target:n.newTab?"_blank":"_self",onClick:y}:{onClick:g}),[n,g,y]);return Rt((()=>{c&&(i&&d.current?window.requestAnimationFrame((()=>l.current.focus())):l.current.blur()),d.current=!0}),[i,c]),Ae("div",{className:ai("card__wrapper"),id:e,tabIndex:"-1",ref:l,children:[Ae("img",{className:ai("card__image"),src:a,alt:""}),Ae("div",{className:ai("card__content"),id:e,children:[s&&Ae("h2",{className:ai("card__title"),children:s}),o&&Ae("div",{className:ai("card__description"),dangerouslySetInnerHTML:{__html:Kl(o)}}),Ae(v,Ep(Ep({tabIndex:c&&!i?"-1":void 0,className:ai("button","button--primary"),"aria-describedby":h},m),{},{children:r}))]})]})};function Sp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function kp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Sp(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Sp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Op(t){let{item:e,items:n,index:r,isActive:o}=t;const{t:i}=Li();return Ae("div",{className:ai("carousel-item",`carousel-item--${e.type}`),role:"group","aria-roledescription":"slide","aria-label":i("carousel.slide.label",{index:r+1,total:n.length}),children:Ae(Tp,kp(kp({},e),{},{isCarouselItem:!0,hasFocus:o}))})}function Ap(t){let{items:e,currentIndex:n,onChange:r,getItemKey:o,getItemLabel:i}=t;const a=e.length,s=Dt((t=>{const e=Number(t.target.dataset.item||"0"),o=Math.min(a-1,Math.max(0,e));o!==n&&r(o)}),[a,n,r]);return Ae("div",{className:ai("carousel-pagination__wrapper"),role:"group",children:Ae("ul",{className:ai("carousel-pagination"),children:b()(e).call(e,((t,e)=>{const r=n===e;return Ae("li",{className:ai("carousel-pagination__item",r?"is-active":void 0),children:Ae("button",{className:ai("carousel-pagination__button"),type:"button",onClick:s,"data-item":e,"aria-disabled":r?"true":void 0,"aria-label":i(t,e)})},o(t,e,"pagination-item-"))}))})})}function Cp(t){let{items:e,currentIndex:n,onChange:r,children:o}=t;const{t:i}=Li(),a=e.length;return Ae("div",{className:ai("carousel-controls"),children:[Ae("button",{className:ai("button","button--previous"),"aria-label":i("carousel.controls.previous"),onClick:()=>{r((n-1+a)%a)},children:Ae(Es,{name:"arrowLeft",size:"16"})}),o,Ae("button",{className:ai("button","button--next"),"aria-label":i("carousel.controls.next"),onClick:()=>{r((n+1)%a)},children:Ae(Es,{name:"arrowRight",size:"16"})})]})}const Ip=(t,e,n)=>`${n}${e}`,Np=t=>t.label,Rp=t=>{let{target:e}=t;e.scrollLeft=0};function jp(t){let{currentIndex:e,onChange:n,getItemKey:r=Ip,getItemLabel:o=Np,items:i}=t;const a=Ia(),s=i.length,[c,l]=It(Number(e||"0"));Rt((()=>{l(Number(e||"0"))}),[l,e]);const u=Pt([]);u.current=Lt((()=>{var t,e;return b()(t=wp()(e=Array(s)).call(e,1)).call(t,(()=>({current:null})))}),[s]);const p=Pt(!0),f=Pt();return f.current=n,Rt((()=>{p.current?p.current=!1:f.current&&f.current(c)}),[c]),Ae("div",{className:ai("carousel"),role:"group","aria-roledescription":"carousel",children:[Ae("div",{className:ai("carousel__slides-wrapper"),onScroll:Rp,children:Ae("div",{id:a,className:ai("carousel__slides"),style:{width:100*s+"%",left:-100*c+"%"},"aria-live":"polite","aria-atomic":"false",children:b()(i).call(i,((t,e)=>{const n=c===e;return Ae("div",{ref:u.current[e],className:ai("carousel__slide",n?"is-active":void 0),"aria-hidden":n?void 0:"true",children:Ae(Op,{item:t,items:i,currentIndex:c,index:e,isActive:n})},r(t,e,"item-"))}))})}),Ae("div",{className:ai("carousel__controls"),children:Ae(Cp,{currentIndex:c,items:i,onChange:l,controlId:a,children:Ae("div",{className:ai("carousel__pagination"),children:Ae(Ap,{currentIndex:c,items:i,onChange:l,getItemKey:r,getItemLabel:o})})})})]})}const Pp=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return`${n}${t.title}:${e}`},Lp=t=>t.title;function Dp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Up(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Dp(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Dp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Mp=["event"];function $p(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function zp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=$p(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=$p(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Fp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Fp(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Fp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Hp={message:{choice_prompt:t=>{var e,n;let{event:r,children:o}=t,i=L(t,sl);const{t:a}=Li(),s=Ia(),{body:c,subEvent:l,showOptions:u,chooseAgain:p,onChoiceClickHandler:f,onChooseAgainClickHandler:h}=ul(r);return Ae(Y,{children:[b()(e=rt(o)).call(e,(t=>(t.props=ll(ll({},t.props),{},{event:l,descriptorId:s,showTranslationToggle:!1}),t))),p&&Ae("button",{type:"button",className:ai("button","button--secondary","button--choose-again"),"aria-expanded":u?"true":"false",onClick:h,"aria-describedby":s,children:[a(u?"message.choicePrompts.cancelChooseAgain":"message.choicePrompts.chooseAgain"),Ae(Es,{name:"chevronDown",size:"8"})]}),u&&Ae(al,ll(ll({type:"choice-prompt",showParticipant:!1,event:r},i),{},{children:Ae("ul",{className:ai("choice-prompt","choice-prompt--many"),children:b()(n=c.choices).call(n,(t=>Ae("li",{className:ai("choice-prompt__item",{[`choice-prompt__item--${t.category}`]:t.category}),children:Ae("button",{type:"button",className:ai("button","button--primary"),onClick:()=>{f(t)},children:t.text})},t.id)))})}))]})},text:_u,image:t=>{let{event:e,descriptorId:n}=t,r=L(t,tp);const[o]=ds(e),{description:i,url:a,isZoomable:s}=o,[c,l]=It(!1);return Ae(al,np(np({event:e,type:"image"},r),{},{children:[Ae("img",{src:a,id:n,alt:i,onLoad:()=>{l(!0)}}),s&&c&&Ae(Xu,{description:i,url:a})]}))},splash:t=>{let{event:e}=t,n=L(t,hp);const{payload:r}=e,[o]=ds(e),i=Yl(r.id);return Ae(al,vp(vp({type:"splash",event:e,onClick:i},n),{},{bodyProps:{dangerouslySetInnerHTML:{__html:yu(Kl(o.text),o.variables)}}}))},video:t=>{let{event:e,descriptorId:n}=t,r=L(t,rp);const[o]=ds(e),{description:i,url:a}=o;return vi(e).push("message--type-video"),Ae(al,ip(ip({event:e,type:"video"},r),{},{children:[Ae("div",{id:n,className:ai("visually-hidden"),children:i}),Ae("iframe",{title:i,src:a,allow:"autoplay; encrypted-media",allowFullScreen:!0})]}))},upload:t=>{let{event:e}=t,n=L(t,yp);const{t:r}=Li(),[o]=ds(e),{fromClient:i}=e.payload,{filename:a,url:s}=o,c=Lt((()=>r(s?"fileUpload.srFileDownloadText":"fileUpload.srFileUploadedText",{fileName:a})),[s,a,r]);return Ae(al,mp(mp({event:e,type:"upload"},n),{},{children:Ae(bp,{url:s,target:i?void 0:"_blank",children:[Ae(Es,{name:"download",size:"16"}),Ae("span",{"aria-hidden":"true",className:ai("file-download"),children:a}),Ae("span",{className:ai("visually-hidden"),children:c})]})}))},cta:t=>{let{event:e}=t;const[n]=ds(e),r=Yl(e.payload.id),{emitEvent:o}=Da(),i=Ia(),a=Dt((()=>o("action.click_cta",{type:Hn,originMessage:e.payload.id,link:{url:n.buttonLink}})),[o,n,e]);return Ae(al,{type:"cta",event:e,children:[Ae("div",{className:ai("cta__content"),id:i,dangerouslySetInnerHTML:{__html:Kl(n.description)},onClick:r}),Ae("a",{className:ai("button","button--primary"),"aria-describedby":i,href:n.buttonLink,rel:"noreferrer",target:n.buttonNewTab?"_blank":"_self",onClick:a,children:n.buttonText})]})},carousel:t=>{let{event:e}=t;const[n]=ds(e),r=n.cards;return Ae(al,{event:e,modifiers:"type-carousel",children:Ae(jp,{items:r,ItemComponent:Op,getItemKey:Pp,getItemLabel:Lp})})},card:t=>{let{event:e}=t;const[n]=ds(e),r=Ia();return Ae(al,{type:"card",event:e,children:Ae(Tp,Up({id:r},n))})}},info:{text:_u,divider:t=>{let{event:e}=t,n=L(t,sp);return Ae(lp[Wn[e.payload.body.subtype]]||lp.default,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=cp(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=cp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({event:e},n))},translation:t=>{let{event:e}=t,n=L(t,up);const{t:r}=Li(),[o]=ds(e);return Ae(al,fp(fp({type:"text",event:e},n),{},{children:r(o.key.join("."),o.variables)}))},timeIndicator:Xc},participant:{participant:t=>{let{event:e}=t;const{participant:n}=e.payload,[r]=ds(e),o=Lt((()=>r?du.render(Kl(r),n):void 0),[r,n]);return o?Ae(Jc,{graphicSrc:n.avatar,graphicType:n.avatar?"avatar":void 0,iconName:n.avatar?void 0:"balloon",childrenHTML:o,dividerType:"participant"}):null}},service_data:{suggestion:t=>{let{event:e}=t,n=L(t,Mp);const[r,o]=It(!0),i=hi(),a=Ta(),{sendAction:s,addMessageBubble:c}=Da(),{suggestions:l,payload:u}=(t=>{const{payload:e}=t,[n]=ds(t);return{suggestions:n,payload:e}})(e),{t:p}=Li(),f=p("suggestions.headingText"),h=p("suggestions.footerText"),d=Dt((t=>{let{id:e,question:n}=t;o(!1),i(Ko(!0)),s({type:Un,originMessage:u.id,body:{type:"faqclick",body:{faqId:e,faqQuestion:n}}}),c(n)}),[i,s,u.id,c]);return!r||a?null:Ae("div",{className:ai("suggestions","suggestions--conversation"),children:[f&&Ae("p",{className:ai("suggestions__heading"),children:f}),Ae(al,zp(zp({type:"suggestions",showParticipant:!1,event:e},n),{},{children:[Ae(Fc,{className:"suggestions__list--conversation",onClickSuggestion:d,suggestions:l}),h&&Ae("p",{className:ai("suggestions__footer"),children:h})]}))]})}}};var Vp=t=>{let{children:e}=t;const{customComponents:n}=Ke(),r=Lt((()=>{var t;return sn()(t=S()(Hp)).call(t,((t,e)=>Bp(Bp({},t),{},{[e]:Bp(Bp({},Hp[e]),n?n[e]:{})})),{fallback:_u})}),[n]);return Ae(Wc.Provider,{value:r,children:e})},qp=()=>{const{t:t}=Li(),e=Pt(null),n=go(),r=ho().isLoading,{isOpen:o}=Sa(),i=_o(),a=Vi();return Rt((()=>{window.requestAnimationFrame((()=>{e.current&&(e.current.scrollTop=e.current.scrollHeight)}))}),[n,r,o]),Ae(Y,{children:[o&&Ae("a",{className:ai("skip-link"),href:`#${i}`,onClick:t=>{t.preventDefault(),a()},children:t("skiplinkText")}),Ae("div",{className:ai("chat__body"),ref:e,children:Ae("div",{className:ai("conversation__container"),children:[Ae(qc,{}),Ae("ol",{className:ai("conversation"),children:[Ae(Vp,{children:(()=>{let t=null;return b()(n).call(n,(e=>{const{type:n,payload:r}=e,{participant:o,fromClient:i}=r;let a=!1;if("participant"!==n){const n=i?"seamly-client-participant":o;"info"!==e.type&&t!==n&&(a=!0),t=n}return Ae(tl,{event:e,newParticipant:a},e.payload.id)}))})()}),r&&Ae(nl,{})]})]})})]})},Wp=t=>{let{baseClassName:e,children:n,title:r}=t;const o=_o(),i=Ia();return Ae("section",{id:o,className:ai(e),"aria-describedby":i,tabIndex:"-1",children:[Ae("h2",{className:ai(`${e}__title`),id:i,children:r}),n]})},Gp=()=>{const{t:t}=Li(),e=Vi(),n=za(),{emitEvent:r}=Da(),{isActive:o,remaining:i,timer:a,endCountdown:s}=ns(),c=i>0,l=t(c?"idleDetachWarning.countdownTitle":"idleDetachWarning.notifyTransferText");return Ae(Wp,{baseClassName:"idle",title:l,children:c&&Ae(Y,{children:[Ae("div",{className:ai("idle__count-container"),children:o&&Ae(Y,{children:[Ae("span",{className:ai("idle__count-text"),children:t("idleDetachWarning.countdownText")}),Ae("span",{className:ai("idle__count-timer"),children:t("idleDetachWarning.countdownTimer",a)})]})}),Ae("div",{className:ai("idle__options"),children:[Ae("button",{type:"button",className:ai("button","button--primary"),onClick:()=>{n(),s(!0),e(),r("idleTimer.selectContinue")},children:t("idleDetachWarning.continueButton")}),Ae("button",{type:"button",className:ai("button","button--primary"),onClick:()=>{s(),e(),r("idleTimer.selectEnd")},children:t("idleDetachWarning.detachButton")})]})]})})},Kp=()=>{const{t:t}=Li(),e=za(),{name:n}=xo()||{},{continueChat:r,restartChat:o}=os();return Ae(Wp,{baseClassName:"prompt",title:t("resumeConversationPrompt.title",{name:n}),children:Ae("div",{className:ai("prompt__options"),children:[Ae("button",{type:"button",className:ai("button","button--primary"),onClick:()=>{e(),r()},children:t("resumeConversationPrompt.continueButton")}),Ae("button",{type:"button",className:ai("button","button--primary"),onClick:o,children:t("resumeConversationPrompt.detachButton")})]})})},Yp=n(2088),Jp=n(1445);function Qp(){var t;return Qp=Yp?Jp(t=Yp).call(t):function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qp.apply(this,arguments)}const Zp=["id","name","type","labelText","labelClass","contentHint","aria-describedby"];function Xp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function tf(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Xp(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Xp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var ef=function(t){let{id:e,name:n,type:r,labelText:o,labelClass:i,contentHint:a,"aria-describedby":s}=t,c=L(t,Zp);const{isSubmitted:l}=Ys(),[u,{error:p}]=Js(n),f=l&&p,h=[];return s&&h.push(s),a&&h.push(`${e}-content-hint`),f&&h.push(`${e}-error`),Ae(kc,{id:e,contentHint:a,validity:!f,errorText:p,labelText:o,labelClass:i,children:Ae("input",tf(tf({id:e,name:n,type:r,"aria-invalid":f?"true":"false","aria-describedby":h.join(" ")||null},u),c))})};function nf(t){let{controlName:e,skipLinkId:n}=t;const{t:r}=Li(),{sendAssertive:o}=Ma(),{emitEvent:i}=Da(),a=(()=>{const{sendAction:t}=Da(),{features:e}=Qi(),{typingPeekahead:n}=e||{},r=Pt(null),o=Pt(null),i=Pt(!1),a=Pt(null);Rt((()=>()=>{clearInterval(a.current),clearTimeout(r.current),clearTimeout(o.current)}),[]);const s=(e,r)=>{t(function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Ha(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Ha(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({type:Mn,state:e},n&&n.enabled?{body:{currentMessage:r}}:{}))};return t=>{t.code&&"Enter"===t.code||13===t.keyCode||(i.current=!0,a.current||(s(!0,t.target.value),a.current=Ba()((()=>{i.current?n&&n.enabled&&s(!0,t.target.value):(clearInterval(a.current),a.current=null)}),2e3)),clearTimeout(r.current),clearTimeout(o.current),r.current=tn()((()=>{i.current=!1}),300),o.current=tn()((()=>{s(!1,t.target.value)}),2e3))}})(),{setBlockAutoEntrySwitch:s}=Ga(),{hasCharacterLimit:c,characterLimit:u,reachedCharacterWarning:f,reachedCharacterLimit:d,remainingChars:y}=function(t){const{t:e}=Li(),{sendAssertive:n}=Ma(),{hasLimit:r,limit:o}=(()=>{const{entryMeta:{options:{text:t}}}=ho(),{limit:e}=t||{};return{hasLimit:null!=e,limit:null!=e?e:null}})(),i=Lt((()=>fn(n,300)),[n]),a=Lt((()=>fn(((t,n)=>{t&&i(e("input.srCharacterLimitText",{limit:n}))}),300)),[i,e]),[{value:s}]=Js(t),c=r&&s?o-s.length:o,l=!!r&&c<=50,u=!!r&&c<0;return Rt((()=>{a(l,c)}),[l,c,a]),{hasCharacterLimit:r,characterLimit:o,reachedCharacterWarning:l,reachedCharacterLimit:u,remainingChars:c}}(e),[{value:m}]=Js(e),b=!!m,_=Dt((()=>{f&&o(r("input.srCharacterLimitText",{limit:y})),i("ui.inputFocus")}),[r,o,f,y,i]),w=Lt((()=>r("input.inputPlaceholder",{hasLimit:c,limit:c?u:null})),[r,c,u]),x=Lt((()=>r("input.inputLabel",{hasLimit:c,limit:c?u:null})),[r,c,u]);return jt((()=>(s(b),()=>{s(!1)})),[s,b]),Ae(Tc,{className:ai("entry-form"),disableValidationClasses:!0,noValidate:"true",children:[Ae("div",{className:ai(["input--text__container",...f&&!d?["character-warning"]:[],...d?["character-exceeded"]:[]]),children:[Ae(ef,{id:n,type:"text",name:e,className:ai("input__text"),autocomplete:"off",placeholder:w,labelText:x,labelClass:ai("visually-hidden"),"aria-invalid":c?d:null,onKeyUp:a,onFocus:_}),Ae("div",{className:ai("character-count"),children:f&&Ae("span",{children:y})})]}),Ae("button",{className:ai("button","input__submit"),type:"submit","aria-disabled":!b||d?"true":null,children:Ae(Es,{name:"send",size:"32",alt:r("input.sendMessage")})})]})}function rf(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function of(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=rf(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=rf(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const af="userText";function sf(t){let e=Qp({},t);const{isOpen:n,setVisibility:r}=Sa(),o=_o(),i=Vi(),{sendMessage:a}=Da(),s=Dt(((t,e)=>{let{updateControlValue:o}=e;a({body:t.userText}),o(af,""),i(),n||r(be.open)}),[a,i,n,r]);return Ae(tc,of(of({},e),{},{formId:"textEntry",persistData:!0,onSubmit:s,children:Ae(nf,{controlName:af,skipLinkId:o})}))}var cf=()=>{const{t:t}=Li(),{showFileUpload:e,serviceAllowsUploads:n}=ia(),[r,o]=It(n),i=Vi(),a=Pt(null),{setUserEntryType:s,activeEntry:c}=Ga(),l=Pt(null),{sendPolite:u}=Ma(),p=!!xo();return Rt((()=>{xn(l.current,(()=>{n||i()})),o(n)}),[n,i]),Rt((()=>{a.current&&!n&&u(t("fileUpload.srUnavailableText")),!1===a.current&&n&&u(t("fileUpload.srAvailableText")),p&&(a.current=n)}),[n,p,u,t]),!e&&c!==Pn&&Ae(Cs,{isActive:r,transitionStartState:As.rendered,children:Ae("div",{className:ai("upload-toggle-wrapper"),children:Ae(Cs,{isActive:r,transitionStartState:As.visuallyHidden,children:Ae("button",{className:ai(["button","button--secondary","upload-toggle"]),ref:l,"aria-disabled":r?null:"true",type:"button",onClick:r?()=>{s(Pn),i()}:null,children:Ae(Es,{name:"file",size:"32",alt:t("fileUpload.toggleButtonText")})})})})})},lf=()=>{const{t:t}=Li(),{currentUploads:e}=aa();return Ae("div",{className:ai("progress"),children:b()(e).call(e,(e=>{let{id:n,name:r,progress:o,uploading:i,error:a}=e;return Ae("div",{className:ai("progress_container"),children:[Ae("div",{className:ai("progress__text"),children:[Ae("span",{className:ai("progress__text--file-name"),children:r}),Ae("span",{className:ai("progress__text--percentage"),children:`${o}%`})]}),Ae(Sc,{error:a}),Ae("progress",{className:ai("progress__bar"),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-label":t("fileUpload.srProgressLabel",{fileName:r}),max:"100","aria-valuenow":o,value:o,"aria-busy":i,children:`${o}%`})]},n)}))})};function uf(t){let{id:e,name:n,labelText:r,contentHint:o,outputText:i,accept:a}=t;const{isSubmitted:s}=Ys(),[c,l]=It(!1),[{onInput:u,onBlur:p},{error:f}]=Js(n),h=Ia(),d=Ia(),v=Ia(),y=s&&f,g=[v];o&&g.push(d),y&&g.push(h);const m=Dt((()=>{l(!0)}),[l]),b=Dt((()=>{l(!1),p()}),[l,p]),_=Dt((t=>{const e={target:{value:t.target.files}};u(e)}),[u]);return Ae("div",{className:ai("upload__container"),children:[o&&Ae("span",{className:ai("upload__content-hint"),id:d,children:o}),Ae(Sc,{id:h,error:y&&f}),Ae("div",{className:ai(["file-upload",...c?["focus-within"]:[]]),children:Ae("label",{htmlFor:e,className:ai("upload__label"),children:[Ae(Es,{name:"upload",size:"32"}),Ae("div",{children:[Ae("span",{className:ai(["upload__label--text"]),children:r}),Ae("input",{id:e,className:ai("upload__input"),type:"file",name:n,onChange:_,"aria-invalid":y?"true":"false","aria-describedby":g.join(" "),accept:a||null,onFocus:m,onBlur:b}),Ae("span",{className:ai("upload__output"),"aria-hidden":"true",id:v,children:i})]})]})})]})}function pf(t){let{skiplinkId:e,controlName:n,accept:r,contentHint:o,isUploading:i,isComplete:a,onClickCancel:s}=t;const{t:c}=Li(),[{value:l}]=Js(n),u=l&&l.length>0,p=u?l[0].name:"";return Ae(Tc,{className:ai("upload-form"),children:[Ae(uf,{name:n,id:e,accept:r,labelText:c("fileUpload.labelText"),outputText:c("fileUpload.selectedText",{hasFile:u,filename:p}),contentHint:o}),Ae("div",{className:ai("upload__button-container"),children:[Ae("button",{id:i||!a?e:void 0,type:"button",onClick:s,className:ai("button","button--secondary","upload__cancel"),children:c("fileUpload.cancelButtonText")}),Ae("button",{className:ai("button","button--primary"),type:"submit",children:c("fileUpload.uploadButtonText")})]})]})}const ff="fileListForm",hf="fileList";var df=()=>{const{t:t}=Li(),{sendPolite:e,sendAssertive:n}=Ma(),r=_o(),o=Vi(),{serviceAllowsUploads:i,allowedMimeTypes:a,maxSize:s}=ia(),c=Pt(null),l=Pt(i),{cancelEntrySelection:u}=Ga(),{uploadFile:p,clearUploads:f,isUploading:h,isComplete:d}=aa(),{hasFile:v,selectedFileName:y,uploadHandle:g,hasServerError:m,progress:b}=((t,e)=>{const n=Ge(Hs,{formId:t,name:e},[t,e]),{currentUploads:r}=aa(),o=n&&n.length>0;let i=null,a=!1,s=0;if(r&&r.length>0){const t=r[0];i=t.uploadHandle,a=!!t.error,s=t.progress}return{hasFile:o,selectedFileName:o?n[0].name:"",uploadHandle:i,hasServerError:a,progress:s}})(ff,hf),_=Ia(),w=Pt(!0),x=t("fileUpload.contentHint",{size:vn(s)}),E=Pt(""),T=Pt(null);Rt((()=>{E.current&&T.current.contains(document.activeElement)&&"INPUT"===document.activeElement.tagName&&n(x),E.current=x}),[x,n]),Rt((()=>{b>0&&e(1===b?t("fileUpload.srStartedText"):`${b}%`)}),[b,e,t]),Rt((()=>{w.current||h||!d||(f(),u(),o(),tn()((()=>{e(t("fileUpload.srCompleteText"))}),300)),w.current=d}),[h,d,f,u,o,e,t]);const S=Dt((t=>{let{fileList:e}=t;p(e[0]),o()}),[p,!1,o]),k=Dt((()=>{g&&g.abort(),f(),u(),o()}),[g,f,u,o]),O=Lt((()=>({[hf]:[gc((()=>i),t("fileUpload.errors.unavailable")),gc(bc,t("fileUpload.errors.noFile")),gc(mc,t("fileUpload.errors.tooLarge"),s)]})),[s,i,t]);return Ae("div",{className:ai(["upload",...m?["upload--error"]:[]]),ref:T,children:Ae(tc,{formId:ff,persistData:!0,onSubmit:S,validationSchema:O,children:[(h||!d)&&Ae(Y,{children:[Ae(lf,{}),Ae("div",{className:ai("upload__button-container"),children:Ae("button",{id:h||!d?r:void 0,type:"button",onClick:k,ref:c,className:ai("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]}),!h&&d&&Ae(pf,{controlName:hf,skiplinkId:r,accept:a.join(", "),contentHint:x,isComplete:d,isUploading:h,outputText:t("fileUpload.selectedText",{hasFile:v,filename:y}),onClickCancel:k}),!l.current&&Ae(Y,{children:[Ae("span",{className:ai("notification"),id:_,children:t("fileUpload.unavailableText")}),Ae("div",{className:ai("upload__button-container"),children:Ae("button",{id:h||!d?r:void 0,type:"button",onClick:k,className:ai("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]})]})})};function vf(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function yf(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=vf(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=vf(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var gf=()=>{const{isOpen:t}=Sa(),e=Pt(null),{hasCountdown:n}=ns(),[r,o]=It(n),{hasPrompt:i}=os(),[a,s]=It(i),c=Vi(),l=Pt(!1),{activeEntry:u}=Ga(),[p,f]=It({text:sf,upload:df}),[h,d]=It((()=>u)),v=Ke(),{accountAllowsUploads:y}=ia(),g=Dt((()=>{xn(e.current,(()=>{c()}))}),[c]);Rt((()=>{const{customComponents:t}=v,{entry:e}=t||{};e&&f((t=>yf(yf({},t),e)))}),[v]),Rt((()=>{g(),o(n),s(i)}),[n,i,g]),Rt((()=>{d(u),g()}),[u,g,e]),l.current=!(!e.current||!e.current.contains(document.activeElement));const m=p[h];return Ae("div",{className:ai("chat__entry"),ref:e,children:[r&&Ae(Gp,{}),a&&Ae(Kp,{}),Ae("div",{className:ai(["entry__body",...n||i?["entry__body--hidden"]:[]]),children:[h!==Pn&&y&&t&&Ae(cf,{}),Ae(m,{})]})]})},mf=n(6419),bf=n.n(mf),_f=n(2462),wf=n.n(_f);function xf(t){let{controlName:e,describedById:n}=t;const{t:r}=Li();return Ae(Tc,{noValidate:"true",className:ai("options__form"),children:[Ae(ef,{name:e,type:"email",className:ai("transcript__input"),"aria-describedby":n,labelClass:ai("label"),labelText:r("options.sendTranscript.label")}),Ae("div",{className:ai("options__actions"),children:Ae("button",{type:"submit",className:ai("button","button--primary","options__submit"),children:r("options.sendTranscript.sendButtonText")})})]})}const Ef="email";const Tf={sendTranscript:()=>{const[t,e]=It(void 0),{hideOption:n}=Qi(),{focusButton:r}=Zi(),{t:o}=Li(),i=Ia(),{sendAction:a}=Da(),s=Lt((()=>({[Ef]:[gc(wc,o("options.sendTranscript.noEmailText")),gc(_c,o("options.sendTranscript.invalidEmailText"))]})),[o]),c=Dt((t=>{var e;const o=ca()(e=t.email).call(e);a({type:"send_transcript",body:{emailAddress:o}}),n(),r()}),[a,n,r]),l=Dt((t=>{let{isValid:n,isSubmitted:r}=t;e(r&&!n?"options--error":void 0)}),[e]);return Ae(Is,{className:t,headingText:o("options.sendTranscript.title"),cancelButtonText:o("options.cancelButtonText"),children:[Ae("p",{className:ai("options__description"),id:i,children:o("options.sendTranscript.description")}),Ae(tc,{formId:"sendTranscript",onSubmit:c,validationSchema:s,onError:l,children:Ae(xf,{controlName:Ef,describedById:i})})]})}};var Sf=()=>{const{optionActive:t}=Qi(),e=Pt(null),n=Tf[t||e.current];return t&&(e.current=t),n?Ae(n,{}):null},kf=()=>{const{t:t}=Li(),{menuOptions:e,showOption:n,panelActive:r,hideOption:o}=Qi(),{id:i}=Zi(),a=Pt(null),[s,c]=It(!1),l=Pt(null),u=e.length,p=Pt(bf()({length:u},(()=>({current:null})))),f=Pt(!1),h=u>1,d=e[0],v=Lt((()=>{var t;return null==d||null===(t=d.name)||void 0===t?void 0:ca()(t).call(t).replace(/\s+/g,"")}),[d]);return Rt((()=>()=>{clearTimeout(a.current)}),[]),Rt((()=>{s&&!f.current&&requestAnimationFrame((()=>{requestAnimationFrame((()=>{const t=wf()(e).call(e,(t=>t.available)),n=-1===t?0:t;wn(p.current[n])}))})),f.current=s}),[s,e]),u?Ae("div",{className:ai("options__container"),onKeyDown:t=>{s&&(_n(t)===bn.Escape&&(c(!1),wn(l.current)),_n(t)===bn.Home&&(wn(p.current[0]),t.preventDefault()),_n(t)===bn.End&&(wn(p.current[u-1]),t.preventDefault()))},onfocusout:()=>{h&&(a.current=tn()((()=>{c(!1)}),200))},onfocusin:()=>{clearTimeout(a.current)},children:[Ae(Cs,{transitionStartState:As.notRendered,isActive:r,children:Ae("div",{className:ai("options__dialog"),children:Ae(Sf,{})})}),h&&Ae(Cs,{isActive:s,transitionStartState:As.notRendered,children:Ae("ul",{className:ai(["options__menu"]),role:"menu",tabIndex:"-1","aria-labelledby":i,children:b()(e).call(e,((r,o)=>{let{name:i,title:a,available:s}=r;return Ae("li",{className:ai("options__menu__item"),role:"menuitem","data-testid":i,children:Ae("button",{type:"button",ref:t=>{p.current[o]=t},className:ai(["button","button--secondary"]),onKeyDown:t=>((t,e)=>{if(_n(t)===bn.ArrowDown){const n=Math.min(u-1,e+1);wn(p.current[e===n?0:n]),t.preventDefault()}if(_n(t)===bn.ArrowUp){const n=Math.max(0,e-1);wn(p.current[e===n?u-1:n]),t.preventDefault()}})(t,o),onKeyPress:t=>((t,n)=>{const r=String.fromCharCode(t.charCode);if(1!==r.length||!r.match(/\S/))return;let o=-1;E()(e).call(e,((t,e)=>{e>n&&t.title.charAt(0).toLowerCase()===r.toLowerCase()&&-1===o&&(o=e)})),-1!==o&&wn(p.current[o])})(t,o),onClick:()=>((t,e)=>{e&&(c(!1),n(t))})(i,s),"aria-disabled":s?null:"true",children:[Ae("span",{className:ai("button__text"),children:[a,!s&&" "]}),!s&&Ae("span",{className:ai("button__state"),children:t("options.unavailableText")})]})},i)}))})}),Ae("button",{type:"button",className:ai(["button","button--secondary","chat__options__button",...!h&&v?[`chat__options__button--${v}`]:[]]),id:i,onClick:()=>{r&&o(),h?c((t=>!t)):d.available&&n(d.name)},onKeyDown:h?t=>{_n(t)===bn.ArrowDown&&(c(!0),t.preventDefault())}:null,ref:l,"aria-haspopup":h?"menu":null,"aria-expanded":h?s.toString():null,"aria-disabled":h||d.available?null:"true",children:[h&&Ae(Es,{name:"options",size:"32"}),Ae("span",{className:ai("button__text"),children:h?t("options.openButtonText"):`${d.title}${d.available?"":" "}`}),!h&&!d.available&&Ae("span",{className:ai("button__state"),children:t("options.unavailableText")})]})]}):null};function Of(){const{menuOptions:t,allowOptionSelection:e}=Qi(),{isAvailable:n}=hs();return n||e&&t.length?Ae("div",{className:ai("chat__options"),children:[n&&Ae("div",{className:ai("chat__options-item","chat__options-item--left"),children:Ae(Lc,{})}),e&&Ae("div",{className:ai("chat__options-item","chat__options-item--right"),children:Ae(kf,{})})]}):null}function Af(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var Cf=function(t){let{children:e,interruptComponent:n}=t;const{hasInterrupt:r,meta:o}=fa(),{isOpen:i}=Sa();return Ae(Y,{children:[Ae(Uc,{}),Ae("div",{className:ai("chat__container"),children:r?i?Ae(n,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Af(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Af(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({},o)):null:e}),i&&Ae(Of,{})]})};function If(){const{preChatEvents:t,layoutMode:e}=Ke(),{hasInterrupt:n}=fa(),{isOpen:r}=Sa(),o=!(n||!t.length||r);return o&&Ae("ul",{className:ai("pre-chat-messages",`pre-chat-messages--${e}`),"aria-hidden":!o,children:b()(t).call(t,(t=>Ae("li",{className:ai("pre-chat-messages__message"),children:Ae(Nf,{event:t})},t.payload.id)))})}function Nf(t){let{event:e}=t;const[n]=Gc(e);return Ae(n,{event:e})}function Rf(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const jf=()=>{const t=Ye(),e=xo(),{hasInterrupt:n}=fa(),r=e&&!n,o=r?e.avatar:t;return o?Ae("img",{className:ai(r?"avatar":"icon"),src:o,alt:""}):Ae(Es,{name:"avatar",size:"32"})};var Pf=t=>{let{onClick:e}=t;const n=fi(),{t:r}=Li(),o=r(n?"window.openButton.srContinue":"window.openButton.srStart"),i=Vi(),{isOpen:a}=Sa(),s=bo(),c=Dt((()=>{e(),i()}),[i,e]);return Ae(Cs,{isActive:!a,transitionStartState:As.rendered,children:Ae("button",{className:ai("window-open-button"),"aria-label":o,"aria-hidden":a,onClick:c,children:[Ae("span",{className:ai("message-count"),"aria-hidden":"true",children:!!s&&s}),Ae(jf,{})]})})},Lf=t=>{let{onClick:e}=t;const{t:n}=Li(),r=Dt((()=>e()),[e]);return Ae("button",{type:"button",className:ai("button","collapse-button"),onClick:r,children:Ae(Es,{name:"chevronDown",size:"32",alt:n("window.srCollapseButton")})})};const Df={app:()=>(Ya(),Ae(Hc,{children:Ae(Cf,{interruptComponent:Vc,children:[Ae(qp,{}),Ae(gf,{})]})})),inline:()=>{Ya();const{isOpen:t}=Sa(),{hasInterrupt:e,meta:n}=fa();return e&&!t?Ae(Vc,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Rf(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Rf(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({},n)):Ae(Y,{children:[Ae(Cs,{isActive:!t,transitionStartState:As.rendered,children:Ae("div",{className:ai("unstarted-wrapper","unstarted-wrapper--inline"),children:[Ae(If,{}),Ae(Bc,{})]})}),Ae(Cs,{isActive:t,transitionStartState:As.rendered,children:Ae(Hc,{children:Ae(Cf,{interruptComponent:Vc,children:[t&&Ae(qp,{}),Ae(gf,{})]})})})]})},window:()=>{const{openChat:t,closeChat:e}=Ya(),{isOpen:n}=Sa(),r=Ta(),{t:o}=Li(),i=o("window.chat.continue"),a=Lt((()=>({payload:{body:{text:i}}})),[i]);return Ae(Y,{children:[Ae(Pf,{onClick:t}),Ae(Cs,{isActive:!n&&!r,transitionStartState:As.rendered,children:Ae("div",{className:ai("unstarted-wrapper","unstarted-wrapper--window"),children:Ae(If,{})})}),Ae(Cs,{isActive:!n&&r,transitionStartState:As.notRendered,children:Ae("div",{className:ai("unstarted-wrapper","unstarted-wrapper--window","unstarted-wrapper--continue"),children:Ae(_u,{event:a})})}),Ae(Cs,{isActive:n,transitionStartState:As.notRendered,children:Ae(Hc,{children:[n&&Ae(Lf,{onClick:e}),Ae(Cf,{interruptComponent:Vc,children:[Ae(qp,{}),Ae(gf,{})]})]})})]})}};var Uf=()=>{const[,t]=Bi(),{namespace:e,layoutMode:n,zIndex:r}=Ke(),{isOpen:o,isVisible:i}=Sa(),a=di(),s=Ta(),{locale:c}=Li(),l=Df[n],u=Dt((e=>{t(e)}),[t]),p=Lt((()=>{if(c&&document.querySelector("html").getAttribute("lang")!==c)return c}),[c]);if(!l)return console.warn('"layoutMode" should be one of "app", "inline" or "window"'),null;const f=["app",`app--layout-${n}`,`namespace--${e}`,...a];return o||"app"===n||f.push("app--collapsed"),s&&f.push("app--user-responded"),i&&Ae("div",{className:ai(f),lang:p,tabIndex:"-1","data-nosnippet":!0,style:{zIndex:r},ref:u,children:Ae(l,{})})};const{createAction:Mf}=oe("errors"),$f=Mf("catch-error",(t=>({error:t})));function zf(t){let{api:e}=t;return t=>{let{getState:n}=t;const r=t=>{const{errorCallback:r,namespace:o,api:i,layoutMode:a}=xe(n());null==r||r(t.error,{namespace:o,api:i,layoutMode:a,conversationUrl:e.getConversationUrl(),action:t.type?t:void 0})};return t=>e=>{try{return e.error&&r(e),t(e)}catch(t){throw r({error:t}),t}}}}function Ff(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=Ut(ci),o=Pt();o.current=e,Rt((()=>{if(!ta()(n).call(n,Boolean))return;const e=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null===(t=o.current)||void 0===t?void 0:t.call(o,...n)};return r.emit("function.register",t,e),()=>r.emit("function.unregister",t,e)}),[r,t,...n])}var Bf=()=>{const t=Ke(),{sendMessage:e,sendContext:n,sendAction:r}=Da(),{setVisibility:o,visible:i}=Sa(),a=Pt(i),s=Ut(ci),c=li(),l=bo(),u=Pt(null),p=Pt(null),{isInline:f,isResolving:h}=To(),{hasInterrupt:d}=fa(),v=pi(),y=Pt(null),g=za(),{enableTranslations:m,disableTranslations:b}=hs();return Rt((()=>{a.current=i}),[i]),Ff("askText",(t=>{e({body:t})}),[null==c?void 0:c.send]),Ff("setVariables",(t=>{n({variables:t})}),[null==c?void 0:c.send]),Ff("getVisibility",(t=>{t?t(a.current):console.warn("A callback function is required for the getVisibility action.")})),Ff("setVisibility",(t=>{var e;ln()(e=O()(be)).call(e,t)?(g(),o(t)):console.error('Requested visibility states should be "open", "minimized" ,"hidden" or null.')}),[null==t?void 0:t.api]),Ff("sendCustomAction",((t,e)=>{r({type:"custom",body:{type:t,body:e}})}),[c.send]),Ff("setTopic",(t=>{let{name:e,fallbackMessage:n}=t;e&&n?r({type:Fn,body:{name:e,fallbackMessage:n}}):console.warn("A name and a fallbackMessage are required for the setTopic action.")}),[c.send]),Ff("setTranslation",(t=>{let{enabled:e,locale:n}=t;e?m(n):b()}),[c.send]),Rt((()=>{h||d||(y.current&&y.current!==v&&s.emit("unreadMessageCount",l),i===be.open&&i!==p.current&&0!==u.current&&s.emit("unreadMessageCount",0),i!==be.open&&l!==u.current&&s.emit("unreadMessageCount",l),p.current=i,u.current=l,y.current=v)}),[l,i,s,f,h,d,v]),null};const{SET_EVENTS_READ:Hf}=Kn;var Vf=()=>{const{t:t}=Li(),e=go(),n=hi(),{isOpen:r,isVisible:o}=Sa(),{sendAction:i}=Da(),a=bo(),{sendPolite:s}=Ma(),c=Lt((()=>fn(s,2e3)),[s]),l=Pt(null),u=Pt(null);return Rt((()=>{var t;if(!r)return;const o=b()(t=w()(e).call(e,(t=>Pr(t)&&t.payload.messageStatus===Ln))).call(t,(t=>t.payload.id));o.length>0&&(n({type:Hf,ids:o}),i({type:$n,events:o}))}),[e,n,r,i]),Rt((()=>{l.current!==o&&!o&&u.current&&u.current(),0!==a&&!r&&o&&(u.current=c(t("message.srTextUnreadCount",{unreadCount:a}))),l.current=o}),[a,r,o,c,t]),null},qf=()=>{const{t:t}=Li(),e=go(),n=Pt(0),r=Pt(0),o=ho().historyLoaded,{sendPolite:i}=Ma(),{isOpen:a}=Sa(),s=Pt(null),c=Pt(null),l=Lt((()=>fn((e=>{const n=w()(e).call(e,(t=>{let{payload:e}=t;return!e.fromClient&&!e.fromHistory})).length;n>r.current&&(i(t("message.srNewEventCount",{newCount:n-r.current})),r.current=n)}),1e3)),[i,t]);return Rt((()=>{e.length>n.current&&(a&&(c.current=l(e)),n.current=e.length)}),[e,l,a]),Rt((()=>{s.current&&!a&&c.current&&(c.current(!0),c.current=null)}),[a]),Rt((()=>{o&&tn()((()=>{i(t("window.srTexts.onHistoryLoad"))}),500)}),[o,t,i]),null},Wf=t=>{let{children:e}=t;const n=Ut(ci),[r,o]=It({}),i=Pt(!0),a=Dt((t=>{i.current&&(o(t),n.emit("aria-live",t))}),[o,n]);Rt((()=>{let t=null;return r&&r.messageText&&(t=tn()((()=>{a({}),clearTimeout(t)}),500)),()=>{clearTimeout(t)}}),[r,a]),Rt((()=>()=>{i.current=!1}),[]);const{ariaLive:s,messageText:c}=r;return Ae(Ua.Provider,{value:a,children:[e,Ae("div",{className:ai("app__live-container"),children:[Ae("div",{"aria-live":"assertive","aria-atomic":"true",className:ai("visually-hidden"),children:s===Vn?c:null}),Ae("div",{"aria-live":"polite","aria-atomic":"true",className:ai("visually-hidden"),children:s===qn?c:null})]})]})},Gf=()=>{const{hasCountdown:t,isActive:e,remaining:n,decrementCountdown:r}=ns();return((t,e)=>{const n=Pt(t);Rt((()=>{n.current=t}),[t]),Rt((()=>{if(null!==e){const t=Ba()((function(){n.current()}),e);return()=>clearInterval(t)}}),[e])})((()=>{r()}),t&&e&&n>0?1e3:null),null},Kf=t=>{let{children:e}=t;const n=Pt(0),{sendAction:r}=Da(),{hasCountdown:o,isActive:i,stopCountdown:a}=ns(),s=Dt((()=>{const t=(new Date).getTime(),e=()=>{r({type:"interactivity_update"}),n.current=t};o&&i&&(e(),a()),t-n.current>15e3&&e()}),[r,o,i,a]);return Ae("div",{className:ai("activity-monitor"),tabIndex:"-1",onMouseDown:s,onKeyUp:s,onTouchStart:s,onMouseMove:s,onWheel:s,onPointerDown:s,onPointerMove:s,children:Ae($a.Provider,{value:s,children:e})})},Yf=()=>{const{initUserSelectedOptions:t}=Qi(),e=Pt(!1),n=Ke();return Rt((()=>{n.api&&!e.current&&(e.current=!0,t())}),[t,n]),null};const Jf=["serviceSettings"],{ADD_EVENT:Qf,ACK_EVENT:Zf,SET_IS_LOADING:Xf,SET_PARTICIPANT:th,SET_HEADER_SUB_TITLE:eh,SET_ACTIVE_SERVICE:nh,INIT_RESUME_CONVERSATION_PROMPT:rh,CLEAR_EVENTS:oh,SET_SERVICE_DATA_ITEM:ih,SET_FEATURE_ENABLED_STATE:ah,SET_SERVICE_ENTRY_METADATA:sh,SET_HISTORY:ch}=Kn,lh=["text","choice_prompt","image","video"];var uh=t=>{let{eventBus:e}=t;const{t:n}=Li(),r=li(),o=hi(),i=go(),a=Pt(null),{setUserSelectedOption:s}=Qi(),{initCountdown:c,endCountdown:l}=ns(),{emitEvent:u}=Da();return Rt((()=>{if(r.connectionInfo){var t;const n=t=>{const{payload:e}=t;if(!e||!e.participant)return;const{fromClient:n,participant:r}=e;!n&&r.name&&o({type:eh,title:r.name}),o({type:th,participant:r,fromClient:n}),r.introduction&&o({type:Qf,event:t})};r.stream().subscribe({next:t=>{const{type:r,payload:i}=t;switch(r){case"ui":switch(i.state&&i.state.hasOwnProperty("loading")&&o({type:Xf,isLoading:i.state.loading}),i.type){case"idle_detach_countdown":c(i.body.duration);break;case"idle_detach_countdown_elapsed":l(void 0,!0);break;case"resume_conversation_prompt":o({type:rh});break;case"user_first_response":o(Ko(!0)),e.emit("system.userFirstResponse",i.body)}break;case"message":switch(n(i),i.type){case"text":case"choice_prompt":case"splash":case"image":case"upload":case"video":case"cta":case"custom":case"carousel":case"card":i.service&&i.service.serviceSessionId&&o({type:nh,activeServiceSessionId:i.service.serviceSessionId}),o({type:Qf,event:t})}break;case"participant":n(t);break;case"service_data":i.persist&&o({type:ih,payload:i});break;case"ack":o({type:Zf,event:t});break;case"system":if("service_changed"===i.type){const{serviceSettings:t}=i,e=L(i,Jf),{uploads:n,entry:r}=t;o({type:ah,key:Gn,enabled:!(!n||!n.enabled)}),o({type:sh,entryMeta:r}),o({type:nh,activeServiceSessionId:i.serviceSessionId}),u("system.serviceChanged",e)}break;case"info":"divider"!==i.type&&"text"!==i.type&&"translation"!==i.type||o({type:Qf,event:t});break;case"error":switch(i.type){case"find_conversation_erred":o(Wo(new Bo(t)));break;case"seamly_offline":o(Wo(new va(t))),o({type:oh});break;default:o(Wo(new ha(t)))}break;case"socket_opened":o(Go())}}}),w()(t=r.stream()).call(t,(t=>"message"===t.type&&ln()(lh).call(lh,t.payload.type))).subscribe({next:t=>{let{payload:n}=t;n.id!==a.current&&e.emit("message",n),a.current=n.id}})}}),[o,r,e,n,s,c,l,u]),Rt((()=>{if(r.stream){const e=w()(t=r.stream()).call(t,(t=>"sync"===t.type)).subscribe({next:t=>{const{payload:e}=t,n=i[i.length-1],{id:a}=e.lastEvent;n&&a===n.payload.id||r.getConversation().then((t=>{t&&o({type:ch,history:t})})).catch((t=>{o(Wo(t))}))}});return()=>{e.unsubscribe()}}var t;return()=>{}}),[r,i,o]),null};const{REGISTER_UPLOAD:ph,SET_UPLOAD_PROGRESS:fh,SET_UPLOAD_ERROR:hh,SET_UPLOAD_COMPLETE:dh}=Kn;var vh=t=>{let{children:e}=t;const{t:n}=Li(),r=hi(),o=li(),{addUploadBubble:i}=Da();return Ae(ea.Provider,{value:t=>{const e=Jt(),a=o.uploadFile(t,(t=>{r({type:fh,fileId:e,progress:Math.ceil(t)})}),(t=>{const{id:n,transactionId:o,occurredAt:a,body:{contentType:s,filename:c,filesize:l,url:u}}=t.body;r({type:dh,fileId:e}),i(n,o,a,s,c,l,u)}),(t=>{let o;switch(t&&t.body?t.body.error:""){case"file_uploads_are_disabled":o=n("fileUpload.errors.unavailable");break;case"request_entity_too_large":o=n("fileUpload.errors.tooLarge");break;case"file_has_invalid_mime_type":o=n("fileUpload.errors.wrongType");break;case"virus_found":o=n("fileUpload.errors.virusFound");break;default:o=n("fileUpload.errors.general")}r({type:hh,fileId:e,errorText:o})}));r({type:ph,fileId:e,fileName:t.name,uploadHandle:a})},children:e})},yh=t=>{let{store:e,children:n,config:r,eventBus:o,api:i}=t;return function(t){var n=Ct(gt++,10),r=It();n.__=t=>e.dispatch($f(t)),mt.componentDidCatch||(mt.componentDidCatch=function(t){n.__&&n.__(t),r[1](t)}),r[0]}(),Ae(Ce,{store:e,children:Ae(ci.Provider,{value:o,children:Ae(si.Provider,{value:i,children:Ae(Wf,{children:Ae(Vp,{children:[Ae(Yf,{config:r}),Ae(uh,{eventBus:o}),Ae(Vf,{}),Ae(qf,{}),Ae(Gf,{}),Ae(Kf,{children:[Ae(Bf,{}),Ae(vh,{children:n})]})]})})})})})};function gh(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function mh(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=gh(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=gh(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var bh=t=>Ae(yh,mh(mh({},t),{},{children:Ae(Uf,{})})),_h=n(3813),wh=n.n(_h),xh=n(1766),Eh=n.n(xh),Th=n(9340),Sh=n.n(Th);function kh(t){const e="cvco."+t;return{get(){var t;const n=[e,Gt()(t=e.split(".")).call(t,0,-1).join(".")];let r;do{r=sessionStorage.getItem(n[0])}while(n.shift()&&!r);return JSON.parse(r)},set(t){t&&sessionStorage.setItem(e,Sh()(t))}}}var Oh=n(1905),Ah=n.n(Oh),Ch=(n(8604),t=>"function"==typeof t?t:function(){return t}),Ih="undefined"!=typeof self?self:null,Nh="undefined"!=typeof window?window:null,Rh=Ih||Nh||void 0,jh="closed",Ph="errored",Lh="joined",Dh="joining",Uh="leaving",Mh="phx_close",$h="phx_error",zh="phx_reply",Fh="phx_leave",Bh=class{constructor(t,e,n,r){this.channel=t,this.event=e,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(t){this.timeout=t,this.reset(),this.send()}send(){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,join_ref:this.channel.joinRef()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive(t){var e,n;let{status:r,response:o,_ref:i}=t;E()(e=w()(n=this.recHooks).call(n,(t=>t.status===r))).call(e,(t=>t.callback(o)))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,(t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)})),this.timeoutTimer=tn()((()=>{this.trigger("timeout",{})}),this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},Hh=class{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=tn()((()=>{this.tries=this.tries+1,this.callback()}),this.timerCalc(this.tries+1))}},Vh=class{static request(t,e,n,r,o,i,a){if(Rh.XDomainRequest){let n=new Rh.XDomainRequest;this.xdomainRequest(n,t,e,r,o,i,a)}else{let s=new Rh.XMLHttpRequest;this.xhrRequest(s,t,e,n,r,o,i,a)}}static xdomainRequest(t,e,n,r,o,i,a){t.timeout=o,t.open(e,n),t.onload=()=>{let e=this.parseJSON(t.responseText);a&&a(e)},i&&(t.ontimeout=i),t.onprogress=()=>{},t.send(r)}static xhrRequest(t,e,n,r,o,i,a,s){t.open(e,n,!0),t.timeout=i,t.setRequestHeader("Content-Type",r),t.onerror=()=>{s&&s(null)},t.onreadystatechange=()=>{if(4===t.readyState&&s){let e=this.parseJSON(t.responseText);s(e)}},a&&(t.ontimeout=a),t.send(o)}static parseJSON(t){if(!t||""===t)return null;try{return JSON.parse(t)}catch(e){return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let n=[];for(var r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let o=e?`${e}[${r}]`:r,i=t[r];"object"==typeof i?n.push(this.serialize(i,o)):n.push(encodeURIComponent(o)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(t,e){if(0===S()(e).length)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}},qh=class{constructor(t){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=0,this.poll()}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/websocket"),"$1/longpoll")}endpointURL(){return Vh.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(){this.close(),this.readyState=0}ontimeout(){this.onerror("timeout"),this.closeAndRetry()}poll(){var t;1!==this.readyState&&0!==this.readyState||Vh.request("GET",this.endpointURL(),"application/json",null,this.timeout,i()(t=this.ontimeout).call(t,this),(t=>{if(t){var{status:e,token:n,messages:r}=t;this.token=n}else e=0;switch(e){case 200:E()(r).call(r,(t=>{tn()((()=>{this.onmessage({data:t})}),0)})),this.poll();break;case 204:this.poll();break;case 410:this.readyState=1,this.onopen(),this.poll();break;case 403:this.onerror(),this.close();break;case 0:case 500:this.onerror(),this.closeAndRetry();break;default:throw new Error(`unhandled poll status ${e}`)}}))}send(t){var e;Vh.request("POST",this.endpointURL(),"application/json",t,this.timeout,i()(e=this.onerror).call(e,this,"timeout"),(t=>{t&&200===t.status||(this.onerror(t&&t.status),this.closeAndRetry())}))}close(t,e){this.readyState=3,this.onclose()}},Wh={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(Sh()(n))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[n,r,o,i,a]=JSON.parse(t);return e({join_ref:n,ref:r,topic:o,event:i,payload:a})}},binaryEncode(t){let{join_ref:e,ref:n,event:r,topic:o,payload:i}=t,a=this.META_LENGTH+e.length+n.length+o.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+a),c=new DataView(s),l=0;c.setUint8(l++,this.KINDS.push),c.setUint8(l++,e.length),c.setUint8(l++,n.length),c.setUint8(l++,o.length),c.setUint8(l++,r.length),bf()(e,(t=>c.setUint8(l++,t.charCodeAt(0)))),bf()(n,(t=>c.setUint8(l++,t.charCodeAt(0)))),bf()(o,(t=>c.setUint8(l++,t.charCodeAt(0)))),bf()(r,(t=>c.setUint8(l++,t.charCodeAt(0))));var u=new Uint8Array(s.byteLength+i.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(i),s.byteLength),u.buffer},binaryDecode(t){let e=new DataView(t),n=e.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(t,e,r);case this.KINDS.reply:return this.decodeReply(t,e,r);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,r)}},decodePush(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=e.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(Gt()(t).call(t,a,a+r));a+=r;let c=n.decode(Gt()(t).call(t,a,a+o));a+=o;let l=n.decode(Gt()(t).call(t,a,a+i));return a+=i,{join_ref:s,ref:null,topic:c,event:l,payload:Gt()(t).call(t,a,t.byteLength)}},decodeReply(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=e.getUint8(3),a=e.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(Gt()(t).call(t,s,s+r));s+=r;let l=n.decode(Gt()(t).call(t,s,s+o));s+=o;let u=n.decode(Gt()(t).call(t,s,s+i));s+=i;let p=n.decode(Gt()(t).call(t,s,s+a));s+=a;let f=Gt()(t).call(t,s,t.byteLength);return{join_ref:c,ref:l,topic:u,event:zh,payload:{status:p,response:f}}},decodeBroadcast(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=this.HEADER_LENGTH+2,a=n.decode(Gt()(t).call(t,i,i+r));i+=r;let s=n.decode(Gt()(t).call(t,i,i+o));return i+=o,{join_ref:null,ref:null,topic:a,event:s,payload:Gt()(t).call(t,i,t.byteLength)}}};function Gh(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kh(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Gh(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Gh(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Yh(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jh(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Yh(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Yh(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Qh=Ah()("seamly");class Zh{constructor(t,e,n,r){this.url=t,this.accessToken=r,this.channelName=e,this.channelTopic=n,this.connect(),this.socket.onError((t=>{Qh("[SOCKET][ERROR]",t),this.emit({type:"error",payload:{type:"seamly_offline",error:t}})})),this.socket.onOpen((()=>{Qh("[SOCKET]OPEN"),this.emit({type:"socket_opened"})})),this.channel.on("system",(t=>{"attach_channel_succeeded"===t.type&&this.emit({type:"connection",connected:!0,ready:!0})})),this.socket.onClose((()=>{Qh("[SOCKET]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onClose((()=>{Qh("[CHANNEL]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onError((t=>{Qh("[CHANNEL][ERROR]",t),this.emit({type:"connection",connected:!1,ready:!1})})),this.listenTo("ack"),this.listenTo("ui"),this.listenTo("error"),this.listenTo("participant",((t,e)=>Jh(Jh({},e),{},{type:t}))),this.listenTo("message"),this.listenTo("service_data"),this.listenTo("system"),this.listenTo("info"),this.listenTo("sync")}start(t){this.listener=t,this.channel.join().receive("ok",(()=>{Qh("[CHANNEL][JOIN] OK"),this.emit({type:"connection",connected:!0,ready:!1})})).receive("error",(t=>{Qh("[CHANNEL][JOIN] ERROR",t),this.emit({type:"error",payload:{type:"join_channel_erred",error:t}}),this.emit({type:"connection",connected:!1,ready:!1}),this.channel.socket.disconnect()})).receive("timeout",(()=>{Qh("[CHANEL][JOIN] Networking issue. Still waiting...")}))}stop(){this.listener=null}connect(){const{url:t,params:e}=(t=>{var e;const n=on()(t).call(t,"?");return n<0?{url:t,params:{}}:{url:Gt()(t).call(t,0,n),params:sn()(e=Gt()(t).call(t,n+1).split("&")).call(e,(function(t,e){const[n,r]=e.split("=");return Kh(Kh({},t),{},{[n]:decodeURIComponent(r)})}),{})}})(this.url);this.socket=new class{constructor(t){var e,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=r.timeout||1e4,this.transport=r.transport||Rh.WebSocket||qh,this.establishedConnections=0,this.defaultEncoder=i()(e=Wh.encode).call(e,Wh),this.defaultDecoder=i()(n=Wh.decode).call(n,Wh),this.closeWasClean=!1,this.binaryType=r.binaryType||"arraybuffer",this.connectClock=1,this.transport!==qh?(this.encode=r.encode||this.defaultEncoder,this.decode=r.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let o=null;Nh&&Nh.addEventListener&&(Nh.addEventListener("pagehide",(t=>{this.conn&&(this.disconnect(),o=this.connectClock)})),Nh.addEventListener("pageshow",(t=>{o===this.connectClock&&(o=null,this.connect())}))),this.heartbeatIntervalMs=r.heartbeatIntervalMs||3e4,this.rejoinAfterMs=t=>r.rejoinAfterMs?r.rejoinAfterMs(t):[1e3,2e3,5e3][t-1]||1e4,this.reconnectAfterMs=t=>r.reconnectAfterMs?r.reconnectAfterMs(t):[10,50,100,150,200,250,500,1e3,2e3][t-1]||5e3,this.logger=r.logger||null,this.longpollerTimeout=r.longpollerTimeout||2e4,this.params=Ch(r.params||{}),this.endPoint=`${t}/websocket`,this.vsn=r.vsn||"2.0.0",this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Hh((()=>{this.teardown((()=>this.connect()))}),this.reconnectAfterMs)}replaceTransport(t){this.disconnect(),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Vh.appendParams(Vh.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==t.charAt(0)?t:"/"===t.charAt(1)?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,n){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,e,n)}connect(t){this.connectClock++,t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Ch(t)),this.conn||(this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t))}log(t,e,n){this.logger(t,e,n)}hasLogger(){return null!==this.logger}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onConnOpen(){var t;this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),E()(t=this.stateChangeCallbacks.open).call(t,(t=>{let[,e]=t;return e()}))}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.abnormalClose("heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,clearTimeout(this.heartbeatTimer),tn()((()=>this.sendHeartbeat()),this.heartbeatIntervalMs))}teardown(t,e,n){if(!this.conn)return t&&t();this.waitForBufferDone((()=>{this.conn&&(e?this.conn.close(e,n||""):this.conn.close()),this.waitForSocketClosed((()=>{this.conn&&(this.conn.onclose=function(){},this.conn=null),t&&t()}))}))}waitForBufferDone(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;5!==e&&this.conn&&this.conn.bufferedAmount?tn()((()=>{this.waitForBufferDone(t,e+1)}),150*e):t()}waitForSocketClosed(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;5!==e&&this.conn&&3!==this.conn.readyState?tn()((()=>{this.waitForSocketClosed(t,e+1)}),150*e):t()}onConnClose(t){var e;let n=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),clearTimeout(this.heartbeatTimer),this.closeWasClean||1e3===n||this.reconnectTimer.scheduleTimeout(),E()(e=this.stateChangeCallbacks.close).call(e,(e=>{let[,n]=e;return n(t)}))}onConnError(t){var e;this.hasLogger()&&this.log("transport",t);let n=this.transport,r=this.establishedConnections;E()(e=this.stateChangeCallbacks.error).call(e,(e=>{let[,o]=e;o(t,n,r)})),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){var t;E()(t=this.channels).call(t,(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger($h)}))}connectionState(){switch(this.conn&&this.conn.readyState){case 0:return"connecting";case 1:return"open";case 2:return"closing";default:return"closed"}}isConnected(){return"open"===this.connectionState()}remove(t){var e;this.off(t.stateChangeRefs),this.channels=w()(e=this.channels).call(e,(e=>e.joinRef()!==t.joinRef()))}off(t){for(let n in this.stateChangeCallbacks){var e;this.stateChangeCallbacks[n]=w()(e=this.stateChangeCallbacks[n]).call(e,(e=>{let[n]=e;return-1===on()(t).call(t,n)}))}}channel(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new class{constructor(t,e,n){this.state=jh,this.topic=t,this.params=Ch(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Bh(this,"phx_join",this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Hh((()=>{this.socket.isConnected()&&this.rejoin()}),this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError((()=>this.rejoinTimer.reset()))),this.stateChangeRefs.push(this.socket.onOpen((()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()}))),this.joinPush.receive("ok",(()=>{var t;this.state=Lh,this.rejoinTimer.reset(),E()(t=this.pushBuffer).call(t,(t=>t.send())),this.pushBuffer=[]})),this.joinPush.receive("error",(()=>{this.state=Ph,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.onClose((()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=jh,this.socket.remove(this)})),this.onError((t=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,t),this.isJoining()&&this.joinPush.reset(),this.state=Ph,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.joinPush.receive("timeout",(()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new Bh(this,Fh,Ch({}),this.timeout).send(),this.state=Ph,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.on(zh,((t,e)=>{this.trigger(this.replyEventName(e),t)}))}join(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(t){this.on(Mh,t)}onError(t){return this.on($h,(e=>t(e)))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){var n;this.bindings=w()(n=this.bindings).call(n,(n=>!(n.event===t&&(void 0===e||e===n.ref))))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.timeout;if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Bh(this,t,(function(){return e}),n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Uh;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Mh,"leave")},n=new Bh(this,Fh,Ch({}),t);return n.receive("ok",(()=>e())).receive("timeout",(()=>e())),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}isMember(t,e,n,r){return!(this.topic!==t||r&&r!==this.joinRef()&&(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:n,joinRef:r}),1))}joinRef(){return this.joinPush.ref}rejoin(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Dh,this.joinPush.resend(t))}trigger(t,e,n,r){var o;let i=this.onMessage(t,e,n,r);if(e&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let a=w()(o=this.bindings).call(o,(e=>e.event===t));for(let t=0;t<a.length;t++)a[t].callback(i,n,r||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===jh}isErrored(){return this.state===Ph}isJoined(){return this.state===Lh}isJoining(){return this.state===Dh}isLeaving(){return this.state===Uh}}(t,e,this);return this.channels.push(n),n}push(t){if(this.hasLogger()){let{topic:e,event:n,payload:r,ref:o,join_ref:i}=t;this.log("push",`${e} ${n} (${i}, ${o})`,r)}this.isConnected()?this.encode(t,(t=>this.conn.send(t))):this.sendBuffer.push((()=>this.encode(t,(t=>this.conn.send(t)))))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimer=tn()((()=>this.heartbeatTimeout()),this.heartbeatIntervalMs))}abnormalClose(t){this.closeWasClean=!1,this.isConnected()&&this.conn.close(1e3,t)}flushSendBuffer(){var t;this.isConnected()&&this.sendBuffer.length>0&&(E()(t=this.sendBuffer).call(t,(t=>t())),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,(t=>{let{topic:e,event:n,payload:r,ref:o,join_ref:i}=t;o&&o===this.pendingHeartbeatRef&&(clearTimeout(this.heartbeatTimer),this.pendingHeartbeatRef=null,tn()((()=>this.sendHeartbeat()),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${r.status||""} ${e} ${n} ${o&&"("+o+")"||""}`,r);for(let t=0;t<this.channels.length;t++){const a=this.channels[t];a.isMember(e,n,r,i)&&a.trigger(n,r,o,i)}for(let e=0;e<this.stateChangeCallbacks.message.length;e++){let[,n]=this.stateChangeCallbacks.message[e];n(t)}}))}leaveOpenTopic(t){var e;let n=An()(e=this.channels).call(e,(e=>e.topic===t&&(e.isJoined()||e.isJoining())));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}}(t,{params:Jh(Jh({},e),{},{v:Qe})}),this.socket.connect(),this.channel=this.socket.channel(this.channelTopic,{authorization:`Bearer ${this.accessToken}`,channelName:this.channelName})}disconnect(){return new(Fr())((t=>{this.socket.disconnect(t)}))}listenTo(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.channel.on(t,(n=>{Qh("[RECEIVE]",t,n),this.emit({type:t,payload:e?e(t,n):n})}))}emit(t){this.listener&&this.listener.next(t)}push(t,e,n){this.channel.push(t,e,n)}}class Xh{constructor(t){this.name=t}emit(t){this.listener&&this.listener.next(t)}start(t){this.listener=t}stop(){this.listener=null}}function td(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ed(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=td(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=td(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const nd=Ah()("seamly");function rd(){if(!Intl||"undefined"==typeof Intl||void 0===Intl.DateTimeFormat)return null;const t=Intl.DateTimeFormat();if(void 0===t||void 0===t.resolvedOptions)return null;const e=t.resolvedOptions().timeZone;return e&&(on()(e).call(e,"/")>-1||"UTC"===e)?e:null}class od{constructor(t){var e;let{layoutMode:n,namespace:r,config:o={},context:i={}}=t;this.store=function(t,e){const n=e(t),r=n.get()||{};return{get:t=>void 0===t?r:r[t],set:(t,e)=>(r[t]=e,n.set(r),e),delete(t){const e=this.get(t);return delete r[t],n.set(r),e}}}(`${r}.connection${i.locale?"."+i.locale:""}`,o.storageProvider||kh),this.connectionInfo={apiKey:o.key,domain:o.domain||"api.seamly-app.com",secure:!1!==o.secure&&(o.secure||!0)},this.config={sendEnvironment:o.sendEnvironment??!0,context:ed(ed({},i),{},{channelName:i.channelName||"web"})},this.connected=!1,this.configReady=!1,this.externalId=o.externalId,this.layoutMode=n,this.internalProducer=new Xh("API"),this.internal$=wh().create(this.internalProducer).flatten(),this.connection$=w()(e=this.internal$).call(e,(t=>"connection"===t.type)),this.connection$.subscribe({next:t=>{let{connected:e,ready:n}=t;this.connected=e,this.ready=n}}),this.URLS={}}getAccessToken(){return this.store.get("accessToken")}setAccessToken(t){this.store.set("accessToken",t)}getConversationUrl(){return this.store.get("conversationUrl")}setConversationUrl(t){this.store.set("conversationUrl",t)}hasConversation(){return!!this.getConversationUrl()}getChannelTopic(){return this.store.get("channelTopic")||this.store.get("channelName")}setChannelTopic(t){this.store.set("channelTopic",t)}clearStore(){this.store.delete("accessToken"),this.store.delete("conversationUrl"),this.store.delete("channelName"),this.store.delete("channelTopic")}getUrlPrefix(t){return`${this.connectionInfo.secure?`${t}s`:t}://${this.connectionInfo.domain}`}updateUrls(t){var e,n;let{_links:r}=t;this.URLS=sn()(e=w()(n=N()(r)).call(n,(t=>{let[e]=t;return"self"!==e}))).call(e,((t,e)=>{let[n,{href:r}]=e;return ed(ed({},t),{},{[n]:r})}),this.URLS)}async reset(){return await this.disconnect(),this.clearStore(),this.getConfig()}async disconnect(){this.conversationProducer&&await this.conversationProducer.disconnect(),this.connected=!1,this.configReady=!1}async createConversation(){try{const t=Eh().post(`${this.getUrlPrefix("http")}${this.URLS.conversations}`).set("Content-Type","application/json").query({v:Qe}).withCredentials().send({externalId:this.externalId||void 0}),{body:e}=await t,{conversation:n}=e,r=ed({},n);return delete r.accessToken,delete r.channelTopic,this.setAccessToken(n.accessToken),this.setChannelTopic(n.channelTopic),this.updateUrls(e),this.setConversationUrl(this.URLS.conversation),r}catch(t){if(t.status>=500)throw new ha(t);throw t}}getConfig(){return Eh().post(`${this.getUrlPrefix("http")}/client/${this.connectionInfo.apiKey}/configs`).set("Content-Type","application/json").query({v:Qe}).send({context:ed(ed({},this.config.context),{},{environment:!0===this.config.sendEnvironment?this.getEnvironment():this.config.sendEnvironment})}).then((t=>{let{body:e}=t;return this.updateUrls(e),this.configReady=!0,e.config})).catch((t=>{if(404===t.status)throw new da;if(t.status>=500)throw new ha(t);throw t}))}async getConversation(){if(!this.hasConversation())return null;try{const{body:t}=await Eh().get(`${this.getUrlPrefix("http")}${this.URLS.history}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:Qe});this.updateUrls(t);const{messages:e,participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,ui:a,translation:s}=t.history;return{events:b()(e).call(e,(t=>{let[e,n]=t;return{type:e,payload:ed(ed({},n),{},{type:"participant"===e?e:n.type})}})),participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,resumeConversationPrompt:!!a&&Boolean(a.resumeConversationPrompt),translation:s}}catch(t){if(401===t.status)throw new ya(t);if(404===t.status)throw new Bo(t);if(t.status>=500)throw new ha(t);throw t}}async connect(){this.connected=!1;let t=null;return this.hasConversation()||(t=await this.createConversation()),this.conversationProducer=new Zh(`${this.getUrlPrefix("ws")}${this.URLS.socket}`,this.config.context.channelName,this.getChannelTopic(),this.getAccessToken()),this.internalProducer.emit(wh().create(this.conversationProducer)),this.config.sendEnvironment&&this.send("context",{environment:!0===this.config.sendEnvironment?this.getEnvironment():this.config.sendEnvironment},!1),t}uploadFile(t,e,n,r){const o=new FormData;o.append("upload",t);const i=Eh().post(`${this.getUrlPrefix("http")}${this.URLS.uploads}`).set("Authorization",`Bearer ${this.getAccessToken()}`).send(o);return i.on("progress",(function(t){const{direction:n,percent:r}=t;"upload"===n&&"function"==typeof e&&e(r)})),i.then((t=>{n&&n(t)})).catch((t=>{if(!r)throw t;r(t.response)})),i}getConversationIntitialState(){return Eh().get(`${this.getUrlPrefix("http")}${this.getConversationUrl()}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:Qe}).then((t=>{let{body:e}=t;return this.updateUrls(e),((t,e)=>{var n;return sn()(n=S()(t)).call(n,((n,r)=>(ln()(e).call(e,r)||(n[r]=t[r]),n)),{})})(e.conversation,["accessToken","channelTopic"])})).catch((t=>{if(401===t.status)throw new ya(t);if(404===t.status)throw new Bo(t);if(t.status>=500)throw new ha(t);throw t}))}async getTranslations(t){try{const e=`${this.getUrlPrefix("http")}${this.URLS.translations}`.replace("{version}",String(1)).replace("{locale}",t),n=Eh().get(e),{body:r}=await n;return r.translations}catch(t){if(t.status>=500)throw new ha(t);throw t}}send(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var r;!this.connected||n&&!this.ready?w()(r=this.connection$).call(r,(t=>n?t.connected&&t.ready:t.connected)).take(1).subscribe({next:()=>this.send(t,e,n)}):(nd("[SEND]",t,e),this.conversationProducer.push(t,function(t,e){if("message"!==t)return e;const{type:n,body:r}=e;let{transactionId:o}=e;return o||(o=Jt()),{type:n,body:r,transactionId:o}}(t,e),1e4))}sendContext(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{locale:e,variables:n}=t,r={};if(e){if("string"!=typeof e)throw new Error("Locale must be a string");r.locale=e}if(n){if("object"!=typeof n)throw new Error("Variables must be an object");r.variables=n}0===S()(r).length&&r.constructor===Object||this.send("context",r,!1)}stream(){var t;return w()(t=this.internal$).call(t,(t=>"connection"!==t.type))}getEnvironment(){return{clientName:"@seamly/web-ui",clientVariant:this.layoutMode,clientVersion:"20.3.0",currentUrl:window.location.toString(),screenResolution:`${window.screen.width}x${window.screen.height}`,timezone:rd(),userAgent:navigator.userAgent}}}function id(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(o){return"function"==typeof o?o(n,r,t):e(o)}}}}var ad=id();ad.withExtraArgument=id;var sd=ad;function cd(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ld(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=cd(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=cd(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function ud(t){let{api:e}=t;return()=>t=>n=>{const r=t(n);switch(n.type){case Kn.SET_USER_SELECTED_OPTIONS:e.store.set("options",n.options);break;case Kn.SET_USER_SELECTED_OPTION:e.store.set("options",ld(ld({},e.store.get("options")||{}),{},{[n.option]:n.value}))}return r}}const pd={events:[],initialState:{},unreadEvents:0,isLoading:!1,idleDetachCountdown:{hasCountdown:!1,isActive:!1},resumeConversationPrompt:!1,serviceInfo:{activeServiceSessionId:""},participantInfo:{participants:{},currentAgent:""},headerTitles:{title:null,subTitle:""},historyLoaded:!1,skiplinkTargetId:Jt(),optionsButtonId:Jt(),headerCollapseButtonId:Jt(),serviceData:{},options:{features:{},panelActive:!1,optionActive:"",userSelectedOptions:{}},showFileUpload:!1,currentUploads:[],entryMeta:{default:jn,active:jn,userSelected:null,blockAutoEntrySwitch:!1,options:{},optionsOverride:{}},seamlyContainerElement:null};function fd(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pd,e=arguments.length>1?arguments[1]:void 0;return e.type===String(Yo.pending)?pd:$r(t,e)}const hd=["namespace","parentElement","showFaq"],dd=["view"];function vd(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function yd(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=vd(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=vd(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}class gd{constructor(t,e){const{namespace:n="",parentElement:r,showFaq:o}=t,i=L(t,hd);this.config=yd(yd({},i),{},{namespace:n,showFaq:!1!==o}),this.namespace=n,this.parentElement=r,this.externalApi=e,this.api=new od({layoutMode:t.layoutMode,namespace:t.namespace,config:t.api,context:t.context}),this.eventBus=new(wt()),this.functions={},this.registerFunctions({on:this.eventBus.on,off:this.eventBus.off}),this.eventBus.on("function.register",((t,e)=>this.registerFunction(t,e))),this.eventBus.on("function.unregister",((t,e)=>this.unregisterFunction(t,e)))}async render(){const t=this.config.customComponents||{},{view:e}=t,n=L(t,dd),r=yd(yd({},this.config),{},{customComponents:S()(n).length?n:void 0}),o=function(){let{initialState:t,api:e,eventBus:n,config:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return He({reducers:{state:fd,[String(cs)]:cs,[String(ri)]:ri,[String(sc)]:sc,[String(ws)]:ws,[String($i)]:$i,[String(Ea)]:Ea,[String(Ca)]:Ca},initialState:t,middlewares:[zf({api:e}),sd.withExtraArgument({api:e,eventBus:n,config:r}),ma({api:e}),ud({api:e}),gs()]})}({api:this.api,eventBus:this.eventBus,config:r});await o.dispatch(Yo()),vt(e?Ae(yh,{config:r,eventBus:this.eventBus,store:o,api:this.api,children:Ae(e,{})}):Ae(bh,{config:r,eventBus:this.eventBus,store:o,api:this.api}),this.parentElement)}destroy(){vt(null,this.parentElement),this.eventBus.off(),this.api.disconnect(),delete this.functions}registerFunctions(t){var e;E()(e=N()(t)).call(e,(t=>{let[e,n]=t;this.registerFunction(e,n)}))}registerFunction(t,e){this.functions[t]=this.functions[t]||[],this.functions[t].push(e),this.externalApi.handleActions()}unregisterFunction(t,e){const n=this.functions[t];n&&n.length&&(this.functions[t]=w()(n).call(n,(t=>t!==e)))}execFunction(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const o=this.functions[t];return!(!o||!o.length||(E()(o).call(o,(e=>{try{e(...n)}catch(e){console.error(`Action(${t}) failed: `,e)}})),0))}}function md(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function bd(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=md(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=md(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const _d=t=>"object"==typeof t&&"action"in t,wd=t=>bd(bd({},t),{},{args:e()(t.args)?t.args:[t.args]});var xd=class{constructor(t){this._waitingActions=[],this._instances={},this.appConfig=t,this.context={}}push(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(n=b()(t=w()(n).call(n,_d)).call(t,wd)).length&&(this._waitingActions.push(...n),this.handleActions())}handleActions(){const t=this._waitingActions;this._waitingActions=[],E()(t).call(t,(t=>{switch(t.action){case"init":this.handleInit(t);break;case"destroy":this.handleDestroy(t);break;default:this.handleAction(t)||this.setContext(t.action,...t.args)||this._waitingActions.push(t)}}))}setContext(t,e){switch(t){case"setTopic":const{name:t}=e;return t&&(this.context.topic=t),!0;case"setTranslation":const{enabled:n,locale:r}=e;return n&&r&&(this.context.translationLocale=r),!0;case"setVariables":return S()(e).length>0&&(this.context.variables=bd({},e)),!0;default:return!1}}handleInit(t){const e=this.getUserConfig(...t.args),n=this.getCombinedConfig(e),{parentElement:r,namespace:o}=n||e;var i;if(o?E()(i=O()(this._instances)).call(i,(t=>{t.parentElement!==r&&t.namespace!==o||this.destroy(t)})):this.destroy(),n){const t=this.createInstance(n);this._instances[n.namespace]=t,this.context={},t.render()}}handleDestroy(t){this.destroy(t.instance)}handleAction(t){const{action:e,instance:n,args:r}=t,o=O()(this._instances);!n&&o.length>1&&console.warn(`Multiple instances detected. Due to potential race conditions, it is recommended to target a specific instance with the action: ${e}`);const i=b()(o).call(o,(t=>(!n||t.namespace===n)&&t.execFunction(e,...r)));return C()(i).call(i,Boolean)}createInstance(t){return new gd(t,this)}destroy(t){var e;t?("string"==typeof t&&(t=this._instances[t]),t&&(t.destroy(),delete this._instances[t.namespace])):E()(e=N()(this._instances)).call(e,(t=>{let[e,n]=t;n.destroy(),delete this._instances[e]}))}getUserConfig(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}getCombinedConfig(t){const e=bd(bd({},t.context||this.appConfig.context),this.context),n=this.getMergedVariables(t);S()(n).length>0&&(e.variables=n);const r=bd(bd({},this.appConfig.defaults),t.defaults),o=bd(bd(bd({},this.appConfig),t),{},{api:bd(bd({},this.appConfig.api),t.api),context:S()(e).length?e:void 0,defaults:S()(r).length?r:void 0});return"function"==typeof this.appConfig?this.appConfig(o):o}getMergedVariables(t){var e,n;return bd(bd(bd({},(null===(e=this.appConfig.context)||void 0===e?void 0:e.variables)||{}),(null===(n=t.context)||void 0===n?void 0:n.variables)||{}),this.context.variables||{})}},Ed=()=>{const{t:t}=Li(),{title:e,subTitle:n}=mo(),r=bo(),{isOpen:o}=Sa(),i=xo(),{hasInterrupt:a}=fa(),s=Ye(),c=(null==i?void 0:i.avatar)??s,l=a?"":n,u=["message-count"];return o&&u.push("message-count__hide"),0===r&&u.push("message-count__empty"),(l||!o)&&Ae("div",{className:ai("agent-info"),children:[Ae("div",{className:ai("agent-info__graphic"),children:[c?Ae("img",{className:ai(null!=i&&i.avatar?"avatar":"icon"),src:c,alt:""}):Ae(Es,{name:"avatar",size:"32"}),Ae("span",{className:ai(u),"aria-hidden":"true",children:r})]}),Ae("div",{className:ai("agent-info__body"),children:[Ae("p",{className:ai("agent-info__heading"),children:e??t("header.title")}),Ae("p",{className:ai("agent-info__text"),children:l})]})]})},Td=t=>{let{children:e,onCloseChat:n}=t;const{headerCollapseButtonId:r}=ho(),o=Pt(null),{t:i}=Li();return Ae("header",{className:ai("chat__header"),children:[e,Ae("div",{className:ai("header-controls"),children:Ae("button",{type:"button",className:ai("button","header-controls__collapse"),onClick:n,ref:o,id:r,children:Ae(Es,{name:"chevronDown",size:"32",alt:i("header.collapseApp")})})})]})},Sd=t=>{let{onOpenChat:e}=t;const{t:n}=Li(),r=Ia(),{isOpen:o}=Sa(),i=Pt(null),a=Pt(null),s=Pt(),c=Vi(),l=(()=>{const t=Pt(null),[e]=Bi();return t.current=e,Dt((e=>{xn(t.current,(()=>{Fi(e)}))}),[])})(),u=xo(),p=mo().subTitle,{hasInterrupt:f}=fa(),{headerCollapseButtonId:h}=ho(),d=u&&!f;return jt((()=>{!1===o&&!0===i.current&&l(a.current),i.current=o}),[o,l]),Ae("div",{className:ai("toggle-button"),children:[Ae("div",{id:r,children:[Ae("p",{className:ai("toggle-button__title"),children:n(d?"toggleButton.resumeTitle":"toggleButton.title")}),Ae("p",{className:ai("toggle-button__subtitle"),children:d?p:n("toggleButton.subtitle")})]}),Ae("button",{type:"button","aria-labelledby":r,className:ai("toggle-button__button"),ref:a,onMouseUp:()=>{s.current="mouse"},onKeyUp:()=>{s.current="key"},onClick:()=>{e(),"mouse"===s.current?c():"key"===s.current&&l(h)}})]})};const kd=["categories"];function Od(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ad(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?E()(n=Od(Object(o),!0)).call(n,(function(e){g(t,e,o[e])})):p()?h()(t,p()(o)):E()(r=Od(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Cd=()=>{const{t:t}=Li(),{sendAction:e,addMessageBubble:n}=Da(),r=Ia(),o=Vi(),{sendPolite:i}=Ma(),{hasInterrupt:a}=fa(),{hasCountdown:s,endCountdown:c}=ns(),{hasPrompt:l,continueChat:u}=os(),p=Eo("suggestion"),[f]=ds({payload:p}),h=Lt((()=>{const t=p&&!a?f:[];return b()(t).call(t,(t=>{let{categories:e=[]}=t;return Ad(Ad({},L(t,kd)),{},{categories:e,classNames:["faqs__item",...b()(e).call(e,(t=>`faqs__item--${String(t).toLowerCase().replace(/[^a-z0-9_\\-]/,"")}`))]})}))}),[p,a,f]),d=Pt(null),v=Pt(!1),{isInline:y}=To(),g=Ta(),m=!y&&g,_=Pt(m),w=!!h.length,x=w&&!m,E=Pt([]),T=w?h:E.current;E.current=T;const S=Pt(null);Rt((()=>{if(d.current!==h&&!m){if(w){const e=v.current?t("faq.srUpdatedText"):t("faq.srAvailableText");tn()((()=>{i(e)}),30)}else v.current&&i(t("faq.srUnavailableText"));d.current=h}!_.current&&m?(xn(S.current,o),i(t("faq.srUnavailableText"))):!w&&v.current&&xn(S.current,o),v.current=w,_.current=m}),[w,h,m,o,i,t]);const k=t("faq.headingText"),O=k?"section":"div";return Ae(Cs,{isActive:x,transitionStartState:As.notRendered,children:Ae(O,{className:ai("faqs"),"aria-labelledby":k?r:null,ref:S,children:[k&&Ae("h2",{id:r,className:ai("faqs__heading"),children:k}),!!T.length&&Ae("ul",{className:ai("faqs__list"),children:b()(T).call(T,(t=>Ae("li",{className:ai(t.classNames),children:Ae("button",{type:"button",onClick:()=>{(t=>{let{id:r,question:i}=t;s&&c(!0),l&&u(),e({type:Un,originMessage:p.id,body:{type:"faqclick",body:{faqId:r,faqQuestion:i}}}),n(i),o()})(t)},className:ai("button","button--secondary"),children:[Ae(Es,{name:"chevronRight",size:"8"}),t.question]})},t.id.toString())))})]})})},Id=t=>{let{children:e}=t;const[,n]=Bi(),{isOpen:r,isVisible:o,setVisibility:i}=Sa(),{zIndex:a,showFaq:s,layoutMode:c}=Ke(),{isInline:l}=To(),u=di(),p=Ta(),{locale:f}=Li(),h=Dt((t=>{n(t)}),[n]),d=Lt((()=>{if(f&&document.querySelector("html").getAttribute("lang")!==f)return f}),[f]),v=["app","app--deprecated",...u];return r||"window"!==c||v.push("app--collapsed"),p&&v.push("app--user-responded"),v.push(`app--layout-${c}`),o&&Ae("section",{className:ai(v),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!l&&r&&i(be.minimized)},lang:d,tabIndex:"-1",ref:h,style:{zIndex:a},"data-nosnippet":!0,children:[Ae("div",{className:ai("app-wrapper"),children:e}),s&&Ae(Cd,{})]})},Nd=()=>{const{isVisible:t}=Sa(),{openChat:e,closeChat:n}=Ya();return t&&Ae(Id,{children:[Ae(Sd,{onOpenChat:e}),Ae(Td,{onCloseChat:n,children:Ae(Ed,{})}),Ae(Cf,{interruptComponent:Vc,children:[Ae(qp,{}),Ae(gf,{})]})]})},Rd=function(t){var n;if(window.seamly&&!e()(window.seamly))throw new Error("Seamly UI has already been initialised. Use the window.seamly object to start new instances instead.");const r=e()(window.seamly)?window.seamly:[],o=new xd(t);window.seamly={push:i()(n=o.push).call(n,o)},o.push(...r)}}(),r}()}));
2
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(function(){return function(){var t={6419:function(t,e,n){t.exports=n(7698)},1511:function(t,e,n){t.exports=n(3363)},1128:function(t,e,n){t.exports=n(7784)},4103:function(t,e,n){t.exports=n(8196)},7766:function(t,e,n){t.exports=n(8065)},62:function(t,e,n){t.exports=n(9455)},4494:function(t,e,n){t.exports=n(9743)},116:function(t,e,n){t.exports=n(1955)},2462:function(t,e,n){t.exports=n(6064)},4473:function(t,e,n){t.exports=n(1577)},6423:function(t,e,n){t.exports=n(4913)},8914:function(t,e,n){t.exports=n(6279)},8580:function(t,e,n){t.exports=n(3778)},1643:function(t,e,n){t.exports=n(9373)},2991:function(t,e,n){t.exports=n(1798)},2366:function(t,e,n){t.exports=n(2527)},7093:function(t,e,n){t.exports=n(8427)},3649:function(t,e,n){t.exports=n(2073)},7149:function(t,e,n){t.exports=n(5286)},7302:function(t,e,n){t.exports=n(2856)},5843:function(t,e,n){t.exports=n(6361)},9340:function(t,e,n){t.exports=n(8933)},925:function(t,e,n){t.exports=n(5838)},1942:function(t,e,n){t.exports=n(3383)},4943:function(t,e,n){t.exports=n(4471)},368:function(t,e,n){t.exports=n(7396)},3978:function(t,e,n){t.exports=n(1910)},6295:function(t,e,n){t.exports=n(6209)},4074:function(t,e,n){t.exports=n(9427)},9649:function(t,e,n){t.exports=n(2857)},8604:function(t,e,n){n(4477)},4310:function(t,e,n){t.exports=n(9534)},1611:function(t,e,n){t.exports=n(6507)},6902:function(t,e,n){t.exports=n(3059)},455:function(t,e,n){t.exports=n(7795)},1238:function(t,e,n){t.exports=n(6877)},4198:function(t,e,n){t.exports=n(4888)},3476:function(t,e,n){t.exports=n(7460)},1581:function(t,e,n){t.exports=n(3474)},3032:function(t,e,n){t.exports=n(7989)},6384:function(t,e,n){t.exports=n(5519)},5420:function(t,e,n){t.exports=n(2547)},8341:function(t,e,n){t.exports=n(6509)},9996:function(t,e,n){t.exports=n(2209)},1445:function(t,e,n){t.exports=n(4122)},5683:function(t,e,n){t.exports=n(9447)},2088:function(t,e,n){t.exports=n(269)},4341:function(t,e,n){t.exports=n(3685)},3263:function(t,e,n){t.exports=n(4710)},9356:function(t,e,n){t.exports=n(3799)},2574:function(t,e,n){"use strict";var r=n(5420),o=n(9996),i=n(6419),a=n(1511),s=n(3649);function c(t,e){var n;if(t){if("string"==typeof t)return l(t,e);var r=s(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?i(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(){this._defaults=[]}for(var p=function(){var t=d[f];u.prototype[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this._defaults.push({fn:t,args:n}),this}},f=0,d=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];f<d.length;f++)p();u.prototype._setDefaults=function(t){var e,n,s=function(t,e){var n=void 0!==r&&o(t)||t["@@iterator"];if(!n){if(a(t)||(n=c(t))){n&&(t=n);var i=0,s=function(){};return{s:s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,u=!0,p=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){p=!0,l=t},f:function(){try{u||null==n.return||n.return()}finally{if(p)throw l}}}}(this._defaults);try{for(s.s();!(e=s.n()).done;){var u=e.value;t[u.fn].apply(t,function(t){if(a(t))return l(t)}(n=u.args)||function(t){if(void 0!==r&&null!=o(t)||null!=t["@@iterator"])return i(t)}(n)||c(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}catch(t){s.e(t)}finally{s.f()}},t.exports=u},1766:function(t,e,n){"use strict";var r,o=n(5420),i=n(8341),a=n(9996),s=n(1511),c=n(3649),l=n(6419),u=n(5843),p=n(7766),f=n(1643),d=n(3032),h=n(4103);function v(t){return v="function"==typeof o&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t},v(t)}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}"undefined"!=typeof window?r=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),r=void 0):r=self;var m=n(8767),g=n(4445),_=n(2501),b=n(8842),w=n(6244),E=w.isObject,x=w.mixin,T=w.hasOwn,S=n(1253),O=n(2574);function A(){}t.exports=function(t,n){return"function"==typeof n?new e.Request("GET",t).end(n):1===arguments.length?new e.Request("GET",t):new e.Request(t,n)};var C=e=t.exports;e.Request=D,C.getXHR=function(){if(r.XMLHttpRequest&&(!r.location||"file:"!==r.location.protocol))return new XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};var N=u("")?function(t){return u(t).call(t)}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function I(t){if(!E(t))return t;var e=[];for(var n in t)T(t,n)&&j(e,n,t[n]);return e.join("&")}function j(t,e,n){if(void 0!==n)if(null!==n)if(s(n)){var r,i=function(t,e){var n=void 0!==o&&a(t)||t["@@iterator"];if(!n){if(s(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return y(t,e);var r=c(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?l(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,p=!0,f=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return p=t.done,t},e:function(t){f=!0,u=t},f:function(){try{p||null==n.return||n.return()}finally{if(f)throw u}}}}(n);try{for(i.s();!(r=i.n()).done;)j(t,e,r.value)}catch(t){i.e(t)}finally{i.f()}}else if(E(n))for(var u in n){var f;T(n,u)&&j(t,p(f="".concat(e,"[")).call(f,u,"]"),n[u])}else t.push(encodeURI(e)+"="+encodeURIComponent(n));else t.push(encodeURI(e))}function R(t){for(var e,n,r={},o=t.split("&"),i=0,a=o.length;i<a;++i)e=o[i],-1===(n=f(e).call(e,"="))?r[decodeURIComponent(e)]="":r[decodeURIComponent(c(e).call(e,0,n))]=decodeURIComponent(c(e).call(e,n+1));return r}function k(t){return/[/+]json($|[^-\w])/i.test(t)}function P(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,n,r,o,i=t.split(/\r?\n/),a={},s=0,l=i.length;s<l;++s)n=i[s],-1!==(e=f(n).call(n,":"))&&(r=c(n).call(n,0,e).toLowerCase(),o=N(c(n).call(n,e+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function D(t,e){var n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,r=null;try{r=new P(n)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,n.xhr?(e.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,e.status=n.xhr.status?n.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),n.callback(e)}n.emit("response",r);try{n._isResponseOK(r)||(t=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=r,t.status=t.status||r.status,n.callback(t,r)):n.callback(null,r)}))}C.serializeObject=I,C.parseString=R,C.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},C.serialize={"application/x-www-form-urlencoded":_.stringify,"application/json":g},C.parse={"application/x-www-form-urlencoded":R,"application/json":JSON.parse},x(P.prototype,S.prototype),P.prototype._parseBody=function(t){var e=C.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&k(this.type)&&(e=C.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},P.prototype.toError=function(){var t,e,n=this.req,r=n.method,o=n.url,i=p(t=p(e="cannot ".concat(r," ")).call(e,o," (")).call(t,this.status,")"),a=new Error(i);return a.status=this.status,a.method=r,a.url=o,a},C.Response=P,m(D.prototype),x(D.prototype,b.prototype),D.prototype.type=function(t){return this.set("Content-Type",C.types[t]||t),this},D.prototype.accept=function(t){return this.set("Accept",C.types[t]||t),this},D.prototype.auth=function(t,e,n){1===arguments.length&&(e=""),"object"===v(e)&&null!==e&&(n=e,e=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var r=n.encoder?n.encoder:function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,n,r)},D.prototype.query=function(t){return"string"!=typeof t&&(t=I(t)),t&&this._query.push(t),this},D.prototype.attach=function(t,e,n){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,n||e.name)}return this},D.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},D.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),n(t,e)},D.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},D.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},D.prototype.ca=D.prototype.agent,D.prototype.buffer=D.prototype.ca,D.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},D.prototype.pipe=D.prototype.write,D.prototype._isHost=function(t){return t&&"object"===v(t)&&!s(t)&&"[object Object]"!==Object.prototype.toString.call(t)},D.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||A,this._finalizeQueryString(),this._end()},D.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=d((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},D.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=C.getXHR();var e=this.xhr,n=this._formData||this._data;this._setTimeouts(),e.addEventListener("readystatechange",(function(){var n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}}));var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(t._uploadTimeoutTimer)),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.addEventListener("progress",h(r).call(r,null,"download")),e.upload&&e.upload.addEventListener("progress",h(r).call(r,null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||C.serialize[o?o.split(";")[0]:""];!i&&k(o)&&(i=C.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&T(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===n?null:n)},C.agent=function(){return new O};for(var L=function(){var t=M[U];O.prototype[t.toLowerCase()]=function(e,n){var r=new C.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}},U=0,M=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];U<M.length;U++)L();function F(t,e,n){var r=C("DELETE",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}O.prototype.del=O.prototype.delete,C.get=function(t,e,n){var r=C("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},C.head=function(t,e,n){var r=C("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},C.options=function(t,e,n){var r=C("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},C.del=F,C.delete=F,C.patch=function(t,e,n){var r=C("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},C.post=function(t,e,n){var r=C("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},C.put=function(t,e,n){var r=C("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},8842:function(t,e,n){"use strict";var r=n(5420),o=n(8341),i=n(6384),a=n(3476),s=n(1511),c=n(7766),l=n(5843),u=n(8580),p=n(1643),f=n(3649),d=n(7302),h=n(3032);function v(t){return v="function"==typeof r&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t},v(t)}var y=n(3695),m=n(6244),g=m.isObject,_=m.hasOwn;function b(){}t.exports=b,b.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},b.prototype.parse=function(t){return this._parser=t,this},b.prototype.responseType=function(t){return this._responseType=t,this},b.prototype.serialize=function(t){return this._serializer=t,this},b.prototype.timeout=function(t){if(!t||"object"!==v(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(_(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},b.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var w=new i(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),E=new i([408,413,429,500,502,503,504,521,522,524]);b.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(e&&e.status&&E.has(e.status))return!0;if(t){if(t.code&&w.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},b.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},b.prototype.then=function(t,e){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new a((function(t,e){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)e(n.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=n.status,t.method=n.method,t.url=n.url,e(t)}})),r.end((function(n,r){n?e(n):t(r)}))}))}return this._fullfilledPromise.then(t,e)},b.prototype.catch=function(t){return this.then(void 0,t)},b.prototype.use=function(t){return t(this),this},b.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},b.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},b.prototype.get=function(t){return this._header[t.toLowerCase()]},b.prototype.getHeader=b.prototype.get,b.prototype.set=function(t,e){if(g(t)){for(var n in t)_(t,n)&&this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},b.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},b.prototype.field=function(t,e,n){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(g(t)){for(var r in t)_(t,r)&&this.field(r,t[r]);return this}if(s(e)){for(var o in e)_(e,o)&&this.field(t,e[o]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),n?this._getFormData().append(t,e,n):this._getFormData().append(t,e),this},b.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(y.gte(process.version,"v13.0.0")&&y.lt(process.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");y.gte(process.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},b.prototype._auth=function(t,e,n,r){var o;switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r(c(o="".concat(t,":")).call(o,e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},b.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},b.prototype.redirects=function(t){return this._maxRedirects=t,this},b.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},b.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},b.prototype.send=function(t){var e=g(t),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)s(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&g(this._data))for(var r in t)_(t,r)&&(this._data[r]=t[r]);else if("string"==typeof t){var o,i;n||this.type("form"),(n=this._header["content-type"])&&(n=l(o=n.toLowerCase()).call(o)),this._data="application/x-www-form-urlencoded"===n?this._data?c(i="".concat(this._data,"&")).call(i,t):t:(this._data||"")+t}else this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},b.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},b.prototype._finalizeQueryString=function(){var t,e=this._query.join("&");if(e&&(this.url+=(u(t=this.url).call(t,"?")?"&":"?")+e),this._query.length=0,this._sort){var n,r=p(n=this.url).call(n,"?");if(r>=0){var o,i,a=f(o=this.url).call(o,r+1).split("&");"function"==typeof this._sort?d(a).call(a,this._sort):d(a).call(a),this.url=f(i=this.url).call(i,0,r)+"?"+a.join("&")}}},b.prototype._appendQueryString=function(){console.warn("Unsupported")},b.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error("".concat(t+e,"ms exceeded"));r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},b.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=h((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=h((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},1253:function(t,e,n){"use strict";var r=n(925),o=n(6244);function i(){}t.exports=i,i.prototype.get=function(t){return this.header[t.toLowerCase()]},i.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=o.type(e);var n=o.params(e);for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(this[r]=n[r]);this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},i.prototype._setStatusProperties=function(t){var e=r(t/100);this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},6244:function(t,e,n){"use strict";var r=n(5420),o=n(8341),i=n(9996),a=n(1511),s=n(3649),c=n(6419);function l(t){return l="function"==typeof r&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t},l(t)}function u(t,e){var n=void 0!==r&&i(t)||t["@@iterator"];if(!n){if(a(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return p(t,e);var r=s(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?c(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,l=function(){};return{s:l,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,f=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return f=t.done,t},e:function(t){d=!0,u=t},f:function(){try{f||null==n.return||n.return()}finally{if(d)throw u}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){var e,n={},r=u(t.split(/ *; */));try{for(r.s();!(e=r.n()).done;){var o=e.value.split(/ *= */),i=o.shift(),a=o.shift();i&&a&&(n[i]=a)}}catch(t){r.e(t)}finally{r.f()}return n},e.parseLinks=function(t){var e,n={},r=u(t.split(/ *, */));try{for(r.s();!(e=r.n()).done;){var o,i,a=e.value.split(/ *; */),c=s(o=a[0]).call(o,1,-1);n[s(i=a[1].split(/ *= */)[1]).call(i,1,-1)]=c}}catch(t){r.e(t)}finally{r.f()}return n},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t},e.isObject=function(t){return null!==t&&"object"===l(t)},e.hasOwn=Object.hasOwn||function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(t),e)},e.mixin=function(t,n){for(var r in n)e.hasOwn(n,r)&&(t[r]=n[r])}},3718:function(t){"use strict";var e=String.prototype.replace,n=/%20/g,r="RFC3986";t.exports={default:r,formatters:{RFC1738:function(t){return e.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:r}},2501:function(t,e,n){"use strict";var r=n(4383),o=n(4409),i=n(3718);t.exports={formats:i,parse:o,stringify:r}},4409:function(t,e,n){"use strict";var r=n(1511),o=n(4198),i=n(1643),a=n(3649),s=n(7766),c=n(4943),l=n(6902),u=n(4753),p=Object.prototype.hasOwnProperty,f=r,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:u.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},h=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(o(e,10))}))},v=function(t,e){return t&&"string"==typeof t&&e.comma&&i(t).call(t,",")>-1?t.split(","):t},y=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,l=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(i),f=u?a(i).call(i,0,u.index):i,d=[];if(f){if(!n.plainObjects&&p.call(Object.prototype,f)&&!n.allowPrototypes)return;d.push(f)}for(var h=0;n.depth>0&&null!==(u=l.exec(i))&&h<n.depth;){var y;if(h+=1,!n.plainObjects&&p.call(Object.prototype,a(y=u[1]).call(y,1,-1))&&!n.allowPrototypes)return;d.push(u[1])}return u&&d.push("["+a(i).call(i,u.index)+"]"),function(t,e,n,r){for(var i=r?e:v(e,n),l=t.length-1;l>=0;--l){var u,p=t[l];if("[]"===p&&n.parseArrays){var f;u=s(f=[]).call(f,i)}else{u=n.plainObjects?c(null):{};var d="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?a(p).call(p,1,-1):p,h=o(d,10);n.parseArrays||""!==d?!isNaN(h)&&p!==d&&String(h)===d&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(u=[])[h]=i:"__proto__"!==d&&(u[d]=i):u={0:i}}i=u}return i}(d,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return d;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?d.charset:t.charset;return{allowDots:void 0===t.allowDots?d.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:d.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:d.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:d.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:d.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:d.comma,decoder:"function"==typeof t.decoder?t.decoder:d.decoder,delimiter:"string"==typeof t.delimiter||u.isRegExp(t.delimiter)?t.delimiter:d.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:d.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:d.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:d.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:d.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?c(null):{};for(var r="string"==typeof t?function(t,e){var n,r={},o=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,s=e.parameterLimit===1/0?void 0:e.parameterLimit,c=o.split(e.delimiter,s),l=-1,y=e.charset;if(e.charsetSentinel)for(n=0;n<c.length;++n){var m;0===i(m=c[n]).call(m,"utf8=")&&("utf8=%E2%9C%93"===c[n]?y="utf-8":"utf8=%26%2310003%3B"===c[n]&&(y="iso-8859-1"),l=n,n=c.length)}for(n=0;n<c.length;++n)if(n!==l){var g,_,b=c[n],w=i(b).call(b,"]="),E=-1===w?i(b).call(b,"="):w+1;-1===E?(g=e.decoder(b,d.decoder,y,"key"),_=e.strictNullHandling?null:""):(g=e.decoder(a(b).call(b,0,E),d.decoder,y,"key"),_=u.maybeMap(v(a(b).call(b,E+1),e),(function(t){return e.decoder(t,d.decoder,y,"value")}))),_&&e.interpretNumericEntities&&"iso-8859-1"===y&&(_=h(_)),i(b).call(b,"[]=")>-1&&(_=f(_)?[_]:_),p.call(r,g)?r[g]=u.combine(r[g],_):r[g]=_}return r}(t,n):t,o=n.plainObjects?c(null):{},s=l(r),m=0;m<s.length;++m){var g=s[m],_=y(g,r[g],n,"string"==typeof t);o=u.merge(o,_,n)}return!0===n.allowSparse?o:u.compact(o)}},4383:function(t,e,n){"use strict";var r=n(1511),o=n(6902),i=n(7302),a=n(116),s=n(7478),c=n(4753),l=n(3718),u=Object.prototype.hasOwnProperty,p={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},f=r,d=String.prototype.split,h=Array.prototype.push,v=function(t,e){h.apply(t,f(e)?e:[e])},y=Date.prototype.toISOString,m=l.default,g={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:c.encode,encodeValuesOnly:!1,format:m,formatter:l.formatters[m],indices:!1,serializeDate:function(t){return y.call(t)},skipNulls:!1,strictNullHandling:!1},_={},b=function t(e,n,r,a,l,u,p,h,y,m,b,w,E,x,T){for(var S,O=e,A=T,C=0,N=!1;void 0!==(A=A.get(_))&&!N;){var I=A.get(e);if(C+=1,void 0!==I){if(I===C)throw new RangeError("Cyclic object value");N=!0}void 0===A.get(_)&&(C=0)}if("function"==typeof p?O=p(n,O):O instanceof Date?O=m(O):"comma"===r&&f(O)&&(O=c.maybeMap(O,(function(t){return t instanceof Date?m(t):t}))),null===O){if(a)return u&&!E?u(n,g.encoder,x,"key",b):n;O=""}if("string"==typeof(S=O)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||c.isBuffer(O)){if(u){var j=E?n:u(n,g.encoder,x,"key",b);if("comma"===r&&E){for(var R=d.call(String(O),","),k="",P=0;P<R.length;++P)k+=(0===P?"":",")+w(u(R[P],g.encoder,x,"value",b));return[w(j)+(f(O)&&1===R.length?"[]":"")+"="+k]}return[w(j)+"="+w(u(O,g.encoder,x,"value",b))]}return[w(n)+"="+w(String(O))]}var D,L=[];if(void 0===O)return L;if("comma"===r&&f(O))D=[{value:O.length>0?O.join(",")||null:void 0}];else if(f(p))D=p;else{var U=o(O);D=h?i(U).call(U,h):U}for(var M="comma"===r&&f(O)&&1===O.length?n+"[]":n,F=0;F<D.length;++F){var B=D[F],H="object"==typeof B&&void 0!==B.value?B.value:O[B];if(!l||null!==H){var z=f(O)?"function"==typeof r?r(M,B):M:M+(y?"."+B:"["+B+"]");T.set(e,C);var $=s();$.set(_,T),v(L,t(H,z,r,a,l,u,p,h,y,m,b,w,E,x,$))}}return L};t.exports=function(t,e){var n,r=t,c=function(t){if(!t)return g;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||g.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=l.default;if(void 0!==t.format){if(!u.call(l.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=l.formatters[n],o=a(g);return("function"==typeof a(t)||f(a(t)))&&(o=a(t)),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:g.addQueryPrefix,allowDots:void 0===t.allowDots?g.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:g.charsetSentinel,delimiter:void 0===t.delimiter?g.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:g.encode,encoder:"function"==typeof t.encoder?t.encoder:g.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:g.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:g.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:g.skipNulls,sort:"function"==typeof i(t)?i(t):null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:g.strictNullHandling}}(e);"function"==typeof a(c)?r=a(c)("",r):f(a(c))&&(n=a(c));var d,h=[];if("object"!=typeof r||null===r)return"";d=e&&e.arrayFormat in p?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var y=p[d];n||(n=o(r)),i(c)&&i(n).call(n,i(c));for(var m=s(),_=0;_<n.length;++_){var w=n[_];c.skipNulls&&null===r[w]||v(h,b(r[w],w,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,a(c),i(c),c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var E=h.join(c.delimiter),x=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),E.length>0?x+E:""}},4753:function(t,e,n){"use strict";var r=n(1511),o=n(4943),i=n(7766),a=n(8914),s=n(2366),c=n(6902),l=n(5420),u=n(4198),p=n(3649),f=n(1643),d=n(3718),h=Object.prototype.hasOwnProperty,v=r,y=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),m=function(t,e){for(var n=e&&e.plainObjects?o(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:m,assign:function(t,e){var n;return s(n=c(e)).call(n,(function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){var n;return i(n=[]).call(n,t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],i=o.obj[o.prop],a=c(i),s=0;s<a.length;++s){var l=a[s],u=i[l];"object"==typeof u&&null!==u&&-1===f(n).call(n,u)&&(e.push({obj:i,prop:l}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(v(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,r,o){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=l.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+u(p(t).call(t,2),16)+"%3B"}));for(var a="",s=0;s<i.length;++s){var c=i.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===d.RFC1738&&(40===c||41===c)?a+=i.charAt(s):c<128?a+=y[c]:c<2048?a+=y[192|c>>6]+y[128|63&c]:c<55296||c>=57344?a+=y[224|c>>12]+y[128|c>>6&63]+y[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(s)),a+=y[240|c>>18]+y[128|c>>12&63]+y[128|c>>6&63]+y[128|63&c])}return a},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(v(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){var o,l;if(!n)return e;if("object"!=typeof n){if(v(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!h.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return i(l=[e]).call(l,n);var u=e;return v(e)&&!v(n)&&(u=m(e,r)),v(e)&&v(n)?(a(n).call(n,(function(n,o){if(h.call(e,o)){var i=e[o];i&&"object"==typeof i&&n&&"object"==typeof n?e[o]=t(i,n,r):e.push(n)}else e[o]=n})),e):s(o=c(n)).call(o,(function(e,o){var i=n[o];return h.call(e,o)?e[o]=t(e[o],i,r):e[o]=i,e}),u)}}},1905:function(t){t.exports=()=>()=>null},2698:function(t){t.exports=null},1924:function(t,e,n){"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&i(t,".prototype.")>-1?o(n):n}},5559:function(t,e,n){"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(t){l=null}t.exports=function(t){var e=s(r,a,arguments);if(c&&l){var n=c(e,"length");n.configurable&&l(e,"length",{value:1+u(0,t.length-(arguments.length-1))})}return e};var p=function(){return s(r,i,arguments)};l?l(t.exports,"apply",{value:p}):t.exports.apply=p},8767:function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<r.length;o++)if((n=r[o])===e||n.fn===e){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},6820:function(t,e,n){var r=n(6243);t.exports=r},93:function(t,e,n){var r=n(8196);t.exports=r},5684:function(t,e,n){var r=n(9373);t.exports=r},5362:function(t,e,n){var r=n(3383);t.exports=r},3536:function(t,e,n){var r=n(1910);t.exports=r},3151:function(t,e,n){var r=n(9534);t.exports=r},5012:function(t,e,n){var r=n(3059);t.exports=r},4493:function(t,e,n){n(7971),n(3242);var r=n(4058);t.exports=r.Array.from},4034:function(t,e,n){n(2737);var r=n(4058);t.exports=r.Array.isArray},5367:function(t,e,n){n(5906);var r=n(5703);t.exports=r("Array").concat},1459:function(t,e,n){n(8851);var r=n(5703);t.exports=r("Array").every},6172:function(t,e,n){n(290);var r=n(5703);t.exports=r("Array").fill},2383:function(t,e,n){n(1501);var r=n(5703);t.exports=r("Array").filter},9:function(t,e,n){n(4929);var r=n(5703);t.exports=r("Array").findIndex},7671:function(t,e,n){n(833);var r=n(5703);t.exports=r("Array").find},4373:function(t,e,n){n(4944),n(1107);var r=n(5703);t.exports=r("Array").flat},9324:function(t,e,n){n(2437);var r=n(5703);t.exports=r("Array").forEach},991:function(t,e,n){n(7690);var r=n(5703);t.exports=r("Array").includes},8700:function(t,e,n){n(9076);var r=n(5703);t.exports=r("Array").indexOf},3866:function(t,e,n){n(8787);var r=n(5703);t.exports=r("Array").map},2999:function(t,e,n){n(1876);var r=n(5703);t.exports=r("Array").reduce},5573:function(t,e,n){n(1490);var r=n(5703);t.exports=r("Array").reverse},4900:function(t,e,n){n(186);var r=n(5703);t.exports=r("Array").slice},3824:function(t,e,n){n(6026);var r=n(5703);t.exports=r("Array").some},2948:function(t,e,n){n(4115);var r=n(5703);t.exports=r("Array").sort},1103:function(t,e,n){n(5160);var r=n(4058);t.exports=r.Date.now},7700:function(t,e,n){n(3381);var r=n(5703);t.exports=r("Function").bind},3830:function(t,e,n){n(6274),n(7971);var r=n(2902);t.exports=r},6246:function(t,e,n){var r=n(7046),o=n(7700),i=Function.prototype;t.exports=function(t){var e=t.bind;return t===i||r(i,t)&&e===i.bind?o:e}},6043:function(t,e,n){var r=n(7046),o=n(5367),i=Array.prototype;t.exports=function(t){var e=t.concat;return t===i||r(i,t)&&e===i.concat?o:e}},3160:function(t,e,n){var r=n(7046),o=n(1459),i=Array.prototype;t.exports=function(t){var e=t.every;return t===i||r(i,t)&&e===i.every?o:e}},446:function(t,e,n){var r=n(7046),o=n(6172),i=Array.prototype;t.exports=function(t){var e=t.fill;return t===i||r(i,t)&&e===i.fill?o:e}},2480:function(t,e,n){var r=n(7046),o=n(2383),i=Array.prototype;t.exports=function(t){var e=t.filter;return t===i||r(i,t)&&e===i.filter?o:e}},7147:function(t,e,n){var r=n(7046),o=n(9),i=Array.prototype;t.exports=function(t){var e=t.findIndex;return t===i||r(i,t)&&e===i.findIndex?o:e}},2236:function(t,e,n){var r=n(7046),o=n(7671),i=Array.prototype;t.exports=function(t){var e=t.find;return t===i||r(i,t)&&e===i.find?o:e}},8098:function(t,e,n){var r=n(7046),o=n(4373),i=Array.prototype;t.exports=function(t){var e=t.flat;return t===i||r(i,t)&&e===i.flat?o:e}},8557:function(t,e,n){var r=n(7046),o=n(991),i=n(1631),a=Array.prototype,s=String.prototype;t.exports=function(t){var e=t.includes;return t===a||r(a,t)&&e===a.includes?o:"string"==typeof t||t===s||r(s,t)&&e===s.includes?i:e}},4570:function(t,e,n){var r=n(7046),o=n(8700),i=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===i||r(i,t)&&e===i.indexOf?o:e}},8287:function(t,e,n){var r=n(7046),o=n(3866),i=Array.prototype;t.exports=function(t){var e=t.map;return t===i||r(i,t)&&e===i.map?o:e}},8025:function(t,e,n){var r=n(7046),o=n(2999),i=Array.prototype;t.exports=function(t){var e=t.reduce;return t===i||r(i,t)&&e===i.reduce?o:e}},1060:function(t,e,n){var r=n(7046),o=n(5573),i=Array.prototype;t.exports=function(t){var e=t.reverse;return t===i||r(i,t)&&e===i.reverse?o:e}},9601:function(t,e,n){var r=n(7046),o=n(4900),i=Array.prototype;t.exports=function(t){var e=t.slice;return t===i||r(i,t)&&e===i.slice?o:e}},8299:function(t,e,n){var r=n(7046),o=n(3824),i=Array.prototype;t.exports=function(t){var e=t.some;return t===i||r(i,t)&&e===i.some?o:e}},9355:function(t,e,n){var r=n(7046),o=n(2948),i=Array.prototype;t.exports=function(t){var e=t.sort;return t===i||r(i,t)&&e===i.sort?o:e}},2774:function(t,e,n){var r=n(7046),o=n(3348),i=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===i||r(i,t)&&e===i.trim?o:e}},4426:function(t,e,n){n(2619);var r=n(4058),o=n(9730);r.JSON||(r.JSON={stringify:JSON.stringify}),t.exports=function(t,e,n){return o(r.JSON.stringify,null,arguments)}},9179:function(t,e,n){n(8103);var r=n(4058);t.exports=r.Math.trunc},5999:function(t,e,n){n(9221);var r=n(4058);t.exports=r.Object.assign},5254:function(t,e,n){n(3882);var r=n(4058).Object;t.exports=function(t,e){return r.create(t,e)}},7702:function(t,e,n){n(4979);var r=n(4058).Object,o=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(o.sham=!0)},8171:function(t,e,n){n(6450);var r=n(4058).Object,o=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(o.sham=!0)},3081:function(t,e,n){n(1078);var r=n(4058);t.exports=r.Object.entries},286:function(t,e,n){n(6924);var r=n(4058).Object,o=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(o.sham=!0)},2766:function(t,e,n){n(8482);var r=n(4058);t.exports=r.Object.getOwnPropertyDescriptors},3288:function(t,e,n){n(9816);var r=n(4058).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},498:function(t,e,n){n(5824);var r=n(4058);t.exports=r.Object.getOwnPropertySymbols},3966:function(t,e,n){n(7405);var r=n(4058);t.exports=r.Object.getPrototypeOf},8494:function(t,e,n){n(1724);var r=n(4058);t.exports=r.Object.keys},8430:function(t,e,n){n(6614);var r=n(4058);t.exports=r.Object.values},7579:function(t,e,n){n(9718);var r=n(4058);t.exports=r.parseFloat},8524:function(t,e,n){n(4038);var r=n(4058);t.exports=r.parseInt},2956:function(t,e,n){n(7627),n(6274),n(5967),n(8881),n(4560),n(7206),n(4349),n(7971);var r=n(4058);t.exports=r.Promise},6998:function(t,e,n){n(6274),n(5967),n(9008),n(7971);var r=n(4058);t.exports=r.Set},1631:function(t,e,n){n(1035);var r=n(5703);t.exports=r("String").includes},3348:function(t,e,n){n(7398);var r=n(5703);t.exports=r("String").trim},7473:function(t,e,n){n(5906),n(5967),n(5824),n(8555),n(2615),n(1732),n(5903),n(1825),n(8394),n(5915),n(1437),n(9791),n(9911),n(4315),n(3131),n(4714),n(659),n(9120),n(5327),n(1502);var r=n(4058);t.exports=r.Symbol},4227:function(t,e,n){n(6274),n(5967),n(7971),n(1825);var r=n(1477);t.exports=r.f("iterator")},2209:function(t,e,n){t.exports=n(478)},4122:function(t,e,n){t.exports=n(9097)},9447:function(t,e,n){t.exports=n(628)},269:function(t,e,n){t.exports=n(6936)},3685:function(t,e,n){t.exports=n(621)},4710:function(t,e,n){t.exports=n(4904)},3799:function(t,e,n){t.exports=n(2093)},478:function(t,e,n){var r=n(6820);t.exports=r},9097:function(t,e,n){var r=n(93);t.exports=r},628:function(t,e,n){var r=n(5684);t.exports=r},6936:function(t,e,n){var r=n(5362);t.exports=r},621:function(t,e,n){var r=n(3536);t.exports=r},4904:function(t,e,n){var r=n(3151);t.exports=r},2093:function(t,e,n){var r=n(5012);t.exports=r},4883:function(t,e,n){var r=n(7475),o=n(9826),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},174:function(t,e,n){var r=n(4284),o=n(9826),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a constructor")}},1851:function(t,e,n){var r=n(7475),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},8479:function(t){t.exports=function(){}},5743:function(t,e,n){var r=n(7046),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw o("Incorrect invocation")}},6059:function(t,e,n){var r=n(941),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},7135:function(t,e,n){var r=n(5981);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},1860:function(t,e,n){"use strict";var r=n(9678),o=n(9413),i=n(623);t.exports=function(t){for(var e=r(this),n=i(e),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);l>s;)e[s++]=t;return e}},6837:function(t,e,n){"use strict";var r=n(3610).forEach,o=n(4194)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},1354:function(t,e,n){"use strict";var r=n(6843),o=n(8834),i=n(9678),a=n(5196),s=n(6782),c=n(4284),l=n(623),u=n(5449),p=n(429),f=n(2902),d=Array;t.exports=function(t){var e=i(t),n=c(this),h=arguments.length,v=h>1?arguments[1]:void 0,y=void 0!==v;y&&(v=r(v,h>2?arguments[2]:void 0));var m,g,_,b,w,E,x=f(e),T=0;if(!x||this===d&&s(x))for(m=l(e),g=n?new this(m):d(m);m>T;T++)E=y?v(e[T],T):e[T],u(g,T,E);else for(w=(b=p(e,x)).next,g=n?new this:[];!(_=o(w,b)).done;T++)E=y?a(b,v,[_.value,T],!0):_.value,u(g,T,E);return g.length=T,g}},1692:function(t,e,n){var r=n(4529),o=n(9413),i=n(623),a=function(t){return function(e,n,a){var s,c=r(e),l=i(c),u=o(a,l);if(t&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3610:function(t,e,n){var r=n(6843),o=n(5329),i=n(7026),a=n(9678),s=n(623),c=n(4692),l=o([].push),u=function(t){var e=1==t,n=2==t,o=3==t,u=4==t,p=6==t,f=7==t,d=5==t||p;return function(h,v,y,m){for(var g,_,b=a(h),w=i(b),E=r(v,y),x=s(w),T=0,S=m||c,O=e?S(h,x):n||f?S(h,0):void 0;x>T;T++)if((d||T in w)&&(_=E(g=w[T],T,b),t))if(e)O[T]=_;else if(_)switch(t){case 3:return!0;case 5:return g;case 6:return T;case 2:l(O,g)}else switch(t){case 4:return!1;case 7:l(O,g)}return p?-1:o||u?u:O}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},568:function(t,e,n){var r=n(5981),o=n(9813),i=n(3385),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},4194:function(t,e,n){"use strict";var r=n(5981);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},6499:function(t,e,n){var r=n(4883),o=n(9678),i=n(7026),a=n(623),s=TypeError,c=function(t){return function(e,n,c,l){r(n);var u=o(e),p=i(u),f=a(u),d=t?f-1:0,h=t?-1:1;if(c<2)for(;;){if(d in p){l=p[d],d+=h;break}if(d+=h,t?d<0:f<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=h)d in p&&(l=n(l,p[d],d,u));return l}};t.exports={left:c(!1),right:c(!0)}},5790:function(t,e,n){var r=n(9413),o=n(623),i=n(5449),a=Array,s=Math.max;t.exports=function(t,e,n){for(var c=o(t),l=r(e,c),u=r(void 0===n?c:n,c),p=a(s(u-l,0)),f=0;l<u;l++,f++)i(p,f,t[l]);return p.length=f,p}},3765:function(t,e,n){var r=n(5329);t.exports=r([].slice)},1388:function(t,e,n){var r=n(5790),o=Math.floor,i=function(t,e){var n=t.length,c=o(n/2);return n<8?a(t,e):s(t,i(r(t,0,c),e),i(r(t,c),e),e)},a=function(t,e){for(var n,r,o=t.length,i=1;i<o;){for(r=i,n=t[i];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var o=e.length,i=n.length,a=0,s=0;a<o||s<i;)t[a+s]=a<o&&s<i?r(e[a],n[s])<=0?e[a++]:n[s++]:a<o?e[a++]:n[s++];return t};t.exports=i},5693:function(t,e,n){var r=n(1052),o=n(4284),i=n(941),a=n(9813)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===s||r(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},4692:function(t,e,n){var r=n(5693);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},5196:function(t,e,n){var r=n(6059),o=n(7609);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},1385:function(t,e,n){var r=n(9813)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},2532:function(t,e,n){var r=n(5329),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},9697:function(t,e,n){var r=n(2885),o=n(7475),i=n(2532),a=n(9813)("toStringTag"),s=Object,c="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:c?i(e):"Object"==(r=i(e))&&o(e.callee)?"Arguments":r}},8694:function(t,e,n){var r=n(5329),o=Error,i=r("".replace),a=String(o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,s,"");return t}},5616:function(t,e,n){"use strict";var r=n(5988).f,o=n(9290),i=n(4380),a=n(6843),s=n(5743),c=n(3091),l=n(7771),u=n(4431),p=n(5746),f=n(1647).fastKey,d=n(5402),h=d.set,v=d.getterFor;t.exports={getConstructor:function(t,e,n,l){var u=t((function(t,r){s(t,d),h(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),p||(t.size=0),null!=r&&c(r,t[l],{that:t,AS_ENTRIES:n})})),d=u.prototype,y=v(e),m=function(t,e,n){var r,o,i=y(t),a=g(t,e);return a?a.value=n:(i.last=a={index:o=f(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},g=function(t,e){var n,r=y(t),o=f(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(d,{clear:function(){for(var t=y(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,p?t.size=0:this.size=0},delete:function(t){var e=this,n=y(e),r=g(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),p?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=y(this),r=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(d,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),p&&r(d,"size",{get:function(){return y(this).size}}),u},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);l(t,e,(function(t,e){h(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(e)}}},4683:function(t,e,n){"use strict";var r=n(6887),o=n(1899),i=n(1647),a=n(5981),s=n(2029),c=n(3091),l=n(5743),u=n(7475),p=n(941),f=n(904),d=n(5988).f,h=n(3610).forEach,v=n(5746),y=n(5402),m=y.set,g=y.getterFor;t.exports=function(t,e,n){var y,_=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),w=_?"set":"add",E=o[t],x=E&&E.prototype,T={};if(v&&u(E)&&(b||x.forEach&&!a((function(){(new E).entries().next()})))){var S=(y=e((function(e,n){m(l(e,S),{type:t,collection:new E}),null!=n&&c(n,e[w],{that:e,AS_ENTRIES:_})}))).prototype,O=g(t);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in x)||b&&"clear"==t||s(S,t,(function(n,r){var o=O(this).collection;if(!e&&b&&!p(n))return"get"==t&&void 0;var i=o[t](0===n?0:n,r);return e?this:i}))})),b||d(S,"size",{configurable:!0,get:function(){return O(this).collection.size}})}else y=n.getConstructor(e,t,_,w),i.enable();return f(y,t,!1,!0),T[t]=y,r({global:!0,forced:!0},T),b||n.setStrong(y,t,_),y}},3489:function(t,e,n){var r=n(953),o=n(1136),i=n(9677),a=n(5988);t.exports=function(t,e,n){for(var s=o(e),c=a.f,l=i.f,u=0;u<s.length;u++){var p=s[u];r(t,p)||n&&r(n,p)||c(t,p,l(e,p))}}},7772:function(t,e,n){var r=n(9813)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},4160:function(t,e,n){var r=n(5981);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},1046:function(t,e,n){"use strict";var r=n(5143).IteratorPrototype,o=n(9290),i=n(1887),a=n(904),s=n(2077),c=function(){return this};t.exports=function(t,e,n,l){var u=e+" Iterator";return t.prototype=o(r,{next:i(+!l,n)}),a(t,u,!1,!0),s[u]=c,t}},2029:function(t,e,n){var r=n(5746),o=n(5988),i=n(1887);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},1887:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5449:function(t,e,n){"use strict";var r=n(3894),o=n(5988),i=n(1887);t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},5929:function(t,e,n){var r=n(2029);t.exports=function(t,e,n,o){return o&&o.enumerable?t[e]=n:r(t,e,n),t}},4380:function(t,e,n){var r=n(5929);t.exports=function(t,e,n){for(var o in e)n&&n.unsafe&&t[o]?t[o]=e[o]:r(t,o,e[o],n);return t}},5609:function(t,e,n){var r=n(1899),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},7771:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(2529),a=n(9417),s=n(7475),c=n(1046),l=n(249),u=n(8929),p=n(904),f=n(2029),d=n(5929),h=n(9813),v=n(2077),y=n(5143),m=a.PROPER,g=a.CONFIGURABLE,_=y.IteratorPrototype,b=y.BUGGY_SAFARI_ITERATORS,w=h("iterator"),E="keys",x="values",T="entries",S=function(){return this};t.exports=function(t,e,n,a,h,y,O){c(n,e,a);var A,C,N,I=function(t){if(t===h&&D)return D;if(!b&&t in k)return k[t];switch(t){case E:case x:case T:return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",R=!1,k=t.prototype,P=k[w]||k["@@iterator"]||h&&k[h],D=!b&&P||I(h),L="Array"==e&&k.entries||P;if(L&&(A=l(L.call(new t)))!==Object.prototype&&A.next&&(i||l(A)===_||(u?u(A,_):s(A[w])||d(A,w,S)),p(A,j,!0,!0),i&&(v[j]=S)),m&&h==x&&P&&P.name!==x&&(!i&&g?f(k,"name",x):(R=!0,D=function(){return o(P,this)})),h)if(C={values:I(x),keys:y?D:I(E),entries:I(T)},O)for(N in C)(b||R||!(N in k))&&d(k,N,C[N]);else r({target:e,proto:!0,forced:b||R},C);return i&&!O||k[w]===D||d(k,w,D,{name:h}),v[e]=D,C}},6349:function(t,e,n){var r=n(4058),o=n(953),i=n(1477),a=n(5988).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},5863:function(t,e,n){"use strict";var r=n(9826),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw o("Cannot delete property "+r(e)+" of "+r(t))}},5746:function(t,e,n){var r=n(5981);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},1333:function(t,e,n){var r=n(1899),o=n(941),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},6796:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},3281:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},4342:function(t,e,n){var r=n(2861).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},3321:function(t){t.exports="object"==typeof window&&"object"!=typeof Deno},7797:function(t,e,n){var r=n(2861);t.exports=/MSIE|Trident/.test(r)},4470:function(t,e,n){var r=n(2861),o=n(1899);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},2749:function(t,e,n){var r=n(2861);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},6049:function(t,e,n){var r=n(2532),o=n(1899);t.exports="process"==r(o.process)},8045:function(t,e,n){var r=n(2861);t.exports=/web0s(?!.*chrome)/i.test(r)},2861:function(t,e,n){var r=n(626);t.exports=r("navigator","userAgent")||""},3385:function(t,e,n){var r,o,i=n(1899),a=n(2861),s=i.process,c=i.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(o=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},8938:function(t,e,n){var r=n(2861).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},5703:function(t,e,n){var r=n(4058);t.exports=function(t){return r[t+"Prototype"]}},6759:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8780:function(t,e,n){var r=n(5981),o=n(1887);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},6887:function(t,e,n){"use strict";var r=n(1899),o=n(9730),i=n(5329),a=n(7475),s=n(9677).f,c=n(7252),l=n(4058),u=n(6843),p=n(2029),f=n(953),d=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,o,h,v,y,m,g,_,b=t.target,w=t.global,E=t.stat,x=t.proto,T=w?r:E?r[b]:(r[b]||{}).prototype,S=w?l:l[b]||p(l,b,{})[b],O=S.prototype;for(h in e)n=!c(w?h:b+(E?".":"#")+h,t.forced)&&T&&f(T,h),y=S[h],n&&(m=t.dontCallGetSet?(_=s(T,h))&&_.value:T[h]),v=n&&m?m:e[h],n&&typeof y==typeof v||(g=t.bind&&n?u(v,r):t.wrap&&n?d(v):x&&a(v)?i(v):v,(t.sham||v&&v.sham||y&&y.sham)&&p(g,"sham",!0),p(S,h,g),x&&(f(l,o=b+"Prototype")||p(l,o,{}),p(l[o],h,v),t.real&&O&&!O[h]&&p(O,h,v)))}},5981:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},3092:function(t,e,n){"use strict";var r=n(1052),o=n(623),i=n(6796),a=n(6843),s=function(t,e,n,c,l,u,p,f){for(var d,h,v=l,y=0,m=!!p&&a(p,f);y<c;)y in n&&(d=m?m(n[y],y,e):n[y],u>0&&r(d)?(h=o(d),v=s(t,e,d,h,v,u-1)-1):(i(v+1),t[v]=d),v++),y++;return v};t.exports=s},5602:function(t,e,n){var r=n(5981);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9730:function(t,e,n){var r=n(8285),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},6843:function(t,e,n){var r=n(5329),o=n(4883),i=n(8285),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},8285:function(t,e,n){var r=n(5981);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8308:function(t,e,n){"use strict";var r=n(5329),o=n(4883),i=n(941),a=n(953),s=n(3765),c=n(8285),l=Function,u=r([].concat),p=r([].join),f={},d=function(t,e,n){if(!a(f,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";f[e]=l("C,a","return new C("+p(r,",")+")")}return f[e](t,n)};t.exports=c?l.bind:function(t){var e=o(this),n=e.prototype,r=s(arguments,1),a=function(){var n=u(r,s(arguments));return this instanceof a?d(e,n.length,n):e.apply(t,n)};return i(n)&&(a.prototype=n),a}},8834:function(t,e,n){var r=n(8285),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},9417:function(t,e,n){var r=n(5746),o=n(953),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,l=s&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},5329:function(t,e,n){var r=n(8285),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},626:function(t,e,n){var r=n(4058),o=n(1899),i=n(7475),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t])||a(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},2902:function(t,e,n){var r=n(9697),o=n(4229),i=n(2077),a=n(9813)("iterator");t.exports=function(t){if(null!=t)return o(t,a)||o(t,"@@iterator")||i[r(t)]}},429:function(t,e,n){var r=n(8834),o=n(4883),i=n(6059),a=n(9826),s=n(2902),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(o(n))return i(r(n,t));throw c(a(t)+" is not iterable")}},4229:function(t,e,n){var r=n(4883);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},1899:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},953:function(t,e,n){var r=n(5329),o=n(9678),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},7748:function(t){t.exports={}},4845:function(t,e,n){var r=n(1899);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},5463:function(t,e,n){var r=n(626);t.exports=r("document","documentElement")},2840:function(t,e,n){var r=n(5746),o=n(5981),i=n(1333);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7026:function(t,e,n){var r=n(5329),o=n(5981),i=n(2532),a=Object,s=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?s(t,""):a(t)}:a},1302:function(t,e,n){var r=n(5329),o=n(7475),i=n(3030),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},3794:function(t,e,n){var r=n(941),o=n(2029);t.exports=function(t,e){r(e)&&"cause"in e&&o(t,"cause",e.cause)}},1647:function(t,e,n){var r=n(6887),o=n(5329),i=n(7748),a=n(941),s=n(953),c=n(5988).f,l=n(946),u=n(684),p=n(1584),f=n(9418),d=n(5602),h=!1,v=f("meta"),y=0,m=function(t){c(t,v,{value:{objectID:"O"+y++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},h=!0;var t=l.f,e=o([].splice),n={};n[v]=1,t(n).length&&(l.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===v){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,v)){if(!p(t))return"F";if(!e)return"E";m(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!p(t))return!0;if(!e)return!1;m(t)}return t[v].weakData},onFreeze:function(t){return d&&h&&p(t)&&!s(t,v)&&m(t),t}};i[v]=!0},5402:function(t,e,n){var r,o,i,a=n(8019),s=n(1899),c=n(5329),l=n(941),u=n(2029),p=n(953),f=n(3030),d=n(4262),h=n(7748),v="Object already initialized",y=s.TypeError,m=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new m),_=c(g.get),b=c(g.has),w=c(g.set);r=function(t,e){if(b(g,t))throw new y(v);return e.facade=t,w(g,t,e),e},o=function(t){return _(g,t)||{}},i=function(t){return b(g,t)}}else{var E=d("state");h[E]=!0,r=function(t,e){if(p(t,E))throw new y(v);return e.facade=t,u(t,E,e),e},o=function(t){return p(t,E)?t[E]:{}},i=function(t){return p(t,E)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return n}}}},6782:function(t,e,n){var r=n(9813),o=n(2077),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},1052:function(t,e,n){var r=n(2532);t.exports=Array.isArray||function(t){return"Array"==r(t)}},7475:function(t){t.exports=function(t){return"function"==typeof t}},4284:function(t,e,n){var r=n(5329),o=n(5981),i=n(7475),a=n(9697),s=n(626),c=n(1302),l=function(){},u=[],p=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.exec(l),v=function(t){if(!i(t))return!1;try{return p(l,u,t),!0}catch(t){return!1}},y=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,c(t))}catch(t){return!0}};y.sham=!0,t.exports=!p||o((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?y:v},7252:function(t,e,n){var r=n(5981),o=n(7475),i=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==u||n!=l&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},941:function(t,e,n){var r=n(7475);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},2529:function(t){t.exports=!0},685:function(t,e,n){var r=n(941),o=n(2532),i=n(9813)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},6664:function(t,e,n){var r=n(626),o=n(7475),i=n(7046),a=n(2302),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},3091:function(t,e,n){var r=n(6843),o=n(8834),i=n(6059),a=n(9826),s=n(6782),c=n(623),l=n(7046),u=n(429),p=n(2902),f=n(7609),d=TypeError,h=function(t,e){this.stopped=t,this.result=e},v=h.prototype;t.exports=function(t,e,n){var y,m,g,_,b,w,E,x=n&&n.that,T=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),A=r(e,x),C=function(t){return y&&f(y,"normal",t),new h(!0,t)},N=function(t){return T?(i(t),O?A(t[0],t[1],C):A(t[0],t[1])):O?A(t,C):A(t)};if(S)y=t;else{if(!(m=p(t)))throw d(a(t)+" is not iterable");if(s(m)){for(g=0,_=c(t);_>g;g++)if((b=N(t[g]))&&l(v,b))return b;return new h(!1)}y=u(t,m)}for(w=y.next;!(E=o(w,y)).done;){try{b=N(E.value)}catch(t){f(y,"throw",t)}if("object"==typeof b&&b&&l(v,b))return b}return new h(!1)}},7609:function(t,e,n){var r=n(8834),o=n(6059),i=n(4229);t.exports=function(t,e,n){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return o(a),n}},5143:function(t,e,n){"use strict";var r,o,i,a=n(5981),s=n(7475),c=n(9290),l=n(249),u=n(5929),p=n(9813),f=n(2529),d=p("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var t={};return r[d].call(t)!==t}))?r={}:f&&(r=c(r)),s(r[d])||u(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},2077:function(t){t.exports={}},623:function(t,e,n){var r=n(3057);t.exports=function(t){return r(t.length)}},5331:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},6132:function(t,e,n){var r,o,i,a,s,c,l,u,p=n(1899),f=n(6843),d=n(9677).f,h=n(2941).set,v=n(2749),y=n(4470),m=n(8045),g=n(6049),_=p.MutationObserver||p.WebKitMutationObserver,b=p.document,w=p.process,E=p.Promise,x=d(p,"queueMicrotask"),T=x&&x.value;T||(r=function(){var t,e;for(g&&(t=w.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},v||g||m||!_||!b?!y&&E&&E.resolve?((l=E.resolve(void 0)).constructor=E,u=f(l.then,l),a=function(){u(r)}):g?a=function(){w.nextTick(r)}:(h=f(h,p),a=function(){h(r)}):(s=!0,c=b.createTextNode(""),new _(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),t.exports=T||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},5366:function(t,e,n){var r=n(2497);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},2497:function(t,e,n){var r=n(3385),o=n(5981);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8019:function(t,e,n){var r=n(1899),o=n(7475),i=n(1302),a=r.WeakMap;t.exports=o(a)&&/native code/.test(i(a))},9520:function(t,e,n){"use strict";var r=n(4883),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},4649:function(t,e,n){var r=n(5803);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},344:function(t,e,n){var r=n(685),o=TypeError;t.exports=function(t){if(r(t))throw o("The method doesn't accept regular expressions");return t}},4018:function(t,e,n){var r=n(1899),o=n(5981),i=n(5329),a=n(5803),s=n(4853).trim,c=n(3483),l=i("".charAt),u=r.parseFloat,p=r.Symbol,f=p&&p.iterator,d=1/u(c+"-0")!=-1/0||f&&!o((function(){u(Object(f))}));t.exports=d?function(t){var e=s(a(t)),n=u(e);return 0===n&&"-"==l(e,0)?-0:n}:u},9806:function(t,e,n){var r=n(1899),o=n(5981),i=n(5329),a=n(5803),s=n(4853).trim,c=n(3483),l=r.parseInt,u=r.Symbol,p=u&&u.iterator,f=/^[+-]?0x/i,d=i(f.exec),h=8!==l(c+"08")||22!==l(c+"0x16")||p&&!o((function(){l(Object(p))}));t.exports=h?function(t,e){var n=s(a(t));return l(n,e>>>0||(d(f,n)?16:10))}:l},4420:function(t,e,n){"use strict";var r=n(5746),o=n(5329),i=n(8834),a=n(5981),s=n(4771),c=n(7857),l=n(6760),u=n(9678),p=n(7026),f=Object.assign,d=Object.defineProperty,h=o([].concat);t.exports=!f||a((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||s(f({},e)).join("")!=o}))?function(t,e){for(var n=u(t),o=arguments.length,a=1,f=c.f,d=l.f;o>a;)for(var v,y=p(arguments[a++]),m=f?h(s(y),f(y)):s(y),g=m.length,_=0;g>_;)v=m[_++],r&&!i(d,y,v)||(n[v]=y[v]);return n}:f},9290:function(t,e,n){var r,o=n(6059),i=n(9938),a=n(6759),s=n(7748),c=n(5463),l=n(1333),u=n(4262)("IE_PROTO"),p=function(){},f=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?d(r):((e=l("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(r);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[u]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[u]=t):n=h(),void 0===e?n:i.f(n,e)}},9938:function(t,e,n){var r=n(5746),o=n(3937),i=n(5988),a=n(6059),s=n(4529),c=n(4771);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),o=c(e),l=o.length,u=0;l>u;)i.f(t,n=o[u++],r[n]);return t}},5988:function(t,e,n){var r=n(5746),o=n(2840),i=n(3937),a=n(6059),s=n(3894),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor;e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=u(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},9677:function(t,e,n){var r=n(5746),o=n(8834),i=n(6760),a=n(1887),s=n(4529),c=n(3894),l=n(953),u=n(2840),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=s(t),e=c(e),u)try{return p(t,e)}catch(t){}if(l(t,e))return a(!o(i.f,t,e),t[e])}},684:function(t,e,n){var r=n(2532),o=n(4529),i=n(946).f,a=n(5790),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(o(t))}},946:function(t,e,n){var r=n(5629),o=n(6759).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},7857:function(t,e){e.f=Object.getOwnPropertySymbols},249:function(t,e,n){var r=n(953),o=n(7475),i=n(9678),a=n(4262),s=n(4160),c=a("IE_PROTO"),l=Object,u=l.prototype;t.exports=s?l.getPrototypeOf:function(t){var e=i(t);if(r(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof l?u:null}},1584:function(t,e,n){var r=n(5981),o=n(941),i=n(2532),a=n(7135),s=Object.isExtensible,c=r((function(){s(1)}));t.exports=c||a?function(t){return!!o(t)&&(!a||"ArrayBuffer"!=i(t))&&(!s||s(t))}:s},7046:function(t,e,n){var r=n(5329);t.exports=r({}.isPrototypeOf)},5629:function(t,e,n){var r=n(5329),o=n(953),i=n(4529),a=n(1692).indexOf,s=n(7748),c=r([].push);t.exports=function(t,e){var n,r=i(t),l=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&c(u,n);for(;e.length>l;)o(r,n=e[l++])&&(~a(u,n)||c(u,n));return u}},4771:function(t,e,n){var r=n(5629),o=n(6759);t.exports=Object.keys||function(t){return r(t,o)}},6760:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},8929:function(t,e,n){var r=n(5329),o=n(6059),i=n(1851);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},8810:function(t,e,n){var r=n(5746),o=n(5329),i=n(4771),a=n(4529),s=o(n(6760).f),c=o([].push),l=function(t){return function(e){for(var n,o=a(e),l=i(o),u=l.length,p=0,f=[];u>p;)n=l[p++],r&&!s(o,n)||c(f,t?[n,o[n]]:o[n]);return f}};t.exports={entries:l(!0),values:l(!1)}},5623:function(t,e,n){"use strict";var r=n(2885),o=n(9697);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},9811:function(t,e,n){var r=n(8834),o=n(7475),i=n(941),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},1136:function(t,e,n){var r=n(626),o=n(5329),i=n(946),a=n(7857),s=n(6059),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?c(e,n(t)):e}},4058:function(t){t.exports={}},2:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},7742:function(t,e,n){var r=n(1899),o=n(6991),i=n(7475),a=n(7252),s=n(1302),c=n(9813),l=n(3321),u=n(2529),p=n(3385),f=o&&o.prototype,d=c("species"),h=!1,v=i(r.PromiseRejectionEvent),y=a("Promise",(function(){var t=s(o),e=t!==String(o);if(!e&&66===p)return!0;if(u&&(!f.catch||!f.finally))return!0;if(p>=51&&/native code/.test(t))return!1;var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[d]=r,!(h=n.then((function(){}))instanceof r)||!e&&l&&!v}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:h}},6991:function(t,e,n){var r=n(1899);t.exports=r.Promise},6584:function(t,e,n){var r=n(6059),o=n(941),i=n(9520);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},1542:function(t,e,n){var r=n(6991),o=n(1385),i=n(7742).CONSTRUCTOR;t.exports=i||!o((function(t){r.all(t).then(void 0,(function(){}))}))},8397:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},8219:function(t){var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},7620:function(t,e,n){var r=n(1899),o=n(9730),i=n(7475),a=n(2861),s=n(3765),c=n(8348),l=/MSIE .\./.test(a),u=r.Function,p=function(t){return l?function(e,n){var r=c(arguments.length,1)>2,a=i(e)?e:u(e),l=r?s(arguments,2):void 0;return t(r?function(){o(a,this,l)}:a,n)}:t};t.exports={setTimeout:p(r.setTimeout),setInterval:p(r.setInterval)}},4431:function(t,e,n){"use strict";var r=n(626),o=n(5988),i=n(9813),a=n(5746),s=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},904:function(t,e,n){var r=n(2885),o=n(5988).f,i=n(2029),a=n(953),s=n(5623),c=n(9813)("toStringTag");t.exports=function(t,e,n,l){if(t){var u=n?t:t.prototype;a(u,c)||o(u,c,{configurable:!0,value:e}),l&&!r&&i(u,"toString",s)}}},4262:function(t,e,n){var r=n(8726),o=n(9418),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},3030:function(t,e,n){var r=n(1899),o=n(5609),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},8726:function(t,e,n){var r=n(2529),o=n(3030);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.8",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE",source:"https://github.com/zloirock/core-js"})},487:function(t,e,n){var r=n(6059),o=n(174),i=n(9813)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},4620:function(t,e,n){var r=n(5329),o=n(2435),i=n(5803),a=n(8219),s=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(t){return function(e,n){var r,u,p=i(a(e)),f=o(n),d=p.length;return f<0||f>=d?t?"":void 0:(r=c(p,f))<55296||r>56319||f+1===d||(u=c(p,f+1))<56320||u>57343?t?s(p,f):r:t?l(p,f,f+2):u-56320+(r-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},3093:function(t,e,n){var r=n(9417).PROPER,o=n(5981),i=n(3483);t.exports=function(t){return o((function(){return!!i[t]()||"​…᠎"!=="​…᠎"[t]()||r&&i[t].name!==t}))}},4853:function(t,e,n){var r=n(5329),o=n(8219),i=n(5803),a=n(3483),s=r("".replace),c="["+a+"]",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),p=function(t){return function(e){var n=i(o(e));return 1&t&&(n=s(n,l,"")),2&t&&(n=s(n,u,"")),n}};t.exports={start:p(1),end:p(2),trim:p(3)}},9630:function(t,e,n){var r=n(8834),o=n(626),i=n(9813),a=n(5929);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=i("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1})}},2941:function(t,e,n){var r,o,i,a,s=n(1899),c=n(9730),l=n(6843),u=n(7475),p=n(953),f=n(5981),d=n(5463),h=n(3765),v=n(1333),y=n(8348),m=n(2749),g=n(6049),_=s.setImmediate,b=s.clearImmediate,w=s.process,E=s.Dispatch,x=s.Function,T=s.MessageChannel,S=s.String,O=0,A={};try{r=s.location}catch(t){}var C=function(t){if(p(A,t)){var e=A[t];delete A[t],e()}},N=function(t){return function(){C(t)}},I=function(t){C(t.data)},j=function(t){s.postMessage(S(t),r.protocol+"//"+r.host)};_&&b||(_=function(t){y(arguments.length,1);var e=u(t)?t:x(t),n=h(arguments,1);return A[++O]=function(){c(e,void 0,n)},o(O),O},b=function(t){delete A[t]},g?o=function(t){w.nextTick(N(t))}:E&&E.now?o=function(t){E.now(N(t))}:T&&!m?(a=(i=new T).port2,i.port1.onmessage=I,o=l(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(j)?(o=j,s.addEventListener("message",I,!1)):o="onreadystatechange"in v("script")?function(t){d.appendChild(v("script")).onreadystatechange=function(){d.removeChild(this),C(t)}}:function(t){setTimeout(N(t),0)}),t.exports={set:_,clear:b}},9413:function(t,e,n){var r=n(2435),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},4529:function(t,e,n){var r=n(7026),o=n(8219);t.exports=function(t){return r(o(t))}},2435:function(t,e,n){var r=n(5331);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},3057:function(t,e,n){var r=n(2435),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},9678:function(t,e,n){var r=n(8219),o=Object;t.exports=function(t){return o(r(t))}},6935:function(t,e,n){var r=n(8834),o=n(941),i=n(6664),a=n(4229),s=n(9811),c=n(9813),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,c=a(t,u);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!o(n)||i(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},3894:function(t,e,n){var r=n(6935),o=n(6664);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},2885:function(t,e,n){var r={};r[n(9813)("toStringTag")]="z",t.exports="[object z]"===String(r)},5803:function(t,e,n){var r=n(9697),o=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},9826:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9418:function(t,e,n){var r=n(5329),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},2302:function(t,e,n){var r=n(2497);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3937:function(t,e,n){var r=n(5746),o=n(5981);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8348:function(t){var e=TypeError;t.exports=function(t,n){if(t<n)throw e("Not enough arguments");return t}},1477:function(t,e,n){var r=n(9813);e.f=r},9813:function(t,e,n){var r=n(1899),o=n(8726),i=n(953),a=n(9418),s=n(2497),c=n(2302),l=o("wks"),u=r.Symbol,p=u&&u.for,f=c?u:u&&u.withoutSetter||a;t.exports=function(t){if(!i(l,t)||!s&&"string"!=typeof l[t]){var e="Symbol."+t;s&&i(u,t)?l[t]=u[t]:l[t]=c&&p?p(e):f(e)}return l[t]}},3483:function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},9812:function(t,e,n){"use strict";var r=n(6887),o=n(7046),i=n(249),a=n(8929),s=n(3489),c=n(9290),l=n(2029),u=n(1887),p=n(8694),f=n(3794),d=n(3091),h=n(4649),v=n(9813),y=n(8780),m=v("toStringTag"),g=Error,_=[].push,b=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,s=o(w,this);a?n=a(new g,s?i(this):w):(n=s?this:c(w),l(n,m,"Error")),void 0!==e&&l(n,"message",h(e)),y&&l(n,"stack",p(n.stack,1)),f(n,r);var u=[];return d(t,_,{that:u}),l(n,"errors",u),n};a?a(b,g):s(b,g,{name:!0});var w=b.prototype=c(g.prototype,{constructor:u(1,b),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:b})},7627:function(t,e,n){n(9812)},5906:function(t,e,n){"use strict";var r=n(6887),o=n(5981),i=n(1052),a=n(941),s=n(9678),c=n(623),l=n(6796),u=n(5449),p=n(4692),f=n(568),d=n(9813),h=n(3385),v=d("isConcatSpreadable"),y=h>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),m=f("concat"),g=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,arity:1,forced:!y||!m},{concat:function(t){var e,n,r,o,i,a=s(this),f=p(a,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(g(i=-1===e?a:arguments[e]))for(o=c(i),l(d+o),n=0;n<o;n++,d++)n in i&&u(f,d,i[n]);else l(d+1),u(f,d++,i);return f.length=d,f}})},8851:function(t,e,n){"use strict";var r=n(6887),o=n(3610).every;r({target:"Array",proto:!0,forced:!n(4194)("every")},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},290:function(t,e,n){var r=n(6887),o=n(1860),i=n(8479);r({target:"Array",proto:!0},{fill:o}),i("fill")},1501:function(t,e,n){"use strict";var r=n(6887),o=n(3610).filter;r({target:"Array",proto:!0,forced:!n(568)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},4929:function(t,e,n){"use strict";var r=n(6887),o=n(3610).findIndex,i=n(8479),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},833:function(t,e,n){"use strict";var r=n(6887),o=n(3610).find,i=n(8479),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},4944:function(t,e,n){"use strict";var r=n(6887),o=n(3092),i=n(9678),a=n(623),s=n(2435),c=n(4692);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=i(this),n=a(e),r=c(e,0);return r.length=o(r,e,e,n,0,void 0===t?1:s(t)),r}})},2437:function(t,e,n){"use strict";var r=n(6887),o=n(6837);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},3242:function(t,e,n){var r=n(6887),o=n(1354);r({target:"Array",stat:!0,forced:!n(1385)((function(t){Array.from(t)}))},{from:o})},7690:function(t,e,n){"use strict";var r=n(6887),o=n(1692).includes,i=n(5981),a=n(8479);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},9076:function(t,e,n){"use strict";var r=n(6887),o=n(5329),i=n(1692).indexOf,a=n(4194),s=o([].indexOf),c=!!s&&1/s([1],1,-0)<0,l=a("indexOf");r({target:"Array",proto:!0,forced:c||!l},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return c?s(this,t,e)||0:i(this,t,e)}})},2737:function(t,e,n){n(6887)({target:"Array",stat:!0},{isArray:n(1052)})},6274:function(t,e,n){"use strict";var r=n(4529),o=n(8479),i=n(2077),a=n(5402),s=n(5988).f,c=n(7771),l=n(2529),u=n(5746),p="Array Iterator",f=a.set,d=a.getterFor(p);t.exports=c(Array,"Array",(function(t,e){f(this,{type:p,target:r(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&u&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(t){}},8787:function(t,e,n){"use strict";var r=n(6887),o=n(3610).map;r({target:"Array",proto:!0,forced:!n(568)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},1876:function(t,e,n){"use strict";var r=n(6887),o=n(6499).left,i=n(4194),a=n(3385),s=n(6049);r({target:"Array",proto:!0,forced:!i("reduce")||!s&&a>79&&a<83},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},1490:function(t,e,n){"use strict";var r=n(6887),o=n(5329),i=n(1052),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},186:function(t,e,n){"use strict";var r=n(6887),o=n(1052),i=n(4284),a=n(941),s=n(9413),c=n(623),l=n(4529),u=n(5449),p=n(9813),f=n(568),d=n(3765),h=f("slice"),v=p("species"),y=Array,m=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,p,f=l(this),h=c(f),g=s(t,h),_=s(void 0===e?h:e,h);if(o(f)&&(n=f.constructor,(i(n)&&(n===y||o(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===y||void 0===n))return d(f,g,_);for(r=new(void 0===n?y:n)(m(_-g,0)),p=0;g<_;g++,p++)g in f&&u(r,p,f[g]);return r.length=p,r}})},6026:function(t,e,n){"use strict";var r=n(6887),o=n(3610).some;r({target:"Array",proto:!0,forced:!n(4194)("some")},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},4115:function(t,e,n){"use strict";var r=n(6887),o=n(5329),i=n(4883),a=n(9678),s=n(623),c=n(5863),l=n(5803),u=n(5981),p=n(1388),f=n(4194),d=n(4342),h=n(7797),v=n(3385),y=n(8938),m=[],g=o(m.sort),_=o(m.push),b=u((function(){m.sort(void 0)})),w=u((function(){m.sort(null)})),E=f("sort"),x=!u((function(){if(v)return v<70;if(!(d&&d>3)){if(h)return!0;if(y)return y<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:e+r,v:n})}for(m.sort((function(t,e){return e.v-t.v})),r=0;r<m.length;r++)e=m[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:b||!w||!E||!x},{sort:function(t){void 0!==t&&i(t);var e=a(this);if(x)return void 0===t?g(e):g(e,t);var n,r,o=[],u=s(e);for(r=0;r<u;r++)r in e&&_(o,e[r]);for(p(o,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:l(e)>l(n)?1:-1}}(t)),n=o.length,r=0;r<n;)e[r]=o[r++];for(;r<u;)c(e,r++);return e}})},1107:function(t,e,n){n(8479)("flat")},5160:function(t,e,n){var r=n(6887),o=n(5329),i=Date,a=o(i.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return a(new i)}})},3381:function(t,e,n){var r=n(6887),o=n(8308);r({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},2619:function(t,e,n){var r=n(6887),o=n(626),i=n(9730),a=n(8834),s=n(5329),c=n(5981),l=n(1052),u=n(7475),p=n(941),f=n(6664),d=n(3765),h=n(2497),v=o("JSON","stringify"),y=s(/./.exec),m=s("".charAt),g=s("".charCodeAt),_=s("".replace),b=s(1..toString),w=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,T=!h||c((function(){var t=o("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),S=c((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),O=function(t,e){var n=d(arguments),r=e;if((p(e)||void 0!==t)&&!f(t))return l(e)||(e=function(t,e){if(u(r)&&(e=a(r,this,t,e)),!f(e))return e}),n[1]=e,i(v,null,n)},A=function(t,e,n){var r=m(n,e-1),o=m(n,e+1);return y(E,t)&&!y(x,o)||y(x,t)&&!y(E,r)?"\\u"+b(g(t,0),16):t};v&&r({target:"JSON",stat:!0,arity:3,forced:T||S},{stringify:function(t,e,n){var r=d(arguments),o=i(T?O:v,null,r);return S&&"string"==typeof o?_(o,w,A):o}})},9120:function(t,e,n){var r=n(1899);n(904)(r.JSON,"JSON",!0)},5327:function(){},8103:function(t,e,n){n(6887)({target:"Math",stat:!0},{trunc:n(5331)})},9221:function(t,e,n){var r=n(6887),o=n(4420);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},3882:function(t,e,n){n(6887)({target:"Object",stat:!0,sham:!n(5746)},{create:n(9290)})},4979:function(t,e,n){var r=n(6887),o=n(5746),i=n(9938).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},6450:function(t,e,n){var r=n(6887),o=n(5746),i=n(5988).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},1078:function(t,e,n){var r=n(6887),o=n(8810).entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},6924:function(t,e,n){var r=n(6887),o=n(5981),i=n(4529),a=n(9677).f,s=n(5746),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},8482:function(t,e,n){var r=n(6887),o=n(5746),i=n(1136),a=n(4529),s=n(9677),c=n(5449);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),o=s.f,l=i(r),u={},p=0;l.length>p;)void 0!==(n=o(r,e=l[p++]))&&c(u,e,n);return u}})},9816:function(t,e,n){var r=n(6887),o=n(5981),i=n(684).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},7144:function(t,e,n){var r=n(6887),o=n(2497),i=n(5981),a=n(7857),s=n(9678);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},7405:function(t,e,n){var r=n(6887),o=n(5981),i=n(9678),a=n(249),s=n(4160);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(i(t))}})},1724:function(t,e,n){var r=n(6887),o=n(9678),i=n(4771);r({target:"Object",stat:!0,forced:n(5981)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},5967:function(){},6614:function(t,e,n){var r=n(6887),o=n(8810).values;r({target:"Object",stat:!0},{values:function(t){return o(t)}})},9718:function(t,e,n){var r=n(6887),o=n(4018);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},4038:function(t,e,n){var r=n(6887),o=n(9806);r({global:!0,forced:parseInt!=o},{parseInt:o})},4560:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(4883),a=n(9520),s=n(2),c=n(3091);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=a.f(e),r=n.resolve,l=n.reject,u=s((function(){var n=i(e.resolve),a=[],s=0,l=1;c(t,(function(t){var i=s++,c=!1;l++,o(n,e,t).then((function(t){c||(c=!0,a[i]={status:"fulfilled",value:t},--l||r(a))}),(function(t){c||(c=!0,a[i]={status:"rejected",reason:t},--l||r(a))}))})),--l||r(a)}));return u.error&&l(u.value),n.promise}})},6890:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(4883),a=n(9520),s=n(2),c=n(3091);r({target:"Promise",stat:!0,forced:n(1542)},{all:function(t){var e=this,n=a.f(e),r=n.resolve,l=n.reject,u=s((function(){var n=i(e.resolve),a=[],s=0,u=1;c(t,(function(t){var i=s++,c=!1;u++,o(n,e,t).then((function(t){c||(c=!0,a[i]=t,--u||r(a))}),l)})),--u||r(a)}));return u.error&&l(u.value),n.promise}})},7206:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(4883),a=n(626),s=n(9520),c=n(2),l=n(3091),u="No one promise resolved";r({target:"Promise",stat:!0},{any:function(t){var e=this,n=a("AggregateError"),r=s.f(e),p=r.resolve,f=r.reject,d=c((function(){var r=i(e.resolve),a=[],s=0,c=1,d=!1;l(t,(function(t){var i=s++,l=!1;c++,o(r,e,t).then((function(t){l||d||(d=!0,p(t))}),(function(t){l||d||(l=!0,a[i]=t,--c||f(new n(a,u)))}))})),--c||f(new n(a,u))}));return d.error&&f(d.value),r.promise}})},3376:function(t,e,n){"use strict";var r=n(6887),o=n(2529),i=n(7742).CONSTRUCTOR,a=n(6991),s=n(626),c=n(7475),l=n(5929),u=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&c(a)){var p=s("Promise").prototype.catch;u.catch!==p&&l(u,"catch",p,{unsafe:!0})}},6934:function(t,e,n){"use strict";var r,o,i,a=n(6887),s=n(2529),c=n(6049),l=n(1899),u=n(8834),p=n(5929),f=n(8929),d=n(904),h=n(4431),v=n(4883),y=n(7475),m=n(941),g=n(5743),_=n(487),b=n(2941).set,w=n(6132),E=n(4845),x=n(2),T=n(8397),S=n(5402),O=n(6991),A=n(7742),C=n(9520),N="Promise",I=A.CONSTRUCTOR,j=A.REJECTION_EVENT,R=A.SUBCLASSING,k=S.getterFor(N),P=S.set,D=O&&O.prototype,L=O,U=D,M=l.TypeError,F=l.document,B=l.process,H=C.f,z=H,$=!!(F&&F.createEvent&&l.dispatchEvent),V="unhandledrejection",q=function(t){var e;return!(!m(t)||!y(e=t.then))&&e},W=function(t,e){var n,r,o,i=e.value,a=1==e.state,s=a?t.ok:t.fail,c=t.resolve,l=t.reject,p=t.domain;try{s?(a||(2===e.rejection&&Q(e),e.rejection=1),!0===s?n=i:(p&&p.enter(),n=s(i),p&&(p.exit(),o=!0)),n===t.promise?l(M("Promise-chain cycle")):(r=q(n))?u(r,n,c,l):c(n)):l(i)}catch(t){p&&!o&&p.exit(),l(t)}},G=function(t,e){t.notified||(t.notified=!0,w((function(){for(var n,r=t.reactions;n=r.get();)W(n,t);t.notified=!1,e&&!t.rejection&&Y(t)})))},K=function(t,e,n){var r,o;$?((r=F.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},!j&&(o=l["on"+t])?o(r):t===V&&E("Unhandled promise rejection",n)},Y=function(t){u(b,l,(function(){var e,n=t.facade,r=t.value;if(J(t)&&(e=x((function(){c?B.emit("unhandledRejection",r,n):K(V,n,r)})),t.rejection=c||J(t)?2:1,e.error))throw e.value}))},J=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){u(b,l,(function(){var e=t.facade;c?B.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)}))},X=function(t,e,n){return function(r){t(e,r,n)}},Z=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,G(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw M("Promise can't be resolved itself");var r=q(e);r?w((function(){var n={done:!1};try{u(r,e,X(tt,n,t),X(Z,n,t))}catch(e){Z(n,e,t)}})):(t.value=e,t.state=1,G(t,!1))}catch(e){Z({done:!1},e,t)}}};if(I&&(U=(L=function(t){g(this,U),v(t),u(r,this);var e=k(this);try{t(X(tt,e),X(Z,e))}catch(t){Z(e,t)}}).prototype,(r=function(t){P(this,{type:N,done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:0,value:void 0})}).prototype=p(U,"then",(function(t,e){var n=k(this),r=H(_(this,L));return n.parent=!0,r.ok=!y(t)||t,r.fail=y(e)&&e,r.domain=c?B.domain:void 0,0==n.state?n.reactions.add(r):w((function(){W(r,n)})),r.promise})),o=function(){var t=new r,e=k(t);this.promise=t,this.resolve=X(tt,e),this.reject=X(Z,e)},C.f=H=function(t){return t===L||void 0===t?new o(t):z(t)},!s&&y(O)&&D!==Object.prototype)){i=D.then,R||p(D,"then",(function(t,e){var n=this;return new L((function(t,e){u(i,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete D.constructor}catch(t){}f&&f(D,U)}a({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:L}),d(L,N,!1,!0),h(N)},4349:function(t,e,n){"use strict";var r=n(6887),o=n(2529),i=n(6991),a=n(5981),s=n(626),c=n(7475),l=n(487),u=n(6584),p=n(5929),f=i&&i.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=l(this,s("Promise")),n=c(t);return this.then(n?function(n){return u(e,t()).then((function(){return n}))}:t,n?function(n){return u(e,t()).then((function(){throw n}))}:t)}}),!o&&c(i)){var d=s("Promise").prototype.finally;f.finally!==d&&p(f,"finally",d,{unsafe:!0})}},8881:function(t,e,n){n(6934),n(6890),n(3376),n(5921),n(4069),n(4482)},5921:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(4883),a=n(9520),s=n(2),c=n(3091);r({target:"Promise",stat:!0,forced:n(1542)},{race:function(t){var e=this,n=a.f(e),r=n.reject,l=s((function(){var a=i(e.resolve);c(t,(function(t){o(a,e,t).then(n.resolve,r)}))}));return l.error&&r(l.value),n.promise}})},4069:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(9520);r({target:"Promise",stat:!0,forced:n(7742).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return o(e.reject,void 0,t),e.promise}})},4482:function(t,e,n){"use strict";var r=n(6887),o=n(626),i=n(2529),a=n(6991),s=n(7742).CONSTRUCTOR,c=n(6584),l=o("Promise"),u=i&&!s;r({target:"Promise",stat:!0,forced:i||s},{resolve:function(t){return c(u&&this===l?a:this,t)}})},1502:function(){},2266:function(t,e,n){"use strict";n(4683)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(5616))},9008:function(t,e,n){n(2266)},1035:function(t,e,n){"use strict";var r=n(6887),o=n(5329),i=n(344),a=n(8219),s=n(5803),c=n(7772),l=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~l(s(a(this)),s(i(t)),arguments.length>1?arguments[1]:void 0)}})},7971:function(t,e,n){"use strict";var r=n(4620).charAt,o=n(5803),i=n(5402),a=n(7771),s="String Iterator",c=i.set,l=i.getterFor(s);a(String,"String",(function(t){c(this,{type:s,string:o(t),index:0})}),(function(){var t,e=l(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},7398:function(t,e,n){"use strict";var r=n(6887),o=n(4853).trim;r({target:"String",proto:!0,forced:n(3093)("trim")},{trim:function(){return o(this)}})},8555:function(t,e,n){n(6349)("asyncIterator")},8616:function(t,e,n){"use strict";var r=n(6887),o=n(1899),i=n(8834),a=n(5329),s=n(2529),c=n(5746),l=n(2497),u=n(5981),p=n(953),f=n(7046),d=n(6059),h=n(4529),v=n(3894),y=n(5803),m=n(1887),g=n(9290),_=n(4771),b=n(946),w=n(684),E=n(7857),x=n(9677),T=n(5988),S=n(9938),O=n(6760),A=n(5929),C=n(8726),N=n(4262),I=n(7748),j=n(9418),R=n(9813),k=n(1477),P=n(6349),D=n(9630),L=n(904),U=n(5402),M=n(3610).forEach,F=N("hidden"),B="Symbol",H=U.set,z=U.getterFor(B),$=Object.prototype,V=o.Symbol,q=V&&V.prototype,W=o.TypeError,G=o.QObject,K=x.f,Y=T.f,J=w.f,Q=O.f,X=a([].push),Z=C("symbols"),tt=C("op-symbols"),et=C("wks"),nt=!G||!G.prototype||!G.prototype.findChild,rt=c&&u((function(){return 7!=g(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=K($,e);r&&delete $[e],Y(t,e,n),r&&t!==$&&Y($,e,r)}:Y,ot=function(t,e){var n=Z[t]=g(q);return H(n,{type:B,tag:t,description:e}),c||(n.description=e),n},it=function(t,e,n){t===$&&it(tt,e,n),d(t);var r=v(e);return d(n),p(Z,r)?(n.enumerable?(p(t,F)&&t[F][r]&&(t[F][r]=!1),n=g(n,{enumerable:m(0,!1)})):(p(t,F)||Y(t,F,m(1,{})),t[F][r]=!0),rt(t,r,n)):Y(t,r,n)},at=function(t,e){d(t);var n=h(e),r=_(n).concat(ut(n));return M(r,(function(e){c&&!i(st,n,e)||it(t,e,n[e])})),t},st=function(t){var e=v(t),n=i(Q,this,e);return!(this===$&&p(Z,e)&&!p(tt,e))&&(!(n||!p(this,e)||!p(Z,e)||p(this,F)&&this[F][e])||n)},ct=function(t,e){var n=h(t),r=v(e);if(n!==$||!p(Z,r)||p(tt,r)){var o=K(n,r);return!o||!p(Z,r)||p(n,F)&&n[F][r]||(o.enumerable=!0),o}},lt=function(t){var e=J(h(t)),n=[];return M(e,(function(t){p(Z,t)||p(I,t)||X(n,t)})),n},ut=function(t){var e=t===$,n=J(e?tt:h(t)),r=[];return M(n,(function(t){!p(Z,t)||e&&!p($,t)||X(r,Z[t])})),r};l||(V=function(){if(f(q,this))throw W("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=j(t),n=function(t){this===$&&i(n,tt,t),p(this,F)&&p(this[F],e)&&(this[F][e]=!1),rt(this,e,m(1,t))};return c&&nt&&rt($,e,{configurable:!0,set:n}),ot(e,t)},A(q=V.prototype,"toString",(function(){return z(this).tag})),A(V,"withoutSetter",(function(t){return ot(j(t),t)})),O.f=st,T.f=it,S.f=at,x.f=ct,b.f=w.f=lt,E.f=ut,k.f=function(t){return ot(R(t),t)},c&&(Y(q,"description",{configurable:!0,get:function(){return z(this).description}}),s||A($,"propertyIsEnumerable",st,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),M(_(et),(function(t){P(t)})),r({target:B,stat:!0,forced:!l},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(t,e){return void 0===e?g(t):at(g(t),e)},defineProperty:it,defineProperties:at,getOwnPropertyDescriptor:ct}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:lt}),D(),L(V,B),I[F]=!0},2615:function(){},4523:function(t,e,n){var r=n(6887),o=n(626),i=n(953),a=n(5803),s=n(8726),c=n(5366),l=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=a(t);if(i(l,e))return l[e];var n=o("Symbol")(e);return l[e]=n,u[n]=e,n}})},1732:function(t,e,n){n(6349)("hasInstance")},5903:function(t,e,n){n(6349)("isConcatSpreadable")},1825:function(t,e,n){n(6349)("iterator")},5824:function(t,e,n){n(8616),n(4523),n(8608),n(2619),n(7144)},8608:function(t,e,n){var r=n(6887),o=n(953),i=n(6664),a=n(9826),s=n(8726),c=n(5366),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!i(t))throw TypeError(a(t)+" is not a symbol");if(o(l,t))return l[t]}})},5915:function(t,e,n){n(6349)("matchAll")},8394:function(t,e,n){n(6349)("match")},1437:function(t,e,n){n(6349)("replace")},9791:function(t,e,n){n(6349)("search")},9911:function(t,e,n){n(6349)("species")},4315:function(t,e,n){n(6349)("split")},3131:function(t,e,n){var r=n(6349),o=n(9630);r("toPrimitive"),o()},4714:function(t,e,n){var r=n(626),o=n(6349),i=n(904);o("toStringTag"),i(r("Symbol"),"Symbol")},659:function(t,e,n){n(6349)("unscopables")},7634:function(t,e,n){n(6274);var r=n(3281),o=n(1899),i=n(9697),a=n(2029),s=n(2077),c=n(9813)("toStringTag");for(var l in r){var u=o[l],p=u&&u.prototype;p&&i(p)!==c&&a(p,c,l),s[l]=s.Array}},9229:function(t,e,n){var r=n(6887),o=n(1899),i=n(7620).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},7749:function(t,e,n){var r=n(6887),o=n(1899),i=n(7620).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},1249:function(t,e,n){n(9229),n(7749)},7698:function(t,e,n){var r=n(4493);t.exports=r},3363:function(t,e,n){var r=n(4034);t.exports=r},9216:function(t,e,n){var r=n(9324);t.exports=r},7784:function(t,e,n){var r=n(1103);t.exports=r},6243:function(t,e,n){var r=n(3830);n(7634),t.exports=r},8196:function(t,e,n){var r=n(6246);t.exports=r},8065:function(t,e,n){var r=n(6043);t.exports=r},9455:function(t,e,n){var r=n(3160);t.exports=r},9743:function(t,e,n){var r=n(446);t.exports=r},1955:function(t,e,n){var r=n(2480);t.exports=r},6064:function(t,e,n){var r=n(7147);t.exports=r},1577:function(t,e,n){var r=n(2236);t.exports=r},4913:function(t,e,n){var r=n(8098);t.exports=r},6279:function(t,e,n){n(7634);var r=n(9697),o=n(953),i=n(7046),a=n(9216),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===s||i(s,t)&&e===s.forEach||o(c,r(t))?a:e}},3778:function(t,e,n){var r=n(8557);t.exports=r},9373:function(t,e,n){var r=n(4570);t.exports=r},1798:function(t,e,n){var r=n(8287);t.exports=r},2527:function(t,e,n){var r=n(8025);t.exports=r},8427:function(t,e,n){var r=n(1060);t.exports=r},2073:function(t,e,n){var r=n(9601);t.exports=r},5286:function(t,e,n){var r=n(8299);t.exports=r},2856:function(t,e,n){var r=n(9355);t.exports=r},6361:function(t,e,n){var r=n(2774);t.exports=r},8933:function(t,e,n){var r=n(4426);t.exports=r},5838:function(t,e,n){var r=n(9179);t.exports=r},3383:function(t,e,n){var r=n(5999);t.exports=r},4471:function(t,e,n){var r=n(5254);t.exports=r},7396:function(t,e,n){var r=n(7702);t.exports=r},1910:function(t,e,n){var r=n(8171);t.exports=r},6209:function(t,e,n){var r=n(3081);t.exports=r},9427:function(t,e,n){var r=n(286);t.exports=r},2857:function(t,e,n){var r=n(2766);t.exports=r},4477:function(t,e,n){var r=n(3288);t.exports=r},9534:function(t,e,n){var r=n(498);t.exports=r},6507:function(t,e,n){var r=n(3966);t.exports=r},3059:function(t,e,n){var r=n(8494);t.exports=r},7795:function(t,e,n){var r=n(8430);t.exports=r},6877:function(t,e,n){var r=n(7579);t.exports=r},4888:function(t,e,n){var r=n(8524);t.exports=r},7460:function(t,e,n){var r=n(2956);n(7634),t.exports=r},3474:function(t,e,n){n(1249);var r=n(4058);t.exports=r.setInterval},7989:function(t,e,n){n(1249);var r=n(4058);t.exports=r.setTimeout},5519:function(t,e,n){var r=n(6998);n(7634),t.exports=r},2547:function(t,e,n){var r=n(7473);n(7634),t.exports=r},6509:function(t,e,n){var r=n(4227);n(7634),t.exports=r},4289:function(t,e,n){"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,c=n(1044)(),l=s&&c,u=function(t,e,n,r){var o;(!(e in t)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(l?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},p=function(t,e){var n=arguments.length>2?arguments[2]:{},i=r(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var s=0;s<i.length;s+=1)u(t,i[s],e[i[s]],n[i[s]])};p.supportsDescriptors=!!l,t.exports=p},4445:function(t){t.exports=a,a.default=a,a.stable=u,a.stableStringify=u;var e="[...]",n="[Circular]",r=[],o=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(t,e,n,a){var s;void 0===a&&(a=i()),c(t,"",0,[],void 0,0,a);try{s=0===o.length?JSON.stringify(t,e,n):JSON.stringify(t,f(e),n)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var l=r.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return s}function s(t,e,n,i){var a=Object.getOwnPropertyDescriptor(i,n);void 0!==a.get?a.configurable?(Object.defineProperty(i,n,{value:t}),r.push([i,n,e,a])):o.push([e,n,t]):(i[n]=t,r.push([i,n,e]))}function c(t,r,o,i,a,l,u){var p;if(l+=1,"object"==typeof t&&null!==t){for(p=0;p<i.length;p++)if(i[p]===t)return void s(n,t,r,a);if(void 0!==u.depthLimit&&l>u.depthLimit)return void s(e,t,r,a);if(void 0!==u.edgesLimit&&o+1>u.edgesLimit)return void s(e,t,r,a);if(i.push(t),Array.isArray(t))for(p=0;p<t.length;p++)c(t[p],p,p,i,t,l,u);else{var f=Object.keys(t);for(p=0;p<f.length;p++){var d=f[p];c(t[d],d,p,i,t,l,u)}}i.pop()}}function l(t,e){return t<e?-1:t>e?1:0}function u(t,e,n,a){void 0===a&&(a=i());var s,c=p(t,"",0,[],void 0,0,a)||t;try{s=0===o.length?JSON.stringify(c,e,n):JSON.stringify(c,f(e),n)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var l=r.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return s}function p(t,o,i,a,c,u,f){var d;if(u+=1,"object"==typeof t&&null!==t){for(d=0;d<a.length;d++)if(a[d]===t)return void s(n,t,o,c);try{if("function"==typeof t.toJSON)return}catch(t){return}if(void 0!==f.depthLimit&&u>f.depthLimit)return void s(e,t,o,c);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void s(e,t,o,c);if(a.push(t),Array.isArray(t))for(d=0;d<t.length;d++)p(t[d],d,d,a,t,u,f);else{var h={},v=Object.keys(t).sort(l);for(d=0;d<v.length;d++){var y=v[d];p(t[y],y,d,a,t,u,f),h[y]=t[y]}if(void 0===c)return h;r.push([c,o,t]),c[o]=h}a.pop()}}function f(t){return t=void 0!==t?t:function(t,e){return e},function(e,n){if(o.length>0)for(var r=0;r<o.length;r++){var i=o[r];if(i[1]===e&&i[0]===n){n=i[2],o.splice(r,1);break}}return t.call(this,e,n)}}},7648:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(e+i);for(var a,s=n.call(arguments,1),c=function(){if(this instanceof a){var e=i.apply(this,s.concat(n.call(arguments)));return Object(e)===e?e:this}return i.apply(t,s.concat(n.call(arguments)))},l=Math.max(0,i.length-s.length),u=[],p=0;p<l;p++)u.push("$"+p);if(a=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var f=function(){};f.prototype=i.prototype,a.prototype=new f,f.prototype=null}return a}},8612:function(t,e,n){"use strict";var r=n(7648);t.exports=Function.prototype.bind||r},210:function(t,e,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(t){c=null}var l=function(){throw new a},u=c?function(){try{return l}catch(t){try{return c(arguments,"callee").get}catch(t){return l}}}():l,p=n(1405)(),f=Object.getPrototypeOf||function(t){return t.__proto__},d={},h="undefined"==typeof Uint8Array?r:f(Uint8Array),v={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},y=function t(e){var n;if("%AsyncFunction%"===e)n=s("async function () {}");else if("%GeneratorFunction%"===e)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=s("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(n=f(o.prototype))}return v[e]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(8612),_=n(7642),b=g.call(Function.call,Array.prototype.concat),w=g.call(Function.apply,Array.prototype.splice),E=g.call(Function.call,String.prototype.replace),x=g.call(Function.call,String.prototype.slice),T=g.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,A=function(t){var e=x(t,0,1),n=x(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return E(t,S,(function(t,e,n,o){r[r.length]=n?E(o,O,"$1"):e||t})),r},C=function(t,e){var n,r=t;if(_(m,r)&&(r="%"+(n=m[r])[0]+"%"),_(v,r)){var i=v[r];if(i===d&&(i=y(r)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/g,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(t),r=n.length>0?n[0]:"",i=C("%"+r+"%",e),s=i.name,l=i.value,u=!1,p=i.alias;p&&(r=p[0],w(n,b([0,1],p)));for(var f=1,d=!0;f<n.length;f+=1){var h=n[f],y=x(h,0,1),m=x(h,-1);if(('"'===y||"'"===y||"`"===y||'"'===m||"'"===m||"`"===m)&&y!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(u=!0),_(v,s="%"+(r+="."+h)+"%"))l=v[s];else if(null!=l){if(!(h in l)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(c&&f+1>=n.length){var g=c(l,h);l=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else d=_(l,h),l=l[h];d&&!u&&(v[s]=l)}}return l}},1221:function(t){"use strict";"undefined"!=typeof self?t.exports=self:"undefined"!=typeof window?t.exports=window:t.exports=Function("return this")()},2503:function(t,e,n){"use strict";var r=n(4289),o=n(1221),i=n(2168),a=n(9471),s=i(),c=function(){return s};r(c,{getPolyfill:i,implementation:o,shim:a}),t.exports=c},2168:function(t,e,n){"use strict";var r=n(1221);t.exports=function(){return"object"==typeof n.g&&n.g&&n.g.Math===Math&&n.g.Array===Array?n.g:r}},9471:function(t,e,n){"use strict";var r=n(4289),o=n(2168);t.exports=function(){var t=o();if(r.supportsDescriptors){var e=Object.getOwnPropertyDescriptor(t,"globalThis");e&&(!e.configurable||!e.enumerable&&e.writable&&globalThis===t)||Object.defineProperty(t,"globalThis",{configurable:!0,enumerable:!1,value:t,writable:!0})}else"object"==typeof globalThis&&globalThis===t||(t.globalThis=t);return t}},1044:function(t,e,n){"use strict";var r=n(210)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(t){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},1405:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},5419:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7642:function(t,e,n){"use strict";var r=n(8612);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},679:function(t){t.exports=function(t){var e={},n=[];(t=t||this).on=function(n,r,o){return(e[n]=e[n]||[]).push([r,o]),t},t.off=function(r,o){r||(e={});for(var i=e[r]||n,a=i.length=o?i.length:0;a--;)o==i[a][0]&&i.splice(a,1);return t},t.emit=function(r){for(var o,i=e[r]||n,a=i.length>0?i.slice(0,i.length):i,s=0;o=a[s++];)o[0].apply(o[1],n.slice.call(arguments,1));return t}}},631:function(t,e,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,v=Object.prototype.toString,y=Function.prototype.toString,m=String.prototype.match,g=String.prototype.slice,_=String.prototype.replace,b=String.prototype.toUpperCase,w=String.prototype.toLowerCase,E=RegExp.prototype.test,x=Array.prototype.concat,T=Array.prototype.join,S=Array.prototype.slice,O=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function P(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||E.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-O(-t):O(t);if(r!==t){var o=String(r),i=g.call(e,o.length+1);return _.call(o,n,"$&_")+"."+_.call(_.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(e,n,"$&_")}var D=n(4654),L=D.custom,U=z(L)?L:null;function M(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function F(t){return _.call(String(t),/"/g,"&quot;")}function B(t){return!("[object Array]"!==q(t)||j&&"object"==typeof t&&j in t)}function H(t){return!("[object RegExp]"!==q(t)||j&&"object"==typeof t&&j in t)}function z(t){if(I)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!N)return!1;try{return N.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,o){var s=n||{};if(V(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!V(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=s.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return G(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var b=String(e);return v?P(e,b):b}if("bigint"==typeof e){var E=String(e)+"n";return v?P(e,E):E}var O=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=O&&O>0&&"object"==typeof e)return B(e)?"[Array]":"[Object]";var C,L=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=T.call(Array(t.indent+1)," ")}return{base:n,prev:T.call(Array(e+1),n)}}(s,r);if(void 0===o)o=[];else if(W(o,e)>=0)return"[Circular]";function $(e,n,i){if(n&&(o=S.call(o)).push(n),i){var a={depth:s.depth};return V(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,r+1,o)}return t(e,s,r+1,o)}if("function"==typeof e&&!H(e)){var K=function(t){if(t.name)return t.name;var e=m.call(y.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),tt=Z(e,$);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(tt.length>0?" { "+T.call(tt,", ")+" }":"")}if(z(e)){var et=I?_.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(e);return"object"!=typeof e||I?et:Y(et)}if((C=e)&&"object"==typeof C&&("undefined"!=typeof HTMLElement&&C instanceof HTMLElement||"string"==typeof C.nodeName&&"function"==typeof C.getAttribute)){for(var nt="<"+w.call(String(e.nodeName)),rt=e.attributes||[],ot=0;ot<rt.length;ot++)nt+=" "+rt[ot].name+"="+M(F(rt[ot].value),"double",s);return nt+=">",e.childNodes&&e.childNodes.length&&(nt+="..."),nt+"</"+w.call(String(e.nodeName))+">"}if(B(e)){if(0===e.length)return"[]";var it=Z(e,$);return L&&!function(t){for(var e=0;e<t.length;e++)if(W(t[e],"\n")>=0)return!1;return!0}(it)?"["+X(it,L)+"]":"[ "+T.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==q(t)||j&&"object"==typeof t&&j in t)}(e)){var at=Z(e,$);return"cause"in Error.prototype||!("cause"in e)||R.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+T.call(at,", ")+" }":"{ ["+String(e)+"] "+T.call(x.call("[cause]: "+$(e.cause),at),", ")+" }"}if("object"==typeof e&&c){if(U&&"function"==typeof e[U]&&D)return D(e,{depth:O-r});if("symbol"!==c&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var st=[];return a.call(e,(function(t,n){st.push($(n,e,!0)+" => "+$(t,e))})),Q("Map",i.call(e),st,L)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ct=[];return u.call(e,(function(t){ct.push($(t,e))})),Q("Set",l.call(e),ct,L)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return J("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return J("WeakSet");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{return d.call(t),!0}catch(t){}return!1}(e))return J("WeakRef");if(function(t){return!("[object Number]"!==q(t)||j&&"object"==typeof t&&j in t)}(e))return Y($(Number(e)));if(function(t){if(!t||"object"!=typeof t||!A)return!1;try{return A.call(t),!0}catch(t){}return!1}(e))return Y($(A.call(e)));if(function(t){return!("[object Boolean]"!==q(t)||j&&"object"==typeof t&&j in t)}(e))return Y(h.call(e));if(function(t){return!("[object String]"!==q(t)||j&&"object"==typeof t&&j in t)}(e))return Y($(String(e)));if(!function(t){return!("[object Date]"!==q(t)||j&&"object"==typeof t&&j in t)}(e)&&!H(e)){var lt=Z(e,$),ut=k?k(e)===Object.prototype:e instanceof Object||e.constructor===Object,pt=e instanceof Object?"":"null prototype",ft=!ut&&j&&Object(e)===e&&j in e?g.call(q(e),8,-1):pt?"Object":"",dt=(ut||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ft||pt?"["+T.call(x.call([],ft||[],pt||[]),": ")+"] ":"");return 0===lt.length?dt+"{}":L?dt+"{"+X(lt,L)+"}":dt+"{ "+T.call(lt,", ")+" }"}return String(e)};var $=Object.prototype.hasOwnProperty||function(t){return t in this};function V(t,e){return $.call(t,e)}function q(t){return v.call(t)}function W(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function G(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return G(g.call(t,0,e.maxStringLength),e)+r}return M(_.call(_.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",e)}function K(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+b.call(e.toString(16))}function Y(t){return"Object("+t+")"}function J(t){return t+" { ? }"}function Q(t,e,n,r){return t+" ("+e+") {"+(r?X(n,r):T.call(n,", "))+"}"}function X(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+T.call(t,","+n)+"\n"+e.prev}function Z(t,e){var n=B(t),r=[];if(n){r.length=t.length;for(var o=0;o<t.length;o++)r[o]=V(t,o)?e(t[o],t):""}var i,a="function"==typeof C?C(t):[];if(I){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in t)V(t,c)&&(n&&String(Number(c))===c&&c<t.length||I&&i["$"+c]instanceof Symbol||(E.call(/[^\w$]/,c)?r.push(e(c,t)+": "+e(t[c],t)):r.push(c+": "+e(t[c],t))));if("function"==typeof C)for(var l=0;l<a.length;l++)R.call(t,a[l])&&r.push("["+e(a[l])+"]: "+e(t[a[l]],t));return r}},8987:function(t,e,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1414),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{p(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===i.call(t),r=a(t),s=e&&"[object String]"===i.call(t),f=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=l&&n;if(s&&t.length>0&&!o.call(t,0))for(var v=0;v<t.length;++v)f.push(String(v));if(r&&t.length>0)for(var y=0;y<t.length;++y)f.push(String(y));else for(var m in t)h&&"prototype"===m||!o.call(t,m)||f.push(String(m));if(c)for(var g=function(t){if("undefined"==typeof window||!d)return p(t);try{return p(t)}catch(t){return!1}}(t),_=0;_<u.length;++_)g&&"constructor"===u[_]||!o.call(t,u[_])||f.push(u[_]);return f}}t.exports=r},2215:function(t,e,n){"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,a=i?function(t){return i(t)}:n(8987),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?s(r.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},1414:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var n=e.call(t),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),r}},7478:function(t,e,n){"use strict";var r=n(210),o=n(1924),i=n(631),a=r("%TypeError%"),s=r("%WeakMap%",!0),c=r("%Map%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),v=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+i(t))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return l(t,r)}else if(c){if(e)return f(e,r)}else if(n)return function(t,e){var n=v(t,e);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return p(t,r)}else if(c){if(e)return h(e,r)}else if(n)return function(t,e){return!!v(t,e)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new s),u(t,r,o)):c?(e||(e=new c),d(e,r,o)):(n||(n={key:{},next:null}),function(t,e,n){var r=v(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,o))}};return r}},1839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n=t.Symbol;if("function"==typeof n)if(n.observable)e=n.observable;else{e=n.for("https://github.com/benlesh/symbol-observable");try{n.observable=e}catch(t){}}else e="@@observable";return e}},868:function(t,e,n){t.exports=n(1839)},3813:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.NO_IL=e.NO=e.MemoryStream=e.Stream=void 0;var i=n(868),a=n(2503),s=i.default(a.getPolyfill()),c={};function l(){}function u(t){for(var e=t.length,n=Array(e),r=0;r<e;++r)n[r]=t[r];return n}function p(t,e,n){try{return t.f(e)}catch(t){return n._e(t),c}}e.NO=c;var f={_n:l,_e:l,_c:l};function d(t){t._start=function(t){t.next=t._n,t.error=t._e,t.complete=t._c,this.start(t)},t._stop=t.stop}e.NO_IL=f;var h=function(){function t(t,e){this._stream=t,this._listener=e}return t.prototype.unsubscribe=function(){this._stream._remove(this._listener)},t}(),v=function(){function t(t){this._listener=t}return t.prototype.next=function(t){this._listener._n(t)},t.prototype.error=function(t){this._listener._e(t)},t.prototype.complete=function(){this._listener._c()},t}(),y=function(){function t(t){this.type="fromObservable",this.ins=t,this.active=!1}return t.prototype._start=function(t){this.out=t,this.active=!0,this._sub=this.ins.subscribe(new v(t)),this.active||this._sub.unsubscribe()},t.prototype._stop=function(){this._sub&&this._sub.unsubscribe(),this.active=!1},t}(),m=function(){function t(t){this.type="merge",this.insArr=t,this.out=c,this.ac=0}return t.prototype._start=function(t){this.out=t;var e=this.insArr,n=e.length;this.ac=n;for(var r=0;r<n;r++)e[r]._add(this)},t.prototype._stop=function(){for(var t=this.insArr,e=t.length,n=0;n<e;n++)t[n]._remove(this);this.out=c},t.prototype._n=function(t){var e=this.out;e!==c&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){if(--this.ac<=0){var t=this.out;if(t===c)return;t._c()}},t}(),g=function(){function t(t,e,n){this.i=t,this.out=e,this.p=n,n.ils.push(this)}return t.prototype._n=function(t){var e=this.p,n=this.out;if(n!==c&&e.up(t,this.i)){var r=u(e.vals);n._n(r)}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.p;t.out!==c&&0==--t.Nc&&t.out._c()},t}(),_=function(){function t(t){this.type="combine",this.insArr=t,this.out=c,this.ils=[],this.Nc=this.Nn=0,this.vals=[]}return t.prototype.up=function(t,e){var n=this.vals[e],r=this.Nn?n===c?--this.Nn:this.Nn:0;return this.vals[e]=t,0===r},t.prototype._start=function(t){this.out=t;var e=this.insArr,n=this.Nc=this.Nn=e.length,r=this.vals=new Array(n);if(0===n)t._n([]),t._c();else for(var o=0;o<n;o++)r[o]=c,e[o]._add(new g(o,t,this))},t.prototype._stop=function(){for(var t=this.insArr,e=t.length,n=this.ils,r=0;r<e;r++)t[r]._remove(n[r]);this.out=c,this.ils=[],this.vals=[]},t}(),b=function(){function t(t){this.type="fromArray",this.a=t}return t.prototype._start=function(t){for(var e=this.a,n=0,r=e.length;n<r;n++)t._n(e[n]);t._c()},t.prototype._stop=function(){},t}(),w=function(){function t(t){this.type="fromPromise",this.on=!1,this.p=t}return t.prototype._start=function(t){var e=this;this.on=!0,this.p.then((function(n){e.on&&(t._n(n),t._c())}),(function(e){t._e(e)})).then(l,(function(t){setTimeout((function(){throw t}))}))},t.prototype._stop=function(){this.on=!1},t}(),E=function(){function t(t){this.type="periodic",this.period=t,this.intervalID=-1,this.i=0}return t.prototype._start=function(t){var e=this;this.intervalID=setInterval((function(){t._n(e.i++)}),this.period)},t.prototype._stop=function(){-1!==this.intervalID&&clearInterval(this.intervalID),this.intervalID=-1,this.i=0},t}(),x=function(){function t(t,e){this.type="debug",this.ins=t,this.out=c,this.s=l,this.l="","string"==typeof e?this.l=e:"function"==typeof e&&(this.s=e)}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=this.s,r=this.l;if(n!==l)try{n(t)}catch(t){e._e(t)}else r?console.log(r+":",t):console.log(t);e._n(t)}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),T=function(){function t(t,e){this.type="drop",this.ins=e,this.out=c,this.max=t,this.dropped=0}return t.prototype._start=function(t){this.out=t,this.dropped=0,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;e!==c&&this.dropped++>=this.max&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),S=function(){function t(t,e){this.out=t,this.op=e}return t.prototype._n=function(){this.op.end()},t.prototype._e=function(t){this.out._e(t)},t.prototype._c=function(){this.op.end()},t}(),O=function(){function t(t,e){this.type="endWhen",this.ins=e,this.out=c,this.o=t,this.oil=f}return t.prototype._start=function(t){this.out=t,this.o._add(this.oil=new S(t,this)),this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.o._remove(this.oil),this.out=c,this.oil=f},t.prototype.end=function(){var t=this.out;t!==c&&t._c()},t.prototype._n=function(t){var e=this.out;e!==c&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){this.end()},t}(),A=function(){function t(t,e){this.type="filter",this.ins=e,this.out=c,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=p(this,t,e);n!==c&&n&&e._n(t)}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),C=function(){function t(t,e){this.out=t,this.op=e}return t.prototype._n=function(t){this.out._n(t)},t.prototype._e=function(t){this.out._e(t)},t.prototype._c=function(){this.op.inner=c,this.op.less()},t}(),N=function(){function t(t){this.type="flatten",this.ins=t,this.out=c,this.open=!0,this.inner=c,this.il=f}return t.prototype._start=function(t){this.out=t,this.open=!0,this.inner=c,this.il=f,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.inner!==c&&this.inner._remove(this.il),this.out=c,this.open=!0,this.inner=c,this.il=f},t.prototype.less=function(){var t=this.out;t!==c&&(this.open||this.inner!==c||t._c())},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=this.inner,r=this.il;n!==c&&r!==f&&n._remove(r),(this.inner=t)._add(this.il=new C(e,this))}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){this.open=!1,this.less()},t}(),I=function(){function t(t,e,n){var r=this;this.type="fold",this.ins=n,this.out=c,this.f=function(e){return t(r.acc,e)},this.acc=this.seed=e}return t.prototype._start=function(t){this.out=t,this.acc=this.seed,t._n(this.acc),this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c,this.acc=this.seed},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=p(this,t,e);n!==c&&e._n(this.acc=n)}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),j=function(){function t(t){this.type="last",this.ins=t,this.out=c,this.has=!1,this.val=c}return t.prototype._start=function(t){this.out=t,this.has=!1,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c,this.val=c},t.prototype._n=function(t){this.has=!0,this.val=t},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&(this.has?(t._n(this.val),t._c()):t._e(new Error("last() failed because input stream completed")))},t}(),R=function(){function t(t,e){this.type="map",this.ins=e,this.out=c,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=p(this,t,e);n!==c&&e._n(n)}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),k=function(){function t(t){this.type="remember",this.ins=t,this.out=c}return t.prototype._start=function(t){this.out=t,this.ins._add(t)},t.prototype._stop=function(){this.ins._remove(this.out),this.out=c},t}(),P=function(){function t(t,e){this.type="replaceError",this.ins=e,this.out=c,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;e!==c&&e._n(t)},t.prototype._e=function(t){var e=this.out;if(e!==c)try{this.ins._remove(this),(this.ins=this.f(t))._add(this)}catch(t){e._e(t)}},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),D=function(){function t(t,e){this.type="startWith",this.ins=t,this.out=c,this.val=e}return t.prototype._start=function(t){this.out=t,this.out._n(this.val),this.ins._add(t)},t.prototype._stop=function(){this.ins._remove(this.out),this.out=c},t}(),L=function(){function t(t,e){this.type="take",this.ins=e,this.out=c,this.max=t,this.taken=0}return t.prototype._start=function(t){this.out=t,this.taken=0,this.max<=0?t._c():this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=c},t.prototype._n=function(t){var e=this.out;if(e!==c){var n=++this.taken;n<this.max?e._n(t):n===this.max&&(e._n(t),e._c())}},t.prototype._e=function(t){var e=this.out;e!==c&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==c&&t._c()},t}(),U=function(){function t(t){this._prod=t||c,this._ils=[],this._stopID=c,this._dl=c,this._d=!1,this._target=null,this._err=c}return t.prototype._n=function(t){var e=this._ils,n=e.length;if(this._d&&this._dl._n(t),1==n)e[0]._n(t);else{if(0==n)return;for(var r=u(e),o=0;o<n;o++)r[o]._n(t)}},t.prototype._e=function(t){if(this._err===c){this._err=t;var e=this._ils,n=e.length;if(this._x(),this._d&&this._dl._e(t),1==n)e[0]._e(t);else{if(0==n)return;for(var r=u(e),o=0;o<n;o++)r[o]._e(t)}if(!this._d&&0==n)throw this._err}},t.prototype._c=function(){var t=this._ils,e=t.length;if(this._x(),this._d&&this._dl._c(),1==e)t[0]._c();else{if(0==e)return;for(var n=u(t),r=0;r<e;r++)n[r]._c()}},t.prototype._x=function(){0!==this._ils.length&&(this._prod!==c&&this._prod._stop(),this._err=c,this._ils=[])},t.prototype._stopNow=function(){this._prod._stop(),this._err=c,this._stopID=c},t.prototype._add=function(t){var e=this._target;if(e)return e._add(t);var n=this._ils;if(n.push(t),!(n.length>1))if(this._stopID!==c)clearTimeout(this._stopID),this._stopID=c;else{var r=this._prod;r!==c&&r._start(this)}},t.prototype._remove=function(t){var e=this,n=this._target;if(n)return n._remove(t);var r=this._ils,o=r.indexOf(t);o>-1&&(r.splice(o,1),this._prod!==c&&r.length<=0?(this._err=c,this._stopID=setTimeout((function(){return e._stopNow()}))):1===r.length&&this._pruneCycles())},t.prototype._pruneCycles=function(){this._hasNoSinks(this,[])&&this._remove(this._ils[0])},t.prototype._hasNoSinks=function(t,e){if(-1!==e.indexOf(t))return!0;if(t.out===this)return!0;if(t.out&&t.out!==c)return this._hasNoSinks(t.out,e.concat(t));if(t._ils){for(var n=0,r=t._ils.length;n<r;n++)if(!this._hasNoSinks(t._ils[n],e.concat(t)))return!1;return!0}return!1},t.prototype.ctor=function(){return this instanceof M?M:t},t.prototype.addListener=function(t){t._n=t.next||l,t._e=t.error||l,t._c=t.complete||l,this._add(t)},t.prototype.removeListener=function(t){this._remove(t)},t.prototype.subscribe=function(t){return this.addListener(t),new h(this,t)},t.prototype[s]=function(){return this},t.create=function(e){if(e){if("function"!=typeof e.start||"function"!=typeof e.stop)throw new Error("producer requires both start and stop functions");d(e)}return new t(e)},t.createWithMemory=function(t){return t&&d(t),new M(t)},t.never=function(){return new t({_start:l,_stop:l})},t.empty=function(){return new t({_start:function(t){t._c()},_stop:l})},t.throw=function(e){return new t({_start:function(t){t._e(e)},_stop:l})},t.from=function(e){if("function"==typeof e[s])return t.fromObservable(e);if("function"==typeof e.then)return t.fromPromise(e);if(Array.isArray(e))return t.fromArray(e);throw new TypeError("Type of input to from() must be an Array, Promise, or Observable")},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.fromArray(e)},t.fromArray=function(e){return new t(new b(e))},t.fromPromise=function(e){return new t(new w(e))},t.fromObservable=function(e){if(void 0!==e.endWhen)return e;var n="function"==typeof e[s]?e[s]():e;return new t(new y(n))},t.periodic=function(e){return new t(new E(e))},t.prototype._map=function(t){return new(this.ctor())(new R(t,this))},t.prototype.map=function(t){return this._map(t)},t.prototype.mapTo=function(t){var e=this.map((function(){return t}));return e._prod.type="mapTo",e},t.prototype.filter=function(e){var n,r,o=this._prod;return new t(o instanceof A?new A((n=o.f,r=e,function(t){return n(t)&&r(t)}),o.ins):new A(e,this))},t.prototype.take=function(t){return new(this.ctor())(new L(t,this))},t.prototype.drop=function(e){return new t(new T(e,this))},t.prototype.last=function(){return new t(new j(this))},t.prototype.startWith=function(t){return new M(new D(this,t))},t.prototype.endWhen=function(t){return new(this.ctor())(new O(t,this))},t.prototype.fold=function(t,e){return new M(new I(t,e,this))},t.prototype.replaceError=function(t){return new(this.ctor())(new P(t,this))},t.prototype.flatten=function(){return new t(new N(this))},t.prototype.compose=function(t){return t(this)},t.prototype.remember=function(){return new M(new k(this))},t.prototype.debug=function(t){return new(this.ctor())(new x(this,t))},t.prototype.imitate=function(t){if(t instanceof M)throw new Error("A MemoryStream was given to imitate(), but it only supports a Stream. Read more about this restriction here: https://github.com/staltz/xstream#faq");this._target=t;for(var e=this._ils,n=e.length,r=0;r<n;r++)t._add(e[r]);this._ils=[]},t.prototype.shamefullySendNext=function(t){this._n(t)},t.prototype.shamefullySendError=function(t){this._e(t)},t.prototype.shamefullySendComplete=function(){this._c()},t.prototype.setDebugListener=function(t){t?(this._d=!0,t._n=t.next||l,t._e=t.error||l,t._c=t.complete||l,this._dl=t):(this._d=!1,this._dl=c)},t.merge=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(new m(e))},t.combine=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(new _(e))},t}();e.Stream=U;var M=function(t){function e(e){var n=t.call(this,e)||this;return n._has=!1,n}return o(e,t),e.prototype._n=function(e){this._v=e,this._has=!0,t.prototype._n.call(this,e)},e.prototype._add=function(t){var e=this._target;if(e)return e._add(t);var n=this._ils;if(n.push(t),n.length>1)this._has&&t._n(this._v);else if(this._stopID!==c)this._has&&t._n(this._v),clearTimeout(this._stopID),this._stopID=c;else if(this._has)t._n(this._v);else{var r=this._prod;r!==c&&r._start(this)}},e.prototype._stopNow=function(){this._has=!1,t.prototype._stopNow.call(this)},e.prototype._x=function(){this._has=!1,t.prototype._x.call(this)},e.prototype.map=function(t){return this._map(t)},e.prototype.mapTo=function(e){return t.prototype.mapTo.call(this,e)},e.prototype.take=function(e){return t.prototype.take.call(this,e)},e.prototype.endWhen=function(e){return t.prototype.endWhen.call(this,e)},e.prototype.replaceError=function(e){return t.prototype.replaceError.call(this,e)},e.prototype.remember=function(){return this},e.prototype.debug=function(e){return t.prototype.debug.call(this,e)},e}(U);e.MemoryStream=M;var F=U;e.default=F},4654:function(){},3695:function(){}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{API:function(){return Cd},AgentInfo:function(){return Gd},Chat:function(){return ml},ChatFrame:function(){return Xp},ComponentFilter:function(){return hp},Conversation:function(){return vp},DeprecatedToggleButton:function(){return Yd},DeprecatedView:function(){return eh},Engine:function(){return Hd},EntryContainer:function(){return Bp},EventParticipant:function(){return Nl},ExternalApi:function(){return Wd},Header:function(){return Kd},Icon:function(){return Js},Interrupt:function(){return gl},MessageContainer:function(){return Pl},SeamlyApiContext:function(){return ki},SeamlyEventBusContext:function(){return Pi},SeamlyGeneralError:function(){return Fa},SeamlyLiveRegionContext:function(){return us},SeamlyOfflineError:function(){return Ha},StoreProvider:function(){return Ie},Text:function(){return $l},View:function(){return sf},calculateVisibility:function(){return Ro},className:function(){return Ri},createReduxStore:function(){return Ve},default:function(){return nh},eventTypes:function(){return Rn},getUrlParams:function(){return mn},getUrlSearchString:function(){return gn},randomId:function(){return Qt},seamlyActions:function(){return Yn},useChoicePrompt:function(){return Ml},useDispatch:function(){return Fi},useEvents:function(){return _o},useGeneratedId:function(){return rs},useI18n:function(){return sa},useSeamlyChat:function(){return Es},useSeamlyCommands:function(){return ls},useSeamlyConfig:function(){return Ye},useSeamlyEventStream:function(){return Rs},useSeamlyIdleDetachCountdown:function(){return Ns},useSeamlyMessageContainerClassNames:function(){return Hi},useSeamlyOptions:function(){return xa},useSeamlyVisibility:function(){return Qa},useTranslatedEventData:function(){return Hs},useTranslations:function(){return Bs},useTranslationsContainer:function(){return zs},visibilityStates:function(){return be}}),n(2698);var t=n(1511),e=n.n(t),o=n(4103),i=n.n(o),a=n(4310),s=n.n(a),c=n(4074),l=n.n(c),u=n(9649),p=n.n(u),f=n(368),d=n.n(f),h=n(3978),v=n.n(h),y=n(4341);function m(t,e,n){return e in t?y(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=n(2991),_=n.n(g),b=n(116),w=n.n(b),E=n(8914),x=n.n(E),T=n(6902),S=n.n(T),O=n(455),A=n.n(O),C=n(7149),N=n.n(C),I=n(6295),j=n.n(I),R=n(3263),k=n(5683),P=n(9356);function D(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=P(t);for(r=0;r<i.length;r++)n=i[r],k(e).call(e,n)>=0||(o[n]=t[n]);return o}(t,e);if(R){var i=R(t);for(r=0;r<i.length;r++)n=i[r],k(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var L,U,M,F,B,H,z,$={},V=[],q=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function W(t,e){for(var n in e)t[n]=e[n];return t}function G(t){var e=t.parentNode;e&&e.removeChild(t)}function K(t,e,n){var r,o,i,a={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?L.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return Y(t,a,r,o,null)}function Y(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++M:o};return null==o&&null!=U.vnode&&U.vnode(i),i}function J(t){return t.children}function Q(t,e){this.props=t,this.context=e}function X(t,e){if(null==e)return t.__?X(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?X(t):null}function Z(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return Z(t)}}function tt(t){(!t.__d&&(t.__d=!0)&&F.push(t)&&!et.__r++||H!==U.debounceRendering)&&((H=U.debounceRendering)||B)(et)}function et(){for(var t;et.__r=F.length;)t=F.sort((function(t,e){return t.__v.__b-e.__v.__b})),F=[],t.some((function(t){var e,n,r,o,i,a;t.__d&&(i=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=W({},o)).__v=o.__v+1,ut(a,o,r,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?X(o):i,o.__h),pt(n,o),o.__e!=i&&Z(o)))}))}function nt(t,e,n,r,o,i,a,s,c,l){var u,p,f,d,h,v,y,m=r&&r.__k||V,g=m.length;for(n.__k=[],u=0;u<e.length;u++)if(null!=(d=n.__k[u]=null==(d=e[u])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?Y(null,d,null,null,d):Array.isArray(d)?Y(J,{children:d},null,null,null):d.__b>0?Y(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=m[u])||f&&d.key==f.key&&d.type===f.type)m[u]=void 0;else for(p=0;p<g;p++){if((f=m[p])&&d.key==f.key&&d.type===f.type){m[p]=void 0;break}f=null}ut(t,d,f=f||$,o,i,a,s,c,l),h=d.__e,(p=d.ref)&&f.ref!=p&&(y||(y=[]),f.ref&&y.push(f.ref,null,d),y.push(p,d.__c||h,d)),null!=h?(null==v&&(v=h),"function"==typeof d.type&&d.__k===f.__k?d.__d=c=rt(d,c,t):c=it(t,d,f,m,h,c),"function"==typeof n.type&&(n.__d=c)):c&&f.__e==c&&c.parentNode!=t&&(c=X(f))}for(n.__e=v,u=g;u--;)null!=m[u]&&("function"==typeof n.type&&null!=m[u].__e&&m[u].__e==n.__d&&(n.__d=X(r,u+1)),ht(m[u],m[u]));if(y)for(u=0;u<y.length;u++)dt(y[u],y[++u],y[++u])}function rt(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?rt(r,e,n):it(n,r,r,o,r.__e,e));return e}function ot(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){ot(t,e)})):e.push(t)),e}function it(t,e,n,r,o,i){var a,s,c;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),a=null;else{for(s=i,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function at(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||q.test(e)?n:n+"px"}function st(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||at(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||at(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?lt:ct,i):t.removeEventListener(e,i?lt:ct,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function ct(t){this.l[t.type+!1](U.event?U.event(t):t)}function lt(t){this.l[t.type+!0](U.event?U.event(t):t)}function ut(t,e,n,r,o,i,a,s,c){var l,u,p,f,d,h,v,y,m,g,_,b=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(c=n.__h,s=e.__e=n.__e,e.__h=null,i=[s]),(l=U.__b)&&l(e);try{t:if("function"==typeof b){if(y=e.props,m=(l=b.contextType)&&r[l.__c],g=l?m?m.props.value:l.__:r,n.__c?v=(u=e.__c=n.__c).__=u.__E:("prototype"in b&&b.prototype.render?e.__c=u=new b(y,g):(e.__c=u=new Q(y,g),u.constructor=b,u.render=vt),m&&m.sub(u),u.props=y,u.state||(u.state={}),u.context=g,u.__n=r,p=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=b.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=W({},u.__s)),W(u.__s,b.getDerivedStateFromProps(y,u.__s))),f=u.props,d=u.state,p)null==b.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==b.getDerivedStateFromProps&&y!==f&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(y,g),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(y,u.__s,g)||e.__v===n.__v){u.props=y,u.state=u.__s,e.__v!==n.__v&&(u.__d=!1),u.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),u.__h.length&&a.push(u);break t}null!=u.componentWillUpdate&&u.componentWillUpdate(y,u.__s,g),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(f,d,h)}))}u.context=g,u.props=y,u.state=u.__s,(l=U.__r)&&l(e),u.__d=!1,u.__v=e,u.__P=t,l=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(r=W(W({},r),u.getChildContext())),p||null==u.getSnapshotBeforeUpdate||(h=u.getSnapshotBeforeUpdate(f,d)),_=null!=l&&l.type===J&&null==l.key?l.props.children:l,nt(t,Array.isArray(_)?_:[_],e,n,r,o,i,a,s,c),u.base=e.__e,e.__h=null,u.__h.length&&a.push(u),v&&(u.__E=u.__=null),u.__e=!1}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=ft(n.__e,e,n,r,o,i,a,c);(l=U.diffed)&&l(e)}catch(t){e.__v=null,(c||null!=i)&&(e.__e=s,e.__h=!!c,i[i.indexOf(s)]=null),U.__e(t,e,n)}}function pt(t,e){U.__c&&U.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){U.__e(t,e.__v)}}))}function ft(t,e,n,r,o,i,a,s){var c,l,u,p=n.props,f=e.props,d=e.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((c=i[h])&&"setAttribute"in c==!!d&&(d?c.localName===d:3===c.nodeType)){t=c,i[h]=null;break}if(null==t){if(null===d)return document.createTextNode(f);t=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,s=!1}if(null===d)p===f||s&&t.data===f||(t.data=f);else{if(i=i&&L.call(t.childNodes),l=(p=n.props||$).dangerouslySetInnerHTML,u=f.dangerouslySetInnerHTML,!s){if(null!=i)for(p={},h=0;h<t.attributes.length;h++)p[t.attributes[h].name]=t.attributes[h].value;(u||l)&&(u&&(l&&u.__html==l.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||st(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||st(t,i,e[i],n[i],r)}(t,f,p,o,s),u)e.__k=[];else if(h=e.props.children,nt(t,Array.isArray(h)?h:[h],e,n,r,o&&"foreignObject"!==d,i,a,i?i[0]:n.__k&&X(n,0),s),null!=i)for(h=i.length;h--;)null!=i[h]&&G(i[h]);s||("value"in f&&void 0!==(h=f.value)&&(h!==t.value||"progress"===d&&!h||"option"===d&&h!==p.value)&&st(t,"value",h,p.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==t.checked&&st(t,"checked",h,p.checked,!1))}return t}function dt(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){U.__e(t,n)}}function ht(t,e,n){var r,o;if(U.unmount&&U.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||dt(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){U.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&ht(r[o],e,"function"!=typeof t.type);n||null==t.__e||G(t.__e),t.__e=t.__d=void 0}function vt(t,e,n){return this.constructor(t,n)}function yt(t,e,n){var r,o,i;U.__&&U.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],ut(e,t=(!r&&n||e).__k=K(J,null,[t]),o||$,$,void 0!==e.ownerSVGElement,!r&&n?[n]:o?null:e.firstChild?L.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r),pt(i,t)}function mt(t,e){var n={__c:e="__cC"+z++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(tt)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}L=V.slice,U={__e:function(t,e,n,r){for(var o,i,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},M=0,Q.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=W({},this.state),"function"==typeof t&&(t=t(W({},n),this.props)),t&&W(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),tt(this))},Q.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),tt(this))},Q.prototype.render=J,F=[],B="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,et.__r=0,z=0;var gt,_t,bt,wt=n(679),Et=n.n(wt),xt=0,Tt=[],St=U.__b,Ot=U.__r,At=U.diffed,Ct=U.__c,Nt=U.unmount;function It(t,e){U.__h&&U.__h(_t,t,xt||e),xt=0;var n=_t.__H||(_t.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function jt(t){return xt=1,Rt(Vt,t)}function Rt(t,e,n){var r=It(gt++,2);return r.t=t,r.__c||(r.__=[n?n(e):Vt(void 0,e),function(t){var e=r.t(r.__[0],t);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=_t),r.__}function kt(t,e){var n=It(gt++,3);!U.__s&&$t(n.__H,e)&&(n.__=t,n.__H=e,_t.__H.__h.push(n))}function Pt(t,e){var n=It(gt++,4);!U.__s&&$t(n.__H,e)&&(n.__=t,n.__H=e,_t.__h.push(n))}function Dt(t){return xt=5,Lt((function(){return{current:t}}),[])}function Lt(t,e){var n=It(gt++,7);return $t(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Ut(t,e){return xt=8,Lt((function(){return t}),e)}function Mt(t){var e=_t.context[t.__c],n=It(gt++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(_t)),e.props.value):t.__}function Ft(){for(var t;t=Tt.shift();)if(t.__P)try{t.__H.__h.forEach(Ht),t.__H.__h.forEach(zt),t.__H.__h=[]}catch(e){t.__H.__h=[],U.__e(e,t.__v)}}U.__b=function(t){_t=null,St&&St(t)},U.__r=function(t){Ot&&Ot(t),gt=0;var e=(_t=t.__c).__H;e&&(e.__h.forEach(Ht),e.__h.forEach(zt),e.__h=[])},U.diffed=function(t){At&&At(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==Tt.push(e)&&bt===U.requestAnimationFrame||((bt=U.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),Bt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Bt&&(e=requestAnimationFrame(n))})(Ft)),_t=null},U.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Ht),t.__h=t.__h.filter((function(t){return!t.__||zt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],U.__e(n,t.__v)}})),Ct&&Ct(t,e)},U.unmount=function(t){Nt&&Nt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{Ht(t)}catch(t){e=t}})),e&&U.__e(e,n.__v))};var Bt="function"==typeof requestAnimationFrame;function Ht(t){var e=_t,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),_t=e}function zt(t){var e=_t;t.__c=t.__(),_t=e}function $t(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Vt(t,e){return"function"==typeof e?e(t):e}var qt=n(1942),Wt=n.n(qt),Gt=n(3649),Kt=n.n(Gt),Yt=n(1128),Jt=n.n(Yt);function Qt(){var t;return"_"+(Number(Kt()(t=String(Math.random())).call(t,2))+Jt()()+Math.round(performance.now())).toString(36)}function Xt(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zt(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Xt(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Xt(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const te="//";function ee(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/";return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return e(t+n+r,...i)}}function ne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>({payload:t});const n=function(){return Zt({type:t},e(...arguments))};return n.toString=()=>String(t),n.match=e=>(null==e?void 0:e.type)===String(t),n}function re(t){const e=[];for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];x()(r).call(r,(t=>{var n;const r=typeof t;if("string"===r)return e.push([t]);"object"!==r||t instanceof Array||x()(n=S()(t)).call(n,(n=>e.push([n,t[n]])))}));const i=ee(t,ne,"/");return _()(e).call(e,(t=>i(...t)))}function oe(t,e){const[n,r,o]=re(t,{pending:(t,e)=>({meta:{arg:t,requestId:e,status:"pending"}}),fulfilled:(t,e,n)=>({payload:e,meta:{arg:t,requestId:n,status:"fulfilled"}}),rejected:(t,e,n)=>({error:e,meta:{arg:t,requestId:n,status:"rejected",error:String(e)}})});return Wt()((i=>(a,s,c)=>{const l=Qt(),u=(async()=>{let t;try{a(n(i,l));const o=e(i,{dispatch:a,getState:s,extra:c}),u=await o;t=r(i,u,l)}catch(e){t=o(i,e,l)}return a(t),t})();return Wt()(u,{type:t,arg:i,requestId:l})}),{type:t,pending:n,fulfilled:r,rejected:o})}function ie(t){return{createAction:ee(t,ne,te),createActions:ee(t,re,te),createThunk:ee(t,oe,te),createReducer:(e,n)=>function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,r=arguments.length>1?arguments[1]:void 0;const o=null==e?void 0:e[null==r?void 0:r.type];return o?o(t,r):t};return r.toString=()=>t,r}(t,e,n),selectState:e=>e[t]}}const{createAction:ae,createThunk:se,createReducer:ce,selectState:le}=ie("config"),ue=ae("initialize",(t=>({config:t}))),pe=ae("update",(t=>({config:t}))),fe=ae("setPreChatEvents",(t=>({events:t})));var de="NOT_FOUND",he=function(t,e){return t===e};function ve(t,e){var n,r,o="object"==typeof e?e:{equalityCheck:e},i=o.equalityCheck,a=void 0===i?he:i,s=o.maxSize,c=void 0===s?1:s,l=o.resultEqualityCheck,u=function(t){return function(e,n){if(null===e||null===n||e.length!==n.length)return!1;for(var r=e.length,o=0;o<r;o++)if(!t(e[o],n[o]))return!1;return!0}}(a),p=1===c?(n=u,{get:function(t){return r&&n(r.key,t)?r.value:de},put:function(t,e){r={key:t,value:e}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}):function(t,e){var n=[];function r(t){var r=n.findIndex((function(n){return e(t,n.key)}));if(r>-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return de}return{get:r,put:function(e,o){r(e)===de&&(n.unshift({key:e,value:o}),n.length>t&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(c,u);function f(){var e=p.get(arguments);if(e===de){if(e=t.apply(null,arguments),l){var n=p.getEntries(),r=n.find((function(t){return l(t.value,e)}));r&&(e=r.value)}p.put(arguments,e)}return e}return f.clearCache=function(){return p.clear()},f}function ye(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every((function(t){return"function"==typeof t}))){var n=e.map((function(t){return"function"==typeof t?"function "+(t.name||"unnamed")+"()":typeof t})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return e}function me(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i,a=0,s={memoizeOptions:void 0},c=r.pop();if("object"==typeof c&&(s=c,c=r.pop()),"function"!=typeof c)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof c+"]");var l=s,u=l.memoizeOptions,p=void 0===u?n:u,f=Array.isArray(p)?p:[p],d=ye(r),h=t.apply(void 0,[function(){return a++,c.apply(null,arguments)}].concat(f)),v=t((function(){for(var t=[],e=d.length,n=0;n<e;n++)t.push(d[n].apply(null,arguments));return i=h.apply(null,t)}));return Object.assign(v,{resultFunc:c,memoizedResultFunc:h,dependencies:d,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),v};return o}var ge=me(ve);const _e="visibility",be={hidden:"hidden",minimized:"minimized",open:"open",initialize:null};function we(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ee(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=we(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=we(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const xe=ge(le,(t=>{let e=Ee({visible:"inline"===(null==t?void 0:t.layoutMode)?be.open:be.minimized,appContainerClassNames:t.appContainerClassNames||[]},t);return"function"==typeof e.appContainerClassNames&&(e=Ee(Ee({},e),{},{appContainerClassNames:e.appContainerClassNames(e)})),e})),Te=mt(void 0);var Se=Te;const{Provider:Oe,Consumer:Ae}=Te;var Ce=0;function Ne(t,e,n,r,o){var i,a,s={};for(a in e)"ref"==a?i=e[a]:s[a]=e[a];var c={type:t,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ce,__source:o,__self:r};if("function"==typeof t&&(i=t.defaultProps))for(a in i)void 0===s[a]&&(s[a]=i[a]);return U.vnode&&U.vnode(c),c}function Ie(t){let{store:e,children:n}=t;return Ne(Oe,{value:e,children:n})}function je(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ke(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Re(Object(n),!0).forEach((function(e){je(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var De="function"==typeof Symbol&&Symbol.observable||"@@observable",Le=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ue={INIT:"@@redux/INIT"+Le(),REPLACE:"@@redux/REPLACE"+Le(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Le()}};function Me(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Fe(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Pe(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Pe(1));return n(Fe)(t,e)}if("function"!=typeof t)throw new Error(Pe(2));var o=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function u(){if(c)throw new Error(Pe(3));return i}function p(t){if("function"!=typeof t)throw new Error(Pe(4));if(c)throw new Error(Pe(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Pe(6));e=!1,l();var n=s.indexOf(t);s.splice(n,1),a=null}}}function f(t){if(!Me(t))throw new Error(Pe(7));if(void 0===t.type)throw new Error(Pe(8));if(c)throw new Error(Pe(9));try{c=!0,i=o(i,t)}finally{c=!1}for(var e=a=s,n=0;n<e.length;n++)(0,e[n])();return t}function d(t){if("function"!=typeof t)throw new Error(Pe(10));o=t,f({type:Ue.REPLACE})}function h(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Pe(11));function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[De]=function(){return this},t}return f({type:Ue.INIT}),(r={dispatch:f,subscribe:p,getState:u,replaceReducer:d})[De]=h,r}function Be(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var o=e[r];"function"==typeof t[o]&&(n[o]=t[o])}var i,a=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:Ue.INIT}))throw new Error(Pe(12));if(void 0===n(void 0,{type:Ue.PROBE_UNKNOWN_ACTION()}))throw new Error(Pe(13))}))}(n)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var c=a[s],l=n[c],u=t[c],p=l(u,e);if(void 0===p)throw e&&e.type,new Error(Pe(14));o[c]=p,r=r||p!==u}return(r=r||a.length!==Object.keys(t).length)?o:t}}function He(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ze(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error(Pe(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return r=He.apply(void 0,i)(n.dispatch),ke(ke({},n),{},{dispatch:r})}}}let $e=He;function Ve(){let{reducers:t={},initialState:e={},middlewares:n=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Fe(Be(t),e,$e(ze(...n)))}function qe(){return Mt(Se)}function We(){return qe().dispatch}function Ge(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=qe(),[,r]=Rt((t=>t+1),0),o=Dt(),i=Ut(t,e),a=Dt(),s=Dt(),c=n.getState();return a.current===i&&s.current===c||(s.current=c,o.current=i(s.current),a.current=i),Pt((()=>n.subscribe((()=>{var t;if(n.getState()===s.current)return;const e=null===(t=a.current)||void 0===t?void 0:t.call(a,n.getState());e!==o.current&&(o.current=e,r())}))),[n]),o.current}const Ke=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=Ut((n=>t(n,e)),n);return Ge(r,n)};function Ye(){return Ge(xe)}function Je(){const{startChatIcon:t}=Ge(xe);return t}const Qe="cvco",Xe="2",Ze="seamly-client-participant";var tn=n(3032),en=n.n(tn),nn=n(1238),rn=n.n(nn),on=n(1643),an=n.n(on),sn=n(2366),cn=n.n(sn),ln=n(8580),un=n.n(ln);function pn(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function fn(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=pn(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=pn(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const dn=(t,e)=>{let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a=this;let s=!1;return clearTimeout(n),n=en()((()=>{n=null,s||t.apply(a,o),s=!1}),e),e=>{s=!0,e&&t.apply(a,o)}}},hn=t=>Math.ceil(t/1e3),vn=t=>{const e=Math.floor(t/60);return{minutes:e,seconds:t-60*e}},yn=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===t)return"0 Bytes";const n=1024,r=e<0?0:e,o=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(t)/Math.log(n));return rn()((t/n**i).toFixed(r))+" "+o[i]},mn=()=>{const{search:t}=window.location;if(!t)return{};const e=Kt()(t).call(t,an()(t).call(t,"?")+1).split("&");return cn()(e).call(e,((t,e)=>{const[n,r]=e.split("=");return fn(fn({},t),{},{[n]:decodeURIComponent(r)})}),{})},gn=t=>{var e;return cn()(e=S()(t)).call(e,((e,n)=>`${e}${e?"&":""}${n}=${encodeURIComponent(t[n])}`),"")},_n={27:"Escape",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown"},bn={Escape:"Escape",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"},wn=t=>t.code?bn[t.code]:_n[t.keyCode],En=t=>{t&&t.focus()},xn=(t,e)=>{t&&(t.contains(document.activeElement)||t===document.activeElement)&&e()};var Tn=n(7302),Sn=n.n(Tn),On=n(7093),An=n.n(On),Cn=n(4473),Nn=n.n(Cn);function In(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function jn(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=In(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=In(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Rn={info:"info",message:"message",participant:"participant",system:"system"},kn="text",Pn="text",Dn="upload",Ln="received",Un="read",Mn="custom",Fn="typing",Bn="read",Hn="detach_service",zn="set_topic",$n="set_translation",Vn="click_cta",qn="assertive",Wn="polite",Gn={new_topic:"newTopic",new_translation:"newTranslation"},Kn="uploads",Yn={ADD_EVENT:"ADD_EVENT",CLEAR_EVENTS:"CLEAR_EVENTS",SET_HISTORY:"SET_HISTORY",SET_EVENTS_READ:"SET_EVENTS_READ",SET_LOADED_IMAGE_EVENT_IDS:"SET_LOADED_IMAGE_EVENT_IDS",ACK_EVENT:"ACK_EVENT",SET_IS_LOADING:"SET_IS_LOADING",CLEAR_PARTICIPANTS:"CLEAR_PARTICIPANTS",SET_PARTICIPANT:"SET_PARTICIPANT",SET_HEADER_TITLE:"SET_HEADER_TITLE",SET_HEADER_SUB_TITLE:"SET_HEADER_SUB_TITLE",RESET_HISTORY_LOADED_FLAG:"RESET_HISTORY_LOADED_FLAG",SET_ACTIVE_SERVICE:"SET_ACTIVE_SERVICE",INIT_IDLE_DETACH_COUNTDOWN:"INIT_IDLE_DETACH_COUNTDOWN",DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:"DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER",STOP_IDLE_DETACH_COUNTDOWN_COUNTER:"STOP_IDLE_DETACH_COUNTDOWN_COUNTER",CLEAR_IDLE_DETACH_COUNTDOWN:"CLEAR_IDLE_DETACH_COUNTDOWN",INIT_RESUME_CONVERSATION_PROMPT:"INIT_RESUME_CONVERSATION_PROMPT",CLEAR_RESUME_CONVERSATION_PROMPT:"CLEAR_RESUME_CONVERSATION_PROMPT",SET_SERVICE_DATA_ITEM:"SET_SERVICE_DATA_ITEM",SET_FEATURES:"SET_FEATURES",SET_FEATURE_ENABLED_STATE:"SET_FEATURE_ENABLED_STATE",CLEAR_FEATURES:"CLEAR_FEATURES",SET_INITIAL_STATE:"SET_INITIAL_STATE",SET_USER_SELECTED_OPTIONS:"SET_USER_SELECTED_OPTIONS",SET_USER_SELECTED_OPTION:"SET_USER_SELECTED_OPTION",SHOW_OPTION:"SHOW_OPTION",HIDE_OPTION:"HIDE_OPTION",SET_SERVICE_ENTRY_METADATA:"SET_SERVICE_ENTRY_METADATA",SET_BLOCK_AUTO_ENTRY_SWITCH:"SET_BLOCK_AUTO_ENTRY_SWITCH",SET_ACTIVE_ENTRY_TYPE:"SET_ACTIVE_ENTRY_TYPE",SET_USER_ENTRY_TYPE:"SET_USER_ENTRY_TYPE",REGISTER_UPLOAD:"REGISTER_UPLOAD",SET_UPLOAD_PROGRESS:"SET_UPLOAD_PROGRESS",SET_UPLOAD_COMPLETE:"SET_UPLOAD_COMPLETE",SET_UPLOAD_ERROR:"SET_UPLOAD_ERROR",CLEAR_UPLOAD:"CLEAR_UPLOAD",CLEAR_ALL_UPLOADS:"CLEAR_ALL_UPLOADS",SET_SEAMLY_CONTAINER_ELEMENT:"SET_SEAMLY_CONTAINER_ELEMENT"},Jn="navigate",{ADD_EVENT:Qn,CLEAR_EVENTS:Xn,SET_HISTORY:Zn,SET_EVENTS_READ:tr,SET_LOADED_IMAGE_EVENT_IDS:er,ACK_EVENT:nr,SET_IS_LOADING:rr,CLEAR_PARTICIPANTS:or,SET_PARTICIPANT:ir,SET_HEADER_TITLE:ar,SET_HEADER_SUB_TITLE:sr,RESET_HISTORY_LOADED_FLAG:cr,SET_ACTIVE_SERVICE:lr,INIT_IDLE_DETACH_COUNTDOWN:ur,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:pr,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:fr,CLEAR_IDLE_DETACH_COUNTDOWN:dr,INIT_RESUME_CONVERSATION_PROMPT:hr,CLEAR_RESUME_CONVERSATION_PROMPT:vr,SET_SERVICE_DATA_ITEM:yr,SET_FEATURES:mr,SET_FEATURE_ENABLED_STATE:gr,CLEAR_FEATURES:_r,SET_INITIAL_STATE:br,SET_USER_SELECTED_OPTION:wr,SET_USER_SELECTED_OPTIONS:Er,SHOW_OPTION:xr,HIDE_OPTION:Tr,SET_BLOCK_AUTO_ENTRY_SWITCH:Sr,SET_USER_ENTRY_TYPE:Or,SET_ACTIVE_ENTRY_TYPE:Ar,SET_SERVICE_ENTRY_METADATA:Cr,REGISTER_UPLOAD:Nr,SET_UPLOAD_PROGRESS:Ir,SET_UPLOAD_COMPLETE:jr,SET_UPLOAD_ERROR:Rr,CLEAR_UPLOAD:kr,CLEAR_ALL_UPLOADS:Pr,SET_SEAMLY_CONTAINER_ELEMENT:Dr}=Yn,Lr=t=>{let{type:e,payload:n}=t;return e===Rn.message&&!n.fromClient||e===Rn.info&&n.type===kn},Ur=t=>Sn()(t).call(t,((t,e)=>{let{payload:{occurredAt:n}}=t,{payload:{occurredAt:r}}=e;return n-r})),Mr=(t,e)=>{switch(e.type){case or:return{participants:{},currentAgent:""};case ir:if(!t)return{participants:{},currentAgent:""};const{participants:n}=t||{participants:{}},{id:r,avatar:o,name:i,introduction:a}=e.participant,s=n[r],c=jn(jn({},n),{},{[r]:s?jn(jn(jn(jn({},s),o?{avatar:o}:{}),i?{name:i}:{}),a?{introduction:a}:{}):e.participant});return jn(jn({},t),{},{participants:c,currentAgent:t.currentAgent===r||e.fromClient?t.currentAgent:r});default:return t}},Fr=(t,e)=>{switch(e.type){case ar:return jn(jn({},t),{},{title:e.title});case sr:return jn(jn({},t),{},{subTitle:e.title});default:return t}},Br=(t,e)=>{const{entry:n}=e,{blockAutoEntrySwitch:r}=t;if(!n)return jn(jn({},t),{},{optionsOverride:{}});const{type:o,options:i}=n;let a=t.active;return r||o===t.userSelected||(a=o),jn(jn({},t),{},{active:a,optionsOverride:jn(jn({},t.optionsOverride),{},{[o]:i||{}})})},Hr=(t,e)=>{var n,r,o,i,a,s,c,l,u,p;switch(e.type){case Qn:const{type:f,payload:d}=e.event,h=t.options.features.hasOwnProperty(Kn),v=Br(t.entryMeta,d);let y=jn({},t.options);if(h&&(f===Rn.message||f===Rn.participant)&&!d.fromClient){const{type:t}=d.entry||{};y=jn(jn({},y),{},{features:jn(jn({},y.features),{},{uploads:jn(jn({},y.features.uploads),{},{enabledFromEntry:t===Dn})})})}const m=Lr(e.event),g=Nn()(n=t.events).call(n,(t=>t.payload.id===d.id));return g?t:jn(jn({},t),{},{entryMeta:h||v.active!==Dn?v:jn({},t.entryMeta),options:y,unreadEvents:m?t.unreadEvents+1:t.unreadEvents,events:[...t.events,jn(jn({},e.event),{},{payload:jn(jn({},m&&{messageStatus:d.fromClient?Un:Ln}),d)})]});case nr:if(!e.event.payload.transactionId)return console.warn("ACK received without transaction ID."),t;const b=Nn()(r=t.events).call(r,(t=>t.payload.transactionId===e.event.payload.transactionId)),{id:E,occurredAt:x}=e.event.payload;return b?jn(jn({},t),{},{events:Ur(_()(o=t.events).call(o,(t=>t.payload.id===b.payload.id?jn(jn({},t),{},{payload:jn(jn({},t.payload),{},{id:E,occurredAt:x})}):t)))}):t;case Xn:return jn(jn({},t),{},{unreadEvents:0,loadedImageEventIds:[],events:[]});case tr:return jn(jn({},t),{},{unreadEvents:0,events:_()(i=t.events).call(i,(t=>{var n;return-1!==an()(n=e.ids).call(n,t.payload.id)?jn(jn({},t),{},{payload:jn(jn({},t.payload),t.payload.messageStatus===Ln&&{messageStatus:Un})}):t}))});case er:return jn(jn({},t),{},{loadedImageEventIds:[...t.loadedImageEventIds,e.eventId]});case Zn:const{events:T,participants:S,activeServiceSessionId:O,activeServiceSettings:A={},serviceData:C,resumeConversationPrompt:I}=e.history,j=((t,e)=>{var n;const r=w()(t).call(t,(t=>!N()(e).call(e,(e=>e.payload.id===t.payload.id)))),o=An()(n=w()(e).call(e,(t=>!("participant"===t.type&&!t.payload.participant.introduction)))).call(n);return Ur([...o,...r])})(t.events,T),R=jn(jn({},t.participantInfo.participants),S),k=Nn()(a=An()(s=Kt()(j).call(j)).call(s)).call(a,(t=>("message"===t.type||"participant"===t.type)&&!t.payload.fromClient));let P=null;k&&("message"===k.type&&(P=k.payload.participant),"participant"===k.type&&(P=k.payload.participant.id));const{entry:D,uploads:L}=A,U=Br(jn(jn(jn({},t.entryMeta),D),{},{active:D.default||kn,options:jn({},D&&D.options?D.options:{})}),j[j.length-1].payload);let M=jn({},t.options.features);const F=M.hasOwnProperty(Kn);if(F){const{payload:t}=k,{type:e}=t.entry||{};M=jn(jn({},M),{},{uploads:{enabled:!(!L||!L.enabled),enabledFromEntry:e===Dn}})}const B=jn(jn({},t),{},{unreadEvents:w()(j).call(j,(t=>"message"===t.type&&t.payload.messageStatus===Ln)).length,events:w()(j).call(j,(t=>"participant"!==t.type||!!t.payload.participant.introduction)),participantInfo:jn(jn(jn({},t.participantInfo),P?Mr(t.participantInfo,{type:ir,participant:R[P]}):{}),{},{participants:R}),historyLoaded:!0,serviceInfo:jn(jn({},t.serviceInfo),{},{activeServiceSessionId:O}),serviceData:C||{},options:jn(jn({},t.options),{},{features:M}),entryMeta:F||U.active!==Dn?U:jn({},t.entryMeta),resumeConversationPrompt:I||!1});return P&&(B.headerTitles=Fr(t.headerTitles,{type:sr,title:R[P].name})),B;case cr:return jn(jn({},t),{},{historyLoaded:!1});case rr:return jn(jn({},t),{},{isLoading:e.isLoading});case ur:const{delaySeconds:H,delayTime:z}=e;return jn(jn({},t),{},{idleDetachCountdown:{hasCountdown:!0,isActive:!0,wasStopped:!1,count:H,remaining:H,timer:z}});case pr:const{idleDetachCountdown:$}=t,{remaining:V}=$,q=V-1;return jn(jn({},t),{},{idleDetachCountdown:jn(jn({},t.idleDetachCountdown),{},{remaining:q,timer:vn(q)})});case fr:return jn(jn({},t),{},{idleDetachCountdown:jn(jn({},t.idleDetachCountdown),{},{isActive:!1,wasStopped:!0})});case dr:return jn(jn({},t),{},{idleDetachCountdown:{hasCountdown:!1,isActive:!1}});case hr:return jn(jn({},t),{},{resumeConversationPrompt:!0});case vr:return jn(jn({},t),{},{resumeConversationPrompt:!1});case ir:case or:return jn(jn({},t),{},{participantInfo:Mr(t.participantInfo,e)});case lr:return t.serviceInfo.activeServiceSessionId!==e.activeServiceSessionId?jn(jn({},t),{},{serviceInfo:jn(jn({},t.serviceInfo),{},{activeServiceSessionId:e.activeServiceSessionId})}):t;case ar:case sr:return jn(jn({},t),{},{headerTitles:Fr(t.headerTitles,e)});case br:const{initialState:W}=e;return jn(jn({},t),{},{initialState:W,unreadEvents:W.unreadMessageCount});case yr:return jn(jn({},t),{},{serviceData:jn(jn({},t.serviceData),{},{[e.payload.type]:e.payload})});case mr:return jn(jn({},t),{},{options:jn(jn({},t.options),{},{features:e.features})});case gr:return t.options.features.hasOwnProperty(e.key)?jn(jn({},t),{},{options:jn(jn({},t.options),{},{features:jn(jn({},t.options.features),{},{[e.key]:jn(jn({},t.options.features[e.key]||{}),{},{enabled:e.enabled})})})}):t;case _r:return jn(jn({},t),{},{options:jn(jn({},t.options),{},{features:{}})});case xr:return jn(jn({},t),{},{options:jn(jn({},t.options),{},{panelActive:!0,optionActive:e.optionName})});case Tr:return jn(jn({},t),{},{options:jn(jn({},t.options),{},{panelActive:!1,optionActive:""})});case Er:return jn(jn({},t),{},{options:jn(jn({},t.options),{},{userSelectedOptions:e.options})});case wr:const{option:G,value:K}=e;return jn(jn({},t),{},{options:jn(jn({},t.options),{},{userSelectedOptions:jn(jn({},t.options.userSelectedOptions),{},{[G]:K})})});case Sr:const{value:Y}=e;return jn(jn({},t),{},{entryMeta:jn(jn({},t.entryMeta),{},{blockAutoEntrySwitch:Y})});case Cr:const{entryMeta:J}=e;return jn(jn({},t),{},{entryMeta:jn(jn(jn({},t.entryMeta),J),{},{active:J.default,options:jn({},J.options||{}),overrideOptions:{}})});case Ar:const{entryType:Q}=e;return jn(jn({},t),{},{entryMeta:jn(jn({},t.entryMeta),{},{active:Q})});case Or:const{entryType:X}=e;return jn(jn({},t),{},{entryMeta:jn(jn({},t.entryMeta),{},{userSelected:X})});case Nr:return jn(jn({},t),{},{currentUploads:[...t.currentUploads,{id:e.fileId,name:e.fileName,progress:1,uploading:!0,complete:!1,error:"",uploadHandle:e.uploadHandle}]});case Ir:return jn(jn({},t),{},{currentUploads:_()(c=t.currentUploads).call(c,(t=>t.id===e.fileId?jn(jn({},t),{},{progress:e.progress,uploading:100!==e.progress,uploadHandle:100===e.progress?null:t.uploadHandle}):t))});case Rr:return jn(jn({},t),{},{currentUploads:_()(l=t.currentUploads).call(l,(t=>t.id===e.fileId?jn(jn({},t),{},{error:e.errorText,progress:0,uploading:!1,uploadHandle:null}):t))});case jr:return jn(jn({},t),{},{currentUploads:_()(u=t.currentUploads).call(u,(t=>t.id===e.fileId?jn(jn({},t),{},{complete:!0}):t))});case kr:return jn(jn({},t),{},{currentUploads:w()(p=t.currentUploads).call(p,(t=>t.id!==e.fileId))});case Pr:return jn(jn({},t),{},{currentUploads:[]});case Dr:return jn(jn({},t),{},{seamlyContainerElement:e.element});default:return t}};var zr=n(3476),$r=n.n(zr);const{createAction:Vr,createThunk:qr,createReducer:Wr,selectState:Gr}=ie("i18n"),Kr=ge(Gr,(t=>t.translations)),Yr=ge(Gr,(t=>t.initialLocale)),Jr=ge(Gr,(t=>t.locale)),Qr=Vr("setInitialLocale",(t=>({locale:t}))),Xr=function(){let t=!1;const e=[],n=async()=>{if(!t)for(;e.length;){const n=e.shift();t=!0,await n().catch((()=>{})),t=!1}};return{next:n,runExclusively:async t=>{const r=new($r())(((n,r)=>{e.push((async()=>{try{n(await t())}catch(t){r(t)}}))}));return n(),r}}}(),Zr=qr("setLocale",(async(t,e)=>{let{getState:n,extra:{api:r}}=e;return Xr.runExclusively((()=>{if(t!==Jr(n()))return r.getTranslations(t)}))})),{createActions:to,createReducer:eo,selectState:no}=ie("translations"),[ro,oo]=to("translate",{enable:t=>({locale:t}),disable:()=>({})}),[io,ao]=to("event",{enable:t=>({payloadId:t}),disable:t=>({payloadId:t})}),{createAction:so,createThunk:co,createReducer:lo,selectState:uo}=ie("app"),po=ge(uo,(t=>t.userHasResponded));function fo(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ho(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=fo(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=fo(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const vo=t=>t.state,yo=()=>Ge(vo),mo=ge(vo,xe,po,((t,e,n)=>{var r;let{events:o,serviceData:i}=t;if(n||"inline"===e.layoutMode||!i.suggestion||null===(r=i.suggestion)||void 0===r||!r.body.length)return o;const a={type:"service_data",payload:i.suggestion};return[...o,a]})),go=ge(mo,xe,((t,e)=>{var n;const{enabled:r,threshold:o}=(null==e||null===(n=e.messages)||void 0===n?void 0:n.timeIndicator)??{};if(!r)return t;const i=[];let a=null;return x()(t).call(t,((t,e)=>{if(0===e)i.push(ho(ho({},t),{},{timeIndicator:t.payload.occurredAt}));else{const e=a&&hn(t.payload.occurredAt-a.payload.occurredAt)>=o?t.payload.occurredAt:void 0;i.push(ho(ho({},t),{},{timeIndicator:e}))}a=t})),i})),_o=()=>Ge(go,[]),bo=()=>yo().headerTitles,wo=()=>yo().unreadEvents,Eo=()=>yo().skiplinkTargetId,xo=ge(go,(t=>{var e;const n=w()(t).call(t,(t=>"message"===t.type));return null===(e=n[n.length-1])||void 0===e?void 0:e.payload.id})),To=()=>{const{participants:t,currentAgent:e}=yo().participantInfo;return e?t[e]:null},So=t=>yo().serviceData[t],Oo=()=>{const{layoutMode:t}=Ye();return{isInline:"inline"===t,isWindow:"window"===t,isResolving:!t}},{createAction:Ao,createActions:Co,createThunk:No,createReducer:Io,selectState:jo}=ie("visibility"),Ro=t=>{let{hasResponded:e,previousVisibility:n,requestedVisibility:r,config:o}=t;const{defaults:i,layoutMode:a,hideOnNoUserResponse:s}=o,{visible:c}=i||{};if("app"===a&&!n)return be.open;if("window"===a&&s&&r!==be.open)return e?r||n||be.open:be.hidden;if("inline"===a&&e&&!r)return n||be.open;const l=be.minimized;return r||n||c||l},ko=ge(jo,(t=>t.visibility)),Po=ge(jo,(t=>t.showInlineView));function Do(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lo(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Do(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Do(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Uo=Ao("setFromStorage",(t=>({visibility:t}))),Mo=Ao("setShowInlineView"),Fo=[be.open,be.minimized,be.hidden],Bo=No("set",((t,e)=>{let{getState:n,extra:{api:r,eventBus:o}}=e;const i=n(),a=ko(i),s=po(i),c=r.hasConversation(),l=xe(i),{visibilityCallback:u=Ro,layoutMode:p}=l,{unreadEvents:f}=vo(i),d=u({hasConversation:c,hasResponded:s,previousVisibility:a,requestedVisibility:t,config:l});if(un()(Fo).call(Fo,d)){if(a!==d)return r.store.set(_e,Lo(Lo({},r.store.get(_e)||{}),{},{[p]:t})),t&&o.emit("ui.visible",t,{visibility:t,hasConversation:c,hasResponded:s,unreadMessageCount:f}),d}else console.error('The visibilityCallback function should return "open", "minimized" or "hidden".')})),Ho=No("initialize",(async(t,e)=>{var n;let{dispatch:r,getState:o,extra:{api:i}}=e;const{layoutMode:a}=xe(o()),s=null===(n=i.store.get(_e))||void 0===n?void 0:n[a];s&&r(Uo(s)),r(Bo(be.initialize))}));class zo extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,zo),this.name="SeamlyUnavailableError",this.langKey="errors.seamlyUnavailable"}}var $o=n(1611),Vo=n.n($o);class qo extends Error{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(...n),Error.captureStackTrace&&Error.captureStackTrace(this,Vo()(this)),this.originalError=t,null!=t&&t.payload&&(this.originalEvent=t,this.originalError=t.payload.error,this.message=`Event of type ${t.payload.type} encountered`),null!=t&&t.error&&(this.originalError=t.error)}}class Wo extends qo{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(t,...n),this.name="SeamlySessionExpiredError",this.action="reset"}}const{createAction:Go,createReducer:Ko,selectState:Yo}=ie("interrupt"),Jo=Go("set",(t=>({error:t}))),Qo=Go("clear"),Xo=so("setHasResponded",(t=>({hasResponded:t}))),Zo=co("initialize",(async(t,e)=>{var n;let{dispatch:r,extra:{api:o,config:i}}=e;r(ue(i));let a=null==i||null===(n=i.context)||void 0===n?void 0:n.locale;try{const{features:t,defaultLocale:e,preChat:n,agentParticipant:i,userParticipant:s,startChatIcon:c}=await o.getConfig();r({type:Yn.SET_FEATURES,features:t}),a=a||e,r(Qr(a)),r(fe(_()(n).call(n,(t=>({type:"message",payload:t}))))),r(pe({agentParticipant:i,userParticipant:s,startChatIcon:c})),null!=i&&i.name&&r({type:Yn.SET_HEADER_SUB_TITLE,title:i.name})}catch(t){throw new zo}try{if(o.hasConversation()){var s;const t=await o.getConversationIntitialState();r({type:Yn.SET_INITIAL_STATE,initialState:t}),a=(null===(s=t.translation)||void 0===s?void 0:s.locale)||a,"userResponded"in t&&r(Xo(t.userResponded))}else{var c,l;null!=i&&null!==(c=i.context)&&void 0!==c&&c.topic&&o.send("action",{type:zn,body:{name:i.context.topic,fallbackMessage:i.context.topic}}),null!=i&&null!==(l=i.context)&&void 0!==l&&l.translationLocale&&(a=i.context.translationLocale,o.send("action",{type:$n,body:{enabled:!0,locale:a}}),r(ro(a)))}}catch(t){if(t instanceof Wo)throw t;throw new zo}finally{await r(Zr(a)),r(Ho())}})),ti=co("reset",(async(t,e)=>{let{dispatch:n,extra:{api:r}}=e;try{await r.disconnect(),await r.clearStore(),n(Zo())}catch(t){n(Jo(t))}})),ei=["messages"];function ni(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ri(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=ni(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=ni(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const oi=ri(ri({},{namespace:"default",layoutMode:"window",messages:{agent:{showAvatar:!1,showName:!1},user:{showAvatar:!1,showName:!1},timeIndicator:{enabled:!1,threshold:36e5}}}),{},{hideOnNoUserResponse:!1,connectWhenInView:!0,showDisclaimer:!1,showFaq:!1,customComponents:{},defaults:{},preChatEvents:[]}),ii=["hideOnNoUserResponse","connectWhenInView","showDisclaimer","showFaq","namespace","customComponents","defaults","layoutMode","api","zIndex","context","appContainerClassNames","messages","visible","visibilityCallback","errorCallback","agentParticipant","userParticipant","startChatIcon"],ai=(t,e)=>{let{config:n}=e;const r=((t,e)=>cn()(e).call(e,((e,n)=>(n in t&&(e[n]=t[n]),e)),{}))(n,ii),{messages:o}=r,i=D(r,ei);let a=t;return S()(i).length>0&&(a=ri(ri({},a),i)),o&&(a=ri(ri({},a),{},{messages:ri(ri({},a.messages),o)})),a};var si=ce({[ue]:(t,e)=>ai(t,e),[pe]:(t,e)=>ai(t,e),[Zo.pending]:()=>oi,[fe]:(t,e)=>{let{events:n}=e;return ri(ri({},t),{},{preChatEvents:n})}},oi);function ci(t,e){for(var n in e)t[n]=e[n];return t}function li(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function ui(t){this.props=t}(ui.prototype=new Q).isPureReactComponent=!0,ui.prototype.shouldComponentUpdate=function(t,e){return li(this.props,t)||li(this.state,e)};var pi=U.__b;U.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),pi&&pi(t)};var fi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var di=U.__e;U.__e=function(t,e,n,r){if(t.then)for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e);di(t,e,n,r)};var hi=U.unmount;function vi(){this.__u=0,this.t=null,this.__b=null}function yi(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function mi(){this.u=null,this.o=null}U.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),hi&&hi(t)},(vi.prototype=new Q).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=yi(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__e){var t=r.state.__e;r.__v.__k[0]=function t(e,n,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)})),e.__c&&e.__c.__P===n&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__e:r.__b=null});e=r.t.pop();)e.forceUpdate()}},c=!0===e.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(a,a)},vi.prototype.componentWillUnmount=function(){this.t=[]},vi.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=ci({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)}))),e}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__e&&K(J,null,t.fallback);return o&&(o.__h=null),[K(J,null,e.__e?null:t.children),o]};var gi=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};(mi.prototype=new Q).__e=function(t){var e=this,n=yi(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),gi(e,t,r)):o()};n?n(i):i()}},mi.prototype.render=function(t){this.u=null,this.o=new Map;var e=ot(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},mi.prototype.componentDidUpdate=mi.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){gi(t,n,e)}))};var _i="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,bi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,wi="undefined"!=typeof document,Ei=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};Q.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(Q.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var xi=U.event;function Ti(){}function Si(){return this.cancelBubble}function Oi(){return this.defaultPrevented}U.event=function(t){return xi&&(t=xi(t)),t.persist=Ti,t.isPropagationStopped=Si,t.isDefaultPrevented=Oi,t.nativeEvent=t};var Ai={configurable:!0,get:function(){return this.class}},Ci=U.vnode;U.vnode=function(t){var e=t.type,n=t.props,r=n;if("string"==typeof e){var o=-1===e.indexOf("-");for(var i in r={},n){var a=n[i];wi&&"children"===i&&"noscript"===e||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!Ei(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&bi.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),r[i]=a)}"select"==e&&r.multiple&&Array.isArray(r.value)&&(r.value=ot(n.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==e&&null!=r.defaultValue&&(r.value=ot(n.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),t.props=r,n.class!=n.className&&(Ai.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Ai))}t.$$typeof=_i,Ci&&Ci(t)};var Ni=U.__r;U.__r=function(t){Ni&&Ni(t),t.__c};var Ii=n(6423),ji=n.n(Ii);const Ri=function(){for(var t,e,n,r,o,i,a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return _()(t=w()(e=ji()(n=_()(r=w()(o=_()(i=ji()(s).call(s)).call(i,(t=>{var e;return"object"==typeof t?_()(e=j()(t)).call(e,(t=>{let[e,n]=t;return n?e:""})).join(" "):t}))).call(o,(t=>"string"==typeof t))).call(r,(t=>t.split(" ")))).call(n)).call(e,(t=>t.length))).call(t,(t=>an()(t).call(t,Qe)>-1?t:[Qe,t].join("-"))).join(" ")},ki=mt(null),Pi=mt(""),Di=()=>Mt(ki),Li=()=>Di().store||{},Ui=()=>{const{get:t}=Li();return t?t("conversationUrl"):null},Mi=()=>!!Ui();var Fi=We;const Bi=()=>Ye().appContainerClassNames,Hi=t=>{const{fromClient:e}=t.payload,n=["message"];return"info"===t.type?n.push("message--source-info"):e?n.push("message--source-user"):n.push("message--source-agent"),n};function zi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return zi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zi(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wi(t){return t.reduce((function(t,e){return t.concat(Array.isArray(e)?Wi(e):e)}),[])}function Gi(t){var e={};return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.length?r.map((function(t){return null===t?"null":void 0===t?"undefined":"function"==typeof t?t.toString():t instanceof Date?t.toISOString():JSON.stringify(t)})).join("|"):"_(no-args)_";if(Object.prototype.hasOwnProperty.call(e,i))return e[i];var a=t.apply(void 0,r);return e[i]=a,a}}function Ki(t){for(var e=function(t){return/\s/.test(t)},n=[],r={},o=0,i=null,a=!1,s=0;s<t.length;){if(a&&(e(t[s])||"{"===t[s]))a=!1,i=t.slice(o,s),"{"===t[s]&&s--;else if(!a&&!e(t[s])){var c="{"===t[s];if(i&&c){var l=Yi(t,s);if(-1===l)throw new Error('Unbalanced curly braces in string: "'.concat(t,'"'));r[i]=t.slice(s+1,l),s=l,i=null}else i&&(n.push(i),i=null),a=!0,o=s}s++}return a&&(i=t.slice(o)),i&&n.push(i),{args:n,cases:r}}function Yi(t,e){for(var n=0,r=e+1;r<t.length;r++){var o=t.charAt(r);if("}"===o){if(0===n)return r;n--}else"{"===o&&n++}return-1}function Ji(t){return Qi(t.slice(1,-1),",",3)}function Qi(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(!t)return r;if(1===n)return r.push(t),r;var o=t.indexOf(e);if(-1===o)return r.push(t),r;var i=t.substring(0,o).trim(),a=t.substring(o+e.length+1).trim();return r.push(i),Qi(a,e,n-1,r)}var Xi,Zi=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Vi(this,t),je(this,"format",Gi((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Wi(n.process(t,e)).join("")}))),this.locale=e,this.typeHandlers=r}var e,n;return e=t,n=[{key:"process",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return[];var n=t.indexOf("{");if(-1!==n){var r=Yi(t,n);if(-1===r)throw new Error('Unbalanced curly braces in string: "'.concat(t,'"'));var o=t.substring(n,r+1);if(o){var i=[],a=t.substring(0,n);a&&i.push(a);var s=Ji(o),c=$i(s,3),l=c[0],u=c[1],p=c[2],f=e[l];null==f&&(f="");var d=u&&this.typeHandlers[u];i.push(d?d(f,p,this.locale,e,this.process.bind(this)):f);var h=t.substring(r+1);return h&&i.push(this.process(h,e)),i}}return[t]}}],n&&qi(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ta(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ea(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ta(Object(n),!0).forEach((function(e){je(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var na=0,ra="other";function oa(t,e){for(var n=0,r="",o=0,i={};n<t.length;){if("#"!==t[n]||o)r+=t[n];else{var a="__hashToken".concat(na++);r+="{".concat(a,", number}"),i[a]=e}"{"===t[n]?o++:"}"===t[n]&&o--,n++}return{caseBody:r,numberValues:i}}var ia="other";const aa=new Zi("en-GB",{plural:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=Ki(e),a=i.args,s=i.cases,c=parseInt(t);a.forEach((function(t){t.startsWith("offset:")&&(c-=parseInt(t.slice("offset:".length)))}));var l=[];if("PluralRules"in Intl){void 0!==Xi&&Xi.resolvedOptions().locale===n||(Xi=new Intl.PluralRules(n));var u=Xi.select(c);u!==ra&&l.push(u)}1===c&&l.push("one"),l.push("=".concat(c),ra);for(var p=0;p<l.length;p++){var f=l[p];if(f in s){var d=oa(s[f],c),h=d.caseBody,v=d.numberValues;return o(h,ea(ea({},r),v))}}return t},select:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=Ki(e),i=o.cases;return t in i?r(i[t],n):ia in i?r(i.other,n):t}});function sa(){const t=Ge(Kr),e=Ge(Jr),n=Ge(Yr),r=Ut((function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t[n];return o?aa.format(o,r):(console.warn(`Translation key: ${n} is missing in locale: ${e}`),null)}),[t,e]);return{t:r,locale:e,initialLocale:n}}function ca(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function la(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=ca(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=ca(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const ua={translations:{"errors.configError.message":"We are sorry this happened, please retry at a later time.","errors.configError.srText":"A chat configuration error occurred. Our apologies, please retry at a later time.","errors.configError.title":"Chat configuration error.","errors.general.buttonText":"Restart chat","errors.general.message":"Do you want to start a new chat session?","errors.general.srText":"Something went wrong with the chat session. You can restart the chat.","errors.general.title":"Something went wrong","errors.seamlyOffline.message":"There might be a problem with your or our network connection. The chat session should resume as soon the connection is available again.","errors.seamlyOffline.srText":"The chat has connection issues. There might be a problem with your or our network connection. The chat session should resume as soon as the connection is available again.","errors.seamlyOffline.title":"Connection issues","errors.seamlyUnavailable.buttonText":"Try again","errors.seamlyUnavailable.message":"The server could not be reached. Try again in a little while.","errors.seamlyUnavailable.srText":"The chat server could not be reached. Try again in a little while.","errors.seamlyUnavailable.title":"Server unavailable"},isLoading:!1,initialLocale:void 0};var pa=Wr({[Qr]:(t,e)=>{let{locale:n}=e;return la(la({},t),{},{initialLocale:n})},[Zr.pending]:t=>la(la({},t),{},{isLoading:!0}),[Zr.fulfilled]:(t,e)=>{var n,r;let{payload:o,meta:{arg:i}}=e;return la(la({},t),{},o?{isLoading:!1,locale:i,translations:cn()(n=Sn()(r=S()(o)).call(r)).call(n,((t,e)=>la(la({},t),{},{[e]:o[e]})),{})}:{isLoading:!1})},[Zr.rejected]:t=>la(la({},t),{},{isLoading:!1}),[Zo.pending]:()=>ua},ua);const{SET_SEAMLY_CONTAINER_ELEMENT:fa}=Yn,da=t=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{const e="string"==typeof t?document.getElementById(t):t;En(e)}))}))},ha=()=>{const{seamlyContainerElement:t}=yo(),e=Fi();return[t,Ut((t=>{e({type:fa,element:t})}),[e])]},va=t=>Ut((()=>{da(t)}),[t]),ya=()=>{const t=Eo();return va(t)};function ma(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ga(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=ma(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=ma(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const{SET_USER_SELECTED_OPTION:_a,SET_USER_SELECTED_OPTIONS:ba,SHOW_OPTION:wa,HIDE_OPTION:Ea}=Yn,xa=()=>{var t,e;const{t:n}=sa(),{options:r}=yo(),{panelActive:o,optionActive:i,userSelectedOptions:a,features:s}=r,{cobrowsing:c,sendTranscript:l}=s,u={cobrowsing:c,sendTranscript:l},p=_()(t=w()(e=S()(u)).call(e,(t=>u[t]))).call(t,(t=>({name:t,title:n(`options.${t}.menuTitle`),available:u[t].enabled}))),f=c||l,d=Fi(),{get:h,set:v}=Li();return{allowOptionSelection:f,userSelectedOptions:a,features:s,menuOptions:p,initUserSelectedOptions:Ut((()=>{const t=h("options")||{};d({type:ba,options:t})}),[h,d]),setUserSelectedOptions:Ut((t=>{d({type:ba,options:t}),v("options",t)}),[v,d]),setUserSelectedOption:Ut(((t,e)=>{const n=h("options")||{};v("options",ga(ga({},n),{},{[t]:e})),d({type:_a,option:t,value:e})}),[d,h,v]),showOption:t=>{d({type:wa,optionName:t})},hideOption:()=>{d({type:Ea})},panelActive:o,optionActive:i}},Ta=()=>{const{optionsButtonId:t}=yo();return{id:t,focusButton:va(t)}};var Sa=n(62),Oa=n.n(Sa),Aa=mt({});function Ca(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Na(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Ca(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Ca(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const{CLEAR_ALL_UPLOADS:Ia}=Yn,ja=()=>{const{showFileUpload:t,entryMeta:{options:e,optionsOverride:n},options:{features:{uploads:r}}}=yo(),{allowedMimeTypes:o,maxSize:i}=n.upload||{},{enabled:a,enabledFromEntry:s}=r||{},{allowedMimeTypes:c,maxSize:l}=Na(Na(Na({},e.upload||{allowedMimeTypes:[],maxSize:0}),o?{allowedMimeTypes:o}:{}),i?{maxSize:i}:{});return{showFileUpload:t,accountAllowsUploads:!!r,serviceAllowsUploads:s||a,allowedMimeTypes:c,maxSize:l}},Ra=()=>{const{currentUploads:t}=yo(),e=Fi(),n=Mt(Aa);return{uploadFile:Ut((t=>{n(t)}),[n]),clearUploads:Ut((()=>{e({type:Ia})}),[e]),currentUploads:t,isUploading:N()(t).call(t,(t=>t.uploading)),isComplete:Oa()(t).call(t,(t=>t.complete))}};var ka=n(5843),Pa=n.n(ka);const Da=ge(Yo,(t=>{let{error:e}=t;return e}));function La(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ua(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=La(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=La(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Ma(){const{t:t}=sa(),e=Ge(Da);return{hasInterrupt:Boolean(e),meta:Lt((()=>{if(!e)return{};const{langKey:n,action:r}=e,o=t(`${n}.title`),i=t(`${n}.message`),a=t(`${n}.srText`),s=t(`${n}.buttonText`);return Ua(Ua(Ua(Ua({},n?{title:o,message:i,srText:a}:{}),r?{action:r}:{}),r&&n?{buttonText:s}:{}),{},{originalError:e})}),[t,e]),error:e}}class Fa extends qo{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(t,...n),this.name="SeamlyGeneralError",this.langKey="errors.general",this.action="reset"}}class Ba extends qo{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(t,...n),this.name="SeamlyConfigurationError",this.langKey="errors.configError"}}class Ha extends qo{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(t,...n),this.name="SeamlyOfflineError",this.langKey="errors.seamlyOffline"}}class za extends qo{constructor(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];super(t,...n),this.name="SeamlyUnauthorizedError",this.langKey="errors.general",this.action="reset"}}const $a=[Fa,Ba,Wo,Ha,za,zo];function Va(t){let{api:e}=t;return()=>t=>n=>{const{error:r}=n;if(r){if(!N()($a).call($a,(t=>r instanceof t)))throw r;"reset"===r.action&&e.disconnect().then((()=>{e.clearStore()}))}return t(n)}}function qa(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wa(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=qa(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=qa(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Ga={error:void 0},Ka=(t,e)=>{let{error:n}=e;return Wa(Wa({},t),{},{error:n})};var Ya=Ko({[Jo]:Ka,[Zo.rejected]:Ka,[Qo]:()=>Ga,[Zo.pending]:()=>Ga},Ga);function Ja(){return Ge(po)}const Qa=()=>{const t=We(),e=Ge(ko);return{isVisible:!!e&&e!==be.hidden,isOpen:e===be.open,isMinimized:e===be.minimized,visible:e,setVisibility:Ut((e=>t(Bo(e))),[t])}},Xa=()=>{const t=We(),{connectWhenInView:e}=Ye(),n=Ge(Po),{containerRef:r,isVisible:o}=(t=>{let{freezeOnceVisible:e=!1,enabled:n=!0}=t;const[r,o]=jt(null),i=Dt(null),a=!(null==r||!r.isIntersecting)||!n,s=a&&e,c=t=>{let[e]=t;return o(e)};return kt((()=>{const t=null==i?void 0:i.current;if(!window.IntersectionObserver||s||!t||!n)return()=>{};const e=new IntersectionObserver(c,{threshold:0,root:null,rootMargin:"0%"});return e.observe(t),()=>e.disconnect()}),[n,s]),{isVisible:a,containerRef:i}})({enabled:e,freezeOnceVisible:!0});return kt((()=>{o&&t(Mo())}),[t,o]),{containerRef:r,showInlineView:n}};function Za(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ts(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Za(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Za(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const es={visibility:be.initialize,showInlineView:!1};var ns=Io({[Uo]:(t,e)=>{let{visibility:n}=e;return ts(ts({},t),{},{visibility:n})},[Bo.fulfilled]:(t,e)=>{let{payload:n}=e;return n?ts(ts({},t),{},{visibility:n}):t},[Mo]:t=>ts(ts({},t),{},{showInlineView:!0})},es);const rs=()=>{const[t]=jt((()=>Qt()));return t},os=t=>{const e=Dt();e.current=t;const n="function"==typeof t;return Lt((()=>n?function(){return e.current(...arguments)}:void 0),[n])};function is(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function as(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=is(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=is(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const{ADD_EVENT:ss,SET_INITIAL_STATE:cs}=Yn;var ls=()=>{const t=Di(),e=Ye(),n=Fi(),r=Mt(Pi),o=Ja(),i=Mi(),{visible:a,setVisibility:s}=Qa(),c=wo(),l=Ut((function(){r.emit(...arguments)}),[r]),u=os((()=>{t.sendContext(e.context||{}),l("ui.beforeStart",{visibility:a,hasConversation:i,hasResponded:o,unreadMessageCount:c}),t.send("start"),l("ui.start",{visibility:a,hasConversation:i,hasResponded:o,unreadMessageCount:c})})),p=Ut((async()=>{n(ti())}),[n]),f=Ut((t=>({type:t,id:Qt(),transactionId:Qt(),participant:Ze,fromClient:!0,occurredAt:1e3*Jt()(),meta:{}})),[]),d=Ut((t=>as(as({},f("text")),{},{body:{text:t}})),[f]),h=Ut((e=>{let{body:r,config:o={}}=e;if(""===Pa()(r).call(r))return;const i=as(as({},d(r)),o);t.send("message",i),l("message",i),n({type:ss,event:{type:"message",payload:as(as({},i),{},{optimisticallyInjected:!0})}})}),[t,n,l,d]),v=Ut((t=>{n({type:ss,event:{type:"message",payload:d(t)}})}),[n,d]),y=Ut(((t,e,r,o,i,a,s)=>{n({type:ss,event:{type:"message",payload:{type:"upload",id:t,transactionId:e,participant:Ze,fromClient:!0,occurredAt:r,meta:{},body:{contentType:o,filename:i,filesize:a,url:s}}}})}),[n]),m=Ut((t=>{const e={body:{subtype:t,type:"divider"},fromClient:!1,fromHistory:!0,id:Qt(),transactionId:Qt(),type:"divider"};n({type:ss,event:{type:"info",payload:e}})}),[n]),g=Ut((e=>{let{type:n,subtype:r}=e;const o={type:n,subtype:r,id:Qt(),transactionId:Qt(),participant:Ze,fromClient:!0};t.send("info",o)}),[t]),_=Ut((e=>{if(!e)return;t.send("action",e);const{type:n}=e;n!==Fn&&n!==Bn&&l(`action.${n}`,e)}),[t,l]),b=Ut((e=>{t.sendContext(e)}),[t]),w=Ut((()=>t.connected?$r().reject(new Error("The API is already connected")):t.connect().then((t=>{t&&(n({type:cs,initialState:t}),t.userResponded&&(n(Xo(t.userResponded)),s(be.open)))})).catch((t=>{n(Jo(t))}))),[t,n,s]);return{connect:w,start:u,sendMessage:h,sendInfo:g,sendAction:_,sendContext:b,reset:p,emitEvent:l,addMessageBubble:v,addUploadBubble:y,addDivider:m,apiConnected:t.connected,apiConfigReady:t.configReady}};const us=mt(null),ps=()=>{const t=Mt(us);return{sendPolite:Ut((e=>{t({ariaLive:Wn,messageText:e})}),[t]),sendAssertive:Ut((e=>{t({ariaLive:qn,messageText:e})}),[t])}};var fs=mt(null),ds=()=>Mt(fs),hs=n(1581),vs=n.n(hs);function ys(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const{SET_BLOCK_AUTO_ENTRY_SWITCH:ms,SET_ACTIVE_ENTRY_TYPE:gs,SET_USER_ENTRY_TYPE:_s}=Yn,bs=()=>{const{default:t,active:e,userSelected:n,options:r,optionsOverride:o}=yo().entryMeta,i=Fi(),a=n||e||t,s=o[a]||r[a]||{},c=Ut((t=>{i({type:ms,value:t})}),[i]),l=Ut((t=>{i({type:gs,entryType:t})}),[i]),u=Ut((t=>{i({type:_s,entryType:t})}),[i]),p=Ut((()=>{n?u(null):l(t)}),[n,t,u,l]);return{activeEntry:a,activeEntryOptions:s,setActiveEntryType:l,setUserEntryType:u,cancelEntrySelection:p,setBlockAutoEntrySwitch:c}},{SET_IS_LOADING:ws}=Yn;var Es=()=>{const{t:t}=sa(),{isInline:e,isWindow:n}=Oo(),{isOpen:r,isVisible:o,setVisibility:i}=Qa(),a=Ge(Po),s=Fi(),c=_o(),l=Dt(null),{start:u,connect:p,apiConfigReady:f,apiConnected:d}=ls(),h=Mi(),v=Dt(null),y=Dt(null),m=Dt(!1),{sendAssertive:g}=ps(),_=c.length>0;kt((()=>{o&&en()((()=>{g(t("window.srTexts.onLoad"))}),500)}),[o,g,t]),kt((()=>{if(o!==y.current)return v.current=r,void(y.current=o);null!==v.current&&g(t(r?"window.srTexts.onOpen":"window.srTexts.onClose")),v.current=r,y.current=o}),[r,o,g,t]),kt((()=>{l.current=en()((()=>{s({type:ws,isLoading:!0})}),500)}),[s]),kt((()=>{_&&(clearTimeout(l.current),s({type:ws,isLoading:!1}))}),[_,s]),kt((()=>{f&&d||(m.current=!1)}),[f,d]);const b=Ut((async()=>{d||await p(),(r||o&&e)&&(u(),m.current=!0)}),[d,p,e,r,o,u]);return kt((()=>{!f||m.current||n&&!r&&!h||e&&!a||(h&&r&&(clearTimeout(l.current),s({type:ws,isLoading:!1})),b())}),[f,b,s,h,e,r,n,a]),{openChat:()=>{i(be.open)},closeChat:()=>{i(be.minimized)}}};function xs(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ts(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=xs(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=xs(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const{CLEAR_IDLE_DETACH_COUNTDOWN:Ss,INIT_IDLE_DETACH_COUNTDOWN:Os,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:As,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:Cs}=Yn;var Ns=()=>{const t=Fi(),{idleDetachCountdown:e}=yo(),{isOpen:n}=Qa(),r=Dt({});r.current={hasCountdown:e.hasCountdown,isActive:e.isActive,remaining:e.remaining,wasStopped:e.wasStopped,isOpen:n};const{emitEvent:o,sendAction:i}=ls(),{t:a}=sa(),{sendAssertive:s,sendPolite:c}=ps(),l=Ut((t=>{const{isOpen:e}=r.current;e&&s(t)}),[s]),u=Ut((t=>{const{isOpen:e}=r.current;e&&c(t)}),[c]),p=Ut((e=>{const n=(t=>Math.ceil(t/1e3))(e),r=vn(n);t({type:Os,delaySeconds:n,delayTime:r}),o("idleTimer.start"),l(`${a("idleDetachWarning.countdownTitle")} ${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",r)}`)}),[t,o,l,a]),f=Ut(((e,n)=>{const{hasCountdown:s,wasStopped:c}=r.current;s&&(e||(n||i({type:Hn}),l(a("idleDetachWarning.notifyTransferText"))),c||o("idleTimer.stop"),t({type:Ss}))}),[t,i,o,l,a]),d=Ut((()=>{const{remaining:e}=r.current;if(e<=0)return;const n=e-1;n%10==0&&l(`${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",vn(n))}`),t({type:As})}),[t,l,a]),h=Ut((()=>{const{isActive:e,remaining:n}=r.current;e&&(t({type:Cs}),n&&(o("idleTimer.stop"),u(a("idleDetachWarning.srCountDownStoppedText"))))}),[t,o,u,a]);return Ts(Ts({},e),{},{initCountdown:p,endCountdown:f,decrementCountdown:d,stopCountdown:h})};const{CLEAR_RESUME_CONVERSATION_PROMPT:Is}=Yn;var js=()=>{const t=Fi(),e=yo().resumeConversationPrompt,{sendAction:n}=ls(),{t:r}=sa(),{sendAssertive:o}=ps();return{continueChat:()=>{n({type:"dismiss",body:{type:"resume_conversation_prompt"}}),t({type:Is})},hasPrompt:e,restartChat:()=>{o(r("resumeConversationPrompt.srNotifyRestartText")),n({type:Hn}),t({type:Is})}}};const Rs=(t,e)=>{const n=Di();kt((()=>{var r;n.stream&&(e?w()(r=n.stream()).call(r,e).subscribe({next:t}):n.stream().subscribe({next:t}))}),[n,t,e])};function ks(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ps(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=ks(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=ks(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Ds=lo({[Xo]:(t,e)=>{let{hasResponded:n}=e;return Ps(Ps({},t),{},{userHasResponded:n})}},{userHasResponded:!1});const Ls=(t,e)=>(n,r)=>r[t]||e,Us=no,Ms=ge(Us,(t=>t.originalPayloadIds)),Fs=ge(Ms,Ls("payloadId"),((t,e)=>!un()(t).call(t,e)));function Bs(){const{sendAction:t}=ls(),e=We(),n=os((n=>{t({type:$n,body:{enabled:!0,locale:n}}),e(ro(n))})),r=os((()=>{t({type:$n,body:{enabled:!1}}),e(oo())})),{languages:o,isActive:i,isAvailable:a,currentLocale:s}=Ge(Us,[]);return{languages:o,isActive:i,isAvailable:a,currentLocale:s,enableTranslations:n,disableTranslations:r}}function Hs(){var t,e,n;let{payload:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=null==r?void 0:r.id;let i,a;"participant"===(null==r?void 0:r.type)?(i=r.participant.introduction,a=r.participant.translatedIntroduction):(i=null==r?void 0:r.body,a=null==r?void 0:r.translatedBody);const s=!!a,c=Ke(Fs,{payloadId:o},[o]),l=We(),u=os((()=>{l(c?ao(o):io(o))}));return[s&&c?null===(t=a)||void 0===t?void 0:t.data:i,{hasTranslation:s,isTranslated:c&&s,toggleTranslation:u,translatedBy:null===(e=a)||void 0===e?void 0:e.translatedBy,locale:null===(n=a)||void 0===n?void 0:n.locale}]}function zs(){const t=Ge(Us,[]).containerId;return{id:t,focusContainer:va(t)}}function $s(t){const{languages:e}=Bs();return Lt((()=>{var n;return null==e||null===(n=Nn()(e).call(e,(e=>e.locale===t)))||void 0===n?void 0:n.nativeName}),[t,e])}function Vs(){return t=>{let{dispatch:e,getState:n}=t;return t=>r=>{var o,i,a,s,c,l,u;const p=t(r);switch(r.type){case String(Yn.SET_HISTORY):null!==(o=r.history)&&void 0!==o&&null!==(i=o.translation)&&void 0!==i&&i.enabled&&e(ro(r.history.translation.locale));break;case String(Yn.SET_INITIAL_STATE):null!==(a=r.initialState)&&void 0!==a&&null!==(s=a.translation)&&void 0!==s&&s.enabled&&(e(ro(r.initialState.translation.locale)),e(Zr(r.locale)));break;case String(Yn.ADD_EVENT):"info"===r.event.type&&"new_translation"===(null===(c=r.event)||void 0===c||null===(l=c.payload)||void 0===l||null===(u=l.body)||void 0===u?void 0:u.subtype)&&r.event.payload.body.translationEnabled&&e(Zr(r.event.payload.body.translationLocale));break;case String(oo):const t=Yr(n());e(Zr(t))}return p}}}function qs(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ws(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=qs(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=qs(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Gs={isActive:!1,currentLocale:void 0,isAvailable:!1,languages:[],originalPayloadIds:[],containerId:Qt()};var Ks=eo({[Yn.SET_FEATURES]:(t,e)=>{var n;const r=null==e||null===(n=e.features)||void 0===n?void 0:n.translation;return r?Ws(Ws({},t),{},{isAvailable:!0===r.enabled,languages:r.languages||[]}):t},[Yn.CLEAR_FEATURES]:()=>Gs,[ro]:(t,e)=>{let{locale:n}=e;return Ws(Ws({},t),{},{isActive:!0,currentLocale:n})},[oo]:t=>Ws(Ws({},t),{},{isActive:!1,currentLocale:void 0}),[io]:(t,e)=>{var n,r;let{payloadId:o}=e;return un()(n=t.originalPayloadIds).call(n,o)?Ws(Ws({},t),{},{originalPayloadIds:w()(r=t.originalPayloadIds).call(r,(t=>t!==o))}):t},[ao]:(t,e)=>{var n;let{payloadId:r}=e;return un()(n=t.originalPayloadIds).call(n,r)?t:Ws(Ws({},t),{},{originalPayloadIds:[...t.originalPayloadIds,r]})},[Zo.pending]:()=>Gs},Gs);const Ys={send32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M6.714,14.985l17.837-7.906c0.681-0.302,1.414,0.301,1.25,1.027L22.273,23.59\tc-0.13,0.566-0.751,0.865-1.275,0.613l-3.623-1.752l-2.334,2.287c-0.572,0.562-1.538,0.156-1.538-0.645V21.01\tc0-0.217,0.078-0.43,0.222-0.594l7.676-8.841l-10.414,7.472l-4.351-2.445C5.987,16.236,6.033,15.287,6.714,14.985L6.714,14.985z"/></svg>',balloon32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M24,10.824v10.375c0,1.104-0.896,2-2,2h-4.694l-4.931,3.625v-3.625H10c-1.104,0-2-0.896-2-2V10.824\tc0-1.104,0.896-2,2-2h12C23.104,8.824,24,9.719,24,10.824z"/></svg>',newTopic32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><path fill="#4A48C1" d="M16,8.593l2.407,4.573l5.093,0.876l-3.604,3.702l0.74,5.115L16,20.574l-4.634,2.285l0.739-5.115L8.5,14.042\tl5.094-0.876L16,8.593z"/></svg>',newTranslation16:'<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 16 16"><path fill="#4A48C1" d="M8,0C3.6,0,0,3.6,0,8s3.6,8,8,8s8-3.6,8-8S12.4,0,8,0z M14.1,7.1h-1.4c-0.1-1.5-0.4-2.9-1-4\tC13,4,13.9,5.4,14.1,7.1z M7.1,2.1v5H5C5.2,4.7,6.1,2.9,7.1,2.1z M7.1,8.9v5c-1-0.7-1.9-2.5-2.1-5H7.1z M8.9,13.9v-5H11\tC10.8,11.3,9.9,13.2,8.9,13.9z M8.9,7.1v-5c1,0.7,1.9,2.5,2.1,5H8.9z M4.2,3.1c-0.5,1.1-0.9,2.5-1,4H1.9C2.1,5.4,3,4,4.2,3.1z M1.9,8.9h1.4c0.1,1.5,0.4,2.9,1,4C3,12,2.1,10.5,1.9,8.9z M11.8,12.9c0.5-1.1,0.9-2.5,1-4h1.4C13.9,10.5,13,12,11.8,12.9z"/></svg>',newTranslation32:'<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 32 32"><path fill="#4A48C1" d="M16,7c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4.1,9-9S20.9,7,16,7z M22.9,15h-1.6c-0.1-1.7-0.5-3.3-1.1-4.5\tC21.6,11.5,22.6,13.1,22.9,15z M15,9.4V15h-2.3C12.9,12.3,13.9,10.2,15,9.4z M15,17v5.6c-1.1-0.8-2.1-2.9-2.3-5.6H15z M17,22.6V17\th2.3C19.1,19.8,18.1,21.8,17,22.6z M17,15V9.4c1.1,0.8,2.1,2.9,2.3,5.6H17z M11.8,10.4c-0.6,1.3-1,2.8-1.1,4.5H9.1\tC9.4,13.1,10.4,11.5,11.8,10.4z M9.1,17h1.6c0.1,1.7,0.5,3.3,1.1,4.5C10.4,20.5,9.4,18.9,9.1,17z M20.2,21.5c0.6-1.3,1-2.8,1.1-4.5\th1.6C22.6,18.8,21.6,20.5,20.2,21.5z"/></svg>',avatar32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#003A5D" d="M0,4.717C0,2.112,2.112,0,4.717,0h22.566C29.888,0,32,2.112,32,4.717v22.566C32,29.887,29.888,32,27.283,32 H4.717C2.113,32,0,29.887,0,27.283V4.717z"/><path fill="#FFF" d="M10.103,14.901c-1.107,0-2.004-0.897-2.004-2.004s0.897-2.005,2.004-2.005c1.107,0,2.005,0.897,2.005,2.005 C12.108,14.004,11.211,14.901,10.103,14.901z M16,14.901c1.107,0,2.005-0.897,2.005-2.004S17.108,10.892,16,10.892 c-1.108,0-2.005,0.897-2.005,2.005C13.995,14.004,14.892,14.901,16,14.901z M21.896,10.892c-1.106,0-2.004,0.897-2.004,2.005 c0,1.107,0.896,2.004,2.004,2.004c1.109,0,2.005-0.897,2.005-2.004C23.901,11.789,23.005,10.892,21.896,10.892z M21.408,18.207 H10.783C11.83,23.973,20.361,23.973,21.408,18.207z"/></svg>',chevronDown8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M-0.001,2.876c0-0.247,0.091-0.494,0.273-0.688c0.38-0.401,1.013-0.418,1.414-0.039l1.938,1.834\tc0.199,0.188,0.547,0.188,0.746,0L6.31,2.15c0.401-0.379,1.034-0.362,1.414,0.04c0.379,0.401,0.361,1.034-0.04,1.414L5.745,5.437\tC4.782,6.35,3.213,6.35,2.249,5.436L0.311,3.603C0.103,3.406-0.001,3.142-0.001,2.876z"/></svg>',chevronDown32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M16,20.425c-0.782,0-1.563-0.291-2.159-0.874l-6.541-6.408c-0.395-0.387-0.401-1.02-0.015-1.414\tc0.387-0.394,1.021-0.4,1.414-0.015l6.541,6.408c0.42,0.409,1.102,0.409,1.52-0.001l6.541-6.407c0.396-0.386,1.028-0.38,1.414,0.015\tc0.387,0.395,0.381,1.027-0.014,1.414l-6.541,6.407C17.563,20.133,16.782,20.425,16,20.425z"/></svg>',chevronRight8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M2.875,7.998c-0.247,0-0.494-0.091-0.688-0.273c-0.401-0.38-0.418-1.013-0.039-1.414l1.834-1.938\tc0.188-0.199,0.188-0.547,0-0.746l-1.835-1.94c-0.379-0.401-0.362-1.034,0.04-1.414s1.034-0.361,1.414,0.04l1.834,1.939\tc0.913,0.963,0.913,2.532-0.001,3.496L3.601,7.686C3.405,7.894,3.14,7.998,2.875,7.998z"/></svg>',chevronRight16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#4A48C1" d="M6.5,13c-0.247,0-0.494-0.091-0.687-0.273c-0.401-0.38-0.419-1.013-0.04-1.414L8.22,8.727\tc0.373-0.394,0.373-1.06,0-1.454L5.773,4.687c-0.379-0.401-0.362-1.034,0.04-1.414c0.4-0.378,1.034-0.362,1.414,0.04l2.446,2.586\tc1.096,1.159,1.096,3.043,0,4.203l-2.446,2.586C7.03,12.896,6.765,13,6.5,13z"/></svg>',close8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M7.705,7.729C7.511,7.923,7.255,8.02,7,8.02c-0.257,0-0.514-0.099-0.709-0.295L4,5.423L1.709,7.725\tC1.513,7.921,1.257,8.02,1,8.02c-0.255,0-0.51-0.097-0.706-0.291c-0.391-0.39-0.393-1.022-0.003-1.414l2.298-2.309l-2.27-2.28\tC-0.07,1.334-0.068,0.701,0.323,0.311c0.392-0.389,1.024-0.387,1.415,0.003L4,2.587l2.263-2.274C6.653-0.077,7.287-0.079,7.677,0.31\tC8.068,0.7,8.07,1.333,7.681,1.725l-2.27,2.281l2.298,2.309C8.099,6.705,8.097,7.339,7.705,7.729z"/></svg>',close16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#4A48C1" d="M12.709,11.295L9.411,7.982l3.262-3.276c0.39-0.392,0.388-1.024-0.004-1.414\tc-0.39-0.39-1.023-0.388-1.414,0.003L8,6.564L4.746,3.295C4.357,2.904,3.724,2.903,3.332,3.292C2.94,3.682,2.939,4.315,3.329,4.707\tl3.261,3.275l-3.298,3.313c-0.39,0.391-0.388,1.024,0.003,1.414C3.49,12.903,3.745,13,4,13c0.257,0,0.513-0.099,0.708-0.295L8,9.399\tl3.291,3.306C11.486,12.901,11.743,13,12,13c0.255,0,0.511-0.097,0.705-0.291C13.097,12.319,13.099,11.686,12.709,11.295z"/></svg>',enlarge32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M24,9v6.5c0,0.552-0.447,1-1,1s-1-0.448-1-1v-4.086L11.414,22H15.5c0.552,0,1,0.447,1,1s-0.448,1-1,1H9\tc-0.13,0-0.26-0.026-0.382-0.077c-0.245-0.102-0.439-0.296-0.541-0.541C8.026,23.26,8,23.13,8,23v-6.5c0-0.552,0.448-1,1-1\ts1,0.448,1,1v4.085L20.586,10H16.5c-0.552,0-1-0.448-1-1s0.448-1,1-1H23c0.13,0,0.26,0.026,0.382,0.077\tc0.245,0.102,0.439,0.296,0.541,0.541C23.974,8.74,24,8.87,24,9z"/></svg>',options32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M26.1,21.383c0.334-0.625,0.602-1.279,0.812-1.949L32,18.609V13.51l-5.058-0.846\tc-0.208-0.67-0.468-1.325-0.795-1.956l3.009-4.145l-3.604-3.634L21.38,5.903c-0.626-0.333-1.276-0.602-1.948-0.81L18.609,0\tl-5.098,0.001l-0.847,5.061c-0.669,0.203-1.326,0.465-1.957,0.794L6.562,2.847L2.929,6.449l2.973,4.171\tC5.569,11.247,5.3,11.9,5.091,12.569L0,13.373v5.099l5.06,0.866c0.204,0.669,0.467,1.324,0.796,1.955l-3.009,4.146l3.601,3.635\tl4.171-2.975c0.627,0.335,1.282,0.603,1.951,0.811L13.372,32h5.118l0.849-5.057c0.668-0.207,1.323-0.469,1.953-0.795l4.144,3.01\tl3.639-3.604L26.1,21.383z M19.01,19.035c-1.675,1.663-4.381,1.652-6.041-0.025c-1.662-1.675-1.649-4.381,0.024-6.042\tc1.676-1.661,4.382-1.648,6.043,0.025C20.699,14.67,20.686,17.377,19.01,19.035z"/></svg>',file32:'<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" x="0px" y="0px" version="1.1" viewBox="0 0 32 32"><path fill="#4A48C1" d="M16,28.5c-3.6,0-6.5-3-6.5-6.6V9.6c0-0.6,0.4-1,1-1s1,0.4,1,1v12.3c0,2.5,2,4.6,4.5,4.6\tc2.5,0,4.5-2.1,4.5-4.6V8.3c0-1.5-1.2-2.8-2.7-2.8c-1.5,0-2.7,1.3-2.7,2.8v13.5c0,0.6,0.5,1.1,1,1.1c0.6,0,1-0.5,1-1.1v-10\tc0-0.6,0.4-1,1-1s1,0.4,1,1v10c0,1.7-1.4,3.1-3,3.1s-3-1.4-3-3.1V8.3c0-2.6,2.1-4.8,4.7-4.8c2.6,0,4.7,2.2,4.7,4.8v13.6\tC22.5,25.5,19.6,28.5,16,28.5z"/></svg>',upload32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M9.488,13.481c-0.391-0.391-0.391-1.023,0-1.414l5.805-5.805c0.026-0.026,0.06-0.036,0.088-0.058\tc0.073-0.06,0.146-0.119,0.235-0.156c0.246-0.103,0.522-0.103,0.769,0c0.093,0.039,0.171,0.101,0.249,0.165\tc0.023,0.02,0.053,0.027,0.074,0.049l5.805,5.805c0.391,0.391,0.391,1.023,0,1.414c-0.195,0.195-0.451,0.293-0.707,0.293\ts-0.512-0.098-0.707-0.293L17,9.383V20.33c0,0.553-0.447,1-1,1c-0.552,0-1-0.447-1-1V9.383l-4.098,4.098\tC10.512,13.872,9.879,13.872,9.488,13.481z M22.819,24.031H9.181c-0.552,0-1,0.447-1,1s0.448,1,1,1h13.639c0.553,0,1-0.447,1-1\tS23.372,24.031,22.819,24.031z"/></svg>',download16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#FFF" d="M3.175,7.726c-0.413-0.367-0.45-0.999-0.083-1.412c0.367-0.413,0.999-0.45,1.412-0.083L7,8.45V1.5\tc0-0.552,0.448-1,1-1c0.553,0,1,0.448,1,1v6.95l2.496-2.219c0.412-0.367,1.044-0.331,1.411,0.083\tc0.367,0.413,0.33,1.045-0.083,1.412l-4.16,3.698c-0.047,0.041-0.103,0.062-0.154,0.094c-0.047,0.028-0.089,0.064-0.141,0.085\tC8.25,11.649,8.125,11.677,8,11.677c-0.126,0-0.25-0.027-0.369-0.074c-0.05-0.021-0.09-0.055-0.136-0.083\tc-0.053-0.031-0.111-0.053-0.159-0.096L3.175,7.726z M12.018,13.5H3.983c-0.552,0-1,0.447-1,1s0.448,1,1,1h8.035\tc0.553,0,1-0.447,1-1S12.57,13.5,12.018,13.5z"/></svg>',error16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#ad001f" d="M15.744,13.104L9.097,1.47c-0.604-1.055-1.59-1.055-2.193,0L0.256,13.104\tc-0.604,1.056-0.102,1.919,1.113,1.919H14.63C15.847,15.022,16.348,14.159,15.744,13.104z M7,5.045c0-0.552,0.448-1,1-1s1,0.448,1,1\tv3.656c0,0.552-0.448,1-1,1s-1-0.448-1-1V5.045z M8,13.212c-0.748,0-1.354-0.607-1.354-1.354c0-0.748,0.606-1.354,1.354-1.354\ts1.354,0.606,1.354,1.354C9.354,12.604,8.748,13.212,8,13.212z"/></svg>',arrowLeft16:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">\n<path fill="#5053A4" d="M13.6,8c0,0.6-0.4,1-1,1h-7l2.2,2.5c0.4,0.4,0.3,1-0.1,1.4c-0.2,0.2-0.4,0.2-0.7,0.2c-0.3,0-0.6-0.1-0.8-0.3\n\tL2.6,8.6c0,0-0.1-0.1-0.1-0.2c0,0-0.1-0.1-0.1-0.1c0-0.1-0.1-0.2-0.1-0.3c0,0,0,0,0,0c0,0,0,0,0,0c0-0.1,0-0.3,0.1-0.4\n\tc0,0,0.1-0.1,0.1-0.1c0-0.1,0.1-0.1,0.1-0.2l3.7-4.1c0.4-0.4,1-0.4,1.4-0.1c0.4,0.4,0.4,1,0.1,1.4L5.6,7h7C13.2,7,13.6,7.4,13.6,8z"\n\t/>\n</svg>\n',arrowRight16:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">\n<path fill="#5053A4" d="M2.4,8.1c0-0.6,0.4-1,1-1h7L8.1,4.5c-0.4-0.4-0.3-1,0.1-1.4c0.2-0.2,0.4-0.2,0.7-0.2c0.3,0,0.6,0.1,0.8,0.3\n\tl3.7,4.2c0,0,0.1,0.1,0.1,0.2c0,0,0.1,0.1,0.1,0.1c0,0.1,0.1,0.2,0.1,0.3c0,0,0,0,0,0c0,0,0,0,0,0c0,0.1,0,0.3-0.1,0.4\n\tc0,0-0.1,0.1-0.1,0.1c0,0.1-0.1,0.1-0.1,0.2l-3.7,4.1c-0.4,0.4-1,0.4-1.4,0.1c-0.4-0.4-0.4-1-0.1-1.4l2.2-2.4h-7\n\tC2.8,9.1,2.4,8.6,2.4,8.1z"/>\n</svg>\n'};var Js=t=>{let{name:e,size:n="32",className:r,alt:o}=t;const i=`${e}${n}`;return Ne(J,{children:[Ne("div",{"aria-hidden":"true",className:r||Ri("icon"),dangerouslySetInnerHTML:{__html:Ys[i]}}),o&&Ne("span",{className:Ri("visually-hidden"),children:o})]})},Qs=n(4198),Xs=n.n(Qs);const Zs={visible:Ri("transition--visible"),in:Ri("transition--in"),visuallyHidden:Ri("visually-hidden")},tc=A()(Zs),ec={notRendered:"notRendered",rendered:"rendered",visuallyHidden:"visuallyHidden"};var nc=t=>{var e;let{children:n,isActive:r,timeout:o,transitionStartState:i=ec.notRendered,onInTransitionComplete:a,onOutTransitionComplete:s}=t;const c=Dt(!1),l=o?Xs()(o,10):300,u=os(a),p=os(s),f=i===ec.visuallyHidden,[d,h]=jt((()=>f?[Zs.visuallyHidden]:[])),v="notRendered"!==i||d.length>0;return kt((()=>{let t=null,e=null;return c.current&&!r&&(h([Zs.visible]),t=en()((()=>{h([...f?[Zs.visuallyHidden]:[]]),p&&(e=requestAnimationFrame((()=>{p()})))}),l)),!c.current&&r&&(h([Zs.visible]),e=requestAnimationFrame((()=>{e=requestAnimationFrame((()=>{h([Zs.visible,Zs.in]),u&&(t=en()((()=>{u()}),l))}))}))),c.current=r,()=>{clearTimeout(t),cancelAnimationFrame(e)}}),[r,f,l,u,p]),v&&_()(e=ot(n)).call(e,(t=>{var e;const{className:n=""}=t.props;return function(t,e,n){var r,o,i,a=W({},t.props);for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];return arguments.length>2&&(a.children=arguments.length>3?L.call(arguments,2):n),Y(t.type,a,r||t.key,o||t.ref,null)}(t,{className:[...w()(e=n.split(" ")).call(e,(t=>!un()(tc).call(tc,t))),...d].join(" ")})}))},rc=t=>{let{className:e,children:n,onCancel:r,headingText:o,cancelButtonText:i,disableButtonFocusing:a,cancelButtonRef:s,position:c="right"}=t;const l=Dt(null),u=rs(),{hideOption:p}=xa(),{focusButton:f}=Ta();return kt((()=>{En(l.current)}),[]),Ne("section",{className:Ri("options",{"options--right":"left"!==c,"options--left":"left"===c},e),"aria-labelledby":u,tabIndex:"-1",ref:l,children:Ne("div",{className:Ri("options__body"),children:[Ne("h2",{id:u,className:Ri("options__title"),children:o}),Ne("button",{type:"button",onClick:()=>{r&&r(),p(),a||f()},"aria-describedby":u,className:Ri("button","options__close"),ref:t=>{s&&(s.current=t)},children:[Ne(Js,{name:"close",size:"16"}),Ne("span",{children:i})]}),Ne("div",{className:Ri("options__wrapper"),children:n})]})})};const{createActions:oc,createReducer:ic,selectState:ac}=ie("forms"),[sc,cc]=oc("form",{register:(t,e)=>({formId:t,persistData:e}),deregister:t=>({formId:t})}),[lc,uc,pc,fc]=oc("control",{register:(t,e)=>({formId:t,name:e}),deregister:(t,e)=>({formId:t,name:e}),updateValue:(t,e,n)=>({formId:t,name:e,value:n}),updateTouched:(t,e,n)=>({formId:t,name:e,touched:n})}),dc=ge(ac,Ls("formId"),((t,e)=>t[e])),hc=ge(dc,(t=>(null==t?void 0:t.controls)||{})),vc=ge(hc,(t=>{var e;const n={};return x()(e=j()(t)).call(e,(t=>{let[e,{value:r}]=t;n[e]=r})),n})),yc=ge(hc,Ls("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.value})),mc=ge(hc,Ls("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.touched})),gc=mt({});var _c=gc;const{Provider:bc,Consumer:wc}=gc;function Ec(){return Mt(_c)}function xc(t){const e=We(),{formId:n,updateControlValue:r,updateControlTouched:o,errors:i}=Ec(),a=!!Ke(dc,{formId:n},[n]),s=Dt();s.current=a;const c=Ke(yc,{formId:n,name:t},[n,t]),l=Ke(mc,{formId:n,name:t},[n,t]),u=null==i?void 0:i[t],p=!u;kt((()=>{s.current&&e(lc(n,t))}),[a,n,t,e]),Pt((()=>()=>{e(uc(n,t))}),[a,n,t,e]);const f=Ut((e=>r(t,e.target.value)),[t,r]),d=Ut((()=>{o(t,!0)}),[o,t]);return[Lt((()=>({name:t,onInput:f,onBlur:d,value:c})),[t,f,d,c]),Lt((()=>({isValid:p,error:u,touched:l})),[p,u,l])]}const Tc=["children","formId","persistData","onError","onSubmit","validationSchema"];function Sc(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Oc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Sc(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Sc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Ac(t){let{children:n,formId:r,persistData:o,onError:i,onSubmit:a,validationSchema:s}=t,c=D(t,Tc);const l=We(),u=Ke(vc,{formId:r},[r]),[p,f]=jt(!1),[d,h]=jt({}),{isValid:v,errors:y}=function(t,n){const r=Lt((()=>function(t){var n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cn()(n=j()(r)).call(n,((n,r)=>{let[o,i]=r;i&&!e()(i)&&(i=[i]);for(let e=0;e<(null===(a=i)||void 0===a?void 0:a.length);e++){var a;if(!i[e].fn(t[o],i[e].compareValue)){n[o]=i[e].errorText;break}}return n}),{})}(t,n)),[t,n]);return{isValid:0===S()(r).length,errors:r}}(u,s),m=Lt((()=>Oc(Oc({},y),d)),[y,d]);Pt((()=>{l(sc(r,o))}),[r,o,l]),kt((()=>()=>{l(cc(r))}),[r,o,l]);const g=Ut(((t,e)=>{l(pc(r,t,e))}),[r,l]),_=Ut(((t,e)=>{l(fc(r,t,e))}),[l,r]),b=Ut(((t,e)=>{h((n=>Oc(Oc({},n),{},{[t]:e})))}),[h]),w=Ut((t=>{var e;t.preventDefault();const n="true"===(null===(e=t.submitter)||void 0===e?void 0:e.ariaDisabled);f(!n),!n&&v&&(l(Xo(!0)),a(u,{updateControlValue:g,setError:b}))}),[v,l,a,u,g,b]);kt((()=>{i&&i({errors:m,isSubmitted:p,isValid:0===S()(m).length})}),[p,m,i]);const E=Lt((()=>({formId:r,values:u,errors:m,isValid:0===S()(m).length,isSubmitted:p,handleSubmit:w,validationSchema:s,updateControlValue:g,updateControlTouched:_})),[r,u,m,p,w,s,g,_]);return r?a?Ne(bc,Oc(Oc({},c),{},{value:E,children:n})):(console.error('"onSubmit" is required.'),null):(console.error('"formId" is required.'),null)}function Cc(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Cc(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Cc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Ic={},jc={controls:{}},Rc={value:"",touched:!1};function kc(t,e,n,r){var o;const i=(null===(o=t[e])||void 0===o?void 0:o.controls[n])||Rc;return Nc(Nc({},t),{},{[e]:Nc(Nc({},t[e]),{},{controls:Nc(Nc({},t[e].controls),{},{[n]:Nc(Nc({},i),r)})})})}var Pc=ic({[sc]:(t,e)=>{let{formId:n,persistData:r}=e;const o=r?t[n]??Nc(Nc({},jc),{},{persistData:r}):Nc(Nc({},jc),{},{persistData:r});return Nc(Nc({},t),{},{[n]:o})},[cc]:(t,e)=>{var n;let{formId:r}=e;const o=Nc({},t);return null!==(n=o[r])&&void 0!==n&&n.persistData||delete o[r],o},[lc]:(t,e)=>{let{name:n,formId:r}=e;return kc(t,r,n)},[uc]:(t,e)=>{let{formId:n,name:r}=e;const o=t[n];if(!o)return t;if(o.persistData)return t;const i=Nc({},o.controls);return delete i[r],Nc(Nc({},t),{},{[n]:Nc(Nc({},o),{},{controls:i})})},[pc]:(t,e)=>{let{formId:n,name:r,value:o}=e;return kc(t,n,r,{value:o})},[fc]:(t,e)=>{let{formId:n,name:r,touched:o}=e;return kc(t,n,r,{touched:o})},[Zo.pending]:()=>Ic},Ic);const{REGISTER_FORM:Dc,DE_REGISTER_FORM:Lc,REGISTER:Uc,DE_REGISTER:Mc,SET_VALUE:Fc,SET_VALIDITY:Bc,SET_STATE:Hc,SET_SUBMITTED:zc,SET_PERSIST_FORM_DATA:$c}={REGISTER_FORM:"REGISTER_FORM",DE_REGISTER_FORM:"DE_REGISTER_FORM",REGISTER:"REGISTER",DE_REGISTER:"DEREGISTER",SET_VALUE:"SET_VALUE",SET_VALIDITY:"SET_VALIDITY",SET_STATE:"SET_STATE",SET_SUBMITTED:"SET_SUBMITTED",SET_PERSIST_FORM_DATA:"SET_PERSIST_FORM_DATA"},Vc=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{fn:t,errorText:e,compareValue:n}},qc=(t,e)=>{let n=!0;for(let r=0;r<t.length;r++)t[r].size>e&&(n=!1);return n},Wc=t=>!(null==t||!t.length)>0,Gc=t=>{const e=t&&Pa()(t).call(t);return!(!e||!e.match(/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i))},Kc=t=>!!t,Yc=["className","disableValidationClasses"];function Jc(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var Qc=function(t){let{className:e,disableValidationClasses:n}=t,r=D(t,Yc);const{handleSubmit:o,isValid:i,isSubmitted:a}=function(){const{handleSubmit:t,isSubmitted:e,isValid:n}=Ec();return{handleSubmit:t,isSubmitted:e,isValid:n}}(),s=["form"];return!n&&a&&(s.push("form--submitted"),i?s.push("form--valid"):s.push("form--invalid")),Ne("form",function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Jc(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Jc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({onSubmit:o,className:Ri([...s,e])},r))};function Xc(t){let{id:e,error:n}=t;const[r,o]=jt(!1);return kt((()=>{const t=en()((()=>o(!0)),300);return()=>clearTimeout(t)}),[]),Ne("div",{className:Ri("error"),"aria-live":"assertive","aria-atomic":"true",children:r&&n&&Ne("span",{id:e,className:Ri("error__message"),children:[Ne(Js,{name:"error",size:"16"}),n]})})}var Zc=t=>{let{contentHint:e,id:n,labelText:r,labelClass:o=Ri("label"),validity:i,errorText:a,children:s}=t;return Ne(J,{children:[Ne("label",{htmlFor:n,className:o,children:r}),e&&Ne("span",{id:`${n}-content-hint`,className:Ri("input__content-hint"),children:e}),Ne(Xc,{id:`${n}-error`,error:!i&&a}),s]})};const tl=["id","name","labelText","labelClass","contentHint","aria-describedby","options"];function el(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function nl(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=el(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=el(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var rl=t=>{let{id:e,name:n,labelText:r,labelClass:o,contentHint:i,"aria-describedby":a,options:s=[]}=t,c=D(t,tl);const{isSubmitted:l}=Ec(),[u,{error:p}]=xc(n),f=l&&p,d=[];return a&&d.push(a),i&&d.push(`${e}-content-hint`),f&&d.push(`${e}-error`),Ne(Zc,{id:e,contentHint:i,validity:!f,errorText:p,labelText:r,labelClass:o,children:Ne("select",nl(nl(nl({id:e,name:n,"aria-invalid":f?"true":"false","aria-describedby":d.join(" ")||null},u),c),{},{children:_()(s).call(s,(t=>Ne("option",{value:t.value,children:t.label},t.value)))}))})},ol=function(t){let{controlName:e,descriptionId:n}=t;const{t:r}=sa(),{isActive:o,languages:i,currentLocale:a}=Bs(),{locale:s}=sa(),c=$s(a),l=Lt((()=>{var t;return[{value:"",label:r("translations.settings.defaultOptionLabel")},..._()(t=w()(i).call(i,(t=>t.locale.toLowerCase()!==String(s).toLowerCase()))).call(t,(t=>({value:t.locale,label:t.nativeName})))]}),[r,i,s]);return Ne(Qc,{noValidate:"true",className:Ri("options__form"),children:[Ne("p",{className:Ri("options__description"),id:n,children:r("translations.settings.description")}),o?Ne(J,{children:[Ne("h3",{children:r("translations.settings.currentTranslationLabel")}),Ne("p",{className:Ri("options__active-language"),children:c})]}):Ne(rl,{name:e,type:"text",className:Ri("input__select"),"aria-describedby":n,labelClass:Ri("label"),labelText:r("translations.settings.inputLabel"),options:l,defaultValue:a||""}),Ne("div",{className:Ri("options__actions"),children:Ne("button",{type:"submit",className:Ri("button","button--primary","options__submit"),children:r(o?"translations.settings.endButtonText":"translations.settings.startButtonText")})})]})};const il="translation-settings",al="locale";var sl=function(t){let{onClose:e}=t;const[n,r]=jt(void 0),{t:o}=sa(),{isActive:i,enableTranslations:a,disableTranslations:s}=Bs(),c=rs(),{focusContainer:l}=zs(),u=Ut((t=>{let{isValid:e,isSubmitted:n}=t;r(n&&!e?"options--error":void 0)}),[r]),p=Dt(0),f=Lt((()=>(p.current+=1,i?{}:{[al]:Vc(Kc,o("translations.settings.noLocaleText"))})),[i,o]);return Ne(rc,{className:n,onCancel:e,formName:il,headingText:o("translations.settings.title"),cancelButtonText:o("translations.settings.cancelButtonText"),position:"left",disableButtonFocusing:!0,children:Ne(Ac,{onSubmit:t=>{let{locale:n}=t;i?s():(a(n),e(),l())},formId:il,validationSchema:f,onError:u,children:Ne(ol,{controlName:al,descriptionId:c})},p.current)})};function cl(){const{t:t,locale:e}=sa(),[n,r]=jt(!1),o=Dt(null),i=rs(),a=$s(e);return Ne("div",{className:Ri("translations__container"),onKeyDown:t=>{n&&wn(t)===bn.Escape&&(r(!1),En(o.current))},children:[Ne(nc,{transitionStartState:ec.notRendered,isActive:n,children:Ne("div",{className:Ri("options__dialog"),role:"dialog",children:Ne(sl,{onClose:()=>{r(!1)}})})}),Ne("button",{type:"button",className:Ri(["button","button--secondary","chat__options__button"]),id:i,onClick:()=>{r((t=>!t))},onKeyDown:t=>{wn(t)===bn.ArrowDown&&(r(!0),t.preventDefault())},ref:o,"aria-haspopup":"dialog","aria-expanded":n.toString(),children:[Ne(Js,{name:"newTranslation",size:"16"}),Ne("span",{className:Ri("button__text"),children:t("translations.settings.openButtonText",{hasLanguage:!!a,language:a})})]})]})}function ll(t){let{id:e,label:n,onButtonClick:r,buttonText:o,srButtonText:i,type:a}=t;const s=rs();return Ne("section",{className:Ri("chat-status",a&&`chat-status--${a}`),id:e,tabIndex:"-1","aria-labelledby":s,children:[Ne("h2",{className:Ri("chat-status__title"),id:s,children:n}),Ne("button",{type:"button",className:Ri("button","button--tertiary"),onClick:r,children:[Ne("span",{"aria-hidden":i?"true":void 0,children:o}),i&&Ne("span",{className:Ri("visually-hidden"),children:i})]})]})}function ul(){const{t:t}=sa(),{id:e}=zs(),{hasInterrupt:n}=Ma(),{isActive:r,disableTranslations:o,currentLocale:i}=Bs(),a=$s(i),s=ya(),c=Ut((()=>{o(),s()}),[o,s]);return!r||n?null:Ne(ll,{type:"translations",id:e,label:t("translations.status.label",{language:a}),onButtonClick:c,buttonText:t("translations.status.stopText"),srButtonText:t("translations.status.srStopText")})}const pl=t=>`suggestions__item--${String(t).toLowerCase().replace(/[^a-z0-9_\\-]/,"")}`;var fl=t=>{let{id:e,categories:n=[],question:r,onClick:o,hasIcon:i}=t;const a=Lt((()=>["suggestions__item",..._()(n).call(n,pl)]),[n]),s=Ut((()=>{o&&o({id:e,question:r})}),[e,r,o]);return Ne("li",{className:Ri(a),children:Ne("button",{type:"button",onClick:s,className:Ri("button","button--primary"),children:[i&&Ne(Js,{name:"chevronRight",size:"8"}),r]})})};function dl(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var hl=t=>{let{className:e,suggestions:n=[],onClickSuggestion:r,hasIcon:o=!0}=t;return Ne("ul",{className:Ri("suggestions__list",e),children:_()(n).call(n,(t=>Ne(fl,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=dl(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=dl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({hasIcon:o,onClick:r},t),t.id)))})},vl=t=>{let{isAside:e}=t;const{layoutMode:n}=Ye(),{t:r}=sa(),{sendAction:o,addMessageBubble:i}=ls(),{isOpen:a,setVisibility:s}=Qa(),c=rs(),l=ya(),u=Dt(null),{sendPolite:p}=ps(),{hasInterrupt:f}=Ma(),{hasCountdown:d,endCountdown:h}=Ns(),{hasPrompt:v,continueChat:y}=js(),m=Ja(),g=So("suggestion"),[_]=Hs({payload:g}),b=Lt((()=>g&&!f?_:[]),[g,f,_]),w=Dt(null),E=Dt(!1),x=Dt([]),T=!!b.length,S="inline"===n?(m||a)&&!e:m,O=Dt(S),A=T&&!S,C=T?b:x.current;x.current=C;const N=Ut((t=>{let{id:e,question:n}=t;d&&h(!0),v&&y(),o({type:Mn,originMessage:g.id,body:{type:"faqclick",body:{faqId:e,faqQuestion:n}}}),i(n),a||s(be.open),l()}),[i,y,h,l,d,v,g,o,s,a]);kt((()=>{if(w.current!==b&&!S){if(T){const t=E.current?r("suggestions.srUpdatedText"):r("suggestions.srAvailableText");en()((()=>{p(t)}),30)}else E.current&&p(r("suggestions.srUnavailableText"));w.current=b}!O.current&&S?(xn(u.current,l),p(r("suggestions.srUnavailableText"))):!T&&E.current&&xn(u.current,l),E.current=T,O.current=S}),[b,T,S,l,p,r]);const I=r("suggestions.headingText"),j=r("suggestions.footerText"),R=I?"section":"div";return Ne(nc,{isActive:A,transitionStartState:ec.notRendered,children:Ne(R,{className:Ri("suggestions"),"aria-labelledby":I?c:null,ref:u,children:[I&&Ne("p",{id:c,className:Ri("suggestions__heading"),children:I}),!!C.length&&Ne(hl,{suggestions:C,onClickSuggestion:N}),j&&!a&&Ne("p",{className:Ri("suggestions__footer"),children:j})]})})};const yl=function(t){function e(e){var n=ci({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=fi,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}(((t,e)=>{let{children:n,className:r=""}=t;const{isOpen:o,isVisible:i,setVisibility:a}=Qa(),{namespace:s,layoutMode:c}=Ye(),{isInline:l}=Oo(),u=Bi(),p=Ja(),{t:f}=sa(),d=["chat",`chat--layout-${c}`,`namespace--${s}`,...u,r];return o||"app"===c||d.push("chat--collapsed"),p&&d.push("chat--user-responded"),i&&Ne("section",{className:Ri(d),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!l&&o&&a(be.minimized)},tabIndex:"-1",ref:e,"aria-label":f("chat.srLabel"),children:[Ne("div",{className:Ri("chat-wrapper"),children:n}),"inline"===c&&o&&Ne(vl,{isAside:!0})]})}));var ml=yl,gl=t=>{let{originalError:e,title:n,message:r,buttonText:o,action:i,srText:a}=t;const s=ls(),c=rs(),{sendPolite:l}=ps(),u=ya(),p=e instanceof Wo;return kt((()=>{p&&s[i]()}),[i,s,p]),kt((()=>{!p&&a&&en()((()=>{l(a)}),200)}),[l,a,p]),!p&&Ne("section",{className:Ri("interrupt"),"aria-labelledby":c,children:Ne("div",{className:Ri("interrupt__body"),children:[Ne("h2",{id:c,className:Ri("interrupt__title"),children:n}),Ne("p",{className:Ri("interrupt__message"),children:r}),o&&i&&Ne("div",{className:Ri("interrupt__actions"),children:Ne("button",{type:"button",className:Ri("button","button--primary"),onClick:()=>{s[i](),u()},children:o})})]})})},_l=()=>{const{t:t}=sa(),{showDisclaimer:e}=Ye();return e&&Ne("div",{className:Ri("disclaimer"),tabIndex:"0",children:[Ne("h2",{className:Ri("disclaimer__title"),children:t("disclaimer.title")}),Ne("div",{className:Ri("disclaimer__message"),dangerouslySetInnerHTML:{__html:t("disclaimer.content")}})]})},bl=mt({}),wl=t=>{const e=Mt(bl);let n=null;"choice_prompt"===t.payload.type&&(n=e[t.type][t.payload.body.prompt.type]);const r=e[t.type][t.payload.type]||e.fallback;return[r&&"function"!=typeof r?r[t.payload.body.type]||e.fallback:r,n]};function El(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function xl(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=El(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=El(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Tl(t){let{children:e,childrenHTML:n,className:r,graphicSrc:o,graphicType:i="icon",iconName:a,iconSize:s,iconClassName:c,dividerType:l}=t;const u=Boolean(a||o),p=n?{dangerouslySetInnerHTML:{__html:n}}:{children:e};return Ne("div",{className:Ri("divider",l&&`divider--type-${l}`,r),children:[u&&Ne("span",{className:Ri("divider__graphic"),children:a?Ne(Js,{name:a,size:s,className:c}):Ne("img",{src:o,className:Ri({icon:"icon"===i,avatar:"avatar"===i},c)})}),Ne("div",xl({className:Ri("divider__body")},p))]})}const Sl={month:"long",day:"numeric",year:"numeric"},Ol={hour:"numeric",minute:"numeric"};var Al=t=>{let{event:e}=t;const n=(()=>{const[t,e]=Rt((t=>t+1),0);return Ut((()=>{en()((()=>{e()}))}),[])})(),{date:r,time:o,timeUntilMidnight:i,srText:a}=(t=>{var e;const{t:n}=sa(),r=Ye(),o=(null==r||null===(e=r.context)||void 0===e?void 0:e.locale)??[],i=new Date(t),a=new Date,s=new Date(a);s.setHours(24,0,0,0);const c=s-a,l=i.toString(),u=new Intl.DateTimeFormat(o,Ol).format(i);let p=((t,e)=>{const n=new Date(e).setHours(0,0,0,0),r=t.getTime(),o=864e5;return r>=n+o?t:r>n?"today":r>n-o?"yesterday":t})(i,a);switch(p){case"today":p=n("dateTime.today");break;case"yesterday":p=n("dateTime.yesterday");break;default:p=new Intl.DateTimeFormat(o,Sl).format(i)}return{date:p,srText:n("dateTime.srText",{date:p,time:u}),time:u,fullDateTime:l,timeUntilMidnight:c}})(hn(e.timeIndicator));return kt((()=>{const t=en()((()=>{n()}),i);return()=>{clearTimeout(t)}}),[n,i]),Ne(Tl,{dividerType:"time-indicator",children:[Ne("p",{className:Ri("divider__time"),"aria-hidden":"true",children:[Ne("span",{children:r}),Ne("span",{children:o})]}),Ne("p",{className:Ri("visually-hidden"),children:a})]})},Cl=t=>{let{event:e,newParticipant:n}=t;const[r,o]=wl(e);if(!r)return null;const i=["conversation__item"];return"info"===e.type?i.push("conversation__item--source-info"):e.payload.fromClient?i.push("conversation__item--source-user"):i.push("conversation__item--source-agent"),n&&i.push("conversation__item--new-participant"),Ne("li",{className:Ri(i),children:[e.timeIndicator&&Ne(Al,{event:e}),Ne(r,{event:e,children:Ne(o,{event:e})})]})},Nl=t=>{let{eventPayload:e}=t;const{t:n}=sa(),{fromClient:r,participant:o}=e,i=(t=>yo().participantInfo.participants[t])(o)||{},{messages:a}=Ye(),s=r?n("participants.user.name"):i&&i.name,{showAvatar:c,showName:l}=a[r?"user":"agent"]||{};if(!c&&!l)return null;const u=[];return c&&s&&i.avatar&&u.push(Ne("span",{className:Ri("message__avatar"),children:Ne("img",{src:i.avatar,className:Ri("avatar"),alt:""})})),l&&u.push(Ne("span",{className:Ri("message__author-name"),children:s})),u.length>0&&Ne("div",{className:Ri("message__author"),children:u})},Il=()=>{const{id:t}=To()||{};return Ne("li",{className:Ri("conversation__item","conversation__item--source-agent"),children:Ne("div",{className:Ri("message","message--source-agent","message--type-loading"),children:[Ne(Nl,{eventPayload:{fromClient:!1,participant:t}}),Ne("div",{className:Ri("message__body"),children:Ne("span",{className:Ri("loader"),children:[Ne("span",{className:Ri("loader__part","one")}),Ne("span",{className:Ri("loader__part","two")}),Ne("span",{className:Ri("loader__part","three")}),Ne("span",{className:Ri("loader__part","four")})]})})]})})};const jl=["showParticipant","showTranslationToggle","event","type","modifiers","children","bodyProps","info"];function Rl(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function kl(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Rl(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Rl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Pl=function(t){let{showParticipant:e=!0,showTranslationToggle:n=!0,event:r,type:o,modifiers:i,children:a,bodyProps:s={},info:c}=t,l=D(t,jl);const u=Hi(r),{t:p}=sa(),[,{hasTranslation:f,isTranslated:d,toggleTranslation:h,locale:v}]=Hs(r);var y;(o&&u.push("message--type-"+o),i)&&("string"==typeof i&&(i=w()(y=i.split(" ")).call(y,(t=>t.length))),x()(i).call(i,(t=>{u.push("message--"+t)})));return d&&u.push("message--is-translated"),f&&u.push("message--has-translation"),d&&(s=kl(kl({},s),{},{lang:v})),Ne(J,{children:Ne("div",kl(kl({className:Ri(u)},l),{},{children:[e&&Ne(Nl,{eventPayload:r.payload}),Ne("div",kl(kl({className:Ri("message__body")},s),{},{children:a})),c&&Ne("div",{"aria-hidden":"true",className:Ri("message__info"),children:c}),n&&f&&Ne("div",{className:Ri("message__translation-info"),children:Ne("button",{className:Ri("message__translation-toggle","button","button--secondary"),onClick:h,children:p(d?"translations.toggle.hideButtonText":"translations.toggle.showButtonText")})})]}))})};const Dl=["event","children"];function Ll(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ul(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Ll(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Ll(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Ml=t=>{const{payload:e}=t,[n,r]=jt(!1),{sendAction:o,addMessageBubble:i,addDivider:a}=ls(),{activeServiceSessionId:s}=yo().serviceInfo,c=Ge(xo),[l]=Hs(t),{service:u}=e,p=Lt((()=>{var e;return Ul(Ul({},t),{},{payload:Ul(Ul({},t.payload),{},{body:null===(e=t.payload.body)||void 0===e?void 0:e.prompt,translatedBody:t.payload.translatedBody&&Ul(Ul({},t.payload.translatedBody),{},{data:t.payload.translatedBody.data.prompt})})})}),[t]),f=l.chooseAgain&&s===u.serviceSessionId&&e.id!==c;return kt((()=>{r(e.id===c)}),[e,c]),{body:l,subEvent:p,showOptions:n,chooseAgain:f,onChoiceClickHandler:t=>{f&&a("new_topic"),i(t.text),o({type:"pick_choice",originMessage:e.id,choice:{id:t.id,text:t.text,chooseAgain:f}}),r(!1)},onChooseAgainClickHandler:()=>{r((t=>!t))}}};var Fl=t=>{const{sendAction:e}=ls();return n=>{n.target&&n.target.dataset.linkId&&e({type:"navigate",originMessage:t,link:{id:n.target.dataset.linkId,url:n.target.getAttribute("href")}})}};const Bl=["event"];function Hl(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function zl(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Hl(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Hl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var $l=t=>{let{event:e}=t,n=D(t,Bl);const[r]=Hs(e),o=Fl(e.payload.id),i=Lt((()=>e.payload.optimisticallyInjected?{children:Ne("p",{children:r.text})}:{bodyProps:{dangerouslySetInnerHTML:{__html:r.text}}}),[r,e]);return Ne(Pl,zl(zl({type:"text",event:e,onClick:o},n),i))},Vl=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],ql=Vl.join(","),Wl="undefined"==typeof Element,Gl=Wl?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Kl=!Wl&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},Yl=function(t,e,n){var r=Array.prototype.slice.apply(t.querySelectorAll(ql));return e&&Gl.call(t,ql)&&r.unshift(t),r.filter(n)},Jl=function t(e,n,r){for(var o=[],i=Array.from(e);i.length;){var a=i.shift();if("SLOT"===a.tagName){var s=a.assignedElements(),c=t(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,c):o.push({scope:a,candidates:c})}else{Gl.call(a,ql)&&r.filter(a)&&(n||!e.includes(a))&&o.push(a);var l=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!r.shadowRootFilter||r.shadowRootFilter(a);if(l&&u){var p=t(!0===l?a.children:l.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scope:a,candidates:p})}else i.unshift.apply(i,a.children)}}return o},Ql=function(t,e){return t.tabIndex<0&&(e||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},Xl=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Zl=function(t){return"INPUT"===t.tagName},tu=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height;return 0===n&&0===r},eu=function(t,e){return!(e.disabled||function(t){return Zl(t)&&"hidden"===t.type}(e)||function(t,e){var n=e.displayCheck,r=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var o=Gl.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Gl.call(o,"details:not([open]) *"))return!0;var i=Kl(t).host,a=(null==i?void 0:i.ownerDocument.contains(i))||t.ownerDocument.contains(t);if(n&&"full"!==n){if("non-zero-area"===n)return tu(t)}else{if("function"==typeof r){for(var s=t;t;){var c=t.parentElement,l=Kl(t);if(c&&!c.shadowRoot&&!0===r(c))return tu(t);t=t.assignedSlot?t.assignedSlot:c||l===t.ownerDocument?c:l.host}t=s}if(a)return!t.getClientRects().length}return!1}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var r=e.children.item(n);if("LEGEND"===r.tagName)return!!Gl.call(e,"fieldset[disabled] *")||!r.contains(t)}return!0}e=e.parentElement}return!1}(e))},nu=function(t,e){return!(function(t){return function(t){return Zl(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||Kl(t),r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var o=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!o||o===t}(t)}(e)||Ql(e)<0||!eu(t,e))},ru=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},ou=function t(e){var n=[],r=[];return e.forEach((function(e,o){var i=!!e.scope,a=i?e.scope:e,s=Ql(a,i),c=i?t(e.candidates):a;0===s?i?n.push.apply(n,c):n.push(a):r.push({documentOrder:o,tabIndex:s,item:e,isScope:i,content:c})})),r.sort(Xl).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},iu=function(t,e){var n;return n=(e=e||{}).getShadowRoot?Jl([t],e.includeContainer,{filter:nu.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:ru}):Yl(t,e.includeContainer,nu.bind(null,e)),ou(n)},au=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Gl.call(t,ql)&&nu(e,t)},su=Vl.concat("iframe").join(","),cu=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Gl.call(t,su)&&eu(e,t)};function lu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function uu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lu(Object(n),!0).forEach((function(e){pu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fu,du=(fu=[],{activateTrap:function(t){if(fu.length>0){var e=fu[fu.length-1];e!==t&&e.pause()}var n=fu.indexOf(t);-1===n||fu.splice(n,1),fu.push(t)},deactivateTrap:function(t){var e=fu.indexOf(t);-1!==e&&fu.splice(e,1),fu.length>0&&fu[fu.length-1].unpause()}}),hu=function(t){return setTimeout(t,0)},vu=function(t,e){var n=-1;return t.every((function(t,r){return!e(t)||(n=r,!1)})),n},yu=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"function"==typeof t?t.apply(void 0,n):t},mu=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target};function gu(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function _u(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=gu(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=gu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var bu=t=>{var e;let{children:n,onClose:r,"aria-label":o,"aria-labelledby":i,fallBackFocusRef:a}=t;const s=rs(),c=Dt(null),l=Dt(null),[u,p]=jt(!1);return kt((()=>{return u&&(l.current=(t=c.current,e={initialFocus:a&&a.current?a.current:null},r=(null==e?void 0:e.document)||document,o=uu({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},e),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(t,e,n){return t&&void 0!==t[e]?t[e]:o[n||e]},p=function(t){return i.containerGroups.findIndex((function(e){var n=e.container,r=e.tabbableNodes;return n.contains(t)||r.find((function(e){return e===t}))}))},f=function(t){var e=o[t];if("function"==typeof e){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e=e.apply(void 0,i)}if(!0===e&&(e=void 0),!e){if(void 0===e||!1===e)return e;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var s=e;if("string"==typeof e&&!(s=r.querySelector(e)))throw new Error("`".concat(t,"` as selector refers to no known node"));return s},d=function(){var t=f("initialFocus");if(!1===t)return!1;if(void 0===t)if(p(r.activeElement)>=0)t=r.activeElement;else{var e=i.tabbableGroups[0];t=e&&e.firstTabbableNode||f("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},h=function(){if(i.containerGroups=i.containers.map((function(t){var e=iu(t,o.tabbableOptions),n=function(t,e){return(e=e||{}).getShadowRoot?Jl([t],e.includeContainer,{filter:eu.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):Yl(t,e.includeContainer,eu.bind(null,e))}(t,o.tabbableOptions);return{container:t,tabbableNodes:e,focusableNodes:n,firstTabbableNode:e.length>0?e[0]:null,lastTabbableNode:e.length>0?e[e.length-1]:null,nextTabbableNode:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=n.findIndex((function(e){return e===t}));if(!(r<0))return e?n.slice(r+1).find((function(t){return au(t,o.tabbableOptions)})):n.slice(0,r).reverse().find((function(t){return au(t,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(t){return t.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},v=function t(e){!1!==e&&e!==r.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(d()))},y=function(t){var e=f("setReturnFocus",t);return e||!1!==e&&t},m=function(t){var e=mu(t);p(e)>=0||(yu(o.clickOutsideDeactivates,t)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!cu(e,o.tabbableOptions)}):yu(o.allowOutsideClick,t)||t.preventDefault())},g=function(t){var e=mu(t),n=p(e)>=0;n||e instanceof Document?n&&(i.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),v(i.mostRecentlyFocusedNode||d()))},_=function(t){if(function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t)&&!1!==yu(o.escapeDeactivates,t))return t.preventDefault(),void n.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){var e=mu(t);h();var n=null;if(i.tabbableGroups.length>0){var r=p(e),a=r>=0?i.containerGroups[r]:void 0;if(r<0)n=t.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var s=vu(i.tabbableGroups,(function(t){var n=t.firstTabbableNode;return e===n}));if(s<0&&(a.container===e||cu(e,o.tabbableOptions)&&!au(e,o.tabbableOptions)&&!a.nextTabbableNode(e,!1))&&(s=r),s>=0){var c=0===s?i.tabbableGroups.length-1:s-1;n=i.tabbableGroups[c].lastTabbableNode}}else{var l=vu(i.tabbableGroups,(function(t){var n=t.lastTabbableNode;return e===n}));if(l<0&&(a.container===e||cu(e,o.tabbableOptions)&&!au(e,o.tabbableOptions)&&!a.nextTabbableNode(e))&&(l=r),l>=0){var u=l===i.tabbableGroups.length-1?0:l+1;n=i.tabbableGroups[u].firstTabbableNode}}}else n=f("fallbackFocus");n&&(t.preventDefault(),v(n))}(t)},b=function(t){var e=mu(t);p(e)>=0||yu(o.clickOutsideDeactivates,t)||yu(o.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},w=function(){if(i.active)return du.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?hu((function(){v(d())})):v(d()),r.addEventListener("focusin",g,!0),r.addEventListener("mousedown",m,{capture:!0,passive:!1}),r.addEventListener("touchstart",m,{capture:!0,passive:!1}),r.addEventListener("click",b,{capture:!0,passive:!1}),r.addEventListener("keydown",_,{capture:!0,passive:!1}),n},E=function(){if(i.active)return r.removeEventListener("focusin",g,!0),r.removeEventListener("mousedown",m,!0),r.removeEventListener("touchstart",m,!0),r.removeEventListener("click",b,!0),r.removeEventListener("keydown",_,!0),n},n={get active(){return i.active},get paused(){return i.paused},activate:function(t){if(i.active)return this;var e=s(t,"onActivate"),n=s(t,"onPostActivate"),o=s(t,"checkCanFocusTrap");o||h(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,e&&e();var a=function(){o&&h(),w(),n&&n()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(t){if(!i.active)return this;var e=uu({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},t);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,E(),i.active=!1,i.paused=!1,du.deactivateTrap(n);var r=s(e,"onDeactivate"),a=s(e,"onPostDeactivate"),c=s(e,"checkCanReturnFocus"),l=s(e,"returnFocus","returnFocusOnDeactivate");r&&r();var u=function(){hu((function(){l&&v(y(i.nodeFocusedBeforeActivation)),a&&a()}))};return l&&c?(c(y(i.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,E()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,h(),w(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return i.containers=e.map((function(t){return"string"==typeof t?r.querySelector(t):t})),i.active&&h(),this}},n.updateContainerElements(t),n),l.current.activate()),()=>{l.current&&l.current.deactivate()};var t,e,n,r,o,i,s,p,f,d,h,v,y,m,g,_,b,w,E}),[u,a]),kt((()=>{const t=(()=>{var t;const e=[],n=[];return x()(t=document.querySelectorAll('body > *:not([role="dialog"])')).call(t,(t=>{const r=t.getAttribute("aria-hidden");null!==r&&"false"!==r||(e.push(r),n.push(t),t.setAttribute("aria-hidden","true"))})),()=>{x()(n).call(n,((t,n)=>{const r=e[n];null===r?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",r)}))}})();return()=>{t()}}),[u]),kt((()=>{u&&c.current.addEventListener("keydown",(t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&r()}))}),[u,r]),Pt((()=>{const t=document.getElementsByTagName("body")[0],e=document.createElement("div");return e.setAttribute("id",s),e.setAttribute("role","dialog"),e.setAttribute("data-nosnippet","true"),e.setAttribute("aria-modal","true"),o&&e.setAttribute("aria-label",o),i&&e.setAttribute("aria-labelledby",i),t.appendChild(e),c.current=e,p(!0),()=>{c.current&&(t.removeChild(c.current),c.current=null)}}),[o,i,s]),"function"==typeof n?n({onClose:r,modalRenderFn:t=>c.current&&yt(t,c.current)}):c.current&&yt(_()(e=ot(n)).call(e,(t=>(t.props=_u(_u({},t.props),{},{onClose:r}),t))),c.current)},wu=t=>{let{url:e,description:n,onClose:r}=t;const{zIndex:o,layoutMode:i,namespace:a}=Ye(),s=ds(),c=Bi(),l=Dt(null),{t:u}=sa(),p=["modal",`app--layout-${i}`,`namespace--${a}`,...c],f=t=>{t.stopPropagation()},d=()=>{r()},h=o?{zIndex:o+1}:void 0;return Ne(bu,{onClose:r,"aria-label":u("lightbox.heading"),fallBackFocusRef:l,children:t=>{let{onClose:r,modalRenderFn:o}=t;return o((t=>Ne("div",{className:Ri(p),onClick:d,style:h,children:Ne("div",{className:Ri("modal__float"),tabIndex:"-1",onMouseDown:s,onKeyDown:s,onTouchStart:s,onMouseMove:s,onWheel:s,onPointerDown:s,onPointerMove:s,ref:l,children:[Ne("div",{className:Ri("modal__inner"),onClick:f,children:Ne("img",{className:Ri("modal__image"),src:e,alt:n})}),Ne("button",{type:"button",className:Ri("modal__close"),onClick:t,children:[Ne(Js,{name:"close",size:"16"}),u("lightbox.closeLabel")]})]})}))(r))}})},Eu=t=>{let{description:e,url:n}=t;const{t:r}=sa(),[o,i]=jt(!1);return Ne(J,{children:[Ne("button",{type:"button",className:Ri("modal__enlarge"),onClick:()=>{i(!0)},children:[r("message.image.srTextEnlargeButtonLabel",{description:e}),Ne(Js,{name:"enlarge",size:"32"})]}),o&&Ne(wu,{url:n,description:e,onClose:()=>{i(!1)}})]})};const xu=["event","descriptorId"];function Tu(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Su(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Tu(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Tu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const{SET_LOADED_IMAGE_EVENT_IDS:Ou}=Yn;const Au=["event","descriptorId"];function Cu(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Cu(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Cu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Iu={[Gn.new_topic]:"newtopic"};const ju=["event"];function Ru(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const ku={default:t=>{let{event:e}=t;const{t:n}=sa(),{subtype:r}=e.payload.body;return Ne(Tl,{dividerType:Iu[Gn[r]],iconName:Gn[r],children:Ne("p",{children:n(`dividerKeys.${Gn[r]}`)})})},[Gn.new_translation]:t=>{let{event:e}=t;const{t:n}=sa(),{translationEnabled:r,translationLocale:o,text:i}=e.payload.body,{enableTranslations:a}=Bs(),s=$s(o);return Ne(Tl,{iconName:"newTranslation",dividerType:"newtranslation",children:[Ne("p",{className:Ri("divider__title"),children:n(r?"translations.divider.startText":"translations.divider.stopText",{language:s})}),r?Ne("p",{children:i}):Ne("button",{className:Ri("button","button--secondary"),onClick:()=>{a(o)},children:n("translations.divider.restartButtonText")})]})}};const Pu=["event"];function Du(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Du(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Du(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Uu=["event"];function Mu(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Mu(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Mu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Bu=["event"];function Hu(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function zu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Hu(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Hu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const $u=t=>{let{children:e,url:n,target:r}=t;return n?Ne("a",{href:n,download:!0,target:r||void 0,className:Ri(["download","download-link"]),children:e}):Ne("span",{className:Ri("download"),children:e})};var Vu=n(4494),qu=n.n(Vu);function Wu(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Wu(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Wu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Ku=t=>{let{id:e,action:n,buttonText:r,description:o,hasFocus:i,image:a,title:s,isCarouselItem:c}=t;const l=Dt(null),{sendMessage:u,sendAction:p,emitEvent:f}=ls(),d=rs(),h=Dt(),v=n.type===Jn?"a":"button",y=Ut((()=>f("action.click_card",{type:Vn,originMessage:e,action:n})),[f,e,n]),m=Ut((()=>{if(y(),"ask"===n.type)u({body:n.ask});else if("topic"===n.type){const{topic:t,fallbackMessage:e}=n;p({type:zn,body:{name:t,fallbackMessage:e}})}}),[u,n,p,y]),g=Lt((()=>n.type===Jn?{href:n.link,rel:"noopener noreferrer",target:n.newTab?"_blank":"_self",onClick:y}:{onClick:m}),[n,m,y]);return kt((()=>{c&&(i&&h.current?window.requestAnimationFrame((()=>l.current.focus())):l.current.blur()),h.current=!0}),[i,c]),Ne("div",{className:Ri("card__wrapper"),id:e,tabIndex:"-1",ref:l,children:[Ne("img",{className:Ri("card__image"),src:a,alt:""}),Ne("div",{className:Ri("card__content"),id:e,children:[s&&Ne("h2",{className:Ri("card__title"),children:s}),o&&Ne("div",{className:Ri("card__description"),dangerouslySetInnerHTML:{__html:o}}),Ne(v,Gu(Gu({tabIndex:c&&!i?"-1":void 0,className:Ri("button","button--primary"),"aria-describedby":d},g),{},{children:r}))]})]})};function Yu(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ju(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Yu(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Yu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Qu(t){let{item:e,items:n,index:r,isActive:o}=t;const{t:i}=sa();return Ne("div",{className:Ri("carousel-item",`carousel-item--${e.type}`),role:"group","aria-roledescription":"slide","aria-label":i("carousel.slide.label",{index:r+1,total:n.length}),children:Ne(Ku,Ju(Ju({},e),{},{isCarouselItem:!0,hasFocus:o}))})}function Xu(t){let{items:e,currentIndex:n,onChange:r,getItemKey:o,getItemLabel:i}=t;const a=e.length,s=Ut((t=>{const e=Number(t.target.dataset.item||"0"),o=Math.min(a-1,Math.max(0,e));o!==n&&r(o)}),[a,n,r]);return Ne("div",{className:Ri("carousel-pagination__wrapper"),role:"group",children:Ne("ul",{className:Ri("carousel-pagination"),children:_()(e).call(e,((t,e)=>{const r=n===e;return Ne("li",{className:Ri("carousel-pagination__item",r?"is-active":void 0),children:Ne("button",{className:Ri("carousel-pagination__button"),type:"button",onClick:s,"data-item":e,"aria-disabled":r?"true":void 0,"aria-label":i(t,e)})},o(t,e,"pagination-item-"))}))})})}function Zu(t){let{items:e,currentIndex:n,onChange:r,children:o}=t;const{t:i}=sa(),a=e.length;return Ne("div",{className:Ri("carousel-controls"),children:[Ne("button",{className:Ri("button","button--previous"),"aria-label":i("carousel.controls.previous"),onClick:()=>{r((n-1+a)%a)},children:Ne(Js,{name:"arrowLeft",size:"16"})}),o,Ne("button",{className:Ri("button","button--next"),"aria-label":i("carousel.controls.next"),onClick:()=>{r((n+1)%a)},children:Ne(Js,{name:"arrowRight",size:"16"})})]})}const tp=(t,e,n)=>`${n}${e}`,ep=t=>t.label,np=t=>{let{target:e}=t;e.scrollLeft=0};function rp(t){let{currentIndex:e,onChange:n,getItemKey:r=tp,getItemLabel:o=ep,items:i}=t;const a=rs(),s=i.length,[c,l]=jt(Number(e||"0"));kt((()=>{l(Number(e||"0"))}),[l,e]);const u=Dt([]);u.current=Lt((()=>{var t,e;return _()(t=qu()(e=Array(s)).call(e,1)).call(t,(()=>({current:null})))}),[s]);const p=Dt(!0),f=Dt();return f.current=n,kt((()=>{p.current?p.current=!1:f.current&&f.current(c)}),[c]),Ne("div",{className:Ri("carousel"),role:"group","aria-roledescription":"carousel",children:[Ne("div",{className:Ri("carousel__slides-wrapper"),onScroll:np,children:Ne("div",{id:a,className:Ri("carousel__slides"),style:{width:100*s+"%",left:-100*c+"%"},"aria-live":"polite","aria-atomic":"false",children:_()(i).call(i,((t,e)=>{const n=c===e;return Ne("div",{ref:u.current[e],className:Ri("carousel__slide",n?"is-active":void 0),"aria-hidden":n?void 0:"true",children:Ne(Qu,{item:t,items:i,currentIndex:c,index:e,isActive:n})},r(t,e,"item-"))}))})}),Ne("div",{className:Ri("carousel__controls"),children:Ne(Zu,{currentIndex:c,items:i,onChange:l,controlId:a,children:Ne("div",{className:Ri("carousel__pagination"),children:Ne(Xu,{currentIndex:c,items:i,onChange:l,getItemKey:r,getItemLabel:o})})})})]})}const op=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return`${n}${t.title}:${e}`},ip=t=>t.title;function ap(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function sp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=ap(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=ap(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const cp=["event"];function lp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function up(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=lp(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=lp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function pp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function fp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=pp(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=pp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const dp={message:{choice_prompt:t=>{var e,n;let{event:r,children:o}=t,i=D(t,Dl);const{t:a}=sa(),s=rs(),{body:c,subEvent:l,showOptions:u,chooseAgain:p,onChoiceClickHandler:f,onChooseAgainClickHandler:d}=Ml(r);return Ne(J,{children:[_()(e=ot(o)).call(e,(t=>(t.props=Ul(Ul({},t.props),{},{event:l,descriptorId:s,showTranslationToggle:!1}),t))),p&&Ne("button",{type:"button",className:Ri("button","button--secondary","button--choose-again"),"aria-expanded":u?"true":"false",onClick:d,"aria-describedby":s,children:[a(u?"message.choicePrompts.cancelChooseAgain":"message.choicePrompts.chooseAgain"),Ne(Js,{name:"chevronDown",size:"8"})]}),u&&Ne(Pl,Ul(Ul({type:"choice-prompt",showParticipant:!1,event:r},i),{},{children:Ne("ul",{className:Ri("choice-prompt","choice-prompt--many"),children:_()(n=c.choices).call(n,(t=>Ne("li",{className:Ri("choice-prompt__item",{[`choice-prompt__item--${t.category}`]:t.category}),children:Ne("button",{type:"button",className:Ri("button","button--primary"),onClick:()=>{f(t)},children:t.text})},t.id)))})}))]})},text:$l,image:t=>{let{event:e,descriptorId:n}=t,r=D(t,xu);const[o]=Hs(e),{description:i,url:a,isZoomable:s}=o,[c,l]=jt(!1),u=We();return Ne(Pl,Su(Su({event:e,type:"image"},r),{},{children:[Ne("img",{src:a,id:n,alt:i,onLoad:()=>{u({type:Ou,eventId:e.payload.id}),l(!0)}}),s&&c&&Ne(Eu,{description:i,url:a})]}))},splash:t=>{let{event:e}=t,n=D(t,Uu);const{payload:r}=e,[o]=Hs(e),i=Fl(r.id);return Ne(Pl,Fu(Fu({type:"splash",event:e,onClick:i},n),{},{bodyProps:{dangerouslySetInnerHTML:{__html:o.text}}}))},video:t=>{let{event:e,descriptorId:n}=t,r=D(t,Au);const[o]=Hs(e),{description:i,url:a}=o;return Hi(e).push("message--type-video"),Ne(Pl,Nu(Nu({event:e,type:"video"},r),{},{children:[Ne("div",{id:n,className:Ri("visually-hidden"),children:i}),Ne("iframe",{title:i,src:a,allow:"autoplay; encrypted-media",allowFullScreen:!0})]}))},upload:t=>{let{event:e}=t,n=D(t,Bu);const{t:r}=sa(),[o]=Hs(e),{fromClient:i}=e.payload,{filename:a,url:s}=o,c=Lt((()=>r(s?"fileUpload.srFileDownloadText":"fileUpload.srFileUploadedText",{fileName:a})),[s,a,r]);return Ne(Pl,zu(zu({event:e,type:"upload"},n),{},{children:Ne($u,{url:s,target:i?void 0:"_blank",children:[Ne(Js,{name:"download",size:"16"}),Ne("span",{"aria-hidden":"true",className:Ri("file-download"),children:a}),Ne("span",{className:Ri("visually-hidden"),children:c})]})}))},cta:t=>{let{event:e}=t;const[n]=Hs(e),r=Fl(e.payload.id),{emitEvent:o}=ls(),i=rs(),a=Ut((()=>o("action.click_cta",{type:Vn,originMessage:e.payload.id,link:{url:n.buttonLink}})),[o,n,e]);return Ne(Pl,{type:"cta",event:e,children:[Ne("div",{className:Ri("cta__content"),id:i,dangerouslySetInnerHTML:{__html:n.description},onClick:r}),Ne("a",{className:Ri("button","button--primary"),"aria-describedby":i,href:n.buttonLink,rel:"noreferrer",target:n.buttonNewTab?"_blank":"_self",onClick:a,children:n.buttonText})]})},carousel:t=>{let{event:e}=t;const[n]=Hs(e),r=n.cards;return Ne(Pl,{event:e,modifiers:"type-carousel",children:Ne(rp,{items:r,ItemComponent:Qu,getItemKey:op,getItemLabel:ip})})},card:t=>{let{event:e}=t;const[n]=Hs(e),r=rs();return Ne(Pl,{type:"card",event:e,children:Ne(Ku,sp({id:r},n))})}},info:{text:$l,divider:t=>{let{event:e}=t,n=D(t,ju);return Ne(ku[Gn[e.payload.body.subtype]]||ku.default,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Ru(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Ru(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({event:e},n))},translation:t=>{let{event:e}=t,n=D(t,Pu);const{t:r}=sa(),[o]=Hs(e);return Ne(Pl,Lu(Lu({type:"text",event:e},n),{},{children:r(o.key.join("."),o.variables)}))},timeIndicator:Al},participant:{participant:t=>{let{event:e}=t;const{participant:n}=e.payload,[r]=Hs(e);return r?Ne(Tl,{graphicSrc:n.avatar,graphicType:n.avatar?"avatar":void 0,iconName:n.avatar?void 0:"balloon",childrenHTML:r,dividerType:"participant"}):null}},service_data:{suggestion:t=>{let{event:e}=t,n=D(t,cp);const[r,o]=jt(!0),i=Fi(),a=Ja(),{sendAction:s,addMessageBubble:c}=ls(),{suggestions:l,payload:u}=(t=>{const{payload:e}=t,[n]=Hs(t);return{suggestions:n,payload:e}})(e),p=_o(),{t:f}=sa(),d=f("suggestions.headingText"),h=f("suggestions.footerText"),v=Lt((()=>N()(p).call(p,(t=>{let{payload:e}=t;return null==e?void 0:e.transactionLast}))),[p]),y=Ut((t=>{let{id:e,question:n}=t;o(!1),i(Xo(!0)),s({type:Mn,originMessage:u.id,body:{type:"faqclick",body:{faqId:e,faqQuestion:n}}}),c(n)}),[i,s,u.id,c]);return r&&!a&&v?Ne("div",{className:Ri("suggestions","suggestions--conversation"),children:[d&&Ne("p",{className:Ri("suggestions__heading"),children:d}),Ne(Pl,up(up({type:"suggestions",showParticipant:!1,event:e},n),{},{children:[Ne(hl,{className:"suggestions__list--conversation",onClickSuggestion:y,suggestions:l}),h&&Ne("p",{className:Ri("suggestions__footer"),children:h})]}))]}):null}}};var hp=t=>{let{children:e}=t;const{customComponents:n}=Ye(),r=Lt((()=>{var t;return cn()(t=S()(dp)).call(t,((t,e)=>fp(fp({},t),{},{[e]:fp(fp({},dp[e]),n?n[e]:{})})),{fallback:$l})}),[n]);return Ne(bl.Provider,{value:r,children:e})},vp=()=>{const{t:t}=sa(),e=Dt(null),n=_o(),r=yo().isLoading,{isOpen:o}=Qa(),i=Eo(),a=ya(),s=yo().loadedImageEventIds;return kt((()=>{const t=e.current;t&&(t.scrollTop=t.scrollHeight)}),[n,r,o,s]),Ne(J,{children:[o&&Ne("a",{className:Ri("skip-link"),href:`#${i}`,onClick:t=>{t.preventDefault(),a()},children:t("skiplinkText")}),Ne("div",{className:Ri("chat__body"),ref:e,children:Ne("div",{className:Ri("conversation__container"),children:[Ne(_l,{}),Ne("ol",{className:Ri("conversation"),children:[Ne(hp,{children:(()=>{let t=null;return _()(n).call(n,(e=>{const{type:n,payload:r}=e,{participant:o,fromClient:i}=r;let a=!1;if("participant"!==n){const n=i?"seamly-client-participant":o;"info"!==e.type&&t!==n&&(a=!0),t=n}return Ne(Cl,{event:e,newParticipant:a},e.payload.id)}))})()}),r&&Ne(Il,{})]})]})})]})},yp=t=>{let{baseClassName:e,children:n,title:r}=t;const o=Eo(),i=rs();return Ne("section",{id:o,className:Ri(e),"aria-describedby":i,tabIndex:"-1",children:[Ne("h2",{className:Ri(`${e}__title`),id:i,children:r}),n]})},mp=()=>{const{t:t}=sa(),e=ya(),n=ds(),{emitEvent:r}=ls(),{isActive:o,remaining:i,timer:a,endCountdown:s}=Ns(),c=i>0,l=t(c?"idleDetachWarning.countdownTitle":"idleDetachWarning.notifyTransferText");return Ne(yp,{baseClassName:"idle",title:l,children:c&&Ne(J,{children:[Ne("div",{className:Ri("idle__count-container"),children:o&&Ne(J,{children:[Ne("span",{className:Ri("idle__count-text"),children:t("idleDetachWarning.countdownText")}),Ne("span",{className:Ri("idle__count-timer"),children:t("idleDetachWarning.countdownTimer",a)})]})}),Ne("div",{className:Ri("idle__options"),children:[Ne("button",{type:"button",className:Ri("button","button--primary"),onClick:()=>{n(),s(!0),e(),r("idleTimer.selectContinue")},children:t("idleDetachWarning.continueButton")}),Ne("button",{type:"button",className:Ri("button","button--primary"),onClick:()=>{s(),e(),r("idleTimer.selectEnd")},children:t("idleDetachWarning.detachButton")})]})]})})},gp=()=>{const{t:t}=sa(),e=ds(),{name:n}=To()||{},{continueChat:r,restartChat:o}=js();return Ne(yp,{baseClassName:"prompt",title:t("resumeConversationPrompt.title",{name:n}),children:Ne("div",{className:Ri("prompt__options"),children:[Ne("button",{type:"button",className:Ri("button","button--primary"),onClick:()=>{e(),r()},children:t("resumeConversationPrompt.continueButton")}),Ne("button",{type:"button",className:Ri("button","button--primary"),onClick:o,children:t("resumeConversationPrompt.detachButton")})]})})},_p=n(2088),bp=n(1445);function wp(){var t;return wp=_p?bp(t=_p).call(t):function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},wp.apply(this,arguments)}const Ep=["id","name","type","labelText","labelClass","contentHint","aria-describedby"];function xp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=xp(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=xp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Sp=function(t){let{id:e,name:n,type:r,labelText:o,labelClass:i,contentHint:a,"aria-describedby":s}=t,c=D(t,Ep);const{isSubmitted:l}=Ec(),[u,{error:p}]=xc(n),f=l&&p,d=[];return s&&d.push(s),a&&d.push(`${e}-content-hint`),f&&d.push(`${e}-error`),Ne(Zc,{id:e,contentHint:a,validity:!f,errorText:p,labelText:o,labelClass:i,children:Ne("input",Tp(Tp({id:e,name:n,type:r,"aria-invalid":f?"true":"false","aria-describedby":d.join(" ")||null},u),c))})};function Op(t){let{controlName:e,skipLinkId:n}=t;const{t:r}=sa(),{sendAssertive:o}=ps(),{emitEvent:i}=ls(),a=(()=>{const{sendAction:t}=ls(),{features:e}=xa(),{typingPeekahead:n}=e||{},r=Dt(null),o=Dt(null),i=Dt(!1),a=Dt(null);kt((()=>()=>{clearInterval(a.current),clearTimeout(r.current),clearTimeout(o.current)}),[]);const s=(e,r)=>{t(function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=ys(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=ys(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({type:Fn,state:e},n&&n.enabled?{body:{currentMessage:r}}:{}))};return t=>{t.code&&"Enter"===t.code||13===t.keyCode||(i.current=!0,a.current||(s(!0,t.target.value),a.current=vs()((()=>{i.current?n&&n.enabled&&s(!0,t.target.value):(clearInterval(a.current),a.current=null)}),2e3)),clearTimeout(r.current),clearTimeout(o.current),r.current=en()((()=>{i.current=!1}),300),o.current=en()((()=>{s(!1,t.target.value)}),2e3))}})(),{setBlockAutoEntrySwitch:s}=bs(),{hasCharacterLimit:c,characterLimit:u,reachedCharacterWarning:f,reachedCharacterLimit:h,remainingChars:y}=function(t){const{t:e}=sa(),{sendAssertive:n}=ps(),{hasLimit:r,limit:o}=(()=>{const{entryMeta:{options:{text:t},optionsOverride:{text:e}}}=yo(),{limit:n}=e||t||{limit:null};return{hasLimit:null!==n,limit:null!==n?n:null}})(),i=Lt((()=>dn(n,300)),[n]),a=Lt((()=>dn(((t,n)=>{t&&i(e("input.srCharacterLimitText",{limit:n}))}),300)),[i,e]),[{value:s}]=xc(t),c=r&&s?o-s.length:o,l=!!r&&c<=50,u=!!r&&c<0;return kt((()=>{a(l,c)}),[l,c,a]),{hasCharacterLimit:r,characterLimit:o,reachedCharacterWarning:l,reachedCharacterLimit:u,remainingChars:c}}(e),[{value:g}]=xc(e),_=!!g,b=Ut((()=>{f&&o(r("input.srCharacterLimitText",{limit:y})),i("ui.inputFocus")}),[r,o,f,y,i]),w=Lt((()=>r("input.inputPlaceholder",{hasLimit:c,limit:c?u:null})),[r,c,u]),E=Lt((()=>r("input.inputLabel",{hasLimit:c,limit:c?u:null})),[r,c,u]);return Pt((()=>(s(_),()=>{s(!1)})),[s,_]),Ne(Qc,{className:Ri("entry-form"),disableValidationClasses:!0,noValidate:"true",children:[Ne("div",{className:Ri(["input--text__container",...f&&!h?["character-warning"]:[],...h?["character-exceeded"]:[]]),children:[Ne(Sp,{id:n,type:"text",name:e,className:Ri("input__text"),autocomplete:"off",placeholder:w,labelText:E,labelClass:Ri("visually-hidden"),"aria-invalid":c?h:null,onKeyUp:a,onFocus:b}),Ne("div",{className:Ri("character-count"),children:f&&Ne("span",{children:y})})]}),Ne("button",{className:Ri("button","input__submit"),type:"submit",onPointerDown:t=>{t.preventDefault()},"aria-disabled":!_||h?"true":null,children:Ne(Js,{name:"send",size:"32",alt:r("input.sendMessage")})})]})}function Ap(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Cp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Ap(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Ap(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Np="userText";function Ip(t){let e=wp({},t);const{isOpen:n,setVisibility:r}=Qa(),o=Eo(),i=ya(),{sendMessage:a}=ls(),s=Ut(((t,e)=>{let{updateControlValue:o}=e;a({body:t.userText}),o(Np,""),i(),n||r(be.open)}),[a,i,n,r]);return Ne(Ac,Cp(Cp({},e),{},{formId:"textEntry",persistData:!0,onSubmit:s,children:Ne(Op,{controlName:Np,skipLinkId:o})}))}var jp=()=>{const{t:t}=sa(),{showFileUpload:e,serviceAllowsUploads:n}=ja(),[r,o]=jt(n),i=ya(),a=Dt(null),{setUserEntryType:s,activeEntry:c}=bs(),l=Dt(null),{sendPolite:u}=ps(),p=!!To();return kt((()=>{xn(l.current,(()=>{n||i()})),o(n)}),[n,i]),kt((()=>{a.current&&!n&&u(t("fileUpload.srUnavailableText")),!1===a.current&&n&&u(t("fileUpload.srAvailableText")),p&&(a.current=n)}),[n,p,u,t]),!e&&c!==Dn&&Ne(nc,{isActive:r,transitionStartState:ec.rendered,children:Ne("div",{className:Ri("upload-toggle-wrapper"),children:Ne(nc,{isActive:r,transitionStartState:ec.visuallyHidden,children:Ne("button",{className:Ri(["button","button--secondary","upload-toggle"]),ref:l,"aria-disabled":r?null:"true",type:"button",onClick:r?()=>{s(Dn),i()}:null,children:Ne(Js,{name:"file",size:"32",alt:t("fileUpload.toggleButtonText")})})})})})},Rp=()=>{const{t:t}=sa(),{currentUploads:e}=Ra();return Ne("div",{className:Ri("progress"),children:_()(e).call(e,(e=>{let{id:n,name:r,progress:o,uploading:i,error:a}=e;return Ne("div",{className:Ri("progress_container"),children:[Ne("div",{className:Ri("progress__text"),children:[Ne("span",{className:Ri("progress__text--file-name"),children:r}),Ne("span",{className:Ri("progress__text--percentage"),children:`${o}%`})]}),Ne(Xc,{error:a}),Ne("progress",{className:Ri("progress__bar"),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-label":t("fileUpload.srProgressLabel",{fileName:r}),max:"100","aria-valuenow":o,value:o,"aria-busy":i,children:`${o}%`})]},n)}))})};function kp(t){let{id:e,name:n,labelText:r,contentHint:o,outputText:i,accept:a}=t;const{isSubmitted:s}=Ec(),[c,l]=jt(!1),[{onInput:u,onBlur:p},{error:f}]=xc(n),d=rs(),h=rs(),v=rs(),y=s&&f,m=[v];o&&m.push(h),y&&m.push(d);const g=Ut((()=>{l(!0)}),[l]),_=Ut((()=>{l(!1),p()}),[l,p]),b=Ut((t=>{const e={target:{value:t.target.files}};u(e)}),[u]);return Ne("div",{className:Ri("upload__container"),children:[o&&Ne("span",{className:Ri("upload__content-hint"),id:h,children:o}),Ne(Xc,{id:d,error:y&&f}),Ne("div",{className:Ri(["file-upload",...c?["focus-within"]:[]]),children:Ne("label",{htmlFor:e,className:Ri("upload__label"),children:[Ne(Js,{name:"upload",size:"32"}),Ne("div",{children:[Ne("span",{className:Ri(["upload__label--text"]),children:r}),Ne("input",{id:e,className:Ri("upload__input"),type:"file",name:n,onChange:b,"aria-invalid":y?"true":"false","aria-describedby":m.join(" "),accept:a||null,onFocus:g,onBlur:_}),Ne("span",{className:Ri("upload__output"),"aria-hidden":"true",id:v,children:i})]})]})})]})}function Pp(t){let{skiplinkId:e,controlName:n,accept:r,contentHint:o,isUploading:i,isComplete:a,onClickCancel:s}=t;const{t:c}=sa(),[{value:l}]=xc(n),u=l&&l.length>0,p=u?l[0].name:"";return Ne(Qc,{className:Ri("upload-form"),children:[Ne(kp,{name:n,id:e,accept:r,labelText:c("fileUpload.labelText"),outputText:c("fileUpload.selectedText",{hasFile:u,filename:p}),contentHint:o}),Ne("div",{className:Ri("upload__button-container"),children:[Ne("button",{id:i||!a?e:void 0,type:"button",onClick:s,className:Ri("button","button--secondary","upload__cancel"),children:c("fileUpload.cancelButtonText")}),Ne("button",{className:Ri("button","button--primary"),type:"submit",children:c("fileUpload.uploadButtonText")})]})]})}const Dp="fileListForm",Lp="fileList";var Up=()=>{const{t:t}=sa(),{sendPolite:e,sendAssertive:n}=ps(),r=Eo(),o=ya(),{serviceAllowsUploads:i,allowedMimeTypes:a,maxSize:s}=ja(),c=Dt(null),l=Dt(i),{cancelEntrySelection:u}=bs(),{uploadFile:p,clearUploads:f,isUploading:d,isComplete:h}=Ra(),{hasFile:v,selectedFileName:y,uploadHandle:m,hasServerError:g,progress:_}=((t,e)=>{const n=Ke(yc,{formId:t,name:e},[t,e]),{currentUploads:r}=Ra(),o=n&&n.length>0;let i=null,a=!1,s=0;if(r&&r.length>0){const t=r[0];i=t.uploadHandle,a=!!t.error,s=t.progress}return{hasFile:o,selectedFileName:o?n[0].name:"",uploadHandle:i,hasServerError:a,progress:s}})(Dp,Lp),b=rs(),w=Dt(!0),E=t("fileUpload.contentHint",{size:yn(s)}),x=Dt(""),T=Dt(null);kt((()=>{x.current&&T.current.contains(document.activeElement)&&"INPUT"===document.activeElement.tagName&&n(E),x.current=E}),[E,n]),kt((()=>{_>0&&e(1===_?t("fileUpload.srStartedText"):`${_}%`)}),[_,e,t]),kt((()=>{w.current||d||!h||(f(),u(),o(),en()((()=>{e(t("fileUpload.srCompleteText"))}),300)),w.current=h}),[d,h,f,u,o,e,t]);const S=Ut((t=>{let{fileList:e}=t;p(e[0]),o()}),[p,!1,o]),O=Ut((()=>{m&&m.abort(),f(),u(),o()}),[m,f,u,o]),A=Lt((()=>({[Lp]:[Vc((()=>i),t("fileUpload.errors.unavailable")),Vc(Wc,t("fileUpload.errors.noFile")),Vc(qc,t("fileUpload.errors.tooLarge"),s)]})),[s,i,t]);return Ne("div",{className:Ri(["upload",...g?["upload--error"]:[]]),ref:T,children:Ne(Ac,{formId:Dp,persistData:!0,onSubmit:S,validationSchema:A,children:[(d||!h)&&Ne(J,{children:[Ne(Rp,{}),Ne("div",{className:Ri("upload__button-container"),children:Ne("button",{id:d||!h?r:void 0,type:"button",onClick:O,ref:c,className:Ri("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]}),!d&&h&&Ne(Pp,{controlName:Lp,skiplinkId:r,accept:a.join(", "),contentHint:E,isComplete:h,isUploading:d,outputText:t("fileUpload.selectedText",{hasFile:v,filename:y}),onClickCancel:O}),!l.current&&Ne(J,{children:[Ne("span",{className:Ri("notification"),id:b,children:t("fileUpload.unavailableText")}),Ne("div",{className:Ri("upload__button-container"),children:Ne("button",{id:d||!h?r:void 0,type:"button",onClick:O,className:Ri("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]})]})})};function Mp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Mp(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Mp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Bp=()=>{const{isOpen:t}=Qa(),e=Dt(null),{hasCountdown:n}=Ns(),[r,o]=jt(n),{hasPrompt:i}=js(),[a,s]=jt(i),c=ya(),l=Dt(!1),{activeEntry:u}=bs(),[p,f]=jt({text:Ip,upload:Up}),[d,h]=jt((()=>u)),v=Ye(),{accountAllowsUploads:y}=ja(),m=Ut((()=>{xn(e.current,(()=>{c()}))}),[c]);kt((()=>{const{customComponents:t}=v,{entry:e}=t||{};e&&f((t=>Fp(Fp({},t),e)))}),[v]),kt((()=>{m(),o(n),s(i)}),[n,i,m]),kt((()=>{h(u),m()}),[u,m,e]),l.current=!(!e.current||!e.current.contains(document.activeElement));const g=p[d];return Ne("div",{className:Ri("chat__entry"),ref:e,children:[r&&Ne(mp,{}),a&&Ne(gp,{}),Ne("div",{className:Ri(["entry__body",...n||i?["entry__body--hidden"]:[]]),children:[d!==Dn&&y&&t&&Ne(jp,{}),Ne(g,{})]})]})},Hp=n(6419),zp=n.n(Hp),$p=n(2462),Vp=n.n($p);function qp(t){let{controlName:e,describedById:n}=t;const{t:r}=sa();return Ne(Qc,{noValidate:"true",className:Ri("options__form"),children:[Ne(Sp,{name:e,type:"email",className:Ri("transcript__input"),"aria-describedby":n,labelClass:Ri("label"),labelText:r("options.sendTranscript.label")}),Ne("div",{className:Ri("options__actions"),children:Ne("button",{type:"submit",className:Ri("button","button--primary","options__submit"),children:r("options.sendTranscript.sendButtonText")})})]})}const Wp="email";const Gp={sendTranscript:()=>{const[t,e]=jt(void 0),{hideOption:n}=xa(),{focusButton:r}=Ta(),{t:o}=sa(),i=rs(),{sendAction:a}=ls(),s=Lt((()=>({[Wp]:[Vc(Kc,o("options.sendTranscript.noEmailText")),Vc(Gc,o("options.sendTranscript.invalidEmailText"))]})),[o]),c=Ut((t=>{var e;const o=Pa()(e=t.email).call(e);a({type:"send_transcript",body:{emailAddress:o}}),n(),r()}),[a,n,r]),l=Ut((t=>{let{isValid:n,isSubmitted:r}=t;e(r&&!n?"options--error":void 0)}),[e]);return Ne(rc,{className:t,headingText:o("options.sendTranscript.title"),cancelButtonText:o("options.cancelButtonText"),children:[Ne("p",{className:Ri("options__description"),id:i,children:o("options.sendTranscript.description")}),Ne(Ac,{formId:"sendTranscript",onSubmit:c,validationSchema:s,onError:l,children:Ne(qp,{controlName:Wp,describedById:i})})]})}};var Kp=()=>{const{optionActive:t}=xa(),e=Dt(null),n=Gp[t||e.current];return t&&(e.current=t),n?Ne(n,{}):null},Yp=()=>{const{t:t}=sa(),{menuOptions:e,showOption:n,panelActive:r,hideOption:o}=xa(),{id:i}=Ta(),a=Dt(null),[s,c]=jt(!1),l=Dt(null),u=e.length,p=Dt(zp()({length:u},(()=>({current:null})))),f=Dt(!1),d=u>1,h=e[0],v=Lt((()=>{var t;return null==h||null===(t=h.name)||void 0===t?void 0:Pa()(t).call(t).replace(/\s+/g,"")}),[h]);return kt((()=>()=>{clearTimeout(a.current)}),[]),kt((()=>{s&&!f.current&&requestAnimationFrame((()=>{requestAnimationFrame((()=>{const t=Vp()(e).call(e,(t=>t.available)),n=-1===t?0:t;En(p.current[n])}))})),f.current=s}),[s,e]),u?Ne("div",{className:Ri("options__container"),onKeyDown:t=>{s&&(wn(t)===bn.Escape&&(c(!1),En(l.current)),wn(t)===bn.Home&&(En(p.current[0]),t.preventDefault()),wn(t)===bn.End&&(En(p.current[u-1]),t.preventDefault()))},onfocusout:()=>{d&&(a.current=en()((()=>{c(!1)}),200))},onfocusin:()=>{clearTimeout(a.current)},children:[Ne(nc,{transitionStartState:ec.notRendered,isActive:r,children:Ne("div",{className:Ri("options__dialog"),children:Ne(Kp,{})})}),d&&Ne(nc,{isActive:s,transitionStartState:ec.notRendered,children:Ne("ul",{className:Ri(["options__menu"]),role:"menu",tabIndex:"-1","aria-labelledby":i,children:_()(e).call(e,((r,o)=>{let{name:i,title:a,available:s}=r;return Ne("li",{className:Ri("options__menu__item"),role:"menuitem","data-testid":i,children:Ne("button",{type:"button",ref:t=>{p.current[o]=t},className:Ri(["button","button--secondary"]),onKeyDown:t=>((t,e)=>{if(wn(t)===bn.ArrowDown){const n=Math.min(u-1,e+1);En(p.current[e===n?0:n]),t.preventDefault()}if(wn(t)===bn.ArrowUp){const n=Math.max(0,e-1);En(p.current[e===n?u-1:n]),t.preventDefault()}})(t,o),onKeyPress:t=>((t,n)=>{const r=String.fromCharCode(t.charCode);if(1!==r.length||!r.match(/\S/))return;let o=-1;x()(e).call(e,((t,e)=>{e>n&&t.title.charAt(0).toLowerCase()===r.toLowerCase()&&-1===o&&(o=e)})),-1!==o&&En(p.current[o])})(t,o),onClick:()=>((t,e)=>{e&&(c(!1),n(t))})(i,s),"aria-disabled":s?null:"true",children:[Ne("span",{className:Ri("button__text"),children:[a,!s&&" "]}),!s&&Ne("span",{className:Ri("button__state"),children:t("options.unavailableText")})]})},i)}))})}),Ne("button",{type:"button",className:Ri(["button","button--secondary","chat__options__button",...!d&&v?[`chat__options__button--${v}`]:[]]),id:i,onClick:()=>{r&&o(),d?c((t=>!t)):h.available&&n(h.name)},onKeyDown:d?t=>{wn(t)===bn.ArrowDown&&(c(!0),t.preventDefault())}:null,ref:l,"aria-haspopup":d?"menu":null,"aria-expanded":d?s.toString():null,"aria-disabled":d||h.available?null:"true",children:[d&&Ne(Js,{name:"options",size:"32"}),Ne("span",{className:Ri("button__text"),children:d?t("options.openButtonText"):`${h.title}${h.available?"":" "}`}),!d&&!h.available&&Ne("span",{className:Ri("button__state"),children:t("options.unavailableText")})]})]}):null};function Jp(){const{menuOptions:t,allowOptionSelection:e}=xa(),{isAvailable:n}=Bs();return n||e&&t.length?Ne("div",{className:Ri("chat__options"),children:[n&&Ne("div",{className:Ri("chat__options-item","chat__options-item--left"),children:Ne(cl,{})}),e&&Ne("div",{className:Ri("chat__options-item","chat__options-item--right"),children:Ne(Yp,{})})]}):null}function Qp(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var Xp=function(t){let{children:e,interruptComponent:n}=t;const{hasInterrupt:r,meta:o}=Ma(),{isOpen:i}=Qa();return Ne(J,{children:[Ne(ul,{}),Ne("div",{className:Ri("chat__container"),children:r?i?Ne(n,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Qp(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Qp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({},o)):null:e}),i&&Ne(Jp,{})]})};function Zp(){const{preChatEvents:t,layoutMode:e}=Ye(),{hasInterrupt:n}=Ma(),{isOpen:r}=Qa(),o=!(n||!t.length||r);return o&&Ne("ul",{className:Ri("pre-chat-messages",`pre-chat-messages--${e}`),"aria-hidden":!o,children:_()(t).call(t,(t=>Ne("li",{className:Ri("pre-chat-messages__message"),children:Ne(tf,{event:t})},t.payload.id)))})}function tf(t){let{event:e}=t;const[n]=wl(e);return Ne(n,{event:e})}function ef(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const nf=()=>{const t=Je(),e=To(),{hasInterrupt:n}=Ma(),r=e&&!n,o=r?e.avatar:t;return o?Ne("img",{className:Ri(r?"avatar":"icon"),src:o,alt:""}):Ne(Js,{name:"avatar",size:"32"})};var rf=t=>{let{onClick:e}=t;const n=Mi(),{t:r}=sa(),o=r(n?"window.openButton.srContinue":"window.openButton.srStart"),i=ya(),{isOpen:a}=Qa(),s=wo(),c=Ut((()=>{e(),i()}),[i,e]);return Ne(nc,{isActive:!a,transitionStartState:ec.rendered,children:Ne("button",{className:Ri("window-open-button"),"aria-label":o,"aria-hidden":a,onClick:c,children:[Ne("span",{className:Ri("message-count"),"aria-hidden":"true",children:!!s&&s}),Ne(nf,{})]})})},of=t=>{let{onClick:e}=t;const{t:n}=sa(),r=Ut((()=>e()),[e]);return Ne("button",{type:"button",className:Ri("button","collapse-button"),onClick:r,children:Ne(Js,{name:"chevronDown",size:"32",alt:n("window.srCollapseButton")})})};const af={app:()=>(Es(),Ne(ml,{children:Ne(Xp,{interruptComponent:gl,children:[Ne(vp,{}),Ne(Bp,{})]})})),inline:()=>{Es();const{showInlineView:t,containerRef:e}=Xa(),{isOpen:n}=Qa(),{hasInterrupt:r,meta:o}=Ma();return r&&!n?Ne(gl,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=ef(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=ef(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({},o)):Ne(J,{children:[Ne(nc,{isActive:!n,transitionStartState:ec.rendered,children:Ne("div",{ref:e,className:Ri("unstarted-wrapper","unstarted-wrapper--inline"),children:[Ne(Zp,{}),Ne(vl,{})]})}),Ne(nc,{isActive:n,transitionStartState:ec.rendered,children:Ne(ml,{ref:e,children:t&&Ne(Xp,{interruptComponent:gl,children:[n&&Ne(vp,{}),Ne(Bp,{})]})})})]})},window:()=>{const{openChat:t,closeChat:e}=Es(),{isOpen:n}=Qa(),r=Ja(),{t:o}=sa(),i=o("window.chat.continue"),a=Lt((()=>({payload:{body:{text:i}}})),[i]);return Ne(J,{children:[Ne(rf,{onClick:t}),Ne(nc,{isActive:!n&&!r,transitionStartState:ec.rendered,children:Ne("div",{className:Ri("unstarted-wrapper","unstarted-wrapper--window"),children:Ne(Zp,{})})}),Ne(nc,{isActive:!n&&r,transitionStartState:ec.notRendered,children:Ne("div",{className:Ri("unstarted-wrapper","unstarted-wrapper--window","unstarted-wrapper--continue"),children:Ne($l,{event:a})})}),Ne(nc,{isActive:n,transitionStartState:ec.notRendered,children:Ne(ml,{children:[n&&Ne(of,{onClick:e}),Ne(Xp,{interruptComponent:gl,children:[Ne(vp,{}),Ne(Bp,{})]})]})})]})}};var sf=t=>{let{children:e}=t;const[,n]=ha(),{namespace:r,layoutMode:o,zIndex:i}=Ye(),{isOpen:a,isVisible:s}=Qa(),c=Bi(),l=Ja(),{locale:u}=sa(),p=af[o],f=Ut((t=>{n(t)}),[n]),d=Lt((()=>{if(u&&document.querySelector("html").getAttribute("lang")!==u)return u}),[u]);if(!p)return console.warn('"layoutMode" should be one of "app", "inline" or "window"'),null;const h=["app",`app--layout-${o}`,`namespace--${r}`,...c];return a||"app"===o||h.push("app--collapsed"),l&&h.push("app--user-responded"),s&&Ne("div",{className:Ri(h),lang:d,tabIndex:"-1","data-nosnippet":!0,style:{zIndex:i},ref:f,children:e||Ne(p,{})})};const{createAction:cf}=ie("errors"),lf=cf("catch-error",(t=>({error:t})));function uf(t){let{api:e}=t;return t=>{let{getState:n}=t;const r=t=>{const{errorCallback:r,namespace:o,api:i,layoutMode:a}=xe(n());null==r||r(t.error,{namespace:o,api:i,layoutMode:a,conversationUrl:e.getConversationUrl(),action:t.type?t:void 0})};return t=>e=>{try{return e.error&&r(e),t(e)}catch(t){throw r({error:t}),t}}}}function pf(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=Mt(Pi),o=Dt();o.current=e,kt((()=>{if(!Oa()(n).call(n,Boolean))return;const e=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null===(t=o.current)||void 0===t?void 0:t.call(o,...n)};return r.emit("function.register",t,e),()=>r.emit("function.unregister",t,e)}),[r,t,...n])}var ff=()=>{const t=Ye(),{sendMessage:e,sendContext:n,sendAction:r}=ls(),{setVisibility:o,visible:i}=Qa(),a=Dt(i),s=Mt(Pi),c=Di(),l=wo(),u=Dt(null),p=Dt(null),{isInline:f,isResolving:d}=Oo(),{hasInterrupt:h}=Ma(),v=Ui(),y=Dt(null),m=ds(),{enableTranslations:g,disableTranslations:_}=Bs();return kt((()=>{a.current=i}),[i]),pf("askText",(t=>{e({body:t})}),[null==c?void 0:c.send]),pf("setVariables",(t=>{n({variables:t})}),[null==c?void 0:c.send]),pf("getVisibility",(t=>{t?t(a.current):console.warn("A callback function is required for the getVisibility action.")})),pf("setVisibility",(t=>{var e;un()(e=A()(be)).call(e,t)?(m(),o(t)):console.error('Requested visibility states should be "open", "minimized" ,"hidden" or null.')}),[null==t?void 0:t.api]),pf("sendCustomAction",((t,e)=>{r({type:"custom",body:{type:t,body:e}})}),[c.send]),pf("setTopic",(t=>{let{name:e,fallbackMessage:n}=t;e&&n?r({type:zn,body:{name:e,fallbackMessage:n}}):console.warn("A name and a fallbackMessage are required for the setTopic action.")}),[c.send]),pf("setTranslation",(t=>{let{enabled:e,locale:n}=t;e?g(n):_()}),[c.send]),kt((()=>{d||h||(y.current&&y.current!==v&&s.emit("unreadMessageCount",l),i===be.open&&i!==p.current&&0!==u.current&&s.emit("unreadMessageCount",0),i!==be.open&&l!==u.current&&s.emit("unreadMessageCount",l),p.current=i,u.current=l,y.current=v)}),[l,i,s,f,d,h,v]),null};const{SET_EVENTS_READ:df}=Yn;var hf=()=>{const{t:t}=sa(),e=_o(),n=Fi(),{isOpen:r,isVisible:o}=Qa(),{sendAction:i}=ls(),a=wo(),{sendPolite:s}=ps(),c=Lt((()=>dn(s,2e3)),[s]),l=Dt(null),u=Dt(null);return kt((()=>{var t;if(!r)return;const o=_()(t=w()(e).call(e,(t=>Lr(t)&&t.payload.messageStatus===Ln))).call(t,(t=>t.payload.id));o.length>0&&(n({type:df,ids:o}),i({type:Bn,events:o}))}),[e,n,r,i]),kt((()=>{l.current!==o&&!o&&u.current&&u.current(),0!==a&&!r&&o&&(u.current=c(t("message.srTextUnreadCount",{unreadCount:a}))),l.current=o}),[a,r,o,c,t]),null},vf=()=>{const{t:t}=sa(),e=_o(),n=Dt(0),r=Dt(0),o=yo().historyLoaded,{sendPolite:i}=ps(),{isOpen:a}=Qa(),s=Dt(null),c=Dt(null),l=Lt((()=>dn((e=>{const n=w()(e).call(e,(t=>{let{payload:e}=t;return!e.fromClient&&!e.fromHistory})).length;n>r.current&&(i(t("message.srNewEventCount",{newCount:n-r.current})),r.current=n)}),1e3)),[i,t]);return kt((()=>{e.length>n.current&&(a&&(c.current=l(e)),n.current=e.length)}),[e,l,a]),kt((()=>{s.current&&!a&&c.current&&(c.current(!0),c.current=null)}),[a]),kt((()=>{o&&en()((()=>{i(t("window.srTexts.onHistoryLoad"))}),500)}),[o,t,i]),null},yf=t=>{let{children:e}=t;const n=Mt(Pi),[r,o]=jt({}),i=Dt(!0),a=Ut((t=>{i.current&&(o(t),n.emit("aria-live",t))}),[o,n]);kt((()=>{let t=null;return r&&r.messageText&&(t=en()((()=>{a({}),clearTimeout(t)}),500)),()=>{clearTimeout(t)}}),[r,a]),kt((()=>()=>{i.current=!1}),[]);const{ariaLive:s,messageText:c}=r;return Ne(us.Provider,{value:a,children:[e,Ne("div",{className:Ri("app__live-container"),children:[Ne("div",{"aria-live":"assertive","aria-atomic":"true",className:Ri("visually-hidden"),children:s===qn?c:null}),Ne("div",{"aria-live":"polite","aria-atomic":"true",className:Ri("visually-hidden"),children:s===Wn?c:null})]})]})},mf=()=>{const{hasCountdown:t,isActive:e,remaining:n,decrementCountdown:r}=Ns();return((t,e)=>{const n=Dt(t);kt((()=>{n.current=t}),[t]),kt((()=>{if(null!==e){const t=vs()((function(){n.current()}),e);return()=>clearInterval(t)}}),[e])})((()=>{r()}),t&&e&&n>0?1e3:null),null},gf=t=>{let{children:e}=t;const n=Dt(0),{sendAction:r}=ls(),{hasCountdown:o,isActive:i,stopCountdown:a}=Ns(),s=Ut((()=>{const t=(new Date).getTime(),e=()=>{r({type:"interactivity_update"}),n.current=t};o&&i&&(e(),a()),t-n.current>15e3&&e()}),[r,o,i,a]);return Ne("div",{className:Ri("activity-monitor"),tabIndex:"-1",onMouseDown:s,onKeyUp:s,onTouchStart:s,onMouseMove:s,onWheel:s,onPointerDown:s,onPointerMove:s,children:Ne(fs.Provider,{value:s,children:e})})},_f=()=>{const{initUserSelectedOptions:t}=xa(),e=Dt(!1),n=Ye();return kt((()=>{n.api&&!e.current&&(e.current=!0,t())}),[t,n]),null};const bf=["serviceSettings"],{ADD_EVENT:wf,ACK_EVENT:Ef,SET_IS_LOADING:xf,SET_PARTICIPANT:Tf,SET_HEADER_SUB_TITLE:Sf,SET_ACTIVE_SERVICE:Of,INIT_RESUME_CONVERSATION_PROMPT:Af,CLEAR_EVENTS:Cf,SET_SERVICE_DATA_ITEM:Nf,SET_FEATURE_ENABLED_STATE:If,SET_SERVICE_ENTRY_METADATA:jf,SET_HISTORY:Rf}=Yn,kf=["text","choice_prompt","image","video"];var Pf=t=>{let{eventBus:e}=t;const{t:n}=sa(),r=Di(),o=Fi(),i=_o(),a=Dt(null),{setUserSelectedOption:s}=xa(),{initCountdown:c,endCountdown:l}=Ns(),{emitEvent:u}=ls();return kt((()=>{if(r.connectionInfo){var t;const n=t=>{const{payload:e}=t;if(!e||!e.participant)return;const{fromClient:n,participant:r}=e;!n&&r.name&&o({type:Sf,title:r.name}),o({type:Tf,participant:r,fromClient:n}),r.introduction&&o({type:wf,event:t})};r.stream().subscribe({next:t=>{const{type:r,payload:i}=t;switch(r){case"ui":switch(i.state&&i.state.hasOwnProperty("loading")&&o({type:xf,isLoading:i.state.loading}),i.type){case"idle_detach_countdown":c(i.body.duration);break;case"idle_detach_countdown_elapsed":l(void 0,!0);break;case"resume_conversation_prompt":o({type:Af});break;case"user_first_response":o(Xo(!0)),e.emit("system.userFirstResponse",i.body)}break;case"message":switch(n(i),i.type){case"text":case"choice_prompt":case"splash":case"image":case"upload":case"video":case"cta":case"custom":case"carousel":case"card":i.service&&i.service.serviceSessionId&&o({type:Of,activeServiceSessionId:i.service.serviceSessionId}),o({type:wf,event:t})}break;case"participant":n(t);break;case"service_data":i.persist&&o({type:Nf,payload:i});break;case"ack":o({type:Ef,event:t});break;case"system":if("service_changed"===i.type){const{serviceSettings:t}=i,e=D(i,bf),{uploads:n,entry:r}=t;o({type:If,key:Kn,enabled:!(!n||!n.enabled)}),o({type:jf,entryMeta:r}),o({type:Of,activeServiceSessionId:i.serviceSessionId}),u("system.serviceChanged",e)}break;case"info":"divider"!==i.type&&"text"!==i.type&&"translation"!==i.type||o({type:wf,event:t});break;case"error":switch(i.type){case"find_conversation_erred":o(Jo(new Wo(t)));break;case"seamly_offline":o(Jo(new Ha(t))),o({type:Cf});break;default:o(Jo(new Fa(t)))}break;case"socket_opened":o(Qo())}}}),w()(t=r.stream()).call(t,(t=>"message"===t.type&&un()(kf).call(kf,t.payload.type))).subscribe({next:t=>{let{payload:n}=t;n.id!==a.current&&e.emit("message",n),a.current=n.id}})}}),[o,r,e,n,s,c,l,u]),kt((()=>{if(r.stream){const e=w()(t=r.stream()).call(t,(t=>"sync"===t.type)).subscribe({next:t=>{const{payload:e}=t,n=i[i.length-1],{id:a}=e.lastEvent;n&&a===n.payload.id||r.getConversation().then((t=>{t&&o({type:Rf,history:t})})).catch((t=>{o(Jo(t))}))}});return()=>{e.unsubscribe()}}var t;return()=>{}}),[r,i,o]),null};const{REGISTER_UPLOAD:Df,SET_UPLOAD_PROGRESS:Lf,SET_UPLOAD_ERROR:Uf,SET_UPLOAD_COMPLETE:Mf}=Yn;var Ff=t=>{let{children:e}=t;const{t:n}=sa(),r=Fi(),o=Di(),{addUploadBubble:i}=ls();return Ne(Aa.Provider,{value:t=>{const e=Qt(),a=o.uploadFile(t,(t=>{r({type:Lf,fileId:e,progress:Math.ceil(t)})}),(t=>{const{id:n,transactionId:o,occurredAt:a,body:{contentType:s,filename:c,filesize:l,url:u}}=t.body;r({type:Mf,fileId:e}),i(n,o,a,s,c,l,u)}),(t=>{let o;switch(t&&t.body?t.body.error:""){case"file_uploads_are_disabled":o=n("fileUpload.errors.unavailable");break;case"request_entity_too_large":o=n("fileUpload.errors.tooLarge");break;case"file_has_invalid_mime_type":o=n("fileUpload.errors.wrongType");break;case"virus_found":o=n("fileUpload.errors.virusFound");break;default:o=n("fileUpload.errors.general")}r({type:Uf,fileId:e,errorText:o})}));r({type:Df,fileId:e,fileName:t.name,uploadHandle:a})},children:e})},Bf=t=>{let{store:e,children:n,config:r,eventBus:o,api:i}=t;return function(t){var n=It(gt++,10),r=jt();n.__=t=>e.dispatch(lf(t)),_t.componentDidCatch||(_t.componentDidCatch=function(t){n.__&&n.__(t),r[1](t)}),r[0]}(),Ne(Ie,{store:e,children:Ne(Pi.Provider,{value:o,children:Ne(ki.Provider,{value:i,children:Ne(yf,{children:Ne(hp,{children:[Ne(_f,{config:r}),Ne(Pf,{eventBus:o}),Ne(hf,{}),Ne(vf,{}),Ne(mf,{}),Ne(gf,{children:[Ne(ff,{}),Ne(Ff,{children:n})]})]})})})})})};function Hf(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function zf(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Hf(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Hf(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var $f=t=>Ne(Bf,zf(zf({},t),{},{children:Ne(sf,{})})),Vf=n(3813),qf=n.n(Vf),Wf=n(1766),Gf=n.n(Wf),Kf=n(9340),Yf=n.n(Kf);function Jf(t){const e="cvco."+t;return{get(){var t;const n=[e,Kt()(t=e.split(".")).call(t,0,-1).join(".")];let r;do{r=sessionStorage.getItem(n[0])}while(n.shift()&&!r);return JSON.parse(r)},set(t){t&&sessionStorage.setItem(e,Yf()(t))}}}var Qf=n(1905),Xf=n.n(Qf),Zf=(n(8604),t=>"function"==typeof t?t:function(){return t}),td="undefined"!=typeof self?self:null,ed="undefined"!=typeof window?window:null,nd=td||ed||void 0,rd="closed",od="errored",id="joined",ad="joining",sd="leaving",cd="phx_close",ld="phx_error",ud="phx_reply",pd="phx_leave",fd=class{constructor(t,e,n,r){this.channel=t,this.event=e,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(t){this.timeout=t,this.reset(),this.send()}send(){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,join_ref:this.channel.joinRef()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive(t){var e,n;let{status:r,response:o,_ref:i}=t;x()(e=w()(n=this.recHooks).call(n,(t=>t.status===r))).call(e,(t=>t.callback(o)))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,(t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)})),this.timeoutTimer=en()((()=>{this.trigger("timeout",{})}),this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},dd=class{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=en()((()=>{this.tries=this.tries+1,this.callback()}),this.timerCalc(this.tries+1))}},hd=class{static request(t,e,n,r,o,i,a){if(nd.XDomainRequest){let n=new nd.XDomainRequest;this.xdomainRequest(n,t,e,r,o,i,a)}else{let s=new nd.XMLHttpRequest;this.xhrRequest(s,t,e,n,r,o,i,a)}}static xdomainRequest(t,e,n,r,o,i,a){t.timeout=o,t.open(e,n),t.onload=()=>{let e=this.parseJSON(t.responseText);a&&a(e)},i&&(t.ontimeout=i),t.onprogress=()=>{},t.send(r)}static xhrRequest(t,e,n,r,o,i,a,s){t.open(e,n,!0),t.timeout=i,t.setRequestHeader("Content-Type",r),t.onerror=()=>{s&&s(null)},t.onreadystatechange=()=>{if(4===t.readyState&&s){let e=this.parseJSON(t.responseText);s(e)}},a&&(t.ontimeout=a),t.send(o)}static parseJSON(t){if(!t||""===t)return null;try{return JSON.parse(t)}catch(e){return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let n=[];for(var r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let o=e?`${e}[${r}]`:r,i=t[r];"object"==typeof i?n.push(this.serialize(i,o)):n.push(encodeURIComponent(o)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(t,e){if(0===S()(e).length)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}},vd=class{constructor(t){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=0,this.poll()}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/websocket"),"$1/longpoll")}endpointURL(){return hd.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(){this.close(),this.readyState=0}ontimeout(){this.onerror("timeout"),this.closeAndRetry()}poll(){var t;1!==this.readyState&&0!==this.readyState||hd.request("GET",this.endpointURL(),"application/json",null,this.timeout,i()(t=this.ontimeout).call(t,this),(t=>{if(t){var{status:e,token:n,messages:r}=t;this.token=n}else e=0;switch(e){case 200:x()(r).call(r,(t=>{en()((()=>{this.onmessage({data:t})}),0)})),this.poll();break;case 204:this.poll();break;case 410:this.readyState=1,this.onopen(),this.poll();break;case 403:this.onerror(),this.close();break;case 0:case 500:this.onerror(),this.closeAndRetry();break;default:throw new Error(`unhandled poll status ${e}`)}}))}send(t){var e;hd.request("POST",this.endpointURL(),"application/json",t,this.timeout,i()(e=this.onerror).call(e,this,"timeout"),(t=>{t&&200===t.status||(this.onerror(t&&t.status),this.closeAndRetry())}))}close(t,e){this.readyState=3,this.onclose()}},yd={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(Yf()(n))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[n,r,o,i,a]=JSON.parse(t);return e({join_ref:n,ref:r,topic:o,event:i,payload:a})}},binaryEncode(t){let{join_ref:e,ref:n,event:r,topic:o,payload:i}=t,a=this.META_LENGTH+e.length+n.length+o.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+a),c=new DataView(s),l=0;c.setUint8(l++,this.KINDS.push),c.setUint8(l++,e.length),c.setUint8(l++,n.length),c.setUint8(l++,o.length),c.setUint8(l++,r.length),zp()(e,(t=>c.setUint8(l++,t.charCodeAt(0)))),zp()(n,(t=>c.setUint8(l++,t.charCodeAt(0)))),zp()(o,(t=>c.setUint8(l++,t.charCodeAt(0)))),zp()(r,(t=>c.setUint8(l++,t.charCodeAt(0))));var u=new Uint8Array(s.byteLength+i.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(i),s.byteLength),u.buffer},binaryDecode(t){let e=new DataView(t),n=e.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(t,e,r);case this.KINDS.reply:return this.decodeReply(t,e,r);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,r)}},decodePush(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=e.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(Kt()(t).call(t,a,a+r));a+=r;let c=n.decode(Kt()(t).call(t,a,a+o));a+=o;let l=n.decode(Kt()(t).call(t,a,a+i));return a+=i,{join_ref:s,ref:null,topic:c,event:l,payload:Kt()(t).call(t,a,t.byteLength)}},decodeReply(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=e.getUint8(3),a=e.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(Kt()(t).call(t,s,s+r));s+=r;let l=n.decode(Kt()(t).call(t,s,s+o));s+=o;let u=n.decode(Kt()(t).call(t,s,s+i));s+=i;let p=n.decode(Kt()(t).call(t,s,s+a));s+=a;let f=Kt()(t).call(t,s,t.byteLength);return{join_ref:c,ref:l,topic:u,event:ud,payload:{status:p,response:f}}},decodeBroadcast(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=this.HEADER_LENGTH+2,a=n.decode(Kt()(t).call(t,i,i+r));i+=r;let s=n.decode(Kt()(t).call(t,i,i+o));return i+=o,{join_ref:null,ref:null,topic:a,event:s,payload:Kt()(t).call(t,i,t.byteLength)}}};function md(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function gd(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=md(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=md(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function _d(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function bd(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=_d(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=_d(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const wd=Xf()("seamly");class Ed{constructor(t,e,n,r){this.url=t,this.accessToken=r,this.channelName=e,this.channelTopic=n,this.connect(),this.socket.onError((t=>{wd("[SOCKET][ERROR]",t),this.emit({type:"error",payload:{type:"seamly_offline",error:t}})})),this.socket.onOpen((()=>{wd("[SOCKET]OPEN"),this.emit({type:"socket_opened"})})),this.channel.on("system",(t=>{"attach_channel_succeeded"===t.type&&this.emit({type:"connection",connected:!0,ready:!0})})),this.socket.onClose((()=>{wd("[SOCKET]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onClose((()=>{wd("[CHANNEL]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onError((t=>{wd("[CHANNEL][ERROR]",t),this.emit({type:"connection",connected:!1,ready:!1})})),this.listenTo("ack"),this.listenTo("ui"),this.listenTo("error"),this.listenTo("participant",((t,e)=>bd(bd({},e),{},{type:t}))),this.listenTo("message"),this.listenTo("service_data"),this.listenTo("system"),this.listenTo("info"),this.listenTo("sync")}start(t){this.listener=t,this.channel.join().receive("ok",(()=>{wd("[CHANNEL][JOIN] OK"),this.emit({type:"connection",connected:!0,ready:!1})})).receive("error",(t=>{wd("[CHANNEL][JOIN] ERROR",t),this.emit({type:"error",payload:{type:"join_channel_erred",error:t}}),this.emit({type:"connection",connected:!1,ready:!1}),this.channel.socket.disconnect()})).receive("timeout",(()=>{wd("[CHANEL][JOIN] Networking issue. Still waiting...")}))}stop(){this.listener=null}connect(){const{url:t,params:e}=(t=>{var e;const n=an()(t).call(t,"?");return n<0?{url:t,params:{}}:{url:Kt()(t).call(t,0,n),params:cn()(e=Kt()(t).call(t,n+1).split("&")).call(e,(function(t,e){const[n,r]=e.split("=");return gd(gd({},t),{},{[n]:decodeURIComponent(r)})}),{})}})(this.url);this.socket=new class{constructor(t){var e,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=r.timeout||1e4,this.transport=r.transport||nd.WebSocket||vd,this.establishedConnections=0,this.defaultEncoder=i()(e=yd.encode).call(e,yd),this.defaultDecoder=i()(n=yd.decode).call(n,yd),this.closeWasClean=!1,this.binaryType=r.binaryType||"arraybuffer",this.connectClock=1,this.transport!==vd?(this.encode=r.encode||this.defaultEncoder,this.decode=r.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let o=null;ed&&ed.addEventListener&&(ed.addEventListener("pagehide",(t=>{this.conn&&(this.disconnect(),o=this.connectClock)})),ed.addEventListener("pageshow",(t=>{o===this.connectClock&&(o=null,this.connect())}))),this.heartbeatIntervalMs=r.heartbeatIntervalMs||3e4,this.rejoinAfterMs=t=>r.rejoinAfterMs?r.rejoinAfterMs(t):[1e3,2e3,5e3][t-1]||1e4,this.reconnectAfterMs=t=>r.reconnectAfterMs?r.reconnectAfterMs(t):[10,50,100,150,200,250,500,1e3,2e3][t-1]||5e3,this.logger=r.logger||null,this.longpollerTimeout=r.longpollerTimeout||2e4,this.params=Zf(r.params||{}),this.endPoint=`${t}/websocket`,this.vsn=r.vsn||"2.0.0",this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new dd((()=>{this.teardown((()=>this.connect()))}),this.reconnectAfterMs)}replaceTransport(t){this.disconnect(),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=hd.appendParams(hd.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==t.charAt(0)?t:"/"===t.charAt(1)?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,n){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,e,n)}connect(t){this.connectClock++,t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Zf(t)),this.conn||(this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t))}log(t,e,n){this.logger(t,e,n)}hasLogger(){return null!==this.logger}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onConnOpen(){var t;this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),x()(t=this.stateChangeCallbacks.open).call(t,(t=>{let[,e]=t;return e()}))}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.abnormalClose("heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,clearTimeout(this.heartbeatTimer),en()((()=>this.sendHeartbeat()),this.heartbeatIntervalMs))}teardown(t,e,n){if(!this.conn)return t&&t();this.waitForBufferDone((()=>{this.conn&&(e?this.conn.close(e,n||""):this.conn.close()),this.waitForSocketClosed((()=>{this.conn&&(this.conn.onclose=function(){},this.conn=null),t&&t()}))}))}waitForBufferDone(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;5!==e&&this.conn&&this.conn.bufferedAmount?en()((()=>{this.waitForBufferDone(t,e+1)}),150*e):t()}waitForSocketClosed(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;5!==e&&this.conn&&3!==this.conn.readyState?en()((()=>{this.waitForSocketClosed(t,e+1)}),150*e):t()}onConnClose(t){var e;let n=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),clearTimeout(this.heartbeatTimer),this.closeWasClean||1e3===n||this.reconnectTimer.scheduleTimeout(),x()(e=this.stateChangeCallbacks.close).call(e,(e=>{let[,n]=e;return n(t)}))}onConnError(t){var e;this.hasLogger()&&this.log("transport",t);let n=this.transport,r=this.establishedConnections;x()(e=this.stateChangeCallbacks.error).call(e,(e=>{let[,o]=e;o(t,n,r)})),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){var t;x()(t=this.channels).call(t,(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(ld)}))}connectionState(){switch(this.conn&&this.conn.readyState){case 0:return"connecting";case 1:return"open";case 2:return"closing";default:return"closed"}}isConnected(){return"open"===this.connectionState()}remove(t){var e;this.off(t.stateChangeRefs),this.channels=w()(e=this.channels).call(e,(e=>e.joinRef()!==t.joinRef()))}off(t){for(let n in this.stateChangeCallbacks){var e;this.stateChangeCallbacks[n]=w()(e=this.stateChangeCallbacks[n]).call(e,(e=>{let[n]=e;return-1===an()(t).call(t,n)}))}}channel(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new class{constructor(t,e,n){this.state=rd,this.topic=t,this.params=Zf(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new fd(this,"phx_join",this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new dd((()=>{this.socket.isConnected()&&this.rejoin()}),this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError((()=>this.rejoinTimer.reset()))),this.stateChangeRefs.push(this.socket.onOpen((()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()}))),this.joinPush.receive("ok",(()=>{var t;this.state=id,this.rejoinTimer.reset(),x()(t=this.pushBuffer).call(t,(t=>t.send())),this.pushBuffer=[]})),this.joinPush.receive("error",(()=>{this.state=od,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.onClose((()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=rd,this.socket.remove(this)})),this.onError((t=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,t),this.isJoining()&&this.joinPush.reset(),this.state=od,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.joinPush.receive("timeout",(()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new fd(this,pd,Zf({}),this.timeout).send(),this.state=od,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.on(ud,((t,e)=>{this.trigger(this.replyEventName(e),t)}))}join(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(t){this.on(cd,t)}onError(t){return this.on(ld,(e=>t(e)))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){var n;this.bindings=w()(n=this.bindings).call(n,(n=>!(n.event===t&&(void 0===e||e===n.ref))))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.timeout;if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new fd(this,t,(function(){return e}),n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=sd;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(cd,"leave")},n=new fd(this,pd,Zf({}),t);return n.receive("ok",(()=>e())).receive("timeout",(()=>e())),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}isMember(t,e,n,r){return!(this.topic!==t||r&&r!==this.joinRef()&&(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:n,joinRef:r}),1))}joinRef(){return this.joinPush.ref}rejoin(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=ad,this.joinPush.resend(t))}trigger(t,e,n,r){var o;let i=this.onMessage(t,e,n,r);if(e&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let a=w()(o=this.bindings).call(o,(e=>e.event===t));for(let t=0;t<a.length;t++)a[t].callback(i,n,r||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===rd}isErrored(){return this.state===od}isJoined(){return this.state===id}isJoining(){return this.state===ad}isLeaving(){return this.state===sd}}(t,e,this);return this.channels.push(n),n}push(t){if(this.hasLogger()){let{topic:e,event:n,payload:r,ref:o,join_ref:i}=t;this.log("push",`${e} ${n} (${i}, ${o})`,r)}this.isConnected()?this.encode(t,(t=>this.conn.send(t))):this.sendBuffer.push((()=>this.encode(t,(t=>this.conn.send(t)))))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimer=en()((()=>this.heartbeatTimeout()),this.heartbeatIntervalMs))}abnormalClose(t){this.closeWasClean=!1,this.isConnected()&&this.conn.close(1e3,t)}flushSendBuffer(){var t;this.isConnected()&&this.sendBuffer.length>0&&(x()(t=this.sendBuffer).call(t,(t=>t())),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,(t=>{let{topic:e,event:n,payload:r,ref:o,join_ref:i}=t;o&&o===this.pendingHeartbeatRef&&(clearTimeout(this.heartbeatTimer),this.pendingHeartbeatRef=null,en()((()=>this.sendHeartbeat()),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${r.status||""} ${e} ${n} ${o&&"("+o+")"||""}`,r);for(let t=0;t<this.channels.length;t++){const a=this.channels[t];a.isMember(e,n,r,i)&&a.trigger(n,r,o,i)}for(let e=0;e<this.stateChangeCallbacks.message.length;e++){let[,n]=this.stateChangeCallbacks.message[e];n(t)}}))}leaveOpenTopic(t){var e;let n=Nn()(e=this.channels).call(e,(e=>e.topic===t&&(e.isJoined()||e.isJoining())));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}}(t,{params:bd(bd({},e),{},{v:Xe})}),this.socket.connect(),this.channel=this.socket.channel(this.channelTopic,{authorization:`Bearer ${this.accessToken}`,channelName:this.channelName})}disconnect(){return new($r())((t=>{this.socket.disconnect(t)}))}listenTo(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.channel.on(t,(n=>{wd("[RECEIVE]",t,n),this.emit({type:t,payload:e?e(t,n):n})}))}emit(t){this.listener&&this.listener.next(t)}push(t,e,n){this.channel.push(t,e,n)}}class xd{constructor(t){this.name=t}emit(t){this.listener&&this.listener.next(t)}start(t){this.listener=t}stop(){this.listener=null}}function Td(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Sd(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Td(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Td(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Od=Xf()("seamly");function Ad(){if(!Intl||"undefined"==typeof Intl||void 0===Intl.DateTimeFormat)return null;const t=Intl.DateTimeFormat();if(void 0===t||void 0===t.resolvedOptions)return null;const e=t.resolvedOptions().timeZone;return e&&(an()(e).call(e,"/")>-1||"UTC"===e)?e:null}class Cd{constructor(t){var e;let{layoutMode:n,namespace:r,config:o={},context:i={}}=t;m(this,"getLocale",(t=>t||this.locale)),this.store=function(t,e){const n=e(t),r=n.get()||{};return{get:t=>void 0===t?r:r[t],set:(t,e)=>(r[t]=e,n.set(r),e),delete(t){const e=this.get(t);return delete r[t],n.set(r),e}}}(`${r}.connection${i.locale?"."+i.locale:""}`,o.storageProvider||Jf),this.connectionInfo={apiKey:o.key,domain:o.domain||"api.seamly-app.com",secure:!1!==o.secure&&(o.secure||!0)},this.config={sendEnvironment:o.sendEnvironment??!0,context:Sd(Sd({},i),{},{channelName:i.channelName||"web"})},this.connected=!1,this.configReady=!1,this.externalId=o.externalId,this.layoutMode=n,this.userResponded=!1,this.internalProducer=new xd("API"),this.internal$=qf().create(this.internalProducer).flatten(),this.connection$=w()(e=this.internal$).call(e,(t=>"connection"===t.type)),this.connection$.subscribe({next:t=>{let{connected:e,ready:n}=t;this.connected=e,this.ready=n}}),this.URLS={},window.addEventListener("pageshow",(t=>{t.persisted&&this.connected&&this.connect()}))}getAccessToken(){return this.store.get("accessToken")}setAccessToken(t){this.store.set("accessToken",t)}getConversationUrl(){return this.store.get("conversationUrl")}setConversationUrl(t){this.store.set("conversationUrl",t)}hasConversation(){return!!this.getConversationUrl()}getChannelTopic(){return this.store.get("channelTopic")||this.store.get("channelName")}setChannelTopic(t){this.store.set("channelTopic",t)}clearStore(){this.store.delete("accessToken"),this.store.delete("conversationUrl"),this.store.delete("channelName"),this.store.delete("channelTopic")}getUrlPrefix(t){return`${this.connectionInfo.secure?`${t}s`:t}://${this.connectionInfo.domain}`}updateUrls(t){var e,n;let{_links:r}=t;this.URLS=cn()(e=w()(n=j()(r)).call(n,(t=>{let[e]=t;return"self"!==e}))).call(e,((t,e)=>{let[n,{href:r}]=e;return Sd(Sd({},t),{},{[n]:r})}),this.URLS)}async reset(){return await this.disconnect(),this.clearStore(),this.getConfig()}async disconnect(){this.conversationProducer&&await this.conversationProducer.disconnect(),this.connected=!1,this.configReady=!1}async createConversation(){try{var t;const e=Gf().post(`${this.getUrlPrefix("http")}${this.URLS.conversations}`).set("Content-Type","application/json").query({v:Xe}).withCredentials().send({externalId:this.externalId||void 0}),{body:n}=await e,{conversation:r}=n,o=Sd({},r);return delete o.accessToken,delete o.channelTopic,this.setAccessToken(r.accessToken),this.setChannelTopic(r.channelTopic),this.updateUrls(n),this.setConversationUrl(this.URLS.conversation),this.locale=null===(t=r.translation)||void 0===t?void 0:t.locale,this.userResponded=r.userResponded,o}catch(t){if(t.status>=500)throw new Fa(t);throw t}}getConfig(){return Gf().post(`${this.getUrlPrefix("http")}/client/${this.connectionInfo.apiKey}/configs`).set("Content-Type","application/json").query({v:Xe}).send({context:Sd(Sd({},this.config.context),{},{environment:!0===this.config.sendEnvironment?this.getEnvironment():this.config.sendEnvironment})}).then((t=>{let{body:e}=t;return this.updateUrls(e),this.configReady=!0,e.config})).catch((t=>{if(404===t.status)throw new Ba;if(t.status>=500)throw new Fa(t);throw t}))}async getConversation(){if(!this.hasConversation())return null;try{const{body:t}=await Gf().get(`${this.getUrlPrefix("http")}${this.URLS.history}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:Xe});this.updateUrls(t);const{messages:e,participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,ui:a,translation:s}=t.history;return{events:_()(e).call(e,(t=>{let[e,n]=t;return{type:e,payload:Sd(Sd({},n),{},{type:"participant"===e?e:n.type})}})),participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,resumeConversationPrompt:!!a&&Boolean(a.resumeConversationPrompt),translation:s}}catch(t){if(401===t.status)throw new za(t);if(404===t.status)throw new Wo(t);if(t.status>=500)throw new Fa(t);throw t}}async connect(){this.connected=!1;let t=null;return this.hasConversation()||(t=await this.createConversation()),this.conversationProducer=new Ed(`${this.getUrlPrefix("ws")}${this.URLS.socket}`,this.config.context.channelName,this.getChannelTopic(),this.getAccessToken()),this.internalProducer.emit(qf().create(this.conversationProducer)),this.config.sendEnvironment&&this.send("context",{environment:!0===this.config.sendEnvironment?this.getEnvironment():this.config.sendEnvironment},!1),t}uploadFile(t,e,n,r){const o=new FormData;o.append("upload",t);const i=Gf().post(`${this.getUrlPrefix("http")}${this.URLS.uploads}`).set("Authorization",`Bearer ${this.getAccessToken()}`).send(o);return i.on("progress",(function(t){const{direction:n,percent:r}=t;"upload"===n&&"function"==typeof e&&e(r)})),i.then((t=>{n&&n(t)})).catch((t=>{if(!r)throw t;r(t.response)})),i}getConversationIntitialState(){return Gf().get(`${this.getUrlPrefix("http")}${this.getConversationUrl()}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:Xe}).then((t=>{let{body:e}=t;return this.updateUrls(e),this.userResponded=e.conversation.userResponded,((t,e)=>{var n;return cn()(n=S()(t)).call(n,((n,r)=>(un()(e).call(e,r)||(n[r]=t[r]),n)),{})})(e.conversation,["accessToken","channelTopic"])})).catch((t=>{if(401===t.status)throw new za(t);if(404===t.status)throw new Wo(t);if(t.status>=500)throw new Fa(t);throw t}))}async getTranslations(t){try{const e=`${this.getUrlPrefix("http")}${this.URLS.translations}`.replace("{version}",String(1)).replace("{locale}",this.getLocale(t)),n=Gf().get(e),{body:r}=await n;return r.translations}catch(t){if(t.status>=500)throw new Fa(t);throw t}}send(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var r;!this.connected||n&&!this.ready?w()(r=this.connection$).call(r,(t=>n?t.connected&&t.ready:t.connected)).take(1).subscribe({next:()=>this.send(t,e,n)}):(Od("[SEND]",t,e),this.conversationProducer.push(t,function(t,e){if("message"!==t)return e;const{type:n,body:r}=e;let{transactionId:o}=e;return o||(o=Qt()),{type:n,body:r,transactionId:o}}(t,e),1e4))}sendContext(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{locale:e,variables:n}=t,r={};if(e){if("string"!=typeof e)throw new Error("Locale must be a string");r.locale=e}if(n){if("object"!=typeof n)throw new Error("Variables must be an object");r.variables=n}0===S()(r).length&&r.constructor===Object||this.send("context",r,!1)}stream(){var t;return w()(t=this.internal$).call(t,(t=>"connection"!==t.type))}getEnvironment(){return{clientName:"@seamly/web-ui",clientVariant:this.layoutMode,clientVersion:"20.5.0",currentUrl:window.location.toString(),screenResolution:`${window.screen.width}x${window.screen.height}`,timezone:Ad(),userAgent:navigator.userAgent}}}function Nd(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(o){return"function"==typeof o?o(n,r,t):e(o)}}}}var Id=Nd();Id.withExtraArgument=Nd;var jd=Id;function Rd(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function kd(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Rd(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Rd(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Pd(t){let{api:e}=t;return()=>t=>n=>{const r=t(n);switch(n.type){case Yn.SET_USER_SELECTED_OPTIONS:e.store.set("options",n.options);break;case Yn.SET_USER_SELECTED_OPTION:e.store.set("options",kd(kd({},e.store.get("options")||{}),{},{[n.option]:n.value}))}return r}}const Dd={events:[],initialState:{},unreadEvents:0,loadedImageEventIds:[],isLoading:!1,idleDetachCountdown:{hasCountdown:!1,isActive:!1},resumeConversationPrompt:!1,serviceInfo:{activeServiceSessionId:""},participantInfo:{participants:{},currentAgent:""},headerTitles:{title:null,subTitle:""},historyLoaded:!1,skiplinkTargetId:Qt(),optionsButtonId:Qt(),headerCollapseButtonId:Qt(),serviceData:{},options:{features:{},panelActive:!1,optionActive:"",userSelectedOptions:{}},showFileUpload:!1,currentUploads:[],entryMeta:{default:Pn,active:Pn,userSelected:null,blockAutoEntrySwitch:!1,options:{},optionsOverride:{}},seamlyContainerElement:null};function Ld(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dd,e=arguments.length>1?arguments[1]:void 0;return e.type===String(Zo.pending)?Dd:Hr(t,e)}const Ud=["namespace","parentElement","showFaq"],Md=["view"];function Fd(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bd(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Fd(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Fd(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}class Hd{constructor(t,e){const{namespace:n="",parentElement:r,showFaq:o}=t,i=D(t,Ud);this.config=Bd(Bd({},i),{},{namespace:n,showFaq:!1!==o}),this.namespace=n,this.parentElement=r,this.externalApi=e,this.api=new Cd({layoutMode:t.layoutMode,namespace:t.namespace,config:t.api,context:t.context}),this.eventBus=new(Et()),this.functions={},this.registerFunctions({on:this.eventBus.on,off:this.eventBus.off}),this.eventBus.on("function.register",((t,e)=>this.registerFunction(t,e))),this.eventBus.on("function.unregister",((t,e)=>this.unregisterFunction(t,e)))}async render(){const t=this.config.customComponents||{},{view:e}=t,n=D(t,Md),r=Bd(Bd({},this.config),{},{customComponents:S()(n).length?n:void 0}),o=function(){let{initialState:t,api:e,eventBus:n,config:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ve({reducers:{state:Ld,[String(Ds)]:Ds,[String(si)]:si,[String(Pc)]:Pc,[String(Ks)]:Ks,[String(pa)]:pa,[String(Ya)]:Ya,[String(ns)]:ns},initialState:t,middlewares:[uf({api:e}),jd.withExtraArgument({api:e,eventBus:n,config:r}),Va({api:e}),Pd({api:e}),Vs()]})}({api:this.api,eventBus:this.eventBus,config:r});await o.dispatch(Zo()),yt(e?Ne(Bf,{config:r,eventBus:this.eventBus,store:o,api:this.api,children:Ne(e,{})}):Ne($f,{config:r,eventBus:this.eventBus,store:o,api:this.api}),this.parentElement)}destroy(){yt(null,this.parentElement),this.eventBus.off(),this.api.disconnect(),delete this.functions}registerFunctions(t){var e;x()(e=j()(t)).call(e,(t=>{let[e,n]=t;this.registerFunction(e,n)}))}registerFunction(t,e){this.functions[t]=this.functions[t]||[],this.functions[t].push(e),this.externalApi.handleActions()}unregisterFunction(t,e){const n=this.functions[t];n&&n.length&&(this.functions[t]=w()(n).call(n,(t=>t!==e)))}execFunction(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const o=this.functions[t];return!(!o||!o.length||(x()(o).call(o,(e=>{try{e(...n)}catch(e){console.error(`Action(${t}) failed: `,e)}})),0))}}function zd(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function $d(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=zd(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=zd(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Vd=t=>"object"==typeof t&&"action"in t,qd=t=>$d($d({},t),{},{args:e()(t.args)?t.args:[t.args]});var Wd=class{constructor(t){this._waitingActions=[],this._instances={},this.appConfig=t,this.context={}}push(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(n=_()(t=w()(n).call(n,Vd)).call(t,qd)).length&&(this._waitingActions.push(...n),this.handleActions())}handleActions(){const t=this._waitingActions;this._waitingActions=[],x()(t).call(t,(t=>{switch(t.action){case"init":this.handleInit(t);break;case"destroy":this.handleDestroy(t);break;default:this.handleAction(t)||this.setContext(t.action,...t.args)||this._waitingActions.push(t)}}))}setContext(t,e){switch(t){case"setTopic":const{name:t}=e;return t&&(this.context.topic=t),!0;case"setTranslation":const{enabled:n,locale:r}=e;return n&&r&&(this.context.translationLocale=r),!0;case"setVariables":return S()(e).length>0&&(this.context.variables=$d({},e)),!0;default:return!1}}handleInit(t){const e=this.getUserConfig(...t.args),n=this.getCombinedConfig(e),{parentElement:r,namespace:o}=n||e;var i;if(o?x()(i=A()(this._instances)).call(i,(t=>{t.parentElement!==r&&t.namespace!==o||this.destroy(t)})):this.destroy(),n){const t=this.createInstance(n);this._instances[n.namespace]=t,this.context={},t.render()}}handleDestroy(t){this.destroy(t.instance)}handleAction(t){const{action:e,instance:n,args:r}=t,o=A()(this._instances);!n&&o.length>1&&console.warn(`Multiple instances detected. Due to potential race conditions, it is recommended to target a specific instance with the action: ${e}`);const i=_()(o).call(o,(t=>(!n||t.namespace===n)&&t.execFunction(e,...r)));return N()(i).call(i,Boolean)}createInstance(t){return new Hd(t,this)}destroy(t){var e;t?("string"==typeof t&&(t=this._instances[t]),t&&(t.destroy(),delete this._instances[t.namespace])):x()(e=j()(this._instances)).call(e,(t=>{let[e,n]=t;n.destroy(),delete this._instances[e]}))}getUserConfig(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}getCombinedConfig(t){const e=$d($d({},t.context||this.appConfig.context),this.context),n=this.getMergedVariables(t);S()(n).length>0&&(e.variables=n);const r=$d($d({},this.appConfig.defaults),t.defaults),o=$d($d($d({},this.appConfig),t),{},{api:$d($d({},this.appConfig.api),t.api),context:S()(e).length?e:void 0,defaults:S()(r).length?r:void 0});return"function"==typeof this.appConfig?this.appConfig(o):o}getMergedVariables(t){var e,n;return $d($d($d({},(null===(e=this.appConfig.context)||void 0===e?void 0:e.variables)||{}),(null===(n=t.context)||void 0===n?void 0:n.variables)||{}),this.context.variables||{})}},Gd=()=>{const{t:t}=sa(),{title:e,subTitle:n}=bo(),r=wo(),{isOpen:o}=Qa(),i=To(),{hasInterrupt:a}=Ma(),s=Je(),c=(null==i?void 0:i.avatar)??s,l=a?"":n,u=["message-count"];return o&&u.push("message-count__hide"),0===r&&u.push("message-count__empty"),(l||!o)&&Ne("div",{className:Ri("agent-info"),children:[Ne("div",{className:Ri("agent-info__graphic"),children:[c?Ne("img",{className:Ri(null!=i&&i.avatar?"avatar":"icon"),src:c,alt:""}):Ne(Js,{name:"avatar",size:"32"}),Ne("span",{className:Ri(u),"aria-hidden":"true",children:r})]}),Ne("div",{className:Ri("agent-info__body"),children:[Ne("p",{className:Ri("agent-info__heading"),children:e??t("header.title")}),Ne("p",{className:Ri("agent-info__text"),children:l})]})]})},Kd=t=>{let{children:e,onCloseChat:n}=t;const{headerCollapseButtonId:r}=yo(),o=Dt(null),{t:i}=sa();return Ne("header",{className:Ri("chat__header"),children:[e,Ne("div",{className:Ri("header-controls"),children:Ne("button",{type:"button",className:Ri("button","header-controls__collapse"),onClick:n,ref:o,id:r,children:Ne(Js,{name:"chevronDown",size:"32",alt:i("header.collapseApp")})})})]})},Yd=t=>{let{onOpenChat:e}=t;const{t:n}=sa(),r=rs(),{isOpen:o}=Qa(),i=Dt(null),a=Dt(null),s=Dt(),c=ya(),l=(()=>{const t=Dt(null),[e]=ha();return t.current=e,Ut((e=>{xn(t.current,(()=>{da(e)}))}),[])})(),u=To(),p=bo().subTitle,{hasInterrupt:f}=Ma(),{headerCollapseButtonId:d}=yo(),h=u&&!f;return Pt((()=>{!1===o&&!0===i.current&&l(a.current),i.current=o}),[o,l]),Ne("div",{className:Ri("toggle-button"),children:[Ne("div",{id:r,children:[Ne("p",{className:Ri("toggle-button__title"),children:n(h?"toggleButton.resumeTitle":"toggleButton.title")}),Ne("p",{className:Ri("toggle-button__subtitle"),children:h?p:n("toggleButton.subtitle")})]}),Ne("button",{type:"button","aria-labelledby":r,className:Ri("toggle-button__button"),ref:a,onMouseUp:()=>{s.current="mouse"},onKeyUp:()=>{s.current="key"},onClick:()=>{e(),"mouse"===s.current?c():"key"===s.current&&l(d)}})]})};const Jd=["categories"];function Qd(t,e){var n=S()(t);if(s()){var r=s()(t);e&&(r=w()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xd(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?x()(n=Qd(Object(o),!0)).call(n,(function(e){m(t,e,o[e])})):p()?d()(t,p()(o)):x()(r=Qd(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Zd=()=>{const{t:t}=sa(),{sendAction:e,addMessageBubble:n}=ls(),r=rs(),o=ya(),{sendPolite:i}=ps(),{hasInterrupt:a}=Ma(),{hasCountdown:s,endCountdown:c}=Ns(),{hasPrompt:l,continueChat:u}=js(),p=So("suggestion"),[f]=Hs({payload:p}),d=Lt((()=>{const t=p&&!a?f:[];return _()(t).call(t,(t=>{let{categories:e=[]}=t;return Xd(Xd({},D(t,Jd)),{},{categories:e,classNames:["faqs__item",..._()(e).call(e,(t=>`faqs__item--${String(t).toLowerCase().replace(/[^a-z0-9_\\-]/,"")}`))]})}))}),[p,a,f]),h=Dt(null),v=Dt(!1),{isInline:y}=Oo(),m=Ja(),g=!y&&m,b=Dt(g),w=!!d.length,E=w&&!g,x=Dt([]),T=w?d:x.current;x.current=T;const S=Dt(null);kt((()=>{if(h.current!==d&&!g){if(w){const e=v.current?t("faq.srUpdatedText"):t("faq.srAvailableText");en()((()=>{i(e)}),30)}else v.current&&i(t("faq.srUnavailableText"));h.current=d}!b.current&&g?(xn(S.current,o),i(t("faq.srUnavailableText"))):!w&&v.current&&xn(S.current,o),v.current=w,b.current=g}),[w,d,g,o,i,t]);const O=t("faq.headingText"),A=O?"section":"div";return Ne(nc,{isActive:E,transitionStartState:ec.notRendered,children:Ne(A,{className:Ri("faqs"),"aria-labelledby":O?r:null,ref:S,children:[O&&Ne("h2",{id:r,className:Ri("faqs__heading"),children:O}),!!T.length&&Ne("ul",{className:Ri("faqs__list"),children:_()(T).call(T,(t=>Ne("li",{className:Ri(t.classNames),children:Ne("button",{type:"button",onClick:()=>{(t=>{let{id:r,question:i}=t;s&&c(!0),l&&u(),e({type:Mn,originMessage:p.id,body:{type:"faqclick",body:{faqId:r,faqQuestion:i}}}),n(i),o()})(t)},className:Ri("button","button--secondary"),children:[Ne(Js,{name:"chevronRight",size:"8"}),t.question]})},t.id.toString())))})]})})},th=t=>{let{children:e}=t;const[,n]=ha(),{isOpen:r,isVisible:o,setVisibility:i}=Qa(),{zIndex:a,showFaq:s,layoutMode:c}=Ye(),{isInline:l}=Oo(),u=Bi(),p=Ja(),{locale:f}=sa(),d=Ut((t=>{n(t)}),[n]),h=Lt((()=>{if(f&&document.querySelector("html").getAttribute("lang")!==f)return f}),[f]),v=["app","app--deprecated",...u];return r||"window"!==c||v.push("app--collapsed"),p&&v.push("app--user-responded"),v.push(`app--layout-${c}`),o&&Ne("section",{className:Ri(v),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!l&&r&&i(be.minimized)},lang:h,tabIndex:"-1",ref:d,style:{zIndex:a},"data-nosnippet":!0,children:[Ne("div",{className:Ri("app-wrapper"),children:e}),s&&Ne(Zd,{})]})},eh=()=>{const{isVisible:t}=Qa(),{openChat:e,closeChat:n}=Es(),{showInlineView:r,containerRef:o}=Xa();return t&&Ne("div",{ref:o,children:r&&Ne(th,{children:[Ne(Yd,{onOpenChat:e}),Ne(Kd,{onCloseChat:n,children:Ne(Gd,{})}),Ne(Xp,{interruptComponent:gl,children:[Ne(vp,{}),Ne(Bp,{})]})]})})},nh=function(t){var n;if(window.seamly&&!e()(window.seamly))throw new Error("Seamly UI has already been initialised. Use the window.seamly object to start new instances instead.");const r=e()(window.seamly)?window.seamly:[],o=new Wd(t);window.seamly={push:i()(n=o.push).call(n,o)},o.push(...r)}}(),r}()}));